* ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a3edc55b
MK
12002-12-15 Mark Kettenis <kettenis@gnu.org>
2
3 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
4
b508a996
RE
52002-12-14 Richard Earnshaw <rearnsha@arm.com>
6
7 * arm-tdep.c (convert_from_extended): New argument to hold the
8 type of floating point result we want to convert to. Make input
9 argument const. Fix all callers.
10 (convert_to_extended): Similarly.
11 (arm_extract_return_value): Now takes a regcache argument. Change
12 code to use regcache accessor functions. Correctly extract
13 smaller-than-word results on big-endian machines.
14 (arm_store_return_value): Now takes a regcache argument. Change
15 code to use regcache accessor functions. Correctly zero/sign extend
16 smaller than word results before storing into r0.
17 (arm_gdbarch_init): Register new-style extract_return_value and
18 store_return_value functions.
19
3197744f
MS
202002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
21
22 * thread-db.c (thread_from_lwp): Uniquify error msg.
23 (lwp_from_thread): Ditto.
24 (check_event): Ditto.
25 (find_new_threads_callback): Ditto.
26 (thread_db_pid_to_str): Ditto.
27
6baff1d2
AC
282002-12-13 Andrew Cagney <ac131313@redhat.com>
29
30 * frame.h (get_frame_saved_regs): Declare.
31 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
32 pointer.
33 * frame.c (get_frame_saved_regs): New function.
34 (frame_saved_regs_zalloc): Return the allocated saved_regs.
35
b87efeee
AC
362002-12-13 Andrew Cagney <ac131313@redhat.com>
37
38 * frame.c (deprecated_update_current_frame_pc_hack): New
39 function.
40 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
41 * infrun.c (normal_stop): Use said function instead of directly
42 modifying the frame's PC.
43
3de2dc4f
AO
442002-12-13 Alexandre Oliva <aoliva@redhat.com>
45
46 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
47
fe29b929
KB
482002-12-13 Kevin Buettner <kevinb@redhat.com>
49
50 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
51 config/mips/tm-irix6.h (NUM_REGS): Delete.
52 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
53 (temp_saved_regs): Declare as a pointer rather than an array.
54 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
55 that ``temp_saved_regs'' has storage allocated to it and that
56 it's the correct size.
57
c04e0a08
JJ
582002-12-13 Jeff Johnston <jjohnstn@redhat.com>
59
60 * defs.h (init_last_source_visited): New prototype.
61 (add_path): Ditto.
62 * source.c (add_path): New function that adds to a specified path.
63 (mod_path): Change to call add_path.
64 (init_last_source_visited): New function to allow interfaces to
65 initialize static variable: last_source_visited. Part of fix
66 for PR gdb/741.
67 * Makefile.in: Add support for mi/mi-cmd-env.c.
68
c689142b
AC
692002-12-13 Andrew Cagney <ac131313@redhat.com>
70
71 * frame.h (frame_id_unwind): Declare.
72 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
73 id_unwind_cache.
74 (frame_id_unwind_ftype): Declare.
75 * frame.c (frame_id_unwind): New function.
76 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
77 (create_new_frame, get_prev_frame): Pass id_unwind to
78 set_unwind_by_pc.
79 (frame_saved_regs_id_unwind): New function.
80 (frame_saved_regs_id_unwind): New function.
81 * dummy-frame.c (dummy_frame_id_unwind): New function.
82 (struct dummy_frame): Add field id.
83 (generic_push_dummy_frame): Initialize `id'.
84 * dummy-frame.h (dummy_frame_id_unwind): Declare.
85
18ea5ba4
AC
862002-12-13 Andrew Cagney <ac131313@redhat.com>
87
88 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
89 pass that to set_momentary_breakpoint. Move comments to where they
90 belong.
91 * frame.h (set_current_frame): Delete declaration.
92 * frame.c (set_current_frame): Delete function.
93
2c517d0e
AC
942002-12-13 Andrew Cagney <ac131313@redhat.com>
95
96 * frame.c (frame_extra_info_zalloc): New function.
97 * frame.h (frame_extra_info_zalloc): Declare.
98
516b1f28
JB
992002-12-13 Joel Brobecker <brobecker@gnat.com>
100
101 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
102 in the previous prototype change to set_momentary_breakpoint.
103
fbb265fc
DJ
1042002-12-12 Daniel Jacobowitz <drow@mvista.com>
105
106 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
107 and saw_child_exec.
108 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
109 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
110 (stop_stepping): Remove outdated check for child vfork events.
111
4fd7f624
AC
1122002-12-12 Andrew Cagney <ac131313@redhat.com>
113
114 * GDB 5.3 released from gdb_5_3-branch.
115
4c9ba7e0
DJ
1162002-12-11 Daniel Jacobowitz <drow@mvista.com>
117
118 * corelow.c (init_core_ops): Delete references to to_require_attach
119 and to_require_detach.
120 * exec.c (init_exec_ops): Likewise.
121 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
122 hppa_require_detach directly.
123 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
124 * inftarg.c (child_detach): Remove.
125 (child_detach_from_process): Rename to child_detach, remove
126 after_fork argument.
127 (child_attach): Remove.
128 (child_attach_to_process): Rename to child_attach, remove after_fork
129 argument.
130 (init_child_ops): Delete references to to_require_attach
131 and to_require_detach.
132 * infttrace.c (hppa_require_attach): Update comment.
133 * target.c (cleanup_target, update_current_target)
134 (init_dummy_target, setup_target_debug): Delete references to
135 to_require_attach and to_require_detach.
136 (find_default_require_detach, find_default_require_attach)
137 (debug_to_require_attach, debug_to_require_detach): Remove
138 functions.
139 * target.h (struct target_ops): Remove to_require_attach
140 and to_require_detach.
141 (target_require_attach, target_require_detach): Delete macros.
142 (find_default_require_detach, find_default_require_attach): Delete
143 prototypes.
144 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
145
0394eb2a
AC
1462002-12-11 Andrew Cagney <ac131313@redhat.com>
147
148 * frame.c (get_frame_extra_info): New function.
149 * frame.h (get_frame_extra_info): Declare.
150
818dd999
AC
1512002-12-11 Andrew Cagney <ac131313@redhat.com>
152
153 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
154 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
155 with `struct frame_id'.
156 (set_longjmp_resume_breakpoint): Ditto.
157 * infrun.c (handle_inferior_event): Update.
158 * breakpoint.c (watch_command_1, until_break_command): Update.
159 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
160 (handle_inferior_event, step_over_function): Update.
161 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
162 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
163 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
164 * infcmd.c (finish_command, run_stack_dummy): Update.
165
4d3c2250
KB
1662002-12-11 Kevin Buettner <kevinb@redhat.com>
167
168 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
169 (dwarf2_non_const_array_bound_ignored)
170 (dwarf2_missing_line_number_section)
171 (dwarf2_statement_list_fits_in_line_number_section)
172 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
173 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
174 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
175 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
176 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
177 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
178 (dwarf2_missing_member_fn_type_complaint)
179 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
180 (dwarf2_const_value_length_mismatch)
181 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
182 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
183 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
184 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
185 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
186 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
187 complaints using deprecated struct..
188 (dwarf2_non_const_array_bound_ignored_complaint)
189 (dwarf2_complex_location_expr_complaint)
190 (dwarf2_unsupported_at_frame_base_complaint)
191 (dwarf2_const_value_length_mismatch_complaint)
192 (dwarf2_macros_too_long_complaint)
193 (dwarf2_macro_malformed_definition_complaint)
194 (dwarf2_invalid_attrib_class_complaint): New functions.
195 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
196 (read_structure_scope, read_array_type, read_common_block)
197 (read_tag_pointer_type, read_base_type, read_partial_die)
198 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
199 (new_symbol, dwarf2_const_value, read_type_die)
200 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
201 (parse_macro_definition, dwarf_decode_macros): Replace calls to
202 complain() with, possibly indirect, calls to complaint().
203
95486978
AC
2042002-12-11 Andrew Cagney <cagney@redhat.com>
205
206 * frame.c (deprecated_get_frame_saved_regs): Rename
207 get_frame_saved_regs.
208 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
209 * sparc-tdep.c: Update.
210 * hppa-tdep.c: Update.
211 * h8500-tdep.c: Update.
212
321432c0
KB
2132002-12-11 Kevin Buettner <kevinb@redhat.com>
214
215 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
216 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
217 ``char *'' for return and parameter types.
218 * gdbarch.h, gdbarch.c: Regenerate.
219 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
220 return type from ``char *'' to ``const char *''.
221 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
222 const.
223
5a4d6ff4
MK
2242002-12-11 Mark Kettenis <kettenis@gnu.org>
225
226 * i386-tdep.c: Include "dummy-frame.h".
227 (i386_frame_chain, i386_frame_saved_pc): Replace
228 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
229 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
230
a5afb99f
AC
2312002-12-10 Andrew Cagney <cagney@redhat.com>
232
233 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
234 Change to a function with predicate.
235 * gdbarch.h, gdbarch.c: Re-generate.
236 * frame.c (get_prev_frame): Update. Test
237 DEPRECATED_INIT_FRAME_PC_P.
238 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
239 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
240 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
241 * alpha-tdep.c (alpha_gdbarch_init): Update.
242 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
243 * mips-tdep.c (mips_gdbarch_init): Update.
244 * i386-interix-tdep.c (i386_interix_init_abi): Update.
245 * arm-tdep.c: Update comments.
246 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
247 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
248 * frv-tdep.c (frv_gdbarch_init): Ditto.
249 * x86-64-tdep.c (x86_64_init_abi): Ditto.
250 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
251 * s390-tdep.c (s390_gdbarch_init): Ditto.
252 * v850-tdep.c (v850_gdbarch_init): Ditto.
253 * vax-tdep.c (vax_gdbarch_init): Ditto.
254 * sh-tdep.c (sh_gdbarch_init): Ditto.
255 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
256 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
257 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
258 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
259 * i386-tdep.c (i386_gdbarch_init): Ditto.
260 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
261 * cris-tdep.c (cris_gdbarch_init): Ditto.
262 * avr-tdep.c (avr_gdbarch_init): Ditto.
263 * arm-tdep.c (arm_gdbarch_init): Ditto.
264 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
265 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
266
6604731b
DJ
2672002-12-10 Daniel Jacobowitz <drow@mvista.com>
268
269 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
270 CHILD_FOLLOW_FORK.
271 * hppah-nat.c (saved_vfork_pid): Add.
272 (child_post_follow_vfork): Remove.
273 (child_follow_fork): New function.
274 (child_wait): Call detach_breakpoints after receiving the child vfork.
275 Call child_resume directly instead of going through resume ().
276 Make sure we have the exec before reporting the vfork.
277 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
278 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
279 (follow_fork): New function. Call target_follow_fork.
280 (follow_inferior_reset_breakpoints): New function broken out from
281 old follow_inferior_fork.
282 (resume): Remove hack to follow exec after vfork.
283 * inftarg.c (child_post_follow_vfork): Remove.
284 (child_follow_fork): New function.
285 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
286 * target.c (cleanup_target): Replace to_post_follow_vfork with
287 to_follow_fork.
288 (update_current_target): Likewise.
289 (setup_target_debug): Likewise.
290 (debug_to_post_follow_vfork): Remove.
291 (debug_to_follow_fork): New function.
292 * target.h (struct target_ops): Replace to_post_folow_vfork with
293 to_follow_fork.
294 (child_post_follow_vfork): Remove prototype.
295 (child_follow_fork): Add prototype.
296 (target_post_follow_vfork): Remove macro.
297 (target_follow_fork): Add macro.
298
7d2830a3
DJ
2992002-12-10 Daniel Jacobowitz <drow@mvista.com>
300
301 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
302 (child_post_follow_vfork): Cancel pending exec event if we follow
303 the parent.
304 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
305 events have been processed. Return a fake TARGET_WAITKIND_EXECD
306 event at the following wait call if necessary.
307 * infrun.c (follow_vfork): Don't follow_exec here.
308 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
309 case about HP/UX 10.20. Remove code pushed down to
310 hppah-nat.c:child_wait.
311 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
312 vfork_in_flight is set.
313
3142002-12-10 Daniel Jacobowitz <drow@mvista.com>
8e7d2c16
DJ
315
316 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
317 for the parent's fork event.
318 * infrun.c (handle_inferior_event): Only expect one fork event.
319 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
320 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
321
50631d4f
AC
3222002-12-10 Andrew Cagney <ac131313@redhat.com>
323
bc124bd3
AC
324 * PROBLEMS: Delete reference to PR gdb/725.
325
50631d4f
AC
326 * MAINTAINERS (gdb.c++): Add David Carlton.
327
808013d1
DC
3282002-12-09 David Carlton <carlton@math.stanford.edu>
329
330 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
331 * cli/cli-cmds.c: Ditto.
332
31deffe5
AC
3332002-12-09 Andrew Cagney <cagney@redhat.com>
334
6cbda714
AC
335 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
336 function address in <>.
31deffe5
AC
337 * gdbarch.c: Re-generate.
338
2692ddb3
DC
3392002-12-09 David Carlton <carlton@math.stanford.edu>
340
341 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
342
f3c39e76
DC
3432002-12-09 David Carlton <carlton@math.stanford.edu>
344
345 * linespec.c (symtab_from_filename): New function.
346 (decode_line_1): Move code into symtab_from_filename.
347
1b84163e
KB
3482002-12-09 Kevin Buettner <kevinb@redhat.com>
349
350 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
351
bdd78e62
AC
3522002-12-07 Andrew Cagney <ac131313@redhat.com>
353
354 * f-valprint.c (info_common_command): Use get_frame_pc.
355 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
356 * ax-gdb.c (agent_command): Ditto.
357 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
358 (rs6000_pop_frame): Ditto.
359 (rs6000_frameless_function_invocation): Ditto.
360 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
361 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
362 * macroscope.c (default_macro_scope): Ditto.
363 * stack.c (print_frame_info_base): Ditto.
364 (print_frame, frame_info, print_frame_label_vars): Ditto.
365 (return_command, func_command, get_frame_language): Ditto.
366 * infcmd.c (finish_command): Ditto.
367 * dummy-frame.c (cached_find_dummy_frame): Ditto.
368 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
369 (break_at_finish_at_depth_command_1): Ditto.
370 (break_at_finish_command_1): Ditto.
371 (until_break_command, get_catch_sals): Ditto.
372 * blockframe.c (func_frame_chain_valid): Ditto.
373 (frameless_look_for_prologue): Ditto.
374 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
375
408400e7
AC
3762002-12-08 Andrew Cagney <ac131313@redhat.com>
377
378 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
379 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
380
97f46953
AC
3812002-12-08 Andrew Cagney <ac131313@redhat.com>
382
383 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
384 to pure functions.
385 * gdbarch.h, gdbarch.c: Re-generate.
386 * frame.c (get_prev_frame): Explictly assign prev's pc with value
387 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
388
389 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
390 declaration to a function returning a CORE_ADDR.
391 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
392 * arch-utils.c (init_frame_pc_noop): Return the PC value.
393 (init_frame_pc_default): Ditto.
394 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
395 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
396 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
397 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
398 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
399 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
400
401 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
402 to init_frame_pc_noop.
403 (i386_interix_init_frame_pc): Delete function.
404 * z8k-tdep.c (init_frame_pc): Delete function.
405 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
406 (INIT_FRAME_PC_FIRST): Ditto.
407 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
408 (INIT_FRAME_PC_FIRST): Ditto.
409 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
410 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
411 init_frame_pc_noop.
412 (INIT_FRAME_PC_FIRST): Convert to an expression.
413 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
414
8b36eed8
AC
4152002-12-08 Andrew Cagney <ac131313@redhat.com>
416
417 * blockframe.c: Use get_frame_base instead of directly accessing
418 the `struct frame_info' member frame.
419 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
420 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
421
aeeccc89
EZ
4222002-12-08 Elena Zannoni <ezannoni@redhat.com>
423
424 * Makefile.in (readline_h): Define.
425 (completer.o): Depend on readline_h.
426 (corelow.o): Ditto.
427 (event-top.o): Ditto.
428 (exec.o): Ditto.
429 (solib.o): Ditto.
430 (source.o): Ditto.
431 (symfile.o): Ditto.
432 (symmisc.o): Ditto.
433 (top.o): Ditto.
434 (tracepoint.o): Ditto.
435 (utils.o): Ditto.
436 (cli-dump.o): Ditto.
437 (tui-hooks.o): Ditto.
438 (tuiWin.o): Ditto.
439
38017ce8
EZ
4402002-12-08 Elena Zannoni <ezannoni@redhat.com>
441
442 More cleanup from import of readline 4.3.
443 * completer.h (complete_line, readline_line_completion_function):
444 Update prototypes.
445 (line_completion_function): Removed, not used outside of completer.c.
446 * completer.c (readline_line_completion_function,
447 complete_function, line_completion_function): Use const for first
448 parameter.
449 (line_completion_function): Make static.
450 (filename_completer): filename_completion_function is now called
451 rl_filename_completion_function
452 * corelow.c: Include <readline/readline.h>.
453 * exec.c: Ditto.
454 * solib.c: Ditto.
455 * source.c: Ditto.
456 * symfile.c: Ditto.
457 * symmisc.c: Ditto.
458 * top.c (init_main): No need to coerce
459 readline_line_completion_function anymore.
460 * cli/cli-dump.c: Include <readline/readline.h>.
461
75e3c1f9
AC
4622002-12-08 Andrew Cagney <ac131313@redhat.com>
463
464 * stack.c (frame_info): Use get_prev_frame.
465 * blockframe.c (frame_address_in_block): Ditto.
466 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
467 (rs6000_frameless_function_invocation): Ditto.
468 (rs6000_frame_saved_pc): Ditto.
469 (rs6000_frame_chain): Ditto.
470 * arch-utils.c (init_frame_pc_default): Ditto.
471
0d2b8049
AC
4722002-12-08 Andrew Cagney <ac131313@redhat.com>
473
474 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
475 Delete redundant definition.
476
9255ee31
EZ
4772002-12-08 Elena Zannoni <ezannoni@redhat.com>
478
479 Import of readline 4.3:
480 * cli/cli-cmds.c: Include readline/tilde.h.
481 * cli/cli-setshow.c: Ditto.
482 * defs.h: Don't declare tilde_expand anymore, since readline
483 exports it.
484
3442dad6 4852002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
486
487 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
488 -Werror on this file.
489
52f87c51
AC
4902002-12-07 Andrew Cagney <ac131313@redhat.com>
491
492 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
493 the format name.
494 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
495 * gdbarch.c: Regenerate.
496
2ca6c561
AC
4972002-12-06 Andrew Cagney <ac131313@redhat.com>
498
499 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
500 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
501 provide a default value.
502 * gdbarch.h, gdbarch.c: Regenerate.
503 * frame.c (get_prev_frame): Update. Check
504 DEPRECATED_INIT_FRAME_PC_FIRST_P.
505 * s390-tdep.c (s390_gdbarch_init): Update.
506 * mips-tdep.c (mips_gdbarch_init): Update.
507 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
508 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
509 * alpha-tdep.c (alpha_gdbarch_init): Update.
510
e162d11b
EZ
5112002-12-06 Elena Zannoni <ezannoni@redhat.com>
512
513 * ia64-linux-nat.c: Include gdb_string.h.
514 * alpha-nat.c: Ditto.
2b298b5d
EZ
515 * ppc-linux-nat.c: Ditto.
516 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
517 Update dependencies.
e162d11b 518
aa0cd9c1
AC
5192002-12-05 Andrew Cagney <ac131313@redhat.com>
520
521 * gdbthread.h: Include "frame.h".
522 (struct thread_info): Replace step_frame_address with
523 step_frame_id.
524 * inferior.h: Include "frame.h".
525 (step_frame_id): Replace external variable step_frame_address.
526 * gdbthread.h (save_infrun_state): Replace step_frame_address
527 parameter with step_frame_id parameter.
528 (load_infrun_state): Ditto.
529 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
530 * infcmd.c (step_frame_id, step_1, step_once): Update.
531 * thread.c (load_infrun_state, save_infrun_state): Update.
532 * infrun.c (clear_proceed_status, save_inferior_status): Update.
533 (handle_inferior_event, step_over_function): Update.
534 (normal_stop, context_switch, restore_inferior_status): Update.
535 (struct inferior_status): Replace step_frame_address with
536 step_frame_id.
537
a9a9bd0f
DC
5382002-12-05 David Carlton <carlton@math.stanford.edu>
539
540 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
541 DW_TAG_member as well as a declaration as being a C++ static data
542 member.
543 (read_structure_scope): Combine tests for DW_TAG_member and
544 DW_TAG_variable.
545
614b3b14
DC
5462002-12-05 David Carlton <carlton@math.stanford.edu>
547
548 * linespec.c (decode_compound): New function.
549 (decode_line_1): Move code into decode_compound.
550
e4051eeb
DC
5512002-12-05 David Carlton <carlton@math.stanford.edu>
552
553 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
554 argument.
555 (lookup_symbol_aux): Do the 'field_of_this' check before checking
556 the static block. See PR gdb/804.
557
f61e8913
DC
5582002-12-05 David Carlton <carlton@math.stanford.edu>
559
560 * symtab.c (lookup_symbol_aux_block): New function.
561 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
562
1e9f55d0
AC
5632002-12-05 Andrew Cagney <ac131313@redhat.com>
564
565 * gdbarch.sh: Dump the predicate function and macro values.
566 (read): Print error on standard error.
567 * gdbarch.c: Regenerate.
568
d1973055
KB
5692002-12-04 Kevin Buettner <kevinb@redhat.com>
570
571 * Makefile.in (mips_tdep_h): Define.
572 (mips-tdep.o): Add mips_tdep_h to dependency list.
573 * mips-tdep.h: New file.
574 * mips-tdep.c (mips-tdep.h): Include.
575 (enum mips_abi): Move to mips-tdep.h.
576 (mips_abi): New function.
577
f1253c7b
DC
5782002-12-04 David Carlton <carlton@math.stanford.edu>
579
580 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
581
406bc4de
DC
5822002-12-04 David Carlton <carlton@math.stanford.edu>
583
584 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
585 function.
586 (lookup_symbol_aux_minsyms): New function.
587
2a3750c5
JB
5882002-12-04 J. Brobecker <brobecker@gnat.com>
589
590 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
591
961d8652
JB
5922002-12-04 J. Brobecker <brobecker@gnat.com>
593
594 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
595 which is an obsolete macro name.
596
38c52d5a
DJ
5972002-12-04 Daniel Jacobowitz <drow@mvista.com>
598
599 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
600 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
601
d8ef46f5
DJ
6022002-12-03 H.J. Lu (hjl@gnu.org)
603
604 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
605 (create_breakpoints): Make sure the addr_string field is not
606 NULL.
607
02ae7771
AC
6082002-12-03 Andrew Cagney <ac131313@redhat.com>
609
610 * sparc-nat.c (fetch_inferior_registers)
611 (store_inferior_registers): Add comment on problem of LWP vs
612 threads.
613
614 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
615 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
616 (lin_lwp_store_registers): Remove.
617 (init_lin_lwp_ops): Use fetch_inferior_registers
618 and store_inferior_registers directly.
619 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
620 (store_inferior_registers): Likewise.
621 Fix PR gdb/725.
622
7a424e99
AC
6232002-12-03 Andrew Cagney <ac131313@redhat.com>
624
625 * frame.h (get_frame_id): Convert to a function.
626 (null_frame_id, frame_id_p): Declare.
627 (frame_id_eq, frame_id_inner): Declare.
628 (frame_id_build): New function.
629 * frame.c (get_frame_id): Update. Use null_frame_id.
630 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
631 frame_id_inner.
632 (null_frame_id, frame_id_p): Define.
633 (frame_id_eq, frame_id_inner): Define.
634 (frame_id_build): New function.
635 * varobj.c (varobj_create): Update.
636 (varobj_update): Update.
637 * valops.c (value_assign): Update.
638 (new_root_variable): Update.
639 * infrun.c (save_inferior_status): Update.
640 * breakpoint.c (watch_command_1): Update.
641
891c7f5f
JB
6422002-12-03 J. Brobecker <brobecker@gnat.com>
643
644 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
645 (SNAP2): Likewise.
646
144da3c1
AC
6472002-12-03 Andrew Cagney <cagney@redhat.com>
648
46248966
AC
649 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
650 patch.
651
144da3c1
AC
652 * PROBLEMS: Mention PR gdb/725.
653
03c6228e
AS
6542002-12-03 Andreas Schwab <schwab@suse.de>
655
656 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
657
36e53c63
AF
6582002-12-02 Adam Fedor <fedor@gnu.org>
659 Klee Dienes <kdienes@apple.com>
660
661 * objc-lang.c (objc_printstr): Add width arg to match
662 printstr prototype.
663 (compare_selectors): Add 'const' to arg types.
664 (compare_classes): Likewise.
665 (find_imps): Cast msym pointer to avoid compiler warning.
666 (print_object_command): Validate the address before
667 passing it to the print routine.
668 (find_objc_msgcall_submethod): Change function argument to
669 return an int.
670 * objc-lang.h: Add 'extern' to all function declarations.
671 (value_nsstring): Add declaration.
672
504d5c7e
JB
6732002-12-02 J. Brobecker <brobecker@gnat.com>
674
675 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
676 Fixes a build failure on HP/UX.
677
678 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
679 failure on HP/UX.
680 (hpread_has_name): Advance declaration to avoid a compilation warning.
681 (pst_syms_count): Add missing variable type. By change, the compiler
682 was defaulting to int, which seems a good choice. Fixes a compilation
683 warning.
684 (pst_syms_size): Likewise.
685
59623e27
JB
6862002-12-02 J. Brobecker <brobecker@gnat.com>
687
688 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
689 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
690 later to set the proper gdbarch methods depending on the osabi.
691 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
692
a09a320d
JB
6932002-12-02 J. Brobecker <brobecker@gnat.com>
694
695 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
696 * osabi.c (gdb_osabi_name): Add strings images for the two new
697 enum values.
698 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
699
8a81a99e
AC
7002002-12-02 Andrew Cagney <ac131313@redhat.com>
701
702 * MAINTAINERS (Java): Global maintainers are responible for Java.
703 (Past Maintainers): Mention both Anthony Green and Per Bothner as
704 part Java maintainers.
705
7af35dad
JB
7062002-12-02 J. Brobecker <brobecker@gnat.com>
707
708 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
709 Fixes a compilation failure on AiX.
710
f4ede9bc
JB
7112002-12-02 J. Brobecker <brobecker@gnat.com>
712
713 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
714 why aix-thread.o is not listed.
715
ae45cd16
AC
7162002-12-01 Andrew Cagney <ac131313@redhat.com>
717
718 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
719 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
720 * gdbarch.h, gdbarch.c: Re-generate.
721 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
722 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
723 * config/pa/tm-hppa.h, frame.h: Update.
724 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
725 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
726 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
727 * cris-tdep.c, alpha-tdep.c: Update.
728 * frame.c (set_unwind_by_pc, create_new_frame): Use either
729 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
730 (get_prev_frame): Ditto.
731
020cc13c
AC
7322002-11-30 Andrew Cagney <cagney@redhat.com>
733
734 * exec.c (xfer_memory): Replace boolean with int.
735 * p-exp.y: Use 0 instead of false.
736 * corelow.c (gdb_check_format): Change return type to int from
737 boolean.
738 * utils.c: Don't include <curses.h> or <term.h> first.
739
1d9b2aa8
SC
7402002-11-29 Stephane Carrez <stcarrez@nerim.fr>
741
742 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
743 (m68hc11_register_byte): Remove.
744 (m68hc11_gdbarch_init): Don't set the above.
745
a193e397
AC
7462002-11-29 Andrew Cagney <cagney@redhat.com>
747
748 * remote-mips.c (mips_initialize): Force a selected frame rebuild
749 by calling get_selected_frame.
750 * ocd.c (ocd_start_remote): Use get_selected frame instead of
751 set_current_frame, create_new_frame, select_frame and
752 get_current_frame.
753 * remote-e7000.c (e7000_start_remote): Ditto.
754 * remote-mips.c (common_open): Ditto
755 * remote-rdp.c (remote_rdp_open): Ditto.
756
b5fc49aa
AS
7572002-11-29 Andreas Schwab <schwab@suse.de>
758
759 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
760 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
761 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
762 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
763 read_memory_unsigned_integer instead of read_memory_integer when
764 dealing with addresses and instruction opcodes.
765 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
766 (m68k_linux_frame_saved_pc): Likewise.
767
6e7f8b9c
AC
7682002-11-29 Andrew Cagney <ac131313@redhat.com>
769
770 * stack.c (selected_frame, select_frame): Move from here ...
771 * frame.c (selected_frame, select_frame): ... to here. Include
772 "language.h".
773 * Makefile.in (frame.o): Update dependencies.
774 * frame.c (get_selected_frame): New function.
775 * frame.h (get_selected_frame): Declare.
776 (deprecated_selected_frame): Rename selected_frame.
777 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
778 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
779 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
780 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
781 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
782 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
783 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
784 * z8k-tdep.c, cli/cli-cmds.c: Update.
785
805e2818
AC
7862002-11-29 Andrew Cagney <ac131313@redhat.com>
787
788 * frame.h (get_selected_block): Add comments.
789
1058bca7
AC
7902002-11-28 Andrew Cagney <ac131313@redhat.com>
791
792 * frame.c (pc_notcurrent): New function.
793 (find_frame_sal): New function.
794 * frame.h (find_frame_sal): Declare.
795 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
796 * stack.c (print_frame_info_base): Use find_frame_sal instead of
797 find_pc_line.
1058bca7
AC
798 (frame_info): Ditto.
799 * ada-lang.c (find_printable_frame): Ditto.
800
d92419e5
JB
8012002-11-28 J. Brobecker <brobecker@gnat.com>
802
803 * configure.in: Check that the pthdebug library is recent enough
804 before enabling thread support on native AiX.
805 * configure: Regenerate.
806
807 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
808 from the list of object files as it is now appended by configure
809 if thread support is enabled.
810 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
811 if thread support is enabled.
812
8c69fc49
AC
8132002-11-28 Andrew Cagney <cagney@redhat.com>
814
815 * stack.c (get_selected_block): In-line get_current_block.
816 * frame.h (get_current_block): Delete declaration.
817 * blockframe.c (get_current_block): Delete function.
818
07555a72
AC
8192002-11-28 Andrew Cagney <ac131313@redhat.com>
820
821 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
822 USE_GENERIC_DUMMY_FRAMES.
823 * gdbarch.h, gdbarch.c: Regenerate.
824 * valops.c, frame.c: Update.
825 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
826 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
827 * config/pa/tm-hppa.h, blockframe.c: Update.
828 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
829 * m68k-tdep.c, alpha-tdep.c: Ditto.
830
831 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
832 * mips-tdep.c: Ditto.
833
b99fa2d2
AC
8342002-11-27 Andrew Cagney <ac131313@redhat.com>
835
836 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
837 (USE_GENERIC_DUMMY_FRAMES): Default to true.
838 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
839 * gdbarch.c, gdbarch.h: Re-generate.
840 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
841 (CALL_DUMMY_LOCATION): Delete macro definition.
842 (PC_IN_CALL_DUMMY): Delete macro definitions.
843
844 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
845 default is already generic_pc_in_call_dummy.
846 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
847 * v850-tdep.c (v850_gdbarch_init): Ditto.
848 * sh-tdep.c (sh_gdbarch_init): Ditto.
849 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
850 * mips-tdep.c (mips_gdbarch_init): Ditto.
851 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
852 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
853 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
854 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
855 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
856 * avr-tdep.c (avr_gdbarch_init): Ditto.
857
858 * arm-tdep.c (arm_gdbarch_init): Do not set
859 use_generic_dummy_frames, default is already 1.
860 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
861 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
862 * v850-tdep.c (v850_gdbarch_init): Ditto.
863 * sh-tdep.c (sh_gdbarch_init): Ditto.
864 * s390-tdep.c (s390_gdbarch_init): Ditto.
865 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
866 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
867 * mips-tdep.c (mips_gdbarch_init): Ditto.
868 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
869 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
870 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
871 * i386-tdep.c (i386_gdbarch_init): Ditto.
872 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
873 * frv-tdep.c (frv_gdbarch_init): Ditto.
874 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
875 * cris-tdep.c (cris_gdbarch_init): Ditto.
876 * avr-tdep.c (avr_gdbarch_init): Ditto.
877
878 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
879 call_dummy_location, default is already AT_ENTRY_POINT.
880 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
881 * v850-tdep.c (v850_gdbarch_init): Ditto.
882 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
883 * sh-tdep.c (sh_gdbarch_init): Ditto.
884 * s390-tdep.c (s390_gdbarch_init): Ditto.
885 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
886 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
887 * mips-tdep.c (mips_gdbarch_init): Ditto.
888 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
889 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
890 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
891 * i386-tdep.c (i386_gdbarch_init): Ditto.
892 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
893 * frv-tdep.c (frv_gdbarch_init): Ditto.
894 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
895 * cris-tdep.c (cris_gdbarch_init): Ditto.
896 * avr-tdep.c (avr_gdbarch_init): Ditto.
897 * arm-tdep.c (arm_gdbarch_init): Ditto.
898 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
899
abc0af47
AC
9002002-11-28 Andrew Cagney <cagney@redhat.com>
901
902 * frame.h: Update comments on set_current_frame, create_new_frame,
903 flush_cached_frames, reinit_frame_cache, select_frame and
904 selected_frame.
905
ed5cedc5
AC
9062002-11-27 Andrew Cagney <cagney@redhat.com>
907
908 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
909 deprecated pc_in_call_dummy function.
910 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
911 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
912 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
913 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
914 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
915
b2a1bd4f
MH
9162002-11-26 Martin M. Hunt <hunt@redhat.com>
917
918 * Makefile.in: Remove Tix dependencies.
919 * acinclude.m4: Ditto.
920 * aclocal.m4: Ditto.
921 * configure.in: Ditto.
922 * configure: Regenerated.
923
f09cffaa
AC
9242002-11-26 Andrew Cagney <ac131313@redhat.com>
925
926 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
927 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
928 * gdbarch.c: Re-generate.
929
e92b0cc9
AC
9302002-11-26 Andrew Cagney <ac131313@redhat.com>
931
932 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
933 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
934 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
935 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
936 pc_in_call_dummy_at_entry_point.
937 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
938 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
939 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
940 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
941 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
942 pc_in_call_dummy_on_stack.
943 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
944 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
945 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
946 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
947 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
948
b4b88177
AC
9492002-11-26 Andrew Cagney <ac131313@redhat.com>
950
951 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
952 pc_in_call_dummy_before_text_end
953 (deprecated_pc_in_call_dummy_after_text_end): Rename
954 pc_in_call_dummy_after_text_end.
955 (deprecated_pc_in_call_dummy_on_stack): Rename
956 pc_in_call_dummy_on_stack.
957 (deprecated_pc_in_call_dummy_at_entry_point): Rename
958 pc_in_call_dummy_at_entry_point.
959 * m68k-tdep.c (m68k_gdbarch_init): Update.
960 * s390-tdep.c (s390_gdbarch_init): Update.
961 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
962 * vax-tdep.c (vax_gdbarch_init): Update.
963 * sparc-tdep.c (sparc_gdbarch_init): Update.
964 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
965 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
966 * i386-tdep.c (i386_gdbarch_init): Update.
967 * frv-tdep.c (frv_gdbarch_init): Update.
968 * cris-tdep.c (cris_gdbarch_init): Update.
969 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
970 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
971 (deprecated_pc_in_call_dummy_after_text_end)
972 (deprecated_pc_in_call_dummy_on_stack)
973 (deprecated_pc_in_call_dummy_at_entry_point): Update.
974 * alpha-tdep.c (alpha_gdbarch_init): Update.
975
eb784848
DJ
9762002-11-25 Daniel Jacobowitz <drow@mvista.com>
977
978 * acconfig.h (HAVE_PREAD64): Add.
979 * configure.in: Check for pread64.
980 * config.in: Regenerated.
981 * configure: Regenerated.
982 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
983 * linux-proc.c (linux_proc_xfer_memory): New function.
984 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
985
933c6fe4
DC
9862002-11-25 David Carlton <carlton@math.stanford.edu>
987
988 * dwarf2read.c (scan_partial_symbols): Descend into namespace
989 pdi's with no name.
990
158a8022
AC
9912002-11-25 Andrew Cagney <ac131313@redhat.com>
992
993 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
994 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
995
481d0f41
JB
9962002-11-25 Jim Blandy <jimb@redhat.com>
997
e8289572
JB
998 * symfile.c (init_objfile_sect_indices): New function.
999 (default_symfile_offsets): Move the section-index-initializing
1000 stuff into init_objfile_sect_indices, and call that.
1001
b29c9944
JB
1002 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1003 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1004
13de58df
JB
1005 * symfile.c (syms_from_objfile): Adjust indentation.
1006
481d0f41
JB
1007 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1008 || info_verbose isn't true.
1009
7d6a26a7
AC
10102002-11-24 Andrew Cagney <ac131313@redhat.com>
1011
1012 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1013 default to get_frame_base.
1014 * gdbarch.h, gdbarch.c: Regenerate.
1015 * arch-utils.c (default_frame_address): Delete function.
1016 * arch-utils.h (default_frame_address): Delete declaration
1017
6abe1021
PM
10182002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1019
1020 * varobj.c (find_frame_addr_in_frame_chain):
1021 Use get_frame_base instead of FRAME_FP,
1022 obvious fix.
1023
c193f6ac
AC
10242002-11-19 Andrew Cagney <ac131313@redhat.com>
1025
1026 * frame.h (FRAME_FP): Delete macro.
1027 (get_frame_base): New function declaration.
1028 * frame.c (get_frame_base): New function.
1029 (get_frame_id): Use ->frame.
1030 (frame_find_by_id): Rewrite to use get_frame_id.
1031 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1032 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1033 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1034 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1035 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1036 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1037 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1038
e5d2af14
AC
10392002-11-24 Andrew Cagney <ac131313@redhat.com>
1040
1041 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1042
931d12c6
AC
10432002-11-24 Andrew Cagney <ac131313@redhat.com>
1044
1045 * frame.c (set_unwind_by_pc): Revert change below, use
1046 PC_IN_CALL_DUMMY.
1047 (get_prev_frame): Ditto.
1048
5e0f933e
AC
10492002-11-24 Andrew Cagney <ac131313@redhat.com>
1050
1051 * dummy-frame.c (pc_in_dummy_frame): New function.
1052 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1053 (find_dummy_frame): Update comment.
1054 (generic_pop_current_frame): Use get_frame_type.
1055 * dummy-frame.h (pc_in_dummy_frame): Declare.
1056 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1057 (create_new_frame): Use pc_in_dummy_frame.
1058 (get_prev_frame): Use pc_in_dummy_frame.
1059 (frame_saved_regs_register_unwind): Use get_prev_frame.
1060 (deprecated_generic_get_saved_register): Use get_prev_frame.
1061
7d8547c9
AC
10622002-11-23 Andrew Cagney <ac131313@redhat.com>
1063
1064 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1065 from here ...
1066 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1067 (varobj_create): Note that frame ID should be used.
1068 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1069
0225421b
AC
10702002-11-23 Andrew Cagney <ac131313@redhat.com>
1071
1072 * breakpoint.c: Include "gdb_assert.h".
1073 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1074 not being used.
1075 * Makefile.in (breakpoint.o): Update dependencies.
1076 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1077 deprecated_frame_in_dummy.
1078 * stack.c (print_frame_info_base): Ditto.
1079 (frame_info): Ditto.
1080 (print_frame_info_base): Ditto. Delete dead code.
1081
32eeb91a
AS
10822002-11-23 Andreas Schwab <schwab@suse.de>
1083
1084 * Makefile.in (m68k_tdep_h): Define.
1085 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1086 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1087 * m68k-tdep.c: Move register number enum ...
1088 * m68k-tdep.h: ... to this new file and rename the constants from
1089 E_* to M68K_*. All uses changed.
1090 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1091 * abug-rom.c: Include "m68k-tdep.h". Use
1092 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1093 * cpu32bug-rom.c: Likewise.
1094 * dbug-rom.c: Likewise.
1095 * m68k-tdep.c: Likewise.
1096 * m68klinux-nat.c: Likewise.
1097 * remote-est.c: Likewise.
1098 * rom68k-rom.c: Likewise.
1099 * config/m68k/tm-linux.h: Likewise.
1100
9648bac8
AC
11012002-11-23 Andrew Cagney <ac131313@redhat.com>
1102
1103 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1104 dummy frame initialization code.
1105 * mips-tdep.c (mips_gdbarch_init): Ditto.
1106
91a175b3
CF
11072002-11-22 Christopher Faylor <cgf@redhat.com>
1108
1109 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1110 attach will hang.
1111
f4ded5b1
AC
11122002-11-22 Andrew Cagney <ac131313@redhat.com>
1113
1114 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1115 to default_frame_address.
1116 * gdbarch.h, gdbarch.c: Re-generate.
1117
1118 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1119 or frame_locals_address to default_frame_address.
1120 * m68k-tdep.c (m68k_gdbarch_init): Update.
1121 * i386-tdep.c (i386_gdbarch_init): Update.
1122 * frv-tdep.c (frv_gdbarch_init): Update.
1123 * sh-tdep.c (sh_gdbarch_init): Update.
1124 * v850-tdep.c (v850_gdbarch_init): Update.
1125 * sparc-tdep.c (sparc_gdbarch_init): Update.
1126 * mips-tdep.c (mips_gdbarch_init): Update.
1127 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1128 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1129 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1130
1131 * cris-tdep.c (cris_frame_args_address): Delete function.
1132 (cris_frame_locals_address): Delete function.
1133 (cris_gdbarch_init): Do not set frame_args_address or
1134 frame_locals_address.
1135
f7c1e0f3
MS
11362002-11-22 Michael Snyder <msnyder@redhat.com>
1137
1138 * thread-db.c (thread_db_load): Tell the user what's going on
1139 if dlopen fails on libthread_db.
1140
03dac896
AS
11412002-11-23 Andreas Schwab <schwab@suse.de>
1142
1143 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1144 invariant return values.
1145
7a67d0fe
AS
11462002-11-22 Andreas Schwab <schwab@suse.de>
1147
1148 * valops.c (value_slice): Move declaration of `offset' to avoid
1149 warning.
1150
5633f842
CF
11512002-11-22 Christopher Faylor <cgf@redhat.com>
1152
1153 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1154 (struct so_stuff): Add end_addr field.
1155 (register_loaded_dll): Calculate and store end address of loaded dll.
1156 (solib_address): New function.
1157 (child_solib_loaded_library_pathname): Pass carefully constructed
1158 section info to safe_symbol_file_add rather than ignoring it.
1159 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1160 DLL is loaded.
1161 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1162 (child_create_inferior): Fix a compiler warning.
1163 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1164 (solib_address): Declare new function.
1165
d85fe7f7
AS
11662002-11-22 Andreas Schwab <schwab@suse.de>
1167
1168 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1169 and FPS registers.
1170
8308e54c
DJ
11712002-11-21 Daniel Jacobowitz <drow@mvista.com>
1172
1173 * maint.c (_initialize_maint_cmds): Fix typo. From
1174 Francesco Potorti` <pot@gnu.org>.
1175
8997bd5e
AC
11762002-11-21 Andrew Cagney <cagney@redhat.com>
1177
1178 * mips-tdep.c (mips_dump_tdep): Delete references to
1179 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1180 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1181 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1182 * printcmd.c (build_address_symbolic): Delete calls to
1183 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1184 (address_info): Ditto.
1185 Fix PR gdb/773.
1186
4e87b832
KD
11872002-11-19 Klee Dienes <kdienes@apple.com>
1188 Adam Fedor <fedor@gnu.org>
1189
1190 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1191 the ability to explicitly specify the quote characters and word
1192 break characters; if NULL is specified for either, use the old
1193 behavior of using the characters used by the completer.
1194 (skip_chars): New function. Convenience wrapper around
1195 skip_quoted_chars to provide the original skip_chars behavior.
1196 * completer.h (skip_quoted_chars): Add prototype.
1197
9ba8d803
AC
11982002-11-19 Andrew Cagney <ac131313@redhat.com>
1199
1200 Problems reported by Paul Eggert.
1201 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1202
0a595803
AS
12032002-11-19 Andreas Schwab <schwab@suse.de>
1204
1205 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1206 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1207 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1208 (m68k_linux_frame_saved_pc): Move to ...
1209 * m68klinux-tdep.c: ... here. New file.
1210 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1211 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1212
e8afa4d7
AF
12132002-11-19 Adam Fedor <fedor@gnu.org>
1214
1215 * objc-exp.y: Revert to old skip_quoted usage.
1216
a76c9d72
AF
12172002-11-19 Adam Fedor <fedor@gnu.org>
1218
1219 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1220 (objc_lang_h): Define.
1221 (YYFILES): Add objc-exp.tab.c.
1222 (local-maintainer-clean): Remove objc-exp.tab.c.
1223 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1224
fd0e9d45
PM
12252002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1226
1227 * p-exp.y (typecast rule): Add automatic dereference of
1228 pascal classes if needed.
1229 (THIS): Set current_type.
1230 Automatically dereference pascal classes.
1231 (typebase rule): Add ^typebase recognition.
1232
82eeeb94
AF
12332002-11-18 Adam Fedor <fedor@gnu.org>
1234
1235 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1236 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1237 (op_name): Handle OP_OBJC_SELF.
1238 * Makefile.in (expprint.o): Add additional depends.
1239
646df18d
AF
12402002-11-18 Adam Fedor <fedor@gnu.org>
1241
1242 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1243 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1244 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1245 * objc-exp.y: Likewise.
1246
379b85df
AF
12472002-11-18 Adam Fedor <fedor@gnu.org>
1248
1249 * gdb/parser-defs.h: (struct objc_class_str): New structure
1250 for parsing ObjC classes.
1251
85cf597a
AC
12522002-11-18 Andrew Cagney <ac131313@redhat.com>
1253
1254 * stack.c (frame_relative_level): Copy function from here ...
1255 * frame.c (frame_relative_level): ...to here.
1256
5a203e44
AC
12572002-11-18 Andrew Cagney <ac131313@redhat.com>
1258
1259 * frame.h (enum frame_type): Define.
1260 (get_frame_type): Declare.
1261 (struct frame_info): Add field `type'. Delete field
1262 signal_handler_caller.
1263 (deprecated_set_frame_signal_handler_caller): Declare.
1264 * frame.c (get_frame_type): New function.
1265 (deprecated_set_frame_type): New function.
1266 (create_new_frame): Set the frame's type.
1267 (get_prev_frame): Similar.
1268 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1269 * s390-tdep.c: Ditto.
1270 * m68klinux-nat.c: Ditto.
1271 * ns32k-tdep.c: Ditto.
1272 * x86-64-linux-tdep.c: Ditto.
1273 * vax-tdep.c: Ditto.
1274 * rs6000-tdep.c: Ditto.
1275 * ppc-linux-tdep.c: Ditto.
1276 * i386-interix-tdep.c: Ditto.
1277 * mips-tdep.c: Ditto.
1278 * m68k-tdep.c: Ditto.
1279 * hppa-tdep.c: Ditto.
1280 * ia64-tdep.c: Ditto.
1281 * cris-tdep.c: Ditto.
1282 * arm-tdep.c: Ditto.
1283 * alpha-tdep.c: Ditto.
1284 * i386-tdep.c: Ditto.
1285 * stack.c: Ditto.
1286 * ada-lang.c: Ditto.
1287 * blockframe.c: Update.
1288 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1289 deprecated_set_frame_type instead of signal_handler_caller.
1290 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1291 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1292 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1293
bf4ae8b2
KD
12942002-11-18 Klee Dienes <kdienes@apple.com>
1295
1296 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1297
a672ef13
KD
12982002-11-18 Klee Dienes <kdienes@apple.com>
1299
1300 * buildsym.c (pop_context): Add comment.
1301
0c5e171a
KD
13022002-11-18 Klee Dienes <kdienes@apple.com>
1303
1304 * buildsym.h (pop_context): Convert to function, defined in
1305 buildsym.c.
1306 * buildsym.c: Include gdb_assert.h.
1307 (pop_context): Implement as C function. Add check for stack
1308 underflow.
1309 * dbxread.c (process_one_symbol): Complain and stop processing
1310 that symbol if we are already at the top of the context stack for
1311 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1312 when processing N_RBRAC.
1313
8a1f4c4c
DJ
13142002-11-16 Daniel Jacobowitz <drow@mvista.com>
1315
1316 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1317 define.
1318 (struct target_waitstatus): Add opaque definition.
1319 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1320 * exec.c (init_exec_ops): Likewise.
1321 * fork-child.c (clone_and_follow_inferior): Remove.
1322 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1323 * inferior.h (clone_and_follow_inferior): Remove prototype.
1324 * infrun.c (follow_fork_mode_both): Remove.
1325 (follow_fork_mode_kind_names): Remove commented out "both".
1326 (follow_inferior_fork): Remove follow_fork_mode_both support.
1327 * inftarg.c (child_clone_and_follow_inferior): Remove.
1328 (child_post_follow_inferior_by_clone): Remove.
1329 (init_child_ops): Don't set to_clone_and_follow_inferior
1330 or to_post_follow_inferior_by_clone.
1331 * target.c (default_clone_and_follow_inferior): Remove.
1332 (cleanup_target): Don't set to_clone_and_follow_inferior
1333 or to_post_follow_inferior_by_clone.
1334 (find_default_clone_and_follow_inferior): Remove.
1335 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1336 (debug_to_clone_and_follow_inferior): Remove.
1337 (debug_to_post_follow_inferior_by_clone): Remove.
1338 (setup_target_debug): Don't set to_clone_and_follow_inferior
1339 or to_post_follow_inferior_by_clone.
1340 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1341 and to_post_follow_inferior_by_clone.
1342 (child_clone_and_follow_inferior): Remove prototype.
1343 (child_post_follow_inferior_by_clone): Remove prototype.
1344 (target_clone_and_follow_inferior): Remove macro.
1345 (target_post_follow_inferior_by_clone): Remove macro.
1346 (find_default_clone_and_follow_inferior): Remove prototype.
1347
47932f85
DJ
13482002-11-16 Daniel Jacobowitz <drow@mvista.com>
1349
1350 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1351 inferior_has_vforked, and inferior_has_execd instead of
1352 target_has_forked, target_has_vforked, and target_has_execd.
1353 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1354 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1355 (CHILD_WAIT): Define.
1356 (child_wait): Add prototype.
1357 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1358 Add prototype.
1359 (hpux_has_vforked): Likewise, from child_has_vforked.
1360 (hpux_has_execd): Likewise, from child_has_execd.
1361 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1362 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1363 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1364 and hpux_has_syscall_event instead of the target hooks.
1365 * infrun.c (inferior_has_forked, inferior_has_vforked)
1366 (inferior_has_execd): New functions.
1367 * inftarg.c (not_same_real_pid): Remove.
1368 (child_wait): Remove references to not_same_real_pid,
1369 target_has_forked, target_has_vforked, target_has_execd,
1370 and target_has_syscall_event.
1371 (child_has_forked, child_has_vforked, child_has_execd)
1372 (child_has_syscall_event): Remove.
1373 (init_child_ops): Remove references to child_has_forked,
1374 child_has_vforked, child_has_execd, and child_has_syscall_event.
1375 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1376 (hpux_has_vforked): Likewise, from child_has_vforked.
1377 (hpux_has_execd): Likewise, from child_has_execd.
1378 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1379 * target.c (cleanup_target): Remove references to
1380 to_has_forked, to_has_vforked, to_has_execd, and
1381 to_has_syscall_event.
1382 (update_current_target): Likewise.
1383 (setup_target_debug): Likewise.
1384 (debug_to_has_forked): Remove.
1385 (debug_to_has_vforked): Remove.
1386 (debug_to_has_execd): Remove.
1387 (debug_to_has_syscall_event): Remove.
1388 * target.h (struct target_ops): Remove to_has_forked.
1389 to_has_vforked, to_has_execd, and to_has_syscall_event.
1390 (child_has_forked, child_has_vforked, child_has_execd)
1391 (child_has_syscall_event): Remove prototypes.
1392 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1393 prototypes.
1394 (target_has_forked, target_has_vforked, target_has_execd)
1395 (target_has_syscall_event): Remove macros.
1396
4088142a
DJ
13972002-11-16 Daniel Jacobowitz <drow@mvista.com>
1398
1399 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1400 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1401 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1402 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1403 * target.c (cleanup_target): Remove reference to
1404 to_can_follow_vfork_prior_to_exec.
1405 (update_current_target): Likewise.
1406 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1407 (setup_target_debug): Remove reference to
1408 to_can_follow_vfork_prior_to_exec.
1409 * target.h (struct target_ops): Remove
1410 to_can_follow_vfork_prior_to_exec.
1411 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1412 (target_can_follow_vfork_prior_to_exec): Remove definition.
1413 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1414 define.
1415 * infrun.c (follow_vfork_when_exec): Remove.
1416 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1417 (follow_exec): Likewise.
1418 (handle_inferior_event): Likewise.
1419 (keep_going): Likewise.
1420
18cde8d5
AC
14212002-11-15 Andrew Cagney <cagney@redhat.com>
1422
1423 * frame.c (generic_unwind_get_saved_register): Make static.
1424 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1425 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1426 defaults to generic_unwind_get_saved_register.
1427 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1428 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1429 * frv-tdep.c (frv_gdbarch_init): Ditto.
1430 * i386-tdep.c (i386_gdbarch_init): Ditto.
1431 * s390-tdep.c (s390_gdbarch_init): Ditto.
1432 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1433 * v850-tdep.c (v850_gdbarch_init): Ditto.
1434 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1435 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1436 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1437
a6b063af
AC
14382002-11-15 Andrew Cagney <cagney@redhat.com>
1439
1440 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1441 i386-tdep.c.
1442
f407986f
AC
14432002-11-15 Andrew Cagney <cagney@redhat.com>
1444
1445 * frame.h (sigtramp_saved_pc): Delete declaration.
1446 * blockframe.c (sigtramp_saved_pc): Delete function.
1447 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1448 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1449 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1450 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1451
f18c5a73
AC
14522002-11-15 Andrew Cagney <ac131313@redhat.com>
1453
1454 * frame.c (frame_pc_unwind): New function.
1455 (frame_saved_regs_pc_unwind): New function.
1456 (frame_register_unwind): Pass unwind_cache instead of
1457 register_unwind_cache.
1458 (set_unwind_by_pc): Add unwind_pc parameter, set.
1459 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1460 (get_prev_frame): Ditto.
1461 * frame.h (frame_pc_unwind_ftype): Declare.
1462 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1463 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1464 (frame_pc_unwind): Declare.
1465 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1466 (struct dummy_frame): Add comment mentioning that values are for
1467 previous frame.
1468 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1469 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1470 (generic_file_frame_chain_valid): Ditto.
1471 * stack.c (frame_info): Ditto.
1472
d9285969 14732002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
1474
1475 * linespec.c (locate_first_half): New function.
1476 (decode_line_1): Move code into locate_first_half.
1477
d741b867
AC
14782002-11-15 Andrew Cagney <ac131313@redhat.com>
1479
1480 * complaints.h: Add comment explaining how to eliminate a
1481 deprecated_complain call.
24382c5c 1482 * complaints.h: Fix spelling errors.
d741b867 1483
82d03c99
DC
14842002-11-15 David Carlton <carlton@math.stanford.edu>
1485
1486 * printcmd.c: Remove #include "disasm.h".
1487
c97eb5d9
AC
14882002-11-14 Andrew Cagney <ac131313@redhat.com>
1489
1490 * frame.h: Move the most relevant interface functions to the start
1491 of the file.
1492
524d7c18
AC
14932002-11-14 Andrew Cagney <ac131313@redhat.com>
1494
1495 * regcache.h (deprecated_registers): Rename registers.
1496 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1497 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1498 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1499 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1500 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1501 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1502 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1503 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1504 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1505 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1506 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1507 * v850ice.c: Update.
1508
6411e720
AC
1509Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1510
1511 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1512 NULL buffer.
1513
73937e03
AC
15142002-11-13 Andrew Cagney <cagney@redhat.com>
1515
1516 * regcache.h (deprecated_read_register_bytes): Rename
1517 read_register_bytes.
1518 (deprecated_write_register_bytes): Rename write_register_bytes.
1519 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1520 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1521 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1522 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1523 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1524 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1525 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1526 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1527 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1528 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1529 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1530 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1531 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1532 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1533
fb0cd46e
JB
15342002-11-13 Jim Blandy <jimb@redhat.com>
1535
1536 * findvar.c (read_var_value): Doc fix.
1537
2d28509a
AC
15382002-11-13 Andrew Cagney <cagney@redhat.com>
1539
1540 * regcache.c (struct regcache): Replace passthough_p with
1541 readonly_p.
1542 (regcache_xmalloc): Initialize readonly_p.
1543 (build_regcache): Initialize readonly_p.
1544 (regcache_save): New function.
1545 (regcache_restore): New function.
1546 (regcache_cpy): Re-implement using regcache_save and
1547 regcache_restore.
1548 (regcache_raw_read): Update.
1549 (regcache_cooked_read): When a read-only cache, checked for cached
1550 pseudo register values.
1551 (regcache_raw_write): Assert that the cache is not read-only.
1552 Remove code handling a non-passthrough cache.
1553 * regcache.h (regcache_save): Declare.
1554 (regcache_restore): Declare.
1555
067df2e5
AC
15562002-11-13 Andrew Cagney <cagney@redhat.com>
1557
1558 * regcache.c (struct regcache_descr): Add fields
1559 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1560 (init_legacy_regcache_descr): Compute the size of a cooked
1561 register cache and then assign that to sizeof_raw_registers. Set
1562 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1563 (init_legacy_regcache_descr): Ditto.
1564
51b1fe4e
AC
15652002-11-13 Andrew Cagney <cagney@redhat.com>
1566
1567 * regcache.c (register_buffer): Move to near start of file, update
1568 description.
1569 (regcache_raw_read): Use.
1570 (regcache_raw_write): Use.
1571 (struct regcache): Rename raw_registers to registers and
1572 raw_register_valid_p to register_valid_p.
1573 (regcache_xmalloc): Update.
1574 (regcache_xfree): Update.
1575 (register_buffer): Update.
1576 (regcache_cpy): Update.
1577 (regcache_cpy_no_passthrough): Update.
1578 (regcache_valid_p): Update.
1579 (deprecated_grub_regcache_for_registers): Update.
1580 (deprecated_grub_regcache_for_register_valid): Update.
1581 (set_register_cached): Update.
1582 (regcache_raw_write): Update.
1583
80b4c677
PM
15842002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1585
1586 * p-exp.y (name_not_typename): Use copy_name to
1587 set current_type variable for fields of THIS.
1588
0f3fafde
DJ
15892002-11-12 Daniel Jacobowitz <drow@mvista.com>
1590
1591 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1592 * monitor.c (init_base_monitor_ops): Likewise.
1593 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1594 * remote-array.c (init_array_ops): Likewise.
1595 * remote-e7000.c (init_e7000_ops): Likewise.
1596 * remote-es.c (init_es1800_ops): Likewise.
1597 (init_es1800_child_ops): Likewise.
1598 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1599 * remote-sim.c (init_gdbsim_ops): Likewise.
1600 * remote-st.c (init_st2000_ops): Likewise.
1601 * sol-thread.c (init_sol_core_ops): Likewise.
1602 (init_sol_thread_ops): Likewise.
1603 * v850ice.c (init_850ice_ops): Likewise.
1604 * win32-nat.c (init_child_ops): Likewise.
1605 * wince.c (init_child_ops): Likewise.
1606
82c0260e
AC
16072002-11-12 Andrew Cagney <ac131313@redhat.com>
1608
1609 * utils.c (gdb_realpath): Make rp a constant pointer.
1610
70d35819
AC
16112002-11-12 Andrew Cagney <ac131313@redhat.com>
1612
1613 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1614 a constant buffer; cannonicalize_file_name(); realpath() with a
1615 pathconf() defined buffer, xstrdup().
1616
9835a8b0
AC
16172002-11-12 Andrew Cagney <ac131313@redhat.com>
1618
1619 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1620 to hang2.C; hang3.c to hang3.C.
1621
3f47be5c
EZ
16222002-11-11 Elena Zannoni <ezannoni@redhat.com>
1623
1624 * findvar.c (read_var_value): Reenable TLS code.
1625
16262002-11-11 Elena Zannoni <ezannoni@redhat.com>
1627 Jim Blandy <jimb@redhat.com>
1628
1629 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1630 * target.c (update_current_target): Add
1631 to_get_thread_local_address.
1632 * target.h (to_get_thread_local_address): Export.
1633 (target_get_thread_local_address): Define.
1634 (target_get_thread_local_address_p): Define.
1635 * thread-db.c: Include solib-svr4.h.
1636 (td_thr_tls_get_addr_p): Define.
1637 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1638 (thread_db_get_thread_local_address): New function.
1639 (init_thread_db_ops): Initialize to_get_thread_local_address.
1640 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1641 * configure: Regenerate.
1642 * config.in: Regenerate.
1643
636b1a6d
DC
16442002-11-11 David Carlton <carlton@math.stanford.edu>
1645
1646 * linespec.c (set_flags): New function.
1647 (decode_line_1): Move code into set_flags.
1648
44fe14ab
DC
16492002-11-11 David Carlton <carlton@math.stanford.edu>
1650
1651 * linespec.c (decode_line_1): Move chunks of code to separate
1652 functions.
1653 (initialize_defaults): New function.
1654 (decode_indirect): New function.
1655
e6f181f5
AC
16562002-11-11 Andrew Cagney <ac131313@redhat.com>
1657
8971b011
AC
1658 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1659 instead of void_code_ptr.
1660 (sigtramp_saved_pc): Ditto.
1661
e6f181f5
AC
1662 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1663 i386_fp_regnum_p.
1664
01ad7f36
DJ
16652002-11-10 Daniel Jacobowitz <drow@mvista.com>
1666
1667 * gdbtypes.h (struct main_type): Move artificial flag out of
1668 loc. New member of ``struct field'' named static_kind. Reduce
1669 overloaded meaning of bitsize.
1670 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1671 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1672 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1673
1674 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1675 new fields.
1676 (template_to_fixed_record_type, template_to_static_fixed_type)
1677 (to_record_with_fixed_variant_part): Likewise.
1678 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1679 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1680 * dwarfread.c (struct_type, enum_type): Likewise.
1681 * hpread.c (hpread_read_enum_type)
1682 (hpread_read_function_type, hpread_read_doc_function_type)
1683 (hpread_read_struct_type): Likewise.
1684 * mdebugread.c (parse_symbol): Likewise.
1685
bf1e52be
AC
16862002-11-10 Andrew Cagney <ac131313@redhat.com>
1687
1688 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1689 * stack.c (print_frame_info_base): Update.
1690 (print_frame_info_base, frame_info): Update.
1691 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1692 (sparc_frame_saved_pc): Update.
1693 * ada-lang.c (find_printable_frame): Update.
1694 * breakpoint.c (deprecated_frame_in_dummy): Update.
1695
ce556f85
MK
16962002-11-09 Mark Kettenis <kettenis@gnu.org>
1697
1698 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1699 defined.
1700 (regmap): Extend to cover all registers.
1701 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1702 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1703 definitions.
1704 (fetch_register, sore_register): Simplify.
1705 (old_fetch_inferior_registers, old_store_inferior_registers):
1706 Remove functions.
1707 (cannot_fetch_register, cannot_store_register): Change
1708 implementation to use regmap array to decide which registers
1709 cannot be fetched/stored. This removes $orig_eax from the
1710 registers that cannot be fetched/stored.
1711 (fetch_inferior_registers): Call fetch_register directly instead
1712 of calling old_fetch_inferior_registers.
1713 (store_inferior_registers): Call store_register directly instead
1714 of calling old_store_inferior_registers.
1715 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1716 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1717 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1718
932bb524
KD
17192002-11-09 Klee Dienes <kdienes@apple.com>
1720
1721 * i387-tdep.c (i387_supply_register): When called with NULL as a
1722 buffer, mark the register as not provided (to mirror the behavior
1723 of supply_register).
1724 (i387_supply_fxsave): Ditto.
1725 (i387_supply_fsave): Ditto (inherits the behavior from
1726 i387_supply_register).
1727
ebe68b27
KD
17282002-11-09 Klee Dienes <kdienes@apple.com>
1729
1730 * blockframe.c (sigtramp_saved_pc): Use
1731 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1732 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1733 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1734
15220c65
AC
17352002-11-09 Andrew Cagney <ac131313@redhat.com>
1736
1737 * frame.c (get_prev_frame): Test prev_p to identify a previously
1738 unwound frame. Initialize prev_p.
1739 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1740 comment.
1741
95adb866
AC
17422002-11-09 Andrew Cagney <ac131313@redhat.com>
1743
1744 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1745 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1746 more comments. Zap dead code.
1747
e71ecd70
MK
17482002-11-09 Mark Kettenis <kettenis@gnu.org>
1749
1750 * infcmd.c (print_vector_info, print_float_info): Move code that
1751 checks whether the target has any registers and whether there is a
1752 selected frame up, such that it is also used if a target provides
1753 multi-arch definitions of these functions.
1754
c525330d
AC
17552002-11-08 Andrew Cagney <ac131313@redhat.com>
1756
72bdd927
AC
1757 * Makefile.in (DESTDIR): Define.
1758 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1759 prefix.
1760
c525330d
AC
1761 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1762 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1763
38c968cf
AC
17642002-11-08 Andrew Cagney <ac131313@redhat.com>
1765
1766 * i386-linux-tdep.c: Include "reggroups.h".
1767 (i386_linux_register_reggroup_p): New function.
1768 (i386_linux_init_abi): Set register_reggroup_p to
1769 i386_linux_register_reggroup_p.
1770 * i386-tdep.h (i386_register_reggroup_p): Declare.
1771 * i386-tdep.c: Include "reggroups.h".
1772 (i386_init_reggroups): New function.
1773 (i386_add_reggroups): New function.
1774 (i386_register_reggroup_p): New function.
1775 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1776 (_initialize_i386_tdep): Call i386_init_reggroups.
1777 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1778 specific reggroups.
1779
19e33363
MK
17802002-11-09 Mark Kettenis <kettenis@gnu.org>
1781
371a6e84
MK
1782 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1783 request that's available in *BSD.
1784
94ba925a
MK
1785 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1786
19e33363
MK
1787 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1788 FDOFF_REGNUM.
1789
8779790c
AC
17902002-11-08 Andrew Cagney <ac131313@redhat.com>
1791
1792 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1793 * dummy-frame.c (find_dummy_frame): Rename
1794 generic_find_dummy_frame, make static. Return the dummy frame
1795 instead of the regcache.
1796 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1797 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1798 (dummy_frame_register_unwind): Rename
1799 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1800 * dummy-frame.h (dummy_frame_register_unwind): Rename
1801 generic_call_dummy_register_unwind.
1802
8674b74f
MK
18032002-11-08 Mark Kettenis <kettenis@gnu.org>
1804
1805 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1806 except the inclusion of "i386/tm-i386.h", to...
1807 * config/i386/nm-i386v42mp.h: ...here.
1808 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1809
4c1e7e9d
AC
18102002-11-08 Andrew Cagney <ac131313@redhat.com>
1811
1812 * Makefile.in (frame.o): Update dependencies.
1813 * blockframe.c (current_frame, frame_obstack_alloc)
1814 (frame_saved_regs_zalloc, get_current_frame)
1815 (set_current_frame, create_new_frame)
1816 (set_unwind_by_pc, get_next_frame)
1817 (flush_cached_frames, reinit_frame_cache)
1818 (frame_saved_regs_register_unwind)
1819 (deprecated_generic_get_saved_register)
1820 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1821 (_initialize_blockframe): Move frame code from here...
1822 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1823 "annotate.h" and "dummy-frame.h".
1824 (_initialize_frame): New function.
1825
921e78cf
JB
18262002-11-08 Jim Blandy <jimb@redhat.com>
1827
1828 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1829 when we finish a function a context.
1830 * buildsym.h (outermost_context_p): New macro.
1831 (Bug analyzed by David Edelsohn.)
1832
9c1412c1
AC
18332002-11-08 Andrew Cagney <ac131313@redhat.com>
1834
1835 * blockframe.c: Include "dummy-frame.h".
1836 (struct dummy_frame, dummy_frame_stack)
1837 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1838 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1839 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1840 (generic_save_call_dummy_addr, generic_pop_current_frame)
1841 (generic_pop_dummy_frame, generic_fix_call_dummy)
1842 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1843 dummy frame code from here...
1844 * dummy-frame.c: ...to here. New file.
1845 * dummy-frame.h: New file.
1846 (generic_call_dummy_register_unwind): Declare.
1847 (generic_find_dummy_frame): Declare.
1848 * Makefile.in (SFILES): Add dummy-frame.c.
1849 (dummy-frame.o): Specify dependencies.
1850 (dummy_frame_h): Define.
1851 (COMMON_OBS): Add dummy-frame.o.
1852 (blockframe.o): Update dependencies.
1853
208d8187
JB
18542002-11-08 Jim Blandy <jimb@redhat.com>
1855
1856 * dwarf2read.c (read_func_scope): Restore local_symbols and
1857 param_symbols after we finish the function context. (Based on a
1858 patch from David Edelsohn.)
1859
413dad4d
DC
18602002-11-08 David Carlton <carlton@math.stanford.edu>
1861
1862 * linespec.c (symbol_found): New function.
1863 (minsym_found): New function.
1864 (decode_line_1): Separate out some code into separate functions.
1865
5512c44a
JB
18662002-11-08 Joel Brobecker <brobecker@gnat.com>
1867
1868 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1869 the benefit of the interix target.
1870 * i386-tdep.h (i386_frameless_signal_p): Declare.
1871
1b33ef47
AC
18722002-11-08 Andrew Cagney <ac131313@redhat.com>
1873
1874 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1875 declaration that snuck in from change below.
1876
23a34459
AC
18772002-11-06 Andrew Cagney <cagney@redhat.com>
1878
1879 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1880 all callers.
1881 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1882 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1883 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1884 (i386_mxcsr_regnum_p): new function. Use instead of
1885 MXCSR_REGNUM_P.
1886 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1887 (i386_sse_regnum_p): Declare.
1888 (i386_mxcsr_regnum_p): Declare.
1889 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1890 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1891 (IS_FP_REGNUM): Update definition.
1892 (IS_FPU_CTRL_REGNUM): Update definition..
1893 (IS_SSE_REGNUM): Update definition..
1894 * i386v-nat.c (register_u_addr): Update.
1895 * go32-nat.c (fetch_register): Update.
1896 (store_register): Update.
1897
d709c020
JB
18982002-11-07 Joel Brobecker <brobecker@gnat.com>
1899
1900 Preparation work to convert the hppa targets to multiarch partial.
1901
1902 * hppa-tdep.c: Add new functions replacing macro bodies from
1903 config/pa/tm-hppa.h. These function will be used to initialize
1904 the gdbarch structure. Import some comments from tm-hppa.h,
1905 and place them where appropriate, to avoid loosing them when
1906 we cleanup this file.
1907 (hppa_reg_struct_has_addr): New function.
1908 (hppa_inner_than): New function.
1909 (hppa_stack_align): New function.
1910 (hppa_pc_requires_run_before_use): New function.
1911 (hppa_instruction_nullified): New function.
1912 (hppa_register_byte): New function.
1913 (hppa_register_virtual_type): New function.
1914 (hppa_store_struct_return): New function.
1915 (hppa_cannot_store_register): New function.
1916 (hppa_frame_args_address): New function.
1917 (hppa_frame_locals_address): New function.
1918 (hppa_smash_text_address): New function.
1919 (hppa_coerce_float_to_double): New function. Requires the inclusion
1920 of "language.h".
1921
1922 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1923
1924 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1925 gdbarch-eligible macro to a call to the new associated function
1926 created in hppa-tdep.c.
1927 (INNER_THAN): Likewise.
1928 (STACK_ALIGN): Likewise.
1929 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1930 (INSTRUCTION_NULLIFIED): Likewise.
1931 (REGISTER_BYTE): Likewise.
1932 (REGISTER_VIRTUAL_TYPE): Likewise.
1933 (STORE_STRUCT_RETURN): Likewise.
1934 (CANNOT_STORE_REGISTER): Likewise.
1935 (FRAME_ARGS_ADDRESS): Likewise.
1936 (FRAME_LOCALS_ADDRESS): Likewise.
1937 (SMASH_TEXT_ADDRESS): Likewise.
1938 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1939 (ABOUT_TO_RETURN): Delete, as no longer used.
1940
83c31e7d
FN
19412002-11-07 Fernando Nasser <fnasser@redhat.com>
1942
1943 * printcmd.c (disassemble_command): Remove obsolete function.
1944 (_initialize_printcmd): Do not create disassemble command here.
1945 * cli/cli-cmds.c (disassemble_command): New function. Implements
1946 disassemble command.
1947 (init_cli_cmds): Create disassemble command here instead.
1948
0ec30a36
AC
19492002-11-07 Andrew Cagney <ac131313@redhat.com>
1950
1951 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1952
e600bd34
AC
19532002-11-07 Andrew Cagney <ac131313@redhat.com>
1954
1955 * regcache.h (regcache_cooked_read_using_offset_hack)
1956 (regcache_cooked_write_using_offset_hack): Delete declarations.
1957 (register_changed): Delete declaration.
1958 * regcache.c (regcache_cooked_read_using_offset_hack)
1959 (regcache_cooked_write_using_offset_hack): Delete functions.
1960 (cooked_xfer_using_offset_hack): Delete function.
1961 (register_changed): Delete function.
1962
568f8739
JB
19632002-11-07 Jim Blandy <jimb@redhat.com>
1964
1965 * macroscope.c: #include "complaints.h".
1966 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1967 but not in the macro table.
1968 * Makefile.in (macroscope.o): Record dependency.
1969
b0718b7b
JB
19702002-11-07 Joel Brobecker <brobecker@gnat.com>
1971
1972 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1973
2b9e5f3f
AC
19742002-11-07 Andrew Cagney <ac131313@redhat.com>
1975
1976 * regcache.c (deprecated_registers_fetched): Update.
1977 * regcache.h (deprecated_registers_fetched): Rename
1978 registers_fetched.
1979 * remote-vxsparc.c (vx_read_register): Update.
1980 * remote-vxmips.c (vx_read_register): Update.
1981 * remote-vx68.c (vx_read_register): Update.
1982 * irix5-nat.c (fetch_core_registers): Update.
1983 * mipsm3-nat.c (fetch_inferior_registers): Update.
1984 * sun3-nat.c (fetch_inferior_registers): Update.
1985 * symm-nat.c (fetch_inferior_registers): Update.
1986 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1987 (fetch_core_registers): Update.
1988 (fetch_kcore_registers): Update.
1989 * mips-nat.c (fetch_inferior_registers): Update.
1990 * corelow.c (get_core_registers): Update.
1991 * a68v-nat.c (fetch_inferior_registers): Update.
1992
e6e68f1f
JB
19932002-11-06 Joel Brobecker <brobecker@gnat.com>
1994
1995 Put in place the framework necessary for multiarching the hppa targets.
1996 * hppa-tdep.c (hppa_gdbarch_init): New function.
1997 (hppa_dump_tdep): New function.
1998 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1999 tdep structure dumper.
2000 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2001 until the multi-arching conversion has partially been completed.
2002
492254e9
AC
20032002-11-06 Andrew Cagney <ac131313@redhat.com>
2004
2005 * valops.c (value_assign): Merge lval_register case into
2006 lval_reg_frame_relative. Use frame_register and
2007 regcache_cooked_write instead of get_saved_register and
2008 write_register_bytes. After flushing the register cache, try to
2009 re-select the selected frame.
2010
8262ee23
AC
20112002-11-06 Andrew Cagney <ac131313@redhat.com>
2012
2013 * regcache.h (deprecated_register_valid): Rename register_valid.
2014 * regcache.c: Update.
2015 * ia64-aix-nat.c: Update.
2016 * i386gnu-nat.c: Update.
2017 * alpha-nat.c: Update.
2018 * sparc-nat.c: Update.
2019 * lynx-nat.c: Update.
2020 * remote-mips.c: Update.
2021
4facf7e8
JB
20222002-11-06 Joel Brobecker <brobecker@gnat.com>
2023
2024 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2025 to end of file, to be more consistent with the pratice followed
2026 by other targets.
2027
f9418c0f
AC
20282002-11-06 Andrew Cagney <ac131313@redhat.com>
2029
2030 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2031 (print_float_info): Print registers in float_reggroup.
2032 (print_vector_info): Print registers in vector_reggroup.
2033 (default_print_registers_info): When all, print registers in
2034 all_reggroup. Otherwize, print registers in general_reggroup.
2035 (registers_info): Rewrite. Add support for register groups.
2036 Eliminate a goto.
2037
3fe235a7
EZ
20382002-11-06 Elena Zannoni <ezannoni@redhat.com>
2039
2040 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2041 ages.
2042 (symtab_symbol_info): Remove eons old ifdeffed out code.
2043 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2044 command.
2045
ef944135
TR
20462002-11-06 Theodore A. Roth <troth@openavr.org>
2047
2048 * c-exp.y: Add missing semi-colons.
2049 * f-exp.y: Add missing semi-colons.
2050 * m2-exp.y: Add missing semi-colons.
2051 * p-exp.y: Add missing semi-colons.
2052 Add empty action to start rule to avoid a type clash error when
2053 building with bison >= 1.50.
2054
f8302a57
JB
20552002-11-06 Jim Blandy <jimb@redhat.com>
2056
2057 * macrotab.h (struct macro_source_file): Doc fix.
2058
6e382aa3
JJ
20592002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2060
2061 * varobj.c (child_exists, cplus_number_of_children): Change
2062 STREQ macro references to strcmp.
2063 (cplus_name_of_child): Change code to handle the fact that
2064 fields are not necessarily contiguous with regards to their
2065 access control. This is a fix for PR gdb/792.
2066
a216a322
AC
20672002-11-05 Andrew Cagney <ac131313@redhat.com>
2068
2069 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2070 * gdbarch.h, gdbarch.c: Regnerate.
2071 * frame.h (frame_register): Declare.
2072 * frame.c (frame_register): New function.
2073 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2074 GET_SAVED_REGISTER, otherwize call
2075 generic_unwind_get_saved_register.
2076 (frame_register_read): Use frame_register instead of
2077 get_saved_register.
2078
7d5b6fdd
EZ
20792002-11-05 Elena Zannoni <ezannoni@redhat.com>
2080
2081 From Jim Ingham <jingham@apple.com>:
2082 * event-top.c (gdb_disable_readline): New function.
2083 (_initialize_event_loop): Move comment.
2084
b7c64260
EZ
20852002-11-05 Elena Zannoni <ezannoni@redhat.com>
2086
2087 * event-loop.c (start_event_loop): Add comment.
2088 Update copyright.
2089
c2e1b8f2
AC
20902002-11-05 Andrew Cagney <ac131313@redhat.com>
2091
2092 * infcmd.c (default_print_registers_info): Do not call
2093 PRINT_REGISTER_HOOK.
2094
87647bb0
AC
20952002-11-05 Andrew Cagney <ac131313@redhat.com>
2096
2097 * sparc-tdep.c (sparc_print_register_hook): Make static.
2098 (sparc_print_registers_info): New function.
2099 (sparc_do_registers_info): New function.
2100 (sparclet_print_registers_info): New function.
2101 (sparclet_do_registers_info): New function.
2102 (do_sparc_print_registers_info): New function.
2103 (sparc_print_registers): New static function, clone of infcmd.c's
2104 default_print_registers_info.
2105 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2106 (sparclet_do_registers_info): Declare.
2107 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2108 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2109 Re-define.
2110 (sparc_do_registers_info): Declare.
2111 (PRINT_REGISTER_HOOK): Delete macro.
2112 (sparc_print_register_hook): Delete declaration.
2113
8155455b
DC
21142002-11-05 David Carlton <carlton@math.stanford.edu>
2115
2116 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2117 functions.
2118 (lookup_symbol_aux_local): New function.
2119 (lookup_symbol_aux_symtabs): New function.
2120 (lookup_symbol_aux_psymtabs): New function.
2121
29924310
DC
21222002-11-05 David Carlton <carlton@math.stanford.edu>
2123
2124 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2125 previous values of 'objfile' and 'block'.
2126
cc303028
PM
21272002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2128
2129 * values.c (value_change_enclosing_type): Set
2130 enclosing_type field correctly also for the case where
2131 more memory needs to be allocated.
2132
1d70089a
MK
21332002-11-03 Mark Kettenis <kettenis@gnu.org>
2134
f16a25ae
MK
2135 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2136 of puts_filtered.
2137
1d70089a
MK
2138 * i387-tdep.c (i387_print_float_info): Replace calls to
2139 register_read and deprecated_read_register_gen with calls to
2140 frame_register_read, and make the necessary adjustments to the
2141 surrounding code.
2142
7e20f3fb
AC
21432002-11-02 Andrew Cagney <ac131313@redhat.com>
2144
2145 * gdbarch.sh (register_reggroup_p): Allow default value.
2146 * gdbarch.h, gdbarch.c: Regenerate.
2147
192dbe33
AC
21482002-11-02 Andrew Cagney <ac131313@redhat.com>
2149
2150 * regcache.h: Add coment indicating replacements for deprecated
2151 functions.
2152
b59ff9d5
AC
21532002-11-02 Andrew Cagney <cagney@redhat.com>
2154
2155 * reggroups.h, reggroups.c: New files.
2156 * regcache.c: Include "reggroups.h".
2157 (enum regcache_dump_what): Add `regcache_dump_groups'.
2158 (regcache_dump): Contract size of the "Type" column. When
2159 specified, dump the register's groups.
2160 (maintenance_print_register_groups): New function.
2161 (_initialize_regcache): Add command `maint print register-groups'.
2162 * Makefile.in (COMMON_OBS): Add reggroups.o
2163 (SFILES): Add reggroups.c.
2164 (reggroups_h): Define.
2165 (regcache.o, gdbarch.o): Update dependencies.
2166 (reggroups.o): Specify dependencies.
2167 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2168 Add opaque declaration for `struct reggroup' in generated .h file.
2169 Include "reggroups.h" in generated .c file.
2170 gdbarch.h, gdbarch.c: Re-generate.
2171
4caf0990
AC
21722002-11-02 Andrew Cagney <cagney@redhat.com>
2173
2174 * regcache.h (deprecated_read_register_gen): Rename
2175 read_register_gen.
2176 (deprecated_write_register_gen): Rename write_register_gen.
2177 * i387-tdep.c: Update.
2178 * x86-64-linux-nat.c: Update
2179 * wince.c: Update.
2180 * thread-db.c: Update.
2181 * win32-nat.c: Update.
2182 * mips-tdep.c: Update.
2183 * d10v-tdep.c: Update.
2184 * cris-tdep.c: Update.
2185 * remote-sim.c: Update.
2186 * remote-rdi.c: Update.
2187 * remote-rdp.c: Update.
2188 * frame.c: Update.
2189 * target.c: Update.
2190 * blockframe.c: Update.
2191 * x86-64-tdep.c: Update.
2192 * xstormy16-tdep.c: Update.
2193 * sh-tdep.c: Update.
2194 * s390-tdep.c: Update.
2195 * rs6000-tdep.c: Update.
2196 * sparc-tdep.c: Update.
2197 * i386-tdep.c: Update.
2198 * dwarf2cfi.c: Update.
2199 * regcache.c: Update.
2200
7a7adcdf
JB
22012002-11-01 Joel Brobecker <brobecker@gnat.com>
2202
2203 New interix-specific files:
2204 * config/i386/nm-interix.h: New file.
2205 * config/i386/interix.mh: New file.
2206 * config/i386/interix.mt: New file.
2207 * i386-interix-nat.c: New file.
2208 * i386-interix-tdep.c: New file.
2209
bdcdd535
AC
22102002-11-01 Andrew Cagney <cagney@redhat.com>
2211
2212 * frame.h (deprecated_generic_get_saved_register): Rename
2213 generic_get_saved_register.
2214 * blockframe.c (deprecated_generic_get_saved_register): Update.
2215 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2216 (xstormy16_frame_saved_register): Update.
2217 * sh-tdep.c (sh_gdbarch_init): Update.
2218 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2219 * ia64-tdep.c (ia64_get_saved_register): Update.
2220 * cris-tdep.c (cris_gdbarch_init): Update.
2221 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2222 * arm-tdep.c (arm_gdbarch_init): Update.
2223
2a4b7c45
DJ
22242002-10-31 Daniel Jacobowitz <drow@mvista.com>
2225
2226 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2227
ef17e74b
DJ
22282002-10-31 Daniel Jacobowitz <drow@mvista.com>
2229
2230 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2231 trampolines in sigaction.
2232
4904ba5b
AC
22332002-10-31 Andrew Cagney <cagney@redhat.com>
2234
2235 * h8300-tdep.c: Include "gdb_assert.h".
2236 (h8300_print_register): Add gdbarch, file and frame parameters.
2237 Use frame_read_unsigned_register to read the register's value.
2238 Use fprintf_filtered to display output.
2239 (h8300_print_registers_info): Replace h8300_do_registers_info.
2240 (h8300_gdbarch_init): Set print_registers_info.
2241
f908a0eb
AC
22422002-10-31 Andrew Cagney <cagney@redhat.com>
2243
2244 * frame.c (frame_read_unsigned_register): New function.
2245 (frame_read_signed_register): New function.
2246 * frame.h (frame_read_unsigned_register): Declare.
2247 (frame_read_signed_register): Declare.
2248
c5646e11
AC
22492002-10-31 Andrew Cagney <cagney@redhat.com>
2250
2251 * h8500-tdep.c (h8500_print_registers_info): New static function,
2252 clone of infcmd.c's default_print_registers_info.
2253 (h8500_do_registers_info): New funtion.
2254 (h8500_print_register_hook): Rename print_register_hook, make
2255 static.
2256
2257 * config/h8500/tm-h8500.h: Update copyright.
2258 (DEPRECATED_DO_REGISTERS_INFO): Define.
2259 (h8500_do_registers_info: Declare.
2260 (PRINT_REGISTER_HOOK): Delete macro.
2261 (print_register_hook): Delete function.
2262
0bdd672b
AC
22632002-10-31 Andrew Cagney <cagney@redhat.com>
2264
2265 * z8k-tdep.c (z8k_print_register_hook): Make static.
2266 (z8k_print_registers_info): New static function, clone of
2267 infcmd.c's default_print_registers_info.
2268 (z8k_do_registers_info): New function. Wrap
2269 z8k_print_registers_info.
2270 * config/z8k/tm-z8k.h: Update copyright.
2271 (PRINT_REGISTER_HOOK): Delete macro.
2272 (z8k_print_register_hook): Delete declaration.
2273 (DEPRECATED_DO_REGISTERS_INFO): Define.
2274 (z8k_do_registers_info): Declare.
2275
bf9c25dc
JB
22762002-10-30 Joel Brobecker <brobecker@gnat.com>
2277
2278 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2279 as this is already provided by value.h, and was actually causing
2280 a compilation error because of a conflict in parameter type
2281 declaration due to a missing const keyword.
2282 (low_text_segment_addres): Fix a compilation warning.
2283
2c665b51
DJ
22842002-10-29 Daniel Jacobowitz <drow@mvista.com>
2285
2286 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2287 registers without a name.
2288 (mips_linux_cannot_store_register): Don't store registers without
2289 a name.
2290
e70ea697
DC
22912002-10-28 David Carlton <carlton@math.stanford.edu>
2292
2293 * symtab.c (find_addr_symbol): Delete. (It was already commented
2294 out.)
2295 * symtab.h: Delete prototype for find_addr_symbol.
2296
903ad3a6
AC
22972002-10-26 Andrew Cagney <cagney@redhat.com>
2298
2299 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2300 DO_REGISTERS_INFO.
2301 gdbarch.h, gdbarch.c: Re-generate.
2302 * infcmd.c (default_print_registers_info): Update reference.
2303 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2304 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2305 * sh-tdep.c (sh_gdbarch_init): Ditto.
2306 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2307 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2308
ab91194c
MK
23092002-10-26 Mark Kettenis <kettenis@gnu.org>
2310
e3033f15
MK
2311 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2312 cfi_init_extra_frame_info.
2313 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2314 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2315
b83b026c
MK
2316 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2317 target where necessary. Add more comments and remove the ones
2318 that don't provide any useful information.
2319
267bf4bb
MK
2320 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2321 deprecated_read_register_dummy with
2322 frame_unwind_unsigned_register.
2323
751f1375
MK
2324 * i386-tdep.c (i386_extract_struct_value_address): Use
2325 regcache_raw_read_unsigned instead of
2326 regcache_cooked_read_unsigned since we know that the register
2327 we're reading isn't a pseudo register. Rename variable 'val' into
2328 the more descriptive 'addr'.
2329
26abbdc4
MK
2330 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2331 (x86_64_push_return_address): Add comment.
2332 (x86_64_pop_frame): Make static.
2333 (examine_argument): Clarify comment.
2334 (x86_64_skip_prologue): Make prolog_expact variable static.
2335
9f1549cc
MK
2336 * dwarf2cfi.c: Fix some formatting problems.
2337 (context_cpy, read_encoded_pointer): Clarify comments.
2338
ab91194c
MK
2339 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2340 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2341 i386 target back into x86_64_gdbarch_init. Add some comments and
2342 remove meaningless ones.
2343
72367fb4
AC
23442002-10-25 Andrew Cagney <cagney@redhat.com>
2345
2346 * complaints.h (struct deprecated_complaint): Rename `struct
2347 complaint'.
2348 * complaints.c (complain): Update.
2349 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2350 incorrect comment indicating that "symfile.h" was being included
2351 for the `struct complaint' definition.
2352 * remote-vx.c: Update.
2353 * objc-lang.c: Update.
2354 * xcoffread.c: Update.
2355 * hpread.c: Update.
2356 * mdebugread.c: Update.
2357 * stabsread.c: Update.
2358 * dwarf2read.c: Update.
2359 * dwarfread.c: Update.
2360 * elfread.c: Update.
2361 * coffread.c: Update.
2362 * stabsread.h: Update.
2363 * dbxread.c: Update.
2364 * buildsym.c: Update.
2365 * gdbtypes.c: Update.
2366 * macrotab.c: Update.
2367
1f2baacc
MK
23682002-10-25 Mark Kettenis <kettenis@gnu.org>
2369
0c1a73d6
MK
2370 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2371 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2372 (x86_64_init_abi): ...new function.
2373
6aee4d54 2374 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
2375 * i386v-nat.c: Include "i386-tdep.h".
2376
8f9cbe01
AC
23772002-10-25 Andrew Cagney <cagney@redhat.com>
2378
5f11f355
AC
2379 * gdbtypes.c (address_space_name_to_int): Update.
2380 (address_space_int_to_name): Update.
2381 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2382 multi-arch predicate.
2383 (address_class_name_to_type_flags): Ditto.
2384 * gdbarch.h, gdbarch.c: Re-generate.
2385
8f9cbe01
AC
2386 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2387
e8d96a5d
MH
23882002-10-24 Martin M. Hunt <hunt@redhat.com>
2389
2390 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2391
fe39c653
EZ
23922002-10-24 Elena Zannoni <ezannoni@redhat.com>
2393
2394 * symtab.h (INIT_SAL): Delete macro.
2395 (init_sal): Export.
2396 * symtab.c (init_sal): New function.
2397
2398 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2399 to init_sal function call.
2400 (find_sal_from_funcs_and_line): Ditto.
2401 (all_sals_for_line): Ditto.
2402 * breakpoint.c (create_internal_breakpoint): Ditto.
2403 (create_fork_vfork_event_catchpoint): Ditto.
2404 (create_exec_event_catchpoint): Ditto.
2405 (parse_breakpoint_sals): Ditto.
2406 (watch_command_1): Ditto.
2407 (handle_gnu_4_16_catch_command): Ditto.
2408 (clear_command): Ditto.
2409 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2410 * infcmd.c (run_stack_dummy): Ditto.
2411 * infrun.c (process_event_stop_test): Ditto.
2412 (check_sigtramp2): Ditto.
2413 (step_over_function): Ditto.
2414 * linespec.c (decode_line_2): Ditto.
2415 (decode_line_1): Ditto.
2416 * source.c (line_info): Ditto.
2417 * symtab.c (find_pc_sect_line): Ditto.
2418
baed091b
ML
24192002-10-24 Michal Ludvig <mludvig@suse.cz>
2420
2421 * dwarf2cfi.c (struct context)
2422 (struct context_reg): Moved to dwarf2cfi.h
2423 (context_alloc, frame_state_alloc, context_cpy):
2424 Made extern instead of static, removed prototypes.
2425 * dwarf2cfi.h (struct context)
2426 (struct context_reg): New, moved from dwarf2cfi.c
2427 (context_alloc, frame_state_alloc, context_cpy):
2428 New prototypes.
2429 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2430 Changed from static to extern.
2431 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2432 (LINUX_SIGCONTEXT_FP_OFFSET)
2433 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2434 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2435 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2436 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2437 set_gdbarch_*() calls now use x86-64 specific functions
2438 instead of DWARF2 CFI ones.
2439 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2440 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2441 (x86_64_init_extra_frame_info): New prototypes.
2442
c38da1af
DC
24432002-10-23 David Carlton <carlton@math.stanford.edu>
2444
2445 * linespec.c: #include "parser-defs.h".
2446 Delete prototype for find_template_name_end.
2447 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2448
fb9b6b35
JJ
24492002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2450
2451 * NEWS: add recent mi fixes.
2452 * varobj.c (struct varobj): Add new "updated" flag.
2453 (new_variable): Default "updated" flag to 0.
2454 (varobj_set_value): Set "updated" flag to 1 if value
2455 changes.
2456 (varobj_update): Check varobj "updated" flag before
2457 comparing old and refreshed values. Fix for
2458 PR gdb/702.
2459
8da065d5
DC
24602002-10-23 David Carlton <carlton@math.stanford.edu>
2461
2462 * parse.c (parse_exp_1): Use BLOCK_START.
2463 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2464 SYMBOL_BLOCK_VALUE.
2465 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2466
87f2f08c
DC
24672002-10-23 David Carlton <carlton@math.stanford.edu>
2468
2469 * symtab.c: Delete cplusplus_hint.
2470 Delete prototype for find_template_name_end.
2471
88cda038
EZ
24722002-10-23 Elena Zannoni <ezannoni@redhat.com>
2473
2474 * symtab.h: Update comment.
2475
2625d86c
MS
24762002-10-23 Michael Snyder <msnyder@redhat.com>
2477
2478 * printcmd.c (address_info): Restore quotes in output.
2479 * valops.c (value_of_local): Restore quotes in error message.
2480
9cc0d196
EZ
24812002-10-23 Elena Zannoni <ezannoni@redhat.com>
2482
2483 * symtab.c (symbol_demangled_name): New function.
2484 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2485 turning most of it into a function.
2486 (symbol_demangled_name): Export.
2487
19de93d0
MS
24882002-10-23 Michael Snyder <msnyder@redhat.com>
2489
2490 * valops.c (value_of_local): Restore quotes in error message.
2491
89aad1f9
EZ
24922002-10-23 Elena Zannoni <ezannoni@redhat.com>
2493
2494 * symtab.c (symbol_init_language_specific): New function.
2495 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2496 turning most of it into a function.
2497 (symbol_init_language_specific): Export.
2498
d9fa45fe
DC
24992002-10-23 David Carlton <carlton@math.stanford.edu>
2500
2501 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2502 (dwarf_attr_name): Ditto.
2503 (dwarf_type_encoding_name): Ditto.
2504 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2505 (process_die): Handle DW_TAG_namespace,
2506 DW_TAG_imported_declaration, DW_TAG_imported_module.
2507 (read_namespace): New function.
2508
1045b512
JB
25092002-10-22 Joel Brobecker <brobecker@gnat.com>
2510
2511 * configure.in: Define NEW_PROC_API on Interix too.
2512 * configure: Regenerate.
2513
25142002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
2515
2516 * configure: Regenerate using the proper version of autoconf.
2517
3987b9d4
EZ
25182002-10-21 Elena Zannoni <ezannoni@redhat.com>
2519
2520 * findvar.c (read_var_value): Temporarily disable TLS code, until
2521 complete TLS support is added.
2522
9d774e44
EZ
25232002-10-21 Jim Blandy <jimb@redhat.com>
2524 Elena Zannoni <ezannoni@redhat.com>
2525
2526 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2527 for thread local storage locations.
2528 (struct symbol): Add objfile field.
2529 (SYMBOL_OBJFILE): Define.
2530 * dwarf2read.c (is_thread_local): New static variable.
2531 (new_symbol): If variable is in thread local fill in address class
2532 and objfile appropriately.
2533 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2534 stack operation.
2535 * printcmd.c (address_info): Print the information for thread
2536 local storage variable.
2537 * findvar.c (read_var_value): In case of thread local variable,
2538 defer to the target vector code to compute address.
2539
bc4a16ae
EZ
25402002-10-21 Elena Zannoni <ezannoni@redhat.com>
2541
2542 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2543 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2544
407caf07
EZ
25452002-10-21 Elena Zannoni <ezannoni@redhat.com>
2546
2547 * symtab.h (address_class): Rename
2548 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2549 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2550 * printcmd.c (address_info): Ditto.
2551 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2552
005328e3
MK
25532002-10-20 Mark Kettenis <kettenis@gnu.org>
2554
afdb036a
MK
2555 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2556 DBREG_DRX macro to acces debug registers.
2557
ca02e098
MK
2558 * Makefile.in (i386obsd-tdep.o): New target.
2559
03cc47f7
MK
2560 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2561 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2562
005328e3
MK
2563 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2564 * config/i386/obsd.mt: New file.
2565 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2566 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2567 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2568 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2569 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2570 * i386obsd-tdep.c: New file.
2571
9c96f9f2
AF
25722002-10-19 Adam Fedor <fedor@gnu.org>
2573
2574 * objc-exp.y (name_not_typename): Fix invalid comment.
2575
ce1ed485
MK
25762002-10-20 Mark Kettenis <kettenis@gnu.org>
2577
2578 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2579 to allocate partial syms and macro byte caches.
2580
1efc7aaa
DC
25812002-10-18 David Carlton <carlton@math.stanford.edu>
2582
2583 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2584
7e1d63ec
AF
25852002-10-18 Adam Fedor <fedor@gnu.org>
2586
2587 * stabsread.c (find_name_end): New function.
2588 (define_symbol): Use it.
2589
6e8d29a9
DJ
25902002-10-18 Daniel Jacobowitz <drow@mvista.com>
2591
2592 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2593 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2594 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2595 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2596
1efc7aaa 25972002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2598
2599 * symfile.h: Add opaque declaration for struct obstack.
2600 Declare obsavestring to take a const char *.
2601 * symfile.c (obsavestring): Make first argument a const char *.
2602
1aeae86e
AF
26032002-10-16 Adam Fedor <fedor@gnu.org>
2604
2605 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2606 names when matching breakpoints in current file.
2607
8b2dbe47
KB
26082002-10-16 Kevin Buettner <kevinb@redhat.com>
2609
2610 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2611 (read_tag_pointer_type): Add address class support.
2612 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2613 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2614 New methods.
2615 * gdbarch.h, gdbarch.c: Regenerate.
2616 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2617 (make_type_with_address_space, recursive_type_dump): Add address
2618 class support.
2619 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2620 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2621 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2622
74451869
KD
26232002-10-16 Klee Dienes <kdienes@apple.com>
2624
2625 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2626 to get the last character of a char[] buffer, not
2627 name[sizeof(vptr_name)-1].
2628
ff4cb3e8
AF
26292002-10-14 Adam Fedor <fedor@gnu.org>
2630
2631 * symtab.h: New objc_specific struct.
2632 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2633 (SYMBOL_DEMANGLED_NAME): Likewise.
2634
da2cf7e0
AF
26352002-10-14 Adam Fedor <fedor@gnu.org>
2636
2637 * symfile.c (init_filename_language_table): Add ObjC file extension.
2638
4a351cef
AF
26392002-10-14 Adam Fedor <fedor@gnu.org>
2640
2641 * utils.c (puts_filtered_tabular): New function.
2642 (fprintf_symbol_filtered): Get ObjC demangled name.
2643 * defs.h (puts_filtered_tabular): Declared.
2644
9750e763
KB
26452002-10-14 Kevin Buettner <kevinb@redhat.com>
2646
2647 * c-lang.h (c_type_print_varspec_prefix): Delete.
2648 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2649 ``need_post_space'' parameter. Adjust all callers.
2650
eee771c1
DJ
26512002-10-14 Daniel Jacobowitz <drow@mvista.com>
2652
2653 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2654 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2655 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2656 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2657
46c82446
AF
26582002-10-13 Adam Fedor <fedor@gnu.org>
2659
2660 * source.c (print_source_lines): Update comments.
2661
d069f99d
AF
26622002-10-13 Adam Fedor <fedor@gnu.org>
2663
2664 * valops.c (value_of_local): New function.
2665 (value_of_this): Use it.
2666 * value.h (value_of_local): Declared.
2667
53c551b7
AF
26682002-10-13 Adam Fedor <fedor@gnu.org>
2669
2670 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2671 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2672
eb392fbf
AF
26732002-10-12 Adam Fedor <fedor@gnu.org>
2674
2675 * language.c (binop_result_type): Add language_objc to case.
2676 (integral_type): Likewise.
2677 (character_type): Likewise.
2678 (string_type): Likewise.
2679 (boolean_type): Likewise.
2680 (structured_type): Likewise.
2681 (binop_type_check): Likewise.
2682
e2b23ee9
AF
26832002-10-11 Adam Fedor <fedor@gnu.org>
2684
2685 * printcmd.c (address_info): Print 'self' for ObjC.
2686
b01ab485
AF
26872002-10-11 Adam Fedor <fedor@gnu.org>
2688
2689 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2690 OP_SELF.
2691
806e6073
AF
26922002-10-11 Adam Fedor <fedor@gnu.org>
2693
2694 * language.h (CAST_IS_CONVERSION): Add language_objc.
2695
50f85cdf
AF
26962002-10-11 Adam Fedor <fedor@gnu.org>
2697
2698 * defs.h (enum language): Add language_objc.
2699
0d540cdf
KD
27002002-10-11 Klee Dienes <kdienes@apple.com>
2701
69266111 2702 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2703 * gdbcore.h (read_memory_typed_address): Add prototype.
2704 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2705 to read a value destined for a CORE_ADDR, not read_memory_integer.
2706 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2707 (f77_get_dynamic_lowerbound): Ditto.
2708
d5dc7960
MH
27092002-10-11 Martin M. Hunt <hunt@redhat.com>
2710
2711 * utils.c (string_to_core_addr): After turning string into
2712 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2713 which will do necessary sign-extension, etc.
2714
8343f86c
DJ
27152002-10-11 Daniel Jacobowitz <drow@mvista.com>
2716
2717 * c-exp.y (THIS): Delete token and grammar rule.
2718 (yylex): Don't return THIS.
2719 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2720 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2721 * demangle.c (cplus_markers): Update comment. Put '$'
2722 first. Remove CPLUS_MARKER.
2723 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2724 * jv-exp.y (THIS): Delete token and grammar rule.
2725 (yylex): Don't return THIS.
2726 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2727 * objc-exp.y (THIS): Delete token and grammar rule.
2728 (yylex): Don't return THIS.
2729 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2730 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2731 (read_member_functions): Likewise for opname.
2732 (read_tilde_fields): Use is_cplus_marker.
2733
2734 * defs.h (CPLUS_MARKER): Don't define.
2735 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2736 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2737 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2738 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2739 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2740
2741 * config/i386/tm-i386v4.h: Delete file.
2742 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2743 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2744 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2745 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2746 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2747 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2748 * config/i386/i386v4.mt (TM_FILE): Likewise.
2749 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2750
967c0d83
MM
27512002-10-10 Marko Mlinar <markom@opencores.org>
2752
2753 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2754 accidentially not commited 2002-10-09
2755 * gdbarch.h, gdbarch.c: Re-generate.
2756
f74fa174
MM
27572002-10-09 Marko Mlinar <markom@opencores.org>
2758
2759 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2760 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2761 * gdbarch.h, gdbarch.c: Re-generate.
2762
57349743
JB
27632002-10-08 Petr Sorfa <petrs@caldera.com>
2764
2765 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2766
2767 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2768 so we can work on more than one compilation unit at a time. This
2769 helps prepare GDB to handle inter-CU die references.
2770 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2771 the code to be defined before struct comp_unit_head.
2772 (comp_unit_head): Added new members - offset, cu_head,
2773 begin_die, next and dwarf2_abbrevs.
2774 (dwarf2_abbrevs): Removed single static var; now member of
2775 struct comp_unit_head.
2776 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2777 members.
2778 (psymtab_to_symtab_1): Changed to work with the new
2779 struct comp_unit_head.
2780 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2781 constructs the dwarf2_abbrevs[] inside the cu_header.
2782 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2783 dwarf2_abbrev table to clean up.
2784 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2785 handling of dwarf2_abbrevs inside the cu_header.
2786 (read_partial_die): Now supports the call to the new
2787 dwarf2_lookup_abbrev.
2788 (read_full_die): Now supports the call to the new
2789 dwarf2_lookup_abbrev.
2790
4092aadb
CF
27912002-10-06 Christopher Faylor <cgf@redhat.com>
2792
2793 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2794 insure that shell variables, such as "transformed_name" are propagated
2795 to later shell statements in rule.
2796
af0b2512
MK
27972002-10-06 Mark Kettenis <kettenis@gnu.org>
2798
2799 * config/i386/nm-i386sco.h: Add protection against
2800 multiple-inclusion. Include "i386/nm-i386v.h".
2801 (REGISTER_U_ADDR): Remove define.
2802 (i386_register_u_addr): Remove prototype.
2803
d6020d45
MS
28042002-10-04 Michael Snyder <msnyder@redhat.com>
2805
2806 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2807 before treating it as a single-step event.
2808
7248f48e
AF
28092002-10-03 Adam Fedor <fedor@gnu.org>
2810
2811 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2812 (objc_demangle): Remove assignment in if statements, Replace
2813 free with xfree.
2814 (add_msglist): Likewise.
2815 (end_msglist): Likewise.
2816 (complare_selectors): Likewise.
2817 (selectors_info): Likewise.
2818 (compare_classes): Likewise.
2819 (classes_info): Likewise.
2820 (print_object_command): Likewise.
2821 (find_objc_msgcall_submethod): Replace PTR with void *.
2822 * objc-lang.h: Remove check for __STDC__.
2823
52c6a6ac
JJ
28242002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2825
2826 * ui-out.h (ui_out_field_fmt_int): New prototype.
2827 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2828 of field width and alignment.
2829 * stack.c (print_frame_info_base): When printing frame level, use
2830 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2831 PR gdb/192
2832
7e3cec17
JJ
28332002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2834
2835 * MAINTAINERS: Add self to Write After Approval list.
2836
a58dd373
EZ
28372002-10-02 Elena Zannoni <ezannoni@redhat.com>
2838
2839 * infcmd.c (interrupt_target_command_wrapper): Delete.
2840 (interrupt_target_command): Make non static.
2841 (nofp_registers_info): Make static.
2842 * stack.c (return_command_wrapper): Delete.
2843 (return_command): Make non static.
2844
cee6ddeb
EZ
28452002-10-02 Elena Zannoni <ezannoni@redhat.com>
2846
2847 * event-top.c (gdb_setup_readline): New function. Code moved from
2848 _initialize_event_loop().
2849 (_initialize_event_loop): Call gdb_setup_readline().
2850
c4ed33b9
AC
28512002-10-02 Andrew Cagney <ac131313@redhat.com>
2852
2853 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2854 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2855 * gdbarch.h, gdbarch.c: Re-generate.
2856
cef4f5dd
DJ
28572002-10-02 Daniel Jacobowitz <drow@mvista.com>
2858
2859 Fix PR gdb/778
2860 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2861 before recursing.
2862 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2863 of fill_in_vptr_fieldno.
2864
36dc181b 28652002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2866
36dc181b
EZ
2867 * inferior.h (registers_info, stepi_command, nexti_command,
2868 continue_command, interrupt_target_command): Export from infcmd.c.
2869 * frame.h (args_info, selected_frame_level_changed_hook,
2870 return_command): Export from stack.c.
2871 * v850ice.c (stepi_command, nexti_command, continue_command): use
2872 prototypes from inferior.h.
2873 * tracepoint.c (registers_info, args_info, locals_info): Use
2874 prototypes from frame.h and inferior.h.
2875 * Makefile.in (mi-main.o): Add dependency on frame.h.
2876
6f99cb26
AC
28772002-10-02 Andrew Cagney <ac131313@redhat.com>
2878
da3eff49
AC
2879 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2880 value in register 3 adjusted by ppc_gp0_regnum.
2881
6f99cb26
AC
2882 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2883
da615bee
MM
28842002-10-02 Marko Mlinar <markom@opencores.org>
2885
2886 * MAINTAINERS: Add myself to the Write After Approval list.
2887
d154bee2
AO
28882002-10-01 Alexandre Oliva <aoliva@redhat.com>
2889
62a49b2c
AO
2890 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2891 of the section for the N64 ABI, fixed.
2892
d154bee2
AO
2893 * config/mips/tm-irix6.h: Include solib.h.
2894
ed348acc
EZ
28952002-10-01 Elena Zannoni <ezannoni@redhat.com>
2896
2897 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2898 GNU operators.
2899
da0f9dcd
AC
29002002-10-01 Andrew Cagney <ac131313@redhat.com>
2901
2902 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2903 and that "mi0" syntax has been removed.
2904
bdf64bac
DC
29052002-09-30 David Carlton <carlton@math.stanford.edu>
2906
2907 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2908 * ppc-sysv-tdep.c: #include "gdb_string.h".
2909 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2910 pacify GCC.
2911
54c2a1e6
AC
29122002-10-01 Andrew Cagney <ac131313@redhat.com>
2913
2914 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2915 "vrsave"'s register number.
2916
cedea778
AC
29172002-09-30 Andrew Cagney <ac131313@redhat.com>
2918
2919 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2920 use frame_unwind_signed_register to obtain the PC.
2921 (mips_frame_chain): Handle a generic dummy frame.
2922 (mips_init_extra_frame_info): When a generic dummy frame, don't
2923 re-compute the frame base.
2924 (mips_pop_frame): Handle generic dummy frames.
2925 (mips_gdbarch_init): When generic dummy frames, set
2926 use_generic_dummy_frames, push_dummy_frame to
2927 generic_push_dummy_frame, pc_in_call_dummy to
2928 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2929 generic_save_dummy_frame_tos.
2930
68315eb8
AC
29312002-09-30 Andrew Cagney <ac131313@redhat.com>
2932
2933 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2934 against TOP when TOP was explictly set.
2935 (generic_push_dummy_frame): Set TOP to zero.
2936
3b8630c3
EZ
29372002-09-30 Elena Zannoni <ezannoni@redhat.com>
2938
2939 * event-loop.c (start_event_loop): Rename variable 'result' to
2940 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2941
28ee05e9
KS
29422002-09-30 Keith Seitz <keiths@redhat.com>
2943
2944 * gdb-events.sh (selected_thread_changed): New event.
2945 * gdb-events.c: Regenerated.
2946 * gdb-events.h: Regenerated.
2947
6eecb1c8
HPN
29482002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2949
2950 * MAINTAINERS: Add self to Write After Approval list.
2951
92df71f0
FN
29522002-09-30 Fernando Nasser <fnasser@redhat.com>
2953
3b8630c3
EZ
2954 * disasm.c: New file.
2955 * disasm.h: New file.
92df71f0
FN
2956 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2957 (compare_lines): Ditto.
2958 (dump_insns): Ditto.
3b8630c3
EZ
2959 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2960 argument.
92df71f0 2961 (do_assembly_only): Ditto.
3b8630c3
EZ
2962 (do_disassembly): Renamed to gdb_disassembly and moved to
2963 disasm.c. Sdded uiout argument.
2964 * Makefile.in: Add new files. Reorder SFILES list. Update
2965 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2966
0c22854d
AC
29672002-09-29 Andrew Cagney <ac131313@redhat.com>
2968
2969 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2970 bfd/elf64-alpha-fbsd.c.
2971
e67f2023
AC
29722002-09-29 Andrew Cagney <ac131313@redhat.com>
2973
2974 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2975 i386gnu-tdep.c.
2976
89396210
AC
29772002-09-29 Andrew Cagney <ac131313@redhat.com>
2978
2979 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2980 __FUNCTION__.
2981 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2982 function name.
2983 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2984 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2985 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2986 (S_msg_sig_post_reply): Ditto.
2987
7079c36c
CV
29882002-09-28 Corinna Vinschen <vinschen@redhat.com>
2989
89396210
AC
2990 * sh-tdep.c (sh_use_struct_convention): Use definition according
2991 to ABI.
7079c36c
CV
2992 (sh_push_arguments): Store in register with correct endianess.
2993 (sh_default_store_return_value): Ditto.
2994 (sh_gdbarch_init): Set sizeof long double to 8.
2995
975ac915
MK
29962002-09-27 Mark Kettenis <kettenis@gnu.org>
2997
2998 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2999 Fix some whitespace problems.
3000
9bbe19fb
DC
30012002-09-27 David Carlton <carlton@math.stanford.edu>
3002
3003 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3004 (mcore-tdep.o): Ditto.
3005 (ns32k-tdep.o): Ditto.
3006 (ns32knbsd-tdep.o): Ditto.
3007 (sh3-rom.o): Ditto.
3008 (vax-tdep.o): Ditto.
3009 * cris-tdep.c: #include "gdb_string.h"
3010 * mcore-tdep.c: Ditto.
3011 * ns32k-tdep.c: Ditto.
3012 * ns32knbsd-tdep.c: Ditto.
3013 * sh3-rom.c: Ditto.
3014 * vax-tdep.c: Ditto.
3015
43b2fdc7
DC
30162002-09-27 David Carlton <carlton@math.stanford.edu>
3017
3018 * config/djgpp/fnchange.lst: Add entries for
3019 gdb/testsuite/gdb.c++/m-static files.
3020
e8cfbbd9
JW
30212002-09-27 Jim Wilson <wilson@redhat.com>
3022
3023 * MAINTAINERS: Add myself to the Write After Approval list.
3024
43b2fdc7 30252002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
3026
3027 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3028
3029
9f3b7f07
AC
30302002-09-26 Andrew Cagney <ac131313@redhat.com>
3031
3032 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3033 frame.
3034
11269d7e
AC
30352002-09-26 Andrew Cagney <ac131313@redhat.com>
3036
3037 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3038 (rs6000_struct_return_address): Delete variable.
3039 (rs6000_store_struct_return): Update.
3040 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3041 deprecated_extract_struct_value_address.
3042 (rs6000_frame_align): New function.
3043 (rs6000_gdbarch_init): Set frame_align.
3044
f15ab4a7
AC
30452002-09-26 Andrew Cagney <ac131313@redhat.com>
3046
3047 From Grace Sainsbury <graces@redhat.com>:
3048 * Makefile.in (gdbtk-main.o): New target.
3049 (gdb.o): New target.
3050 (main_h): Define.
3051 (main.o): Update dependencies.
3052 (gdb$(EXEEXT)): Add gdb.o.
3053 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3054 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3055 (SUBDIR_GDBTK_CLEAN): Set.
3056 (install-gdbtk): Install the insight binary.
3057 (uninstall-gdbtk): New target.
3058 (all-gdbtk, clean-gdbtk): New rule.
3059 * top.c (use_windows): Default to zero.
3060 * main.c: Include "main.h".
3061 (main): Delete.
3062 (struct captured_main_args): Delete.
3063 (gdb_main): New function.
3064 * main.h: New file.
3065 * gdb.c: New File.
3066
e36180d7
AC
30672002-09-25 Andrew Cagney <cagney@redhat.com>
3068
3069 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3070 (frame_map_regnum_to_name): New function.
3071 (frame_map_name_to_regnum): New function.
3072 * frame.h (frame_map_name_to_regnum): Declare.
3073 (frame_map_regnum_to_name): Declare.
3074 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3075 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3076 * parse.c: Do not include "builtin-regs.h".
3077 (target_map_name_to_register): Delete function.
3078 (write_dollar_variable): Use frame_map_name_to_regnum.
3079 * parser-defs.h (target_map_name_to_register): Delete declaration.
3080 * expprint.c: Include "frame.h".
3081 (print_subexp): Use frame_map_regnum_to_name.
3082 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3083 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3084
8b69000d
AC
30852002-09-25 Andrew Cagney <ac131313@redhat.com>
3086
3087 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3088 wasn't saved, and the next innermost frame is a dummy, return the
3089 dummy frame's link register.
3090
046ca86a
JB
30912002-09-24 Jim Blandy <jimb@redhat.com>
3092
3093 Fix from Paul Breed:
3094 * main.c (captured_main): Add a `break' after the case for 'b'.
3095
94b66fa7
KS
30962002-09-24 Keith Seitz <keiths@redhat.com>
3097
3098 * varobj.c (c_type_of_child): Use get_target_type instead
3099 of TYPE_TARGET_TYPE.
3100
c214a6fd
FN
31012002-09-22 Fernando Nasser <fnasser@redhat.com>
3102
53cb0458
FN
3103 * source.c (get_current_or_default_source_symtab_and_line): Remove
3104 function.
3105 (set_default_source_symtab_and_line): New function. Attempts to
3106 determine a source file to list lines from if one is not currently
3107 defined.
3108 (get_current_source_symtab_and_line): Initialize sal.pc and
3109 sal.end fields.
3110 (set_current_source_symtab_and_line): Mark argument as const.
3111 * source.h: Update declarations and comments.
3112 * linespec.c (decode_line_1): Replace call to removed routine above.
3113 * stack.c (print_frame_info_base): Ditto.
3114 * cli/cli-cmds.c (edit_command): Ditto.
3115 (list_command): Ditto.
3116
31172002-09-22 Fernando Nasser <fnasser@redhat.com>
3118
d6020d45 3119 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 3120 sal.pc and sal.end fields.
c214a6fd
FN
3121 (get_current_or_default_source_symtab_and_line): Ditto.
3122 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3123 so we do not cause a new source symtab to be searched for (reverting an
3124 unintentional change from the 2002-09-20 patch).
3125 * scm-lang.c (scm_unpac): Ditto.
3126
cc3b68a5
AC
31272002-09-21 Andrew Cagney <cagney@redhat.com>
3128
3129 * complaints.c (symfile_explanations): Remove new-line from
3130 ``isolated_message''.
3131 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3132 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3133
5835abe7
NC
31342002-09-20 Nick Clifton <nickc@redhat.com>
3135
3136 * NEWS: Announce that V850EA ISA is no longer supported.
3137 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3138
a15ef5f5
DC
31392002-09-20 David Carlton <carlton@math.stanford.edu>
3140
06ba1b39
DC
3141 * Makefile.in (c-lang.o): Correct dependencies.
3142 (utils.o): Gather dependencies.
3143 (charset.o): Move.
a15ef5f5
DC
3144 * c-lang.c: #include "gdb_string.h"
3145
87885426
FN
31462002-09-20 Fernando Nasser <fnasser@redhat.com>
3147
3148 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3149 * cli/cli-cmds.c (list_command): New function. Implements the new
3150 cli edit command.
3151 (_init_cli_cmds): Add new command definition.
3152 * gdb.1: Document edit command.
3153 * doc/gdb.texinfo: Document edit command.
3154
31552002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
3156
3157 * source.c: Make global variables current_source_symtab and
3158 current_source_line static.
3159 (list_command): Moved to cli/cli-cmds.c.
3160 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3161 (get_first_line_listed): New accessor function.
3162 (get_lines_to_list): New accessor function.
3163 (get_current_source_symtab_and_line): New function. Retrieves the
3164 position in the source code that we consider current.
3165 (get_current_or_default_source_symtab_and_line): New function.
3166 Like the above but attempts to determine a default position if one
3167 is not currently defined.
3168 (set_current_source_symtab_and_line): New function. Sets the source
3169 code position considered current and returns the previously set one.
3170 (clear_current_source_symtab_and_line): Reset stored information about
3171 a current source line.
3172 (_initialize_source): Remove registration for the "list" command and
3173 its alias.
3174 * source.h: Add declarations for the new functions above.
3175 * symtab.h: Remove declarations for the global variables mentioned
3176 above.
3177 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3178 obtain current source line.
3179 * linespec.c (decode_line_1): Ditto.
3180 * macroscope.c (default_macro_scope): Ditto.
3181 * scm-lang.c (scm_unpac): Ditto.
3182 * stack.c (print_frame_info_base): Ditto.
3183 * symfile.c (clear_symtab_users): Ditto.
3184 * symtab.c (decode_line_spec): Ditto.
3185 * cli/cli-cmds.c (list_command): Moved here from source.c.
3186 (ambiguous_line_spec): Moved here from source.c.
3187 (_init_cli_cmds): Add definition for "list" and its alias.
3188 * Makefile.in: Update dependencies.
3189
ddd216ea
CV
31902002-09-20 Corinna Vinschen <vinschen@redhat.com>
3191
3192 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3193 with what gcc thinks is correct.
3194
6d305052
CV
31952002-09-20 Corinna Vinschen <vinschen@redhat.com>
3196
3197 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3198 multiple register push instruction.
3199
234b45d4
KB
32002002-09-19 Jim Blandy <jimb@redhat.com>
3201
3202 Add support for distinct host and target character sets.
3203 * charset.c, charset.h: New files.
3204 * c-exp.y: #include "charset.h".
3205 (yylex): Convert character and string literals to the target
3206 character set, before returning them as the semantic value of the
3207 token.
3208 * c-lang.c: #include "charset.h".
3209 (c_emit_char): Use charset-specific methods to recognize
3210 characters with backslash escape forms, to decide which characters
3211 to print literally and which to print using numeric escape
3212 sequences, and to convert target characters to host characters
3213 before printing.
3214 * utils.c: #include "charset.h".
3215 (no_control_char_error): New function.
3216 (parse_escape): Use charset-specific methods to recognize
3217 backslash escapes, parse `control character' notation, and convert
3218 characters from the host character set to the target character set.
3219 * configure.in: Set the default host character set.
3220 Check where to find iconv, and what its argument types might be.
3221 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3222 * Makefile.in (SFILES): List charset.c.
3223 (COMMON_OBS): List charset.o.
3224 (charset.o): New rule.
3225 (charset_h): New header dependency variable.
3226 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3227 (LIBICONV): New variable, set by configure.
3228 (CLIBS): Include $(LIBICONV) here.
3229 * aclocal.m4, config.in, configure: Regenerated.
3230
525d6a61
JB
32312002-09-19 Joel Brobecker <brobecker@gnat.com>
3232
3233 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3234 bison 1.35 warning.
3235
3ed93867
RE
32362002-09-19 Richard Earnshaw <rearnsha@arm.com>
3237
3238 * gdb_mbuild.sh: New file.
3239
437666f8
AC
32402002-09-19 Andrew Cagney <ac131313@redhat.com>
3241
3242 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3243
389e51db
AC
32442002-09-18 Andrew Cagney <ac131313@redhat.com>
3245
3246 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3247 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3248 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3249 valops.c, value.h: Revert previous change.
3250
3b4efeaa
MS
32512002-09-18 Michael Snyder <msnyder@redhat.com>
3252
3253 Preliminary support for Objective-C:
3254 * defs.h (language_objc): New enum value.
3255 (puts_filtered_tabular): Declaration only, exported from utils.c.
3256 (skip_quoted): Delete, declared in completer.h.
3257 * c-exp.y: Include completer.h.
3258 * p-exp.y: Ditto.
3259 * jv-exp.y: Ditto.
3260 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3261 New operator enum values.
3262 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3263 * language.c (binop_result_type): Handle language_objc case.
3264 (integral_type, character_type, string_type, boolean_type,
3265 structured_type, binop_type_check): Ditto.
3266 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3267 (struct objc_specific): Add to general_symbol_info.
3268 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3269 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3270 * parser-defs.h (struct objc_class_str): New struct type.
3271 (start_msglist, end_msglist, add_msglist): Declaration only,
3272 exported from objc-lang.c.
3273 * value.h (value_of_local, value_nsstring,
3274 call_function_by_hand_expecting_type): Exported from valops.c.
3275 * valops.c (find_function_addr): Export.
3276 (call_function_by_hand_expecting_type): New function.
3277 (value_of_local): New function.
3278 * symfile.c (init_filename_language_table): Add ".m" extension
3279 for Objective-C.
3280 * utils.c (puts_filtered_tabular): New function.
3281 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3282 (set/show demangle): Extend help-string to refer to ObjC.
3283 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3284 * stabsread.c (symbol_reference_defined): Objective-C symbols
3285 may contain colons: make allowances when scanning stabs strings
3286 for colons.
3287 (objc_find_colon): New function.
3288 * printcmd.c (address_info): If language == objc then print
3289 "self" instead of "this".
3290 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3291 OP_NSSTRING, and OP_SELF.
3292 (prefixify_subexp): Ditto.
3293 * source.c (print_source_lines): Mention objc in comment.
3294 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3295 method names.
3296
b9caf505
AC
32972002-09-18 Andrew Cagney <ac131313@redhat.com>
3298
3299 * complaints.h: Update copyright.
3300 (struct complaints): Declare.
3301 (struct complaint): Make `message' constant.
3302 (internal_complaint): Declare.
3303 (complaint): Declare.
3304 (complaint_root): Delete declaration.
3305 (symfile_complaints): Delete declaration.
3306 (struct complaints): Add opaque declaration.
3307 (clear_complaints): Add a complaints parameter.
3308 * complaints.c: Update copyright.
3309 (enum complaint_series): Define.
3310 (complaint_root): Delete.
3311 (struct complaints): Define.
3312 (complaint_sentinel, symfile_complaint_book): New variables.
3313 (symfile_explanations, symfile_complaints): New variables.
3314 New variables.
3315 (get_complaints): New function.
3316 (vcomplaint): New function.
3317 (complaint): New function.
3318 (internal_complaint): New function.
3319 (complain): Call vcomplain with symfile_complaint.
3320 (clear_complaints): Rewrite.
3321 (_initialize_complaints): Use add_setshow_command.
3322 * Makefile.in (complaints.o): Update dependencies.
3323 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3324 to call to clear_complaints.
3325 (new_symfile_objfile, reread_symbols): Ditto.
3326 (oldsyms_complaint): Delete.
3327 (empty_symtab_complaint, unknown_option_complaint): Delete.
3328 (free_named_symtabs): Use complaint instead of complain.
3329
d2e6263c
MS
33302002-09-18 Michael Snyder <msnyder@redhat.com>
3331
5fb2031a
AC
3332 Contributed by Apple Computer, Inc. Merged with current sources
3333 by Adam Fedor <fedor@doc.com> [cagney].
3334
d2e6263c
MS
3335 * objc-lang.c: First clean-up round: comments, indentation.
3336 * objc-lang.h: Ditto.
3337 * objc-lang.y: Ditto.
3338
dec43320
AC
33392002-09-18 Andrew Cagney <ac131313@redhat.com>
3340
3341 * maint.c (maintenance_internal_error): Print the parameter as the
3342 error message.
3343 (maintenance_internal_warning): New function.
3344 (_initialize_maint_cmds): Add command `maint internal-warning'.
3345
3346 * defs.h (internal_warning, internal_vwarning): Declare.
3347 * utils.c (struct internal_problem): Define.
3348 (internal_vproblem): New function.
3349 (internal_warning): New function.
3350 (internal_vwarning): New function.
3351 (internal_warning_problem, internal_error_problem): New variables.
3352 (internal_verror): Just call internal_vproblem.
3353
b81654f1
MS
33542002-09-18 Michael Snyder <msnyder@redhat.com>
3355
3356 * objc-lang.c: New file, support for Objective-C.
3357 Preliminary check-in, not yet integrated into gdb.
3358 * objc-lang.h: New file.
3359 * objc-exp.y: New file.
3360
0542c381
AC
33612002-09-18 Andrew Cagney <ac131313@redhat.com>
3362
7bda5e4a
AC
3363 * infrun.c (signal_stop_update): Convert definition to ISO C.
3364 (signal_print_update): Ditto.
3365 (signal_pass_update): Ditto.
3366 * inflow.c (terminal_save_ours): Ditto.
3367
5247b418
AC
3368 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3369 comments.
3370
fc60962c
AC
3371 * config/djgpp/fnchange.lst: Handle name clashes between
3372 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3373 bfd/coff-tic80.c.
3374
0542c381
AC
3375 * i386-linux-tdep.h: Fix tipo.
3376
5b924b9b
AF
33772002-09-18 Adam Fedor <fedor@gnu.org>
3378
3379 * MAINTAINERS: Add myself to the Write After Approval list.
3380
5afc051b
JB
33812002-09-18 Jim Blandy <jimb@redhat.com>
3382
3383 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3384 texthigh and textlow to reader-specific structs caused
3385 objfile_relocate to miss them. This is fixable, but the work that
3386 the change was supposed to prepare GDB for never got done anyway.
3387
eb944380
DC
33882002-09-18 David Carlton <carlton@math.stanford.edu>
3389
3390 * MAINTAINERS: Alphabetize Write After Approval list.
3391
948e66d9
DJ
33922002-09-18 Daniel Jacobowitz <drow@mvista.com>
3393
3394 Fix PR gdb/709
3395 * values.c (value_static_field): Call read_var_value.
3396
dc604539
AC
33972002-09-18 Andrew Cagney <ac131313@redhat.com>
3398
3399 * valops.c (hand_function_call): Align the initial stack pointer
3400 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3401 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3402 return value.
3403 * mips-tdep.c (mips_frame_align): New function.
3404 (mips_gdbarch_init): Set frame_align.
3405 * gdbarch.sh (FRAME_ALIGN): New method.
3406 * gdbarch.h, gdbarch.c: Re-generate.
3407
cb7e422f
ML
34082002-09-18 Michal Ludvig <mludvig@suse.cz>
3409
3410 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3411 registers.
3412
a094c6fb
AC
34132002-09-17 Andrew Cagney <ac131313@redhat.com>
3414
3415 * NEWS: Mention that MIPS $fp behavior changed.
3416 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3417 reference to FP_REGNUM.
3418 (mipsnbsd_cannot_store_register): Ditto.
3419 * mips-linux-nat.c: Update copyright.
3420 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3421 (mips_linux_cannot_store_register): Ditto.
3422 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3423 * config/mips/tm-mips.h: Update copyright.
3424 (FP_REGNUM): Delete macro.
3425 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3426 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3427 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3428 (mips_r3041_reg_names, mips_r3051_reg_names)
3429 (mips_r3081_reg_names): Replace "fp" with "".
3430 Fix PR gdb/480.
3431
45cf40d1
TR
34322002-09-17 Theodore A. Roth <troth@verinet.com>
3433
3434 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3435 generic_read_register_dummy() (PR gdb/703).
3436 (avr_push_return_address): #if 0 out unused vars.
3437 (avr_gdbarch_init): Enable use of avr_push_return_address().
3438
c7e701b5
MS
34392002-09-17 Michael Snyder <msnyder@redhat.com>
3440
d76ba2a5 3441 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
3442 RTE will take care of it.
3443
20bcf01c
AC
34442002-09-17 Andrew Cagney <ac131313@redhat.com>
3445
3446 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3447 invalid, return SP_REGNUM.
3448
009a9971 34492002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
3450
3451 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3452 point registers without sign extension.
3453
135c175f
AC
34542002-09-17 Andrew Cagney <cagney@redhat.com>
3455
3456 * blockframe.c (deprecated_read_register_dummy): Rename
3457 generic_read_register_dummy.
3458 * frame.c (frame_unwind_signed_register): New function.
3459 (frame_unwind_unsigned_register): New function.
3460 * frame.h (frame_unwind_signed_register): Declare.
3461 (frame_unwind_unsigned_register): Declare.
3462 (deprecated_read_register_dummy): Rename
3463 generic_read_register_dummy.
3464
3465 * h8300-tdep.c (h8300_frame_chain): Update.
3466 (h8300_frame_saved_pc): Update.
3467 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3468 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3469 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3470 (s390_frame_chain): Update.
3471 * v850-tdep.c (v850_find_callers_reg): Update.
3472 (v850_frame_saved_pc): Update.
3473 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3474 (m32r_find_callers_reg): Update.
3475 (m32r_frame_saved_pc): Update.
3476 * sh-tdep.c (sh_find_callers_reg): Update.
3477 (sh64_get_saved_pr): Update.
3478 (sh_init_extra_frame_info): Update.
3479 (sh_init_extra_frame_info): Update.
3480 (sh64_init_extra_frame_info): Update.
3481 (sh64_init_extra_frame_info): Update.
3482 * mcore-tdep.c (mcore_find_callers_reg): Update.
3483 (mcore_frame_saved_pc): Update.
3484 (mcore_init_extra_frame_info): Update.
3485 * i386-tdep.c (i386_frame_saved_pc): Update.
3486 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3487 (ia64_init_extra_frame_info): Update.
3488 (ia64_init_extra_frame_info): Update.
3489 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3490 * cris-tdep.c (cris_init_extra_frame_info): Update.
3491 * avr-tdep.c (avr_frame_chain): Update.
3492 (avr_init_extra_frame_info): Update.
3493 (avr_frame_saved_pc): Update.
3494 * arm-tdep.c (arm_find_callers_reg): Update.
3495 (arm_init_extra_frame_info): Update.
3496 (arm_frame_saved_pc): Update.
3497
a741e514
TT
34982002-09-17 Tom Tromey <tromey@redhat.com>
3499
3500 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3501 is "'".
3502
d1a8e808
CV
35032002-09-17 Corinna Vinschen <vinschen@redhat.com>
3504
3505 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3506 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3507 NEXT_PROLOGUE_INSN.
3508 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3509 NEXT_PROLOGUE_INSN.
3510
d9025a18
JB
35112002-09-16 Joel Brobecker <brobecker@gnat.com>
3512
3513 * osfsolib.c: Remove file, replaced by solib-osf.c.
3514 * Makefile.in: Remove compilation rules for osfsolib.c.
3515
1b2ef1b6
DC
35162002-09-16 David Carlton <carlton@math.stanford.edu>
3517
3518 * cp-valprint.c (cp_print_class_method): Correct args to
3519 check_stub_method_group.
3520
928e48af
CV
35212002-09-16 Corinna Vinschen <vinschen@redhat.com>
3522
3523 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3524 `set architecture'. Unify naming convention of functions.
3525 (h8300_skip_prologue): Improve prologue analysis.
3526 (h8300_push_arguments): Rewritten to more closely match GCC's
3527 bizarre argument-passing behavior, along with the comment describing
3528 said behavior.
3529 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3530 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3531 sim, remote-e7000.c, remote-hms.c and remote.c
3532
5e3397bb
MK
35332002-09-15 Mark Kettenis <kettenis@gnu.org>
3534
3535 * i386-tdep.c (gdb_print_insn_i386): Removed.
3536 (i386_print_insn): New function.
3537 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3538 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3539 tm_print_insn_info.
3540
f710f4fc
MK
35412002-09-14 Mark Kettenis <kettenis@gnu.org>
3542
3543 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3544 zero.
3545
db54fef4
CV
35462002-09-14 Corinna Vinschen <vinschen@redhat.com>
3547
3548 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3549 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3550 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3551
2becadee
CF
35522002-09-13 Christopher Faylor <cgf@redhat.com>
3553
3554 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3555
de17c821
DJ
35562002-09-13 Daniel Jacobowitz <drow@mvista.com>
3557
3558 * gdbtypes.c (check_stub_method): Make static.
3559 (check_stub_method_group): New function.
3560 * gdbtypes.h: Update prototypes.
3561 * cp-support.c: New file.
3562 * cp-support.h: New file.
3563
3564 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3565 (update_method_name_from_physname): New function.
3566 (read_member_functions): Correct method names for operators
3567 and v3 constructors/destructors. Separate v2 constructors and
3568 destructors.
3569 * Makefile.in (stabsread.o): Update dependencies.
3570 (SFILES): Add cp-support.c.
3571 (COMMON_OBS): Add cp-support.o.
3572 (cp_support_h, cp-support.o): Add.
3573
3574 * cp-valprint.c (cp_print_class_method): Call
3575 check_stub_method_group instead of check_stub_method. Remove
3576 extraneous QUITs.
3577 * p-valprint.c (pascal_object_print_class_method): Likewise.
3578 * valops.c (search_struct_method): Likewise.
3579 (find_method_list, value_struct_elt_for_reference): Likewise.
3580
e76cff22
AC
35812002-09-13 Andrew Cagney <cagney@redhat.com>
3582
3583 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3584 * gdbarch.h, gdbarch.c: Regenerate.
3585
905abb3f
AC
35862002-09-13 Andrew Cagney <ac131313@redhat.com>
3587
3588 * frame.c (find_saved_register): Delete function.
3589 * frame.h (find_saved_register): Delete declaration.
3590 Fix PR gdb/631.
3591
64159455
AC
3592Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3593
3594 * mips-tdep.c (read_next_frame_reg): Re-hack using
3595 frame_register_unwind.
3596
795e1e11
AC
3597Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3598
3599 * mips-tdep.c (mips_get_saved_register): Re-hack using
3600 frame_register_unwind.
3601
5720643c
JB
36022002-09-12 Joel Brobecker <brobecker@gnat.com>
3603
3604 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3605 vector. Will be useful for Interix.
3606 * gdbarch.h, gdbarch.c: Regenerate.
3607
3608 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3609 name of the malloc function by NAME_OF_MALLOC.
3610
3bada2a2
JB
36112002-09-12 Joel Brobecker <brobecker@gnat.com>
3612
3613 * value.h (find_function_in_inferior): Add const keyword to
3614 one of the parameters. Allows us to invoke this function with
3615 a const char *.
3616 * valops.c (find_function_in_inferior): Likewise.
3617
3db26b01
JB
36182002-09-12 Joel Brobecker <brobecker@gnat.com>
3619
3620 * exec.c (xfer_memory): Fix compilation warning with old versions
3621 of GCC.
3622 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3623
17c5ed2c
DC
36242002-09-12 David Carlton <carlton@math.stanford.edu>
3625
3626 * symtab.h: Run through gdb_indent.h.
3627 Add 2002 to Copyright year list.
3628
ecd1107e
AM
36292002-09-12 Alan Modra <amodra@bigpond.net.au>
3630
3631 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3632 mach constants.
3633 * MAINTAINERS: Add myself to write after approval list.
3634
e64f66d1
JB
36352002-09-11 J. Brobecker <brobecker@gnat.com>
3636
3637 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3638
f9395794
JB
36392002-09-11 J. Brobecker <brobecker@gnat.com>
3640
3641 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3642 Interix.
3643
1a303dec
MS
36442002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3645
3646 * procfs.c (do_detach): Clear current signal, not just fault.
3647 Corrects problem with breakpoint trap signal leaking to detached
3648 process on Tru64.
3649
c0219d42
MS
36502002-09-10 Michael Snyder <msnyder@redhat.com>
3651
3652 * buildsym.c (finish_block): Protect against null pointer.
3653
9d84ac84
AC
36542002-09-10 Andrew Cagney <cagney@redhat.com>
3655
3656 * infcmd.c (default_print_registers_info): Send all output to
3657 ``file'' instead of ``gdb_stdout''.
3658
77d8f2b4
MS
36592002-09-10 Michael Snyder <msnyder@redhat.com>
3660
3661 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3662 LONGEST, and use signed register read (addresses are sign-
3663 extended for mips).
3664
99656a61
SC
36652002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3666
3667 * event-loop.c (gdb_do_one_event): Make public.
3668 * event-loop.h (gdb_do_one_event): Declare.
3669
da12f4d8
JL
36702002-09-10 Jeff Law <law@redhat.com>
3671
3672 * infttrace.c (child_resume): Simplify and rework to avoid
3673 TT_PROC_CONTINUE.
3674
d0aee0c4
FF
36752002-09-09 Fred Fish <fnf@intrinsity.com>
3676
3677 * printcmd.c (print_scalar_formatted): "len" is the number of
3678 target bytes, NOT the number of target bits.
3679
7cb3ec5e
EZ
36802002-09-09 Elena Zannoni <ezannoni@redhat.com>
3681
3682 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3683 * top.c (init_main): Set rl_terminal_name.
3684
4dc81987
AS
36852002-09-08 Aidan Skinner <aidan@velvet.net>
3686
3687 * ada-lang.c (ada_array_bound, ada_type_match,
3688 _initialize_ada_language): Fix K&R definitions.
3689 * ada-tasks.c (get_current_task): Fix K&R definitions.
3690 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3691
842330b4
CF
36922002-09-07 Christopher Faylor <cgf@redhat.com>
3693
3694 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3695 Add XP.
3696
43156d82
MK
36972002-09-06 Mark Kettenis <kettenis@gnu.org>
3698
66da5fd8
MK
3699 * i386-tdep.c (i386_register_virtual_type,
3700 i386_register_convertible, i386_register_convert_to_virtual,
3701 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3702 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3703 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3704 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3705 Don't set push_arguments twice.
3706
4b218c18
MK
3707 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3708 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3709 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3710 sigtramp_end to NULL.
3711 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3712 defines.
3713 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3714
4cc314d5
MK
3715 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3716 whitespace.
3717
43156d82
MK
3718 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3719 * gdbarch.h, gdbarch.c: Re-generate.
3720 * blockframe.c (find_pc_sect_partial_function): Convert to use
3721 SIGTRAMP_START_P predicate.
3722
6672060b
MS
37232002-09-05 Michael Snyder <msnyder@redhat.com>
3724
a90c3637
MS
3725 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3726 generic_dummy_frame method and old method. Also distinguish
3727 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3728 (arm_extract_return_value): Use new regcache method.
a90c3637 3729
6672060b
MS
3730 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3731 adjustment that doesn't conform to the ABI.
3732 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3733 saved regcache, not from current regcache.
3734
299ffc64
AC
37352002-09-05 Andrew Cagney <ac131313@redhat.com>
3736
3737 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3738 * README: Update.
3739
a3a2ee65
JT
37402002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3741
3742 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3743 if arm_apcs_32 is false.
3744
2bc7eea9
AC
37452002-09-04 Andrew Cagney <ac131313@redhat.com>
3746
3747 GDB 5.3 branch created.
3748
8a55a7c5
TR
37492002-09-03 Theodore A. Roth <troth@verinet.com>
3750
3751 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3752 generic_unwind_get_saved_register.
3753
e26fb1d7
DC
37542002-09-03 David Carlton <carlton@math.stanford.edu>
3755
3756 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3757 argument (PR gdb/653). Update call to smash_to_method_type.
3758 (read_structure_scope): Update call to dwarf2_add_member_fn.
3759
30d52491
ML
37602002-09-03 Michal Ludvig <mludvig@suse.cz>
3761
3762 * x86-64-linux-tdep.c: Include gdb_string.h
3763 * x86-64-linux-nat.c: Ditto.
3764
06891d83
JT
37652002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3766
3767 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3768 when YYDEBUG is set to 1.
3769 * c-exp.y: Likewise.
3770 * f-exp.y: Likewise.
3771 * jv-exp.y: Likewise.
3772 * m2-exp.y: Likewise.
3773 * p-exp.y: Likewise.
3774
7d400e77
JT
37752002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3776
3777 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3778 dependency list.
3779 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3780 solib_svr4_fetch_link_map_offsets to
3781 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3782 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3783 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3784 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3785 solib-svr4.o, and solib-legacy.o.
3786 * config/i386/tm-nbsd.h: Include solib.h.
3787
704a27c4
JT
37882002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3789
3790 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3791 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3792 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3793 comment noting that this needs its own target configuration.
3794 * config/i386/nbsd.mt: New file.
3795 * config/i386/nbsdaout.mt: Remove.
3796 * config/i386/nbsdelf.mt: Ditto.
3797 * config/i386/tm-nbsdaout.h: Ditto.
3798
d66198e1
JT
37992002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3800
3801 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3802 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3803 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3804 tdep->sigtramp_end.
3805 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3806 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3807 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3808
3cac699e
JT
38092002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3810
3811 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3812 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3813 * i386-tdep.h (i386bsd_init_abi): New prototype.
3814 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3815 function declaration.
3816 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3817 for NetBSD-a.out or NetBSD-ELF.
3818 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3819 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3820 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3821 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3822 and nbsd-tdep.h.
3823 (i386nbsd_pc_in_sigtramp): New function.
3824 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3825 i386nbsd_pc_in_sigtramp.
3826 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3827 and i386nbsdelf_init_abi OS ABI handlers.
3828 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3829 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3830
7010ca0a
MK
38312002-09-02 Mark Kettenis <kettenis@gnu.org>
3832
3833 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3834 registers if the target really has them.
3835
6dd93b72
JT
38362002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3837
3838 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3839 than nbsd-tdep.h.
3840
2ca8ae21
JT
38412002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3842
3843 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3844 list.
3845 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3846 (alphanbsd_skip_sigtramp_frame): New functions.
3847 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3848 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3849 to alphanbsd_sigcontext_addr.
3850
3d9b49b0
JT
38512002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3852
3853 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3854 list.
3855 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3856 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3857 nbsd_pc_in_sigtramp.
3858 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3859 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3860 * nbsd-tdep.c: Include gdb_string.h.
3861 (nbsd_pc_in_sigtramp): New function.
3862 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3863 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3864 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3865 ppcnbsd_pc_in_sigtramp.
3866 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3867 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3868 shnbsd_pc_in_sigtramp.
3869 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3870 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3871 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3872
c860120c
PM
38732002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3874
3875 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3876 watchpoints to NULL.
3877 (insert_breakpoints): set val field of watchpoints if NULL.
3878
3879
c7612d53
JB
38802002-08-29 Jim Blandy <jimb@redhat.com>
3881
3882 * symtab.c (lookup_symbol_aux): In the cases where we find a
3883 minimal symbol of an appropriate name and use its address to
3884 select a symtab to read and search, use `name' (as passed to us)
3885 as the demangled name when searching the symtab's global and
3886 static blocks, not the minsym's name.
3887
66609862
KS
38882002-08-29 Keith Seitz <keiths@redhat.com>
3889
3890 * stack.c (print_frame_info_base): Always set current_source_symtab
3891 and current_source_line.
3892
151fefe2
JB
38932002-08-29 Donn Terry <donnte@microsoft.com>
3894
3895 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3896
bfb3754e
KS
38972002-08-28 Keith Seitz <keiths@redhat.com>
3898
3899 * stack.c (select_frame): Add FIXME concerning selected-frame
3900 events.
3901 (select_frame_command): Send selected-frame-level-changed
3902 event notification, but only if the level actually changed.
3903 (up_silently_base): Add selected-frame-level-changed event
3904 notification.
3905 (down_silently_base): Likewise.
3906
e822a2a0
AC
39072002-08-28 Andrew Cagney <ac131313@redhat.com>
3908
3909 * Makefile.in: Update dependencies for all gdb/*.c files.
3910
309367d4
TT
39112002-08-27 Tom Tromey <tromey@redhat.com>
3912
3913 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3914 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3915 Update dependencies.
3916 * i387-tdep.c: Include gdb_string.h.
3917 * osabi.c: Likewise.
3918 * i386-linux-nat.c: Likewise.
3919 * lin-lwp.c: Likewise.
3920 * ax-gdb.c: Likewise.
3921 * signals/signals.c: Likewise.
3922 * jv-valprint.c: Likewise.
3923 * p-lang.c: Likewise.
3924 * c-valprint.c: Likewise.
3925 * cp-abi.c: Likewise.
3926
e1507482
EZ
39272002-08-27 Elena Zannoni <ezannoni@redhat.com>
3928
3929 * cli/cli-script.h (copy_command_lines): Export.
3930 * breakpoint.c: Include cli/cli-script.h.
3931 * Makefile.in (breakpoint.o): Update dependencies.
3932
c6510018
MS
39332002-08-26 Michael Snyder <msnyder@redhat.com>
3934
3935 * breakpoint.c (insert_breakpoints): Protect all references
3936 to 'process_warning'. Shorten long lines.
3937
c2b8ed2c
MS
39382002-08-26 Joel Brobecker <brobecker@gnat.com>
3939
3940 * cli/cli-script.c (copy_command_lines): New function.
3941 * defs.h (copy_command_lines): Export.
3942 * testsuite/gdb.base/commands.exp: New tests for commands
3943 attached to a temporary breakpoint, and for commands that
3944 delete the breakpoint they are attached to.
3945
39462002-08-26 Michael Snyder <msnyder@redhat.com>
3947
3948 * breakpoint.c (bpstat_stop_status): Instead of copying the
3949 pointer to the breakpoint commands struct, make a new copy
3950 of the struct and point to that.
3951 (bpstat_clear): Free the commands struct.
3952 (bpstat_clear_actions): Free the commands struct.
3953 (bpstat_do_actions): Free the command actions. Also execute
3954 the local cleanups, instead of deleting them.
3955 (delete_breakpoint): Leave the commands field of the bpstat
3956 chain alone -- it will be freed later.
3957
64b84175
KB
39582002-08-26 Kevin Buettner <kevinb@redhat.com>
3959
3960 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3961 deleted in 2002-08-20 commit. This function is still used by
3962 ppc-linux-nat.c.
3963
55970da6
KS
39642002-08-26 Keith Seitz <keiths@redhat.com>
3965
3966 * gdb-events.sh: Add selected-frame-level-changed event.
3967 * gdb-events.c: Regenerated.
3968 * gdb-events.h: Regenerated.
3969
a790ad35
SC
39702002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3971
3972 Fix PR gdb/393:
3973 * inflow.c (terminal_save_ours): New function to save terminal
3974 settings.
3975 * inferior.h (terminal_save_ours): Declare.
3976 * target.c (debug_to_terminal_save_ours): New function.
3977 (cleanup_target): Defaults to_terminal_save_ours.
3978 (update_current_target): Inherit to_terminal_save_ours.
3979 (setup_target_debug): Set to_terminal_save_ours.
3980 * target.h (target_terminal_save_ours): New to save terminal settings.
3981 (target_ops): New member to_terminal_save_ours.
3982 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3983 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3984 * inftarg.c (init_child_ops): Likewise.
3985 * m3-nat.c (init_m3_ops): Likewise.
3986 * procfs.c (init_procfs_ops): Likewise.
3987 * wince.c (init_child_ops): Likewise.
3988 * win32-nat.c (init_child_ops): Likewise.
3989 * sol-thread.c (init_sol_thread_ops): Likewise.
3990
c00dcbe9
MK
39912002-08-26 Mark Kettenis <kettenis@gnu.org>
3992
3d7f4f49
MK
3993 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3994 use regcache_* functions.
3995 (i386_gdbarch_init): Set store_return_value instead of
3996 deprecated_store_return_value.
3997
c00dcbe9
MK
3998 * regcache.c (regcache_raw_write_signed,
3999 regcache_raw_write_unsigned): New functions.
4000 * regcache.h (regcache_raw_write_signed,
4001 regcache_raw_write_unsigned): New prototypes.
4002
0e0d15ca
AC
40032002-08-25 Andrew Cagney <ac131313@redhat.com>
4004
4005 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4006 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4007 source file dependencies. Cleanup corresponding generator rules.
4008
d3b22ed5
AC
40092002-08-25 Andrew Cagney <ac131313@redhat.com>
4010
4011 * regcache.h (register_offset_hack): Declare.
4012 (regcache_cooked_read_using_offset_hack): Declare.
4013 (regcache_cooked_write_using_offset_hack): Declare.
4014
4015 * regcache.c (register_offset_hack): New function.
4016 (regcache_cooked_read_using_offset_hack): New function.
4017 (regcache_cooked_write_using_offset_hack): New function.
4018 (regcache_dump): Check that the registers, according to their
4019 offset, are packed hard against each other.
4020 (cooked_xfer_using_offset_hack): New function.
4021
bb425013
AC
40222002-08-25 Andrew Cagney <ac131313@redhat.com>
4023
4024 * regcache.c (struct regcache_descr): Add field register_type.
4025 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4026 in as a parameter
4027 (init_regcache_descr): Initialize register_type. Pass the descr
4028 to init_legacy_regcache_descr. Use register_type instead of
4029 REGISTER_VIRTUAL_TYPE.
4030 (register_type): New function.
4031 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4032 * regcache.h (register_type): Declare.
4033
d0403e00
AC
40342002-08-25 Andrew Cagney <ac131313@redhat.com>
4035
4036 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4037 instead of deprecated_store_return_value. Fix fallout from
4038 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4039
0ed04cce
AC
40402002-08-25 Andrew Cagney <ac131313@redhat.com>
4041
4042 * regcache.c (max_register_size): New function.
4043 (init_legacy_regcache_descr): Ensure that max_register_size is
4044 large enough for REGISTER_VIRTUAL_SIZE.
4045 * regcache.h (max_register_size): Declare.
4046
46d79c04
AC
40472002-08-24 Andrew Cagney <ac131313@redhat.com>
4048
4049 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4050 store_return_value.
4051 (e500_extract_return_value): Change type of valbuf pointer to
4052 void.
4053
853c7bd0
MK
40542002-08-24 Mark Kettenis <kettenis@gnu.org>
4055
cd87e769
MK
4056 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4057 workaround.
4058
853c7bd0
MK
4059 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4060 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4061 long long) to prevent compiler warning on 64-bit systems.
4062
ebba8386
AC
40632002-08-23 Andrew Cagney <cagney@redhat.com>
4064
4065 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4066 (DEPRECATED_STORE_RETURN_VALUE): New method.
4067 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4068 * gdbarch.h, gdbarch.c: Re-generate.
4069
4070 * values.c (set_return_value): Pass current_regcache to
4071 STORE_RETURN_VALUE.
4072 * arch-utils.h (legacy_store_return_value): Declare.
4073 * arch-utils.c (legacy_store_return_value): New function.
4074 (legacy_extract_return_value): Update parameters.
4075
4076 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4077 STORE_RETURN_VALUE.
4078 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4079 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4080 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4081 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4082 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4083 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4084 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4085 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4086 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4087 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4088
4089 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4090 * i386-tdep.c (i386_extract_return_value): Update.
4091 * arch-utils.c (legacy_extract_return_value): Update.
4092 * frv-tdep.c (frv_gdbarch_init): Update.
4093 * cris-tdep.c (cris_gdbarch_init): Update.
4094 * d10v-tdep.c (d10v_gdbarch_init): Update.
4095 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4096 * m68k-tdep.c (m68k_gdbarch_init): Update.
4097 * mcore-tdep.c (mcore_gdbarch_init): Update.
4098 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4099 * s390-tdep.c (s390_gdbarch_init): Update.
4100 * sparc-tdep.c (sparc_gdbarch_init): Update.
4101 * sh-tdep.c (sh_gdbarch_init): Update.
4102 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4103 * v850-tdep.c (v850_gdbarch_init): Update.
4104 * avr-tdep.c (avr_gdbarch_init): Update.
4105 * ia64-tdep.c (ia64_gdbarch_init): Update.
4106 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4107 * vax-tdep.c (vax_gdbarch_init): Update.
4108 * alpha-tdep.c (alpha_gdbarch_init): Update.
4109 * arm-tdep.c (arm_gdbarch_init): Update.
4110 * mips-tdep.c (mips_gdbarch_init): Update.
4111 * i386-tdep.c (i386_gdbarch_init): Update.
4112
5bd8c6d0
AC
41132002-08-23 Andrew Cagney <ac131313@redhat.com>
4114
4115 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4116 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4117
e73e1724
MK
41182002-08-24 Mark Kettenis <kettenis@gnu.org>
4119
4120 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4121 problems.
4122
3e6564e1
JB
41232002-08-23 Joel Brobecker <brobecker@gnat.com>
4124
4125 * infrun.c (handle_inferior_event): Move a comment outside of a
4126 function call, in order to avoid indent reformatting this part
4127 of the code in an unreadable way.
4128
81d0cc19
GS
41292002-08-23 Grace Sainsbury <graces@redhat.com>
4130
4131 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4132 when breakpoints fail. Move general breakpoint error messages to
4133 insert_breakpoints.
4134 * breakpoint.c (insert_breakpoints): Change warnings when
4135 breakpoints are nto inserted to specify the type. Remove call to
4136 memory_error when hardware breakpoints can't be inserted. Remove
4137 multiple calls to warning so all messages are sent to the user at
4138 once.
4139 (delete_breakpoints): Make insert error messsages more explicit.
4140
17574093
DJ
41412002-08-23 Daniel Jacobowitz <drow@mvista.com>
4142
4143 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4144 gdbserver/ChangeLog.
4145
8acc2935
MK
41462002-08-23 Mark Kettenis <kettenis@gnu.org>
4147
dfe01d39
MK
4148 * i386-tdep.c: Include "objfiles.h".
4149 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4150 skip_trampoline_code.
4151 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4152 (CPLUS_MARKER): Define to '.'.
4153
8acc2935
MK
4154 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4155 member.
4156 (linux_corefile_thread_callback): Increase args->num_notes.
4157 (linux_make_note_section): Initialize thread_args.num_notes, and
4158 use it to determine whether notes for any threads were created.
4159
151fefe2 41602002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
4161
4162 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4163 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4164 and PCUNKILL.
4165 (write_with_trace): Conditionalize out the switch branch handling
4166 PCSHOLD if the corresponding macro is not defined. Likewise for
4167 PRSABORT and PRSTOP.
4168 This change will be needed by the Interix port.
4169
e1507482
EZ
41702002-08-22 Elena Zannoni <ezannoni@redhat.com>
4171
4172 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4173 write_register wherever possible instead of manipulating the
4174 register bytes directly.
4175 Assign VALUE_CONTENTS to a variable and use that.
4176 The GPR numbers are now dependent on the architecture.
4177
96ff0de4
EZ
41782002-08-22 Elena Zannoni <ezannoni@redhat.com>
4179
4180 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4181 ev_offset fields.
4182 (skip_prologue): Add support for BookE/e500 instructions.
4183 (e500_extract_return_value): New function.
4184 (frame_get_saved_regs): Add support for saving ev registers and
4185 pseudo gpr's.
4186 (e500_store_return_value): New function.
4187 (rs6000_gdbarch_init): Move up default intializations of
4188 deprecated_extract_return_value and store_return_value. Overwrite
4189 init of store_return_value with e500 specific version.
4190 Set extract_return_value for e500.
4191
fbefca5b
EZ
41922002-08-22 Elena Zannoni <ezannoni@redhat.com>
4193
4194 * blockframe.c (generic_call_dummy_register_unwind): Use
4195 regcache_cooked_read to catch cases in which the variable is
4196 stored in a pseudo register.
4197
4d210288
AC
41982002-08-22 Andrew Cagney <cagney@redhat.com>
4199
4200 * NEWS: Mention that the i960 has been made obsolete.
4201 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4202 i960-tdep.c
4203 (remote-nrom.o): Obsolete target.
4204 (remote-nindy.o, i960-tdep.o): Ditto.
4205 * remote-nrom.c: Make file obsolete.
4206 * remote-nindy.c, remote-vx960.c: Ditto.
4207 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4208 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4209 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4210 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4211 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4212 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4213 i960-*-vxworks* obsolete.
4214 * MAINTAINERS: Note that the i960 is obsolete.
4215
6c0c456d
CV
42162002-08-21 Corinna Vinschen <vinschen@redhat.com
4217
4218 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4219 detach to allow reinitialization.
4220
9f9d12b3
AC
42212002-08-22 Andrew Cagney <ac131313@redhat.com>
4222
4223 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4224 attempt).
4225
ebeb39fe
JB
42262002-08-22 Jim Blandy <jimb@redhat.com>
4227
4228 * coffread.c (coff_symfile_read): Don't try to read the line
4229 number table from disk if the image file doesn't have a symbol
4230 table; we'll never actually look at the info anyway, and Windows
4231 ships DLL's with bogus file offsets for the line number data.
4232
5bf1c677
EZ
42332002-08-21 Elena Zannoni <ezannoni@redhat.com>
4234
4235 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4236 an e500 executable.
4237
71b8ef93
MS
42382002-08-21 Michael Snyder <msnyder@redhat.com>
4239
4240 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4241 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
4242 (DEFAULT_MIPS_TYPE): Delete unused macro.
4243 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4244 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 4245
d174216d
JB
42462002-08-21 Jim Blandy <jimb@redhat.com>
4247
4248 * valops.c (value_cast): Simplify and correct logic for doing a
4249 static cast from a pointer to a base class to a pointer to a
4250 derived class.
4251
0ab7a791
AC
42522002-08-21 Andrew Cagney <ac131313@redhat.com>
4253
4254 * infcmd.c (default_print_registers_info): Replace
4255 do_registers_info.
4256 (registers_info): Use gdbarch_print_registers_info instead of
4257 DO_REGISTERS_INFO.
4258 * inferior.h (default_print_registers_info): Replace
4259 do_registers_info.
4260 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4261 (DO_REGISTERS_INFO): Change to a predicate function.
4262 * gdbarch.h, gdbarch.c: Regenerate.
4263
e23792cc
KS
42642002-08-21 Keith Seitz <keiths@redhat.com>
4265
4266 * gdb-events.sh: Add target-changed event.
4267 * gdb-events.c: Regenerated.
4268 * gdb-events.c: Regenerated.
4269 * valops.c (value_assign): Add target-changed event notification
4270 to inlval_register, lval_memory, and lval_reg_frame_relative.
4271
9fb14e79
JB
42722002-08-21 Joel Brobecker <brobecker@gnat.com>
4273
4274 * NEWS: Add an entry regarding the improvement of the next/step
4275 operation on Alpha Tru64 multi-processor machines.
4276
6d39a69f
AC
42772002-08-21 Andrew Cagney <ac131313@redhat.com>
4278
72acd513
AC
4279 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4280 directores.
342af04b 4281 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
4282 * Makefile.in (install-gdbtk): Move to install section.
4283 (rdi-share/libangsd.a): Move to end of file.
4284
fa5f27c7
AC
42852002-08-19 Andrew Cagney <ac131313@redhat.com>
4286
4287 * frame.c (frame_register_unwind): When a register, set addrp to
4288 the register's byte.
4289
5a89d8aa
MS
42902002-08-20 Michael Snyder <msnyder@redhat.com>
4291
4292 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4293 used locally, so move them from the target machine header to here.
4294 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4295 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4296 Make static.
4297 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4298
822e978b
AC
42992002-08-20 Andrew Cagney <cagney@redhat.com>
4300
4301 * NEWS: Mention that the Apollo line was made obsolete.
4302 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4303 m68*-hp-hpux* obsolete.
4304 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4305 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4306 * buildsym.c (make_blockvector): Make static.
4307 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4308 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4309 (ALLDEPFILES): Remove dstread.c.
4310 (dstread.o): Obsolete make rule.
4311 * dstread.c: Makefile obsolete.
4312 * dst.h: Ditto.
4313 * config/m68k/hp300hpux.mt: Ditto.
4314 * config/m68k/hp300hpux.mh: Ditto.
4315 * config/m68k/hp300bsd.mt: Ditto.
4316 * config/m68k/hp300bsd.mh: Ditto.
4317 * config/m68k/apollo68b.mt: Ditto.
4318 * config/m68k/apollo68v.mh: Ditto.
4319 * config/m68k/apollo68b.mh: Ditto.
4320
e41b17f0
MS
43212002-08-20 Michael Snyder <msnyder@redhat.com>
4322
4323 * mips-tdep.c (mips_in_return_stub): Make static.
4324 (mips_gdbarch_init): Set in_solib_return_trampoline.
4325 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4326
d50355b6
MS
43272002-08-20 Michael Snyder <msnyder@redhat.com>
4328
4329 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4330 * gdbarch.c, gdbarch.h: Regenerate.
4331 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4332 Add.
4333 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4334
757a7cc6
MS
43352002-08-20 Michael Snyder <msnyder@redhat.com>
4336
4337 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4338 (mips_gdbarch_init): Set skip_trampoline_code,
4339 in_solib_call_trampoline.
4340 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4341 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4342
c8001721
EZ
43432002-08-20 Elena Zannoni <ezannoni@redhat.com>
4344
4345 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4346
4347 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4348 vector type for ev registers.
4349 (e500_pseudo_register_read): New function.
4350 (e500_pseudo_register_write): New function.
4351 (e500_dwarf2_reg_to_regnum): New function.
4352 (PPC_UISA_NOFP_SPRS): New macro.
4353 (PPC_EV_REGS): New macro.
4354 (PPC_GPRS_PSEUDO_REGS): New macro.
4355 (registers_e500): New register set for e500.
4356 (variants): Add e500 variant.
4357 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4358 before setting architectural dependent variations. Initialize ev
4359 registers numbers. Add case for e500 architecture. Set the
4360 number of pseudo registers.
4361
64366f1c
EZ
43622002-08-20 Elena Zannoni <ezannoni@redhat.com>
4363
4364 * rs6000-tdep.c: Clean up comments.
4365
7e78f0ca
AC
43662002-08-20 Andrew Cagney <cagney@redhat.com>
4367
4368 * h8300-tdep.c: Re-indent file.
4369
697f7479
JB
43702002-08-20 Jim Blandy <jimb@redhat.com>
4371
4372 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4373 default for this.
697f7479 4374
e86ae29f
KS
43752002-08-20 Keith Seitz <keiths@redhat.com>
4376
4377 * breakpoints.c (watch_command_1): Use internal breakpoint
4378 when setting a watchpoint_scope breakpoint.
4379
216b504f
EZ
43802002-08-20 Elena Zannoni <ezannoni@redhat.com>
4381
4382 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4383 (build_builtin_type_vec64i): Ditto.
4384 (build_builtin_type_vec128): Ditto.
4385 (build_builtin_type_vec128i): Ditto.
4386
f7ab6ec6
MS
43872002-08-19 Michael Snyder <msnyder@redhat.com>
4388
4389 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4390 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4391 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4392 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4393 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4394 CALL_DUMMY_ADDRESS): Delete.
4395 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4396 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4397 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4398 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4399 push_return_address.
4400 (mips_register_raw_size, mips_eabi_use_struct_convention,
4401 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4402 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4403 mips_init_extra_frame_info, mips_eabi_push_arguments,
4404 mips_n32n64_push_arguments, mips_push_return_address,
4405 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4406 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4407
b5d1566e
MS
44082002-08-19 Michael Snyder <msnyder@redhat.com>
4409
4410 * mips-tdep.c (mips_frame_num_args): New function.
4411 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4412 frame_saved_pc, frame_args_address, frame_locals_address,
4413 frame_num_args, and frame_args_skip.
4414 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4415 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4416 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4417 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4418
2f1488ce
MS
44192002-08-20 Michael Snyder <msnyder@redhat.com>
4420
4421 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4422 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4423 * mips-tdep.c (mips_store_struct_return): New function.
4424 (mips_extract_struct_value_address): New function.
4425 (mips_gdbarch_init): Set store_struct_return and
4426 extract_struct_value_address.
4427
41ff2da1
DC
44282002-08-20 David Carlton <carlton@math.stanford.edu>
4429
4430 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4431 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4432 (read_file_scope): Check that line_header is nonzero before
4433 decoding macro information.
4434
e5451d58
MK
44352002-08-20 Mark Kettenis <kettenis@gnu.org>
4436
4437 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4438 flag the general-purpose registers as floating-point on targets
4439 that don't support the floating-point registers.
4440
4a6daafa
EZ
44412002-08-20 Elena Zannoni <ezannoni@redhat.com>
4442
4443 * rs6000-tdep.c (altivec_register_p): Delete.
4444 (rs6000_do_altivec_registers): Delete.
4445 (rs6000_altivec_registers_info): Delete.
4446 (rs6000_do_registers_info): Delete.
4447 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4448 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4449
ab4327e0
EZ
44502002-08-20 Elena Zannoni <ezannoni@redhat.com>
4451
4452 * infcmd.c (do_registers_info): Print vector registers in hex
4453 format only.
4454 (print_vector_info): Check that printing registers
4455 makes sense.
4456 (print_float_info): Ditto.
4457
cb1d2653
AC
44582002-08-20 Andrew Cagney <ac131313@redhat.com>
4459
4460 * mips-tdep.c (mips_gdbarch_init): Update.
4461 (mips_o32_extract_return_value): Rewrite.
4462 (mips_o32_store_return_value): Rewrite.
4463 (mips_o32_xfer_return_value): New function.
4464 (mips_xfer_register): Tweak debug print message. Allow for
4465 buf_offset when dumping the value transfered.
4466
dfc3d9b2
AC
44672002-08-20 Andrew Cagney <ac131313@redhat.com>
4468
4469 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4470 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4471 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4472 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4473 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4474
7807aa61
MS
44752002-08-14 Michael Snyder <msnyder@redhat.com>
4476
4477 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4478
489461e2
EZ
44792002-08-19 Elena Zannoni <ezannoni@redhat.com>
4480
4481 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4482 register.
4483 (P): New macro to define a register as a pseudo register.
4484 (R, R4, R8, R16, FR32, R64, R0): Updated.
4485 (struct variant): Add new fields for number of pseudo registers
4486 and number of total registers.
4487 (tot_num_registers): New macro replacing....
4488 (num_registers): ...deleted macro.
4489 (num_registers): New function.
4490 (num_pseudo_registers): New function.
4491 (variants): Update all variants to intialize new fields correctly.
4492 Postpone initialization of number of pseudo regs and real regs.
4493 (init_variants): New function.
4494 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4495 registers offsets.
4496
fcaffe4c
DC
44972002-08-19 David Carlton <carlton@math.stanford.edu>
4498
2c2738a0
DC
4499 * valops.c (search_struct_field): Change error message to treat
4500 return value of 0 from value_static_field as meaning that field is
4501 optimized out.
4502 (value_struct_elt_for_reference): Ditto.
4503 * values.c (value_static_field): Treat an unresolved location the
4504 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4505 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4506 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4507 * MAINTAINERS: Add self to Write After Approval list.
4508
88658117
AC
45092002-08-19 Andrew Cagney <ac131313@redhat.com>
4510
4511 * mips-tdep.c (mips_xfer_register): New function.
4512 (mips_n32n64_extract_return_value): Rewrite.
4513 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4514 instead of deprecated_extract_return_value.
4515
21283beb
EZ
45162002-08-19 Elena Zannoni <ezannoni@redhat.com>
4517
4518 * rs6000-tdep.c (TDEP): Delete macro.
4519 (branch_dest): Replace use of TDEP macro with its body.
4520 (rs6000_pop_frame): Ditto.
4521 (rs6000_push_arguments): Ditto.
4522 (rs6000_skip_trampoline_code): Ditto.
4523 (rs6000_frame_saved_pc): Ditto.
4524 (rs6000_frame_chain): Ditto.
4525 (rs6000_register_name): Ditto.
4526 (rs6000_register_byte): Ditto.
4527 (rs6000_register_raw_size): Ditto.
4528 (rs6000_register_virtual_type): Ditto.
4529 (rs6000_register_convertible): Ditto.
4530 (rs6000_convert_from_func_ptr_addr): Ditto.
4531
bf072999
DJ
45322002-08-19 Daniel Jacobowitz <drow@mvista.com>
4533
4534 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4535 conditionally.
4536 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4537 MIPS_LINUX_JB_ELEMENT_SIZE.
4538 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4539 for MAX_REGISTER_RAW_SIZE arrays.
4540 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4541 MIPS_LINUX_JB_ELEMENT_SIZE.
4542
9b949a49
PM
45432002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4544
4545 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4546
6d3e79c6
AS
45472002-08-19 Aidan Skinner <aidan@velvet.net>
4548
4549 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4550 ada-valprint.c ada-tasks.c.
4551 (YYFILES): Add ada-exp.y.
4552 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4553 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4554 (ada-exp.tab.o): New target.
4555
06c0b04e
AC
45562002-08-18 Andrew Cagney <ac131313@redhat.com>
4557
4558 * regcache.c (regcache_xfer_part): New function.
4559 (regcache_raw_read_part): New function.
4560 (regcache_raw_write_part): New function.
4561 (regcache_cooked_read_part): New function.
4562 (regcache_cooked_write_part): New function.
4563 * regcache.h (regcache_raw_read_part): Declare.
4564 (regcache_raw_write_part): Declare.
4565 (regcache_cooked_read_part): Declare.
4566 (regcache_cooked_write_part): Declare.
4567
92d1e331
DJ
45682002-08-18 Daniel Jacobowitz <drow@mvista.com>
4569
4570 * remote.c (remote_open_1): Add async_p.
4571 (remote_async_open_1): Delete.
4572 (open_remote_target): Delete.
4573 (remote_open, extended_remote_open): Update calls to remote_open_1.
4574 (remote_async_open, extended_remote_async_open): Call
4575 remote_open_1 instead of remote_async_open_1.
4576
247055de
MK
45772002-08-19 Mark Kettenis <kettenis@gnu.org>
4578
4579 * blockframe.c: Fix a few coding standard violations.
4580
641eda39
MK
45812002-08-19 Mark Kettenis <kettenis@gnu.org>
4582
0b717710
MK
4583 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4584 here from ...
4585 * config/i386/tm-i386sco5.h: ... here. File removed.
4586 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4587
26d28e12 4588 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4589 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4590 (TM_FILE): Set to tm-i386.h.
4591 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4592 * config/i386/tm-i386v.h: Remove file.
4593 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4594 instead of "i386/tm-i386v.h".
4595 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4596 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4597 "i386/tm-i386v.h".
4598 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4599 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4600 "i386/tm-i386.h".
4601
d4e0bab4
MK
46022002-08-18 Mark Kettenis <kettenis@gnu.org>
4603
4604 * config/i386/nm-i386v.h: Add protection against
4605 multiple-inclusion.
4606 (i386_register_u_addr): Remove prototype.
4607 (register_u_addr): New prototype.
4608 (REGISTER_U_ADDR): Redefine accordingly.
4609 * i386v-nat.c: Improve several comments.
4610 (i386_register_u_addr): Change signature and rename to
4611 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4612 ubase variable.
4613
46cac009
AC
46142002-08-18 Andrew Cagney <ac131313@redhat.com>
4615
4616 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4617 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4618 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4619 deprecated_extract_return_value.
4620 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4621 rename mips_o32o64_push_arguments.
4622 (mips_gdbarch_init): Update.
4623 (mips_extract_return_value): Delete.
4624 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4625 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4626 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4627 (mips_n32n64_extract_return_value): Clone
4628 mips_extract_return_value.
4629 (mips_store_return_value): Delete.
4630 (mips_o32_store_return_value): Clone mips_store_return_value.
4631 (mips_o64_store_return_value): Clone mips_store_return_value.
4632 (mips_eabi_store_return_value): Clone mips_store_return_value.
4633 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4634
d2e4a39e
AS
46352002-08-18 Aidan Skinner <aidan@velvet.net>
4636
0c30c098
AS
4637 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4638 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4639
46402002-08-18 Aidan Skinner <aidan@velvet.net>
4641
4642 * ada-lang.c: Run through gdb_indent.sh.
4643 * ada-lang.h: Run through gdb_indent.sh.
4644 * ada-tasks.c: Run through gdb_indent.sh.
4645 * ada-typeprint.c: Run through gdb_indent.sh.
4646 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4647
01fc4e33
AC
46482002-08-18 Andrew Cagney <ac131313@redhat.com>
4649
4650 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4651 ABI.
4652
d8ee244c
MK
46532002-08-18 Mark Kettenis <kettenis@gnu.org>
4654
c38d8261
MK
4655 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4656
222db64c
MK
4657 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4658 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4659
c2848c82
MK
4660 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4661 write_register_gen instead of write_register_bytes.
4662
d8ee244c
MK
4663 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4664 i[3456]-*-osf1mk* configurations have been made obsolete.
4665 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4666 i[3456]86-*-osf1mk* hosts obsolete.
4667 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4668 targets obsolete.
4669 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4670 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4671 config/i386/i386m3.mt, config/i386/nm-m3.h,
4672 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4673 config/i386/i386mk.mh, config/i386/i386mk.mt,
4674 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4675 obsolete.
4676 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4677 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4678 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4679
61d8d407
AC
46802002-08-18 Andrew Cagney <ac131313@redhat.com>
4681
4682 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4683 (hppa_value_returned_from_stack): Declare.
4684 (hppa_extract_return_value): Declare.
4685 * config/pa/hppa.mt: New file.
4686 * configure.tgt: Recognize hppa*-*-*.
4687 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4688
0c52bd59
MK
46892002-08-18 Mark Kettenis <kettenis@gnu.org>
4690
4691 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4692 comment.
4693
b5686e99
MK
46942002-08-17 Mark Kettenis <kettenis@gnu.org>
4695
4696 * top.c (gdb_rl_operate_and_get_next): Make sure
4697 operate-and-get-next functions correctly even when the history
4698 list is completely filled.
4699
c1bab85b
AC
47002002-08-18 Andrew Cagney <ac131313@redhat.com>
4701
4702 * MAINTAINERS (Target Instruction Set Architectures): Rename
4703 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4704 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4705 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4706 already listed under Host/Native.
4707
4708 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4709 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4710 mips*-*-*.
4711
32089c7c
AC
47122002-08-17 Andrew Cagney <ac131313@redhat.com>
4713
4714 * config/ia64/ia64.mt: New file.
4715 * config/alpha/alpha.mt: New file.
4716 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4717 ia64-linux-gnu. Mention that ia64-elf is broken.
4718 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4719
b4671f85
MK
47202002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4721
4722 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4723 generic_func_frame_valid instead of func_frame_valid.
4724
c8edd8b4
JB
47252002-08-16 Joel Brobecker <brobecker@gnat.com>
4726
4727 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4728 procfs appears to be broken when debugging on multi-processor
4729 machines. So enable software single stepping in order to avoid
4730 using the procfs interface to do next/step operations, using
4731 internal breakpoints instead.
4732
4733 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4734 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4735 make this pc address equal to the value it would have if the
4736 system stepping capability was used. Also set a new flag used
4737 to ensure that we don't readjust the PC one more time later.
4738
4739 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4740 address by DECR_PC_AFTER_BREAK when software single step is
4741 in use for this architecture, as this has already been taken
4742 care of in handle_inferior_event().
4743
238617f6
JB
47442002-08-16 Joel Brobecker <brobecker@gnat.com>
4745
4746 * infrun.c (handle_inferior_event): Minor reformatting, to make
4747 a rather long condition expression easier to read.
4748
541a7aac
AC
47492002-08-16 Andrew Cagney <ac131313@redhat.com>
4750
4751 * Makefile.in (gdbtk.o): Move to end of file.
4752 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4753 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4754 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4755 (gdbtk-wrapper.o, gdbres.o): Ditto.
4756
f92d4a7b
AC
47572002-08-16 Andrew Cagney <ac131313@redhat.com>
4758
4759 * Makefile.in (copying.o): Separate out compile rule.
4760 (hpux-thread.o, procfs.o, signals.o): Ditto.
4761 (v850ice.o, z8k-tdep.o): Ditto.
4762 (tui-file.o): Move to TUI section.
4763 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4764 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4765
1cce71eb
JB
47662002-08-16 Joel Brobecker <brobecker@gnat.com>
4767
4768 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4769 skip_trampoline_code, for better namespace-proofing.
4770
4771 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4772
0851f23d
JB
47732002-08-16 Joel Brobecker <brobecker@gnat.com>
4774
4775 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4776
f8d40ec8
JB
47772002-08-16 Joel Brobecker <brobecker@gnat.com>
4778
4779 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4780 signal, check whether we hit a breakpoint before checking for a
4781 single step breakpoint. Otherwise, GDB fails to notice that a
4782 breakpoint has been hit when stepping onto a breakpoint.
4783
63d022e0
KS
47842002-08-16 Keith Seitz <keiths@redhat.com>
4785
4786 * gdb-events.sh (clear_gdb_event_hooks): New function.
4787 * gdb-events.c: Regenerate.
4788 * gdb-events.h: Regenerate.
4789
6e31adb3
AC
47902002-08-16 Andrew Cagney <ac131313@redhat.com>
4791
4792 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4793 not_a_sw_breakpoint.
4794 * breakpoint.h (bpstat_stop_status): Add parameter names.
4795
c8189ed1
GS
47962002-08-16 Grace Sainsbury <graces@redhat.com>
4797
4798 * remote.c (remote_insert_hw_breakpoint)
4799 (remote_remove_hw_breakpoint): Fix calculation of length field
4800 for Z-packet.
4801
d05285fa
MS
48022002-08-15 Michael Snyder <msnyder@redhat.com>
4803
466d7106
MS
4804 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4805 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4806 (supply_fpregset): Ditto.
4807
d05285fa
MS
4808 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4809 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4810 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4811 (TARGET_READ_SP): Delete.
bf1f5b4c 4812 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4813 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4814 Delete.
4815 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4816 from macros to functions.
bf1f5b4c 4817
d05285fa
MS
4818 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4819 (mips_register_convertible, mips_register_convert_to_virtual,
4820 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4821 (mips_read_sp): New function.
4822 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4823 (mips_do_registers_info): Make static.
4824 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4825 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4826 (mips_register_convert_from_type, mips_register_convert_to_type):
4827 New functions.
4828 (mips_gdbarch_init): Set up function_start_offset,
4829 register_virtual_size, pc_in_sigtramp.
d05285fa 4830
e76f1f2e
AC
48312002-08-15 Andrew Cagney <ac131313@redhat.com>
4832
4833 * infcmd.c (vector_info): New function.
4834 (_initialize_infcmd): Add command "info vector".
4835 (print_vector_info): New function.
4836
4837 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4838 * gdbarch.h, gdbarch.c: Regenerate.
4839
4782dc19
AC
48402002-08-15 Andrew Cagney <ac131313@redhat.com>
4841
4842 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4843 ``print_all''. Only print vector registers when ``print_all''.
4844
23e3a7ac
AC
48452002-08-15 Andrew Cagney <ac131313@redhat.com>
4846
8e186fd6
AC
4847 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4848 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4849
23e3a7ac
AC
4850 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4851 Add `args' parameter.
4852 * gdbarch.h, gdbarch.c: Regenerate.
4853
4854 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4855
4856 * infcmd.c (float_info): Call print_float_info.
4857 (print_float_info): New function. By default, print the
4858 floating-point registers.
4859
4860 * arch-utils.h (default_print_float_info): Delete declaration.
4861 * arch-utils.c (default_print_float_info): Delete function.
4862
e0ca2bb9
MK
48632002-08-16 Mark Kettenis <kettenis@gnu.org>
4864
3f733acc
MK
4865 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4866 out define.
4867
7d8d2918
MK
4868 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4869 FRAME.
4870
1c7cc583
MK
4871 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4872 * configure.host: Make i[3456]86-*-aix host obsolete.
4873 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4874 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4875 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4876 config/i386/xm-i386aix.h: Make files obsolete.
4877 * i386aix-nat.c: Make file obsolete.
4878 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4879 (i386aix-nat.o): Make target obsolete.
4880
e0ca2bb9
MK
4881 * config/i386/nm-gnu.h: Removed.
4882 * config/i386/nm-i386gnu.h: New file.
4883 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4884 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4885 Moved here from ...
4886 * config/i386/tm-i386gnu.h: ... here. Removed.
4887 * config/i386/xm-i386gnu.h: Removed.
4888 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4889 (NAT_FILE): Set to nm-i386gnu.h.
4890 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4891 * i386-tdep.c: New file.
4892 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4893 (i386gnu-tdep.o): Specify dependencies.
4894
16057ec7 48952002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4896
6b99ee2e
MK
4897 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4898 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4899 Adjust a few comments to reflect reality a bit closer.
4900 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4901 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4902 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4903 target_insert_watchpoint, target_remove_watchpoint):
4904 Move defines to ...
4905 * config/i386/nm-i386sco5.h: ... here.
4906 (kernel_u_size): Add prototype. Improve a few comments and add
4907 protection against multiple inclusion.
4908
d9a6f65c
MK
4909 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4910 out define.
4911
047eff6a
MK
4912 * uw-thread.c (SP_ARG0): Define if not already defined.
4913 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4914
dcdb1290
MK
4915 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4916
5d2d0b2a
MK
4917 * config/i386/tm-i386.h: Don't include "regcache.h".
4918
61113f8b
MK
4919 * i387-tdep.h (i387_print_float_info): New prototype.
4920 * i387-tdep.c (print_i387_value, print_i387_ext,
4921 print_i387_status_word, print_i387_control_word): Add `struct
4922 ui_file *' argument and use it for output.
4923 (i387_print_float_info): Renamed from i387_float_info. Add
4924 `struct gdbarch *' and `struct ui_file *' arguments and use the
4925 latter for output.
4926 * i386-tdep.c: Include "i387-tdep.h".
4927 (i386_gdbarch_init): Set print_float_info.
4928 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4929 (FLOAT_INFO): Remove define.
4930
46e0f506
MS
49312002-08-13 Michael Snyder <msnyder@redhat.com>
4932
4933 * mips-tdep.c (mips_push_arguments): Rename to
4934 mips_eabi_push_arguments, and tune for EABI.
4935 (MIPS_REGS_HAVE_HOME_P): Delete.
4936 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4937 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4938 Delete references to mips_regs_have_home_p.
4939
409268de
KS
49402002-08-14 Keith Seitz <keiths@redhat.com>
4941
4942 * Makefile.in (install-gdbtk): Create insight plugin directory.
4943 Install plugins.tcl file.
4944
ffc6a242
KS
49452002-08-14 Keith Seitz <keiths@redhat.com>
4946
4947 * configure.in: Move SUBDIRS to near top of the file so that
4948 --enable options may add things to it.
4949 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4950 * configure: Regenerate.
4951
ebafbe83
MS
49522002-08-13 Michael Snyder <msnyder@redhat.com>
4953
4954 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4955 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4956 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4957
32f6f25d
AC
49582002-08-13 Andrew Cagney <ac131313@redhat.com>
4959
4960 * vax-tdep.c (vax_get_saved_register): Delete function.
4961 (vax_gdbarch_init): Update.
4962 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4963 (ns32k_gdbarch_init): Update.
4964 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4965 (alpha_gdbarch_init): Update.
4966
53826de9
AC
49672002-08-13 Andrew Cagney <cagney@redhat.com>
4968
4969 * regcache.c (init_regcache_descr): Overallocate the
4970 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4971 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4972 nr_raw_registers.
4973 (set_register_cached): Add range checking assertions. Use
4974 current_regcache.
4975
16057ec7 49762002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4977
4978 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4979 numbers for MMX registers.
4980
7b4c2dce
AC
49812002-08-13 Andrew Cagney <cagney@redhat.com>
4982
4983 * i386-tdep.c (i386_gdbarch_init): Use
4984 generic_unwind_get_saved_register.
4985
1e03ad20
KB
49862002-08-13 Kevin Buettner <kevinb@redhat.com>
4987
4988 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4989 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4990 target vector.
4991 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4992 Delete. Add comment regarding this now-deleted target method.
4993
548bcbec
SC
49942002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4995
4996 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4997 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4998 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4999 real PC and the page number (if it's within the memory bank window).
5000 (m68hc11_pseudo_register_write): Likewise when saving.
5001 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5002 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5003 (m68hc11_register_raw_size): And use 32-bit for it.
5004 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5005 16K memory bank is used by the prog; also use the virtual pc.
5006
7df11f59
SC
50072002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5008
5009 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5010 (m68hc11_gdbarch_init): Install it in gdbarch.
5011 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5012 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5013 (MSYMBOL_SIZE): New for documentation.
5014 (insn_return_kind): Enum to specify how a function returns.
5015 (frame_extra_info): Cleanup and record the return mode.
5016 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5017 register in address computation.
5018 (m68hc11_get_return_insn): New to obtain the return instruction used
5019 by the function.
5020 (m68hc11_frame_init_saved_regs): Take into account the return
5021 instruction used by the function for far and interrupt functions.
5022 (m68hc11_init_extra_frame_info): Take into account page register.
5023 (m68hc11_frame_args_address): Adjust according to the return mode.
5024 (show_regs): Print page register only when it's used.
5025
5706502a
SC
50262002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5027
5028 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5029 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5030 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5031 registers.
5032 (m68hc11_register_raw_size): Likewise.
5033
28fc6740
AC
50342002-08-13 Andrew Cagney <cagney@redhat.com>
5035
5036 * i386-tdep.c (i386_register_name): Handle mmx registers.
5037 (mmx_regnum_p): New function.
5038 (i386_mmx_names): New array.
5039 (mmx_num_regs): New variable.
5040 (i386_pseudo_register_read): New function.
5041 (i386_pseudo_register_write): New function.
5042 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5043
5044 * regcache.c (regcache_raw_read_unsigned): New function.
5045 (regcache_raw_read_signed): New function.
5046 * regcache.h (regcache_raw_read_unsigned): Declare.
5047 (regcache_raw_read_signed): Declare.
5048
a378f419
AC
50492002-08-13 Andrew Cagney <cagney@redhat.com>
5050
5051 * regcache.c (regcache_raw_read_as_address): Delete function.
5052 (regcache_cooked_read_signed): New function.
5053 (regcache_cooked_read_unsigned): New function.
5054 * regcache.h (regcache_cooked_read_signed): Declare.
5055 (regcache_cooked_read_unsigned): Declare.
5056 (regcache_raw_read_as_address): Delete declaration.
5057
5058 * blockframe.c (generic_read_register_dummy): Use
5059 regcache_cooked_read_unsigned.
5060 * i386-tdep.c (i386_extract_struct_value_address): Use
5061 regcache_cooked_read_unsigned.
5062
81967506
SC
50632002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5064
5065 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5066 double sizes according to ELF ABI flags.
5067 (gdbarch_tdep): Record elf_flags.
5068
ffe1f3ee
SC
50692002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5070
5071 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5072 (m6812_prolog): They can appear in 68HC12 function prologue.
5073 (m68hc11_frame_chain): Cleanup.
5074
98216c5d
AC
50752002-08-12 Andrew Cagney <cagney@redhat.com>
5076
5077 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5078 declarations.
5079 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5080 (i386_linux_register_raw_size): Delete function.
5081 (i386_linux_init_abi): Update.
5082 * i386-tdep.c (i386_register_raw_size): Delete function.
5083 (i386_register_byte): Delete function.
5084 (i386_gdbarch_init): Update.
5085 (i386_register_size): Delete array.
5086 (i386_register_offset): Delete array.
5087
5088 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5089 (REGISTER_RAW_SIZE): Delete macro.
5090 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5091 (REGISTER_BYTE): Delete macro.
5092
3b19021e
AS
50932002-08-11 Aidan Skinner <aidan@velvet.net>
5094
5095 * ada-lang.c (ada_lookup_partial_symbol)
5096 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5097 prototype names so that grep ^func works properly.
5098
5099 * ada-lang.c (ada_array_element_type)
5100 (ada_lookup_partial_symbol): Fix typos in parameter list.
5101
5102 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5103 Fix prototype names so that grep ^func works properly.
5104
b063e7a2
AC
51052002-08-10 Andrew Cagney <cagney@redhat.com>
5106 Elena Zannoni <ezannoni@redhat.com>
5107 Martin M. Hunt <hunt@redhat.com>
5108
5109 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5110 (build_builtin_type_vec128i): Set the vector bit.
5111 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5112 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5113 (build_builtin_type_vec64): New function.
5114 (build_builtin_type_vec64i): New function.
5115 (build_gdbtypes): Initialize builtin_type_vec64 and
5116 builtin_type_vec64i.
5117
a7e3c2ad
AC
51182002-08-09 Andrew Cagney <cagney@redhat.com>
5119
5120 * regcache.c (regcache_dump): Compare the register offset
5121 with REGISTER_BYTE.
5122 * arch-utils.c (generic_register_byte): New function.
5123 * arch-utils.h (generic_register_byte): Declare.
5124 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5125 * gdbarch.h, gdbarch.c: Regenerate.
5126
af030b9a
AC
51272002-08-09 Andrew Cagney <cagney@redhat.com>
5128
5129 * regcache.c: Include "gdbcmd.h"
5130 (_initialize_regcache): Add commands "maintenance print
5131 registers", "maintenance print raw-registers" and "maintenance
5132 print cooked-registers".
5133 (enum regcache_dump_what): Define.
5134 (dump_endian_bytes): New function.
5135 (regcache_dump): New function.
5136 (regcache_print): New function.
5137 (maintenance_print_registers): New function.
5138 (maintenance_print_raw_registers): New function.
5139 (maintenance_print_cooked_registers): New function.
5140 * Makefile.in (regcache.o): Update dependencies.
5141
cb3d25d1
MS
51422002-08-09 Michael Snyder <msnyder@redhat.com>
5143
5144 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5145 (mips_push_arguments): Correct some comments. Use paddr_nz
5146 for printing addresses in debug output. Replace static
5147 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5148 (mips_n32n64_push_arguments): New function, cloned from
5149 mips_push_arguments and tuned for the n32/n64 ABI.
5150 (mips_push_register): Buffer needs dynamic allocation.
5151 (mips_print_register): Ditto.
5152 (do_gp_register_row): Ditto.
5153 (mips_store_return_value): Ditto.
5154 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5155
2163ab9d
DH
51562002-08-09 Don Howard <dhoward@redhat.com>
5157
5158 * memattr.c (mem_info_command): Print special case of upper bound
5159 as max CORE_ADDR + 1.
5160
b78bcb18
MS
51612002-08-08 Michael Snyder <msnyder@redhat.com>
5162
5163 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5164 returns structs by ref if they're too big to fit in two registers.
5165
ffabd70d
KB
51662002-08-09 Kevin Buettner <kevinb@redhat.com>
5167
5168 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5169 saved regs value.
5170 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5171 mips_find_saved_regs().
5172 (mips_pop_frame): Likewise.
5173
fbcdb4a3
KB
51742002-08-09 Kevin Buettner <kevinb@redhat.com>
5175
5176 * blockframe.c (frame_saved_regs_register_unwind): Revise
5177 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5178 frames are in use.
5179
3c3bea1c
GS
51802002-08-09 Grace Sainsbury <graces@redhat.com>
5181
5182 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5183 T-packets; the 'a' is not taken as a register number.
5184 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5185 (remote_stopped_data_address): New functions; add to target
5186 vector.
5187 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5188 prototypes to match other implementations of this
5189 function. replace integer argument with pointer -- the length
5190 field in the Z-packet is the length of what is pointed to or 1 if
5191 pointer is null. Add to target vector.
5192 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5193 target vector.
5194
5195 From Mark Salter:
5196 * remote.c (remote_wait): Add support to extract optional
5197 watchpoint information from T-packet. Ignore unrecognized
5198 optional info in T-packet.
5199 (remote_async_wait): Ditto.
5200
5d1d95de
CV
52012002-08-09 Corinna Vinschen <vinschen@redhat.com>
5202
5203 * cli/cli-dump.c: Change fopen modes to use binary open modes
5204 as defined in include/fopen-bin.h throughout.
5205
c86b5b38
MS
52062002-08-08 Michael Snyder <msnyder@redhat.com>
5207
5208 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5209
b30590dc
KB
52102002-08-08 Kevin Buettner <kevinb@redhat.com>
5211
5212 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5213 assertion failure by returning early after a warning.
5214
498868ed
KB
52152002-08-08 Kevin Buettner <kevinb@redhat.com>
5216
5217 * mips-tdep.c (mips_find_saved_regs): Make static.
5218 (mips_frame_init_saved_regs): New function.
5219 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5220 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5221 (mips_find_saved_regs): Delete declaration.
5222
b2dd6311
GS
52232002-08-08 Grace Sainsbury <graces@redhat.com>
5224
3c3bea1c
GS
5225 * remote.c (remote_wait, remote_async_wait): Change
5226 thread_num from int to ULONGEST.
5227 (unpack_varlen_hex): Change result parameter from
5228 int * to ULONGEST *.
b2dd6311 5229
ea47855f
AC
52302002-08-08 Andrew Cagney <ac131313@redhat.com>
5231
5232 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5233 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5234 powerpc*-*-*.
5235 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5236
69db8bae
AC
52372002-08-08 Andrew Cagney <cagney@redhat.com>
5238
5239 * gcore.c (override_derive_stack_segment): Delete variable.
5240 (preempt_derive_stack_segment): Delete function.
5241 (derive_stack_segment): Delete function.
5242 (default_derive_stack_segment): Renamed to derive_stack_segment.
5243 (override_derive_heap_segment): Delete variable.
5244 (preempt_derive_heap_segment): Delete function.
5245 (derive_heap_segment): Delete function.
5246 (default_derive_heap_segment): Rename to derive_heap_segment.
5247
cb811fe7
MS
52482002-08-06 Michael Snyder <msnyder@redhat.com>
5249
5250 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5251 * mips-tdep.c (mips_EABI_use_struct_convention,
5252 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5253 New functions. (mips_use_struct_convention): Delete.
5254 (mips_gdbarch_init): set use_gdbarch_convention.
5255
8b389c40
MS
52562002-08-06 Michael Snyder <msnyder@redhat.com>
5257
5258 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5259 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5260 mips_o32_reg_struct_has_addr): New functions.
5261 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5262
5c27f28a
AC
52632002-08-07 Andrew Cagney <ac131313@redhat.com>
5264
5265 * regcache.c (pseudo_register): Delete function.
5266 (fetch_register): Delete function.
5267 (store_register): Delete function.
5268 (regcache_raw_read, legacy_read_register_gen): Use
5269 target_fetch_registers instead of fetch_register.
5270 (legacy_write_register_gen, regcache_raw_write): Use
5271 target_store_register instead of store_register.
5272 (write_register_bytes): Ditto.
5273
5274 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5275 (STORE_PSEUDO_REGISTER): Delete.
5276 * gdbarch.h, gdbarch.c: Regenerate.
5277
5b331675
CV
52782002-08-06 Corinna Vinschen <vinschen@redhat.com>
5279
5280 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5281 write dump file binary.
5282
6acdf5c7
MS
52832002-08-05 Michael Snyder <msnyder@redhat.com>
5284
5285 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5286 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5287 (mips_gdbarch_init): Set N32 target to be mips64.
5288
b2f01c35
KB
52892002-08-06 Kevin Buettner <kevinb@redhat.com>
5290
5291 * frame.c (find_saved_register): Break out of loop once saved
5292 register address is found. Don't mention sparc in loop comment
5293 anymore.
5294
63db5580
KB
52952002-08-06 Kevin Buettner <kevinb@redhat.com>
5296
5297 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5298 mips_default_saved_regsize to 8.
5299
5e34e75e
AC
53002002-08-06 Andrew Cagney <ac131313@redhat.com>
5301
5302 * gcore.c: Do not include <sys/procfs.h>.
5303 * Makefile.in (gcore.o): Update dependencies.
5304
eb4c54a2
AC
53052002-08-06 Andrew Cagney <cagney@redhat.com>
5306
5307 * configure.tgt: Make arc-*-* obsolete.
5308 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5309 * MAINTAINERS: Make arc-elf obsolete.
5310 * arc-tdep.c: Make file obsolete.
5311 * config/arc/arc.mt: Ditto.
5312 * config/arc/tm-arc.h: Ditto.
5313
ced15480
TR
53142002-08-05 Theodore A. Roth <troth@verinet.com>
5315
c1bab85b 5316 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 5317
b4743822
AC
53182002-08-05 Andrew Cagney <ac131313@redhat.com>
5319
5320 * mcore-tdep.c (mcore_gdbarch_init): Use
5321 generic_unwind_get_saved_register instead of
5322 generic_get_saved_register.
5323 * v850-tdep.c (v850_gdbarch_init): Ditto.
5324 * frv-tdep.c (frv_gdbarch_init): Ditto.
5325 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5326 * s390-tdep.c (s390_gdbarch_init): Ditto.
5327 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5328 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5329 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5330
3956d554
JB
53312002-08-05 Joel Brobecker <brobecker@gnat.com>
5332
5333 * objfiles.h: Add missing #include "symfile.h"
5334
5335 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5336
8249c0d6
AC
53372002-08-04 Andrew Cagney <ac131313@redhat.com>
5338
5339 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5340 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5341 of FIELD_BITSIZE.
5342
b9d14705
DJ
53432002-08-04 Daniel Jacobowitz <drow@mvista.com>
5344
5345 * NEWS: Cleanup and nitpick.
5346
dd73b9bb
AC
53472002-08-03 Andrew Cagney <ac131313@redhat.com>
5348
5349 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5350
043a27f8
AC
53512002-08-03 Andrew Cagney <ac131313@redhat.com>
5352
5353 * Makefile.in (gdbtk-bp.o): Update dependencies.
5354 (gdbtk-register.o): Ditto.
5355 (gdbtk-varobj.o): Ditto.
5356
46ce284d
AC
53572002-08-03 Andrew Cagney <cagney@redhat.com>
5358
5359 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5360 m68hc11_fetch_pseudo_register.
5361 (m68hc11_pseudo_register_write): Replace
5362 m68hc11_store_pseudo_register.
5363 (m68hc11_gdbarch_init): Update.
5364
b66d6d2e
AC
5365Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5366
5367 * gdbarch.sh: Include "gdb_string.h".
5368 * gdbarch.c: Regenerate.
5369
5370 * regcache.c: Include "gdb_string.h".
5371 * ax-general.c: Ditto.
5372 * varobj.c: Ditto.
5373 * std-regs.c: Ditto.
5374 * fbsd-proc.c: Ditto.
5375 * thread.c: Ditto.
5376
5377 * Makefile.in (regcache.o): Update dependencies.
5378 (thread.o, gdbarch.o): Ditto.
5379 (ax-general.o, gdbarch.o): Ditto.
5380 (varobj.o, std-regs.o): Ditto.
5381 (fbsd-proc.o): Specify dependencies.
5382
29e1842b
AC
53832002-08-02 Andrew Cagney <cagney@redhat.com>
5384
5385 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5386 regnum.
5387 (regcache_cooked_write): Ditto.
5388
68365089
AC
53892002-08-02 Andrew Cagney <ac131313@redhat.com>
5390
5391 * regcache.c (regcache_cooked_read): New function.
5392 (regcache_cooked_write): New function.
5393 (read_register_gen): Rewrite using regcache_cooked_read.
5394 (write_register_gen): Rewrite using regcache_cooked_write.
5395
5396 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5397 Declare.
5398
d8124050
AC
53992002-08-02 Andrew Cagney <cagney@redhat.com>
5400
5401 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5402 Replace the architecture methods register_read and register_write.
5403 * gdbarch.h, gdbarch.c: Regenerate.
5404 * regcache.c (init_regcache_descr): Update.
5405 (read_register_gen): Update.
5406 (write_register_gen): Update.
5407 (supply_register): Update comment.
5408
5409 * sh-tdep.c (sh_gdbarch_init): Update.
5410 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5411 `regcache' and `gdbarch' parameters. Make `buffer' a void
5412 pointer. Update code.
5413 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5414 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5415 void pointer. Update code.
5416 (sh64_register_write): Delete.
5417 (sh4_register_read): Delete.
5418 (sh64_register_read): Delete.
5419 (sh4_register_write): Delete.
5420 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5421 void pointer, `to' parameter a void pointer.
5422 (sh_sh64_register_convert_to_raw): Ditto.
5423
a6425924
KB
54242002-08-01 Kevin Buettner <kevinb@redhat.com>
5425
5426 * mips-tdep.c (mips_register_virtual_type): Use architecture
5427 invariant return values.
5428
ff5922b5
AC
54292002-08-01 Andrew Cagney <cagney@redhat.com>
5430
5431 * linux-proc.c: Include "gdb_string.h".
5432 * Makefile.in (linux-proc.o): Update dependency list.
5433
32a6503c
KB
54342002-08-01 Kevin Buettner <kevinb@redhat.com>
5435
5436 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5437 comment.
5438
ccaa32c7
GS
54392002-08-01 Grace Sainsbury <graces@redhat.com>
5440
5441 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5442 to_insert_watchpoint, to_remove_watchpoint,
5443 to_stopped_by_watchpoint, to_stopped_data_address,
5444 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5445 target vecctor. Define their corresponding macros so they call
5446 them.
5447
5448 * target.c: Add default and debug versions of for
5449 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5450 to_insert_watchpoint, to_remove_watchpoint,
5451 to_stopped_by_watchpoint, to_stopped_data_address,
5452 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5453
78fde5f8
KB
54542002-08-01 Kevin Buettner <kevinb@redhat.com>
5455
5456 * mips-tdep.c (mips_register_virtual_type): New function.
5457 (mips_gdbarch_init): Register mips_register_virtual_type()
5458 with gdbarch machinery.
5459 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5460 this file instead of tm-bigmips.h.
5461 (MIPS_REGSIZE): Delete this macro.
5462 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5463 multiarch version in mips-tdep.c will be found.
5464
db034ac5
AC
54652002-08-01 Andrew Cagney <cagney@redhat.com>
5466
5467 * NEWS: Menion that CHILL has been made obsolete.
5468
5469 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
5470 * stabsread.c (read_range_type): Ditto.
5471 * gdbtypes.h: Ditto.
5472 * language.c (binop_type_check): Ditto.
5473 (binop_result_type): Ditto.
5474 (integral_type): Ditto.
5475 (character_type): Ditto.
5476 (string_type): Ditto.
5477 (boolean_type): Ditto.
5478 (structured_type): Ditto.
5479 (lang_bool_type): Ditto.
5480 (binop_type_check): Ditto.
5481 * language.h (_LANG_chill): Ditto.
5482 * dwarfread.c (set_cu_language): Ditto.
5483 * dwarfread.c (CHILL_PRODUCER): Ditto.
5484 * dwarfread.c (handle_producer): Ditto.
5485 * expression.h (enum exp_opcode): Ditto.
5486 * eval.c: Ditto for comments.
5487 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5488 * expprint.c (print_subexp): Ditto.
5489 (print_subexp): Ditto.
5490 * valops.c (value_cast): Ditto.
5491 (search_struct_field): Ditto.
5492 * value.h (COERCE_VARYING_ARRAY): Ditto.
5493 * symfile.c (init_filename_language_table): Ditto.
5494 (add_psymbol_with_dem_name_to_list): Ditto.
5495 * valarith.c (value_binop): Ditto.
5496 (value_neg): Ditto.
5497 * valops.c (value_slice): Ditto.
5498 * symtab.h (union language_specific): Ditto.
5499 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5500 (SYMBOL_DEMANGLED_NAME): Ditto.
5501 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5502 * defs.h (enum language): Ditto.
5503 * symtab.c (got_symtab): Ditto.
5504 * utils.c (fprintf_symbol_filtered): Ditto.
5505
5506 * ch-typeprint.c: Make file obsolete.
5507 * ch-valprint.c: Make file obsolete.
5508 * ch-lang.h: Make file obsolete.
5509 * ch-exp.c: Make file obsolete.
5510 * ch-lang.c: Make file obsolete.
5511
5512 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5513 CHILL_LIB.
5514 (TARGET_FLAGS_TO_PASS): Ditto.
5515 (CHILLFLAGS): Obsolete.
5516 (CHILL): Obsolete.
5517 (CHILL_FOR_TARGET): Obsolete.
5518 (CHILL_LIB): Obsolete.
5519 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5520 ch-valprint.c.
5521 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5522 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5523 ch-lang.o.
5524 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5525 targets.
5526
8aaf0b47
JB
55272002-07-31 Joel Brobecker <brobecker@gnat.com>
5528
5529 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5530 This does not change anything at the moment, but will be helpful
5531 later when full Ada support is integrated.
5532
f3a7b3a5
KB
55332002-07-31 Kevin Buettner <kevinb@redhat.com>
5534
5535 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5536 help message.
5537
fb850278
KB
55382002-07-31 Kevin Buettner <kevinb@redhat.com>
5539
5540 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5541 and save it in a local variable. Use variable in later test.
5542
e3bddbfa
KB
55432002-07-31 Kevin Buettner <kevinb@redhat.com>
5544
5545 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5546 test. (Thanks to Daniel Jacobowitz.)
5547
28d169de
KB
55482002-07-31 Kevin Buettner <kevinb@redhat.com>
5549
5550 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5551 (mips_abi_strings): Add "n64".
5552 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5553
7fe7e44e
KB
55542002-07-31 Kevin Buettner <kevinb@redhat.com>
5555
5556 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5557 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5558
c6caf090
KB
55592002-07-31 Kevin Buettner <kevinb@redhat.com>
5560
5561 * utils.c (host_pointer_to_address, address_to_host_pointer):
5562 Use gdb_assert() instead of explicit call to internal_error().
5563
c41669e0
KB
55642002-07-30 Kevin Buettner <kevinb@redhat.com>
5565
5566 * Makefile.in (rs6000-nat.o): Update dependencies.
5567
5568 From Nicholas Duffek:
5569 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5570 (aix-thread.o): New rule.
5571 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5572 * config/powerpc/aix432.mh: New file.
5573
2fda4977
DJ
55742002-07-30 Daniel Jacobowitz <drow@mvista.com>
5575
5576 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5577 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5578 (fetch_core_registers, ppc_linux_supply_gregset)
5579 (ppc_linux_supply_fpregset): New functions.
5580 (ppc_linux_regset_core_fns): New.
5581 (_initialize_ppc_linux_tdep): Call add_core_fns.
5582 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5583 and ppc_linux_supply_gregset.
5584 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5585 (supply_fpregset): Call ppc_linux_supply_fpregset.
5586 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5587 corelow.o.
5588 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5589
729051e6
DJ
55902002-07-30 Daniel Jacobowitz <drow@mvista.com>
5591
5592 * symtab.c (lookup_symbol): Demangle before lowercasing.
5593
5f8a3188
AC
55942002-07-30 Andrew Cagney <ac131313@redhat.com>
5595
5596 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5597 declaration.
5598 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5599 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5600 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5601 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5602 "gdb_string.h".
5603 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5604 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5605 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5606 (avr-tdep.o, mon960-rom.o): Ditto.
5607 (aout_stabs_gnu_h): Define.
5608 (symtab_h): Remove $(gdb_obstack_h).
5609
67f07146
JB
56102002-07-30 Jim Blandy <jimb@redhat.com>
5611
5612 Patch from David Carlton <carlton@math.stanford.edu>:
5613 * gdbinit.in: Move the `dir' commands that add GDB's own source
5614 directory to the search path to the end, so that the `gdb' source
5615 directory will be searched first.
5616
04ea0df1
AC
56172002-07-29 Andrew Cagney <ac131313@redhat.com>
5618
5619 * gdb_obstack.h: New file.
5620 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5621 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5622 * objfiles.h: Include "gdb_obstack.h".
5623 * Makefile.in (gdb_obstack_h): Define.
5624 (symtab_h): Add $(gdb_obstack_h).
5625 (objfiles_h): Add $(gdb_obstack_h).
5626
5627 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5628 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5629 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5630 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5631 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5632 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5633 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5634 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5635
5636 * Makefile.in (bcache.o): Update dependencies.
5637 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5638 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5639 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5640 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5641 (stabsread.o, symfile.o, symmisc.o): Ditto.
5642 (symtab.o, typeprint.o, macroexp.o): Ditto.
5643 (macrotab.o, mdebugread.o): Ditto.
5644 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5645 (coff_ecoff_h, aout_aout64_h): Define.
5646 (aout_stabs_gnu_h, libaout_h): Define.
5647
d138e37a
AC
56482002-07-29 Andrew Cagney <cagney@redhat.com>
5649
5650 * regcache.c (struct regcache_descr): Rename nr_registers to
5651 nr_cooked_registers. Revise comments describing the structure
5652 member fields.
5653 (init_regcache_descr): Update.
5654 (init_legacy_regcache_descr): Update.
5655 (read_register_gen, write_register_gen): When a cooked register in
5656 the raw register range, directly access the value from the raw
5657 register cache.
5658
460e6ec3
AC
56592002-07-29 Andrew Cagney <ac131313@redhat.com>
5660
5661 * z8k-tdep.c: Do not include "obstack.h".
5662 * h8300-tdep.c, h8500-tdep.c: Ditto.
5663 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5664 * valprint.c, v850-tdep.c: Ditto.
5665 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5666 * mn10200-tdep.c: Ditto.
5667
5668 * Makefile.in (z8k-tdep.o): Update dependencies.
5669 (m68hc11-tdep.o, valprint.o): Ditto.
5670 (v850-tdep.o, d10v-tdep.o): Ditto.
5671 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5672 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5673 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5674 (sh_opc_h, gdb_sim_sh_h): Define.
5675 (elf_sh_h, elf_bfd_h): Define.
5676 (opcode_m68hc11_h): Define.
5677 (OPCODES_SRC, OPCODES_DIR): define.
5678 (OPCODES): Use $(OPCODES_DIR).
5679 (gdb_sim_d10v_h): Rename sim_d10v_h.
5680 (gdb_sim_arm_h): Rename sim_arm_h.
5681
790c9cf0
KB
56822002-07-26 Kevin Buettner <kevinb@redhat.com>
5683
5684 * utils.c (host_pointer_to_address, address_to_host_pointer):
5685 Change internal_error() message to indicate function responsible
5686 for the error.
5687
9647fa49
KB
56882002-07-26 Kevin Buettner <kevinb@redhat.com>
5689
5690 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5691 calls to local_hex_string_custom().
5692
dabbe2c0
KB
56932002-07-26 Kevin Buettner <kevinb@redhat.com>
5694
5695 * irix5-nat.c: Move IRIX shared library support from here...
5696 * solib-irix.c: ...to here. Revised substantially to work with
5697 generic solib framework.
5698
b96d0a4e
KB
5699 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5700 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5701 * mips-irix-tdep.c: New file.
5702
313fb2f6
KB
5703 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5704 (mips-irix-tdep.o, solib-irix.o): New rules.
5705 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5706 solib-irix.o.
5707 * config/mips/irix6.mt (TDEPFILES): Likewise.
5708 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5709
ab2eaf26
KB
57102002-07-26 Kevin Buettner <kevinb@redhat.com>
5711
177e4768 5712 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5713 disabled (via ``#if 0'') includes.
5714
7244546a
KB
57152002-07-26 Kevin Buettner <kevinb@redhat.com>
5716
5717 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5718 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5719 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5720 Add support for the fpscr register.
5721 * rs6000-nat.c (regmap, fetch_inferior_registers)
5722 (store_inferior_registers, fetch_core_registers): Likewise.
5723
dd7be90a
KB
57242002-07-26 Kevin Buettner <kevinb@redhat.com>
5725
5726 * rs6000-nat.c (language.h): Include.
5727 (special_regs): Delete this array.
5728 (regmap): New function.
5729 (fetch_register, store_register): Use regmap() to map gdb
5730 register numbers to ptrace register numbers. Also, use
5731 outputs from regmap() to make decisions regarding type of
5732 ptrace() call to make. In particular, don't compare against
5733 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5734 (fetch_inferior_registers, store_inferior_registers): Where
5735 possible, obtain register numbers from tdep struct. Don't
5736 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5737 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5738 (LAST_UISA_SP_REGNUM): Delete.
5739
11bf77db
KB
57402002-07-25 Kevin Buettner <kevinb@redhat.com>
5741
5742 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5743 (fetch_registers, store_register, fetch_core_registers): Don't
5744 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5745 regcache_collect() as appropriate.
5746 (find_toc_address): Format hex address with local_hex_string().
5747
06afebeb
AC
57482002-07-25 Andrew Cagney <ac131313@redhat.com>
5749
5750 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5751 bfd/elf32-frv.c.
5752
8c554d79
TT
57532002-07-24 Tom Tromey <tromey@redhat.com>
5754
5755 * jv-exp.y: Marked all strings with _().
5756 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5757 internal_error.
5758 (MethodInvocation, CastExpression, parse_number, yyerror,
5759 java_type_from_name, push_expression_name, yylex): Typo fixes.
5760
e4c242d9
DJ
57612002-07-24 Daniel Jacobowitz <drow@mvista.com>
5762
5763 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5764 (tee_file_flush, tee_file_write, tee_file_fputs)
5765 (tee_file_isatty): New.
5766 * ui-file.h (tee_file_new): Add prototype.
5767
ebf56fd3
AS
57682002-07-24 Aidan Skinner <aidan@velvet.net>
5769
5770 * ada-lang.c: Change k&r style function definitions to prototyped
5771 form.
5772 * ada-typeprint.c: Change k&r style function definitions to prototyped
5773 form.
5774 * ada-valprint.c: Change k&r style function definitions to prototyped
5775 form.
5776
7fb623f7
AC
57772002-07-24 Andrew Cagney <cagney@redhat.com>
5778
5779 * README: Remove reference to remote-bug.
5780 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5781 remote-bug.c.
5782 (m88k-nat.o): Delete rule.
5783 (m88k-tdep.o): Delete rule.
5784 (remote-bug.o): Delete rule.
5785 * MAINTAINERS: Mark as obsolete.
5786 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5787 * m88k-tdep.c: Make file obsolete.
5788 * config/m88k/m88k.mh: Ditto.
5789 * config/m88k/delta88v4.mh: Ditto.
5790 * config/m88k/delta88v4.mt: Ditto.
5791 * config/m88k/delta88.mt: Ditto.
5792 * config/m88k/delta88.mh: Ditto.
5793 * remote-bug.c: Ditto.
5794 * config/m88k/tm-delta88.h: Ditto.
5795 * config/m88k/nm-delta88v4.h: Ditto.
5796 * config/m88k/xm-delta88.h: Ditto.
5797 * config/m88k/xm-dgux.h: Ditto.
5798 * config/m88k/tm-m88k.h: Ditto.
5799 * config/m88k/nm-m88k.h: Ditto.
5800 * config/m88k/tm-delta88v4.h: Ditto.
5801 * m88k-nat.c: Ditto.
5802 * cxux-nat.c: Ditto.
5803 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5804 and m88*-*-* obsolete.
5805 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5806 m88*-*-* obsolete.
5807
37611a2b
AC
58082002-07-24 Andrew Cagney <cagney@redhat.com>
5809
5810 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5811 constant. Same for local pointer variables.
5812 (extract_signed_integer): Ditto.
5813 * defs.h (extract_unsigned_integer): Update.
5814 (extract_signed_integer): Update.
5815
1aaa5f99
AC
58162002-07-24 Andrew Cagney <cagney@redhat.com>
5817
5818 * regcache.c (regcache_raw_write): Change buf parameter to a
5819 constant void pointer.
5820 (regcache_raw_read): Change buf parameter to a void pointer.
5821 (legacy_write_register_gen): Change myaddr parameter a constant
5822 void pointer.
5823 (supply_register): Change val parameter to a const void pointer.
5824 * regcache.h (regcache_raw_write): Update declaration.
5825 (regcache_raw_read): Update declaration.
5826 (supply_register): Update declaration.
5827
b4f5539f
TT
58282002-07-24 Tom Tromey <tromey@redhat.com>
5829
5830 * defs.h (gdb_readline_wrapper): Declare.
5831 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5832 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5833 * top.c (gdb_readline_wrapper): New function.
5834 (command_line_input): Use it.
5835
0818c12a
AC
58362002-07-24 Andrew Cagney <cagney@redhat.com>
5837
5838 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5839 regcache_read and regcache_write.
5840 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5841 * regcache.c: Update.
5842 * sh-tdep.c (sh64_push_arguments): Update comment.
5843 (sh_pseudo_register_read): Update.
5844 (sh_pseudo_register_write): Update.
5845 (sh4_register_read): Update.
5846 (sh4_register_write): Update.
5847 (sh64_pseudo_register_read): Update.
5848 (sh64_pseudo_register_write): Update.
5849 (sh64_register_read): Update.
5850 (sh64_register_write): Update.
5851 * i386-tdep.c (i386_extract_return_value): Update.
5852 (i386_extract_struct_value_address): Update.
5853 (i386_extract_return_value): Update.
5854 * blockframe.c (generic_read_register_dummy): Update.
5855 (generic_call_dummy_register_unwind): Update
5856 * infrun.c (write_inferior_status_register): Update.
5857
f7321c06
JB
58582002-07-23 Jim Blandy <jimb@redhat.com>
5859
5860 * parser-defs.h (expression_context_pc): Make this extern.
5861 (Thanks to Michael Snyder.)
5862
2037aebb
AC
58632002-07-23 Andrew Cagney <ac131313@redhat.com>
5864
5865 GDB 5.2.1 released from 5.2 branch.
5866 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5867 * README: Update to mention 5.2.1.
5868
66504d44
MS
58692002-07-23 Mark Salter <msalter@redhat.com>
5870
5871 * remote.c (remote_read_bytes): Fix check for error.
5872
27bae383
KB
58732002-07-22 Kevin Buettner <kevinb@redhat.com>
5874
5875 * aix-thread.c (language.h): Include.
5876 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5877 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5878 Print newlines at end of debug messages.
5879 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5880 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5881
58822002-07-22 Kevin Buettner <kevinb@redhat.com>
5883
5884 * aix-thread.c (ppc-tdep.h): Include.
5885 (special_register_p): New function.
5886 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5887 (store_regs_user_thread): Use register number information from
5888 gdbarch_tdep struct instead of hardcoded offsets relative to
5889 FIRST_UISA_SP_REGNUM.
5890 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5891 special_register_p() instead of using FPLAST_REGNUM and
5892 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5893 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5894 will be MQ's register number.
5895
58962002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5897
5898 * aix-thread.c (ops): Rename to aix_thread_ops.
5899 (base_ops): Rename to base_target.
5900 (ops_attach): Rename to aix_thread_attach.
5901 (ops_detach): Rename to aix_thread_detach.
5902 (ops_resume): Rename to aix_thread_detach.
5903 (ops_wait): Rename to aix_thread_wait.
5904 (ops_kill): Rename to aix_thread_kill.
5905 (init_ops): Rename to init_aix_thread_ops.
5906 (ops_fetch_register): Rename to aix_thread_fetch_register.
5907 (ops_store_register): Rename to aix_thread_store_register.
5908 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5909 (ops_thread_alive): Rename to aix_thread_thread_alive.
5910 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5911 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5912 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5913 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5914 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5915 (store_regs_lib): Rename to store_regs_user_thread.
5916 (store_regs_kern): Rename to store_regs_kernel_thread.
5917
27bae383 59182002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5919
5920 * aix-thread.c (ops_prepare_to_store): Eliminate.
5921 (init_ops): Don't initialize ops.prepare_to_store.
5922 (store_regs_kern): Pre-fetch register buffers from child,
5923 because some registers may not be in the cache. Copy
5924 regs from register cache only if they are cached.
5925 (store_regs_lib): Copy regs from register cache only
5926 if they are cached.
5927 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5928 fill_gprs64): Ditto.
5929
61c5da0b
KB
59302002-07-22 Kevin Buettner <kevinb@redhat.com>
5931
5932 * aix-thread.c (gdb_assert.h): Include.
5933 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5934 register sizes (from register cache) match size of buffer holding
5935 register data.
5936 (fill_sprs32): Change parameter types to match those in the ptrace()
5937 buffer.
5938 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5939 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5940
59412002-07-22 Michael Snyder <msnyder@redhat.com>
5942
5943 * aix-thread.c (supply_sprs64): Cosmetic change.
5944 (supply_sprs32): Cosmetic change.
5945 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5946 (fill_sprs64): Use regcache_collect instead of read_register.
5947 (store_regs_lib): Use regcache_collect instead of
5948 read_register. Use fill_sprs32 instead of fill_sprs64,
5949 if debugging a 32-bit architecture.
5950 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5951 out of the register cache, instead of passing a pointer into
5952 the register cache directly to ptrace. Use regcache_collect
5953 insteaad of read_register.
5954 (ops_prepare_to_store): Use target_read_registers instead
5955 of read_register_bytes.
5956
36479eb1
AS
59572002-07-20 Aidan Skinner <aidan@velvet.net>
5958
5959 * MAINTAINERS: Add self under write after approval.
5960
80ae6ee2
AS
59612002-07-20 Aidan Skinner <aidan@velvet.net>
5962
5963 * ada-tasks.c: Change k&r style function definitions to prototyped
5964 form.
5965
8a8ab2b9
AC
59662002-07-19 Andrew Cagney <ac131313@redhat.com>
5967
5968 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5969 * x86-64-tdep.c: Include "objfiles.h".
5970 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5971 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5972
fb16b900
ML
59732002-07-17 Michal Ludvig <michal@suse.cz>
5974
5975 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5976 (update_context): Initialise cfa variable.
5977
0fe7bf7b
MS
59782002-07-17 Michael Snyder <msnyder@redhat.com>
5979
5980 * aix-thread.c: Shorten some long lines.
5981 Bring comments into line with code spec.
5982
488f131b
JB
59832002-07-18 Joel Brobecker <brobecker@gnat.com>
5984
5985 * infrun.c: Re-indent using gdb_indent.sh.
5986
46c415d2
JB
59872002-07-18 Joel Brobecker <brobecker@gnat.com>
5988
5989 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5990 Leave the indentation temporarily untouched, to minimize the diffs.
5991
cdecafbe
EZ
59922002-07-18 Elena Zannoni <ezannoni@redhat.com>
5993
5994 * stabsread.c: Make os9k sections of the code obsolete,
5995 for real this time.
5996 * stabsread.h: Make os9k sections of the code obsolete.
5997
7b6aa020
ML
59982002-07-18 Michal Ludvig <mludvig@suse.cz>
5999
09ec9b38
ML
6000 * linux-low.c (regsets_store_inferior_registers): Add free()
6001 at the end of a loop to prevent memory leak.
6002 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6003 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
6004 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6005 line a comment.
4894ac5d 6006 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 6007
233282cd
JB
60082002-07-17 Jim Blandy <jimb@redhat.com>
6009
6010 * macrocmd.c (info_macro_command): Remove newline from error
6011 message.
6012
7b6aa020 60132002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
6014
6015 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6016 (sh_gdbarch_init): Use it for sh-dsp.
6017
f7ef9339
KB
60182002-07-16 Kevin Buettner <kevinb@redhat.com>
6019
6020 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6021 64-bit DWARF2 format.
6022
8dd72958
JB
60232002-07-16 Joel Brobecker <brobecker@gnat.com>
6024
6025 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6026 <sys/proc.h> when not available.
6027
a99a9e1b
AC
60282002-07-16 Andrew Cagney <ac131313@redhat.com>
6029
6030 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6031 * stabsread.c: Make os9k sections of the code obsolete.
6032 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6033 * config/i386/i386os9k.mt: Make file obsolete.
6034 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6035 (COMMON_OBS): Remove os9kread.o
6036 (SFILES): Remove os9kread.c.
6037 (os9kread.o, remote-os9k.o): Make target obsolete.
6038 * remote-os9k.c: Make file obsolete.
6039 * os9kread.c: Make file obsolete.
6040 * Makefile.in
6041
7a3085c1
AC
60422002-07-16 Andrew Cagney <ac131313@redhat.com>
6043
6044 * NEWS: Mention that the FR30 has been made obsolete.
6045 * fr30-tdep.c: Make file obsolete.
6046 * config/fr30/tm-fr30.h: Ditto.
6047 * config/fr30/fr30.mt: Ditto.
6048 * configure.tgt: Make fr30-*-elf obsolete.
6049 * MAINTAINERS: Make fr30-elf obsolete.
6050
28a93f5a
PM
60512002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6052
6053 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6054 found is not inside a section.
6055
be006b8b
KB
60562002-07-15 Kevin Buettner <kevinb@redhat.com>
6057
6058 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6059 strerror().
6060 (pdc_realloc): Use xrealloc() instead of realloc().
6061
14fa3751
KB
60622002-07-15 Kevin Buettner <kevinb@redhat.com>
6063
6064 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6065 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6066 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6067 macros.
6068
42cc437f
KB
60692002-07-15 Kevin Buettner <kevinb@redhat.com>
6070
6071 * aix-thread.c (ptrace_check): Eliminate goto.
6072 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6073 problem.
6074
8e2c28d4
KB
60752002-07-15 Kevin Buettner <kevinb@redhat.com>
6076
6077 * aix-thread.c (gdbcmd.h): Include.
6078 (DEBUG, DBG, DBG2, dbg): Eliminate.
6079 (debug_aix_thread): New static global.
6080 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6081 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6082 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6083 invocations to DBG and DBG2 macros to test against
6084 ``debug_aix_thread'' and call fprintf_unfiltered().
6085 (_initialize_aix_thread): Add new command "set debug aix-thread".
6086
30413464
AC
60872002-07-15 Andrew Cagney <ac131313@redhat.com>
6088
6089 From Gerhard Tonn <TON@de.ibm.com>:
6090 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6091 instead of supply_register.
6092
7c43edc1
AC
60932002-07-15 Andrew Cagney <ac131313@redhat.com>
6094
6095 * dwarf2cfi.c: Include "gdb_assert.h".
6096 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6097 non-NULL.
6098 (update_context): Do not use __func__. Add missing ``break''.
6099 (update_context): Do not use __func__.
6100
9364a0ef
EZ
61012002-07-15 Elena Zannoni <ezannoni@redhat.com>
6102
6103 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6104 and its setting. Set gdbarch instruction printing functions
6105 directly. For non-rs6000 case use new function
6106 gdb_print_insn_powerpc.
6107 (gdb_print_insn_powerpc): New function.
6108
3fbeef0b
AC
61092002-07-13 Andrew Cagney <ac131313@redhat.com>
6110
92eb23c5 6111 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
6112 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6113 * configure.tgt: Mark d30v-*-* as obsolete.
6114 * d30v-tdep.c: Mark file as obsolete.
6115 * config/d30v/d30v.mt: Ditto.
6116 * config/d30v/tm-d30v.h: Ditto.
6117
aacb1f0a
AS
61182002-07-13 Aidan Skinner <aidan@velvet.net>
6119
6120 * ada-tasks.c (add_task_entry): replace calls to
6121 malloc() with xmalloc
6122 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6123
6124 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6125 ada_finish_decode_line_1, all_sals_for_line
6126 ada_breakpoint_rewrite): replace calls to free() with xfree()
6127
c11d79f2
KB
61282002-07-12 Kevin Buettner <kevinb@redhat.com>
6129
6130 From Nicholas Duffek (with minor changes by Martin Hunt,
6131 Louis Hamilton, and Kevin Buettner):
6132 * aix-thread.c: New file.
6133
8e19ed76
PS
61342002-07-12 Petr Sorfa <petrs@caldera.com>
6135
6136 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6137 complaint for invalid attribute class or form.
6138 (read_func_scope): DW_AT_frame_base
6139 better handling of DW_AT_block*.
6140 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6141 better handling of DW_AT_block*.
6142 (read_common_block): DW_AT_location
6143 better handling of DW_AT_block*.
6144 (read_partial_die): DW_AT_location better handling
6145 of DW_AT_block*.
6146 (new_symbol): DW_AT_external better handling of
6147 DW_AT_block*. Proper initialization of variable
6148 "addr".
6149 (attr_form_is_block): New function that returns true
6150 if the attribute's form is of DW_FORM_block*.
6151
295401f7
DJ
61522002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6153
6154 * valops.c (find_method_list): Remove comment about
6155 removed STATIC_MEMFUNCP argument.
6156 (value_find_oload_method_list): Likewise.
6157
e42dc924
KB
61582002-07-12 Kevin Buettner <kevinb@redhat.com>
6159
6160 From Nicholas Duffek:
6161 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6162 target_new_objfile_hook.
6163
6904b546
KB
61642002-07-12 Kevin Buettner <kevinb@redhat.com>
6165
6166 From Nicholas Duffek:
6167 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6168 csect.
6169
53fe9346
AC
61702002-07-12 Andrew Cagney <cagney@redhat.com>
6171
6172 * MAINTAINERS: Mention --enable-sim-build-warnings.
6173 (m68hc11-elf): Disable sim build warnings.
6174 (m32r-elf): Mark as broken obsolete candidate.
6175 (x86_64-linux-gnu): Mark as buildable with -Werror.
6176 (arm-elf): Change -w to ``,'' which enables warnings but not
6177 -Werror.
6178
af5f3db6
AC
61792002-07-12 Andrew Cagney <ac131313@redhat.com>
6180
6181 * bcache.h: Update copyright.
6182 (struct bstring, struct bcache): Move definition to "bcache.c".
6183 Replaced by opaque declaration.
6184 (bcache_xfree): Replace free_bcache.
6185 (bcache_xmalloc, bcache_memory_used): Declare.
6186
6187 * bcache.c: Update copyright.
6188 (struct bstring, struct bcache): Moved to here from "bcache.h".
6189 Update comments.
6190 (bcache_xmalloc, bcache_memory_used): New functions.
6191 (bcache_xfree): Replace function free_bcache.
6192
6193 * Makefile.in (objfiles.o): Add $(bcache_h).
6194 (objfiles_h): Remove $(bcache_h).
6195 (symfile.o): Add $(bcache_h).
6196
6197 * symmisc.c: Update copyright.
6198 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6199 (print_objfile_statistics): Use bcache_memory_used.
6200
6201 * symfile.c: Include "bcache.h".
6202 (reread_symbols): Use bcache_xfree.
6203 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6204 (add_psymbol_to_list): Pass psymbol_cache by value.
6205 (add_psymbol_with_dem_name_to_list): Ditto.
6206
6207 * objfiles.h: Update copyright.
6208 (struct bcache): Declare opaque. Do not include "bcache.h".
6209 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6210 bcache'' pointers.
6211 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6212
6213 * objfiles.c: Include "bcache.h". Update copyright.
6214 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6215 macro_cache.
6216 (free_objfile): Use bcache_xfree.
6217
444199e7
GS
62182002-07-11 Grace Sainsbury <graces@redhat.com>
6219
6220 * monitor.c (monitor_fetch_register): Make name a constant.
6221 (monitor_store_register): Same.
6222
261397f8
DJ
62232002-07-11 Daniel Jacobowitz <drow@mvista.com>
6224
6225 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6226 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6227 (finish_block) For non-function blocks, hash the symbol table. For
6228 function blocks, mark the symbol table as unhashed.
6229 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6230 (msymbol_hash_iw): Likewise.
6231 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6232 value.
6233 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6234 (lookup_minimal_symbol): Likewise for both.
6235 * symtab.h (struct block): Add `hashtable' flag. Comment the
6236 hashtable.
6237 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6238 (ALL_BLOCK_SYMBOLS): Update.
6239 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6240 (struct symbol): Add `hash_next' pointer.
6241 * symtab.c (lookup_block_symbol): Search using the hash table when
6242 possible.
6243 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6244 (search_symbols, find_addr_symbol): Likewise.
6245
6246 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6247 (read_dst_symtab): Likewise.
6248 * jv-lang.c (get_java_class_symtab): Likewise.
6249 * mdebugread.c: Include "gdb_assert.h".
6250 (shrink_block): Assert that the block being modified is not hashed.
6251 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6252 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6253 symbols.
6254 (dump_symtab): Recognize hashed blocks.
6255 * printcmd.c (print_frame_args): Assert that function blocks do not
6256 have hashed symbol tables.
6257 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6258 (fill_in_ada_prototype, debug_print_block): Likewise.
6259 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6260
6f0eaa01
CV
62612002-07-11 Corinna Vinschen <vinschen@redhat.com>
6262
6263 * stack.c (print_frame): Use result of frame_address_in_block()
6264 instead of fi->pc when evaluating symbols.
6265 (backtrace_command_1): Ditto.
6266
a208b0cb
AC
62672002-07-11 Andrew Cagney <cagney@redhat.com>
6268
6269 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6270 Make static.
6271
6272 * arm-tdep.c (arm_register_name): Make return type constant.
6273
a6b6b089
AC
62742002-07-10 Andrew Cagney <ac131313@redhat.com>
6275
5ae5f592
AC
6276 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6277 prototype.
6278 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6279 * s390-tdep.c (s390_fp_regnum): Ditto.
6280 (s390_read_fp): Ditto.
6281 (s390_pop_frame): Ditto.
6282 (_initialize_s390_tdep): Ditto.
6283 * remote.c (get_remote_state): Ditto.
6284 * procfs.c (mappingflags): Ditto.
6285 * memattr.c (_initialize_mem): Ditto.
6286 * mcore-tdep.c (mcore_pop_frame): Ditto.
6287 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6288 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6289 * language.c (set_case_str): Ditto.
6290 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6291 * frv-tdep.c (new_variant): Ditto.
6292 (frv_stopped_data_address): Ditto.
6293 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6294 (context_alloc): Ditto.
6295 (frame_state_alloc): Ditto.
6296 (unwind_tmp_obstack_init): Ditto.
6297 (unwind_tmp_obstack_free): Ditto.
6298 (cfi_read_fp): Ditto.
6299 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6300 (cris_pop_frame): Ditto.
6301 * c-lang.c (scanning_macro_expansion): Ditto.
6302 (finished_macro_expansion): Ditto.
6303 (c_preprocess_and_parse): Ditto.
6304 * gdbarch.sh: Ditto.
6305 * gdbarch.h, gdbarch.c: Regenerate.
6306 * config/mn10200/tm-mn10200.h: Adjust indentation.
6307 * target.c: Adjust indentation.
6308 * symtab.h: Adjust indentation.
6309 * stabsread.h: Adjust indentation.
6310 * remote-es.c: Adjust indentation.
6311 * os9kread.c: Adjust indentation.
6312
63132002-07-10 Andrew Cagney <ac131313@redhat.com>
6314
a6b6b089
AC
6315 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6316 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6317
a1789893
GS
63182002-07-10 Grace Sainsbury <graces@redhat.com>
6319
6320 * NEWS: Mention m68k, mcore multi-arching.
6321 * MAINTAINERS: Change status of m68k, mcore to reflect
6322 multi-arching.
6323
02f0d45d
DJ
63242002-07-10 Daniel Jacobowitz <drow@mvista.com>
6325
6326 * valops.c (find_overload_match): Free oload_syms.
6327
f15f768e
JB
63282002-07-09 Joel Brobecker <brobecker@gnat.com>
6329
6330 Define HAVE_SYS_PROC_H if sys/proc.h exists
6331 * configure.in: Add check for sys/proc.h
6332 * config.in: Regenerate.
6333 * configure: Regenerate.
6334
902a7139
GS
63352002-07-09 Grace Sainsbury <graces@redhat.com>
6336
6337 * config/m68k/tm-m68k.h: Remove macros wrapped in
6338 #if !GDB_MULTI_ARCH.
6339
a534e424
AC
63402002-07-08 Andrew Cagney <ac131313@redhat.com>
6341
6342 * config.in, configure: Regenerate.
6343
9b94f7bf
MK
63442002-07-08 Mark Kettenis <kettenis@gnu.org>
6345
6346 * dwarf2cfi.c: Include "gcore.h".
6347 (execute_stack_op): Fix implementation of the
6348 DW_OP_deref and DW_OP_deref_size operators by letting do their
6349 lookup in the target.
6350
1d34db41
MK
63512002-07-07 Mark Kettenis <kettenis@gnu.org>
6352
6353 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6354 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6355 tdep->sc_sp_offset.
6356
79d5b63a
DJ
63572002-07-05 Daniel Jacobowitz <drow@mvista.com>
6358
6359 Fix PR gdb/595, gdb/602
6360 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6361 Don't call value_cast, just read the vtable pointer; update comments
6362 to match.
6363
3bb912e8
GS
63642002-07-05 Grace Sainsbury <graces@redhat.com>
6365
6366 * config/mcore/tm-mcore.h: Remove file.
6367 * config/mcore/mcore.mt: Remove definition of TM_FILE
6368 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6369
ca39387d
MK
63702002-07-05 Mark Kettenis <kettenis@gnu.org>
6371
6372 * i386bsd-tdep.c: Include "gdb_string.h".
6373
efdc1108
GS
63742002-07-04 Grace Sainsbury <graces@redhat.com>
6375
6376 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6377 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6378 mcore-tdep.
6379 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6380 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6381 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6382 (RETVAL_REGNUM): Move macros from tm-mcore.h
6383 (mcore_reg_struct_has_addr): New function.
6384 (mcore_gdbarch_init): Added initializations for the macros removed
6385 from tm-mcore.h.
6386
bb21884d
MK
63872002-07-04 Mark Kettenis <kettenis@gnu.org>
6388
6389 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6390 traditonal string branding within the ELF header.
6391
228c6d41
DJ
63922002-07-04 Daniel Jacobowitz <drow@mvista.com>
6393
6394 * symtab.c (remove_params): New function.
6395 (make_symbol_overload_list): Use it instead of cplus_demangle.
6396 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6397
2404952e
MK
63982002-07-04 Mark Kettenis <kettenis@gnu.org>
6399
e5e4acad
MK
6400 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6401
baadce09
MK
6402 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6403 New variables.
6404 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6405 and tdep->sigtramp_end.
6406 * i386obsd-nat.c: New file.
6407 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6408
2404952e
MK
6409 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6410 Don't call get_current_frame().
6411
9b4f1ba7
PM
64122002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6413
6414 * i386-nat.c (child_post_startup_inferior): New function
6415 calling i386_cleanup_dregs if
6416 I386_USE_GENERIC_WATCHPOINTS is defined.
6417 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6418 conditional to acknowledge that i386-nat.c has its
6419 own child_post_startup_inferior function.
6420
c0d1d883
MK
64212002-07-04 Mark Kettenis <kettenis@gnu.org>
6422
00f8375e
MK
6423 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6424 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6425 instead of MAX_REGISTER_RAW_SIZE.
6426 (i386_extract_return_value, i386_extract_struct_value_address):
6427 Convert to use regcache.
6428 (i386_gdbarch_init): Set max_register_raw_size and
6429 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6430 Set extract_return_value and extract_struct_value_address instead
6431 of their deprecated variants.
6432
c0d1d883
MK
6433 Convert i386 target to generic dummy frames.
6434 * i386-tdep.c: Include "symfile.h".
6435 (i386_frameless_signal_p): Consider a function to be frameless if
6436 the pc points at the first instruction of the function.
6437 (i386_frame_chain): Handle (generic) call dummies.
6438 (i386_frame_saved_pc): Likewise.
6439 (i386_frame_init_saved_regs): Remove code dealing with call
6440 dummies on the stack.
6441 (i386_push_dummy_frame): Removed.
6442 (i386_call_dummy_words): Removed.
6443 (i386_fix_call_dummy): Removed.
6444 (i386_push_return_address): New function.
6445 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6446 parameter, and don't call get_current_frame.
6447 (i386_pop_frame): New function.
6448 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6449 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6450 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6451 call_dummy_length to 0, set call_dummy_words to NULL, set
6452 sizeof_call_dummy_words to 0, set fix_call_dummy to
6453 generic_fix_call_dummy, set pc_in_call_dummy to
6454 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6455 generic_push_dummy_frame, set push_return_address to
6456 i386_push_return_address and set frame_chain_valid to
6457 generic_file_frame_chain_valid.
6458
049ee0e4
AC
64592002-07-03 Andrew Cagney <ac131313@redhat.com>
6460
6461 * gdbarch.sh (struct regcache): Add opaque declaration.
6462 (EXTRACT_RETURN_VALUE): New architecture method.
6463 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6464 * gdbarch.h, gdbarch.c: Regenerate.
6465 * arch-utils.c (legacy_extract_return_value): New function.
6466 * arch-utils.h (legacy_extract_return_value): Declare.
6467 * values.c (value_being_returned): Re-enable code handling
6468 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6469 deprecated_grub_regcache_for_registers call to block handling
6470 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6471 (EXTRACT_RETURN_VALUE): Do not define.
6472
4e0d9804
GS
64732002-07-03 Grace Sainsbury <graces@redhat.com>
6474
6475 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6476 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6477 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6478 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6479 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6480 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6481 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6482 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6483 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6484 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6485 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6486 argument so the function fits the prototype in the architecture
6487 vector.
6488 (mcore_pop_frame): Remove argument so the function fits the
6489 prototype. Use get_current_frame instead of the argument.
6490 (mcore_push_arguments): Change type of struct_return so the
6491 function can be used in the architecture vector.
6492 (mcore_store_struct_return): Add.
6493 (mcore_frame_init_saved_regs): Add.
6494 (mcore_gdbarch_init): Add function calls to replace the macros
6495 removed from tm-mcore.h
6496
36160dc4
AC
64972002-07-03 Andrew Cagney <ac131313@redhat.com>
6498
6499 * infcmd.c (print_return_value): Remove compatibility code calling
6500 deprecated_grub_regcache_for_registers.
6501
6502 * values.c: Include "regcache.h".
6503 (value_being_returned): Update. Use
6504 deprecated_grub_regcache_for_registers to extract the register
6505 buffer address.
6506 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6507 ``struct regcache''.
6508 * Makefile.in (values.o): Add dependency on $(regcache_h).
6509
6510 * inferior.h (run_stack_dummy): Change type of second parameter to
6511 a ``struct regcache''.
6512 * valops.c (hand_function_call): Change type of retbuf to ``struct
6513 regcache''. Allocate using regcache_xmalloc, clean using
6514 make_cleanup_regcache_xfree.
6515 * infcmd.c (run_stack_dummy): Update. Use
6516 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6517
6518 * regcache.c (do_regcache_xfree): New function.
6519 (make_cleanup_regcache_xfree): New function.
6520 * regcache.h (make_cleanup_regcache_xfree): Declare.
6521
e64d9b3d
MH
65222002-07-03 Martin M. Hunt <hunt@redhat.com>
6523
4dd79c29
MH
6524 * event-top.c (command_line_handler): Don't read past
6525 beginning of buffer.
e64d9b3d 6526
4dd79c29
MH
65272002-07-03 Martin M. Hunt <hunt@redhat.com>
6528
e64d9b3d
MH
6529 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6530 struct frame_id.
6531 (varobj_create): Store frame_id for root.
6532 (varobj_gen_name): Use xasprintf.
6533 (varobj_update): Save and restore frame using get_frame_id() and
6534 frame_find_by_id().
6535 (create_child): Use xasprintf.
6536 (new_root_variable): Initialize frame_id.
6537 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6538 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6539 to prevent memory leak.
6540
26e6c56a
AC
65412002-07-03 Andrew Cagney <ac131313@redhat.com>
6542
6543 * valops.c (hand_function_call): Move declaration of retbuf to
6544 start of function, allocate using malloc, add a cleanup but before
6545 the inf_status cleanup, cleanup the buffer. Rename local variable
6546 old_chain to inf_status_cleanup.
6547
f436dd25
MH
65482002-07-03 Martin M. Hunt <hunt@redhat.com>
6549
6550 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6551
6552 * cli/cli-decode.c (cmd_func_p): New function.
6553 (cmd_func): New function.
6554
6555 * command.h: Add cmd_func() and cmd_func_p().
6556
4cfe2084
GS
65572002-07-03 Grace Sainsbury <graces@redhat.com>
6558
6559 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6560 (REGISTER_SIZE): Remove.
6561 (MAX_REGISTER_RAW_SIZE): Remove.
6562 (REGISTER_VIRTUAL_TYPE): Remove.
6563 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6564 (REGISTER_NAME): Remove.
6565 (USE_GENERIC_DUMMY_FRAMES): Remove.
6566 (CALL_DUMMY): Remove.
6567 (CALL_DUMMY_START_OFFSET): Remove.
6568 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6569 (CALL_DUMMY_LOCATION): Remove.
6570 (FIX_CALL_DUMMY): Remove.
6571 (CALL_DUMMY_ADDRESS): Remove.
6572 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6573 (SAVE_DUMMY_FRAME_TOS): Remove.
6574 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6575 (mcore_register_virtual_type): New function.
6576 (mcore_register_byte): New function.
6577 (mcore_register_size): New function.
6578 (mcore_register_name): New function.
6579 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6580 macros removed from tm-mcore.h.
6581 (mcore_dump_tdep): Add.
6582 (_initialize_mcore_tdep): Add gdbarch_register call.
6583
4fd667e9
MK
65842002-07-03 Mark Kettenis <kettenis@gnu.org>
6585
6586 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6587 frameless_look_for_prologue, such that we actually call this
6588 function.
6589
42f99ac2
JB
65902002-07-02 Joel Brobecker <brobecker@gnat.com>
6591
6592 * frame.h (frame_address_in_block): New function.
6593
6594 * blockframe.c (frame_address_in_block): New function extracted
6595 from get_frame_block().
6596 (get_frame_block): Use frame_address_in_block().
6597 (block_innermost_frame): Use frame_address_in_block() to match
6598 the frame pc address against the block boundaries rather than
6599 the frame pc directly. This prevents a failure when a frame pc
6600 is actually a return-address pointing immediately after the end
6601 of the given block.
6602
103a1597 66032002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6604
6605 * MAINTAINERS: Add self under write after approval.
6606
66072002-07-02 Grace Sainsbury <graces@redhat.com>
6608
103a1597
GS
6609 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6610 used in architecture vector. The default is
6611 m68k_local_breakpoint_from_pc.
6612 (m68k_local_breakpoint_from_pc): Add.
6613 (enum): Add register numbers from tm-m68k.h.
6614 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6615 vector.
6616 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6617 GDB_MULTI_ARCH_PARTIAL.
6618 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6619 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6620 m68k-tdep.c.
6621 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6622 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6623 to enum in m68k-tdep.c
6624
7a5a0534
JB
66252002-07-02 Joel Brobecker <brobecker@gnat.com>
6626
6627 * solib-osf.c (open_map): Compute the list of shared libraries
6628 loaded by the inferior, rather than the list of libraries loaded
6629 by GDB itself. Otherwise, GDB ends up reading the symbols from
6630 the wrong shared libraries...
6631
6f558d74
MK
66322002-07-02 Mark Kettenis <kettenis@gnu.org>
6633
b7d15bf7
MK
6634 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6635 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6636 macros.
6637 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6638 Remove functions.
6639 (FRAMELESS_SIGNAL): Remove function.
6640 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6641 i386_linux_saved_pc_after_call): Removed.
6642 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6643 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6644 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6645
6bff26de
MK
6646 * i386-tdep.c (i386_frameless_signal_p): New function.
6647 (i386_frame_chain): Deal with frameless signals.
6648 (i386_sigtramp_saved_sp): New function.
6649 (i386_frame_saved_pc): Deal with frameless signals.
6650 (i386_saved_pc_after_call): Make sure the correct value is
6651 returned just after entry into a sigtramp.
6652 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6653 i386fbsd4_sc_sp_offset): New variables.
6654 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6655 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6656 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6657 similiar to what we already did for sc_pc_offset.
6658 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6659 tdep->sc_sp_offset.
6660
6f558d74
MK
6661 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6662
145564b7
ML
66632002-07-02 Michal Ludvig <mludvig@suse.cz>
6664
6665 * config/i386/tm-x86-64linux.h: New.
6666 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6667 definitions.
6668 * config/i386/nm-x86-64.h: Rename to ...
6669 * config/i386/nm-x86-64linux.h: ... this one.
6670 * config/i386/x86-64linux.mh: Reflect the above change.
6671
3a1e71e3
MK
66722002-07-01 Mark Kettenis <kettenis@gnu.org>
6673
21d0e8a4
MK
6674 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6675 with sigcontext_addr. Add sc_sp_offset.
6676 (i386bsd_sigtramp_saved_pc): Remove prototype.
6677 (i386bsd_sicontext_addr): Add prototype.
6678 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6679 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6680 (i386_svr4_sigtramp_saved_pc): Removed.
6681 (i386_svr4_sigcontext_addr): New function.
6682 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6683 Initialize tdep->sigcontext_addr instead. Initialize
6684 tdep->sc_pc_offset and tdep->sc_sp_offset.
6685 (i386_gdbarch_init): Likewise.
6686 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6687 any more.
6688 (i386bsd_sigtramp_saved_pc): Remove function.
6689 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6690 Initialize tdep->sigcontext_addr instead. Initialize
6691 tdep->sc_pc_offset.
6692 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6693 of tdep->sigtramp_saved_pc.
6694 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6695 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6696 instead.
6697
3a1e71e3
MK
6698 * i386-tdep.c (i386_frameless_function_invocation,
6699 i386_frame_num_args, i386_frame_init_saved_regs,
6700 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6701 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6702 i386_extract_return_value, i386_store_return_value,
6703 i386_extract_struct_value_address, i386_register_virtual_type,
6704 i386_register_convertible, i386_register_convert_to_virtual,
6705 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6706 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6707 static.
6708
52e9098c
MK
67092002-07-01 Mark Kettenis <kettenis@gnu.org>
6710
77b13a25
MK
6711 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6712
52e9098c
MK
6713 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6714 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6715 this macro. Include "value.h".
6716
1b372fff
AS
67172002-06-30 Aidan Skinner <aidan@velvet.net>
6718
6719 * ada-exp.tab.c: remove as it's a generated file
6720 * ada-lex.c: remove as it's a generated file
6721
9c5045b5
MK
67222002-06-30 Mark Kettenis <kettenis@gnu.org>
6723
4a93c5bb
MK
6724 * config/i386/tm-i386.h (struct frame_info, struct
6725 frame_saved_regs, struct value, struct type): Remove forward
6726 declarations.
6727
322d4fe0
MK
6728 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6729 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6730 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6731 (FILL_FPXREGSET): Define.
6732
fdd8263d
MK
6733 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6734
482e577b
MK
6735 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6736 i[3456]86-*-netbsd* case.
6737 * config/i386/tm-obsd.h: Removed.
6738 * config/i386/obsd.mt: Removed.
6739 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6740 core-aout.o.
6741 (MH_CFLAGS): Add -DYYDEBUG=0.
6742
6916549a
MK
6743 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6744 i386nbsd_sc_pc_offset on OpenBSD too.
6745
9c5045b5
MK
6746 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6747 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6748 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6749 define.
6750 * i386bsd-tdep.c: Include "arch-utils.h".
6751 (i386bsd_aout_in_solib_call_trampoline): New function.
6752 (i386bsd_init_abi): Set in_solib_call_trampoline to
6753 i386bsd_aout_in_solib_call_trampoline.
6754 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6755 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6756
aa84d1bb
AC
67572002-06-28 Andrew Cagney <ac131313@redhat.com>
6758
6759 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6760 (struct obstack, struct bcache): Add opaque declarations.
6761 * Makefile.in (macrotab_h): Update
6762
b4d83933
AC
67632002-06-28 Andrew Cagney <ac131313@redhat.com>
6764
6765 * blockframe.c (generic_find_dummy_frame): Change return type to
6766 ``struct regcache''.
6767 (struct dummy_frame): Replace field ``registers'' with regcache, a
6768 struct regcache object.
6769 (generic_find_dummy_frame): Update.
6770 (generic_push_dummy_frame): Update. Use regcache_xfree,
6771 regcache_xmalloc and regcache_cpy.
6772 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6773 regcache_xfree.
6774 (deprecated_generic_find_dummy_frame): Update.
6775 (generic_read_register_dummy): Update. Use
6776 regcache_read_as_address.
6777 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6778 (generic_get_saved_register): Update. Use regcache_read.
6779
08c0b5bc
AC
67802002-06-28 Andrew Cagney <ac131313@redhat.com>
6781
6782 * Makefile.in (objfiles_h): Add $(bcache_h).
6783 * objfiles.h: Include "bcache.h".
6784
6785 * Makefile.in (symtab_h): Remove $(bcache_h).
6786 * symtab.h: Do not include "bcache.h".
6787
1f89801a
AC
67882002-06-28 Andrew Cagney <ac131313@redhat.com>
6789
6790 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6791 generic_func_frame_chain_valid.
6792
b9644b58
DB
67932002-06-28 David O'Brien <obrien@FreeBSD.org>
6794
6795 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6796 * config/i386/tm-fbsd.h: Likewise.
6797
dd486634
AC
67982002-06-28 Andrew Cagney <ac131313@redhat.com>
6799
6800 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6801 generic_unwind_get_saved_register.
6802
0b434a00
AC
68032002-06-27 Andrew Cagney <ac131313@redhat.com>
6804
6805 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6806 * regcache.c (supply_register): Add missing argument to
6807 register_buffer call.
6808
f30e5a77
AC
68092002-06-27 Andrew Cagney <ac131313@redhat.com>
6810
6811 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6812 Solaris /bin/grep does not not like it. From Peter Schauer.
6813
9f064c95
TT
68142002-06-26 Tom Tromey <tromey@redhat.com>
6815
6816 * command.h (add_setshow_cmd): Declare.
6817 (add_setshow_cmd_full): Declare.
6818 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6819 returns void. Use add_setshow_cmd_full.
6820 (add_setshow_cmd_full): New function.
6821 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6822 (add_setshow_boolean_cmd): Likewise.
6823
099c7589
JT
68242002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6825
6826 * config/vax/tm-vax.h: Protect from multiple inclusion.
6827 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6828 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6829 * config/vax/tm-vaxbsd.h: ...here. New file.
6830 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6831
1d049c5e
JT
68322002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6833
6834 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6835 (BELIEVE_PCC_PROMOTION): Remove.
6836 (AP_REGNUM): Move to...
6837 * config/vax/nm-vax.h: ...here.
6838 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6839 (vax_breakpoint_from_pc): New function.
6840 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6841 and gdbarch_believe_pcc_promotion.
6842
4791e091
JT
68432002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6844
6845 * Makefile.in (vax_tdep_h): Define.
6846 (vax-tdep.o): Use $(vax_tdep_h).
6847 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6848 (vax_dump_tdep): New function.
6849 (_initialize_vax_tdep): Register vax_dump_tdep.
6850 * vax-tdep.h: Include osabi.h.
6851 (struct gdbarch_tdep): New.
6852
da130f98
AC
68532002-06-26 Andrew Cagney <cagney@redhat.com>
6854
6855 * frame.h (deprecated_generic_find_dummy_frame): Rename
6856 generic_find_dummy_frame.
6857 * blockframe.c (generic_find_dummy_frame): Make static.
6858 (deprecated_generic_find_dummy_frame): New function.
6859 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6860 generic_find_dummy_frame with deprecated_find_dummy_frame.
6861 (sh64_nofp_frame_init_saved_regs): Ditto.
6862 (sh_fp_frame_init_saved_regs): Ditto.
6863 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6864 (s390_frame_chain): Ditto.
6865 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6866
6300c360
GS
68672002-06-26 Grace Sainsbury <graces@redhat.com>
6868
6869 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6870 gdbarch vector are at the top.
6871 (NUM_REGS): Remove.
6872 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6873 (FRAME_ARGS_ADDRESS): Remove.
6874 (FRAME_LOCALS_ADDRESS): Remove.
6875 (FRAME_NUM_ARGS): Remove.
6876 (FRAME_ARGS_SKIP): Remove.
6877 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6878 (m68k_gdbarch_init): Add gdbarch initializations for macros
6879 undefined in tm-m68k.h
6880
1c617db8
GS
68812002-06-26 Grace Sainsbury <graces@redhat.com>
6882
6883 * monitor.h: Add the function regname to monitor_ops
6884 structure. This way NUM_REGS does not have to be a constant.
6885 * monitor.c (monitor_fetch_register): Added support for regname
6886 function. The function is called if the array regnames is NULL.
6887 (monitor_store_register): Same.
da130f98
AC
6888 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6889 regnames array.
1c617db8
GS
6890 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6891 cpu32bug_cmds.regname to point to new function.
6892 * abug-rom.c (abug_regname): Same as above.
6893 (init_abug_cmds): Same.
6894 * dbug-rom.c (dbug_regname): Same as above.
6895 (init_dbug_cmds): Same.
6896 * remote-est.c (est_regname): Same.
6897 (init_est_cmds): Same.
6898 * rom68k-rom.c (rom68k_regname): Same.
6899 (init_rom68k_cmds): Same.
6900
ea9365bb
TT
69012002-06-25 Tom Tromey <tromey@redhat.com>
6902
6903 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6904
72cec141
AC
69052002-06-25 Andrew Cagney <cagney@redhat.com>
6906
6907 * infrun.c (stop_registers): Change variable's type to ``struct
6908 regcache'''.
6909 (xmalloc_inferior_status): Delete function.
6910 (free_inferior_status): Delete function.
6911 (normal_stop): Use regcache_cpy.
6912 (struct inferior_status): Change type of fields ``stop_registers''
6913 and ``registers'' to ``struct regcache''.
6914 (write_inferior_status_register): Use regcache_write.
6915 (save_inferior_status): Instead of calling
6916 xmalloc_inferior_status, allocate the inf_status buffer directly.
6917 Use regcache_dup_no_passthrough and regcache_dup to save the
6918 buffers.
6919 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6920 Replace the stop_registers regcache instead of overriding it. Use
6921 regcache_xfree. Instead of calling free_inferior_status, xfree
6922 the buffer directly.
6923 (discard_inferior_status): Use regcache_xfree. Instead of calling
6924 free_inferior_status, xfree the buffer directly.
6925 (build_infrun): Use regcache_xmalloc.
6926 (_initialize_infrun): Delete redundant call to build_infrun.
6927
6928 * Makefile.in (infcmd.o): Add $(regcache_h).
6929
6930 * infcmd.c: Include "regcache.h".
6931 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6932 obtain the address of `stop_registers' register buffer.
6933 (print_return_value): Ditto.
6934
6935 * inferior.h (struct regcache): Add opaque declaration.
6936 (stop_registers): Change variable's declared type to ``struct
6937 regcache''.
6938
defc6f8c
TT
69392002-06-24 Tom Tromey <tromey@redhat.com>
6940
c0e624e7
TT
6941 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6942 * target.c (initialize_targets): Fixed typo in
6943 trust-readonly-sections `show' documentation.
6944
defc6f8c
TT
6945 * main.c: Marked all strings with _().
6946
2b236d82
DH
69472002-06-24 Don Howard <dhoward@redhat.com>
6948
6949 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6950 that means max CORE_ADDR+1.
6951 (lookup_mem_region): Ditto.
6952 (mem_info_command): Ditto.
6953
942dc0e9
GS
69542002-06-24 Grace Sainsbury <graces@redhat.com>
6955
6956 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6957 (REGISTER_BYTES_OK): Remove.
6958 (REGISTER_BYTES): Remove.
6959 (STORE_STRUCT_RETURN): Remove.
6960 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6961 (STORE_RETURN_VALUE): Remove.
6962 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6963 (FRAME_CHAIN): Remove.
6964 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6965 (FRAME_SAVED_PC): Remove.
6966 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6967 (m68k_store_struct_return): Add.
6968 (m68k_deprecated_extract_return_value): Add.
6969 (m68k_deprecated_extract_struct_value_address): Add.
6970 (m68k_store_return_value): Add.
6971 (m68k_frame_chain): Add.
6972 (m68k_frameless_function_invocation): Add.
6973 (m68k_frame_saved_pc): Add.
6974 (m68k_gdbarch_init): added set_gdbarch calls for new
6975 functions and deleted macros.
6976
03c30d4d
TT
69772002-06-23 Tom Tromey <tromey@redhat.com>
6978
6979 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6980 (ALLDEPFILES): Likewise.
6981 (udiheaders): Removed.
6982 (udip2soc.o): Likewise.
6983 (udi2go32.o): Likewise.
6984 (udr.o): Likewise.
6985 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6986
37e71372
AC
69872002-06-22 Andrew Cagney <ac131313@redhat.com>
6988
06a6ac57
AC
6989 * infrun.c (_initialize_infrun): Delete unnecessary call to
6990 build_infrun.
6991
37e71372
AC
6992 * regcache.h: Update comments describing the regcache_cpy family
6993 of functions.
6994 (regcache_save, regcache_restore): Delete declaration.
6995 (regcache_save_no_passthrough): Delete declaration.
6996 (regcache_restore_no_passthrough): Delete declaration.
6997 * regcache.c (regcache_save): Delete function.
6998 (regcache_save_no_passthrough): Delete function.
6999 (regcache_restore): Delete function.
7000 (regcache_restore_no_passthrough): Delete function.
7001
78f6d055
AC
70022002-06-21 Andrew Cagney <ac131313@redhat.com>
7003
7004 * config/m68k/tm-m68k.h: Fix typo.
7005 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7006 (m68k_frame_init_saved_regs): Declare.
7007
78b119cb
JB
70082002-06-21 Jim Blandy <jimb@redhat.com>
7009
7010 Remove some vestiges of Harris 88k support.
7011 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7012 register numbering quirk.
7013 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7014 odd symbols occurring in Harris 88k ELF targets.
7015
0fbb3da7
TT
70162002-06-21 Tom Tromey <tromey@redhat.com>
7017
7018 * gdb_locale.h: New file.
7019 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7020 (defs_h): Added gdb_locale.h.
7021 * configure, config.in: Rebuilt.
7022 * configure.in (PACKAGE): Define.
7023 * defs.h: Include gdb_locale.h.
7024 * main.c (captured_main): Call setlocale, bindtextdomain,
7025 textdomain.
7026
456f8b9d
DB
70272002-06-21 Dave Brolley <brolley@redhat.com>
7028
7029 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7030 * config/frv/frv.mt: New file.
7031 * config/frv/tm-frv.h: New file.
7032 * configure.tgt: Support frv-*-*.
7033 * Makefile.in (frv-tdep.o): New target.
7034 * frv-tdep.c: New file.
7035 * NEWS: Mention frv.
7036
cdd463f9
DB
70372002-06-21 Dave Brolley <brolley@redhat.com>
7038
7039 * MAINTAINERS: Add self to "Write After Approval" list.
7040
5d3ed2e3
GS
70412002-06-21 Grace Sainsbury <graces@redhat.com>
7042
7043 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7044 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7045 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7046 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7047 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7048
7049 * m68k-tdep.c: Include arch-utils.h
7050 (m68k_register_raw_size): Add.
7051 (m68k_register_virtual_size): Add.
7052 (m68k_register_virtual_type): Add.
7053 (m68k_register_name): Add.
7054 (m68k_stack_align): Add.
7055 (m68k_register_byte): Add.
7056 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7057 tm-m68k.h.
7058
7f8e7424
GS
70592002-06-21 Grace Sainsbury <graces@redhat.com>
7060
a2c6a6d5 7061 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
7062 m68k_find_saved_regs.
7063 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 7064 references to it with frame->saved_regs.
7f8e7424
GS
7065 (m68k_gdbarch_init): Added function calls to initialize the
7066 gdbarch structure.
a2c6a6d5
GS
7067 (m68k_fix_call_dummy): Add.
7068 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7069 (CALL_DUMMY): Remove.
7070 (CALL_DUMMY_LENGTH): Remove.
7071 (CALL_DUMMY_START_OFFSET): Remove.
7072 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7073 (FIX_CALL_DUMMY): Remove.
7074 (PUSH_DUMMY_FRAME): Remove.
7075 (POP_FRAME): Remove.
7f8e7424 7076
f461f5cf
PM
70772002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7078
7079 * parse.c (parse_fprintf): New function used to avoid calls to
7080 fprintf in bison parser generated debug code.
7081 * parser-defs.h: Declaration of new parse_fprintf function.
7082 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7083 Set YYDEBUG to 1 by default.
7084 Set YYFPRINTF as parse_fprintf.
7085
7f0c12ed
ML
70862002-06-21 Michal Ludvig <mludvig@suse.cz>
7087
7088 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7089 encoding anymore.
7090 (pointer_encoding, enum ptr_encoding): New.
7091 (execute_cfa_program): Take care about pointer encoding.
7092 (dwarf2_build_frame_info): Only call parse_frame_info for
7093 .debug_frame and .eh_frame.
7094 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7095 fixed augmentation handling, added relative addressing,
7096 ignore duplicate FDEs. Added comments.
19d833a2 7097 * dwarf2cfi.c: Reindented.
7f0c12ed 7098
87c4a039
EZ
70992002-06-20 Elena Zannoni <ezannoni@redhat.com>
7100
7101 * event-top.c (command_handler): Don't use space_at_cmd_start
7102 unless there is sbrk() on the host. Assign time and space data
7103 to union fields of the appropriate length.
7104
1cf877ad
ML
71052002-06-20 Michal Ludvig <mludvig@suse.cz>
7106
7107 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7108 x86_64_register_name. Return type changed to 'const char *'.
7109 (x86_64_register_name2nr): Rename to x86_64_register_number.
7110 (x86_64_gdbarch_init): Update to reflect the change.
7111 * x86-64-tdep.h: Ditto.
7112 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7113 (supply_fpregset): Ditto.
7114
3fadccb3
AC
71152002-06-19 Andrew Cagney <cagney@redhat.com>
7116
7117 * regcache.h: Update copyright.
7118 (struct regcache, struct gdbarch): Add opaque declarations.
7119 (current_regcache): Declare global variable.
7120 (regcache_read, regcache_write): Add gdbarch parameter.
7121 (regcache_save, regcache_save_no_passthrough)
7122 (regcache_restore, regcache_restore_no_passthrough)
7123 (regcache_dup, regcache_dup_no_passthrough)
7124 (regcache_cpy, regcache_cpy_no_passthrough)
7125 (deprecated_grub_regcache_for_registers)
7126 (deprecated_grub_regcache_for_register_valid)
7127 (regcache_valid_p): Add function declarations.
7128
7129 * regcache.c: Update copyright.
7130 (regcache_descr_handle): New global variable.
7131 (struct regcache_descr): Define.
7132 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7133 (regcache_descr, xfree_regcache_descr): New functions.
7134 (struct regcache): Define.
7135 (regcache_xmalloc, regcache_xfree): New functions.
7136 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7137 (regcache_dup, regcache_dup_no_passthrough): New functions.
7138 (regcache_valid_p, regcache_read_as_address): New functions.
7139 (deprecated_grub_regcache_for_registers): New function.
7140 (deprecated_grub_regcache_for_register_valid): New function.
7141 (current_regcache): New global variable.
7142 (register_buffer): Add regcache parameter. Update calls.
7143 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7144 (read_register_gen, write_register_gen): Update register_buffer
7145 call. Test for legacy_p instead of gdbarch_register_read_p or
7146 gdbarch_register_write_p.
7147 (regcache_collect): Update register_buffer call.
7148 (build_regcache): Rewrite. Use deprecated grub functions.
7149 (regcache_save, regcache_save_no_passthrough): New functions.
7150 (regcache_restore, regcache_restore_no_passthrough): New
7151 functions.
7152 (_initialize_regcache): Create the regcache_data_handle. Swap
7153 current_regcache global variable.
7154
7155 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7156 parameter to regcache_read and regcache_write calls.
7157 (sh4_register_read): Ditto.
7158 (sh64_pseudo_register_read): Ditto.
7159 (sh64_register_read): Ditto.
7160 (sh_pseudo_register_write): Ditto.
7161 (sh4_register_write): Ditto.
7162 (sh64_pseudo_register_write): Ditto.
7163 (sh64_register_write): Ditto.
7164
7165 * defs.h (XCALLOC): Define.
7166
152d9db6
GS
71672002-06-19 Grace Sainsbury <graces@redhat.com>
7168
7169 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7170 * m68k-tdep.c (m68k_gdbarch_init): Added.
7171 (m68k_dump_tdep): Added.
7172
170911c7
DJ
71732002-06-19 Daniel Jacobowitz <drow@mvista.com>
7174
7175 * ada-lang.c (fill_in_ada_prototype): Update comment.
7176
2e4ebe70
DJ
71772002-06-19 Daniel Jacobowitz <drow@mvista.com>
7178
7179 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7180 MIPS_ABI_LAST.
7181 (mips_abi_string, mips_abi_strings): New.
7182 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7183 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7184 tdep->mips_abi_string. Honor mips_abi_string. Default to
7185 O32 if no ABI is found.
7186 (mips_dump_tdep): Use mips_abi_strings.
7187 (mips_abi_update): New function.
7188 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7189 ``set mips abi'' and ``show mips abi''. Check the size of
7190 mips_abi_strings.
7191
16775908
AC
71922002-06-19 Andrew Cagney <cagney@redhat.com>
7193
7194 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7195 constant.
7196
5051bfa4 71972002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 7198
5051bfa4
JB
7199 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7200 current frame using only the first stack size adjustment. All
7201 subsequent size adjustments are not considered to be part of
7202 the "static" part of the current frame.
7203 Compute the address of the saved registers relative to the
7204 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7205 in use in this frame.
7206
56468235
DH
72072002-06-18 Don Howard <dhoward@redhat.com>
7208
7209 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7210 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7211 suggesting this solution.
7212
0b624158
AC
72132002-06-18 Andrew Cagney <ac131313@redhat.com>
7214
7215 * config/romp/xm-rtbsd.h: Delete file.
7216 * config/romp/rtbsd.mh: Delete file.
7217
221ea385
KS
72182002-06-18 Keith Seitz <keiths@redhat.com>
7219
7220 * breakpoint.c (condition_command): Post breakpoint_modify
7221 when a condition is added to an existing breakpoint.
7222 (commands_command): Likewise for commands.
7223 (set_ignore_count): Likewise for ignore counts.
7224 If no tty, do not simply return, still need to send event
7225 notification.
7226 (ignore_command): Only print a newline if the command came
7227 from a tty.
7228 Don't call breakpoints_changed, since this is now properly
7229 handled by set_ignore_count.
7230
5402eed1
AC
72312002-06-18 Andrew Cagney <cagney@redhat.com>
7232
7233 * MAINTAINERS: Note that cris-elf target can be compiled with
7234 -Werror.
7235 * cris-tdep.c (cris_register_name): Make return type constant.
7236 (cris_breakpoint_from_pc): Ditto.
7237
cc22880b
ML
72382002-06-18 Michal Ludvig <mludvig@suse.cz>
7239
7240 * frame.h (struct frame_info): Change type of context to
7241 'struct context'.
7242
fa88f677
AC
72432002-06-17 Andrew Cagney <cagney@redhat.com>
7244
7245 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7246 pointer.
7247 * gdbarch.h, gdbarch.c: Regenerate.
7248 * config/mips/tm-mips.h (mips_register_name): Update.
7249 * i386-tdep.h (i386_register_name): Update.
7250 * mips-tdep.c (mips_register_name): Update
7251 * alpha-tdep.c (alpha_register_name): Update.
7252 * arch-utils.c (legacy_register_name): Update.
7253 * arch-utils.h (legacy_register_name): Update.
7254 * avr-tdep.c (avr_register_name): Update.
7255 * ia64-tdep.c (ia64_register_name): Update.
7256 * i386-tdep.c (i386_register_name): Update.
7257 * sparc-tdep.c (sparc32_register_name): Update.
7258 (sparc64_register_name): Update.
7259 (sparclite_register_name): Update.
7260 (sparclet_register_name): Update.
7261 * sh-tdep.c (sh_generic_register_name): Update.
7262 (sh_sh_register_name): Update.
7263 (sh_sh3_register_name): Update.
7264 (sh_sh3e_register_name): Update.
7265 (sh_sh_dsp_register_name): Update.
7266 (sh_sh3_dsp_register_name): Update.
7267 (sh_sh4_register_name): Update.
7268 (sh_sh64_register_name): Update.
7269 * s390-tdep.c (s390_register_name): Update.
7270 * rs6000-tdep.c (rs6000_register_name): Update.
7271 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7272 (ns32k_register_name_32382): Update.
7273 * d10v-tdep.c (d10v_ts2_register_name): Update.
7274 (d10v_ts3_register_name): Update.
7275 * xstormy16-tdep.c (xstormy16_register_name): Update.
7276 * vax-tdep.c (vax_register_name): Update.
7277 * v850-tdep.c (v850_register_name): Update.
7278 * m68hc11-tdep.c (m68hc11_register_name): Update.
7279 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7280 (am33_register_name): Update.
7281
ea1e7ef6
GS
72822002-06-17 Grace Sainsbury <graces@redhat.com>
7283
7284 * m68k-tdep.c: Reindented.
7285
9b02dd1b
AC
72862002-06-17 Andrew Cagney <ac131313@redhat.com>
7287
7288 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7289 list of predefined types.
7290
8758dec1
MK
72912002-06-16 Mark Kettenis <kettenis@gnu.org>
7292
b6197528
MK
7293 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7294 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7295 REGISTER_CONVERT_TO_RAW): Remove defines.
7296 (i386_register_virtual_type, i386_register_convertible,
7297 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7298 Remove prototypes.
7299 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7300 macros mentioned above.
7301
82b47e62
MK
7302 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7303 (i386lynx_saved_pc_after_call): Remove prototype.
7304 * i386ly-tdep.c: Include "i386-tdep.h".
7305 (i386lynx_saved_pc_after_call): Make static. Use
7306 read_memory_nobpt instead of read_memory. Use
7307 read_memory_unsigned_integer instead of read_memory_integer.
7308 (i386lynx_init_abi): New function.
7309 (i386lynx_coff_osabi_sniffer): New function.
7310 (_initialize_i386bsd_tdep): New function.
7311
8758dec1
MK
7312 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7313 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7314 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7315 (i386_fix_call_dummy): Remove prototype.
7316 * i386-tdep.c (i386_call_dummy_words): New variable.
7317 (i386_gdbarch_init): Adjust for removal of the
7318 macros mentioned above.
7319
e9e68a56
AC
73202002-06-15 Andrew Cagney <ac131313@redhat.com>
7321
7322 * command.h (add_setshow_auto_boolean_cmd): Replace
7323 add_set_auto_boolean_cmd.
7324 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7325 add_set_auto_boolean_cmd.
7326 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7327 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7328 mask-address'' command.
7329 (show_mask_address): Add cmd parameter.
7330 * remote.c (add_packet_config_cmd): Update. Change type of
7331 set_func and show_func to cmd_sfunc_ftype.
7332 (_initialize_remote): Update `set remote Z-packet'
7333 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7334 (show_remote_protocol_e_packet_cmd): Ditto.
7335 (show_remote_protocol_E_packet_cmd): Ditto.
7336 (show_remote_protocol_P_packet_cmd): Ditto.
7337 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7338 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7339 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7340 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7341 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7342 (show_remote_protocol_Z_packet_cmd): Ditto.
7343 (show_remote_protocol_binary_download_cmd): Ditto.
7344 (show_remote_cmd): Pass NULL to all of above.
7345
fc08ec52
MK
73462002-06-15 Mark Kettenis <kettenis@gnu.org>
7347
7348 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7349 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7350 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7351 POP_FRAME): Remove defines.
7352 (i386_push_arguments, i386_store_struct_return,
7353 i386_extract_return_value, i386_store_return_value,
7354 i386_extract_struct_value_address, i386_push_dummy_frame,
7355 i386_pop_frame): Renove prototypes.
7356 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7357 macros mentioned above.
7358
e707bbc2
AC
73592002-06-15 Andrew Cagney <ac131313@redhat.com>
7360
7361 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7362 add_set_boolean_cmd.
7363 (add_setshow_cmd): New function.
7364 * command.h (add_setshow_boolean_cmd): Replace
7365 add_set_boolean_cmd.
7366 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7367 and ``set rdiromatzero''.
7368 * maint.c (_initialize_maint_cmds): Update commented out code.
7369 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7370 * target.c (initialize_targets): Update `set
7371 trust-readonly-sections'.
7372 * remote.c (_initialize_remote): Update `set remotebreak'.
7373
42fdc8df
MK
73742002-06-15 Mark Kettenis <kettenis@gnu.org>
7375
93924b6b
MK
7376 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7377 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7378 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7379 fit into multi-arch framework.
7380 (i386_breakpoint_from_pc): New function.
7381 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7382 above.
7383
42fdc8df
MK
7384 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7385 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7386 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7387 (i386_frameless_function_invocation, i386_frame_num_args,
7388 i386_frame_init_saved_regs): Remove prototypes.
7389 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7390 macros mentioned above.
7391
9773a94b
AC
73922002-06-15 Andrew Cagney <ac131313@redhat.com>
7393
7394 * cli/cli-decode.c (set_cmd_cfunc): Update.
7395 (set_cmd_sfunc): Update.
7396 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7397 (set_cmd_sfunc, set_cmd_cfunc): Update.
7398 * cli/cli-decode.h: Update.
7399
6e157172
MK
74002002-06-15 Mark Kettenis <kettenis@gnu.org>
7401
7402 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7403 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7404
7f19b9a2
AC
74052002-06-15 Andrew Cagney <ac131313@redhat.com>
7406
7407 * defs.h (auto_boolean): Declare enum.
7408 * command.h (cmd_auto_boolean): Delete enum.
7409 * mips-tdep.c (mask_address_var): Update.
7410 (mips_mask_address_p): Update.
7411 (show_mask_address): Update.
7412 * remote.c (struct packet_config): Update.
7413 (update_packet_config): Update.
7414 (show_packet_config_cmd): Update.
7415 (packet_ok): Update.
7416 (add_packet_config_cmd): Update.
7417 (_initialize_remote):
7418 * command.h: Update.
7419 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7420 (do_setshow_command): Update.
7421 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7422 * cli/cli-decode.h: Update.
7423
1cf88de5
MK
74242002-06-15 Mark Kettenis <kettenis@gnu.org>
7425
22ba8cf2
MK
7426 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7427 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7428 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7429 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7430 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7431 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7432
762c5349
MK
7433 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7434 list of DJGPP COFF targets.
7435
091198bb
MK
7436 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7437 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7438 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7439 (FP0_REGNUM): Remove define.
7440 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7441 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7442 (i386_register_virtual_size): Remove protoype.
7443 * i386-tdep.c (i386_register_virtual_size): Removed.
7444 (i386_extract_return_value, i386_store_return_value): Use
7445 FP0_REGNUM instead of NUM_FREGS to determine whether the
7446 floating-point registers are available.
7447 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7448 Adjust for removal of macros mentioned above.
7449
74502002-06-15 Mark Kettenis <kettenis@gnu.org>
7451
fcc9bf01
MK
7452 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7453 comments.
7454 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7455 Remove prototypes.
7456 (supply_gregset, fill_gregset): Remove use of register keyword and
7457 remove declaration for regmap. Use I386_NUM_GREGS instead of
7458 NUM_REGS and NUM_FREGS.
7459 (FPREGSET_FSAVE_OFFSET): Remove.
7460 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7461 NUM_FREGS to determine whether the floating-point registers are
7462 available.
7463
65e78234
MK
7464 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7465 gnu_store_registers): Replace usage of NUM_GREGS with
7466 I386_NUM_GREGS.
7467
98df6387
MK
7468 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7469 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7470 usage of NUM_GREGS with I386_NUM_GREGS.
7471
099a9414
MK
7472 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7473
57976e88
MK
7474 * i386bsd-nat.c: Include "i386-tdep.h".
7475 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7476 I386_NUM_GREGS.
7477
b335f4a6
MK
7478 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7479 and associated comment. They no longer make any sense, since we
7480 don't use this file anymore on Linux.
7481
1cf88de5
MK
7482 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7483 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7484 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7485 elements in these arrays.
7486 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7487 MAX_NUM_REGS.
7488
daa66587
MK
74892002-06-15 Mark Kettenis <kettenis@gnu.org>
7490
7491 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7492 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7493
26e9b323
AC
74942002-06-14 Andrew Cagney <cagney@redhat.com>
7495
7496 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7497 EXTRACT_RETURN_VALUE.
7498 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7499 EXTRACT_STRUCT_VALUE_ADDRESS.
7500 * gdbarch.h, gdbarch.c: Regenerate.
7501
7502 * values.c (value_being_returned): Handle
7503 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7504 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7505
7506 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7507 * arm-tdep.c (arm_gdbarch_init): Update.
7508 * avr-tdep.c (avr_gdbarch_init): Update.
7509 * cris-tdep.c (cris_gdbarch_init): Update.
7510 * d10v-tdep.c (d10v_gdbarch_init): Update.
7511 * ia64-tdep.c (ia64_gdbarch_init): Update.
7512 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7513 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7514 * s390-tdep.c (s390_gdbarch_init): Update.
7515 * sh-tdep.c (sh_gdbarch_init): Update.
7516 * s390-tdep.c (s390_gdbarch_init): Update.
7517 * sparc-tdep.c (sparc_gdbarch_init): Update.
7518 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7519 * v850-tdep.c (v850_gdbarch_init): Update.
7520 * vax-tdep.c (vax_gdbarch_init): Update.
7521 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7522 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7523
7524 * config/arc/tm-arc.h: Update.
7525 * config/d30v/tm-d30v.h: Update.
7526 * config/fr30/tm-fr30.h: Update.
7527 * config/h8300/tm-h8300.h: Update.
7528 * config/h8500/tm-h8500.h: Update.
7529 * config/i386/tm-i386.h: Update.
7530 * config/i386/tm-ptx.h: Update.
7531 * config/i386/tm-symmetry.h: Update.
7532 * config/i960/tm-i960.h: Update.
7533 * config/m32r/tm-m32r.h: Update.
7534 * config/m68k/tm-delta68.h: Update.
7535 * config/m68k/tm-linux.h: Update.
7536 * config/m68k/tm-m68k.h: Update.
7537 * config/m88k/tm-m88k.h: Update.
7538 * config/mcore/tm-mcore.h: Update.
7539 * config/mips/tm-mips.h: Update.
7540 * config/mn10200/tm-mn10200.h: Update.
7541 * config/pa/tm-hppa.h: Update.
7542 * config/pa/tm-hppa64.h: Update.
7543 * config/sparc/tm-sp64.h: Update.
7544 * config/sparc/tm-sparc.h: Update.
7545 * config/sparc/tm-sparclet.h: Update.
7546 * config/z8k/tm-z8k.h: Update.
7547
5179e78f
AC
75482002-06-14 Andrew Cagney <cagney@redhat.com>
7549
7550 * Makefile.in (i386_linux_tdep_h): Define.
7551 (i386_tdep_h, i387_tdep_h): Define.
7552 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7553 $(i386_tdep_h) and $(i387_tdep_h).
7554 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7555
8201327c
MK
75562002-06-14 Mark Kettenis <kettenis@gnu.org>
7557
edf393ac
MK
7558 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7559 Already covered by the default.
7560
896fb97d
MK
7561 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7562 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7563 (i386_gdbarch_init): Initialize long_double_format and long_double
7564 bit.
7565
8201327c
MK
7566 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7567 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7568 Move these to ...
7569 * config/i386/i386sol2.mh: ... here.
7570 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7571 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7572 (SIGCONTEXT_PC_OFFSET): Remove define.
7573 (IN_SIGTRAMP): Remove define.
7574 * i386-sol2-tdep.c: New file.
7575
7576 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7577 * config/i386/tm-i386nw.h: Removed.
7578
7579 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7580 USE_STRUCT_CONVENTION): Remove defines.
7581 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7582 (get_longjmp_target): Remove prototype.
7583 (IN_SIGTRAMP): Remove define.
7584 (i386bsd_in_sigtramp): Remove prototype.
7585 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7586 function. Update comment accordingly
7587 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7588 (FRAME_SAVED_PC): Remove define.
7589 (i386bsd_frame_saved_pc): Remove prototype.
7590 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7591 GET_LONGJMP_TARGET): Remove defines.
7592 (get_longjmp_target): Remove prototype.
7593 (IN_SIGTRAMP): Remove define.
7594 (i386bsd_in_sigtramp): Remove prototype.
7595 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7596 function. Update comment accordingly
7597 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7598 (FRAME_SAVED_PC): Remove define.
7599 (i386bsd_frame_saved_pc): Remove prototype.
7600 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7601 Remove prototype.
7602 (USE_STRUCT_CONVENTION): Remove prototype.
7603 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7604 declaration.
7605 (_initialize_i386bsd_nat): Revise logic to determine some
7606 constants at compile time when compiling a native GDB. Warn if
7607 things don't match up with what we expect.
7608 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7609 Remove variables.
7610 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7611 to use date stored in `struct gdbarch_tdep'.
7612 (i386bsd_sigcontext_offset): Remove varaible.
7613 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7614 stored in `struct gdbarch_tdep'.
7615 (i386bsd_frame_saved_pc): Make static.
7616 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7617 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7618 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7619 i386fbsd4_sc_pc_offset): New variables.
7620 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7621 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7622 functions.
7623 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7624 functions.
7625 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7626 Modify the value of i386fbsd_sigtramp_start and
7627 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7628 i386fbsd_sigtramp_end.
7629 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7630 function.
7631
7632 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7633 define to i386-linux-tdep.h.
7634 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7635 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7636 defines.
7637 (i386_linux_register_name, i386_linux_register_byte,
7638 i386_linux_register_raw_size): Remove prototypes.
7639 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7640 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7641 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7642 TARGET_WRITE_PC): Remove defines.
7643 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7644 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7645 i386_linux_write_pc): Remove prototypes.
7646 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7647 (get_longjmp_target): Remove prototype.
7648 * i386-linux-tdep.h: New file.
7649 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7650 * i386-linux-tdep.c: Include "i386-tdep.h" and
7651 "i386-linux-tdep.h".
7652 (i386_linux_register_name, i386_linux_register_byte,
7653 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7654 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7655 Make static.
7656 (i386_linux_init_abi): New function.
7657 (_initialize_i386_linux_tdep): New function.
7658
7659 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7660 (i386_saved_pc_after_call): Remove prototype.
7661 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7662 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7663 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7664 (i386_register_name, i386_stab_reg_to_regnum,
7665 i386_dwarf_reg_to_regnum): Remove prototypes.
7666 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7667 SIZEOF_SSE_REGS): Remove defines.
7668 (REGISTER_BYTES): Remove define.
7669 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7670 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7671 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7672 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7673 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7674 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7675 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7676 (get_longjmp_target): Remove prototype.
7677 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7678 (sigtramp_saved_pc): Remove define.
7679 (i386v4_sigtramp_saved_pc): Remove prototype.
7680 * config/i386/tm-go32.h (FRAME_CHAIN,
7681 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7682 (i386go32_frame_saved_pc): Remove prototype.
7683 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7684 (get_longjmp_target): Remove prototype.
7685 * i386-tdep.h: Include "osabi.h".
7686 (enum i386_abi): Removed.
7687 (enum struct_return): New enum.
7688 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7689 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7690 sc_pc_offset members.
7691 (i386_gdbarch_register_os_abi): Remove prototype.
7692 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7693 I386_SSE_NUM_REGS): New defines.
7694 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7695 I386_SSE_SIZEOF_REGS): New defines.
7696 (i386_register_name, i386_register_byte, i386_register_raw_size):
7697 New prototypes.
7698 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7699 (i386bsd_sigtramp_saved_pc): New prototype.
7700 * i386-tdep.c: Don't include "elf-bfd.h".
7701 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7702 i386_frame_chain, i386_saved_pc_after_call): Make static.
7703 (i386_frame_saved_pc): Rewrite to call architecture dependent
7704 function to deal with signal handlers. Make static.
7705 (i386go32_frame_saved_pc): Removed.
7706 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7707 Removed.
7708 (i386_get_longjmp_target): New function.
7709 (default_struct_convention, pcc_struct_convention,
7710 reg_struct_convention, valid_conventions, struct_convention): New
7711 variables.
7712 (i386_use_struct_convention): New function.
7713 (i386v4_sigtramp_saved_pc): Renamed to
7714 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7715 (i386_pc_in_sigtramp): New function.
7716 (i386_abi_names): Removed.
7717 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7718 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7719 Removed.
7720 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7721 i386_gdbarch_register_os_abi): Removed.
7722 (struct i386_abi_handler): Removed.
7723 (i386_abi_handler_list): Removed.
7724 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7725 functions.
7726 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7727 i386_nw_init_abi): New functions.
7728 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7729 Use set_gdbarch_xxx() calls instead of relying on macros for a
7730 number of calls.
7731 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7732 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7733 Register the various architecture variants defined in this file.
7734
ad2f7632
DJ
77352002-06-14 Daniel Jacobowitz <drow@mvista.com>
7736
7737 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7738 (struct main_type): Remove arg_types member. Update comments for
7739 struct field.
7740 (TYPE_ARG_TYPES): Remove.
7741 (TYPE_FN_FIELD_ARGS): Update.
7742 (smash_to_method_type): Update prototype.
7743
7744 * c-typeprint.c (cp_type_print_method_args): Take method type
7745 instead of argument list. Use new argument layout. Simplify.
7746 (c_type_print_args): Use new argument layout. Simplify.
7747 (c_type_print_base): Update call to cp_type_print_method_args.
7748 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7749 argument; use die->type instead. Update call to
7750 smash_to_method_type.
7751 (read_structure_scope): Update call to dwarf2_add_member_fn.
7752 * gdbtypes.c (allocate_stub_method): Update comment.
7753 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7754 Use new argument layout.
7755 (check_stub_method): Use new argument layout. Don't count
7756 void as an argument.
7757 (print_arg_types): Update comments. Use new argument layout.
7758 (recursive_dump_type): Don't print arg_types member.
7759 * hpread.c (hpread_read_struct_type): Use new argument layout.
7760 (fixup_class_method_type): Likewise.
7761 (hpread_type_lookup): Likewise.
7762 * stabsread.c (read_type): Update calls to read_args and
7763 smash_to_method_type.
7764 (read_args): Use new argument layout. Simplify.
7765 * valops.c (typecmp): Use new argument layout. Update parameters
7766 and comments. Simplify.
7767 (hand_function_call): Use new argument layout.
7768 (search_struct_method): Update call to typecmp.
7769 (find_overload_match): Use new argument layout.
7770
6da02953
DJ
77712002-06-13 Daniel Jacobowitz <drow@mvista.com>
7772
7773 * NEWS: Mention multithreaded debug support for gdbserver.
7774
519b2366
DJ
77752002-06-13 Daniel Jacobowitz <drow@mvista.com>
7776
7777 * MAINTAINERS: Mention NEWS.
7778
6c0d6680
DJ
77792002-06-13 Daniel Jacobowitz <drow@mvista.com>
7780
7781 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7782 (struct mips_objfile_private, compare_pdr_entries): New.
7783 (non_heuristic_proc_desc): Read the ".pdr" section if it
7784 is present.
7785
6529d2dd
AC
77862002-06-12 Andrew Cagney <ac131313@redhat.com>
7787
7788 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7789 (arm_debug): New static variable.
7790 (_initialize_arm_tdep): Add ``set debug arm'' command.
7791
26216b98
AC
77922002-06-12 Andrew Cagney <ac131313@redhat.com>
7793
7794 * Makefile.in (sim_arm_h): Define.
7795 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7796 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7797 (arm_register_sim_regno): New function, map an internal REGNUM
7798 onto a simulator register number.
7799 (arm_gdbarch_init): Set register_sim_regno.
7800
814b3ba0
AH
78012002-06-09 Aldy Hernandez <aldyh@redhat.com>
7802
7803 * MAINTAINERS: Add self.
7804
475b0867
JB
78052002-06-11 Jim Blandy <jimb@redhat.com>
7806
919d772c
JB
7807 * source.c (source_info): Mention whether the symtab has
7808 information about preprocessor macros.
7809
475b0867
JB
7810 Call the command `info macro', not `show macro'.
7811 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7812 Fix error message.
7813 (_initialize_macrocmd): Register `info_macro_command' in
7814 `infolist', not `showlist'.
7815
9e364162
DJ
78162002-06-11 Daniel Jacobowitz <drow@mvista.com>
7817
7818 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7819 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7820 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7821 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7822 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7823 unconditionally.
7824 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7825 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7826 (_initialize_mips_tdep): Remove dead code.
7827 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7828 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7829 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7830 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7831 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7832 MIPS_LAST_FP_ARG_REGNUM): Remove.
7833
23aa4c72
ML
78342002-06-11 Michal Ludvig <mludvig@suse.cz>
7835
7836 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7837 (unwind_tmp_obstack_free, parse_frame_info)
7838 (update_context, cfi_read_fp, cfi_write_fp)
7839 (cfi_frame_chain, cfi_init_extra_frame_info)
7840 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7841 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7842
70eb15a4
CV
78432002-06-11 Corinna Vinschen <vinschen@redhat.com>
7844
7845 * v850-tdep.c (v850_type_is_scalar): New function.
7846 (v850_use_struct_convention): Match current gcc implementation
7847 as close as possible.
7848 (v850_push_arguments): Fix stack_offset handling. Don't write
7849 struct_addr into register. This is done by v850_store_struct_return.
7850 (v850_extract_return_value): Care for structs.
7851 (v850_store_return_value): Ditto.
7852 (v850_store_struct_return): Actually write address.
7853
482a4d06
ML
78542002-06-11 Michal Ludvig <mludvig@suse.cz>
7855
7856 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7857 without debug information too.
7858
d855c300
AC
78592002-06-10 Andrew Cagney <ac131313@redhat.com>
7860
7861 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7862 Make multi-arch pure.
7863 * gdbarch.h, gdbarch.c: Re-generate.
7864 * arm-tdep.c (arm_print_float_info): Update.
7865 * arch-utils.h (default_print_float_info): Update.
7866 * arch-utils.c (default_print_float_info): Update.
7867 * infcmd.c (float_info): Update call.
7868
dd12a101
AC
78692002-06-10 Andrew Cagney <ac131313@redhat.com>
7870
7871 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7872 the front of the initialize list.
7873
101dcfbe
AC
78742002-06-10 Andrew Cagney <ac131313@redhat.com>
7875
7876 * infrun.c (struct inferior_status): Replace fields
7877 selected_frame_address and selected_level with field
7878 selected_frame_id.
7879 (save_inferior_status): Update. Use get_frame_id.
7880 (struct restore_selected_frame_args): Delete.
7881 (restore_selected_frame): Update. Use frame_find_by_id.
7882 (restore_inferior_status): Update.
7883
7884 * breakpoint.h (struct breakpoint): Change type of
7885 watchpoint_frame to frame_id.
7886 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7887 call to get_current_frame.
7888 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7889 get_current_frame.
7890 (watchpoint_check): Use frame_find_by_id.
7891
7892 * frame.h (record_selected_frame): Delete declaration.
7893 * stack.c (record_selected_frame): Delete function.
7894
7895 * frame.h (struct frame_id): Define.
7896 (get_frame_id): Declare.
7897 (frame_find_by_id): Declare.
7898 * frame.c (frame_find_by_id): New function.
7899 (get_frame_id): New function.
7900
304270b6
AV
79012002-06-10 Andrey Volkov <avolkov@transas.com>
7902
7903 * ser-e7kpc.c: Fix duplicated define and call of
7904 _initialize_ser_e7000pc
7905
2f2cf184
DJ
79062002-06-09 Daniel Jacobowitz <drow@mvista.com>
7907
7908 * signals/signals.c (target_signal_from_host): Fix #ifdef
7909 SIGRTMIN case.
7910 (do_target_signal_to_host): Likewise.
7911
caaa3122
DJ
79122002-06-09 Daniel Jacobowitz <drow@mvista.com>
7913
7914 * mips-tdep.c (mips_find_abi_section): New function.
7915 (mips_gdbarch_init): Call it.
7916
6ac5df3a
MK
79172002-06-09 Mark Kettenis <kettenis@gnu.org>
7918
7919 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7920 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7921 after Andrew's 2002-06-08 gdbarch change.
7922
82ea117a
MK
79232002-06-09 Mark Kettenis <kettenis@gnu.org>
7924
7925 * i386-linux-nat.c (suppy_gregset): Don't supply
7926 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7927 register cache.
7928 (fill_gregset): Don't fetch it under the same circumstances.
7929
3c25f8c7
AC
79302002-06-09 Andrew Cagney <cagney@redhat.com>
7931
7932 * Makefile.in (callback_h): Define.
7933 (remote_sim_h): Update path to remote-sim.h.
7934 (remote-rdp.o): Add $(callback_h).
7935 (remote-sim.o): Use $(callback_h).
7936 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7937 * remote-rdp.c: Include "gdb/callback.h".
7938
1029b7fa
MK
79392002-06-09 Mark Kettenis <kettenis@gnu.org>
7940
7941 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7942 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7943
616675d3
AC
79442002-06-08 Andrew Cagney <ac131313@redhat.com>
7945
a3efda28
AC
7946 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7947 * rdi-share/serpardr.c: Ditto.
7948 * rdi-share/unixcomm.c: Ditto.
7949 * rdi-share/serdrv.c: Ditto.
7950 * rdi-share/hostchan.h: Ditto.
7951 * rdi-share/hostchan.c: Ditto.
7952 * rdi-share/host.h: Ditto.
7953 * rdi-share/devsw.c: Ditto.
7954
c5f10366
AC
7955 * objfiles.h: Change type of obj_private to void pointer.
7956 * pa64solib.c: Update copyright. Don't include "assert.h", use
7957 strcmp instead of STREQ, use LONGEST, do not use PTR
7958 * somsolib.c: Ditto.
7959
616675d3
AC
7960 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7961 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7962 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7963
e4b415d9
AC
79642002-06-08 Andrew Cagney <ac131313@redhat.com>
7965
7966 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7967 (default_get_saved_register): Delete function.
7968 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7969 generic_unwind_get_saved_register.
7970 * gdbarch.h, gdbarch.c: Re-generate.
7971
ca0d0b52
AC
79722002-06-08 Andrew Cagney <ac131313@redhat.com>
7973
7974 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7975 generic_func_frame_chain_valid.
7976 * gdbarch.h, gdbarch.c: Re-generate.
7977 * blockframe.c (generic_func_frame_chain_valid): Only check
7978 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7979 passing FP to PC_IN_CALL_DUMMY.
7980 Fix PR gdb/360.
7981
76860b5f
AC
79822002-06-08 Andrew Cagney <ac131313@redhat.com>
7983
7984 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7985 (register_gdbarch_data): Initialize init_p.
7986 (gdbarch_data): Initialize data pointer using the init function.
7987 (init_gdbarch_data): Delete function.
7988 (gdbarch_update_p): Update.
7989 (initialize_non_multiarch): Update.
7990 (struct gdbarch): Add field initialized_p.
7991 * gdbarch.h, gdbarch.c: Re-generate.
7992
8dda9770
ML
79932002-06-07 Michal Ludvig <mludvig@suse.cz>
7994
7995 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7996 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7997 better do the things actually here.
7998 * x86-64-tdep.c (x86_64_register_name2nr): New.
7999 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8000 (x86_64_gdbarch_init): Respect the above change.
8001 * x86-64-tdep.h (x86_64_register_name2nr)
8002 (x86_64_register_nr2name): Add prototypes.
8003 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8004
3d79a47c
MS
80052002-06-06 Michael Snyder <msnyder@redhat.com>
8006
7bd91a28
MS
8007 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8008 Delete extra braces and re-indent.
8009 (d10v_store_return_value): Char return values
3d79a47c
MS
8010 must be shifted over by one byte in R0.
8011 (d10v_extract_return_value): Delete extra braces, re-indent.
8012
095a4c96
EZ
80132002-06-06 Elena Zannoni <ezannoni@redhat.com>
8014
8015 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8016 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8017 (d10v_integer_to_address): Rewrite.
8018 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8019 the d10v specific functions which take care of converting to the
8020 correct space.
8021
e8a77ca4
EZ
80222002-06-06 Elena Zannoni <ezannoni@redhat.com>
8023
8024 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8025 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8026
4f2e4a4f
AC
80272002-06-02 Andrew Cagney <ac131313@redhat.com>
8028
8029 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8030 includes.
8031 * config/tm-linux.h: Ditto.
8032 * config/alpha/tm-alphalinux.h: Ditto.
8033 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8034 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8035 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8036 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8037 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8038 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8039 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8040 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8041 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8042 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8043 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8044 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8045 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8046 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8047 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8048 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8049 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8050 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8051 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8052 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8053 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8054 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8055 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8056 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8057 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8058 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8059 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8060 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8061 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8062 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8063 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8064 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8065 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8066 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8067 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8068 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8069 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8070
ae2ab2ce
AS
80712002-05-04 Aidan Skinner <aidan@velvet.net>
8072
8073 * ada-exp.tab.c: New file
8074 * ada-exp.y: New file
8075 * ada-lang.c: New file
8076 * ada-lang.h: New file
8077 * ada-lex.c: New file
8078 * ada-lex.l: New file
8079 * ada-tasks.c: New file
8080 * ada-typeprint.c: New file
8081 * ada-valprint.c: New file
8082
0ddd0135
JT
80832002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8084
8085 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8086 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8087
750fbacc
JT
80882002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8089
8090 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8091 insetead of ppc-linux-tdep.o.
8092 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8093 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8094
df94e18a
AC
80952002-06-02 Andrew Cagney <ac131313@redhat.com>
8096
8097 2002-05-07 Christian Groessler <chris@groessler.org>
8098 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8099 bit register contents for little endian hosts.
8100
1a38ab75
AC
81012002-06-01 Andrew Cagney <ac131313@redhat.com>
8102
8103 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8104 any maintainer.
8105
8b1632ac
AC
81062002-06-01 Andrew Cagney <ac131313@redhat.com>
8107
8108 * gdbarch.h: Regenerate.
8109
627054c8
AC
81102002-06-01 Andrew Cagney <ac131313@redhat.com>
8111
8112 * MAINTAINERS: Add everyone to write-after-approval list.
8113
4f460812
AC
81142002-06-01 Andrew Cagney <ac131313@redhat.com>
8115
8116 * stack.c (frame_info): Use frame_register_unwind instead of
8117 saved_regs. Mention when the SP is on the stack or in a register.
8118
8119 * frame.h (frame_register_unwind_ftype): Define. Document.
8120 (struct frame_info): Add field register_unwind and
8121 register_unwind_cache.
8122 (frame_register_unwind): Declare.
8123 (generic_unwind_get_saved_register): Declare.
8124
8125 * frame.c (frame_register_unwind): New function.
8126 (generic_unwind_get_saved_register): New function.
8127
8128 * blockframe.c (generic_call_dummy_register_unwind): New function.
8129 (frame_saved_regs_register_unwind): New function.
8130 (set_unwind_by_pc): New function.
8131 (create_new_frame): New function.
8132 (get_prev_frame): New function.
8133
de888f76
AC
81342002-05-30 Andrew Cagney <ac131313@redhat.com>
8135
8136 * a29k-share/: Delete directory.
8137 * remote-vx29k.c: Delete file.
8138
2f2c3626
JT
81392002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8140
8141 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8142 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8143
9ce5c36a
JT
81442002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8145
8146 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8147 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8148 (sparc64nbsd-nat.o)
8149 (sparcnbsd-nat.o)
8150 (sparcnbsd-tdep.o): New dependency lists.
8151 * NEWS: Note new UltraSPARC NetBSD native configuration.
8152 * configure.host (sparc64-*-netbsd*): New host.
8153 * configure.tgt (sparc-*-netbsdelf*)
8154 (sparc-*-netbsd*): Set gdb_target to nbsd.
8155 (sparc64-*-netbsd*): New target.
8156 * sparc64nbsd-nat.c: New file.
8157 * sparcnbsd-nat.c: New file.
8158 * sparcnbsd-tdep.c: New file.
8159 * sparcnbsd-tdep.h: New file.
8160 * config/sparc/nbsd.mt: New file.
8161 * config/sparc/nbsd64.mh: New file.
8162 * config/sparc/nbsd64.mt: New file.
8163 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8164 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8165 (HOST_IPC): Remove.
8166 * config/sparc/nbsdaout.mt: Remove.
8167 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8168 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8169 (HOST_IPC): Remove.
8170 * config/sparc/nbsdelf.mt: Remove.
8171 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8172 sparc-nat.c compatiblity defines.
8173 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8174 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8175 * config/sparc/tm-nbsd64.h: New file.
8176 * config/sparc/tm-nbsdaout.h: Remove.
8177 * config/sparc/xm-nbsd.h: Remove.
8178
ef3cf062
JT
81792002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8180
8181 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8182 * sparc-tdep.c: Include osabi.h.
8183 (gdbarch_tdep): Add osabi member.
8184 (_initialize_sparc_tdep): Use gdbarch_register.
8185 (sparc_gdbarch_init): Use generic OS ABI framework.
8186 (sparc_dump_tdep): New function.
8187
ee8ff470
KB
81882002-05-30 Kevin Buettner <kevinb@redhat.com>
8189
8190 * corefile.c (do_captured_read_memory_integer): Return non-zero
8191 result.
8192 (safe_read_memory_integer): Copy result of memory read when
8193 status is non-zero. Also, add comments.
8194
7b112f9c
JT
81952002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8196
8197 * Makefile.in (ppc_tdep_h): Define.
8198 (ppc-linux-nat.o)
8199 (ppc-linux-tdep.o)
8200 (rs6000-tdep.o): Use $(ppc_tdep_h).
8201 (ppc-sysv-tdep.o)
8202 (ppcnbsd-nat.o)
8203 (ppcnbsd-tdep.o): New dependency lists.
8204 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
8205 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8206 (ppc_linux_init_abi): New functions.
7b112f9c
JT
8207 (ppc_sysv_abi_broken_use_struct_convention)
8208 (ppc_sysv_abi_use_struct_convention)
8209 (ppc_sysv_abi_push_arguments): Move to...
8210 * ppc-sysv-tdep.c: ...here.
8211 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8212 * rs6000-tdep.c (process_note_abi_tag_sections)
8213 (get_elfosabi): Remove.
8214 (rs6000_gdbarch_init): Use generic OS ABI framework.
8215 (rs6000_dump_tdep): New function.
8216 (_initialize_rs6000_tdep): Use gdbarch_register.
8217 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8218 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8219 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8220 of ppc-linux-tdep.o.
8221 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8222 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8223 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8224 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8225 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8226 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8227
480dd42a
JB
82282002-05-29 Jim Blandy <jimb@redhat.com>
8229
8230 * macroscope.c (default_macro_scope): Put `void' in empty argument
8231 list.
8232
4182591f
AC
82332002-05-29 Andrew Cagney <ac131313@redhat.com>
8234
8235 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8236 * arch-utils.c: Include "sim-regno.h".
8237 * gdbarch.sh: Don't include "sim-regno.h".
8238 * gdbarch.h, gdbarch.c: Regenerate.
8239 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8240 here.
8241 * arch-utils.h (legacy_register_sim_regno): To here.
8242 * remote-sim.c (legacy_register_sim_regno): Move function from
8243 here.
8244 * arch-utils.c (legacy_register_sim_regno): To here.
8245
8238d0bf
AC
82462002-05-28 Andrew Cagney <ac131313@redhat.com>
8247
8248 * sim-regno.h: New file.
8249 * Makefile.in (sim_regno_h): Define.
8250 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8251 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8252 (legacy_register_sim_regno): New function.
8253 (one2one_register_sim_regno): New function.
8254 (gdbsim_fetch_register): Rewrite.
8255 (gdbsim_store_register): Only store a register when
8256 REGISTER_SIM_REGNO is valid.
8257 * d10v-tdep.c: Include "sim-regno.h".
8258 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8259 (d10v_ts3_register_sim_regno): Ditto.
8260 * gdbarch.sh: Include "sim-regno.h".
8261 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8262 * gdbarch.h, gdbarch.c: Regenerate.
8263 * arch-utils.h (default_register_sim_regno): Delete declaration.
8264 * arch-utils.c (default_register_sim_regno): Delete function.
8265
485721b1
JT
82662002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8267
8268 * ppcnbsd-nat.c: Rewrite.
8269 * ppcnbsd-tdep.c: New file.
8270 * ppcnbsd-tdep.h: New file.
8271 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8272 solib.o, and solib-svr4.o.
8273 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8274 nbsd-tdep.o, and corelow.o.
8275
697f244d
AC
82762002-05-28 Andrew Cagney <ac131313@redhat.com>
8277
8278 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8279 `tr' and `sed'. Mention that `broken' targets are not expected to
8280 build.
8281
f08caad1 82822002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
8283
8284 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8285 Let PC point right after the prologue before looking up symbols.
8286
3139facc
MH
82872002-05-27 Martin M. Hunt <hunt@redhat.com>
8288
8289 * i386-tdep.c (i386_register_virtual_type): Return
8290 builtin_type_vec128i for SSE registers.
8291
8292 * gdbtypes.h (builtin_type_vec128i): Declare.
8293
8294 * gdbtypes.c (build_builtin_type_vec128i): New function.
8295 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8296 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8297 (build_gdbtypes): Initialize new builtin vector types.
8298 (_initialize_gdbtypes): Register new vector types with gdbarch.
8299
6e3ba3b8
JT
83002002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8301
8302 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8303 since it has been multi-arch'd.
8304 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8305 Move Alpha and VAX multi-arch news entries to same section
8306 as other multi-arch news.
8307
93d5585d
JT
83082002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8309
8310 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8311 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8312 static. Rename some register numbers to put them in ns32k-tdep
8313 private namespace.
8314 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8315 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8316 functions.
8317 (_initialize_ns32k_tdep): Use gdbarch_register.
8318 * ns32k-tdep.h: New file.
8319 * ns32knbsd-tdep.c: New file.
8320 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8321 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8322 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8323 REGISTER_BYTES, REGISTER_BYTE): Remove.
8324 * config/ns32k/tm-ns32k.h: New file.
8325 * config/ns32k/tm-umax.h: Remove.
8326
efb2c70e
JT
83272002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8328
8329 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8330 ns32k_store_struct_return, ns32k_extract_return_value,
8331 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8332 functions.
8333 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8334 ns32k_saved_pc_after_call.
8335 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8336 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8337 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8338 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8339 ns32k_extract_struct_value_address.
8340
7bcc927b
JT
83412002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8342
8343 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8344 ns32k_fix_call_dummy): New.
8345 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8346 ns32k_call_dummy_words.
8347 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8348 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8349 CALL_DUMMY_NARGS): Remove.
8350 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8351
78f9d765
JT
83522002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8353
8354 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8355 ns32k_frame_saved_pc, ns32k_frame_args_address,
8356 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8357 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8358 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8359 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8360 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8361 (BREAKPOINT): Remove..
8362 (FRAME_CHAIN): Define as ns32k_frame_chain.
8363 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8364 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8365 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8366 (FRAME_FIND_SAVED_REGS): Remove.
8367 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8368 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8369 (POP_FRAME): Define as ns32k_pop_frame.
8370
f2c762e0
JT
83712002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8372
8373 * ns32k-tdep.c (ns32k_register_byte_32082,
8374 ns32k_register_byte_32382, ns32k_register_raw_size,
8375 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8376 functions.
8377 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8378 ns32k_register_byte_32382.
8379 * config/ns32k/tm-umax.h: Update copyright years.
8380 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8381 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8382 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8383 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8384 (ns32k_get_enter_addr): Fix prototype.
8385
af137673
JT
83862002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8387
8388 * ns32k-tdep.c: Update copyright years.
8389 (ns32k_register_name_32082): New function.
8390 (ns32k_register_name_32382): Ditto.
8391 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8392 (REGISTER_NAME): Define as ns32k_register_name_32382.
8393 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8394 (REGISTER_NAME): Define as ns32k_register_name_32082.
8395
a8bc7b56
JB
83962002-05-24 Jim Blandy <jimb@redhat.com>
8397
8398 * dwarf2read.c (free_line_header): Use xfree, not free.
8399
83a45910
JT
84002002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8401
8402 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8403 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8404
0db71247
AC
84052002-05-23 Andrew Cagney <ac131313@redhat.com>
8406
8407 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8408
b9e5e4dd
AC
84092002-05-23 Andrew Cagney <ac131313@redhat.com>
8410
8411 From Ross Alexander at NEC Europe:
8412 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8413
de530e84
MS
84142002-05-23 Michael Snyder <msnyder@redhat.com>
8415
8416 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8417 for input, rather than parse_and_eval_address.
8418
b91b96f4
AC
84192002-05-23 Andrew Cagney <ac131313@redhat.com>
8420
8421 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8422 * Makefile.in (sim_d10v_h): Update definition.
8423
8b279e7a
AC
84242002-05-24 Andrew Cagney <cagney@redhat.com>
8425
8426 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8427 change `2002-05-22 Michael Snyder' below.
8428 (d10v_push_arguments): Ditto.
8429 (d10v_extract_return_value): Ditto.
8430
0a3d0425
JB
84312002-05-23 Jim Blandy <jimb@redhat.com>
8432
8433 * macrotab.c (check_for_redefinition): Don't complain if the new
8434 definition is the same as the previous one. Take more arguments
8435 to allow the comparison.
8436 (macro_define_object, macro_define_function): Pass more arguments
8437 to check_for_redefinition.
8438
78eac43e
MS
84392002-05-22 Michael Snyder <msnyder@redhat.com>
8440
8441 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8442 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8443 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8444 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8445 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8446 Add a temp variable to save a call (and a memory read).
8447 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8448 if possible (so that PC_IN_CALL_DUMMY will work).
8449
9bc1edb8
CV
84502002-05-22 Corinna Vinschen <vinschen@redhat.com>
8451
8452 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8453
005ef3d2
ML
84542002-05-22 Michal Ludvig <mludvig@suse.cz>
8455
8456 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8457 fde->cie_ptr.
8458 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8459 (dwarf2_build_frame_info): Add offset to fde->initial_location
8460 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
8461 (execute_stack_op): Change type of 'result' from ULONGEST to
8462 CORE_ADDR.
005ef3d2 8463
fcf4f891
JT
84642002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8465
8466 * config/alpha/tm-nbsd.h: Include solib.h.
8467
cfef91e4
JT
84682002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8469
8470 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8471 assumptions about the host's byte order.
8472
9964235a
JT
84732002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8474
8475 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8476 to dependency list.
8477 * alphanbsd-tdep.c: Include solib-svr4.h.
8478 * shnbsd-tdep.c: Ditto.
8479
9eeef8ef
JT
84802002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8481
8482 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8483 nbsd-tdep.h to dependency list.
8484 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8485 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8486 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8487 nbsdaout.mh and nbsdelf.mh consistently.
8488 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8489 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8490 nbsdaout.mt and nbsdelf.mh consistently.
8491 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8492 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8493 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8494 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8495 a.out shared library stuff from here...
8496 * config/nm-nbsdaout.h: ...to here.
8497 * config/tm-nbsd.h: Remove.
8498 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8499 * config/arm/nbsd.mh: Remove.
8500 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8501 nbsd-tdep.o.
8502 * config/arm/nbsdaout.mh: New file.
8503 * config/arm/nbsdelf.mh: New file.
8504 * config/arm/nm-nbsdaout.h: New file.
8505 * config/i386/nbsd.mh: Remove.
8506 * config/i386/nbsd.mt: Remove.
8507 * config/i386/nbsdaout.mh: New file.
8508 * config/i386/nbsdaout.mt: New file.
8509 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8510 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8511 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8512 i386_register_u_addr): Remove.
8513 * config/i386/nm-nbsdaout.h: New file.
8514 * config/i386/nm-nbsdelf.h: Remove.
8515 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8516 (USE_STRUCT_CONVENTION): Remove.
8517 * config/i386/tm-nbsdaout.h: New file.
8518 * config/i386/tm-nbsdelf.h: Remove.
8519 * config/m68k/nbsd.mh: Remove.
8520 * config/m68k/nbsd.mt: Remove.
8521 * config/m68k/nbsdaout.mh: New file.
8522 * config/m68k/nbsdaout.mt: New file.
8523 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8524 * config/m68k/nm-nbsdaout.h: New file.
8525 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8526 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8527 * config/ns32k/nbsd.mh: Remove.
8528 * config/ns32k/nbsd.mt: Remove.
8529 * config/ns32k/nbsdaout.mh: New file.
8530 * config/ns32k/nbsdaout.mt: New file.
8531 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8532 * config/ns32k/nm-nbsdaout.h: New file.
8533 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8534 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8535 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8536 (SVR4_SHARED_LIBS): Remove.
8537 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8538 * config/sparc/nbsd.mh: Remove.
8539 * config/sparc/nbsd.mt: Remove.
8540 * config/sparc/nbsdaout.mh: New file.
8541 * config/sparc/nbsdaout.mt: New file.
8542 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8543 * config/sparc/nbsdelf.mt: New file.
8544 * config/sparc/nm-nbsdaout.h: New file.
8545 * config/sparc/nm-nbsdelf.h: Remove.
8546 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8547 * config/sparc/tm-nbsdaout.h: New file.
8548
257ce470
JT
85492002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8550
8551 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8552 mipsnbsd-tdep.c
8553 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8554
76a6d5fe
JT
85552002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8556
8557 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8558 shnbsd-nat.c.
8559 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8560
45888261
JT
85612002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8562
8563 * NEWS: Note new MIPS NetBSD native configuration.
8564 * configure.host (mips*-*-netbsd*): New host.
8565 * configure.tgt (mips*-*-netbsd*): New target.
8566 * mipsnbsd-nat.c: New file.
8567 * mipsnbsd-tdep.c: New file.
8568 * mipsnbsd-tdep.h: New file.
8569 * config/mips/nbsd.mh: New file.
8570 * config/mips/nbsd.mt: New file.
8571 * config/mips/nm-nbsd.h: New file.
8572 * config/mips/tm-nbsd.h: New file.
8573
70f80edf
JT
85742002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8575
8576 * Makefile.in (SFILES): Add osabi.c.
8577 (COMMON_OBS): Add osabi.o.
8578 (osabi.o): New dependency list.
8579 * osabi.c: New file.
8580 * osabi.h: New file.
8581 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8582
8583 * Makefile.in (alpha_tdep_h): Define and use instead of
8584 alpha-tdep.h.
8585 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8586 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8587 Remove.
8588 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8589 * alpha-tdep.h: Include osabi.h.
8590 (alpha_abi): Remove.
8591 (gdbarch_tdep): Use generic OS ABI framework.
8592 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8593 gdbarch_register_osabi.
8594 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8595 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8596 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8597
8598 * Makefile.in (sh_tdep_h): Add osabi.h.
8599 * sh-tdep.h (sh_osabi): Remove.
8600 (gdbarch_tdep): Use generic OS ABI framework.
8601 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8602 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8603 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8604 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8605
8606 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8607 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8608 gdbarch_register_osabi.
8609 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8610 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8611 (get_elfosabi): Rename to...
8612 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8613 ABI framework support routines.
8614 (arm_gdbarch_init): Use generic OS ABI framework.
8615 (arm_dump_tdep): Likewise.
8616 (_initialize_arm_tdep): Likewise.
8617 * arm-tdep.h: Include osabi.h.
8618 (arm_abi): Remove.
8619 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8620 osabi member.
8621 (arm_gdbarch_register_os_abi): Remove prototype.
8622 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8623 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8624
8625 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8626 * mips-tdep.c: Include osabi.h.
8627 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8628 OS ABI framework.
8629
d194345b
KH
86302002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8631
8632 * h8300-tdep.c: Fix formatting.
8633
70c6b0d1
EZ
86342002-05-20 Elena Zannoni <ezannoni@redhat.com>
8635
8636 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8637 printing vector registers.
8638
165b8e33
AC
86392002-05-19 Andrew Cagney <ac131313@redhat.com>
8640
8641 From Fernando Nasser:
8642 * remote.c (remote_async_open_1): Re-throw the exception when the
8643 connection fails.
8644 (remote_cisco_open): Ditto.
8645 (remote_open_1): Ditto.
8646
36918e70
AC
86472002-05-19 Andrew Cagney <ac131313@redhat.com>
8648
8649 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8650 (remote_start_remote): Add uiout parameter. Pass through to
8651 remote_start_remote_dummy.
8652 (remote_open_1): Use catch_exception instead of catch_errors.
8653 (remote_async_open_1): Ditto.
8654 (remote_cisco_open): Ditto.
8655
ae44c0c4
AC
86562002-05-19 Andrew Cagney <ac131313@redhat.com>
8657
8658 * remote.c (remote_start_remote): Replace PTR with void pointer.
8659 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8660 static.
8661
8efe637d
AC
86622002-05-18 Andrew Cagney <ac131313@redhat.com>
8663
8664 * gdb_indent.sh: Allow the script to be run in the sim directory.
8665
2f1b5984
MK
86662002-05-18 Mark Kettenis <kettenis@gnu.org>
8667
f0f625e2
MK
8668 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8669 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8670
2f1b5984
MK
8671 * corelow.c (core_open): Only call set_gdbarch_from_file if
8672 exec_bfd is NULL.
8673
fc974602
AV
86742002-05-17 Andrey Volkov <avolkov@transas.com>
8675
8676 * h8300-tdep.c: Add support of EXR register
8677 * config/h8300/tm-h8300.h: Ditto.
8678
906709f4
AV
86792002-05-17 Andrey Volkov <avolkov@transas.com>
8680
8681 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8682
6e591d68
AV
86832002-05-17 Andrey Volkov <avolkov@transas.com>
8684
8685 * h8300-tdep.c: Change literal regnums to REGNO.
8686
84f0252a
JB
86872002-05-17 Jim Blandy <jimb@redhat.com>
8688
e0e9281e
JB
8689 * NEWS: Note addition of macro support.
8690
84f0252a
JB
8691 Expand preprocessor macros in C expressions.
8692 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8693 (scan_macro_expansion, scanning_macro_expansion,
8694 finished_macro_expansion): New function declarations.
8695 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8696 variable declarations.
8697 * parser-defs.h (expression_context_pc): New declaration.
8698 * parse.c (expression_context_pc): New variable.
8699 (parse_exp_1): Set expression_context_pc, as well as
8700 expression_context_block.
8701 * c-exp.y (yylex): If we're not already reading the result of a
8702 macro expansion, try to macro-expand the next token. When we're
8703 done scanning a macro expansion, switch back to the mainline text.
8704 Commas and `if's in a macro's expansion don't terminate the input.
8705 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8706 (macro_original_text, macro_expanded_text,
8707 expression_macro_lookup_func, expression_macro_lookup_baton): New
8708 variables.
8709 (scan_macro_expansion, scanning_macro_expansion,
8710 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8711 c_preprocess_and_parse): New functions.
8712 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8713 c_preprocess_and_parse, instead of c_parse.
8714 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8715 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8716
1c509ca8
JR
8717Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8718
8719 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8720 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8721 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8722
2250ee0c
CV
87232002-05-17 Corinna Vinschen <vinschen@redhat.com>
8724
8725 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8726
ab3b8126
JT
87272002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8728
8729 * Makefile.in (sh_tdep_h): Define and use.
8730 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8731 register enum): Move to...
8732 * * sh-tdep.h: ...here.
8733 * sh-tdep.c: Include sh-tdep.h.
8734 * sh3-rom.c: Likewise.
8735 * shnbsd-tdep.c: Likewise.
8736
ed9d4749
MS
87372002-05-16 Michael Snyder <msnyder@redhat.com>
8738
8739 * arm-tdep.c: Spelling fix in comment.
8740
2e276125
JB
87412002-05-16 Jim Blandy <jimb@redhat.com>
8742
6821892e
JB
8743 Add commands for manually expanding macros and showing their
8744 definitions.
8745 * macrocmd.c, macroscope.c, macroscope.h: New files.
8746 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8747 (macroscope_h): New variable.
8748 (HFILES_NO_SRCDIR): Add macroscope.h.
8749 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8750 (macroscope.o, macrocmd.o): New rules.
8751
2e276125
JB
8752 Teach the Dwarf 2 reader to read macro information.
8753 * dwarf2read.c: #include "macrotab.h".
8754 (dwarf_macinfo_buffer): New variable.
8755 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8756 dwarf_macinfo_size.
8757 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8758 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8759 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8760 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8761 dwarf2_macro_spaces_in_definition): New complaints.
8762 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8763 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8764 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8765 the partial symbol table.
8766 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8767 from what's recorded in the partial symbol table.
8768 (read_file_scope): If the compilation unit has a
8769 `DW_AT_macro_info' attribute, read its macro information.
8770 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8771
2f53fe6c
DJ
87722002-05-16 Daniel Jacobowitz <drow@mvista.com>
8773
8774 Fix PR gdb/546
8775 * ser-tcp.c: Don't include <netinet/udp.h>.
8776
2be99286
SC
87772002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8778
8779 * MAINTAINERS: Update my email address.
8780
c9af212b 87812002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8782
8783 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8784 include file of the same name.
8785
bf5f1a52
CV
87862002-05-16 Corinna Vinschen <vinschen@redhat.com>
8787
8788 * configure.tgt: Mark v850 as multi-arched.
8789 * config/v850/tm-v850.h: Remove file.
8790 * config/v850/v850.mt: Eliminate TM_FILE.
8791
435e042a
CV
87922002-05-16 Corinna Vinschen <vinschen@redhat.com>
8793
8794 * v850-tdep.c: Full multi-arch.
8795 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8796 Define GDB_MULTI_ARCH to 2.
8797
9819c6c8
PM
87982002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8799
8800 * p-exp.y (current_type): New static variable.
8801 Carries the type of the expression at the position that is parsed.
8802 (push_current_type, pop_current_type): Two new functions. Used
8803 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8804 (search_field): New static variable. Set to one after parsing a point
8805 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8806 (FIELDNAME): New token. After a point only a token belonging to
8807 current_type type definition is allowed.
8808 (all over token rules): reset and change current_type according
8809 to rules.
8810 (exp '[' rule): insert implicit array index field if
8811 exp is a pascal string type.
8812
3a06899a
CV
88132002-05-16 Corinna Vinschen <vinschen@redhat.com>
8814
8815 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8816 frame info. Use frame_info's saved_regs instead of matching member
8817 in extra_frame_info throughout.
8818 (v850_frame_init_saved_regs): New function.
8819 (v850_init_extra_frame_info): Move most functionality into
8820 v850_frame_init_saved_regs().
8821 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8822 (v850_frame_find_saved_regs): Remove declaration.
8823 (FRAME_FIND_SAVED_REGS): Remove definition.
8824 (v850_frame_init_saved_regs): Add declaration.
8825 (FRAME_INIT_SAVED_REGS): Add definition.
8826
6ed14b0e
CV
88272002-05-16 Corinna Vinschen <vinschen@redhat.com>
8828
8829 * v850-tdep.c: Begin multi-arch'ing v850.
8830 (v850_target_architecture_hook): Remove function.
8831 (v850_gdbarch_init): New function. Add code previously in
8832 v850_target_architecture_hook().
8833 (_initialize_v850_tdep): Don't set target_architecture_hook.
8834 Call register_gdbarch_init() instead.
8835
42725910
DJ
88362002-05-16 Daniel Jacobowitz <drow@mvista.com>
8837
8838 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8839 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8840 (fixup_class_method_type): Likewise.
8841
99d9066e
JB
88422002-05-15 Jim Blandy <jimb@redhat.com>
8843
8844 Add macro structures to GDB's symbol tables. Nobody puts anything
8845 in them yet.
8846 * symtab.h (struct symtab): New member: `macro_table'.
8847 * buildsym.h (pending_macros): New global variable.
8848 * buildsym.c: #include "macrotab.h".
8849 (buildsym_init): Initialize `pending_macros'.
8850 (end_symtab): If we found macro information while reading a CU's
8851 debugging info, do build a symtab structure for it. Make the
8852 symtab point to the macro information, and clear the
8853 `pending_macros' pointer which held it while we were reading the
8854 debug info.
8855 (really_free_pendings): Free any pending macro table.
8856 * objfiles.h (struct objfile): New member: `macro_cache'.
8857 * objfiles.c (allocate_objfile): Set allocate and free functions
8858 for the macro cache's objstack.
8859 (free_objfile): Empty the macro cache's obstack.
8860 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8861 set new allocate and free functions for it.
8862 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8863 free functions for the macro cache's objstack. (Why is this
8864 function building its own objfile?)
8865 * symmisc.c (print_objfile_statistics): Print statistics on the
8866 macro bcache.
8867 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8868
c899585b
RE
88692002-05-15 Richard Earnshaw <rearnsha@arm.com>
8870
8871 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8872 (REGISTER_U_ADDR): Delete definition.
8873 (arm_register_u_addr): Delete declaration.
8874
a6cdd8c5
RE
88752002-05-15 Richard Earnshaw <rearnsha@arm.com>
8876
8877 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8878 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8879
c97dcfc7
AC
88802002-05-14 Andrew Cagney <ac131313@redhat.com>
8881
8882 * regcache.c (register_valid): Revise comments refering to "Not
8883 available" and "unavailable".
8884 * frame.c (frame_register_read): Ditto.
8885 * findvar.c (value_of_register): Ditto.
8886
93021b7d
AC
88872002-05-15 Andrew Cagney <cagney@redhat.com>
8888
8889 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8890 (remote-sim.o): Update dependencies.
8891 (d10v-tdep.o): Specify dependencies.
8892 (sim_d10v_h): Define.
8893
a86bc61c
JB
88942002-05-14 Jim Blandy <jimb@redhat.com>
8895
8896 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8897 * macrotab.c (macro_lookup_inclusion, find_definition,
8898 new_macro_table): Same.
8899
8900 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8901 not `! strcmp ()'. This is a dubious improvement.
8902 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8903
8904 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8905 although it's not necessary, to avoid a warning.
8906
2fdde8f8
DJ
89072002-05-14 Daniel Jacobowitz <drow@mvista.com>
8908
8909 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8910 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8911 TYPE_INSTANCE_FLAGS.
8912 (struct main_type): New.
8913 (struct type): Move most members to struct main_type. Change
8914 cv_type and as_type to new type_chain member. Add instance_flags.
8915 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8916 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8917 (finish_cv_type): Remove prototype.
8918 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8919 Set TYPE_CHAIN.
8920 (alloc_type_instance): New function.
8921 (smash_type): New function.
8922 (make_pointer_type, make_reference_type, make_function_type)
8923 (smash_to_member_type, smash_to_method_type): Call smash_type.
8924 (make_qualified_type): New function.
8925 (make_type_with_address_space): Call make_qualified_type.
8926 (make_cv_type): Likewise.
8927 (finish_cv_type): Remove unnecessary function.
8928 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8929 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8930 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8931 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8932 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8933 * hpread.c (hpread_read_struct_type): Likewise.
8934 * stabsread.c (read_struct_type): Likewise.
8935
843fedf4
EZ
89362002-05-14 Elena Zannoni <ezannoni@redhat.com>
8937
8938 * configure.tgt: Add a catch all sh* target, for cases like
8939 sh[2,3,4]-elf and sh-hms.
8940
05a6c72c
KS
89412002-05-14 Keith Seitz <keiths@redhat.com>
8942
8943 * event-loop.c (create_file_handler): Don't do anything but
8944 update data when we are given a fd which we are already
8945 monitoring.
8946
5d085aaf
ML
89472002-05-14 Michal Ludvig <mludvig@suse.cz>
8948
8949 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8950 (update_context): Use __func__ in warnings.
8951
9db8d71f
DJ
89522002-05-14 Daniel Jacobowitz <drow@mvista.com>
8953
8954 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8955 and tcp_close to net_open and net_close.
8956 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8957 using UDP if requested. Don't try to disable Nagle on UDP
8958 sockets.
8959 * remote.c (remote_serial_open): New function. Warn about UDP.
8960 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8961
5dbc6baa
EZ
89622002-05-13 Elena Zannoni <ezannoni@redhat.com>
8963
8964 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8965
cc3023f7
EZ
89662002-05-13 Elena Zannoni <ezannoni@redhat.com>
8967
8968 * configure.tgt: Remove sh-hms target.
8969 * MAINTAINERS: Don't list sh-hms as a separate target.
8970
ec2bcbe7
JB
89712002-05-13 Jim Blandy <jimb@redhat.com>
8972
8973 Add first preprocessor macro-expansion files.
8974 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8975 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8976 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8977 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8978 (COMMON_OBS): Add macrotab.o, macroexp.o.
8979 (macroexp.o, macrotab.o): New rules.
8980
6d531722
AC
89812002-05-13 Andrew Cagney <ac131313@redhat.com>
8982
8983 * config/m88k/tm-m88k.h: Update copyright.
8984 (m88k_target_write_pc): Declare
8985 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8986 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8987 (SHIFT_INST_REGS): Update definition.
8988 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8989 using old definition of TARGET_WRITE_PC.
8990 * regcache.c (generic_target_write_pc): Delete code handling
8991 NNPC_REGNUM.
8992 * gdbarch.sh (NNPC_REGNUM): Delete.
8993 * gdbarch.h, gdbarch.c: Regenerate.
8994
3e3f2739
RE
89952002-05-13 Richard Earnshaw <rearnsha@arm.com>
8996
8997 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8998 builtin reg number.
8999
0004e5a2
DJ
90002002-05-13 Daniel Jacobowitz <drow@mvista.com>
9001
9002 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9003 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9004 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9005 access macros.
9006 * c-typeprint.c (cp_type_print_method_args): Likewise.
9007 (c_type_print_args): Likewise.
9008 * d10v-tdep.c (d10v_push_arguments): Likewise.
9009 (d10v_extract_return_value): Likewise.
9010 * expprint.c (print_subexp): Likewise.
9011 * gdbtypes.c (lookup_primitive_typename): Likewise.
9012 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9013 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9014 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9015 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9016 (TYPE_VECTOR): Likewise.
9017 * hpread.c (hpread_read_struct_type)
9018 (fix_static_member_physnames, fixup_class_method_type)
9019 (hpread_type_lookup): Likewise.
9020 * mdebugread.c (parse_symbol, parse_type): Likewise.
9021 * p-lang.c (is_pascal_string_type): Likewise.
9022 * valops.c (hand_function_call): Likewise.
9023 * x86-64-tdep.c (classify_argument): Likewise.
9024
9025 * hpread.c (hpread_read_function_type)
9026 (hpread_read_doc_function_type): Call replace_type.
9027 * dstread.c (create_new_type): Delete.
9028 (decode_dst_structure, process_dst_function): Call alloc_type.
9029 Use type access macros.
9030
dff95cc7
MK
90312002-05-12 Mark Kettenis <kettenis@gnu.org>
9032
9033 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9034 the're not supported by the current architecture.
9035 (i387_fill_fxsave): Likewise.
9036
bbcd32ad
FF
90372002-05-12 Fred Fish <fnf@redhat.com>
9038
9039 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9040 sect_index_xxx members to index the first slot in section_offsets
9041 if all of the section_offsets are zero.
9042
89cf4787
MK
90432002-05-12 Mark Kettenis <kettenis@gnu.org>
9044
9045 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9046 checked in with last change.
9047
1f77ffc5
MK
90482002-05-12 Mark Kettenis <kettenis@gnu.org>
9049
9050 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9051 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9052 config.sub.
9053
89b8b4a9
DJ
90542002-05-12 Daniel Jacobowitz <drow@mvista.com>
9055
9056 * Makefile.in: Update dependencies.
9057
14a5e767
AC
90582002-05-11 Andrew Cagney <ac131313@redhat.com>
9059
9060 * language.c (local_hex_string_custom): Simplify. Do not depend
9061 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9062
9063 * memattr.c (mem_info_command): Replace calls to
9064 longest_local_hex_string and longest_local_hex_string_custom.
9065 * buildsym.c (make_blockvector): Ditto.
9066 * solib.c (info_sharedlibrary_command): Ditto.
9067 * tracepoint.c (tracepoints_info): Ditto.
9068 * symtab.c (print_msymbol_info): Ditto.
9069
9070 * language.c (local_hex_string): Delete.
9071 (local_hex_string_custom): Delete.
9072 (longest_local_hex_string): Rename to local_hex_string.
9073 (longest_local_hex_string_custom): Rename to
9074 local_hex_string_custom.
9075 * language.h (local_hex_string): Change parameter type to LONGEST.
9076 (local_hex_string_custom): Ditto.
9077 (longest_local_hex_string): Delete declaration.
9078 (longest_local_hex_string_custom): Ditto.
9079
9080 * solib.c: Update copyright.
9081 * memattr.c: Update copyright.
9082
13d01224
AC
90832002-05-11 Andrew Cagney <ac131313@redhat.com>
9084
9085 * arch-utils.h (legacy_register_to_value): Declare.
9086 (legacy_value_to_register): Declare.
9087 (legacy_convert_register_p): Declare.
9088 * arch-utils.c (legacy_register_to_value): New function.
9089 (legacy_value_to_register): New function.
9090 (legacy_convert_register_p): New function.
9091
9092 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9093 (VALUE_TO_REGISTER): Define.
9094 (CONVERT_REGISTER_P): Define.
9095 * gdbarch.h, gdbarch.c: Regenerate.
9096
9097 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9098 VALUE_TO_REGISTER.
9099 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9100 CONVERT_REGISTER_P.
9101
4a1970e4
DJ
91022005-05-11 Daniel Jacobowitz <drow@mvista.com>
9103 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9104
9105 * Makefile.in: Update dependencies for valops.c.
9106 * valops.c: Include "gdb_assert.h".
9107 (typecmp): Skip THIS parameter to methods.
9108 (find_method_list): Remove static_memfuncp argument,
9109 update callers. Check for stub methods.
9110 (find_value_oload_method_list): Don't set *static_memfuncp.
9111 (find_overload_match): Don't check for stub methods. Assert
9112 that methods are not stubbed. Handle static methods.
9113 (value_find_oload_method_list): Remove static_memfuncp argument.
9114 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9115 to the argument list for static stub methods.
9116 * value.h (value_find_oload_method_list): Update prototype.
9117
b2e75d78
AC
91182002-05-11 Andrew Cagney <ac131313@redhat.com>
9119
9120 * arch-utils.h (generic_register_size): Declare.
9121 (generic_register_raw_size, generic_register_virtual_size): Delete
9122 declarations.
9123 * arch-utils.c (generic_register_raw_size): Delete.
9124 (generic_register_size): New function.
9125 (generic_register_virtual_size): Delete.
9126
9127 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9128 default generic_register_size.
9129 * gdbarch.h, gdbarch.c: Re-generate.
9130
9131 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9132 register_virtual_size.
9133 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9134 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9135
451fbdda
AC
91362002-05-11 Andrew Cagney <ac131313@redhat.com>
9137
9138 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9139 * gdbarch.h, gdbarch.c: Regenerate.
9140 * gnu-v3-abi.c: Update copyright.
9141 (vtable_address_point_offset): Update.
9142 (gnuv3_rtti_type): Update.
9143 (gnuv3_baseclass_offset): Update.
9144 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9145 (init_fetch_link_map_offsets): Update.
9146 * remote.c (get_remote_state): Update.
9147
6d2f5cea
DJ
91482002-05-11 Daniel Jacobowitz <drow@mvista.com>
9149
9150 * TODO: Remove value_headof/value_from_vtable_info comment.
9151 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9152 * values.c (value_headof, value_from_vtable_info): Delete.
9153 * value.h (value_from_vtable_info): Delete prototype.
9154
d2324da4
AC
91552002-05-11 Andrew Cagney <ac131313@redhat.com>
9156
9157 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9158 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9159 $(gdb_regex_h).
9160 (gdb_assert_h): Define.
9161 (gdb_wait_h): Define.
9162 (gdb_regex_h): Define.
9163
5c717440
DJ
91642002-05-11 Daniel Jacobowitz <drow@mvista.com>
9165
9166 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9167 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9168
6c7861b3
JT
91692002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9170
9171 * nbsd-tdep.c: Fix comment.
9172
ea5bc2a6
JT
91732002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9174
9175 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9176 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9177 (nbsd-tdep.o): New dependency list.
9178 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9179 nbsd-tdep.h.
9180 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9181 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9182 * nbsd-tdep.c: New file.
9183 * nbsd-tdep.h: New file.
9184 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9185 nbsd-tdep.h.
9186 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9187 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9188 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9189 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9190
b28da865
JT
91912002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9192
9193 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9194 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9195 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9196 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9197 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9198 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9199
4b8ff1fa
JT
92002002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9201
9202 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9203 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9204 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9205 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9206 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9207 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9208 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9209
dfe6eb1f
JT
92102002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9211
9212 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9213 fetch_elfcore_registers to...
9214 * i386nbsd-tdep.c: ...here.
9215 (i386nbsd_use_struct_convention): Rename to...
9216 (i386nbsd_aout_use_struct_convention): ...this.
9217 (i386nbsd_supply_reg): New function.
9218 (i386nbsd_fill_reg): New function.
9219 (fetch_core_registers): Use i386nbsd_supply_reg.
9220 (fetch_elfcore_registers): Likewise.
9221 (_initialize_i386nbsd_tdep): New function.
9222 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9223 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9224 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9225 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9226 (i386nbsd_aout_use_struct_convention): ...this.
9227
20cb8cda
JT
92282002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9229
9230 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9231 (store_inferior_registers): Use shnbsd_fill_reg.
9232 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9233 sh_nbsd_supply_register): Collapse into...
9234 (shnbsd_supply_reg): ...this.
9235 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9236 (shnbsd_fill_reg): ...this.
9237 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9238 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9239 (fetch_core_registers): Use shnbsd_supply_reg.
9240 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9241 (sh_nbsd_core_fns): Rename to...
9242 (shnbsd_core_fns): ...this.
9243 (sh_nbsd_elfcore_fns): Rename to...
9244 (shnbsd_elfcore_fns): ...this.
9245 (sh_nbsd_init_abi): Rename to...
9246 (shnbsd_init_abi): ...this.
9247 (_initialize_sh_nbsd_tdep): Rename to...
9248 (_initialize_shnbsd_tdep): ...this.
9249 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9250 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9251 sh_nbsd_fill_register): Remove prototypes.
9252 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9253
e750d25e
JT
92542002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9255
9256 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9257 (i387-nat.o): Delete dependency list.
9258 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9259 (x86-64-linux-nat.o): Likewise.
9260 * i387-nat.c: Delete file, moving contents to...
9261 * i387-tdep.c: ...here.
9262 * i387-nat.h: Rename...
9263 * i387-tdep.h: ...to this.
9264 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9265 * i386-linux-nat.c: Likewise.
9266 * i386bsd-nat.c: Likewise.
9267 * i386gnu-nat.c: Likewise.
9268 * i386nbsd-nat.c: Likewise.
9269 * i386v4-nat.c: Likewise.
9270 * x86-64-linux-nat.c: Likewise.
9271 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9272 * config/i386/go32.mh (NATDEPFILES): Likewise.
9273 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9274 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9275 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9276 * config/i386/linux.mh (NATDEPFILES): Likewise.
9277 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9278 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9279 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9280 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9281
1aee598a
JT
92822002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9283
9284 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9285 (alphanbsd-nat.o): Remove dependency list.
9286 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9287 * alphanbsd-nat.c: Delete. Contents moved to...
9288 * alphanbsd-tdep.c: ...here.
9289 (_initialize_alphanbsd_tdep): Register core functions.
9290 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9291
12bcb0fe
JT
92922002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9293
9294 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9295 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9296 (alphanbsd-nat.o): Likewise.
9297 (alphabsd-tdep.o): New dependency list.
9298 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9299 (fill_gregset): Use alphabsd_fill_reg.
9300 (supply_fpregset): Use alphabsd_supply_fpreg.
9301 (fill_fpregset): Use alphabsd_fill_fpreg.
9302 (fetch_inferior_registers): Use struct reg and struct fpreg
9303 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9304 and alphabsd_supply_fpreg.
9305 (store_inferior_registers): Use struct reg and struct fpreg
9306 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9307 and alphabsd_fill_fpreg.
9308 * alphabsd-tdep.c: New file.
9309 * alphabsd-tdep.h: New file.
9310 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9311 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9312 alphabsd_supply_fpreg.
9313 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9314 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9315
361d1df0
EC
93162002-05-11 Eric Christopher <echristo@redhat.com>
9317
9318 * mips-tdep.c (mips_double_register_type): Fix thinko.
9319 (mips_single_register_type): Ditto.
9320 * MAINTAINERS: Add self.
9321
92dd7cee
MK
93222002-05-11 Mark Kettenis <kettenis@gnu.org>
9323
9324 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9325 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9326 right thing on architectures with different endianness and/or
9327 integer sizes.
9328
e27da16d
JT
93292002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9330
9331 From Christian Limpach <chris@Pin.LU>
9332 * configure.in: Change sed expression which comments out
9333 NATDEPFILES to also comment out continuation lines.
9334 * configure: Regenerate.
9335
ddde02bd
EZ
93362002-05-10 Elena Zannoni <ezannoni@redhat.com>
9337
9338 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9339 big patch.
9340
1c922164
EZ
93412002-05-10 Elena Zannoni <ezannoni@redhat.com>
9342
9343 * sh-tdep.c: Include correct file.
9344
283150cd
EZ
93452002-05-10 Elena Zannoni <ezannoni@redhat.com>
9346
9347 New support for sh64-elf (sh5) target.
9348
9349 * configure.tgt: For sh64-elf target, default to sh-elf.
9350
9351 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9352 (struct gdbarch_tdep): Add new fields for new registers and ABI
9353 info.
361d1df0 9354
283150cd
EZ
9355 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9356 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9357 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9358 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9359 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9360 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9361 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9362 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9363 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9364 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9365 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9366 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9367 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9368 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9369 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9370 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9371 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9372 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9373 sign_extend, sh64_nofp_frame_init_saved_regs,
9374 sh64_init_extra_frame_info, sh64_get_saved_register,
9375 sh64_extract_struct_value_address, sh64_pop_frame,
9376 sh64_push_arguments, sh64_extract_return_value,
9377 sh64_store_return_value, sh64_show_media_regs,
9378 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9379 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9380 sh_sh64_register_virtual_type,
9381 sh_sh64_register_convert_to_virtual,
9382 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9383 sh64_register_read, sh64_pseudo_register_write,
9384 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9385 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9386 sh64_do_pseudo_register, sh_compact_do_registers_info,
9387 sh64_do_registers_info, sh_gdbarch_init): New functions.
9388
3117ed25
EZ
93892002-05-10 Elena Zannoni <ezannoni@redhat.com>
9390
9391 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9392
2654e6d4
DJ
93932002-05-10 Daniel Jacobowitz <drow@mvista.com>
9394
9395 * linespec.c (decode_line_1): Check for a double quote after
9396 a filename correctly.
9397
9ab3e532
JB
93982002-05-10 Jim Blandy <jimb@redhat.com>
9399
9400 Properly track the size of the current objfile's .debug_line section.
9401 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9402 (DWARF_LINE_SIZE): New macro.
9403 (dwarf2_build_psymtabs_hard): Record the line section's size in
9404 the partial symbol table.
9405 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9406 symbol table.
9407
126fa72d
PS
94082002-05-10 Petr Sorfa <petrs@caldera.com>
9409
9410 * ia64-tdep.c: Handle breakpoints on L instruction type
9411 in MLX instruction bundle by moving the breakpoint to
9412 the third slot (X instruction type) as L holds only data.
9413
1f077a3e
KB
94142002-05-10 Kevin Buettner <kevinb@redhat.com>
9415
9416 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9417 (process_one_symbol): Complain about discarding local symbols
9418 due to a misplaced N_LBRAC entry.
9419
8120c9d5 94202002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
9421
9422 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
9423 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9424 decrease the depth we are at, in the case of templates.
361d1df0 9425
67b2c998
DJ
94262002-05-09 Daniel Jacobowitz <drow@mvista.com>
9427
9428 * mips-tdep.c (mips_float_register_type): New function.
9429 (mips_double_register_type): New function.
9430 (mips_print_register): Use them.
9431 (do_fp_register_row): Likewise.
9432
fd326606
DJ
94332002-05-09 Daniel Jacobowitz <drow@mvista.com>
9434
6609d9af 9435 * signals/signals.c (signals): Remove conditional compilation around
fd326606 9436 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 9437 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 9438
bef35864
MS
94392002-05-09 Michael Snyder <msnyder@redhat.com>
9440
9441 * remote-rdp.c (remote_rdp_can_run): Remove.
9442
c55a3f73
TT
94432002-05-09 Tom Tromey <tromey@redhat.com>
9444
9445 * jv-valprint.c (java_val_print): Handle `char' as a special case
9446 of TYPE_CODE_INT.
9447
b8d5e71d
MS
94482002-05-09 Michael Snyder <msnyder@redhat.com>
9449
9450 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9451 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 9452 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 9453 str r(0123),[sp,#nn].
361d1df0 9454 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
9455 order-independent by placing it in a loop.
9456
e2cd42dd
MS
94572002-05-06 Michael Snyder <msnyder@redhat.com>
9458
9459 * stabsread.c (read_type): Add recognition for new attribute:
9460 "@V;" means that an array type is actually a vector.
9461 This is analogous to the vector flag that's been added to dwarf2.
9462
3ce1502b
MK
94632002-05-09 Mark Kettenis <kettenis@gnu.org>
9464
9465 * i386-tdep.h (i386_abi): New enum.
9466 (struct gdbarch_tdep): Replace os_ident member with abi.
9467 (i386_gdbarch_register_os_abi): New prototype.
9468 * i386-tdep.c (i386_abi_names): New array.
9469 (process_note_abi_tag_sections): Removed.
9470 (process_note_sections): New function.
9471 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9472 (struct i386_abi_handler): New struct.
9473 (i386_abi_handler_list): New variable.
9474 (i386_gdbarch_register_os_abi): New function.
9475 (i386_gdbarch_init): Adapt for the changes given above.
9476
084c156a
DJ
94772002-05-08 Daniel Jacobowitz <drow@mvista.com>
9478
9479 * gregset.h: Say "GNU/Linux".
9480
6599f021
EZ
94812002-05-08 Elena Zannoni <ezannoni@redhat.com>
9482
9483 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9484 (build_gdbtypes): Build builtin_type_v2_float.
9485 (_initialize_gdbtypes): Register new builtin type.
9486
40af4b0c
AC
94872002-05-08 Andrew Cagney <ac131313@redhat.com>
9488
9489 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9490 (clear_gdbarch_swap): New function.
9491 (initialize_non_multiarch): Call.
9492 (gdbarch_update_p): Before calling init(), swap out and clear the
9493 existing architecture.
9494 * gdbarch.c: Regenerate.
9495
4fe84f46
JT
94962002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9497
9498 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9499 alphanbsd-tdep.c.
9500
4015edd1
JT
95012002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9502
9503 * sh-nbsd-nat.c: Rename to...
9504 * shnbsd-nat.c: ...this.
9505 * sh-nbsd-tdep.c: Rename to...
9506 * shnbsd-tdep.c: ...this.
9507 * sh-nbsd-tdep.h: Rename to...
9508 * shnbsd-tdep.h: ...this.
9509 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9510 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9511
0e2bd219
RE
95122002-05-08 Richard Earnshaw <rearnsha@arm.com>
9513
9514 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9515 concatenation for command help messages.
9516
13a38d45
JT
95172002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9518
9519 * NEWS: Note new sh*-*-netbsdelf* configuration.
9520 * configure.host: Set gdb_host_cpu to sh for all sh*.
9521 (sh*-*-netbsdelf*): New host.
9522 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9523 (sh*-*-netbsdelf*): New target.
9524 * sh-nbsd-nat.c: New file.
9525 * sh-nbsd-tdep.c: New file.
9526 * sh-nbsd-tdep.h: New file.
9527 * config/sh/nbsd.mh: New file.
9528 * config/sh/nbsd.mt: New file.
9529 * config/sh/nm-nbsd.h: New file.
9530 * config/sh/tm-nbsd.h: New file.
9531
d658f924
JT
95322002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9533
9534 * sh-tdep.c (sh_osabi_names): Declare.
9535 (process_note_abi_tag_sections): New function.
9536 (get_elfosabi): Ditto.
9537 (sh_gdbarch_register_os_abi): Ditto.
9538 (sh_dump_tdep): Ditto.
9539 _initialize_sh_tdep): Use gdbarch_register to register
9540 sh_gdbarch_init and sh_dump_tdep.
9541 * config/sh/tm-sh.h (sh_osabi): Declare.
9542 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9543
848cfffb
AC
95442002-05-07 Andrew Cagney <ac131313@redhat.com>
9545
9546 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9547 (thumb_scan_prologue): Ditto.
9548 (arm_find_callers_reg): Ditto.
9549 (arm_frame_chain): Ditto.
9550 (arm_init_extra_frame_info): Ditto.
9551 (arm_frame_saved_pc): Ditto.
9552 (arm_pop_frame): Ditto.
9553 (arm_push_return_address): New function.
9554 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9555 call_dummy_location, call_dummy_breakpoint_offset_p,
9556 call_dummy_breakpoint_offset, call_dummy_p,
9557 call_dummy_stack_adjust_p, call_dummy_words,
9558 sizeof_call_dummy_words, call_dummy_start_offset,
9559 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9560 call_dummy_address, push_return_address and push_dummy_frame for
9561 generic dummy frames.
9562
e7d717c0
JT
95632002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9564
9565 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9566 size computation for alloca.
9567 (sh_fp_frame_init_saved_regs): Likewise.
9568
7bbcf283
RE
95692002-05-07 Richard Earnshaw <rearnsha@arm.com>
9570
9571 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9572 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9573 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9574 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9575 * remote-rdp.c (remote_rdp_fetch_register): Use
9576 ARM_MAX_REGISTER_RAW_SIZE.
9577 (remote_rdp_store_register): Likewise.
9578
4657573b
ML
95792002-05-07 Michal Ludvig <mludvig@suse.cz>
9580
361d1df0 9581 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9582 added default labels to switch {} statements.
9583 * x86-64-tdep.c: Ditto.
9584 * x86-64-linux-nat.c: Ditto.
9585
010f3b2f
JT
95862002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9587
9588 * solib.h: Protect against multiple inclusion.
9589
debd256d
JB
95902002-05-06 Jim Blandy <jimb@redhat.com>
9591
9ab3e532
JB
9592 Add first preprocessor macro-expansion files.
9593 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9594 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9595 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9596 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9597 (COMMON_OBS): Add macrotab.o, macroexp.o.
9598 (macroexp.o, macrotab.o): New rules.
9599
debd256d
JB
9600 Separate the job of reading the line number info statement program
9601 header (...expialidocious) out into its own function.
9602 * dwarf2read.c (struct line_head, struct filenames, struct
9603 directories): Replace with...
9604 (struct line_header): New structure, containing the full
9605 contents of the statement program header, including the
9606 include directory and file name tables.
9607 (read_file_scope): If we have line number info, instead of just
9608 calling dwarf_decode_lines to do all the work, call
9609 dwarf_decode_line_header first to get a `struct line_header'
9610 containing the data in the statement program header, and then
9611 pass that to dwarf_decode_lines, which will pick up where that
9612 left off. Be sure to clean up the `struct line_header' object.
9613 (dwarf_decode_line_header, free_line_header, add_include_dir,
9614 add_file_name): New functions.
9615 (dwarf_decode_lines): Move all the code to read the statement
9616 program header into dwarf_decode_line_header. Take the line
9617 header it built as the first argument, instead of the offset to
9618 the compilation unit's line number info. Use the new `struct
9619 line_header' type instead of the old structures. No need to do
9620 cleanups here now, since we don't allocate anything.
9621 (dwarf2_statement_list_fits_in_line_number_section,
9622 dwarf2_line_header_too_long): New complaints.
9623
ac3aafc7
EZ
96242002-05-06 Elena Zannoni <ezannoni@redhat.com>
9625
9626 * gdbtypes.c (init_vector_type): New function.
9627 (build_builtin_type_vec128): Simplify the representation of SIMD
9628 registers.
9629 (build_gdbtypes): Initialize new builtin vector types.
9630 (_initialize_gdbtypes): Register new vector types with gdbarch.
9631 (builtin_type_v4_float, builtin_type_v4_int32,
9632 builtin_type_v8_int16, builtin_type_v16_int8,
9633 builtin_type_v2_int32, builtin_type_v4_int16,
9634 builtin_type_v8_int8): New (renamed) SIMD types.
9635
13e49980
MK
96362002-05-06 Mark Kettenis <kettenis@gnu.org>
9637
9638 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9639 (i387_fill_fxsave): Likewise.
9640
997b20b8
AO
96412002-05-05 Alexandre Oliva <aoliva@redhat.com>
9642
9643 * alpha-tdep.c (alpha_extract_return_value): Don't use
9644 non-constant array size in prototype.
9645
535c96ce
AC
96462002-05-04 Andrew Cagney <ac131313@redhat.com>
9647
9648 From Brian Taylor <briant at model dot com>:
9649 * ui-out.c (ui_out_field_core_addr): Use the function
9650 longest_local_hex_string_custom'to format addresses > 32 bits
9651 wide.
9652
9653 * ui-out.c (ui_out_field_core_addr): Update comment.
9654
bedfa57b
AC
96552002-05-04 Andrew Cagney <ac131313@redhat.com>
9656
9657 * stack.c (select_and_print_frame): Make static. Delete the
9658 parameter `level'.
9659 (func_command): Update call.
9660 (select_frame_command): Delete code computing the frame level.
9661 * frame.h (select_and_print_frame): Delete declaration.
9662
f621c63e
AC
96632002-05-04 Andrew Cagney <ac131313@redhat.com>
9664
9665 * sparc-tdep.c (sparc_get_saved_register): Comment why
9666 get_prev_frame call is safe.
9667
0f7d239c
AC
96682002-05-04 Andrew Cagney <ac131313@redhat.com>
9669
9670 * frame.h (select_frame): Delete level parameter.
9671 * stack.c (select_frame): Update. Use frame_relative_level to
9672 obtain the frame's level.
9673 (select_and_print_frame): Update call.
9674 (select_frame_command): Ditto.
9675 (up_silently_base): Ditto.
9676 (down_silently_base): Ditto.
9677 * ocd.c (ocd_start_remote): Ditto.
9678 * remote-rdp.c (remote_rdp_open): Ditto.
9679 * remote-mips.c (mips_initialize): Ditto.
9680 (common_open): Ditto.
9681 * remote-e7000.c (e7000_start_remote): Ditto.
9682 * m3-nat.c (select_thread): Ditto.
9683 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9684 (child_get_current_exception_event): Ditto.
9685 * varobj.c (varobj_create): Ditto.
9686 (varobj_update): Ditto.
9687 (c_value_of_root): Ditto.
9688 * tracepoint.c (finish_tfind_command): Ditto.
9689 * corelow.c (core_open): Ditto.
9690 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9691 * thread.c (info_threads_command): Ditto.
9692 (switch_to_thread): Ditto.
9693 * infrun.c (normal_stop): Ditto.
9694 (restore_selected_frame): Ditto.
9695 (restore_inferior_status): Ditto.
9696 * breakpoint.c (insert_breakpoints): Ditto.
9697 (watchpoint_check): Ditto.
9698 (bpstat_stop_status): Ditto.
9699 (do_enable_breakpoint): Ditto.
9700 * blockframe.c (flush_cached_frames): Ditto.
9701 (reinit_frame_cache): Ditto.
9702
71d6c7b1
AC
97032002-05-04 Andrew Cagney <ac131313@redhat.com>
9704
9705 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9706 maintainer.
9707
cda6c68a
JB
97082002-05-04 Jim Blandy <jimb@redhat.com>
9709
9710 * gdbtypes.c (replace_type): Doc fix.
9711
5c1c87f0
AC
97122002-05-04 Andrew Cagney <ac131313@redhat.com>
9713
9714 * valprint.c (strcat_longest): Delete commented out function.
9715 Update copyright.
9716
cd9bfe15
AC
97172002-05-04 Andrew Cagney <ac131313@redhat.com>
9718
9719 * MAINTAINERS: Mark a29k as deleted.
9720 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9721 Move new configurations to the top.
9722 * configure.tgt: Remove a29k.
9723 * config/a29k/tm-vx29k.h: Delete.
9724 * config/a29k/vx29k.mt: Delete.
9725 * config/a29k/tm-a29k.h: Delete.
9726 * config/a29k/a29k-udi.mt: Delete.
9727 * config/a29k/a29k.mt: Delete.
9728 * a29k-tdep.c: Delete.
9729 * remote-udi.c: Delete.
9730 * remote-mm.c: Delete.
9731 * remote-eb.c: Delete.
9732 * remote-adapt.c: Delete.
9733 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9734 * config/s390/s390x.mt: Ditto.
9735 * config/s390/s390.mt: Ditto.
9736 * config/sparc/sparclynx.mh: Ditto.
9737 * config/sparc/linux.mh: Ditto.
9738 * config/pa/hppaosf.mh: Ditto.
9739 * config/pa/hppabsd.mh: Ditto.
9740 * config/ns32k/nbsd.mt: Ditto.
9741 * config/mips/vr5000.mt: Ditto.
9742 * config/m68k/sun3os4.mh: Ditto.
9743 * config/m68k/nbsd.mt: Ditto.
9744 * config/m68k/m68klynx.mh: Ditto.
9745 * config/m32r/m32r.mt: Ditto.
9746 * config/i386/x86-64linux.mt: Ditto.
9747 * config/i386/nbsdelf.mt: Ditto.
9748 * config/i386/nbsd.mt: Ditto.
9749 * config/i386/i386lynx.mh: Ditto.
9750
bf0c5130
AC
97512002-05-04 Andrew Cagney <ac131313@redhat.com>
9752
9753 * target.c (debug_print_register): New function. Handle oversize
9754 registers.
9755 (debug_to_fetch_registers): Call.
9756 (debug_to_store_registers): Call.
9757
2ae1c2d2
JB
97582002-05-03 Jim Blandy <jimb@redhat.com>
9759
13a393b0
JB
9760 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9761 (read_type): Doc fix.
9762 * gdbtypes.c (replace_type): Doc fix.
9763
2ae1c2d2
JB
9764 * stabsread.c (multiply_defined_struct): New complaint.
9765 (read_struct_type): If the type we were passed isn't empty, or
9766 incomplete, don't read the new struct type into it; complain,
9767 and return the original type unchanged. Take a new `type_code'
9768 argument, which is the type code for the new type.
9769 (read_type): Rather than storing the type's type code here, pass
9770 it as an argument to read_struct_type, and let that take care of
9771 storing it. That way, we don't overwrite the original type code,
9772 so read_struct_type can use it to decide whether we're overwriting
9773 something we shouldn't.
9774 (complain_about_struct_wipeout): New function.
9775
8de9bdc4
AC
97762002-05-03 Andrew Cagney <ac131313@redhat.com>
9777
9778 * gdbarch.sh: Assert that gdbarch is non-NULL.
9779 * gdbarch.c: Regenerate.
9780
f773fdbb
JM
97812002-05-03 Jason Merrill <jason@redhat.com>
9782
9783 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9784 and return NULL.
9785
0e04a514
ML
97862002-05-03 Michal Ludvig <mludvig@suse.cz>
9787
9788 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9789 (x86_64_dwarf2gdb_regno_map_length),
9790 (x86_64_dwarf2_reg_to_regnum): Added.
9791 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9792 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9793 (_initialize_x86_64_tdep): Synced with the change above.
9794 (x86_64_skip_prologue): Reformulated message.
9795
065432a8
PM
97962002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9797
9798 * f-exp.y: Also use new prev_lexptr variable
9799 to improve error reporting. Based on Michael Snyder
9800 2002-04-24 dated patch to c-exp.y.
9801 * jv-exp.y: Likewise.
9802 * m2-exp.y: Likewise.
9803
a3162708
EZ
98042002-05-02 Elena Zannoni <ezannoni@redhat.com>
9805
9806 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9807 we are dealing with vectors.
9808
03620c38
PM
98092002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9810
9811 * config/m68k/tm-nbsd.h: Obvious fix,
9812 correct machine name.
9813
6604db2e
PM
98142002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9815
9816 * p-typeprint.c (pascal_type_print_base): Add support
9817 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9818
0906b739
PM
98192002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9820
9821 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9822 for fondamental pascal 'char' type.
9823
e2625b33
PM
98242002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9825
9826 * p-lang.h (is_pascal_string_type): Declaration changed,
9827 new sixth argument of type char ** added.
361d1df0 9828 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9829 changed. Args length_pos, length_size, string_pos, char_size
9830 can now be NULL. New argument arrayname set to the field
9831 name of the char array. Return value set to char array
9832 field index plus one.
361d1df0 9833 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9834 is_pascal_string_type function.
9835
cf17c188
AC
98362002-05-02 Andrew Cagney <cagney@redhat.com>
9837
9838 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9839 <cagney@redhat.com> change.
9840 * gdbarch.c: Regenerate.
9841
52bca491
AC
98422002-05-02 Andrew Cagney <cagney@redhat.com>
9843
9844 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9845 before probing for a new one. Detect errorenous gdbarch_init
9846 functions.
9847 * gdbarch.c: Regenerate.
9848
d5e72505
AC
98492002-05-01 Andrew Cagney <cagney@redhat.com>
9850
9851 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9852 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9853 * config/v850/tm-v850.h: Ditto. Update copyright.
9854
af566d9f
AC
98552002-04-30 Andrew Cagney <ac131313@redhat.com>
9856
9857 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9858 current_gdbarch.
9859
880d85fa
MS
98602002-04-30 Michael Snyder <msnyder@redhat.com>
9861
94c30b78
MS
9862 * arm-tdep.c: Whitespace clean-ups.
9863 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9864 should have been removed as part of 4/24 change.
9865
6f5987a6
KB
98662002-04-30 Kevin Buettner <kevinb@redhat.com>
9867
9868 * rs6000-tdep.c: Added comment describing how fpscr register
9869 numbers were chosen.
9870
1a113c93
MS
98712002-04-30 Michael Snyder <msnyder@redhat.com>
9872
9873 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9874
9a6f53fe
EZ
98752002-04-29 Elena Zannoni <ezannoni@redhat.com>
9876
9877 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9878 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9879 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9880
11ed25ac
KB
98812002-04-29 Kevin Buettner <kevinb@redhat.com>
9882
9883 From Louis Hamilton <hamilton@redhat.com>:
9884 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9885 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9886 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9887 not bfd-private xcoff data, to determine wordsize.
9888 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9889
ae232405
AC
98902002-04-29 Andrew Cagney <ac131313@redhat.com>
9891
9892 GDB 5.2 released from 5.2 branch.
9893
91fd20f7
ML
98942002-04-29 Michal Ludvig <mludvig@suse.cz>
9895
9896 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9897 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9898 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9899
2dc5091b
EZ
99002002-04-29 Elena Zannoni <ezannoni@redhat.com>
9901
9902 * rs6000-tdep.c (rs6000_extract_return_value,
9903 rs6000_store_return_value): Handle returning vectors.
9904 (rs6000_gdbarch_init): Use
9905 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9906 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9907 New function.
9908 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9909 vectors.
9910 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9911 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9912
2b9848d8
PM
99132002-04-24 Pierre Muller <ics.u-strasbg.fr>
9914
9915 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9916 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9917 with fprintf_unfiltered (gdb_stderr,...).
9918
f8d17dc5
PM
99192002-04-24 Pierre Muller <ics.u-strasbg.fr>
9920
9921 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9922 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9923 Replace fprintf (stderr,...
9924 with fprintf_unfiltered (gdb_stderr,....
9925 * remote-es.c: Likewise.
9926 * remote-os9k.c: Likewise.
9927 * remote-st.c: Likewise.
9928
2f2f1ad1
AS
99292002-04-28 Andreas Schwab <schwab@suse.de>
9930
9931 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9932 linux-proc.o and gcore.o.
9933
b6779aa2
AC
99342002-04-26 Michal Ludvig <mludvig@suse.cz>
9935
9936 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9937 code without frame pointers.
9938
7e57f5f4
AC
99392002-04-26 Andrew Cagney <ac131313@redhat.com>
9940
9941 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9942 ON_STACK is needed.
9943
2ceb85d0
BE
99442002-04-26 Ben Elliston <bje@redhat.com>
9945
9946 * target.c (do_xfer_memory): Correct reference to the new option
9947 "trust-readonly-sections".
9948
f5f8a009
EZ
99492002-04-26 Elena Zannoni <ezannoni@redhat.com>
9950
9951 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9952 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9953 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9954 vectors.
9955 (read_array_type): Record the fact that this array type is really a
9956 vector (i.e. are passed in by value).
9957
5868c862
JT
99582002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9959
9960 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9961 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9962 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9963 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9964 * alpha-linux-tdep.c: Include frame.h.
9965 (alpha_linux_sigcontext_addr): New function.
9966 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9967 alpha_linux_sigcontext_addr.
9968 * alpha-osf1-tdep.c: Include gdbcore.h.
9969 (alpha_osf1_sigcontext_addr): New function.
9970 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9971 alpha_osf1_sigcontext_addr.
9972 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9973 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9974
bfb01f37
AC
99752002-04-26 Andrew Cagney <ac131313@redhat.com>
9976
361d1df0 9977 * stack.c (selected_frame_level):
bfb01f37
AC
9978 (select_frame): Do not set selected_frame_level.
9979 * frame.h (selected_frame_level): Delete declaration.
9980
15813d3f
AC
99812002-04-26 Andrew Cagney <ac131313@redhat.com>
9982
9983 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9984 convert_from_func_ptr-addr when AIX / PowerOpen.
9985
6096c27a
AC
99862002-04-25 Andrew Cagney <ac131313@redhat.com>
9987
9988 * valops.c (hand_function_call): Call
9989 generic_save_call_dummy_addr.
9990 * frame.h (generic_save_call_dummy_addr): Declare.
9991 * blockframe.c (struct dummy_frame): Add fields call_lo and
9992 call_hi.
9993 (generic_find_dummy_frame): Check for PC in range call_lo to
9994 call_hi instead of entry_point_address.
9995 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9996 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9997 (generic_save_call_dummy_addr): New function.
9998
f510d44e
DM
99992002-04-24 David S. Miller <davem@redhat.com>
10000
10001 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10002 sparc_skip_prologue.
10003 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10004 information to find prologue when possible.
10005 (sparc_prologue_frameless_p): Call examine_prologue directly.
10006 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10007 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10008 second argument.
10009 (SKIP_PROLOGUE): Likewise.
10010
15d72a92
JT
100112002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10012
10013 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10014 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10015 indicate that the condition it was testing is always true.
10016 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10017 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10018 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10019
accc6d1f
JT
100202002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10021
10022 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10023 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10024 tdep->jb_pc and tdep->jb_elt_size.
10025 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10026 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10027 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10028 * alpha-nat.c (get_longjmp_target): Remove.
10029 (JB_ELEMENT_SIZE): Ditto.
10030 (JB_PC): Ditto.
10031 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10032 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10033 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10034 to alpha_get_longjmp_target.
10035 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10036 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10037 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10038
1bfdc549
AC
100392002-04-25 Andrew Cagney <ac131313@redhat.com>
10040
10041 * README: Update to GDB 5.2.
10042
1bd316f0
AC
100432002-04-25 Andrew Cagney <ac131313@redhat.com>
10044
10045 * gdbarch.sh (LC_ALL): Set to `c'.
10046
2e5ff58c
TR
100472002-04-25 Theodore A. Roth <troth@verinet.com>
10048
10049 * avr-tdep.c: Ran through gdb_indent.sh.
10050
e33ce519
TR
100512002-04-25 Theodore A. Roth <troth@verinet.com>
10052
10053 * MAINTAINERS: Add myself as AVR maintainer.
10054 * NEWS: Note new target avr.
10055
8818c391
TR
100562002-04-25 Theodore A. Roth <troth@verinet.com>
10057
10058 * Makefile.in: Add support for AVR target.
10059 * configure.tgt: Add support for AVR target.
10060 * avr-tdep.c: New file
10061 * config/avr/avr.mt: New file.
10062
79509c2d
TR
100632002-04-25 Theodore A. Roth <troth@verinet.com>
10064
10065 * MAINTAINERS: Add myself to write-after-approval.
10066
dac8068e
PM
100672002-04-24 Pierre Muller <ics.u-strasbg.fr>
10068
10069 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10070 with fprintf_unfiltered (gdb_stderr,....
10071
25bf3106
PM
100722002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10073
10074 Fix PR gdb/508.
10075 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10076
24467a86
PM
100772002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10078
10079 * p-exp.y: Also use new prev_lexptr variable
10080 to improve error reporting. Based on Michael Snyder
10081 2002-04-24 dated patch to c-exp.y.
10082
95b80706
JT
100832002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10084
10085 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10086 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10087 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10088 to 0.
10089 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10090 and struct value.
10091 (FUNCTION_START_OFFSET): Remove.
10092 (BREAKPOINT): Ditto.
10093
e90cc612
JT
100942002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10095
10096 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10097 * NEWS: Ditto.
10098
6c72f9f9
JT
100992002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10100
10101 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10102 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10103 alpha_linux_pc_in_sigtramp.
10104 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10105 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10106 alpha_osf1_pc_in_sigtramp.
10107 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10108 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10109 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10110 alphafbsd_pc_in_sigtramp.
10111 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10112 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10113 alphanbsd_pc_in_sigtramp.
10114 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10115 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10116
5e4f3379
JT
101172002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10118
10119 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10120
da8ca43d
JT
101212002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10122
10123 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10124 alphanbsd-tdep.c.
10125 (alphanbsd-nat.o): New dependency list.
10126 (alphanbsd-tdep.o): Ditto.
10127 * NEWS: Note new native NetBSD/alpha configuration.
10128 * alphanbsd-nat.c: New file.
10129 * alphanbsd-tdep.c: Ditto.
10130 * configure.host (alpha*-*-netbsd*): New host.
10131 * configure.tgt (alpha*-*-netbsd*): New target.
10132 * config/alpha/nbsd.mh: New file.
10133 * config/alpha/nbsd.mt: Ditto.
10134 * config/alpha/nm-nbsd.h: Ditto.
10135 * config/alpha/tm-nbsd.h: Ditto.
10136
36a6271d
JT
101372002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10138
10139 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10140 (alpha-osf1-tdep.o): New dependency list.
10141 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10142 and skip_sigtramp_frame members.
10143 * alpha-linux-tdep.c: Include gdbcore.h.
10144 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10145 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10146 * alpha-osf1-tdep.c: New file.
10147 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10148 alpha-osf1-dep.c.
10149 (alpha_frame_past_sigtramp_frame): New function.
10150 (alpha_dynamic_sigtramp_offset): Ditto.
10151 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10152 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10153 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10154 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10155 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10156 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10157 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10158 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10159 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10160 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10161 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10162 to find_solib_trampoline_target.
10163 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10164 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10165 (SKIP_TRAMPOLINE_CODE): Remove.
10166 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10167 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10168 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10169 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10170 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10171 (PROC_SIGTRAMP_MAGIC): Ditto.
10172 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10173 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10174 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10175 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10176 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10177
2f4bc57b
JT
101782002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10179
10180 * NEWS: Note that Alpha targets are now multi-arch.
10181
665132f9
MS
101822002-04-24 Michael Snyder <msnyder@redhat.com>
10183
10184 * parser-defs.h (prev_lexptr): New external variable.
10185 * parse.c (parse_exp_1): Set prev_lexptr to null before
10186 calling the language-specific parser.
10187 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10188 (yyerror): Use prev_lexptr in error reporting.
10189
32872fa7
DJ
101902002-04-24 Daniel Jacobowitz <drow@mvista.com>
10191
10192 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10193 * gregset.h: If FILL_FPXREGSET is defined, provide
10194 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10195 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10196 is defined, call fill_fpxregset.
10197
57e76fac
MS
101982002-04-24 Roland McGrath <roland@frob.com>
10199
10200 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10201 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10202 (supply_gregset, supply_fpregset): New functions.
10203
10204 * gnu-nat.c (gnu_find_memory_regions): New function.
10205 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10206 (gnu_xfer_memory): Add a cast.
10207
f43845b3
MS
102082002-04-24 Michael Snyder <msnyder@redhat.com>
10209
361d1df0 10210 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
10211 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10212 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 10213 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
10214 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10215 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10216
a0abec03
AC
10217Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10218
10219 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10220 NUM_PSEUDO_REGS can be used.
10221
d7bd68ca
AC
102222002-04-24 Andrew Cagney <ac131313@redhat.com>
10223
10224 * arch-utils.h: Update copyright.
10225
10226 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10227 * gdbarch.h, gdbarch.c: Re-generate.
10228
10229 * inferior.h (IN_SIGTRAMP): Delete definition.
10230 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10231 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10232
10233 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10234 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10235 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10236 (find_proc_framesize): Ditto.
10237 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10238 (alpha_init_extra_frame_info): Ditto.
10239 * infrun.c (handle_inferior_event): Ditto.
10240 (handle_inferior_event): Ditto.
10241 (check_sigtramp2): Ditto.
10242 * blockframe.c (create_new_frame): Ditto.
10243 (get_prev_frame): Ditto.
10244 * ppc-linux-tdep.c: Update comments.
10245 * i386-linux-tdep.c: Update comments.
10246 * breakpoint.c (bpstat_what): Update comment.
10247
4867e41e
DM
102482002-04-24 David S. Miller <davem@redhat.com>
10249
21d83aa5
DM
10250 * i960-tdep.c (register_in_window_p): New function.
10251 (i960_find_saved_register): Use it instead of
10252 REGISTER_IN_WINDOW_P.
10253 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10254
4867e41e
DM
10255 * symtab.h (find_stab_function_addr): Kill extern.
10256 * minsyms.c (find_stab_function_addr): Remove from here...
10257 * dbxread.c: ... to here, and mark it static.
10258
69cdf6a2
DM
102592002-04-20 David S. Miller <davem@redhat.com>
10260
10261 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10262 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10263
5a595886
DM
102642002-04-21 David S. Miller <davem@redhat.com>
10265
10266 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10267 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10268 (vx_write_register): Likewise.
10269
1da1a192
JB
102702002-04-23 J. Brobecker <brobecker@gnat.com>
10271
10272 * source.c (is_regular_file): New function.
10273 (openp): Check wether file to open is a regular file
10274 to avoid opening directories.
10275
baa6f10b
JT
102762002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10277
10278 * findvar.c (extract_signed_integer): Cast printf argument
10279 to suppress format warning.
10280 (extract_unsigned_integer): Likewise.
10281 * infcmd.c (registers_info): Likewise.
10282 * top.c (get_prompt_1): Likewise.
10283 * valops.c (value_assign): Likewise.
10284 * valprint.c (print_decimal): Likewise.
10285
b2c4da81
L
102862002-04-22 H.J. Lu (hjl@gnu.org)
10287
10288 * c-exp.y (typebase): Support
361d1df0 10289
b2c4da81
L
10290 [long|long long|short] [signed|unsigned] [int|]
10291
10292 and
10293
10294 signed [long|long long|short] int
10295
f267bd6a
JT
102962002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10297
10298 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10299 and vax-tdep.h.
10300 * vax-tdep.h: New file.
10301 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10302 Make several routines static.
10303 (vax_get_saved_register): New function.
10304 (vax_gdbarch_init): New function.
10305 (_initialize_vax_tdep): Register vax_gdbarch_init.
10306 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10307 Remove macros now under the control of gdbarch.
10308
da3c6d4a
MS
103092002-04-22 Michael Snyder <msnyder@redhat.com>
10310
11d3b27d
MS
10311 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10312 Some whitespace and coding standards tweaks.
da3c6d4a 10313
a33f7558
JT
103142002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10315
10316 * vax-tdep.c: Include regcache.h.
10317 (vax_call_dummy_words): New.
10318 (sizeof_vax_call_dummy_words): New.
10319 (vax_fix_call_dummy): New function.
10320 (vax_saved_pc_after_call): Ditto.
10321 * config/vax/tm-vax.h: Don't include regcache.h.
10322 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10323 (CALL_DUMMY): Remove.
10324 (CALL_DUMMY_WORDS): Define.
10325 (SIZEOF_CALL_DUMMY_WORDS): Define.
10326 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10327
47a73475
MS
103282002-04-18 Michael Snyder <msnyder@redhat.com>
10329
10330 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10331
52efde73
JT
103322002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10333
10334 * vax-tdep.c (vax_frame_chain): New function.
10335 (vax_push_dummy_frame): Ditto.
10336 (vax_pop_frame): Ditto.
10337 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10338 (FRAMELESS_FUNCTION_INVOCATION): Use
10339 generic_frameless_function_invocation_not.
10340 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10341 (POP_FRAME): Use vax_pop_frame.
10342
ea74468c
JT
103432002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10344
10345 * vax-tdep.c (vax_store_struct_return): New function.
10346 (vax_extract_return_value): Ditto.
10347 (vax_store_return_value): Ditto.
10348 (vax_extract_struct_value_address): Ditto.
10349 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10350 vax_store_struct_return.
10351 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10352 (STORE_RETURN_VALUE): Use vax_store_return_value.
10353 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10354
5516aa92
JT
103552002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10356
10357 * vax-tdep.c (vax_frame_saved_pc): New function.
10358 (vax_frame_args_address_correct): Ditto.
10359 (vax_frame_args_address): Ditto.
10360 (vax_frame_locals_address): Ditto.
10361 (vax_frame_num_args): Move code to be in proximity to
10362 other frame-related functions.
10363 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10364 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10365 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10366 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10367 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10368
36af0b35
L
103692002-04-22 H.J. Lu (hjl@gnu.org)
10370
10371 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10372 includedir.
10373
ab62c900
JT
103742002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10375
10376 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10377 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10378 (FRAME_INIT_SAVED_REGS): New macro.
10379
7232b100
JT
103802002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10381
10382 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10383
b70d2aee
JT
103842002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10385
10386 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10387 where needed.
10388 (fetch_osf_core_registers): Likewise.
10389 (supply_gregset): Likewise.
10390
a0e8a2d1 103912002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 10392
a0e8a2d1
JB
10393 * symfile.h (get_section_index): Define.
10394 * symfile.c (get_section_index): New function.
10395 * mdebugread.c (SC_IS_SBSS): New macro.
10396 (SC_IS_BSS): Return true for the scBss storage class only, as
10397 the scSBss storage class refers to the .sbss section.
10398 (parse_partial_symbols): Discard the symbols which associated
10399 section does not exist.
10400 Make sure to use the .sbss section index for symbols which
10401 storage class is scBss, rather than using the .bss section index.
10402
51eb8b08
JT
104032002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10404
10405 * vax-tdep.c: Update copyright years.
10406 (vax_register_name): New function.
10407 (vax_register_byte): Ditto.
10408 (vax_register_raw_size): Ditto.
10409 (vax_register_virtual_size): Ditto.
10410 (vax_register_virtual_type): Ditto.
10411 * config/vax/tm-vax.h: Update copyright years.
10412 (REGISTER_NAMES): Remove.
10413 (REGISTER_NAME): Define.
10414 (REGISTER_BYTE): Use vax_register_byte.
10415 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10416 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10417 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10418
6cc1c0a8
AC
104192002-04-21 Andrew Cagney <ac131313@redhat.com>
10420
10421 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10422 declaration
10423 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10424
9319a2fe
DM
104252002-04-21 David S. Miller <davem@redhat.com>
10426
10427 * arch-utils.c (generic_prologue_frameless_p): Kill
10428 SKIP_PROLOGUE_FRAMELESS_P code.
10429 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10430 references.
10431 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10432 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10433 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10434 references.
10435 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10436 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10437 (sparc_gdbarch_init): Pass it to
10438 set_gdbarch_prologue_frameless_p.
a0e8a2d1 10439
e9ed6d01
JT
104402002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10441
10442 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10443 (alphabsd-nat.o): New dependency list.
10444
36012033
JT
104452002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10446
10447 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10448 alphafbsd-tdep.c.
10449 (alpha-linux-tdep.o): New dependency list.
10450 (alphafbsd-tdep.o): Likewise.
10451
3379287a
JT
104522002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10453
10454 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10455 to here...
10456 * alpha-tdep.c: ...from here.
10457 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10458
4bcbd6cb
JT
104592002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10460
10461 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10462 prototype from here...
10463 * alpha-tdep.h: ...to here.
10464
b31da25e
AC
104652002-04-21 Andrew Cagney <ac131313@redhat.com>
10466
10467 * frame.h (selected_frame_level): Document as deprecated.
10468 (frame_relative_level): Declare.
10469 * stack.c (frame_relative_level): New function.
10470 (selected_frame_level): Document as deprecated.
10471 (select_frame): Do not set the selected_frame_level.
10472
10473 * stack.c (frame_info, record_selected_frame): Update.
10474 (frame_command, current_frame_command): Update.
10475 (up_silently_base, up_command, down_silently_base): Update.
10476 (down_command): Update.
10477 * inflow.c (kill_command): Update.
10478 * tracepoint.c (finish_tfind_command): Update.
10479 * corelow.c (core_open): Update.
10480 * thread.c (info_threads_command): Update.
10481 (do_captured_thread_select): Update.
10482 * infcmd.c (finish_command): Update.
10483 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10484
9c1d6fe5
JT
104852002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10486
10487 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10488
ab89facf
AC
104892002-04-21 Andrew Cagney <ac131313@redhat.com>
10490
10491 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10492 type const.
10493
82a4efa1
JT
104942002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10495
10496 * alphafbsd-tdep.c: Update copyright years. Include
10497 alpha-tdep.h.
10498 (alphafbsd_use_struct_convention): Make static.
10499 (alphafbsd_init_abi): New function.
10500 (_initialize_alphafbsd_tdep): New function.
10501 * config/alpha/tm-fbsd.h: Update copyright years.
10502 (USE_STRUCT_CONVENTION): Remove.
10503
44dffaac
JT
105042002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10505
10506 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10507 an Alpha ABI variant.
10508 (alpha_abi_handler_list): Declare.
10509 (alpha_gdbarch_register_os_abi): New function.
10510 (alpha_gdbarch_init): Give registered ABI variant handlers a
10511 chance to tweak the gdbarch once we have set up defaults.
10512 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10513
65585be4
JT
105142002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10515
10516 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10517 to standard_coerce_float_to_double.
10518 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10519
d9b023cc
JT
105202002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10521
10522 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10523 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10524 from gdbarch_tdep rather than a constant.
10525 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10526 the default text address for all Alpha Unix ABIs.
10527 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10528 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10529
dc129d82
JT
105302002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10531
10532 * alpha-tdep.h: New file. Includes several Alpha target constants
10533 taken from...
10534 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10535 let gdbarch deal with.
10536 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10537 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10538 to dependency list.
10539 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10540 Alpha target register names.
10541 * alphabsd-nat.c: Likewise.
10542 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10543 Alpha target register names. Make serveral routines static.
10544 (alpha_get_saved_register): New function.
10545 (alpha_abi_names): New.
10546 (process_note_abi_tag_sections): New function.
10547 (get_elfosabi): New function.
10548 (alpha_gdbarch_init): New function.
10549 (alpha_dump_tdep): New function.
10550 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10551
d49d1e0a
AC
105522002-04-21 Andrew Cagney <ac131313@redhat.com>
10553
10554 * frame.c (find_saved_register): Delete #ifdef
10555 HAVE_REGISTER_WINDOWS code.
10556 * config/sparc/tm-sparc.h: Update comments.
10557 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10558
92e8c9ed
AC
105592002-04-21 Andrew Cagney <ac131313@redhat.com>
10560
10561 * i960-tdep.c (i960_find_saved_register): New function.
10562 (i960_get_saved_register): New function.
10563 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10564 (i960_get_saved_register): Declare.
10565 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10566
e1925118
DM
105672002-04-20 David S. Miller <davem@redhat.com>
10568
10569 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10570
29673b29
AC
105712002-04-20 Andrew Cagney <ac131313@redhat.com>
10572
10573 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10574 instead of NUM_PSEUDO_REGS.
10575
6c86dcd5
DM
105762002-04-20 David S. Miller <davem@redhat.com>
10577
10578 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10579 GDB_MULTI_ARCH_PARTIAL
10580 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10581 define, let tm-sp64.h do it.
10582
aa40ec90
JT
105832002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10584
10585 * frame.c (find_saved_register): Avoid a NULL pointer
10586 dereference and actually walk the frame list.
10587
0f79675b
AC
105882002-04-20 Andrew Cagney <ac131313@redhat.com>
10589
10590 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10591 sorted in most most-recent-used order. Document.
10592 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10593
f91305dd 105942002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10595
10596 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10597 instead of ->prev.
10598 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10599 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10600 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10601 instead of ->prev.
10602
73d322b1
EZ
106032002-04-19 Elena Zannoni <ezannoni@redhat.com>
10604
10605 Fix PR gdb/471.
10606 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10607 (build_builtin_type_vec128): Ditto.
10608 (append_composite_type_field): Fix calculation of type length in
10609 union case.
10610
ccd9a834
EZ
106112002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10612
10613 * config/djgpp/README: Update.
10614
10615 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10616 compiler warnings.
10617
a57f9e49
JT
106182002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10619
10620 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10621 (alpha_setup_arbitrary_frame): ...to this.
10622 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10623 for alpha_setup_arbitrary_frame.
10624
f4f9705a
AC
106252002-04-18 Andrew Cagney <cagney@redhat.com>
10626
10627 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10628 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10629
f4f9705a
AC
10630 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10631 * target.h (memory_breakpoint_from_pc): Update declaration.
10632 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10633
10634 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10635 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10636 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10637 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10638 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10639 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10640 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10641 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10642 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10643 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10644 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10645 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10646
10647 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10648 const pointer.
10649 * monitor.c (monitor_insert_breakpoint): Ditto.
10650 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10651
10652 * config/mcore/tm-mcore.h: Update copyright.
10653 * mem-break.c: Ditto.
10654 * xstormy16-tdep.c: Ditto.
10655
29f319b8
PM
106562002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10657
10658 * p-exp.y: Add precedence rule for '^' token.
10659 This removes the shift/reduce conflicts.
10660 Remove the comment concerning these shift/reduce conflicts.
10661
ebeac11a
EZ
106622002-04-18 Elena Zannoni <ezannoni@redhat.com>
10663
10664 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10665 (registers_powerpc_nofp): New register set for processors
10666 without floating point unit.
10667
27c31547
DM
106682002-04-18 David S. Miller <davem@redhat.com>
10669
10670 * MAINTAINERS: Add myself to write-after-approval.
10671
47a73475
MS
106722002-04-17 Michael Snyder <msnyder@redhat.com>
10673
10674 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10675
953836b2
AC
106762002-04-17 Andrew Cagney <ac131313@redhat.com>
10677
10678 * rs6000-tdep.c (frame_initial_stack_address): Use
10679 frame_register_read to read the alloca_reg.
10680
8b0d4340
AC
106812002-04-17 Andrew Cagney <ac131313@redhat.com>
10682
10683 * frame.c (find_saved_register): Find saved registers in the next
10684 not prev frame.
10685 Fix PR gdb/365.
10686
d8864532
AC
106872002-04-17 Andrew Cagney <ac131313@redhat.com>
10688
10689 * gdbarch.sh (LANG): Set to ``c''.
10690
36cc83a3 106912002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10692
36cc83a3 10693 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10694
2f4150cc 106952002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10696
10697 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10698 Update copyright.
10699
628703c6 10700 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10701 Also fix PR gdb/391.
361d1df0 10702
56157b4a
AC
107032002-04-14 Andrew Cagney <ac131313@redhat.com>
10704
10705 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10706 * aclocal.m4, configure: Re-generate.
10707 Fix PR gdb/391.
361d1df0 10708
6d1e3329
EZ
107092002-04-14 Elena Zannoni <ezannoni@redhat.com>
10710
10711 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10712 instead of tm_print_insn.
10713
cb06fa07
EZ
107142002-04-14 Elena Zannoni <ezannoni@redhat.com>
10715
10716 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10717
f208ba17
AC
107182002-04-14 Andrew Cagney <ac131313@redhat.com>
10719
10720 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10721 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10722 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10723
20f01a46
DH
107242002-04-12 Don Howard <dhoward@redhat.com>
10725
10726 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10727 max_user_call_depth.
10728 (init_cmd_lists): Initialize the new value;
10729 * cli/cli-script.c (execute_user_command): Limit the call depth of
10730 user defined commands. This avoids a core-dump when user commands
10731 are infinitly recursive.
10732
a88376a3
KB
107332002-04-12 Kevin Buettner <kevinb@redhat.com>
10734
10735 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10736 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10737 from tdep struct instead of DEFAULT_LR_SAVE.
10738 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10739 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10740 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10741
f2172603
MS
107422002-04-12 Michael Snyder <msnyder@redhat.com>
10743
694f61fb 10744 * Remote.c: Spelling fix.
20fe79c8
MS
10745 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10746 If no symbol found for "sbrk", try "_sbrk".
10747 (make_output_phdrs): Use bfd_section_name.
10748 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10749 * eval.c: Indentation fix-ups.
169a7369
MS
10750 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10751 in case it gets applied to an address that is already
10752 in the instruction space.
de74f71f
MS
10753 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10754 * symfile.c: Fix indentation, long lines.
f2172603
MS
10755 * source.c: White space fix-up.
10756
cda5a58a
AC
107572002-04-12 Andrew Cagney <cagney@redhat.com>
10758
10759 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10760 * frame.c (frame_register_read): New function. Return non-zero on
10761 success.
10762 (read_relative_register_raw_bytes_for_frame): Delete.
10763 (read_relative_register_raw_bytes): Delete.
10764 * frame.h (frame_register_read): Declare.
10765 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10766 * sh-tdep.c: Ditto.
10767 * infcmd.c (do_registers_info): Ditto.
10768 * hppa-tdep.c: Ditto.
10769 * rs6000-tdep.c: Ditto.
10770 * h8500-tdep.c: Ditto.
10771 * mips-tdep.c: Ditto.
10772 * h8300-tdep.c: Ditto.
10773 * z8k-tdep.c: Ditto.
10774
2ea5f656
KB
107752002-04-12 Kevin Buettner <kevinb@redhat.com>
10776
10777 From Jimi X <jimix@watson.ibm.com>:
10778 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10779 64-bit SysV ABI.
10780
27b15785
KB
107812002-04-12 Kevin Buettner <kevinb@redhat.com>
10782
10783 From Jimi X <jimix@watson.ibm.com>:
10784 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10785 bfd info.
10786
5d57ee30
KB
107872002-04-12 Kevin Buettner <kevinb@redhat.com>
10788
10789 From Jimi X <jimix@watson.ibm.com>:
10790 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10791 register sets for these processor variants.
10792
bc1e36ca
DJ
107932002-04-11 Daniel Jacobowitz <drow@mvista.com>
10794
bc1e36ca
DJ
10795 * regformats/reg-ppc.dat: Support FPSCR.
10796
e3f36dbd
KB
107972002-04-11 Kevin Buettner <kevinb@redhat.com>
10798
10799 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10800 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10801 Add fpscr as an invalid/unfetchable register.
10802 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10803 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10804 (fill_fpregset): Add support for register fpscr.
10805 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10806 (fill_gregset): Account for the fact that register ``mq'' might
10807 not exist.
10808 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10809 (registers_power): Add fpscr to register set at slot 71.
10810 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10811 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10812
943c9c25
MS
108132002-04-11 Michael Snyder <msnyder@redhat.com>
10814
10815 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10816 * configure: Regenerate.
10817 * config.in: Regenerate.
10818 * acconfig.h: Add define for _SYSCALL32.
10819 * core-sol2.c: Remove #define _SYSCALL32.
10820 * solib-legacy.c: Remove #define _SYSCALL32.
10821
d8c0a2e7
AC
108222002-04-10 Andrew Cagney <ac131313@redhat.com>
10823
10824 * stack.c (select_frame): Cleanup internal error message, do not
10825 use %p.
10826
7cc19214
AC
108272002-04-10 Andrew Cagney <ac131313@redhat.com>
10828
10829 * stack.c (select_frame): Check that selected_frame and the
10830 specified level are as expected.
10831 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10832 Update copyright.
10833 * frame.h (struct frame_info): Add field `level'. Update
10834 copyright.
10835 Work-in-progress PR gdb/464.
10836
67a2b77e
AC
108372002-04-10 Andrew Cagney <ac131313@redhat.com>
10838
10839 * maint.c (maint_print_section_info): Rename print_section_info.
10840 (print_bfd_section_info, print_objfile_section_info): Update.
10841 * inferior.h (struct gdbarch): Add opaque declaration.
10842 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10843 * gdbarch.h: Regenerate.
10844
8cfda98c
ML
108452002-04-10 Michal Ludvig <mludvig@suse.cz>
10846
10847 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10848 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10849 (kernel_u_size): Added.
10850 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10851 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10852
ca439ad2 108532002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10854
ca439ad2
JI
10855 * valarith.c (find_size_for_pointer_math): New function, either returns
10856 the size for a pointer's target, returns 1 for void *, or errors for
10857 incomplete types.
10858 (value_add, value_sub): use find_size_for_pointer_math.
10859
2f2893d9
DJ
108602002-04-09 Daniel Jacobowitz <drow@mvista.com>
10861
10862 * linux-low.c (linux_look_up_symbols): New hook.
10863 (linux_target_ops): Add linux_look_up_symbols.
10864 * remote-utils.c (decode_address): New function.
10865 (look_up_one_symbol): New function.
10866 * server.c (handle_query): Call target look_up_symbols hook.
10867 * server.h (look_up_one_symbol): Add prototype.
10868 * target.h (struct target_ops): Add look_up_symbols hook.
10869
96cb11df
AC
108702002-04-09 Andrew Cagney <ac131313@redhat.com>
10871
10872 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10873 override FP_REGNUM with frame->fp. Update copyright.
10874 * parse.c (num_std_regs, std_regs): Delete.
10875 (target_map_name_to_register): Do not search std_regs. Update
10876 function description.
10877 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10878 declarations. Update copyright.
10879 Fix PR gdb/251.
361d1df0 10880
97658e92
DJ
108812002-04-09 Daniel Jacobowitz <drow@mvista.com>
10882
10883 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10884 after the last symbol in a block.
10885
6044e3eb
PM
108862002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10887
10888 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10889 is non zero as a found symbol.
10890
0406ec40
AC
108912002-04-08 Andrew Cagney <ac131313@redhat.com>
10892
10893 * findvar.c: Include "builtin-regs.h".
10894 (value_of_register): Call value_of_builtin_reg when applicable.
10895 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10896 (target_map_name_to_register): Call
10897 builtin_reg_map_name_to_regnum.
10898 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10899 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10900 (builtin_regs_h): Define.
10901 (builtin-regs.o): New target.
10902 (findvar.o): Add $(builtin_regs_h).
10903 * builtin-regs.c, builtin-regs.h: New files.
10904 * std-regs.c: New file.
10905 Partial fix for PR gdb/251.
10906
56a6dfb9
KB
109072002-04-08 Kevin Buettner <kevinb@redhat.com>
10908
10909 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10910 it's no longer required.
10911
3a808432
AC
109122002-04-08 Andrew Cagney <ac131313@redhat.com>
10913
10914 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10915
7c40d541
KB
109162002-04-08 Kevin Buettner <kevinb@redhat.com>
10917
10918 From Jimi X <jimix@watson.ibm.com>:
10919 * rs6000-tdep.c (rs6000_software_single_step): Use
10920 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10921 and size. Use target_insert_breakpoint() and
10922 target_remove_breakpoint() to insert and remove breakpoints
10923 instead of explicit memory reads and writes.
10924
cc9836a8
KB
109252002-04-08 Kevin Buettner <kevinb@redhat.com>
10926
10927 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10928 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10929 ELF_OBJECT_FORMAT ifdef.
10930
7495d1dc
KB
109312002-04-08 Kevin Buettner <kevinb@redhat.com>
10932
10933 From Jimi X <jimix@watson.ibm.com>:
10934 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10935
4288e836
KB
109362002-04-08 Kevin Buettner <kevinb@redhat.com>
10937
10938 From Jimi X <jimix@watson.ibm.com>:
10939 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10940 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10941
a4e4e501
MK
109422002-04-07 Mark Kettenis <kettenis@gnu.org>
10943
10944 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10945 s/asprintf/xasprintf/.
10946 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10947
006defba
AC
109482002-04-07 Andrew Cagney <ac131313@redhat.com>
10949
10950 I believe Jeff Law denies responsability for this one:
10951 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10952 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10953 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10954 Work-around for PR gdb/366.
10955
7aa83cac
EZ
109562002-04-07 Elena Zannoni <ezannoni@redhat.com>
10957
10958 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10959 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10960 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10961
cf1fcca1
EZ
109622002-04-07 Elena Zannoni <ezannoni@redhat.com>
10963
10964 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10965 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10966 information.
10967
3f289e6f
AC
109682002-04-07 Andrew Cagney <ac131313@redhat.com>
10969
10970 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10971 maintainer.
10972
129188f6
AC
109732002-04-07 Andrew Cagney <ac131313@redhat.com>
10974
10975 * README (Reporting Bugs in GDB): Document the bug web page as the
10976 prefered way of submitting bugs.
10977 Fix PR gdb/402.
10978
1200cd6e
AC
109792002-04-06 Andrew Cagney <ac131313@redhat.com>
10980
10981 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10982 -1. Update comment.
10983 * gdbarch.h, gdbarch.c: Re-generate.
10984
2853c33c
AS
109852002-04-07 Andreas Schwab <schwab@suse.de>
10986
10987 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10988 buffer to regcache_collect.
10989
c2169756
AC
109902002-04-06 Andrew Cagney <ac131313@redhat.com>
10991
10992 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10993 * gdbarch.c, gdbarch.h: Re-generate.
10994
25f1b008
AC
109952002-04-06 Andrew Cagney <ac131313@redhat.com>
10996
10997 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10998 declaration. Fix -Werror.
10999
59263426
DJ
110002002-04-05 Daniel Jacobowitz <drow@mvista.com>
11001
11002 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11003 * gdbarch.c: Regenerate.
11004
f5db4da3
MS
110052002-04-05 Michael Snyder <msnyder@redhat.com>
11006
80f8a6eb
MS
11007 * breakpoint.c (clear_command): Rewrite middle section to
11008 combine two loops with identical control conditions.
11009 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
11010 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11011
ad3dcc5c
L
110122002-04-05 H.J. Lu (hjl@gnu.org)
11013
11014 * solib-svr4.c (bkpt_names): Add "__start".
11015
f32e7a74
AC
110162002-04-04 Andrew Cagney <ac131313@redhat.com>
11017
11018 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11019 as test for 64 bit target.
11020
8227c0ff
AC
110212002-04-05 Andrew Cagney <ac131313@redhat.com>
11022
11023 * h8500-tdep.c (h8500_write_fp): Delete function.
11024 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11025 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11026 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11027 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11028 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11029 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11030 (s390_write_fp):
11031 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11032 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11033 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11034 (d10v_write_fp): Delete function.
11035 * inferior.h (write_fp, generic_target_write_fp): Delete
11036 declarations.
11037 * regcache.c (generic_target_write_fp): Delete function.
11038 (write_fp): Delete function.
11039 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11040 * gdbarch.h, gdbarch.c: Regenerate.
11041 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11042 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11043 (sparc64_write_fp): Delete declaration.
11044 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11045 (h8500_write_fp): Delete declaration.
11046
2757dd86
AC
110472002-04-04 Andrew Cagney <ac131313@redhat.com>
11048
11049 * sparc-tdep.c (sparc64_write_fp): Delete.
11050 (sparc_push_dummy_frame): Replace write_fp call with code to store
11051 the FP directly.
11052 (sparc_gdbarch_init): Do not initialize write_fp.
11053
c69255e1
KB
110542002-04-05 Kevin Buettner <kevinb@redhat.com>
11055
11056 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11057 clause.
11058
ae767bfb
JB
110592002-03-29 Jim Blandy <jimb@redhat.com>
11060
11061 * stack.c (get_selected_block): Add new argument `addr_in_block',
11062 used to return the exact code address we used to select the block,
11063 not just the block.
11064 * blockframe.c (get_frame_block, get_current_block): Same.
11065 * frame.h (get_frame_block, get_current_block,
11066 get_selected_block): Update declarations.
11067 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11068 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11069
84d2ac95
MS
110702002-04-05 Michael Snyder <msnyder@redhat.com>
11071
11072 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11073 warning message.
11074
596aa3bf
JB
110752002-04-05 J. Brobecker <brobecker@gnat.com>
11076
11077 * utils.c (xfullpath): New function.
11078 * defs.h (xfullpath): Add declaration.
11079 * source.c (openp): Use xfullpath in place of gdb_realpath to
11080 avoid resolving the basename part of filenames when the
11081 associated file is a symbolic link. This fixes a potential
11082 inconsistency between the filenames known to GDB and the
11083 filenames it prints in the annotations.
11084 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11085 to be able to match a filename with either the real filename, or
11086 the name of any symbolic link to this file.
11087 (lookup_partial_symtab): Ditto.
11088
c02f5703
MS
110892002-04-04 Michael Snyder <msnyder@redhat.com>
11090
11091 * breakpoint.c: Add support for hardware breakpoints in overlays.
11092 (overlay_events_enabled): New state variable.
11093 (insert_breakpoints): Use overlay_events_enabled to decide
11094 whether to attempt to set a breakpoint at the overlay load addr.
11095 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11096 (remove_breakpoint): Use overlay_events_enabled to decide
11097 whether breakpoints need to be removed from overlay load addr.
11098 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11099 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 11100 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
11101 disable_overlay_breakpoints): Update overlay_events_enabled.
11102
5fb290d7
DJ
111032002-04-04 Daniel Jacobowitz <drow@mvista.com>
11104
11105 * dwarf2read.c (struct function_range): New.
11106 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11107 (check_cu_functions): New.
11108 (read_file_scope): Initialize global function lists.
11109 Call dwarf_decode_line after processing children.
11110 (read_func_scope): Add to global function list.
11111 (dwarf_decode_lines): Call check_cu_functions everywhere
11112 record_line is called. Call record_line with a linenumber
11113 of 0 to mark sequence ends.
11114
7b3fabf0
ML
111152002-04-04 Michal Ludvig <mludvig@suse.cz>
11116
361d1df0 11117 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
11118 change sync with glibc.
11119
bce58c09
JB
111202002-04-03 Jim Blandy <jimb@redhat.com>
11121
11122 * configure.in: Call AC_C_INLINE.
11123 * configure: Regenerated.
361d1df0 11124
2fccf04a
DJ
111252002-04-01 Daniel Jacobowitz <drow@mvista.com>
11126
11127 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11128 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11129
2d1bfe2e
MK
111302002-03-31 Mark Kettenis <kettenis@gnu.org>
11131
a5941fbf
MK
11132 * NEWS: Mention gcore support on FreeBSD/i386.
11133
a90cd31d
MK
11134 * fbsd-proc.c: New file.
11135 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11136 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11137
2d1bfe2e
MK
11138 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11139 while statement.
11140
9eb6e5a1
JB
111412002-03-29 Jim Blandy <jimb@redhat.com>
11142
11143 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11144 unescaped newlines in string literals, but newer ones don't. So
11145 escape them.
11146
f02df580
MS
111472002-03-26 Michael Snyder <msnyder@redhat.com>
11148 Andrew Cagney <cagney@redhat.com>
11149
361d1df0 11150 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
11151 restore file to memory.
11152 * cli/cli-dump.h: New file.
11153 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 11154 * NEWS: Mention new commands.
f02df580 11155
109f874e
MS
111562002-03-28 Michael Snyder <msnyder@redhat.com>
11157
11158 * symfile.c (symbol_file_add): Move test for null symbols to later.
11159
520f6ade
AC
111602002-03-27 Andrew Cagney <ac131313@redhat.com>
11161
11162 From veksler at il.ibm.com:
11163 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11164 the xstrduped original path.
11165 Fix PR gdb/417.
11166
d4654627
MS
111672002-03-27 Michael Snyder <msnyder@redhat.com>
11168
11169 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11170 * infcmd.c (_initialize_infcmd): Ditto.
11171 * language.c (_initialize_language): Ditto.
11172 * symfile.c (_initialize_symfile): Ditto.
11173 * top.c (_init_main): Ditto.
11174 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11175
6be8bc0c
EZ
111762002-03-27 Elena Zannoni <ezannoni@redhat.com>
11177
11178 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11179 vector registers handling.
11180 (skip_prologue): Handle new AltiVec instructions. Fill in new
11181 fields of frame data.
11182 (frame_get_saved_regs): Fill in information for AltiVec registers.
11183
12af6855
JB
111842002-03-27 Jim Blandy <jimb@redhat.com>
11185
11186 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11187 a function; leave this macro here to invoke that function.
11188 (symbol_init_mangled_name): Declaration for that function.
11189 * symtab.c (symbol_init_mangled_name): New function.
11190
dc672865
AC
111912002-03-27 Andrew Cagney <ac131313@redhat.com>
11192
11193 * valarith.c: Replace strerror with safe_strerror.
11194 * tracepoint.c: Ditto.
11195 * lin-lwp.c: Ditto.
11196 * go32-nat.c: Ditto.
11197 * inflow.c: Ditto.
11198 * gnu-nat.c: Ditto.
11199
d96429cd
AS
112002002-03-27 Andreas Schwab <schwab@suse.de>
11201
11202 * event-top.c (command_line_handler): Remove useless if.
11203
7e336ba1
AJ
112042002-03-27 Andreas Jaeger <aj@suse.de>
11205
11206 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11207 comment.
11208
de220d0f
ML
112092002-03-27 Michal Ludvig <mludvig@suse.cz>
11210
11211 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11212 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11213 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11214 (x86_64_linux_dr_get_status, supply_gregset),
11215 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11216 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11217 (x86_64_register_info_table): Add.
11218 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11219 (x86_64_register_raw_size, x86_64_register_virtual_type),
11220 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11221 general x86_64_register_info_table.
11222 (i386_gdbarch_init): gdbarch_register_bytes is now set
11223 dynamicaly during initialization.
11224 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11225 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 11226
0e98d0a7
DJ
112272002-03-27 Daniel Jacobowitz <drow@mvista.com>
11228
11229 * gdbserver/server.c (main): Call target_signal_to_host_p
11230 and target_signal_to_host on signals received from the remote.
11231 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11232 target_signal_from_host on signals sent to the remote.
11233 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11234 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11235
3130066b
DJ
112362002-03-27 Daniel Jacobowitz <drow@mvista.com>
11237
11238 * signals/signals.c: Include "server.h" in gdbserver build.
11239 (target_signal_from_name): Don't use STREQ.
11240 (_initialize_signals): Likewise. Don't include function in
11241 gdbserver build.
11242
9aedf4f4
DJ
112432002-03-27 Daniel Jacobowitz <drow@mvista.com>
11244
11245 * signals.c: Moved to...
11246 * signals/signals.c: Here.
7e336ba1 11247 * Makefile (signals.o): Update.
9aedf4f4 11248
3fa41cdb
JL
112492002-03-26 Jeff Law (law@redhat.com)
11250
11251 * somread.c (som_symtab_read): Remove some commented out code and
11252 updated related comments. Do not set the minimal symbol table to
11253 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11254 in a dynamic executable.
11255 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11256 where we are unable to find the minimal symbol for the given
11257 PC value.
11258
ee677e8d
MS
112592002-03-25 Jeff Law (law@redhat.com)
11260
11261 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11262
e76e1718
ML
112632002-03-25 Michal Ludvig <mludvig@suse.cz>
11264
11265 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11266
18a642a1
AC
112672002-03-23 Andrew Cagney <ac131313@redhat.com>
11268
11269 * command.h: Update copyright.
11270 (struct cmd_list_element): Replace definition with opaque
11271 declaration.
11272 (enum cmd_types): Document that it will eventually be moved to
11273 cli/cli-decode.h
11274 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11275 (MALLOCED_REPLACEMENT): Delete macro.
11276 * Makefile.in (cli_decode_h): Add $(command_h).
11277 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 11278 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
11279 * completer.c: Include "cli/cli-decode.h".
11280 * maint.c: Include "cli/cli-decode.h".
11281 * cli/cli-decode.h: Include "command.h".
11282 (enum command_class): Delete.
11283 (enum cmd_types): Comment out.
11284 (enum cmd_auto_boolean): Delete.
11285 (enum var_types): Delete.
11286
b2875cc0
AC
112872002-03-23 Andrew Cagney <ac131313@redhat.com>
11288
11289 * cli/cli-decode.c: Include "gdb_assert.h".
11290 (add_set_or_show_cmd): New static function.
11291 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11292 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11293 all fields, such as func, from the set command.
11294
3b45974e
AC
112952002-03-23 Andrew Cagney <ac131313@redhat.com>
11296
11297 * MAINTAINERS (sh-elf): Change warning flag to -w.
11298
823ca731
AC
112992002-03-23 Andrew Cagney <cagney@redhat.com>
11300
11301 * defs.h (error): Add printf format attribute.
11302 * thread-db.c (thread_from_lwp): Fix error format string.
11303 * stack.c (parse_frame_specification): Ditto.
11304 * cli/cli-decode.c (undef_cmd_error): Ditto.
11305 * scm-lang.c (scm_lookup_name): Ditto.
11306 * tracepoint.c (trace_error): Ditto.
11307 * remote-utils.c (usage): Ditto.
11308 * remote.c (compare_sections_command): Ditto.
11309 Fix PR gdb/328.
11310
0e101458
AC
113112002-03-22 Andrew Cagney <ac131313@redhat.com>
11312
11313 * gdbtypes.c (append_composite_type_field): New function.
11314 (init_composite_type): New function.
11315 * gdbtypes.h (append_composite_type_field): Declare.
11316 (init_composite_type): Ditto.
11317
8e0662df
EZ
113182002-03-22 Elena Zannoni <ezannoni@redhat.com>
11319
11320 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 11321 function.
8e0662df
EZ
11322 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11323 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11324 structure returning convention for SYSV ABI case, but not
11325 for GNU/Linux, FreeBSD, or NetBSD.
11326
3121eff0
DJ
113272002-03-22 Daniel Jacobowitz <drow@mvista.com>
11328
11329 * symtab.h (lookup_block_symbol): Add mangled_name argument
11330 to prototype.
11331
11332 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11333 with new mangled_name argument.
11334 * linespec.c (decode_line_1): Likewise.
11335 * valops (value_of_this): Likewise.
11336 * symtab.c (lookup_transparent_type): Likewise.
11337 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11338 (lookup_symbol): If we are given a mangled name, pass it down
11339 to lookup_symbol_aux.
11340 (lookup_block_symbol): If we are given a mangled name to check
11341 against, only return symbols which match it.
11342
349b409f
CF
113432002-03-22 Christopher Faylor <cgf@redhat.com>
11344
11345 * win32-nat.c (child_create_inferior): Check for proper shell to use
11346 here, in case the user changes it on the fly.
11347 (_initialize_inftarg): Remove shell path considerations.
11348
2a873819
EZ
113492002-03-21 Elena Zannoni <ezannoni@redhat.com>
11350
11351 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11352 for gdbarch_max_register_raw_size and max_register_virtual_size.
11353 Adjust copyright year.
11354
a1b9830c
DJ
113552002-03-21 Daniel Jacobowitz <drow@mvista.com>
11356
11357 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11358 in a function to cover the entire beginning of the function
11359 as well if it does not already.
11360
8b5790f2
TR
113612002-03-21 Tom Rix <trix@redhat.com>
11362
11363 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11364 (rs6000_ptrace64): Renamed from ptrace64.
11365
bdbe5747
MH
113662002-03-20 Martin M. Hunt <hunt@redhat.com>
11367
11368 * gdbserver/remote-utils.c (remote_open): Don't call
11369 getprotobyname, we're all using TCP here so just use
11370 IPPROTO_TCP.
7e336ba1 11371 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
11372
113732002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 11374
bdbe5747
MH
11375 * regcache.c (_initialize_regcache): No need to call
11376 build_regcache() at this time; it gets called whenever
11377 the gdbarch changes.
11378
7781cd62
DB
113792002-03-20 David O'Brien <obrien@FreeBSD.org>
11380
11381 * sparc-nat.c: Include sys/param.h where possible.
11382
f65ca430
DJ
113832002-03-20 Daniel Jacobowitz <drow@mvista.com>
11384
11385 Fix PR gdb/422.
11386 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11387 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11388 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11389 complex types.
11390 * stabsread.c (rs6000_builtin_type): Likewise.
11391 (read_sun_floating_type): Likewise.
11392
0c867556
PS
113932002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11394
11395 * stabsread.c (read_member_functions): Remove skip code for duplicate
11396 constructor/destructor methods. Use standard parsing for these
11397 methods and just do not chain them to the list of methods after
11398 parsing.
11399
12b9c64f
AO
114002002-03-19 Alexandre Oliva <aoliva@redhat.com>
11401
11402 * coffread.c: Remove redundant static declarations. Replace
11403 occurrences of `PTR' with `void *'.
11404 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11405 * top.h (quit_cover): Likewise.
11406 * defs.h (catch_errors): Likewise.
11407
349c5d5f
AC
114082002-03-18 Andrew Cagney <ac131313@redhat.com>
11409
11410 * defs.h (XMALLOC): Define.
11411 * gdb-events.sh (XMALLOC): Delete macro.
11412 * gdb-events.c, gdb-events.h: Regenerate.
11413 * gdbarch.sh (XMALLOC): Delete macro.
11414 * gdbarch.c: Regenerate.
11415 * serial.c (XMALLOC): Delete macro.
11416 * ui-file.c (XMALLOC): Ditto.
11417 * ser-unix.h (XMALLOC): Ditto.
11418 * sh-tdep.c (XMALLOC): Ditto.
11419 * ui-out.c (XMALLOC): Ditto.
11420 * utils.c (XMALLOC): Ditto.
11421 * i386-tdep.c (XMALLOC): Ditto.
11422 * gdb-events.c (XMALLOC): Ditto.
11423 * d10v-tdep.c (XMALLOC): Ditto.
11424 * cli-out.c (XMALLOC): Ditto.
11425
11426 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11427 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11428 * ui-file.c, ui-out.c: Ditto.
11429
7d0766f3
AC
114302002-03-18 Andrew Cagney <ac131313@redhat.com>
11431
11432 * command.h (struct cmd_list_element): Add field context.
11433 (set_cmd_context, get_cmd_context): Declare.
11434 * cli/cli-decode.h: Ditto.
11435 * cli/cli-decode.c (get_cmd_context): New function.
11436 (set_cmd_context): New function.
11437 (add_cmd): Initialize context.
11438 Part of fixing PR gdb/145 and PR gdb/146.
11439
5913bcb0
AC
114402002-03-17 Andrew Cagney <ac131313@redhat.com>
11441
1868c04e
AC
11442 * cli/cli-decode.c (cmd_type): New function.
11443 * command.h (cmd_type): Declare.
11444 * infrun.c (set_schedlock_func): Call function cmd_type.
11445 * kod.c (kod_set_os): Call cmd_type.
11446 * cris-tdep.c (cris_version_update): Use function cmd_type.
11447 (cris_mode_update, cris_abi_update): Ditto.
11448
5913bcb0
AC
11449 * command.h: (execute_cmd_post_hook): Declare.
11450 (execute_cmd_pre_hook): Declare.
11451 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11452 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11453 functions. Execute pre/post hook while ensuring that afterwords
11454 hook_in is cleared.
11455 * top.c (execute_command): Use execute_cmd_post_hook, and
11456 execute_cmd_pre_hook to execute pre/post commands.
11457 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11458 hook_stop_stub.
11459 (hook_stop_stub): Call execute_cmd_pre_hook.
11460
b51450c9
AC
114612002-03-17 Andrew Cagney <ac131313@redhat.com>
11462
11463 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11464 set'' and this leads to a core dump. Move xstrdup of
11465 operating_system to after check that it is not NULL.
11466
f66c9f11
AC
114672002-03-17 Andrew Cagney <ac131313@redhat.com>
11468
8e694ecf
AC
11469 * kod.c (kod_set_os): Remove unnecessary check that
11470 ``command->type'' is set_cmd.
11471
f66c9f11
AC
11472 * valprint.c (set_input_radix): Use input_radix.
11473 (set_output_radix): Use output_radix.
11474 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11475 isn't reverted.
11476
9d01611c
AC
114772002-03-16 Andrew Cagney <ac131313@redhat.com>
11478
11479 * value.h (struct value): Delete field ``substring_addr''. Change
11480 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
11481 force_core_addr_align and force_pointer_aligh.
11482
11483 * value.h (struct value): Fix typo in above change.
9d01611c 11484
4156bb53
PS
114852002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11486
11487 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11488 to fix internal_error from ``maintenance print architecture''.
11489
0e5e3ea6
PS
114902002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11491
11492 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11493 for gcc versions after gcc-2.8.1.
11494
9b013045
PS
114952002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11496
11497 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11498 for method resolution. Restore adjustment of ``this'' pointer after
11499 calling value_struct_elt, which was accidentally removed during the
11500 HP merge.
11501
376c9600
AC
115022002-03-15 Andrew Cagney <ac131313@redhat.com>
11503
11504 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11505 value_of_register.
11506 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11507 get_saved_register.
11508 * value.h (value_of_register): Update.
11509
a4db0f07
RH
115102002-03-14 Richard Henderson <rth@redhat.com>
11511
11512 * configure.in: Detect declaration for canonicalize_file_name.
11513 * utils.c (canonicalize_file_name): Declare, if needed.
11514 (gdb_realpath): Prefer realpath if available and usable.
11515 * config.in, configure: Rebuild.
11516
96383835
RH
115172002-03-14 Richard Henderson <rth@redhat.com>
11518
11519 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11520 a constant array bound.
11521
11522 * MAINTAINERS: Add myself to write-after-approval.
11523
75245b24
MS
115242002-03-14 Michael Snyder <msnyder@redhat.com>
11525
11526 * symfile.c (syms_from_objfile): Return immediately if no syms.
11527 (symbol_file_add): Return immediately if no syms.
11528 (find_sym_fns): Return immediately if no syms.
11529
e641a1ca
ML
115302002-03-13 Michal Ludvig <mludvig@suse.cz>
11531
11532 * gdbserver/remote-util.c (remote_open): Print remote-side's
11533 IP address when remote debugging over the network.
7e336ba1 11534
df08bfec
DB
115352002-03-12 David O'Brien <obrien@FreeBSD.org>
11536
11537 * config/sparc/fbsd.mh: Fix copyright.
11538 * config/sparc/fbsd.mt: Likewise.
11539
9a57864f
RE
115402002-03-11 Richard Earnshaw <rearnsha@arm.com>
11541
11542 * MAINTAINERS: Fix typo in name of gdb warnings option.
11543 (x86-64): Fix formating so that this can be parsed by awk.
11544
dd7bf85e
DJ
115452002-03-10 Daniel Jacobowitz <drow@mvista.com>
11546
11547 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11548 * defs.h: Include "gdb/signals.h".
11549 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11550
33a0a2ac
ML
115512002-03-10 Michal Ludvig <mludvig@suse.cz>
11552
11553 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11554 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11555 from x86-64-tdep.h
11556
dd824b04
DJ
115572002-03-10 Daniel Jacobowitz <drow@mvista.com>
11558 Don Howard <dhoward@redhat.com>
11559
11560 * mips-tdep.c (ST0_FR): Define.
11561 (mips2_fp_compat): New function, temporarily disabled.
11562 (mips_read_fp_register_single): New function.
11563 (mips_read_fp_register_double): New function.
11564 (mips_print_register): Use them.
11565 (do_fp_register_row): Likewise.
11566
6a41ff59
AC
115672002-03-09 Andrew Cagney <ac131313@redhat.com>
11568
11569 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11570 approval''.
11571
4ea09c10
PS
115722002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11573
11574 * stabsread.c (read_member_functions): Fix is_stub test for
11575 static member functions, improve comment.
11576
6ccc741d
RE
115772002-03-07 Richard Earnshaw <rearnsha@arm.com>
11578
11579 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11580 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11581 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11582 commands that set boolean values.
11583 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11584 (arm_rdi_resume): Always initialize PC.
11585 (arm_rdi_open): Don't use rslt as a boolean.
11586 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11587 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11588 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11589 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11590
438013df
AO
115912002-03-06 Alexandre Oliva <aoliva@redhat.com>
11592
11593 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11594 * configure: Rebuilt.
11595
70ed8774
SC
115962002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11597
11598 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11599 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11600
5ba2abeb
AC
116012002-03-06 Andrew Cagney <ac131313@redhat.com>
11602
11603 * cli/cli-decode.c (set_cmd_completer): New function.
11604 * command.h (set_cmd_completer): Declare.
11605 * cli/cli-decode.h (set_cmd_completer): Ditto.
11606
11607 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11608 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11609 * win32-nat.c (_initialize_inftarg): Ditto.
11610 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11611 * proc-api.c (_initialize_proc_api): Ditto.
11612 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11613 * source.c (_initialize_source): Ditto.
11614 * exec.c (_initialize_exec): Ditto.
11615 * solib.c (_initialize_solib): Ditto.
11616 * top.c (init_main): Ditto.
11617 * tracepoint.c (_initialize_tracepoint): Ditto.
11618 * symfile.c (_initialize_symfile): Ditto.
11619 * printcmd.c (_initialize_printcmd): Ditto.
11620 * infcmd.c (_initialize_infcmd): Ditto.
11621 * corefile.c (_initialize_core): Ditto.
11622
f779ca99
AC
116232002-03-05 Andrew Cagney <ac131313@redhat.com>
11624
11625 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11626
01a3934b
AC
116272002-03-05 Andrew Cagney <ac131313@redhat.com>
11628
11629 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11630
37057839
AC
116312002-03-05 Andrew Cagney <ac131313@redhat.com>
11632
11633 * NEWS: Update headings, 5.2 has branched.
11634
c6ecbae5
DJ
116352002-03-04 Daniel Jacobowitz <drow@mvista.com>
11636
11637 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11638 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11639 (register_addr, REGISTER_RAW_SIZE): Likewise.
11640 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11641 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11642
e9f30c21
ML
116432002-03-03 Michal Ludvig <mludvig@suse.cz>
11644
11645 * MAINTAINERS (x86-64): Add myself.
11646 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11647 changed value_ptr -> struct value *
11648
54394ac3
DB
116492002-03-01 David O'Brien <obrien@FreeBSD.org>
11650
11651 * configure.host (sparc64-*-freebsd): Add.
11652 * configure.tgt: Likewise.
11653 * config/sparc/fbsd.mh: New file.
11654 * config/sparc/fbsd.mt: Likewise.
11655 * config/sparc/nm-fbsd.h: Likewise.
11656 * config/sparc/tm-fbsd.h: Likewise.
11657
bfe95955
DJ
116582002-03-01 Daniel Jacobowitz <drow@mvista.com>
11659
11660 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11661 regformats/reg-s390x.dat.
11662
f33c6cbf
AC
116632002-03-01 Andrew Cagney <ac131313@redhat.com>
11664
11665 * utils.c: Add FIXME explaining true/false problem.
11666
5ecaa7dd
AC
116672002-02-28 Andrew Cagney <ac131313@redhat.com>
11668
11669 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11670
2a251cc2
MC
116712002-02-28 Michael Chastain <mec@shout.net>
11672
11673 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11674
6a8031a3 116752002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11676
11677 * gdbserver/linux-s390-low.c: New file.
11678 * regformats/reg-s390.dat: New file.
11679 * regformats/reg-s390x.dat: New file.
11680 * gdbserver/configure.srv: Add S/390.
11681 * gdbserver/Makefile.in: Add S/390.
11682 * configure.tgt: Enable gdbserver for S/390.
11683
ac469903
EZ
116842002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11685
11686 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11687 first line of the doc string for "info dos", except at the end of
11688 the sentence, since the short help stops at the first period.
11689
985cb1a3
JM
116902002-02-28 Jason Merrill <jason@redhat.com>
11691
11692 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11693
c570663e
FF
116942002-02-27 Fred Fish <fnf@redhat.com>
11695
11696 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11697 comment (dumy -> dummy).
11698
43630227
PS
116992002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11700
11701 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11702
b84911e8
RB
117032002-02-27 Rodney Brown <rbrown64@csc.com.au>
11704
11705 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11706
58caa3dc
DJ
117072002-02-27 Daniel Jacobowitz <drow@mvista.com>
11708
11709 * gdbserver/acconfig.h: New file.
11710 * gdbserver/i387-fp.c: New file.
11711 * gdbserver/i387-fp.h: New file.
11712 * gdbserver/linux-x86-64.c: New file.
11713 * regformats/reg-x86-64.dat: New file.
11714 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11715 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11716 * gdbserver/configure.in: Add support for regsets.
11717 * gdbserver/config.in: Regenerate.
11718 * gdbserver/configure: Regenerate.
11719 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11720 * gdbserver/linux-low.h: New file.
11721 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11722 for regsets.
11723 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11724 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11725 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11726 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11727 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11728 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11729 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11730 "i387-fp.h". Add PTRACE_GETREGS and friends.
11731 * gdbserver/regcache.c (supply_register): New function.
11732 (supply_register_by_name): New function.
11733 (collect_register): New function.
11734 (collect_register_by_name): New function.
11735
93652174
DJ
117362002-02-27 Daniel Jacobowitz <drow@mvista.com>
11737
11738 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11739 (config.status): Add configure.srv dependency.
11740 (server_h): Add config.h dependency.
11741
a02e4a61
DJ
117422002-02-27 Daniel Jacobowitz <drow@mvista.com>
11743
11744 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11745 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11746 * gdbserver/configure.srv: Change i386-*-linux* to use
11747 reg-i386-linux.o.
11748
ce0eebec
AC
117492002-02-26 Andrew Cagney <ac131313@redhat.com>
11750
11751 * x86-64-tdep.c: Re-indent. Update copyright date.
11752
82dbc5f7
AC
117532002-02-26 Andrew Cagney <ac131313@redhat.com>
11754
11755 From Michal Ludvig <mludvig@suse.cz>:
11756 * x86-64-tdep.c (value.h): Delete.
11757 (gdb_assert.h): Include.
11758 (x86_64_register_convert_to_virtual,
11759 x86_64_register_convert_to_raw ): Add check which lets only
11760 floating-point values to be converted.
11761 (value_push): Delete.
11762 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11763 (i386_gdbarch_init): Number of register_bytes fixed.
11764
e4621584
AC
117652002-02-26 Andrew Cagney <ac131313@redhat.com>
11766
11767 * MAINTAINERS: Add x86-64 target.
11768
81a9a963
AC
117692002-02-26 Andrew Cagney <ac131313@redhat.com>
11770
11771 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11772 * osfsolib.c (solib_map_sections): Ditto.
11773 * irix5-nat.c (solib_map_sections): Ditto.
11774 * corelow.c (gdb_check_format): Ditto.
11775 * symfile.c (symfile_bfd_open): Ditto.
11776 * solib.c (solib_map_sections): Ditto.
11777 Fix PR gdb/354.
7e336ba1 11778
0f017ab9
AC
117792002-02-26 Andrew Cagney <ac131313@redhat.com>
11780
11781 * remote.c (_initialize_remote): By default, disable ``e'' and
11782 ``E'' step out-of-range packets.
11783
75738c29
AS
117842002-02-26 Andreas Schwab <schwab@suse.de>
11785
11786 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11787 m68k_linux_frame_saved_pc.
11788 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11789 in_sigtramp.
11790 (SIGCONTEXT_PC_OFFSET): Remove.
11791 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11792 m68k_linux_sigtramp_saved_pc): New functions.
11793 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11794 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11795 (UCONTEXT_PC_OFFSET): Define.
11796 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11797 non-RT and RT signal trampolines.
11798
7e8ed687
RE
117992002-02-26 Richard Earnshaw <rearnsha@arm.com>
11800
11801 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11802 (TARGET_NBPG, STACK_END_ADDR): Delete
11803 (VARIABLES_INSIDE_BLOCK): Delete.
11804
6972bc8b
AC
118052002-02-25 Andrew Cagney <ac131313@redhat.com>
11806
11807 * utils.c (perror_with_name): Make string parameter constant.
11808 (print_sys_errmsg): Ditto.
11809 (query): Ditto.
11810 * defs.h (perror_with_name): Update.
11811 (print_sys_errmsg): Update.
11812 (query): Update.
11813
aa32f823
DJ
118142002-02-25 Daniel Jacobowitz <drow@mvista.com>
11815
11816 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11817 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11818
19caaa45
PS
118192002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11820
11821 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11822 if it already matches the current architecture from the exec file.
11823 Include arch-utils.h for gdbarch_info_init prototype.
11824 * Makefile.in (rs6000-nat.o): Update dependencies.
11825
d951901f
EZ
118262002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11827
11828 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11829 list of exported variables.
11830
7ea81414
DJ
118312002-02-24 Daniel Jacobowitz <drow@mvista.com>
11832
11833 * gdbserver/configure.srv: New file.
11834 * gdbserver/configure.in: Use configure.srv instead
11835 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11836 from it.
11837 * gdbserver/configure: Regenerated.
11838 * gdbserver/terminal.h: New file.
11839 * gdbserver/Makefile.in: Update for configure changes. Remove
11840 more unneeded include paths.
11841
080fe24b
AC
118422002-02-24 Andrew Cagney <ac131313@redhat.com>
11843
11844 From wiz at danbala:
11845 * config/sparc/tm-sp64.h: Fix grammar and typos.
11846 Fix PR gdb/287.
11847
8605d56e
AC
118482002-02-24 Andrew Cagney <ac131313@redhat.com>
11849
11850 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11851 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11852 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11853 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11854 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11855 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11856 * s390-tdep.c: Ditto.
92362027
AC
11857 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11858 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11859 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11860 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11861 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11862 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11863 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11864 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11865 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11866 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11867 Fix PR gdb/378.
7e336ba1 11868
8ed32cc0
AC
118692002-02-23 Andrew Cagney <ac131313@redhat.com>
11870
a3007b6f
AC
11871 * lin-thread.c: Delete file.
11872 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11873 to gdb_proc_service.h.
11874 * configure: Re-generate.
11875
50a9e2f1
AC
11876 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11877 * serial.c (serial_open): Delete check for "ocd".
11878 Fix PR gdb/349.
11879
8b6e7932
AC
11880 * Makefile.in (linux-thread.o): Delete target.
11881 * linux-thread.c: Delete file.
11882
d155c46b
AC
11883 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11884 renamed SH files to be consistent.
11885
8ed32cc0
AC
11886 * symtab.c (sort_search_symbols): Use xfree.
11887
0e18d038
RE
118882002-02-23 Richard Earnshaw <rearnsha@arm.com>
11889
11890 * arm-linux-tdep.c (arm_linux_init_abi): Register
11891 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11892 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11893 definition with undef, since we don't want the sysvr4 definition.
11894 (SKIP_TRAMPOLINE_CODE): Likewise.
11895
27aac7ff
AC
118962002-02-23 Andrew Cagney <ac131313@redhat.com>
11897
11898 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11899
11900 * configure.in: (AC_CHECK_FUNCS) Added test for
11901 canonicalize_file_name Regenerated.
11902 * config.in, configure: Regenerated.
11903 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11904 defined use canonicalize_file_name.
7e336ba1 11905
65a6e0ee
MC
119062002-02-23 Michael Chastain <mec@shout.net>
11907
11908 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11909
47b95330
AC
119102002-02-23 Andrew Cagney <ac131313@redhat.com>
11911
11912 * README: Remove references to cygnus.com.
11913 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11914 dot com'' form. Remove references to cygnus.com and sourceware.
11915
696f451b
AC
119162002-02-23 Andrew Cagney <ac131313@redhat.com>
11917
11918 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11919 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11920 1003.1-2001 no longer allows "head -1".
11921 * gdb/Makefile.in (version.c): Likewise.
11922 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11923 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11924 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11925
bbaca940
AC
119262002-02-23 Andrew Cagney <ac131313@redhat.com>
11927
11928 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11929 * command.h (cmd_cfunc_eq): Declare.
11930 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11931
11932 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11933 ``struct cmd_list_element *''.
11934 * cli/cli-cmds.c (is_complete_command): Update. Use
11935 cmd_cfunc_eq.
11936 * top.c (execute_command): Pass the command to
11937 is_complete_command.
11938 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11939
b8b8b047
AC
119402002-02-23 Andrew Cagney <ac131313@redhat.com>
11941
11942 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11943 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11944 architecture defines.
11945 * s390-tdep.c (s390_gdbarch_init): Likewise.
11946
19d3fc80
RE
119472002-02-23 Richard Earnshaw <rearnsha@arm.com>
11948
11949 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11950 (arm_linux_push_arguments): Likewise.
11951 (arm_linux_init_abi): Register them. Also register linux-specific
11952 call_dummy_words.
11953 (find_minsym_and_objfile): Use strcmp, not STREQ.
11954 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11955 (arm_linux_call_dummy_words): Delete declaration.
11956 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11957 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11958 declarations.
11959 (LOWEST_PC): Delete.
11960
3ab13650
PS
119612002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11962
11963 * maint.c (print_section_info): Do not prepend `0x' to filepos
11964 output, it will be handled by local_hex_string_custom.
11965
19d3fc80 119662002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11967
11968 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11969 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11970 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11971
d85a5daf
JB
119722002-02-22 Jim Blandy <jimb@redhat.com>
11973
11974 Indicate that the bcache functions don't change the strings
11975 they're passed.
11976 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11977 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11978
eeb25b8a
PM
119792002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11980
11981 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11982
6badb179
CF
119832002-02-21 Christopher Faylor <cgf@redhat.com>
11984
11985 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11986 find the complete path to a loaded DLL.
11987
e8717518
FF
119882002-02-21 Fred Fish <fnf@redhat.com>
11989
11990 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11991 that marks the end of the range of a function, enter a line number
11992 entry that has a line number of zero and a PC offset that matches
11993 the end of the function. This starts a range of PC's for which no
11994 line number information is known.
11995 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11996 PC's for which no line number info is found (line number is zero)
11997 then we didn't find any valid line information.
11998 * symtab.h: Document use of zero line number entry.
11999
9abe5450
EZ
120002002-02-21 Elena Zannoni <ezannoni@redhat.com>
12001
12002 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12003 (have_ptrace_getvrregs): Define for run time checks.
12004 (gdb_vrregset_t): New type for Altivec register handling.
12005 (fetch_register, store_register): Fetch/store altivec register
12006 when needed.
12007 (fetch_altivec_register, store_altivec_register): New functions.
12008 (supply_vrregset, fill_vrregset): New functions.
12009 (fetch_altivec_registers, store_altivec_registers): New functions.
12010 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12011 registers as well.
12012
aaa38bb5
AJ
120132002-02-21 Jiri Smid <smid@suse.cz>
12014
12015 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12016
b34db576
RE
120172002-02-21 Richard Earnshaw <rearnsha@arm.com>
12018
12019 * Makefile.in (armnbsd-nat.o): Update dependencies.
12020 * armnbsd-nat.c (supply_gregset): New function. Common code to
12021 supply the integer register set.
12022 (supply_fparegset): New function. Similar for FPA registers.
12023 (fetch_regs, fetch_fp_regs): Use them.
12024 (fetch_core_registers): Likewise.
12025 (fetch_elfcore_registers): New function.
12026 (arm_netbsd_elfcore_fns): New core-file type specification.
12027 (_initialize_arm_netbsd_nat): Register it.
12028
3e56fc4b
RE
120292002-02-21 Richard Earnshaw <rearnsha@arm.com>
12030
12031 * armnbsd-nat.c: Include gdbcore.h.
12032 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12033 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12034 'void' to declaration, to shut up ARI.
12035 (fetch_core_registers): Make static. Rewrite using supply_register.
12036 (arm_netbsd_core_fns): New core-file type specification.
12037 (_initialize_arm_netbsd_nat): New function.
12038
097f6b0b
CF
120392002-02-21 Christopher Faylor <cgf@redhat.com>
12040
12041 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12042 value.
12043
c914e0cc
CF
120442002-02-20 Christopher Faylor <cgf@redhat.com>
12045
12046 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12047 fails.
12048
385fa495
DJ
120492002-02-20 Daniel Jacobowitz <drow@mvista.com>
12050
12051 * jv-exp.y (parse_number): Change type of implicit longs
12052 to builtin_type_uint64.
12053
e5f1222d
DJ
120542002-02-20 Daniel Jacobowitz <drow@mvista.com>
12055
12056 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12057 to be an integer instead of a `union wait'.
12058
75c9abc6
DJ
120592002-02-20 Daniel Jacobowitz <drow@mvista.com>
12060
12061 * mips-linux-nat.c: Call the operating system GNU/Linux.
12062 * mips-linux-tdep.c: Likewise.
12063 * mips-tdep.c: Likewise.
12064
551792a5
DJ
120652002-02-20 Daniel Jacobowitz <drow@mvista.com>
12066
12067 Fix PR gdb/265.
12068 * jv-exp.y (parse_number): Handle 64-bit integers.
12069
ee6e2b82
DJ
120702002-02-20 Daniel Jacobowitz <drow@mvista.com>
12071
12072 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12073 AC_STDC_HEADERS to AC_HEADER_STDC.
12074 * gdbserver/configure: Regenerated.
12075
a48442a0
RE
120762002-02-20 Richard Earnshaw <rearnsha@arm.com>
12077
12078 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12079 is defined.
12080 * sparc-tdep.c (get_longjmp_target): Likewise.
12081
fe419ffc
RE
120822002-02-20 Richard Earnshaw <rearnsha@arm.com>
12083
12084 * News: Add news about ARM and Multi-arch. Mention the new target
12085 arm*-*-netbsd*.
12086
5832ed7e
JB
120872002-02-19 Jim Blandy <jimb@redhat.com>
12088
12089 * stabsread.c (error_type_complaint): Improve error message.
12090
84563040
DJ
120912002-02-19 Daniel Jacobowitz <drow@mvista.com>
12092
12093 * gdbserver/README: Update documentation.
12094 * gdbserver/configure.in: Update configury to match documentation.
12095 * gdbserver/Makefile.in: Likewise.
12096 * gdbserver/configure: Regenerated.
12097 * gdbserver/aclocal.m4: New file, generated by aclocal.
12098 * gdbserver/config.in: New file, generated by autoheader.
12099
375fd65b
RE
121002002-02-19 Richard Earnshaw <rearnsha@arm.com>
12101
12102 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12103 armnbsd-nat.c.
12104
08216dd7
RE
121052002-02-19 Richard Earnshaw <rearnsha@arm.com>
12106
12107 * arm-tdep.h (enum arm_float_model): New enum.
12108 (struct gdbarch_tdep): Add fp_model.
12109 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12110 up floating-point conversions until we know the floating-point model
12111 in use by the inferior. Don't complain about being unable to
12112 determine the ABI of the inferior when we don't have one.
12113 (arm_extract_return_value): Support different floating-point models.
12114 (arm_store_return_value): Likewise.
aaa38bb5 12115 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
12116 ARM_FLOAT_SOFT.
12117 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12118
65d6d66a
PS
121192002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12120
12121 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12122 of ``current_gdbarch''.
12123
47221191
RE
121242002-02-19 Richard Earnshaw <rearnsha@arm.com>
12125
12126 * armnbsd-nat.c : ANSIfy all function declarations.
12127 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12128 (fetch_inferior_registers): Re-implement in terms of above.
12129 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12130 (store_inferior_registers): Re-implement in terms of above.
12131
fdf39c9a
RE
121322002-02-19 Richard Earnshaw <rearnsha@arm.com>
12133
aaa38bb5 12134 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
12135 kernel.
12136 * arm-linux-tdep.c: Likewise.
12137 * config/arm/tm-linux.h: Likewise.
12138
93247f88
RE
121392002-02-19 Richard Earnshaw <rearnsha@arm.com>
12140
12141 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12142 * config/arm/nbsd.mt (TM_FILE): Delete.
12143 * config/arm/tm-nbsd.h: Delete.
12144
d7b486e7
RE
121452002-02-19 Richard Earnshaw <rearnsha@arm.com>
12146
12147 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12148 Initialize CALL_DUMMY_LENGTH.
12149
41d39a95
RE
121502002-02-19 Richard Earnshaw <rearnsha@arm.com>
12151
12152 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12153 function.
12154 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 12155 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
12156 defines one thing and that is incorrect for this port.
12157 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12158
e1195560
PM
121592002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12160
12161 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12162
c1748f97
PM
121632002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12164
12165 * win32-nat.c (display_selector): New function. Displays information
12166 about the information returned by GetThreadSelectorEntry API function.
12167 (display_selectors): New function. Displays the infomation of
12168 the selector given as argument, or of CS, DS ans FS selectors
12169 if no argument is given.
12170 ( _initialize_inftarg): Add "w32" as info prefix command.
12171 Add "info w32 selector" as command calling display_selectors.
12172
e41e6bbf
PM
121732002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12174
12175 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12176 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12177 if not defined.
12178
0d3a9f48
RE
121792002-02-18 Richard Earnshaw <rearnsha@arm.com>
12180
12181 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12182
3fb4b924
RE
121832002-02-18 Richard Earnshaw <rearnsha@arm.com>
12184
12185 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12186 (arm_fix_call_dummy): Call it.
12187 (arm_call_dummy_breakpoint_offset): Delete.
12188 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12189 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12190
7f55af32
AC
121912002-02-18 Andrew Cagney <ac131313@redhat.com>
12192
12193 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12194 Default to func_frame_chain_valid.
12195 * gdbarch.h, gdbarch.c: Re-generate.
12196 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12197
05f13b9c
EZ
121982002-02-18 Elena Zannoni <ezannoni@redhat.com>
12199
12200 * ppc-linux-nat.c: Update copyright.
12201 (fetch_register, store_register): Add tid parameter, don't compute
12202 tid here.
12203 (fetch_ppc_registers, store_ppc_registers): Add tid
12204 parameter. Pass it along to callees.
12205 (fetch_inferior_registers, store_inferior_registers): Compute tid
12206 here, and pass it to calleed functions.
12207 (fill_gregset, supply_fpregset): Clean up formatting.
12208
d7afb4c9
RE
122092002-02-18 Richard Earnshaw <rearnsha@arm.com>
12210
12211 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12212 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12213
9df628e0
RE
122142002-02-18 Richard Earnshaw <rearnsha@arm.com>
12215
12216 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12217 * gdbarch.c gdbarch.h: Regenerate.
12218 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12219 function.
12220 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12221 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12222 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12223
12224 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12225 * arm-tdep.c (arm_get_longjmp_target): New function.
12226 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12227 this to a positive value register arm_get_longjmp_target as the
12228 longjmp handler.
12229 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12230 (arm_linux_init_abi): Set up longjmp description in tdep.
12231 * armnbsd-nat.c (get_longjmp_target): Delete.
12232 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12233 description in tdep.
12234 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12235 (get_longjmp_target): Delete declaration.
12236 (GET_LONGJMP_TARGET): Delete.
12237 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12238 (GET_LONGJMP_TARGET): Delete.
12239
57bc8964
KB
122402002-02-17 Kevin Buettner <kevinb@redhat.com>
12241
12242 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12243 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12244 of ``current_gdbarch''.
12245
83d31a92
TT
122462002-02-17 Tom Tromey <tromey@redhat.com>
12247
12248 * cli/cli-cmds.c (compare_strings): New function.
12249 (complete_command): Only print each unique item once.
12250 * completer.h (complete_line): Declare.
12251 * completer.c (complete_line): New function.
12252 (line_completion_function): Use it.
12253
17ef5d92
AC
122542002-02-16 Andrew Cagney <ac131313@redhat.com>
12255
12256 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12257 * gdbarch.h, gdbarch.c: Re-generate.
12258
491b8946
DJ
122592002-02-16 Daniel Jacobowitz <drow@mvista.com>
12260
12261 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12262
122632002-02-16 Daniel Jacobowitz <drow@mvista.com>
12264
12265 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12266 * valops.c (value_arg_coerce): Don't take the address of a reference
12267 to convert an argument to a reference.
12268
dfe7f3ac
CF
122692002-02-15 Christopher Faylor <cgf@redhat.com>
12270
12271 * win32-nat.c (get_image_name): New function.
12272 (handle_load_dll): Use get_image_name function.
12273 (get_child_debug_event): Avoid registering debug events until possibly
12274 execed process is started.
12275 (child_create_inferior): Allow invocation via shell so that command
12276 line redirection, etc. works ok.
12277 (_initialize_inftarg): Add new command: "set shell" to control whether
12278 a shell is used to start a process.
12279
1d33e73a
DJ
122802002-02-15 Daniel Jacobowitz <drow@mvista.com>
12281
12282 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12283 instead of find_register_by_number.
12284 (cannot_store_register): Likewise.
12285
48cd0caa
PM
122862002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12287
aaa38bb5 12288 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
12289 fprintf_unfiltered (gdb_stderr, ...).
12290
8656e7d8
DJ
122912002-02-15 Daniel Jacobowitz <drow@mvista.com>
12292
12293 * gdbserver/gdbserver.1: Document --attach.
12294
66e810cd
RE
122952002-02-15 Richard Earnshaw <rearnsha@arm.com>
12296
12297 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12298 descriptions.
12299 * arm-tdep.c (arm_default_arm_le_breakpoint)
12300 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12301 (arm_default_thumb_be_breakpoint): New. Initialize them from
12302 traditional breakpoint defines.
12303 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12304 (arm_gdbarch_init): Initialize new breakpoint variables.
12305 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12306 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12307 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12308 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12309 code out to ...
12310 (arm_netbsd_init_abi_common): ... here; new function.
12311 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12312 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12313 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12314 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12315
97e03143
RE
123162002-02-15 Richard Earnshaw <rearnsha@arm.com>
12317
12318 * arm-tdep.h (enum arm_abi): New enum.
12319 (struct gdbarch_tdep): New structure.
12320 (LOWEST_PC): Provide a default.
12321 (arm_gdbarch_register_os_abi): Declare new function.
12322 * arm-tdep.c (arm_abi_names): New array.
12323 (process_note_abi_tag_sections): New function.
12324 (get_elfosabi): New function.
12325 (arm_gdbarch_register_os_abi): New function.
12326 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12327 support for that ABI has been built in, then call the appropriate
12328 configuration routine. Use gdbarch_num_regs() to get the number
12329 of registers.
12330 (arm_dump_tdep): New function.
12331 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12332 place-holder functions.
12333 (_initialize_arm_tdep): Register them.
12334 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12335
12336 * armnbsd-tdep.c: New file.
12337 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12338 * config/arm/nbsd.mt (TDEPFILES): Add it.
12339 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12340
12341 * armnbsd-nat.c: Include regcache.h.
12342 * Makefile.in (armnbsd-nat.o): Update dependency list.
12343
12344 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12345
ad68be46
DJ
123462002-02-14 Daniel Jacobowitz <drow@mvista.com>
12347
12348 * gdbserver/Makefile.in: Fix typos in target rules.
12349
003d6d1d
DJ
123502002-02-14 Daniel Jacobowitz <drow@mvista.com>
12351
aaa38bb5 12352 Fix part of PR gdb/267.
003d6d1d
DJ
12353 * linespec.c (find_methods): Handle constructors specially for now.
12354
6b230f1b
CV
123552002-02-14 Corinna Vinschen <vinschen@redhat.com>
12356
12357 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12358 handling.
12359 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12360 standard_coerce_float_to_double().
12361
1ea98d12
CF
123622002-02-14 Christopher Faylor <cgf@redhat.com>
12363
12364 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12365 GDBINIT_FILENAME.
12366
dd47e6fd
EZ
123672002-02-14 Elena Zannoni <ezannoni@redhat.com>
12368
12369 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12370 find_variant_by_name, because it confuses the multiarch
12371 framework. Return NULL if there isn't an architecture with the
12372 user supplied name, instead of forcing a different one without
12373 recording the change with the multiarch machinery.
12374 (find_variant_by_name): Delete.
12375
d7e39b9e
PS
123762002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12377
12378 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12379 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12380
76e42a4f
MH
123812002-02-13 Martin M. Hunt <hunt@redhat.com>
12382
aaa38bb5 12383 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
12384 print_frame_info_listing_hook, set current_source_symtab.
12385
0a30fbc4
DJ
123862002-02-14 Daniel Jacobowitz <drow@mvista.com>
12387
12388 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12389 and remove unused $(INCLUDE_DIR).
12390 Add regcache.c to OBS.
12391 Add generated register protocol files to clean target.
12392 Update dependencies for new objects, obsolete old target code.
12393
12394 * gdbserver/linux-low.c: Remove all platform-specific code to
12395 new files. Remove various dead code. Update to use regcache
12396 functionality.
12397 * gdbserver/remote-utils.c (fromhex): Add return statement
12398 to quiet warning.
12399 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12400 constant.
12401 (input_interrupt): Add integer parameter to match prototype
12402 of a signal handler.
12403 (outreg): Use register_data ().
12404 (prepare_resume_reply): Use gdbserver_expedite_regs.
12405 * gdbserver/server.c (main): Dynamically allocate own_buf because
12406 PBUFSIZ is no longer constant. Use registers_to_string () and
12407 registers_from_string ().
12408 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12409 for error (), fatal (), and warning (). Update definition of
12410 PBUFSIZ to use regcache functionality. Add include guard.
12411 * gdbserver/utils.c (fatal): Add missing ``const''.
12412 (warning): New function.
12413
12414 * regformats/regdat.sh: Include "regcache.h" in generated files.
12415 Provide init_registers () function.
12416 * regformats/regdef.h: Add prototype for set_register_cache ().
12417 Add include guard.
12418
12419 * gdbserver/linux-arm-low.c: New file.
12420 * gdbserver/linux-i386-low.c: New file.
12421 * gdbserver/linux-ia64-low.c: New file.
12422 * gdbserver/linux-m68k-low.c: New file.
12423 * gdbserver/linux-mips-low.c: New file.
12424 * gdbserver/linux-ppc-low.c: New file.
12425 * gdbserver/linux-sh-low.c: New file.
12426
12427 * gdbserver/regcache.c: New file.
12428 * gdbserver/regcache.h: New file.
12429
12430 * gdbserver/low-linux.c: Removed obsolete file.
12431
4cc841d0
DJ
124322002-02-14 Daniel Jacobowitz <drow@mvista.com>
12433
12434 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12435 * config/i386/linux.mt: Likewise.
12436 * config/ia64/linux.mt: Likewise.
12437 * config/m68k/linux.mh: Likewise.
12438 * config/powerpc/linux.mh: Likewise.
12439 * config/mips/linux.mt: Likewise.
12440
12441 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12442
12443 * config/i386/i386lynx.mh: Mark gdbserver variables
12444 as (currently) obsolete for this target.
12445 * config/i386/nbsd.mt: Likewise.
12446 * config/i386/nbsdelf.mt: Likewise.
12447 * config/m32r/m32r.mt: Likewise.
12448 * config/m68k/m68klynx.mh: Likewise.
12449 * config/m68k/nbsd.mt: Likewise.
12450 * config/m68k/sun3os4.mh: Likewise.
12451 * config/mips/vr5000.mt: Likewise.
12452 * config/ns32k/nbsd.mt: Likewise.
12453 * config/pa/hppabsd.mh: Likewise.
12454 * config/pa/hppaosf.mh: Likewise.
12455 * config/powerpc/nbsd.mt: Likewise.
12456 * config/rs6000/rs6000lynx.mh: Likewise.
12457 * config/s390/s390.mt: Likewise.
12458 * config/s390/s390x.mt: Likewise.
12459 * config/sparc/sparclynx.mh: Likewise.
12460 * config/sparc/sun4os4.mh: Likewise.
12461 * config/i386/x86-64linux.mt: Likewise.
12462 * config/sparc/linux.mh: Likewise.
12463
a85f51e7
DJ
124642002-02-14 Daniel Jacobowitz <drow@mvista.com>
12465
12466 * configure.tgt: Configure gdbserver only for known working
12467 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12468 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12469 SUBDIRS if it is configured. Update comment for ${nativefile}.
12470 * configure: Regenerated.
12471
65554fef
MS
124722002-02-13 Michael Snyder <msnyder@redhat.com>
12473
670a52db
MS
12474 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12475
6dbdc4a3
MS
12476 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12477 (default_gcore_mach): Just return 0, work around a problem in bfd.
12478 (default_gcore_target): OK to return NULL if exec_bfd is null.
12479 (make_mem_sec): Use a cast, avoid a warning.
12480
12481 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 12482 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
12483 sizeof (host pointer) != sizeof (target pointer)).
12484 (procfs_make_note_section): Avoid overflow in psargs string.
12485
aaa38bb5 12486 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
12487 implementation return an error.
12488
124892002-02-13 Rodney Brown <rbrown64@csc.com.au>
12490
12491 * procfs.c (procfs_make_note_section): Provide a default definition
12492 (for alpha-dec-osf4.0f). Fix typos.
12493
1e4d76e7
EZ
124942002-02-13 Elena Zannoni <ezannoni@redhat.com>
12495
12496 * linux-proc.c: Add include of regcache.h.
12497 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12498
b6d1a1d5
AC
124992002-02-13 Andrew Cagney <ac131313@redhat.com>
12500
12501 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
12502 * memattr.c (create_mem_region): Disallow useless empty region.
12503 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12504 non-overlapping.
b6d1a1d5 12505
6c6ea35e
MC
125062002-02-13 Michael Chastain <mec@shout.net>
12507
12508 * defs.h: Kill CONST_PTR.
12509 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12510 * c-lang.c (c_builtin_types): Likewise.
12511 * ch-lang.c (ch_builtin_types): Likewise.
12512 * f-lang.c (f_builtin_types): Likewise.
12513 * language.c (unknown_builtin_types): Likewise.
12514 * m2-lang.c (m2_builtin_types): Likewise.
12515 * p-lang.c (pascal_builtin_types): Likewise.
12516 * scm-lang.c (c_builtin_types): Likewise.
12517
3e0b0f48
KS
125182002-02-13 Keith Seitz <keiths@redhat.com>
12519
12520 * arm-tdep.h (arm_get_next_pc): Add declaration.
12521
67255d04
RE
125222002-02-13 Richard Earnshaw <rearnsha@arm.com>
12523
12524 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12525 with other related struct-returning functions.
12526 (arm_extract_struct_value_address): New function.
12527 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12528 initialize float_format, double_format and long_double_format as
12529 appropriate to the endianness of the target.
12530 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12531 (arm_use_struct_convention): Delete declaration.
12532 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12533
079777f6
KS
125342002-02-13 Keith Seitz <keiths@redhat.com>
12535
12536 * defs.h (core_addr_to_string_nz): New function.
12537
34588f23
MK
125382002-02-13 Mark Kettenis <kettenis@gnu.org>
12539
12540 Apply missing bits of 2002-01-15 patch.
12541 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12542 (fill_fpregset): Use i387_fill_fsave.
12543
49b563f9
KS
125442002-02-12 Keith Seitz <keiths@redhat.com>
12545
49b563f9
KS
12546 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12547 (core_addr_to_string_nz): New function.
12548
aeb98c60
RE
125492002-02-11 Richard Earnshaw <rearnsha@arm.com>
12550
12551 * arm-linux-nat.c: Really include arm-tdep.h.
12552 * config/arm/tm-linux.h (struct type, struct value): Declare.
12553
65554fef
MS
125542002-02-11 Michael Snyder <msnyder@redhat.com>
12555
12556 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12557 (gcore section): Ifdef for Solaris and Unixware only.
12558 (procfs_do_thread_registers): Unixware needs one lwpstatus
12559 per thread (not one prstatus or pstatus).
12560 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12561 not over all gdb threads. For unixware, call elfcore_write_pstatus
12562 once before iterating over threads.
12563
34e8f22d
RE
125642002-02-11 Richard Earnshaw <rearnsha@arm.com>
12565
12566 * arm-tdep.h: New file.
12567 * arm-tdep.c: Include arm-tdep.h.
12568 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12569 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12570 (arm_print_float_info, arm_register_type, convert_to_extended)
12571 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12572 (arm_extract_return_value, arm_register_name): Make static.
12573 (arm_software_single_step): Similarly. Fix types in declaration.
12574 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12575 (arm_store_return_value, arm_store_struct_return): New functions.
12576 (arm_gdbarch_init): Register the above functions. Also register
12577 call_dummy_start_offset, sizeof_call_dummy_words,
12578 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12579 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12580 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12581 prologue_cache.saved_regs here, rather than ...
12582 (_initialize_arm_tdep): ... here.
12583 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12584 declarations.
12585 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12586 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12587 (arm_print_float_info, arm_register_type, convert_to_extended)
12588 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12589 (arm_extract_return_value, arm_register_name): Delete declarations.
12590 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12591 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12592 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12593 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12594 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12595 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12596 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12597 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12598 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12599 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12600 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12601 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12602 interface.
12603 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12604 * remote-rdi.c remote-rdp.c: Likewise.
12605 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12606 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12607 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12608 definition.
12609
12610 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12611 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12612 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12613 from non-ARM_ prefixed definitions.
12614 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12615 all uses of above.
12616 * remote-rdi.c remote-rdp.c: Likewise.
12617 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12618
148754e5
RE
126192002-02-11 Richard Earnshaw <rearnsha@arm.com>
12620
12621 * arm-tdep.c (arm_frameless_function_invocation)
12622 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12623 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12624 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12625 (arm_pop_frame, arm_get_next_pc): Make static.
12626 (arm_gdbarch_init): Register above in gdbarch structure.
12627 (arm_read_fp): Renamed from arm_target_read_fp.
12628 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12629 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12630 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12631 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12632 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12633 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12634 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12635 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12636 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12637 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12638 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12639
434d2d4f
DJ
126402002-02-10 Daniel Jacobowitz <drow@mvista.com>
12641
12642 * symtab.c (compare_search_syms): New function.
12643 (sort_search_symbols): New function.
12644 (search_symbols): Sort symbols after searching rather than
12645 before.
12646
55241689
AC
126472002-02-10 Andrew Cagney <ac131313@redhat.com>
12648
12649 * NEWS: Linux -> GNU/Linux.
12650
028c194b
AC
126512002-02-10 Andrew Cagney <ac131313@redhat.com>
12652
12653 * gdbarch.sh: For for level one methods, disallow a definition
12654 when partially multi-arched. Add comments explaining rationale.
12655 * gdbarch.h: Re-generate.
12656
6acf50cd
AC
126572002-02-10 Andrew Cagney <ac131313@redhat.com>
12658
12659 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12660 multi-arch partial.
aaa38bb5 12661
50248794
AC
126622002-02-10 Andrew Cagney <ac131313@redhat.com>
12663
12664 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12665 field. Use diff -u.
12666 * gdbarch.c: Re-generate.
12667
c30e0066
AC
126682002-02-10 Andrew Cagney <ac131313@redhat.com>
12669
9b56c5f3 12670 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12671 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12672 partial.
12673
6e6d6484
AC
126742002-02-10 Andrew Cagney <ac131313@redhat.com>
12675
12676 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12677 multi-arch partial.
12678 (PUSH_ARGUMENTS): Switch to using predefault.
12679 * gdbarch.c: Regenerate.
12680
c203844d
AC
126812002-02-10 Andrew Cagney <ac131313@redhat.com>
12682
12683 * valops.c (PUSH_ARGUMENTS): Delete definition.
12684 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12685 partial. Default to default_push_arguments.
12686 * gdbarch.h, gdbarch.c: Regenerate.
12687
b5a2688f
AC
126882002-02-09 Andrew Cagney <ac131313@redhat.com>
12689
12690 * defs.h (throw_exception): Rename return_to_top_level. Update
12691 comments.
12692 * utils.c (error_stream, internal_verror, quit): Ditto.
12693 * top.c (throw_exception, catcher): Ditto.
12694 * sparclet-rom.c (sparclet_load): Ditto.
12695 * remote.c (interrupt_query, minitelnet): Ditto.
12696 * remote-sds.c (interrupt_query): Ditto.
12697 * remote-mips.c (mips_error, mips_kill): Ditto.
12698 * ocd.c (interrupt_query): Ditto.
12699 * monitor.c (monitor_interrupt_query): Ditto.
12700 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12701 * target.h: Update comment.
aaa38bb5 12702
b5a2688f 12703 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12704
2fa5c1e0
AC
127052002-02-09 Andrew Cagney <ac131313@redhat.com>
12706
12707 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12708 default_double_format.
12709 * gdbarch.h, gdbarch.c: Re-generate.
12710 * findvar.c (floatformat_unknown): Delete variable definition.
12711 * doublest.h (floatformat_unknown): Delete variable declaration.
12712
da966255
JB
127132002-02-09 Jim Blandy <jimb@redhat.com>
12714
12715 * stabsread.c (read_type): Add code to parse Sun's syntax for
12716 prototyped function types.
12717
123a4891
AC
127182002-02-09 Andrew Cagney <ac131313@redhat.com>
12719
12720 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12721 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12722
fb39c8f3
PS
127232002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12724
12725 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12726 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12727 now _initialize_xcoffsolib gets called again and overrides the
12728 commands from solib.c in a native configuration.
12729
0b87a11d
MK
127302002-02-09 Mark Kettenis <kettenis@gnu.org>
12731
12732 * doublest.c (store_typed_floating): Don't try to return a value.
12733 Fixes PR gdb/290.
12734
bdc2fc72
JB
127352002-02-08 Jim Blandy <jimb@redhat.com>
12736
12737 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12738 is prototyped and has no arguments, print its argument list as
12739 `(void)'.
12740
da69bbcf
CD
127412002-02-08 Chris Demetriou <cgd@broadcom.com>
12742
12743 * MAINTAINERS (write-after-approval): Add myself.
12744 (paper-trail): I've escaped!
aaa38bb5 12745
b69571f5
CF
127462002-02-08 Christopher Faylor <cgf@redhat.com>
12747
12748 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12749 changes.
12750 (_initialize_check_for_gdb_ini): Ditto.
12751
f6871398
MH
127522002-02-08 Martin M. Hunt <hunt@redhat.com>
12753
12754 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12755 xaprintf -> xasprintf.
12756
4e52d31c
PM
127572002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12758
12759 * win32-nat.c: Remove use of printf and sprintf functions.
12760
39bbf761
RE
127612002-02-08 Richard Earnshaw <rearnsha@arm.com>
12762
12763 * arm-tdep.c (arm_frame_chain_valid): Make static.
12764 (arm_push_arguments): Likewise.
12765 (arm_gdbarch_init): New function.
12766 (_initialize_arm_tdep): Call it.
12767 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12768 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12769 (FRAME_CHAIN_VALID): Delete.
12770 (arm_frame_chain_valid): Delete declaration.
12771 (PUSH_ARGUMENTS): Delete.
12772 (arm_push_arguments): Delete declaration.
12773 (CALL_DUMMY_P): Delete.
12774
9c9532c9
CV
127752002-02-08 Andrew Cagney <ac131313@redhat.com>
12776 Corinna Vinschen <vinschen@redhat.com>
12777
12778 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12779 on builtin float types.
12780
4e8f7a8b
DJ
127812002-02-08 Daniel Jacobowitz <drow@mvista.com>
12782
12783 * utils.c: Include <curses.h> before "bfd.h".
12784 * tui/tui-hooks.c: Likewise.
12785 * tui/tui.c: Likewise.
12786 * tui/tuiCommand.c: Likewise.
12787 * tui/tuiData.c: Likewise.
12788 * tui/tuiDataWin.c: Likewise.
12789 * tui/tuiDisassem.c: Likewise.
12790 * tui/tuiGeneralWin.c: Likewise.
12791 * tui/tuiIO.c: Likewise.
12792 * tui/tuiLayout.c: Likewise.
12793 * tui/tuiRegs.c: Likewise.
12794 * tui/tuiSource.c: Likewise.
12795 * tui/tuiSourceWin.c: Likewise.
12796 * tui/tuiStack.c: Likewise.
12797 * tui/tuiWin.c: Likewise.
12798
cd4bffcf
EZ
127992002-02-07 Elena Zannoni <ezannoni@redhat.com>
12800
12801 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12802 to include space for pseudoregs as well. Update loops accordingly.
12803 (sh_fp_frame_init_saved_regs): Ditto.
12804 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12805
26806ce2
AC
128062002-02-07 Andrew Cagney <ac131313@redhat.com>
12807
12808 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12809 Add Richard Earnshaw to Arm maintainers.
12810
97fdab62
AC
128112002-02-07 Andrew Cagney <ac131313@redhat.com>
12812
a6b98203
AC
12813 * defs.h (warning_begin): Delete declaration.
12814
97fdab62
AC
12815 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12816 Delete macro.
12817
78b29b40
MS
128182002-02-07 Michael Snyder <msnyder@redhat.com>
12819
aaa38bb5 12820 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12821 Logic bug, remove misplaced else.
12822
d8849953
KD
128232002-02-07 Klee Dienes <klee@apple.com>
12824
12825 * fork-inferior.c (fork_inferior): Add '!' to the list of
12826 characters that need to be quoted when building a string for the
12827 shell. Quote '!' specifically with a backslash, since CSH chokes
12828 when trying to evaluate "str!str".
aaa38bb5 12829
095778a0
NC
128302002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12831
12832 * rdi-share/host.h: Only provide a typedef for bool if it is not
12833 defined.
12834
1900040c
MS
128352002-02-04 Michael Snyder <msnyder@redhat.com>
12836
12837 * breakpoint.h (enum bptype): Add new overlay event bp type.
12838 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12839
1900040c
MS
12840 * breakpoint.c (create_internal_breakpoint): New function.
12841 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12842 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12843 (create_thread_event_breakpoint): Ditto.
12844 (create_solib_event_breakpoint): Ditto.
12845 (create_overlay_event_breakpoint): New function.
12846 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12847 (update_breakpoints_after_exec): Delete and re-initialize
12848 overlay event breakpoints after an exec. Add FIXME comment
12849 about longjmp breakpoint.
12850 (print_it_typical): Ignore overlay event breakpoints.
12851 (print_one_breakpoint): Ditto.
12852 (mention): Ditto.
12853 (bpstat_what): Do not stop for overlay event breakpoints.
12854 (delete_breakpoint): Don't delete overlay event breakpoints.
12855 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12856 (breakpoint_re_set): Re-create overlay event breakpoint.
12857
12858 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12859 (overlay_manual_command): Disable overlay breakpoints.
12860 (overlay_off_command): Disable overlay breakpoints.
12861
082fc60d
RE
128622002-02-06 Richard Earnshaw <rearnsha@arm.com>
12863
12864 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12865 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12866 to here from config/tm-arm.h.
12867 (coff_sym_is_thumb): Make static.
12868 (arm_elf_make_msymbol_special): New function.
12869 (arm_coff_make_msymbol_special): New function.
12870 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12871 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12872 (coff_sym_is_thumb): Delete declaration.
12873 (arm_elf_make_msymbol_special): Declare.
12874 (arm_coff_make_msymbol_special): Declare.
12875 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12876 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12877
039c5766
RE
128782002-02-06 Richard Earnshaw <rearnsha@arm.com>
12879
12880 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12881
128822002-02-06 Richard Earnshaw <rearnsha@arm.com>
12883
12884 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12885 * gdbarch.c gdbarch.h: Regenerate.
12886 * arch-utils.c (default_print_float_info): New function.
12887 * arch-utils.h (default_print_float_info): Prototype it.
12888 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12889 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12890 (PRINT_FLOAT_INFO): Document it.
12891
12892 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12893 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12894 (PRINT_FLOAT_INFO): Define.
12895
58fa08f0
PM
128962002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12897
aaa38bb5 12898 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12899 Add typecast to sprintf argument to suppress a warning.
12900
7393af7c
PM
129012002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12902
58fa08f0 12903 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12904 to allow easier handling of pass state.
12905 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12906 that gives exception name and address.
12907 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12908 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12909 exceptions added.
aaa38bb5
AJ
12910 (child_continue): Correctly report continue_status.
12911 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12912 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12913 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12914 the exception should be passed to debuggee or not.
12915
6af4589c
MS
129162002-02-05 Michael Snyder <msnyder@redhat.com>
12917
12918 * regcache.c (fetch_register): Call target_fetch_register
12919 only if we don't call FETCH_PSEUDO_REGISTER.
12920 (store_register): Call target_store_register only if we
12921 don't call STORE_PSEUDO_REGISTER.
12922
a2cf933a
EZ
129232002-02-05 Elena Zannoni <ezannoni@redhat.com>
12924
12925 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12926 ELF_MAKE_MSYMBOL_SPECIAL.
12927 * gdbarch.c, gdbarch.h: Regenerate.
12928 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12929 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12930 * elfread.c (elf_symtab_read): Compile use of
12931 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12932 multiarched.
12933 * coffread.c (coff_symtab_read): Ditto, for
12934 COFF_MAKE_MSYMBOL_SPECIAL.
12935
6bb7be43
JB
129362002-02-05 Jim Blandy <jimb@redhat.com>
12937
12938 * solib-svr4.c (svr4_truncate_ptr): New function.
12939 (svr4_relocate_section_addresses): Do the address arithmetic with
12940 the appropriate truncation for target addresses, even when
12941 CORE_ADDR is larger than a target address.
12942
e18651ec
DJ
129432002-02-05 Daniel Jacobowitz <drow@mvista.com>
12944
12945 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12946 to (int *).
12947
6b2725be
DJ
129482002-02-05 Daniel Jacobowitz <drow@mvista.com>
12949
12950 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12951 code.
12952
fca9e603
DJ
129532002-02-05 Daniel Jacobowitz <drow@mvista.com>
12954
12955 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12956
6c537a52
DJ
129572002-02-05 Daniel Jacobowitz <drow@mvista.com>
12958
12959 * gdbserver/linux-low.c: Remove unused include files.
12960
d844cde6
DJ
129612002-02-05 Daniel Jacobowitz <drow@mvista.com>
12962
12963 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12964 (read_inferior_memory): Use it.
12965 (write_inferior_memory): Likewise.
12966
d07c63e7
DJ
129672002-02-05 Daniel Jacobowitz <drow@mvista.com>
12968
12969 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12970 grubbing through sys_errlist.
12971
da6d8c04
DJ
129722002-02-05 Daniel Jacobowitz <drow@mvista.com>
12973
12974 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12975
5b421780
PM
129762002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12977 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12978
9f60d481
AC
129792002-02-04 Andrew Cagney <ac131313@redhat.com>
12980
12981 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12982 (do_sfunc, set_cmd_sfunc): New functions.
12983
12984 * command.h (struct cmd_list_element): Add field func.
12985 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12986 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12987 * cli/cli-decode.h: Ditto.
12988
12989 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12990 (help_all, help_cmd_list): Ditto.
12991 (find_cmd, complete_on_cmdlist): Ditto.
12992 * top.c (execute_command): Ditto.
12993
12994 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12995 function.sfunc.
12996
12997 * infcmd.c (notice_args_read): Fix function signature.
12998
12999 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13000 * cli/cli-decode.c (add_set_cmd): Ditto.
13001 * utils.c (initialize_utils): Ditto.
13002 * maint.c (_initialize_maint_cmds): Ditto.
13003 * infrun.c (_initialize_infrun): Ditto.
13004 * demangle.c (_initialize_demangler): Ditto.
13005 * remote.c (add_packet_config_cmd): Ditto.
13006 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13007 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13008 * proc-api.c (_initialize_proc_api): Ditto.
13009 * kod.c (_initialize_kod): Ditto.
13010 * valprint.c (_initialize_valprint): Ditto.
13011 * top.c (init_main): Ditto.
13012 * infcmd.c (_initialize_infcmd): Ditto.
13013 * corefile.c (_initialize_core): Ditto.
13014 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13015 * arch-utils.c (initialize_current_architecture): Ditto.
13016 (_initialize_gdbarch_utils): Ditto.
13017 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13018
13019 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13020 * wince.c (_initialize_inftarg): Ditto.
13021 * symfile.c (_initialize_symfile): Ditto.
13022 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13023 * language.c (_initialize_language): Ditto.
13024 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13025
f9ba0717
MS
130262002-02-04 Michael Snyder <msnyder@redhat.com>
13027
13028 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13029
0c74b2a7
DJ
130302002-02-04 Daniel Jacobowitz <drow@mvista.com>
13031
13032 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13033 Add rules for building the register data files.
13034
c638789f
DJ
130352002-02-04 Daniel Jacobowitz <drow@mvista.com>
13036
13037 * regformats/regdat.sh: Add braces to the definition of
13038 expedite_regs_${arch}.
13039
db253027
DJ
130402002-02-04 Daniel Jacobowitz <drow@mvista.com>
13041
13042 * regformats/regdef.h (struct reg): Add comment describing the
13043 requirements for offset and size fields.
13044
206be19c
AS
130452002-02-04 Andreas Schwab <schwab@suse.de>
13046
13047 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13048 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13049
181c1381
RE
130502002-02-04 Richard Earnshaw <rearnsha@arm.com>
13051
13052 * gdbarch.sh (copyright): Update years in generated header.
13053 (SMASH_TEXT_ADDRESS): Add rule.
db253027 13054 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
13055 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13056 * dbxread.c: Likewise.
13057 * dwarfread.c: Likewise.
13058 * elfread.c: Likewise.
13059 * somread.c: Likewise.
13060
13061 * arm-tdep.c (arm_smash_text_address): New function.
13062 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13063
fa4ba8da
PM
130642002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13065
13066 Add support for hardware watchpoints on win32 native.
aaa38bb5 13067 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 13068 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 13069 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
13070 of debug registers.
13071 (debug_registers_changed): New variable. Reflects when debug registers
13072 are changed and need to be written to inferior.
aaa38bb5 13073 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
13074 was set, used when new threads are created.
13075 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13076 i386-nat code.
13077 (thread_rec): Set dr array if id is the thread of current_event .
13078 (child_continue, child_resume): Change the debug registers for all
13079 threads if debug_registers_changed.
13080 (child_add_thread): Change the debug registers if debug_registers_used.
13081 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13082 Link nm.h to new nm-cygwin.h file.
13083 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13084 of hardware registers.
13085
a73c86fb
AC
130862002-02-03 Andrew Cagney <ac131313@redhat.com>
13087
13088 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13089 Restore behavour broken by 2002-01-20 Andrew Cagney
13090 <ac131313@redhat.com> IEEE_FLOAT removal.
13091
acf5ed49
DJ
130922002-02-03 Daniel Jacobowitz <drow@mvista.com>
13093
13094 * c-valprint.c (c_val_print): Pass a proper valaddr to
13095 cp_print_class_method.
13096 * valops.c (search_struct_method): If there is only one method
13097 and args is NULL, return that method.
13098
493d28d5
DJ
130992002-02-03 Daniel Jacobowitz <drow@mvista.com>
13100
13101 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13102 accessing tag_name directly.
13103
7495dfdb
DJ
131042002-02-03 Daniel Jacobowitz <drow@mvista.com>
13105
13106 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13107 of accessing tag_name directly.
13108
dd6bda65
DJ
131092002-02-03 Daniel Jacobowitz <drow@mvista.com>
13110
13111 PR gdb/280
13112 * gdbtypes.c (replace_type): New function.
13113 * gdbtypes.h (replace_type): Add prototype.
13114 * stabsread.c (read_type): Use replace_type.
13115
88fe217c
RE
131162002-02-03 Richard Earnshaw <rearnsha@arm.com>
13117
13118 * Makefile.in (memattr.o): Add missing dependencies rule.
13119
e5d66720
PS
131202002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13121
13122 * breakpoint.c (break_at_finish_command): Really export.
13123 (break_at_finish_at_depth_command): Ditto.
13124 (tbreak_at_finish_command): Ditto.
13125 * hppa-tdep.c: Include completer.h.
13126 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13127 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13128
fffee0be
AC
131292002-02-01 Andrew Cagney <ac131313@redhat.com>
13130
13131 * utils.c (do_write): New function.
13132 (error_stream): Rewrite combining the code from error_begin and
13133 verror.
13134 (verror): Rewrite using error_stream.
13135 (error_begin): Delete function.
13136
255e7dbf
AC
131372002-02-01 Andrew Cagney <ac131313@redhat.com>
13138
13139 * utils.c (error_begin): Make static.
13140 * defs.h (error_begin): Delete declaration.
13141
13142 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13143 (decode_line_1): Use cplusplus_error instead of error_begin,
13144 cplusplus_hint and return_to_top_level.
13145 * coffread.c (coff_symfile_read): Use error instead of error_begin
13146 and return_to_top_level.
13147 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13148
ddfe3c15
AC
131492002-02-01 Andrew Cagney <ac131313@redhat.com>
13150
13151 * language.h (type_error, range_error): Make string parameter
13152 constant.
13153 * language.c (warning_pre_print): Delete extern declaration.
13154 * dwarfread.c (warning_pre_print): Ditto.
13155 * language.c (type_error, range_error): Rewrite to use verror and
13156 vwarning instead of warning_begin.
13157
03ac34d5
MS
131582002-02-01 Michael Snyder <msnyder@redhat.com>
13159
261c4ca2
MS
13160 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13161 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 13162
e00d1dc8
AC
131632002-02-01 Andrew Cagney <ac131313@redhat.com>
13164
13165 * command.h (NO_FUNCTION): Delete macro.
13166 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13167 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13168 * tracepoint.c (_initialize_tracepoint): Ditto.
13169 * cli/cli-decode.c (add_set_cmd): Ditto.
13170 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 13171
76b79d6e
DJ
131722002-02-01 Daniel Jacobowitz <drow@mvista.com>
13173
13174 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13175 Update ``this'' pointer when calling virtual functions.
13176
799f9e91
MS
131772002-02-01 Michael Snyder <msnyder@redhat.com>
13178
c7bd442c 13179 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
13180 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13181
3cf384d4
DJ
131822002-02-01 Daniel Jacobowitz <drow@mvista.com>
13183
13184 * regformats/reg-arm.dat: New file.
13185 * regformats/reg-i386.dat: New file.
13186 * regformats/reg-ia64.dat: New file.
13187 * regformats/reg-m68k.dat: New file.
13188 * regformats/reg-mips.dat: New file.
13189 * regformats/reg-ppc.dat: New file.
13190 * regformats/reg-sh.dat: New file.
13191 * regformats/regdef.h: New file.
13192 * regformats/regdat.sh: New file.
13193
0defa245
RE
131942002-02-01 Richard Earnshaw <reanrsha@arm.com>
13195
13196 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13197 (arm_frame_args_address, arm_frame_locals_address): New functions.
13198 (arm_frame_num_args): New function.
13199 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13200 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13201 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13202
405f26e6
MS
132032002-01-31 Michael Snyder <msnyder@redhat.com>
13204
502fd408
MS
13205 * breakpoint.c (break_at_finish_command): Export.
13206 (break_at_finish_at_depth_command): Export.
13207 (tbreak_at_finish_command): Export.
d6020d45 13208 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 13209 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 13210 "txbreak" commands, which are HPPA specific.
502fd408 13211
7d35e135
MS
13212 * printcmd.c (disassemble_command): Remove an ancient
13213 artifact of an old merge.
13214
aaa38bb5 13215 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
13216 Define enum constant values for overlay mode.
13217 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
13218 (overlay_is_mapped, overlay_auto_command,
13219 overlay_manual_command): Ditto.
d874f1e2 13220
aaa38bb5
AJ
13221 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13222 breakpoint_here_p, breakpoint_inserted_here_p,
13223 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
13224 describe_other_breakpoints, check_duplicates, clear_command):
13225 Coding standard fixes.
13226
8add0441 13227 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 13228 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
13229 code: check bfd SEC_READONLY flag for section.
13230
e351066e
AC
132312002-01-31 Andrew Cagney <ac131313@redhat.com>
13232
7d35e135 13233 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 13234
8a48e967
DJ
132352002-01-30 Daniel Jacobowitz <drow@mvista.com>
13236
13237 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13238 data symbols, since we search based on textlow and texthigh.
13239 (find_pc_sect_symtab): Likewise.
13240
f5a96129
AC
132412002-01-30 Andrew Cagney <ac131313@redhat.com>
13242
13243 * defs.h (vwarning): Declare.
f5a96129
AC
13244 * utils.c (vwarning): New function.
13245 (warning): Call vwarning.
13246 (warning_begin): Delete function.
13247
13248 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13249 the warning message.
13250 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13251 warning_begin.
13252
cefd4ef5
MS
132532002-01-30 Michael Snyder <msnyder@redhat.com>
13254
1a703748
MS
13255 * NEWS: Mention "set trust-readonly-sections" command.
13256 Mention generate-core-file command.
cefd4ef5 13257
3a11626d
MS
132582002-01-15 Michael Snyder <msnyder@redhat.com>
13259
13260 * target.c: New command, "set trust-readonly-sections on".
13261 (do_xfer_memory): Honor the suggestion to trust readonly sections
13262 by reading them from the object file instead of from the target.
13263 (initialize_targets): Register command "set trust-readonly-sections".
13264
d1c7e53b
AC
132652002-01-29 Andrew Cagney <ac131313@redhat.com>
13266
13267 * parse.c (target_map_name_to_register): Simplify, search regs and
13268 pseudo-regs using a single loop.
13269
e2c9a72c
AC
132702002-01-30 Andrew Cagney <ac131313@redhat.com>
13271
13272 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13273
69824b4e
MK
132742002-01-15 Rodney Brown <rbrown64@csc.com.au>
13275
13276 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13277 * config/i386/i386v42mp.mh: Add i387-nat.o .
13278 * i386v4-nat.c: Include i387-nat.h.
13279 (supply_fpregset): Use i387_supply_fsave.
13280 (fill_fpregset): Use i387_fill_fsave.
13281
6eb69eab
RE
132822002-01-30 Richard Earnshaw <rearnsha@arm.com>
13283
13284 * arm-tdep.c (arm_call_dummy_words): Define.
13285 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13286 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13287 (CALL_DUMMY_WORDS): Define.
13288 (arm_call_dummy_words): Declare.
13289 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13290 (arm_linux_call_dummy_words): Declare.
13291
9852326a
AS
132922002-01-30 Andreas Schwab <schwab@suse.de>
13293
13294 * m68klinux-nat.c: Fix last change to use regcache_collect
13295 instead of referencing registers[] directly.
13296
977a3030
AC
132972002-01-29 Andrew Cagney <ac131313@redhat.com>
13298
13299 * parse.c (target_map_name_to_register): Delete code wrapped in
13300 #ifdef REGISTER_NAME_ALIAS_HOOK.
13301
2076c72b
MS
133022002-01-28 Michael Snyder <msnyder@redhat.com>
13303
13304 * regcache.c (legacy_read_register_gen): Need to be able to
13305 read pseudo-register as well as real register.
13306 (legacy_write_register_gen): Ditto.
13307
8fcc723b
AC
133082002-01-28 Andrew Cagney <ac131313@redhat.com>
13309
13310 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13311 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13312 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13313 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13314 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13315 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13316 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13317 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13318 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13319 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13320 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13321 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13322 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13323 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13324 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13325 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13326 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13327 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13328 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13329 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13330
afe64c1a
AC
133312002-01-28 Andrew Cagney <ac131313@redhat.com>
13332
13333 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13334 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13335 (initialize_current_architecture): Update target_byte_order using
13336 information from BFD.
aaa38bb5 13337 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
13338 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13339
75bc7ddf
AC
133402002-01-28 Andrew Cagney <ac131313@redhat.com>
13341
13342 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13343 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13344
13345 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13346 #ifdef INVALID_FLOAT.
13347 * infcmd.c (do_registers_info): Ditto.
13348 * values.c (unpack_double): Ditto. Add comment.
13349
13350 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13351 already commented out.
13352
0280a90a
AS
133532002-01-26 Andreas Schwab <schwab@suse.de>
13354
13355 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13356 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13357 registers and add support for PTRACE_GETREGS.
13358
7072a954
AC
133592002-01-24 Andrew Cagney <ac131313@redhat.com>
13360
13361 GDB 5.1.1 released from 5.1 branch.
13362 * NEWS: Add 5.1.1 news.
13363 * README: Sync with 5.1 branch.
13364
86f902e0
FF
133652002-01-23 Fred Fish <fnf@redhat.com>
13366
13367 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13368 stabstring on initial malloc. Reallocing will copy it for us,
13369 if necessary.
13370
8af51c36
EZ
133712002-01-23 Elena Zannoni <ezannoni@redhat.com>
13372
aaa38bb5 13373 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
13374 (HFILES_NO_SRCDIR): Remove hpread.h.
13375 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13376 (hpread.o): Update dependencies.
13377 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13378
13379 * hp-psymtab-read.c: Remove file.
13380 * hp-symtab-read.c: Remove file.
13381 * hpread.h: Remove file.
13382
13383 * hpread.c: Merge all contents of hp-psymtab-read.c,
13384 hp-symtab-read.c and hpread.h into this file, as it was prior to
13385 January 1999.
13386
13387 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 13388 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
13389 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13390 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13391
dc5cfeb6
EZ
133922002-01-23 Elena Zannoni <ezannoni@redhat.com>
13393
13394 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13395 fill_gregset): Call gdbarch_tdep() just once, assign result to
13396 variable and use that, instead of calling the function several
13397 times.
13398
ea87b71b
AO
133992002-01-24 Alexandre Oliva <aoliva@redhat.com>
13400
13401 * configure.host: Accept sparcv9 as alias for sparc64.
13402 * configure.tgt: Likewise.
13403
13fc0c2f
KB
134042002-01-22 Kevin Buettner <kevinb@redhat.com>
13405
13406 * solib-aix5.c (build_so_list_from_mapfile)
13407 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13408 arguments is not reversed.
13409 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13410 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 13411
7bd872fe
EZ
134122002-01-22 Elena Zannoni <ezannoni@redhat.com>
13413
13414 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13415 modified version of obsolete sh_fetch_pseudo_register.
13416 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13417 (sh4_register_read): New function.
13418 (sh_pseudo_register_write): New function. Renamed and modified
13419 version of obsolete sh_store_pseudo_register.
13420 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13421 (sh4_register_write): New function.
13422 (sh_gdbarch_init): Remove setting of gdbarch function
13423 fetch_pseudo_register and store_pseudo_register. Remove setting of
13424 register_convert_to_raw, register_convert_to_virtual,
13425 register_convertible.
13426 (sh_sh4_register_convertible): Delete. No longer needed. All is
13427 taken care by architecture specific functions
13428 register_read/register_write.
13429 (sh_sh4_register_convert_to_virtual): Make static.
13430 (sh_sh4_register_convert_to_raw): Ditto.
13431
069e84fd
AC
134322002-01-22 Andrew Cagney <ac131313@redhat.com>
13433
13434 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13435 (floatformat_is_nan, floatformat_mantissa): Ditto.
13436
13437 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13438 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13439 builtin_type_ieee_double_little,
13440 builtin_type_ieee_double_littlebyte_bigword,
13441 builtin_type_m68881_ext, builtin_type_i960_ext,
13442 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13443 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13444 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13445 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13446
211a4f69
CV
134472002-01-22 Corinna Vinschen <vinschen@redhat.com>
13448
13449 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13450 parameter. Set frameless flag if it exists and depended of
13451 whether the scanned function is frameless or not.
13452 (xstormy16_skip_prologue): If function is frameless, return
13453 result of xstormy16_scan_prologue().
13454 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13455 call.
13456
f81353e4
EZ
134572002-01-21 Elena Zannoni <ezannoni@redhat.com>
13458
13459 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13460 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13461 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13462 sh_sh4_register_byte, sh_sh4_register_raw_size,
13463 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13464 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13465 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13466 sh_store_pseudo_register, sh_do_pseudo_register): Call
13467 gdbarch_tdep() just once, assign result to variable and use that,
13468 instead of calling the function several times.
13469
63c73a17
MK
134702002-01-20 Mark Kettenis <kettenis@gnu.org>
13471
13472 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13473 macros instead of LAST_FPU_CTRL_REGNUM.
13474 (store_register): Likewise.
13475
39ad761d
JB
134762002-01-21 Jim Blandy <jimb@redhat.com>
13477
13478 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13479 is up-to-date before running the program, not just when a program
13480 exits.
13481
3d74b771
FF
134822002-01-21 Fred Fish <fnf@redhat.com>
13483
13484 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13485 when we have found all instructions we are looking for.
13486
966fbf70
RE
134872002-01-21 Richard Earnshaw <rearnsha@arm.com>
13488
13489 * arm-tdep.c (arm_register_name): New function.
13490 (arm_registers_names): Make static.
13491 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13492 (arm_register_name): Declare.
13493 (REGISTER_NAME): Use it.
13494
c3b4394c
RE
134952002-01-21 Richard Earnshaw <rearnsha@arm.com>
13496 Kevin Buettner <kevinb@redhat.com>
13497
13498 Convert arm targets to new FRAME interface.
13499 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13500 (arm_frame_find_save_regs): Delete.
13501 (arm_frame_init_saved_regs): New.
13502 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13503 Allocate extra_info as required. Convert all uses of fsr.regs
13504 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13505 to use extra_info.
13506 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13507 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13508 (check_prologue_cache, save_prologue_cache): Likewise.
13509 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13510 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13511 (FRAME_FIND_SAVED_REGS): Delete.
13512 (arm_frame_find_saved_regs): Delete prototype.
13513 (arm_frame_init_saved_regs): New prototype.
13514 (FRAME_INIT_SAVED_REGS): Define.
13515
61d99182
AC
135162002-01-20 Andrew Cagney <ac131313@redhat.com>
13517
13518 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13519
6aaea291
AC
135202002-01-20 Andrew Cagney <ac131313@redhat.com>
13521
13522 From Jeff Law <law@redhat.com>:
13523 * infttrace.c: Include <sys/pstat.h>.
13524 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13525 exec file if the ttrace equivalent fails.
13526
15f698d2
AC
135272002-01-20 Andrew Cagney <ac131313@redhat.com>
13528
13529 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13530 (closeLogFile): Ditto.
13531
f86ddd7c
MC
135322002-01-20 Michael Chastain <mec@shout.net>
13533
13534 * top.c (print_gdb_version): Bump copyright year to 2002.
13535
904507ce
AC
135362002-01-20 Andrew Cagney <ac131313@redhat.com>
13537
13538 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13539 Zannoni and Eli Zaretskii.
13540
d7f0b9ce
DJ
135412002-01-20 Daniel Jacobowitz <drow@mvista.com>
13542
13543 * buildsym.c: Update copyright years.
13544 * c-typeprint.c: Likewise.
13545 * dwarf2read.c: Likewise.
13546 * f-typeprint.c: Likewise.
13547 * gdbtypes.c: Likewise.
13548 * gdbtypes.h: Likewise.
13549 * hp-symtab-read.c: Likewise.
13550 * hpread.c: Likewise.
13551 * mdebugread.c: Likewise.
13552 * p-typeprint.c: Likewise.
13553
3fd3d7d2
AC
135542002-01-20 Andrew Cagney <ac131313@redhat.com>
13555
13556 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13557 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13558 byte-order selectable.
13559 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13560 * arch-utils.c: Ditto.
13561 (set_endian): Ditto.
13562 (set_endian_from_file): Ditto.
13563 * gdbserver/low-sim.c (create_inferior): Ditto.
13564 * gdbarch.sh: Ditto.
13565 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13566 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13567 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13568 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13569 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13570 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13571 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13572 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13573 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13574 macro definition.
13575 * config/mips/tm-wince.h: Remove #undef of macro
13576 TARGET_BYTE_ORDER_SELECTABLE.
13577 * config/sh/tm-wince.h: Ditto.
13578
b02dede2
DJ
135792002-01-20 Daniel Jacobowitz <drow@mvista.com>
13580
13581 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13582 member function fields. Add accessor macro
13583 TYPE_FN_FIELD_ARTIFICIAL.
13584 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13585 * c-typeprint.c (c_type_print_base): Skip artificial member
13586 functions.
13587
c3643761
DJ
135882002-01-20 Daniel Jacobowitz <drow@mvista.com>
13589
13590 * f-typeprint.c: Delete unused function f_type_print_args.
13591 * p-typeprint.c: Delete unused function pascal_type_print_args.
13592
8176bb6d
DJ
135932002-01-20 Daniel Jacobowitz <drow@mvista.com>
13594
13595 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13596 comment. Add ``artificial'' to ``union field_location''.
13597
13598 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13599
13600 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13601 * mdebugread.c (parse_symbol): Likewise.
13602 * stabsread.c (define_symbol): Likewise.
13603 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13604 initializing TYPE_FIELD_BITPOS to n (obsolete).
13605 (hpread_doc_function_type): Likewise.
13606 * hpread.c (hpread_function_type): Likewise.
13607
7fd60527
AC
136082002-01-20 Andrew Cagney <ac131313@redhat.com>
13609
13610 * configure.in (host_makefile_frag): Only require a host makefile
13611 fragment when a native build.
13612 * configure: Re-generate.
13613
c2f05ac9
AC
136142002-01-20 Andrew Cagney <ac131313@redhat.com>
13615
13616 * doublest.h (floatformat_from_type): Declare.
13617 * doublest.c (floatformat_from_type): New function.
13618 (convert_typed_floating): Use.
13619
13620 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13621 call to function floatformat_from_type.
13622
13623 * gdbarch.sh (IEEE_FLOAT): Delete.
13624 * gdbarch.h, gdbarch.c: Re-generate.
13625 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13626 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13627 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13628 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13629 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13630 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13631 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13632 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13633 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13634 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13635 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13636 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13637
13638 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13639 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13640 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13641 * sh-tdep.c (sh_gdbarch_init): Ditto.
13642 * mips-tdep.c (mips_gdbarch_init): Ditto.
13643 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13644 * cris-tdep.c (cris_gdbarch_init): Ditto.
13645
abf22e64
AJ
136462002-01-20 Jiri Smid <smid@suse.cz>
13647
13648 * configure.host, configure.tgt: Support x86-64.
13649 * NEWS: Note new target x86-64.
13650
b7c4cbf8
AJ
13651 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13652 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13653 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13654 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13655 x86-64-linux-nat.o): Fix dependencies.
13656
82600034
AC
136572002-01-19 Andrew Cagney <ac131313@redhat.com>
13658
13659 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13660 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13661 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13662 * config/sparc/xm-sun4os4.h: Delete file.
13663 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13664
bbe5c628
AC
136652002-01-19 Andrew Cagney <ac131313@redhat.com>
13666
13667 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13668 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13669 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13670 * config/i386/i386lynx.mh (XM_FILE): Delete.
13671 * config/rs6000/xm-rs6000ly.h: Delete file.
13672 * config/sparc/xm-sparclynx.h: Delete file.
13673 * config/m68k/xm-m68klynx.h: Delete file.
13674 * config/i386/xm-i386lynx.h: Delete file.
13675 * config/xm-lynx.h: Delete file.
13676 * config/djgpp/fnchange.lst: Update.
13677
f8453e34
JT
136782002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13679
13680 * alpha-tdep.c (alpha_register_byte): New function.
13681 (alpha_register_raw_size): Ditto.
13682 (alpha_register_virtual_size): Ditto.
13683 (alpha_skip_prologue_internal): Renamed from
13684 alpha_skip_prologue.
13685 (alpha_skip_prologue): New version that calls
13686 alpha_skip_prologue_internal.
13687 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13688 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13689 second argument from alpha_skip_prologue.
13690 (REGISTER_BYTE): Use alpha_register_byte.
13691 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13692 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13693 (FRAMELESS_FUNCTION_INVOCATION): Use
13694 generic_frameless_function_invocation_not.
13695 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13696 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13697
52d9e613
AC
136982002-01-19 Andrew Cagney <ac131313@redhat.com>
13699
13700 * config/mips/xm-news-mips.h: Delete file.
13701 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13702
13703 * config/m88k/xm-m88k.h: Delete file.
13704 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13705 * config/m88k/xm-delta88v4.h: Ditto.
13706 * config/m88k/xm-delta88.h: Ditto.
13707
13708 * config/alpha/xm-fbsd.h: Delete file.
13709 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13710
13711 * config/sparc/xm-sparc.h: Delete file.
13712 * Makefile.in (xm-sun4os4.h): Delete dependency.
13713 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13714 * config/sparc/xm-sun4os4.h: Ditto.
13715 * config/sparc/xm-linux.h: Ditto.
13716
13717 * config/i386/xm-windows.h: Delete file.
13718
2d1b2124
AC
137192002-01-19 Andrew Cagney <ac131313@redhat.com>
13720
13721 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13722 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13723
ee1f65f0
JT
137242002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13725
13726 * alpha-tdep.c (alpha_call_dummy_words): New.
13727 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13728 (CALL_DUMMY_P): Define.
13729 (CALL_DUMMY_WORDS): Define.
13730 (SIZEOF_CALL_DUMMY_WORDS): Define.
13731
98081e55
PB
137322002-01-19 Per Bothner <per@bothner.com>
13733
13734 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13735 isn't NULL, which can happen with some gcj-3.x-produced code.
13736
0d056799
JT
137372002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13738
13739 * alpha-tdep.c (alpha_register_virtual_type): New function.
13740 (alpha_init_frame_pc_first): Ditto.
13741 (alpha_fix_call_dummy): Ditto.
13742 (alpha_store_struct_return): Ditto.
13743 (alpha_extract_struct_value_address): Ditto.
13744 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13745 alpha_register_virtual_type.
13746 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13747 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13748 alpha_extract_struct_value_address.
13749 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13750 (INIT_FRAME_PC): Use init_frame_pc_noop.
13751 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13752
4604bcad
MK
137532002-01-19 Mark Kettenis <kettenis@gnu.org>
13754
13755 * i386gnu-nat.c: Include "i386-tdep.h".
13756 (fetch_fpregs): Simplify code dealing with uninitialized floating
13757 point states such that it doesn't require FP7_REGNUM.
13758
140f9984
JT
137592002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13760
abf22e64
AJ
13761 * alpha-tdep.c (frame_extra_info): New.
13762 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13763 frame->extra_info.
13764 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13765 (alpha_frame_saved_pc): Use frame->extra_info.
13766 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13767 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13768 (init_extra_frame_info): Rename to...
13769 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13770 (alpha_print_extra_frame_info): New function.
140f9984
JT
13771 (alpha_frame_locals_address): Ditto.
13772 (alpha_frame_args_address): Ditto.
abf22e64 13773 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13774 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13775 alpha_frame_args_address.
abf22e64 13776 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13777 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13778 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13779 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13780 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13781 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13782
d734c450
JT
137832002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13784
13785 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13786 (alpha_cannot_fetch_register): Ditto.
13787 (alpha_cannot_store_register): Ditto.
13788 (alpha_register_convertible): Ditto.
13789 (alpha_use_struct_convention): Ditto.
13790 * config/alpha/tm-alpha.h: Update copyright years.
13791 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13792 (INNER_THAN): Use core_addr_lessthan.
13793 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13794 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13795 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13796 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13797 (FRAME_CHAIN): Remove unnecessary cast.
13798
b4ceaee6
AC
137992002-01-18 Andrew Cagney <ac131313@redhat.com>
13800
13801 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13802 obsolete.
13803
0a65a603
AC
138042002-01-18 Andrew Cagney <ac131313@redhat.com>
13805
13806 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13807 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13808 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13809 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13810 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13811 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13812 * x86-64-linux-nat.c: Ditto.
13813
636a6dfc
JT
138142002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13815
abf22e64 13816 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13817 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13818 (REGISTER_NAME): Define.
13819
acceddb6
JT
138202002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13821
13822 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13823
ec32e4be
JT
138242002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13825
13826 * alpha-tdep.c: Update copyright years.
13827 (alpha_next_pc): New function.
13828 (alpha_software_single_step): Ditto.
13829 * config/alpha/tm-alpha.h: Add prototype for
13830 alpha_software_single_step.
13831
e771a871
JT
138322002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13833
13834 * alphabsd-nat.c: Update copyright years.
13835 (fill_gregset): Use regcache_collect.
13836 (fill_fpregset): Likewise.
13837 (fetch_inferior_registers): Only fetch integer registers
13838 if requested to do so.
13839 (store_inferior_registers): Only store integer registers
13840 if requested to do so.
13841
7708fa01
AC
138422002-01-17 Andrew Cagney <ac131313@redhat.com>
13843
13844 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13845 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13846 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13847 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13848 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13849 * config/arm/linux.mh (XDEPFILES): Delete.
13850 * config/arm/nbsd.mh (XDEPFILES): Delete.
13851 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13852 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13853 * config/i386/i386m3.mh (XDEPFILES): Delete.
13854 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13855 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13856 * config/i386/fbsd.mh (XDEPFILES): Delete.
13857 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13858 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13859 * config/i386/i386v4.mh (XDEPFILES): Delete.
13860 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13861 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13862 * config/i386/i386aix.mh (XDEPFILES): Delete.
13863 * config/i386/go32.mh (XDEPFILES): Delete.
13864 * config/i386/cygwin.mh (XDEPFILES): Delete.
13865 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13866 * config/i386/i386mach.mh (XDEPFILES): Delete.
13867 * config/i386/i386v32.mh (XDEPFILES): Delete.
13868 * config/i386/linux.mh (XDEPFILES): Delete.
13869 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13870 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13871 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13872 * config/i386/i386sco.mh (XDEPFILES): Delete.
13873 * config/i386/i386v.mh (XDEPFILES): Delete.
13874 * config/i386/nbsd.mh (XDEPFILES): Delete.
13875 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13876 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13877 * config/i386/symmetry.mh (XDEPFILES): Delete.
13878 * config/i386/obsd.mh (XDEPFILES): Delete.
13879 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13880 * config/ia64/linux.mh (XDEPFILES): Delete.
13881 * config/ia64/aix.mh (XDEPFILES): Delete.
13882 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13883 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13884 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13885 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13886 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13887 * config/m68k/linux.mh (XDEPFILES): Delete.
13888 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13889 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13890 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13891 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13892 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13893 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13894 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13895 * config/m88k/delta88.mh (XDEPFILES): Delete.
13896 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13897 * config/m88k/m88k.mh (XDEPFILES): Delete.
13898 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13899 * config/mips/linux.mh (XDEPFILES): Delete.
13900 * config/mips/irix6.mh (XDEPFILES): Delete.
13901 * config/mips/irix5.mh (XDEPFILES): Delete.
13902 * config/mips/irix4.mh (XDEPFILES): Delete.
13903 * config/mips/irix3.mh (XDEPFILES): Delete.
13904 * config/mips/decstation.mh (XDEPFILES): Delete.
13905 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13906 (NATDEPFILES): Move core-aout.o to here.
13907 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13908 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13909 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13910 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13911 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13912 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13913 * config/pa/hpux11.mh (XDEPFILES): Delete.
13914 * config/powerpc/aix.mh (XDEPFILES): Delete.
13915 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13916 * config/powerpc/linux.mh (XDEPFILES): Delete.
13917 * config/romp/rtbsd.mh: Rename XDEPFILES.
13918 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13919 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13920 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13921 * config/s390/s390.mh (XDEPFILES): Delete.
13922 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13923 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13924 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13925 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13926 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13927 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13928 * config/sparc/linux.mh (XDEPFILES): Delete.
13929 * config/vax/vaxult.mh (XDEPFILES): Delete.
13930 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13931 * Makefile.in (DEPFILES): Remove XDEPFILES.
13932
375fc983
AC
139332002-01-17 Andrew Cagney <ac131313@redhat.com>
13934
13935 * utils.c (internal_verror): Fix comments, default is yes not no.
13936 Update queries to match. Default to quit and dump core.
13937
8926118c
AC
139382002-01-17 Andrew Cagney <ac131313@redhat.com>
13939
13940 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13941 copyright.
13942 * defs.h, event-top.c, gdbcmd.h: Ditto.
13943 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13944 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13945 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13946 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13947 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13948 * mi/mi-main.c:Ditto.
13949
13950 * stack.c, symfile.c: Update copyright.
13951
45b7b345
DJ
139522002-01-17 Daniel Jacobowitz <drow@mvista.com>
13953
db728ff7
DJ
13954 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13955 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13956 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13957 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13958
db728ff7
DJ
139592002-01-17 Daniel Jacobowitz <drow@mvista.com>
13960
13961 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13962 * gdbserver/low-lynx.c (myattach): Likewise.
13963 * gdbserver/low-nbsd.c (myattach): Likewise.
13964 * gdbserver/low-sim.c (myattach): Likewise.
13965 * gdbserver/low-sparc.c (myattach): Likewise.
13966 * gdbserver/low-sun3.c (myattach): Likewise.
13967
13968 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13969
db728ff7 13970 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13971 (main): Handle "--attach".
13972
8de3c354
AC
139732002-01-16 Andrew Cagney <ac131313@redhat.com>
13974
13975 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13976 maintainer.
13977
b0129042
DJ
139782002-01-15 Daniel Jacobowitz <drow@mvista.com>
13979
13980 * c-typeprint.c (is_type_conversion_operator): Add additional
13981 check for non-conversion operators.
13982
ba8679fb 139832002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13984
13985 * linux-proc.c: Add "info proc" command, a la procfs.c.
13986 (read_mapping): New function, abstract and re-use code.
13987 (linux_find_memory_regions): Use new func read_mapping.
13988 (linux_info_proc_cmd): New function, implement "info proc".
13989 (_initialize_linux_proc): Add new command "info proc".
13990
e4f9b4d5
MS
139912002-01-15 Michael Snyder <msnyder@redhat.com>
13992
13993 * symfile.c (generic_load): Use bfd_map_over_sections method
13994 instead of manipulating bfd structure members directly.
13995 (add_section_size_callback): New function, bfd sections callback
13996 used by generic_load.
13997 (load_sections_callback): New function, bfd sections callback
13998 used by generic_load.
13999
08cf96df
EZ
140002002-01-15 Elena Zannoni <ezannoni@redhat.com>
14001
abf22e64 14002 [Based on work by Jim Blandy]
08cf96df
EZ
14003 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14004 (builtin_type_vec128): Export.
14005 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14006 types.
14007 (builtin_type_vec128): New builtin type for 128 bit vector
14008 registers.
14009 (build_gdbtypes): Initialize builtin_type_v16qi and
14010 builtin_type_v8hi. Create the vec128 register builtin type
14011 structure.
14012 (build_builtin_type_vec128): New function.
abf22e64 14013 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
14014 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14015 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14016 AltiVec register to new builtin type.
14017
d7242108
DJ
140182001-01-15 Daniel Jacobowitz <drow@mvista.com>
14019
14020 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14021 to make_cv_type.
14022
4ee3352d
AC
140232002-01-14 Andrew Cagney <ac131313@redhat.com>
14024
14025 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14026 CLEAN_UP_REGISTER_VALUE.
14027 * regcache.c (supply_register): Update only call.
14028
f015b2e7
AC
140292002-01-14 Andrew Cagney <ac131313@redhat.com>
14030
14031 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14032 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14033 a29k-*-vxworks* targets as obsolete.
14034
356ae49d
MS
140352002-01-14 Michael Snyder <msnyder@redhat.com>
14036
14037 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14038 until we can resolve portability issues.
14039 * gregset.h: Remove references to fpxregs.
14040 * gcore.c (gcore_command): Initialize note_sec to NULL.
14041
ade8f45e
AC
140422002-01-13 Andrew Cagney <ac131313@redhat.com>
14043
14044 * signals.c (target_signal_to_name): Rewrite. Only use
14045 signals[].name when in bounds and non-NULL.
abf22e64 14046
89c49e7a
AC
140472002-01-13 Andrew Cagney <ac131313@redhat.com>
14048
14049 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14050 * signals.c (target_signal_to_name): Verify that SIG is within the
14051 bounds of the signals array.
14052
4daa9f9f
AC
140532002-01-13 Andrew Cagney <ac131313@redhat.com>
14054
14055 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14056
ba4bbdcb
KS
140572002-01-13 Keith Seitz <keiths@redhat.com>
14058
14059 * stack.c (print_frame_info_base): Print the frame's pc
14060 only if when print_frame_info_listing_hook is not defined.
14061
575bbeb6
KS
140622002-01-13 Keith Seitz <keiths@redhat.com>
14063
14064 * varobj.c (varobj_set_value): Make sure that there were no
14065 errors evaluating the object before attempting to set its
14066 value.
14067 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14068 so this offset adjustment is no longer necessary.
14069 (create_child): Don't set the error flag if the child is
14070 a CPLUS_FAKE_CHILD.
14071 (value_of_child): If value_fetch_lazy fails, return NULL
14072 so that callers will be notified that an error occurred.
14073 (c_value_of_variable): Delay check of variable's validity
14074 until later. We actually want all structs and unions to have
14075 the value "{...}".
14076 Do not return "???" for variables which could not be evaluated.
14077 This error condition must be returned to the caller so that it
14078 can get the error condition from gdb.
14079 (cplus_name_of_child): Adjust index for vptr before figuring
14080 out the name of the child.
14081 (cplus_value_of_child): If a child's (real) parent is not valid,
14082 don't even bother trying to give a value for it. Just return
14083 an error. Change all instances in this function.
14084 (cplus_type_of_child): If our parent is one of the "fake"
14085 parents, we need to get at the type of the real parent, and
14086 derive the child's true type using this information.
14087
b76898ab
AC
140882002-01-13 Andrew Cagney <ac131313@redhat.com>
14089
14090 From 2002-01-09 John Marshall <johnm@falch.net>:
14091 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14092 sources.redhat.com, and tweak some related URLs which had
14093 suffered from linkrot.
14094
b6649e88
AC
140952002-01-13 Andrew Cagney <ac131313@redhat.com>
14096
14097 From Jeff law:
14098 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14099 structures passed in registers.
14100
82cc5033
EZ
141012002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14102
14103 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14104 white space which prevented compilation. Reported by DSK
14105 <dsk@student.unsw.edu.au>.
14106
ba5f2f8a
MS
141072002-01-11 Michael Snyder <msnyder@redhat.com>
14108
fbd35540
MS
14109 * symfile.c (build_section_addr_info_from_section_tab):
14110 Use bfd access method instead of manipulating bfd directly.
14111 (syms_from_objfile): Ditto.
14112 (simple_overlay_update_1): Ditto.
14113 (simple_overlay_update): Ditto.
14114 (generic_load): Ditto.
14115 (overlay_unmapped_address): FIXME comment, bfd access methods.
14116 (sections_overlap): FIXME comment, bfd access methods.
14117 (pc_in_mapped_range): FIXME comment, bfd access methods.
14118 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14119 (section_is_mapped): FIXME comment, bfd access methods.
14120 (section_is_overlay): FIXME comment, bfd access methods.
14121
ba5f2f8a
MS
14122 * symfile.c (generic_load): Whitespace and long line cleanups.
14123 Remove duplicate variable, change several local variables to
14124 more appropriate data types.
14125 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14126
17df2af6
AC
141272002-01-12 Andrew Cagney <ac131313@redhat.com>
14128
14129 From Peter Schauer:
14130 * language.c (longest_local_hex_string_custom): Use phex_nz to
14131 convert NUM to a hex string.
14132
ec920329
EZ
141332002-01-12 Elena Zannoni <ezannoni@redhat.com>
14134
14135 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14136 the function.
538a76d6 14137 Update Copyright year.
ec920329 14138
3abd2e01
AC
141392002-01-12 Andrew Cagney <ac131313@redhat.com>
14140
14141 * language.c (longest_raw_hex_string): Delete unused function.
14142
b21b22e0
PS
141432002-01-11 Petr Sorfa <petrs@caldera.com>
14144
14145 * MAINTAINERS (write-after-approval): Add myself.
14146 * dwarf2read.c (read_tag_string_type): Handling of
14147 DW_AT_byte_size.
14148 (read_tag_string_type): FORTRAN fix to prevent propagation of
14149 first string size.
14150 (set_cu_language): Handling of DW_LANG_Fortran95
14151
747fe712
RE
141522002-01-11 Richard Earnshaw <rearnsha@arm.com>
14153
14154 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14155 GETPID(inferior_ptid).
14156 (store_inferior_registers): Likewise.
14157
f1bea926
JM
141582002-01-10 Jason Merrill <jason@redhat.com>
14159
14160 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14161 Fix DW_OP_minus.
14162
ae940673
AC
141632002-01-10 Andrew Cagney <ac131313@redhat.com>
14164
14165 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14166 and bfd/elf32-sh-nbsd.c.
14167
00546b04
MS
141682002-01-10 Michael Snyder <msnyder@redhat.com>
14169
352ed7b4
MS
14170 * NEWS: Mention --pid and corefile/proc-id behavior change.
14171
c18be923
MS
14172 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14173 * gcore.c: Include cli/cli-decode.h instead of command.h.
14174
00546b04
MS
14175 * main.c (captured_main): Add new command line option "--pid".
14176 If the second command line argument (following the symbol-file)
14177 begins with a digit, try to attach to it before trying to open
14178 it as a corefile.
14179 (print_gdb_help): Document the "--pid" argument.
14180
db60ec62
EZ
141812002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14182
14183 * completer.c (command_completer): New function.
14184
14185 * completer.h <command_completer>: Add prototype.
14186
14187 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14188 completer for the "help" command.
14189
39c22d1a
JM
141902002-01-09 Jason Merrill <jason@redhat.com>
14191
14192 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14193
c564377f
MS
141942002-01-09 Michael Snyder <msnyder@redhat.com>
14195
975aec09
MS
14196 * i386-linux-nat.c (fill_fpxregset): Make global.
14197 (store_fpxregset): Ditto.
14198
db4a10fa
MS
14199 * gregset.h (gdb_fpxregset_t): Define.
14200 (supply_fpxregset): Prototype.
14201 (fill_fpxregset): Prototype.
14202
c564377f
MS
14203 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14204
c3d45d70
RE
142052002-01-09 Richard Earnshaw <rearnsha@arm.com>
14206
14207 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14208 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14209 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14210
fcc87af1
AC
142112002-01-09 Andrew Cagney <ac131313@redhat.com>
14212
14213 * MAINTAINERS: Update target maintainer rules so that any
14214 Maintainer can approve a tested patch for a maintenance-only
14215 target.
14216
dd96c05b
RE
142172002-01-09 Richard Earnshaw <rearnsha@arm.com>
14218
d4297db9 14219 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 14220
d4297db9 14221 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
14222 IN_SIGTRAMP.
14223
145fdc6e
MS
142242002-01-08 Michael Snyder <msnyder@redhat.com>
14225
14226 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14227 real name of the executable, rather than the /proc name.
14228
be4d1333
MS
142292002-01-03 Michael Snyder <msnyder@redhat.com>
14230
14231 Implement a "generate-core-file" command in gdb, save target state.
14232 * gcore.c: New file. Implement new command 'generate-core-file'.
14233 Save a corefile image of the current state of the inferior.
14234 * linux-proc.c: Add linux-specific code for saving corefiles.
14235 * target.h (struct target_ops): Add new target vectors for saving
14236 corefiles; to_find_memory_regions and to_make_corefile_notes.
14237 (target_find_memory_regions): New macro.
14238 (target_make_corefile_notes): New macro.
14239 * target.c (update_current_target): Inherit new target methods.
14240 (dummy_find_memory_regions): New place-holder method.
14241 (dummy_make_corefile_notes): New place-holder method.
14242 (init_dummy_target): Initialize new dummy target vectors.
14243 * exec.c (exec_set_find_memory_regions): New function.
14244 Allow the exec_ops vector for memory regions to be taken over.
14245 (exec_make_note_section): New function, target vector method.
14246 * defs.h (exec_set_find_memory_regions): Export prototype.
14247 * procfs.c (proc_find_memory_regions): New function, corefile method.
14248 (procfs_make_note_section): New function, corefile method.
14249 (init_procfs_ops): Set new target vector pointers.
14250 (find_memory_regions_callback): New function.
14251 (procfs_do_thread_registers): New function.
14252 (procfs_corefile_thread_callback): New function.
14253 * sol-thread.c (sol_find_memory_regions): New function.
14254 (sol_make_note_section): New function.
14255 (init_sol_thread_ops): Initialize new target vectors.
14256 * inftarg.c (inftarg_set_find_memory_regions): New function.
14257 Allow to_find_memory_regions vector to be taken over.
14258 (inftarg_set_make_corefile_notes): New function.
14259 Allow to_make_corefile_notes vector to be taken over.
14260 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14261 interface layer if not target_has_execution (may be a corefile).
14262 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14263 * config/sparc/sun4sol2.mh: Ditto.
14264 * config/alpha/alpha-linux.mh: Ditto.
14265 * config/arm/linux.mh: Ditto.
14266 * config/i386/x86-64linux.mh: Ditto.
14267 * config/ia64/linux.mh: Ditto.
14268 * config/m68k/linux.mh: Ditto.
14269 * config/mips/linux.mh: Ditto.
14270 * config/powerpc/linux.mh: Ditto.
14271 * config/sparc/linux.mh: Ditto.
14272
c6b92abd
MS
142732002-01-07 Michael Snyder <msnyder@redhat.com>
14274
14275 * arm-linux-nat.c: Remove references to regcache.c internal data
14276 (registers[] and register_valid[]).
14277
4b09dc8c
MS
142782002-01-07 Michael Snyder <msnyder@redhat.com>
14279
abf22e64
AJ
14280 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14281 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
14282 symbol file and shlibs.
14283 * Makefile.in: Add rule for linux-proc.o.
14284 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14285 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14286 * config/arm/linux.mh: Ditto.
14287 * config/i386/linux.mh: Ditto.
14288 * config/i386/x86-64linux.mh: Ditto.
14289 * config/ia64/linux.mh: Ditto.
14290 * config/m68k/linux.mh: Ditto.
14291 * config/mips/linux.mh: Ditto.
14292 * config/powerpc/linux.mh: Ditto.
14293 * config/sparc/linux.mh: Ditto.
14294
c25b74ac
PM
142952002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14296
14297 * win32-nat.c: Add i386-tdep.h dependency.
14298
94cd915f
MS
142992002-01-07 Michael Snyder <msnyder@redhat.com>
14300
c7cccb76
MS
14301 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14302 instead of bfd_get_arch_size. Don't bail out just because
14303 there's no exec_bfd.
abf22e64 14304
34c0bd93
MS
14305 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14306 * p-valprint.c (pascal_object_print_value): Ditto.
14307 * somread.c (som_symtab_read): Ditto.
14308 * symfile.c (simple_free_overlay_region_table): Ditto.
14309 * valops.c (value_assign): Ditto.
14310
21c1c920
MS
14311 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14312 use tilde_expand and strerror for opening save-tracepoints file.
14313
5bbd998e
MS
14314 * thread-db.c (thread_db_new_objfile): Indendation fix.
14315
94cd915f
MS
14316 * infptrace.c (GDB_MAX_ALLOCA): New define.
14317 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 14318 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
14319 can be overridden with whatever value is appropriate to the host).
14320 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14321 alloca to allocate potentially large buffer.
14322 * rs6000-nat.c (child_xfer_memory): Ditto.
14323 * symm-nat.c (child_xfer_memory): Ditto.
14324 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14325
494e8a93
JSC
143262002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14327
14328 From Nick Clifton <nickc@redhat.com>
14329 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14330
d0e1d48e
MS
143312002-01-07 Michael Snyder <msnyder@redhat.com>
14332
abf22e64 14333 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
14334 Don't use exec_bfd if it's NULL.
14335
290b2c7a
MK
143362002-01-06 Mark Kettenis <kettenis@gnu.org>
14337
abf22e64 14338 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 14339
aef21287
AC
143402002-01-06 Andrew Cagney <ac131313@redhat.com>
14341
14342 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14343 * gnu-nat.c: Ditto.
14344
30efa627
AC
143452002-01-06 Andrew Cagney <ac131313@redhat.com>
14346
14347 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14348 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14349 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14350 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14351 z8k-coff have not been multi-arched. Update z8k-coff build
14352 status.
14353
9b4ff276
AC
143542002-01-06 Andrew Cagney <ac131313@redhat.com>
14355
14356 * MAINTAINERS: Mark a29k target as obsolete.
14357 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14358 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14359 comments.
14360 * NEWS: Note that a29k targets are obsolete.
14361 * a29k-tdep.c: Mark as obsolete.
14362 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14363 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14364 a29k-*-vxworks* targets as obsolete.
14365 * remote-adapt.c: Obsolete.
14366 * remote-eb.c: Obsolete.
14367 * remote-mm.c: Obsolete.
14368 * remote-udi.c: Obsolete.
14369 * config/a29k/a29k-udi.mt: Obsolete.
14370 * config/a29k/a29k.mt: Obsolete.
14371 * config/a29k/tm-a29k.h: Obsolete.
14372 * config/a29k/tm-vx29k.h: Obsolete.
14373 * config/a29k/vx29k.mt: Obsolete.
14374
a9011d31
AC
143752002-01-05 Andrew Cagney <ac131313@redhat.com>
14376
14377 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14378 with BFD_ENDIAN_BIG.
14379
9299404e
AC
143802002-01-05 Andrew Cagney <ac131313@redhat.com>
14381
14382 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14383 * configure, config.in: Re-generate.
14384 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14385 * defs.h: Do not include <endian.h>.
14386
7e89e357
JT
143872002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14388
14389 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14390 * config.in: Regenerate.
14391 * configure.in: Update copyright years.
14392 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14393 * configure: Regenerate.
14394 * i386bsd-nat.c: Update copyright years.
14395 (fill_gregset): Use regcache_collect.
14396 (fetch_inferior_registers): Only fetch integer registers
14397 if requested to do so. Add support for XMM registers
14398 using PT_GETXMMREGS.
14399 (store_inferior_registers): Only store integer registers
14400 if requested to do so. Add support for XMM registers
14401 using PT_SETXMMREGS.
14402 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14403 (store_inferior_registers): Remove.
14404 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14405 (fetch_elfcore_registers): New function.
14406 (i386nbsd_elfcore_fns): New.
14407 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14408 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14409 i386bsd-nat.o.
14410 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14411 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14412 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14413 * config/i386/tm-nbsd.h: Update copyright years.
14414 (HAVE_SSE_REGS): Define.
14415 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14416 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14417 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14418 (SIGCONTEXT_PC_OFFSET): Remove.
14419 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14420
a752853e
AC
144212002-01-05 Andrew Cagney <ac131313@redhat.com>
14422
14423 * configure.tgt: Remove powerpc-*-macos* target.
14424 * config/m68k/xm-mpw.h: Delete file.
14425 * config/xm-mpw.h: Delete file.
14426 * ser-mac.c: Delete file.
14427 * mpw-make.sed: Delete file.
14428 * mpw-config.in: Delete file.
14429 * mac-xdep.c: Delete file.
14430 * mac-gdb.r: Delete file.
14431 * mac-defs.h: Delete file.
14432 * mac-nat.c: Delete file.
14433 * config/powerpc/macos.mh: Delete file.
14434 * config/powerpc/macos.mt: Delete file.
14435 * config/powerpc/nm-macos.h: Delete file.
14436 * config/powerpc/tm-macos.h: Delete file.
14437 * source.c (openp, open_source_file): Remove obsolete code.
14438 * top.c (gdb_readline): Ditto.
14439 * utils.c (query): Ditto.
14440 * event-top.c (display_gdb_prompt): Ditto.
14441 * Makefile.in (ser-mac.o): Delete obsolete target.
14442 * NEWS: Update.
14443
d7449b42
AC
144442002-01-04 Andrew Cagney <ac131313@redhat.com>
14445
14446 * defs.h (BIG_ENDIAN): Delete macro definition.
14447 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14448 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14449 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14450 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14451 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14452 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14453 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14454 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14455 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14456 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14457 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14458 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14459 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14460 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14461 * gdbarch.c: Re-generate.
14462
356374e8
DJ
144632002-01-04 Daniel Jacobowitz <drow@mvista.com>
14464
14465 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14466 for core files.
14467
a2b8f8f8
JT
144682002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14469
14470 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14471
12466af9
AC
144722002-01-04 Andrew Cagney <ac131313@redhat.com>
14473
14474 * value.h (value_ptr): Delete typedef.
14475
3549ab40
JT
144762002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14477
14478 * i386nbsd-nat.c: Update copyright years.
14479 Include i386-tdep.h.
14480
fedbd091
EZ
144812002-01-04 Elena Zannoni <ezannoni@redhat.com>
14482
14483 * stabsread.c: Update copyright years.
14484
14485 From Debashis Mahata <debashis.mahata@wipro.com>:
14486 (read_struct_fields): Deal with Sun C compiler erroneous stab
14487 output for structs and unions.
fec8b34f 14488 Fix PR gdb/269.
fedbd091 14489
eb43544b
DJ
144902002-01-04 Daniel Jacobowitz <drow@mvista.com>
14491
14492 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14493 prototype.
14494
1514d34e
DJ
144952002-01-04 Daniel Jacobowitz <drow@mvista.com>
14496
14497 * cp-abi.c: Fix whitespace.
14498 (baseclass_offset): New wrapper function.
14499 * cp-abi.h (baseclass_offset): Add prototype.
14500 (struct cp_abi_ops): Add baseclass_offset pointer.
14501
14502 * valops.c (vb_match): Move to...
14503 * gnu-v2-abi.c (vb_match): here.
14504 * valops.c (baseclass_offset): Move to...
14505 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14506
14507 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14508
14509 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14510 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14511 * hpacc-abi.c (init_hpacc_ops): Likewise.
14512
7f8c9282
DJ
145132002-01-04 Daniel Jacobowitz <drow@mvista.com>
14514
14515 * valops.c (find_overload_match): Accept obj as a
14516 reference parameter. Update it before returning.
14517 * value.h (find_overload_match): Update prototype.
14518 * eval.c (evaluate_subexp_standard): Pass object to
14519 find_overload_match by reference.
14520
f23631e4
AC
145212002-01-03 Andrew Cagney <ac131313@redhat.com>
14522
14523 * valarith.c: Replace value_ptr with struct value pointer. Remove
14524 register attribute from value declarations.
14525 * valops.c: Ditto.
14526 * value.h: Ditto.
14527 * scm-lang.c (scm_lookup_name): Ditto.
14528
79e10fab 145292002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 14530
79e10fab
AC
14531 Abstract the functionality of iterating over mapped memory
14532 regions into a general purpose iterator function.
abf22e64 14533 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14534 iterator for memory sections.
14535 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14536 (solib_mappings_callback): New function, callback for above.
14537 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14538 (info_mappings_callback): New function, callback for above.
14539
14540 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14541
c5ad026a
MK
145422002-01-01 Mark Kettenis <kettenis@gnu.org>
14543
d2a7c97a
MK
14544 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14545 * i386-tdep.c: Include "elf-bfd.h".
14546 (process_note_abi_tag_sections): New function.
14547 (i386_gdbarch_init): Add code to recognize various OS/ABI
14548 combinations.
14549
c5ad026a
MK
14550 * maint.c (_initialize_maint_cmds): Add missing \ in
14551 string-literal.
14552
a1a5b71e 14553For older changes see ChangeLog-2001
c906108c
SS
14554\f
14555Local Variables:
14556mode: change-log
14557left-margin: 8
14558fill-column: 74
14559version-control: never
14560End:
This page took 1.020672 seconds and 4 git commands to generate.