* corelow.c (init_core_ops): Delete references to to_require_attach
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
2
3 * corelow.c (init_core_ops): Delete references to to_require_attach
4 and to_require_detach.
5 * exec.c (init_exec_ops): Likewise.
6 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
7 hppa_require_detach directly.
8 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
9 * inftarg.c (child_detach): Remove.
10 (child_detach_from_process): Rename to child_detach, remove
11 after_fork argument.
12 (child_attach): Remove.
13 (child_attach_to_process): Rename to child_attach, remove after_fork
14 argument.
15 (init_child_ops): Delete references to to_require_attach
16 and to_require_detach.
17 * infttrace.c (hppa_require_attach): Update comment.
18 * target.c (cleanup_target, update_current_target)
19 (init_dummy_target, setup_target_debug): Delete references to
20 to_require_attach and to_require_detach.
21 (find_default_require_detach, find_default_require_attach)
22 (debug_to_require_attach, debug_to_require_detach): Remove
23 functions.
24 * target.h (struct target_ops): Remove to_require_attach
25 and to_require_detach.
26 (target_require_attach, target_require_detach): Delete macros.
27 (find_default_require_detach, find_default_require_attach): Delete
28 prototypes.
29 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
30
31 2002-12-11 Andrew Cagney <ac131313@redhat.com>
32
33 * frame.c (get_frame_extra_info): New function.
34 * frame.h (get_frame_extra_info): Declare.
35
36 2002-12-11 Andrew Cagney <ac131313@redhat.com>
37
38 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
39 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
40 with `struct frame_id'.
41 (set_longjmp_resume_breakpoint): Ditto.
42 * infrun.c (handle_inferior_event): Update.
43 * breakpoint.c (watch_command_1, until_break_command): Update.
44 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
45 (handle_inferior_event, step_over_function): Update.
46 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
47 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
48 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
49 * infcmd.c (finish_command, run_stack_dummy): Update.
50
51 2002-12-11 Kevin Buettner <kevinb@redhat.com>
52
53 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
54 (dwarf2_non_const_array_bound_ignored)
55 (dwarf2_missing_line_number_section)
56 (dwarf2_statement_list_fits_in_line_number_section)
57 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
58 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
59 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
60 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
61 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
62 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
63 (dwarf2_missing_member_fn_type_complaint)
64 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
65 (dwarf2_const_value_length_mismatch)
66 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
67 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
68 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
69 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
70 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
71 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
72 complaints using deprecated struct..
73 (dwarf2_non_const_array_bound_ignored_complaint)
74 (dwarf2_complex_location_expr_complaint)
75 (dwarf2_unsupported_at_frame_base_complaint)
76 (dwarf2_const_value_length_mismatch_complaint)
77 (dwarf2_macros_too_long_complaint)
78 (dwarf2_macro_malformed_definition_complaint)
79 (dwarf2_invalid_attrib_class_complaint): New functions.
80 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
81 (read_structure_scope, read_array_type, read_common_block)
82 (read_tag_pointer_type, read_base_type, read_partial_die)
83 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
84 (new_symbol, dwarf2_const_value, read_type_die)
85 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
86 (parse_macro_definition, dwarf_decode_macros): Replace calls to
87 complain() with, possibly indirect, calls to complaint().
88
89 2002-12-11 Andrew Cagney <cagney@redhat.com>
90
91 * frame.c (deprecated_get_frame_saved_regs): Rename
92 get_frame_saved_regs.
93 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
94 * sparc-tdep.c: Update.
95 * hppa-tdep.c: Update.
96 * h8500-tdep.c: Update.
97
98 2002-12-11 Kevin Buettner <kevinb@redhat.com>
99
100 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
101 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
102 ``char *'' for return and parameter types.
103 * gdbarch.h, gdbarch.c: Regenerate.
104 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
105 return type from ``char *'' to ``const char *''.
106 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
107 const.
108
109 2002-12-11 Mark Kettenis <kettenis@gnu.org>
110
111 * i386-tdep.c: Include "dummy-frame.h".
112 (i386_frame_chain, i386_frame_saved_pc): Replace
113 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
114 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
115
116 2002-12-10 Andrew Cagney <cagney@redhat.com>
117
118 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
119 Change to a function with predicate.
120 * gdbarch.h, gdbarch.c: Re-generate.
121 * frame.c (get_prev_frame): Update. Test
122 DEPRECATED_INIT_FRAME_PC_P.
123 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
124 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
125 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
126 * alpha-tdep.c (alpha_gdbarch_init): Update.
127 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
128 * mips-tdep.c (mips_gdbarch_init): Update.
129 * i386-interix-tdep.c (i386_interix_init_abi): Update.
130 * arm-tdep.c: Update comments.
131 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
132 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
133 * frv-tdep.c (frv_gdbarch_init): Ditto.
134 * x86-64-tdep.c (x86_64_init_abi): Ditto.
135 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
136 * s390-tdep.c (s390_gdbarch_init): Ditto.
137 * v850-tdep.c (v850_gdbarch_init): Ditto.
138 * vax-tdep.c (vax_gdbarch_init): Ditto.
139 * sh-tdep.c (sh_gdbarch_init): Ditto.
140 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
141 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
142 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
143 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
144 * i386-tdep.c (i386_gdbarch_init): Ditto.
145 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
146 * cris-tdep.c (cris_gdbarch_init): Ditto.
147 * avr-tdep.c (avr_gdbarch_init): Ditto.
148 * arm-tdep.c (arm_gdbarch_init): Ditto.
149 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
150 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
151
152 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
153
154 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
155 CHILD_FOLLOW_FORK.
156 * hppah-nat.c (saved_vfork_pid): Add.
157 (child_post_follow_vfork): Remove.
158 (child_follow_fork): New function.
159 (child_wait): Call detach_breakpoints after receiving the child vfork.
160 Call child_resume directly instead of going through resume ().
161 Make sure we have the exec before reporting the vfork.
162 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
163 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
164 (follow_fork): New function. Call target_follow_fork.
165 (follow_inferior_reset_breakpoints): New function broken out from
166 old follow_inferior_fork.
167 (resume): Remove hack to follow exec after vfork.
168 * inftarg.c (child_post_follow_vfork): Remove.
169 (child_follow_fork): New function.
170 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
171 * target.c (cleanup_target): Replace to_post_follow_vfork with
172 to_follow_fork.
173 (update_current_target): Likewise.
174 (setup_target_debug): Likewise.
175 (debug_to_post_follow_vfork): Remove.
176 (debug_to_follow_fork): New function.
177 * target.h (struct target_ops): Replace to_post_folow_vfork with
178 to_follow_fork.
179 (child_post_follow_vfork): Remove prototype.
180 (child_follow_fork): Add prototype.
181 (target_post_follow_vfork): Remove macro.
182 (target_follow_fork): Add macro.
183
184 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
185
186 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
187 (child_post_follow_vfork): Cancel pending exec event if we follow
188 the parent.
189 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
190 events have been processed. Return a fake TARGET_WAITKIND_EXECD
191 event at the following wait call if necessary.
192 * infrun.c (follow_vfork): Don't follow_exec here.
193 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
194 case about HP/UX 10.20. Remove code pushed down to
195 hppah-nat.c:child_wait.
196 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
197 vfork_in_flight is set.
198
199 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
200
201 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
202 for the parent's fork event.
203 * infrun.c (handle_inferior_event): Only expect one fork event.
204 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
205 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
206
207 2002-12-10 Andrew Cagney <ac131313@redhat.com>
208
209 * PROBLEMS: Delete reference to PR gdb/725.
210
211 * MAINTAINERS (gdb.c++): Add David Carlton.
212
213 2002-12-09 David Carlton <carlton@math.stanford.edu>
214
215 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
216 * cli/cli-cmds.c: Ditto.
217
218 2002-12-09 Andrew Cagney <cagney@redhat.com>
219
220 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
221 function address in <>.
222 * gdbarch.c: Re-generate.
223
224 2002-12-09 David Carlton <carlton@math.stanford.edu>
225
226 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
227
228 2002-12-09 David Carlton <carlton@math.stanford.edu>
229
230 * linespec.c (symtab_from_filename): New function.
231 (decode_line_1): Move code into symtab_from_filename.
232
233 2002-12-09 Kevin Buettner <kevinb@redhat.com>
234
235 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
236
237 2002-12-07 Andrew Cagney <ac131313@redhat.com>
238
239 * f-valprint.c (info_common_command): Use get_frame_pc.
240 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
241 * ax-gdb.c (agent_command): Ditto.
242 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
243 (rs6000_pop_frame): Ditto.
244 (rs6000_frameless_function_invocation): Ditto.
245 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
246 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
247 * macroscope.c (default_macro_scope): Ditto.
248 * stack.c (print_frame_info_base): Ditto.
249 (print_frame, frame_info, print_frame_label_vars): Ditto.
250 (return_command, func_command, get_frame_language): Ditto.
251 * infcmd.c (finish_command): Ditto.
252 * dummy-frame.c (cached_find_dummy_frame): Ditto.
253 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
254 (break_at_finish_at_depth_command_1): Ditto.
255 (break_at_finish_command_1): Ditto.
256 (until_break_command, get_catch_sals): Ditto.
257 * blockframe.c (func_frame_chain_valid): Ditto.
258 (frameless_look_for_prologue): Ditto.
259 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
260
261 2002-12-08 Andrew Cagney <ac131313@redhat.com>
262
263 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
264 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
265
266 2002-12-08 Andrew Cagney <ac131313@redhat.com>
267
268 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
269 to pure functions.
270 * gdbarch.h, gdbarch.c: Re-generate.
271 * frame.c (get_prev_frame): Explictly assign prev's pc with value
272 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
273
274 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
275 declaration to a function returning a CORE_ADDR.
276 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
277 * arch-utils.c (init_frame_pc_noop): Return the PC value.
278 (init_frame_pc_default): Ditto.
279 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
280 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
281 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
282 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
283 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
284 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
285
286 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
287 to init_frame_pc_noop.
288 (i386_interix_init_frame_pc): Delete function.
289 * z8k-tdep.c (init_frame_pc): Delete function.
290 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
291 (INIT_FRAME_PC_FIRST): Ditto.
292 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
293 (INIT_FRAME_PC_FIRST): Ditto.
294 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
295 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
296 init_frame_pc_noop.
297 (INIT_FRAME_PC_FIRST): Convert to an expression.
298 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
299
300 2002-12-08 Andrew Cagney <ac131313@redhat.com>
301
302 * blockframe.c: Use get_frame_base instead of directly accessing
303 the `struct frame_info' member frame.
304 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
305 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
306
307 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
308
309 * Makefile.in (readline_h): Define.
310 (completer.o): Depend on readline_h.
311 (corelow.o): Ditto.
312 (event-top.o): Ditto.
313 (exec.o): Ditto.
314 (solib.o): Ditto.
315 (source.o): Ditto.
316 (symfile.o): Ditto.
317 (symmisc.o): Ditto.
318 (top.o): Ditto.
319 (tracepoint.o): Ditto.
320 (utils.o): Ditto.
321 (cli-dump.o): Ditto.
322 (tui-hooks.o): Ditto.
323 (tuiWin.o): Ditto.
324
325 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
326
327 More cleanup from import of readline 4.3.
328 * completer.h (complete_line, readline_line_completion_function):
329 Update prototypes.
330 (line_completion_function): Removed, not used outside of completer.c.
331 * completer.c (readline_line_completion_function,
332 complete_function, line_completion_function): Use const for first
333 parameter.
334 (line_completion_function): Make static.
335 (filename_completer): filename_completion_function is now called
336 rl_filename_completion_function
337 * corelow.c: Include <readline/readline.h>.
338 * exec.c: Ditto.
339 * solib.c: Ditto.
340 * source.c: Ditto.
341 * symfile.c: Ditto.
342 * symmisc.c: Ditto.
343 * top.c (init_main): No need to coerce
344 readline_line_completion_function anymore.
345 * cli/cli-dump.c: Include <readline/readline.h>.
346
347 2002-12-08 Andrew Cagney <ac131313@redhat.com>
348
349 * stack.c (frame_info): Use get_prev_frame.
350 * blockframe.c (frame_address_in_block): Ditto.
351 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
352 (rs6000_frameless_function_invocation): Ditto.
353 (rs6000_frame_saved_pc): Ditto.
354 (rs6000_frame_chain): Ditto.
355 * arch-utils.c (init_frame_pc_default): Ditto.
356
357 2002-12-08 Andrew Cagney <ac131313@redhat.com>
358
359 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
360 Delete redundant definition.
361
362 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
363
364 Import of readline 4.3:
365 * cli/cli-cmds.c: Include readline/tilde.h.
366 * cli/cli-setshow.c: Ditto.
367 * defs.h: Don't declare tilde_expand anymore, since readline
368 exports it.
369
370 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
371
372 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
373 -Werror on this file.
374
375 2002-12-07 Andrew Cagney <ac131313@redhat.com>
376
377 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
378 the format name.
379 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
380 * gdbarch.c: Regenerate.
381
382 2002-12-06 Andrew Cagney <ac131313@redhat.com>
383
384 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
385 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
386 provide a default value.
387 * gdbarch.h, gdbarch.c: Regenerate.
388 * frame.c (get_prev_frame): Update. Check
389 DEPRECATED_INIT_FRAME_PC_FIRST_P.
390 * s390-tdep.c (s390_gdbarch_init): Update.
391 * mips-tdep.c (mips_gdbarch_init): Update.
392 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
393 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
394 * alpha-tdep.c (alpha_gdbarch_init): Update.
395
396 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
397
398 * ia64-linux-nat.c: Include gdb_string.h.
399 * alpha-nat.c: Ditto.
400 * ppc-linux-nat.c: Ditto.
401 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
402 Update dependencies.
403
404 2002-12-05 Andrew Cagney <ac131313@redhat.com>
405
406 * gdbthread.h: Include "frame.h".
407 (struct thread_info): Replace step_frame_address with
408 step_frame_id.
409 * inferior.h: Include "frame.h".
410 (step_frame_id): Replace external variable step_frame_address.
411 * gdbthread.h (save_infrun_state): Replace step_frame_address
412 parameter with step_frame_id parameter.
413 (load_infrun_state): Ditto.
414 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
415 * infcmd.c (step_frame_id, step_1, step_once): Update.
416 * thread.c (load_infrun_state, save_infrun_state): Update.
417 * infrun.c (clear_proceed_status, save_inferior_status): Update.
418 (handle_inferior_event, step_over_function): Update.
419 (normal_stop, context_switch, restore_inferior_status): Update.
420 (struct inferior_status): Replace step_frame_address with
421 step_frame_id.
422
423 2002-12-05 David Carlton <carlton@math.stanford.edu>
424
425 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
426 DW_TAG_member as well as a declaration as being a C++ static data
427 member.
428 (read_structure_scope): Combine tests for DW_TAG_member and
429 DW_TAG_variable.
430
431 2002-12-05 David Carlton <carlton@math.stanford.edu>
432
433 * linespec.c (decode_compound): New function.
434 (decode_line_1): Move code into decode_compound.
435
436 2002-12-05 David Carlton <carlton@math.stanford.edu>
437
438 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
439 argument.
440 (lookup_symbol_aux): Do the 'field_of_this' check before checking
441 the static block. See PR gdb/804.
442
443 2002-12-05 David Carlton <carlton@math.stanford.edu>
444
445 * symtab.c (lookup_symbol_aux_block): New function.
446 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
447
448 2002-12-05 Andrew Cagney <ac131313@redhat.com>
449
450 * gdbarch.sh: Dump the predicate function and macro values.
451 (read): Print error on standard error.
452 * gdbarch.c: Regenerate.
453
454 2002-12-04 Kevin Buettner <kevinb@redhat.com>
455
456 * Makefile.in (mips_tdep_h): Define.
457 (mips-tdep.o): Add mips_tdep_h to dependency list.
458 * mips-tdep.h: New file.
459 * mips-tdep.c (mips-tdep.h): Include.
460 (enum mips_abi): Move to mips-tdep.h.
461 (mips_abi): New function.
462
463 2002-12-04 David Carlton <carlton@math.stanford.edu>
464
465 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
466
467 2002-12-04 David Carlton <carlton@math.stanford.edu>
468
469 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
470 function.
471 (lookup_symbol_aux_minsyms): New function.
472
473 2002-12-04 J. Brobecker <brobecker@gnat.com>
474
475 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
476
477 2002-12-04 J. Brobecker <brobecker@gnat.com>
478
479 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
480 which is an obsolete macro name.
481
482 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
483
484 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
485 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
486
487 2002-12-03 H.J. Lu (hjl@gnu.org)
488
489 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
490 (create_breakpoints): Make sure the addr_string field is not
491 NULL.
492
493 2002-12-03 Andrew Cagney <ac131313@redhat.com>
494
495 * sparc-nat.c (fetch_inferior_registers)
496 (store_inferior_registers): Add comment on problem of LWP vs
497 threads.
498
499 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
500 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
501 (lin_lwp_store_registers): Remove.
502 (init_lin_lwp_ops): Use fetch_inferior_registers
503 and store_inferior_registers directly.
504 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
505 (store_inferior_registers): Likewise.
506 Fix PR gdb/725.
507
508 2002-12-03 Andrew Cagney <ac131313@redhat.com>
509
510 * frame.h (get_frame_id): Convert to a function.
511 (null_frame_id, frame_id_p): Declare.
512 (frame_id_eq, frame_id_inner): Declare.
513 (frame_id_build): New function.
514 * frame.c (get_frame_id): Update. Use null_frame_id.
515 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
516 frame_id_inner.
517 (null_frame_id, frame_id_p): Define.
518 (frame_id_eq, frame_id_inner): Define.
519 (frame_id_build): New function.
520 * varobj.c (varobj_create): Update.
521 (varobj_update): Update.
522 * valops.c (value_assign): Update.
523 (new_root_variable): Update.
524 * infrun.c (save_inferior_status): Update.
525 * breakpoint.c (watch_command_1): Update.
526
527 2002-12-03 J. Brobecker <brobecker@gnat.com>
528
529 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
530 (SNAP2): Likewise.
531
532 2002-12-03 Andrew Cagney <cagney@redhat.com>
533
534 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
535 patch.
536
537 * PROBLEMS: Mention PR gdb/725.
538
539 2002-12-03 Andreas Schwab <schwab@suse.de>
540
541 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
542
543 2002-12-02 Adam Fedor <fedor@gnu.org>
544 Klee Dienes <kdienes@apple.com>
545
546 * objc-lang.c (objc_printstr): Add width arg to match
547 printstr prototype.
548 (compare_selectors): Add 'const' to arg types.
549 (compare_classes): Likewise.
550 (find_imps): Cast msym pointer to avoid compiler warning.
551 (print_object_command): Validate the address before
552 passing it to the print routine.
553 (find_objc_msgcall_submethod): Change function argument to
554 return an int.
555 * objc-lang.h: Add 'extern' to all function declarations.
556 (value_nsstring): Add declaration.
557
558 2002-12-02 J. Brobecker <brobecker@gnat.com>
559
560 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
561 Fixes a build failure on HP/UX.
562
563 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
564 failure on HP/UX.
565 (hpread_has_name): Advance declaration to avoid a compilation warning.
566 (pst_syms_count): Add missing variable type. By change, the compiler
567 was defaulting to int, which seems a good choice. Fixes a compilation
568 warning.
569 (pst_syms_size): Likewise.
570
571 2002-12-02 J. Brobecker <brobecker@gnat.com>
572
573 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
574 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
575 later to set the proper gdbarch methods depending on the osabi.
576 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
577
578 2002-12-02 J. Brobecker <brobecker@gnat.com>
579
580 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
581 * osabi.c (gdb_osabi_name): Add strings images for the two new
582 enum values.
583 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
584
585 2002-12-02 Andrew Cagney <ac131313@redhat.com>
586
587 * MAINTAINERS (Java): Global maintainers are responible for Java.
588 (Past Maintainers): Mention both Anthony Green and Per Bothner as
589 part Java maintainers.
590
591 2002-12-02 J. Brobecker <brobecker@gnat.com>
592
593 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
594 Fixes a compilation failure on AiX.
595
596 2002-12-02 J. Brobecker <brobecker@gnat.com>
597
598 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
599 why aix-thread.o is not listed.
600
601 2002-12-01 Andrew Cagney <ac131313@redhat.com>
602
603 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
604 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
605 * gdbarch.h, gdbarch.c: Re-generate.
606 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
607 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
608 * config/pa/tm-hppa.h, frame.h: Update.
609 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
610 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
611 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
612 * cris-tdep.c, alpha-tdep.c: Update.
613 * frame.c (set_unwind_by_pc, create_new_frame): Use either
614 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
615 (get_prev_frame): Ditto.
616
617 2002-11-30 Andrew Cagney <cagney@redhat.com>
618
619 * exec.c (xfer_memory): Replace boolean with int.
620 * p-exp.y: Use 0 instead of false.
621 * corelow.c (gdb_check_format): Change return type to int from
622 boolean.
623 * utils.c: Don't include <curses.h> or <term.h> first.
624
625 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
626
627 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
628 (m68hc11_register_byte): Remove.
629 (m68hc11_gdbarch_init): Don't set the above.
630
631 2002-11-29 Andrew Cagney <cagney@redhat.com>
632
633 * remote-mips.c (mips_initialize): Force a selected frame rebuild
634 by calling get_selected_frame.
635 * ocd.c (ocd_start_remote): Use get_selected frame instead of
636 set_current_frame, create_new_frame, select_frame and
637 get_current_frame.
638 * remote-e7000.c (e7000_start_remote): Ditto.
639 * remote-mips.c (common_open): Ditto
640 * remote-rdp.c (remote_rdp_open): Ditto.
641
642 2002-11-29 Andreas Schwab <schwab@suse.de>
643
644 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
645 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
646 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
647 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
648 read_memory_unsigned_integer instead of read_memory_integer when
649 dealing with addresses and instruction opcodes.
650 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
651 (m68k_linux_frame_saved_pc): Likewise.
652
653 2002-11-29 Andrew Cagney <ac131313@redhat.com>
654
655 * stack.c (selected_frame, select_frame): Move from here ...
656 * frame.c (selected_frame, select_frame): ... to here. Include
657 "language.h".
658 * Makefile.in (frame.o): Update dependencies.
659 * frame.c (get_selected_frame): New function.
660 * frame.h (get_selected_frame): Declare.
661 (deprecated_selected_frame): Rename selected_frame.
662 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
663 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
664 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
665 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
666 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
667 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
668 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
669 * z8k-tdep.c, cli/cli-cmds.c: Update.
670
671 2002-11-29 Andrew Cagney <ac131313@redhat.com>
672
673 * frame.h (get_selected_block): Add comments.
674
675 2002-11-28 Andrew Cagney <ac131313@redhat.com>
676
677 * frame.c (pc_notcurrent): New function.
678 (find_frame_sal): New function.
679 * frame.h (find_frame_sal): Declare.
680 (struct symtab_and_line): Add opaque declaration.
681 * stack.c (print_frame_info_base): Use find_frame_sal instead of
682 find_pc_line.
683 (frame_info): Ditto.
684 * ada-lang.c (find_printable_frame): Ditto.
685
686 2002-11-28 J. Brobecker <brobecker@gnat.com>
687
688 * configure.in: Check that the pthdebug library is recent enough
689 before enabling thread support on native AiX.
690 * configure: Regenerate.
691
692 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
693 from the list of object files as it is now appended by configure
694 if thread support is enabled.
695 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
696 if thread support is enabled.
697
698 2002-11-28 Andrew Cagney <cagney@redhat.com>
699
700 * stack.c (get_selected_block): In-line get_current_block.
701 * frame.h (get_current_block): Delete declaration.
702 * blockframe.c (get_current_block): Delete function.
703
704 2002-11-28 Andrew Cagney <ac131313@redhat.com>
705
706 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
707 USE_GENERIC_DUMMY_FRAMES.
708 * gdbarch.h, gdbarch.c: Regenerate.
709 * valops.c, frame.c: Update.
710 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
711 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
712 * config/pa/tm-hppa.h, blockframe.c: Update.
713 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
714 * m68k-tdep.c, alpha-tdep.c: Ditto.
715
716 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
717 * mips-tdep.c: Ditto.
718
719 2002-11-27 Andrew Cagney <ac131313@redhat.com>
720
721 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
722 (USE_GENERIC_DUMMY_FRAMES): Default to true.
723 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
724 * gdbarch.c, gdbarch.h: Re-generate.
725 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
726 (CALL_DUMMY_LOCATION): Delete macro definition.
727 (PC_IN_CALL_DUMMY): Delete macro definitions.
728
729 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
730 default is already generic_pc_in_call_dummy.
731 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
732 * v850-tdep.c (v850_gdbarch_init): Ditto.
733 * sh-tdep.c (sh_gdbarch_init): Ditto.
734 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
735 * mips-tdep.c (mips_gdbarch_init): Ditto.
736 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
737 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
738 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
739 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
740 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
741 * avr-tdep.c (avr_gdbarch_init): Ditto.
742
743 * arm-tdep.c (arm_gdbarch_init): Do not set
744 use_generic_dummy_frames, default is already 1.
745 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
746 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
747 * v850-tdep.c (v850_gdbarch_init): Ditto.
748 * sh-tdep.c (sh_gdbarch_init): Ditto.
749 * s390-tdep.c (s390_gdbarch_init): Ditto.
750 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
751 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
752 * mips-tdep.c (mips_gdbarch_init): Ditto.
753 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
754 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
755 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
756 * i386-tdep.c (i386_gdbarch_init): Ditto.
757 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
758 * frv-tdep.c (frv_gdbarch_init): Ditto.
759 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
760 * cris-tdep.c (cris_gdbarch_init): Ditto.
761 * avr-tdep.c (avr_gdbarch_init): Ditto.
762
763 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
764 call_dummy_location, default is already AT_ENTRY_POINT.
765 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
766 * v850-tdep.c (v850_gdbarch_init): Ditto.
767 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
768 * sh-tdep.c (sh_gdbarch_init): Ditto.
769 * s390-tdep.c (s390_gdbarch_init): Ditto.
770 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
771 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
772 * mips-tdep.c (mips_gdbarch_init): Ditto.
773 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
774 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
775 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
776 * i386-tdep.c (i386_gdbarch_init): Ditto.
777 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
778 * frv-tdep.c (frv_gdbarch_init): Ditto.
779 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
780 * cris-tdep.c (cris_gdbarch_init): Ditto.
781 * avr-tdep.c (avr_gdbarch_init): Ditto.
782 * arm-tdep.c (arm_gdbarch_init): Ditto.
783 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
784
785 2002-11-28 Andrew Cagney <cagney@redhat.com>
786
787 * frame.h: Update comments on set_current_frame, create_new_frame,
788 flush_cached_frames, reinit_frame_cache, select_frame and
789 selected_frame.
790
791 2002-11-27 Andrew Cagney <cagney@redhat.com>
792
793 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
794 deprecated pc_in_call_dummy function.
795 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
796 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
797 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
798 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
799 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
800
801 2002-11-26 Martin M. Hunt <hunt@redhat.com>
802
803 * Makefile.in: Remove Tix dependencies.
804 * acinclude.m4: Ditto.
805 * aclocal.m4: Ditto.
806 * configure.in: Ditto.
807 * configure: Regenerated.
808
809 2002-11-26 Andrew Cagney <ac131313@redhat.com>
810
811 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
812 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
813 * gdbarch.c: Re-generate.
814
815 2002-11-26 Andrew Cagney <ac131313@redhat.com>
816
817 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
818 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
819 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
820 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
821 pc_in_call_dummy_at_entry_point.
822 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
823 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
824 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
825 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
826 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
827 pc_in_call_dummy_on_stack.
828 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
829 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
830 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
831 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
832 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
833
834 2002-11-26 Andrew Cagney <ac131313@redhat.com>
835
836 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
837 pc_in_call_dummy_before_text_end
838 (deprecated_pc_in_call_dummy_after_text_end): Rename
839 pc_in_call_dummy_after_text_end.
840 (deprecated_pc_in_call_dummy_on_stack): Rename
841 pc_in_call_dummy_on_stack.
842 (deprecated_pc_in_call_dummy_at_entry_point): Rename
843 pc_in_call_dummy_at_entry_point.
844 * m68k-tdep.c (m68k_gdbarch_init): Update.
845 * s390-tdep.c (s390_gdbarch_init): Update.
846 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
847 * vax-tdep.c (vax_gdbarch_init): Update.
848 * sparc-tdep.c (sparc_gdbarch_init): Update.
849 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
850 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
851 * i386-tdep.c (i386_gdbarch_init): Update.
852 * frv-tdep.c (frv_gdbarch_init): Update.
853 * cris-tdep.c (cris_gdbarch_init): Update.
854 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
855 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
856 (deprecated_pc_in_call_dummy_after_text_end)
857 (deprecated_pc_in_call_dummy_on_stack)
858 (deprecated_pc_in_call_dummy_at_entry_point): Update.
859 * alpha-tdep.c (alpha_gdbarch_init): Update.
860
861 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
862
863 * acconfig.h (HAVE_PREAD64): Add.
864 * configure.in: Check for pread64.
865 * config.in: Regenerated.
866 * configure: Regenerated.
867 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
868 * linux-proc.c (linux_proc_xfer_memory): New function.
869 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
870
871 2002-11-25 David Carlton <carlton@math.stanford.edu>
872
873 * dwarf2read.c (scan_partial_symbols): Descend into namespace
874 pdi's with no name.
875
876 2002-11-25 Andrew Cagney <ac131313@redhat.com>
877
878 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
879 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
880
881 2002-11-25 Jim Blandy <jimb@redhat.com>
882
883 * symfile.c (init_objfile_sect_indices): New function.
884 (default_symfile_offsets): Move the section-index-initializing
885 stuff into init_objfile_sect_indices, and call that.
886
887 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
888 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
889
890 * symfile.c (syms_from_objfile): Adjust indentation.
891
892 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
893 || info_verbose isn't true.
894
895 2002-11-24 Andrew Cagney <ac131313@redhat.com>
896
897 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
898 default to get_frame_base.
899 * gdbarch.h, gdbarch.c: Regenerate.
900 * arch-utils.c (default_frame_address): Delete function.
901 * arch-utils.h (default_frame_address): Delete declaration
902
903 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
904
905 * varobj.c (find_frame_addr_in_frame_chain):
906 Use get_frame_base instead of FRAME_FP,
907 obvious fix.
908
909 2002-11-19 Andrew Cagney <ac131313@redhat.com>
910
911 * frame.h (FRAME_FP): Delete macro.
912 (get_frame_base): New function declaration.
913 * frame.c (get_frame_base): New function.
914 (get_frame_id): Use ->frame.
915 (frame_find_by_id): Rewrite to use get_frame_id.
916 * blockframe.c: Use get_frame_base instead of FRAME_FP.
917 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
918 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
919 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
920 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
921 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
922 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
923
924 2002-11-24 Andrew Cagney <ac131313@redhat.com>
925
926 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
927
928 2002-11-24 Andrew Cagney <ac131313@redhat.com>
929
930 * frame.c (set_unwind_by_pc): Revert change below, use
931 PC_IN_CALL_DUMMY.
932 (get_prev_frame): Ditto.
933
934 2002-11-24 Andrew Cagney <ac131313@redhat.com>
935
936 * dummy-frame.c (pc_in_dummy_frame): New function.
937 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
938 (find_dummy_frame): Update comment.
939 (generic_pop_current_frame): Use get_frame_type.
940 * dummy-frame.h (pc_in_dummy_frame): Declare.
941 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
942 (create_new_frame): Use pc_in_dummy_frame.
943 (get_prev_frame): Use pc_in_dummy_frame.
944 (frame_saved_regs_register_unwind): Use get_prev_frame.
945 (deprecated_generic_get_saved_register): Use get_prev_frame.
946
947 2002-11-23 Andrew Cagney <ac131313@redhat.com>
948
949 * blockframe.c (find_frame_addr_in_frame_chain): Move function
950 from here ...
951 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
952 (varobj_create): Note that frame ID should be used.
953 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
954
955 2002-11-23 Andrew Cagney <ac131313@redhat.com>
956
957 * breakpoint.c: Include "gdb_assert.h".
958 (deprecated_frame_in_dummy): Assert that generic dummy frames are
959 not being used.
960 * Makefile.in (breakpoint.o): Update dependencies.
961 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
962 deprecated_frame_in_dummy.
963 * stack.c (print_frame_info_base): Ditto.
964 (frame_info): Ditto.
965 (print_frame_info_base): Ditto. Delete dead code.
966
967 2002-11-23 Andreas Schwab <schwab@suse.de>
968
969 * Makefile.in (m68k_tdep_h): Define.
970 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
971 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
972 * m68k-tdep.c: Move register number enum ...
973 * m68k-tdep.h: ... to this new file and rename the constants from
974 E_* to M68K_*. All uses changed.
975 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
976 * abug-rom.c: Include "m68k-tdep.h". Use
977 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
978 * cpu32bug-rom.c: Likewise.
979 * dbug-rom.c: Likewise.
980 * m68k-tdep.c: Likewise.
981 * m68klinux-nat.c: Likewise.
982 * remote-est.c: Likewise.
983 * rom68k-rom.c: Likewise.
984 * config/m68k/tm-linux.h: Likewise.
985
986 2002-11-23 Andrew Cagney <ac131313@redhat.com>
987
988 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
989 dummy frame initialization code.
990 * mips-tdep.c (mips_gdbarch_init): Ditto.
991
992 2002-11-22 Christopher Faylor <cgf@redhat.com>
993
994 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
995 attach will hang.
996
997 2002-11-22 Andrew Cagney <ac131313@redhat.com>
998
999 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1000 to default_frame_address.
1001 * gdbarch.h, gdbarch.c: Re-generate.
1002
1003 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1004 or frame_locals_address to default_frame_address.
1005 * m68k-tdep.c (m68k_gdbarch_init): Update.
1006 * i386-tdep.c (i386_gdbarch_init): Update.
1007 * frv-tdep.c (frv_gdbarch_init): Update.
1008 * sh-tdep.c (sh_gdbarch_init): Update.
1009 * v850-tdep.c (v850_gdbarch_init): Update.
1010 * sparc-tdep.c (sparc_gdbarch_init): Update.
1011 * mips-tdep.c (mips_gdbarch_init): Update.
1012 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1013 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1014 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1015
1016 * cris-tdep.c (cris_frame_args_address): Delete function.
1017 (cris_frame_locals_address): Delete function.
1018 (cris_gdbarch_init): Do not set frame_args_address or
1019 frame_locals_address.
1020
1021 2002-11-22 Michael Snyder <msnyder@redhat.com>
1022
1023 * thread-db.c (thread_db_load): Tell the user what's going on
1024 if dlopen fails on libthread_db.
1025
1026 2002-11-23 Andreas Schwab <schwab@suse.de>
1027
1028 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1029 invariant return values.
1030
1031 2002-11-22 Andreas Schwab <schwab@suse.de>
1032
1033 * valops.c (value_slice): Move declaration of `offset' to avoid
1034 warning.
1035
1036 2002-11-22 Christopher Faylor <cgf@redhat.com>
1037
1038 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1039 (struct so_stuff): Add end_addr field.
1040 (register_loaded_dll): Calculate and store end address of loaded dll.
1041 (solib_address): New function.
1042 (child_solib_loaded_library_pathname): Pass carefully constructed
1043 section info to safe_symbol_file_add rather than ignoring it.
1044 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1045 DLL is loaded.
1046 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1047 (child_create_inferior): Fix a compiler warning.
1048 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1049 (solib_address): Declare new function.
1050
1051 2002-11-22 Andreas Schwab <schwab@suse.de>
1052
1053 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1054 and FPS registers.
1055
1056 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1057
1058 * maint.c (_initialize_maint_cmds): Fix typo. From
1059 Francesco Potorti` <pot@gnu.org>.
1060
1061 2002-11-21 Andrew Cagney <cagney@redhat.com>
1062
1063 * mips-tdep.c (mips_dump_tdep): Delete references to
1064 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1065 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1066 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1067 * printcmd.c (build_address_symbolic): Delete calls to
1068 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1069 (address_info): Ditto.
1070 Fix PR gdb/773.
1071
1072 2002-11-19 Klee Dienes <kdienes@apple.com>
1073 Adam Fedor <fedor@gnu.org>
1074
1075 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1076 the ability to explicitly specify the quote characters and word
1077 break characters; if NULL is specified for either, use the old
1078 behavior of using the characters used by the completer.
1079 (skip_chars): New function. Convenience wrapper around
1080 skip_quoted_chars to provide the original skip_chars behavior.
1081 * completer.h (skip_quoted_chars): Add prototype.
1082
1083 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1084
1085 Problems reported by Paul Eggert.
1086 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1087
1088 2002-11-19 Andreas Schwab <schwab@suse.de>
1089
1090 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1091 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1092 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1093 (m68k_linux_frame_saved_pc): Move to ...
1094 * m68klinux-tdep.c: ... here. New file.
1095 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1096 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1097
1098 2002-11-19 Adam Fedor <fedor@gnu.org>
1099
1100 * objc-exp.y: Revert to old skip_quoted usage.
1101
1102 2002-11-19 Adam Fedor <fedor@gnu.org>
1103
1104 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1105 (objc_lang_h): Define.
1106 (YYFILES): Add objc-exp.tab.c.
1107 (local-maintainer-clean): Remove objc-exp.tab.c.
1108 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1109
1110 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1111
1112 * p-exp.y (typecast rule): Add automatic dereference of
1113 pascal classes if needed.
1114 (THIS): Set current_type.
1115 Automatically dereference pascal classes.
1116 (typebase rule): Add ^typebase recognition.
1117
1118 2002-11-18 Adam Fedor <fedor@gnu.org>
1119
1120 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1121 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1122 (op_name): Handle OP_OBJC_SELF.
1123 * Makefile.in (expprint.o): Add additional depends.
1124
1125 2002-11-18 Adam Fedor <fedor@gnu.org>
1126
1127 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1128 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1129 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1130 * objc-exp.y: Likewise.
1131
1132 2002-11-18 Adam Fedor <fedor@gnu.org>
1133
1134 * gdb/parser-defs.h: (struct objc_class_str): New structure
1135 for parsing ObjC classes.
1136
1137 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1138
1139 * stack.c (frame_relative_level): Copy function from here ...
1140 * frame.c (frame_relative_level): ...to here.
1141
1142 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1143
1144 * frame.h (enum frame_type): Define.
1145 (get_frame_type): Declare.
1146 (struct frame_info): Add field `type'. Delete field
1147 signal_handler_caller.
1148 (deprecated_set_frame_signal_handler_caller): Declare.
1149 * frame.c (get_frame_type): New function.
1150 (deprecated_set_frame_type): New function.
1151 (create_new_frame): Set the frame's type.
1152 (get_prev_frame): Similar.
1153 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1154 * s390-tdep.c: Ditto.
1155 * m68klinux-nat.c: Ditto.
1156 * ns32k-tdep.c: Ditto.
1157 * x86-64-linux-tdep.c: Ditto.
1158 * vax-tdep.c: Ditto.
1159 * rs6000-tdep.c: Ditto.
1160 * ppc-linux-tdep.c: Ditto.
1161 * i386-interix-tdep.c: Ditto.
1162 * mips-tdep.c: Ditto.
1163 * m68k-tdep.c: Ditto.
1164 * hppa-tdep.c: Ditto.
1165 * ia64-tdep.c: Ditto.
1166 * cris-tdep.c: Ditto.
1167 * arm-tdep.c: Ditto.
1168 * alpha-tdep.c: Ditto.
1169 * i386-tdep.c: Ditto.
1170 * stack.c: Ditto.
1171 * ada-lang.c: Ditto.
1172 * blockframe.c: Update.
1173 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1174 deprecated_set_frame_type instead of signal_handler_caller.
1175 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1176 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1177 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1178
1179 2002-11-18 Klee Dienes <kdienes@apple.com>
1180
1181 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1182
1183 2002-11-18 Klee Dienes <kdienes@apple.com>
1184
1185 * buildsym.c (pop_context): Add comment.
1186
1187 2002-11-18 Klee Dienes <kdienes@apple.com>
1188
1189 * buildsym.h (pop_context): Convert to function, defined in
1190 buildsym.c.
1191 * buildsym.c: Include gdb_assert.h.
1192 (pop_context): Implement as C function. Add check for stack
1193 underflow.
1194 * dbxread.c (process_one_symbol): Complain and stop processing
1195 that symbol if we are already at the top of the context stack for
1196 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1197 when processing N_RBRAC.
1198
1199 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1200
1201 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1202 define.
1203 (struct target_waitstatus): Add opaque definition.
1204 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1205 * exec.c (init_exec_ops): Likewise.
1206 * fork-child.c (clone_and_follow_inferior): Remove.
1207 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1208 * inferior.h (clone_and_follow_inferior): Remove prototype.
1209 * infrun.c (follow_fork_mode_both): Remove.
1210 (follow_fork_mode_kind_names): Remove commented out "both".
1211 (follow_inferior_fork): Remove follow_fork_mode_both support.
1212 * inftarg.c (child_clone_and_follow_inferior): Remove.
1213 (child_post_follow_inferior_by_clone): Remove.
1214 (init_child_ops): Don't set to_clone_and_follow_inferior
1215 or to_post_follow_inferior_by_clone.
1216 * target.c (default_clone_and_follow_inferior): Remove.
1217 (cleanup_target): Don't set to_clone_and_follow_inferior
1218 or to_post_follow_inferior_by_clone.
1219 (find_default_clone_and_follow_inferior): Remove.
1220 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1221 (debug_to_clone_and_follow_inferior): Remove.
1222 (debug_to_post_follow_inferior_by_clone): Remove.
1223 (setup_target_debug): Don't set to_clone_and_follow_inferior
1224 or to_post_follow_inferior_by_clone.
1225 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1226 and to_post_follow_inferior_by_clone.
1227 (child_clone_and_follow_inferior): Remove prototype.
1228 (child_post_follow_inferior_by_clone): Remove prototype.
1229 (target_clone_and_follow_inferior): Remove macro.
1230 (target_post_follow_inferior_by_clone): Remove macro.
1231 (find_default_clone_and_follow_inferior): Remove prototype.
1232
1233 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1234
1235 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1236 inferior_has_vforked, and inferior_has_execd instead of
1237 target_has_forked, target_has_vforked, and target_has_execd.
1238 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1239 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1240 (CHILD_WAIT): Define.
1241 (child_wait): Add prototype.
1242 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1243 Add prototype.
1244 (hpux_has_vforked): Likewise, from child_has_vforked.
1245 (hpux_has_execd): Likewise, from child_has_execd.
1246 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1247 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1248 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1249 and hpux_has_syscall_event instead of the target hooks.
1250 * infrun.c (inferior_has_forked, inferior_has_vforked)
1251 (inferior_has_execd): New functions.
1252 * inftarg.c (not_same_real_pid): Remove.
1253 (child_wait): Remove references to not_same_real_pid,
1254 target_has_forked, target_has_vforked, target_has_execd,
1255 and target_has_syscall_event.
1256 (child_has_forked, child_has_vforked, child_has_execd)
1257 (child_has_syscall_event): Remove.
1258 (init_child_ops): Remove references to child_has_forked,
1259 child_has_vforked, child_has_execd, and child_has_syscall_event.
1260 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1261 (hpux_has_vforked): Likewise, from child_has_vforked.
1262 (hpux_has_execd): Likewise, from child_has_execd.
1263 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1264 * target.c (cleanup_target): Remove references to
1265 to_has_forked, to_has_vforked, to_has_execd, and
1266 to_has_syscall_event.
1267 (update_current_target): Likewise.
1268 (setup_target_debug): Likewise.
1269 (debug_to_has_forked): Remove.
1270 (debug_to_has_vforked): Remove.
1271 (debug_to_has_execd): Remove.
1272 (debug_to_has_syscall_event): Remove.
1273 * target.h (struct target_ops): Remove to_has_forked.
1274 to_has_vforked, to_has_execd, and to_has_syscall_event.
1275 (child_has_forked, child_has_vforked, child_has_execd)
1276 (child_has_syscall_event): Remove prototypes.
1277 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1278 prototypes.
1279 (target_has_forked, target_has_vforked, target_has_execd)
1280 (target_has_syscall_event): Remove macros.
1281
1282 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1283
1284 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1285 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1286 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1287 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1288 * target.c (cleanup_target): Remove reference to
1289 to_can_follow_vfork_prior_to_exec.
1290 (update_current_target): Likewise.
1291 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1292 (setup_target_debug): Remove reference to
1293 to_can_follow_vfork_prior_to_exec.
1294 * target.h (struct target_ops): Remove
1295 to_can_follow_vfork_prior_to_exec.
1296 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1297 (target_can_follow_vfork_prior_to_exec): Remove definition.
1298 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1299 define.
1300 * infrun.c (follow_vfork_when_exec): Remove.
1301 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1302 (follow_exec): Likewise.
1303 (handle_inferior_event): Likewise.
1304 (keep_going): Likewise.
1305
1306 2002-11-15 Andrew Cagney <cagney@redhat.com>
1307
1308 * frame.c (generic_unwind_get_saved_register): Make static.
1309 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1310 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1311 defaults to generic_unwind_get_saved_register.
1312 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1313 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1314 * frv-tdep.c (frv_gdbarch_init): Ditto.
1315 * i386-tdep.c (i386_gdbarch_init): Ditto.
1316 * s390-tdep.c (s390_gdbarch_init): Ditto.
1317 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1318 * v850-tdep.c (v850_gdbarch_init): Ditto.
1319 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1320 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1321 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1322
1323 2002-11-15 Andrew Cagney <cagney@redhat.com>
1324
1325 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1326 i386-tdep.c.
1327
1328 2002-11-15 Andrew Cagney <cagney@redhat.com>
1329
1330 * frame.h (sigtramp_saved_pc): Delete declaration.
1331 * blockframe.c (sigtramp_saved_pc): Delete function.
1332 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1333 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1334 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1335 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1336
1337 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1338
1339 * frame.c (frame_pc_unwind): New function.
1340 (frame_saved_regs_pc_unwind): New function.
1341 (frame_register_unwind): Pass unwind_cache instead of
1342 register_unwind_cache.
1343 (set_unwind_by_pc): Add unwind_pc parameter, set.
1344 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1345 (get_prev_frame): Ditto.
1346 * frame.h (frame_pc_unwind_ftype): Declare.
1347 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1348 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1349 (frame_pc_unwind): Declare.
1350 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1351 (struct dummy_frame): Add comment mentioning that values are for
1352 previous frame.
1353 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1354 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1355 (generic_file_frame_chain_valid): Ditto.
1356 * stack.c (frame_info): Ditto.
1357
1358 2002-11-15 David Carlton <carlton@math.stanford.edu>
1359
1360 * linespec.c (locate_first_half): New function.
1361 (decode_line_1): Move code into locate_first_half.
1362
1363 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1364
1365 * complaints.h: Add comment explaining how to eliminate a
1366 deprecated_complain call.
1367 * complaints.h: Fix spelling errors.
1368
1369 2002-11-15 David Carlton <carlton@math.stanford.edu>
1370
1371 * printcmd.c: Remove #include "disasm.h".
1372
1373 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1374
1375 * frame.h: Move the most relevant interface functions to the start
1376 of the file.
1377
1378 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1379
1380 * regcache.h (deprecated_registers): Rename registers.
1381 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1382 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1383 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1384 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1385 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1386 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1387 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1388 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1389 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1390 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1391 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1392 * v850ice.c: Update.
1393
1394 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1395
1396 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1397 NULL buffer.
1398
1399 2002-11-13 Andrew Cagney <cagney@redhat.com>
1400
1401 * regcache.h (deprecated_read_register_bytes): Rename
1402 read_register_bytes.
1403 (deprecated_write_register_bytes): Rename write_register_bytes.
1404 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1405 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1406 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1407 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1408 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1409 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1410 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1411 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1412 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1413 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1414 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1415 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1416 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1417 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1418
1419 2002-11-13 Jim Blandy <jimb@redhat.com>
1420
1421 * findvar.c (read_var_value): Doc fix.
1422
1423 2002-11-13 Andrew Cagney <cagney@redhat.com>
1424
1425 * regcache.c (struct regcache): Replace passthough_p with
1426 readonly_p.
1427 (regcache_xmalloc): Initialize readonly_p.
1428 (build_regcache): Initialize readonly_p.
1429 (regcache_save): New function.
1430 (regcache_restore): New function.
1431 (regcache_cpy): Re-implement using regcache_save and
1432 regcache_restore.
1433 (regcache_raw_read): Update.
1434 (regcache_cooked_read): When a read-only cache, checked for cached
1435 pseudo register values.
1436 (regcache_raw_write): Assert that the cache is not read-only.
1437 Remove code handling a non-passthrough cache.
1438 * regcache.h (regcache_save): Declare.
1439 (regcache_restore): Declare.
1440
1441 2002-11-13 Andrew Cagney <cagney@redhat.com>
1442
1443 * regcache.c (struct regcache_descr): Add fields
1444 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1445 (init_legacy_regcache_descr): Compute the size of a cooked
1446 register cache and then assign that to sizeof_raw_registers. Set
1447 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1448 (init_legacy_regcache_descr): Ditto.
1449
1450 2002-11-13 Andrew Cagney <cagney@redhat.com>
1451
1452 * regcache.c (register_buffer): Move to near start of file, update
1453 description.
1454 (regcache_raw_read): Use.
1455 (regcache_raw_write): Use.
1456 (struct regcache): Rename raw_registers to registers and
1457 raw_register_valid_p to register_valid_p.
1458 (regcache_xmalloc): Update.
1459 (regcache_xfree): Update.
1460 (register_buffer): Update.
1461 (regcache_cpy): Update.
1462 (regcache_cpy_no_passthrough): Update.
1463 (regcache_valid_p): Update.
1464 (deprecated_grub_regcache_for_registers): Update.
1465 (deprecated_grub_regcache_for_register_valid): Update.
1466 (set_register_cached): Update.
1467 (regcache_raw_write): Update.
1468
1469 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1470
1471 * p-exp.y (name_not_typename): Use copy_name to
1472 set current_type variable for fields of THIS.
1473
1474 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1475
1476 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1477 * monitor.c (init_base_monitor_ops): Likewise.
1478 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1479 * remote-array.c (init_array_ops): Likewise.
1480 * remote-e7000.c (init_e7000_ops): Likewise.
1481 * remote-es.c (init_es1800_ops): Likewise.
1482 (init_es1800_child_ops): Likewise.
1483 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1484 * remote-sim.c (init_gdbsim_ops): Likewise.
1485 * remote-st.c (init_st2000_ops): Likewise.
1486 * sol-thread.c (init_sol_core_ops): Likewise.
1487 (init_sol_thread_ops): Likewise.
1488 * v850ice.c (init_850ice_ops): Likewise.
1489 * win32-nat.c (init_child_ops): Likewise.
1490 * wince.c (init_child_ops): Likewise.
1491
1492 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1493
1494 * utils.c (gdb_realpath): Make rp a constant pointer.
1495
1496 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1497
1498 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1499 a constant buffer; cannonicalize_file_name(); realpath() with a
1500 pathconf() defined buffer, xstrdup().
1501
1502 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1503
1504 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1505 to hang2.C; hang3.c to hang3.C.
1506
1507 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1508
1509 * findvar.c (read_var_value): Reenable TLS code.
1510
1511 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1512 Jim Blandy <jimb@redhat.com>
1513
1514 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1515 * target.c (update_current_target): Add
1516 to_get_thread_local_address.
1517 * target.h (to_get_thread_local_address): Export.
1518 (target_get_thread_local_address): Define.
1519 (target_get_thread_local_address_p): Define.
1520 * thread-db.c: Include solib-svr4.h.
1521 (td_thr_tls_get_addr_p): Define.
1522 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1523 (thread_db_get_thread_local_address): New function.
1524 (init_thread_db_ops): Initialize to_get_thread_local_address.
1525 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1526 * configure: Regenerate.
1527 * config.in: Regenerate.
1528
1529 2002-11-11 David Carlton <carlton@math.stanford.edu>
1530
1531 * linespec.c (set_flags): New function.
1532 (decode_line_1): Move code into set_flags.
1533
1534 2002-11-11 David Carlton <carlton@math.stanford.edu>
1535
1536 * linespec.c (decode_line_1): Move chunks of code to separate
1537 functions.
1538 (initialize_defaults): New function.
1539 (decode_indirect): New function.
1540
1541 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1542
1543 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1544 instead of void_code_ptr.
1545 (sigtramp_saved_pc): Ditto.
1546
1547 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1548 i386_fp_regnum_p.
1549
1550 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1551
1552 * gdbtypes.h (struct main_type): Move artificial flag out of
1553 loc. New member of ``struct field'' named static_kind. Reduce
1554 overloaded meaning of bitsize.
1555 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1556 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1557 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1558
1559 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1560 new fields.
1561 (template_to_fixed_record_type, template_to_static_fixed_type)
1562 (to_record_with_fixed_variant_part): Likewise.
1563 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1564 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1565 * dwarfread.c (struct_type, enum_type): Likewise.
1566 * hpread.c (hpread_read_enum_type)
1567 (hpread_read_function_type, hpread_read_doc_function_type)
1568 (hpread_read_struct_type): Likewise.
1569 * mdebugread.c (parse_symbol): Likewise.
1570
1571 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1572
1573 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1574 * stack.c (print_frame_info_base): Update.
1575 (print_frame_info_base, frame_info): Update.
1576 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1577 (sparc_frame_saved_pc): Update.
1578 * ada-lang.c (find_printable_frame): Update.
1579 * breakpoint.c (deprecated_frame_in_dummy): Update.
1580
1581 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1582
1583 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1584 defined.
1585 (regmap): Extend to cover all registers.
1586 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1587 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1588 definitions.
1589 (fetch_register, sore_register): Simplify.
1590 (old_fetch_inferior_registers, old_store_inferior_registers):
1591 Remove functions.
1592 (cannot_fetch_register, cannot_store_register): Change
1593 implementation to use regmap array to decide which registers
1594 cannot be fetched/stored. This removes $orig_eax from the
1595 registers that cannot be fetched/stored.
1596 (fetch_inferior_registers): Call fetch_register directly instead
1597 of calling old_fetch_inferior_registers.
1598 (store_inferior_registers): Call store_register directly instead
1599 of calling old_store_inferior_registers.
1600 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1601 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1602 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1603
1604 2002-11-09 Klee Dienes <kdienes@apple.com>
1605
1606 * i387-tdep.c (i387_supply_register): When called with NULL as a
1607 buffer, mark the register as not provided (to mirror the behavior
1608 of supply_register).
1609 (i387_supply_fxsave): Ditto.
1610 (i387_supply_fsave): Ditto (inherits the behavior from
1611 i387_supply_register).
1612
1613 2002-11-09 Klee Dienes <kdienes@apple.com>
1614
1615 * blockframe.c (sigtramp_saved_pc): Use
1616 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1617 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1618 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1619
1620 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1621
1622 * frame.c (get_prev_frame): Test prev_p to identify a previously
1623 unwound frame. Initialize prev_p.
1624 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1625 comment.
1626
1627 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1628
1629 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1630 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1631 more comments. Zap dead code.
1632
1633 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1634
1635 * infcmd.c (print_vector_info, print_float_info): Move code that
1636 checks whether the target has any registers and whether there is a
1637 selected frame up, such that it is also used if a target provides
1638 multi-arch definitions of these functions.
1639
1640 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1641
1642 * Makefile.in (DESTDIR): Define.
1643 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1644 prefix.
1645
1646 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1647 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1648
1649 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1650
1651 * i386-linux-tdep.c: Include "reggroups.h".
1652 (i386_linux_register_reggroup_p): New function.
1653 (i386_linux_init_abi): Set register_reggroup_p to
1654 i386_linux_register_reggroup_p.
1655 * i386-tdep.h (i386_register_reggroup_p): Declare.
1656 * i386-tdep.c: Include "reggroups.h".
1657 (i386_init_reggroups): New function.
1658 (i386_add_reggroups): New function.
1659 (i386_register_reggroup_p): New function.
1660 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1661 (_initialize_i386_tdep): Call i386_init_reggroups.
1662 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1663 specific reggroups.
1664
1665 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1666
1667 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1668 request that's available in *BSD.
1669
1670 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1671
1672 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1673 FDOFF_REGNUM.
1674
1675 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1676
1677 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1678 * dummy-frame.c (find_dummy_frame): Rename
1679 generic_find_dummy_frame, make static. Return the dummy frame
1680 instead of the regcache.
1681 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1682 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1683 (dummy_frame_register_unwind): Rename
1684 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1685 * dummy-frame.h (dummy_frame_register_unwind): Rename
1686 generic_call_dummy_register_unwind.
1687
1688 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1689
1690 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1691 except the inclusion of "i386/tm-i386.h", to...
1692 * config/i386/nm-i386v42mp.h: ...here.
1693 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1694
1695 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1696
1697 * Makefile.in (frame.o): Update dependencies.
1698 * blockframe.c (current_frame, frame_obstack_alloc)
1699 (frame_saved_regs_zalloc, get_current_frame)
1700 (set_current_frame, create_new_frame)
1701 (set_unwind_by_pc, get_next_frame)
1702 (flush_cached_frames, reinit_frame_cache)
1703 (frame_saved_regs_register_unwind)
1704 (deprecated_generic_get_saved_register)
1705 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1706 (_initialize_blockframe): Move frame code from here...
1707 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1708 "annotate.h" and "dummy-frame.h".
1709 (_initialize_frame): New function.
1710
1711 2002-11-08 Jim Blandy <jimb@redhat.com>
1712
1713 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1714 when we finish a function a context.
1715 * buildsym.h (outermost_context_p): New macro.
1716 (Bug analyzed by David Edelsohn.)
1717
1718 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1719
1720 * blockframe.c: Include "dummy-frame.h".
1721 (struct dummy_frame, dummy_frame_stack)
1722 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1723 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1724 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1725 (generic_save_call_dummy_addr, generic_pop_current_frame)
1726 (generic_pop_dummy_frame, generic_fix_call_dummy)
1727 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1728 dummy frame code from here...
1729 * dummy-frame.c: ...to here. New file.
1730 * dummy-frame.h: New file.
1731 (generic_call_dummy_register_unwind): Declare.
1732 (generic_find_dummy_frame): Declare.
1733 * Makefile.in (SFILES): Add dummy-frame.c.
1734 (dummy-frame.o): Specify dependencies.
1735 (dummy_frame_h): Define.
1736 (COMMON_OBS): Add dummy-frame.o.
1737 (blockframe.o): Update dependencies.
1738
1739 2002-11-08 Jim Blandy <jimb@redhat.com>
1740
1741 * dwarf2read.c (read_func_scope): Restore local_symbols and
1742 param_symbols after we finish the function context. (Based on a
1743 patch from David Edelsohn.)
1744
1745 2002-11-08 David Carlton <carlton@math.stanford.edu>
1746
1747 * linespec.c (symbol_found): New function.
1748 (minsym_found): New function.
1749 (decode_line_1): Separate out some code into separate functions.
1750
1751 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1752
1753 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1754 the benefit of the interix target.
1755 * i386-tdep.h (i386_frameless_signal_p): Declare.
1756
1757 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1758
1759 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1760 declaration that snuck in from change below.
1761
1762 2002-11-06 Andrew Cagney <cagney@redhat.com>
1763
1764 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1765 all callers.
1766 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1767 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1768 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1769 (i386_mxcsr_regnum_p): new function. Use instead of
1770 MXCSR_REGNUM_P.
1771 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1772 (i386_sse_regnum_p): Declare.
1773 (i386_mxcsr_regnum_p): Declare.
1774 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1775 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1776 (IS_FP_REGNUM): Update definition.
1777 (IS_FPU_CTRL_REGNUM): Update definition..
1778 (IS_SSE_REGNUM): Update definition..
1779 * i386v-nat.c (register_u_addr): Update.
1780 * go32-nat.c (fetch_register): Update.
1781 (store_register): Update.
1782
1783 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1784
1785 Preparation work to convert the hppa targets to multiarch partial.
1786
1787 * hppa-tdep.c: Add new functions replacing macro bodies from
1788 config/pa/tm-hppa.h. These function will be used to initialize
1789 the gdbarch structure. Import some comments from tm-hppa.h,
1790 and place them where appropriate, to avoid loosing them when
1791 we cleanup this file.
1792 (hppa_reg_struct_has_addr): New function.
1793 (hppa_inner_than): New function.
1794 (hppa_stack_align): New function.
1795 (hppa_pc_requires_run_before_use): New function.
1796 (hppa_instruction_nullified): New function.
1797 (hppa_register_byte): New function.
1798 (hppa_register_virtual_type): New function.
1799 (hppa_store_struct_return): New function.
1800 (hppa_cannot_store_register): New function.
1801 (hppa_frame_args_address): New function.
1802 (hppa_frame_locals_address): New function.
1803 (hppa_smash_text_address): New function.
1804 (hppa_coerce_float_to_double): New function. Requires the inclusion
1805 of "language.h".
1806
1807 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1808
1809 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1810 gdbarch-eligible macro to a call to the new associated function
1811 created in hppa-tdep.c.
1812 (INNER_THAN): Likewise.
1813 (STACK_ALIGN): Likewise.
1814 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1815 (INSTRUCTION_NULLIFIED): Likewise.
1816 (REGISTER_BYTE): Likewise.
1817 (REGISTER_VIRTUAL_TYPE): Likewise.
1818 (STORE_STRUCT_RETURN): Likewise.
1819 (CANNOT_STORE_REGISTER): Likewise.
1820 (FRAME_ARGS_ADDRESS): Likewise.
1821 (FRAME_LOCALS_ADDRESS): Likewise.
1822 (SMASH_TEXT_ADDRESS): Likewise.
1823 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1824 (ABOUT_TO_RETURN): Delete, as no longer used.
1825
1826 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1827
1828 * printcmd.c (disassemble_command): Remove obsolete function.
1829 (_initialize_printcmd): Do not create disassemble command here.
1830 * cli/cli-cmds.c (disassemble_command): New function. Implements
1831 disassemble command.
1832 (init_cli_cmds): Create disassemble command here instead.
1833
1834 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1835
1836 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1837
1838 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1839
1840 * regcache.h (regcache_cooked_read_using_offset_hack)
1841 (regcache_cooked_write_using_offset_hack): Delete declarations.
1842 (register_changed): Delete declaration.
1843 * regcache.c (regcache_cooked_read_using_offset_hack)
1844 (regcache_cooked_write_using_offset_hack): Delete functions.
1845 (cooked_xfer_using_offset_hack): Delete function.
1846 (register_changed): Delete function.
1847
1848 2002-11-07 Jim Blandy <jimb@redhat.com>
1849
1850 * macroscope.c: #include "complaints.h".
1851 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1852 but not in the macro table.
1853 * Makefile.in (macroscope.o): Record dependency.
1854
1855 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1856
1857 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1858
1859 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1860
1861 * regcache.c (deprecated_registers_fetched): Update.
1862 * regcache.h (deprecated_registers_fetched): Rename
1863 registers_fetched.
1864 * remote-vxsparc.c (vx_read_register): Update.
1865 * remote-vxmips.c (vx_read_register): Update.
1866 * remote-vx68.c (vx_read_register): Update.
1867 * irix5-nat.c (fetch_core_registers): Update.
1868 * mipsm3-nat.c (fetch_inferior_registers): Update.
1869 * sun3-nat.c (fetch_inferior_registers): Update.
1870 * symm-nat.c (fetch_inferior_registers): Update.
1871 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1872 (fetch_core_registers): Update.
1873 (fetch_kcore_registers): Update.
1874 * mips-nat.c (fetch_inferior_registers): Update.
1875 * corelow.c (get_core_registers): Update.
1876 * a68v-nat.c (fetch_inferior_registers): Update.
1877
1878 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1879
1880 Put in place the framework necessary for multiarching the hppa targets.
1881 * hppa-tdep.c (hppa_gdbarch_init): New function.
1882 (hppa_dump_tdep): New function.
1883 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1884 tdep structure dumper.
1885 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1886 until the multi-arching conversion has partially been completed.
1887
1888 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1889
1890 * valops.c (value_assign): Merge lval_register case into
1891 lval_reg_frame_relative. Use frame_register and
1892 regcache_cooked_write instead of get_saved_register and
1893 write_register_bytes. After flushing the register cache, try to
1894 re-select the selected frame.
1895
1896 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1897
1898 * regcache.h (deprecated_register_valid): Rename register_valid.
1899 * regcache.c: Update.
1900 * ia64-aix-nat.c: Update.
1901 * i386gnu-nat.c: Update.
1902 * alpha-nat.c: Update.
1903 * sparc-nat.c: Update.
1904 * lynx-nat.c: Update.
1905 * remote-mips.c: Update.
1906
1907 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1908
1909 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1910 to end of file, to be more consistent with the pratice followed
1911 by other targets.
1912
1913 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1914
1915 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1916 (print_float_info): Print registers in float_reggroup.
1917 (print_vector_info): Print registers in vector_reggroup.
1918 (default_print_registers_info): When all, print registers in
1919 all_reggroup. Otherwize, print registers in general_reggroup.
1920 (registers_info): Rewrite. Add support for register groups.
1921 Eliminate a goto.
1922
1923 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1924
1925 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1926 ages.
1927 (symtab_symbol_info): Remove eons old ifdeffed out code.
1928 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1929 command.
1930
1931 2002-11-06 Theodore A. Roth <troth@openavr.org>
1932
1933 * c-exp.y: Add missing semi-colons.
1934 * f-exp.y: Add missing semi-colons.
1935 * m2-exp.y: Add missing semi-colons.
1936 * p-exp.y: Add missing semi-colons.
1937 Add empty action to start rule to avoid a type clash error when
1938 building with bison >= 1.50.
1939
1940 2002-11-06 Jim Blandy <jimb@redhat.com>
1941
1942 * macrotab.h (struct macro_source_file): Doc fix.
1943
1944 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1945
1946 * varobj.c (child_exists, cplus_number_of_children): Change
1947 STREQ macro references to strcmp.
1948 (cplus_name_of_child): Change code to handle the fact that
1949 fields are not necessarily contiguous with regards to their
1950 access control. This is a fix for PR gdb/792.
1951
1952 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1953
1954 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1955 * gdbarch.h, gdbarch.c: Regnerate.
1956 * frame.h (frame_register): Declare.
1957 * frame.c (frame_register): New function.
1958 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1959 GET_SAVED_REGISTER, otherwize call
1960 generic_unwind_get_saved_register.
1961 (frame_register_read): Use frame_register instead of
1962 get_saved_register.
1963
1964 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1965
1966 From Jim Ingham <jingham@apple.com>:
1967 * event-top.c (gdb_disable_readline): New function.
1968 (_initialize_event_loop): Move comment.
1969
1970 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1971
1972 * event-loop.c (start_event_loop): Add comment.
1973 Update copyright.
1974
1975 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1976
1977 * infcmd.c (default_print_registers_info): Do not call
1978 PRINT_REGISTER_HOOK.
1979
1980 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1981
1982 * sparc-tdep.c (sparc_print_register_hook): Make static.
1983 (sparc_print_registers_info): New function.
1984 (sparc_do_registers_info): New function.
1985 (sparclet_print_registers_info): New function.
1986 (sparclet_do_registers_info): New function.
1987 (do_sparc_print_registers_info): New function.
1988 (sparc_print_registers): New static function, clone of infcmd.c's
1989 default_print_registers_info.
1990 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1991 (sparclet_do_registers_info): Declare.
1992 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1993 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1994 Re-define.
1995 (sparc_do_registers_info): Declare.
1996 (PRINT_REGISTER_HOOK): Delete macro.
1997 (sparc_print_register_hook): Delete declaration.
1998
1999 2002-11-05 David Carlton <carlton@math.stanford.edu>
2000
2001 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2002 functions.
2003 (lookup_symbol_aux_local): New function.
2004 (lookup_symbol_aux_symtabs): New function.
2005 (lookup_symbol_aux_psymtabs): New function.
2006
2007 2002-11-05 David Carlton <carlton@math.stanford.edu>
2008
2009 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2010 previous values of 'objfile' and 'block'.
2011
2012 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2013
2014 * values.c (value_change_enclosing_type): Set
2015 enclosing_type field correctly also for the case where
2016 more memory needs to be allocated.
2017
2018 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2019
2020 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2021 of puts_filtered.
2022
2023 * i387-tdep.c (i387_print_float_info): Replace calls to
2024 register_read and deprecated_read_register_gen with calls to
2025 frame_register_read, and make the necessary adjustments to the
2026 surrounding code.
2027
2028 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2029
2030 * gdbarch.sh (register_reggroup_p): Allow default value.
2031 * gdbarch.h, gdbarch.c: Regenerate.
2032
2033 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2034
2035 * regcache.h: Add coment indicating replacements for deprecated
2036 functions.
2037
2038 2002-11-02 Andrew Cagney <cagney@redhat.com>
2039
2040 * reggroups.h, reggroups.c: New files.
2041 * regcache.c: Include "reggroups.h".
2042 (enum regcache_dump_what): Add `regcache_dump_groups'.
2043 (regcache_dump): Contract size of the "Type" column. When
2044 specified, dump the register's groups.
2045 (maintenance_print_register_groups): New function.
2046 (_initialize_regcache): Add command `maint print register-groups'.
2047 * Makefile.in (COMMON_OBS): Add reggroups.o
2048 (SFILES): Add reggroups.c.
2049 (reggroups_h): Define.
2050 (regcache.o, gdbarch.o): Update dependencies.
2051 (reggroups.o): Specify dependencies.
2052 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2053 Add opaque declaration for `struct reggroup' in generated .h file.
2054 Include "reggroups.h" in generated .c file.
2055 gdbarch.h, gdbarch.c: Re-generate.
2056
2057 2002-11-02 Andrew Cagney <cagney@redhat.com>
2058
2059 * regcache.h (deprecated_read_register_gen): Rename
2060 read_register_gen.
2061 (deprecated_write_register_gen): Rename write_register_gen.
2062 * i387-tdep.c: Update.
2063 * x86-64-linux-nat.c: Update
2064 * wince.c: Update.
2065 * thread-db.c: Update.
2066 * win32-nat.c: Update.
2067 * mips-tdep.c: Update.
2068 * d10v-tdep.c: Update.
2069 * cris-tdep.c: Update.
2070 * remote-sim.c: Update.
2071 * remote-rdi.c: Update.
2072 * remote-rdp.c: Update.
2073 * frame.c: Update.
2074 * target.c: Update.
2075 * blockframe.c: Update.
2076 * x86-64-tdep.c: Update.
2077 * xstormy16-tdep.c: Update.
2078 * sh-tdep.c: Update.
2079 * s390-tdep.c: Update.
2080 * rs6000-tdep.c: Update.
2081 * sparc-tdep.c: Update.
2082 * i386-tdep.c: Update.
2083 * dwarf2cfi.c: Update.
2084 * regcache.c: Update.
2085
2086 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2087
2088 New interix-specific files:
2089 * config/i386/nm-interix.h: New file.
2090 * config/i386/interix.mh: New file.
2091 * config/i386/interix.mt: New file.
2092 * i386-interix-nat.c: New file.
2093 * i386-interix-tdep.c: New file.
2094
2095 2002-11-01 Andrew Cagney <cagney@redhat.com>
2096
2097 * frame.h (deprecated_generic_get_saved_register): Rename
2098 generic_get_saved_register.
2099 * blockframe.c (deprecated_generic_get_saved_register): Update.
2100 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2101 (xstormy16_frame_saved_register): Update.
2102 * sh-tdep.c (sh_gdbarch_init): Update.
2103 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2104 * ia64-tdep.c (ia64_get_saved_register): Update.
2105 * cris-tdep.c (cris_gdbarch_init): Update.
2106 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2107 * arm-tdep.c (arm_gdbarch_init): Update.
2108
2109 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2110
2111 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2112
2113 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2114
2115 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2116 trampolines in sigaction.
2117
2118 2002-10-31 Andrew Cagney <cagney@redhat.com>
2119
2120 * h8300-tdep.c: Include "gdb_assert.h".
2121 (h8300_print_register): Add gdbarch, file and frame parameters.
2122 Use frame_read_unsigned_register to read the register's value.
2123 Use fprintf_filtered to display output.
2124 (h8300_print_registers_info): Replace h8300_do_registers_info.
2125 (h8300_gdbarch_init): Set print_registers_info.
2126
2127 2002-10-31 Andrew Cagney <cagney@redhat.com>
2128
2129 * frame.c (frame_read_unsigned_register): New function.
2130 (frame_read_signed_register): New function.
2131 * frame.h (frame_read_unsigned_register): Declare.
2132 (frame_read_signed_register): Declare.
2133
2134 2002-10-31 Andrew Cagney <cagney@redhat.com>
2135
2136 * h8500-tdep.c (h8500_print_registers_info): New static function,
2137 clone of infcmd.c's default_print_registers_info.
2138 (h8500_do_registers_info): New funtion.
2139 (h8500_print_register_hook): Rename print_register_hook, make
2140 static.
2141
2142 * config/h8500/tm-h8500.h: Update copyright.
2143 (DEPRECATED_DO_REGISTERS_INFO): Define.
2144 (h8500_do_registers_info: Declare.
2145 (PRINT_REGISTER_HOOK): Delete macro.
2146 (print_register_hook): Delete function.
2147
2148 2002-10-31 Andrew Cagney <cagney@redhat.com>
2149
2150 * z8k-tdep.c (z8k_print_register_hook): Make static.
2151 (z8k_print_registers_info): New static function, clone of
2152 infcmd.c's default_print_registers_info.
2153 (z8k_do_registers_info): New function. Wrap
2154 z8k_print_registers_info.
2155 * config/z8k/tm-z8k.h: Update copyright.
2156 (PRINT_REGISTER_HOOK): Delete macro.
2157 (z8k_print_register_hook): Delete declaration.
2158 (DEPRECATED_DO_REGISTERS_INFO): Define.
2159 (z8k_do_registers_info): Declare.
2160
2161 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2162
2163 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2164 as this is already provided by value.h, and was actually causing
2165 a compilation error because of a conflict in parameter type
2166 declaration due to a missing const keyword.
2167 (low_text_segment_addres): Fix a compilation warning.
2168
2169 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2170
2171 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2172 registers without a name.
2173 (mips_linux_cannot_store_register): Don't store registers without
2174 a name.
2175
2176 2002-10-28 David Carlton <carlton@math.stanford.edu>
2177
2178 * symtab.c (find_addr_symbol): Delete. (It was already commented
2179 out.)
2180 * symtab.h: Delete prototype for find_addr_symbol.
2181
2182 2002-10-26 Andrew Cagney <cagney@redhat.com>
2183
2184 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2185 DO_REGISTERS_INFO.
2186 gdbarch.h, gdbarch.c: Re-generate.
2187 * infcmd.c (default_print_registers_info): Update reference.
2188 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2189 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2190 * sh-tdep.c (sh_gdbarch_init): Ditto.
2191 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2192 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2193
2194 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2195
2196 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2197 cfi_init_extra_frame_info.
2198 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2199 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2200
2201 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2202 target where necessary. Add more comments and remove the ones
2203 that don't provide any useful information.
2204
2205 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2206 deprecated_read_register_dummy with
2207 frame_unwind_unsigned_register.
2208
2209 * i386-tdep.c (i386_extract_struct_value_address): Use
2210 regcache_raw_read_unsigned instead of
2211 regcache_cooked_read_unsigned since we know that the register
2212 we're reading isn't a pseudo register. Rename variable 'val' into
2213 the more descriptive 'addr'.
2214
2215 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2216 (x86_64_push_return_address): Add comment.
2217 (x86_64_pop_frame): Make static.
2218 (examine_argument): Clarify comment.
2219 (x86_64_skip_prologue): Make prolog_expact variable static.
2220
2221 * dwarf2cfi.c: Fix some formatting problems.
2222 (context_cpy, read_encoded_pointer): Clarify comments.
2223
2224 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2225 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2226 i386 target back into x86_64_gdbarch_init. Add some comments and
2227 remove meaningless ones.
2228
2229 2002-10-25 Andrew Cagney <cagney@redhat.com>
2230
2231 * complaints.h (struct deprecated_complaint): Rename `struct
2232 complaint'.
2233 * complaints.c (complain): Update.
2234 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2235 incorrect comment indicating that "symfile.h" was being included
2236 for the `struct complaint' definition.
2237 * remote-vx.c: Update.
2238 * objc-lang.c: Update.
2239 * xcoffread.c: Update.
2240 * hpread.c: Update.
2241 * mdebugread.c: Update.
2242 * stabsread.c: Update.
2243 * dwarf2read.c: Update.
2244 * dwarfread.c: Update.
2245 * elfread.c: Update.
2246 * coffread.c: Update.
2247 * stabsread.h: Update.
2248 * dbxread.c: Update.
2249 * buildsym.c: Update.
2250 * gdbtypes.c: Update.
2251 * macrotab.c: Update.
2252
2253 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2254
2255 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2256 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2257 (x86_64_init_abi): ...new function.
2258
2259 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2260 * i386v-nat.c: Include "i386-tdep.h".
2261
2262 2002-10-25 Andrew Cagney <cagney@redhat.com>
2263
2264 * gdbtypes.c (address_space_name_to_int): Update.
2265 (address_space_int_to_name): Update.
2266 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2267 multi-arch predicate.
2268 (address_class_name_to_type_flags): Ditto.
2269 * gdbarch.h, gdbarch.c: Re-generate.
2270
2271 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2272
2273 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2274
2275 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2276
2277 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2278
2279 * symtab.h (INIT_SAL): Delete macro.
2280 (init_sal): Export.
2281 * symtab.c (init_sal): New function.
2282
2283 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2284 to init_sal function call.
2285 (find_sal_from_funcs_and_line): Ditto.
2286 (all_sals_for_line): Ditto.
2287 * breakpoint.c (create_internal_breakpoint): Ditto.
2288 (create_fork_vfork_event_catchpoint): Ditto.
2289 (create_exec_event_catchpoint): Ditto.
2290 (parse_breakpoint_sals): Ditto.
2291 (watch_command_1): Ditto.
2292 (handle_gnu_4_16_catch_command): Ditto.
2293 (clear_command): Ditto.
2294 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2295 * infcmd.c (run_stack_dummy): Ditto.
2296 * infrun.c (process_event_stop_test): Ditto.
2297 (check_sigtramp2): Ditto.
2298 (step_over_function): Ditto.
2299 * linespec.c (decode_line_2): Ditto.
2300 (decode_line_1): Ditto.
2301 * source.c (line_info): Ditto.
2302 * symtab.c (find_pc_sect_line): Ditto.
2303
2304 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2305
2306 * dwarf2cfi.c (struct context)
2307 (struct context_reg): Moved to dwarf2cfi.h
2308 (context_alloc, frame_state_alloc, context_cpy):
2309 Made extern instead of static, removed prototypes.
2310 * dwarf2cfi.h (struct context)
2311 (struct context_reg): New, moved from dwarf2cfi.c
2312 (context_alloc, frame_state_alloc, context_cpy):
2313 New prototypes.
2314 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2315 Changed from static to extern.
2316 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2317 (LINUX_SIGCONTEXT_FP_OFFSET)
2318 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2319 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2320 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2321 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2322 set_gdbarch_*() calls now use x86-64 specific functions
2323 instead of DWARF2 CFI ones.
2324 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2325 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2326 (x86_64_init_extra_frame_info): New prototypes.
2327
2328 2002-10-23 David Carlton <carlton@math.stanford.edu>
2329
2330 * linespec.c: #include "parser-defs.h".
2331 Delete prototype for find_template_name_end.
2332 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2333
2334 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2335
2336 * NEWS: add recent mi fixes.
2337 * varobj.c (struct varobj): Add new "updated" flag.
2338 (new_variable): Default "updated" flag to 0.
2339 (varobj_set_value): Set "updated" flag to 1 if value
2340 changes.
2341 (varobj_update): Check varobj "updated" flag before
2342 comparing old and refreshed values. Fix for
2343 PR gdb/702.
2344
2345 2002-10-23 David Carlton <carlton@math.stanford.edu>
2346
2347 * parse.c (parse_exp_1): Use BLOCK_START.
2348 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2349 SYMBOL_BLOCK_VALUE.
2350 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2351
2352 2002-10-23 David Carlton <carlton@math.stanford.edu>
2353
2354 * symtab.c: Delete cplusplus_hint.
2355 Delete prototype for find_template_name_end.
2356
2357 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2358
2359 * symtab.h: Update comment.
2360
2361 2002-10-23 Michael Snyder <msnyder@redhat.com>
2362
2363 * printcmd.c (address_info): Restore quotes in output.
2364 * valops.c (value_of_local): Restore quotes in error message.
2365
2366 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2367
2368 * symtab.c (symbol_demangled_name): New function.
2369 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2370 turning most of it into a function.
2371 (symbol_demangled_name): Export.
2372
2373 2002-10-23 Michael Snyder <msnyder@redhat.com>
2374
2375 * valops.c (value_of_local): Restore quotes in error message.
2376
2377 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2378
2379 * symtab.c (symbol_init_language_specific): New function.
2380 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2381 turning most of it into a function.
2382 (symbol_init_language_specific): Export.
2383
2384 2002-10-23 David Carlton <carlton@math.stanford.edu>
2385
2386 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2387 (dwarf_attr_name): Ditto.
2388 (dwarf_type_encoding_name): Ditto.
2389 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2390 (process_die): Handle DW_TAG_namespace,
2391 DW_TAG_imported_declaration, DW_TAG_imported_module.
2392 (read_namespace): New function.
2393
2394 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2395
2396 * configure.in: Define NEW_PROC_API on Interix too.
2397 * configure: Regenerate.
2398
2399 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2400
2401 * configure: Regenerate using the proper version of autoconf.
2402
2403 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2404
2405 * findvar.c (read_var_value): Temporarily disable TLS code, until
2406 complete TLS support is added.
2407
2408 2002-10-21 Jim Blandy <jimb@redhat.com>
2409 Elena Zannoni <ezannoni@redhat.com>
2410
2411 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2412 for thread local storage locations.
2413 (struct symbol): Add objfile field.
2414 (SYMBOL_OBJFILE): Define.
2415 * dwarf2read.c (is_thread_local): New static variable.
2416 (new_symbol): If variable is in thread local fill in address class
2417 and objfile appropriately.
2418 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2419 stack operation.
2420 * printcmd.c (address_info): Print the information for thread
2421 local storage variable.
2422 * findvar.c (read_var_value): In case of thread local variable,
2423 defer to the target vector code to compute address.
2424
2425 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2426
2427 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2428 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2429
2430 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2431
2432 * symtab.h (address_class): Rename
2433 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2434 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2435 * printcmd.c (address_info): Ditto.
2436 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2437
2438 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2439
2440 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2441 DBREG_DRX macro to acces debug registers.
2442
2443 * Makefile.in (i386obsd-tdep.o): New target.
2444
2445 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2446 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2447
2448 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2449 * config/i386/obsd.mt: New file.
2450 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2451 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2452 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2453 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2454 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2455 * i386obsd-tdep.c: New file.
2456
2457 2002-10-19 Adam Fedor <fedor@gnu.org>
2458
2459 * objc-exp.y (name_not_typename): Fix invalid comment.
2460
2461 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2462
2463 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2464 to allocate partial syms and macro byte caches.
2465
2466 2002-10-18 David Carlton <carlton@math.stanford.edu>
2467
2468 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2469
2470 2002-10-18 Adam Fedor <fedor@gnu.org>
2471
2472 * stabsread.c (find_name_end): New function.
2473 (define_symbol): Use it.
2474
2475 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2476
2477 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2478 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2479 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2480 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2481
2482 2002-10-17 David Carlton <carlton@math.stanford.edu>
2483
2484 * symfile.h: Add opaque declaration for struct obstack.
2485 Declare obsavestring to take a const char *.
2486 * symfile.c (obsavestring): Make first argument a const char *.
2487
2488 2002-10-16 Adam Fedor <fedor@gnu.org>
2489
2490 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2491 names when matching breakpoints in current file.
2492
2493 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2494
2495 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2496 (read_tag_pointer_type): Add address class support.
2497 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2498 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2499 New methods.
2500 * gdbarch.h, gdbarch.c: Regenerate.
2501 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2502 (make_type_with_address_space, recursive_type_dump): Add address
2503 class support.
2504 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2505 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2506 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2507
2508 2002-10-16 Klee Dienes <kdienes@apple.com>
2509
2510 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2511 to get the last character of a char[] buffer, not
2512 name[sizeof(vptr_name)-1].
2513
2514 2002-10-14 Adam Fedor <fedor@gnu.org>
2515
2516 * symtab.h: New objc_specific struct.
2517 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2518 (SYMBOL_DEMANGLED_NAME): Likewise.
2519
2520 2002-10-14 Adam Fedor <fedor@gnu.org>
2521
2522 * symfile.c (init_filename_language_table): Add ObjC file extension.
2523
2524 2002-10-14 Adam Fedor <fedor@gnu.org>
2525
2526 * utils.c (puts_filtered_tabular): New function.
2527 (fprintf_symbol_filtered): Get ObjC demangled name.
2528 * defs.h (puts_filtered_tabular): Declared.
2529
2530 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2531
2532 * c-lang.h (c_type_print_varspec_prefix): Delete.
2533 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2534 ``need_post_space'' parameter. Adjust all callers.
2535
2536 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2537
2538 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2539 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2540 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2541 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2542
2543 2002-10-13 Adam Fedor <fedor@gnu.org>
2544
2545 * source.c (print_source_lines): Update comments.
2546
2547 2002-10-13 Adam Fedor <fedor@gnu.org>
2548
2549 * valops.c (value_of_local): New function.
2550 (value_of_this): Use it.
2551 * value.h (value_of_local): Declared.
2552
2553 2002-10-13 Adam Fedor <fedor@gnu.org>
2554
2555 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2556 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2557
2558 2002-10-12 Adam Fedor <fedor@gnu.org>
2559
2560 * language.c (binop_result_type): Add language_objc to case.
2561 (integral_type): Likewise.
2562 (character_type): Likewise.
2563 (string_type): Likewise.
2564 (boolean_type): Likewise.
2565 (structured_type): Likewise.
2566 (binop_type_check): Likewise.
2567
2568 2002-10-11 Adam Fedor <fedor@gnu.org>
2569
2570 * printcmd.c (address_info): Print 'self' for ObjC.
2571
2572 2002-10-11 Adam Fedor <fedor@gnu.org>
2573
2574 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2575 OP_SELF.
2576
2577 2002-10-11 Adam Fedor <fedor@gnu.org>
2578
2579 * language.h (CAST_IS_CONVERSION): Add language_objc.
2580
2581 2002-10-11 Adam Fedor <fedor@gnu.org>
2582
2583 * defs.h (enum language): Add language_objc.
2584
2585 2002-10-11 Klee Dienes <kdienes@apple.com>
2586
2587 * corefile.c (read_memory_typed_address): New function.
2588 * gdbcore.h (read_memory_typed_address): Add prototype.
2589 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2590 to read a value destined for a CORE_ADDR, not read_memory_integer.
2591 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2592 (f77_get_dynamic_lowerbound): Ditto.
2593
2594 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2595
2596 * utils.c (string_to_core_addr): After turning string into
2597 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2598 which will do necessary sign-extension, etc.
2599
2600 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2601
2602 * c-exp.y (THIS): Delete token and grammar rule.
2603 (yylex): Don't return THIS.
2604 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2605 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2606 * demangle.c (cplus_markers): Update comment. Put '$'
2607 first. Remove CPLUS_MARKER.
2608 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2609 * jv-exp.y (THIS): Delete token and grammar rule.
2610 (yylex): Don't return THIS.
2611 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2612 * objc-exp.y (THIS): Delete token and grammar rule.
2613 (yylex): Don't return THIS.
2614 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2615 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2616 (read_member_functions): Likewise for opname.
2617 (read_tilde_fields): Use is_cplus_marker.
2618
2619 * defs.h (CPLUS_MARKER): Don't define.
2620 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2621 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2622 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2623 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2624 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2625
2626 * config/i386/tm-i386v4.h: Delete file.
2627 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2628 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2629 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2630 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2631 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2632 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2633 * config/i386/i386v4.mt (TM_FILE): Likewise.
2634 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2635
2636 2002-10-10 Marko Mlinar <markom@opencores.org>
2637
2638 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2639 accidentially not commited 2002-10-09
2640 * gdbarch.h, gdbarch.c: Re-generate.
2641
2642 2002-10-09 Marko Mlinar <markom@opencores.org>
2643
2644 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2645 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2646 * gdbarch.h, gdbarch.c: Re-generate.
2647
2648 2002-10-08 Petr Sorfa <petrs@caldera.com>
2649
2650 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2651
2652 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2653 so we can work on more than one compilation unit at a time. This
2654 helps prepare GDB to handle inter-CU die references.
2655 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2656 the code to be defined before struct comp_unit_head.
2657 (comp_unit_head): Added new members - offset, cu_head,
2658 begin_die, next and dwarf2_abbrevs.
2659 (dwarf2_abbrevs): Removed single static var; now member of
2660 struct comp_unit_head.
2661 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2662 members.
2663 (psymtab_to_symtab_1): Changed to work with the new
2664 struct comp_unit_head.
2665 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2666 constructs the dwarf2_abbrevs[] inside the cu_header.
2667 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2668 dwarf2_abbrev table to clean up.
2669 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2670 handling of dwarf2_abbrevs inside the cu_header.
2671 (read_partial_die): Now supports the call to the new
2672 dwarf2_lookup_abbrev.
2673 (read_full_die): Now supports the call to the new
2674 dwarf2_lookup_abbrev.
2675
2676 2002-10-06 Christopher Faylor <cgf@redhat.com>
2677
2678 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2679 insure that shell variables, such as "transformed_name" are propagated
2680 to later shell statements in rule.
2681
2682 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2683
2684 * config/i386/nm-i386sco.h: Add protection against
2685 multiple-inclusion. Include "i386/nm-i386v.h".
2686 (REGISTER_U_ADDR): Remove define.
2687 (i386_register_u_addr): Remove prototype.
2688
2689 2002-10-04 Michael Snyder <msnyder@redhat.com>
2690
2691 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2692 before treating it as a single-step event.
2693
2694 2002-10-03 Adam Fedor <fedor@gnu.org>
2695
2696 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2697 (objc_demangle): Remove assignment in if statements, Replace
2698 free with xfree.
2699 (add_msglist): Likewise.
2700 (end_msglist): Likewise.
2701 (complare_selectors): Likewise.
2702 (selectors_info): Likewise.
2703 (compare_classes): Likewise.
2704 (classes_info): Likewise.
2705 (print_object_command): Likewise.
2706 (find_objc_msgcall_submethod): Replace PTR with void *.
2707 * objc-lang.h: Remove check for __STDC__.
2708
2709 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2710
2711 * ui-out.h (ui_out_field_fmt_int): New prototype.
2712 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2713 of field width and alignment.
2714 * stack.c (print_frame_info_base): When printing frame level, use
2715 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2716 PR gdb/192
2717
2718 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2719
2720 * MAINTAINERS: Add self to Write After Approval list.
2721
2722 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2723
2724 * infcmd.c (interrupt_target_command_wrapper): Delete.
2725 (interrupt_target_command): Make non static.
2726 (nofp_registers_info): Make static.
2727 * stack.c (return_command_wrapper): Delete.
2728 (return_command): Make non static.
2729
2730 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2731
2732 * event-top.c (gdb_setup_readline): New function. Code moved from
2733 _initialize_event_loop().
2734 (_initialize_event_loop): Call gdb_setup_readline().
2735
2736 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2737
2738 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2739 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2740 * gdbarch.h, gdbarch.c: Re-generate.
2741
2742 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2743
2744 Fix PR gdb/778
2745 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2746 before recursing.
2747 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2748 of fill_in_vptr_fieldno.
2749
2750 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2751
2752 * inferior.h (registers_info, stepi_command, nexti_command,
2753 continue_command, interrupt_target_command): Export from infcmd.c.
2754 * frame.h (args_info, selected_frame_level_changed_hook,
2755 return_command): Export from stack.c.
2756 * v850ice.c (stepi_command, nexti_command, continue_command): use
2757 prototypes from inferior.h.
2758 * tracepoint.c (registers_info, args_info, locals_info): Use
2759 prototypes from frame.h and inferior.h.
2760 * Makefile.in (mi-main.o): Add dependency on frame.h.
2761
2762 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2763
2764 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2765 value in register 3 adjusted by ppc_gp0_regnum.
2766
2767 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2768
2769 2002-10-02 Marko Mlinar <markom@opencores.org>
2770
2771 * MAINTAINERS: Add myself to the Write After Approval list.
2772
2773 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2774
2775 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2776 of the section for the N64 ABI, fixed.
2777
2778 * config/mips/tm-irix6.h: Include solib.h.
2779
2780 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2781
2782 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2783 GNU operators.
2784
2785 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2786
2787 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2788 and that "mi0" syntax has been removed.
2789
2790 2002-09-30 David Carlton <carlton@math.stanford.edu>
2791
2792 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2793 * ppc-sysv-tdep.c: #include "gdb_string.h".
2794 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2795 pacify GCC.
2796
2797 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2798
2799 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2800 "vrsave"'s register number.
2801
2802 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2803
2804 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2805 use frame_unwind_signed_register to obtain the PC.
2806 (mips_frame_chain): Handle a generic dummy frame.
2807 (mips_init_extra_frame_info): When a generic dummy frame, don't
2808 re-compute the frame base.
2809 (mips_pop_frame): Handle generic dummy frames.
2810 (mips_gdbarch_init): When generic dummy frames, set
2811 use_generic_dummy_frames, push_dummy_frame to
2812 generic_push_dummy_frame, pc_in_call_dummy to
2813 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2814 generic_save_dummy_frame_tos.
2815
2816 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2817
2818 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2819 against TOP when TOP was explictly set.
2820 (generic_push_dummy_frame): Set TOP to zero.
2821
2822 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2823
2824 * event-loop.c (start_event_loop): Rename variable 'result' to
2825 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2826
2827 2002-09-30 Keith Seitz <keiths@redhat.com>
2828
2829 * gdb-events.sh (selected_thread_changed): New event.
2830 * gdb-events.c: Regenerated.
2831 * gdb-events.h: Regenerated.
2832
2833 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2834
2835 * MAINTAINERS: Add self to Write After Approval list.
2836
2837 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2838
2839 * disasm.c: New file.
2840 * disasm.h: New file.
2841 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2842 (compare_lines): Ditto.
2843 (dump_insns): Ditto.
2844 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2845 argument.
2846 (do_assembly_only): Ditto.
2847 (do_disassembly): Renamed to gdb_disassembly and moved to
2848 disasm.c. Sdded uiout argument.
2849 * Makefile.in: Add new files. Reorder SFILES list. Update
2850 dependencies. Include libgdb.a later in the insight executable.
2851
2852 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2853
2854 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2855 bfd/elf64-alpha-fbsd.c.
2856
2857 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2858
2859 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2860 i386gnu-tdep.c.
2861
2862 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2863
2864 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2865 __FUNCTION__.
2866 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2867 function name.
2868 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2869 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2870 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2871 (S_msg_sig_post_reply): Ditto.
2872
2873 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2874
2875 * sh-tdep.c (sh_use_struct_convention): Use definition according
2876 to ABI.
2877 (sh_push_arguments): Store in register with correct endianess.
2878 (sh_default_store_return_value): Ditto.
2879 (sh_gdbarch_init): Set sizeof long double to 8.
2880
2881 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2882
2883 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2884 Fix some whitespace problems.
2885
2886 2002-09-27 David Carlton <carlton@math.stanford.edu>
2887
2888 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2889 (mcore-tdep.o): Ditto.
2890 (ns32k-tdep.o): Ditto.
2891 (ns32knbsd-tdep.o): Ditto.
2892 (sh3-rom.o): Ditto.
2893 (vax-tdep.o): Ditto.
2894 * cris-tdep.c: #include "gdb_string.h"
2895 * mcore-tdep.c: Ditto.
2896 * ns32k-tdep.c: Ditto.
2897 * ns32knbsd-tdep.c: Ditto.
2898 * sh3-rom.c: Ditto.
2899 * vax-tdep.c: Ditto.
2900
2901 2002-09-27 David Carlton <carlton@math.stanford.edu>
2902
2903 * config/djgpp/fnchange.lst: Add entries for
2904 gdb/testsuite/gdb.c++/m-static files.
2905
2906 2002-09-27 Jim Wilson <wilson@redhat.com>
2907
2908 * MAINTAINERS: Add myself to the Write After Approval list.
2909
2910 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2911
2912 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2913
2914
2915 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2916
2917 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2918 frame.
2919
2920 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2921
2922 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2923 (rs6000_struct_return_address): Delete variable.
2924 (rs6000_store_struct_return): Update.
2925 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2926 deprecated_extract_struct_value_address.
2927 (rs6000_frame_align): New function.
2928 (rs6000_gdbarch_init): Set frame_align.
2929
2930 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2931
2932 From Grace Sainsbury <graces@redhat.com>:
2933 * Makefile.in (gdbtk-main.o): New target.
2934 (gdb.o): New target.
2935 (main_h): Define.
2936 (main.o): Update dependencies.
2937 (gdb$(EXEEXT)): Add gdb.o.
2938 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2939 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2940 (SUBDIR_GDBTK_CLEAN): Set.
2941 (install-gdbtk): Install the insight binary.
2942 (uninstall-gdbtk): New target.
2943 (all-gdbtk, clean-gdbtk): New rule.
2944 * top.c (use_windows): Default to zero.
2945 * main.c: Include "main.h".
2946 (main): Delete.
2947 (struct captured_main_args): Delete.
2948 (gdb_main): New function.
2949 * main.h: New file.
2950 * gdb.c: New File.
2951
2952 2002-09-25 Andrew Cagney <cagney@redhat.com>
2953
2954 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2955 (frame_map_regnum_to_name): New function.
2956 (frame_map_name_to_regnum): New function.
2957 * frame.h (frame_map_name_to_regnum): Declare.
2958 (frame_map_regnum_to_name): Declare.
2959 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2960 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2961 * parse.c: Do not include "builtin-regs.h".
2962 (target_map_name_to_register): Delete function.
2963 (write_dollar_variable): Use frame_map_name_to_regnum.
2964 * parser-defs.h (target_map_name_to_register): Delete declaration.
2965 * expprint.c: Include "frame.h".
2966 (print_subexp): Use frame_map_regnum_to_name.
2967 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2968 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2969
2970 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2971
2972 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2973 wasn't saved, and the next innermost frame is a dummy, return the
2974 dummy frame's link register.
2975
2976 2002-09-24 Jim Blandy <jimb@redhat.com>
2977
2978 Fix from Paul Breed:
2979 * main.c (captured_main): Add a `break' after the case for 'b'.
2980
2981 2002-09-24 Keith Seitz <keiths@redhat.com>
2982
2983 * varobj.c (c_type_of_child): Use get_target_type instead
2984 of TYPE_TARGET_TYPE.
2985
2986 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2987
2988 * source.c (get_current_or_default_source_symtab_and_line): Remove
2989 function.
2990 (set_default_source_symtab_and_line): New function. Attempts to
2991 determine a source file to list lines from if one is not currently
2992 defined.
2993 (get_current_source_symtab_and_line): Initialize sal.pc and
2994 sal.end fields.
2995 (set_current_source_symtab_and_line): Mark argument as const.
2996 * source.h: Update declarations and comments.
2997 * linespec.c (decode_line_1): Replace call to removed routine above.
2998 * stack.c (print_frame_info_base): Ditto.
2999 * cli/cli-cmds.c (edit_command): Ditto.
3000 (list_command): Ditto.
3001
3002 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3003
3004 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3005 sal.pc and sal.end fields.
3006 (get_current_or_default_source_symtab_and_line): Ditto.
3007 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3008 so we do not cause a new source symtab to be searched for (reverting an
3009 unintentional change from the 2002-09-20 patch).
3010 * scm-lang.c (scm_unpac): Ditto.
3011
3012 2002-09-21 Andrew Cagney <cagney@redhat.com>
3013
3014 * complaints.c (symfile_explanations): Remove new-line from
3015 ``isolated_message''.
3016 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3017 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3018
3019 2002-09-20 Nick Clifton <nickc@redhat.com>
3020
3021 * NEWS: Announce that V850EA ISA is no longer supported.
3022 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3023
3024 2002-09-20 David Carlton <carlton@math.stanford.edu>
3025
3026 * Makefile.in (c-lang.o): Correct dependencies.
3027 (utils.o): Gather dependencies.
3028 (charset.o): Move.
3029 * c-lang.c: #include "gdb_string.h"
3030
3031 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3032
3033 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3034 * cli/cli-cmds.c (list_command): New function. Implements the new
3035 cli edit command.
3036 (_init_cli_cmds): Add new command definition.
3037 * gdb.1: Document edit command.
3038 * doc/gdb.texinfo: Document edit command.
3039
3040 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3041
3042 * source.c: Make global variables current_source_symtab and
3043 current_source_line static.
3044 (list_command): Moved to cli/cli-cmds.c.
3045 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3046 (get_first_line_listed): New accessor function.
3047 (get_lines_to_list): New accessor function.
3048 (get_current_source_symtab_and_line): New function. Retrieves the
3049 position in the source code that we consider current.
3050 (get_current_or_default_source_symtab_and_line): New function.
3051 Like the above but attempts to determine a default position if one
3052 is not currently defined.
3053 (set_current_source_symtab_and_line): New function. Sets the source
3054 code position considered current and returns the previously set one.
3055 (clear_current_source_symtab_and_line): Reset stored information about
3056 a current source line.
3057 (_initialize_source): Remove registration for the "list" command and
3058 its alias.
3059 * source.h: Add declarations for the new functions above.
3060 * symtab.h: Remove declarations for the global variables mentioned
3061 above.
3062 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3063 obtain current source line.
3064 * linespec.c (decode_line_1): Ditto.
3065 * macroscope.c (default_macro_scope): Ditto.
3066 * scm-lang.c (scm_unpac): Ditto.
3067 * stack.c (print_frame_info_base): Ditto.
3068 * symfile.c (clear_symtab_users): Ditto.
3069 * symtab.c (decode_line_spec): Ditto.
3070 * cli/cli-cmds.c (list_command): Moved here from source.c.
3071 (ambiguous_line_spec): Moved here from source.c.
3072 (_init_cli_cmds): Add definition for "list" and its alias.
3073 * Makefile.in: Update dependencies.
3074
3075 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3076
3077 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3078 with what gcc thinks is correct.
3079
3080 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3081
3082 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3083 multiple register push instruction.
3084
3085 2002-09-19 Jim Blandy <jimb@redhat.com>
3086
3087 Add support for distinct host and target character sets.
3088 * charset.c, charset.h: New files.
3089 * c-exp.y: #include "charset.h".
3090 (yylex): Convert character and string literals to the target
3091 character set, before returning them as the semantic value of the
3092 token.
3093 * c-lang.c: #include "charset.h".
3094 (c_emit_char): Use charset-specific methods to recognize
3095 characters with backslash escape forms, to decide which characters
3096 to print literally and which to print using numeric escape
3097 sequences, and to convert target characters to host characters
3098 before printing.
3099 * utils.c: #include "charset.h".
3100 (no_control_char_error): New function.
3101 (parse_escape): Use charset-specific methods to recognize
3102 backslash escapes, parse `control character' notation, and convert
3103 characters from the host character set to the target character set.
3104 * configure.in: Set the default host character set.
3105 Check where to find iconv, and what its argument types might be.
3106 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3107 * Makefile.in (SFILES): List charset.c.
3108 (COMMON_OBS): List charset.o.
3109 (charset.o): New rule.
3110 (charset_h): New header dependency variable.
3111 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3112 (LIBICONV): New variable, set by configure.
3113 (CLIBS): Include $(LIBICONV) here.
3114 * aclocal.m4, config.in, configure: Regenerated.
3115
3116 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3117
3118 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3119 bison 1.35 warning.
3120
3121 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3122
3123 * gdb_mbuild.sh: New file.
3124
3125 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3126
3127 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3128
3129 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3130
3131 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3132 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3133 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3134 valops.c, value.h: Revert previous change.
3135
3136 2002-09-18 Michael Snyder <msnyder@redhat.com>
3137
3138 Preliminary support for Objective-C:
3139 * defs.h (language_objc): New enum value.
3140 (puts_filtered_tabular): Declaration only, exported from utils.c.
3141 (skip_quoted): Delete, declared in completer.h.
3142 * c-exp.y: Include completer.h.
3143 * p-exp.y: Ditto.
3144 * jv-exp.y: Ditto.
3145 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3146 New operator enum values.
3147 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3148 * language.c (binop_result_type): Handle language_objc case.
3149 (integral_type, character_type, string_type, boolean_type,
3150 structured_type, binop_type_check): Ditto.
3151 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3152 (struct objc_specific): Add to general_symbol_info.
3153 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3154 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3155 * parser-defs.h (struct objc_class_str): New struct type.
3156 (start_msglist, end_msglist, add_msglist): Declaration only,
3157 exported from objc-lang.c.
3158 * value.h (value_of_local, value_nsstring,
3159 call_function_by_hand_expecting_type): Exported from valops.c.
3160 * valops.c (find_function_addr): Export.
3161 (call_function_by_hand_expecting_type): New function.
3162 (value_of_local): New function.
3163 * symfile.c (init_filename_language_table): Add ".m" extension
3164 for Objective-C.
3165 * utils.c (puts_filtered_tabular): New function.
3166 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3167 (set/show demangle): Extend help-string to refer to ObjC.
3168 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3169 * stabsread.c (symbol_reference_defined): Objective-C symbols
3170 may contain colons: make allowances when scanning stabs strings
3171 for colons.
3172 (objc_find_colon): New function.
3173 * printcmd.c (address_info): If language == objc then print
3174 "self" instead of "this".
3175 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3176 OP_NSSTRING, and OP_SELF.
3177 (prefixify_subexp): Ditto.
3178 * source.c (print_source_lines): Mention objc in comment.
3179 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3180 method names.
3181
3182 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3183
3184 * complaints.h: Update copyright.
3185 (struct complaints): Declare.
3186 (struct complaint): Make `message' constant.
3187 (internal_complaint): Declare.
3188 (complaint): Declare.
3189 (complaint_root): Delete declaration.
3190 (symfile_complaints): Delete declaration.
3191 (struct complaints): Add opaque declaration.
3192 (clear_complaints): Add a complaints parameter.
3193 * complaints.c: Update copyright.
3194 (enum complaint_series): Define.
3195 (complaint_root): Delete.
3196 (struct complaints): Define.
3197 (complaint_sentinel, symfile_complaint_book): New variables.
3198 (symfile_explanations, symfile_complaints): New variables.
3199 New variables.
3200 (get_complaints): New function.
3201 (vcomplaint): New function.
3202 (complaint): New function.
3203 (internal_complaint): New function.
3204 (complain): Call vcomplain with symfile_complaint.
3205 (clear_complaints): Rewrite.
3206 (_initialize_complaints): Use add_setshow_command.
3207 * Makefile.in (complaints.o): Update dependencies.
3208 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3209 to call to clear_complaints.
3210 (new_symfile_objfile, reread_symbols): Ditto.
3211 (oldsyms_complaint): Delete.
3212 (empty_symtab_complaint, unknown_option_complaint): Delete.
3213 (free_named_symtabs): Use complaint instead of complain.
3214
3215 2002-09-18 Michael Snyder <msnyder@redhat.com>
3216
3217 Contributed by Apple Computer, Inc. Merged with current sources
3218 by Adam Fedor <fedor@doc.com> [cagney].
3219
3220 * objc-lang.c: First clean-up round: comments, indentation.
3221 * objc-lang.h: Ditto.
3222 * objc-lang.y: Ditto.
3223
3224 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3225
3226 * maint.c (maintenance_internal_error): Print the parameter as the
3227 error message.
3228 (maintenance_internal_warning): New function.
3229 (_initialize_maint_cmds): Add command `maint internal-warning'.
3230
3231 * defs.h (internal_warning, internal_vwarning): Declare.
3232 * utils.c (struct internal_problem): Define.
3233 (internal_vproblem): New function.
3234 (internal_warning): New function.
3235 (internal_vwarning): New function.
3236 (internal_warning_problem, internal_error_problem): New variables.
3237 (internal_verror): Just call internal_vproblem.
3238
3239 2002-09-18 Michael Snyder <msnyder@redhat.com>
3240
3241 * objc-lang.c: New file, support for Objective-C.
3242 Preliminary check-in, not yet integrated into gdb.
3243 * objc-lang.h: New file.
3244 * objc-exp.y: New file.
3245
3246 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3247
3248 * infrun.c (signal_stop_update): Convert definition to ISO C.
3249 (signal_print_update): Ditto.
3250 (signal_pass_update): Ditto.
3251 * inflow.c (terminal_save_ours): Ditto.
3252
3253 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3254 comments.
3255
3256 * config/djgpp/fnchange.lst: Handle name clashes between
3257 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3258 bfd/coff-tic80.c.
3259
3260 * i386-linux-tdep.h: Fix tipo.
3261
3262 2002-09-18 Adam Fedor <fedor@gnu.org>
3263
3264 * MAINTAINERS: Add myself to the Write After Approval list.
3265
3266 2002-09-18 Jim Blandy <jimb@redhat.com>
3267
3268 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3269 texthigh and textlow to reader-specific structs caused
3270 objfile_relocate to miss them. This is fixable, but the work that
3271 the change was supposed to prepare GDB for never got done anyway.
3272
3273 2002-09-18 David Carlton <carlton@math.stanford.edu>
3274
3275 * MAINTAINERS: Alphabetize Write After Approval list.
3276
3277 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3278
3279 Fix PR gdb/709
3280 * values.c (value_static_field): Call read_var_value.
3281
3282 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3283
3284 * valops.c (hand_function_call): Align the initial stack pointer
3285 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3286 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3287 return value.
3288 * mips-tdep.c (mips_frame_align): New function.
3289 (mips_gdbarch_init): Set frame_align.
3290 * gdbarch.sh (FRAME_ALIGN): New method.
3291 * gdbarch.h, gdbarch.c: Re-generate.
3292
3293 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3294
3295 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3296 registers.
3297
3298 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3299
3300 * NEWS: Mention that MIPS $fp behavior changed.
3301 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3302 reference to FP_REGNUM.
3303 (mipsnbsd_cannot_store_register): Ditto.
3304 * mips-linux-nat.c: Update copyright.
3305 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3306 (mips_linux_cannot_store_register): Ditto.
3307 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3308 * config/mips/tm-mips.h: Update copyright.
3309 (FP_REGNUM): Delete macro.
3310 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3311 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3312 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3313 (mips_r3041_reg_names, mips_r3051_reg_names)
3314 (mips_r3081_reg_names): Replace "fp" with "".
3315 Fix PR gdb/480.
3316
3317 2002-09-17 Theodore A. Roth <troth@verinet.com>
3318
3319 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3320 generic_read_register_dummy() (PR gdb/703).
3321 (avr_push_return_address): #if 0 out unused vars.
3322 (avr_gdbarch_init): Enable use of avr_push_return_address().
3323
3324 2002-09-17 Michael Snyder <msnyder@redhat.com>
3325
3326 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3327 RTE will take care of it.
3328
3329 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3330
3331 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3332 invalid, return SP_REGNUM.
3333
3334 2002-09-17 Michael Snyder <msnyder@redhat.com>
3335
3336 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3337 point registers without sign extension.
3338
3339 2002-09-17 Andrew Cagney <cagney@redhat.com>
3340
3341 * blockframe.c (deprecated_read_register_dummy): Rename
3342 generic_read_register_dummy.
3343 * frame.c (frame_unwind_signed_register): New function.
3344 (frame_unwind_unsigned_register): New function.
3345 * frame.h (frame_unwind_signed_register): Declare.
3346 (frame_unwind_unsigned_register): Declare.
3347 (deprecated_read_register_dummy): Rename
3348 generic_read_register_dummy.
3349
3350 * h8300-tdep.c (h8300_frame_chain): Update.
3351 (h8300_frame_saved_pc): Update.
3352 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3353 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3354 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3355 (s390_frame_chain): Update.
3356 * v850-tdep.c (v850_find_callers_reg): Update.
3357 (v850_frame_saved_pc): Update.
3358 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3359 (m32r_find_callers_reg): Update.
3360 (m32r_frame_saved_pc): Update.
3361 * sh-tdep.c (sh_find_callers_reg): Update.
3362 (sh64_get_saved_pr): Update.
3363 (sh_init_extra_frame_info): Update.
3364 (sh_init_extra_frame_info): Update.
3365 (sh64_init_extra_frame_info): Update.
3366 (sh64_init_extra_frame_info): Update.
3367 * mcore-tdep.c (mcore_find_callers_reg): Update.
3368 (mcore_frame_saved_pc): Update.
3369 (mcore_init_extra_frame_info): Update.
3370 * i386-tdep.c (i386_frame_saved_pc): Update.
3371 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3372 (ia64_init_extra_frame_info): Update.
3373 (ia64_init_extra_frame_info): Update.
3374 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3375 * cris-tdep.c (cris_init_extra_frame_info): Update.
3376 * avr-tdep.c (avr_frame_chain): Update.
3377 (avr_init_extra_frame_info): Update.
3378 (avr_frame_saved_pc): Update.
3379 * arm-tdep.c (arm_find_callers_reg): Update.
3380 (arm_init_extra_frame_info): Update.
3381 (arm_frame_saved_pc): Update.
3382
3383 2002-09-17 Tom Tromey <tromey@redhat.com>
3384
3385 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3386 is "'".
3387
3388 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3389
3390 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3391 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3392 NEXT_PROLOGUE_INSN.
3393 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3394 NEXT_PROLOGUE_INSN.
3395
3396 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3397
3398 * osfsolib.c: Remove file, replaced by solib-osf.c.
3399 * Makefile.in: Remove compilation rules for osfsolib.c.
3400
3401 2002-09-16 David Carlton <carlton@math.stanford.edu>
3402
3403 * cp-valprint.c (cp_print_class_method): Correct args to
3404 check_stub_method_group.
3405
3406 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3407
3408 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3409 `set architecture'. Unify naming convention of functions.
3410 (h8300_skip_prologue): Improve prologue analysis.
3411 (h8300_push_arguments): Rewritten to more closely match GCC's
3412 bizarre argument-passing behavior, along with the comment describing
3413 said behavior.
3414 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3415 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3416 sim, remote-e7000.c, remote-hms.c and remote.c
3417
3418 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3419
3420 * i386-tdep.c (gdb_print_insn_i386): Removed.
3421 (i386_print_insn): New function.
3422 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3423 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3424 tm_print_insn_info.
3425
3426 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3427
3428 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3429 zero.
3430
3431 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3432
3433 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3434 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3435 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3436
3437 2002-09-13 Christopher Faylor <cgf@redhat.com>
3438
3439 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3440
3441 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3442
3443 * gdbtypes.c (check_stub_method): Make static.
3444 (check_stub_method_group): New function.
3445 * gdbtypes.h: Update prototypes.
3446 * cp-support.c: New file.
3447 * cp-support.h: New file.
3448
3449 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3450 (update_method_name_from_physname): New function.
3451 (read_member_functions): Correct method names for operators
3452 and v3 constructors/destructors. Separate v2 constructors and
3453 destructors.
3454 * Makefile.in (stabsread.o): Update dependencies.
3455 (SFILES): Add cp-support.c.
3456 (COMMON_OBS): Add cp-support.o.
3457 (cp_support_h, cp-support.o): Add.
3458
3459 * cp-valprint.c (cp_print_class_method): Call
3460 check_stub_method_group instead of check_stub_method. Remove
3461 extraneous QUITs.
3462 * p-valprint.c (pascal_object_print_class_method): Likewise.
3463 * valops.c (search_struct_method): Likewise.
3464 (find_method_list, value_struct_elt_for_reference): Likewise.
3465
3466 2002-09-13 Andrew Cagney <cagney@redhat.com>
3467
3468 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3469 * gdbarch.h, gdbarch.c: Regenerate.
3470
3471 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3472
3473 * frame.c (find_saved_register): Delete function.
3474 * frame.h (find_saved_register): Delete declaration.
3475 Fix PR gdb/631.
3476
3477 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3478
3479 * mips-tdep.c (read_next_frame_reg): Re-hack using
3480 frame_register_unwind.
3481
3482 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3483
3484 * mips-tdep.c (mips_get_saved_register): Re-hack using
3485 frame_register_unwind.
3486
3487 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3488
3489 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3490 vector. Will be useful for Interix.
3491 * gdbarch.h, gdbarch.c: Regenerate.
3492
3493 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3494 name of the malloc function by NAME_OF_MALLOC.
3495
3496 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3497
3498 * value.h (find_function_in_inferior): Add const keyword to
3499 one of the parameters. Allows us to invoke this function with
3500 a const char *.
3501 * valops.c (find_function_in_inferior): Likewise.
3502
3503 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3504
3505 * exec.c (xfer_memory): Fix compilation warning with old versions
3506 of GCC.
3507 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3508
3509 2002-09-12 David Carlton <carlton@math.stanford.edu>
3510
3511 * symtab.h: Run through gdb_indent.h.
3512 Add 2002 to Copyright year list.
3513
3514 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3515
3516 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3517 mach constants.
3518 * MAINTAINERS: Add myself to write after approval list.
3519
3520 2002-09-11 J. Brobecker <brobecker@gnat.com>
3521
3522 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3523
3524 2002-09-11 J. Brobecker <brobecker@gnat.com>
3525
3526 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3527 Interix.
3528
3529 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3530
3531 * procfs.c (do_detach): Clear current signal, not just fault.
3532 Corrects problem with breakpoint trap signal leaking to detached
3533 process on Tru64.
3534
3535 2002-09-10 Michael Snyder <msnyder@redhat.com>
3536
3537 * buildsym.c (finish_block): Protect against null pointer.
3538
3539 2002-09-10 Andrew Cagney <cagney@redhat.com>
3540
3541 * infcmd.c (default_print_registers_info): Send all output to
3542 ``file'' instead of ``gdb_stdout''.
3543
3544 2002-09-10 Michael Snyder <msnyder@redhat.com>
3545
3546 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3547 LONGEST, and use signed register read (addresses are sign-
3548 extended for mips).
3549
3550 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3551
3552 * event-loop.c (gdb_do_one_event): Make public.
3553 * event-loop.h (gdb_do_one_event): Declare.
3554
3555 2002-09-10 Jeff Law <law@redhat.com>
3556
3557 * infttrace.c (child_resume): Simplify and rework to avoid
3558 TT_PROC_CONTINUE.
3559
3560 2002-09-09 Fred Fish <fnf@intrinsity.com>
3561
3562 * printcmd.c (print_scalar_formatted): "len" is the number of
3563 target bytes, NOT the number of target bits.
3564
3565 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3566
3567 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3568 * top.c (init_main): Set rl_terminal_name.
3569
3570 2002-09-08 Aidan Skinner <aidan@velvet.net>
3571
3572 * ada-lang.c (ada_array_bound, ada_type_match,
3573 _initialize_ada_language): Fix K&R definitions.
3574 * ada-tasks.c (get_current_task): Fix K&R definitions.
3575 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3576
3577 2002-09-07 Christopher Faylor <cgf@redhat.com>
3578
3579 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3580 Add XP.
3581
3582 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3583
3584 * i386-tdep.c (i386_register_virtual_type,
3585 i386_register_convertible, i386_register_convert_to_virtual,
3586 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3587 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3588 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3589 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3590 Don't set push_arguments twice.
3591
3592 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3593 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3594 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3595 sigtramp_end to NULL.
3596 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3597 defines.
3598 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3599
3600 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3601 whitespace.
3602
3603 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3604 * gdbarch.h, gdbarch.c: Re-generate.
3605 * blockframe.c (find_pc_sect_partial_function): Convert to use
3606 SIGTRAMP_START_P predicate.
3607
3608 2002-09-05 Michael Snyder <msnyder@redhat.com>
3609
3610 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3611 generic_dummy_frame method and old method. Also distinguish
3612 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3613 (arm_extract_return_value): Use new regcache method.
3614
3615 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3616 adjustment that doesn't conform to the ABI.
3617 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3618 saved regcache, not from current regcache.
3619
3620 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3621
3622 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3623 * README: Update.
3624
3625 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3626
3627 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3628 if arm_apcs_32 is false.
3629
3630 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3631
3632 GDB 5.3 branch created.
3633
3634 2002-09-03 Theodore A. Roth <troth@verinet.com>
3635
3636 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3637 generic_unwind_get_saved_register.
3638
3639 2002-09-03 David Carlton <carlton@math.stanford.edu>
3640
3641 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3642 argument (PR gdb/653). Update call to smash_to_method_type.
3643 (read_structure_scope): Update call to dwarf2_add_member_fn.
3644
3645 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3646
3647 * x86-64-linux-tdep.c: Include gdb_string.h
3648 * x86-64-linux-nat.c: Ditto.
3649
3650 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3651
3652 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3653 when YYDEBUG is set to 1.
3654 * c-exp.y: Likewise.
3655 * f-exp.y: Likewise.
3656 * jv-exp.y: Likewise.
3657 * m2-exp.y: Likewise.
3658 * p-exp.y: Likewise.
3659
3660 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3661
3662 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3663 dependency list.
3664 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3665 solib_svr4_fetch_link_map_offsets to
3666 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3667 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3668 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3669 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3670 solib-svr4.o, and solib-legacy.o.
3671 * config/i386/tm-nbsd.h: Include solib.h.
3672
3673 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3674
3675 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3676 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3677 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3678 comment noting that this needs its own target configuration.
3679 * config/i386/nbsd.mt: New file.
3680 * config/i386/nbsdaout.mt: Remove.
3681 * config/i386/nbsdelf.mt: Ditto.
3682 * config/i386/tm-nbsdaout.h: Ditto.
3683
3684 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3685
3686 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3687 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3688 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3689 tdep->sigtramp_end.
3690 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3691 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3692 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3693
3694 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3695
3696 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3697 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3698 * i386-tdep.h (i386bsd_init_abi): New prototype.
3699 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3700 function declaration.
3701 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3702 for NetBSD-a.out or NetBSD-ELF.
3703 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3704 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3705 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3706 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3707 and nbsd-tdep.h.
3708 (i386nbsd_pc_in_sigtramp): New function.
3709 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3710 i386nbsd_pc_in_sigtramp.
3711 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3712 and i386nbsdelf_init_abi OS ABI handlers.
3713 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3714 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3715
3716 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3717
3718 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3719 registers if the target really has them.
3720
3721 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3722
3723 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3724 than nbsd-tdep.h.
3725
3726 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3727
3728 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3729 list.
3730 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3731 (alphanbsd_skip_sigtramp_frame): New functions.
3732 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3733 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3734 to alphanbsd_sigcontext_addr.
3735
3736 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3737
3738 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3739 list.
3740 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3741 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3742 nbsd_pc_in_sigtramp.
3743 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3744 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3745 * nbsd-tdep.c: Include gdb_string.h.
3746 (nbsd_pc_in_sigtramp): New function.
3747 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3748 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3749 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3750 ppcnbsd_pc_in_sigtramp.
3751 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3752 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3753 shnbsd_pc_in_sigtramp.
3754 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3755 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3756 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3757
3758 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3759
3760 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3761 watchpoints to NULL.
3762 (insert_breakpoints): set val field of watchpoints if NULL.
3763
3764
3765 2002-08-29 Jim Blandy <jimb@redhat.com>
3766
3767 * symtab.c (lookup_symbol_aux): In the cases where we find a
3768 minimal symbol of an appropriate name and use its address to
3769 select a symtab to read and search, use `name' (as passed to us)
3770 as the demangled name when searching the symtab's global and
3771 static blocks, not the minsym's name.
3772
3773 2002-08-29 Keith Seitz <keiths@redhat.com>
3774
3775 * stack.c (print_frame_info_base): Always set current_source_symtab
3776 and current_source_line.
3777
3778 2002-08-29 Donn Terry <donnte@microsoft.com>
3779
3780 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3781
3782 2002-08-28 Keith Seitz <keiths@redhat.com>
3783
3784 * stack.c (select_frame): Add FIXME concerning selected-frame
3785 events.
3786 (select_frame_command): Send selected-frame-level-changed
3787 event notification, but only if the level actually changed.
3788 (up_silently_base): Add selected-frame-level-changed event
3789 notification.
3790 (down_silently_base): Likewise.
3791
3792 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3793
3794 * Makefile.in: Update dependencies for all gdb/*.c files.
3795
3796 2002-08-27 Tom Tromey <tromey@redhat.com>
3797
3798 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3799 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3800 Update dependencies.
3801 * i387-tdep.c: Include gdb_string.h.
3802 * osabi.c: Likewise.
3803 * i386-linux-nat.c: Likewise.
3804 * lin-lwp.c: Likewise.
3805 * ax-gdb.c: Likewise.
3806 * signals/signals.c: Likewise.
3807 * jv-valprint.c: Likewise.
3808 * p-lang.c: Likewise.
3809 * c-valprint.c: Likewise.
3810 * cp-abi.c: Likewise.
3811
3812 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3813
3814 * cli/cli-script.h (copy_command_lines): Export.
3815 * breakpoint.c: Include cli/cli-script.h.
3816 * Makefile.in (breakpoint.o): Update dependencies.
3817
3818 2002-08-26 Michael Snyder <msnyder@redhat.com>
3819
3820 * breakpoint.c (insert_breakpoints): Protect all references
3821 to 'process_warning'. Shorten long lines.
3822
3823 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3824
3825 * cli/cli-script.c (copy_command_lines): New function.
3826 * defs.h (copy_command_lines): Export.
3827 * testsuite/gdb.base/commands.exp: New tests for commands
3828 attached to a temporary breakpoint, and for commands that
3829 delete the breakpoint they are attached to.
3830
3831 2002-08-26 Michael Snyder <msnyder@redhat.com>
3832
3833 * breakpoint.c (bpstat_stop_status): Instead of copying the
3834 pointer to the breakpoint commands struct, make a new copy
3835 of the struct and point to that.
3836 (bpstat_clear): Free the commands struct.
3837 (bpstat_clear_actions): Free the commands struct.
3838 (bpstat_do_actions): Free the command actions. Also execute
3839 the local cleanups, instead of deleting them.
3840 (delete_breakpoint): Leave the commands field of the bpstat
3841 chain alone -- it will be freed later.
3842
3843 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3844
3845 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3846 deleted in 2002-08-20 commit. This function is still used by
3847 ppc-linux-nat.c.
3848
3849 2002-08-26 Keith Seitz <keiths@redhat.com>
3850
3851 * gdb-events.sh: Add selected-frame-level-changed event.
3852 * gdb-events.c: Regenerated.
3853 * gdb-events.h: Regenerated.
3854
3855 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3856
3857 Fix PR gdb/393:
3858 * inflow.c (terminal_save_ours): New function to save terminal
3859 settings.
3860 * inferior.h (terminal_save_ours): Declare.
3861 * target.c (debug_to_terminal_save_ours): New function.
3862 (cleanup_target): Defaults to_terminal_save_ours.
3863 (update_current_target): Inherit to_terminal_save_ours.
3864 (setup_target_debug): Set to_terminal_save_ours.
3865 * target.h (target_terminal_save_ours): New to save terminal settings.
3866 (target_ops): New member to_terminal_save_ours.
3867 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3868 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3869 * inftarg.c (init_child_ops): Likewise.
3870 * m3-nat.c (init_m3_ops): Likewise.
3871 * procfs.c (init_procfs_ops): Likewise.
3872 * wince.c (init_child_ops): Likewise.
3873 * win32-nat.c (init_child_ops): Likewise.
3874 * sol-thread.c (init_sol_thread_ops): Likewise.
3875
3876 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3877
3878 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3879 use regcache_* functions.
3880 (i386_gdbarch_init): Set store_return_value instead of
3881 deprecated_store_return_value.
3882
3883 * regcache.c (regcache_raw_write_signed,
3884 regcache_raw_write_unsigned): New functions.
3885 * regcache.h (regcache_raw_write_signed,
3886 regcache_raw_write_unsigned): New prototypes.
3887
3888 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3889
3890 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3891 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3892 source file dependencies. Cleanup corresponding generator rules.
3893
3894 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3895
3896 * regcache.h (register_offset_hack): Declare.
3897 (regcache_cooked_read_using_offset_hack): Declare.
3898 (regcache_cooked_write_using_offset_hack): Declare.
3899
3900 * regcache.c (register_offset_hack): New function.
3901 (regcache_cooked_read_using_offset_hack): New function.
3902 (regcache_cooked_write_using_offset_hack): New function.
3903 (regcache_dump): Check that the registers, according to their
3904 offset, are packed hard against each other.
3905 (cooked_xfer_using_offset_hack): New function.
3906
3907 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3908
3909 * regcache.c (struct regcache_descr): Add field register_type.
3910 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3911 in as a parameter
3912 (init_regcache_descr): Initialize register_type. Pass the descr
3913 to init_legacy_regcache_descr. Use register_type instead of
3914 REGISTER_VIRTUAL_TYPE.
3915 (register_type): New function.
3916 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3917 * regcache.h (register_type): Declare.
3918
3919 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3920
3921 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3922 instead of deprecated_store_return_value. Fix fallout from
3923 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3924
3925 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3926
3927 * regcache.c (max_register_size): New function.
3928 (init_legacy_regcache_descr): Ensure that max_register_size is
3929 large enough for REGISTER_VIRTUAL_SIZE.
3930 * regcache.h (max_register_size): Declare.
3931
3932 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3933
3934 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3935 store_return_value.
3936 (e500_extract_return_value): Change type of valbuf pointer to
3937 void.
3938
3939 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3940
3941 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3942 workaround.
3943
3944 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3945 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3946 long long) to prevent compiler warning on 64-bit systems.
3947
3948 2002-08-23 Andrew Cagney <cagney@redhat.com>
3949
3950 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3951 (DEPRECATED_STORE_RETURN_VALUE): New method.
3952 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3953 * gdbarch.h, gdbarch.c: Re-generate.
3954
3955 * values.c (set_return_value): Pass current_regcache to
3956 STORE_RETURN_VALUE.
3957 * arch-utils.h (legacy_store_return_value): Declare.
3958 * arch-utils.c (legacy_store_return_value): New function.
3959 (legacy_extract_return_value): Update parameters.
3960
3961 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3962 STORE_RETURN_VALUE.
3963 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3964 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3965 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3966 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3967 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3968 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3969 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3970 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3971 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3972 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3973
3974 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3975 * i386-tdep.c (i386_extract_return_value): Update.
3976 * arch-utils.c (legacy_extract_return_value): Update.
3977 * frv-tdep.c (frv_gdbarch_init): Update.
3978 * cris-tdep.c (cris_gdbarch_init): Update.
3979 * d10v-tdep.c (d10v_gdbarch_init): Update.
3980 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3981 * m68k-tdep.c (m68k_gdbarch_init): Update.
3982 * mcore-tdep.c (mcore_gdbarch_init): Update.
3983 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3984 * s390-tdep.c (s390_gdbarch_init): Update.
3985 * sparc-tdep.c (sparc_gdbarch_init): Update.
3986 * sh-tdep.c (sh_gdbarch_init): Update.
3987 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3988 * v850-tdep.c (v850_gdbarch_init): Update.
3989 * avr-tdep.c (avr_gdbarch_init): Update.
3990 * ia64-tdep.c (ia64_gdbarch_init): Update.
3991 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3992 * vax-tdep.c (vax_gdbarch_init): Update.
3993 * alpha-tdep.c (alpha_gdbarch_init): Update.
3994 * arm-tdep.c (arm_gdbarch_init): Update.
3995 * mips-tdep.c (mips_gdbarch_init): Update.
3996 * i386-tdep.c (i386_gdbarch_init): Update.
3997
3998 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3999
4000 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4001 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4002
4003 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4004
4005 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4006 problems.
4007
4008 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4009
4010 * infrun.c (handle_inferior_event): Move a comment outside of a
4011 function call, in order to avoid indent reformatting this part
4012 of the code in an unreadable way.
4013
4014 2002-08-23 Grace Sainsbury <graces@redhat.com>
4015
4016 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4017 when breakpoints fail. Move general breakpoint error messages to
4018 insert_breakpoints.
4019 * breakpoint.c (insert_breakpoints): Change warnings when
4020 breakpoints are nto inserted to specify the type. Remove call to
4021 memory_error when hardware breakpoints can't be inserted. Remove
4022 multiple calls to warning so all messages are sent to the user at
4023 once.
4024 (delete_breakpoints): Make insert error messsages more explicit.
4025
4026 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4027
4028 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4029 gdbserver/ChangeLog.
4030
4031 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4032
4033 * i386-tdep.c: Include "objfiles.h".
4034 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4035 skip_trampoline_code.
4036 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4037 (CPLUS_MARKER): Define to '.'.
4038
4039 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4040 member.
4041 (linux_corefile_thread_callback): Increase args->num_notes.
4042 (linux_make_note_section): Initialize thread_args.num_notes, and
4043 use it to determine whether notes for any threads were created.
4044
4045 2002-08-23 Donn Terry <donnte@microsoft.com>
4046
4047 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4048 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4049 and PCUNKILL.
4050 (write_with_trace): Conditionalize out the switch branch handling
4051 PCSHOLD if the corresponding macro is not defined. Likewise for
4052 PRSABORT and PRSTOP.
4053 This change will be needed by the Interix port.
4054
4055 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4056
4057 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4058 write_register wherever possible instead of manipulating the
4059 register bytes directly.
4060 Assign VALUE_CONTENTS to a variable and use that.
4061 The GPR numbers are now dependent on the architecture.
4062
4063 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4064
4065 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4066 ev_offset fields.
4067 (skip_prologue): Add support for BookE/e500 instructions.
4068 (e500_extract_return_value): New function.
4069 (frame_get_saved_regs): Add support for saving ev registers and
4070 pseudo gpr's.
4071 (e500_store_return_value): New function.
4072 (rs6000_gdbarch_init): Move up default intializations of
4073 deprecated_extract_return_value and store_return_value. Overwrite
4074 init of store_return_value with e500 specific version.
4075 Set extract_return_value for e500.
4076
4077 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4078
4079 * blockframe.c (generic_call_dummy_register_unwind): Use
4080 regcache_cooked_read to catch cases in which the variable is
4081 stored in a pseudo register.
4082
4083 2002-08-22 Andrew Cagney <cagney@redhat.com>
4084
4085 * NEWS: Mention that the i960 has been made obsolete.
4086 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4087 i960-tdep.c
4088 (remote-nrom.o): Obsolete target.
4089 (remote-nindy.o, i960-tdep.o): Ditto.
4090 * remote-nrom.c: Make file obsolete.
4091 * remote-nindy.c, remote-vx960.c: Ditto.
4092 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4093 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4094 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4095 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4096 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4097 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4098 i960-*-vxworks* obsolete.
4099 * MAINTAINERS: Note that the i960 is obsolete.
4100
4101 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4102
4103 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4104 detach to allow reinitialization.
4105
4106 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4107
4108 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4109 attempt).
4110
4111 2002-08-22 Jim Blandy <jimb@redhat.com>
4112
4113 * coffread.c (coff_symfile_read): Don't try to read the line
4114 number table from disk if the image file doesn't have a symbol
4115 table; we'll never actually look at the info anyway, and Windows
4116 ships DLL's with bogus file offsets for the line number data.
4117
4118 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4119
4120 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4121 an e500 executable.
4122
4123 2002-08-21 Michael Snyder <msnyder@redhat.com>
4124
4125 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4126 (MSYMBOL_SIZE): Replace macro with function.
4127 (DEFAULT_MIPS_TYPE): Delete unused macro.
4128 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4129 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4130
4131 2002-08-21 Jim Blandy <jimb@redhat.com>
4132
4133 * valops.c (value_cast): Simplify and correct logic for doing a
4134 static cast from a pointer to a base class to a pointer to a
4135 derived class.
4136
4137 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4138
4139 * infcmd.c (default_print_registers_info): Replace
4140 do_registers_info.
4141 (registers_info): Use gdbarch_print_registers_info instead of
4142 DO_REGISTERS_INFO.
4143 * inferior.h (default_print_registers_info): Replace
4144 do_registers_info.
4145 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4146 (DO_REGISTERS_INFO): Change to a predicate function.
4147 * gdbarch.h, gdbarch.c: Regenerate.
4148
4149 2002-08-21 Keith Seitz <keiths@redhat.com>
4150
4151 * gdb-events.sh: Add target-changed event.
4152 * gdb-events.c: Regenerated.
4153 * gdb-events.c: Regenerated.
4154 * valops.c (value_assign): Add target-changed event notification
4155 to inlval_register, lval_memory, and lval_reg_frame_relative.
4156
4157 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4158
4159 * NEWS: Add an entry regarding the improvement of the next/step
4160 operation on Alpha Tru64 multi-processor machines.
4161
4162 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4163
4164 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4165 directores.
4166 * Makefile.in: Update all _h macro definitions.
4167 * Makefile.in (install-gdbtk): Move to install section.
4168 (rdi-share/libangsd.a): Move to end of file.
4169
4170 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4171
4172 * frame.c (frame_register_unwind): When a register, set addrp to
4173 the register's byte.
4174
4175 2002-08-20 Michael Snyder <msnyder@redhat.com>
4176
4177 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4178 used locally, so move them from the target machine header to here.
4179 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4180 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4181 Make static.
4182 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4183
4184 2002-08-20 Andrew Cagney <cagney@redhat.com>
4185
4186 * NEWS: Mention that the Apollo line was made obsolete.
4187 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4188 m68*-hp-hpux* obsolete.
4189 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4190 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4191 * buildsym.c (make_blockvector): Make static.
4192 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4193 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4194 (ALLDEPFILES): Remove dstread.c.
4195 (dstread.o): Obsolete make rule.
4196 * dstread.c: Makefile obsolete.
4197 * dst.h: Ditto.
4198 * config/m68k/hp300hpux.mt: Ditto.
4199 * config/m68k/hp300hpux.mh: Ditto.
4200 * config/m68k/hp300bsd.mt: Ditto.
4201 * config/m68k/hp300bsd.mh: Ditto.
4202 * config/m68k/apollo68b.mt: Ditto.
4203 * config/m68k/apollo68v.mh: Ditto.
4204 * config/m68k/apollo68b.mh: Ditto.
4205
4206 2002-08-20 Michael Snyder <msnyder@redhat.com>
4207
4208 * mips-tdep.c (mips_in_return_stub): Make static.
4209 (mips_gdbarch_init): Set in_solib_return_trampoline.
4210 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4211
4212 2002-08-20 Michael Snyder <msnyder@redhat.com>
4213
4214 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4215 * gdbarch.c, gdbarch.h: Regenerate.
4216 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4217 Add.
4218 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4219
4220 2002-08-20 Michael Snyder <msnyder@redhat.com>
4221
4222 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4223 (mips_gdbarch_init): Set skip_trampoline_code,
4224 in_solib_call_trampoline.
4225 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4226 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4227
4228 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4229
4230 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4231
4232 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4233 vector type for ev registers.
4234 (e500_pseudo_register_read): New function.
4235 (e500_pseudo_register_write): New function.
4236 (e500_dwarf2_reg_to_regnum): New function.
4237 (PPC_UISA_NOFP_SPRS): New macro.
4238 (PPC_EV_REGS): New macro.
4239 (PPC_GPRS_PSEUDO_REGS): New macro.
4240 (registers_e500): New register set for e500.
4241 (variants): Add e500 variant.
4242 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4243 before setting architectural dependent variations. Initialize ev
4244 registers numbers. Add case for e500 architecture. Set the
4245 number of pseudo registers.
4246
4247 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4248
4249 * rs6000-tdep.c: Clean up comments.
4250
4251 2002-08-20 Andrew Cagney <cagney@redhat.com>
4252
4253 * h8300-tdep.c: Re-indent file.
4254
4255 2002-08-20 Jim Blandy <jimb@redhat.com>
4256
4257 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4258 default for this.
4259
4260 2002-08-20 Keith Seitz <keiths@redhat.com>
4261
4262 * breakpoints.c (watch_command_1): Use internal breakpoint
4263 when setting a watchpoint_scope breakpoint.
4264
4265 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4266
4267 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4268 (build_builtin_type_vec64i): Ditto.
4269 (build_builtin_type_vec128): Ditto.
4270 (build_builtin_type_vec128i): Ditto.
4271
4272 2002-08-19 Michael Snyder <msnyder@redhat.com>
4273
4274 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4275 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4276 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4277 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4278 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4279 CALL_DUMMY_ADDRESS): Delete.
4280 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4281 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4282 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4283 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4284 push_return_address.
4285 (mips_register_raw_size, mips_eabi_use_struct_convention,
4286 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4287 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4288 mips_init_extra_frame_info, mips_eabi_push_arguments,
4289 mips_n32n64_push_arguments, mips_push_return_address,
4290 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4291 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4292
4293 2002-08-19 Michael Snyder <msnyder@redhat.com>
4294
4295 * mips-tdep.c (mips_frame_num_args): New function.
4296 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4297 frame_saved_pc, frame_args_address, frame_locals_address,
4298 frame_num_args, and frame_args_skip.
4299 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4300 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4301 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4302 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4303
4304 2002-08-20 Michael Snyder <msnyder@redhat.com>
4305
4306 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4307 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4308 * mips-tdep.c (mips_store_struct_return): New function.
4309 (mips_extract_struct_value_address): New function.
4310 (mips_gdbarch_init): Set store_struct_return and
4311 extract_struct_value_address.
4312
4313 2002-08-20 David Carlton <carlton@math.stanford.edu>
4314
4315 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4316 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4317 (read_file_scope): Check that line_header is nonzero before
4318 decoding macro information.
4319
4320 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4321
4322 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4323 flag the general-purpose registers as floating-point on targets
4324 that don't support the floating-point registers.
4325
4326 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4327
4328 * rs6000-tdep.c (altivec_register_p): Delete.
4329 (rs6000_do_altivec_registers): Delete.
4330 (rs6000_altivec_registers_info): Delete.
4331 (rs6000_do_registers_info): Delete.
4332 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4333 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4334
4335 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4336
4337 * infcmd.c (do_registers_info): Print vector registers in hex
4338 format only.
4339 (print_vector_info): Check that printing registers
4340 makes sense.
4341 (print_float_info): Ditto.
4342
4343 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4344
4345 * mips-tdep.c (mips_gdbarch_init): Update.
4346 (mips_o32_extract_return_value): Rewrite.
4347 (mips_o32_store_return_value): Rewrite.
4348 (mips_o32_xfer_return_value): New function.
4349 (mips_xfer_register): Tweak debug print message. Allow for
4350 buf_offset when dumping the value transfered.
4351
4352 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4353
4354 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4355 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4356 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4357 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4358 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4359
4360 2002-08-14 Michael Snyder <msnyder@redhat.com>
4361
4362 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4363
4364 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4365
4366 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4367 register.
4368 (P): New macro to define a register as a pseudo register.
4369 (R, R4, R8, R16, FR32, R64, R0): Updated.
4370 (struct variant): Add new fields for number of pseudo registers
4371 and number of total registers.
4372 (tot_num_registers): New macro replacing....
4373 (num_registers): ...deleted macro.
4374 (num_registers): New function.
4375 (num_pseudo_registers): New function.
4376 (variants): Update all variants to intialize new fields correctly.
4377 Postpone initialization of number of pseudo regs and real regs.
4378 (init_variants): New function.
4379 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4380 registers offsets.
4381
4382 2002-08-19 David Carlton <carlton@math.stanford.edu>
4383
4384 * valops.c (search_struct_field): Change error message to treat
4385 return value of 0 from value_static_field as meaning that field is
4386 optimized out.
4387 (value_struct_elt_for_reference): Ditto.
4388 * values.c (value_static_field): Treat an unresolved location the
4389 same as a nonexistent symbol. Fix PR gdb/635.
4390 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4391 enclosed. Fix PR gdb/574.
4392 * MAINTAINERS: Add self to Write After Approval list.
4393
4394 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4395
4396 * mips-tdep.c (mips_xfer_register): New function.
4397 (mips_n32n64_extract_return_value): Rewrite.
4398 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4399 instead of deprecated_extract_return_value.
4400
4401 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4402
4403 * rs6000-tdep.c (TDEP): Delete macro.
4404 (branch_dest): Replace use of TDEP macro with its body.
4405 (rs6000_pop_frame): Ditto.
4406 (rs6000_push_arguments): Ditto.
4407 (rs6000_skip_trampoline_code): Ditto.
4408 (rs6000_frame_saved_pc): Ditto.
4409 (rs6000_frame_chain): Ditto.
4410 (rs6000_register_name): Ditto.
4411 (rs6000_register_byte): Ditto.
4412 (rs6000_register_raw_size): Ditto.
4413 (rs6000_register_virtual_type): Ditto.
4414 (rs6000_register_convertible): Ditto.
4415 (rs6000_convert_from_func_ptr_addr): Ditto.
4416
4417 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4418
4419 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4420 conditionally.
4421 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4422 MIPS_LINUX_JB_ELEMENT_SIZE.
4423 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4424 for MAX_REGISTER_RAW_SIZE arrays.
4425 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4426 MIPS_LINUX_JB_ELEMENT_SIZE.
4427
4428 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4429
4430 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4431
4432 2002-08-19 Aidan Skinner <aidan@velvet.net>
4433
4434 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4435 ada-valprint.c ada-tasks.c.
4436 (YYFILES): Add ada-exp.y.
4437 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4438 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4439 (ada-exp.tab.o): New target.
4440
4441 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4442
4443 * regcache.c (regcache_xfer_part): New function.
4444 (regcache_raw_read_part): New function.
4445 (regcache_raw_write_part): New function.
4446 (regcache_cooked_read_part): New function.
4447 (regcache_cooked_write_part): New function.
4448 * regcache.h (regcache_raw_read_part): Declare.
4449 (regcache_raw_write_part): Declare.
4450 (regcache_cooked_read_part): Declare.
4451 (regcache_cooked_write_part): Declare.
4452
4453 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4454
4455 * remote.c (remote_open_1): Add async_p.
4456 (remote_async_open_1): Delete.
4457 (open_remote_target): Delete.
4458 (remote_open, extended_remote_open): Update calls to remote_open_1.
4459 (remote_async_open, extended_remote_async_open): Call
4460 remote_open_1 instead of remote_async_open_1.
4461
4462 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4463
4464 * blockframe.c: Fix a few coding standard violations.
4465
4466 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4467
4468 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4469 here from ...
4470 * config/i386/tm-i386sco5.h: ... here. File removed.
4471 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4472
4473 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4474 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4475 (TM_FILE): Set to tm-i386.h.
4476 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4477 * config/i386/tm-i386v.h: Remove file.
4478 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4479 instead of "i386/tm-i386v.h".
4480 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4481 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4482 "i386/tm-i386v.h".
4483 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4484 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4485 "i386/tm-i386.h".
4486
4487 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4488
4489 * config/i386/nm-i386v.h: Add protection against
4490 multiple-inclusion.
4491 (i386_register_u_addr): Remove prototype.
4492 (register_u_addr): New prototype.
4493 (REGISTER_U_ADDR): Redefine accordingly.
4494 * i386v-nat.c: Improve several comments.
4495 (i386_register_u_addr): Change signature and rename to
4496 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4497 ubase variable.
4498
4499 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4500
4501 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4502 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4503 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4504 deprecated_extract_return_value.
4505 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4506 rename mips_o32o64_push_arguments.
4507 (mips_gdbarch_init): Update.
4508 (mips_extract_return_value): Delete.
4509 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4510 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4511 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4512 (mips_n32n64_extract_return_value): Clone
4513 mips_extract_return_value.
4514 (mips_store_return_value): Delete.
4515 (mips_o32_store_return_value): Clone mips_store_return_value.
4516 (mips_o64_store_return_value): Clone mips_store_return_value.
4517 (mips_eabi_store_return_value): Clone mips_store_return_value.
4518 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4519
4520 2002-08-18 Aidan Skinner <aidan@velvet.net>
4521
4522 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4523 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4524
4525 2002-08-18 Aidan Skinner <aidan@velvet.net>
4526
4527 * ada-lang.c: Run through gdb_indent.sh.
4528 * ada-lang.h: Run through gdb_indent.sh.
4529 * ada-tasks.c: Run through gdb_indent.sh.
4530 * ada-typeprint.c: Run through gdb_indent.sh.
4531 * ada-valprint.c: Run through gdb_indent.sh.
4532
4533 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4534
4535 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4536 ABI.
4537
4538 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4539
4540 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4541
4542 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4543 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4544
4545 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4546 write_register_gen instead of write_register_bytes.
4547
4548 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4549 i[3456]-*-osf1mk* configurations have been made obsolete.
4550 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4551 i[3456]86-*-osf1mk* hosts obsolete.
4552 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4553 targets obsolete.
4554 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4555 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4556 config/i386/i386m3.mt, config/i386/nm-m3.h,
4557 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4558 config/i386/i386mk.mh, config/i386/i386mk.mt,
4559 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4560 obsolete.
4561 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4562 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4563 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4564
4565 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4566
4567 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4568 (hppa_value_returned_from_stack): Declare.
4569 (hppa_extract_return_value): Declare.
4570 * config/pa/hppa.mt: New file.
4571 * configure.tgt: Recognize hppa*-*-*.
4572 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4573
4574 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4575
4576 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4577 comment.
4578
4579 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4580
4581 * top.c (gdb_rl_operate_and_get_next): Make sure
4582 operate-and-get-next functions correctly even when the history
4583 list is completely filled.
4584
4585 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4586
4587 * MAINTAINERS (Target Instruction Set Architectures): Rename
4588 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4589 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4590 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4591 already listed under Host/Native.
4592
4593 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4594 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4595 mips*-*-*.
4596
4597 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4598
4599 * config/ia64/ia64.mt: New file.
4600 * config/alpha/alpha.mt: New file.
4601 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4602 ia64-linux-gnu. Mention that ia64-elf is broken.
4603 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4604
4605 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4606
4607 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4608 generic_func_frame_valid instead of func_frame_valid.
4609
4610 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4611
4612 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4613 procfs appears to be broken when debugging on multi-processor
4614 machines. So enable software single stepping in order to avoid
4615 using the procfs interface to do next/step operations, using
4616 internal breakpoints instead.
4617
4618 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4619 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4620 make this pc address equal to the value it would have if the
4621 system stepping capability was used. Also set a new flag used
4622 to ensure that we don't readjust the PC one more time later.
4623
4624 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4625 address by DECR_PC_AFTER_BREAK when software single step is
4626 in use for this architecture, as this has already been taken
4627 care of in handle_inferior_event().
4628
4629 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4630
4631 * infrun.c (handle_inferior_event): Minor reformatting, to make
4632 a rather long condition expression easier to read.
4633
4634 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4635
4636 * Makefile.in (gdbtk.o): Move to end of file.
4637 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4638 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4639 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4640 (gdbtk-wrapper.o, gdbres.o): Ditto.
4641
4642 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4643
4644 * Makefile.in (copying.o): Separate out compile rule.
4645 (hpux-thread.o, procfs.o, signals.o): Ditto.
4646 (v850ice.o, z8k-tdep.o): Ditto.
4647 (tui-file.o): Move to TUI section.
4648 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4649 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4650
4651 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4652
4653 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4654 skip_trampoline_code, for better namespace-proofing.
4655
4656 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4657
4658 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4659
4660 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4661
4662 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4663
4664 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4665 signal, check whether we hit a breakpoint before checking for a
4666 single step breakpoint. Otherwise, GDB fails to notice that a
4667 breakpoint has been hit when stepping onto a breakpoint.
4668
4669 2002-08-16 Keith Seitz <keiths@redhat.com>
4670
4671 * gdb-events.sh (clear_gdb_event_hooks): New function.
4672 * gdb-events.c: Regenerate.
4673 * gdb-events.h: Regenerate.
4674
4675 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4676
4677 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4678 not_a_sw_breakpoint.
4679 * breakpoint.h (bpstat_stop_status): Add parameter names.
4680
4681 2002-08-16 Grace Sainsbury <graces@redhat.com>
4682
4683 * remote.c (remote_insert_hw_breakpoint)
4684 (remote_remove_hw_breakpoint): Fix calculation of length field
4685 for Z-packet.
4686
4687 2002-08-15 Michael Snyder <msnyder@redhat.com>
4688
4689 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4690 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4691 (supply_fpregset): Ditto.
4692
4693 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4694 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4695 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4696 (TARGET_READ_SP): Delete.
4697 (DO_REGISTERS_INFO): Delete.
4698 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4699 Delete.
4700 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4701 from macros to functions.
4702
4703 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4704 (mips_register_convertible, mips_register_convert_to_virtual,
4705 mips_register_convert_to_raw): Make static.
4706 (mips_read_sp): New function.
4707 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4708 (mips_do_registers_info): Make static.
4709 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4710 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4711 (mips_register_convert_from_type, mips_register_convert_to_type):
4712 New functions.
4713 (mips_gdbarch_init): Set up function_start_offset,
4714 register_virtual_size, pc_in_sigtramp.
4715
4716 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4717
4718 * infcmd.c (vector_info): New function.
4719 (_initialize_infcmd): Add command "info vector".
4720 (print_vector_info): New function.
4721
4722 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4723 * gdbarch.h, gdbarch.c: Regenerate.
4724
4725 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4726
4727 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4728 ``print_all''. Only print vector registers when ``print_all''.
4729
4730 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4731
4732 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4733 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4734
4735 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4736 Add `args' parameter.
4737 * gdbarch.h, gdbarch.c: Regenerate.
4738
4739 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4740
4741 * infcmd.c (float_info): Call print_float_info.
4742 (print_float_info): New function. By default, print the
4743 floating-point registers.
4744
4745 * arch-utils.h (default_print_float_info): Delete declaration.
4746 * arch-utils.c (default_print_float_info): Delete function.
4747
4748 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4749
4750 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4751 out define.
4752
4753 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4754 FRAME.
4755
4756 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4757 * configure.host: Make i[3456]86-*-aix host obsolete.
4758 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4759 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4760 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4761 config/i386/xm-i386aix.h: Make files obsolete.
4762 * i386aix-nat.c: Make file obsolete.
4763 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4764 (i386aix-nat.o): Make target obsolete.
4765
4766 * config/i386/nm-gnu.h: Removed.
4767 * config/i386/nm-i386gnu.h: New file.
4768 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4769 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4770 Moved here from ...
4771 * config/i386/tm-i386gnu.h: ... here. Removed.
4772 * config/i386/xm-i386gnu.h: Removed.
4773 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4774 (NAT_FILE): Set to nm-i386gnu.h.
4775 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4776 * i386-tdep.c: New file.
4777 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4778 (i386gnu-tdep.o): Specify dependencies.
4779
4780 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4781
4782 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4783 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4784 Adjust a few comments to reflect reality a bit closer.
4785 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4786 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4787 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4788 target_insert_watchpoint, target_remove_watchpoint):
4789 Move defines to ...
4790 * config/i386/nm-i386sco5.h: ... here.
4791 (kernel_u_size): Add prototype. Improve a few comments and add
4792 protection against multiple inclusion.
4793
4794 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4795 out define.
4796
4797 * uw-thread.c (SP_ARG0): Define if not already defined.
4798 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4799
4800 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4801
4802 * config/i386/tm-i386.h: Don't include "regcache.h".
4803
4804 * i387-tdep.h (i387_print_float_info): New prototype.
4805 * i387-tdep.c (print_i387_value, print_i387_ext,
4806 print_i387_status_word, print_i387_control_word): Add `struct
4807 ui_file *' argument and use it for output.
4808 (i387_print_float_info): Renamed from i387_float_info. Add
4809 `struct gdbarch *' and `struct ui_file *' arguments and use the
4810 latter for output.
4811 * i386-tdep.c: Include "i387-tdep.h".
4812 (i386_gdbarch_init): Set print_float_info.
4813 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4814 (FLOAT_INFO): Remove define.
4815
4816 2002-08-13 Michael Snyder <msnyder@redhat.com>
4817
4818 * mips-tdep.c (mips_push_arguments): Rename to
4819 mips_eabi_push_arguments, and tune for EABI.
4820 (MIPS_REGS_HAVE_HOME_P): Delete.
4821 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4822 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4823 Delete references to mips_regs_have_home_p.
4824
4825 2002-08-14 Keith Seitz <keiths@redhat.com>
4826
4827 * Makefile.in (install-gdbtk): Create insight plugin directory.
4828 Install plugins.tcl file.
4829
4830 2002-08-14 Keith Seitz <keiths@redhat.com>
4831
4832 * configure.in: Move SUBDIRS to near top of the file so that
4833 --enable options may add things to it.
4834 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4835 * configure: Regenerate.
4836
4837 2002-08-13 Michael Snyder <msnyder@redhat.com>
4838
4839 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4840 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4841 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4842
4843 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4844
4845 * vax-tdep.c (vax_get_saved_register): Delete function.
4846 (vax_gdbarch_init): Update.
4847 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4848 (ns32k_gdbarch_init): Update.
4849 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4850 (alpha_gdbarch_init): Update.
4851
4852 2002-08-13 Andrew Cagney <cagney@redhat.com>
4853
4854 * regcache.c (init_regcache_descr): Overallocate the
4855 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4856 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4857 nr_raw_registers.
4858 (set_register_cached): Add range checking assertions. Use
4859 current_regcache.
4860
4861 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4862
4863 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4864 numbers for MMX registers.
4865
4866 2002-08-13 Andrew Cagney <cagney@redhat.com>
4867
4868 * i386-tdep.c (i386_gdbarch_init): Use
4869 generic_unwind_get_saved_register.
4870
4871 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4872
4873 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4874 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4875 target vector.
4876 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4877 Delete. Add comment regarding this now-deleted target method.
4878
4879 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4880
4881 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4882 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4883 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4884 real PC and the page number (if it's within the memory bank window).
4885 (m68hc11_pseudo_register_write): Likewise when saving.
4886 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4887 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4888 (m68hc11_register_raw_size): And use 32-bit for it.
4889 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4890 16K memory bank is used by the prog; also use the virtual pc.
4891
4892 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4893
4894 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4895 (m68hc11_gdbarch_init): Install it in gdbarch.
4896 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4897 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4898 (MSYMBOL_SIZE): New for documentation.
4899 (insn_return_kind): Enum to specify how a function returns.
4900 (frame_extra_info): Cleanup and record the return mode.
4901 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4902 register in address computation.
4903 (m68hc11_get_return_insn): New to obtain the return instruction used
4904 by the function.
4905 (m68hc11_frame_init_saved_regs): Take into account the return
4906 instruction used by the function for far and interrupt functions.
4907 (m68hc11_init_extra_frame_info): Take into account page register.
4908 (m68hc11_frame_args_address): Adjust according to the return mode.
4909 (show_regs): Print page register only when it's used.
4910
4911 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4912
4913 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4914 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4915 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4916 registers.
4917 (m68hc11_register_raw_size): Likewise.
4918
4919 2002-08-13 Andrew Cagney <cagney@redhat.com>
4920
4921 * i386-tdep.c (i386_register_name): Handle mmx registers.
4922 (mmx_regnum_p): New function.
4923 (i386_mmx_names): New array.
4924 (mmx_num_regs): New variable.
4925 (i386_pseudo_register_read): New function.
4926 (i386_pseudo_register_write): New function.
4927 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4928
4929 * regcache.c (regcache_raw_read_unsigned): New function.
4930 (regcache_raw_read_signed): New function.
4931 * regcache.h (regcache_raw_read_unsigned): Declare.
4932 (regcache_raw_read_signed): Declare.
4933
4934 2002-08-13 Andrew Cagney <cagney@redhat.com>
4935
4936 * regcache.c (regcache_raw_read_as_address): Delete function.
4937 (regcache_cooked_read_signed): New function.
4938 (regcache_cooked_read_unsigned): New function.
4939 * regcache.h (regcache_cooked_read_signed): Declare.
4940 (regcache_cooked_read_unsigned): Declare.
4941 (regcache_raw_read_as_address): Delete declaration.
4942
4943 * blockframe.c (generic_read_register_dummy): Use
4944 regcache_cooked_read_unsigned.
4945 * i386-tdep.c (i386_extract_struct_value_address): Use
4946 regcache_cooked_read_unsigned.
4947
4948 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4949
4950 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4951 double sizes according to ELF ABI flags.
4952 (gdbarch_tdep): Record elf_flags.
4953
4954 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4955
4956 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4957 (m6812_prolog): They can appear in 68HC12 function prologue.
4958 (m68hc11_frame_chain): Cleanup.
4959
4960 2002-08-12 Andrew Cagney <cagney@redhat.com>
4961
4962 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4963 declarations.
4964 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4965 (i386_linux_register_raw_size): Delete function.
4966 (i386_linux_init_abi): Update.
4967 * i386-tdep.c (i386_register_raw_size): Delete function.
4968 (i386_register_byte): Delete function.
4969 (i386_gdbarch_init): Update.
4970 (i386_register_size): Delete array.
4971 (i386_register_offset): Delete array.
4972
4973 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4974 (REGISTER_RAW_SIZE): Delete macro.
4975 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4976 (REGISTER_BYTE): Delete macro.
4977
4978 2002-08-11 Aidan Skinner <aidan@velvet.net>
4979
4980 * ada-lang.c (ada_lookup_partial_symbol)
4981 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4982 prototype names so that grep ^func works properly.
4983
4984 * ada-lang.c (ada_array_element_type)
4985 (ada_lookup_partial_symbol): Fix typos in parameter list.
4986
4987 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4988 Fix prototype names so that grep ^func works properly.
4989
4990 2002-08-10 Andrew Cagney <cagney@redhat.com>
4991 Elena Zannoni <ezannoni@redhat.com>
4992 Martin M. Hunt <hunt@redhat.com>
4993
4994 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4995 (build_builtin_type_vec128i): Set the vector bit.
4996 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4997 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4998 (build_builtin_type_vec64): New function.
4999 (build_builtin_type_vec64i): New function.
5000 (build_gdbtypes): Initialize builtin_type_vec64 and
5001 builtin_type_vec64i.
5002
5003 2002-08-09 Andrew Cagney <cagney@redhat.com>
5004
5005 * regcache.c (regcache_dump): Compare the register offset
5006 with REGISTER_BYTE.
5007 * arch-utils.c (generic_register_byte): New function.
5008 * arch-utils.h (generic_register_byte): Declare.
5009 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5010 * gdbarch.h, gdbarch.c: Regenerate.
5011
5012 2002-08-09 Andrew Cagney <cagney@redhat.com>
5013
5014 * regcache.c: Include "gdbcmd.h"
5015 (_initialize_regcache): Add commands "maintenance print
5016 registers", "maintenance print raw-registers" and "maintenance
5017 print cooked-registers".
5018 (enum regcache_dump_what): Define.
5019 (dump_endian_bytes): New function.
5020 (regcache_dump): New function.
5021 (regcache_print): New function.
5022 (maintenance_print_registers): New function.
5023 (maintenance_print_raw_registers): New function.
5024 (maintenance_print_cooked_registers): New function.
5025 * Makefile.in (regcache.o): Update dependencies.
5026
5027 2002-08-09 Michael Snyder <msnyder@redhat.com>
5028
5029 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5030 (mips_push_arguments): Correct some comments. Use paddr_nz
5031 for printing addresses in debug output. Replace static
5032 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5033 (mips_n32n64_push_arguments): New function, cloned from
5034 mips_push_arguments and tuned for the n32/n64 ABI.
5035 (mips_push_register): Buffer needs dynamic allocation.
5036 (mips_print_register): Ditto.
5037 (do_gp_register_row): Ditto.
5038 (mips_store_return_value): Ditto.
5039 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5040
5041 2002-08-09 Don Howard <dhoward@redhat.com>
5042
5043 * memattr.c (mem_info_command): Print special case of upper bound
5044 as max CORE_ADDR + 1.
5045
5046 2002-08-08 Michael Snyder <msnyder@redhat.com>
5047
5048 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5049 returns structs by ref if they're too big to fit in two registers.
5050
5051 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5052
5053 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5054 saved regs value.
5055 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5056 mips_find_saved_regs().
5057 (mips_pop_frame): Likewise.
5058
5059 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5060
5061 * blockframe.c (frame_saved_regs_register_unwind): Revise
5062 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5063 frames are in use.
5064
5065 2002-08-09 Grace Sainsbury <graces@redhat.com>
5066
5067 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5068 T-packets; the 'a' is not taken as a register number.
5069 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5070 (remote_stopped_data_address): New functions; add to target
5071 vector.
5072 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5073 prototypes to match other implementations of this
5074 function. replace integer argument with pointer -- the length
5075 field in the Z-packet is the length of what is pointed to or 1 if
5076 pointer is null. Add to target vector.
5077 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5078 target vector.
5079
5080 From Mark Salter:
5081 * remote.c (remote_wait): Add support to extract optional
5082 watchpoint information from T-packet. Ignore unrecognized
5083 optional info in T-packet.
5084 (remote_async_wait): Ditto.
5085
5086 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5087
5088 * cli/cli-dump.c: Change fopen modes to use binary open modes
5089 as defined in include/fopen-bin.h throughout.
5090
5091 2002-08-08 Michael Snyder <msnyder@redhat.com>
5092
5093 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5094
5095 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5096
5097 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5098 assertion failure by returning early after a warning.
5099
5100 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5101
5102 * mips-tdep.c (mips_find_saved_regs): Make static.
5103 (mips_frame_init_saved_regs): New function.
5104 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5105 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5106 (mips_find_saved_regs): Delete declaration.
5107
5108 2002-08-08 Grace Sainsbury <graces@redhat.com>
5109
5110 * remote.c (remote_wait, remote_async_wait): Change
5111 thread_num from int to ULONGEST.
5112 (unpack_varlen_hex): Change result parameter from
5113 int * to ULONGEST *.
5114
5115 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5116
5117 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5118 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5119 powerpc*-*-*.
5120 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5121
5122 2002-08-08 Andrew Cagney <cagney@redhat.com>
5123
5124 * gcore.c (override_derive_stack_segment): Delete variable.
5125 (preempt_derive_stack_segment): Delete function.
5126 (derive_stack_segment): Delete function.
5127 (default_derive_stack_segment): Renamed to derive_stack_segment.
5128 (override_derive_heap_segment): Delete variable.
5129 (preempt_derive_heap_segment): Delete function.
5130 (derive_heap_segment): Delete function.
5131 (default_derive_heap_segment): Rename to derive_heap_segment.
5132
5133 2002-08-06 Michael Snyder <msnyder@redhat.com>
5134
5135 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5136 * mips-tdep.c (mips_EABI_use_struct_convention,
5137 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5138 New functions. (mips_use_struct_convention): Delete.
5139 (mips_gdbarch_init): set use_gdbarch_convention.
5140
5141 2002-08-06 Michael Snyder <msnyder@redhat.com>
5142
5143 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5144 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5145 mips_o32_reg_struct_has_addr): New functions.
5146 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5147
5148 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5149
5150 * regcache.c (pseudo_register): Delete function.
5151 (fetch_register): Delete function.
5152 (store_register): Delete function.
5153 (regcache_raw_read, legacy_read_register_gen): Use
5154 target_fetch_registers instead of fetch_register.
5155 (legacy_write_register_gen, regcache_raw_write): Use
5156 target_store_register instead of store_register.
5157 (write_register_bytes): Ditto.
5158
5159 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5160 (STORE_PSEUDO_REGISTER): Delete.
5161 * gdbarch.h, gdbarch.c: Regenerate.
5162
5163 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5164
5165 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5166 write dump file binary.
5167
5168 2002-08-05 Michael Snyder <msnyder@redhat.com>
5169
5170 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5171 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5172 (mips_gdbarch_init): Set N32 target to be mips64.
5173
5174 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5175
5176 * frame.c (find_saved_register): Break out of loop once saved
5177 register address is found. Don't mention sparc in loop comment
5178 anymore.
5179
5180 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5181
5182 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5183 mips_default_saved_regsize to 8.
5184
5185 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5186
5187 * gcore.c: Do not include <sys/procfs.h>.
5188 * Makefile.in (gcore.o): Update dependencies.
5189
5190 2002-08-06 Andrew Cagney <cagney@redhat.com>
5191
5192 * configure.tgt: Make arc-*-* obsolete.
5193 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5194 * MAINTAINERS: Make arc-elf obsolete.
5195 * arc-tdep.c: Make file obsolete.
5196 * config/arc/arc.mt: Ditto.
5197 * config/arc/tm-arc.h: Ditto.
5198
5199 2002-08-05 Theodore A. Roth <troth@verinet.com>
5200
5201 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5202
5203 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5204
5205 * mcore-tdep.c (mcore_gdbarch_init): Use
5206 generic_unwind_get_saved_register instead of
5207 generic_get_saved_register.
5208 * v850-tdep.c (v850_gdbarch_init): Ditto.
5209 * frv-tdep.c (frv_gdbarch_init): Ditto.
5210 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5211 * s390-tdep.c (s390_gdbarch_init): Ditto.
5212 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5213 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5214 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5215
5216 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5217
5218 * objfiles.h: Add missing #include "symfile.h"
5219
5220 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5221
5222 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5223
5224 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5225 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5226 of FIELD_BITSIZE.
5227
5228 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5229
5230 * NEWS: Cleanup and nitpick.
5231
5232 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5233
5234 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5235
5236 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5237
5238 * Makefile.in (gdbtk-bp.o): Update dependencies.
5239 (gdbtk-register.o): Ditto.
5240 (gdbtk-varobj.o): Ditto.
5241
5242 2002-08-03 Andrew Cagney <cagney@redhat.com>
5243
5244 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5245 m68hc11_fetch_pseudo_register.
5246 (m68hc11_pseudo_register_write): Replace
5247 m68hc11_store_pseudo_register.
5248 (m68hc11_gdbarch_init): Update.
5249
5250 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5251
5252 * gdbarch.sh: Include "gdb_string.h".
5253 * gdbarch.c: Regenerate.
5254
5255 * regcache.c: Include "gdb_string.h".
5256 * ax-general.c: Ditto.
5257 * varobj.c: Ditto.
5258 * std-regs.c: Ditto.
5259 * fbsd-proc.c: Ditto.
5260 * thread.c: Ditto.
5261
5262 * Makefile.in (regcache.o): Update dependencies.
5263 (thread.o, gdbarch.o): Ditto.
5264 (ax-general.o, gdbarch.o): Ditto.
5265 (varobj.o, std-regs.o): Ditto.
5266 (fbsd-proc.o): Specify dependencies.
5267
5268 2002-08-02 Andrew Cagney <cagney@redhat.com>
5269
5270 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5271 regnum.
5272 (regcache_cooked_write): Ditto.
5273
5274 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5275
5276 * regcache.c (regcache_cooked_read): New function.
5277 (regcache_cooked_write): New function.
5278 (read_register_gen): Rewrite using regcache_cooked_read.
5279 (write_register_gen): Rewrite using regcache_cooked_write.
5280
5281 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5282 Declare.
5283
5284 2002-08-02 Andrew Cagney <cagney@redhat.com>
5285
5286 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5287 Replace the architecture methods register_read and register_write.
5288 * gdbarch.h, gdbarch.c: Regenerate.
5289 * regcache.c (init_regcache_descr): Update.
5290 (read_register_gen): Update.
5291 (write_register_gen): Update.
5292 (supply_register): Update comment.
5293
5294 * sh-tdep.c (sh_gdbarch_init): Update.
5295 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5296 `regcache' and `gdbarch' parameters. Make `buffer' a void
5297 pointer. Update code.
5298 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5299 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5300 void pointer. Update code.
5301 (sh64_register_write): Delete.
5302 (sh4_register_read): Delete.
5303 (sh64_register_read): Delete.
5304 (sh4_register_write): Delete.
5305 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5306 void pointer, `to' parameter a void pointer.
5307 (sh_sh64_register_convert_to_raw): Ditto.
5308
5309 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5310
5311 * mips-tdep.c (mips_register_virtual_type): Use architecture
5312 invariant return values.
5313
5314 2002-08-01 Andrew Cagney <cagney@redhat.com>
5315
5316 * linux-proc.c: Include "gdb_string.h".
5317 * Makefile.in (linux-proc.o): Update dependency list.
5318
5319 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5320
5321 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5322 comment.
5323
5324 2002-08-01 Grace Sainsbury <graces@redhat.com>
5325
5326 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5327 to_insert_watchpoint, to_remove_watchpoint,
5328 to_stopped_by_watchpoint, to_stopped_data_address,
5329 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5330 target vecctor. Define their corresponding macros so they call
5331 them.
5332
5333 * target.c: Add default and debug versions of for
5334 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5335 to_insert_watchpoint, to_remove_watchpoint,
5336 to_stopped_by_watchpoint, to_stopped_data_address,
5337 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5338
5339 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5340
5341 * mips-tdep.c (mips_register_virtual_type): New function.
5342 (mips_gdbarch_init): Register mips_register_virtual_type()
5343 with gdbarch machinery.
5344 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5345 this file instead of tm-bigmips.h.
5346 (MIPS_REGSIZE): Delete this macro.
5347 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5348 multiarch version in mips-tdep.c will be found.
5349
5350 2002-08-01 Andrew Cagney <cagney@redhat.com>
5351
5352 * NEWS: Menion that CHILL has been made obsolete.
5353
5354 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5355 * stabsread.c (read_range_type): Ditto.
5356 * gdbtypes.h: Ditto.
5357 * language.c (binop_type_check): Ditto.
5358 (binop_result_type): Ditto.
5359 (integral_type): Ditto.
5360 (character_type): Ditto.
5361 (string_type): Ditto.
5362 (boolean_type): Ditto.
5363 (structured_type): Ditto.
5364 (lang_bool_type): Ditto.
5365 (binop_type_check): Ditto.
5366 * language.h (_LANG_chill): Ditto.
5367 * dwarfread.c (set_cu_language): Ditto.
5368 * dwarfread.c (CHILL_PRODUCER): Ditto.
5369 * dwarfread.c (handle_producer): Ditto.
5370 * expression.h (enum exp_opcode): Ditto.
5371 * eval.c: Ditto for comments.
5372 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5373 * expprint.c (print_subexp): Ditto.
5374 (print_subexp): Ditto.
5375 * valops.c (value_cast): Ditto.
5376 (search_struct_field): Ditto.
5377 * value.h (COERCE_VARYING_ARRAY): Ditto.
5378 * symfile.c (init_filename_language_table): Ditto.
5379 (add_psymbol_with_dem_name_to_list): Ditto.
5380 * valarith.c (value_binop): Ditto.
5381 (value_neg): Ditto.
5382 * valops.c (value_slice): Ditto.
5383 * symtab.h (union language_specific): Ditto.
5384 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5385 (SYMBOL_DEMANGLED_NAME): Ditto.
5386 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5387 * defs.h (enum language): Ditto.
5388 * symtab.c (got_symtab): Ditto.
5389 * utils.c (fprintf_symbol_filtered): Ditto.
5390
5391 * ch-typeprint.c: Make file obsolete.
5392 * ch-valprint.c: Make file obsolete.
5393 * ch-lang.h: Make file obsolete.
5394 * ch-exp.c: Make file obsolete.
5395 * ch-lang.c: Make file obsolete.
5396
5397 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5398 CHILL_LIB.
5399 (TARGET_FLAGS_TO_PASS): Ditto.
5400 (CHILLFLAGS): Obsolete.
5401 (CHILL): Obsolete.
5402 (CHILL_FOR_TARGET): Obsolete.
5403 (CHILL_LIB): Obsolete.
5404 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5405 ch-valprint.c.
5406 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5407 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5408 ch-lang.o.
5409 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5410 targets.
5411
5412 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5413
5414 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5415 This does not change anything at the moment, but will be helpful
5416 later when full Ada support is integrated.
5417
5418 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5419
5420 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5421 help message.
5422
5423 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5424
5425 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5426 and save it in a local variable. Use variable in later test.
5427
5428 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5429
5430 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5431 test. (Thanks to Daniel Jacobowitz.)
5432
5433 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5434
5435 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5436 (mips_abi_strings): Add "n64".
5437 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5438
5439 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5440
5441 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5442 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5443
5444 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5445
5446 * utils.c (host_pointer_to_address, address_to_host_pointer):
5447 Use gdb_assert() instead of explicit call to internal_error().
5448
5449 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5450
5451 * Makefile.in (rs6000-nat.o): Update dependencies.
5452
5453 From Nicholas Duffek:
5454 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5455 (aix-thread.o): New rule.
5456 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5457 * config/powerpc/aix432.mh: New file.
5458
5459 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5460
5461 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5462 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5463 (fetch_core_registers, ppc_linux_supply_gregset)
5464 (ppc_linux_supply_fpregset): New functions.
5465 (ppc_linux_regset_core_fns): New.
5466 (_initialize_ppc_linux_tdep): Call add_core_fns.
5467 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5468 and ppc_linux_supply_gregset.
5469 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5470 (supply_fpregset): Call ppc_linux_supply_fpregset.
5471 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5472 corelow.o.
5473 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5474
5475 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5476
5477 * symtab.c (lookup_symbol): Demangle before lowercasing.
5478
5479 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5480
5481 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5482 declaration.
5483 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5484 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5485 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5486 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5487 "gdb_string.h".
5488 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5489 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5490 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5491 (avr-tdep.o, mon960-rom.o): Ditto.
5492 (aout_stabs_gnu_h): Define.
5493 (symtab_h): Remove $(gdb_obstack_h).
5494
5495 2002-07-30 Jim Blandy <jimb@redhat.com>
5496
5497 Patch from David Carlton <carlton@math.stanford.edu>:
5498 * gdbinit.in: Move the `dir' commands that add GDB's own source
5499 directory to the search path to the end, so that the `gdb' source
5500 directory will be searched first.
5501
5502 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5503
5504 * gdb_obstack.h: New file.
5505 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5506 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5507 * objfiles.h: Include "gdb_obstack.h".
5508 * Makefile.in (gdb_obstack_h): Define.
5509 (symtab_h): Add $(gdb_obstack_h).
5510 (objfiles_h): Add $(gdb_obstack_h).
5511
5512 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5513 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5514 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5515 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5516 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5517 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5518 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5519 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5520
5521 * Makefile.in (bcache.o): Update dependencies.
5522 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5523 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5524 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5525 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5526 (stabsread.o, symfile.o, symmisc.o): Ditto.
5527 (symtab.o, typeprint.o, macroexp.o): Ditto.
5528 (macrotab.o, mdebugread.o): Ditto.
5529 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5530 (coff_ecoff_h, aout_aout64_h): Define.
5531 (aout_stabs_gnu_h, libaout_h): Define.
5532
5533 2002-07-29 Andrew Cagney <cagney@redhat.com>
5534
5535 * regcache.c (struct regcache_descr): Rename nr_registers to
5536 nr_cooked_registers. Revise comments describing the structure
5537 member fields.
5538 (init_regcache_descr): Update.
5539 (init_legacy_regcache_descr): Update.
5540 (read_register_gen, write_register_gen): When a cooked register in
5541 the raw register range, directly access the value from the raw
5542 register cache.
5543
5544 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5545
5546 * z8k-tdep.c: Do not include "obstack.h".
5547 * h8300-tdep.c, h8500-tdep.c: Ditto.
5548 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5549 * valprint.c, v850-tdep.c: Ditto.
5550 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5551 * mn10200-tdep.c: Ditto.
5552
5553 * Makefile.in (z8k-tdep.o): Update dependencies.
5554 (m68hc11-tdep.o, valprint.o): Ditto.
5555 (v850-tdep.o, d10v-tdep.o): Ditto.
5556 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5557 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5558 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5559 (sh_opc_h, gdb_sim_sh_h): Define.
5560 (elf_sh_h, elf_bfd_h): Define.
5561 (opcode_m68hc11_h): Define.
5562 (OPCODES_SRC, OPCODES_DIR): define.
5563 (OPCODES): Use $(OPCODES_DIR).
5564 (gdb_sim_d10v_h): Rename sim_d10v_h.
5565 (gdb_sim_arm_h): Rename sim_arm_h.
5566
5567 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5568
5569 * utils.c (host_pointer_to_address, address_to_host_pointer):
5570 Change internal_error() message to indicate function responsible
5571 for the error.
5572
5573 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5574
5575 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5576 calls to local_hex_string_custom().
5577
5578 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5579
5580 * irix5-nat.c: Move IRIX shared library support from here...
5581 * solib-irix.c: ...to here. Revised substantially to work with
5582 generic solib framework.
5583
5584 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5585 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5586 * mips-irix-tdep.c: New file.
5587
5588 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5589 (mips-irix-tdep.o, solib-irix.o): New rules.
5590 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5591 solib-irix.o.
5592 * config/mips/irix6.mt (TDEPFILES): Likewise.
5593 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5594
5595 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5596
5597 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5598 disabled (via ``#if 0'') includes.
5599
5600 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5601
5602 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5603 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5604 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5605 Add support for the fpscr register.
5606 * rs6000-nat.c (regmap, fetch_inferior_registers)
5607 (store_inferior_registers, fetch_core_registers): Likewise.
5608
5609 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5610
5611 * rs6000-nat.c (language.h): Include.
5612 (special_regs): Delete this array.
5613 (regmap): New function.
5614 (fetch_register, store_register): Use regmap() to map gdb
5615 register numbers to ptrace register numbers. Also, use
5616 outputs from regmap() to make decisions regarding type of
5617 ptrace() call to make. In particular, don't compare against
5618 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5619 (fetch_inferior_registers, store_inferior_registers): Where
5620 possible, obtain register numbers from tdep struct. Don't
5621 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5622 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5623 (LAST_UISA_SP_REGNUM): Delete.
5624
5625 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5626
5627 * rs6000-nat.c (ppc-tdep.h): Include.
5628 (fetch_registers, store_register, fetch_core_registers): Don't
5629 access registers[] directly. Instead, use supply_register() or
5630 regcache_collect() as appropriate.
5631 (find_toc_address): Format hex address with local_hex_string().
5632
5633 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5634
5635 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5636 bfd/elf32-frv.c.
5637
5638 2002-07-24 Tom Tromey <tromey@redhat.com>
5639
5640 * jv-exp.y: Marked all strings with _().
5641 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5642 internal_error.
5643 (MethodInvocation, CastExpression, parse_number, yyerror,
5644 java_type_from_name, push_expression_name, yylex): Typo fixes.
5645
5646 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5647
5648 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5649 (tee_file_flush, tee_file_write, tee_file_fputs)
5650 (tee_file_isatty): New.
5651 * ui-file.h (tee_file_new): Add prototype.
5652
5653 2002-07-24 Aidan Skinner <aidan@velvet.net>
5654
5655 * ada-lang.c: Change k&r style function definitions to prototyped
5656 form.
5657 * ada-typeprint.c: Change k&r style function definitions to prototyped
5658 form.
5659 * ada-valprint.c: Change k&r style function definitions to prototyped
5660 form.
5661
5662 2002-07-24 Andrew Cagney <cagney@redhat.com>
5663
5664 * README: Remove reference to remote-bug.
5665 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5666 remote-bug.c.
5667 (m88k-nat.o): Delete rule.
5668 (m88k-tdep.o): Delete rule.
5669 (remote-bug.o): Delete rule.
5670 * MAINTAINERS: Mark as obsolete.
5671 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5672 * m88k-tdep.c: Make file obsolete.
5673 * config/m88k/m88k.mh: Ditto.
5674 * config/m88k/delta88v4.mh: Ditto.
5675 * config/m88k/delta88v4.mt: Ditto.
5676 * config/m88k/delta88.mt: Ditto.
5677 * config/m88k/delta88.mh: Ditto.
5678 * remote-bug.c: Ditto.
5679 * config/m88k/tm-delta88.h: Ditto.
5680 * config/m88k/nm-delta88v4.h: Ditto.
5681 * config/m88k/xm-delta88.h: Ditto.
5682 * config/m88k/xm-dgux.h: Ditto.
5683 * config/m88k/tm-m88k.h: Ditto.
5684 * config/m88k/nm-m88k.h: Ditto.
5685 * config/m88k/tm-delta88v4.h: Ditto.
5686 * m88k-nat.c: Ditto.
5687 * cxux-nat.c: Ditto.
5688 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5689 and m88*-*-* obsolete.
5690 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5691 m88*-*-* obsolete.
5692
5693 2002-07-24 Andrew Cagney <cagney@redhat.com>
5694
5695 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5696 constant. Same for local pointer variables.
5697 (extract_signed_integer): Ditto.
5698 * defs.h (extract_unsigned_integer): Update.
5699 (extract_signed_integer): Update.
5700
5701 2002-07-24 Andrew Cagney <cagney@redhat.com>
5702
5703 * regcache.c (regcache_raw_write): Change buf parameter to a
5704 constant void pointer.
5705 (regcache_raw_read): Change buf parameter to a void pointer.
5706 (legacy_write_register_gen): Change myaddr parameter a constant
5707 void pointer.
5708 (supply_register): Change val parameter to a const void pointer.
5709 * regcache.h (regcache_raw_write): Update declaration.
5710 (regcache_raw_read): Update declaration.
5711 (supply_register): Update declaration.
5712
5713 2002-07-24 Tom Tromey <tromey@redhat.com>
5714
5715 * defs.h (gdb_readline_wrapper): Declare.
5716 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5717 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5718 * top.c (gdb_readline_wrapper): New function.
5719 (command_line_input): Use it.
5720
5721 2002-07-24 Andrew Cagney <cagney@redhat.com>
5722
5723 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5724 regcache_read and regcache_write.
5725 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5726 * regcache.c: Update.
5727 * sh-tdep.c (sh64_push_arguments): Update comment.
5728 (sh_pseudo_register_read): Update.
5729 (sh_pseudo_register_write): Update.
5730 (sh4_register_read): Update.
5731 (sh4_register_write): Update.
5732 (sh64_pseudo_register_read): Update.
5733 (sh64_pseudo_register_write): Update.
5734 (sh64_register_read): Update.
5735 (sh64_register_write): Update.
5736 * i386-tdep.c (i386_extract_return_value): Update.
5737 (i386_extract_struct_value_address): Update.
5738 (i386_extract_return_value): Update.
5739 * blockframe.c (generic_read_register_dummy): Update.
5740 (generic_call_dummy_register_unwind): Update
5741 * infrun.c (write_inferior_status_register): Update.
5742
5743 2002-07-23 Jim Blandy <jimb@redhat.com>
5744
5745 * parser-defs.h (expression_context_pc): Make this extern.
5746 (Thanks to Michael Snyder.)
5747
5748 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5749
5750 GDB 5.2.1 released from 5.2 branch.
5751 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5752 * README: Update to mention 5.2.1.
5753
5754 2002-07-23 Mark Salter <msalter@redhat.com>
5755
5756 * remote.c (remote_read_bytes): Fix check for error.
5757
5758 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5759
5760 * aix-thread.c (language.h): Include.
5761 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5762 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5763 Print newlines at end of debug messages.
5764 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5765 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5766
5767 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5768
5769 * aix-thread.c (ppc-tdep.h): Include.
5770 (special_register_p): New function.
5771 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5772 (store_regs_user_thread): Use register number information from
5773 gdbarch_tdep struct instead of hardcoded offsets relative to
5774 FIRST_UISA_SP_REGNUM.
5775 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5776 special_register_p() instead of using FPLAST_REGNUM and
5777 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5778 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5779 will be MQ's register number.
5780
5781 2002-07-22 Michael Snyder <msnyder@redhat.com>
5782
5783 * aix-thread.c (ops): Rename to aix_thread_ops.
5784 (base_ops): Rename to base_target.
5785 (ops_attach): Rename to aix_thread_attach.
5786 (ops_detach): Rename to aix_thread_detach.
5787 (ops_resume): Rename to aix_thread_detach.
5788 (ops_wait): Rename to aix_thread_wait.
5789 (ops_kill): Rename to aix_thread_kill.
5790 (init_ops): Rename to init_aix_thread_ops.
5791 (ops_fetch_register): Rename to aix_thread_fetch_register.
5792 (ops_store_register): Rename to aix_thread_store_register.
5793 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5794 (ops_thread_alive): Rename to aix_thread_thread_alive.
5795 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5796 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5797 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5798 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5799 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5800 (store_regs_lib): Rename to store_regs_user_thread.
5801 (store_regs_kern): Rename to store_regs_kernel_thread.
5802
5803 2002-07-22 Michael Snyder <msnyder@redhat.com>
5804
5805 * aix-thread.c (ops_prepare_to_store): Eliminate.
5806 (init_ops): Don't initialize ops.prepare_to_store.
5807 (store_regs_kern): Pre-fetch register buffers from child,
5808 because some registers may not be in the cache. Copy
5809 regs from register cache only if they are cached.
5810 (store_regs_lib): Copy regs from register cache only
5811 if they are cached.
5812 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5813 fill_gprs64): Ditto.
5814
5815 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5816
5817 * aix-thread.c (gdb_assert.h): Include.
5818 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5819 register sizes (from register cache) match size of buffer holding
5820 register data.
5821 (fill_sprs32): Change parameter types to match those in the ptrace()
5822 buffer.
5823 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5824 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5825
5826 2002-07-22 Michael Snyder <msnyder@redhat.com>
5827
5828 * aix-thread.c (supply_sprs64): Cosmetic change.
5829 (supply_sprs32): Cosmetic change.
5830 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5831 (fill_sprs64): Use regcache_collect instead of read_register.
5832 (store_regs_lib): Use regcache_collect instead of
5833 read_register. Use fill_sprs32 instead of fill_sprs64,
5834 if debugging a 32-bit architecture.
5835 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5836 out of the register cache, instead of passing a pointer into
5837 the register cache directly to ptrace. Use regcache_collect
5838 insteaad of read_register.
5839 (ops_prepare_to_store): Use target_read_registers instead
5840 of read_register_bytes.
5841
5842 2002-07-20 Aidan Skinner <aidan@velvet.net>
5843
5844 * MAINTAINERS: Add self under write after approval.
5845
5846 2002-07-20 Aidan Skinner <aidan@velvet.net>
5847
5848 * ada-tasks.c: Change k&r style function definitions to prototyped
5849 form.
5850
5851 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5852
5853 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5854 * x86-64-tdep.c: Include "objfiles.h".
5855 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5856 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5857
5858 2002-07-17 Michal Ludvig <michal@suse.cz>
5859
5860 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5861 (update_context): Initialise cfa variable.
5862
5863 2002-07-17 Michael Snyder <msnyder@redhat.com>
5864
5865 * aix-thread.c: Shorten some long lines.
5866 Bring comments into line with code spec.
5867
5868 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5869
5870 * infrun.c: Re-indent using gdb_indent.sh.
5871
5872 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5873
5874 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5875 Leave the indentation temporarily untouched, to minimize the diffs.
5876
5877 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5878
5879 * stabsread.c: Make os9k sections of the code obsolete,
5880 for real this time.
5881 * stabsread.h: Make os9k sections of the code obsolete.
5882
5883 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5884
5885 * linux-low.c (regsets_store_inferior_registers): Add free()
5886 at the end of a loop to prevent memory leak.
5887 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5888 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5889 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5890 line a comment.
5891 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5892
5893 2002-07-17 Jim Blandy <jimb@redhat.com>
5894
5895 * macrocmd.c (info_macro_command): Remove newline from error
5896 message.
5897
5898 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5899
5900 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5901 (sh_gdbarch_init): Use it for sh-dsp.
5902
5903 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5904
5905 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5906 64-bit DWARF2 format.
5907
5908 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5909
5910 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5911 <sys/proc.h> when not available.
5912
5913 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5914
5915 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5916 * stabsread.c: Make os9k sections of the code obsolete.
5917 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5918 * config/i386/i386os9k.mt: Make file obsolete.
5919 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5920 (COMMON_OBS): Remove os9kread.o
5921 (SFILES): Remove os9kread.c.
5922 (os9kread.o, remote-os9k.o): Make target obsolete.
5923 * remote-os9k.c: Make file obsolete.
5924 * os9kread.c: Make file obsolete.
5925 * Makefile.in
5926
5927 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5928
5929 * NEWS: Mention that the FR30 has been made obsolete.
5930 * fr30-tdep.c: Make file obsolete.
5931 * config/fr30/tm-fr30.h: Ditto.
5932 * config/fr30/fr30.mt: Ditto.
5933 * configure.tgt: Make fr30-*-elf obsolete.
5934 * MAINTAINERS: Make fr30-elf obsolete.
5935
5936 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5937
5938 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5939 found is not inside a section.
5940
5941 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5942
5943 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5944 strerror().
5945 (pdc_realloc): Use xrealloc() instead of realloc().
5946
5947 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5948
5949 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5950 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5951 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5952 macros.
5953
5954 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5955
5956 * aix-thread.c (ptrace_check): Eliminate goto.
5957 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5958 problem.
5959
5960 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5961
5962 * aix-thread.c (gdbcmd.h): Include.
5963 (DEBUG, DBG, DBG2, dbg): Eliminate.
5964 (debug_aix_thread): New static global.
5965 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5966 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5967 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5968 invocations to DBG and DBG2 macros to test against
5969 ``debug_aix_thread'' and call fprintf_unfiltered().
5970 (_initialize_aix_thread): Add new command "set debug aix-thread".
5971
5972 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5973
5974 From Gerhard Tonn <TON@de.ibm.com>:
5975 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5976 instead of supply_register.
5977
5978 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5979
5980 * dwarf2cfi.c: Include "gdb_assert.h".
5981 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5982 non-NULL.
5983 (update_context): Do not use __func__. Add missing ``break''.
5984 (update_context): Do not use __func__.
5985
5986 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5987
5988 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5989 and its setting. Set gdbarch instruction printing functions
5990 directly. For non-rs6000 case use new function
5991 gdb_print_insn_powerpc.
5992 (gdb_print_insn_powerpc): New function.
5993
5994 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5995
5996 * NEWS: Mention that the d30v has been marked obsolete.
5997 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5998 * configure.tgt: Mark d30v-*-* as obsolete.
5999 * d30v-tdep.c: Mark file as obsolete.
6000 * config/d30v/d30v.mt: Ditto.
6001 * config/d30v/tm-d30v.h: Ditto.
6002
6003 2002-07-13 Aidan Skinner <aidan@velvet.net>
6004
6005 * ada-tasks.c (add_task_entry): replace calls to
6006 malloc() with xmalloc
6007 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6008
6009 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6010 ada_finish_decode_line_1, all_sals_for_line
6011 ada_breakpoint_rewrite): replace calls to free() with xfree()
6012
6013 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6014
6015 From Nicholas Duffek (with minor changes by Martin Hunt,
6016 Louis Hamilton, and Kevin Buettner):
6017 * aix-thread.c: New file.
6018
6019 2002-07-12 Petr Sorfa <petrs@caldera.com>
6020
6021 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6022 complaint for invalid attribute class or form.
6023 (read_func_scope): DW_AT_frame_base
6024 better handling of DW_AT_block*.
6025 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6026 better handling of DW_AT_block*.
6027 (read_common_block): DW_AT_location
6028 better handling of DW_AT_block*.
6029 (read_partial_die): DW_AT_location better handling
6030 of DW_AT_block*.
6031 (new_symbol): DW_AT_external better handling of
6032 DW_AT_block*. Proper initialization of variable
6033 "addr".
6034 (attr_form_is_block): New function that returns true
6035 if the attribute's form is of DW_FORM_block*.
6036
6037 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6038
6039 * valops.c (find_method_list): Remove comment about
6040 removed STATIC_MEMFUNCP argument.
6041 (value_find_oload_method_list): Likewise.
6042
6043 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6044
6045 From Nicholas Duffek:
6046 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6047 target_new_objfile_hook.
6048
6049 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6050
6051 From Nicholas Duffek:
6052 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6053 csect.
6054
6055 2002-07-12 Andrew Cagney <cagney@redhat.com>
6056
6057 * MAINTAINERS: Mention --enable-sim-build-warnings.
6058 (m68hc11-elf): Disable sim build warnings.
6059 (m32r-elf): Mark as broken obsolete candidate.
6060 (x86_64-linux-gnu): Mark as buildable with -Werror.
6061 (arm-elf): Change -w to ``,'' which enables warnings but not
6062 -Werror.
6063
6064 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6065
6066 * bcache.h: Update copyright.
6067 (struct bstring, struct bcache): Move definition to "bcache.c".
6068 Replaced by opaque declaration.
6069 (bcache_xfree): Replace free_bcache.
6070 (bcache_xmalloc, bcache_memory_used): Declare.
6071
6072 * bcache.c: Update copyright.
6073 (struct bstring, struct bcache): Moved to here from "bcache.h".
6074 Update comments.
6075 (bcache_xmalloc, bcache_memory_used): New functions.
6076 (bcache_xfree): Replace function free_bcache.
6077
6078 * Makefile.in (objfiles.o): Add $(bcache_h).
6079 (objfiles_h): Remove $(bcache_h).
6080 (symfile.o): Add $(bcache_h).
6081
6082 * symmisc.c: Update copyright.
6083 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6084 (print_objfile_statistics): Use bcache_memory_used.
6085
6086 * symfile.c: Include "bcache.h".
6087 (reread_symbols): Use bcache_xfree.
6088 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6089 (add_psymbol_to_list): Pass psymbol_cache by value.
6090 (add_psymbol_with_dem_name_to_list): Ditto.
6091
6092 * objfiles.h: Update copyright.
6093 (struct bcache): Declare opaque. Do not include "bcache.h".
6094 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6095 bcache'' pointers.
6096 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6097
6098 * objfiles.c: Include "bcache.h". Update copyright.
6099 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6100 macro_cache.
6101 (free_objfile): Use bcache_xfree.
6102
6103 2002-07-11 Grace Sainsbury <graces@redhat.com>
6104
6105 * monitor.c (monitor_fetch_register): Make name a constant.
6106 (monitor_store_register): Same.
6107
6108 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6109
6110 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6111 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6112 (finish_block) For non-function blocks, hash the symbol table. For
6113 function blocks, mark the symbol table as unhashed.
6114 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6115 (msymbol_hash_iw): Likewise.
6116 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6117 value.
6118 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6119 (lookup_minimal_symbol): Likewise for both.
6120 * symtab.h (struct block): Add `hashtable' flag. Comment the
6121 hashtable.
6122 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6123 (ALL_BLOCK_SYMBOLS): Update.
6124 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6125 (struct symbol): Add `hash_next' pointer.
6126 * symtab.c (lookup_block_symbol): Search using the hash table when
6127 possible.
6128 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6129 (search_symbols, find_addr_symbol): Likewise.
6130
6131 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6132 (read_dst_symtab): Likewise.
6133 * jv-lang.c (get_java_class_symtab): Likewise.
6134 * mdebugread.c: Include "gdb_assert.h".
6135 (shrink_block): Assert that the block being modified is not hashed.
6136 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6137 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6138 symbols.
6139 (dump_symtab): Recognize hashed blocks.
6140 * printcmd.c (print_frame_args): Assert that function blocks do not
6141 have hashed symbol tables.
6142 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6143 (fill_in_ada_prototype, debug_print_block): Likewise.
6144 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6145
6146 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6147
6148 * stack.c (print_frame): Use result of frame_address_in_block()
6149 instead of fi->pc when evaluating symbols.
6150 (backtrace_command_1): Ditto.
6151
6152 2002-07-11 Andrew Cagney <cagney@redhat.com>
6153
6154 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6155 Make static.
6156
6157 * arm-tdep.c (arm_register_name): Make return type constant.
6158
6159 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6160
6161 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6162 prototype.
6163 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6164 * s390-tdep.c (s390_fp_regnum): Ditto.
6165 (s390_read_fp): Ditto.
6166 (s390_pop_frame): Ditto.
6167 (_initialize_s390_tdep): Ditto.
6168 * remote.c (get_remote_state): Ditto.
6169 * procfs.c (mappingflags): Ditto.
6170 * memattr.c (_initialize_mem): Ditto.
6171 * mcore-tdep.c (mcore_pop_frame): Ditto.
6172 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6173 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6174 * language.c (set_case_str): Ditto.
6175 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6176 * frv-tdep.c (new_variant): Ditto.
6177 (frv_stopped_data_address): Ditto.
6178 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6179 (context_alloc): Ditto.
6180 (frame_state_alloc): Ditto.
6181 (unwind_tmp_obstack_init): Ditto.
6182 (unwind_tmp_obstack_free): Ditto.
6183 (cfi_read_fp): Ditto.
6184 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6185 (cris_pop_frame): Ditto.
6186 * c-lang.c (scanning_macro_expansion): Ditto.
6187 (finished_macro_expansion): Ditto.
6188 (c_preprocess_and_parse): Ditto.
6189 * gdbarch.sh: Ditto.
6190 * gdbarch.h, gdbarch.c: Regenerate.
6191 * config/mn10200/tm-mn10200.h: Adjust indentation.
6192 * target.c: Adjust indentation.
6193 * symtab.h: Adjust indentation.
6194 * stabsread.h: Adjust indentation.
6195 * remote-es.c: Adjust indentation.
6196 * os9kread.c: Adjust indentation.
6197
6198 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6199
6200 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6201 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6202
6203 2002-07-10 Grace Sainsbury <graces@redhat.com>
6204
6205 * NEWS: Mention m68k, mcore multi-arching.
6206 * MAINTAINERS: Change status of m68k, mcore to reflect
6207 multi-arching.
6208
6209 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6210
6211 * valops.c (find_overload_match): Free oload_syms.
6212
6213 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6214
6215 Define HAVE_SYS_PROC_H if sys/proc.h exists
6216 * configure.in: Add check for sys/proc.h
6217 * config.in: Regenerate.
6218 * configure: Regenerate.
6219
6220 2002-07-09 Grace Sainsbury <graces@redhat.com>
6221
6222 * config/m68k/tm-m68k.h: Remove macros wrapped in
6223 #if !GDB_MULTI_ARCH.
6224
6225 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6226
6227 * config.in, configure: Regenerate.
6228
6229 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6230
6231 * dwarf2cfi.c: Include "gcore.h".
6232 (execute_stack_op): Fix implementation of the
6233 DW_OP_deref and DW_OP_deref_size operators by letting do their
6234 lookup in the target.
6235
6236 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6237
6238 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6239 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6240 tdep->sc_sp_offset.
6241
6242 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6243
6244 Fix PR gdb/595, gdb/602
6245 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6246 Don't call value_cast, just read the vtable pointer; update comments
6247 to match.
6248
6249 2002-07-05 Grace Sainsbury <graces@redhat.com>
6250
6251 * config/mcore/tm-mcore.h: Remove file.
6252 * config/mcore/mcore.mt: Remove definition of TM_FILE
6253 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6254
6255 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6256
6257 * i386bsd-tdep.c: Include "gdb_string.h".
6258
6259 2002-07-04 Grace Sainsbury <graces@redhat.com>
6260
6261 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6262 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6263 mcore-tdep.
6264 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6265 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6266 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6267 (RETVAL_REGNUM): Move macros from tm-mcore.h
6268 (mcore_reg_struct_has_addr): New function.
6269 (mcore_gdbarch_init): Added initializations for the macros removed
6270 from tm-mcore.h.
6271
6272 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6273
6274 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6275 traditonal string branding within the ELF header.
6276
6277 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6278
6279 * symtab.c (remove_params): New function.
6280 (make_symbol_overload_list): Use it instead of cplus_demangle.
6281 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6282
6283 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6284
6285 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6286
6287 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6288 New variables.
6289 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6290 and tdep->sigtramp_end.
6291 * i386obsd-nat.c: New file.
6292 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6293
6294 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6295 Don't call get_current_frame().
6296
6297 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6298
6299 * i386-nat.c (child_post_startup_inferior): New function
6300 calling i386_cleanup_dregs if
6301 I386_USE_GENERIC_WATCHPOINTS is defined.
6302 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6303 conditional to acknowledge that i386-nat.c has its
6304 own child_post_startup_inferior function.
6305
6306 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6307
6308 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6309 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6310 instead of MAX_REGISTER_RAW_SIZE.
6311 (i386_extract_return_value, i386_extract_struct_value_address):
6312 Convert to use regcache.
6313 (i386_gdbarch_init): Set max_register_raw_size and
6314 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6315 Set extract_return_value and extract_struct_value_address instead
6316 of their deprecated variants.
6317
6318 Convert i386 target to generic dummy frames.
6319 * i386-tdep.c: Include "symfile.h".
6320 (i386_frameless_signal_p): Consider a function to be frameless if
6321 the pc points at the first instruction of the function.
6322 (i386_frame_chain): Handle (generic) call dummies.
6323 (i386_frame_saved_pc): Likewise.
6324 (i386_frame_init_saved_regs): Remove code dealing with call
6325 dummies on the stack.
6326 (i386_push_dummy_frame): Removed.
6327 (i386_call_dummy_words): Removed.
6328 (i386_fix_call_dummy): Removed.
6329 (i386_push_return_address): New function.
6330 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6331 parameter, and don't call get_current_frame.
6332 (i386_pop_frame): New function.
6333 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6334 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6335 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6336 call_dummy_length to 0, set call_dummy_words to NULL, set
6337 sizeof_call_dummy_words to 0, set fix_call_dummy to
6338 generic_fix_call_dummy, set pc_in_call_dummy to
6339 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6340 generic_push_dummy_frame, set push_return_address to
6341 i386_push_return_address and set frame_chain_valid to
6342 generic_file_frame_chain_valid.
6343
6344 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6345
6346 * gdbarch.sh (struct regcache): Add opaque declaration.
6347 (EXTRACT_RETURN_VALUE): New architecture method.
6348 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6349 * gdbarch.h, gdbarch.c: Regenerate.
6350 * arch-utils.c (legacy_extract_return_value): New function.
6351 * arch-utils.h (legacy_extract_return_value): Declare.
6352 * values.c (value_being_returned): Re-enable code handling
6353 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6354 deprecated_grub_regcache_for_registers call to block handling
6355 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6356 (EXTRACT_RETURN_VALUE): Do not define.
6357
6358 2002-07-03 Grace Sainsbury <graces@redhat.com>
6359
6360 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6361 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6362 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6363 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6364 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6365 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6366 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6367 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6368 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6369 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6370 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6371 argument so the function fits the prototype in the architecture
6372 vector.
6373 (mcore_pop_frame): Remove argument so the function fits the
6374 prototype. Use get_current_frame instead of the argument.
6375 (mcore_push_arguments): Change type of struct_return so the
6376 function can be used in the architecture vector.
6377 (mcore_store_struct_return): Add.
6378 (mcore_frame_init_saved_regs): Add.
6379 (mcore_gdbarch_init): Add function calls to replace the macros
6380 removed from tm-mcore.h
6381
6382 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6383
6384 * infcmd.c (print_return_value): Remove compatibility code calling
6385 deprecated_grub_regcache_for_registers.
6386
6387 * values.c: Include "regcache.h".
6388 (value_being_returned): Update. Use
6389 deprecated_grub_regcache_for_registers to extract the register
6390 buffer address.
6391 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6392 ``struct regcache''.
6393 * Makefile.in (values.o): Add dependency on $(regcache_h).
6394
6395 * inferior.h (run_stack_dummy): Change type of second parameter to
6396 a ``struct regcache''.
6397 * valops.c (hand_function_call): Change type of retbuf to ``struct
6398 regcache''. Allocate using regcache_xmalloc, clean using
6399 make_cleanup_regcache_xfree.
6400 * infcmd.c (run_stack_dummy): Update. Use
6401 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6402
6403 * regcache.c (do_regcache_xfree): New function.
6404 (make_cleanup_regcache_xfree): New function.
6405 * regcache.h (make_cleanup_regcache_xfree): Declare.
6406
6407 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6408
6409 * event-top.c (command_line_handler): Don't read past
6410 beginning of buffer.
6411
6412 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6413
6414 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6415 struct frame_id.
6416 (varobj_create): Store frame_id for root.
6417 (varobj_gen_name): Use xasprintf.
6418 (varobj_update): Save and restore frame using get_frame_id() and
6419 frame_find_by_id().
6420 (create_child): Use xasprintf.
6421 (new_root_variable): Initialize frame_id.
6422 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6423 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6424 to prevent memory leak.
6425
6426 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6427
6428 * valops.c (hand_function_call): Move declaration of retbuf to
6429 start of function, allocate using malloc, add a cleanup but before
6430 the inf_status cleanup, cleanup the buffer. Rename local variable
6431 old_chain to inf_status_cleanup.
6432
6433 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6434
6435 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6436
6437 * cli/cli-decode.c (cmd_func_p): New function.
6438 (cmd_func): New function.
6439
6440 * command.h: Add cmd_func() and cmd_func_p().
6441
6442 2002-07-03 Grace Sainsbury <graces@redhat.com>
6443
6444 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6445 (REGISTER_SIZE): Remove.
6446 (MAX_REGISTER_RAW_SIZE): Remove.
6447 (REGISTER_VIRTUAL_TYPE): Remove.
6448 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6449 (REGISTER_NAME): Remove.
6450 (USE_GENERIC_DUMMY_FRAMES): Remove.
6451 (CALL_DUMMY): Remove.
6452 (CALL_DUMMY_START_OFFSET): Remove.
6453 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6454 (CALL_DUMMY_LOCATION): Remove.
6455 (FIX_CALL_DUMMY): Remove.
6456 (CALL_DUMMY_ADDRESS): Remove.
6457 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6458 (SAVE_DUMMY_FRAME_TOS): Remove.
6459 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6460 (mcore_register_virtual_type): New function.
6461 (mcore_register_byte): New function.
6462 (mcore_register_size): New function.
6463 (mcore_register_name): New function.
6464 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6465 macros removed from tm-mcore.h.
6466 (mcore_dump_tdep): Add.
6467 (_initialize_mcore_tdep): Add gdbarch_register call.
6468
6469 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6470
6471 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6472 frameless_look_for_prologue, such that we actually call this
6473 function.
6474
6475 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6476
6477 * frame.h (frame_address_in_block): New function.
6478
6479 * blockframe.c (frame_address_in_block): New function extracted
6480 from get_frame_block().
6481 (get_frame_block): Use frame_address_in_block().
6482 (block_innermost_frame): Use frame_address_in_block() to match
6483 the frame pc address against the block boundaries rather than
6484 the frame pc directly. This prevents a failure when a frame pc
6485 is actually a return-address pointing immediately after the end
6486 of the given block.
6487
6488 2002-07-02 Grace Sainsbury <graces@redhat.com>
6489
6490 * MAINTAINERS: Add self under write after approval.
6491
6492 2002-07-02 Grace Sainsbury <graces@redhat.com>
6493
6494 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6495 used in architecture vector. The default is
6496 m68k_local_breakpoint_from_pc.
6497 (m68k_local_breakpoint_from_pc): Add.
6498 (enum): Add register numbers from tm-m68k.h.
6499 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6500 vector.
6501 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6502 GDB_MULTI_ARCH_PARTIAL.
6503 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6504 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6505 m68k-tdep.c.
6506 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6507 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6508 to enum in m68k-tdep.c
6509
6510 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6511
6512 * solib-osf.c (open_map): Compute the list of shared libraries
6513 loaded by the inferior, rather than the list of libraries loaded
6514 by GDB itself. Otherwise, GDB ends up reading the symbols from
6515 the wrong shared libraries...
6516
6517 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6518
6519 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6520 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6521 macros.
6522 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6523 Remove functions.
6524 (FRAMELESS_SIGNAL): Remove function.
6525 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6526 i386_linux_saved_pc_after_call): Removed.
6527 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6528 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6529 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6530
6531 * i386-tdep.c (i386_frameless_signal_p): New function.
6532 (i386_frame_chain): Deal with frameless signals.
6533 (i386_sigtramp_saved_sp): New function.
6534 (i386_frame_saved_pc): Deal with frameless signals.
6535 (i386_saved_pc_after_call): Make sure the correct value is
6536 returned just after entry into a sigtramp.
6537 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6538 i386fbsd4_sc_sp_offset): New variables.
6539 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6540 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6541 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6542 similiar to what we already did for sc_pc_offset.
6543 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6544 tdep->sc_sp_offset.
6545
6546 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6547
6548 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6549
6550 * config/i386/tm-x86-64linux.h: New.
6551 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6552 definitions.
6553 * config/i386/nm-x86-64.h: Rename to ...
6554 * config/i386/nm-x86-64linux.h: ... this one.
6555 * config/i386/x86-64linux.mh: Reflect the above change.
6556
6557 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6558
6559 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6560 with sigcontext_addr. Add sc_sp_offset.
6561 (i386bsd_sigtramp_saved_pc): Remove prototype.
6562 (i386bsd_sicontext_addr): Add prototype.
6563 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6564 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6565 (i386_svr4_sigtramp_saved_pc): Removed.
6566 (i386_svr4_sigcontext_addr): New function.
6567 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6568 Initialize tdep->sigcontext_addr instead. Initialize
6569 tdep->sc_pc_offset and tdep->sc_sp_offset.
6570 (i386_gdbarch_init): Likewise.
6571 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6572 any more.
6573 (i386bsd_sigtramp_saved_pc): Remove function.
6574 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6575 Initialize tdep->sigcontext_addr instead. Initialize
6576 tdep->sc_pc_offset.
6577 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6578 of tdep->sigtramp_saved_pc.
6579 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6580 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6581 instead.
6582
6583 * i386-tdep.c (i386_frameless_function_invocation,
6584 i386_frame_num_args, i386_frame_init_saved_regs,
6585 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6586 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6587 i386_extract_return_value, i386_store_return_value,
6588 i386_extract_struct_value_address, i386_register_virtual_type,
6589 i386_register_convertible, i386_register_convert_to_virtual,
6590 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6591 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6592 static.
6593
6594 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6595
6596 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6597
6598 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6599 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6600 this macro. Include "value.h".
6601
6602 2002-06-30 Aidan Skinner <aidan@velvet.net>
6603
6604 * ada-exp.tab.c: remove as it's a generated file
6605 * ada-lex.c: remove as it's a generated file
6606
6607 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6608
6609 * config/i386/tm-i386.h (struct frame_info, struct
6610 frame_saved_regs, struct value, struct type): Remove forward
6611 declarations.
6612
6613 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6614 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6615 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6616 (FILL_FPXREGSET): Define.
6617
6618 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6619
6620 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6621 i[3456]86-*-netbsd* case.
6622 * config/i386/tm-obsd.h: Removed.
6623 * config/i386/obsd.mt: Removed.
6624 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6625 core-aout.o.
6626 (MH_CFLAGS): Add -DYYDEBUG=0.
6627
6628 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6629 i386nbsd_sc_pc_offset on OpenBSD too.
6630
6631 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6632 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6633 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6634 define.
6635 * i386bsd-tdep.c: Include "arch-utils.h".
6636 (i386bsd_aout_in_solib_call_trampoline): New function.
6637 (i386bsd_init_abi): Set in_solib_call_trampoline to
6638 i386bsd_aout_in_solib_call_trampoline.
6639 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6640 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6641
6642 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6643
6644 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6645 (struct obstack, struct bcache): Add opaque declarations.
6646 * Makefile.in (macrotab_h): Update
6647
6648 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6649
6650 * blockframe.c (generic_find_dummy_frame): Change return type to
6651 ``struct regcache''.
6652 (struct dummy_frame): Replace field ``registers'' with regcache, a
6653 struct regcache object.
6654 (generic_find_dummy_frame): Update.
6655 (generic_push_dummy_frame): Update. Use regcache_xfree,
6656 regcache_xmalloc and regcache_cpy.
6657 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6658 regcache_xfree.
6659 (deprecated_generic_find_dummy_frame): Update.
6660 (generic_read_register_dummy): Update. Use
6661 regcache_read_as_address.
6662 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6663 (generic_get_saved_register): Update. Use regcache_read.
6664
6665 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6666
6667 * Makefile.in (objfiles_h): Add $(bcache_h).
6668 * objfiles.h: Include "bcache.h".
6669
6670 * Makefile.in (symtab_h): Remove $(bcache_h).
6671 * symtab.h: Do not include "bcache.h".
6672
6673 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6674
6675 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6676 generic_func_frame_chain_valid.
6677
6678 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6679
6680 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6681 * config/i386/tm-fbsd.h: Likewise.
6682
6683 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6684
6685 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6686 generic_unwind_get_saved_register.
6687
6688 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6689
6690 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6691 * regcache.c (supply_register): Add missing argument to
6692 register_buffer call.
6693
6694 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6695
6696 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6697 Solaris /bin/grep does not not like it. From Peter Schauer.
6698
6699 2002-06-26 Tom Tromey <tromey@redhat.com>
6700
6701 * command.h (add_setshow_cmd): Declare.
6702 (add_setshow_cmd_full): Declare.
6703 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6704 returns void. Use add_setshow_cmd_full.
6705 (add_setshow_cmd_full): New function.
6706 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6707 (add_setshow_boolean_cmd): Likewise.
6708
6709 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6710
6711 * config/vax/tm-vax.h: Protect from multiple inclusion.
6712 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6713 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6714 * config/vax/tm-vaxbsd.h: ...here. New file.
6715 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6716
6717 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6718
6719 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6720 (BELIEVE_PCC_PROMOTION): Remove.
6721 (AP_REGNUM): Move to...
6722 * config/vax/nm-vax.h: ...here.
6723 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6724 (vax_breakpoint_from_pc): New function.
6725 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6726 and gdbarch_believe_pcc_promotion.
6727
6728 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6729
6730 * Makefile.in (vax_tdep_h): Define.
6731 (vax-tdep.o): Use $(vax_tdep_h).
6732 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6733 (vax_dump_tdep): New function.
6734 (_initialize_vax_tdep): Register vax_dump_tdep.
6735 * vax-tdep.h: Include osabi.h.
6736 (struct gdbarch_tdep): New.
6737
6738 2002-06-26 Andrew Cagney <cagney@redhat.com>
6739
6740 * frame.h (deprecated_generic_find_dummy_frame): Rename
6741 generic_find_dummy_frame.
6742 * blockframe.c (generic_find_dummy_frame): Make static.
6743 (deprecated_generic_find_dummy_frame): New function.
6744 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6745 generic_find_dummy_frame with deprecated_find_dummy_frame.
6746 (sh64_nofp_frame_init_saved_regs): Ditto.
6747 (sh_fp_frame_init_saved_regs): Ditto.
6748 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6749 (s390_frame_chain): Ditto.
6750 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6751
6752 2002-06-26 Grace Sainsbury <graces@redhat.com>
6753
6754 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6755 gdbarch vector are at the top.
6756 (NUM_REGS): Remove.
6757 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6758 (FRAME_ARGS_ADDRESS): Remove.
6759 (FRAME_LOCALS_ADDRESS): Remove.
6760 (FRAME_NUM_ARGS): Remove.
6761 (FRAME_ARGS_SKIP): Remove.
6762 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6763 (m68k_gdbarch_init): Add gdbarch initializations for macros
6764 undefined in tm-m68k.h
6765
6766 2002-06-26 Grace Sainsbury <graces@redhat.com>
6767
6768 * monitor.h: Add the function regname to monitor_ops
6769 structure. This way NUM_REGS does not have to be a constant.
6770 * monitor.c (monitor_fetch_register): Added support for regname
6771 function. The function is called if the array regnames is NULL.
6772 (monitor_store_register): Same.
6773 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6774 regnames array.
6775 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6776 cpu32bug_cmds.regname to point to new function.
6777 * abug-rom.c (abug_regname): Same as above.
6778 (init_abug_cmds): Same.
6779 * dbug-rom.c (dbug_regname): Same as above.
6780 (init_dbug_cmds): Same.
6781 * remote-est.c (est_regname): Same.
6782 (init_est_cmds): Same.
6783 * rom68k-rom.c (rom68k_regname): Same.
6784 (init_rom68k_cmds): Same.
6785
6786 2002-06-25 Tom Tromey <tromey@redhat.com>
6787
6788 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6789
6790 2002-06-25 Andrew Cagney <cagney@redhat.com>
6791
6792 * infrun.c (stop_registers): Change variable's type to ``struct
6793 regcache'''.
6794 (xmalloc_inferior_status): Delete function.
6795 (free_inferior_status): Delete function.
6796 (normal_stop): Use regcache_cpy.
6797 (struct inferior_status): Change type of fields ``stop_registers''
6798 and ``registers'' to ``struct regcache''.
6799 (write_inferior_status_register): Use regcache_write.
6800 (save_inferior_status): Instead of calling
6801 xmalloc_inferior_status, allocate the inf_status buffer directly.
6802 Use regcache_dup_no_passthrough and regcache_dup to save the
6803 buffers.
6804 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6805 Replace the stop_registers regcache instead of overriding it. Use
6806 regcache_xfree. Instead of calling free_inferior_status, xfree
6807 the buffer directly.
6808 (discard_inferior_status): Use regcache_xfree. Instead of calling
6809 free_inferior_status, xfree the buffer directly.
6810 (build_infrun): Use regcache_xmalloc.
6811 (_initialize_infrun): Delete redundant call to build_infrun.
6812
6813 * Makefile.in (infcmd.o): Add $(regcache_h).
6814
6815 * infcmd.c: Include "regcache.h".
6816 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6817 obtain the address of `stop_registers' register buffer.
6818 (print_return_value): Ditto.
6819
6820 * inferior.h (struct regcache): Add opaque declaration.
6821 (stop_registers): Change variable's declared type to ``struct
6822 regcache''.
6823
6824 2002-06-24 Tom Tromey <tromey@redhat.com>
6825
6826 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6827 * target.c (initialize_targets): Fixed typo in
6828 trust-readonly-sections `show' documentation.
6829
6830 * main.c: Marked all strings with _().
6831
6832 2002-06-24 Don Howard <dhoward@redhat.com>
6833
6834 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6835 that means max CORE_ADDR+1.
6836 (lookup_mem_region): Ditto.
6837 (mem_info_command): Ditto.
6838
6839 2002-06-24 Grace Sainsbury <graces@redhat.com>
6840
6841 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6842 (REGISTER_BYTES_OK): Remove.
6843 (REGISTER_BYTES): Remove.
6844 (STORE_STRUCT_RETURN): Remove.
6845 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6846 (STORE_RETURN_VALUE): Remove.
6847 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6848 (FRAME_CHAIN): Remove.
6849 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6850 (FRAME_SAVED_PC): Remove.
6851 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6852 (m68k_store_struct_return): Add.
6853 (m68k_deprecated_extract_return_value): Add.
6854 (m68k_deprecated_extract_struct_value_address): Add.
6855 (m68k_store_return_value): Add.
6856 (m68k_frame_chain): Add.
6857 (m68k_frameless_function_invocation): Add.
6858 (m68k_frame_saved_pc): Add.
6859 (m68k_gdbarch_init): added set_gdbarch calls for new
6860 functions and deleted macros.
6861
6862 2002-06-23 Tom Tromey <tromey@redhat.com>
6863
6864 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6865 (ALLDEPFILES): Likewise.
6866 (udiheaders): Removed.
6867 (udip2soc.o): Likewise.
6868 (udi2go32.o): Likewise.
6869 (udr.o): Likewise.
6870 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6871
6872 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6873
6874 * infrun.c (_initialize_infrun): Delete unnecessary call to
6875 build_infrun.
6876
6877 * regcache.h: Update comments describing the regcache_cpy family
6878 of functions.
6879 (regcache_save, regcache_restore): Delete declaration.
6880 (regcache_save_no_passthrough): Delete declaration.
6881 (regcache_restore_no_passthrough): Delete declaration.
6882 * regcache.c (regcache_save): Delete function.
6883 (regcache_save_no_passthrough): Delete function.
6884 (regcache_restore): Delete function.
6885 (regcache_restore_no_passthrough): Delete function.
6886
6887 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6888
6889 * config/m68k/tm-m68k.h: Fix typo.
6890 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6891 (m68k_frame_init_saved_regs): Declare.
6892
6893 2002-06-21 Jim Blandy <jimb@redhat.com>
6894
6895 Remove some vestiges of Harris 88k support.
6896 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6897 register numbering quirk.
6898 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6899 odd symbols occurring in Harris 88k ELF targets.
6900
6901 2002-06-21 Tom Tromey <tromey@redhat.com>
6902
6903 * gdb_locale.h: New file.
6904 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6905 (defs_h): Added gdb_locale.h.
6906 * configure, config.in: Rebuilt.
6907 * configure.in (PACKAGE): Define.
6908 * defs.h: Include gdb_locale.h.
6909 * main.c (captured_main): Call setlocale, bindtextdomain,
6910 textdomain.
6911
6912 2002-06-21 Dave Brolley <brolley@redhat.com>
6913
6914 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6915 * config/frv/frv.mt: New file.
6916 * config/frv/tm-frv.h: New file.
6917 * configure.tgt: Support frv-*-*.
6918 * Makefile.in (frv-tdep.o): New target.
6919 * frv-tdep.c: New file.
6920 * NEWS: Mention frv.
6921
6922 2002-06-21 Dave Brolley <brolley@redhat.com>
6923
6924 * MAINTAINERS: Add self to "Write After Approval" list.
6925
6926 2002-06-21 Grace Sainsbury <graces@redhat.com>
6927
6928 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6929 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6930 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6931 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6932 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6933
6934 * m68k-tdep.c: Include arch-utils.h
6935 (m68k_register_raw_size): Add.
6936 (m68k_register_virtual_size): Add.
6937 (m68k_register_virtual_type): Add.
6938 (m68k_register_name): Add.
6939 (m68k_stack_align): Add.
6940 (m68k_register_byte): Add.
6941 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6942 tm-m68k.h.
6943
6944 2002-06-21 Grace Sainsbury <graces@redhat.com>
6945
6946 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6947 m68k_find_saved_regs.
6948 (m68k_pop_frame): Removed saved_regs structure, and replaced
6949 references to it with frame->saved_regs.
6950 (m68k_gdbarch_init): Added function calls to initialize the
6951 gdbarch structure.
6952 (m68k_fix_call_dummy): Add.
6953 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6954 (CALL_DUMMY): Remove.
6955 (CALL_DUMMY_LENGTH): Remove.
6956 (CALL_DUMMY_START_OFFSET): Remove.
6957 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6958 (FIX_CALL_DUMMY): Remove.
6959 (PUSH_DUMMY_FRAME): Remove.
6960 (POP_FRAME): Remove.
6961
6962 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6963
6964 * parse.c (parse_fprintf): New function used to avoid calls to
6965 fprintf in bison parser generated debug code.
6966 * parser-defs.h: Declaration of new parse_fprintf function.
6967 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6968 Set YYDEBUG to 1 by default.
6969 Set YYFPRINTF as parse_fprintf.
6970
6971 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6972
6973 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6974 encoding anymore.
6975 (pointer_encoding, enum ptr_encoding): New.
6976 (execute_cfa_program): Take care about pointer encoding.
6977 (dwarf2_build_frame_info): Only call parse_frame_info for
6978 .debug_frame and .eh_frame.
6979 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6980 fixed augmentation handling, added relative addressing,
6981 ignore duplicate FDEs. Added comments.
6982 * dwarf2cfi.c: Reindented.
6983
6984 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6985
6986 * event-top.c (command_handler): Don't use space_at_cmd_start
6987 unless there is sbrk() on the host. Assign time and space data
6988 to union fields of the appropriate length.
6989
6990 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6991
6992 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6993 x86_64_register_name. Return type changed to 'const char *'.
6994 (x86_64_register_name2nr): Rename to x86_64_register_number.
6995 (x86_64_gdbarch_init): Update to reflect the change.
6996 * x86-64-tdep.h: Ditto.
6997 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6998 (supply_fpregset): Ditto.
6999
7000 2002-06-19 Andrew Cagney <cagney@redhat.com>
7001
7002 * regcache.h: Update copyright.
7003 (struct regcache, struct gdbarch): Add opaque declarations.
7004 (current_regcache): Declare global variable.
7005 (regcache_read, regcache_write): Add gdbarch parameter.
7006 (regcache_save, regcache_save_no_passthrough)
7007 (regcache_restore, regcache_restore_no_passthrough)
7008 (regcache_dup, regcache_dup_no_passthrough)
7009 (regcache_cpy, regcache_cpy_no_passthrough)
7010 (deprecated_grub_regcache_for_registers)
7011 (deprecated_grub_regcache_for_register_valid)
7012 (regcache_valid_p): Add function declarations.
7013
7014 * regcache.c: Update copyright.
7015 (regcache_descr_handle): New global variable.
7016 (struct regcache_descr): Define.
7017 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7018 (regcache_descr, xfree_regcache_descr): New functions.
7019 (struct regcache): Define.
7020 (regcache_xmalloc, regcache_xfree): New functions.
7021 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7022 (regcache_dup, regcache_dup_no_passthrough): New functions.
7023 (regcache_valid_p, regcache_read_as_address): New functions.
7024 (deprecated_grub_regcache_for_registers): New function.
7025 (deprecated_grub_regcache_for_register_valid): New function.
7026 (current_regcache): New global variable.
7027 (register_buffer): Add regcache parameter. Update calls.
7028 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7029 (read_register_gen, write_register_gen): Update register_buffer
7030 call. Test for legacy_p instead of gdbarch_register_read_p or
7031 gdbarch_register_write_p.
7032 (regcache_collect): Update register_buffer call.
7033 (build_regcache): Rewrite. Use deprecated grub functions.
7034 (regcache_save, regcache_save_no_passthrough): New functions.
7035 (regcache_restore, regcache_restore_no_passthrough): New
7036 functions.
7037 (_initialize_regcache): Create the regcache_data_handle. Swap
7038 current_regcache global variable.
7039
7040 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7041 parameter to regcache_read and regcache_write calls.
7042 (sh4_register_read): Ditto.
7043 (sh64_pseudo_register_read): Ditto.
7044 (sh64_register_read): Ditto.
7045 (sh_pseudo_register_write): Ditto.
7046 (sh4_register_write): Ditto.
7047 (sh64_pseudo_register_write): Ditto.
7048 (sh64_register_write): Ditto.
7049
7050 * defs.h (XCALLOC): Define.
7051
7052 2002-06-19 Grace Sainsbury <graces@redhat.com>
7053
7054 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7055 * m68k-tdep.c (m68k_gdbarch_init): Added.
7056 (m68k_dump_tdep): Added.
7057
7058 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7059
7060 * ada-lang.c (fill_in_ada_prototype): Update comment.
7061
7062 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7063
7064 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7065 MIPS_ABI_LAST.
7066 (mips_abi_string, mips_abi_strings): New.
7067 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7068 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7069 tdep->mips_abi_string. Honor mips_abi_string. Default to
7070 O32 if no ABI is found.
7071 (mips_dump_tdep): Use mips_abi_strings.
7072 (mips_abi_update): New function.
7073 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7074 ``set mips abi'' and ``show mips abi''. Check the size of
7075 mips_abi_strings.
7076
7077 2002-06-19 Andrew Cagney <cagney@redhat.com>
7078
7079 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7080 constant.
7081
7082 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7083
7084 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7085 current frame using only the first stack size adjustment. All
7086 subsequent size adjustments are not considered to be part of
7087 the "static" part of the current frame.
7088 Compute the address of the saved registers relative to the
7089 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7090 in use in this frame.
7091
7092 2002-06-18 Don Howard <dhoward@redhat.com>
7093
7094 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7095 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7096 suggesting this solution.
7097
7098 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7099
7100 * config/romp/xm-rtbsd.h: Delete file.
7101 * config/romp/rtbsd.mh: Delete file.
7102
7103 2002-06-18 Keith Seitz <keiths@redhat.com>
7104
7105 * breakpoint.c (condition_command): Post breakpoint_modify
7106 when a condition is added to an existing breakpoint.
7107 (commands_command): Likewise for commands.
7108 (set_ignore_count): Likewise for ignore counts.
7109 If no tty, do not simply return, still need to send event
7110 notification.
7111 (ignore_command): Only print a newline if the command came
7112 from a tty.
7113 Don't call breakpoints_changed, since this is now properly
7114 handled by set_ignore_count.
7115
7116 2002-06-18 Andrew Cagney <cagney@redhat.com>
7117
7118 * MAINTAINERS: Note that cris-elf target can be compiled with
7119 -Werror.
7120 * cris-tdep.c (cris_register_name): Make return type constant.
7121 (cris_breakpoint_from_pc): Ditto.
7122
7123 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7124
7125 * frame.h (struct frame_info): Change type of context to
7126 'struct context'.
7127
7128 2002-06-17 Andrew Cagney <cagney@redhat.com>
7129
7130 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7131 pointer.
7132 * gdbarch.h, gdbarch.c: Regenerate.
7133 * config/mips/tm-mips.h (mips_register_name): Update.
7134 * i386-tdep.h (i386_register_name): Update.
7135 * mips-tdep.c (mips_register_name): Update
7136 * alpha-tdep.c (alpha_register_name): Update.
7137 * arch-utils.c (legacy_register_name): Update.
7138 * arch-utils.h (legacy_register_name): Update.
7139 * avr-tdep.c (avr_register_name): Update.
7140 * ia64-tdep.c (ia64_register_name): Update.
7141 * i386-tdep.c (i386_register_name): Update.
7142 * sparc-tdep.c (sparc32_register_name): Update.
7143 (sparc64_register_name): Update.
7144 (sparclite_register_name): Update.
7145 (sparclet_register_name): Update.
7146 * sh-tdep.c (sh_generic_register_name): Update.
7147 (sh_sh_register_name): Update.
7148 (sh_sh3_register_name): Update.
7149 (sh_sh3e_register_name): Update.
7150 (sh_sh_dsp_register_name): Update.
7151 (sh_sh3_dsp_register_name): Update.
7152 (sh_sh4_register_name): Update.
7153 (sh_sh64_register_name): Update.
7154 * s390-tdep.c (s390_register_name): Update.
7155 * rs6000-tdep.c (rs6000_register_name): Update.
7156 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7157 (ns32k_register_name_32382): Update.
7158 * d10v-tdep.c (d10v_ts2_register_name): Update.
7159 (d10v_ts3_register_name): Update.
7160 * xstormy16-tdep.c (xstormy16_register_name): Update.
7161 * vax-tdep.c (vax_register_name): Update.
7162 * v850-tdep.c (v850_register_name): Update.
7163 * m68hc11-tdep.c (m68hc11_register_name): Update.
7164 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7165 (am33_register_name): Update.
7166
7167 2002-06-17 Grace Sainsbury <graces@redhat.com>
7168
7169 * m68k-tdep.c: Reindented.
7170
7171 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7172
7173 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7174 list of predefined types.
7175
7176 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7177
7178 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7179 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7180 REGISTER_CONVERT_TO_RAW): Remove defines.
7181 (i386_register_virtual_type, i386_register_convertible,
7182 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7183 Remove prototypes.
7184 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7185 macros mentioned above.
7186
7187 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7188 (i386lynx_saved_pc_after_call): Remove prototype.
7189 * i386ly-tdep.c: Include "i386-tdep.h".
7190 (i386lynx_saved_pc_after_call): Make static. Use
7191 read_memory_nobpt instead of read_memory. Use
7192 read_memory_unsigned_integer instead of read_memory_integer.
7193 (i386lynx_init_abi): New function.
7194 (i386lynx_coff_osabi_sniffer): New function.
7195 (_initialize_i386bsd_tdep): New function.
7196
7197 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7198 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7199 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7200 (i386_fix_call_dummy): Remove prototype.
7201 * i386-tdep.c (i386_call_dummy_words): New variable.
7202 (i386_gdbarch_init): Adjust for removal of the
7203 macros mentioned above.
7204
7205 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7206
7207 * command.h (add_setshow_auto_boolean_cmd): Replace
7208 add_set_auto_boolean_cmd.
7209 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7210 add_set_auto_boolean_cmd.
7211 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7212 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7213 mask-address'' command.
7214 (show_mask_address): Add cmd parameter.
7215 * remote.c (add_packet_config_cmd): Update. Change type of
7216 set_func and show_func to cmd_sfunc_ftype.
7217 (_initialize_remote): Update `set remote Z-packet'
7218 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7219 (show_remote_protocol_e_packet_cmd): Ditto.
7220 (show_remote_protocol_E_packet_cmd): Ditto.
7221 (show_remote_protocol_P_packet_cmd): Ditto.
7222 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7223 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7224 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7225 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7226 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7227 (show_remote_protocol_Z_packet_cmd): Ditto.
7228 (show_remote_protocol_binary_download_cmd): Ditto.
7229 (show_remote_cmd): Pass NULL to all of above.
7230
7231 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7232
7233 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7234 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7235 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7236 POP_FRAME): Remove defines.
7237 (i386_push_arguments, i386_store_struct_return,
7238 i386_extract_return_value, i386_store_return_value,
7239 i386_extract_struct_value_address, i386_push_dummy_frame,
7240 i386_pop_frame): Renove prototypes.
7241 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7242 macros mentioned above.
7243
7244 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7245
7246 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7247 add_set_boolean_cmd.
7248 (add_setshow_cmd): New function.
7249 * command.h (add_setshow_boolean_cmd): Replace
7250 add_set_boolean_cmd.
7251 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7252 and ``set rdiromatzero''.
7253 * maint.c (_initialize_maint_cmds): Update commented out code.
7254 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7255 * target.c (initialize_targets): Update `set
7256 trust-readonly-sections'.
7257 * remote.c (_initialize_remote): Update `set remotebreak'.
7258
7259 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7260
7261 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7262 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7263 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7264 fit into multi-arch framework.
7265 (i386_breakpoint_from_pc): New function.
7266 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7267 above.
7268
7269 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7270 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7271 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7272 (i386_frameless_function_invocation, i386_frame_num_args,
7273 i386_frame_init_saved_regs): Remove prototypes.
7274 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7275 macros mentioned above.
7276
7277 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7278
7279 * cli/cli-decode.c (set_cmd_cfunc): Update.
7280 (set_cmd_sfunc): Update.
7281 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7282 (set_cmd_sfunc, set_cmd_cfunc): Update.
7283 * cli/cli-decode.h: Update.
7284
7285 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7286
7287 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7288 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7289
7290 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7291
7292 * defs.h (auto_boolean): Declare enum.
7293 * command.h (cmd_auto_boolean): Delete enum.
7294 * mips-tdep.c (mask_address_var): Update.
7295 (mips_mask_address_p): Update.
7296 (show_mask_address): Update.
7297 * remote.c (struct packet_config): Update.
7298 (update_packet_config): Update.
7299 (show_packet_config_cmd): Update.
7300 (packet_ok): Update.
7301 (add_packet_config_cmd): Update.
7302 (_initialize_remote):
7303 * command.h: Update.
7304 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7305 (do_setshow_command): Update.
7306 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7307 * cli/cli-decode.h: Update.
7308
7309 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7310
7311 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7312 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7313 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7314 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7315 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7316 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7317
7318 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7319 list of DJGPP COFF targets.
7320
7321 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7322 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7323 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7324 (FP0_REGNUM): Remove define.
7325 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7326 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7327 (i386_register_virtual_size): Remove protoype.
7328 * i386-tdep.c (i386_register_virtual_size): Removed.
7329 (i386_extract_return_value, i386_store_return_value): Use
7330 FP0_REGNUM instead of NUM_FREGS to determine whether the
7331 floating-point registers are available.
7332 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7333 Adjust for removal of macros mentioned above.
7334
7335 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7336
7337 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7338 comments.
7339 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7340 Remove prototypes.
7341 (supply_gregset, fill_gregset): Remove use of register keyword and
7342 remove declaration for regmap. Use I386_NUM_GREGS instead of
7343 NUM_REGS and NUM_FREGS.
7344 (FPREGSET_FSAVE_OFFSET): Remove.
7345 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7346 NUM_FREGS to determine whether the floating-point registers are
7347 available.
7348
7349 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7350 gnu_store_registers): Replace usage of NUM_GREGS with
7351 I386_NUM_GREGS.
7352
7353 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7354 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7355 usage of NUM_GREGS with I386_NUM_GREGS.
7356
7357 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7358
7359 * i386bsd-nat.c: Include "i386-tdep.h".
7360 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7361 I386_NUM_GREGS.
7362
7363 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7364 and associated comment. They no longer make any sense, since we
7365 don't use this file anymore on Linux.
7366
7367 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7368 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7369 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7370 elements in these arrays.
7371 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7372 MAX_NUM_REGS.
7373
7374 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7375
7376 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7377 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7378
7379 2002-06-14 Andrew Cagney <cagney@redhat.com>
7380
7381 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7382 EXTRACT_RETURN_VALUE.
7383 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7384 EXTRACT_STRUCT_VALUE_ADDRESS.
7385 * gdbarch.h, gdbarch.c: Regenerate.
7386
7387 * values.c (value_being_returned): Handle
7388 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7389 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7390
7391 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7392 * arm-tdep.c (arm_gdbarch_init): Update.
7393 * avr-tdep.c (avr_gdbarch_init): Update.
7394 * cris-tdep.c (cris_gdbarch_init): Update.
7395 * d10v-tdep.c (d10v_gdbarch_init): Update.
7396 * ia64-tdep.c (ia64_gdbarch_init): Update.
7397 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7398 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7399 * s390-tdep.c (s390_gdbarch_init): Update.
7400 * sh-tdep.c (sh_gdbarch_init): Update.
7401 * s390-tdep.c (s390_gdbarch_init): Update.
7402 * sparc-tdep.c (sparc_gdbarch_init): Update.
7403 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7404 * v850-tdep.c (v850_gdbarch_init): Update.
7405 * vax-tdep.c (vax_gdbarch_init): Update.
7406 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7407 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7408
7409 * config/arc/tm-arc.h: Update.
7410 * config/d30v/tm-d30v.h: Update.
7411 * config/fr30/tm-fr30.h: Update.
7412 * config/h8300/tm-h8300.h: Update.
7413 * config/h8500/tm-h8500.h: Update.
7414 * config/i386/tm-i386.h: Update.
7415 * config/i386/tm-ptx.h: Update.
7416 * config/i386/tm-symmetry.h: Update.
7417 * config/i960/tm-i960.h: Update.
7418 * config/m32r/tm-m32r.h: Update.
7419 * config/m68k/tm-delta68.h: Update.
7420 * config/m68k/tm-linux.h: Update.
7421 * config/m68k/tm-m68k.h: Update.
7422 * config/m88k/tm-m88k.h: Update.
7423 * config/mcore/tm-mcore.h: Update.
7424 * config/mips/tm-mips.h: Update.
7425 * config/mn10200/tm-mn10200.h: Update.
7426 * config/pa/tm-hppa.h: Update.
7427 * config/pa/tm-hppa64.h: Update.
7428 * config/sparc/tm-sp64.h: Update.
7429 * config/sparc/tm-sparc.h: Update.
7430 * config/sparc/tm-sparclet.h: Update.
7431 * config/z8k/tm-z8k.h: Update.
7432
7433 2002-06-14 Andrew Cagney <cagney@redhat.com>
7434
7435 * Makefile.in (i386_linux_tdep_h): Define.
7436 (i386_tdep_h, i387_tdep_h): Define.
7437 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7438 $(i386_tdep_h) and $(i387_tdep_h).
7439 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7440
7441 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7442
7443 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7444 Already covered by the default.
7445
7446 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7447 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7448 (i386_gdbarch_init): Initialize long_double_format and long_double
7449 bit.
7450
7451 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7452 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7453 Move these to ...
7454 * config/i386/i386sol2.mh: ... here.
7455 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7456 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7457 (SIGCONTEXT_PC_OFFSET): Remove define.
7458 (IN_SIGTRAMP): Remove define.
7459 * i386-sol2-tdep.c: New file.
7460
7461 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7462 * config/i386/tm-i386nw.h: Removed.
7463
7464 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7465 USE_STRUCT_CONVENTION): Remove defines.
7466 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7467 (get_longjmp_target): Remove prototype.
7468 (IN_SIGTRAMP): Remove define.
7469 (i386bsd_in_sigtramp): Remove prototype.
7470 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7471 function. Update comment accordingly
7472 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7473 (FRAME_SAVED_PC): Remove define.
7474 (i386bsd_frame_saved_pc): Remove prototype.
7475 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7476 GET_LONGJMP_TARGET): Remove defines.
7477 (get_longjmp_target): Remove prototype.
7478 (IN_SIGTRAMP): Remove define.
7479 (i386bsd_in_sigtramp): Remove prototype.
7480 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7481 function. Update comment accordingly
7482 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7483 (FRAME_SAVED_PC): Remove define.
7484 (i386bsd_frame_saved_pc): Remove prototype.
7485 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7486 Remove prototype.
7487 (USE_STRUCT_CONVENTION): Remove prototype.
7488 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7489 declaration.
7490 (_initialize_i386bsd_nat): Revise logic to determine some
7491 constants at compile time when compiling a native GDB. Warn if
7492 things don't match up with what we expect.
7493 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7494 Remove variables.
7495 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7496 to use date stored in `struct gdbarch_tdep'.
7497 (i386bsd_sigcontext_offset): Remove varaible.
7498 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7499 stored in `struct gdbarch_tdep'.
7500 (i386bsd_frame_saved_pc): Make static.
7501 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7502 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7503 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7504 i386fbsd4_sc_pc_offset): New variables.
7505 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7506 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7507 functions.
7508 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7509 functions.
7510 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7511 Modify the value of i386fbsd_sigtramp_start and
7512 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7513 i386fbsd_sigtramp_end.
7514 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7515 function.
7516
7517 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7518 define to i386-linux-tdep.h.
7519 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7520 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7521 defines.
7522 (i386_linux_register_name, i386_linux_register_byte,
7523 i386_linux_register_raw_size): Remove prototypes.
7524 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7525 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7526 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7527 TARGET_WRITE_PC): Remove defines.
7528 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7529 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7530 i386_linux_write_pc): Remove prototypes.
7531 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7532 (get_longjmp_target): Remove prototype.
7533 * i386-linux-tdep.h: New file.
7534 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7535 * i386-linux-tdep.c: Include "i386-tdep.h" and
7536 "i386-linux-tdep.h".
7537 (i386_linux_register_name, i386_linux_register_byte,
7538 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7539 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7540 Make static.
7541 (i386_linux_init_abi): New function.
7542 (_initialize_i386_linux_tdep): New function.
7543
7544 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7545 (i386_saved_pc_after_call): Remove prototype.
7546 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7547 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7548 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7549 (i386_register_name, i386_stab_reg_to_regnum,
7550 i386_dwarf_reg_to_regnum): Remove prototypes.
7551 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7552 SIZEOF_SSE_REGS): Remove defines.
7553 (REGISTER_BYTES): Remove define.
7554 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7555 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7556 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7557 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7558 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7559 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7560 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7561 (get_longjmp_target): Remove prototype.
7562 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7563 (sigtramp_saved_pc): Remove define.
7564 (i386v4_sigtramp_saved_pc): Remove prototype.
7565 * config/i386/tm-go32.h (FRAME_CHAIN,
7566 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7567 (i386go32_frame_saved_pc): Remove prototype.
7568 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7569 (get_longjmp_target): Remove prototype.
7570 * i386-tdep.h: Include "osabi.h".
7571 (enum i386_abi): Removed.
7572 (enum struct_return): New enum.
7573 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7574 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7575 sc_pc_offset members.
7576 (i386_gdbarch_register_os_abi): Remove prototype.
7577 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7578 I386_SSE_NUM_REGS): New defines.
7579 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7580 I386_SSE_SIZEOF_REGS): New defines.
7581 (i386_register_name, i386_register_byte, i386_register_raw_size):
7582 New prototypes.
7583 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7584 (i386bsd_sigtramp_saved_pc): New prototype.
7585 * i386-tdep.c: Don't include "elf-bfd.h".
7586 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7587 i386_frame_chain, i386_saved_pc_after_call): Make static.
7588 (i386_frame_saved_pc): Rewrite to call architecture dependent
7589 function to deal with signal handlers. Make static.
7590 (i386go32_frame_saved_pc): Removed.
7591 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7592 Removed.
7593 (i386_get_longjmp_target): New function.
7594 (default_struct_convention, pcc_struct_convention,
7595 reg_struct_convention, valid_conventions, struct_convention): New
7596 variables.
7597 (i386_use_struct_convention): New function.
7598 (i386v4_sigtramp_saved_pc): Renamed to
7599 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7600 (i386_pc_in_sigtramp): New function.
7601 (i386_abi_names): Removed.
7602 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7603 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7604 Removed.
7605 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7606 i386_gdbarch_register_os_abi): Removed.
7607 (struct i386_abi_handler): Removed.
7608 (i386_abi_handler_list): Removed.
7609 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7610 functions.
7611 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7612 i386_nw_init_abi): New functions.
7613 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7614 Use set_gdbarch_xxx() calls instead of relying on macros for a
7615 number of calls.
7616 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7617 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7618 Register the various architecture variants defined in this file.
7619
7620 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7621
7622 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7623 (struct main_type): Remove arg_types member. Update comments for
7624 struct field.
7625 (TYPE_ARG_TYPES): Remove.
7626 (TYPE_FN_FIELD_ARGS): Update.
7627 (smash_to_method_type): Update prototype.
7628
7629 * c-typeprint.c (cp_type_print_method_args): Take method type
7630 instead of argument list. Use new argument layout. Simplify.
7631 (c_type_print_args): Use new argument layout. Simplify.
7632 (c_type_print_base): Update call to cp_type_print_method_args.
7633 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7634 argument; use die->type instead. Update call to
7635 smash_to_method_type.
7636 (read_structure_scope): Update call to dwarf2_add_member_fn.
7637 * gdbtypes.c (allocate_stub_method): Update comment.
7638 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7639 Use new argument layout.
7640 (check_stub_method): Use new argument layout. Don't count
7641 void as an argument.
7642 (print_arg_types): Update comments. Use new argument layout.
7643 (recursive_dump_type): Don't print arg_types member.
7644 * hpread.c (hpread_read_struct_type): Use new argument layout.
7645 (fixup_class_method_type): Likewise.
7646 (hpread_type_lookup): Likewise.
7647 * stabsread.c (read_type): Update calls to read_args and
7648 smash_to_method_type.
7649 (read_args): Use new argument layout. Simplify.
7650 * valops.c (typecmp): Use new argument layout. Update parameters
7651 and comments. Simplify.
7652 (hand_function_call): Use new argument layout.
7653 (search_struct_method): Update call to typecmp.
7654 (find_overload_match): Use new argument layout.
7655
7656 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7657
7658 * NEWS: Mention multithreaded debug support for gdbserver.
7659
7660 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7661
7662 * MAINTAINERS: Mention NEWS.
7663
7664 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7665
7666 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7667 (struct mips_objfile_private, compare_pdr_entries): New.
7668 (non_heuristic_proc_desc): Read the ".pdr" section if it
7669 is present.
7670
7671 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7672
7673 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7674 (arm_debug): New static variable.
7675 (_initialize_arm_tdep): Add ``set debug arm'' command.
7676
7677 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7678
7679 * Makefile.in (sim_arm_h): Define.
7680 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7681 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7682 (arm_register_sim_regno): New function, map an internal REGNUM
7683 onto a simulator register number.
7684 (arm_gdbarch_init): Set register_sim_regno.
7685
7686 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7687
7688 * MAINTAINERS: Add self.
7689
7690 2002-06-11 Jim Blandy <jimb@redhat.com>
7691
7692 * source.c (source_info): Mention whether the symtab has
7693 information about preprocessor macros.
7694
7695 Call the command `info macro', not `show macro'.
7696 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7697 Fix error message.
7698 (_initialize_macrocmd): Register `info_macro_command' in
7699 `infolist', not `showlist'.
7700
7701 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7702
7703 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7704 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7705 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7706 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7707 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7708 unconditionally.
7709 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7710 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7711 (_initialize_mips_tdep): Remove dead code.
7712 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7713 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7714 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7715 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7716 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7717 MIPS_LAST_FP_ARG_REGNUM): Remove.
7718
7719 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7720
7721 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7722 (unwind_tmp_obstack_free, parse_frame_info)
7723 (update_context, cfi_read_fp, cfi_write_fp)
7724 (cfi_frame_chain, cfi_init_extra_frame_info)
7725 (cfi_virtual_frame_pointer): Use the above function.
7726 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7727
7728 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7729
7730 * v850-tdep.c (v850_type_is_scalar): New function.
7731 (v850_use_struct_convention): Match current gcc implementation
7732 as close as possible.
7733 (v850_push_arguments): Fix stack_offset handling. Don't write
7734 struct_addr into register. This is done by v850_store_struct_return.
7735 (v850_extract_return_value): Care for structs.
7736 (v850_store_return_value): Ditto.
7737 (v850_store_struct_return): Actually write address.
7738
7739 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7740
7741 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7742 without debug information too.
7743
7744 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7745
7746 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7747 Make multi-arch pure.
7748 * gdbarch.h, gdbarch.c: Re-generate.
7749 * arm-tdep.c (arm_print_float_info): Update.
7750 * arch-utils.h (default_print_float_info): Update.
7751 * arch-utils.c (default_print_float_info): Update.
7752 * infcmd.c (float_info): Update call.
7753
7754 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7755
7756 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7757 the front of the initialize list.
7758
7759 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7760
7761 * infrun.c (struct inferior_status): Replace fields
7762 selected_frame_address and selected_level with field
7763 selected_frame_id.
7764 (save_inferior_status): Update. Use get_frame_id.
7765 (struct restore_selected_frame_args): Delete.
7766 (restore_selected_frame): Update. Use frame_find_by_id.
7767 (restore_inferior_status): Update.
7768
7769 * breakpoint.h (struct breakpoint): Change type of
7770 watchpoint_frame to frame_id.
7771 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7772 call to get_current_frame.
7773 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7774 get_current_frame.
7775 (watchpoint_check): Use frame_find_by_id.
7776
7777 * frame.h (record_selected_frame): Delete declaration.
7778 * stack.c (record_selected_frame): Delete function.
7779
7780 * frame.h (struct frame_id): Define.
7781 (get_frame_id): Declare.
7782 (frame_find_by_id): Declare.
7783 * frame.c (frame_find_by_id): New function.
7784 (get_frame_id): New function.
7785
7786 2002-06-10 Andrey Volkov <avolkov@transas.com>
7787
7788 * ser-e7kpc.c: Fix duplicated define and call of
7789 _initialize_ser_e7000pc
7790
7791 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7792
7793 * signals/signals.c (target_signal_from_host): Fix #ifdef
7794 SIGRTMIN case.
7795 (do_target_signal_to_host): Likewise.
7796
7797 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7798
7799 * mips-tdep.c (mips_find_abi_section): New function.
7800 (mips_gdbarch_init): Call it.
7801
7802 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7803
7804 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7805 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7806 after Andrew's 2002-06-08 gdbarch change.
7807
7808 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7809
7810 * i386-linux-nat.c (suppy_gregset): Don't supply
7811 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7812 register cache.
7813 (fill_gregset): Don't fetch it under the same circumstances.
7814
7815 2002-06-09 Andrew Cagney <cagney@redhat.com>
7816
7817 * Makefile.in (callback_h): Define.
7818 (remote_sim_h): Update path to remote-sim.h.
7819 (remote-rdp.o): Add $(callback_h).
7820 (remote-sim.o): Use $(callback_h).
7821 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7822 * remote-rdp.c: Include "gdb/callback.h".
7823
7824 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7825
7826 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7827 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7828
7829 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7830
7831 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7832 * rdi-share/serpardr.c: Ditto.
7833 * rdi-share/unixcomm.c: Ditto.
7834 * rdi-share/serdrv.c: Ditto.
7835 * rdi-share/hostchan.h: Ditto.
7836 * rdi-share/hostchan.c: Ditto.
7837 * rdi-share/host.h: Ditto.
7838 * rdi-share/devsw.c: Ditto.
7839
7840 * objfiles.h: Change type of obj_private to void pointer.
7841 * pa64solib.c: Update copyright. Don't include "assert.h", use
7842 strcmp instead of STREQ, use LONGEST, do not use PTR
7843 * somsolib.c: Ditto.
7844
7845 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7846 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7847 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7848
7849 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7850
7851 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7852 (default_get_saved_register): Delete function.
7853 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7854 generic_unwind_get_saved_register.
7855 * gdbarch.h, gdbarch.c: Re-generate.
7856
7857 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7858
7859 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7860 generic_func_frame_chain_valid.
7861 * gdbarch.h, gdbarch.c: Re-generate.
7862 * blockframe.c (generic_func_frame_chain_valid): Only check
7863 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7864 passing FP to PC_IN_CALL_DUMMY.
7865 Fix PR gdb/360.
7866
7867 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7868
7869 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7870 (register_gdbarch_data): Initialize init_p.
7871 (gdbarch_data): Initialize data pointer using the init function.
7872 (init_gdbarch_data): Delete function.
7873 (gdbarch_update_p): Update.
7874 (initialize_non_multiarch): Update.
7875 (struct gdbarch): Add field initialized_p.
7876 * gdbarch.h, gdbarch.c: Re-generate.
7877
7878 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7879
7880 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7881 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7882 better do the things actually here.
7883 * x86-64-tdep.c (x86_64_register_name2nr): New.
7884 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7885 (x86_64_gdbarch_init): Respect the above change.
7886 * x86-64-tdep.h (x86_64_register_name2nr)
7887 (x86_64_register_nr2name): Add prototypes.
7888 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7889
7890 2002-06-06 Michael Snyder <msnyder@redhat.com>
7891
7892 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7893 Delete extra braces and re-indent.
7894 (d10v_store_return_value): Char return values
7895 must be shifted over by one byte in R0.
7896 (d10v_extract_return_value): Delete extra braces, re-indent.
7897
7898 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7899
7900 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7901 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7902 (d10v_integer_to_address): Rewrite.
7903 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7904 the d10v specific functions which take care of converting to the
7905 correct space.
7906
7907 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7908
7909 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7910 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7911
7912 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7913
7914 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7915 includes.
7916 * config/tm-linux.h: Ditto.
7917 * config/alpha/tm-alphalinux.h: Ditto.
7918 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7919 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7920 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7921 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7922 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7923 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7924 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7925 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7926 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7927 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7928 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7929 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7930 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7931 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7932 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7933 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7934 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7935 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7936 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7937 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7938 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7939 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7940 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7941 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7942 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7943 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7944 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7945 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7946 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7947 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7948 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7949 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7950 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7951 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7952 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7953 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7954 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7955
7956 2002-05-04 Aidan Skinner <aidan@velvet.net>
7957
7958 * ada-exp.tab.c: New file
7959 * ada-exp.y: New file
7960 * ada-lang.c: New file
7961 * ada-lang.h: New file
7962 * ada-lex.c: New file
7963 * ada-lex.l: New file
7964 * ada-tasks.c: New file
7965 * ada-typeprint.c: New file
7966 * ada-valprint.c: New file
7967
7968 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7969
7970 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7971 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7972
7973 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7974
7975 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7976 insetead of ppc-linux-tdep.o.
7977 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7978 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7979
7980 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7981
7982 2002-05-07 Christian Groessler <chris@groessler.org>
7983 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7984 bit register contents for little endian hosts.
7985
7986 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7987
7988 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7989 any maintainer.
7990
7991 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7992
7993 * gdbarch.h: Regenerate.
7994
7995 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7996
7997 * MAINTAINERS: Add everyone to write-after-approval list.
7998
7999 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8000
8001 * stack.c (frame_info): Use frame_register_unwind instead of
8002 saved_regs. Mention when the SP is on the stack or in a register.
8003
8004 * frame.h (frame_register_unwind_ftype): Define. Document.
8005 (struct frame_info): Add field register_unwind and
8006 register_unwind_cache.
8007 (frame_register_unwind): Declare.
8008 (generic_unwind_get_saved_register): Declare.
8009
8010 * frame.c (frame_register_unwind): New function.
8011 (generic_unwind_get_saved_register): New function.
8012
8013 * blockframe.c (generic_call_dummy_register_unwind): New function.
8014 (frame_saved_regs_register_unwind): New function.
8015 (set_unwind_by_pc): New function.
8016 (create_new_frame): New function.
8017 (get_prev_frame): New function.
8018
8019 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8020
8021 * a29k-share/: Delete directory.
8022 * remote-vx29k.c: Delete file.
8023
8024 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8025
8026 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8027 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8028
8029 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8030
8031 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8032 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8033 (sparc64nbsd-nat.o)
8034 (sparcnbsd-nat.o)
8035 (sparcnbsd-tdep.o): New dependency lists.
8036 * NEWS: Note new UltraSPARC NetBSD native configuration.
8037 * configure.host (sparc64-*-netbsd*): New host.
8038 * configure.tgt (sparc-*-netbsdelf*)
8039 (sparc-*-netbsd*): Set gdb_target to nbsd.
8040 (sparc64-*-netbsd*): New target.
8041 * sparc64nbsd-nat.c: New file.
8042 * sparcnbsd-nat.c: New file.
8043 * sparcnbsd-tdep.c: New file.
8044 * sparcnbsd-tdep.h: New file.
8045 * config/sparc/nbsd.mt: New file.
8046 * config/sparc/nbsd64.mh: New file.
8047 * config/sparc/nbsd64.mt: New file.
8048 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8049 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8050 (HOST_IPC): Remove.
8051 * config/sparc/nbsdaout.mt: Remove.
8052 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8053 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8054 (HOST_IPC): Remove.
8055 * config/sparc/nbsdelf.mt: Remove.
8056 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8057 sparc-nat.c compatiblity defines.
8058 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8059 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8060 * config/sparc/tm-nbsd64.h: New file.
8061 * config/sparc/tm-nbsdaout.h: Remove.
8062 * config/sparc/xm-nbsd.h: Remove.
8063
8064 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8065
8066 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8067 * sparc-tdep.c: Include osabi.h.
8068 (gdbarch_tdep): Add osabi member.
8069 (_initialize_sparc_tdep): Use gdbarch_register.
8070 (sparc_gdbarch_init): Use generic OS ABI framework.
8071 (sparc_dump_tdep): New function.
8072
8073 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8074
8075 * corefile.c (do_captured_read_memory_integer): Return non-zero
8076 result.
8077 (safe_read_memory_integer): Copy result of memory read when
8078 status is non-zero. Also, add comments.
8079
8080 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8081
8082 * Makefile.in (ppc_tdep_h): Define.
8083 (ppc-linux-nat.o)
8084 (ppc-linux-tdep.o)
8085 (rs6000-tdep.o): Use $(ppc_tdep_h).
8086 (ppc-sysv-tdep.o)
8087 (ppcnbsd-nat.o)
8088 (ppcnbsd-tdep.o): New dependency lists.
8089 * ppc-tdep.h: Use generic OS ABI framework.
8090 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8091 (ppc_linux_init_abi): New functions.
8092 (ppc_sysv_abi_broken_use_struct_convention)
8093 (ppc_sysv_abi_use_struct_convention)
8094 (ppc_sysv_abi_push_arguments): Move to...
8095 * ppc-sysv-tdep.c: ...here.
8096 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8097 * rs6000-tdep.c (process_note_abi_tag_sections)
8098 (get_elfosabi): Remove.
8099 (rs6000_gdbarch_init): Use generic OS ABI framework.
8100 (rs6000_dump_tdep): New function.
8101 (_initialize_rs6000_tdep): Use gdbarch_register.
8102 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8103 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8104 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8105 of ppc-linux-tdep.o.
8106 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8107 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8108 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8109 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8110 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8111 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8112
8113 2002-05-29 Jim Blandy <jimb@redhat.com>
8114
8115 * macroscope.c (default_macro_scope): Put `void' in empty argument
8116 list.
8117
8118 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8119
8120 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8121 * arch-utils.c: Include "sim-regno.h".
8122 * gdbarch.sh: Don't include "sim-regno.h".
8123 * gdbarch.h, gdbarch.c: Regenerate.
8124 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8125 here.
8126 * arch-utils.h (legacy_register_sim_regno): To here.
8127 * remote-sim.c (legacy_register_sim_regno): Move function from
8128 here.
8129 * arch-utils.c (legacy_register_sim_regno): To here.
8130
8131 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8132
8133 * sim-regno.h: New file.
8134 * Makefile.in (sim_regno_h): Define.
8135 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8136 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8137 (legacy_register_sim_regno): New function.
8138 (one2one_register_sim_regno): New function.
8139 (gdbsim_fetch_register): Rewrite.
8140 (gdbsim_store_register): Only store a register when
8141 REGISTER_SIM_REGNO is valid.
8142 * d10v-tdep.c: Include "sim-regno.h".
8143 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8144 (d10v_ts3_register_sim_regno): Ditto.
8145 * gdbarch.sh: Include "sim-regno.h".
8146 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8147 * gdbarch.h, gdbarch.c: Regenerate.
8148 * arch-utils.h (default_register_sim_regno): Delete declaration.
8149 * arch-utils.c (default_register_sim_regno): Delete function.
8150
8151 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8152
8153 * ppcnbsd-nat.c: Rewrite.
8154 * ppcnbsd-tdep.c: New file.
8155 * ppcnbsd-tdep.h: New file.
8156 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8157 solib.o, and solib-svr4.o.
8158 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8159 nbsd-tdep.o, and corelow.o.
8160
8161 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8162
8163 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8164 `tr' and `sed'. Mention that `broken' targets are not expected to
8165 build.
8166
8167 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8168
8169 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8170 Let PC point right after the prologue before looking up symbols.
8171
8172 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8173
8174 * i386-tdep.c (i386_register_virtual_type): Return
8175 builtin_type_vec128i for SSE registers.
8176
8177 * gdbtypes.h (builtin_type_vec128i): Declare.
8178
8179 * gdbtypes.c (build_builtin_type_vec128i): New function.
8180 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8181 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8182 (build_gdbtypes): Initialize new builtin vector types.
8183 (_initialize_gdbtypes): Register new vector types with gdbarch.
8184
8185 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8186
8187 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8188 since it has been multi-arch'd.
8189 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8190 Move Alpha and VAX multi-arch news entries to same section
8191 as other multi-arch news.
8192
8193 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8194
8195 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8196 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8197 static. Rename some register numbers to put them in ns32k-tdep
8198 private namespace.
8199 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8200 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8201 functions.
8202 (_initialize_ns32k_tdep): Use gdbarch_register.
8203 * ns32k-tdep.h: New file.
8204 * ns32knbsd-tdep.c: New file.
8205 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8206 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8207 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8208 REGISTER_BYTES, REGISTER_BYTE): Remove.
8209 * config/ns32k/tm-ns32k.h: New file.
8210 * config/ns32k/tm-umax.h: Remove.
8211
8212 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8213
8214 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8215 ns32k_store_struct_return, ns32k_extract_return_value,
8216 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8217 functions.
8218 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8219 ns32k_saved_pc_after_call.
8220 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8221 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8222 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8223 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8224 ns32k_extract_struct_value_address.
8225
8226 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8227
8228 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8229 ns32k_fix_call_dummy): New.
8230 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8231 ns32k_call_dummy_words.
8232 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8233 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8234 CALL_DUMMY_NARGS): Remove.
8235 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8236
8237 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8238
8239 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8240 ns32k_frame_saved_pc, ns32k_frame_args_address,
8241 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8242 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8243 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8244 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8245 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8246 (BREAKPOINT): Remove..
8247 (FRAME_CHAIN): Define as ns32k_frame_chain.
8248 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8249 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8250 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8251 (FRAME_FIND_SAVED_REGS): Remove.
8252 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8253 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8254 (POP_FRAME): Define as ns32k_pop_frame.
8255
8256 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8257
8258 * ns32k-tdep.c (ns32k_register_byte_32082,
8259 ns32k_register_byte_32382, ns32k_register_raw_size,
8260 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8261 functions.
8262 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8263 ns32k_register_byte_32382.
8264 * config/ns32k/tm-umax.h: Update copyright years.
8265 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8266 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8267 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8268 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8269 (ns32k_get_enter_addr): Fix prototype.
8270
8271 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8272
8273 * ns32k-tdep.c: Update copyright years.
8274 (ns32k_register_name_32082): New function.
8275 (ns32k_register_name_32382): Ditto.
8276 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8277 (REGISTER_NAME): Define as ns32k_register_name_32382.
8278 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8279 (REGISTER_NAME): Define as ns32k_register_name_32082.
8280
8281 2002-05-24 Jim Blandy <jimb@redhat.com>
8282
8283 * dwarf2read.c (free_line_header): Use xfree, not free.
8284
8285 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8286
8287 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8288 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8289
8290 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8291
8292 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8293
8294 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8295
8296 From Ross Alexander at NEC Europe:
8297 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8298
8299 2002-05-23 Michael Snyder <msnyder@redhat.com>
8300
8301 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8302 for input, rather than parse_and_eval_address.
8303
8304 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8305
8306 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8307 * Makefile.in (sim_d10v_h): Update definition.
8308
8309 2002-05-24 Andrew Cagney <cagney@redhat.com>
8310
8311 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8312 change `2002-05-22 Michael Snyder' below.
8313 (d10v_push_arguments): Ditto.
8314 (d10v_extract_return_value): Ditto.
8315
8316 2002-05-23 Jim Blandy <jimb@redhat.com>
8317
8318 * macrotab.c (check_for_redefinition): Don't complain if the new
8319 definition is the same as the previous one. Take more arguments
8320 to allow the comparison.
8321 (macro_define_object, macro_define_function): Pass more arguments
8322 to check_for_redefinition.
8323
8324 2002-05-22 Michael Snyder <msnyder@redhat.com>
8325
8326 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8327 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8328 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8329 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8330 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8331 Add a temp variable to save a call (and a memory read).
8332 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8333 if possible (so that PC_IN_CALL_DUMMY will work).
8334
8335 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8336
8337 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8338
8339 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8340
8341 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8342 fde->cie_ptr.
8343 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8344 (dwarf2_build_frame_info): Add offset to fde->initial_location
8345 so that frames of shared libraries are mapped correctly.
8346 (execute_stack_op): Change type of 'result' from ULONGEST to
8347 CORE_ADDR.
8348
8349 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8350
8351 * config/alpha/tm-nbsd.h: Include solib.h.
8352
8353 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8354
8355 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8356 assumptions about the host's byte order.
8357
8358 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8359
8360 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8361 to dependency list.
8362 * alphanbsd-tdep.c: Include solib-svr4.h.
8363 * shnbsd-tdep.c: Ditto.
8364
8365 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8366
8367 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8368 nbsd-tdep.h to dependency list.
8369 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8370 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8371 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8372 nbsdaout.mh and nbsdelf.mh consistently.
8373 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8374 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8375 nbsdaout.mt and nbsdelf.mh consistently.
8376 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8377 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8378 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8379 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8380 a.out shared library stuff from here...
8381 * config/nm-nbsdaout.h: ...to here.
8382 * config/tm-nbsd.h: Remove.
8383 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8384 * config/arm/nbsd.mh: Remove.
8385 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8386 nbsd-tdep.o.
8387 * config/arm/nbsdaout.mh: New file.
8388 * config/arm/nbsdelf.mh: New file.
8389 * config/arm/nm-nbsdaout.h: New file.
8390 * config/i386/nbsd.mh: Remove.
8391 * config/i386/nbsd.mt: Remove.
8392 * config/i386/nbsdaout.mh: New file.
8393 * config/i386/nbsdaout.mt: New file.
8394 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8395 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8396 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8397 i386_register_u_addr): Remove.
8398 * config/i386/nm-nbsdaout.h: New file.
8399 * config/i386/nm-nbsdelf.h: Remove.
8400 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8401 (USE_STRUCT_CONVENTION): Remove.
8402 * config/i386/tm-nbsdaout.h: New file.
8403 * config/i386/tm-nbsdelf.h: Remove.
8404 * config/m68k/nbsd.mh: Remove.
8405 * config/m68k/nbsd.mt: Remove.
8406 * config/m68k/nbsdaout.mh: New file.
8407 * config/m68k/nbsdaout.mt: New file.
8408 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8409 * config/m68k/nm-nbsdaout.h: New file.
8410 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8411 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8412 * config/ns32k/nbsd.mh: Remove.
8413 * config/ns32k/nbsd.mt: Remove.
8414 * config/ns32k/nbsdaout.mh: New file.
8415 * config/ns32k/nbsdaout.mt: New file.
8416 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8417 * config/ns32k/nm-nbsdaout.h: New file.
8418 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8419 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8420 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8421 (SVR4_SHARED_LIBS): Remove.
8422 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8423 * config/sparc/nbsd.mh: Remove.
8424 * config/sparc/nbsd.mt: Remove.
8425 * config/sparc/nbsdaout.mh: New file.
8426 * config/sparc/nbsdaout.mt: New file.
8427 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8428 * config/sparc/nbsdelf.mt: New file.
8429 * config/sparc/nm-nbsdaout.h: New file.
8430 * config/sparc/nm-nbsdelf.h: Remove.
8431 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8432 * config/sparc/tm-nbsdaout.h: New file.
8433
8434 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8435
8436 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8437 mipsnbsd-tdep.c
8438 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8439
8440 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8441
8442 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8443 shnbsd-nat.c.
8444 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8445
8446 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8447
8448 * NEWS: Note new MIPS NetBSD native configuration.
8449 * configure.host (mips*-*-netbsd*): New host.
8450 * configure.tgt (mips*-*-netbsd*): New target.
8451 * mipsnbsd-nat.c: New file.
8452 * mipsnbsd-tdep.c: New file.
8453 * mipsnbsd-tdep.h: New file.
8454 * config/mips/nbsd.mh: New file.
8455 * config/mips/nbsd.mt: New file.
8456 * config/mips/nm-nbsd.h: New file.
8457 * config/mips/tm-nbsd.h: New file.
8458
8459 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8460
8461 * Makefile.in (SFILES): Add osabi.c.
8462 (COMMON_OBS): Add osabi.o.
8463 (osabi.o): New dependency list.
8464 * osabi.c: New file.
8465 * osabi.h: New file.
8466 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8467
8468 * Makefile.in (alpha_tdep_h): Define and use instead of
8469 alpha-tdep.h.
8470 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8471 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8472 Remove.
8473 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8474 * alpha-tdep.h: Include osabi.h.
8475 (alpha_abi): Remove.
8476 (gdbarch_tdep): Use generic OS ABI framework.
8477 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8478 gdbarch_register_osabi.
8479 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8480 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8481 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8482
8483 * Makefile.in (sh_tdep_h): Add osabi.h.
8484 * sh-tdep.h (sh_osabi): Remove.
8485 (gdbarch_tdep): Use generic OS ABI framework.
8486 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8487 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8488 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8489 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8490
8491 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8492 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8493 gdbarch_register_osabi.
8494 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8495 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8496 (get_elfosabi): Rename to...
8497 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8498 ABI framework support routines.
8499 (arm_gdbarch_init): Use generic OS ABI framework.
8500 (arm_dump_tdep): Likewise.
8501 (_initialize_arm_tdep): Likewise.
8502 * arm-tdep.h: Include osabi.h.
8503 (arm_abi): Remove.
8504 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8505 osabi member.
8506 (arm_gdbarch_register_os_abi): Remove prototype.
8507 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8508 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8509
8510 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8511 * mips-tdep.c: Include osabi.h.
8512 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8513 OS ABI framework.
8514
8515 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8516
8517 * h8300-tdep.c: Fix formatting.
8518
8519 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8520
8521 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8522 printing vector registers.
8523
8524 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8525
8526 From Fernando Nasser:
8527 * remote.c (remote_async_open_1): Re-throw the exception when the
8528 connection fails.
8529 (remote_cisco_open): Ditto.
8530 (remote_open_1): Ditto.
8531
8532 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8533
8534 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8535 (remote_start_remote): Add uiout parameter. Pass through to
8536 remote_start_remote_dummy.
8537 (remote_open_1): Use catch_exception instead of catch_errors.
8538 (remote_async_open_1): Ditto.
8539 (remote_cisco_open): Ditto.
8540
8541 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8542
8543 * remote.c (remote_start_remote): Replace PTR with void pointer.
8544 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8545 static.
8546
8547 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8548
8549 * gdb_indent.sh: Allow the script to be run in the sim directory.
8550
8551 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8552
8553 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8554 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8555
8556 * corelow.c (core_open): Only call set_gdbarch_from_file if
8557 exec_bfd is NULL.
8558
8559 2002-05-17 Andrey Volkov <avolkov@transas.com>
8560
8561 * h8300-tdep.c: Add support of EXR register
8562 * config/h8300/tm-h8300.h: Ditto.
8563
8564 2002-05-17 Andrey Volkov <avolkov@transas.com>
8565
8566 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8567
8568 2002-05-17 Andrey Volkov <avolkov@transas.com>
8569
8570 * h8300-tdep.c: Change literal regnums to REGNO.
8571
8572 2002-05-17 Jim Blandy <jimb@redhat.com>
8573
8574 * NEWS: Note addition of macro support.
8575
8576 Expand preprocessor macros in C expressions.
8577 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8578 (scan_macro_expansion, scanning_macro_expansion,
8579 finished_macro_expansion): New function declarations.
8580 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8581 variable declarations.
8582 * parser-defs.h (expression_context_pc): New declaration.
8583 * parse.c (expression_context_pc): New variable.
8584 (parse_exp_1): Set expression_context_pc, as well as
8585 expression_context_block.
8586 * c-exp.y (yylex): If we're not already reading the result of a
8587 macro expansion, try to macro-expand the next token. When we're
8588 done scanning a macro expansion, switch back to the mainline text.
8589 Commas and `if's in a macro's expansion don't terminate the input.
8590 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8591 (macro_original_text, macro_expanded_text,
8592 expression_macro_lookup_func, expression_macro_lookup_baton): New
8593 variables.
8594 (scan_macro_expansion, scanning_macro_expansion,
8595 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8596 c_preprocess_and_parse): New functions.
8597 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8598 c_preprocess_and_parse, instead of c_parse.
8599 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8600 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8601
8602 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8603
8604 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8605 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8606 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8607
8608 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8609
8610 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8611
8612 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8613
8614 * Makefile.in (sh_tdep_h): Define and use.
8615 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8616 register enum): Move to...
8617 * * sh-tdep.h: ...here.
8618 * sh-tdep.c: Include sh-tdep.h.
8619 * sh3-rom.c: Likewise.
8620 * shnbsd-tdep.c: Likewise.
8621
8622 2002-05-16 Michael Snyder <msnyder@redhat.com>
8623
8624 * arm-tdep.c: Spelling fix in comment.
8625
8626 2002-05-16 Jim Blandy <jimb@redhat.com>
8627
8628 Add commands for manually expanding macros and showing their
8629 definitions.
8630 * macrocmd.c, macroscope.c, macroscope.h: New files.
8631 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8632 (macroscope_h): New variable.
8633 (HFILES_NO_SRCDIR): Add macroscope.h.
8634 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8635 (macroscope.o, macrocmd.o): New rules.
8636
8637 Teach the Dwarf 2 reader to read macro information.
8638 * dwarf2read.c: #include "macrotab.h".
8639 (dwarf_macinfo_buffer): New variable.
8640 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8641 dwarf_macinfo_size.
8642 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8643 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8644 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8645 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8646 dwarf2_macro_spaces_in_definition): New complaints.
8647 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8648 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8649 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8650 the partial symbol table.
8651 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8652 from what's recorded in the partial symbol table.
8653 (read_file_scope): If the compilation unit has a
8654 `DW_AT_macro_info' attribute, read its macro information.
8655 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8656
8657 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8658
8659 Fix PR gdb/546
8660 * ser-tcp.c: Don't include <netinet/udp.h>.
8661
8662 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8663
8664 * MAINTAINERS: Update my email address.
8665
8666 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8667
8668 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8669 include file of the same name.
8670
8671 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8672
8673 * configure.tgt: Mark v850 as multi-arched.
8674 * config/v850/tm-v850.h: Remove file.
8675 * config/v850/v850.mt: Eliminate TM_FILE.
8676
8677 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8678
8679 * v850-tdep.c: Full multi-arch.
8680 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8681 Define GDB_MULTI_ARCH to 2.
8682
8683 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8684
8685 * p-exp.y (current_type): New static variable.
8686 Carries the type of the expression at the position that is parsed.
8687 (push_current_type, pop_current_type): Two new functions. Used
8688 to store/restore current_type in expression on specific tokens.
8689 (search_field): New static variable. Set to one after parsing a point
8690 as at that point only a FIELDNAME token should be searched.
8691 (FIELDNAME): New token. After a point only a token belonging to
8692 current_type type definition is allowed.
8693 (all over token rules): reset and change current_type according
8694 to rules.
8695 (exp '[' rule): insert implicit array index field if
8696 exp is a pascal string type.
8697
8698 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8699
8700 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8701 frame info. Use frame_info's saved_regs instead of matching member
8702 in extra_frame_info throughout.
8703 (v850_frame_init_saved_regs): New function.
8704 (v850_init_extra_frame_info): Move most functionality into
8705 v850_frame_init_saved_regs().
8706 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8707 (v850_frame_find_saved_regs): Remove declaration.
8708 (FRAME_FIND_SAVED_REGS): Remove definition.
8709 (v850_frame_init_saved_regs): Add declaration.
8710 (FRAME_INIT_SAVED_REGS): Add definition.
8711
8712 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8713
8714 * v850-tdep.c: Begin multi-arch'ing v850.
8715 (v850_target_architecture_hook): Remove function.
8716 (v850_gdbarch_init): New function. Add code previously in
8717 v850_target_architecture_hook().
8718 (_initialize_v850_tdep): Don't set target_architecture_hook.
8719 Call register_gdbarch_init() instead.
8720
8721 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8722
8723 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8724 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8725 (fixup_class_method_type): Likewise.
8726
8727 2002-05-15 Jim Blandy <jimb@redhat.com>
8728
8729 Add macro structures to GDB's symbol tables. Nobody puts anything
8730 in them yet.
8731 * symtab.h (struct symtab): New member: `macro_table'.
8732 * buildsym.h (pending_macros): New global variable.
8733 * buildsym.c: #include "macrotab.h".
8734 (buildsym_init): Initialize `pending_macros'.
8735 (end_symtab): If we found macro information while reading a CU's
8736 debugging info, do build a symtab structure for it. Make the
8737 symtab point to the macro information, and clear the
8738 `pending_macros' pointer which held it while we were reading the
8739 debug info.
8740 (really_free_pendings): Free any pending macro table.
8741 * objfiles.h (struct objfile): New member: `macro_cache'.
8742 * objfiles.c (allocate_objfile): Set allocate and free functions
8743 for the macro cache's objstack.
8744 (free_objfile): Empty the macro cache's obstack.
8745 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8746 set new allocate and free functions for it.
8747 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8748 free functions for the macro cache's objstack. (Why is this
8749 function building its own objfile?)
8750 * symmisc.c (print_objfile_statistics): Print statistics on the
8751 macro bcache.
8752 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8753
8754 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8755
8756 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8757 (REGISTER_U_ADDR): Delete definition.
8758 (arm_register_u_addr): Delete declaration.
8759
8760 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8761
8762 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8763 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8764
8765 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8766
8767 * regcache.c (register_valid): Revise comments refering to "Not
8768 available" and "unavailable".
8769 * frame.c (frame_register_read): Ditto.
8770 * findvar.c (value_of_register): Ditto.
8771
8772 2002-05-15 Andrew Cagney <cagney@redhat.com>
8773
8774 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8775 (remote-sim.o): Update dependencies.
8776 (d10v-tdep.o): Specify dependencies.
8777 (sim_d10v_h): Define.
8778
8779 2002-05-14 Jim Blandy <jimb@redhat.com>
8780
8781 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8782 * macrotab.c (macro_lookup_inclusion, find_definition,
8783 new_macro_table): Same.
8784
8785 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8786 not `! strcmp ()'. This is a dubious improvement.
8787 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8788
8789 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8790 although it's not necessary, to avoid a warning.
8791
8792 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8793
8794 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8795 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8796 TYPE_INSTANCE_FLAGS.
8797 (struct main_type): New.
8798 (struct type): Move most members to struct main_type. Change
8799 cv_type and as_type to new type_chain member. Add instance_flags.
8800 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8801 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8802 (finish_cv_type): Remove prototype.
8803 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8804 Set TYPE_CHAIN.
8805 (alloc_type_instance): New function.
8806 (smash_type): New function.
8807 (make_pointer_type, make_reference_type, make_function_type)
8808 (smash_to_member_type, smash_to_method_type): Call smash_type.
8809 (make_qualified_type): New function.
8810 (make_type_with_address_space): Call make_qualified_type.
8811 (make_cv_type): Likewise.
8812 (finish_cv_type): Remove unnecessary function.
8813 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8814 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8815 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8816 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8817 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8818 * hpread.c (hpread_read_struct_type): Likewise.
8819 * stabsread.c (read_struct_type): Likewise.
8820
8821 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8822
8823 * configure.tgt: Add a catch all sh* target, for cases like
8824 sh[2,3,4]-elf and sh-hms.
8825
8826 2002-05-14 Keith Seitz <keiths@redhat.com>
8827
8828 * event-loop.c (create_file_handler): Don't do anything but
8829 update data when we are given a fd which we are already
8830 monitoring.
8831
8832 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8833
8834 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8835 (update_context): Use __func__ in warnings.
8836
8837 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8838
8839 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8840 and tcp_close to net_open and net_close.
8841 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8842 using UDP if requested. Don't try to disable Nagle on UDP
8843 sockets.
8844 * remote.c (remote_serial_open): New function. Warn about UDP.
8845 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8846
8847 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8848
8849 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8850
8851 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8852
8853 * configure.tgt: Remove sh-hms target.
8854 * MAINTAINERS: Don't list sh-hms as a separate target.
8855
8856 2002-05-13 Jim Blandy <jimb@redhat.com>
8857
8858 Add first preprocessor macro-expansion files.
8859 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8860 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8861 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8862 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8863 (COMMON_OBS): Add macrotab.o, macroexp.o.
8864 (macroexp.o, macrotab.o): New rules.
8865
8866 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8867
8868 * config/m88k/tm-m88k.h: Update copyright.
8869 (m88k_target_write_pc): Declare
8870 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8871 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8872 (SHIFT_INST_REGS): Update definition.
8873 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8874 using old definition of TARGET_WRITE_PC.
8875 * regcache.c (generic_target_write_pc): Delete code handling
8876 NNPC_REGNUM.
8877 * gdbarch.sh (NNPC_REGNUM): Delete.
8878 * gdbarch.h, gdbarch.c: Regenerate.
8879
8880 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8881
8882 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8883 builtin reg number.
8884
8885 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8886
8887 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8888 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8889 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8890 access macros.
8891 * c-typeprint.c (cp_type_print_method_args): Likewise.
8892 (c_type_print_args): Likewise.
8893 * d10v-tdep.c (d10v_push_arguments): Likewise.
8894 (d10v_extract_return_value): Likewise.
8895 * expprint.c (print_subexp): Likewise.
8896 * gdbtypes.c (lookup_primitive_typename): Likewise.
8897 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8898 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8899 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8900 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8901 (TYPE_VECTOR): Likewise.
8902 * hpread.c (hpread_read_struct_type)
8903 (fix_static_member_physnames, fixup_class_method_type)
8904 (hpread_type_lookup): Likewise.
8905 * mdebugread.c (parse_symbol, parse_type): Likewise.
8906 * p-lang.c (is_pascal_string_type): Likewise.
8907 * valops.c (hand_function_call): Likewise.
8908 * x86-64-tdep.c (classify_argument): Likewise.
8909
8910 * hpread.c (hpread_read_function_type)
8911 (hpread_read_doc_function_type): Call replace_type.
8912 * dstread.c (create_new_type): Delete.
8913 (decode_dst_structure, process_dst_function): Call alloc_type.
8914 Use type access macros.
8915
8916 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8917
8918 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8919 the're not supported by the current architecture.
8920 (i387_fill_fxsave): Likewise.
8921
8922 2002-05-12 Fred Fish <fnf@redhat.com>
8923
8924 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8925 sect_index_xxx members to index the first slot in section_offsets
8926 if all of the section_offsets are zero.
8927
8928 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8929
8930 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8931 checked in with last change.
8932
8933 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8934
8935 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8936 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8937 config.sub.
8938
8939 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8940
8941 * Makefile.in: Update dependencies.
8942
8943 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8944
8945 * language.c (local_hex_string_custom): Simplify. Do not depend
8946 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8947
8948 * memattr.c (mem_info_command): Replace calls to
8949 longest_local_hex_string and longest_local_hex_string_custom.
8950 * buildsym.c (make_blockvector): Ditto.
8951 * solib.c (info_sharedlibrary_command): Ditto.
8952 * tracepoint.c (tracepoints_info): Ditto.
8953 * symtab.c (print_msymbol_info): Ditto.
8954
8955 * language.c (local_hex_string): Delete.
8956 (local_hex_string_custom): Delete.
8957 (longest_local_hex_string): Rename to local_hex_string.
8958 (longest_local_hex_string_custom): Rename to
8959 local_hex_string_custom.
8960 * language.h (local_hex_string): Change parameter type to LONGEST.
8961 (local_hex_string_custom): Ditto.
8962 (longest_local_hex_string): Delete declaration.
8963 (longest_local_hex_string_custom): Ditto.
8964
8965 * solib.c: Update copyright.
8966 * memattr.c: Update copyright.
8967
8968 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8969
8970 * arch-utils.h (legacy_register_to_value): Declare.
8971 (legacy_value_to_register): Declare.
8972 (legacy_convert_register_p): Declare.
8973 * arch-utils.c (legacy_register_to_value): New function.
8974 (legacy_value_to_register): New function.
8975 (legacy_convert_register_p): New function.
8976
8977 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8978 (VALUE_TO_REGISTER): Define.
8979 (CONVERT_REGISTER_P): Define.
8980 * gdbarch.h, gdbarch.c: Regenerate.
8981
8982 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8983 VALUE_TO_REGISTER.
8984 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8985 CONVERT_REGISTER_P.
8986
8987 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8988 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8989
8990 * Makefile.in: Update dependencies for valops.c.
8991 * valops.c: Include "gdb_assert.h".
8992 (typecmp): Skip THIS parameter to methods.
8993 (find_method_list): Remove static_memfuncp argument,
8994 update callers. Check for stub methods.
8995 (find_value_oload_method_list): Don't set *static_memfuncp.
8996 (find_overload_match): Don't check for stub methods. Assert
8997 that methods are not stubbed. Handle static methods.
8998 (value_find_oload_method_list): Remove static_memfuncp argument.
8999 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9000 to the argument list for static stub methods.
9001 * value.h (value_find_oload_method_list): Update prototype.
9002
9003 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9004
9005 * arch-utils.h (generic_register_size): Declare.
9006 (generic_register_raw_size, generic_register_virtual_size): Delete
9007 declarations.
9008 * arch-utils.c (generic_register_raw_size): Delete.
9009 (generic_register_size): New function.
9010 (generic_register_virtual_size): Delete.
9011
9012 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9013 default generic_register_size.
9014 * gdbarch.h, gdbarch.c: Re-generate.
9015
9016 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9017 register_virtual_size.
9018 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9019 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9020
9021 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9022
9023 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9024 * gdbarch.h, gdbarch.c: Regenerate.
9025 * gnu-v3-abi.c: Update copyright.
9026 (vtable_address_point_offset): Update.
9027 (gnuv3_rtti_type): Update.
9028 (gnuv3_baseclass_offset): Update.
9029 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9030 (init_fetch_link_map_offsets): Update.
9031 * remote.c (get_remote_state): Update.
9032
9033 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9034
9035 * TODO: Remove value_headof/value_from_vtable_info comment.
9036 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9037 * values.c (value_headof, value_from_vtable_info): Delete.
9038 * value.h (value_from_vtable_info): Delete prototype.
9039
9040 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9041
9042 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9043 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9044 $(gdb_regex_h).
9045 (gdb_assert_h): Define.
9046 (gdb_wait_h): Define.
9047 (gdb_regex_h): Define.
9048
9049 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9050
9051 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9052 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9053
9054 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9055
9056 * nbsd-tdep.c: Fix comment.
9057
9058 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9059
9060 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9061 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9062 (nbsd-tdep.o): New dependency list.
9063 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9064 nbsd-tdep.h.
9065 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9066 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9067 * nbsd-tdep.c: New file.
9068 * nbsd-tdep.h: New file.
9069 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9070 nbsd-tdep.h.
9071 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9072 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9073 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9074 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9075
9076 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9077
9078 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9079 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9080 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9081 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9082 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9083 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9084
9085 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9086
9087 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9088 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9089 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9090 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9091 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9092 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9093 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9094
9095 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9096
9097 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9098 fetch_elfcore_registers to...
9099 * i386nbsd-tdep.c: ...here.
9100 (i386nbsd_use_struct_convention): Rename to...
9101 (i386nbsd_aout_use_struct_convention): ...this.
9102 (i386nbsd_supply_reg): New function.
9103 (i386nbsd_fill_reg): New function.
9104 (fetch_core_registers): Use i386nbsd_supply_reg.
9105 (fetch_elfcore_registers): Likewise.
9106 (_initialize_i386nbsd_tdep): New function.
9107 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9108 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9109 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9110 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9111 (i386nbsd_aout_use_struct_convention): ...this.
9112
9113 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9114
9115 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9116 (store_inferior_registers): Use shnbsd_fill_reg.
9117 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9118 sh_nbsd_supply_register): Collapse into...
9119 (shnbsd_supply_reg): ...this.
9120 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9121 (shnbsd_fill_reg): ...this.
9122 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9123 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9124 (fetch_core_registers): Use shnbsd_supply_reg.
9125 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9126 (sh_nbsd_core_fns): Rename to...
9127 (shnbsd_core_fns): ...this.
9128 (sh_nbsd_elfcore_fns): Rename to...
9129 (shnbsd_elfcore_fns): ...this.
9130 (sh_nbsd_init_abi): Rename to...
9131 (shnbsd_init_abi): ...this.
9132 (_initialize_sh_nbsd_tdep): Rename to...
9133 (_initialize_shnbsd_tdep): ...this.
9134 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9135 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9136 sh_nbsd_fill_register): Remove prototypes.
9137 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9138
9139 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9140
9141 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9142 (i387-nat.o): Delete dependency list.
9143 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9144 (x86-64-linux-nat.o): Likewise.
9145 * i387-nat.c: Delete file, moving contents to...
9146 * i387-tdep.c: ...here.
9147 * i387-nat.h: Rename...
9148 * i387-tdep.h: ...to this.
9149 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9150 * i386-linux-nat.c: Likewise.
9151 * i386bsd-nat.c: Likewise.
9152 * i386gnu-nat.c: Likewise.
9153 * i386nbsd-nat.c: Likewise.
9154 * i386v4-nat.c: Likewise.
9155 * x86-64-linux-nat.c: Likewise.
9156 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9157 * config/i386/go32.mh (NATDEPFILES): Likewise.
9158 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9159 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9160 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9161 * config/i386/linux.mh (NATDEPFILES): Likewise.
9162 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9163 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9164 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9165 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9166
9167 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9168
9169 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9170 (alphanbsd-nat.o): Remove dependency list.
9171 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9172 * alphanbsd-nat.c: Delete. Contents moved to...
9173 * alphanbsd-tdep.c: ...here.
9174 (_initialize_alphanbsd_tdep): Register core functions.
9175 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9176
9177 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9178
9179 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9180 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9181 (alphanbsd-nat.o): Likewise.
9182 (alphabsd-tdep.o): New dependency list.
9183 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9184 (fill_gregset): Use alphabsd_fill_reg.
9185 (supply_fpregset): Use alphabsd_supply_fpreg.
9186 (fill_fpregset): Use alphabsd_fill_fpreg.
9187 (fetch_inferior_registers): Use struct reg and struct fpreg
9188 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9189 and alphabsd_supply_fpreg.
9190 (store_inferior_registers): Use struct reg and struct fpreg
9191 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9192 and alphabsd_fill_fpreg.
9193 * alphabsd-tdep.c: New file.
9194 * alphabsd-tdep.h: New file.
9195 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9196 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9197 alphabsd_supply_fpreg.
9198 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9199 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9200
9201 2002-05-11 Eric Christopher <echristo@redhat.com>
9202
9203 * mips-tdep.c (mips_double_register_type): Fix thinko.
9204 (mips_single_register_type): Ditto.
9205 * MAINTAINERS: Add self.
9206
9207 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9208
9209 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9210 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9211 right thing on architectures with different endianness and/or
9212 integer sizes.
9213
9214 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9215
9216 From Christian Limpach <chris@Pin.LU>
9217 * configure.in: Change sed expression which comments out
9218 NATDEPFILES to also comment out continuation lines.
9219 * configure: Regenerate.
9220
9221 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9222
9223 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9224 big patch.
9225
9226 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9227
9228 * sh-tdep.c: Include correct file.
9229
9230 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9231
9232 New support for sh64-elf (sh5) target.
9233
9234 * configure.tgt: For sh64-elf target, default to sh-elf.
9235
9236 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9237 (struct gdbarch_tdep): Add new fields for new registers and ABI
9238 info.
9239
9240 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9241 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9242 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9243 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9244 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9245 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9246 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9247 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9248 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9249 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9250 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9251 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9252 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9253 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9254 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9255 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9256 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9257 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9258 sign_extend, sh64_nofp_frame_init_saved_regs,
9259 sh64_init_extra_frame_info, sh64_get_saved_register,
9260 sh64_extract_struct_value_address, sh64_pop_frame,
9261 sh64_push_arguments, sh64_extract_return_value,
9262 sh64_store_return_value, sh64_show_media_regs,
9263 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9264 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9265 sh_sh64_register_virtual_type,
9266 sh_sh64_register_convert_to_virtual,
9267 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9268 sh64_register_read, sh64_pseudo_register_write,
9269 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9270 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9271 sh64_do_pseudo_register, sh_compact_do_registers_info,
9272 sh64_do_registers_info, sh_gdbarch_init): New functions.
9273
9274 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9275
9276 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9277
9278 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9279
9280 * linespec.c (decode_line_1): Check for a double quote after
9281 a filename correctly.
9282
9283 2002-05-10 Jim Blandy <jimb@redhat.com>
9284
9285 Properly track the size of the current objfile's .debug_line section.
9286 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9287 (DWARF_LINE_SIZE): New macro.
9288 (dwarf2_build_psymtabs_hard): Record the line section's size in
9289 the partial symbol table.
9290 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9291 symbol table.
9292
9293 2002-05-10 Petr Sorfa <petrs@caldera.com>
9294
9295 * ia64-tdep.c: Handle breakpoints on L instruction type
9296 in MLX instruction bundle by moving the breakpoint to
9297 the third slot (X instruction type) as L holds only data.
9298
9299 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9300
9301 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9302 (process_one_symbol): Complain about discarding local symbols
9303 due to a misplaced N_LBRAC entry.
9304
9305 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9306
9307 From Daniel Berlin <dan@cgsoftware.com>
9308 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9309 decrease the depth we are at, in the case of templates.
9310
9311 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9312
9313 * mips-tdep.c (mips_float_register_type): New function.
9314 (mips_double_register_type): New function.
9315 (mips_print_register): Use them.
9316 (do_fp_register_row): Likewise.
9317
9318 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9319
9320 * signals/signals.c (signals): Remove conditional compilation around
9321 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9322 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9323
9324 2002-05-09 Michael Snyder <msnyder@redhat.com>
9325
9326 * remote-rdp.c (remote_rdp_can_run): Remove.
9327
9328 2002-05-09 Tom Tromey <tromey@redhat.com>
9329
9330 * jv-valprint.c (java_val_print): Handle `char' as a special case
9331 of TYPE_CODE_INT.
9332
9333 2002-05-09 Michael Snyder <msnyder@redhat.com>
9334
9335 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9336 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9337 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9338 str r(0123),[sp,#nn].
9339 (arm_skip_prologue): Ditto. Also make disassembly
9340 order-independent by placing it in a loop.
9341
9342 2002-05-06 Michael Snyder <msnyder@redhat.com>
9343
9344 * stabsread.c (read_type): Add recognition for new attribute:
9345 "@V;" means that an array type is actually a vector.
9346 This is analogous to the vector flag that's been added to dwarf2.
9347
9348 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9349
9350 * i386-tdep.h (i386_abi): New enum.
9351 (struct gdbarch_tdep): Replace os_ident member with abi.
9352 (i386_gdbarch_register_os_abi): New prototype.
9353 * i386-tdep.c (i386_abi_names): New array.
9354 (process_note_abi_tag_sections): Removed.
9355 (process_note_sections): New function.
9356 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9357 (struct i386_abi_handler): New struct.
9358 (i386_abi_handler_list): New variable.
9359 (i386_gdbarch_register_os_abi): New function.
9360 (i386_gdbarch_init): Adapt for the changes given above.
9361
9362 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9363
9364 * gregset.h: Say "GNU/Linux".
9365
9366 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9367
9368 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9369 (build_gdbtypes): Build builtin_type_v2_float.
9370 (_initialize_gdbtypes): Register new builtin type.
9371
9372 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9373
9374 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9375 (clear_gdbarch_swap): New function.
9376 (initialize_non_multiarch): Call.
9377 (gdbarch_update_p): Before calling init(), swap out and clear the
9378 existing architecture.
9379 * gdbarch.c: Regenerate.
9380
9381 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9382
9383 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9384 alphanbsd-tdep.c.
9385
9386 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9387
9388 * sh-nbsd-nat.c: Rename to...
9389 * shnbsd-nat.c: ...this.
9390 * sh-nbsd-tdep.c: Rename to...
9391 * shnbsd-tdep.c: ...this.
9392 * sh-nbsd-tdep.h: Rename to...
9393 * shnbsd-tdep.h: ...this.
9394 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9395 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9396
9397 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9398
9399 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9400 concatenation for command help messages.
9401
9402 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9403
9404 * NEWS: Note new sh*-*-netbsdelf* configuration.
9405 * configure.host: Set gdb_host_cpu to sh for all sh*.
9406 (sh*-*-netbsdelf*): New host.
9407 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9408 (sh*-*-netbsdelf*): New target.
9409 * sh-nbsd-nat.c: New file.
9410 * sh-nbsd-tdep.c: New file.
9411 * sh-nbsd-tdep.h: New file.
9412 * config/sh/nbsd.mh: New file.
9413 * config/sh/nbsd.mt: New file.
9414 * config/sh/nm-nbsd.h: New file.
9415 * config/sh/tm-nbsd.h: New file.
9416
9417 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9418
9419 * sh-tdep.c (sh_osabi_names): Declare.
9420 (process_note_abi_tag_sections): New function.
9421 (get_elfosabi): Ditto.
9422 (sh_gdbarch_register_os_abi): Ditto.
9423 (sh_dump_tdep): Ditto.
9424 _initialize_sh_tdep): Use gdbarch_register to register
9425 sh_gdbarch_init and sh_dump_tdep.
9426 * config/sh/tm-sh.h (sh_osabi): Declare.
9427 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9428
9429 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9430
9431 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9432 (thumb_scan_prologue): Ditto.
9433 (arm_find_callers_reg): Ditto.
9434 (arm_frame_chain): Ditto.
9435 (arm_init_extra_frame_info): Ditto.
9436 (arm_frame_saved_pc): Ditto.
9437 (arm_pop_frame): Ditto.
9438 (arm_push_return_address): New function.
9439 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9440 call_dummy_location, call_dummy_breakpoint_offset_p,
9441 call_dummy_breakpoint_offset, call_dummy_p,
9442 call_dummy_stack_adjust_p, call_dummy_words,
9443 sizeof_call_dummy_words, call_dummy_start_offset,
9444 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9445 call_dummy_address, push_return_address and push_dummy_frame for
9446 generic dummy frames.
9447
9448 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9449
9450 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9451 size computation for alloca.
9452 (sh_fp_frame_init_saved_regs): Likewise.
9453
9454 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9455
9456 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9457 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9458 * arm-tdep.c (arm_store_return_value): Use them.
9459 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9460 * remote-rdp.c (remote_rdp_fetch_register): Use
9461 ARM_MAX_REGISTER_RAW_SIZE.
9462 (remote_rdp_store_register): Likewise.
9463
9464 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9465
9466 * dwarf2cfi.c: Code cleanup, removed unused variables,
9467 added default labels to switch {} statements.
9468 * x86-64-tdep.c: Ditto.
9469 * x86-64-linux-nat.c: Ditto.
9470
9471 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9472
9473 * solib.h: Protect against multiple inclusion.
9474
9475 2002-05-06 Jim Blandy <jimb@redhat.com>
9476
9477 Add first preprocessor macro-expansion files.
9478 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9479 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9480 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9481 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9482 (COMMON_OBS): Add macrotab.o, macroexp.o.
9483 (macroexp.o, macrotab.o): New rules.
9484
9485 Separate the job of reading the line number info statement program
9486 header (...expialidocious) out into its own function.
9487 * dwarf2read.c (struct line_head, struct filenames, struct
9488 directories): Replace with...
9489 (struct line_header): New structure, containing the full
9490 contents of the statement program header, including the
9491 include directory and file name tables.
9492 (read_file_scope): If we have line number info, instead of just
9493 calling dwarf_decode_lines to do all the work, call
9494 dwarf_decode_line_header first to get a `struct line_header'
9495 containing the data in the statement program header, and then
9496 pass that to dwarf_decode_lines, which will pick up where that
9497 left off. Be sure to clean up the `struct line_header' object.
9498 (dwarf_decode_line_header, free_line_header, add_include_dir,
9499 add_file_name): New functions.
9500 (dwarf_decode_lines): Move all the code to read the statement
9501 program header into dwarf_decode_line_header. Take the line
9502 header it built as the first argument, instead of the offset to
9503 the compilation unit's line number info. Use the new `struct
9504 line_header' type instead of the old structures. No need to do
9505 cleanups here now, since we don't allocate anything.
9506 (dwarf2_statement_list_fits_in_line_number_section,
9507 dwarf2_line_header_too_long): New complaints.
9508
9509 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9510
9511 * gdbtypes.c (init_vector_type): New function.
9512 (build_builtin_type_vec128): Simplify the representation of SIMD
9513 registers.
9514 (build_gdbtypes): Initialize new builtin vector types.
9515 (_initialize_gdbtypes): Register new vector types with gdbarch.
9516 (builtin_type_v4_float, builtin_type_v4_int32,
9517 builtin_type_v8_int16, builtin_type_v16_int8,
9518 builtin_type_v2_int32, builtin_type_v4_int16,
9519 builtin_type_v8_int8): New (renamed) SIMD types.
9520
9521 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9522
9523 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9524 (i387_fill_fxsave): Likewise.
9525
9526 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9527
9528 * alpha-tdep.c (alpha_extract_return_value): Don't use
9529 non-constant array size in prototype.
9530
9531 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9532
9533 From Brian Taylor <briant at model dot com>:
9534 * ui-out.c (ui_out_field_core_addr): Use the function
9535 longest_local_hex_string_custom'to format addresses > 32 bits
9536 wide.
9537
9538 * ui-out.c (ui_out_field_core_addr): Update comment.
9539
9540 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9541
9542 * stack.c (select_and_print_frame): Make static. Delete the
9543 parameter `level'.
9544 (func_command): Update call.
9545 (select_frame_command): Delete code computing the frame level.
9546 * frame.h (select_and_print_frame): Delete declaration.
9547
9548 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9549
9550 * sparc-tdep.c (sparc_get_saved_register): Comment why
9551 get_prev_frame call is safe.
9552
9553 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9554
9555 * frame.h (select_frame): Delete level parameter.
9556 * stack.c (select_frame): Update. Use frame_relative_level to
9557 obtain the frame's level.
9558 (select_and_print_frame): Update call.
9559 (select_frame_command): Ditto.
9560 (up_silently_base): Ditto.
9561 (down_silently_base): Ditto.
9562 * ocd.c (ocd_start_remote): Ditto.
9563 * remote-rdp.c (remote_rdp_open): Ditto.
9564 * remote-mips.c (mips_initialize): Ditto.
9565 (common_open): Ditto.
9566 * remote-e7000.c (e7000_start_remote): Ditto.
9567 * m3-nat.c (select_thread): Ditto.
9568 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9569 (child_get_current_exception_event): Ditto.
9570 * varobj.c (varobj_create): Ditto.
9571 (varobj_update): Ditto.
9572 (c_value_of_root): Ditto.
9573 * tracepoint.c (finish_tfind_command): Ditto.
9574 * corelow.c (core_open): Ditto.
9575 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9576 * thread.c (info_threads_command): Ditto.
9577 (switch_to_thread): Ditto.
9578 * infrun.c (normal_stop): Ditto.
9579 (restore_selected_frame): Ditto.
9580 (restore_inferior_status): Ditto.
9581 * breakpoint.c (insert_breakpoints): Ditto.
9582 (watchpoint_check): Ditto.
9583 (bpstat_stop_status): Ditto.
9584 (do_enable_breakpoint): Ditto.
9585 * blockframe.c (flush_cached_frames): Ditto.
9586 (reinit_frame_cache): Ditto.
9587
9588 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9589
9590 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9591 maintainer.
9592
9593 2002-05-04 Jim Blandy <jimb@redhat.com>
9594
9595 * gdbtypes.c (replace_type): Doc fix.
9596
9597 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9598
9599 * valprint.c (strcat_longest): Delete commented out function.
9600 Update copyright.
9601
9602 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9603
9604 * MAINTAINERS: Mark a29k as deleted.
9605 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9606 Move new configurations to the top.
9607 * configure.tgt: Remove a29k.
9608 * config/a29k/tm-vx29k.h: Delete.
9609 * config/a29k/vx29k.mt: Delete.
9610 * config/a29k/tm-a29k.h: Delete.
9611 * config/a29k/a29k-udi.mt: Delete.
9612 * config/a29k/a29k.mt: Delete.
9613 * a29k-tdep.c: Delete.
9614 * remote-udi.c: Delete.
9615 * remote-mm.c: Delete.
9616 * remote-eb.c: Delete.
9617 * remote-adapt.c: Delete.
9618 * Makefile.in: Remove obsolete code.
9619 * config/s390/s390x.mt: Ditto.
9620 * config/s390/s390.mt: Ditto.
9621 * config/sparc/sparclynx.mh: Ditto.
9622 * config/sparc/linux.mh: Ditto.
9623 * config/pa/hppaosf.mh: Ditto.
9624 * config/pa/hppabsd.mh: Ditto.
9625 * config/ns32k/nbsd.mt: Ditto.
9626 * config/mips/vr5000.mt: Ditto.
9627 * config/m68k/sun3os4.mh: Ditto.
9628 * config/m68k/nbsd.mt: Ditto.
9629 * config/m68k/m68klynx.mh: Ditto.
9630 * config/m32r/m32r.mt: Ditto.
9631 * config/i386/x86-64linux.mt: Ditto.
9632 * config/i386/nbsdelf.mt: Ditto.
9633 * config/i386/nbsd.mt: Ditto.
9634 * config/i386/i386lynx.mh: Ditto.
9635
9636 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9637
9638 * target.c (debug_print_register): New function. Handle oversize
9639 registers.
9640 (debug_to_fetch_registers): Call.
9641 (debug_to_store_registers): Call.
9642
9643 2002-05-03 Jim Blandy <jimb@redhat.com>
9644
9645 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9646 (read_type): Doc fix.
9647 * gdbtypes.c (replace_type): Doc fix.
9648
9649 * stabsread.c (multiply_defined_struct): New complaint.
9650 (read_struct_type): If the type we were passed isn't empty, or
9651 incomplete, don't read the new struct type into it; complain,
9652 and return the original type unchanged. Take a new `type_code'
9653 argument, which is the type code for the new type.
9654 (read_type): Rather than storing the type's type code here, pass
9655 it as an argument to read_struct_type, and let that take care of
9656 storing it. That way, we don't overwrite the original type code,
9657 so read_struct_type can use it to decide whether we're overwriting
9658 something we shouldn't.
9659 (complain_about_struct_wipeout): New function.
9660
9661 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9662
9663 * gdbarch.sh: Assert that gdbarch is non-NULL.
9664 * gdbarch.c: Regenerate.
9665
9666 2002-05-03 Jason Merrill <jason@redhat.com>
9667
9668 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9669 and return NULL.
9670
9671 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9672
9673 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9674 (x86_64_dwarf2gdb_regno_map_length),
9675 (x86_64_dwarf2_reg_to_regnum): Added.
9676 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9677 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9678 (_initialize_x86_64_tdep): Synced with the change above.
9679 (x86_64_skip_prologue): Reformulated message.
9680
9681 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9682
9683 * f-exp.y: Also use new prev_lexptr variable
9684 to improve error reporting. Based on Michael Snyder
9685 2002-04-24 dated patch to c-exp.y.
9686 * jv-exp.y: Likewise.
9687 * m2-exp.y: Likewise.
9688
9689 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9690
9691 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9692 we are dealing with vectors.
9693
9694 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9695
9696 * config/m68k/tm-nbsd.h: Obvious fix,
9697 correct machine name.
9698
9699 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9700
9701 * p-typeprint.c (pascal_type_print_base): Add support
9702 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9703
9704 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9705
9706 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9707 for fondamental pascal 'char' type.
9708
9709 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9710
9711 * p-lang.h (is_pascal_string_type): Declaration changed,
9712 new sixth argument of type char ** added.
9713 * p-lang.c (is_pascal_string_type): Implementation
9714 changed. Args length_pos, length_size, string_pos, char_size
9715 can now be NULL. New argument arrayname set to the field
9716 name of the char array. Return value set to char array
9717 field index plus one.
9718 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9719 is_pascal_string_type function.
9720
9721 2002-05-02 Andrew Cagney <cagney@redhat.com>
9722
9723 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9724 <cagney@redhat.com> change.
9725 * gdbarch.c: Regenerate.
9726
9727 2002-05-02 Andrew Cagney <cagney@redhat.com>
9728
9729 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9730 before probing for a new one. Detect errorenous gdbarch_init
9731 functions.
9732 * gdbarch.c: Regenerate.
9733
9734 2002-05-01 Andrew Cagney <cagney@redhat.com>
9735
9736 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9737 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9738 * config/v850/tm-v850.h: Ditto. Update copyright.
9739
9740 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9741
9742 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9743 current_gdbarch.
9744
9745 2002-04-30 Michael Snyder <msnyder@redhat.com>
9746
9747 * arm-tdep.c: Whitespace clean-ups.
9748 (arm_skip_prologue): Fix thinko; two lines
9749 should have been removed as part of 4/24 change.
9750
9751 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9752
9753 * rs6000-tdep.c: Added comment describing how fpscr register
9754 numbers were chosen.
9755
9756 2002-04-30 Michael Snyder <msnyder@redhat.com>
9757
9758 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9759
9760 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9761
9762 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9763 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9764 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9765
9766 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9767
9768 From Louis Hamilton <hamilton@redhat.com>:
9769 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9770 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9771 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9772 not bfd-private xcoff data, to determine wordsize.
9773 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9774
9775 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9776
9777 GDB 5.2 released from 5.2 branch.
9778
9779 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9780
9781 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9782 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9783 (x86_64_register_info_table): Added comments with register numbers.
9784
9785 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9786
9787 * rs6000-tdep.c (rs6000_extract_return_value,
9788 rs6000_store_return_value): Handle returning vectors.
9789 (rs6000_gdbarch_init): Use
9790 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9791 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9792 New function.
9793 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9794 vectors.
9795 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9796 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9797
9798 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9799
9800 * hpread.c (hpread_psymtab_to_symtab_1,
9801 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9802 with fprintf_unfiltered (gdb_stderr,...).
9803
9804 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9805
9806 * remote-array.c (printf_monitor, write_monitor,
9807 array_insert_breakpoint, array_remove_breakpoint ):
9808 Replace fprintf (stderr,...
9809 with fprintf_unfiltered (gdb_stderr,....
9810 * remote-es.c: Likewise.
9811 * remote-os9k.c: Likewise.
9812 * remote-st.c: Likewise.
9813
9814 2002-04-28 Andreas Schwab <schwab@suse.de>
9815
9816 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9817 linux-proc.o and gcore.o.
9818
9819 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9820
9821 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9822 code without frame pointers.
9823
9824 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9825
9826 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9827 ON_STACK is needed.
9828
9829 2002-04-26 Ben Elliston <bje@redhat.com>
9830
9831 * target.c (do_xfer_memory): Correct reference to the new option
9832 "trust-readonly-sections".
9833
9834 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9835
9836 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9837 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9838 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9839 vectors.
9840 (read_array_type): Record the fact that this array type is really a
9841 vector (i.e. are passed in by value).
9842
9843 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9844
9845 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9846 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9847 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9848 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9849 * alpha-linux-tdep.c: Include frame.h.
9850 (alpha_linux_sigcontext_addr): New function.
9851 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9852 alpha_linux_sigcontext_addr.
9853 * alpha-osf1-tdep.c: Include gdbcore.h.
9854 (alpha_osf1_sigcontext_addr): New function.
9855 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9856 alpha_osf1_sigcontext_addr.
9857 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9858 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9859
9860 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9861
9862 * stack.c (selected_frame_level):
9863 (select_frame): Do not set selected_frame_level.
9864 * frame.h (selected_frame_level): Delete declaration.
9865
9866 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9867
9868 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9869 convert_from_func_ptr-addr when AIX / PowerOpen.
9870
9871 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9872
9873 * valops.c (hand_function_call): Call
9874 generic_save_call_dummy_addr.
9875 * frame.h (generic_save_call_dummy_addr): Declare.
9876 * blockframe.c (struct dummy_frame): Add fields call_lo and
9877 call_hi.
9878 (generic_find_dummy_frame): Check for PC in range call_lo to
9879 call_hi instead of entry_point_address.
9880 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9881 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9882 (generic_save_call_dummy_addr): New function.
9883
9884 2002-04-24 David S. Miller <davem@redhat.com>
9885
9886 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9887 sparc_skip_prologue.
9888 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9889 information to find prologue when possible.
9890 (sparc_prologue_frameless_p): Call examine_prologue directly.
9891 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9892 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9893 second argument.
9894 (SKIP_PROLOGUE): Likewise.
9895
9896 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9897
9898 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9899 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9900 indicate that the condition it was testing is always true.
9901 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9902 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9903 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9904
9905 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9906
9907 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9908 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9909 tdep->jb_pc and tdep->jb_elt_size.
9910 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9911 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9912 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9913 * alpha-nat.c (get_longjmp_target): Remove.
9914 (JB_ELEMENT_SIZE): Ditto.
9915 (JB_PC): Ditto.
9916 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9917 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9918 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9919 to alpha_get_longjmp_target.
9920 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9921 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9922 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9923
9924 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9925
9926 * README: Update to GDB 5.2.
9927
9928 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9929
9930 * gdbarch.sh (LC_ALL): Set to `c'.
9931
9932 2002-04-25 Theodore A. Roth <troth@verinet.com>
9933
9934 * avr-tdep.c: Ran through gdb_indent.sh.
9935
9936 2002-04-25 Theodore A. Roth <troth@verinet.com>
9937
9938 * MAINTAINERS: Add myself as AVR maintainer.
9939 * NEWS: Note new target avr.
9940
9941 2002-04-25 Theodore A. Roth <troth@verinet.com>
9942
9943 * Makefile.in: Add support for AVR target.
9944 * configure.tgt: Add support for AVR target.
9945 * avr-tdep.c: New file
9946 * config/avr/avr.mt: New file.
9947
9948 2002-04-25 Theodore A. Roth <troth@verinet.com>
9949
9950 * MAINTAINERS: Add myself to write-after-approval.
9951
9952 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9953
9954 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9955 with fprintf_unfiltered (gdb_stderr,....
9956
9957 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9958
9959 Fix PR gdb/508.
9960 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9961
9962 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9963
9964 * p-exp.y: Also use new prev_lexptr variable
9965 to improve error reporting. Based on Michael Snyder
9966 2002-04-24 dated patch to c-exp.y.
9967
9968 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9969
9970 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9971 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9972 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9973 to 0.
9974 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9975 and struct value.
9976 (FUNCTION_START_OFFSET): Remove.
9977 (BREAKPOINT): Ditto.
9978
9979 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9980
9981 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9982 * NEWS: Ditto.
9983
9984 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9985
9986 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9987 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9988 alpha_linux_pc_in_sigtramp.
9989 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9990 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9991 alpha_osf1_pc_in_sigtramp.
9992 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9993 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9994 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9995 alphafbsd_pc_in_sigtramp.
9996 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9997 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9998 alphanbsd_pc_in_sigtramp.
9999 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10000 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10001
10002 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10003
10004 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10005
10006 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10007
10008 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10009 alphanbsd-tdep.c.
10010 (alphanbsd-nat.o): New dependency list.
10011 (alphanbsd-tdep.o): Ditto.
10012 * NEWS: Note new native NetBSD/alpha configuration.
10013 * alphanbsd-nat.c: New file.
10014 * alphanbsd-tdep.c: Ditto.
10015 * configure.host (alpha*-*-netbsd*): New host.
10016 * configure.tgt (alpha*-*-netbsd*): New target.
10017 * config/alpha/nbsd.mh: New file.
10018 * config/alpha/nbsd.mt: Ditto.
10019 * config/alpha/nm-nbsd.h: Ditto.
10020 * config/alpha/tm-nbsd.h: Ditto.
10021
10022 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10023
10024 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10025 (alpha-osf1-tdep.o): New dependency list.
10026 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10027 and skip_sigtramp_frame members.
10028 * alpha-linux-tdep.c: Include gdbcore.h.
10029 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10030 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10031 * alpha-osf1-tdep.c: New file.
10032 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10033 alpha-osf1-dep.c.
10034 (alpha_frame_past_sigtramp_frame): New function.
10035 (alpha_dynamic_sigtramp_offset): Ditto.
10036 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10037 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10038 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10039 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10040 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10041 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10042 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10043 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10044 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10045 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10046 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10047 to find_solib_trampoline_target.
10048 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10049 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10050 (SKIP_TRAMPOLINE_CODE): Remove.
10051 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10052 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10053 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10054 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10055 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10056 (PROC_SIGTRAMP_MAGIC): Ditto.
10057 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10058 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10059 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10060 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10061 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10062
10063 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10064
10065 * NEWS: Note that Alpha targets are now multi-arch.
10066
10067 2002-04-24 Michael Snyder <msnyder@redhat.com>
10068
10069 * parser-defs.h (prev_lexptr): New external variable.
10070 * parse.c (parse_exp_1): Set prev_lexptr to null before
10071 calling the language-specific parser.
10072 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10073 (yyerror): Use prev_lexptr in error reporting.
10074
10075 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10076
10077 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10078 * gregset.h: If FILL_FPXREGSET is defined, provide
10079 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10080 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10081 is defined, call fill_fpxregset.
10082
10083 2002-04-24 Roland McGrath <roland@frob.com>
10084
10085 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10086 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10087 (supply_gregset, supply_fpregset): New functions.
10088
10089 * gnu-nat.c (gnu_find_memory_regions): New function.
10090 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10091 (gnu_xfer_memory): Add a cast.
10092
10093 2002-04-24 Michael Snyder <msnyder@redhat.com>
10094
10095 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10096 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10097 of argument regs ("str r(0123), [r11, #-nn"]).
10098 (arm_skip_prologue): Better handling for frameless functions.
10099 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10100 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10101
10102 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10103
10104 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10105 NUM_PSEUDO_REGS can be used.
10106
10107 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10108
10109 * arch-utils.h: Update copyright.
10110
10111 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10112 * gdbarch.h, gdbarch.c: Re-generate.
10113
10114 * inferior.h (IN_SIGTRAMP): Delete definition.
10115 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10116 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10117
10118 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10119 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10120 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10121 (find_proc_framesize): Ditto.
10122 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10123 (alpha_init_extra_frame_info): Ditto.
10124 * infrun.c (handle_inferior_event): Ditto.
10125 (handle_inferior_event): Ditto.
10126 (check_sigtramp2): Ditto.
10127 * blockframe.c (create_new_frame): Ditto.
10128 (get_prev_frame): Ditto.
10129 * ppc-linux-tdep.c: Update comments.
10130 * i386-linux-tdep.c: Update comments.
10131 * breakpoint.c (bpstat_what): Update comment.
10132
10133 2002-04-24 David S. Miller <davem@redhat.com>
10134
10135 * i960-tdep.c (register_in_window_p): New function.
10136 (i960_find_saved_register): Use it instead of
10137 REGISTER_IN_WINDOW_P.
10138 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10139
10140 * symtab.h (find_stab_function_addr): Kill extern.
10141 * minsyms.c (find_stab_function_addr): Remove from here...
10142 * dbxread.c: ... to here, and mark it static.
10143
10144 2002-04-20 David S. Miller <davem@redhat.com>
10145
10146 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10147 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10148
10149 2002-04-21 David S. Miller <davem@redhat.com>
10150
10151 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10152 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10153 (vx_write_register): Likewise.
10154
10155 2002-04-23 J. Brobecker <brobecker@gnat.com>
10156
10157 * source.c (is_regular_file): New function.
10158 (openp): Check wether file to open is a regular file
10159 to avoid opening directories.
10160
10161 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10162
10163 * findvar.c (extract_signed_integer): Cast printf argument
10164 to suppress format warning.
10165 (extract_unsigned_integer): Likewise.
10166 * infcmd.c (registers_info): Likewise.
10167 * top.c (get_prompt_1): Likewise.
10168 * valops.c (value_assign): Likewise.
10169 * valprint.c (print_decimal): Likewise.
10170
10171 2002-04-22 H.J. Lu (hjl@gnu.org)
10172
10173 * c-exp.y (typebase): Support
10174
10175 [long|long long|short] [signed|unsigned] [int|]
10176
10177 and
10178
10179 signed [long|long long|short] int
10180
10181 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10182
10183 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10184 and vax-tdep.h.
10185 * vax-tdep.h: New file.
10186 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10187 Make several routines static.
10188 (vax_get_saved_register): New function.
10189 (vax_gdbarch_init): New function.
10190 (_initialize_vax_tdep): Register vax_gdbarch_init.
10191 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10192 Remove macros now under the control of gdbarch.
10193
10194 2002-04-22 Michael Snyder <msnyder@redhat.com>
10195
10196 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10197 Some whitespace and coding standards tweaks.
10198
10199 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10200
10201 * vax-tdep.c: Include regcache.h.
10202 (vax_call_dummy_words): New.
10203 (sizeof_vax_call_dummy_words): New.
10204 (vax_fix_call_dummy): New function.
10205 (vax_saved_pc_after_call): Ditto.
10206 * config/vax/tm-vax.h: Don't include regcache.h.
10207 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10208 (CALL_DUMMY): Remove.
10209 (CALL_DUMMY_WORDS): Define.
10210 (SIZEOF_CALL_DUMMY_WORDS): Define.
10211 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10212
10213 2002-04-18 Michael Snyder <msnyder@redhat.com>
10214
10215 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10216
10217 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10218
10219 * vax-tdep.c (vax_frame_chain): New function.
10220 (vax_push_dummy_frame): Ditto.
10221 (vax_pop_frame): Ditto.
10222 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10223 (FRAMELESS_FUNCTION_INVOCATION): Use
10224 generic_frameless_function_invocation_not.
10225 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10226 (POP_FRAME): Use vax_pop_frame.
10227
10228 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10229
10230 * vax-tdep.c (vax_store_struct_return): New function.
10231 (vax_extract_return_value): Ditto.
10232 (vax_store_return_value): Ditto.
10233 (vax_extract_struct_value_address): Ditto.
10234 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10235 vax_store_struct_return.
10236 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10237 (STORE_RETURN_VALUE): Use vax_store_return_value.
10238 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10239
10240 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10241
10242 * vax-tdep.c (vax_frame_saved_pc): New function.
10243 (vax_frame_args_address_correct): Ditto.
10244 (vax_frame_args_address): Ditto.
10245 (vax_frame_locals_address): Ditto.
10246 (vax_frame_num_args): Move code to be in proximity to
10247 other frame-related functions.
10248 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10249 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10250 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10251 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10252 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10253
10254 2002-04-22 H.J. Lu (hjl@gnu.org)
10255
10256 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10257 includedir.
10258
10259 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10260
10261 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10262 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10263 (FRAME_INIT_SAVED_REGS): New macro.
10264
10265 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10266
10267 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10268
10269 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10270
10271 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10272 where needed.
10273 (fetch_osf_core_registers): Likewise.
10274 (supply_gregset): Likewise.
10275
10276 2002-04-22 J. Brobecker <brobecker@gnat.com>
10277
10278 * symfile.h (get_section_index): Define.
10279 * symfile.c (get_section_index): New function.
10280 * mdebugread.c (SC_IS_SBSS): New macro.
10281 (SC_IS_BSS): Return true for the scBss storage class only, as
10282 the scSBss storage class refers to the .sbss section.
10283 (parse_partial_symbols): Discard the symbols which associated
10284 section does not exist.
10285 Make sure to use the .sbss section index for symbols which
10286 storage class is scBss, rather than using the .bss section index.
10287
10288 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10289
10290 * vax-tdep.c: Update copyright years.
10291 (vax_register_name): New function.
10292 (vax_register_byte): Ditto.
10293 (vax_register_raw_size): Ditto.
10294 (vax_register_virtual_size): Ditto.
10295 (vax_register_virtual_type): Ditto.
10296 * config/vax/tm-vax.h: Update copyright years.
10297 (REGISTER_NAMES): Remove.
10298 (REGISTER_NAME): Define.
10299 (REGISTER_BYTE): Use vax_register_byte.
10300 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10301 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10302 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10303
10304 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10305
10306 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10307 declaration
10308 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10309
10310 2002-04-21 David S. Miller <davem@redhat.com>
10311
10312 * arch-utils.c (generic_prologue_frameless_p): Kill
10313 SKIP_PROLOGUE_FRAMELESS_P code.
10314 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10315 references.
10316 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10317 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10318 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10319 references.
10320 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10321 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10322 (sparc_gdbarch_init): Pass it to
10323 set_gdbarch_prologue_frameless_p.
10324
10325 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10326
10327 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10328 (alphabsd-nat.o): New dependency list.
10329
10330 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10331
10332 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10333 alphafbsd-tdep.c.
10334 (alpha-linux-tdep.o): New dependency list.
10335 (alphafbsd-tdep.o): Likewise.
10336
10337 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10338
10339 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10340 to here...
10341 * alpha-tdep.c: ...from here.
10342 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10343
10344 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10345
10346 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10347 prototype from here...
10348 * alpha-tdep.h: ...to here.
10349
10350 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10351
10352 * frame.h (selected_frame_level): Document as deprecated.
10353 (frame_relative_level): Declare.
10354 * stack.c (frame_relative_level): New function.
10355 (selected_frame_level): Document as deprecated.
10356 (select_frame): Do not set the selected_frame_level.
10357
10358 * stack.c (frame_info, record_selected_frame): Update.
10359 (frame_command, current_frame_command): Update.
10360 (up_silently_base, up_command, down_silently_base): Update.
10361 (down_command): Update.
10362 * inflow.c (kill_command): Update.
10363 * tracepoint.c (finish_tfind_command): Update.
10364 * corelow.c (core_open): Update.
10365 * thread.c (info_threads_command): Update.
10366 (do_captured_thread_select): Update.
10367 * infcmd.c (finish_command): Update.
10368 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10369
10370 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10371
10372 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10373
10374 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10375
10376 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10377 type const.
10378
10379 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10380
10381 * alphafbsd-tdep.c: Update copyright years. Include
10382 alpha-tdep.h.
10383 (alphafbsd_use_struct_convention): Make static.
10384 (alphafbsd_init_abi): New function.
10385 (_initialize_alphafbsd_tdep): New function.
10386 * config/alpha/tm-fbsd.h: Update copyright years.
10387 (USE_STRUCT_CONVENTION): Remove.
10388
10389 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10390
10391 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10392 an Alpha ABI variant.
10393 (alpha_abi_handler_list): Declare.
10394 (alpha_gdbarch_register_os_abi): New function.
10395 (alpha_gdbarch_init): Give registered ABI variant handlers a
10396 chance to tweak the gdbarch once we have set up defaults.
10397 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10398
10399 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10400
10401 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10402 to standard_coerce_float_to_double.
10403 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10404
10405 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10406
10407 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10408 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10409 from gdbarch_tdep rather than a constant.
10410 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10411 the default text address for all Alpha Unix ABIs.
10412 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10413 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10414
10415 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10416
10417 * alpha-tdep.h: New file. Includes several Alpha target constants
10418 taken from...
10419 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10420 let gdbarch deal with.
10421 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10422 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10423 to dependency list.
10424 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10425 Alpha target register names.
10426 * alphabsd-nat.c: Likewise.
10427 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10428 Alpha target register names. Make serveral routines static.
10429 (alpha_get_saved_register): New function.
10430 (alpha_abi_names): New.
10431 (process_note_abi_tag_sections): New function.
10432 (get_elfosabi): New function.
10433 (alpha_gdbarch_init): New function.
10434 (alpha_dump_tdep): New function.
10435 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10436
10437 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10438
10439 * frame.c (find_saved_register): Delete #ifdef
10440 HAVE_REGISTER_WINDOWS code.
10441 * config/sparc/tm-sparc.h: Update comments.
10442 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10443
10444 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10445
10446 * i960-tdep.c (i960_find_saved_register): New function.
10447 (i960_get_saved_register): New function.
10448 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10449 (i960_get_saved_register): Declare.
10450 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10451
10452 2002-04-20 David S. Miller <davem@redhat.com>
10453
10454 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10455
10456 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10457
10458 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10459 instead of NUM_PSEUDO_REGS.
10460
10461 2002-04-20 David S. Miller <davem@redhat.com>
10462
10463 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10464 GDB_MULTI_ARCH_PARTIAL
10465 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10466 define, let tm-sp64.h do it.
10467
10468 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10469
10470 * frame.c (find_saved_register): Avoid a NULL pointer
10471 dereference and actually walk the frame list.
10472
10473 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10474
10475 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10476 sorted in most most-recent-used order. Document.
10477 * gdbarch.h, gdbarch.c: Regenerate.
10478
10479 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10480
10481 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10482 instead of ->prev.
10483 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10484 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10485 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10486 instead of ->prev.
10487
10488 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10489
10490 Fix PR gdb/471.
10491 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10492 (build_builtin_type_vec128): Ditto.
10493 (append_composite_type_field): Fix calculation of type length in
10494 union case.
10495
10496 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10497
10498 * config/djgpp/README: Update.
10499
10500 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10501 compiler warnings.
10502
10503 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10504
10505 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10506 (alpha_setup_arbitrary_frame): ...to this.
10507 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10508 for alpha_setup_arbitrary_frame.
10509
10510 2002-04-18 Andrew Cagney <cagney@redhat.com>
10511
10512 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10513 * gdbarch.h, gdbarch.c: Regenerate.
10514
10515 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10516 * target.h (memory_breakpoint_from_pc): Update declaration.
10517 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10518
10519 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10520 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10521 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10522 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10523 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10524 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10525 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10526 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10527 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10528 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10529 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10530 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10531
10532 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10533 const pointer.
10534 * monitor.c (monitor_insert_breakpoint): Ditto.
10535 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10536
10537 * config/mcore/tm-mcore.h: Update copyright.
10538 * mem-break.c: Ditto.
10539 * xstormy16-tdep.c: Ditto.
10540
10541 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10542
10543 * p-exp.y: Add precedence rule for '^' token.
10544 This removes the shift/reduce conflicts.
10545 Remove the comment concerning these shift/reduce conflicts.
10546
10547 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10548
10549 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10550 (registers_powerpc_nofp): New register set for processors
10551 without floating point unit.
10552
10553 2002-04-18 David S. Miller <davem@redhat.com>
10554
10555 * MAINTAINERS: Add myself to write-after-approval.
10556
10557 2002-04-17 Michael Snyder <msnyder@redhat.com>
10558
10559 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10560
10561 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10562
10563 * rs6000-tdep.c (frame_initial_stack_address): Use
10564 frame_register_read to read the alloca_reg.
10565
10566 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10567
10568 * frame.c (find_saved_register): Find saved registers in the next
10569 not prev frame.
10570 Fix PR gdb/365.
10571
10572 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10573
10574 * gdbarch.sh (LANG): Set to ``c''.
10575
10576 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10577
10578 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10579
10580 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10581
10582 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10583 Update copyright.
10584
10585 * hpread.c (hpread_get_lntt): Add declaration.
10586 Also fix PR gdb/391.
10587
10588 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10589
10590 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10591 * aclocal.m4, configure: Re-generate.
10592 Fix PR gdb/391.
10593
10594 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10595
10596 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10597 instead of tm_print_insn.
10598
10599 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10600
10601 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10602
10603 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10604
10605 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10606 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10607 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10608
10609 2002-04-12 Don Howard <dhoward@redhat.com>
10610
10611 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10612 max_user_call_depth.
10613 (init_cmd_lists): Initialize the new value;
10614 * cli/cli-script.c (execute_user_command): Limit the call depth of
10615 user defined commands. This avoids a core-dump when user commands
10616 are infinitly recursive.
10617
10618 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10619
10620 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10621 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10622 from tdep struct instead of DEFAULT_LR_SAVE.
10623 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10624 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10625 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10626
10627 2002-04-12 Michael Snyder <msnyder@redhat.com>
10628
10629 * Remote.c: Spelling fix.
10630 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10631 If no symbol found for "sbrk", try "_sbrk".
10632 (make_output_phdrs): Use bfd_section_name.
10633 (gcore_copy_callback): Use bfd_section_name.
10634 * eval.c: Indentation fix-ups.
10635 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10636 in case it gets applied to an address that is already
10637 in the instruction space.
10638 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10639 * symfile.c: Fix indentation, long lines.
10640 * source.c: White space fix-up.
10641
10642 2002-04-12 Andrew Cagney <cagney@redhat.com>
10643
10644 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10645 * frame.c (frame_register_read): New function. Return non-zero on
10646 success.
10647 (read_relative_register_raw_bytes_for_frame): Delete.
10648 (read_relative_register_raw_bytes): Delete.
10649 * frame.h (frame_register_read): Declare.
10650 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10651 * sh-tdep.c: Ditto.
10652 * infcmd.c (do_registers_info): Ditto.
10653 * hppa-tdep.c: Ditto.
10654 * rs6000-tdep.c: Ditto.
10655 * h8500-tdep.c: Ditto.
10656 * mips-tdep.c: Ditto.
10657 * h8300-tdep.c: Ditto.
10658 * z8k-tdep.c: Ditto.
10659
10660 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10661
10662 From Jimi X <jimix@watson.ibm.com>:
10663 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10664 64-bit SysV ABI.
10665
10666 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10667
10668 From Jimi X <jimix@watson.ibm.com>:
10669 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10670 bfd info.
10671
10672 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10673
10674 From Jimi X <jimix@watson.ibm.com>:
10675 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10676 register sets for these processor variants.
10677
10678 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10679
10680 * regformats/reg-ppc.dat: Support FPSCR.
10681
10682 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10683
10684 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10685 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10686 Add fpscr as an invalid/unfetchable register.
10687 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10688 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10689 (fill_fpregset): Add support for register fpscr.
10690 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10691 (fill_gregset): Account for the fact that register ``mq'' might
10692 not exist.
10693 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10694 (registers_power): Add fpscr to register set at slot 71.
10695 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10696 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10697
10698 2002-04-11 Michael Snyder <msnyder@redhat.com>
10699
10700 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10701 * configure: Regenerate.
10702 * config.in: Regenerate.
10703 * acconfig.h: Add define for _SYSCALL32.
10704 * core-sol2.c: Remove #define _SYSCALL32.
10705 * solib-legacy.c: Remove #define _SYSCALL32.
10706
10707 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10708
10709 * stack.c (select_frame): Cleanup internal error message, do not
10710 use %p.
10711
10712 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10713
10714 * stack.c (select_frame): Check that selected_frame and the
10715 specified level are as expected.
10716 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10717 Update copyright.
10718 * frame.h (struct frame_info): Add field `level'. Update
10719 copyright.
10720 Work-in-progress PR gdb/464.
10721
10722 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10723
10724 * maint.c (maint_print_section_info): Rename print_section_info.
10725 (print_bfd_section_info, print_objfile_section_info): Update.
10726 * inferior.h (struct gdbarch): Add opaque declaration.
10727 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10728 * gdbarch.h: Regenerate.
10729
10730 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10731
10732 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10733 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10734 (kernel_u_size): Added.
10735 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10736 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10737
10738 2002-04-04 Jim Ingham <jingham@apple.com>
10739
10740 * valarith.c (find_size_for_pointer_math): New function, either returns
10741 the size for a pointer's target, returns 1 for void *, or errors for
10742 incomplete types.
10743 (value_add, value_sub): use find_size_for_pointer_math.
10744
10745 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10746
10747 * linux-low.c (linux_look_up_symbols): New hook.
10748 (linux_target_ops): Add linux_look_up_symbols.
10749 * remote-utils.c (decode_address): New function.
10750 (look_up_one_symbol): New function.
10751 * server.c (handle_query): Call target look_up_symbols hook.
10752 * server.h (look_up_one_symbol): Add prototype.
10753 * target.h (struct target_ops): Add look_up_symbols hook.
10754
10755 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10756
10757 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10758 override FP_REGNUM with frame->fp. Update copyright.
10759 * parse.c (num_std_regs, std_regs): Delete.
10760 (target_map_name_to_register): Do not search std_regs. Update
10761 function description.
10762 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10763 declarations. Update copyright.
10764 Fix PR gdb/251.
10765
10766 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10767
10768 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10769 after the last symbol in a block.
10770
10771 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10772
10773 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10774 is non zero as a found symbol.
10775
10776 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10777
10778 * findvar.c: Include "builtin-regs.h".
10779 (value_of_register): Call value_of_builtin_reg when applicable.
10780 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10781 (target_map_name_to_register): Call
10782 builtin_reg_map_name_to_regnum.
10783 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10784 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10785 (builtin_regs_h): Define.
10786 (builtin-regs.o): New target.
10787 (findvar.o): Add $(builtin_regs_h).
10788 * builtin-regs.c, builtin-regs.h: New files.
10789 * std-regs.c: New file.
10790 Partial fix for PR gdb/251.
10791
10792 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10793
10794 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10795 it's no longer required.
10796
10797 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10798
10799 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10800
10801 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10802
10803 From Jimi X <jimix@watson.ibm.com>:
10804 * rs6000-tdep.c (rs6000_software_single_step): Use
10805 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10806 and size. Use target_insert_breakpoint() and
10807 target_remove_breakpoint() to insert and remove breakpoints
10808 instead of explicit memory reads and writes.
10809
10810 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10811
10812 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10813 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10814 ELF_OBJECT_FORMAT ifdef.
10815
10816 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10817
10818 From Jimi X <jimix@watson.ibm.com>:
10819 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10820
10821 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10822
10823 From Jimi X <jimix@watson.ibm.com>:
10824 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10825 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10826
10827 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10828
10829 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10830 s/asprintf/xasprintf/.
10831 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10832
10833 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10834
10835 I believe Jeff Law denies responsability for this one:
10836 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10837 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10838 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10839 Work-around for PR gdb/366.
10840
10841 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10842
10843 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10844 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10845 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10846
10847 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10848
10849 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10850 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10851 information.
10852
10853 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10854
10855 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10856 maintainer.
10857
10858 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10859
10860 * README (Reporting Bugs in GDB): Document the bug web page as the
10861 prefered way of submitting bugs.
10862 Fix PR gdb/402.
10863
10864 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10865
10866 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10867 -1. Update comment.
10868 * gdbarch.h, gdbarch.c: Re-generate.
10869
10870 2002-04-07 Andreas Schwab <schwab@suse.de>
10871
10872 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10873 buffer to regcache_collect.
10874
10875 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10876
10877 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10878 * gdbarch.c, gdbarch.h: Re-generate.
10879
10880 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10881
10882 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10883 declaration. Fix -Werror.
10884
10885 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10886
10887 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10888 * gdbarch.c: Regenerate.
10889
10890 2002-04-05 Michael Snyder <msnyder@redhat.com>
10891
10892 * breakpoint.c (clear_command): Rewrite middle section to
10893 combine two loops with identical control conditions.
10894 Add a cleanup to eliminate a memory leak.
10895 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10896
10897 2002-04-05 H.J. Lu (hjl@gnu.org)
10898
10899 * solib-svr4.c (bkpt_names): Add "__start".
10900
10901 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10902
10903 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10904 as test for 64 bit target.
10905
10906 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10907
10908 * h8500-tdep.c (h8500_write_fp): Delete function.
10909 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10910 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10911 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10912 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10913 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10914 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10915 (s390_write_fp):
10916 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10917 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10918 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10919 (d10v_write_fp): Delete function.
10920 * inferior.h (write_fp, generic_target_write_fp): Delete
10921 declarations.
10922 * regcache.c (generic_target_write_fp): Delete function.
10923 (write_fp): Delete function.
10924 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10925 * gdbarch.h, gdbarch.c: Regenerate.
10926 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10927 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10928 (sparc64_write_fp): Delete declaration.
10929 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10930 (h8500_write_fp): Delete declaration.
10931
10932 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10933
10934 * sparc-tdep.c (sparc64_write_fp): Delete.
10935 (sparc_push_dummy_frame): Replace write_fp call with code to store
10936 the FP directly.
10937 (sparc_gdbarch_init): Do not initialize write_fp.
10938
10939 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10940
10941 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10942 clause.
10943
10944 2002-03-29 Jim Blandy <jimb@redhat.com>
10945
10946 * stack.c (get_selected_block): Add new argument `addr_in_block',
10947 used to return the exact code address we used to select the block,
10948 not just the block.
10949 * blockframe.c (get_frame_block, get_current_block): Same.
10950 * frame.h (get_frame_block, get_current_block,
10951 get_selected_block): Update declarations.
10952 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10953 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10954
10955 2002-04-05 Michael Snyder <msnyder@redhat.com>
10956
10957 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10958 warning message.
10959
10960 2002-04-05 J. Brobecker <brobecker@gnat.com>
10961
10962 * utils.c (xfullpath): New function.
10963 * defs.h (xfullpath): Add declaration.
10964 * source.c (openp): Use xfullpath in place of gdb_realpath to
10965 avoid resolving the basename part of filenames when the
10966 associated file is a symbolic link. This fixes a potential
10967 inconsistency between the filenames known to GDB and the
10968 filenames it prints in the annotations.
10969 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10970 to be able to match a filename with either the real filename, or
10971 the name of any symbolic link to this file.
10972 (lookup_partial_symtab): Ditto.
10973
10974 2002-04-04 Michael Snyder <msnyder@redhat.com>
10975
10976 * breakpoint.c: Add support for hardware breakpoints in overlays.
10977 (overlay_events_enabled): New state variable.
10978 (insert_breakpoints): Use overlay_events_enabled to decide
10979 whether to attempt to set a breakpoint at the overlay load addr.
10980 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10981 (remove_breakpoint): Use overlay_events_enabled to decide
10982 whether breakpoints need to be removed from overlay load addr.
10983 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10984 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10985 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10986 disable_overlay_breakpoints): Update overlay_events_enabled.
10987
10988 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10989
10990 * dwarf2read.c (struct function_range): New.
10991 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10992 (check_cu_functions): New.
10993 (read_file_scope): Initialize global function lists.
10994 Call dwarf_decode_line after processing children.
10995 (read_func_scope): Add to global function list.
10996 (dwarf_decode_lines): Call check_cu_functions everywhere
10997 record_line is called. Call record_line with a linenumber
10998 of 0 to mark sequence ends.
10999
11000 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11001
11002 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11003 change sync with glibc.
11004
11005 2002-04-03 Jim Blandy <jimb@redhat.com>
11006
11007 * configure.in: Call AC_C_INLINE.
11008 * configure: Regenerated.
11009
11010 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11011
11012 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11013 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11014
11015 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11016
11017 * NEWS: Mention gcore support on FreeBSD/i386.
11018
11019 * fbsd-proc.c: New file.
11020 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11021 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11022
11023 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11024 while statement.
11025
11026 2002-03-29 Jim Blandy <jimb@redhat.com>
11027
11028 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11029 unescaped newlines in string literals, but newer ones don't. So
11030 escape them.
11031
11032 2002-03-26 Michael Snyder <msnyder@redhat.com>
11033 Andrew Cagney <cagney@redhat.com>
11034
11035 * cli/cli-dump.c: New file. Dump memory to file,
11036 restore file to memory.
11037 * cli/cli-dump.h: New file.
11038 * Makefile.in: Add rules, dependencies for cli-dump.o.
11039 * NEWS: Mention new commands.
11040
11041 2002-03-28 Michael Snyder <msnyder@redhat.com>
11042
11043 * symfile.c (symbol_file_add): Move test for null symbols to later.
11044
11045 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11046
11047 From veksler at il.ibm.com:
11048 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11049 the xstrduped original path.
11050 Fix PR gdb/417.
11051
11052 2002-03-27 Michael Snyder <msnyder@redhat.com>
11053
11054 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11055 * infcmd.c (_initialize_infcmd): Ditto.
11056 * language.c (_initialize_language): Ditto.
11057 * symfile.c (_initialize_symfile): Ditto.
11058 * top.c (_init_main): Ditto.
11059 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11060
11061 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11062
11063 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11064 vector registers handling.
11065 (skip_prologue): Handle new AltiVec instructions. Fill in new
11066 fields of frame data.
11067 (frame_get_saved_regs): Fill in information for AltiVec registers.
11068
11069 2002-03-27 Jim Blandy <jimb@redhat.com>
11070
11071 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11072 a function; leave this macro here to invoke that function.
11073 (symbol_init_mangled_name): Declaration for that function.
11074 * symtab.c (symbol_init_mangled_name): New function.
11075
11076 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11077
11078 * valarith.c: Replace strerror with safe_strerror.
11079 * tracepoint.c: Ditto.
11080 * lin-lwp.c: Ditto.
11081 * go32-nat.c: Ditto.
11082 * inflow.c: Ditto.
11083 * gnu-nat.c: Ditto.
11084
11085 2002-03-27 Andreas Schwab <schwab@suse.de>
11086
11087 * event-top.c (command_line_handler): Remove useless if.
11088
11089 2002-03-27 Andreas Jaeger <aj@suse.de>
11090
11091 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11092 comment.
11093
11094 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11095
11096 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11097 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11098 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11099 (x86_64_linux_dr_get_status, supply_gregset),
11100 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11101 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11102 (x86_64_register_info_table): Add.
11103 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11104 (x86_64_register_raw_size, x86_64_register_virtual_type),
11105 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11106 general x86_64_register_info_table.
11107 (i386_gdbarch_init): gdbarch_register_bytes is now set
11108 dynamicaly during initialization.
11109 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11110 * gdbserver/linux-x86-64-low.c: Ditto.
11111
11112 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11113
11114 * gdbserver/server.c (main): Call target_signal_to_host_p
11115 and target_signal_to_host on signals received from the remote.
11116 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11117 target_signal_from_host on signals sent to the remote.
11118 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11119 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11120
11121 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11122
11123 * signals/signals.c: Include "server.h" in gdbserver build.
11124 (target_signal_from_name): Don't use STREQ.
11125 (_initialize_signals): Likewise. Don't include function in
11126 gdbserver build.
11127
11128 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11129
11130 * signals.c: Moved to...
11131 * signals/signals.c: Here.
11132 * Makefile (signals.o): Update.
11133
11134 2002-03-26 Jeff Law (law@redhat.com)
11135
11136 * somread.c (som_symtab_read): Remove some commented out code and
11137 updated related comments. Do not set the minimal symbol table to
11138 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11139 in a dynamic executable.
11140 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11141 where we are unable to find the minimal symbol for the given
11142 PC value.
11143
11144 2002-03-25 Jeff Law (law@redhat.com)
11145
11146 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11147
11148 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11149
11150 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11151
11152 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11153
11154 * command.h: Update copyright.
11155 (struct cmd_list_element): Replace definition with opaque
11156 declaration.
11157 (enum cmd_types): Document that it will eventually be moved to
11158 cli/cli-decode.h
11159 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11160 (MALLOCED_REPLACEMENT): Delete macro.
11161 * Makefile.in (cli_decode_h): Add $(command_h).
11162 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11163 * top.c: Include "cli/cli-decode.h".
11164 * completer.c: Include "cli/cli-decode.h".
11165 * maint.c: Include "cli/cli-decode.h".
11166 * cli/cli-decode.h: Include "command.h".
11167 (enum command_class): Delete.
11168 (enum cmd_types): Comment out.
11169 (enum cmd_auto_boolean): Delete.
11170 (enum var_types): Delete.
11171
11172 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11173
11174 * cli/cli-decode.c: Include "gdb_assert.h".
11175 (add_set_or_show_cmd): New static function.
11176 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11177 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11178 all fields, such as func, from the set command.
11179
11180 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11181
11182 * MAINTAINERS (sh-elf): Change warning flag to -w.
11183
11184 2002-03-23 Andrew Cagney <cagney@redhat.com>
11185
11186 * defs.h (error): Add printf format attribute.
11187 * thread-db.c (thread_from_lwp): Fix error format string.
11188 * stack.c (parse_frame_specification): Ditto.
11189 * cli/cli-decode.c (undef_cmd_error): Ditto.
11190 * scm-lang.c (scm_lookup_name): Ditto.
11191 * tracepoint.c (trace_error): Ditto.
11192 * remote-utils.c (usage): Ditto.
11193 * remote.c (compare_sections_command): Ditto.
11194 Fix PR gdb/328.
11195
11196 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11197
11198 * gdbtypes.c (append_composite_type_field): New function.
11199 (init_composite_type): New function.
11200 * gdbtypes.h (append_composite_type_field): Declare.
11201 (init_composite_type): Ditto.
11202
11203 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11204
11205 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11206 function.
11207 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11208 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11209 structure returning convention for SYSV ABI case, but not
11210 for GNU/Linux, FreeBSD, or NetBSD.
11211
11212 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11213
11214 * symtab.h (lookup_block_symbol): Add mangled_name argument
11215 to prototype.
11216
11217 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11218 with new mangled_name argument.
11219 * linespec.c (decode_line_1): Likewise.
11220 * valops (value_of_this): Likewise.
11221 * symtab.c (lookup_transparent_type): Likewise.
11222 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11223 (lookup_symbol): If we are given a mangled name, pass it down
11224 to lookup_symbol_aux.
11225 (lookup_block_symbol): If we are given a mangled name to check
11226 against, only return symbols which match it.
11227
11228 2002-03-22 Christopher Faylor <cgf@redhat.com>
11229
11230 * win32-nat.c (child_create_inferior): Check for proper shell to use
11231 here, in case the user changes it on the fly.
11232 (_initialize_inftarg): Remove shell path considerations.
11233
11234 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11235
11236 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11237 for gdbarch_max_register_raw_size and max_register_virtual_size.
11238 Adjust copyright year.
11239
11240 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11241
11242 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11243 in a function to cover the entire beginning of the function
11244 as well if it does not already.
11245
11246 2002-03-21 Tom Rix <trix@redhat.com>
11247
11248 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11249 (rs6000_ptrace64): Renamed from ptrace64.
11250
11251 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11252
11253 * gdbserver/remote-utils.c (remote_open): Don't call
11254 getprotobyname, we're all using TCP here so just use
11255 IPPROTO_TCP.
11256 * gdbserver/gdbreplay.c (remote_open): Ditto.
11257
11258 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11259
11260 * regcache.c (_initialize_regcache): No need to call
11261 build_regcache() at this time; it gets called whenever
11262 the gdbarch changes.
11263
11264 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11265
11266 * sparc-nat.c: Include sys/param.h where possible.
11267
11268 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11269
11270 Fix PR gdb/422.
11271 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11272 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11273 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11274 complex types.
11275 * stabsread.c (rs6000_builtin_type): Likewise.
11276 (read_sun_floating_type): Likewise.
11277
11278 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11279
11280 * stabsread.c (read_member_functions): Remove skip code for duplicate
11281 constructor/destructor methods. Use standard parsing for these
11282 methods and just do not chain them to the list of methods after
11283 parsing.
11284
11285 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11286
11287 * coffread.c: Remove redundant static declarations. Replace
11288 occurrences of `PTR' with `void *'.
11289 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11290 * top.h (quit_cover): Likewise.
11291 * defs.h (catch_errors): Likewise.
11292
11293 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11294
11295 * defs.h (XMALLOC): Define.
11296 * gdb-events.sh (XMALLOC): Delete macro.
11297 * gdb-events.c, gdb-events.h: Regenerate.
11298 * gdbarch.sh (XMALLOC): Delete macro.
11299 * gdbarch.c: Regenerate.
11300 * serial.c (XMALLOC): Delete macro.
11301 * ui-file.c (XMALLOC): Ditto.
11302 * ser-unix.h (XMALLOC): Ditto.
11303 * sh-tdep.c (XMALLOC): Ditto.
11304 * ui-out.c (XMALLOC): Ditto.
11305 * utils.c (XMALLOC): Ditto.
11306 * i386-tdep.c (XMALLOC): Ditto.
11307 * gdb-events.c (XMALLOC): Ditto.
11308 * d10v-tdep.c (XMALLOC): Ditto.
11309 * cli-out.c (XMALLOC): Ditto.
11310
11311 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11312 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11313 * ui-file.c, ui-out.c: Ditto.
11314
11315 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11316
11317 * command.h (struct cmd_list_element): Add field context.
11318 (set_cmd_context, get_cmd_context): Declare.
11319 * cli/cli-decode.h: Ditto.
11320 * cli/cli-decode.c (get_cmd_context): New function.
11321 (set_cmd_context): New function.
11322 (add_cmd): Initialize context.
11323 Part of fixing PR gdb/145 and PR gdb/146.
11324
11325 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11326
11327 * cli/cli-decode.c (cmd_type): New function.
11328 * command.h (cmd_type): Declare.
11329 * infrun.c (set_schedlock_func): Call function cmd_type.
11330 * kod.c (kod_set_os): Call cmd_type.
11331 * cris-tdep.c (cris_version_update): Use function cmd_type.
11332 (cris_mode_update, cris_abi_update): Ditto.
11333
11334 * command.h: (execute_cmd_post_hook): Declare.
11335 (execute_cmd_pre_hook): Declare.
11336 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11337 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11338 functions. Execute pre/post hook while ensuring that afterwords
11339 hook_in is cleared.
11340 * top.c (execute_command): Use execute_cmd_post_hook, and
11341 execute_cmd_pre_hook to execute pre/post commands.
11342 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11343 hook_stop_stub.
11344 (hook_stop_stub): Call execute_cmd_pre_hook.
11345
11346 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11347
11348 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11349 set'' and this leads to a core dump. Move xstrdup of
11350 operating_system to after check that it is not NULL.
11351
11352 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11353
11354 * kod.c (kod_set_os): Remove unnecessary check that
11355 ``command->type'' is set_cmd.
11356
11357 * valprint.c (set_input_radix): Use input_radix.
11358 (set_output_radix): Use output_radix.
11359 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11360 isn't reverted.
11361
11362 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11363
11364 * value.h (struct value): Delete field ``substring_addr''. Change
11365 aligner fields to force_doublest_align, force_longest_align,
11366 force_core_addr_align and force_pointer_aligh.
11367
11368 * value.h (struct value): Fix typo in above change.
11369
11370 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11371
11372 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11373 to fix internal_error from ``maintenance print architecture''.
11374
11375 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11376
11377 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11378 for gcc versions after gcc-2.8.1.
11379
11380 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11381
11382 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11383 for method resolution. Restore adjustment of ``this'' pointer after
11384 calling value_struct_elt, which was accidentally removed during the
11385 HP merge.
11386
11387 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11388
11389 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11390 value_of_register.
11391 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11392 get_saved_register.
11393 * value.h (value_of_register): Update.
11394
11395 2002-03-14 Richard Henderson <rth@redhat.com>
11396
11397 * configure.in: Detect declaration for canonicalize_file_name.
11398 * utils.c (canonicalize_file_name): Declare, if needed.
11399 (gdb_realpath): Prefer realpath if available and usable.
11400 * config.in, configure: Rebuild.
11401
11402 2002-03-14 Richard Henderson <rth@redhat.com>
11403
11404 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11405 a constant array bound.
11406
11407 * MAINTAINERS: Add myself to write-after-approval.
11408
11409 2002-03-14 Michael Snyder <msnyder@redhat.com>
11410
11411 * symfile.c (syms_from_objfile): Return immediately if no syms.
11412 (symbol_file_add): Return immediately if no syms.
11413 (find_sym_fns): Return immediately if no syms.
11414
11415 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11416
11417 * gdbserver/remote-util.c (remote_open): Print remote-side's
11418 IP address when remote debugging over the network.
11419
11420 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11421
11422 * config/sparc/fbsd.mh: Fix copyright.
11423 * config/sparc/fbsd.mt: Likewise.
11424
11425 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11426
11427 * MAINTAINERS: Fix typo in name of gdb warnings option.
11428 (x86-64): Fix formating so that this can be parsed by awk.
11429
11430 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11431
11432 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11433 * defs.h: Include "gdb/signals.h".
11434 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11435
11436 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11437
11438 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11439 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11440 from x86-64-tdep.h
11441
11442 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11443 Don Howard <dhoward@redhat.com>
11444
11445 * mips-tdep.c (ST0_FR): Define.
11446 (mips2_fp_compat): New function, temporarily disabled.
11447 (mips_read_fp_register_single): New function.
11448 (mips_read_fp_register_double): New function.
11449 (mips_print_register): Use them.
11450 (do_fp_register_row): Likewise.
11451
11452 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11453
11454 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11455 approval''.
11456
11457 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11458
11459 * stabsread.c (read_member_functions): Fix is_stub test for
11460 static member functions, improve comment.
11461
11462 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11463
11464 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11465 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11466 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11467 commands that set boolean values.
11468 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11469 (arm_rdi_resume): Always initialize PC.
11470 (arm_rdi_open): Don't use rslt as a boolean.
11471 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11472 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11473 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11474 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11475
11476 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11477
11478 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11479 * configure: Rebuilt.
11480
11481 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11482
11483 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11484 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11485
11486 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11487
11488 * cli/cli-decode.c (set_cmd_completer): New function.
11489 * command.h (set_cmd_completer): Declare.
11490 * cli/cli-decode.h (set_cmd_completer): Ditto.
11491
11492 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11493 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11494 * win32-nat.c (_initialize_inftarg): Ditto.
11495 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11496 * proc-api.c (_initialize_proc_api): Ditto.
11497 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11498 * source.c (_initialize_source): Ditto.
11499 * exec.c (_initialize_exec): Ditto.
11500 * solib.c (_initialize_solib): Ditto.
11501 * top.c (init_main): Ditto.
11502 * tracepoint.c (_initialize_tracepoint): Ditto.
11503 * symfile.c (_initialize_symfile): Ditto.
11504 * printcmd.c (_initialize_printcmd): Ditto.
11505 * infcmd.c (_initialize_infcmd): Ditto.
11506 * corefile.c (_initialize_core): Ditto.
11507
11508 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11509
11510 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11511
11512 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11513
11514 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11515
11516 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11517
11518 * NEWS: Update headings, 5.2 has branched.
11519
11520 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11521
11522 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11523 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11524 (register_addr, REGISTER_RAW_SIZE): Likewise.
11525 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11526 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11527
11528 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11529
11530 * MAINTAINERS (x86-64): Add myself.
11531 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11532 changed value_ptr -> struct value *
11533
11534 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11535
11536 * configure.host (sparc64-*-freebsd): Add.
11537 * configure.tgt: Likewise.
11538 * config/sparc/fbsd.mh: New file.
11539 * config/sparc/fbsd.mt: Likewise.
11540 * config/sparc/nm-fbsd.h: Likewise.
11541 * config/sparc/tm-fbsd.h: Likewise.
11542
11543 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11544
11545 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11546 regformats/reg-s390x.dat.
11547
11548 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11549
11550 * utils.c: Add FIXME explaining true/false problem.
11551
11552 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11553
11554 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11555
11556 2002-02-28 Michael Chastain <mec@shout.net>
11557
11558 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11559
11560 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11561
11562 * gdbserver/linux-s390-low.c: New file.
11563 * regformats/reg-s390.dat: New file.
11564 * regformats/reg-s390x.dat: New file.
11565 * gdbserver/configure.srv: Add S/390.
11566 * gdbserver/Makefile.in: Add S/390.
11567 * configure.tgt: Enable gdbserver for S/390.
11568
11569 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11570
11571 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11572 first line of the doc string for "info dos", except at the end of
11573 the sentence, since the short help stops at the first period.
11574
11575 2002-02-28 Jason Merrill <jason@redhat.com>
11576
11577 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11578
11579 2002-02-27 Fred Fish <fnf@redhat.com>
11580
11581 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11582 comment (dumy -> dummy).
11583
11584 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11585
11586 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11587
11588 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11589
11590 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11591
11592 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11593
11594 * gdbserver/acconfig.h: New file.
11595 * gdbserver/i387-fp.c: New file.
11596 * gdbserver/i387-fp.h: New file.
11597 * gdbserver/linux-x86-64.c: New file.
11598 * regformats/reg-x86-64.dat: New file.
11599 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11600 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11601 * gdbserver/configure.in: Add support for regsets.
11602 * gdbserver/config.in: Regenerate.
11603 * gdbserver/configure: Regenerate.
11604 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11605 * gdbserver/linux-low.h: New file.
11606 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11607 for regsets.
11608 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11609 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11610 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11611 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11612 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11613 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11614 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11615 "i387-fp.h". Add PTRACE_GETREGS and friends.
11616 * gdbserver/regcache.c (supply_register): New function.
11617 (supply_register_by_name): New function.
11618 (collect_register): New function.
11619 (collect_register_by_name): New function.
11620
11621 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11622
11623 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11624 (config.status): Add configure.srv dependency.
11625 (server_h): Add config.h dependency.
11626
11627 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11628
11629 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11630 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11631 * gdbserver/configure.srv: Change i386-*-linux* to use
11632 reg-i386-linux.o.
11633
11634 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11635
11636 * x86-64-tdep.c: Re-indent. Update copyright date.
11637
11638 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11639
11640 From Michal Ludvig <mludvig@suse.cz>:
11641 * x86-64-tdep.c (value.h): Delete.
11642 (gdb_assert.h): Include.
11643 (x86_64_register_convert_to_virtual,
11644 x86_64_register_convert_to_raw ): Add check which lets only
11645 floating-point values to be converted.
11646 (value_push): Delete.
11647 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11648 (i386_gdbarch_init): Number of register_bytes fixed.
11649
11650 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11651
11652 * MAINTAINERS: Add x86-64 target.
11653
11654 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11655
11656 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11657 * osfsolib.c (solib_map_sections): Ditto.
11658 * irix5-nat.c (solib_map_sections): Ditto.
11659 * corelow.c (gdb_check_format): Ditto.
11660 * symfile.c (symfile_bfd_open): Ditto.
11661 * solib.c (solib_map_sections): Ditto.
11662 Fix PR gdb/354.
11663
11664 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11665
11666 * remote.c (_initialize_remote): By default, disable ``e'' and
11667 ``E'' step out-of-range packets.
11668
11669 2002-02-26 Andreas Schwab <schwab@suse.de>
11670
11671 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11672 m68k_linux_frame_saved_pc.
11673 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11674 in_sigtramp.
11675 (SIGCONTEXT_PC_OFFSET): Remove.
11676 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11677 m68k_linux_sigtramp_saved_pc): New functions.
11678 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11679 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11680 (UCONTEXT_PC_OFFSET): Define.
11681 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11682 non-RT and RT signal trampolines.
11683
11684 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11685
11686 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11687 (TARGET_NBPG, STACK_END_ADDR): Delete
11688 (VARIABLES_INSIDE_BLOCK): Delete.
11689
11690 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11691
11692 * utils.c (perror_with_name): Make string parameter constant.
11693 (print_sys_errmsg): Ditto.
11694 (query): Ditto.
11695 * defs.h (perror_with_name): Update.
11696 (print_sys_errmsg): Update.
11697 (query): Update.
11698
11699 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11700
11701 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11702 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11703
11704 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11705
11706 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11707 if it already matches the current architecture from the exec file.
11708 Include arch-utils.h for gdbarch_info_init prototype.
11709 * Makefile.in (rs6000-nat.o): Update dependencies.
11710
11711 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11712
11713 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11714 list of exported variables.
11715
11716 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11717
11718 * gdbserver/configure.srv: New file.
11719 * gdbserver/configure.in: Use configure.srv instead
11720 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11721 from it.
11722 * gdbserver/configure: Regenerated.
11723 * gdbserver/terminal.h: New file.
11724 * gdbserver/Makefile.in: Update for configure changes. Remove
11725 more unneeded include paths.
11726
11727 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11728
11729 From wiz at danbala:
11730 * config/sparc/tm-sp64.h: Fix grammar and typos.
11731 Fix PR gdb/287.
11732
11733 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11734
11735 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11736 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11737 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11738 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11739 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11740 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11741 * s390-tdep.c: Ditto.
11742 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11743 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11744 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11745 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11746 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11747 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11748 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11749 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11750 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11751 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11752 Fix PR gdb/378.
11753
11754 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11755
11756 * lin-thread.c: Delete file.
11757 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11758 to gdb_proc_service.h.
11759 * configure: Re-generate.
11760
11761 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11762 * serial.c (serial_open): Delete check for "ocd".
11763 Fix PR gdb/349.
11764
11765 * Makefile.in (linux-thread.o): Delete target.
11766 * linux-thread.c: Delete file.
11767
11768 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11769 renamed SH files to be consistent.
11770
11771 * symtab.c (sort_search_symbols): Use xfree.
11772
11773 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11774
11775 * arm-linux-tdep.c (arm_linux_init_abi): Register
11776 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11777 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11778 definition with undef, since we don't want the sysvr4 definition.
11779 (SKIP_TRAMPOLINE_CODE): Likewise.
11780
11781 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11782
11783 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11784
11785 * configure.in: (AC_CHECK_FUNCS) Added test for
11786 canonicalize_file_name Regenerated.
11787 * config.in, configure: Regenerated.
11788 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11789 defined use canonicalize_file_name.
11790
11791 2002-02-23 Michael Chastain <mec@shout.net>
11792
11793 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11794
11795 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11796
11797 * README: Remove references to cygnus.com.
11798 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11799 dot com'' form. Remove references to cygnus.com and sourceware.
11800
11801 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11802
11803 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11804 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11805 1003.1-2001 no longer allows "head -1".
11806 * gdb/Makefile.in (version.c): Likewise.
11807 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11808 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11809 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11810
11811 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11812
11813 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11814 * command.h (cmd_cfunc_eq): Declare.
11815 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11816
11817 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11818 ``struct cmd_list_element *''.
11819 * cli/cli-cmds.c (is_complete_command): Update. Use
11820 cmd_cfunc_eq.
11821 * top.c (execute_command): Pass the command to
11822 is_complete_command.
11823 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11824
11825 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11826
11827 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11828 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11829 architecture defines.
11830 * s390-tdep.c (s390_gdbarch_init): Likewise.
11831
11832 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11833
11834 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11835 (arm_linux_push_arguments): Likewise.
11836 (arm_linux_init_abi): Register them. Also register linux-specific
11837 call_dummy_words.
11838 (find_minsym_and_objfile): Use strcmp, not STREQ.
11839 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11840 (arm_linux_call_dummy_words): Delete declaration.
11841 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11842 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11843 declarations.
11844 (LOWEST_PC): Delete.
11845
11846 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11847
11848 * maint.c (print_section_info): Do not prepend `0x' to filepos
11849 output, it will be handled by local_hex_string_custom.
11850
11851 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11852
11853 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11854 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11855 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11856
11857 2002-02-22 Jim Blandy <jimb@redhat.com>
11858
11859 Indicate that the bcache functions don't change the strings
11860 they're passed.
11861 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11862 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11863
11864 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11865
11866 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11867
11868 2002-02-21 Christopher Faylor <cgf@redhat.com>
11869
11870 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11871 find the complete path to a loaded DLL.
11872
11873 2002-02-21 Fred Fish <fnf@redhat.com>
11874
11875 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11876 that marks the end of the range of a function, enter a line number
11877 entry that has a line number of zero and a PC offset that matches
11878 the end of the function. This starts a range of PC's for which no
11879 line number information is known.
11880 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11881 PC's for which no line number info is found (line number is zero)
11882 then we didn't find any valid line information.
11883 * symtab.h: Document use of zero line number entry.
11884
11885 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11886
11887 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11888 (have_ptrace_getvrregs): Define for run time checks.
11889 (gdb_vrregset_t): New type for Altivec register handling.
11890 (fetch_register, store_register): Fetch/store altivec register
11891 when needed.
11892 (fetch_altivec_register, store_altivec_register): New functions.
11893 (supply_vrregset, fill_vrregset): New functions.
11894 (fetch_altivec_registers, store_altivec_registers): New functions.
11895 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11896 registers as well.
11897
11898 2002-02-21 Jiri Smid <smid@suse.cz>
11899
11900 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11901
11902 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11903
11904 * Makefile.in (armnbsd-nat.o): Update dependencies.
11905 * armnbsd-nat.c (supply_gregset): New function. Common code to
11906 supply the integer register set.
11907 (supply_fparegset): New function. Similar for FPA registers.
11908 (fetch_regs, fetch_fp_regs): Use them.
11909 (fetch_core_registers): Likewise.
11910 (fetch_elfcore_registers): New function.
11911 (arm_netbsd_elfcore_fns): New core-file type specification.
11912 (_initialize_arm_netbsd_nat): Register it.
11913
11914 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11915
11916 * armnbsd-nat.c: Include gdbcore.h.
11917 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11918 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11919 'void' to declaration, to shut up ARI.
11920 (fetch_core_registers): Make static. Rewrite using supply_register.
11921 (arm_netbsd_core_fns): New core-file type specification.
11922 (_initialize_arm_netbsd_nat): New function.
11923
11924 2002-02-21 Christopher Faylor <cgf@redhat.com>
11925
11926 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11927 value.
11928
11929 2002-02-20 Christopher Faylor <cgf@redhat.com>
11930
11931 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11932 fails.
11933
11934 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11935
11936 * jv-exp.y (parse_number): Change type of implicit longs
11937 to builtin_type_uint64.
11938
11939 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11940
11941 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11942 to be an integer instead of a `union wait'.
11943
11944 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11945
11946 * mips-linux-nat.c: Call the operating system GNU/Linux.
11947 * mips-linux-tdep.c: Likewise.
11948 * mips-tdep.c: Likewise.
11949
11950 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11951
11952 Fix PR gdb/265.
11953 * jv-exp.y (parse_number): Handle 64-bit integers.
11954
11955 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11956
11957 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11958 AC_STDC_HEADERS to AC_HEADER_STDC.
11959 * gdbserver/configure: Regenerated.
11960
11961 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11962
11963 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11964 is defined.
11965 * sparc-tdep.c (get_longjmp_target): Likewise.
11966
11967 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11968
11969 * News: Add news about ARM and Multi-arch. Mention the new target
11970 arm*-*-netbsd*.
11971
11972 2002-02-19 Jim Blandy <jimb@redhat.com>
11973
11974 * stabsread.c (error_type_complaint): Improve error message.
11975
11976 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11977
11978 * gdbserver/README: Update documentation.
11979 * gdbserver/configure.in: Update configury to match documentation.
11980 * gdbserver/Makefile.in: Likewise.
11981 * gdbserver/configure: Regenerated.
11982 * gdbserver/aclocal.m4: New file, generated by aclocal.
11983 * gdbserver/config.in: New file, generated by autoheader.
11984
11985 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11986
11987 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11988 armnbsd-nat.c.
11989
11990 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11991
11992 * arm-tdep.h (enum arm_float_model): New enum.
11993 (struct gdbarch_tdep): Add fp_model.
11994 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11995 up floating-point conversions until we know the floating-point model
11996 in use by the inferior. Don't complain about being unable to
11997 determine the ABI of the inferior when we don't have one.
11998 (arm_extract_return_value): Support different floating-point models.
11999 (arm_store_return_value): Likewise.
12000 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12001 ARM_FLOAT_SOFT.
12002 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12003
12004 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12005
12006 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12007 of ``current_gdbarch''.
12008
12009 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12010
12011 * armnbsd-nat.c : ANSIfy all function declarations.
12012 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12013 (fetch_inferior_registers): Re-implement in terms of above.
12014 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12015 (store_inferior_registers): Re-implement in terms of above.
12016
12017 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12018
12019 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12020 kernel.
12021 * arm-linux-tdep.c: Likewise.
12022 * config/arm/tm-linux.h: Likewise.
12023
12024 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12025
12026 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12027 * config/arm/nbsd.mt (TM_FILE): Delete.
12028 * config/arm/tm-nbsd.h: Delete.
12029
12030 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12031
12032 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12033 Initialize CALL_DUMMY_LENGTH.
12034
12035 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12036
12037 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12038 function.
12039 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12040 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12041 defines one thing and that is incorrect for this port.
12042 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12043
12044 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12045
12046 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12047
12048 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12049
12050 * win32-nat.c (display_selector): New function. Displays information
12051 about the information returned by GetThreadSelectorEntry API function.
12052 (display_selectors): New function. Displays the infomation of
12053 the selector given as argument, or of CS, DS ans FS selectors
12054 if no argument is given.
12055 ( _initialize_inftarg): Add "w32" as info prefix command.
12056 Add "info w32 selector" as command calling display_selectors.
12057
12058 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12059
12060 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12061 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12062 if not defined.
12063
12064 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12065
12066 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12067
12068 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12069
12070 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12071 (arm_fix_call_dummy): Call it.
12072 (arm_call_dummy_breakpoint_offset): Delete.
12073 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12074 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12075
12076 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12077
12078 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12079 Default to func_frame_chain_valid.
12080 * gdbarch.h, gdbarch.c: Re-generate.
12081 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12082
12083 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12084
12085 * ppc-linux-nat.c: Update copyright.
12086 (fetch_register, store_register): Add tid parameter, don't compute
12087 tid here.
12088 (fetch_ppc_registers, store_ppc_registers): Add tid
12089 parameter. Pass it along to callees.
12090 (fetch_inferior_registers, store_inferior_registers): Compute tid
12091 here, and pass it to calleed functions.
12092 (fill_gregset, supply_fpregset): Clean up formatting.
12093
12094 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12095
12096 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12097 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12098
12099 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12100
12101 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12102 * gdbarch.c gdbarch.h: Regenerate.
12103 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12104 function.
12105 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12106 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12107 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12108
12109 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12110 * arm-tdep.c (arm_get_longjmp_target): New function.
12111 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12112 this to a positive value register arm_get_longjmp_target as the
12113 longjmp handler.
12114 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12115 (arm_linux_init_abi): Set up longjmp description in tdep.
12116 * armnbsd-nat.c (get_longjmp_target): Delete.
12117 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12118 description in tdep.
12119 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12120 (get_longjmp_target): Delete declaration.
12121 (GET_LONGJMP_TARGET): Delete.
12122 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12123 (GET_LONGJMP_TARGET): Delete.
12124
12125 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12126
12127 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12128 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12129 of ``current_gdbarch''.
12130
12131 2002-02-17 Tom Tromey <tromey@redhat.com>
12132
12133 * cli/cli-cmds.c (compare_strings): New function.
12134 (complete_command): Only print each unique item once.
12135 * completer.h (complete_line): Declare.
12136 * completer.c (complete_line): New function.
12137 (line_completion_function): Use it.
12138
12139 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12140
12141 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12142 * gdbarch.h, gdbarch.c: Re-generate.
12143
12144 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12145
12146 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12147
12148 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12149
12150 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12151 * valops.c (value_arg_coerce): Don't take the address of a reference
12152 to convert an argument to a reference.
12153
12154 2002-02-15 Christopher Faylor <cgf@redhat.com>
12155
12156 * win32-nat.c (get_image_name): New function.
12157 (handle_load_dll): Use get_image_name function.
12158 (get_child_debug_event): Avoid registering debug events until possibly
12159 execed process is started.
12160 (child_create_inferior): Allow invocation via shell so that command
12161 line redirection, etc. works ok.
12162 (_initialize_inftarg): Add new command: "set shell" to control whether
12163 a shell is used to start a process.
12164
12165 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12166
12167 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12168 instead of find_register_by_number.
12169 (cannot_store_register): Likewise.
12170
12171 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12172
12173 * dwarf2read.c: Replace fprintf (stderr, ...) by
12174 fprintf_unfiltered (gdb_stderr, ...).
12175
12176 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12177
12178 * gdbserver/gdbserver.1: Document --attach.
12179
12180 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12181
12182 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12183 descriptions.
12184 * arm-tdep.c (arm_default_arm_le_breakpoint)
12185 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12186 (arm_default_thumb_be_breakpoint): New. Initialize them from
12187 traditional breakpoint defines.
12188 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12189 (arm_gdbarch_init): Initialize new breakpoint variables.
12190 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12191 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12192 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12193 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12194 code out to ...
12195 (arm_netbsd_init_abi_common): ... here; new function.
12196 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12197 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12198 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12199 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12200
12201 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12202
12203 * arm-tdep.h (enum arm_abi): New enum.
12204 (struct gdbarch_tdep): New structure.
12205 (LOWEST_PC): Provide a default.
12206 (arm_gdbarch_register_os_abi): Declare new function.
12207 * arm-tdep.c (arm_abi_names): New array.
12208 (process_note_abi_tag_sections): New function.
12209 (get_elfosabi): New function.
12210 (arm_gdbarch_register_os_abi): New function.
12211 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12212 support for that ABI has been built in, then call the appropriate
12213 configuration routine. Use gdbarch_num_regs() to get the number
12214 of registers.
12215 (arm_dump_tdep): New function.
12216 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12217 place-holder functions.
12218 (_initialize_arm_tdep): Register them.
12219 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12220
12221 * armnbsd-tdep.c: New file.
12222 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12223 * config/arm/nbsd.mt (TDEPFILES): Add it.
12224 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12225
12226 * armnbsd-nat.c: Include regcache.h.
12227 * Makefile.in (armnbsd-nat.o): Update dependency list.
12228
12229 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12230
12231 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12232
12233 * gdbserver/Makefile.in: Fix typos in target rules.
12234
12235 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12236
12237 Fix part of PR gdb/267.
12238 * linespec.c (find_methods): Handle constructors specially for now.
12239
12240 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12241
12242 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12243 handling.
12244 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12245 standard_coerce_float_to_double().
12246
12247 2002-02-14 Christopher Faylor <cgf@redhat.com>
12248
12249 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12250 GDBINIT_FILENAME.
12251
12252 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12253
12254 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12255 find_variant_by_name, because it confuses the multiarch
12256 framework. Return NULL if there isn't an architecture with the
12257 user supplied name, instead of forcing a different one without
12258 recording the change with the multiarch machinery.
12259 (find_variant_by_name): Delete.
12260
12261 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12262
12263 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12264 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12265
12266 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12267
12268 * stack.c (print_frame_info_base): When calling
12269 print_frame_info_listing_hook, set current_source_symtab.
12270
12271 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12272
12273 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12274 and remove unused $(INCLUDE_DIR).
12275 Add regcache.c to OBS.
12276 Add generated register protocol files to clean target.
12277 Update dependencies for new objects, obsolete old target code.
12278
12279 * gdbserver/linux-low.c: Remove all platform-specific code to
12280 new files. Remove various dead code. Update to use regcache
12281 functionality.
12282 * gdbserver/remote-utils.c (fromhex): Add return statement
12283 to quiet warning.
12284 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12285 constant.
12286 (input_interrupt): Add integer parameter to match prototype
12287 of a signal handler.
12288 (outreg): Use register_data ().
12289 (prepare_resume_reply): Use gdbserver_expedite_regs.
12290 * gdbserver/server.c (main): Dynamically allocate own_buf because
12291 PBUFSIZ is no longer constant. Use registers_to_string () and
12292 registers_from_string ().
12293 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12294 for error (), fatal (), and warning (). Update definition of
12295 PBUFSIZ to use regcache functionality. Add include guard.
12296 * gdbserver/utils.c (fatal): Add missing ``const''.
12297 (warning): New function.
12298
12299 * regformats/regdat.sh: Include "regcache.h" in generated files.
12300 Provide init_registers () function.
12301 * regformats/regdef.h: Add prototype for set_register_cache ().
12302 Add include guard.
12303
12304 * gdbserver/linux-arm-low.c: New file.
12305 * gdbserver/linux-i386-low.c: New file.
12306 * gdbserver/linux-ia64-low.c: New file.
12307 * gdbserver/linux-m68k-low.c: New file.
12308 * gdbserver/linux-mips-low.c: New file.
12309 * gdbserver/linux-ppc-low.c: New file.
12310 * gdbserver/linux-sh-low.c: New file.
12311
12312 * gdbserver/regcache.c: New file.
12313 * gdbserver/regcache.h: New file.
12314
12315 * gdbserver/low-linux.c: Removed obsolete file.
12316
12317 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12318
12319 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12320 * config/i386/linux.mt: Likewise.
12321 * config/ia64/linux.mt: Likewise.
12322 * config/m68k/linux.mh: Likewise.
12323 * config/powerpc/linux.mh: Likewise.
12324 * config/mips/linux.mt: Likewise.
12325
12326 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12327
12328 * config/i386/i386lynx.mh: Mark gdbserver variables
12329 as (currently) obsolete for this target.
12330 * config/i386/nbsd.mt: Likewise.
12331 * config/i386/nbsdelf.mt: Likewise.
12332 * config/m32r/m32r.mt: Likewise.
12333 * config/m68k/m68klynx.mh: Likewise.
12334 * config/m68k/nbsd.mt: Likewise.
12335 * config/m68k/sun3os4.mh: Likewise.
12336 * config/mips/vr5000.mt: Likewise.
12337 * config/ns32k/nbsd.mt: Likewise.
12338 * config/pa/hppabsd.mh: Likewise.
12339 * config/pa/hppaosf.mh: Likewise.
12340 * config/powerpc/nbsd.mt: Likewise.
12341 * config/rs6000/rs6000lynx.mh: Likewise.
12342 * config/s390/s390.mt: Likewise.
12343 * config/s390/s390x.mt: Likewise.
12344 * config/sparc/sparclynx.mh: Likewise.
12345 * config/sparc/sun4os4.mh: Likewise.
12346 * config/i386/x86-64linux.mt: Likewise.
12347 * config/sparc/linux.mh: Likewise.
12348
12349 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12350
12351 * configure.tgt: Configure gdbserver only for known working
12352 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12353 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12354 SUBDIRS if it is configured. Update comment for ${nativefile}.
12355 * configure: Regenerated.
12356
12357 2002-02-13 Michael Snyder <msnyder@redhat.com>
12358
12359 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12360
12361 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12362 (default_gcore_mach): Just return 0, work around a problem in bfd.
12363 (default_gcore_target): OK to return NULL if exec_bfd is null.
12364 (make_mem_sec): Use a cast, avoid a warning.
12365
12366 * procfs.c (find_memory_regions_callback): Use a cast instead of
12367 calling host_pointer_to_address (which complains if
12368 sizeof (host pointer) != sizeof (target pointer)).
12369 (procfs_make_note_section): Avoid overflow in psargs string.
12370
12371 * procfs.c (procfs_make_note_section): Make the default
12372 implementation return an error.
12373
12374 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12375
12376 * procfs.c (procfs_make_note_section): Provide a default definition
12377 (for alpha-dec-osf4.0f). Fix typos.
12378
12379 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12380
12381 * linux-proc.c: Add include of regcache.h.
12382 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12383
12384 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12385
12386 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12387 * memattr.c (create_mem_region): Disallow useless empty region.
12388 Regions are half-open intervals, so allow [A..B) [B..C) as
12389 non-overlapping.
12390
12391 2002-02-13 Michael Chastain <mec@shout.net>
12392
12393 * defs.h: Kill CONST_PTR.
12394 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12395 * c-lang.c (c_builtin_types): Likewise.
12396 * ch-lang.c (ch_builtin_types): Likewise.
12397 * f-lang.c (f_builtin_types): Likewise.
12398 * language.c (unknown_builtin_types): Likewise.
12399 * m2-lang.c (m2_builtin_types): Likewise.
12400 * p-lang.c (pascal_builtin_types): Likewise.
12401 * scm-lang.c (c_builtin_types): Likewise.
12402
12403 2002-02-13 Keith Seitz <keiths@redhat.com>
12404
12405 * arm-tdep.h (arm_get_next_pc): Add declaration.
12406
12407 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12408
12409 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12410 with other related struct-returning functions.
12411 (arm_extract_struct_value_address): New function.
12412 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12413 initialize float_format, double_format and long_double_format as
12414 appropriate to the endianness of the target.
12415 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12416 (arm_use_struct_convention): Delete declaration.
12417 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12418
12419 2002-02-13 Keith Seitz <keiths@redhat.com>
12420
12421 * defs.h (core_addr_to_string_nz): New function.
12422
12423 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12424
12425 Apply missing bits of 2002-01-15 patch.
12426 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12427 (fill_fpregset): Use i387_fill_fsave.
12428
12429 2002-02-12 Keith Seitz <keiths@redhat.com>
12430
12431 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12432 (core_addr_to_string_nz): New function.
12433
12434 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12435
12436 * arm-linux-nat.c: Really include arm-tdep.h.
12437 * config/arm/tm-linux.h (struct type, struct value): Declare.
12438
12439 2002-02-11 Michael Snyder <msnyder@redhat.com>
12440
12441 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12442 (gcore section): Ifdef for Solaris and Unixware only.
12443 (procfs_do_thread_registers): Unixware needs one lwpstatus
12444 per thread (not one prstatus or pstatus).
12445 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12446 not over all gdb threads. For unixware, call elfcore_write_pstatus
12447 once before iterating over threads.
12448
12449 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12450
12451 * arm-tdep.h: New file.
12452 * arm-tdep.c: Include arm-tdep.h.
12453 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12454 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12455 (arm_print_float_info, arm_register_type, convert_to_extended)
12456 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12457 (arm_extract_return_value, arm_register_name): Make static.
12458 (arm_software_single_step): Similarly. Fix types in declaration.
12459 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12460 (arm_store_return_value, arm_store_struct_return): New functions.
12461 (arm_gdbarch_init): Register the above functions. Also register
12462 call_dummy_start_offset, sizeof_call_dummy_words,
12463 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12464 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12465 max_register_virtual_size, register_size. Set up
12466 prologue_cache.saved_regs here, rather than ...
12467 (_initialize_arm_tdep): ... here.
12468 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12469 declarations.
12470 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12471 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12472 (arm_print_float_info, arm_register_type, convert_to_extended)
12473 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12474 (arm_extract_return_value, arm_register_name): Delete declarations.
12475 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12476 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12477 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12478 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12479 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12480 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12481 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12482 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12483 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12484 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12485 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12486 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12487 interface.
12488 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12489 * remote-rdi.c remote-rdp.c: Likewise.
12490 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12491 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12492 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12493 definition.
12494
12495 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12496 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12497 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12498 from non-ARM_ prefixed definitions.
12499 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12500 all uses of above.
12501 * remote-rdi.c remote-rdp.c: Likewise.
12502 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12503
12504 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12505
12506 * arm-tdep.c (arm_frameless_function_invocation)
12507 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12508 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12509 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12510 (arm_pop_frame, arm_get_next_pc): Make static.
12511 (arm_gdbarch_init): Register above in gdbarch structure.
12512 (arm_read_fp): Renamed from arm_target_read_fp.
12513 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12514 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12515 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12516 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12517 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12518 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12519 (arm_pc_is_thumb_dummy): Delete declarations.
12520 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12521 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12522 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12523 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12524
12525 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12526
12527 * symtab.c (compare_search_syms): New function.
12528 (sort_search_symbols): New function.
12529 (search_symbols): Sort symbols after searching rather than
12530 before.
12531
12532 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12533
12534 * NEWS: Linux -> GNU/Linux.
12535
12536 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12537
12538 * gdbarch.sh: For for level one methods, disallow a definition
12539 when partially multi-arched. Add comments explaining rationale.
12540 * gdbarch.h: Re-generate.
12541
12542 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12543
12544 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12545 multi-arch partial.
12546
12547 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12548
12549 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12550 field. Use diff -u.
12551 * gdbarch.c: Re-generate.
12552
12553 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12554
12555 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12556 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12557 partial.
12558
12559 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12560
12561 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12562 multi-arch partial.
12563 (PUSH_ARGUMENTS): Switch to using predefault.
12564 * gdbarch.c: Regenerate.
12565
12566 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12567
12568 * valops.c (PUSH_ARGUMENTS): Delete definition.
12569 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12570 partial. Default to default_push_arguments.
12571 * gdbarch.h, gdbarch.c: Regenerate.
12572
12573 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12574
12575 * defs.h (throw_exception): Rename return_to_top_level. Update
12576 comments.
12577 * utils.c (error_stream, internal_verror, quit): Ditto.
12578 * top.c (throw_exception, catcher): Ditto.
12579 * sparclet-rom.c (sparclet_load): Ditto.
12580 * remote.c (interrupt_query, minitelnet): Ditto.
12581 * remote-sds.c (interrupt_query): Ditto.
12582 * remote-mips.c (mips_error, mips_kill): Ditto.
12583 * ocd.c (interrupt_query): Ditto.
12584 * monitor.c (monitor_interrupt_query): Ditto.
12585 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12586 * target.h: Update comment.
12587
12588 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12589
12590 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12591
12592 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12593 default_double_format.
12594 * gdbarch.h, gdbarch.c: Re-generate.
12595 * findvar.c (floatformat_unknown): Delete variable definition.
12596 * doublest.h (floatformat_unknown): Delete variable declaration.
12597
12598 2002-02-09 Jim Blandy <jimb@redhat.com>
12599
12600 * stabsread.c (read_type): Add code to parse Sun's syntax for
12601 prototyped function types.
12602
12603 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12604
12605 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12606 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12607
12608 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12609
12610 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12611 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12612 now _initialize_xcoffsolib gets called again and overrides the
12613 commands from solib.c in a native configuration.
12614
12615 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12616
12617 * doublest.c (store_typed_floating): Don't try to return a value.
12618 Fixes PR gdb/290.
12619
12620 2002-02-08 Jim Blandy <jimb@redhat.com>
12621
12622 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12623 is prototyped and has no arguments, print its argument list as
12624 `(void)'.
12625
12626 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12627
12628 * MAINTAINERS (write-after-approval): Add myself.
12629 (paper-trail): I've escaped!
12630
12631 2002-02-08 Christopher Faylor <cgf@redhat.com>
12632
12633 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12634 changes.
12635 (_initialize_check_for_gdb_ini): Ditto.
12636
12637 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12638
12639 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12640 xaprintf -> xasprintf.
12641
12642 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12643
12644 * win32-nat.c: Remove use of printf and sprintf functions.
12645
12646 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12647
12648 * arm-tdep.c (arm_frame_chain_valid): Make static.
12649 (arm_push_arguments): Likewise.
12650 (arm_gdbarch_init): New function.
12651 (_initialize_arm_tdep): Call it.
12652 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12653 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12654 (FRAME_CHAIN_VALID): Delete.
12655 (arm_frame_chain_valid): Delete declaration.
12656 (PUSH_ARGUMENTS): Delete.
12657 (arm_push_arguments): Delete declaration.
12658 (CALL_DUMMY_P): Delete.
12659
12660 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12661 Corinna Vinschen <vinschen@redhat.com>
12662
12663 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12664 on builtin float types.
12665
12666 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12667
12668 * utils.c: Include <curses.h> before "bfd.h".
12669 * tui/tui-hooks.c: Likewise.
12670 * tui/tui.c: Likewise.
12671 * tui/tuiCommand.c: Likewise.
12672 * tui/tuiData.c: Likewise.
12673 * tui/tuiDataWin.c: Likewise.
12674 * tui/tuiDisassem.c: Likewise.
12675 * tui/tuiGeneralWin.c: Likewise.
12676 * tui/tuiIO.c: Likewise.
12677 * tui/tuiLayout.c: Likewise.
12678 * tui/tuiRegs.c: Likewise.
12679 * tui/tuiSource.c: Likewise.
12680 * tui/tuiSourceWin.c: Likewise.
12681 * tui/tuiStack.c: Likewise.
12682 * tui/tuiWin.c: Likewise.
12683
12684 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12685
12686 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12687 to include space for pseudoregs as well. Update loops accordingly.
12688 (sh_fp_frame_init_saved_regs): Ditto.
12689 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12690
12691 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12692
12693 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12694 Add Richard Earnshaw to Arm maintainers.
12695
12696 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12697
12698 * defs.h (warning_begin): Delete declaration.
12699
12700 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12701 Delete macro.
12702
12703 2002-02-07 Michael Snyder <msnyder@redhat.com>
12704
12705 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12706 Logic bug, remove misplaced else.
12707
12708 2002-02-07 Klee Dienes <klee@apple.com>
12709
12710 * fork-inferior.c (fork_inferior): Add '!' to the list of
12711 characters that need to be quoted when building a string for the
12712 shell. Quote '!' specifically with a backslash, since CSH chokes
12713 when trying to evaluate "str!str".
12714
12715 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12716
12717 * rdi-share/host.h: Only provide a typedef for bool if it is not
12718 defined.
12719
12720 2002-02-04 Michael Snyder <msnyder@redhat.com>
12721
12722 * breakpoint.h (enum bptype): Add new overlay event bp type.
12723 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12724
12725 * breakpoint.c (create_internal_breakpoint): New function.
12726 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12727 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12728 (create_thread_event_breakpoint): Ditto.
12729 (create_solib_event_breakpoint): Ditto.
12730 (create_overlay_event_breakpoint): New function.
12731 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12732 (update_breakpoints_after_exec): Delete and re-initialize
12733 overlay event breakpoints after an exec. Add FIXME comment
12734 about longjmp breakpoint.
12735 (print_it_typical): Ignore overlay event breakpoints.
12736 (print_one_breakpoint): Ditto.
12737 (mention): Ditto.
12738 (bpstat_what): Do not stop for overlay event breakpoints.
12739 (delete_breakpoint): Don't delete overlay event breakpoints.
12740 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12741 (breakpoint_re_set): Re-create overlay event breakpoint.
12742
12743 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12744 (overlay_manual_command): Disable overlay breakpoints.
12745 (overlay_off_command): Disable overlay breakpoints.
12746
12747 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12748
12749 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12750 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12751 to here from config/tm-arm.h.
12752 (coff_sym_is_thumb): Make static.
12753 (arm_elf_make_msymbol_special): New function.
12754 (arm_coff_make_msymbol_special): New function.
12755 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12756 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12757 (coff_sym_is_thumb): Delete declaration.
12758 (arm_elf_make_msymbol_special): Declare.
12759 (arm_coff_make_msymbol_special): Declare.
12760 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12761 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12762
12763 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12764
12765 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12766
12767 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12768
12769 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12770 * gdbarch.c gdbarch.h: Regenerate.
12771 * arch-utils.c (default_print_float_info): New function.
12772 * arch-utils.h (default_print_float_info): Prototype it.
12773 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12774 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12775 (PRINT_FLOAT_INFO): Document it.
12776
12777 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12778 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12779 (PRINT_FLOAT_INFO): Define.
12780
12781 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12782
12783 * win32-nat.c (_initialize_check_for_gdb_ini):
12784 Add typecast to sprintf argument to suppress a warning.
12785
12786 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12787
12788 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12789 to allow easier handling of pass state.
12790 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12791 that gives exception name and address.
12792 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12793 and set last_sig value to ourstatus->value.sig. Some missing
12794 exceptions added.
12795 (child_continue): Correctly report continue_status.
12796 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12797 TARGET_SIGNAL_0 (new default value).
12798 (child_resume): consider sig argument passed to decide if
12799 the exception should be passed to debuggee or not.
12800
12801 2002-02-05 Michael Snyder <msnyder@redhat.com>
12802
12803 * regcache.c (fetch_register): Call target_fetch_register
12804 only if we don't call FETCH_PSEUDO_REGISTER.
12805 (store_register): Call target_store_register only if we
12806 don't call STORE_PSEUDO_REGISTER.
12807
12808 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12809
12810 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12811 ELF_MAKE_MSYMBOL_SPECIAL.
12812 * gdbarch.c, gdbarch.h: Regenerate.
12813 * arch-utils.c (default_make_msymbol_special): New function.
12814 * arch-utils.h (default_make_msymbol_special): Export.
12815 * elfread.c (elf_symtab_read): Compile use of
12816 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12817 multiarched.
12818 * coffread.c (coff_symtab_read): Ditto, for
12819 COFF_MAKE_MSYMBOL_SPECIAL.
12820
12821 2002-02-05 Jim Blandy <jimb@redhat.com>
12822
12823 * solib-svr4.c (svr4_truncate_ptr): New function.
12824 (svr4_relocate_section_addresses): Do the address arithmetic with
12825 the appropriate truncation for target addresses, even when
12826 CORE_ADDR is larger than a target address.
12827
12828 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12829
12830 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12831 to (int *).
12832
12833 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12834
12835 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12836 code.
12837
12838 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12839
12840 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12841
12842 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12843
12844 * gdbserver/linux-low.c: Remove unused include files.
12845
12846 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12847
12848 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12849 (read_inferior_memory): Use it.
12850 (write_inferior_memory): Likewise.
12851
12852 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12853
12854 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12855 grubbing through sys_errlist.
12856
12857 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12858
12859 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12860
12861 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12862 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12863
12864 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12865
12866 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12867 (do_sfunc, set_cmd_sfunc): New functions.
12868
12869 * command.h (struct cmd_list_element): Add field func.
12870 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12871 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12872 * cli/cli-decode.h: Ditto.
12873
12874 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12875 (help_all, help_cmd_list): Ditto.
12876 (find_cmd, complete_on_cmdlist): Ditto.
12877 * top.c (execute_command): Ditto.
12878
12879 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12880 function.sfunc.
12881
12882 * infcmd.c (notice_args_read): Fix function signature.
12883
12884 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12885 * cli/cli-decode.c (add_set_cmd): Ditto.
12886 * utils.c (initialize_utils): Ditto.
12887 * maint.c (_initialize_maint_cmds): Ditto.
12888 * infrun.c (_initialize_infrun): Ditto.
12889 * demangle.c (_initialize_demangler): Ditto.
12890 * remote.c (add_packet_config_cmd): Ditto.
12891 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12892 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12893 * proc-api.c (_initialize_proc_api): Ditto.
12894 * kod.c (_initialize_kod): Ditto.
12895 * valprint.c (_initialize_valprint): Ditto.
12896 * top.c (init_main): Ditto.
12897 * infcmd.c (_initialize_infcmd): Ditto.
12898 * corefile.c (_initialize_core): Ditto.
12899 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12900 * arch-utils.c (initialize_current_architecture): Ditto.
12901 (_initialize_gdbarch_utils): Ditto.
12902 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12903
12904 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12905 * wince.c (_initialize_inftarg): Ditto.
12906 * symfile.c (_initialize_symfile): Ditto.
12907 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12908 * language.c (_initialize_language): Ditto.
12909 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12910
12911 2002-02-04 Michael Snyder <msnyder@redhat.com>
12912
12913 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12914
12915 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12916
12917 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12918 Add rules for building the register data files.
12919
12920 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12921
12922 * regformats/regdat.sh: Add braces to the definition of
12923 expedite_regs_${arch}.
12924
12925 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12926
12927 * regformats/regdef.h (struct reg): Add comment describing the
12928 requirements for offset and size fields.
12929
12930 2002-02-04 Andreas Schwab <schwab@suse.de>
12931
12932 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12933 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12934
12935 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12936
12937 * gdbarch.sh (copyright): Update years in generated header.
12938 (SMASH_TEXT_ADDRESS): Add rule.
12939 * gdbarch.h, gdbarch.c: Re-generate.
12940 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12941 * dbxread.c: Likewise.
12942 * dwarfread.c: Likewise.
12943 * elfread.c: Likewise.
12944 * somread.c: Likewise.
12945
12946 * arm-tdep.c (arm_smash_text_address): New function.
12947 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12948
12949 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12950
12951 Add support for hardware watchpoints on win32 native.
12952 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12953 CONTEXT_DEBUG_REGISTERS.
12954 (dr variable): New variable. Static array containing a local copy
12955 of debug registers.
12956 (debug_registers_changed): New variable. Reflects when debug registers
12957 are changed and need to be written to inferior.
12958 (debug_registers_used): New variable. Reflects when any debug register
12959 was set, used when new threads are created.
12960 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12961 i386-nat code.
12962 (thread_rec): Set dr array if id is the thread of current_event .
12963 (child_continue, child_resume): Change the debug registers for all
12964 threads if debug_registers_changed.
12965 (child_add_thread): Change the debug registers if debug_registers_used.
12966 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12967 Link nm.h to new nm-cygwin.h file.
12968 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12969 of hardware registers.
12970
12971 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12972
12973 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12974 Restore behavour broken by 2002-01-20 Andrew Cagney
12975 <ac131313@redhat.com> IEEE_FLOAT removal.
12976
12977 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12978
12979 * c-valprint.c (c_val_print): Pass a proper valaddr to
12980 cp_print_class_method.
12981 * valops.c (search_struct_method): If there is only one method
12982 and args is NULL, return that method.
12983
12984 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12985
12986 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12987 accessing tag_name directly.
12988
12989 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12990
12991 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12992 of accessing tag_name directly.
12993
12994 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12995
12996 PR gdb/280
12997 * gdbtypes.c (replace_type): New function.
12998 * gdbtypes.h (replace_type): Add prototype.
12999 * stabsread.c (read_type): Use replace_type.
13000
13001 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13002
13003 * Makefile.in (memattr.o): Add missing dependencies rule.
13004
13005 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13006
13007 * breakpoint.c (break_at_finish_command): Really export.
13008 (break_at_finish_at_depth_command): Ditto.
13009 (tbreak_at_finish_command): Ditto.
13010 * hppa-tdep.c: Include completer.h.
13011 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13012 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13013
13014 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13015
13016 * utils.c (do_write): New function.
13017 (error_stream): Rewrite combining the code from error_begin and
13018 verror.
13019 (verror): Rewrite using error_stream.
13020 (error_begin): Delete function.
13021
13022 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13023
13024 * utils.c (error_begin): Make static.
13025 * defs.h (error_begin): Delete declaration.
13026
13027 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13028 (decode_line_1): Use cplusplus_error instead of error_begin,
13029 cplusplus_hint and return_to_top_level.
13030 * coffread.c (coff_symfile_read): Use error instead of error_begin
13031 and return_to_top_level.
13032 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13033
13034 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13035
13036 * language.h (type_error, range_error): Make string parameter
13037 constant.
13038 * language.c (warning_pre_print): Delete extern declaration.
13039 * dwarfread.c (warning_pre_print): Ditto.
13040 * language.c (type_error, range_error): Rewrite to use verror and
13041 vwarning instead of warning_begin.
13042
13043 2002-02-01 Michael Snyder <msnyder@redhat.com>
13044
13045 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13046 (set_ignore_count): Move misplaced comment back where it belongs.
13047
13048 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13049
13050 * command.h (NO_FUNCTION): Delete macro.
13051 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13052 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13053 * tracepoint.c (_initialize_tracepoint): Ditto.
13054 * cli/cli-decode.c (add_set_cmd): Ditto.
13055 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13056
13057 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13058
13059 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13060 Update ``this'' pointer when calling virtual functions.
13061
13062 2002-02-01 Michael Snyder <msnyder@redhat.com>
13063
13064 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13065 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13066
13067 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13068
13069 * regformats/reg-arm.dat: New file.
13070 * regformats/reg-i386.dat: New file.
13071 * regformats/reg-ia64.dat: New file.
13072 * regformats/reg-m68k.dat: New file.
13073 * regformats/reg-mips.dat: New file.
13074 * regformats/reg-ppc.dat: New file.
13075 * regformats/reg-sh.dat: New file.
13076 * regformats/regdef.h: New file.
13077 * regformats/regdat.sh: New file.
13078
13079 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13080
13081 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13082 (arm_frame_args_address, arm_frame_locals_address): New functions.
13083 (arm_frame_num_args): New function.
13084 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13085 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13086 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13087
13088 2002-01-31 Michael Snyder <msnyder@redhat.com>
13089
13090 * breakpoint.c (break_at_finish_command): Export.
13091 (break_at_finish_at_depth_command): Export.
13092 (tbreak_at_finish_command): Export.
13093 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13094 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13095 "txbreak" commands, which are HPPA specific.
13096
13097 * printcmd.c (disassemble_command): Remove an ancient
13098 artifact of an old merge.
13099
13100 * symfile.h (enum overlay_debugging_state):
13101 Define enum constant values for overlay mode.
13102 * symfile.c (overlay_debugging): Use enums instead of literals.
13103 (overlay_is_mapped, overlay_auto_command,
13104 overlay_manual_command): Ditto.
13105
13106 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13107 breakpoint_here_p, breakpoint_inserted_here_p,
13108 breakpoint_thread_match, bpstat_stop_status,
13109 describe_other_breakpoints, check_duplicates, clear_command):
13110 Coding standard fixes.
13111
13112 * target.c (target_xfer_memory): Add spaces, coding standard.
13113 (do_xfer_memory): Add missing line to trust-readonly
13114 code: check bfd SEC_READONLY flag for section.
13115
13116 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13117
13118 * PROBLEMS: Fix typo, 5.1->5.1.1.
13119
13120 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13121
13122 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13123 data symbols, since we search based on textlow and texthigh.
13124 (find_pc_sect_symtab): Likewise.
13125
13126 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13127
13128 * defs.h (vwarning): Declare.
13129 * utils.c (vwarning): New function.
13130 (warning): Call vwarning.
13131 (warning_begin): Delete function.
13132
13133 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13134 the warning message.
13135 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13136 warning_begin.
13137
13138 2002-01-30 Michael Snyder <msnyder@redhat.com>
13139
13140 * NEWS: Mention "set trust-readonly-sections" command.
13141 Mention generate-core-file command.
13142
13143 2002-01-15 Michael Snyder <msnyder@redhat.com>
13144
13145 * target.c: New command, "set trust-readonly-sections on".
13146 (do_xfer_memory): Honor the suggestion to trust readonly sections
13147 by reading them from the object file instead of from the target.
13148 (initialize_targets): Register command "set trust-readonly-sections".
13149
13150 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13151
13152 * parse.c (target_map_name_to_register): Simplify, search regs and
13153 pseudo-regs using a single loop.
13154
13155 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13156
13157 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13158
13159 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13160
13161 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13162 * config/i386/i386v42mp.mh: Add i387-nat.o .
13163 * i386v4-nat.c: Include i387-nat.h.
13164 (supply_fpregset): Use i387_supply_fsave.
13165 (fill_fpregset): Use i387_fill_fsave.
13166
13167 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13168
13169 * arm-tdep.c (arm_call_dummy_words): Define.
13170 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13171 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13172 (CALL_DUMMY_WORDS): Define.
13173 (arm_call_dummy_words): Declare.
13174 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13175 (arm_linux_call_dummy_words): Declare.
13176
13177 2002-01-30 Andreas Schwab <schwab@suse.de>
13178
13179 * m68klinux-nat.c: Fix last change to use regcache_collect
13180 instead of referencing registers[] directly.
13181
13182 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13183
13184 * parse.c (target_map_name_to_register): Delete code wrapped in
13185 #ifdef REGISTER_NAME_ALIAS_HOOK.
13186
13187 2002-01-28 Michael Snyder <msnyder@redhat.com>
13188
13189 * regcache.c (legacy_read_register_gen): Need to be able to
13190 read pseudo-register as well as real register.
13191 (legacy_write_register_gen): Ditto.
13192
13193 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13194
13195 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13196 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13197 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13198 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13199 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13200 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13201 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13202 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13203 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13204 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13205 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13206 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13207 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13208 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13209 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13210 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13211 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13212 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13213 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13214 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13215
13216 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13217
13218 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13219 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13220 (initialize_current_architecture): Update target_byte_order using
13221 information from BFD.
13222 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13223 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13224
13225 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13226
13227 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13228 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13229
13230 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13231 #ifdef INVALID_FLOAT.
13232 * infcmd.c (do_registers_info): Ditto.
13233 * values.c (unpack_double): Ditto. Add comment.
13234
13235 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13236 already commented out.
13237
13238 2002-01-26 Andreas Schwab <schwab@suse.de>
13239
13240 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13241 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13242 registers and add support for PTRACE_GETREGS.
13243
13244 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13245
13246 GDB 5.1.1 released from 5.1 branch.
13247 * NEWS: Add 5.1.1 news.
13248 * README: Sync with 5.1 branch.
13249
13250 2002-01-23 Fred Fish <fnf@redhat.com>
13251
13252 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13253 stabstring on initial malloc. Reallocing will copy it for us,
13254 if necessary.
13255
13256 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13257
13258 * Makefile.in (hpread_h): Delete.
13259 (HFILES_NO_SRCDIR): Remove hpread.h.
13260 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13261 (hpread.o): Update dependencies.
13262 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13263
13264 * hp-psymtab-read.c: Remove file.
13265 * hp-symtab-read.c: Remove file.
13266 * hpread.h: Remove file.
13267
13268 * hpread.c: Merge all contents of hp-psymtab-read.c,
13269 hp-symtab-read.c and hpread.h into this file, as it was prior to
13270 January 1999.
13271
13272 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13273 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13274 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13275 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13276
13277 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13278
13279 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13280 fill_gregset): Call gdbarch_tdep() just once, assign result to
13281 variable and use that, instead of calling the function several
13282 times.
13283
13284 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13285
13286 * configure.host: Accept sparcv9 as alias for sparc64.
13287 * configure.tgt: Likewise.
13288
13289 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13290
13291 * solib-aix5.c (build_so_list_from_mapfile)
13292 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13293 arguments is not reversed.
13294 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13295 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13296
13297 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13298
13299 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13300 modified version of obsolete sh_fetch_pseudo_register.
13301 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13302 (sh4_register_read): New function.
13303 (sh_pseudo_register_write): New function. Renamed and modified
13304 version of obsolete sh_store_pseudo_register.
13305 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13306 (sh4_register_write): New function.
13307 (sh_gdbarch_init): Remove setting of gdbarch function
13308 fetch_pseudo_register and store_pseudo_register. Remove setting of
13309 register_convert_to_raw, register_convert_to_virtual,
13310 register_convertible.
13311 (sh_sh4_register_convertible): Delete. No longer needed. All is
13312 taken care by architecture specific functions
13313 register_read/register_write.
13314 (sh_sh4_register_convert_to_virtual): Make static.
13315 (sh_sh4_register_convert_to_raw): Ditto.
13316
13317 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13318
13319 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13320 (floatformat_is_nan, floatformat_mantissa): Ditto.
13321
13322 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13323 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13324 builtin_type_ieee_double_little,
13325 builtin_type_ieee_double_littlebyte_bigword,
13326 builtin_type_m68881_ext, builtin_type_i960_ext,
13327 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13328 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13329 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13330 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13331
13332 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13333
13334 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13335 parameter. Set frameless flag if it exists and depended of
13336 whether the scanned function is frameless or not.
13337 (xstormy16_skip_prologue): If function is frameless, return
13338 result of xstormy16_scan_prologue().
13339 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13340 call.
13341
13342 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13343
13344 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13345 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13346 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13347 sh_sh4_register_byte, sh_sh4_register_raw_size,
13348 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13349 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13350 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13351 sh_store_pseudo_register, sh_do_pseudo_register): Call
13352 gdbarch_tdep() just once, assign result to variable and use that,
13353 instead of calling the function several times.
13354
13355 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13356
13357 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13358 macros instead of LAST_FPU_CTRL_REGNUM.
13359 (store_register): Likewise.
13360
13361 2002-01-21 Jim Blandy <jimb@redhat.com>
13362
13363 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13364 is up-to-date before running the program, not just when a program
13365 exits.
13366
13367 2002-01-21 Fred Fish <fnf@redhat.com>
13368
13369 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13370 when we have found all instructions we are looking for.
13371
13372 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13373
13374 * arm-tdep.c (arm_register_name): New function.
13375 (arm_registers_names): Make static.
13376 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13377 (arm_register_name): Declare.
13378 (REGISTER_NAME): Use it.
13379
13380 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13381 Kevin Buettner <kevinb@redhat.com>
13382
13383 Convert arm targets to new FRAME interface.
13384 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13385 (arm_frame_find_save_regs): Delete.
13386 (arm_frame_init_saved_regs): New.
13387 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13388 Allocate extra_info as required. Convert all uses of fsr.regs
13389 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13390 to use extra_info.
13391 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13392 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13393 (check_prologue_cache, save_prologue_cache): Likewise.
13394 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13395 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13396 (FRAME_FIND_SAVED_REGS): Delete.
13397 (arm_frame_find_saved_regs): Delete prototype.
13398 (arm_frame_init_saved_regs): New prototype.
13399 (FRAME_INIT_SAVED_REGS): Define.
13400
13401 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13402
13403 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13404
13405 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13406
13407 From Jeff Law <law@redhat.com>:
13408 * infttrace.c: Include <sys/pstat.h>.
13409 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13410 exec file if the ttrace equivalent fails.
13411
13412 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13413
13414 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13415 (closeLogFile): Ditto.
13416
13417 2002-01-20 Michael Chastain <mec@shout.net>
13418
13419 * top.c (print_gdb_version): Bump copyright year to 2002.
13420
13421 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13422
13423 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13424 Zannoni and Eli Zaretskii.
13425
13426 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13427
13428 * buildsym.c: Update copyright years.
13429 * c-typeprint.c: Likewise.
13430 * dwarf2read.c: Likewise.
13431 * f-typeprint.c: Likewise.
13432 * gdbtypes.c: Likewise.
13433 * gdbtypes.h: Likewise.
13434 * hp-symtab-read.c: Likewise.
13435 * hpread.c: Likewise.
13436 * mdebugread.c: Likewise.
13437 * p-typeprint.c: Likewise.
13438
13439 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13440
13441 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13442 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13443 byte-order selectable.
13444 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13445 * arch-utils.c: Ditto.
13446 (set_endian): Ditto.
13447 (set_endian_from_file): Ditto.
13448 * gdbserver/low-sim.c (create_inferior): Ditto.
13449 * gdbarch.sh: Ditto.
13450 * gdbarch.h: Re-generate.
13451 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13452 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13453 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13454 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13455 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13456 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13457 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13458 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13459 macro definition.
13460 * config/mips/tm-wince.h: Remove #undef of macro
13461 TARGET_BYTE_ORDER_SELECTABLE.
13462 * config/sh/tm-wince.h: Ditto.
13463
13464 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13465
13466 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13467 member function fields. Add accessor macro
13468 TYPE_FN_FIELD_ARTIFICIAL.
13469 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13470 * c-typeprint.c (c_type_print_base): Skip artificial member
13471 functions.
13472
13473 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13474
13475 * f-typeprint.c: Delete unused function f_type_print_args.
13476 * p-typeprint.c: Delete unused function pascal_type_print_args.
13477
13478 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13479
13480 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13481 comment. Add ``artificial'' to ``union field_location''.
13482
13483 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13484
13485 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13486 * mdebugread.c (parse_symbol): Likewise.
13487 * stabsread.c (define_symbol): Likewise.
13488 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13489 initializing TYPE_FIELD_BITPOS to n (obsolete).
13490 (hpread_doc_function_type): Likewise.
13491 * hpread.c (hpread_function_type): Likewise.
13492
13493 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13494
13495 * configure.in (host_makefile_frag): Only require a host makefile
13496 fragment when a native build.
13497 * configure: Re-generate.
13498
13499 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13500
13501 * doublest.h (floatformat_from_type): Declare.
13502 * doublest.c (floatformat_from_type): New function.
13503 (convert_typed_floating): Use.
13504
13505 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13506 call to function floatformat_from_type.
13507
13508 * gdbarch.sh (IEEE_FLOAT): Delete.
13509 * gdbarch.h, gdbarch.c: Re-generate.
13510 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13511 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13512 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13513 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13514 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13515 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13516 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13517 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13518 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13519 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13520 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13521 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13522
13523 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13524 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13525 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13526 * sh-tdep.c (sh_gdbarch_init): Ditto.
13527 * mips-tdep.c (mips_gdbarch_init): Ditto.
13528 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13529 * cris-tdep.c (cris_gdbarch_init): Ditto.
13530
13531 2002-01-20 Jiri Smid <smid@suse.cz>
13532
13533 * configure.host, configure.tgt: Support x86-64.
13534 * NEWS: Note new target x86-64.
13535
13536 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13537 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13538 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13539 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13540 x86-64-linux-nat.o): Fix dependencies.
13541
13542 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13543
13544 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13545 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13546 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13547 * config/sparc/xm-sun4os4.h: Delete file.
13548 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13549
13550 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13551
13552 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13553 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13554 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13555 * config/i386/i386lynx.mh (XM_FILE): Delete.
13556 * config/rs6000/xm-rs6000ly.h: Delete file.
13557 * config/sparc/xm-sparclynx.h: Delete file.
13558 * config/m68k/xm-m68klynx.h: Delete file.
13559 * config/i386/xm-i386lynx.h: Delete file.
13560 * config/xm-lynx.h: Delete file.
13561 * config/djgpp/fnchange.lst: Update.
13562
13563 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13564
13565 * alpha-tdep.c (alpha_register_byte): New function.
13566 (alpha_register_raw_size): Ditto.
13567 (alpha_register_virtual_size): Ditto.
13568 (alpha_skip_prologue_internal): Renamed from
13569 alpha_skip_prologue.
13570 (alpha_skip_prologue): New version that calls
13571 alpha_skip_prologue_internal.
13572 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13573 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13574 second argument from alpha_skip_prologue.
13575 (REGISTER_BYTE): Use alpha_register_byte.
13576 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13577 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13578 (FRAMELESS_FUNCTION_INVOCATION): Use
13579 generic_frameless_function_invocation_not.
13580 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13581 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13582
13583 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13584
13585 * config/mips/xm-news-mips.h: Delete file.
13586 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13587
13588 * config/m88k/xm-m88k.h: Delete file.
13589 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13590 * config/m88k/xm-delta88v4.h: Ditto.
13591 * config/m88k/xm-delta88.h: Ditto.
13592
13593 * config/alpha/xm-fbsd.h: Delete file.
13594 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13595
13596 * config/sparc/xm-sparc.h: Delete file.
13597 * Makefile.in (xm-sun4os4.h): Delete dependency.
13598 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13599 * config/sparc/xm-sun4os4.h: Ditto.
13600 * config/sparc/xm-linux.h: Ditto.
13601
13602 * config/i386/xm-windows.h: Delete file.
13603
13604 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13605
13606 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13607 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13608
13609 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13610
13611 * alpha-tdep.c (alpha_call_dummy_words): New.
13612 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13613 (CALL_DUMMY_P): Define.
13614 (CALL_DUMMY_WORDS): Define.
13615 (SIZEOF_CALL_DUMMY_WORDS): Define.
13616
13617 2002-01-19 Per Bothner <per@bothner.com>
13618
13619 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13620 isn't NULL, which can happen with some gcj-3.x-produced code.
13621
13622 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13623
13624 * alpha-tdep.c (alpha_register_virtual_type): New function.
13625 (alpha_init_frame_pc_first): Ditto.
13626 (alpha_fix_call_dummy): Ditto.
13627 (alpha_store_struct_return): Ditto.
13628 (alpha_extract_struct_value_address): Ditto.
13629 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13630 alpha_register_virtual_type.
13631 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13632 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13633 alpha_extract_struct_value_address.
13634 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13635 (INIT_FRAME_PC): Use init_frame_pc_noop.
13636 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13637
13638 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13639
13640 * i386gnu-nat.c: Include "i386-tdep.h".
13641 (fetch_fpregs): Simplify code dealing with uninitialized floating
13642 point states such that it doesn't require FP7_REGNUM.
13643
13644 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13645
13646 * alpha-tdep.c (frame_extra_info): New.
13647 (alpha_find_saved_regs): Make static. Use
13648 frame->extra_info.
13649 (alpha_frame_init_saved_regs): New function.
13650 (alpha_frame_saved_pc): Use frame->extra_info.
13651 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13652 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13653 (init_extra_frame_info): Rename to...
13654 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13655 (alpha_print_extra_frame_info): New function.
13656 (alpha_frame_locals_address): Ditto.
13657 (alpha_frame_args_address): Ditto.
13658 (alpha_pop_frame): Use frame->extra_info.
13659 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13660 alpha_frame_args_address.
13661 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13662 (alpha_find_saved_regs): Remove prototype.
13663 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13664 (EXTRA_FRAME_INFO): Remove.
13665 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13666 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13667
13668 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13669
13670 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13671 (alpha_cannot_fetch_register): Ditto.
13672 (alpha_cannot_store_register): Ditto.
13673 (alpha_register_convertible): Ditto.
13674 (alpha_use_struct_convention): Ditto.
13675 * config/alpha/tm-alpha.h: Update copyright years.
13676 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13677 (INNER_THAN): Use core_addr_lessthan.
13678 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13679 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13680 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13681 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13682 (FRAME_CHAIN): Remove unnecessary cast.
13683
13684 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13685
13686 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13687 obsolete.
13688
13689 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13690
13691 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13692 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13693 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13694 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13695 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13696 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13697 * x86-64-linux-nat.c: Ditto.
13698
13699 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13700
13701 * alpha-tdep.c (alpha_register_name): New function.
13702 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13703 (REGISTER_NAME): Define.
13704
13705 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13706
13707 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13708
13709 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13710
13711 * alpha-tdep.c: Update copyright years.
13712 (alpha_next_pc): New function.
13713 (alpha_software_single_step): Ditto.
13714 * config/alpha/tm-alpha.h: Add prototype for
13715 alpha_software_single_step.
13716
13717 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13718
13719 * alphabsd-nat.c: Update copyright years.
13720 (fill_gregset): Use regcache_collect.
13721 (fill_fpregset): Likewise.
13722 (fetch_inferior_registers): Only fetch integer registers
13723 if requested to do so.
13724 (store_inferior_registers): Only store integer registers
13725 if requested to do so.
13726
13727 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13728
13729 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13730 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13731 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13732 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13733 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13734 * config/arm/linux.mh (XDEPFILES): Delete.
13735 * config/arm/nbsd.mh (XDEPFILES): Delete.
13736 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13737 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13738 * config/i386/i386m3.mh (XDEPFILES): Delete.
13739 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13740 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13741 * config/i386/fbsd.mh (XDEPFILES): Delete.
13742 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13743 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13744 * config/i386/i386v4.mh (XDEPFILES): Delete.
13745 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13746 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13747 * config/i386/i386aix.mh (XDEPFILES): Delete.
13748 * config/i386/go32.mh (XDEPFILES): Delete.
13749 * config/i386/cygwin.mh (XDEPFILES): Delete.
13750 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13751 * config/i386/i386mach.mh (XDEPFILES): Delete.
13752 * config/i386/i386v32.mh (XDEPFILES): Delete.
13753 * config/i386/linux.mh (XDEPFILES): Delete.
13754 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13755 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13756 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13757 * config/i386/i386sco.mh (XDEPFILES): Delete.
13758 * config/i386/i386v.mh (XDEPFILES): Delete.
13759 * config/i386/nbsd.mh (XDEPFILES): Delete.
13760 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13761 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13762 * config/i386/symmetry.mh (XDEPFILES): Delete.
13763 * config/i386/obsd.mh (XDEPFILES): Delete.
13764 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13765 * config/ia64/linux.mh (XDEPFILES): Delete.
13766 * config/ia64/aix.mh (XDEPFILES): Delete.
13767 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13768 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13769 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13770 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13771 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13772 * config/m68k/linux.mh (XDEPFILES): Delete.
13773 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13774 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13775 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13776 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13777 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13778 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13779 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13780 * config/m88k/delta88.mh (XDEPFILES): Delete.
13781 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13782 * config/m88k/m88k.mh (XDEPFILES): Delete.
13783 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13784 * config/mips/linux.mh (XDEPFILES): Delete.
13785 * config/mips/irix6.mh (XDEPFILES): Delete.
13786 * config/mips/irix5.mh (XDEPFILES): Delete.
13787 * config/mips/irix4.mh (XDEPFILES): Delete.
13788 * config/mips/irix3.mh (XDEPFILES): Delete.
13789 * config/mips/decstation.mh (XDEPFILES): Delete.
13790 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13791 (NATDEPFILES): Move core-aout.o to here.
13792 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13793 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13794 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13795 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13796 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13797 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13798 * config/pa/hpux11.mh (XDEPFILES): Delete.
13799 * config/powerpc/aix.mh (XDEPFILES): Delete.
13800 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13801 * config/powerpc/linux.mh (XDEPFILES): Delete.
13802 * config/romp/rtbsd.mh: Rename XDEPFILES.
13803 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13804 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13805 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13806 * config/s390/s390.mh (XDEPFILES): Delete.
13807 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13808 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13809 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13810 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13811 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13812 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13813 * config/sparc/linux.mh (XDEPFILES): Delete.
13814 * config/vax/vaxult.mh (XDEPFILES): Delete.
13815 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13816 * Makefile.in (DEPFILES): Remove XDEPFILES.
13817
13818 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13819
13820 * utils.c (internal_verror): Fix comments, default is yes not no.
13821 Update queries to match. Default to quit and dump core.
13822
13823 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13824
13825 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13826 copyright.
13827 * defs.h, event-top.c, gdbcmd.h: Ditto.
13828 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13829 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13830 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13831 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13832 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13833 * mi/mi-main.c:Ditto.
13834
13835 * stack.c, symfile.c: Update copyright.
13836
13837 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13838
13839 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13840 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13841 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13842 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13843
13844 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13845
13846 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13847 * gdbserver/low-lynx.c (myattach): Likewise.
13848 * gdbserver/low-nbsd.c (myattach): Likewise.
13849 * gdbserver/low-sim.c (myattach): Likewise.
13850 * gdbserver/low-sparc.c (myattach): Likewise.
13851 * gdbserver/low-sun3.c (myattach): Likewise.
13852
13853 * gdbserver/low-linux.c (myattach): New function.
13854
13855 * gdbserver/server.c (attach_inferior): New function.
13856 (main): Handle "--attach".
13857
13858 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13859
13860 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13861 maintainer.
13862
13863 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13864
13865 * c-typeprint.c (is_type_conversion_operator): Add additional
13866 check for non-conversion operators.
13867
13868 2002-01-15 Michael Snyder <msnyder@redhat.com>
13869
13870 * linux-proc.c: Add "info proc" command, a la procfs.c.
13871 (read_mapping): New function, abstract and re-use code.
13872 (linux_find_memory_regions): Use new func read_mapping.
13873 (linux_info_proc_cmd): New function, implement "info proc".
13874 (_initialize_linux_proc): Add new command "info proc".
13875
13876 2002-01-15 Michael Snyder <msnyder@redhat.com>
13877
13878 * symfile.c (generic_load): Use bfd_map_over_sections method
13879 instead of manipulating bfd structure members directly.
13880 (add_section_size_callback): New function, bfd sections callback
13881 used by generic_load.
13882 (load_sections_callback): New function, bfd sections callback
13883 used by generic_load.
13884
13885 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13886
13887 [Based on work by Jim Blandy]
13888 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13889 (builtin_type_vec128): Export.
13890 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13891 types.
13892 (builtin_type_vec128): New builtin type for 128 bit vector
13893 registers.
13894 (build_gdbtypes): Initialize builtin_type_v16qi and
13895 builtin_type_v8hi. Create the vec128 register builtin type
13896 structure.
13897 (build_builtin_type_vec128): New function.
13898 (_initialize_gdbtypes): Register builtin_type_v16qi and
13899 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13900 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13901 AltiVec register to new builtin type.
13902
13903 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13904
13905 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13906 to make_cv_type.
13907
13908 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13909
13910 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13911 CLEAN_UP_REGISTER_VALUE.
13912 * regcache.c (supply_register): Update only call.
13913
13914 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13915
13916 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13917 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13918 a29k-*-vxworks* targets as obsolete.
13919
13920 2002-01-14 Michael Snyder <msnyder@redhat.com>
13921
13922 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13923 until we can resolve portability issues.
13924 * gregset.h: Remove references to fpxregs.
13925 * gcore.c (gcore_command): Initialize note_sec to NULL.
13926
13927 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13928
13929 * signals.c (target_signal_to_name): Rewrite. Only use
13930 signals[].name when in bounds and non-NULL.
13931
13932 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13933
13934 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13935 * signals.c (target_signal_to_name): Verify that SIG is within the
13936 bounds of the signals array.
13937
13938 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13939
13940 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13941
13942 2002-01-13 Keith Seitz <keiths@redhat.com>
13943
13944 * stack.c (print_frame_info_base): Print the frame's pc
13945 only if when print_frame_info_listing_hook is not defined.
13946
13947 2002-01-13 Keith Seitz <keiths@redhat.com>
13948
13949 * varobj.c (varobj_set_value): Make sure that there were no
13950 errors evaluating the object before attempting to set its
13951 value.
13952 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13953 so this offset adjustment is no longer necessary.
13954 (create_child): Don't set the error flag if the child is
13955 a CPLUS_FAKE_CHILD.
13956 (value_of_child): If value_fetch_lazy fails, return NULL
13957 so that callers will be notified that an error occurred.
13958 (c_value_of_variable): Delay check of variable's validity
13959 until later. We actually want all structs and unions to have
13960 the value "{...}".
13961 Do not return "???" for variables which could not be evaluated.
13962 This error condition must be returned to the caller so that it
13963 can get the error condition from gdb.
13964 (cplus_name_of_child): Adjust index for vptr before figuring
13965 out the name of the child.
13966 (cplus_value_of_child): If a child's (real) parent is not valid,
13967 don't even bother trying to give a value for it. Just return
13968 an error. Change all instances in this function.
13969 (cplus_type_of_child): If our parent is one of the "fake"
13970 parents, we need to get at the type of the real parent, and
13971 derive the child's true type using this information.
13972
13973 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13974
13975 From 2002-01-09 John Marshall <johnm@falch.net>:
13976 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13977 sources.redhat.com, and tweak some related URLs which had
13978 suffered from linkrot.
13979
13980 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13981
13982 From Jeff law:
13983 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13984 structures passed in registers.
13985
13986 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13987
13988 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13989 white space which prevented compilation. Reported by DSK
13990 <dsk@student.unsw.edu.au>.
13991
13992 2002-01-11 Michael Snyder <msnyder@redhat.com>
13993
13994 * symfile.c (build_section_addr_info_from_section_tab):
13995 Use bfd access method instead of manipulating bfd directly.
13996 (syms_from_objfile): Ditto.
13997 (simple_overlay_update_1): Ditto.
13998 (simple_overlay_update): Ditto.
13999 (generic_load): Ditto.
14000 (overlay_unmapped_address): FIXME comment, bfd access methods.
14001 (sections_overlap): FIXME comment, bfd access methods.
14002 (pc_in_mapped_range): FIXME comment, bfd access methods.
14003 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14004 (section_is_mapped): FIXME comment, bfd access methods.
14005 (section_is_overlay): FIXME comment, bfd access methods.
14006
14007 * symfile.c (generic_load): Whitespace and long line cleanups.
14008 Remove duplicate variable, change several local variables to
14009 more appropriate data types.
14010 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14011
14012 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14013
14014 From Peter Schauer:
14015 * language.c (longest_local_hex_string_custom): Use phex_nz to
14016 convert NUM to a hex string.
14017
14018 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14019
14020 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14021 the function.
14022 Update Copyright year.
14023
14024 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14025
14026 * language.c (longest_raw_hex_string): Delete unused function.
14027
14028 2002-01-11 Petr Sorfa <petrs@caldera.com>
14029
14030 * MAINTAINERS (write-after-approval): Add myself.
14031 * dwarf2read.c (read_tag_string_type): Handling of
14032 DW_AT_byte_size.
14033 (read_tag_string_type): FORTRAN fix to prevent propagation of
14034 first string size.
14035 (set_cu_language): Handling of DW_LANG_Fortran95
14036
14037 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14038
14039 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14040 GETPID(inferior_ptid).
14041 (store_inferior_registers): Likewise.
14042
14043 2002-01-10 Jason Merrill <jason@redhat.com>
14044
14045 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14046 Fix DW_OP_minus.
14047
14048 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14049
14050 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14051 and bfd/elf32-sh-nbsd.c.
14052
14053 2002-01-10 Michael Snyder <msnyder@redhat.com>
14054
14055 * NEWS: Mention --pid and corefile/proc-id behavior change.
14056
14057 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14058 * gcore.c: Include cli/cli-decode.h instead of command.h.
14059
14060 * main.c (captured_main): Add new command line option "--pid".
14061 If the second command line argument (following the symbol-file)
14062 begins with a digit, try to attach to it before trying to open
14063 it as a corefile.
14064 (print_gdb_help): Document the "--pid" argument.
14065
14066 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14067
14068 * completer.c (command_completer): New function.
14069
14070 * completer.h <command_completer>: Add prototype.
14071
14072 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14073 completer for the "help" command.
14074
14075 2002-01-09 Jason Merrill <jason@redhat.com>
14076
14077 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14078
14079 2002-01-09 Michael Snyder <msnyder@redhat.com>
14080
14081 * i386-linux-nat.c (fill_fpxregset): Make global.
14082 (store_fpxregset): Ditto.
14083
14084 * gregset.h (gdb_fpxregset_t): Define.
14085 (supply_fpxregset): Prototype.
14086 (fill_fpxregset): Prototype.
14087
14088 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14089
14090 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14091
14092 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14093 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14094 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14095
14096 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14097
14098 * MAINTAINERS: Update target maintainer rules so that any
14099 Maintainer can approve a tested patch for a maintenance-only
14100 target.
14101
14102 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14103
14104 * MAINTAINERS (write-after-approval): Add myself.
14105
14106 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14107 IN_SIGTRAMP.
14108
14109 2002-01-08 Michael Snyder <msnyder@redhat.com>
14110
14111 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14112 real name of the executable, rather than the /proc name.
14113
14114 2002-01-03 Michael Snyder <msnyder@redhat.com>
14115
14116 Implement a "generate-core-file" command in gdb, save target state.
14117 * gcore.c: New file. Implement new command 'generate-core-file'.
14118 Save a corefile image of the current state of the inferior.
14119 * linux-proc.c: Add linux-specific code for saving corefiles.
14120 * target.h (struct target_ops): Add new target vectors for saving
14121 corefiles; to_find_memory_regions and to_make_corefile_notes.
14122 (target_find_memory_regions): New macro.
14123 (target_make_corefile_notes): New macro.
14124 * target.c (update_current_target): Inherit new target methods.
14125 (dummy_find_memory_regions): New place-holder method.
14126 (dummy_make_corefile_notes): New place-holder method.
14127 (init_dummy_target): Initialize new dummy target vectors.
14128 * exec.c (exec_set_find_memory_regions): New function.
14129 Allow the exec_ops vector for memory regions to be taken over.
14130 (exec_make_note_section): New function, target vector method.
14131 * defs.h (exec_set_find_memory_regions): Export prototype.
14132 * procfs.c (proc_find_memory_regions): New function, corefile method.
14133 (procfs_make_note_section): New function, corefile method.
14134 (init_procfs_ops): Set new target vector pointers.
14135 (find_memory_regions_callback): New function.
14136 (procfs_do_thread_registers): New function.
14137 (procfs_corefile_thread_callback): New function.
14138 * sol-thread.c (sol_find_memory_regions): New function.
14139 (sol_make_note_section): New function.
14140 (init_sol_thread_ops): Initialize new target vectors.
14141 * inftarg.c (inftarg_set_find_memory_regions): New function.
14142 Allow to_find_memory_regions vector to be taken over.
14143 (inftarg_set_make_corefile_notes): New function.
14144 Allow to_make_corefile_notes vector to be taken over.
14145 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14146 interface layer if not target_has_execution (may be a corefile).
14147 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14148 * config/sparc/sun4sol2.mh: Ditto.
14149 * config/alpha/alpha-linux.mh: Ditto.
14150 * config/arm/linux.mh: Ditto.
14151 * config/i386/x86-64linux.mh: Ditto.
14152 * config/ia64/linux.mh: Ditto.
14153 * config/m68k/linux.mh: Ditto.
14154 * config/mips/linux.mh: Ditto.
14155 * config/powerpc/linux.mh: Ditto.
14156 * config/sparc/linux.mh: Ditto.
14157
14158 2002-01-07 Michael Snyder <msnyder@redhat.com>
14159
14160 * arm-linux-nat.c: Remove references to regcache.c internal data
14161 (registers[] and register_valid[]).
14162
14163 2002-01-07 Michael Snyder <msnyder@redhat.com>
14164
14165 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14166 so that attaching to a pid will automatically read the process's
14167 symbol file and shlibs.
14168 * Makefile.in: Add rule for linux-proc.o.
14169 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14170 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14171 * config/arm/linux.mh: Ditto.
14172 * config/i386/linux.mh: Ditto.
14173 * config/i386/x86-64linux.mh: Ditto.
14174 * config/ia64/linux.mh: Ditto.
14175 * config/m68k/linux.mh: Ditto.
14176 * config/mips/linux.mh: Ditto.
14177 * config/powerpc/linux.mh: Ditto.
14178 * config/sparc/linux.mh: Ditto.
14179
14180 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14181
14182 * win32-nat.c: Add i386-tdep.h dependency.
14183
14184 2002-01-07 Michael Snyder <msnyder@redhat.com>
14185
14186 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14187 instead of bfd_get_arch_size. Don't bail out just because
14188 there's no exec_bfd.
14189
14190 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14191 * p-valprint.c (pascal_object_print_value): Ditto.
14192 * somread.c (som_symtab_read): Ditto.
14193 * symfile.c (simple_free_overlay_region_table): Ditto.
14194 * valops.c (value_assign): Ditto.
14195
14196 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14197 use tilde_expand and strerror for opening save-tracepoints file.
14198
14199 * thread-db.c (thread_db_new_objfile): Indendation fix.
14200
14201 * infptrace.c (GDB_MAX_ALLOCA): New define.
14202 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14203 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14204 can be overridden with whatever value is appropriate to the host).
14205 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14206 alloca to allocate potentially large buffer.
14207 * rs6000-nat.c (child_xfer_memory): Ditto.
14208 * symm-nat.c (child_xfer_memory): Ditto.
14209 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14210
14211 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14212
14213 From Nick Clifton <nickc@redhat.com>
14214 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14215
14216 2002-01-07 Michael Snyder <msnyder@redhat.com>
14217
14218 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14219 Don't use exec_bfd if it's NULL.
14220
14221 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14222
14223 * valops.c (value_arg_coerce): Fix formatting.
14224
14225 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14226
14227 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14228 * gnu-nat.c: Ditto.
14229
14230 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14231
14232 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14233 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14234 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14235 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14236 z8k-coff have not been multi-arched. Update z8k-coff build
14237 status.
14238
14239 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14240
14241 * MAINTAINERS: Mark a29k target as obsolete.
14242 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14243 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14244 comments.
14245 * NEWS: Note that a29k targets are obsolete.
14246 * a29k-tdep.c: Mark as obsolete.
14247 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14248 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14249 a29k-*-vxworks* targets as obsolete.
14250 * remote-adapt.c: Obsolete.
14251 * remote-eb.c: Obsolete.
14252 * remote-mm.c: Obsolete.
14253 * remote-udi.c: Obsolete.
14254 * config/a29k/a29k-udi.mt: Obsolete.
14255 * config/a29k/a29k.mt: Obsolete.
14256 * config/a29k/tm-a29k.h: Obsolete.
14257 * config/a29k/tm-vx29k.h: Obsolete.
14258 * config/a29k/vx29k.mt: Obsolete.
14259
14260 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14261
14262 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14263 with BFD_ENDIAN_BIG.
14264
14265 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14266
14267 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14268 * configure, config.in: Re-generate.
14269 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14270 * defs.h: Do not include <endian.h>.
14271
14272 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14273
14274 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14275 * config.in: Regenerate.
14276 * configure.in: Update copyright years.
14277 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14278 * configure: Regenerate.
14279 * i386bsd-nat.c: Update copyright years.
14280 (fill_gregset): Use regcache_collect.
14281 (fetch_inferior_registers): Only fetch integer registers
14282 if requested to do so. Add support for XMM registers
14283 using PT_GETXMMREGS.
14284 (store_inferior_registers): Only store integer registers
14285 if requested to do so. Add support for XMM registers
14286 using PT_SETXMMREGS.
14287 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14288 (store_inferior_registers): Remove.
14289 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14290 (fetch_elfcore_registers): New function.
14291 (i386nbsd_elfcore_fns): New.
14292 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14293 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14294 i386bsd-nat.o.
14295 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14296 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14297 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14298 * config/i386/tm-nbsd.h: Update copyright years.
14299 (HAVE_SSE_REGS): Define.
14300 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14301 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14302 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14303 (SIGCONTEXT_PC_OFFSET): Remove.
14304 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14305
14306 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14307
14308 * configure.tgt: Remove powerpc-*-macos* target.
14309 * config/m68k/xm-mpw.h: Delete file.
14310 * config/xm-mpw.h: Delete file.
14311 * ser-mac.c: Delete file.
14312 * mpw-make.sed: Delete file.
14313 * mpw-config.in: Delete file.
14314 * mac-xdep.c: Delete file.
14315 * mac-gdb.r: Delete file.
14316 * mac-defs.h: Delete file.
14317 * mac-nat.c: Delete file.
14318 * config/powerpc/macos.mh: Delete file.
14319 * config/powerpc/macos.mt: Delete file.
14320 * config/powerpc/nm-macos.h: Delete file.
14321 * config/powerpc/tm-macos.h: Delete file.
14322 * source.c (openp, open_source_file): Remove obsolete code.
14323 * top.c (gdb_readline): Ditto.
14324 * utils.c (query): Ditto.
14325 * event-top.c (display_gdb_prompt): Ditto.
14326 * Makefile.in (ser-mac.o): Delete obsolete target.
14327 * NEWS: Update.
14328
14329 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14330
14331 * defs.h (BIG_ENDIAN): Delete macro definition.
14332 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14333 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14334 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14335 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14336 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14337 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14338 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14339 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14340 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14341 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14342 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14343 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14344 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14345 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14346 * gdbarch.c: Re-generate.
14347
14348 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14349
14350 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14351 for core files.
14352
14353 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14354
14355 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14356
14357 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14358
14359 * value.h (value_ptr): Delete typedef.
14360
14361 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14362
14363 * i386nbsd-nat.c: Update copyright years.
14364 Include i386-tdep.h.
14365
14366 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14367
14368 * stabsread.c: Update copyright years.
14369
14370 From Debashis Mahata <debashis.mahata@wipro.com>:
14371 (read_struct_fields): Deal with Sun C compiler erroneous stab
14372 output for structs and unions.
14373 Fix PR gdb/269.
14374
14375 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14376
14377 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14378 prototype.
14379
14380 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14381
14382 * cp-abi.c: Fix whitespace.
14383 (baseclass_offset): New wrapper function.
14384 * cp-abi.h (baseclass_offset): Add prototype.
14385 (struct cp_abi_ops): Add baseclass_offset pointer.
14386
14387 * valops.c (vb_match): Move to...
14388 * gnu-v2-abi.c (vb_match): here.
14389 * valops.c (baseclass_offset): Move to...
14390 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14391
14392 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14393
14394 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14395 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14396 * hpacc-abi.c (init_hpacc_ops): Likewise.
14397
14398 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14399
14400 * valops.c (find_overload_match): Accept obj as a
14401 reference parameter. Update it before returning.
14402 * value.h (find_overload_match): Update prototype.
14403 * eval.c (evaluate_subexp_standard): Pass object to
14404 find_overload_match by reference.
14405
14406 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14407
14408 * valarith.c: Replace value_ptr with struct value pointer. Remove
14409 register attribute from value declarations.
14410 * valops.c: Ditto.
14411 * value.h: Ditto.
14412 * scm-lang.c (scm_lookup_name): Ditto.
14413
14414 2002-01-03 Michael Snyder <msnyder@redhat.com>
14415
14416 Abstract the functionality of iterating over mapped memory
14417 regions into a general purpose iterator function.
14418 * procfs.c (iterate_over_mappings): New function, general purpose
14419 iterator for memory sections.
14420 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14421 (solib_mappings_callback): New function, callback for above.
14422 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14423 (info_mappings_callback): New function, callback for above.
14424
14425 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14426
14427 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14428
14429 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14430 * i386-tdep.c: Include "elf-bfd.h".
14431 (process_note_abi_tag_sections): New function.
14432 (i386_gdbarch_init): Add code to recognize various OS/ABI
14433 combinations.
14434
14435 * maint.c (_initialize_maint_cmds): Add missing \ in
14436 string-literal.
14437
14438 For older changes see ChangeLog-2001
14439 \f
14440 Local Variables:
14441 mode: change-log
14442 left-margin: 8
14443 fill-column: 74
14444 version-control: never
14445 End:
This page took 0.366888 seconds and 4 git commands to generate.