Multiarch NUM_REGS for MIPS.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
fe29b929
KB
12002-12-13 Kevin Buettner <kevinb@redhat.com>
2
3 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
4 config/mips/tm-irix6.h (NUM_REGS): Delete.
5 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
6 (temp_saved_regs): Declare as a pointer rather than an array.
7 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
8 that ``temp_saved_regs'' has storage allocated to it and that
9 it's the correct size.
10
c04e0a08
JJ
112002-12-13 Jeff Johnston <jjohnstn@redhat.com>
12
13 * defs.h (init_last_source_visited): New prototype.
14 (add_path): Ditto.
15 * source.c (add_path): New function that adds to a specified path.
16 (mod_path): Change to call add_path.
17 (init_last_source_visited): New function to allow interfaces to
18 initialize static variable: last_source_visited. Part of fix
19 for PR gdb/741.
20 * Makefile.in: Add support for mi/mi-cmd-env.c.
21
c689142b
AC
222002-12-13 Andrew Cagney <ac131313@redhat.com>
23
24 * frame.h (frame_id_unwind): Declare.
25 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
26 id_unwind_cache.
27 (frame_id_unwind_ftype): Declare.
28 * frame.c (frame_id_unwind): New function.
29 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
30 (create_new_frame, get_prev_frame): Pass id_unwind to
31 set_unwind_by_pc.
32 (frame_saved_regs_id_unwind): New function.
33 (frame_saved_regs_id_unwind): New function.
34 * dummy-frame.c (dummy_frame_id_unwind): New function.
35 (struct dummy_frame): Add field id.
36 (generic_push_dummy_frame): Initialize `id'.
37 * dummy-frame.h (dummy_frame_id_unwind): Declare.
38
18ea5ba4
AC
392002-12-13 Andrew Cagney <ac131313@redhat.com>
40
41 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
42 pass that to set_momentary_breakpoint. Move comments to where they
43 belong.
44 * frame.h (set_current_frame): Delete declaration.
45 * frame.c (set_current_frame): Delete function.
46
2c517d0e
AC
472002-12-13 Andrew Cagney <ac131313@redhat.com>
48
49 * frame.c (frame_extra_info_zalloc): New function.
50 * frame.h (frame_extra_info_zalloc): Declare.
51
516b1f28
JB
522002-12-13 Joel Brobecker <brobecker@gnat.com>
53
54 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
55 in the previous prototype change to set_momentary_breakpoint.
56
fbb265fc
DJ
572002-12-12 Daniel Jacobowitz <drow@mvista.com>
58
59 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
60 and saw_child_exec.
61 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
62 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
63 (stop_stepping): Remove outdated check for child vfork events.
64
4fd7f624
AC
652002-12-12 Andrew Cagney <ac131313@redhat.com>
66
67 * GDB 5.3 released from gdb_5_3-branch.
68
4c9ba7e0
DJ
692002-12-11 Daniel Jacobowitz <drow@mvista.com>
70
71 * corelow.c (init_core_ops): Delete references to to_require_attach
72 and to_require_detach.
73 * exec.c (init_exec_ops): Likewise.
74 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
75 hppa_require_detach directly.
76 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
77 * inftarg.c (child_detach): Remove.
78 (child_detach_from_process): Rename to child_detach, remove
79 after_fork argument.
80 (child_attach): Remove.
81 (child_attach_to_process): Rename to child_attach, remove after_fork
82 argument.
83 (init_child_ops): Delete references to to_require_attach
84 and to_require_detach.
85 * infttrace.c (hppa_require_attach): Update comment.
86 * target.c (cleanup_target, update_current_target)
87 (init_dummy_target, setup_target_debug): Delete references to
88 to_require_attach and to_require_detach.
89 (find_default_require_detach, find_default_require_attach)
90 (debug_to_require_attach, debug_to_require_detach): Remove
91 functions.
92 * target.h (struct target_ops): Remove to_require_attach
93 and to_require_detach.
94 (target_require_attach, target_require_detach): Delete macros.
95 (find_default_require_detach, find_default_require_attach): Delete
96 prototypes.
97 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
98
0394eb2a
AC
992002-12-11 Andrew Cagney <ac131313@redhat.com>
100
101 * frame.c (get_frame_extra_info): New function.
102 * frame.h (get_frame_extra_info): Declare.
103
818dd999
AC
1042002-12-11 Andrew Cagney <ac131313@redhat.com>
105
106 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
107 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
108 with `struct frame_id'.
109 (set_longjmp_resume_breakpoint): Ditto.
110 * infrun.c (handle_inferior_event): Update.
111 * breakpoint.c (watch_command_1, until_break_command): Update.
112 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
113 (handle_inferior_event, step_over_function): Update.
114 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
115 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
116 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
117 * infcmd.c (finish_command, run_stack_dummy): Update.
118
4d3c2250
KB
1192002-12-11 Kevin Buettner <kevinb@redhat.com>
120
121 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
122 (dwarf2_non_const_array_bound_ignored)
123 (dwarf2_missing_line_number_section)
124 (dwarf2_statement_list_fits_in_line_number_section)
125 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
126 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
127 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
128 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
129 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
130 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
131 (dwarf2_missing_member_fn_type_complaint)
132 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
133 (dwarf2_const_value_length_mismatch)
134 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
135 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
136 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
137 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
138 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
139 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
140 complaints using deprecated struct..
141 (dwarf2_non_const_array_bound_ignored_complaint)
142 (dwarf2_complex_location_expr_complaint)
143 (dwarf2_unsupported_at_frame_base_complaint)
144 (dwarf2_const_value_length_mismatch_complaint)
145 (dwarf2_macros_too_long_complaint)
146 (dwarf2_macro_malformed_definition_complaint)
147 (dwarf2_invalid_attrib_class_complaint): New functions.
148 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
149 (read_structure_scope, read_array_type, read_common_block)
150 (read_tag_pointer_type, read_base_type, read_partial_die)
151 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
152 (new_symbol, dwarf2_const_value, read_type_die)
153 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
154 (parse_macro_definition, dwarf_decode_macros): Replace calls to
155 complain() with, possibly indirect, calls to complaint().
156
95486978
AC
1572002-12-11 Andrew Cagney <cagney@redhat.com>
158
159 * frame.c (deprecated_get_frame_saved_regs): Rename
160 get_frame_saved_regs.
161 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
162 * sparc-tdep.c: Update.
163 * hppa-tdep.c: Update.
164 * h8500-tdep.c: Update.
165
321432c0
KB
1662002-12-11 Kevin Buettner <kevinb@redhat.com>
167
168 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
169 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
170 ``char *'' for return and parameter types.
171 * gdbarch.h, gdbarch.c: Regenerate.
172 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
173 return type from ``char *'' to ``const char *''.
174 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
175 const.
176
5a4d6ff4
MK
1772002-12-11 Mark Kettenis <kettenis@gnu.org>
178
179 * i386-tdep.c: Include "dummy-frame.h".
180 (i386_frame_chain, i386_frame_saved_pc): Replace
181 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
182 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
183
a5afb99f
AC
1842002-12-10 Andrew Cagney <cagney@redhat.com>
185
186 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
187 Change to a function with predicate.
188 * gdbarch.h, gdbarch.c: Re-generate.
189 * frame.c (get_prev_frame): Update. Test
190 DEPRECATED_INIT_FRAME_PC_P.
191 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
192 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
193 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
194 * alpha-tdep.c (alpha_gdbarch_init): Update.
195 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
196 * mips-tdep.c (mips_gdbarch_init): Update.
197 * i386-interix-tdep.c (i386_interix_init_abi): Update.
198 * arm-tdep.c: Update comments.
199 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
200 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
201 * frv-tdep.c (frv_gdbarch_init): Ditto.
202 * x86-64-tdep.c (x86_64_init_abi): Ditto.
203 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
204 * s390-tdep.c (s390_gdbarch_init): Ditto.
205 * v850-tdep.c (v850_gdbarch_init): Ditto.
206 * vax-tdep.c (vax_gdbarch_init): Ditto.
207 * sh-tdep.c (sh_gdbarch_init): Ditto.
208 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
209 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
210 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
211 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
212 * i386-tdep.c (i386_gdbarch_init): Ditto.
213 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
214 * cris-tdep.c (cris_gdbarch_init): Ditto.
215 * avr-tdep.c (avr_gdbarch_init): Ditto.
216 * arm-tdep.c (arm_gdbarch_init): Ditto.
217 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
218 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
219
6604731b
DJ
2202002-12-10 Daniel Jacobowitz <drow@mvista.com>
221
222 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
223 CHILD_FOLLOW_FORK.
224 * hppah-nat.c (saved_vfork_pid): Add.
225 (child_post_follow_vfork): Remove.
226 (child_follow_fork): New function.
227 (child_wait): Call detach_breakpoints after receiving the child vfork.
228 Call child_resume directly instead of going through resume ().
229 Make sure we have the exec before reporting the vfork.
230 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
231 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
232 (follow_fork): New function. Call target_follow_fork.
233 (follow_inferior_reset_breakpoints): New function broken out from
234 old follow_inferior_fork.
235 (resume): Remove hack to follow exec after vfork.
236 * inftarg.c (child_post_follow_vfork): Remove.
237 (child_follow_fork): New function.
238 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
239 * target.c (cleanup_target): Replace to_post_follow_vfork with
240 to_follow_fork.
241 (update_current_target): Likewise.
242 (setup_target_debug): Likewise.
243 (debug_to_post_follow_vfork): Remove.
244 (debug_to_follow_fork): New function.
245 * target.h (struct target_ops): Replace to_post_folow_vfork with
246 to_follow_fork.
247 (child_post_follow_vfork): Remove prototype.
248 (child_follow_fork): Add prototype.
249 (target_post_follow_vfork): Remove macro.
250 (target_follow_fork): Add macro.
251
7d2830a3
DJ
2522002-12-10 Daniel Jacobowitz <drow@mvista.com>
253
254 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
255 (child_post_follow_vfork): Cancel pending exec event if we follow
256 the parent.
257 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
258 events have been processed. Return a fake TARGET_WAITKIND_EXECD
259 event at the following wait call if necessary.
260 * infrun.c (follow_vfork): Don't follow_exec here.
261 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
262 case about HP/UX 10.20. Remove code pushed down to
263 hppah-nat.c:child_wait.
264 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
265 vfork_in_flight is set.
266
2672002-12-10 Daniel Jacobowitz <drow@mvista.com>
8e7d2c16
DJ
268
269 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
270 for the parent's fork event.
271 * infrun.c (handle_inferior_event): Only expect one fork event.
272 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
273 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
274
50631d4f
AC
2752002-12-10 Andrew Cagney <ac131313@redhat.com>
276
bc124bd3
AC
277 * PROBLEMS: Delete reference to PR gdb/725.
278
50631d4f
AC
279 * MAINTAINERS (gdb.c++): Add David Carlton.
280
808013d1
DC
2812002-12-09 David Carlton <carlton@math.stanford.edu>
282
283 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
284 * cli/cli-cmds.c: Ditto.
285
31deffe5
AC
2862002-12-09 Andrew Cagney <cagney@redhat.com>
287
6cbda714
AC
288 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
289 function address in <>.
31deffe5
AC
290 * gdbarch.c: Re-generate.
291
2692ddb3
DC
2922002-12-09 David Carlton <carlton@math.stanford.edu>
293
294 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
295
f3c39e76
DC
2962002-12-09 David Carlton <carlton@math.stanford.edu>
297
298 * linespec.c (symtab_from_filename): New function.
299 (decode_line_1): Move code into symtab_from_filename.
300
1b84163e
KB
3012002-12-09 Kevin Buettner <kevinb@redhat.com>
302
303 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
304
bdd78e62
AC
3052002-12-07 Andrew Cagney <ac131313@redhat.com>
306
307 * f-valprint.c (info_common_command): Use get_frame_pc.
308 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
309 * ax-gdb.c (agent_command): Ditto.
310 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
311 (rs6000_pop_frame): Ditto.
312 (rs6000_frameless_function_invocation): Ditto.
313 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
314 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
315 * macroscope.c (default_macro_scope): Ditto.
316 * stack.c (print_frame_info_base): Ditto.
317 (print_frame, frame_info, print_frame_label_vars): Ditto.
318 (return_command, func_command, get_frame_language): Ditto.
319 * infcmd.c (finish_command): Ditto.
320 * dummy-frame.c (cached_find_dummy_frame): Ditto.
321 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
322 (break_at_finish_at_depth_command_1): Ditto.
323 (break_at_finish_command_1): Ditto.
324 (until_break_command, get_catch_sals): Ditto.
325 * blockframe.c (func_frame_chain_valid): Ditto.
326 (frameless_look_for_prologue): Ditto.
327 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
328
408400e7
AC
3292002-12-08 Andrew Cagney <ac131313@redhat.com>
330
331 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
332 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
333
97f46953
AC
3342002-12-08 Andrew Cagney <ac131313@redhat.com>
335
336 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
337 to pure functions.
338 * gdbarch.h, gdbarch.c: Re-generate.
339 * frame.c (get_prev_frame): Explictly assign prev's pc with value
340 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
341
342 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
343 declaration to a function returning a CORE_ADDR.
344 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
345 * arch-utils.c (init_frame_pc_noop): Return the PC value.
346 (init_frame_pc_default): Ditto.
347 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
348 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
349 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
350 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
351 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
352 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
353
354 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
355 to init_frame_pc_noop.
356 (i386_interix_init_frame_pc): Delete function.
357 * z8k-tdep.c (init_frame_pc): Delete function.
358 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
359 (INIT_FRAME_PC_FIRST): Ditto.
360 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
361 (INIT_FRAME_PC_FIRST): Ditto.
362 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
363 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
364 init_frame_pc_noop.
365 (INIT_FRAME_PC_FIRST): Convert to an expression.
366 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
367
8b36eed8
AC
3682002-12-08 Andrew Cagney <ac131313@redhat.com>
369
370 * blockframe.c: Use get_frame_base instead of directly accessing
371 the `struct frame_info' member frame.
372 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
373 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
374
aeeccc89
EZ
3752002-12-08 Elena Zannoni <ezannoni@redhat.com>
376
377 * Makefile.in (readline_h): Define.
378 (completer.o): Depend on readline_h.
379 (corelow.o): Ditto.
380 (event-top.o): Ditto.
381 (exec.o): Ditto.
382 (solib.o): Ditto.
383 (source.o): Ditto.
384 (symfile.o): Ditto.
385 (symmisc.o): Ditto.
386 (top.o): Ditto.
387 (tracepoint.o): Ditto.
388 (utils.o): Ditto.
389 (cli-dump.o): Ditto.
390 (tui-hooks.o): Ditto.
391 (tuiWin.o): Ditto.
392
38017ce8
EZ
3932002-12-08 Elena Zannoni <ezannoni@redhat.com>
394
395 More cleanup from import of readline 4.3.
396 * completer.h (complete_line, readline_line_completion_function):
397 Update prototypes.
398 (line_completion_function): Removed, not used outside of completer.c.
399 * completer.c (readline_line_completion_function,
400 complete_function, line_completion_function): Use const for first
401 parameter.
402 (line_completion_function): Make static.
403 (filename_completer): filename_completion_function is now called
404 rl_filename_completion_function
405 * corelow.c: Include <readline/readline.h>.
406 * exec.c: Ditto.
407 * solib.c: Ditto.
408 * source.c: Ditto.
409 * symfile.c: Ditto.
410 * symmisc.c: Ditto.
411 * top.c (init_main): No need to coerce
412 readline_line_completion_function anymore.
413 * cli/cli-dump.c: Include <readline/readline.h>.
414
75e3c1f9
AC
4152002-12-08 Andrew Cagney <ac131313@redhat.com>
416
417 * stack.c (frame_info): Use get_prev_frame.
418 * blockframe.c (frame_address_in_block): Ditto.
419 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
420 (rs6000_frameless_function_invocation): Ditto.
421 (rs6000_frame_saved_pc): Ditto.
422 (rs6000_frame_chain): Ditto.
423 * arch-utils.c (init_frame_pc_default): Ditto.
424
0d2b8049
AC
4252002-12-08 Andrew Cagney <ac131313@redhat.com>
426
427 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
428 Delete redundant definition.
429
9255ee31
EZ
4302002-12-08 Elena Zannoni <ezannoni@redhat.com>
431
432 Import of readline 4.3:
433 * cli/cli-cmds.c: Include readline/tilde.h.
434 * cli/cli-setshow.c: Ditto.
435 * defs.h: Don't declare tilde_expand anymore, since readline
436 exports it.
437
3442dad6 4382002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
439
440 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
441 -Werror on this file.
442
52f87c51
AC
4432002-12-07 Andrew Cagney <ac131313@redhat.com>
444
445 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
446 the format name.
447 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
448 * gdbarch.c: Regenerate.
449
2ca6c561
AC
4502002-12-06 Andrew Cagney <ac131313@redhat.com>
451
452 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
453 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
454 provide a default value.
455 * gdbarch.h, gdbarch.c: Regenerate.
456 * frame.c (get_prev_frame): Update. Check
457 DEPRECATED_INIT_FRAME_PC_FIRST_P.
458 * s390-tdep.c (s390_gdbarch_init): Update.
459 * mips-tdep.c (mips_gdbarch_init): Update.
460 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
461 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
462 * alpha-tdep.c (alpha_gdbarch_init): Update.
463
e162d11b
EZ
4642002-12-06 Elena Zannoni <ezannoni@redhat.com>
465
466 * ia64-linux-nat.c: Include gdb_string.h.
467 * alpha-nat.c: Ditto.
2b298b5d
EZ
468 * ppc-linux-nat.c: Ditto.
469 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
470 Update dependencies.
e162d11b 471
aa0cd9c1
AC
4722002-12-05 Andrew Cagney <ac131313@redhat.com>
473
474 * gdbthread.h: Include "frame.h".
475 (struct thread_info): Replace step_frame_address with
476 step_frame_id.
477 * inferior.h: Include "frame.h".
478 (step_frame_id): Replace external variable step_frame_address.
479 * gdbthread.h (save_infrun_state): Replace step_frame_address
480 parameter with step_frame_id parameter.
481 (load_infrun_state): Ditto.
482 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
483 * infcmd.c (step_frame_id, step_1, step_once): Update.
484 * thread.c (load_infrun_state, save_infrun_state): Update.
485 * infrun.c (clear_proceed_status, save_inferior_status): Update.
486 (handle_inferior_event, step_over_function): Update.
487 (normal_stop, context_switch, restore_inferior_status): Update.
488 (struct inferior_status): Replace step_frame_address with
489 step_frame_id.
490
a9a9bd0f
DC
4912002-12-05 David Carlton <carlton@math.stanford.edu>
492
493 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
494 DW_TAG_member as well as a declaration as being a C++ static data
495 member.
496 (read_structure_scope): Combine tests for DW_TAG_member and
497 DW_TAG_variable.
498
614b3b14
DC
4992002-12-05 David Carlton <carlton@math.stanford.edu>
500
501 * linespec.c (decode_compound): New function.
502 (decode_line_1): Move code into decode_compound.
503
e4051eeb
DC
5042002-12-05 David Carlton <carlton@math.stanford.edu>
505
506 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
507 argument.
508 (lookup_symbol_aux): Do the 'field_of_this' check before checking
509 the static block. See PR gdb/804.
510
f61e8913
DC
5112002-12-05 David Carlton <carlton@math.stanford.edu>
512
513 * symtab.c (lookup_symbol_aux_block): New function.
514 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
515
1e9f55d0
AC
5162002-12-05 Andrew Cagney <ac131313@redhat.com>
517
518 * gdbarch.sh: Dump the predicate function and macro values.
519 (read): Print error on standard error.
520 * gdbarch.c: Regenerate.
521
d1973055
KB
5222002-12-04 Kevin Buettner <kevinb@redhat.com>
523
524 * Makefile.in (mips_tdep_h): Define.
525 (mips-tdep.o): Add mips_tdep_h to dependency list.
526 * mips-tdep.h: New file.
527 * mips-tdep.c (mips-tdep.h): Include.
528 (enum mips_abi): Move to mips-tdep.h.
529 (mips_abi): New function.
530
f1253c7b
DC
5312002-12-04 David Carlton <carlton@math.stanford.edu>
532
533 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
534
406bc4de
DC
5352002-12-04 David Carlton <carlton@math.stanford.edu>
536
537 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
538 function.
539 (lookup_symbol_aux_minsyms): New function.
540
2a3750c5
JB
5412002-12-04 J. Brobecker <brobecker@gnat.com>
542
543 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
544
961d8652
JB
5452002-12-04 J. Brobecker <brobecker@gnat.com>
546
547 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
548 which is an obsolete macro name.
549
38c52d5a
DJ
5502002-12-04 Daniel Jacobowitz <drow@mvista.com>
551
552 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
553 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
554
d8ef46f5
DJ
5552002-12-03 H.J. Lu (hjl@gnu.org)
556
557 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
558 (create_breakpoints): Make sure the addr_string field is not
559 NULL.
560
02ae7771
AC
5612002-12-03 Andrew Cagney <ac131313@redhat.com>
562
563 * sparc-nat.c (fetch_inferior_registers)
564 (store_inferior_registers): Add comment on problem of LWP vs
565 threads.
566
567 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
568 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
569 (lin_lwp_store_registers): Remove.
570 (init_lin_lwp_ops): Use fetch_inferior_registers
571 and store_inferior_registers directly.
572 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
573 (store_inferior_registers): Likewise.
574 Fix PR gdb/725.
575
7a424e99
AC
5762002-12-03 Andrew Cagney <ac131313@redhat.com>
577
578 * frame.h (get_frame_id): Convert to a function.
579 (null_frame_id, frame_id_p): Declare.
580 (frame_id_eq, frame_id_inner): Declare.
581 (frame_id_build): New function.
582 * frame.c (get_frame_id): Update. Use null_frame_id.
583 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
584 frame_id_inner.
585 (null_frame_id, frame_id_p): Define.
586 (frame_id_eq, frame_id_inner): Define.
587 (frame_id_build): New function.
588 * varobj.c (varobj_create): Update.
589 (varobj_update): Update.
590 * valops.c (value_assign): Update.
591 (new_root_variable): Update.
592 * infrun.c (save_inferior_status): Update.
593 * breakpoint.c (watch_command_1): Update.
594
891c7f5f
JB
5952002-12-03 J. Brobecker <brobecker@gnat.com>
596
597 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
598 (SNAP2): Likewise.
599
144da3c1
AC
6002002-12-03 Andrew Cagney <cagney@redhat.com>
601
46248966
AC
602 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
603 patch.
604
144da3c1
AC
605 * PROBLEMS: Mention PR gdb/725.
606
03c6228e
AS
6072002-12-03 Andreas Schwab <schwab@suse.de>
608
609 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
610
36e53c63
AF
6112002-12-02 Adam Fedor <fedor@gnu.org>
612 Klee Dienes <kdienes@apple.com>
613
614 * objc-lang.c (objc_printstr): Add width arg to match
615 printstr prototype.
616 (compare_selectors): Add 'const' to arg types.
617 (compare_classes): Likewise.
618 (find_imps): Cast msym pointer to avoid compiler warning.
619 (print_object_command): Validate the address before
620 passing it to the print routine.
621 (find_objc_msgcall_submethod): Change function argument to
622 return an int.
623 * objc-lang.h: Add 'extern' to all function declarations.
624 (value_nsstring): Add declaration.
625
504d5c7e
JB
6262002-12-02 J. Brobecker <brobecker@gnat.com>
627
628 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
629 Fixes a build failure on HP/UX.
630
631 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
632 failure on HP/UX.
633 (hpread_has_name): Advance declaration to avoid a compilation warning.
634 (pst_syms_count): Add missing variable type. By change, the compiler
635 was defaulting to int, which seems a good choice. Fixes a compilation
636 warning.
637 (pst_syms_size): Likewise.
638
59623e27
JB
6392002-12-02 J. Brobecker <brobecker@gnat.com>
640
641 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
642 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
643 later to set the proper gdbarch methods depending on the osabi.
644 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
645
a09a320d
JB
6462002-12-02 J. Brobecker <brobecker@gnat.com>
647
648 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
649 * osabi.c (gdb_osabi_name): Add strings images for the two new
650 enum values.
651 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
652
8a81a99e
AC
6532002-12-02 Andrew Cagney <ac131313@redhat.com>
654
655 * MAINTAINERS (Java): Global maintainers are responible for Java.
656 (Past Maintainers): Mention both Anthony Green and Per Bothner as
657 part Java maintainers.
658
7af35dad
JB
6592002-12-02 J. Brobecker <brobecker@gnat.com>
660
661 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
662 Fixes a compilation failure on AiX.
663
f4ede9bc
JB
6642002-12-02 J. Brobecker <brobecker@gnat.com>
665
666 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
667 why aix-thread.o is not listed.
668
ae45cd16
AC
6692002-12-01 Andrew Cagney <ac131313@redhat.com>
670
671 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
672 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
673 * gdbarch.h, gdbarch.c: Re-generate.
674 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
675 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
676 * config/pa/tm-hppa.h, frame.h: Update.
677 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
678 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
679 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
680 * cris-tdep.c, alpha-tdep.c: Update.
681 * frame.c (set_unwind_by_pc, create_new_frame): Use either
682 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
683 (get_prev_frame): Ditto.
684
020cc13c
AC
6852002-11-30 Andrew Cagney <cagney@redhat.com>
686
687 * exec.c (xfer_memory): Replace boolean with int.
688 * p-exp.y: Use 0 instead of false.
689 * corelow.c (gdb_check_format): Change return type to int from
690 boolean.
691 * utils.c: Don't include <curses.h> or <term.h> first.
692
1d9b2aa8
SC
6932002-11-29 Stephane Carrez <stcarrez@nerim.fr>
694
695 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
696 (m68hc11_register_byte): Remove.
697 (m68hc11_gdbarch_init): Don't set the above.
698
a193e397
AC
6992002-11-29 Andrew Cagney <cagney@redhat.com>
700
701 * remote-mips.c (mips_initialize): Force a selected frame rebuild
702 by calling get_selected_frame.
703 * ocd.c (ocd_start_remote): Use get_selected frame instead of
704 set_current_frame, create_new_frame, select_frame and
705 get_current_frame.
706 * remote-e7000.c (e7000_start_remote): Ditto.
707 * remote-mips.c (common_open): Ditto
708 * remote-rdp.c (remote_rdp_open): Ditto.
709
b5fc49aa
AS
7102002-11-29 Andreas Schwab <schwab@suse.de>
711
712 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
713 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
714 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
715 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
716 read_memory_unsigned_integer instead of read_memory_integer when
717 dealing with addresses and instruction opcodes.
718 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
719 (m68k_linux_frame_saved_pc): Likewise.
720
6e7f8b9c
AC
7212002-11-29 Andrew Cagney <ac131313@redhat.com>
722
723 * stack.c (selected_frame, select_frame): Move from here ...
724 * frame.c (selected_frame, select_frame): ... to here. Include
725 "language.h".
726 * Makefile.in (frame.o): Update dependencies.
727 * frame.c (get_selected_frame): New function.
728 * frame.h (get_selected_frame): Declare.
729 (deprecated_selected_frame): Rename selected_frame.
730 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
731 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
732 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
733 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
734 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
735 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
736 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
737 * z8k-tdep.c, cli/cli-cmds.c: Update.
738
805e2818
AC
7392002-11-29 Andrew Cagney <ac131313@redhat.com>
740
741 * frame.h (get_selected_block): Add comments.
742
1058bca7
AC
7432002-11-28 Andrew Cagney <ac131313@redhat.com>
744
745 * frame.c (pc_notcurrent): New function.
746 (find_frame_sal): New function.
747 * frame.h (find_frame_sal): Declare.
748 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
749 * stack.c (print_frame_info_base): Use find_frame_sal instead of
750 find_pc_line.
1058bca7
AC
751 (frame_info): Ditto.
752 * ada-lang.c (find_printable_frame): Ditto.
753
d92419e5
JB
7542002-11-28 J. Brobecker <brobecker@gnat.com>
755
756 * configure.in: Check that the pthdebug library is recent enough
757 before enabling thread support on native AiX.
758 * configure: Regenerate.
759
760 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
761 from the list of object files as it is now appended by configure
762 if thread support is enabled.
763 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
764 if thread support is enabled.
765
8c69fc49
AC
7662002-11-28 Andrew Cagney <cagney@redhat.com>
767
768 * stack.c (get_selected_block): In-line get_current_block.
769 * frame.h (get_current_block): Delete declaration.
770 * blockframe.c (get_current_block): Delete function.
771
07555a72
AC
7722002-11-28 Andrew Cagney <ac131313@redhat.com>
773
774 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
775 USE_GENERIC_DUMMY_FRAMES.
776 * gdbarch.h, gdbarch.c: Regenerate.
777 * valops.c, frame.c: Update.
778 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
779 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
780 * config/pa/tm-hppa.h, blockframe.c: Update.
781 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
782 * m68k-tdep.c, alpha-tdep.c: Ditto.
783
784 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
785 * mips-tdep.c: Ditto.
786
b99fa2d2
AC
7872002-11-27 Andrew Cagney <ac131313@redhat.com>
788
789 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
790 (USE_GENERIC_DUMMY_FRAMES): Default to true.
791 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
792 * gdbarch.c, gdbarch.h: Re-generate.
793 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
794 (CALL_DUMMY_LOCATION): Delete macro definition.
795 (PC_IN_CALL_DUMMY): Delete macro definitions.
796
797 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
798 default is already generic_pc_in_call_dummy.
799 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
800 * v850-tdep.c (v850_gdbarch_init): Ditto.
801 * sh-tdep.c (sh_gdbarch_init): Ditto.
802 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
803 * mips-tdep.c (mips_gdbarch_init): Ditto.
804 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
805 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
806 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
807 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
808 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
809 * avr-tdep.c (avr_gdbarch_init): Ditto.
810
811 * arm-tdep.c (arm_gdbarch_init): Do not set
812 use_generic_dummy_frames, default is already 1.
813 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
814 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
815 * v850-tdep.c (v850_gdbarch_init): Ditto.
816 * sh-tdep.c (sh_gdbarch_init): Ditto.
817 * s390-tdep.c (s390_gdbarch_init): Ditto.
818 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
819 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
820 * mips-tdep.c (mips_gdbarch_init): Ditto.
821 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
822 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
823 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
824 * i386-tdep.c (i386_gdbarch_init): Ditto.
825 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
826 * frv-tdep.c (frv_gdbarch_init): Ditto.
827 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
828 * cris-tdep.c (cris_gdbarch_init): Ditto.
829 * avr-tdep.c (avr_gdbarch_init): Ditto.
830
831 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
832 call_dummy_location, default is already AT_ENTRY_POINT.
833 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
834 * v850-tdep.c (v850_gdbarch_init): Ditto.
835 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
836 * sh-tdep.c (sh_gdbarch_init): Ditto.
837 * s390-tdep.c (s390_gdbarch_init): Ditto.
838 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
839 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
840 * mips-tdep.c (mips_gdbarch_init): Ditto.
841 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
842 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
843 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
844 * i386-tdep.c (i386_gdbarch_init): Ditto.
845 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
846 * frv-tdep.c (frv_gdbarch_init): Ditto.
847 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
848 * cris-tdep.c (cris_gdbarch_init): Ditto.
849 * avr-tdep.c (avr_gdbarch_init): Ditto.
850 * arm-tdep.c (arm_gdbarch_init): Ditto.
851 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
852
abc0af47
AC
8532002-11-28 Andrew Cagney <cagney@redhat.com>
854
855 * frame.h: Update comments on set_current_frame, create_new_frame,
856 flush_cached_frames, reinit_frame_cache, select_frame and
857 selected_frame.
858
ed5cedc5
AC
8592002-11-27 Andrew Cagney <cagney@redhat.com>
860
861 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
862 deprecated pc_in_call_dummy function.
863 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
864 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
865 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
866 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
867 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
868
b2a1bd4f
MH
8692002-11-26 Martin M. Hunt <hunt@redhat.com>
870
871 * Makefile.in: Remove Tix dependencies.
872 * acinclude.m4: Ditto.
873 * aclocal.m4: Ditto.
874 * configure.in: Ditto.
875 * configure: Regenerated.
876
f09cffaa
AC
8772002-11-26 Andrew Cagney <ac131313@redhat.com>
878
879 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
880 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
881 * gdbarch.c: Re-generate.
882
e92b0cc9
AC
8832002-11-26 Andrew Cagney <ac131313@redhat.com>
884
885 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
886 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
887 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
888 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
889 pc_in_call_dummy_at_entry_point.
890 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
891 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
892 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
893 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
894 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
895 pc_in_call_dummy_on_stack.
896 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
897 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
898 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
899 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
900 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
901
b4b88177
AC
9022002-11-26 Andrew Cagney <ac131313@redhat.com>
903
904 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
905 pc_in_call_dummy_before_text_end
906 (deprecated_pc_in_call_dummy_after_text_end): Rename
907 pc_in_call_dummy_after_text_end.
908 (deprecated_pc_in_call_dummy_on_stack): Rename
909 pc_in_call_dummy_on_stack.
910 (deprecated_pc_in_call_dummy_at_entry_point): Rename
911 pc_in_call_dummy_at_entry_point.
912 * m68k-tdep.c (m68k_gdbarch_init): Update.
913 * s390-tdep.c (s390_gdbarch_init): Update.
914 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
915 * vax-tdep.c (vax_gdbarch_init): Update.
916 * sparc-tdep.c (sparc_gdbarch_init): Update.
917 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
918 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
919 * i386-tdep.c (i386_gdbarch_init): Update.
920 * frv-tdep.c (frv_gdbarch_init): Update.
921 * cris-tdep.c (cris_gdbarch_init): Update.
922 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
923 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
924 (deprecated_pc_in_call_dummy_after_text_end)
925 (deprecated_pc_in_call_dummy_on_stack)
926 (deprecated_pc_in_call_dummy_at_entry_point): Update.
927 * alpha-tdep.c (alpha_gdbarch_init): Update.
928
eb784848
DJ
9292002-11-25 Daniel Jacobowitz <drow@mvista.com>
930
931 * acconfig.h (HAVE_PREAD64): Add.
932 * configure.in: Check for pread64.
933 * config.in: Regenerated.
934 * configure: Regenerated.
935 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
936 * linux-proc.c (linux_proc_xfer_memory): New function.
937 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
938
933c6fe4
DC
9392002-11-25 David Carlton <carlton@math.stanford.edu>
940
941 * dwarf2read.c (scan_partial_symbols): Descend into namespace
942 pdi's with no name.
943
158a8022
AC
9442002-11-25 Andrew Cagney <ac131313@redhat.com>
945
946 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
947 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
948
481d0f41
JB
9492002-11-25 Jim Blandy <jimb@redhat.com>
950
e8289572
JB
951 * symfile.c (init_objfile_sect_indices): New function.
952 (default_symfile_offsets): Move the section-index-initializing
953 stuff into init_objfile_sect_indices, and call that.
954
b29c9944
JB
955 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
956 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
957
13de58df
JB
958 * symfile.c (syms_from_objfile): Adjust indentation.
959
481d0f41
JB
960 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
961 || info_verbose isn't true.
962
7d6a26a7
AC
9632002-11-24 Andrew Cagney <ac131313@redhat.com>
964
965 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
966 default to get_frame_base.
967 * gdbarch.h, gdbarch.c: Regenerate.
968 * arch-utils.c (default_frame_address): Delete function.
969 * arch-utils.h (default_frame_address): Delete declaration
970
6abe1021
PM
9712002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
972
973 * varobj.c (find_frame_addr_in_frame_chain):
974 Use get_frame_base instead of FRAME_FP,
975 obvious fix.
976
c193f6ac
AC
9772002-11-19 Andrew Cagney <ac131313@redhat.com>
978
979 * frame.h (FRAME_FP): Delete macro.
980 (get_frame_base): New function declaration.
981 * frame.c (get_frame_base): New function.
982 (get_frame_id): Use ->frame.
983 (frame_find_by_id): Rewrite to use get_frame_id.
984 * blockframe.c: Use get_frame_base instead of FRAME_FP.
985 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
986 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
987 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
988 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
989 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
990 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
991
e5d2af14
AC
9922002-11-24 Andrew Cagney <ac131313@redhat.com>
993
994 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
995
931d12c6
AC
9962002-11-24 Andrew Cagney <ac131313@redhat.com>
997
998 * frame.c (set_unwind_by_pc): Revert change below, use
999 PC_IN_CALL_DUMMY.
1000 (get_prev_frame): Ditto.
1001
5e0f933e
AC
10022002-11-24 Andrew Cagney <ac131313@redhat.com>
1003
1004 * dummy-frame.c (pc_in_dummy_frame): New function.
1005 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1006 (find_dummy_frame): Update comment.
1007 (generic_pop_current_frame): Use get_frame_type.
1008 * dummy-frame.h (pc_in_dummy_frame): Declare.
1009 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1010 (create_new_frame): Use pc_in_dummy_frame.
1011 (get_prev_frame): Use pc_in_dummy_frame.
1012 (frame_saved_regs_register_unwind): Use get_prev_frame.
1013 (deprecated_generic_get_saved_register): Use get_prev_frame.
1014
7d8547c9
AC
10152002-11-23 Andrew Cagney <ac131313@redhat.com>
1016
1017 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1018 from here ...
1019 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1020 (varobj_create): Note that frame ID should be used.
1021 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1022
0225421b
AC
10232002-11-23 Andrew Cagney <ac131313@redhat.com>
1024
1025 * breakpoint.c: Include "gdb_assert.h".
1026 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1027 not being used.
1028 * Makefile.in (breakpoint.o): Update dependencies.
1029 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1030 deprecated_frame_in_dummy.
1031 * stack.c (print_frame_info_base): Ditto.
1032 (frame_info): Ditto.
1033 (print_frame_info_base): Ditto. Delete dead code.
1034
32eeb91a
AS
10352002-11-23 Andreas Schwab <schwab@suse.de>
1036
1037 * Makefile.in (m68k_tdep_h): Define.
1038 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1039 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1040 * m68k-tdep.c: Move register number enum ...
1041 * m68k-tdep.h: ... to this new file and rename the constants from
1042 E_* to M68K_*. All uses changed.
1043 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1044 * abug-rom.c: Include "m68k-tdep.h". Use
1045 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1046 * cpu32bug-rom.c: Likewise.
1047 * dbug-rom.c: Likewise.
1048 * m68k-tdep.c: Likewise.
1049 * m68klinux-nat.c: Likewise.
1050 * remote-est.c: Likewise.
1051 * rom68k-rom.c: Likewise.
1052 * config/m68k/tm-linux.h: Likewise.
1053
9648bac8
AC
10542002-11-23 Andrew Cagney <ac131313@redhat.com>
1055
1056 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1057 dummy frame initialization code.
1058 * mips-tdep.c (mips_gdbarch_init): Ditto.
1059
91a175b3
CF
10602002-11-22 Christopher Faylor <cgf@redhat.com>
1061
1062 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1063 attach will hang.
1064
f4ded5b1
AC
10652002-11-22 Andrew Cagney <ac131313@redhat.com>
1066
1067 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1068 to default_frame_address.
1069 * gdbarch.h, gdbarch.c: Re-generate.
1070
1071 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1072 or frame_locals_address to default_frame_address.
1073 * m68k-tdep.c (m68k_gdbarch_init): Update.
1074 * i386-tdep.c (i386_gdbarch_init): Update.
1075 * frv-tdep.c (frv_gdbarch_init): Update.
1076 * sh-tdep.c (sh_gdbarch_init): Update.
1077 * v850-tdep.c (v850_gdbarch_init): Update.
1078 * sparc-tdep.c (sparc_gdbarch_init): Update.
1079 * mips-tdep.c (mips_gdbarch_init): Update.
1080 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1081 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1082 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1083
1084 * cris-tdep.c (cris_frame_args_address): Delete function.
1085 (cris_frame_locals_address): Delete function.
1086 (cris_gdbarch_init): Do not set frame_args_address or
1087 frame_locals_address.
1088
f7c1e0f3
MS
10892002-11-22 Michael Snyder <msnyder@redhat.com>
1090
1091 * thread-db.c (thread_db_load): Tell the user what's going on
1092 if dlopen fails on libthread_db.
1093
03dac896
AS
10942002-11-23 Andreas Schwab <schwab@suse.de>
1095
1096 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1097 invariant return values.
1098
7a67d0fe
AS
10992002-11-22 Andreas Schwab <schwab@suse.de>
1100
1101 * valops.c (value_slice): Move declaration of `offset' to avoid
1102 warning.
1103
5633f842
CF
11042002-11-22 Christopher Faylor <cgf@redhat.com>
1105
1106 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1107 (struct so_stuff): Add end_addr field.
1108 (register_loaded_dll): Calculate and store end address of loaded dll.
1109 (solib_address): New function.
1110 (child_solib_loaded_library_pathname): Pass carefully constructed
1111 section info to safe_symbol_file_add rather than ignoring it.
1112 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1113 DLL is loaded.
1114 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1115 (child_create_inferior): Fix a compiler warning.
1116 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1117 (solib_address): Declare new function.
1118
d85fe7f7
AS
11192002-11-22 Andreas Schwab <schwab@suse.de>
1120
1121 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1122 and FPS registers.
1123
8308e54c
DJ
11242002-11-21 Daniel Jacobowitz <drow@mvista.com>
1125
1126 * maint.c (_initialize_maint_cmds): Fix typo. From
1127 Francesco Potorti` <pot@gnu.org>.
1128
8997bd5e
AC
11292002-11-21 Andrew Cagney <cagney@redhat.com>
1130
1131 * mips-tdep.c (mips_dump_tdep): Delete references to
1132 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1133 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1134 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1135 * printcmd.c (build_address_symbolic): Delete calls to
1136 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1137 (address_info): Ditto.
1138 Fix PR gdb/773.
1139
4e87b832
KD
11402002-11-19 Klee Dienes <kdienes@apple.com>
1141 Adam Fedor <fedor@gnu.org>
1142
1143 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1144 the ability to explicitly specify the quote characters and word
1145 break characters; if NULL is specified for either, use the old
1146 behavior of using the characters used by the completer.
1147 (skip_chars): New function. Convenience wrapper around
1148 skip_quoted_chars to provide the original skip_chars behavior.
1149 * completer.h (skip_quoted_chars): Add prototype.
1150
9ba8d803
AC
11512002-11-19 Andrew Cagney <ac131313@redhat.com>
1152
1153 Problems reported by Paul Eggert.
1154 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1155
0a595803
AS
11562002-11-19 Andreas Schwab <schwab@suse.de>
1157
1158 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1159 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1160 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1161 (m68k_linux_frame_saved_pc): Move to ...
1162 * m68klinux-tdep.c: ... here. New file.
1163 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1164 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1165
e8afa4d7
AF
11662002-11-19 Adam Fedor <fedor@gnu.org>
1167
1168 * objc-exp.y: Revert to old skip_quoted usage.
1169
a76c9d72
AF
11702002-11-19 Adam Fedor <fedor@gnu.org>
1171
1172 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1173 (objc_lang_h): Define.
1174 (YYFILES): Add objc-exp.tab.c.
1175 (local-maintainer-clean): Remove objc-exp.tab.c.
1176 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1177
fd0e9d45
PM
11782002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1179
1180 * p-exp.y (typecast rule): Add automatic dereference of
1181 pascal classes if needed.
1182 (THIS): Set current_type.
1183 Automatically dereference pascal classes.
1184 (typebase rule): Add ^typebase recognition.
1185
82eeeb94
AF
11862002-11-18 Adam Fedor <fedor@gnu.org>
1187
1188 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1189 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1190 (op_name): Handle OP_OBJC_SELF.
1191 * Makefile.in (expprint.o): Add additional depends.
1192
646df18d
AF
11932002-11-18 Adam Fedor <fedor@gnu.org>
1194
1195 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1196 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1197 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1198 * objc-exp.y: Likewise.
1199
379b85df
AF
12002002-11-18 Adam Fedor <fedor@gnu.org>
1201
1202 * gdb/parser-defs.h: (struct objc_class_str): New structure
1203 for parsing ObjC classes.
1204
85cf597a
AC
12052002-11-18 Andrew Cagney <ac131313@redhat.com>
1206
1207 * stack.c (frame_relative_level): Copy function from here ...
1208 * frame.c (frame_relative_level): ...to here.
1209
5a203e44
AC
12102002-11-18 Andrew Cagney <ac131313@redhat.com>
1211
1212 * frame.h (enum frame_type): Define.
1213 (get_frame_type): Declare.
1214 (struct frame_info): Add field `type'. Delete field
1215 signal_handler_caller.
1216 (deprecated_set_frame_signal_handler_caller): Declare.
1217 * frame.c (get_frame_type): New function.
1218 (deprecated_set_frame_type): New function.
1219 (create_new_frame): Set the frame's type.
1220 (get_prev_frame): Similar.
1221 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1222 * s390-tdep.c: Ditto.
1223 * m68klinux-nat.c: Ditto.
1224 * ns32k-tdep.c: Ditto.
1225 * x86-64-linux-tdep.c: Ditto.
1226 * vax-tdep.c: Ditto.
1227 * rs6000-tdep.c: Ditto.
1228 * ppc-linux-tdep.c: Ditto.
1229 * i386-interix-tdep.c: Ditto.
1230 * mips-tdep.c: Ditto.
1231 * m68k-tdep.c: Ditto.
1232 * hppa-tdep.c: Ditto.
1233 * ia64-tdep.c: Ditto.
1234 * cris-tdep.c: Ditto.
1235 * arm-tdep.c: Ditto.
1236 * alpha-tdep.c: Ditto.
1237 * i386-tdep.c: Ditto.
1238 * stack.c: Ditto.
1239 * ada-lang.c: Ditto.
1240 * blockframe.c: Update.
1241 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1242 deprecated_set_frame_type instead of signal_handler_caller.
1243 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1244 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1245 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1246
bf4ae8b2
KD
12472002-11-18 Klee Dienes <kdienes@apple.com>
1248
1249 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1250
a672ef13
KD
12512002-11-18 Klee Dienes <kdienes@apple.com>
1252
1253 * buildsym.c (pop_context): Add comment.
1254
0c5e171a
KD
12552002-11-18 Klee Dienes <kdienes@apple.com>
1256
1257 * buildsym.h (pop_context): Convert to function, defined in
1258 buildsym.c.
1259 * buildsym.c: Include gdb_assert.h.
1260 (pop_context): Implement as C function. Add check for stack
1261 underflow.
1262 * dbxread.c (process_one_symbol): Complain and stop processing
1263 that symbol if we are already at the top of the context stack for
1264 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1265 when processing N_RBRAC.
1266
8a1f4c4c
DJ
12672002-11-16 Daniel Jacobowitz <drow@mvista.com>
1268
1269 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1270 define.
1271 (struct target_waitstatus): Add opaque definition.
1272 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1273 * exec.c (init_exec_ops): Likewise.
1274 * fork-child.c (clone_and_follow_inferior): Remove.
1275 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1276 * inferior.h (clone_and_follow_inferior): Remove prototype.
1277 * infrun.c (follow_fork_mode_both): Remove.
1278 (follow_fork_mode_kind_names): Remove commented out "both".
1279 (follow_inferior_fork): Remove follow_fork_mode_both support.
1280 * inftarg.c (child_clone_and_follow_inferior): Remove.
1281 (child_post_follow_inferior_by_clone): Remove.
1282 (init_child_ops): Don't set to_clone_and_follow_inferior
1283 or to_post_follow_inferior_by_clone.
1284 * target.c (default_clone_and_follow_inferior): Remove.
1285 (cleanup_target): Don't set to_clone_and_follow_inferior
1286 or to_post_follow_inferior_by_clone.
1287 (find_default_clone_and_follow_inferior): Remove.
1288 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1289 (debug_to_clone_and_follow_inferior): Remove.
1290 (debug_to_post_follow_inferior_by_clone): Remove.
1291 (setup_target_debug): Don't set to_clone_and_follow_inferior
1292 or to_post_follow_inferior_by_clone.
1293 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1294 and to_post_follow_inferior_by_clone.
1295 (child_clone_and_follow_inferior): Remove prototype.
1296 (child_post_follow_inferior_by_clone): Remove prototype.
1297 (target_clone_and_follow_inferior): Remove macro.
1298 (target_post_follow_inferior_by_clone): Remove macro.
1299 (find_default_clone_and_follow_inferior): Remove prototype.
1300
47932f85
DJ
13012002-11-16 Daniel Jacobowitz <drow@mvista.com>
1302
1303 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1304 inferior_has_vforked, and inferior_has_execd instead of
1305 target_has_forked, target_has_vforked, and target_has_execd.
1306 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1307 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1308 (CHILD_WAIT): Define.
1309 (child_wait): Add prototype.
1310 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1311 Add prototype.
1312 (hpux_has_vforked): Likewise, from child_has_vforked.
1313 (hpux_has_execd): Likewise, from child_has_execd.
1314 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1315 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1316 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1317 and hpux_has_syscall_event instead of the target hooks.
1318 * infrun.c (inferior_has_forked, inferior_has_vforked)
1319 (inferior_has_execd): New functions.
1320 * inftarg.c (not_same_real_pid): Remove.
1321 (child_wait): Remove references to not_same_real_pid,
1322 target_has_forked, target_has_vforked, target_has_execd,
1323 and target_has_syscall_event.
1324 (child_has_forked, child_has_vforked, child_has_execd)
1325 (child_has_syscall_event): Remove.
1326 (init_child_ops): Remove references to child_has_forked,
1327 child_has_vforked, child_has_execd, and child_has_syscall_event.
1328 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1329 (hpux_has_vforked): Likewise, from child_has_vforked.
1330 (hpux_has_execd): Likewise, from child_has_execd.
1331 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1332 * target.c (cleanup_target): Remove references to
1333 to_has_forked, to_has_vforked, to_has_execd, and
1334 to_has_syscall_event.
1335 (update_current_target): Likewise.
1336 (setup_target_debug): Likewise.
1337 (debug_to_has_forked): Remove.
1338 (debug_to_has_vforked): Remove.
1339 (debug_to_has_execd): Remove.
1340 (debug_to_has_syscall_event): Remove.
1341 * target.h (struct target_ops): Remove to_has_forked.
1342 to_has_vforked, to_has_execd, and to_has_syscall_event.
1343 (child_has_forked, child_has_vforked, child_has_execd)
1344 (child_has_syscall_event): Remove prototypes.
1345 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1346 prototypes.
1347 (target_has_forked, target_has_vforked, target_has_execd)
1348 (target_has_syscall_event): Remove macros.
1349
4088142a
DJ
13502002-11-16 Daniel Jacobowitz <drow@mvista.com>
1351
1352 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1353 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1354 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1355 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1356 * target.c (cleanup_target): Remove reference to
1357 to_can_follow_vfork_prior_to_exec.
1358 (update_current_target): Likewise.
1359 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1360 (setup_target_debug): Remove reference to
1361 to_can_follow_vfork_prior_to_exec.
1362 * target.h (struct target_ops): Remove
1363 to_can_follow_vfork_prior_to_exec.
1364 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1365 (target_can_follow_vfork_prior_to_exec): Remove definition.
1366 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1367 define.
1368 * infrun.c (follow_vfork_when_exec): Remove.
1369 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1370 (follow_exec): Likewise.
1371 (handle_inferior_event): Likewise.
1372 (keep_going): Likewise.
1373
18cde8d5
AC
13742002-11-15 Andrew Cagney <cagney@redhat.com>
1375
1376 * frame.c (generic_unwind_get_saved_register): Make static.
1377 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1378 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1379 defaults to generic_unwind_get_saved_register.
1380 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1381 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1382 * frv-tdep.c (frv_gdbarch_init): Ditto.
1383 * i386-tdep.c (i386_gdbarch_init): Ditto.
1384 * s390-tdep.c (s390_gdbarch_init): Ditto.
1385 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1386 * v850-tdep.c (v850_gdbarch_init): Ditto.
1387 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1388 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1389 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1390
a6b063af
AC
13912002-11-15 Andrew Cagney <cagney@redhat.com>
1392
1393 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1394 i386-tdep.c.
1395
f407986f
AC
13962002-11-15 Andrew Cagney <cagney@redhat.com>
1397
1398 * frame.h (sigtramp_saved_pc): Delete declaration.
1399 * blockframe.c (sigtramp_saved_pc): Delete function.
1400 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1401 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1402 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1403 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1404
f18c5a73
AC
14052002-11-15 Andrew Cagney <ac131313@redhat.com>
1406
1407 * frame.c (frame_pc_unwind): New function.
1408 (frame_saved_regs_pc_unwind): New function.
1409 (frame_register_unwind): Pass unwind_cache instead of
1410 register_unwind_cache.
1411 (set_unwind_by_pc): Add unwind_pc parameter, set.
1412 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1413 (get_prev_frame): Ditto.
1414 * frame.h (frame_pc_unwind_ftype): Declare.
1415 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1416 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1417 (frame_pc_unwind): Declare.
1418 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1419 (struct dummy_frame): Add comment mentioning that values are for
1420 previous frame.
1421 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1422 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1423 (generic_file_frame_chain_valid): Ditto.
1424 * stack.c (frame_info): Ditto.
1425
d9285969 14262002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
1427
1428 * linespec.c (locate_first_half): New function.
1429 (decode_line_1): Move code into locate_first_half.
1430
d741b867
AC
14312002-11-15 Andrew Cagney <ac131313@redhat.com>
1432
1433 * complaints.h: Add comment explaining how to eliminate a
1434 deprecated_complain call.
24382c5c 1435 * complaints.h: Fix spelling errors.
d741b867 1436
82d03c99
DC
14372002-11-15 David Carlton <carlton@math.stanford.edu>
1438
1439 * printcmd.c: Remove #include "disasm.h".
1440
c97eb5d9
AC
14412002-11-14 Andrew Cagney <ac131313@redhat.com>
1442
1443 * frame.h: Move the most relevant interface functions to the start
1444 of the file.
1445
524d7c18
AC
14462002-11-14 Andrew Cagney <ac131313@redhat.com>
1447
1448 * regcache.h (deprecated_registers): Rename registers.
1449 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1450 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1451 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1452 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1453 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1454 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1455 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1456 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1457 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1458 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1459 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1460 * v850ice.c: Update.
1461
6411e720
AC
1462Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1463
1464 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1465 NULL buffer.
1466
73937e03
AC
14672002-11-13 Andrew Cagney <cagney@redhat.com>
1468
1469 * regcache.h (deprecated_read_register_bytes): Rename
1470 read_register_bytes.
1471 (deprecated_write_register_bytes): Rename write_register_bytes.
1472 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1473 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1474 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1475 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1476 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1477 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1478 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1479 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1480 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1481 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1482 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1483 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1484 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1485 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1486
fb0cd46e
JB
14872002-11-13 Jim Blandy <jimb@redhat.com>
1488
1489 * findvar.c (read_var_value): Doc fix.
1490
2d28509a
AC
14912002-11-13 Andrew Cagney <cagney@redhat.com>
1492
1493 * regcache.c (struct regcache): Replace passthough_p with
1494 readonly_p.
1495 (regcache_xmalloc): Initialize readonly_p.
1496 (build_regcache): Initialize readonly_p.
1497 (regcache_save): New function.
1498 (regcache_restore): New function.
1499 (regcache_cpy): Re-implement using regcache_save and
1500 regcache_restore.
1501 (regcache_raw_read): Update.
1502 (regcache_cooked_read): When a read-only cache, checked for cached
1503 pseudo register values.
1504 (regcache_raw_write): Assert that the cache is not read-only.
1505 Remove code handling a non-passthrough cache.
1506 * regcache.h (regcache_save): Declare.
1507 (regcache_restore): Declare.
1508
067df2e5
AC
15092002-11-13 Andrew Cagney <cagney@redhat.com>
1510
1511 * regcache.c (struct regcache_descr): Add fields
1512 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1513 (init_legacy_regcache_descr): Compute the size of a cooked
1514 register cache and then assign that to sizeof_raw_registers. Set
1515 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1516 (init_legacy_regcache_descr): Ditto.
1517
51b1fe4e
AC
15182002-11-13 Andrew Cagney <cagney@redhat.com>
1519
1520 * regcache.c (register_buffer): Move to near start of file, update
1521 description.
1522 (regcache_raw_read): Use.
1523 (regcache_raw_write): Use.
1524 (struct regcache): Rename raw_registers to registers and
1525 raw_register_valid_p to register_valid_p.
1526 (regcache_xmalloc): Update.
1527 (regcache_xfree): Update.
1528 (register_buffer): Update.
1529 (regcache_cpy): Update.
1530 (regcache_cpy_no_passthrough): Update.
1531 (regcache_valid_p): Update.
1532 (deprecated_grub_regcache_for_registers): Update.
1533 (deprecated_grub_regcache_for_register_valid): Update.
1534 (set_register_cached): Update.
1535 (regcache_raw_write): Update.
1536
80b4c677
PM
15372002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1538
1539 * p-exp.y (name_not_typename): Use copy_name to
1540 set current_type variable for fields of THIS.
1541
0f3fafde
DJ
15422002-11-12 Daniel Jacobowitz <drow@mvista.com>
1543
1544 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1545 * monitor.c (init_base_monitor_ops): Likewise.
1546 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1547 * remote-array.c (init_array_ops): Likewise.
1548 * remote-e7000.c (init_e7000_ops): Likewise.
1549 * remote-es.c (init_es1800_ops): Likewise.
1550 (init_es1800_child_ops): Likewise.
1551 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1552 * remote-sim.c (init_gdbsim_ops): Likewise.
1553 * remote-st.c (init_st2000_ops): Likewise.
1554 * sol-thread.c (init_sol_core_ops): Likewise.
1555 (init_sol_thread_ops): Likewise.
1556 * v850ice.c (init_850ice_ops): Likewise.
1557 * win32-nat.c (init_child_ops): Likewise.
1558 * wince.c (init_child_ops): Likewise.
1559
82c0260e
AC
15602002-11-12 Andrew Cagney <ac131313@redhat.com>
1561
1562 * utils.c (gdb_realpath): Make rp a constant pointer.
1563
70d35819
AC
15642002-11-12 Andrew Cagney <ac131313@redhat.com>
1565
1566 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1567 a constant buffer; cannonicalize_file_name(); realpath() with a
1568 pathconf() defined buffer, xstrdup().
1569
9835a8b0
AC
15702002-11-12 Andrew Cagney <ac131313@redhat.com>
1571
1572 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1573 to hang2.C; hang3.c to hang3.C.
1574
3f47be5c
EZ
15752002-11-11 Elena Zannoni <ezannoni@redhat.com>
1576
1577 * findvar.c (read_var_value): Reenable TLS code.
1578
15792002-11-11 Elena Zannoni <ezannoni@redhat.com>
1580 Jim Blandy <jimb@redhat.com>
1581
1582 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1583 * target.c (update_current_target): Add
1584 to_get_thread_local_address.
1585 * target.h (to_get_thread_local_address): Export.
1586 (target_get_thread_local_address): Define.
1587 (target_get_thread_local_address_p): Define.
1588 * thread-db.c: Include solib-svr4.h.
1589 (td_thr_tls_get_addr_p): Define.
1590 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1591 (thread_db_get_thread_local_address): New function.
1592 (init_thread_db_ops): Initialize to_get_thread_local_address.
1593 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1594 * configure: Regenerate.
1595 * config.in: Regenerate.
1596
636b1a6d
DC
15972002-11-11 David Carlton <carlton@math.stanford.edu>
1598
1599 * linespec.c (set_flags): New function.
1600 (decode_line_1): Move code into set_flags.
1601
44fe14ab
DC
16022002-11-11 David Carlton <carlton@math.stanford.edu>
1603
1604 * linespec.c (decode_line_1): Move chunks of code to separate
1605 functions.
1606 (initialize_defaults): New function.
1607 (decode_indirect): New function.
1608
e6f181f5
AC
16092002-11-11 Andrew Cagney <ac131313@redhat.com>
1610
8971b011
AC
1611 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1612 instead of void_code_ptr.
1613 (sigtramp_saved_pc): Ditto.
1614
e6f181f5
AC
1615 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1616 i386_fp_regnum_p.
1617
01ad7f36
DJ
16182002-11-10 Daniel Jacobowitz <drow@mvista.com>
1619
1620 * gdbtypes.h (struct main_type): Move artificial flag out of
1621 loc. New member of ``struct field'' named static_kind. Reduce
1622 overloaded meaning of bitsize.
1623 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1624 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1625 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1626
1627 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1628 new fields.
1629 (template_to_fixed_record_type, template_to_static_fixed_type)
1630 (to_record_with_fixed_variant_part): Likewise.
1631 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1632 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1633 * dwarfread.c (struct_type, enum_type): Likewise.
1634 * hpread.c (hpread_read_enum_type)
1635 (hpread_read_function_type, hpread_read_doc_function_type)
1636 (hpread_read_struct_type): Likewise.
1637 * mdebugread.c (parse_symbol): Likewise.
1638
bf1e52be
AC
16392002-11-10 Andrew Cagney <ac131313@redhat.com>
1640
1641 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1642 * stack.c (print_frame_info_base): Update.
1643 (print_frame_info_base, frame_info): Update.
1644 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1645 (sparc_frame_saved_pc): Update.
1646 * ada-lang.c (find_printable_frame): Update.
1647 * breakpoint.c (deprecated_frame_in_dummy): Update.
1648
ce556f85
MK
16492002-11-09 Mark Kettenis <kettenis@gnu.org>
1650
1651 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1652 defined.
1653 (regmap): Extend to cover all registers.
1654 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1655 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1656 definitions.
1657 (fetch_register, sore_register): Simplify.
1658 (old_fetch_inferior_registers, old_store_inferior_registers):
1659 Remove functions.
1660 (cannot_fetch_register, cannot_store_register): Change
1661 implementation to use regmap array to decide which registers
1662 cannot be fetched/stored. This removes $orig_eax from the
1663 registers that cannot be fetched/stored.
1664 (fetch_inferior_registers): Call fetch_register directly instead
1665 of calling old_fetch_inferior_registers.
1666 (store_inferior_registers): Call store_register directly instead
1667 of calling old_store_inferior_registers.
1668 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1669 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1670 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1671
932bb524
KD
16722002-11-09 Klee Dienes <kdienes@apple.com>
1673
1674 * i387-tdep.c (i387_supply_register): When called with NULL as a
1675 buffer, mark the register as not provided (to mirror the behavior
1676 of supply_register).
1677 (i387_supply_fxsave): Ditto.
1678 (i387_supply_fsave): Ditto (inherits the behavior from
1679 i387_supply_register).
1680
ebe68b27
KD
16812002-11-09 Klee Dienes <kdienes@apple.com>
1682
1683 * blockframe.c (sigtramp_saved_pc): Use
1684 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1685 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1686 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1687
15220c65
AC
16882002-11-09 Andrew Cagney <ac131313@redhat.com>
1689
1690 * frame.c (get_prev_frame): Test prev_p to identify a previously
1691 unwound frame. Initialize prev_p.
1692 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1693 comment.
1694
95adb866
AC
16952002-11-09 Andrew Cagney <ac131313@redhat.com>
1696
1697 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1698 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1699 more comments. Zap dead code.
1700
e71ecd70
MK
17012002-11-09 Mark Kettenis <kettenis@gnu.org>
1702
1703 * infcmd.c (print_vector_info, print_float_info): Move code that
1704 checks whether the target has any registers and whether there is a
1705 selected frame up, such that it is also used if a target provides
1706 multi-arch definitions of these functions.
1707
c525330d
AC
17082002-11-08 Andrew Cagney <ac131313@redhat.com>
1709
72bdd927
AC
1710 * Makefile.in (DESTDIR): Define.
1711 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1712 prefix.
1713
c525330d
AC
1714 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1715 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1716
38c968cf
AC
17172002-11-08 Andrew Cagney <ac131313@redhat.com>
1718
1719 * i386-linux-tdep.c: Include "reggroups.h".
1720 (i386_linux_register_reggroup_p): New function.
1721 (i386_linux_init_abi): Set register_reggroup_p to
1722 i386_linux_register_reggroup_p.
1723 * i386-tdep.h (i386_register_reggroup_p): Declare.
1724 * i386-tdep.c: Include "reggroups.h".
1725 (i386_init_reggroups): New function.
1726 (i386_add_reggroups): New function.
1727 (i386_register_reggroup_p): New function.
1728 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1729 (_initialize_i386_tdep): Call i386_init_reggroups.
1730 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1731 specific reggroups.
1732
19e33363
MK
17332002-11-09 Mark Kettenis <kettenis@gnu.org>
1734
371a6e84
MK
1735 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1736 request that's available in *BSD.
1737
94ba925a
MK
1738 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1739
19e33363
MK
1740 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1741 FDOFF_REGNUM.
1742
8779790c
AC
17432002-11-08 Andrew Cagney <ac131313@redhat.com>
1744
1745 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1746 * dummy-frame.c (find_dummy_frame): Rename
1747 generic_find_dummy_frame, make static. Return the dummy frame
1748 instead of the regcache.
1749 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1750 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1751 (dummy_frame_register_unwind): Rename
1752 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1753 * dummy-frame.h (dummy_frame_register_unwind): Rename
1754 generic_call_dummy_register_unwind.
1755
8674b74f
MK
17562002-11-08 Mark Kettenis <kettenis@gnu.org>
1757
1758 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1759 except the inclusion of "i386/tm-i386.h", to...
1760 * config/i386/nm-i386v42mp.h: ...here.
1761 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1762
4c1e7e9d
AC
17632002-11-08 Andrew Cagney <ac131313@redhat.com>
1764
1765 * Makefile.in (frame.o): Update dependencies.
1766 * blockframe.c (current_frame, frame_obstack_alloc)
1767 (frame_saved_regs_zalloc, get_current_frame)
1768 (set_current_frame, create_new_frame)
1769 (set_unwind_by_pc, get_next_frame)
1770 (flush_cached_frames, reinit_frame_cache)
1771 (frame_saved_regs_register_unwind)
1772 (deprecated_generic_get_saved_register)
1773 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1774 (_initialize_blockframe): Move frame code from here...
1775 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1776 "annotate.h" and "dummy-frame.h".
1777 (_initialize_frame): New function.
1778
921e78cf
JB
17792002-11-08 Jim Blandy <jimb@redhat.com>
1780
1781 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1782 when we finish a function a context.
1783 * buildsym.h (outermost_context_p): New macro.
1784 (Bug analyzed by David Edelsohn.)
1785
9c1412c1
AC
17862002-11-08 Andrew Cagney <ac131313@redhat.com>
1787
1788 * blockframe.c: Include "dummy-frame.h".
1789 (struct dummy_frame, dummy_frame_stack)
1790 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1791 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1792 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1793 (generic_save_call_dummy_addr, generic_pop_current_frame)
1794 (generic_pop_dummy_frame, generic_fix_call_dummy)
1795 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1796 dummy frame code from here...
1797 * dummy-frame.c: ...to here. New file.
1798 * dummy-frame.h: New file.
1799 (generic_call_dummy_register_unwind): Declare.
1800 (generic_find_dummy_frame): Declare.
1801 * Makefile.in (SFILES): Add dummy-frame.c.
1802 (dummy-frame.o): Specify dependencies.
1803 (dummy_frame_h): Define.
1804 (COMMON_OBS): Add dummy-frame.o.
1805 (blockframe.o): Update dependencies.
1806
208d8187
JB
18072002-11-08 Jim Blandy <jimb@redhat.com>
1808
1809 * dwarf2read.c (read_func_scope): Restore local_symbols and
1810 param_symbols after we finish the function context. (Based on a
1811 patch from David Edelsohn.)
1812
413dad4d
DC
18132002-11-08 David Carlton <carlton@math.stanford.edu>
1814
1815 * linespec.c (symbol_found): New function.
1816 (minsym_found): New function.
1817 (decode_line_1): Separate out some code into separate functions.
1818
5512c44a
JB
18192002-11-08 Joel Brobecker <brobecker@gnat.com>
1820
1821 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1822 the benefit of the interix target.
1823 * i386-tdep.h (i386_frameless_signal_p): Declare.
1824
1b33ef47
AC
18252002-11-08 Andrew Cagney <ac131313@redhat.com>
1826
1827 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1828 declaration that snuck in from change below.
1829
23a34459
AC
18302002-11-06 Andrew Cagney <cagney@redhat.com>
1831
1832 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1833 all callers.
1834 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1835 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1836 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1837 (i386_mxcsr_regnum_p): new function. Use instead of
1838 MXCSR_REGNUM_P.
1839 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1840 (i386_sse_regnum_p): Declare.
1841 (i386_mxcsr_regnum_p): Declare.
1842 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1843 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1844 (IS_FP_REGNUM): Update definition.
1845 (IS_FPU_CTRL_REGNUM): Update definition..
1846 (IS_SSE_REGNUM): Update definition..
1847 * i386v-nat.c (register_u_addr): Update.
1848 * go32-nat.c (fetch_register): Update.
1849 (store_register): Update.
1850
d709c020
JB
18512002-11-07 Joel Brobecker <brobecker@gnat.com>
1852
1853 Preparation work to convert the hppa targets to multiarch partial.
1854
1855 * hppa-tdep.c: Add new functions replacing macro bodies from
1856 config/pa/tm-hppa.h. These function will be used to initialize
1857 the gdbarch structure. Import some comments from tm-hppa.h,
1858 and place them where appropriate, to avoid loosing them when
1859 we cleanup this file.
1860 (hppa_reg_struct_has_addr): New function.
1861 (hppa_inner_than): New function.
1862 (hppa_stack_align): New function.
1863 (hppa_pc_requires_run_before_use): New function.
1864 (hppa_instruction_nullified): New function.
1865 (hppa_register_byte): New function.
1866 (hppa_register_virtual_type): New function.
1867 (hppa_store_struct_return): New function.
1868 (hppa_cannot_store_register): New function.
1869 (hppa_frame_args_address): New function.
1870 (hppa_frame_locals_address): New function.
1871 (hppa_smash_text_address): New function.
1872 (hppa_coerce_float_to_double): New function. Requires the inclusion
1873 of "language.h".
1874
1875 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1876
1877 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1878 gdbarch-eligible macro to a call to the new associated function
1879 created in hppa-tdep.c.
1880 (INNER_THAN): Likewise.
1881 (STACK_ALIGN): Likewise.
1882 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1883 (INSTRUCTION_NULLIFIED): Likewise.
1884 (REGISTER_BYTE): Likewise.
1885 (REGISTER_VIRTUAL_TYPE): Likewise.
1886 (STORE_STRUCT_RETURN): Likewise.
1887 (CANNOT_STORE_REGISTER): Likewise.
1888 (FRAME_ARGS_ADDRESS): Likewise.
1889 (FRAME_LOCALS_ADDRESS): Likewise.
1890 (SMASH_TEXT_ADDRESS): Likewise.
1891 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1892 (ABOUT_TO_RETURN): Delete, as no longer used.
1893
83c31e7d
FN
18942002-11-07 Fernando Nasser <fnasser@redhat.com>
1895
1896 * printcmd.c (disassemble_command): Remove obsolete function.
1897 (_initialize_printcmd): Do not create disassemble command here.
1898 * cli/cli-cmds.c (disassemble_command): New function. Implements
1899 disassemble command.
1900 (init_cli_cmds): Create disassemble command here instead.
1901
0ec30a36
AC
19022002-11-07 Andrew Cagney <ac131313@redhat.com>
1903
1904 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1905
e600bd34
AC
19062002-11-07 Andrew Cagney <ac131313@redhat.com>
1907
1908 * regcache.h (regcache_cooked_read_using_offset_hack)
1909 (regcache_cooked_write_using_offset_hack): Delete declarations.
1910 (register_changed): Delete declaration.
1911 * regcache.c (regcache_cooked_read_using_offset_hack)
1912 (regcache_cooked_write_using_offset_hack): Delete functions.
1913 (cooked_xfer_using_offset_hack): Delete function.
1914 (register_changed): Delete function.
1915
568f8739
JB
19162002-11-07 Jim Blandy <jimb@redhat.com>
1917
1918 * macroscope.c: #include "complaints.h".
1919 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1920 but not in the macro table.
1921 * Makefile.in (macroscope.o): Record dependency.
1922
b0718b7b
JB
19232002-11-07 Joel Brobecker <brobecker@gnat.com>
1924
1925 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1926
2b9e5f3f
AC
19272002-11-07 Andrew Cagney <ac131313@redhat.com>
1928
1929 * regcache.c (deprecated_registers_fetched): Update.
1930 * regcache.h (deprecated_registers_fetched): Rename
1931 registers_fetched.
1932 * remote-vxsparc.c (vx_read_register): Update.
1933 * remote-vxmips.c (vx_read_register): Update.
1934 * remote-vx68.c (vx_read_register): Update.
1935 * irix5-nat.c (fetch_core_registers): Update.
1936 * mipsm3-nat.c (fetch_inferior_registers): Update.
1937 * sun3-nat.c (fetch_inferior_registers): Update.
1938 * symm-nat.c (fetch_inferior_registers): Update.
1939 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1940 (fetch_core_registers): Update.
1941 (fetch_kcore_registers): Update.
1942 * mips-nat.c (fetch_inferior_registers): Update.
1943 * corelow.c (get_core_registers): Update.
1944 * a68v-nat.c (fetch_inferior_registers): Update.
1945
e6e68f1f
JB
19462002-11-06 Joel Brobecker <brobecker@gnat.com>
1947
1948 Put in place the framework necessary for multiarching the hppa targets.
1949 * hppa-tdep.c (hppa_gdbarch_init): New function.
1950 (hppa_dump_tdep): New function.
1951 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1952 tdep structure dumper.
1953 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1954 until the multi-arching conversion has partially been completed.
1955
492254e9
AC
19562002-11-06 Andrew Cagney <ac131313@redhat.com>
1957
1958 * valops.c (value_assign): Merge lval_register case into
1959 lval_reg_frame_relative. Use frame_register and
1960 regcache_cooked_write instead of get_saved_register and
1961 write_register_bytes. After flushing the register cache, try to
1962 re-select the selected frame.
1963
8262ee23
AC
19642002-11-06 Andrew Cagney <ac131313@redhat.com>
1965
1966 * regcache.h (deprecated_register_valid): Rename register_valid.
1967 * regcache.c: Update.
1968 * ia64-aix-nat.c: Update.
1969 * i386gnu-nat.c: Update.
1970 * alpha-nat.c: Update.
1971 * sparc-nat.c: Update.
1972 * lynx-nat.c: Update.
1973 * remote-mips.c: Update.
1974
4facf7e8
JB
19752002-11-06 Joel Brobecker <brobecker@gnat.com>
1976
1977 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1978 to end of file, to be more consistent with the pratice followed
1979 by other targets.
1980
f9418c0f
AC
19812002-11-06 Andrew Cagney <ac131313@redhat.com>
1982
1983 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1984 (print_float_info): Print registers in float_reggroup.
1985 (print_vector_info): Print registers in vector_reggroup.
1986 (default_print_registers_info): When all, print registers in
1987 all_reggroup. Otherwize, print registers in general_reggroup.
1988 (registers_info): Rewrite. Add support for register groups.
1989 Eliminate a goto.
1990
3fe235a7
EZ
19912002-11-06 Elena Zannoni <ezannoni@redhat.com>
1992
1993 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1994 ages.
1995 (symtab_symbol_info): Remove eons old ifdeffed out code.
1996 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1997 command.
1998
ef944135
TR
19992002-11-06 Theodore A. Roth <troth@openavr.org>
2000
2001 * c-exp.y: Add missing semi-colons.
2002 * f-exp.y: Add missing semi-colons.
2003 * m2-exp.y: Add missing semi-colons.
2004 * p-exp.y: Add missing semi-colons.
2005 Add empty action to start rule to avoid a type clash error when
2006 building with bison >= 1.50.
2007
f8302a57
JB
20082002-11-06 Jim Blandy <jimb@redhat.com>
2009
2010 * macrotab.h (struct macro_source_file): Doc fix.
2011
6e382aa3
JJ
20122002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2013
2014 * varobj.c (child_exists, cplus_number_of_children): Change
2015 STREQ macro references to strcmp.
2016 (cplus_name_of_child): Change code to handle the fact that
2017 fields are not necessarily contiguous with regards to their
2018 access control. This is a fix for PR gdb/792.
2019
a216a322
AC
20202002-11-05 Andrew Cagney <ac131313@redhat.com>
2021
2022 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2023 * gdbarch.h, gdbarch.c: Regnerate.
2024 * frame.h (frame_register): Declare.
2025 * frame.c (frame_register): New function.
2026 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2027 GET_SAVED_REGISTER, otherwize call
2028 generic_unwind_get_saved_register.
2029 (frame_register_read): Use frame_register instead of
2030 get_saved_register.
2031
7d5b6fdd
EZ
20322002-11-05 Elena Zannoni <ezannoni@redhat.com>
2033
2034 From Jim Ingham <jingham@apple.com>:
2035 * event-top.c (gdb_disable_readline): New function.
2036 (_initialize_event_loop): Move comment.
2037
b7c64260
EZ
20382002-11-05 Elena Zannoni <ezannoni@redhat.com>
2039
2040 * event-loop.c (start_event_loop): Add comment.
2041 Update copyright.
2042
c2e1b8f2
AC
20432002-11-05 Andrew Cagney <ac131313@redhat.com>
2044
2045 * infcmd.c (default_print_registers_info): Do not call
2046 PRINT_REGISTER_HOOK.
2047
87647bb0
AC
20482002-11-05 Andrew Cagney <ac131313@redhat.com>
2049
2050 * sparc-tdep.c (sparc_print_register_hook): Make static.
2051 (sparc_print_registers_info): New function.
2052 (sparc_do_registers_info): New function.
2053 (sparclet_print_registers_info): New function.
2054 (sparclet_do_registers_info): New function.
2055 (do_sparc_print_registers_info): New function.
2056 (sparc_print_registers): New static function, clone of infcmd.c's
2057 default_print_registers_info.
2058 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2059 (sparclet_do_registers_info): Declare.
2060 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2061 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2062 Re-define.
2063 (sparc_do_registers_info): Declare.
2064 (PRINT_REGISTER_HOOK): Delete macro.
2065 (sparc_print_register_hook): Delete declaration.
2066
8155455b
DC
20672002-11-05 David Carlton <carlton@math.stanford.edu>
2068
2069 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2070 functions.
2071 (lookup_symbol_aux_local): New function.
2072 (lookup_symbol_aux_symtabs): New function.
2073 (lookup_symbol_aux_psymtabs): New function.
2074
29924310
DC
20752002-11-05 David Carlton <carlton@math.stanford.edu>
2076
2077 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2078 previous values of 'objfile' and 'block'.
2079
cc303028
PM
20802002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2081
2082 * values.c (value_change_enclosing_type): Set
2083 enclosing_type field correctly also for the case where
2084 more memory needs to be allocated.
2085
1d70089a
MK
20862002-11-03 Mark Kettenis <kettenis@gnu.org>
2087
f16a25ae
MK
2088 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2089 of puts_filtered.
2090
1d70089a
MK
2091 * i387-tdep.c (i387_print_float_info): Replace calls to
2092 register_read and deprecated_read_register_gen with calls to
2093 frame_register_read, and make the necessary adjustments to the
2094 surrounding code.
2095
7e20f3fb
AC
20962002-11-02 Andrew Cagney <ac131313@redhat.com>
2097
2098 * gdbarch.sh (register_reggroup_p): Allow default value.
2099 * gdbarch.h, gdbarch.c: Regenerate.
2100
192dbe33
AC
21012002-11-02 Andrew Cagney <ac131313@redhat.com>
2102
2103 * regcache.h: Add coment indicating replacements for deprecated
2104 functions.
2105
b59ff9d5
AC
21062002-11-02 Andrew Cagney <cagney@redhat.com>
2107
2108 * reggroups.h, reggroups.c: New files.
2109 * regcache.c: Include "reggroups.h".
2110 (enum regcache_dump_what): Add `regcache_dump_groups'.
2111 (regcache_dump): Contract size of the "Type" column. When
2112 specified, dump the register's groups.
2113 (maintenance_print_register_groups): New function.
2114 (_initialize_regcache): Add command `maint print register-groups'.
2115 * Makefile.in (COMMON_OBS): Add reggroups.o
2116 (SFILES): Add reggroups.c.
2117 (reggroups_h): Define.
2118 (regcache.o, gdbarch.o): Update dependencies.
2119 (reggroups.o): Specify dependencies.
2120 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2121 Add opaque declaration for `struct reggroup' in generated .h file.
2122 Include "reggroups.h" in generated .c file.
2123 gdbarch.h, gdbarch.c: Re-generate.
2124
4caf0990
AC
21252002-11-02 Andrew Cagney <cagney@redhat.com>
2126
2127 * regcache.h (deprecated_read_register_gen): Rename
2128 read_register_gen.
2129 (deprecated_write_register_gen): Rename write_register_gen.
2130 * i387-tdep.c: Update.
2131 * x86-64-linux-nat.c: Update
2132 * wince.c: Update.
2133 * thread-db.c: Update.
2134 * win32-nat.c: Update.
2135 * mips-tdep.c: Update.
2136 * d10v-tdep.c: Update.
2137 * cris-tdep.c: Update.
2138 * remote-sim.c: Update.
2139 * remote-rdi.c: Update.
2140 * remote-rdp.c: Update.
2141 * frame.c: Update.
2142 * target.c: Update.
2143 * blockframe.c: Update.
2144 * x86-64-tdep.c: Update.
2145 * xstormy16-tdep.c: Update.
2146 * sh-tdep.c: Update.
2147 * s390-tdep.c: Update.
2148 * rs6000-tdep.c: Update.
2149 * sparc-tdep.c: Update.
2150 * i386-tdep.c: Update.
2151 * dwarf2cfi.c: Update.
2152 * regcache.c: Update.
2153
7a7adcdf
JB
21542002-11-01 Joel Brobecker <brobecker@gnat.com>
2155
2156 New interix-specific files:
2157 * config/i386/nm-interix.h: New file.
2158 * config/i386/interix.mh: New file.
2159 * config/i386/interix.mt: New file.
2160 * i386-interix-nat.c: New file.
2161 * i386-interix-tdep.c: New file.
2162
bdcdd535
AC
21632002-11-01 Andrew Cagney <cagney@redhat.com>
2164
2165 * frame.h (deprecated_generic_get_saved_register): Rename
2166 generic_get_saved_register.
2167 * blockframe.c (deprecated_generic_get_saved_register): Update.
2168 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2169 (xstormy16_frame_saved_register): Update.
2170 * sh-tdep.c (sh_gdbarch_init): Update.
2171 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2172 * ia64-tdep.c (ia64_get_saved_register): Update.
2173 * cris-tdep.c (cris_gdbarch_init): Update.
2174 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2175 * arm-tdep.c (arm_gdbarch_init): Update.
2176
2a4b7c45
DJ
21772002-10-31 Daniel Jacobowitz <drow@mvista.com>
2178
2179 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2180
ef17e74b
DJ
21812002-10-31 Daniel Jacobowitz <drow@mvista.com>
2182
2183 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2184 trampolines in sigaction.
2185
4904ba5b
AC
21862002-10-31 Andrew Cagney <cagney@redhat.com>
2187
2188 * h8300-tdep.c: Include "gdb_assert.h".
2189 (h8300_print_register): Add gdbarch, file and frame parameters.
2190 Use frame_read_unsigned_register to read the register's value.
2191 Use fprintf_filtered to display output.
2192 (h8300_print_registers_info): Replace h8300_do_registers_info.
2193 (h8300_gdbarch_init): Set print_registers_info.
2194
f908a0eb
AC
21952002-10-31 Andrew Cagney <cagney@redhat.com>
2196
2197 * frame.c (frame_read_unsigned_register): New function.
2198 (frame_read_signed_register): New function.
2199 * frame.h (frame_read_unsigned_register): Declare.
2200 (frame_read_signed_register): Declare.
2201
c5646e11
AC
22022002-10-31 Andrew Cagney <cagney@redhat.com>
2203
2204 * h8500-tdep.c (h8500_print_registers_info): New static function,
2205 clone of infcmd.c's default_print_registers_info.
2206 (h8500_do_registers_info): New funtion.
2207 (h8500_print_register_hook): Rename print_register_hook, make
2208 static.
2209
2210 * config/h8500/tm-h8500.h: Update copyright.
2211 (DEPRECATED_DO_REGISTERS_INFO): Define.
2212 (h8500_do_registers_info: Declare.
2213 (PRINT_REGISTER_HOOK): Delete macro.
2214 (print_register_hook): Delete function.
2215
0bdd672b
AC
22162002-10-31 Andrew Cagney <cagney@redhat.com>
2217
2218 * z8k-tdep.c (z8k_print_register_hook): Make static.
2219 (z8k_print_registers_info): New static function, clone of
2220 infcmd.c's default_print_registers_info.
2221 (z8k_do_registers_info): New function. Wrap
2222 z8k_print_registers_info.
2223 * config/z8k/tm-z8k.h: Update copyright.
2224 (PRINT_REGISTER_HOOK): Delete macro.
2225 (z8k_print_register_hook): Delete declaration.
2226 (DEPRECATED_DO_REGISTERS_INFO): Define.
2227 (z8k_do_registers_info): Declare.
2228
bf9c25dc
JB
22292002-10-30 Joel Brobecker <brobecker@gnat.com>
2230
2231 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2232 as this is already provided by value.h, and was actually causing
2233 a compilation error because of a conflict in parameter type
2234 declaration due to a missing const keyword.
2235 (low_text_segment_addres): Fix a compilation warning.
2236
2c665b51
DJ
22372002-10-29 Daniel Jacobowitz <drow@mvista.com>
2238
2239 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2240 registers without a name.
2241 (mips_linux_cannot_store_register): Don't store registers without
2242 a name.
2243
e70ea697
DC
22442002-10-28 David Carlton <carlton@math.stanford.edu>
2245
2246 * symtab.c (find_addr_symbol): Delete. (It was already commented
2247 out.)
2248 * symtab.h: Delete prototype for find_addr_symbol.
2249
903ad3a6
AC
22502002-10-26 Andrew Cagney <cagney@redhat.com>
2251
2252 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2253 DO_REGISTERS_INFO.
2254 gdbarch.h, gdbarch.c: Re-generate.
2255 * infcmd.c (default_print_registers_info): Update reference.
2256 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2257 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2258 * sh-tdep.c (sh_gdbarch_init): Ditto.
2259 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2260 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2261
ab91194c
MK
22622002-10-26 Mark Kettenis <kettenis@gnu.org>
2263
e3033f15
MK
2264 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2265 cfi_init_extra_frame_info.
2266 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2267 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2268
b83b026c
MK
2269 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2270 target where necessary. Add more comments and remove the ones
2271 that don't provide any useful information.
2272
267bf4bb
MK
2273 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2274 deprecated_read_register_dummy with
2275 frame_unwind_unsigned_register.
2276
751f1375
MK
2277 * i386-tdep.c (i386_extract_struct_value_address): Use
2278 regcache_raw_read_unsigned instead of
2279 regcache_cooked_read_unsigned since we know that the register
2280 we're reading isn't a pseudo register. Rename variable 'val' into
2281 the more descriptive 'addr'.
2282
26abbdc4
MK
2283 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2284 (x86_64_push_return_address): Add comment.
2285 (x86_64_pop_frame): Make static.
2286 (examine_argument): Clarify comment.
2287 (x86_64_skip_prologue): Make prolog_expact variable static.
2288
9f1549cc
MK
2289 * dwarf2cfi.c: Fix some formatting problems.
2290 (context_cpy, read_encoded_pointer): Clarify comments.
2291
ab91194c
MK
2292 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2293 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2294 i386 target back into x86_64_gdbarch_init. Add some comments and
2295 remove meaningless ones.
2296
72367fb4
AC
22972002-10-25 Andrew Cagney <cagney@redhat.com>
2298
2299 * complaints.h (struct deprecated_complaint): Rename `struct
2300 complaint'.
2301 * complaints.c (complain): Update.
2302 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2303 incorrect comment indicating that "symfile.h" was being included
2304 for the `struct complaint' definition.
2305 * remote-vx.c: Update.
2306 * objc-lang.c: Update.
2307 * xcoffread.c: Update.
2308 * hpread.c: Update.
2309 * mdebugread.c: Update.
2310 * stabsread.c: Update.
2311 * dwarf2read.c: Update.
2312 * dwarfread.c: Update.
2313 * elfread.c: Update.
2314 * coffread.c: Update.
2315 * stabsread.h: Update.
2316 * dbxread.c: Update.
2317 * buildsym.c: Update.
2318 * gdbtypes.c: Update.
2319 * macrotab.c: Update.
2320
1f2baacc
MK
23212002-10-25 Mark Kettenis <kettenis@gnu.org>
2322
0c1a73d6
MK
2323 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2324 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2325 (x86_64_init_abi): ...new function.
2326
6aee4d54 2327 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
2328 * i386v-nat.c: Include "i386-tdep.h".
2329
8f9cbe01
AC
23302002-10-25 Andrew Cagney <cagney@redhat.com>
2331
5f11f355
AC
2332 * gdbtypes.c (address_space_name_to_int): Update.
2333 (address_space_int_to_name): Update.
2334 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2335 multi-arch predicate.
2336 (address_class_name_to_type_flags): Ditto.
2337 * gdbarch.h, gdbarch.c: Re-generate.
2338
8f9cbe01
AC
2339 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2340
e8d96a5d
MH
23412002-10-24 Martin M. Hunt <hunt@redhat.com>
2342
2343 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2344
fe39c653
EZ
23452002-10-24 Elena Zannoni <ezannoni@redhat.com>
2346
2347 * symtab.h (INIT_SAL): Delete macro.
2348 (init_sal): Export.
2349 * symtab.c (init_sal): New function.
2350
2351 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2352 to init_sal function call.
2353 (find_sal_from_funcs_and_line): Ditto.
2354 (all_sals_for_line): Ditto.
2355 * breakpoint.c (create_internal_breakpoint): Ditto.
2356 (create_fork_vfork_event_catchpoint): Ditto.
2357 (create_exec_event_catchpoint): Ditto.
2358 (parse_breakpoint_sals): Ditto.
2359 (watch_command_1): Ditto.
2360 (handle_gnu_4_16_catch_command): Ditto.
2361 (clear_command): Ditto.
2362 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2363 * infcmd.c (run_stack_dummy): Ditto.
2364 * infrun.c (process_event_stop_test): Ditto.
2365 (check_sigtramp2): Ditto.
2366 (step_over_function): Ditto.
2367 * linespec.c (decode_line_2): Ditto.
2368 (decode_line_1): Ditto.
2369 * source.c (line_info): Ditto.
2370 * symtab.c (find_pc_sect_line): Ditto.
2371
baed091b
ML
23722002-10-24 Michal Ludvig <mludvig@suse.cz>
2373
2374 * dwarf2cfi.c (struct context)
2375 (struct context_reg): Moved to dwarf2cfi.h
2376 (context_alloc, frame_state_alloc, context_cpy):
2377 Made extern instead of static, removed prototypes.
2378 * dwarf2cfi.h (struct context)
2379 (struct context_reg): New, moved from dwarf2cfi.c
2380 (context_alloc, frame_state_alloc, context_cpy):
2381 New prototypes.
2382 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2383 Changed from static to extern.
2384 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2385 (LINUX_SIGCONTEXT_FP_OFFSET)
2386 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2387 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2388 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2389 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2390 set_gdbarch_*() calls now use x86-64 specific functions
2391 instead of DWARF2 CFI ones.
2392 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2393 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2394 (x86_64_init_extra_frame_info): New prototypes.
2395
c38da1af
DC
23962002-10-23 David Carlton <carlton@math.stanford.edu>
2397
2398 * linespec.c: #include "parser-defs.h".
2399 Delete prototype for find_template_name_end.
2400 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2401
fb9b6b35
JJ
24022002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2403
2404 * NEWS: add recent mi fixes.
2405 * varobj.c (struct varobj): Add new "updated" flag.
2406 (new_variable): Default "updated" flag to 0.
2407 (varobj_set_value): Set "updated" flag to 1 if value
2408 changes.
2409 (varobj_update): Check varobj "updated" flag before
2410 comparing old and refreshed values. Fix for
2411 PR gdb/702.
2412
8da065d5
DC
24132002-10-23 David Carlton <carlton@math.stanford.edu>
2414
2415 * parse.c (parse_exp_1): Use BLOCK_START.
2416 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2417 SYMBOL_BLOCK_VALUE.
2418 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2419
87f2f08c
DC
24202002-10-23 David Carlton <carlton@math.stanford.edu>
2421
2422 * symtab.c: Delete cplusplus_hint.
2423 Delete prototype for find_template_name_end.
2424
88cda038
EZ
24252002-10-23 Elena Zannoni <ezannoni@redhat.com>
2426
2427 * symtab.h: Update comment.
2428
2625d86c
MS
24292002-10-23 Michael Snyder <msnyder@redhat.com>
2430
2431 * printcmd.c (address_info): Restore quotes in output.
2432 * valops.c (value_of_local): Restore quotes in error message.
2433
9cc0d196
EZ
24342002-10-23 Elena Zannoni <ezannoni@redhat.com>
2435
2436 * symtab.c (symbol_demangled_name): New function.
2437 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2438 turning most of it into a function.
2439 (symbol_demangled_name): Export.
2440
19de93d0
MS
24412002-10-23 Michael Snyder <msnyder@redhat.com>
2442
2443 * valops.c (value_of_local): Restore quotes in error message.
2444
89aad1f9
EZ
24452002-10-23 Elena Zannoni <ezannoni@redhat.com>
2446
2447 * symtab.c (symbol_init_language_specific): New function.
2448 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2449 turning most of it into a function.
2450 (symbol_init_language_specific): Export.
2451
d9fa45fe
DC
24522002-10-23 David Carlton <carlton@math.stanford.edu>
2453
2454 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2455 (dwarf_attr_name): Ditto.
2456 (dwarf_type_encoding_name): Ditto.
2457 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2458 (process_die): Handle DW_TAG_namespace,
2459 DW_TAG_imported_declaration, DW_TAG_imported_module.
2460 (read_namespace): New function.
2461
1045b512
JB
24622002-10-22 Joel Brobecker <brobecker@gnat.com>
2463
2464 * configure.in: Define NEW_PROC_API on Interix too.
2465 * configure: Regenerate.
2466
24672002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
2468
2469 * configure: Regenerate using the proper version of autoconf.
2470
3987b9d4
EZ
24712002-10-21 Elena Zannoni <ezannoni@redhat.com>
2472
2473 * findvar.c (read_var_value): Temporarily disable TLS code, until
2474 complete TLS support is added.
2475
9d774e44
EZ
24762002-10-21 Jim Blandy <jimb@redhat.com>
2477 Elena Zannoni <ezannoni@redhat.com>
2478
2479 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2480 for thread local storage locations.
2481 (struct symbol): Add objfile field.
2482 (SYMBOL_OBJFILE): Define.
2483 * dwarf2read.c (is_thread_local): New static variable.
2484 (new_symbol): If variable is in thread local fill in address class
2485 and objfile appropriately.
2486 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2487 stack operation.
2488 * printcmd.c (address_info): Print the information for thread
2489 local storage variable.
2490 * findvar.c (read_var_value): In case of thread local variable,
2491 defer to the target vector code to compute address.
2492
bc4a16ae
EZ
24932002-10-21 Elena Zannoni <ezannoni@redhat.com>
2494
2495 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2496 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2497
407caf07
EZ
24982002-10-21 Elena Zannoni <ezannoni@redhat.com>
2499
2500 * symtab.h (address_class): Rename
2501 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2502 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2503 * printcmd.c (address_info): Ditto.
2504 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2505
005328e3
MK
25062002-10-20 Mark Kettenis <kettenis@gnu.org>
2507
afdb036a
MK
2508 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2509 DBREG_DRX macro to acces debug registers.
2510
ca02e098
MK
2511 * Makefile.in (i386obsd-tdep.o): New target.
2512
03cc47f7
MK
2513 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2514 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2515
005328e3
MK
2516 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2517 * config/i386/obsd.mt: New file.
2518 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2519 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2520 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2521 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2522 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2523 * i386obsd-tdep.c: New file.
2524
9c96f9f2
AF
25252002-10-19 Adam Fedor <fedor@gnu.org>
2526
2527 * objc-exp.y (name_not_typename): Fix invalid comment.
2528
ce1ed485
MK
25292002-10-20 Mark Kettenis <kettenis@gnu.org>
2530
2531 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2532 to allocate partial syms and macro byte caches.
2533
1efc7aaa
DC
25342002-10-18 David Carlton <carlton@math.stanford.edu>
2535
2536 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2537
7e1d63ec
AF
25382002-10-18 Adam Fedor <fedor@gnu.org>
2539
2540 * stabsread.c (find_name_end): New function.
2541 (define_symbol): Use it.
2542
6e8d29a9
DJ
25432002-10-18 Daniel Jacobowitz <drow@mvista.com>
2544
2545 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2546 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2547 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2548 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2549
1efc7aaa 25502002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2551
2552 * symfile.h: Add opaque declaration for struct obstack.
2553 Declare obsavestring to take a const char *.
2554 * symfile.c (obsavestring): Make first argument a const char *.
2555
1aeae86e
AF
25562002-10-16 Adam Fedor <fedor@gnu.org>
2557
2558 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2559 names when matching breakpoints in current file.
2560
8b2dbe47
KB
25612002-10-16 Kevin Buettner <kevinb@redhat.com>
2562
2563 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2564 (read_tag_pointer_type): Add address class support.
2565 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2566 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2567 New methods.
2568 * gdbarch.h, gdbarch.c: Regenerate.
2569 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2570 (make_type_with_address_space, recursive_type_dump): Add address
2571 class support.
2572 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2573 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2574 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2575
74451869
KD
25762002-10-16 Klee Dienes <kdienes@apple.com>
2577
2578 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2579 to get the last character of a char[] buffer, not
2580 name[sizeof(vptr_name)-1].
2581
ff4cb3e8
AF
25822002-10-14 Adam Fedor <fedor@gnu.org>
2583
2584 * symtab.h: New objc_specific struct.
2585 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2586 (SYMBOL_DEMANGLED_NAME): Likewise.
2587
da2cf7e0
AF
25882002-10-14 Adam Fedor <fedor@gnu.org>
2589
2590 * symfile.c (init_filename_language_table): Add ObjC file extension.
2591
4a351cef
AF
25922002-10-14 Adam Fedor <fedor@gnu.org>
2593
2594 * utils.c (puts_filtered_tabular): New function.
2595 (fprintf_symbol_filtered): Get ObjC demangled name.
2596 * defs.h (puts_filtered_tabular): Declared.
2597
9750e763
KB
25982002-10-14 Kevin Buettner <kevinb@redhat.com>
2599
2600 * c-lang.h (c_type_print_varspec_prefix): Delete.
2601 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2602 ``need_post_space'' parameter. Adjust all callers.
2603
eee771c1
DJ
26042002-10-14 Daniel Jacobowitz <drow@mvista.com>
2605
2606 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2607 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2608 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2609 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2610
46c82446
AF
26112002-10-13 Adam Fedor <fedor@gnu.org>
2612
2613 * source.c (print_source_lines): Update comments.
2614
d069f99d
AF
26152002-10-13 Adam Fedor <fedor@gnu.org>
2616
2617 * valops.c (value_of_local): New function.
2618 (value_of_this): Use it.
2619 * value.h (value_of_local): Declared.
2620
53c551b7
AF
26212002-10-13 Adam Fedor <fedor@gnu.org>
2622
2623 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2624 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2625
eb392fbf
AF
26262002-10-12 Adam Fedor <fedor@gnu.org>
2627
2628 * language.c (binop_result_type): Add language_objc to case.
2629 (integral_type): Likewise.
2630 (character_type): Likewise.
2631 (string_type): Likewise.
2632 (boolean_type): Likewise.
2633 (structured_type): Likewise.
2634 (binop_type_check): Likewise.
2635
e2b23ee9
AF
26362002-10-11 Adam Fedor <fedor@gnu.org>
2637
2638 * printcmd.c (address_info): Print 'self' for ObjC.
2639
b01ab485
AF
26402002-10-11 Adam Fedor <fedor@gnu.org>
2641
2642 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2643 OP_SELF.
2644
806e6073
AF
26452002-10-11 Adam Fedor <fedor@gnu.org>
2646
2647 * language.h (CAST_IS_CONVERSION): Add language_objc.
2648
50f85cdf
AF
26492002-10-11 Adam Fedor <fedor@gnu.org>
2650
2651 * defs.h (enum language): Add language_objc.
2652
0d540cdf
KD
26532002-10-11 Klee Dienes <kdienes@apple.com>
2654
69266111 2655 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2656 * gdbcore.h (read_memory_typed_address): Add prototype.
2657 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2658 to read a value destined for a CORE_ADDR, not read_memory_integer.
2659 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2660 (f77_get_dynamic_lowerbound): Ditto.
2661
d5dc7960
MH
26622002-10-11 Martin M. Hunt <hunt@redhat.com>
2663
2664 * utils.c (string_to_core_addr): After turning string into
2665 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2666 which will do necessary sign-extension, etc.
2667
8343f86c
DJ
26682002-10-11 Daniel Jacobowitz <drow@mvista.com>
2669
2670 * c-exp.y (THIS): Delete token and grammar rule.
2671 (yylex): Don't return THIS.
2672 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2673 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2674 * demangle.c (cplus_markers): Update comment. Put '$'
2675 first. Remove CPLUS_MARKER.
2676 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2677 * jv-exp.y (THIS): Delete token and grammar rule.
2678 (yylex): Don't return THIS.
2679 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2680 * objc-exp.y (THIS): Delete token and grammar rule.
2681 (yylex): Don't return THIS.
2682 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2683 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2684 (read_member_functions): Likewise for opname.
2685 (read_tilde_fields): Use is_cplus_marker.
2686
2687 * defs.h (CPLUS_MARKER): Don't define.
2688 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2689 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2690 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2691 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2692 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2693
2694 * config/i386/tm-i386v4.h: Delete file.
2695 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2696 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2697 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2698 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2699 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2700 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2701 * config/i386/i386v4.mt (TM_FILE): Likewise.
2702 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2703
967c0d83
MM
27042002-10-10 Marko Mlinar <markom@opencores.org>
2705
2706 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2707 accidentially not commited 2002-10-09
2708 * gdbarch.h, gdbarch.c: Re-generate.
2709
f74fa174
MM
27102002-10-09 Marko Mlinar <markom@opencores.org>
2711
2712 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2713 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2714 * gdbarch.h, gdbarch.c: Re-generate.
2715
57349743
JB
27162002-10-08 Petr Sorfa <petrs@caldera.com>
2717
2718 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2719
2720 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2721 so we can work on more than one compilation unit at a time. This
2722 helps prepare GDB to handle inter-CU die references.
2723 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2724 the code to be defined before struct comp_unit_head.
2725 (comp_unit_head): Added new members - offset, cu_head,
2726 begin_die, next and dwarf2_abbrevs.
2727 (dwarf2_abbrevs): Removed single static var; now member of
2728 struct comp_unit_head.
2729 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2730 members.
2731 (psymtab_to_symtab_1): Changed to work with the new
2732 struct comp_unit_head.
2733 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2734 constructs the dwarf2_abbrevs[] inside the cu_header.
2735 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2736 dwarf2_abbrev table to clean up.
2737 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2738 handling of dwarf2_abbrevs inside the cu_header.
2739 (read_partial_die): Now supports the call to the new
2740 dwarf2_lookup_abbrev.
2741 (read_full_die): Now supports the call to the new
2742 dwarf2_lookup_abbrev.
2743
4092aadb
CF
27442002-10-06 Christopher Faylor <cgf@redhat.com>
2745
2746 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2747 insure that shell variables, such as "transformed_name" are propagated
2748 to later shell statements in rule.
2749
af0b2512
MK
27502002-10-06 Mark Kettenis <kettenis@gnu.org>
2751
2752 * config/i386/nm-i386sco.h: Add protection against
2753 multiple-inclusion. Include "i386/nm-i386v.h".
2754 (REGISTER_U_ADDR): Remove define.
2755 (i386_register_u_addr): Remove prototype.
2756
d6020d45
MS
27572002-10-04 Michael Snyder <msnyder@redhat.com>
2758
2759 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2760 before treating it as a single-step event.
2761
7248f48e
AF
27622002-10-03 Adam Fedor <fedor@gnu.org>
2763
2764 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2765 (objc_demangle): Remove assignment in if statements, Replace
2766 free with xfree.
2767 (add_msglist): Likewise.
2768 (end_msglist): Likewise.
2769 (complare_selectors): Likewise.
2770 (selectors_info): Likewise.
2771 (compare_classes): Likewise.
2772 (classes_info): Likewise.
2773 (print_object_command): Likewise.
2774 (find_objc_msgcall_submethod): Replace PTR with void *.
2775 * objc-lang.h: Remove check for __STDC__.
2776
52c6a6ac
JJ
27772002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2778
2779 * ui-out.h (ui_out_field_fmt_int): New prototype.
2780 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2781 of field width and alignment.
2782 * stack.c (print_frame_info_base): When printing frame level, use
2783 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2784 PR gdb/192
2785
7e3cec17
JJ
27862002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2787
2788 * MAINTAINERS: Add self to Write After Approval list.
2789
a58dd373
EZ
27902002-10-02 Elena Zannoni <ezannoni@redhat.com>
2791
2792 * infcmd.c (interrupt_target_command_wrapper): Delete.
2793 (interrupt_target_command): Make non static.
2794 (nofp_registers_info): Make static.
2795 * stack.c (return_command_wrapper): Delete.
2796 (return_command): Make non static.
2797
cee6ddeb
EZ
27982002-10-02 Elena Zannoni <ezannoni@redhat.com>
2799
2800 * event-top.c (gdb_setup_readline): New function. Code moved from
2801 _initialize_event_loop().
2802 (_initialize_event_loop): Call gdb_setup_readline().
2803
c4ed33b9
AC
28042002-10-02 Andrew Cagney <ac131313@redhat.com>
2805
2806 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2807 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2808 * gdbarch.h, gdbarch.c: Re-generate.
2809
cef4f5dd
DJ
28102002-10-02 Daniel Jacobowitz <drow@mvista.com>
2811
2812 Fix PR gdb/778
2813 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2814 before recursing.
2815 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2816 of fill_in_vptr_fieldno.
2817
36dc181b 28182002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2819
36dc181b
EZ
2820 * inferior.h (registers_info, stepi_command, nexti_command,
2821 continue_command, interrupt_target_command): Export from infcmd.c.
2822 * frame.h (args_info, selected_frame_level_changed_hook,
2823 return_command): Export from stack.c.
2824 * v850ice.c (stepi_command, nexti_command, continue_command): use
2825 prototypes from inferior.h.
2826 * tracepoint.c (registers_info, args_info, locals_info): Use
2827 prototypes from frame.h and inferior.h.
2828 * Makefile.in (mi-main.o): Add dependency on frame.h.
2829
6f99cb26
AC
28302002-10-02 Andrew Cagney <ac131313@redhat.com>
2831
da3eff49
AC
2832 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2833 value in register 3 adjusted by ppc_gp0_regnum.
2834
6f99cb26
AC
2835 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2836
da615bee
MM
28372002-10-02 Marko Mlinar <markom@opencores.org>
2838
2839 * MAINTAINERS: Add myself to the Write After Approval list.
2840
d154bee2
AO
28412002-10-01 Alexandre Oliva <aoliva@redhat.com>
2842
62a49b2c
AO
2843 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2844 of the section for the N64 ABI, fixed.
2845
d154bee2
AO
2846 * config/mips/tm-irix6.h: Include solib.h.
2847
ed348acc
EZ
28482002-10-01 Elena Zannoni <ezannoni@redhat.com>
2849
2850 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2851 GNU operators.
2852
da0f9dcd
AC
28532002-10-01 Andrew Cagney <ac131313@redhat.com>
2854
2855 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2856 and that "mi0" syntax has been removed.
2857
bdf64bac
DC
28582002-09-30 David Carlton <carlton@math.stanford.edu>
2859
2860 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2861 * ppc-sysv-tdep.c: #include "gdb_string.h".
2862 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2863 pacify GCC.
2864
54c2a1e6
AC
28652002-10-01 Andrew Cagney <ac131313@redhat.com>
2866
2867 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2868 "vrsave"'s register number.
2869
cedea778
AC
28702002-09-30 Andrew Cagney <ac131313@redhat.com>
2871
2872 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2873 use frame_unwind_signed_register to obtain the PC.
2874 (mips_frame_chain): Handle a generic dummy frame.
2875 (mips_init_extra_frame_info): When a generic dummy frame, don't
2876 re-compute the frame base.
2877 (mips_pop_frame): Handle generic dummy frames.
2878 (mips_gdbarch_init): When generic dummy frames, set
2879 use_generic_dummy_frames, push_dummy_frame to
2880 generic_push_dummy_frame, pc_in_call_dummy to
2881 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2882 generic_save_dummy_frame_tos.
2883
68315eb8
AC
28842002-09-30 Andrew Cagney <ac131313@redhat.com>
2885
2886 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2887 against TOP when TOP was explictly set.
2888 (generic_push_dummy_frame): Set TOP to zero.
2889
3b8630c3
EZ
28902002-09-30 Elena Zannoni <ezannoni@redhat.com>
2891
2892 * event-loop.c (start_event_loop): Rename variable 'result' to
2893 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2894
28ee05e9
KS
28952002-09-30 Keith Seitz <keiths@redhat.com>
2896
2897 * gdb-events.sh (selected_thread_changed): New event.
2898 * gdb-events.c: Regenerated.
2899 * gdb-events.h: Regenerated.
2900
6eecb1c8
HPN
29012002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2902
2903 * MAINTAINERS: Add self to Write After Approval list.
2904
92df71f0
FN
29052002-09-30 Fernando Nasser <fnasser@redhat.com>
2906
3b8630c3
EZ
2907 * disasm.c: New file.
2908 * disasm.h: New file.
92df71f0
FN
2909 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2910 (compare_lines): Ditto.
2911 (dump_insns): Ditto.
3b8630c3
EZ
2912 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2913 argument.
92df71f0 2914 (do_assembly_only): Ditto.
3b8630c3
EZ
2915 (do_disassembly): Renamed to gdb_disassembly and moved to
2916 disasm.c. Sdded uiout argument.
2917 * Makefile.in: Add new files. Reorder SFILES list. Update
2918 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2919
0c22854d
AC
29202002-09-29 Andrew Cagney <ac131313@redhat.com>
2921
2922 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2923 bfd/elf64-alpha-fbsd.c.
2924
e67f2023
AC
29252002-09-29 Andrew Cagney <ac131313@redhat.com>
2926
2927 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2928 i386gnu-tdep.c.
2929
89396210
AC
29302002-09-29 Andrew Cagney <ac131313@redhat.com>
2931
2932 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2933 __FUNCTION__.
2934 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2935 function name.
2936 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2937 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2938 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2939 (S_msg_sig_post_reply): Ditto.
2940
7079c36c
CV
29412002-09-28 Corinna Vinschen <vinschen@redhat.com>
2942
89396210
AC
2943 * sh-tdep.c (sh_use_struct_convention): Use definition according
2944 to ABI.
7079c36c
CV
2945 (sh_push_arguments): Store in register with correct endianess.
2946 (sh_default_store_return_value): Ditto.
2947 (sh_gdbarch_init): Set sizeof long double to 8.
2948
975ac915
MK
29492002-09-27 Mark Kettenis <kettenis@gnu.org>
2950
2951 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2952 Fix some whitespace problems.
2953
9bbe19fb
DC
29542002-09-27 David Carlton <carlton@math.stanford.edu>
2955
2956 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2957 (mcore-tdep.o): Ditto.
2958 (ns32k-tdep.o): Ditto.
2959 (ns32knbsd-tdep.o): Ditto.
2960 (sh3-rom.o): Ditto.
2961 (vax-tdep.o): Ditto.
2962 * cris-tdep.c: #include "gdb_string.h"
2963 * mcore-tdep.c: Ditto.
2964 * ns32k-tdep.c: Ditto.
2965 * ns32knbsd-tdep.c: Ditto.
2966 * sh3-rom.c: Ditto.
2967 * vax-tdep.c: Ditto.
2968
43b2fdc7
DC
29692002-09-27 David Carlton <carlton@math.stanford.edu>
2970
2971 * config/djgpp/fnchange.lst: Add entries for
2972 gdb/testsuite/gdb.c++/m-static files.
2973
e8cfbbd9
JW
29742002-09-27 Jim Wilson <wilson@redhat.com>
2975
2976 * MAINTAINERS: Add myself to the Write After Approval list.
2977
43b2fdc7 29782002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2979
2980 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2981
2982
9f3b7f07
AC
29832002-09-26 Andrew Cagney <ac131313@redhat.com>
2984
2985 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2986 frame.
2987
11269d7e
AC
29882002-09-26 Andrew Cagney <ac131313@redhat.com>
2989
2990 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2991 (rs6000_struct_return_address): Delete variable.
2992 (rs6000_store_struct_return): Update.
2993 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2994 deprecated_extract_struct_value_address.
2995 (rs6000_frame_align): New function.
2996 (rs6000_gdbarch_init): Set frame_align.
2997
f15ab4a7
AC
29982002-09-26 Andrew Cagney <ac131313@redhat.com>
2999
3000 From Grace Sainsbury <graces@redhat.com>:
3001 * Makefile.in (gdbtk-main.o): New target.
3002 (gdb.o): New target.
3003 (main_h): Define.
3004 (main.o): Update dependencies.
3005 (gdb$(EXEEXT)): Add gdb.o.
3006 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3007 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3008 (SUBDIR_GDBTK_CLEAN): Set.
3009 (install-gdbtk): Install the insight binary.
3010 (uninstall-gdbtk): New target.
3011 (all-gdbtk, clean-gdbtk): New rule.
3012 * top.c (use_windows): Default to zero.
3013 * main.c: Include "main.h".
3014 (main): Delete.
3015 (struct captured_main_args): Delete.
3016 (gdb_main): New function.
3017 * main.h: New file.
3018 * gdb.c: New File.
3019
e36180d7
AC
30202002-09-25 Andrew Cagney <cagney@redhat.com>
3021
3022 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3023 (frame_map_regnum_to_name): New function.
3024 (frame_map_name_to_regnum): New function.
3025 * frame.h (frame_map_name_to_regnum): Declare.
3026 (frame_map_regnum_to_name): Declare.
3027 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3028 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3029 * parse.c: Do not include "builtin-regs.h".
3030 (target_map_name_to_register): Delete function.
3031 (write_dollar_variable): Use frame_map_name_to_regnum.
3032 * parser-defs.h (target_map_name_to_register): Delete declaration.
3033 * expprint.c: Include "frame.h".
3034 (print_subexp): Use frame_map_regnum_to_name.
3035 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3036 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3037
8b69000d
AC
30382002-09-25 Andrew Cagney <ac131313@redhat.com>
3039
3040 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3041 wasn't saved, and the next innermost frame is a dummy, return the
3042 dummy frame's link register.
3043
046ca86a
JB
30442002-09-24 Jim Blandy <jimb@redhat.com>
3045
3046 Fix from Paul Breed:
3047 * main.c (captured_main): Add a `break' after the case for 'b'.
3048
94b66fa7
KS
30492002-09-24 Keith Seitz <keiths@redhat.com>
3050
3051 * varobj.c (c_type_of_child): Use get_target_type instead
3052 of TYPE_TARGET_TYPE.
3053
c214a6fd
FN
30542002-09-22 Fernando Nasser <fnasser@redhat.com>
3055
53cb0458
FN
3056 * source.c (get_current_or_default_source_symtab_and_line): Remove
3057 function.
3058 (set_default_source_symtab_and_line): New function. Attempts to
3059 determine a source file to list lines from if one is not currently
3060 defined.
3061 (get_current_source_symtab_and_line): Initialize sal.pc and
3062 sal.end fields.
3063 (set_current_source_symtab_and_line): Mark argument as const.
3064 * source.h: Update declarations and comments.
3065 * linespec.c (decode_line_1): Replace call to removed routine above.
3066 * stack.c (print_frame_info_base): Ditto.
3067 * cli/cli-cmds.c (edit_command): Ditto.
3068 (list_command): Ditto.
3069
30702002-09-22 Fernando Nasser <fnasser@redhat.com>
3071
d6020d45 3072 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 3073 sal.pc and sal.end fields.
c214a6fd
FN
3074 (get_current_or_default_source_symtab_and_line): Ditto.
3075 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3076 so we do not cause a new source symtab to be searched for (reverting an
3077 unintentional change from the 2002-09-20 patch).
3078 * scm-lang.c (scm_unpac): Ditto.
3079
cc3b68a5
AC
30802002-09-21 Andrew Cagney <cagney@redhat.com>
3081
3082 * complaints.c (symfile_explanations): Remove new-line from
3083 ``isolated_message''.
3084 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3085 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3086
5835abe7
NC
30872002-09-20 Nick Clifton <nickc@redhat.com>
3088
3089 * NEWS: Announce that V850EA ISA is no longer supported.
3090 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3091
a15ef5f5
DC
30922002-09-20 David Carlton <carlton@math.stanford.edu>
3093
06ba1b39
DC
3094 * Makefile.in (c-lang.o): Correct dependencies.
3095 (utils.o): Gather dependencies.
3096 (charset.o): Move.
a15ef5f5
DC
3097 * c-lang.c: #include "gdb_string.h"
3098
87885426
FN
30992002-09-20 Fernando Nasser <fnasser@redhat.com>
3100
3101 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3102 * cli/cli-cmds.c (list_command): New function. Implements the new
3103 cli edit command.
3104 (_init_cli_cmds): Add new command definition.
3105 * gdb.1: Document edit command.
3106 * doc/gdb.texinfo: Document edit command.
3107
31082002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
3109
3110 * source.c: Make global variables current_source_symtab and
3111 current_source_line static.
3112 (list_command): Moved to cli/cli-cmds.c.
3113 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3114 (get_first_line_listed): New accessor function.
3115 (get_lines_to_list): New accessor function.
3116 (get_current_source_symtab_and_line): New function. Retrieves the
3117 position in the source code that we consider current.
3118 (get_current_or_default_source_symtab_and_line): New function.
3119 Like the above but attempts to determine a default position if one
3120 is not currently defined.
3121 (set_current_source_symtab_and_line): New function. Sets the source
3122 code position considered current and returns the previously set one.
3123 (clear_current_source_symtab_and_line): Reset stored information about
3124 a current source line.
3125 (_initialize_source): Remove registration for the "list" command and
3126 its alias.
3127 * source.h: Add declarations for the new functions above.
3128 * symtab.h: Remove declarations for the global variables mentioned
3129 above.
3130 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3131 obtain current source line.
3132 * linespec.c (decode_line_1): Ditto.
3133 * macroscope.c (default_macro_scope): Ditto.
3134 * scm-lang.c (scm_unpac): Ditto.
3135 * stack.c (print_frame_info_base): Ditto.
3136 * symfile.c (clear_symtab_users): Ditto.
3137 * symtab.c (decode_line_spec): Ditto.
3138 * cli/cli-cmds.c (list_command): Moved here from source.c.
3139 (ambiguous_line_spec): Moved here from source.c.
3140 (_init_cli_cmds): Add definition for "list" and its alias.
3141 * Makefile.in: Update dependencies.
3142
ddd216ea
CV
31432002-09-20 Corinna Vinschen <vinschen@redhat.com>
3144
3145 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3146 with what gcc thinks is correct.
3147
6d305052
CV
31482002-09-20 Corinna Vinschen <vinschen@redhat.com>
3149
3150 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3151 multiple register push instruction.
3152
234b45d4
KB
31532002-09-19 Jim Blandy <jimb@redhat.com>
3154
3155 Add support for distinct host and target character sets.
3156 * charset.c, charset.h: New files.
3157 * c-exp.y: #include "charset.h".
3158 (yylex): Convert character and string literals to the target
3159 character set, before returning them as the semantic value of the
3160 token.
3161 * c-lang.c: #include "charset.h".
3162 (c_emit_char): Use charset-specific methods to recognize
3163 characters with backslash escape forms, to decide which characters
3164 to print literally and which to print using numeric escape
3165 sequences, and to convert target characters to host characters
3166 before printing.
3167 * utils.c: #include "charset.h".
3168 (no_control_char_error): New function.
3169 (parse_escape): Use charset-specific methods to recognize
3170 backslash escapes, parse `control character' notation, and convert
3171 characters from the host character set to the target character set.
3172 * configure.in: Set the default host character set.
3173 Check where to find iconv, and what its argument types might be.
3174 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3175 * Makefile.in (SFILES): List charset.c.
3176 (COMMON_OBS): List charset.o.
3177 (charset.o): New rule.
3178 (charset_h): New header dependency variable.
3179 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3180 (LIBICONV): New variable, set by configure.
3181 (CLIBS): Include $(LIBICONV) here.
3182 * aclocal.m4, config.in, configure: Regenerated.
3183
525d6a61
JB
31842002-09-19 Joel Brobecker <brobecker@gnat.com>
3185
3186 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3187 bison 1.35 warning.
3188
3ed93867
RE
31892002-09-19 Richard Earnshaw <rearnsha@arm.com>
3190
3191 * gdb_mbuild.sh: New file.
3192
437666f8
AC
31932002-09-19 Andrew Cagney <ac131313@redhat.com>
3194
3195 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3196
389e51db
AC
31972002-09-18 Andrew Cagney <ac131313@redhat.com>
3198
3199 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3200 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3201 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3202 valops.c, value.h: Revert previous change.
3203
3b4efeaa
MS
32042002-09-18 Michael Snyder <msnyder@redhat.com>
3205
3206 Preliminary support for Objective-C:
3207 * defs.h (language_objc): New enum value.
3208 (puts_filtered_tabular): Declaration only, exported from utils.c.
3209 (skip_quoted): Delete, declared in completer.h.
3210 * c-exp.y: Include completer.h.
3211 * p-exp.y: Ditto.
3212 * jv-exp.y: Ditto.
3213 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3214 New operator enum values.
3215 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3216 * language.c (binop_result_type): Handle language_objc case.
3217 (integral_type, character_type, string_type, boolean_type,
3218 structured_type, binop_type_check): Ditto.
3219 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3220 (struct objc_specific): Add to general_symbol_info.
3221 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3222 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3223 * parser-defs.h (struct objc_class_str): New struct type.
3224 (start_msglist, end_msglist, add_msglist): Declaration only,
3225 exported from objc-lang.c.
3226 * value.h (value_of_local, value_nsstring,
3227 call_function_by_hand_expecting_type): Exported from valops.c.
3228 * valops.c (find_function_addr): Export.
3229 (call_function_by_hand_expecting_type): New function.
3230 (value_of_local): New function.
3231 * symfile.c (init_filename_language_table): Add ".m" extension
3232 for Objective-C.
3233 * utils.c (puts_filtered_tabular): New function.
3234 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3235 (set/show demangle): Extend help-string to refer to ObjC.
3236 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3237 * stabsread.c (symbol_reference_defined): Objective-C symbols
3238 may contain colons: make allowances when scanning stabs strings
3239 for colons.
3240 (objc_find_colon): New function.
3241 * printcmd.c (address_info): If language == objc then print
3242 "self" instead of "this".
3243 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3244 OP_NSSTRING, and OP_SELF.
3245 (prefixify_subexp): Ditto.
3246 * source.c (print_source_lines): Mention objc in comment.
3247 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3248 method names.
3249
b9caf505
AC
32502002-09-18 Andrew Cagney <ac131313@redhat.com>
3251
3252 * complaints.h: Update copyright.
3253 (struct complaints): Declare.
3254 (struct complaint): Make `message' constant.
3255 (internal_complaint): Declare.
3256 (complaint): Declare.
3257 (complaint_root): Delete declaration.
3258 (symfile_complaints): Delete declaration.
3259 (struct complaints): Add opaque declaration.
3260 (clear_complaints): Add a complaints parameter.
3261 * complaints.c: Update copyright.
3262 (enum complaint_series): Define.
3263 (complaint_root): Delete.
3264 (struct complaints): Define.
3265 (complaint_sentinel, symfile_complaint_book): New variables.
3266 (symfile_explanations, symfile_complaints): New variables.
3267 New variables.
3268 (get_complaints): New function.
3269 (vcomplaint): New function.
3270 (complaint): New function.
3271 (internal_complaint): New function.
3272 (complain): Call vcomplain with symfile_complaint.
3273 (clear_complaints): Rewrite.
3274 (_initialize_complaints): Use add_setshow_command.
3275 * Makefile.in (complaints.o): Update dependencies.
3276 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3277 to call to clear_complaints.
3278 (new_symfile_objfile, reread_symbols): Ditto.
3279 (oldsyms_complaint): Delete.
3280 (empty_symtab_complaint, unknown_option_complaint): Delete.
3281 (free_named_symtabs): Use complaint instead of complain.
3282
d2e6263c
MS
32832002-09-18 Michael Snyder <msnyder@redhat.com>
3284
5fb2031a
AC
3285 Contributed by Apple Computer, Inc. Merged with current sources
3286 by Adam Fedor <fedor@doc.com> [cagney].
3287
d2e6263c
MS
3288 * objc-lang.c: First clean-up round: comments, indentation.
3289 * objc-lang.h: Ditto.
3290 * objc-lang.y: Ditto.
3291
dec43320
AC
32922002-09-18 Andrew Cagney <ac131313@redhat.com>
3293
3294 * maint.c (maintenance_internal_error): Print the parameter as the
3295 error message.
3296 (maintenance_internal_warning): New function.
3297 (_initialize_maint_cmds): Add command `maint internal-warning'.
3298
3299 * defs.h (internal_warning, internal_vwarning): Declare.
3300 * utils.c (struct internal_problem): Define.
3301 (internal_vproblem): New function.
3302 (internal_warning): New function.
3303 (internal_vwarning): New function.
3304 (internal_warning_problem, internal_error_problem): New variables.
3305 (internal_verror): Just call internal_vproblem.
3306
b81654f1
MS
33072002-09-18 Michael Snyder <msnyder@redhat.com>
3308
3309 * objc-lang.c: New file, support for Objective-C.
3310 Preliminary check-in, not yet integrated into gdb.
3311 * objc-lang.h: New file.
3312 * objc-exp.y: New file.
3313
0542c381
AC
33142002-09-18 Andrew Cagney <ac131313@redhat.com>
3315
7bda5e4a
AC
3316 * infrun.c (signal_stop_update): Convert definition to ISO C.
3317 (signal_print_update): Ditto.
3318 (signal_pass_update): Ditto.
3319 * inflow.c (terminal_save_ours): Ditto.
3320
5247b418
AC
3321 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3322 comments.
3323
fc60962c
AC
3324 * config/djgpp/fnchange.lst: Handle name clashes between
3325 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3326 bfd/coff-tic80.c.
3327
0542c381
AC
3328 * i386-linux-tdep.h: Fix tipo.
3329
5b924b9b
AF
33302002-09-18 Adam Fedor <fedor@gnu.org>
3331
3332 * MAINTAINERS: Add myself to the Write After Approval list.
3333
5afc051b
JB
33342002-09-18 Jim Blandy <jimb@redhat.com>
3335
3336 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3337 texthigh and textlow to reader-specific structs caused
3338 objfile_relocate to miss them. This is fixable, but the work that
3339 the change was supposed to prepare GDB for never got done anyway.
3340
eb944380
DC
33412002-09-18 David Carlton <carlton@math.stanford.edu>
3342
3343 * MAINTAINERS: Alphabetize Write After Approval list.
3344
948e66d9
DJ
33452002-09-18 Daniel Jacobowitz <drow@mvista.com>
3346
3347 Fix PR gdb/709
3348 * values.c (value_static_field): Call read_var_value.
3349
dc604539
AC
33502002-09-18 Andrew Cagney <ac131313@redhat.com>
3351
3352 * valops.c (hand_function_call): Align the initial stack pointer
3353 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3354 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3355 return value.
3356 * mips-tdep.c (mips_frame_align): New function.
3357 (mips_gdbarch_init): Set frame_align.
3358 * gdbarch.sh (FRAME_ALIGN): New method.
3359 * gdbarch.h, gdbarch.c: Re-generate.
3360
cb7e422f
ML
33612002-09-18 Michal Ludvig <mludvig@suse.cz>
3362
3363 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3364 registers.
3365
a094c6fb
AC
33662002-09-17 Andrew Cagney <ac131313@redhat.com>
3367
3368 * NEWS: Mention that MIPS $fp behavior changed.
3369 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3370 reference to FP_REGNUM.
3371 (mipsnbsd_cannot_store_register): Ditto.
3372 * mips-linux-nat.c: Update copyright.
3373 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3374 (mips_linux_cannot_store_register): Ditto.
3375 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3376 * config/mips/tm-mips.h: Update copyright.
3377 (FP_REGNUM): Delete macro.
3378 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3379 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3380 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3381 (mips_r3041_reg_names, mips_r3051_reg_names)
3382 (mips_r3081_reg_names): Replace "fp" with "".
3383 Fix PR gdb/480.
3384
45cf40d1
TR
33852002-09-17 Theodore A. Roth <troth@verinet.com>
3386
3387 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3388 generic_read_register_dummy() (PR gdb/703).
3389 (avr_push_return_address): #if 0 out unused vars.
3390 (avr_gdbarch_init): Enable use of avr_push_return_address().
3391
c7e701b5
MS
33922002-09-17 Michael Snyder <msnyder@redhat.com>
3393
d76ba2a5 3394 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
3395 RTE will take care of it.
3396
20bcf01c
AC
33972002-09-17 Andrew Cagney <ac131313@redhat.com>
3398
3399 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3400 invalid, return SP_REGNUM.
3401
009a9971 34022002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
3403
3404 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3405 point registers without sign extension.
3406
135c175f
AC
34072002-09-17 Andrew Cagney <cagney@redhat.com>
3408
3409 * blockframe.c (deprecated_read_register_dummy): Rename
3410 generic_read_register_dummy.
3411 * frame.c (frame_unwind_signed_register): New function.
3412 (frame_unwind_unsigned_register): New function.
3413 * frame.h (frame_unwind_signed_register): Declare.
3414 (frame_unwind_unsigned_register): Declare.
3415 (deprecated_read_register_dummy): Rename
3416 generic_read_register_dummy.
3417
3418 * h8300-tdep.c (h8300_frame_chain): Update.
3419 (h8300_frame_saved_pc): Update.
3420 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3421 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3422 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3423 (s390_frame_chain): Update.
3424 * v850-tdep.c (v850_find_callers_reg): Update.
3425 (v850_frame_saved_pc): Update.
3426 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3427 (m32r_find_callers_reg): Update.
3428 (m32r_frame_saved_pc): Update.
3429 * sh-tdep.c (sh_find_callers_reg): Update.
3430 (sh64_get_saved_pr): Update.
3431 (sh_init_extra_frame_info): Update.
3432 (sh_init_extra_frame_info): Update.
3433 (sh64_init_extra_frame_info): Update.
3434 (sh64_init_extra_frame_info): Update.
3435 * mcore-tdep.c (mcore_find_callers_reg): Update.
3436 (mcore_frame_saved_pc): Update.
3437 (mcore_init_extra_frame_info): Update.
3438 * i386-tdep.c (i386_frame_saved_pc): Update.
3439 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3440 (ia64_init_extra_frame_info): Update.
3441 (ia64_init_extra_frame_info): Update.
3442 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3443 * cris-tdep.c (cris_init_extra_frame_info): Update.
3444 * avr-tdep.c (avr_frame_chain): Update.
3445 (avr_init_extra_frame_info): Update.
3446 (avr_frame_saved_pc): Update.
3447 * arm-tdep.c (arm_find_callers_reg): Update.
3448 (arm_init_extra_frame_info): Update.
3449 (arm_frame_saved_pc): Update.
3450
a741e514
TT
34512002-09-17 Tom Tromey <tromey@redhat.com>
3452
3453 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3454 is "'".
3455
d1a8e808
CV
34562002-09-17 Corinna Vinschen <vinschen@redhat.com>
3457
3458 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3459 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3460 NEXT_PROLOGUE_INSN.
3461 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3462 NEXT_PROLOGUE_INSN.
3463
d9025a18
JB
34642002-09-16 Joel Brobecker <brobecker@gnat.com>
3465
3466 * osfsolib.c: Remove file, replaced by solib-osf.c.
3467 * Makefile.in: Remove compilation rules for osfsolib.c.
3468
1b2ef1b6
DC
34692002-09-16 David Carlton <carlton@math.stanford.edu>
3470
3471 * cp-valprint.c (cp_print_class_method): Correct args to
3472 check_stub_method_group.
3473
928e48af
CV
34742002-09-16 Corinna Vinschen <vinschen@redhat.com>
3475
3476 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3477 `set architecture'. Unify naming convention of functions.
3478 (h8300_skip_prologue): Improve prologue analysis.
3479 (h8300_push_arguments): Rewritten to more closely match GCC's
3480 bizarre argument-passing behavior, along with the comment describing
3481 said behavior.
3482 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3483 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3484 sim, remote-e7000.c, remote-hms.c and remote.c
3485
5e3397bb
MK
34862002-09-15 Mark Kettenis <kettenis@gnu.org>
3487
3488 * i386-tdep.c (gdb_print_insn_i386): Removed.
3489 (i386_print_insn): New function.
3490 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3491 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3492 tm_print_insn_info.
3493
f710f4fc
MK
34942002-09-14 Mark Kettenis <kettenis@gnu.org>
3495
3496 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3497 zero.
3498
db54fef4
CV
34992002-09-14 Corinna Vinschen <vinschen@redhat.com>
3500
3501 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3502 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3503 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3504
2becadee
CF
35052002-09-13 Christopher Faylor <cgf@redhat.com>
3506
3507 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3508
de17c821
DJ
35092002-09-13 Daniel Jacobowitz <drow@mvista.com>
3510
3511 * gdbtypes.c (check_stub_method): Make static.
3512 (check_stub_method_group): New function.
3513 * gdbtypes.h: Update prototypes.
3514 * cp-support.c: New file.
3515 * cp-support.h: New file.
3516
3517 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3518 (update_method_name_from_physname): New function.
3519 (read_member_functions): Correct method names for operators
3520 and v3 constructors/destructors. Separate v2 constructors and
3521 destructors.
3522 * Makefile.in (stabsread.o): Update dependencies.
3523 (SFILES): Add cp-support.c.
3524 (COMMON_OBS): Add cp-support.o.
3525 (cp_support_h, cp-support.o): Add.
3526
3527 * cp-valprint.c (cp_print_class_method): Call
3528 check_stub_method_group instead of check_stub_method. Remove
3529 extraneous QUITs.
3530 * p-valprint.c (pascal_object_print_class_method): Likewise.
3531 * valops.c (search_struct_method): Likewise.
3532 (find_method_list, value_struct_elt_for_reference): Likewise.
3533
e76cff22
AC
35342002-09-13 Andrew Cagney <cagney@redhat.com>
3535
3536 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3537 * gdbarch.h, gdbarch.c: Regenerate.
3538
905abb3f
AC
35392002-09-13 Andrew Cagney <ac131313@redhat.com>
3540
3541 * frame.c (find_saved_register): Delete function.
3542 * frame.h (find_saved_register): Delete declaration.
3543 Fix PR gdb/631.
3544
64159455
AC
3545Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3546
3547 * mips-tdep.c (read_next_frame_reg): Re-hack using
3548 frame_register_unwind.
3549
795e1e11
AC
3550Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3551
3552 * mips-tdep.c (mips_get_saved_register): Re-hack using
3553 frame_register_unwind.
3554
5720643c
JB
35552002-09-12 Joel Brobecker <brobecker@gnat.com>
3556
3557 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3558 vector. Will be useful for Interix.
3559 * gdbarch.h, gdbarch.c: Regenerate.
3560
3561 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3562 name of the malloc function by NAME_OF_MALLOC.
3563
3bada2a2
JB
35642002-09-12 Joel Brobecker <brobecker@gnat.com>
3565
3566 * value.h (find_function_in_inferior): Add const keyword to
3567 one of the parameters. Allows us to invoke this function with
3568 a const char *.
3569 * valops.c (find_function_in_inferior): Likewise.
3570
3db26b01
JB
35712002-09-12 Joel Brobecker <brobecker@gnat.com>
3572
3573 * exec.c (xfer_memory): Fix compilation warning with old versions
3574 of GCC.
3575 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3576
17c5ed2c
DC
35772002-09-12 David Carlton <carlton@math.stanford.edu>
3578
3579 * symtab.h: Run through gdb_indent.h.
3580 Add 2002 to Copyright year list.
3581
ecd1107e
AM
35822002-09-12 Alan Modra <amodra@bigpond.net.au>
3583
3584 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3585 mach constants.
3586 * MAINTAINERS: Add myself to write after approval list.
3587
e64f66d1
JB
35882002-09-11 J. Brobecker <brobecker@gnat.com>
3589
3590 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3591
f9395794
JB
35922002-09-11 J. Brobecker <brobecker@gnat.com>
3593
3594 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3595 Interix.
3596
1a303dec
MS
35972002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3598
3599 * procfs.c (do_detach): Clear current signal, not just fault.
3600 Corrects problem with breakpoint trap signal leaking to detached
3601 process on Tru64.
3602
c0219d42
MS
36032002-09-10 Michael Snyder <msnyder@redhat.com>
3604
3605 * buildsym.c (finish_block): Protect against null pointer.
3606
9d84ac84
AC
36072002-09-10 Andrew Cagney <cagney@redhat.com>
3608
3609 * infcmd.c (default_print_registers_info): Send all output to
3610 ``file'' instead of ``gdb_stdout''.
3611
77d8f2b4
MS
36122002-09-10 Michael Snyder <msnyder@redhat.com>
3613
3614 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3615 LONGEST, and use signed register read (addresses are sign-
3616 extended for mips).
3617
99656a61
SC
36182002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3619
3620 * event-loop.c (gdb_do_one_event): Make public.
3621 * event-loop.h (gdb_do_one_event): Declare.
3622
da12f4d8
JL
36232002-09-10 Jeff Law <law@redhat.com>
3624
3625 * infttrace.c (child_resume): Simplify and rework to avoid
3626 TT_PROC_CONTINUE.
3627
d0aee0c4
FF
36282002-09-09 Fred Fish <fnf@intrinsity.com>
3629
3630 * printcmd.c (print_scalar_formatted): "len" is the number of
3631 target bytes, NOT the number of target bits.
3632
7cb3ec5e
EZ
36332002-09-09 Elena Zannoni <ezannoni@redhat.com>
3634
3635 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3636 * top.c (init_main): Set rl_terminal_name.
3637
4dc81987
AS
36382002-09-08 Aidan Skinner <aidan@velvet.net>
3639
3640 * ada-lang.c (ada_array_bound, ada_type_match,
3641 _initialize_ada_language): Fix K&R definitions.
3642 * ada-tasks.c (get_current_task): Fix K&R definitions.
3643 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3644
842330b4
CF
36452002-09-07 Christopher Faylor <cgf@redhat.com>
3646
3647 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3648 Add XP.
3649
43156d82
MK
36502002-09-06 Mark Kettenis <kettenis@gnu.org>
3651
66da5fd8
MK
3652 * i386-tdep.c (i386_register_virtual_type,
3653 i386_register_convertible, i386_register_convert_to_virtual,
3654 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3655 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3656 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3657 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3658 Don't set push_arguments twice.
3659
4b218c18
MK
3660 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3661 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3662 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3663 sigtramp_end to NULL.
3664 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3665 defines.
3666 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3667
4cc314d5
MK
3668 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3669 whitespace.
3670
43156d82
MK
3671 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3672 * gdbarch.h, gdbarch.c: Re-generate.
3673 * blockframe.c (find_pc_sect_partial_function): Convert to use
3674 SIGTRAMP_START_P predicate.
3675
6672060b
MS
36762002-09-05 Michael Snyder <msnyder@redhat.com>
3677
a90c3637
MS
3678 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3679 generic_dummy_frame method and old method. Also distinguish
3680 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3681 (arm_extract_return_value): Use new regcache method.
a90c3637 3682
6672060b
MS
3683 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3684 adjustment that doesn't conform to the ABI.
3685 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3686 saved regcache, not from current regcache.
3687
299ffc64
AC
36882002-09-05 Andrew Cagney <ac131313@redhat.com>
3689
3690 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3691 * README: Update.
3692
a3a2ee65
JT
36932002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3694
3695 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3696 if arm_apcs_32 is false.
3697
2bc7eea9
AC
36982002-09-04 Andrew Cagney <ac131313@redhat.com>
3699
3700 GDB 5.3 branch created.
3701
8a55a7c5
TR
37022002-09-03 Theodore A. Roth <troth@verinet.com>
3703
3704 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3705 generic_unwind_get_saved_register.
3706
e26fb1d7
DC
37072002-09-03 David Carlton <carlton@math.stanford.edu>
3708
3709 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3710 argument (PR gdb/653). Update call to smash_to_method_type.
3711 (read_structure_scope): Update call to dwarf2_add_member_fn.
3712
30d52491
ML
37132002-09-03 Michal Ludvig <mludvig@suse.cz>
3714
3715 * x86-64-linux-tdep.c: Include gdb_string.h
3716 * x86-64-linux-nat.c: Ditto.
3717
06891d83
JT
37182002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3719
3720 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3721 when YYDEBUG is set to 1.
3722 * c-exp.y: Likewise.
3723 * f-exp.y: Likewise.
3724 * jv-exp.y: Likewise.
3725 * m2-exp.y: Likewise.
3726 * p-exp.y: Likewise.
3727
7d400e77
JT
37282002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3729
3730 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3731 dependency list.
3732 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3733 solib_svr4_fetch_link_map_offsets to
3734 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3735 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3736 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3737 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3738 solib-svr4.o, and solib-legacy.o.
3739 * config/i386/tm-nbsd.h: Include solib.h.
3740
704a27c4
JT
37412002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3742
3743 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3744 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3745 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3746 comment noting that this needs its own target configuration.
3747 * config/i386/nbsd.mt: New file.
3748 * config/i386/nbsdaout.mt: Remove.
3749 * config/i386/nbsdelf.mt: Ditto.
3750 * config/i386/tm-nbsdaout.h: Ditto.
3751
d66198e1
JT
37522002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3753
3754 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3755 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3756 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3757 tdep->sigtramp_end.
3758 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3759 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3760 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3761
3cac699e
JT
37622002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3763
3764 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3765 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3766 * i386-tdep.h (i386bsd_init_abi): New prototype.
3767 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3768 function declaration.
3769 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3770 for NetBSD-a.out or NetBSD-ELF.
3771 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3772 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3773 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3774 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3775 and nbsd-tdep.h.
3776 (i386nbsd_pc_in_sigtramp): New function.
3777 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3778 i386nbsd_pc_in_sigtramp.
3779 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3780 and i386nbsdelf_init_abi OS ABI handlers.
3781 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3782 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3783
7010ca0a
MK
37842002-09-02 Mark Kettenis <kettenis@gnu.org>
3785
3786 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3787 registers if the target really has them.
3788
6dd93b72
JT
37892002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3790
3791 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3792 than nbsd-tdep.h.
3793
2ca8ae21
JT
37942002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3795
3796 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3797 list.
3798 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3799 (alphanbsd_skip_sigtramp_frame): New functions.
3800 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3801 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3802 to alphanbsd_sigcontext_addr.
3803
3d9b49b0
JT
38042002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3805
3806 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3807 list.
3808 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3809 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3810 nbsd_pc_in_sigtramp.
3811 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3812 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3813 * nbsd-tdep.c: Include gdb_string.h.
3814 (nbsd_pc_in_sigtramp): New function.
3815 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3816 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3817 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3818 ppcnbsd_pc_in_sigtramp.
3819 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3820 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3821 shnbsd_pc_in_sigtramp.
3822 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3823 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3824 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3825
c860120c
PM
38262002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3827
3828 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3829 watchpoints to NULL.
3830 (insert_breakpoints): set val field of watchpoints if NULL.
3831
3832
c7612d53
JB
38332002-08-29 Jim Blandy <jimb@redhat.com>
3834
3835 * symtab.c (lookup_symbol_aux): In the cases where we find a
3836 minimal symbol of an appropriate name and use its address to
3837 select a symtab to read and search, use `name' (as passed to us)
3838 as the demangled name when searching the symtab's global and
3839 static blocks, not the minsym's name.
3840
66609862
KS
38412002-08-29 Keith Seitz <keiths@redhat.com>
3842
3843 * stack.c (print_frame_info_base): Always set current_source_symtab
3844 and current_source_line.
3845
151fefe2
JB
38462002-08-29 Donn Terry <donnte@microsoft.com>
3847
3848 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3849
bfb3754e
KS
38502002-08-28 Keith Seitz <keiths@redhat.com>
3851
3852 * stack.c (select_frame): Add FIXME concerning selected-frame
3853 events.
3854 (select_frame_command): Send selected-frame-level-changed
3855 event notification, but only if the level actually changed.
3856 (up_silently_base): Add selected-frame-level-changed event
3857 notification.
3858 (down_silently_base): Likewise.
3859
e822a2a0
AC
38602002-08-28 Andrew Cagney <ac131313@redhat.com>
3861
3862 * Makefile.in: Update dependencies for all gdb/*.c files.
3863
309367d4
TT
38642002-08-27 Tom Tromey <tromey@redhat.com>
3865
3866 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3867 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3868 Update dependencies.
3869 * i387-tdep.c: Include gdb_string.h.
3870 * osabi.c: Likewise.
3871 * i386-linux-nat.c: Likewise.
3872 * lin-lwp.c: Likewise.
3873 * ax-gdb.c: Likewise.
3874 * signals/signals.c: Likewise.
3875 * jv-valprint.c: Likewise.
3876 * p-lang.c: Likewise.
3877 * c-valprint.c: Likewise.
3878 * cp-abi.c: Likewise.
3879
e1507482
EZ
38802002-08-27 Elena Zannoni <ezannoni@redhat.com>
3881
3882 * cli/cli-script.h (copy_command_lines): Export.
3883 * breakpoint.c: Include cli/cli-script.h.
3884 * Makefile.in (breakpoint.o): Update dependencies.
3885
c6510018
MS
38862002-08-26 Michael Snyder <msnyder@redhat.com>
3887
3888 * breakpoint.c (insert_breakpoints): Protect all references
3889 to 'process_warning'. Shorten long lines.
3890
c2b8ed2c
MS
38912002-08-26 Joel Brobecker <brobecker@gnat.com>
3892
3893 * cli/cli-script.c (copy_command_lines): New function.
3894 * defs.h (copy_command_lines): Export.
3895 * testsuite/gdb.base/commands.exp: New tests for commands
3896 attached to a temporary breakpoint, and for commands that
3897 delete the breakpoint they are attached to.
3898
38992002-08-26 Michael Snyder <msnyder@redhat.com>
3900
3901 * breakpoint.c (bpstat_stop_status): Instead of copying the
3902 pointer to the breakpoint commands struct, make a new copy
3903 of the struct and point to that.
3904 (bpstat_clear): Free the commands struct.
3905 (bpstat_clear_actions): Free the commands struct.
3906 (bpstat_do_actions): Free the command actions. Also execute
3907 the local cleanups, instead of deleting them.
3908 (delete_breakpoint): Leave the commands field of the bpstat
3909 chain alone -- it will be freed later.
3910
64b84175
KB
39112002-08-26 Kevin Buettner <kevinb@redhat.com>
3912
3913 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3914 deleted in 2002-08-20 commit. This function is still used by
3915 ppc-linux-nat.c.
3916
55970da6
KS
39172002-08-26 Keith Seitz <keiths@redhat.com>
3918
3919 * gdb-events.sh: Add selected-frame-level-changed event.
3920 * gdb-events.c: Regenerated.
3921 * gdb-events.h: Regenerated.
3922
a790ad35
SC
39232002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3924
3925 Fix PR gdb/393:
3926 * inflow.c (terminal_save_ours): New function to save terminal
3927 settings.
3928 * inferior.h (terminal_save_ours): Declare.
3929 * target.c (debug_to_terminal_save_ours): New function.
3930 (cleanup_target): Defaults to_terminal_save_ours.
3931 (update_current_target): Inherit to_terminal_save_ours.
3932 (setup_target_debug): Set to_terminal_save_ours.
3933 * target.h (target_terminal_save_ours): New to save terminal settings.
3934 (target_ops): New member to_terminal_save_ours.
3935 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3936 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3937 * inftarg.c (init_child_ops): Likewise.
3938 * m3-nat.c (init_m3_ops): Likewise.
3939 * procfs.c (init_procfs_ops): Likewise.
3940 * wince.c (init_child_ops): Likewise.
3941 * win32-nat.c (init_child_ops): Likewise.
3942 * sol-thread.c (init_sol_thread_ops): Likewise.
3943
c00dcbe9
MK
39442002-08-26 Mark Kettenis <kettenis@gnu.org>
3945
3d7f4f49
MK
3946 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3947 use regcache_* functions.
3948 (i386_gdbarch_init): Set store_return_value instead of
3949 deprecated_store_return_value.
3950
c00dcbe9
MK
3951 * regcache.c (regcache_raw_write_signed,
3952 regcache_raw_write_unsigned): New functions.
3953 * regcache.h (regcache_raw_write_signed,
3954 regcache_raw_write_unsigned): New prototypes.
3955
0e0d15ca
AC
39562002-08-25 Andrew Cagney <ac131313@redhat.com>
3957
3958 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3959 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3960 source file dependencies. Cleanup corresponding generator rules.
3961
d3b22ed5
AC
39622002-08-25 Andrew Cagney <ac131313@redhat.com>
3963
3964 * regcache.h (register_offset_hack): Declare.
3965 (regcache_cooked_read_using_offset_hack): Declare.
3966 (regcache_cooked_write_using_offset_hack): Declare.
3967
3968 * regcache.c (register_offset_hack): New function.
3969 (regcache_cooked_read_using_offset_hack): New function.
3970 (regcache_cooked_write_using_offset_hack): New function.
3971 (regcache_dump): Check that the registers, according to their
3972 offset, are packed hard against each other.
3973 (cooked_xfer_using_offset_hack): New function.
3974
bb425013
AC
39752002-08-25 Andrew Cagney <ac131313@redhat.com>
3976
3977 * regcache.c (struct regcache_descr): Add field register_type.
3978 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3979 in as a parameter
3980 (init_regcache_descr): Initialize register_type. Pass the descr
3981 to init_legacy_regcache_descr. Use register_type instead of
3982 REGISTER_VIRTUAL_TYPE.
3983 (register_type): New function.
3984 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3985 * regcache.h (register_type): Declare.
3986
d0403e00
AC
39872002-08-25 Andrew Cagney <ac131313@redhat.com>
3988
3989 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3990 instead of deprecated_store_return_value. Fix fallout from
3991 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3992
0ed04cce
AC
39932002-08-25 Andrew Cagney <ac131313@redhat.com>
3994
3995 * regcache.c (max_register_size): New function.
3996 (init_legacy_regcache_descr): Ensure that max_register_size is
3997 large enough for REGISTER_VIRTUAL_SIZE.
3998 * regcache.h (max_register_size): Declare.
3999
46d79c04
AC
40002002-08-24 Andrew Cagney <ac131313@redhat.com>
4001
4002 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4003 store_return_value.
4004 (e500_extract_return_value): Change type of valbuf pointer to
4005 void.
4006
853c7bd0
MK
40072002-08-24 Mark Kettenis <kettenis@gnu.org>
4008
cd87e769
MK
4009 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4010 workaround.
4011
853c7bd0
MK
4012 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4013 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4014 long long) to prevent compiler warning on 64-bit systems.
4015
ebba8386
AC
40162002-08-23 Andrew Cagney <cagney@redhat.com>
4017
4018 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4019 (DEPRECATED_STORE_RETURN_VALUE): New method.
4020 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4021 * gdbarch.h, gdbarch.c: Re-generate.
4022
4023 * values.c (set_return_value): Pass current_regcache to
4024 STORE_RETURN_VALUE.
4025 * arch-utils.h (legacy_store_return_value): Declare.
4026 * arch-utils.c (legacy_store_return_value): New function.
4027 (legacy_extract_return_value): Update parameters.
4028
4029 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4030 STORE_RETURN_VALUE.
4031 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4032 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4033 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4034 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4035 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4036 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4037 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4038 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4039 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4040 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4041
4042 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4043 * i386-tdep.c (i386_extract_return_value): Update.
4044 * arch-utils.c (legacy_extract_return_value): Update.
4045 * frv-tdep.c (frv_gdbarch_init): Update.
4046 * cris-tdep.c (cris_gdbarch_init): Update.
4047 * d10v-tdep.c (d10v_gdbarch_init): Update.
4048 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4049 * m68k-tdep.c (m68k_gdbarch_init): Update.
4050 * mcore-tdep.c (mcore_gdbarch_init): Update.
4051 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4052 * s390-tdep.c (s390_gdbarch_init): Update.
4053 * sparc-tdep.c (sparc_gdbarch_init): Update.
4054 * sh-tdep.c (sh_gdbarch_init): Update.
4055 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4056 * v850-tdep.c (v850_gdbarch_init): Update.
4057 * avr-tdep.c (avr_gdbarch_init): Update.
4058 * ia64-tdep.c (ia64_gdbarch_init): Update.
4059 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4060 * vax-tdep.c (vax_gdbarch_init): Update.
4061 * alpha-tdep.c (alpha_gdbarch_init): Update.
4062 * arm-tdep.c (arm_gdbarch_init): Update.
4063 * mips-tdep.c (mips_gdbarch_init): Update.
4064 * i386-tdep.c (i386_gdbarch_init): Update.
4065
5bd8c6d0
AC
40662002-08-23 Andrew Cagney <ac131313@redhat.com>
4067
4068 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4069 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4070
e73e1724
MK
40712002-08-24 Mark Kettenis <kettenis@gnu.org>
4072
4073 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4074 problems.
4075
3e6564e1
JB
40762002-08-23 Joel Brobecker <brobecker@gnat.com>
4077
4078 * infrun.c (handle_inferior_event): Move a comment outside of a
4079 function call, in order to avoid indent reformatting this part
4080 of the code in an unreadable way.
4081
81d0cc19
GS
40822002-08-23 Grace Sainsbury <graces@redhat.com>
4083
4084 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4085 when breakpoints fail. Move general breakpoint error messages to
4086 insert_breakpoints.
4087 * breakpoint.c (insert_breakpoints): Change warnings when
4088 breakpoints are nto inserted to specify the type. Remove call to
4089 memory_error when hardware breakpoints can't be inserted. Remove
4090 multiple calls to warning so all messages are sent to the user at
4091 once.
4092 (delete_breakpoints): Make insert error messsages more explicit.
4093
17574093
DJ
40942002-08-23 Daniel Jacobowitz <drow@mvista.com>
4095
4096 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4097 gdbserver/ChangeLog.
4098
8acc2935
MK
40992002-08-23 Mark Kettenis <kettenis@gnu.org>
4100
dfe01d39
MK
4101 * i386-tdep.c: Include "objfiles.h".
4102 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4103 skip_trampoline_code.
4104 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4105 (CPLUS_MARKER): Define to '.'.
4106
8acc2935
MK
4107 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4108 member.
4109 (linux_corefile_thread_callback): Increase args->num_notes.
4110 (linux_make_note_section): Initialize thread_args.num_notes, and
4111 use it to determine whether notes for any threads were created.
4112
151fefe2 41132002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
4114
4115 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4116 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4117 and PCUNKILL.
4118 (write_with_trace): Conditionalize out the switch branch handling
4119 PCSHOLD if the corresponding macro is not defined. Likewise for
4120 PRSABORT and PRSTOP.
4121 This change will be needed by the Interix port.
4122
e1507482
EZ
41232002-08-22 Elena Zannoni <ezannoni@redhat.com>
4124
4125 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4126 write_register wherever possible instead of manipulating the
4127 register bytes directly.
4128 Assign VALUE_CONTENTS to a variable and use that.
4129 The GPR numbers are now dependent on the architecture.
4130
96ff0de4
EZ
41312002-08-22 Elena Zannoni <ezannoni@redhat.com>
4132
4133 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4134 ev_offset fields.
4135 (skip_prologue): Add support for BookE/e500 instructions.
4136 (e500_extract_return_value): New function.
4137 (frame_get_saved_regs): Add support for saving ev registers and
4138 pseudo gpr's.
4139 (e500_store_return_value): New function.
4140 (rs6000_gdbarch_init): Move up default intializations of
4141 deprecated_extract_return_value and store_return_value. Overwrite
4142 init of store_return_value with e500 specific version.
4143 Set extract_return_value for e500.
4144
fbefca5b
EZ
41452002-08-22 Elena Zannoni <ezannoni@redhat.com>
4146
4147 * blockframe.c (generic_call_dummy_register_unwind): Use
4148 regcache_cooked_read to catch cases in which the variable is
4149 stored in a pseudo register.
4150
4d210288
AC
41512002-08-22 Andrew Cagney <cagney@redhat.com>
4152
4153 * NEWS: Mention that the i960 has been made obsolete.
4154 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4155 i960-tdep.c
4156 (remote-nrom.o): Obsolete target.
4157 (remote-nindy.o, i960-tdep.o): Ditto.
4158 * remote-nrom.c: Make file obsolete.
4159 * remote-nindy.c, remote-vx960.c: Ditto.
4160 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4161 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4162 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4163 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4164 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4165 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4166 i960-*-vxworks* obsolete.
4167 * MAINTAINERS: Note that the i960 is obsolete.
4168
6c0c456d
CV
41692002-08-21 Corinna Vinschen <vinschen@redhat.com
4170
4171 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4172 detach to allow reinitialization.
4173
9f9d12b3
AC
41742002-08-22 Andrew Cagney <ac131313@redhat.com>
4175
4176 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4177 attempt).
4178
ebeb39fe
JB
41792002-08-22 Jim Blandy <jimb@redhat.com>
4180
4181 * coffread.c (coff_symfile_read): Don't try to read the line
4182 number table from disk if the image file doesn't have a symbol
4183 table; we'll never actually look at the info anyway, and Windows
4184 ships DLL's with bogus file offsets for the line number data.
4185
5bf1c677
EZ
41862002-08-21 Elena Zannoni <ezannoni@redhat.com>
4187
4188 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4189 an e500 executable.
4190
71b8ef93
MS
41912002-08-21 Michael Snyder <msnyder@redhat.com>
4192
4193 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4194 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
4195 (DEFAULT_MIPS_TYPE): Delete unused macro.
4196 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4197 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 4198
d174216d
JB
41992002-08-21 Jim Blandy <jimb@redhat.com>
4200
4201 * valops.c (value_cast): Simplify and correct logic for doing a
4202 static cast from a pointer to a base class to a pointer to a
4203 derived class.
4204
0ab7a791
AC
42052002-08-21 Andrew Cagney <ac131313@redhat.com>
4206
4207 * infcmd.c (default_print_registers_info): Replace
4208 do_registers_info.
4209 (registers_info): Use gdbarch_print_registers_info instead of
4210 DO_REGISTERS_INFO.
4211 * inferior.h (default_print_registers_info): Replace
4212 do_registers_info.
4213 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4214 (DO_REGISTERS_INFO): Change to a predicate function.
4215 * gdbarch.h, gdbarch.c: Regenerate.
4216
e23792cc
KS
42172002-08-21 Keith Seitz <keiths@redhat.com>
4218
4219 * gdb-events.sh: Add target-changed event.
4220 * gdb-events.c: Regenerated.
4221 * gdb-events.c: Regenerated.
4222 * valops.c (value_assign): Add target-changed event notification
4223 to inlval_register, lval_memory, and lval_reg_frame_relative.
4224
9fb14e79
JB
42252002-08-21 Joel Brobecker <brobecker@gnat.com>
4226
4227 * NEWS: Add an entry regarding the improvement of the next/step
4228 operation on Alpha Tru64 multi-processor machines.
4229
6d39a69f
AC
42302002-08-21 Andrew Cagney <ac131313@redhat.com>
4231
72acd513
AC
4232 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4233 directores.
342af04b 4234 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
4235 * Makefile.in (install-gdbtk): Move to install section.
4236 (rdi-share/libangsd.a): Move to end of file.
4237
fa5f27c7
AC
42382002-08-19 Andrew Cagney <ac131313@redhat.com>
4239
4240 * frame.c (frame_register_unwind): When a register, set addrp to
4241 the register's byte.
4242
5a89d8aa
MS
42432002-08-20 Michael Snyder <msnyder@redhat.com>
4244
4245 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4246 used locally, so move them from the target machine header to here.
4247 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4248 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4249 Make static.
4250 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4251
822e978b
AC
42522002-08-20 Andrew Cagney <cagney@redhat.com>
4253
4254 * NEWS: Mention that the Apollo line was made obsolete.
4255 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4256 m68*-hp-hpux* obsolete.
4257 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4258 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4259 * buildsym.c (make_blockvector): Make static.
4260 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4261 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4262 (ALLDEPFILES): Remove dstread.c.
4263 (dstread.o): Obsolete make rule.
4264 * dstread.c: Makefile obsolete.
4265 * dst.h: Ditto.
4266 * config/m68k/hp300hpux.mt: Ditto.
4267 * config/m68k/hp300hpux.mh: Ditto.
4268 * config/m68k/hp300bsd.mt: Ditto.
4269 * config/m68k/hp300bsd.mh: Ditto.
4270 * config/m68k/apollo68b.mt: Ditto.
4271 * config/m68k/apollo68v.mh: Ditto.
4272 * config/m68k/apollo68b.mh: Ditto.
4273
e41b17f0
MS
42742002-08-20 Michael Snyder <msnyder@redhat.com>
4275
4276 * mips-tdep.c (mips_in_return_stub): Make static.
4277 (mips_gdbarch_init): Set in_solib_return_trampoline.
4278 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4279
d50355b6
MS
42802002-08-20 Michael Snyder <msnyder@redhat.com>
4281
4282 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4283 * gdbarch.c, gdbarch.h: Regenerate.
4284 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4285 Add.
4286 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4287
757a7cc6
MS
42882002-08-20 Michael Snyder <msnyder@redhat.com>
4289
4290 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4291 (mips_gdbarch_init): Set skip_trampoline_code,
4292 in_solib_call_trampoline.
4293 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4294 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4295
c8001721
EZ
42962002-08-20 Elena Zannoni <ezannoni@redhat.com>
4297
4298 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4299
4300 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4301 vector type for ev registers.
4302 (e500_pseudo_register_read): New function.
4303 (e500_pseudo_register_write): New function.
4304 (e500_dwarf2_reg_to_regnum): New function.
4305 (PPC_UISA_NOFP_SPRS): New macro.
4306 (PPC_EV_REGS): New macro.
4307 (PPC_GPRS_PSEUDO_REGS): New macro.
4308 (registers_e500): New register set for e500.
4309 (variants): Add e500 variant.
4310 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4311 before setting architectural dependent variations. Initialize ev
4312 registers numbers. Add case for e500 architecture. Set the
4313 number of pseudo registers.
4314
64366f1c
EZ
43152002-08-20 Elena Zannoni <ezannoni@redhat.com>
4316
4317 * rs6000-tdep.c: Clean up comments.
4318
7e78f0ca
AC
43192002-08-20 Andrew Cagney <cagney@redhat.com>
4320
4321 * h8300-tdep.c: Re-indent file.
4322
697f7479
JB
43232002-08-20 Jim Blandy <jimb@redhat.com>
4324
4325 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4326 default for this.
697f7479 4327
e86ae29f
KS
43282002-08-20 Keith Seitz <keiths@redhat.com>
4329
4330 * breakpoints.c (watch_command_1): Use internal breakpoint
4331 when setting a watchpoint_scope breakpoint.
4332
216b504f
EZ
43332002-08-20 Elena Zannoni <ezannoni@redhat.com>
4334
4335 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4336 (build_builtin_type_vec64i): Ditto.
4337 (build_builtin_type_vec128): Ditto.
4338 (build_builtin_type_vec128i): Ditto.
4339
f7ab6ec6
MS
43402002-08-19 Michael Snyder <msnyder@redhat.com>
4341
4342 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4343 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4344 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4345 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4346 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4347 CALL_DUMMY_ADDRESS): Delete.
4348 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4349 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4350 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4351 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4352 push_return_address.
4353 (mips_register_raw_size, mips_eabi_use_struct_convention,
4354 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4355 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4356 mips_init_extra_frame_info, mips_eabi_push_arguments,
4357 mips_n32n64_push_arguments, mips_push_return_address,
4358 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4359 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4360
b5d1566e
MS
43612002-08-19 Michael Snyder <msnyder@redhat.com>
4362
4363 * mips-tdep.c (mips_frame_num_args): New function.
4364 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4365 frame_saved_pc, frame_args_address, frame_locals_address,
4366 frame_num_args, and frame_args_skip.
4367 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4368 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4369 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4370 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4371
2f1488ce
MS
43722002-08-20 Michael Snyder <msnyder@redhat.com>
4373
4374 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4375 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4376 * mips-tdep.c (mips_store_struct_return): New function.
4377 (mips_extract_struct_value_address): New function.
4378 (mips_gdbarch_init): Set store_struct_return and
4379 extract_struct_value_address.
4380
41ff2da1
DC
43812002-08-20 David Carlton <carlton@math.stanford.edu>
4382
4383 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4384 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4385 (read_file_scope): Check that line_header is nonzero before
4386 decoding macro information.
4387
e5451d58
MK
43882002-08-20 Mark Kettenis <kettenis@gnu.org>
4389
4390 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4391 flag the general-purpose registers as floating-point on targets
4392 that don't support the floating-point registers.
4393
4a6daafa
EZ
43942002-08-20 Elena Zannoni <ezannoni@redhat.com>
4395
4396 * rs6000-tdep.c (altivec_register_p): Delete.
4397 (rs6000_do_altivec_registers): Delete.
4398 (rs6000_altivec_registers_info): Delete.
4399 (rs6000_do_registers_info): Delete.
4400 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4401 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4402
ab4327e0
EZ
44032002-08-20 Elena Zannoni <ezannoni@redhat.com>
4404
4405 * infcmd.c (do_registers_info): Print vector registers in hex
4406 format only.
4407 (print_vector_info): Check that printing registers
4408 makes sense.
4409 (print_float_info): Ditto.
4410
cb1d2653
AC
44112002-08-20 Andrew Cagney <ac131313@redhat.com>
4412
4413 * mips-tdep.c (mips_gdbarch_init): Update.
4414 (mips_o32_extract_return_value): Rewrite.
4415 (mips_o32_store_return_value): Rewrite.
4416 (mips_o32_xfer_return_value): New function.
4417 (mips_xfer_register): Tweak debug print message. Allow for
4418 buf_offset when dumping the value transfered.
4419
dfc3d9b2
AC
44202002-08-20 Andrew Cagney <ac131313@redhat.com>
4421
4422 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4423 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4424 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4425 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4426 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4427
7807aa61
MS
44282002-08-14 Michael Snyder <msnyder@redhat.com>
4429
4430 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4431
489461e2
EZ
44322002-08-19 Elena Zannoni <ezannoni@redhat.com>
4433
4434 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4435 register.
4436 (P): New macro to define a register as a pseudo register.
4437 (R, R4, R8, R16, FR32, R64, R0): Updated.
4438 (struct variant): Add new fields for number of pseudo registers
4439 and number of total registers.
4440 (tot_num_registers): New macro replacing....
4441 (num_registers): ...deleted macro.
4442 (num_registers): New function.
4443 (num_pseudo_registers): New function.
4444 (variants): Update all variants to intialize new fields correctly.
4445 Postpone initialization of number of pseudo regs and real regs.
4446 (init_variants): New function.
4447 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4448 registers offsets.
4449
fcaffe4c
DC
44502002-08-19 David Carlton <carlton@math.stanford.edu>
4451
2c2738a0
DC
4452 * valops.c (search_struct_field): Change error message to treat
4453 return value of 0 from value_static_field as meaning that field is
4454 optimized out.
4455 (value_struct_elt_for_reference): Ditto.
4456 * values.c (value_static_field): Treat an unresolved location the
4457 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4458 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4459 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4460 * MAINTAINERS: Add self to Write After Approval list.
4461
88658117
AC
44622002-08-19 Andrew Cagney <ac131313@redhat.com>
4463
4464 * mips-tdep.c (mips_xfer_register): New function.
4465 (mips_n32n64_extract_return_value): Rewrite.
4466 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4467 instead of deprecated_extract_return_value.
4468
21283beb
EZ
44692002-08-19 Elena Zannoni <ezannoni@redhat.com>
4470
4471 * rs6000-tdep.c (TDEP): Delete macro.
4472 (branch_dest): Replace use of TDEP macro with its body.
4473 (rs6000_pop_frame): Ditto.
4474 (rs6000_push_arguments): Ditto.
4475 (rs6000_skip_trampoline_code): Ditto.
4476 (rs6000_frame_saved_pc): Ditto.
4477 (rs6000_frame_chain): Ditto.
4478 (rs6000_register_name): Ditto.
4479 (rs6000_register_byte): Ditto.
4480 (rs6000_register_raw_size): Ditto.
4481 (rs6000_register_virtual_type): Ditto.
4482 (rs6000_register_convertible): Ditto.
4483 (rs6000_convert_from_func_ptr_addr): Ditto.
4484
bf072999
DJ
44852002-08-19 Daniel Jacobowitz <drow@mvista.com>
4486
4487 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4488 conditionally.
4489 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4490 MIPS_LINUX_JB_ELEMENT_SIZE.
4491 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4492 for MAX_REGISTER_RAW_SIZE arrays.
4493 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4494 MIPS_LINUX_JB_ELEMENT_SIZE.
4495
9b949a49
PM
44962002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4497
4498 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4499
6d3e79c6
AS
45002002-08-19 Aidan Skinner <aidan@velvet.net>
4501
4502 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4503 ada-valprint.c ada-tasks.c.
4504 (YYFILES): Add ada-exp.y.
4505 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4506 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4507 (ada-exp.tab.o): New target.
4508
06c0b04e
AC
45092002-08-18 Andrew Cagney <ac131313@redhat.com>
4510
4511 * regcache.c (regcache_xfer_part): New function.
4512 (regcache_raw_read_part): New function.
4513 (regcache_raw_write_part): New function.
4514 (regcache_cooked_read_part): New function.
4515 (regcache_cooked_write_part): New function.
4516 * regcache.h (regcache_raw_read_part): Declare.
4517 (regcache_raw_write_part): Declare.
4518 (regcache_cooked_read_part): Declare.
4519 (regcache_cooked_write_part): Declare.
4520
92d1e331
DJ
45212002-08-18 Daniel Jacobowitz <drow@mvista.com>
4522
4523 * remote.c (remote_open_1): Add async_p.
4524 (remote_async_open_1): Delete.
4525 (open_remote_target): Delete.
4526 (remote_open, extended_remote_open): Update calls to remote_open_1.
4527 (remote_async_open, extended_remote_async_open): Call
4528 remote_open_1 instead of remote_async_open_1.
4529
247055de
MK
45302002-08-19 Mark Kettenis <kettenis@gnu.org>
4531
4532 * blockframe.c: Fix a few coding standard violations.
4533
641eda39
MK
45342002-08-19 Mark Kettenis <kettenis@gnu.org>
4535
0b717710
MK
4536 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4537 here from ...
4538 * config/i386/tm-i386sco5.h: ... here. File removed.
4539 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4540
26d28e12 4541 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4542 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4543 (TM_FILE): Set to tm-i386.h.
4544 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4545 * config/i386/tm-i386v.h: Remove file.
4546 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4547 instead of "i386/tm-i386v.h".
4548 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4549 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4550 "i386/tm-i386v.h".
4551 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4552 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4553 "i386/tm-i386.h".
4554
d4e0bab4
MK
45552002-08-18 Mark Kettenis <kettenis@gnu.org>
4556
4557 * config/i386/nm-i386v.h: Add protection against
4558 multiple-inclusion.
4559 (i386_register_u_addr): Remove prototype.
4560 (register_u_addr): New prototype.
4561 (REGISTER_U_ADDR): Redefine accordingly.
4562 * i386v-nat.c: Improve several comments.
4563 (i386_register_u_addr): Change signature and rename to
4564 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4565 ubase variable.
4566
46cac009
AC
45672002-08-18 Andrew Cagney <ac131313@redhat.com>
4568
4569 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4570 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4571 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4572 deprecated_extract_return_value.
4573 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4574 rename mips_o32o64_push_arguments.
4575 (mips_gdbarch_init): Update.
4576 (mips_extract_return_value): Delete.
4577 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4578 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4579 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4580 (mips_n32n64_extract_return_value): Clone
4581 mips_extract_return_value.
4582 (mips_store_return_value): Delete.
4583 (mips_o32_store_return_value): Clone mips_store_return_value.
4584 (mips_o64_store_return_value): Clone mips_store_return_value.
4585 (mips_eabi_store_return_value): Clone mips_store_return_value.
4586 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4587
d2e4a39e
AS
45882002-08-18 Aidan Skinner <aidan@velvet.net>
4589
0c30c098
AS
4590 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4591 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4592
45932002-08-18 Aidan Skinner <aidan@velvet.net>
4594
4595 * ada-lang.c: Run through gdb_indent.sh.
4596 * ada-lang.h: Run through gdb_indent.sh.
4597 * ada-tasks.c: Run through gdb_indent.sh.
4598 * ada-typeprint.c: Run through gdb_indent.sh.
4599 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4600
01fc4e33
AC
46012002-08-18 Andrew Cagney <ac131313@redhat.com>
4602
4603 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4604 ABI.
4605
d8ee244c
MK
46062002-08-18 Mark Kettenis <kettenis@gnu.org>
4607
c38d8261
MK
4608 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4609
222db64c
MK
4610 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4611 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4612
c2848c82
MK
4613 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4614 write_register_gen instead of write_register_bytes.
4615
d8ee244c
MK
4616 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4617 i[3456]-*-osf1mk* configurations have been made obsolete.
4618 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4619 i[3456]86-*-osf1mk* hosts obsolete.
4620 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4621 targets obsolete.
4622 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4623 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4624 config/i386/i386m3.mt, config/i386/nm-m3.h,
4625 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4626 config/i386/i386mk.mh, config/i386/i386mk.mt,
4627 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4628 obsolete.
4629 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4630 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4631 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4632
61d8d407
AC
46332002-08-18 Andrew Cagney <ac131313@redhat.com>
4634
4635 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4636 (hppa_value_returned_from_stack): Declare.
4637 (hppa_extract_return_value): Declare.
4638 * config/pa/hppa.mt: New file.
4639 * configure.tgt: Recognize hppa*-*-*.
4640 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4641
0c52bd59
MK
46422002-08-18 Mark Kettenis <kettenis@gnu.org>
4643
4644 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4645 comment.
4646
b5686e99
MK
46472002-08-17 Mark Kettenis <kettenis@gnu.org>
4648
4649 * top.c (gdb_rl_operate_and_get_next): Make sure
4650 operate-and-get-next functions correctly even when the history
4651 list is completely filled.
4652
c1bab85b
AC
46532002-08-18 Andrew Cagney <ac131313@redhat.com>
4654
4655 * MAINTAINERS (Target Instruction Set Architectures): Rename
4656 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4657 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4658 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4659 already listed under Host/Native.
4660
4661 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4662 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4663 mips*-*-*.
4664
32089c7c
AC
46652002-08-17 Andrew Cagney <ac131313@redhat.com>
4666
4667 * config/ia64/ia64.mt: New file.
4668 * config/alpha/alpha.mt: New file.
4669 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4670 ia64-linux-gnu. Mention that ia64-elf is broken.
4671 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4672
b4671f85
MK
46732002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4674
4675 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4676 generic_func_frame_valid instead of func_frame_valid.
4677
c8edd8b4
JB
46782002-08-16 Joel Brobecker <brobecker@gnat.com>
4679
4680 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4681 procfs appears to be broken when debugging on multi-processor
4682 machines. So enable software single stepping in order to avoid
4683 using the procfs interface to do next/step operations, using
4684 internal breakpoints instead.
4685
4686 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4687 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4688 make this pc address equal to the value it would have if the
4689 system stepping capability was used. Also set a new flag used
4690 to ensure that we don't readjust the PC one more time later.
4691
4692 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4693 address by DECR_PC_AFTER_BREAK when software single step is
4694 in use for this architecture, as this has already been taken
4695 care of in handle_inferior_event().
4696
238617f6
JB
46972002-08-16 Joel Brobecker <brobecker@gnat.com>
4698
4699 * infrun.c (handle_inferior_event): Minor reformatting, to make
4700 a rather long condition expression easier to read.
4701
541a7aac
AC
47022002-08-16 Andrew Cagney <ac131313@redhat.com>
4703
4704 * Makefile.in (gdbtk.o): Move to end of file.
4705 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4706 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4707 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4708 (gdbtk-wrapper.o, gdbres.o): Ditto.
4709
f92d4a7b
AC
47102002-08-16 Andrew Cagney <ac131313@redhat.com>
4711
4712 * Makefile.in (copying.o): Separate out compile rule.
4713 (hpux-thread.o, procfs.o, signals.o): Ditto.
4714 (v850ice.o, z8k-tdep.o): Ditto.
4715 (tui-file.o): Move to TUI section.
4716 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4717 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4718
1cce71eb
JB
47192002-08-16 Joel Brobecker <brobecker@gnat.com>
4720
4721 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4722 skip_trampoline_code, for better namespace-proofing.
4723
4724 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4725
0851f23d
JB
47262002-08-16 Joel Brobecker <brobecker@gnat.com>
4727
4728 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4729
f8d40ec8
JB
47302002-08-16 Joel Brobecker <brobecker@gnat.com>
4731
4732 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4733 signal, check whether we hit a breakpoint before checking for a
4734 single step breakpoint. Otherwise, GDB fails to notice that a
4735 breakpoint has been hit when stepping onto a breakpoint.
4736
63d022e0
KS
47372002-08-16 Keith Seitz <keiths@redhat.com>
4738
4739 * gdb-events.sh (clear_gdb_event_hooks): New function.
4740 * gdb-events.c: Regenerate.
4741 * gdb-events.h: Regenerate.
4742
6e31adb3
AC
47432002-08-16 Andrew Cagney <ac131313@redhat.com>
4744
4745 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4746 not_a_sw_breakpoint.
4747 * breakpoint.h (bpstat_stop_status): Add parameter names.
4748
c8189ed1
GS
47492002-08-16 Grace Sainsbury <graces@redhat.com>
4750
4751 * remote.c (remote_insert_hw_breakpoint)
4752 (remote_remove_hw_breakpoint): Fix calculation of length field
4753 for Z-packet.
4754
d05285fa
MS
47552002-08-15 Michael Snyder <msnyder@redhat.com>
4756
466d7106
MS
4757 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4758 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4759 (supply_fpregset): Ditto.
4760
d05285fa
MS
4761 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4762 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4763 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4764 (TARGET_READ_SP): Delete.
bf1f5b4c 4765 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4766 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4767 Delete.
4768 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4769 from macros to functions.
bf1f5b4c 4770
d05285fa
MS
4771 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4772 (mips_register_convertible, mips_register_convert_to_virtual,
4773 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4774 (mips_read_sp): New function.
4775 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4776 (mips_do_registers_info): Make static.
4777 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4778 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4779 (mips_register_convert_from_type, mips_register_convert_to_type):
4780 New functions.
4781 (mips_gdbarch_init): Set up function_start_offset,
4782 register_virtual_size, pc_in_sigtramp.
d05285fa 4783
e76f1f2e
AC
47842002-08-15 Andrew Cagney <ac131313@redhat.com>
4785
4786 * infcmd.c (vector_info): New function.
4787 (_initialize_infcmd): Add command "info vector".
4788 (print_vector_info): New function.
4789
4790 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4791 * gdbarch.h, gdbarch.c: Regenerate.
4792
4782dc19
AC
47932002-08-15 Andrew Cagney <ac131313@redhat.com>
4794
4795 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4796 ``print_all''. Only print vector registers when ``print_all''.
4797
23e3a7ac
AC
47982002-08-15 Andrew Cagney <ac131313@redhat.com>
4799
8e186fd6
AC
4800 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4801 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4802
23e3a7ac
AC
4803 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4804 Add `args' parameter.
4805 * gdbarch.h, gdbarch.c: Regenerate.
4806
4807 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4808
4809 * infcmd.c (float_info): Call print_float_info.
4810 (print_float_info): New function. By default, print the
4811 floating-point registers.
4812
4813 * arch-utils.h (default_print_float_info): Delete declaration.
4814 * arch-utils.c (default_print_float_info): Delete function.
4815
e0ca2bb9
MK
48162002-08-16 Mark Kettenis <kettenis@gnu.org>
4817
3f733acc
MK
4818 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4819 out define.
4820
7d8d2918
MK
4821 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4822 FRAME.
4823
1c7cc583
MK
4824 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4825 * configure.host: Make i[3456]86-*-aix host obsolete.
4826 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4827 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4828 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4829 config/i386/xm-i386aix.h: Make files obsolete.
4830 * i386aix-nat.c: Make file obsolete.
4831 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4832 (i386aix-nat.o): Make target obsolete.
4833
e0ca2bb9
MK
4834 * config/i386/nm-gnu.h: Removed.
4835 * config/i386/nm-i386gnu.h: New file.
4836 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4837 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4838 Moved here from ...
4839 * config/i386/tm-i386gnu.h: ... here. Removed.
4840 * config/i386/xm-i386gnu.h: Removed.
4841 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4842 (NAT_FILE): Set to nm-i386gnu.h.
4843 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4844 * i386-tdep.c: New file.
4845 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4846 (i386gnu-tdep.o): Specify dependencies.
4847
16057ec7 48482002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4849
6b99ee2e
MK
4850 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4851 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4852 Adjust a few comments to reflect reality a bit closer.
4853 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4854 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4855 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4856 target_insert_watchpoint, target_remove_watchpoint):
4857 Move defines to ...
4858 * config/i386/nm-i386sco5.h: ... here.
4859 (kernel_u_size): Add prototype. Improve a few comments and add
4860 protection against multiple inclusion.
4861
d9a6f65c
MK
4862 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4863 out define.
4864
047eff6a
MK
4865 * uw-thread.c (SP_ARG0): Define if not already defined.
4866 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4867
dcdb1290
MK
4868 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4869
5d2d0b2a
MK
4870 * config/i386/tm-i386.h: Don't include "regcache.h".
4871
61113f8b
MK
4872 * i387-tdep.h (i387_print_float_info): New prototype.
4873 * i387-tdep.c (print_i387_value, print_i387_ext,
4874 print_i387_status_word, print_i387_control_word): Add `struct
4875 ui_file *' argument and use it for output.
4876 (i387_print_float_info): Renamed from i387_float_info. Add
4877 `struct gdbarch *' and `struct ui_file *' arguments and use the
4878 latter for output.
4879 * i386-tdep.c: Include "i387-tdep.h".
4880 (i386_gdbarch_init): Set print_float_info.
4881 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4882 (FLOAT_INFO): Remove define.
4883
46e0f506
MS
48842002-08-13 Michael Snyder <msnyder@redhat.com>
4885
4886 * mips-tdep.c (mips_push_arguments): Rename to
4887 mips_eabi_push_arguments, and tune for EABI.
4888 (MIPS_REGS_HAVE_HOME_P): Delete.
4889 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4890 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4891 Delete references to mips_regs_have_home_p.
4892
409268de
KS
48932002-08-14 Keith Seitz <keiths@redhat.com>
4894
4895 * Makefile.in (install-gdbtk): Create insight plugin directory.
4896 Install plugins.tcl file.
4897
ffc6a242
KS
48982002-08-14 Keith Seitz <keiths@redhat.com>
4899
4900 * configure.in: Move SUBDIRS to near top of the file so that
4901 --enable options may add things to it.
4902 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4903 * configure: Regenerate.
4904
ebafbe83
MS
49052002-08-13 Michael Snyder <msnyder@redhat.com>
4906
4907 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4908 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4909 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4910
32f6f25d
AC
49112002-08-13 Andrew Cagney <ac131313@redhat.com>
4912
4913 * vax-tdep.c (vax_get_saved_register): Delete function.
4914 (vax_gdbarch_init): Update.
4915 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4916 (ns32k_gdbarch_init): Update.
4917 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4918 (alpha_gdbarch_init): Update.
4919
53826de9
AC
49202002-08-13 Andrew Cagney <cagney@redhat.com>
4921
4922 * regcache.c (init_regcache_descr): Overallocate the
4923 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4924 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4925 nr_raw_registers.
4926 (set_register_cached): Add range checking assertions. Use
4927 current_regcache.
4928
16057ec7 49292002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4930
4931 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4932 numbers for MMX registers.
4933
7b4c2dce
AC
49342002-08-13 Andrew Cagney <cagney@redhat.com>
4935
4936 * i386-tdep.c (i386_gdbarch_init): Use
4937 generic_unwind_get_saved_register.
4938
1e03ad20
KB
49392002-08-13 Kevin Buettner <kevinb@redhat.com>
4940
4941 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4942 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4943 target vector.
4944 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4945 Delete. Add comment regarding this now-deleted target method.
4946
548bcbec
SC
49472002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4948
4949 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4950 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4951 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4952 real PC and the page number (if it's within the memory bank window).
4953 (m68hc11_pseudo_register_write): Likewise when saving.
4954 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4955 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4956 (m68hc11_register_raw_size): And use 32-bit for it.
4957 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4958 16K memory bank is used by the prog; also use the virtual pc.
4959
7df11f59
SC
49602002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4961
4962 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4963 (m68hc11_gdbarch_init): Install it in gdbarch.
4964 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4965 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4966 (MSYMBOL_SIZE): New for documentation.
4967 (insn_return_kind): Enum to specify how a function returns.
4968 (frame_extra_info): Cleanup and record the return mode.
4969 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4970 register in address computation.
4971 (m68hc11_get_return_insn): New to obtain the return instruction used
4972 by the function.
4973 (m68hc11_frame_init_saved_regs): Take into account the return
4974 instruction used by the function for far and interrupt functions.
4975 (m68hc11_init_extra_frame_info): Take into account page register.
4976 (m68hc11_frame_args_address): Adjust according to the return mode.
4977 (show_regs): Print page register only when it's used.
4978
5706502a
SC
49792002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4980
4981 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4982 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4983 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4984 registers.
4985 (m68hc11_register_raw_size): Likewise.
4986
28fc6740
AC
49872002-08-13 Andrew Cagney <cagney@redhat.com>
4988
4989 * i386-tdep.c (i386_register_name): Handle mmx registers.
4990 (mmx_regnum_p): New function.
4991 (i386_mmx_names): New array.
4992 (mmx_num_regs): New variable.
4993 (i386_pseudo_register_read): New function.
4994 (i386_pseudo_register_write): New function.
4995 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4996
4997 * regcache.c (regcache_raw_read_unsigned): New function.
4998 (regcache_raw_read_signed): New function.
4999 * regcache.h (regcache_raw_read_unsigned): Declare.
5000 (regcache_raw_read_signed): Declare.
5001
a378f419
AC
50022002-08-13 Andrew Cagney <cagney@redhat.com>
5003
5004 * regcache.c (regcache_raw_read_as_address): Delete function.
5005 (regcache_cooked_read_signed): New function.
5006 (regcache_cooked_read_unsigned): New function.
5007 * regcache.h (regcache_cooked_read_signed): Declare.
5008 (regcache_cooked_read_unsigned): Declare.
5009 (regcache_raw_read_as_address): Delete declaration.
5010
5011 * blockframe.c (generic_read_register_dummy): Use
5012 regcache_cooked_read_unsigned.
5013 * i386-tdep.c (i386_extract_struct_value_address): Use
5014 regcache_cooked_read_unsigned.
5015
81967506
SC
50162002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5017
5018 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5019 double sizes according to ELF ABI flags.
5020 (gdbarch_tdep): Record elf_flags.
5021
ffe1f3ee
SC
50222002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5023
5024 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5025 (m6812_prolog): They can appear in 68HC12 function prologue.
5026 (m68hc11_frame_chain): Cleanup.
5027
98216c5d
AC
50282002-08-12 Andrew Cagney <cagney@redhat.com>
5029
5030 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5031 declarations.
5032 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5033 (i386_linux_register_raw_size): Delete function.
5034 (i386_linux_init_abi): Update.
5035 * i386-tdep.c (i386_register_raw_size): Delete function.
5036 (i386_register_byte): Delete function.
5037 (i386_gdbarch_init): Update.
5038 (i386_register_size): Delete array.
5039 (i386_register_offset): Delete array.
5040
5041 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5042 (REGISTER_RAW_SIZE): Delete macro.
5043 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5044 (REGISTER_BYTE): Delete macro.
5045
3b19021e
AS
50462002-08-11 Aidan Skinner <aidan@velvet.net>
5047
5048 * ada-lang.c (ada_lookup_partial_symbol)
5049 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5050 prototype names so that grep ^func works properly.
5051
5052 * ada-lang.c (ada_array_element_type)
5053 (ada_lookup_partial_symbol): Fix typos in parameter list.
5054
5055 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5056 Fix prototype names so that grep ^func works properly.
5057
b063e7a2
AC
50582002-08-10 Andrew Cagney <cagney@redhat.com>
5059 Elena Zannoni <ezannoni@redhat.com>
5060 Martin M. Hunt <hunt@redhat.com>
5061
5062 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5063 (build_builtin_type_vec128i): Set the vector bit.
5064 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5065 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5066 (build_builtin_type_vec64): New function.
5067 (build_builtin_type_vec64i): New function.
5068 (build_gdbtypes): Initialize builtin_type_vec64 and
5069 builtin_type_vec64i.
5070
a7e3c2ad
AC
50712002-08-09 Andrew Cagney <cagney@redhat.com>
5072
5073 * regcache.c (regcache_dump): Compare the register offset
5074 with REGISTER_BYTE.
5075 * arch-utils.c (generic_register_byte): New function.
5076 * arch-utils.h (generic_register_byte): Declare.
5077 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5078 * gdbarch.h, gdbarch.c: Regenerate.
5079
af030b9a
AC
50802002-08-09 Andrew Cagney <cagney@redhat.com>
5081
5082 * regcache.c: Include "gdbcmd.h"
5083 (_initialize_regcache): Add commands "maintenance print
5084 registers", "maintenance print raw-registers" and "maintenance
5085 print cooked-registers".
5086 (enum regcache_dump_what): Define.
5087 (dump_endian_bytes): New function.
5088 (regcache_dump): New function.
5089 (regcache_print): New function.
5090 (maintenance_print_registers): New function.
5091 (maintenance_print_raw_registers): New function.
5092 (maintenance_print_cooked_registers): New function.
5093 * Makefile.in (regcache.o): Update dependencies.
5094
cb3d25d1
MS
50952002-08-09 Michael Snyder <msnyder@redhat.com>
5096
5097 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5098 (mips_push_arguments): Correct some comments. Use paddr_nz
5099 for printing addresses in debug output. Replace static
5100 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5101 (mips_n32n64_push_arguments): New function, cloned from
5102 mips_push_arguments and tuned for the n32/n64 ABI.
5103 (mips_push_register): Buffer needs dynamic allocation.
5104 (mips_print_register): Ditto.
5105 (do_gp_register_row): Ditto.
5106 (mips_store_return_value): Ditto.
5107 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5108
2163ab9d
DH
51092002-08-09 Don Howard <dhoward@redhat.com>
5110
5111 * memattr.c (mem_info_command): Print special case of upper bound
5112 as max CORE_ADDR + 1.
5113
b78bcb18
MS
51142002-08-08 Michael Snyder <msnyder@redhat.com>
5115
5116 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5117 returns structs by ref if they're too big to fit in two registers.
5118
ffabd70d
KB
51192002-08-09 Kevin Buettner <kevinb@redhat.com>
5120
5121 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5122 saved regs value.
5123 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5124 mips_find_saved_regs().
5125 (mips_pop_frame): Likewise.
5126
fbcdb4a3
KB
51272002-08-09 Kevin Buettner <kevinb@redhat.com>
5128
5129 * blockframe.c (frame_saved_regs_register_unwind): Revise
5130 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5131 frames are in use.
5132
3c3bea1c
GS
51332002-08-09 Grace Sainsbury <graces@redhat.com>
5134
5135 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5136 T-packets; the 'a' is not taken as a register number.
5137 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5138 (remote_stopped_data_address): New functions; add to target
5139 vector.
5140 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5141 prototypes to match other implementations of this
5142 function. replace integer argument with pointer -- the length
5143 field in the Z-packet is the length of what is pointed to or 1 if
5144 pointer is null. Add to target vector.
5145 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5146 target vector.
5147
5148 From Mark Salter:
5149 * remote.c (remote_wait): Add support to extract optional
5150 watchpoint information from T-packet. Ignore unrecognized
5151 optional info in T-packet.
5152 (remote_async_wait): Ditto.
5153
5d1d95de
CV
51542002-08-09 Corinna Vinschen <vinschen@redhat.com>
5155
5156 * cli/cli-dump.c: Change fopen modes to use binary open modes
5157 as defined in include/fopen-bin.h throughout.
5158
c86b5b38
MS
51592002-08-08 Michael Snyder <msnyder@redhat.com>
5160
5161 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5162
b30590dc
KB
51632002-08-08 Kevin Buettner <kevinb@redhat.com>
5164
5165 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5166 assertion failure by returning early after a warning.
5167
498868ed
KB
51682002-08-08 Kevin Buettner <kevinb@redhat.com>
5169
5170 * mips-tdep.c (mips_find_saved_regs): Make static.
5171 (mips_frame_init_saved_regs): New function.
5172 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5173 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5174 (mips_find_saved_regs): Delete declaration.
5175
b2dd6311
GS
51762002-08-08 Grace Sainsbury <graces@redhat.com>
5177
3c3bea1c
GS
5178 * remote.c (remote_wait, remote_async_wait): Change
5179 thread_num from int to ULONGEST.
5180 (unpack_varlen_hex): Change result parameter from
5181 int * to ULONGEST *.
b2dd6311 5182
ea47855f
AC
51832002-08-08 Andrew Cagney <ac131313@redhat.com>
5184
5185 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5186 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5187 powerpc*-*-*.
5188 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5189
69db8bae
AC
51902002-08-08 Andrew Cagney <cagney@redhat.com>
5191
5192 * gcore.c (override_derive_stack_segment): Delete variable.
5193 (preempt_derive_stack_segment): Delete function.
5194 (derive_stack_segment): Delete function.
5195 (default_derive_stack_segment): Renamed to derive_stack_segment.
5196 (override_derive_heap_segment): Delete variable.
5197 (preempt_derive_heap_segment): Delete function.
5198 (derive_heap_segment): Delete function.
5199 (default_derive_heap_segment): Rename to derive_heap_segment.
5200
cb811fe7
MS
52012002-08-06 Michael Snyder <msnyder@redhat.com>
5202
5203 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5204 * mips-tdep.c (mips_EABI_use_struct_convention,
5205 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5206 New functions. (mips_use_struct_convention): Delete.
5207 (mips_gdbarch_init): set use_gdbarch_convention.
5208
8b389c40
MS
52092002-08-06 Michael Snyder <msnyder@redhat.com>
5210
5211 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5212 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5213 mips_o32_reg_struct_has_addr): New functions.
5214 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5215
5c27f28a
AC
52162002-08-07 Andrew Cagney <ac131313@redhat.com>
5217
5218 * regcache.c (pseudo_register): Delete function.
5219 (fetch_register): Delete function.
5220 (store_register): Delete function.
5221 (regcache_raw_read, legacy_read_register_gen): Use
5222 target_fetch_registers instead of fetch_register.
5223 (legacy_write_register_gen, regcache_raw_write): Use
5224 target_store_register instead of store_register.
5225 (write_register_bytes): Ditto.
5226
5227 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5228 (STORE_PSEUDO_REGISTER): Delete.
5229 * gdbarch.h, gdbarch.c: Regenerate.
5230
5b331675
CV
52312002-08-06 Corinna Vinschen <vinschen@redhat.com>
5232
5233 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5234 write dump file binary.
5235
6acdf5c7
MS
52362002-08-05 Michael Snyder <msnyder@redhat.com>
5237
5238 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5239 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5240 (mips_gdbarch_init): Set N32 target to be mips64.
5241
b2f01c35
KB
52422002-08-06 Kevin Buettner <kevinb@redhat.com>
5243
5244 * frame.c (find_saved_register): Break out of loop once saved
5245 register address is found. Don't mention sparc in loop comment
5246 anymore.
5247
63db5580
KB
52482002-08-06 Kevin Buettner <kevinb@redhat.com>
5249
5250 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5251 mips_default_saved_regsize to 8.
5252
5e34e75e
AC
52532002-08-06 Andrew Cagney <ac131313@redhat.com>
5254
5255 * gcore.c: Do not include <sys/procfs.h>.
5256 * Makefile.in (gcore.o): Update dependencies.
5257
eb4c54a2
AC
52582002-08-06 Andrew Cagney <cagney@redhat.com>
5259
5260 * configure.tgt: Make arc-*-* obsolete.
5261 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5262 * MAINTAINERS: Make arc-elf obsolete.
5263 * arc-tdep.c: Make file obsolete.
5264 * config/arc/arc.mt: Ditto.
5265 * config/arc/tm-arc.h: Ditto.
5266
ced15480
TR
52672002-08-05 Theodore A. Roth <troth@verinet.com>
5268
c1bab85b 5269 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 5270
b4743822
AC
52712002-08-05 Andrew Cagney <ac131313@redhat.com>
5272
5273 * mcore-tdep.c (mcore_gdbarch_init): Use
5274 generic_unwind_get_saved_register instead of
5275 generic_get_saved_register.
5276 * v850-tdep.c (v850_gdbarch_init): Ditto.
5277 * frv-tdep.c (frv_gdbarch_init): Ditto.
5278 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5279 * s390-tdep.c (s390_gdbarch_init): Ditto.
5280 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5281 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5282 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5283
3956d554
JB
52842002-08-05 Joel Brobecker <brobecker@gnat.com>
5285
5286 * objfiles.h: Add missing #include "symfile.h"
5287
5288 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5289
8249c0d6
AC
52902002-08-04 Andrew Cagney <ac131313@redhat.com>
5291
5292 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5293 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5294 of FIELD_BITSIZE.
5295
b9d14705
DJ
52962002-08-04 Daniel Jacobowitz <drow@mvista.com>
5297
5298 * NEWS: Cleanup and nitpick.
5299
dd73b9bb
AC
53002002-08-03 Andrew Cagney <ac131313@redhat.com>
5301
5302 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5303
043a27f8
AC
53042002-08-03 Andrew Cagney <ac131313@redhat.com>
5305
5306 * Makefile.in (gdbtk-bp.o): Update dependencies.
5307 (gdbtk-register.o): Ditto.
5308 (gdbtk-varobj.o): Ditto.
5309
46ce284d
AC
53102002-08-03 Andrew Cagney <cagney@redhat.com>
5311
5312 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5313 m68hc11_fetch_pseudo_register.
5314 (m68hc11_pseudo_register_write): Replace
5315 m68hc11_store_pseudo_register.
5316 (m68hc11_gdbarch_init): Update.
5317
b66d6d2e
AC
5318Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5319
5320 * gdbarch.sh: Include "gdb_string.h".
5321 * gdbarch.c: Regenerate.
5322
5323 * regcache.c: Include "gdb_string.h".
5324 * ax-general.c: Ditto.
5325 * varobj.c: Ditto.
5326 * std-regs.c: Ditto.
5327 * fbsd-proc.c: Ditto.
5328 * thread.c: Ditto.
5329
5330 * Makefile.in (regcache.o): Update dependencies.
5331 (thread.o, gdbarch.o): Ditto.
5332 (ax-general.o, gdbarch.o): Ditto.
5333 (varobj.o, std-regs.o): Ditto.
5334 (fbsd-proc.o): Specify dependencies.
5335
29e1842b
AC
53362002-08-02 Andrew Cagney <cagney@redhat.com>
5337
5338 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5339 regnum.
5340 (regcache_cooked_write): Ditto.
5341
68365089
AC
53422002-08-02 Andrew Cagney <ac131313@redhat.com>
5343
5344 * regcache.c (regcache_cooked_read): New function.
5345 (regcache_cooked_write): New function.
5346 (read_register_gen): Rewrite using regcache_cooked_read.
5347 (write_register_gen): Rewrite using regcache_cooked_write.
5348
5349 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5350 Declare.
5351
d8124050
AC
53522002-08-02 Andrew Cagney <cagney@redhat.com>
5353
5354 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5355 Replace the architecture methods register_read and register_write.
5356 * gdbarch.h, gdbarch.c: Regenerate.
5357 * regcache.c (init_regcache_descr): Update.
5358 (read_register_gen): Update.
5359 (write_register_gen): Update.
5360 (supply_register): Update comment.
5361
5362 * sh-tdep.c (sh_gdbarch_init): Update.
5363 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5364 `regcache' and `gdbarch' parameters. Make `buffer' a void
5365 pointer. Update code.
5366 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5367 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5368 void pointer. Update code.
5369 (sh64_register_write): Delete.
5370 (sh4_register_read): Delete.
5371 (sh64_register_read): Delete.
5372 (sh4_register_write): Delete.
5373 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5374 void pointer, `to' parameter a void pointer.
5375 (sh_sh64_register_convert_to_raw): Ditto.
5376
a6425924
KB
53772002-08-01 Kevin Buettner <kevinb@redhat.com>
5378
5379 * mips-tdep.c (mips_register_virtual_type): Use architecture
5380 invariant return values.
5381
ff5922b5
AC
53822002-08-01 Andrew Cagney <cagney@redhat.com>
5383
5384 * linux-proc.c: Include "gdb_string.h".
5385 * Makefile.in (linux-proc.o): Update dependency list.
5386
32a6503c
KB
53872002-08-01 Kevin Buettner <kevinb@redhat.com>
5388
5389 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5390 comment.
5391
ccaa32c7
GS
53922002-08-01 Grace Sainsbury <graces@redhat.com>
5393
5394 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5395 to_insert_watchpoint, to_remove_watchpoint,
5396 to_stopped_by_watchpoint, to_stopped_data_address,
5397 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5398 target vecctor. Define their corresponding macros so they call
5399 them.
5400
5401 * target.c: Add default and debug versions of for
5402 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5403 to_insert_watchpoint, to_remove_watchpoint,
5404 to_stopped_by_watchpoint, to_stopped_data_address,
5405 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5406
78fde5f8
KB
54072002-08-01 Kevin Buettner <kevinb@redhat.com>
5408
5409 * mips-tdep.c (mips_register_virtual_type): New function.
5410 (mips_gdbarch_init): Register mips_register_virtual_type()
5411 with gdbarch machinery.
5412 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5413 this file instead of tm-bigmips.h.
5414 (MIPS_REGSIZE): Delete this macro.
5415 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5416 multiarch version in mips-tdep.c will be found.
5417
db034ac5
AC
54182002-08-01 Andrew Cagney <cagney@redhat.com>
5419
5420 * NEWS: Menion that CHILL has been made obsolete.
5421
5422 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
5423 * stabsread.c (read_range_type): Ditto.
5424 * gdbtypes.h: Ditto.
5425 * language.c (binop_type_check): Ditto.
5426 (binop_result_type): Ditto.
5427 (integral_type): Ditto.
5428 (character_type): Ditto.
5429 (string_type): Ditto.
5430 (boolean_type): Ditto.
5431 (structured_type): Ditto.
5432 (lang_bool_type): Ditto.
5433 (binop_type_check): Ditto.
5434 * language.h (_LANG_chill): Ditto.
5435 * dwarfread.c (set_cu_language): Ditto.
5436 * dwarfread.c (CHILL_PRODUCER): Ditto.
5437 * dwarfread.c (handle_producer): Ditto.
5438 * expression.h (enum exp_opcode): Ditto.
5439 * eval.c: Ditto for comments.
5440 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5441 * expprint.c (print_subexp): Ditto.
5442 (print_subexp): Ditto.
5443 * valops.c (value_cast): Ditto.
5444 (search_struct_field): Ditto.
5445 * value.h (COERCE_VARYING_ARRAY): Ditto.
5446 * symfile.c (init_filename_language_table): Ditto.
5447 (add_psymbol_with_dem_name_to_list): Ditto.
5448 * valarith.c (value_binop): Ditto.
5449 (value_neg): Ditto.
5450 * valops.c (value_slice): Ditto.
5451 * symtab.h (union language_specific): Ditto.
5452 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5453 (SYMBOL_DEMANGLED_NAME): Ditto.
5454 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5455 * defs.h (enum language): Ditto.
5456 * symtab.c (got_symtab): Ditto.
5457 * utils.c (fprintf_symbol_filtered): Ditto.
5458
5459 * ch-typeprint.c: Make file obsolete.
5460 * ch-valprint.c: Make file obsolete.
5461 * ch-lang.h: Make file obsolete.
5462 * ch-exp.c: Make file obsolete.
5463 * ch-lang.c: Make file obsolete.
5464
5465 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5466 CHILL_LIB.
5467 (TARGET_FLAGS_TO_PASS): Ditto.
5468 (CHILLFLAGS): Obsolete.
5469 (CHILL): Obsolete.
5470 (CHILL_FOR_TARGET): Obsolete.
5471 (CHILL_LIB): Obsolete.
5472 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5473 ch-valprint.c.
5474 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5475 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5476 ch-lang.o.
5477 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5478 targets.
5479
8aaf0b47
JB
54802002-07-31 Joel Brobecker <brobecker@gnat.com>
5481
5482 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5483 This does not change anything at the moment, but will be helpful
5484 later when full Ada support is integrated.
5485
f3a7b3a5
KB
54862002-07-31 Kevin Buettner <kevinb@redhat.com>
5487
5488 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5489 help message.
5490
fb850278
KB
54912002-07-31 Kevin Buettner <kevinb@redhat.com>
5492
5493 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5494 and save it in a local variable. Use variable in later test.
5495
e3bddbfa
KB
54962002-07-31 Kevin Buettner <kevinb@redhat.com>
5497
5498 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5499 test. (Thanks to Daniel Jacobowitz.)
5500
28d169de
KB
55012002-07-31 Kevin Buettner <kevinb@redhat.com>
5502
5503 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5504 (mips_abi_strings): Add "n64".
5505 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5506
7fe7e44e
KB
55072002-07-31 Kevin Buettner <kevinb@redhat.com>
5508
5509 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5510 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5511
c6caf090
KB
55122002-07-31 Kevin Buettner <kevinb@redhat.com>
5513
5514 * utils.c (host_pointer_to_address, address_to_host_pointer):
5515 Use gdb_assert() instead of explicit call to internal_error().
5516
c41669e0
KB
55172002-07-30 Kevin Buettner <kevinb@redhat.com>
5518
5519 * Makefile.in (rs6000-nat.o): Update dependencies.
5520
5521 From Nicholas Duffek:
5522 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5523 (aix-thread.o): New rule.
5524 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5525 * config/powerpc/aix432.mh: New file.
5526
2fda4977
DJ
55272002-07-30 Daniel Jacobowitz <drow@mvista.com>
5528
5529 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5530 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5531 (fetch_core_registers, ppc_linux_supply_gregset)
5532 (ppc_linux_supply_fpregset): New functions.
5533 (ppc_linux_regset_core_fns): New.
5534 (_initialize_ppc_linux_tdep): Call add_core_fns.
5535 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5536 and ppc_linux_supply_gregset.
5537 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5538 (supply_fpregset): Call ppc_linux_supply_fpregset.
5539 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5540 corelow.o.
5541 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5542
729051e6
DJ
55432002-07-30 Daniel Jacobowitz <drow@mvista.com>
5544
5545 * symtab.c (lookup_symbol): Demangle before lowercasing.
5546
5f8a3188
AC
55472002-07-30 Andrew Cagney <ac131313@redhat.com>
5548
5549 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5550 declaration.
5551 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5552 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5553 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5554 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5555 "gdb_string.h".
5556 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5557 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5558 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5559 (avr-tdep.o, mon960-rom.o): Ditto.
5560 (aout_stabs_gnu_h): Define.
5561 (symtab_h): Remove $(gdb_obstack_h).
5562
67f07146
JB
55632002-07-30 Jim Blandy <jimb@redhat.com>
5564
5565 Patch from David Carlton <carlton@math.stanford.edu>:
5566 * gdbinit.in: Move the `dir' commands that add GDB's own source
5567 directory to the search path to the end, so that the `gdb' source
5568 directory will be searched first.
5569
04ea0df1
AC
55702002-07-29 Andrew Cagney <ac131313@redhat.com>
5571
5572 * gdb_obstack.h: New file.
5573 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5574 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5575 * objfiles.h: Include "gdb_obstack.h".
5576 * Makefile.in (gdb_obstack_h): Define.
5577 (symtab_h): Add $(gdb_obstack_h).
5578 (objfiles_h): Add $(gdb_obstack_h).
5579
5580 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5581 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5582 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5583 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5584 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5585 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5586 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5587 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5588
5589 * Makefile.in (bcache.o): Update dependencies.
5590 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5591 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5592 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5593 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5594 (stabsread.o, symfile.o, symmisc.o): Ditto.
5595 (symtab.o, typeprint.o, macroexp.o): Ditto.
5596 (macrotab.o, mdebugread.o): Ditto.
5597 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5598 (coff_ecoff_h, aout_aout64_h): Define.
5599 (aout_stabs_gnu_h, libaout_h): Define.
5600
d138e37a
AC
56012002-07-29 Andrew Cagney <cagney@redhat.com>
5602
5603 * regcache.c (struct regcache_descr): Rename nr_registers to
5604 nr_cooked_registers. Revise comments describing the structure
5605 member fields.
5606 (init_regcache_descr): Update.
5607 (init_legacy_regcache_descr): Update.
5608 (read_register_gen, write_register_gen): When a cooked register in
5609 the raw register range, directly access the value from the raw
5610 register cache.
5611
460e6ec3
AC
56122002-07-29 Andrew Cagney <ac131313@redhat.com>
5613
5614 * z8k-tdep.c: Do not include "obstack.h".
5615 * h8300-tdep.c, h8500-tdep.c: Ditto.
5616 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5617 * valprint.c, v850-tdep.c: Ditto.
5618 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5619 * mn10200-tdep.c: Ditto.
5620
5621 * Makefile.in (z8k-tdep.o): Update dependencies.
5622 (m68hc11-tdep.o, valprint.o): Ditto.
5623 (v850-tdep.o, d10v-tdep.o): Ditto.
5624 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5625 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5626 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5627 (sh_opc_h, gdb_sim_sh_h): Define.
5628 (elf_sh_h, elf_bfd_h): Define.
5629 (opcode_m68hc11_h): Define.
5630 (OPCODES_SRC, OPCODES_DIR): define.
5631 (OPCODES): Use $(OPCODES_DIR).
5632 (gdb_sim_d10v_h): Rename sim_d10v_h.
5633 (gdb_sim_arm_h): Rename sim_arm_h.
5634
790c9cf0
KB
56352002-07-26 Kevin Buettner <kevinb@redhat.com>
5636
5637 * utils.c (host_pointer_to_address, address_to_host_pointer):
5638 Change internal_error() message to indicate function responsible
5639 for the error.
5640
9647fa49
KB
56412002-07-26 Kevin Buettner <kevinb@redhat.com>
5642
5643 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5644 calls to local_hex_string_custom().
5645
dabbe2c0
KB
56462002-07-26 Kevin Buettner <kevinb@redhat.com>
5647
5648 * irix5-nat.c: Move IRIX shared library support from here...
5649 * solib-irix.c: ...to here. Revised substantially to work with
5650 generic solib framework.
5651
b96d0a4e
KB
5652 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5653 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5654 * mips-irix-tdep.c: New file.
5655
313fb2f6
KB
5656 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5657 (mips-irix-tdep.o, solib-irix.o): New rules.
5658 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5659 solib-irix.o.
5660 * config/mips/irix6.mt (TDEPFILES): Likewise.
5661 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5662
ab2eaf26
KB
56632002-07-26 Kevin Buettner <kevinb@redhat.com>
5664
177e4768 5665 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5666 disabled (via ``#if 0'') includes.
5667
7244546a
KB
56682002-07-26 Kevin Buettner <kevinb@redhat.com>
5669
5670 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5671 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5672 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5673 Add support for the fpscr register.
5674 * rs6000-nat.c (regmap, fetch_inferior_registers)
5675 (store_inferior_registers, fetch_core_registers): Likewise.
5676
dd7be90a
KB
56772002-07-26 Kevin Buettner <kevinb@redhat.com>
5678
5679 * rs6000-nat.c (language.h): Include.
5680 (special_regs): Delete this array.
5681 (regmap): New function.
5682 (fetch_register, store_register): Use regmap() to map gdb
5683 register numbers to ptrace register numbers. Also, use
5684 outputs from regmap() to make decisions regarding type of
5685 ptrace() call to make. In particular, don't compare against
5686 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5687 (fetch_inferior_registers, store_inferior_registers): Where
5688 possible, obtain register numbers from tdep struct. Don't
5689 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5690 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5691 (LAST_UISA_SP_REGNUM): Delete.
5692
11bf77db
KB
56932002-07-25 Kevin Buettner <kevinb@redhat.com>
5694
5695 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5696 (fetch_registers, store_register, fetch_core_registers): Don't
5697 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5698 regcache_collect() as appropriate.
5699 (find_toc_address): Format hex address with local_hex_string().
5700
06afebeb
AC
57012002-07-25 Andrew Cagney <ac131313@redhat.com>
5702
5703 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5704 bfd/elf32-frv.c.
5705
8c554d79
TT
57062002-07-24 Tom Tromey <tromey@redhat.com>
5707
5708 * jv-exp.y: Marked all strings with _().
5709 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5710 internal_error.
5711 (MethodInvocation, CastExpression, parse_number, yyerror,
5712 java_type_from_name, push_expression_name, yylex): Typo fixes.
5713
e4c242d9
DJ
57142002-07-24 Daniel Jacobowitz <drow@mvista.com>
5715
5716 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5717 (tee_file_flush, tee_file_write, tee_file_fputs)
5718 (tee_file_isatty): New.
5719 * ui-file.h (tee_file_new): Add prototype.
5720
ebf56fd3
AS
57212002-07-24 Aidan Skinner <aidan@velvet.net>
5722
5723 * ada-lang.c: Change k&r style function definitions to prototyped
5724 form.
5725 * ada-typeprint.c: Change k&r style function definitions to prototyped
5726 form.
5727 * ada-valprint.c: Change k&r style function definitions to prototyped
5728 form.
5729
7fb623f7
AC
57302002-07-24 Andrew Cagney <cagney@redhat.com>
5731
5732 * README: Remove reference to remote-bug.
5733 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5734 remote-bug.c.
5735 (m88k-nat.o): Delete rule.
5736 (m88k-tdep.o): Delete rule.
5737 (remote-bug.o): Delete rule.
5738 * MAINTAINERS: Mark as obsolete.
5739 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5740 * m88k-tdep.c: Make file obsolete.
5741 * config/m88k/m88k.mh: Ditto.
5742 * config/m88k/delta88v4.mh: Ditto.
5743 * config/m88k/delta88v4.mt: Ditto.
5744 * config/m88k/delta88.mt: Ditto.
5745 * config/m88k/delta88.mh: Ditto.
5746 * remote-bug.c: Ditto.
5747 * config/m88k/tm-delta88.h: Ditto.
5748 * config/m88k/nm-delta88v4.h: Ditto.
5749 * config/m88k/xm-delta88.h: Ditto.
5750 * config/m88k/xm-dgux.h: Ditto.
5751 * config/m88k/tm-m88k.h: Ditto.
5752 * config/m88k/nm-m88k.h: Ditto.
5753 * config/m88k/tm-delta88v4.h: Ditto.
5754 * m88k-nat.c: Ditto.
5755 * cxux-nat.c: Ditto.
5756 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5757 and m88*-*-* obsolete.
5758 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5759 m88*-*-* obsolete.
5760
37611a2b
AC
57612002-07-24 Andrew Cagney <cagney@redhat.com>
5762
5763 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5764 constant. Same for local pointer variables.
5765 (extract_signed_integer): Ditto.
5766 * defs.h (extract_unsigned_integer): Update.
5767 (extract_signed_integer): Update.
5768
1aaa5f99
AC
57692002-07-24 Andrew Cagney <cagney@redhat.com>
5770
5771 * regcache.c (regcache_raw_write): Change buf parameter to a
5772 constant void pointer.
5773 (regcache_raw_read): Change buf parameter to a void pointer.
5774 (legacy_write_register_gen): Change myaddr parameter a constant
5775 void pointer.
5776 (supply_register): Change val parameter to a const void pointer.
5777 * regcache.h (regcache_raw_write): Update declaration.
5778 (regcache_raw_read): Update declaration.
5779 (supply_register): Update declaration.
5780
b4f5539f
TT
57812002-07-24 Tom Tromey <tromey@redhat.com>
5782
5783 * defs.h (gdb_readline_wrapper): Declare.
5784 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5785 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5786 * top.c (gdb_readline_wrapper): New function.
5787 (command_line_input): Use it.
5788
0818c12a
AC
57892002-07-24 Andrew Cagney <cagney@redhat.com>
5790
5791 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5792 regcache_read and regcache_write.
5793 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5794 * regcache.c: Update.
5795 * sh-tdep.c (sh64_push_arguments): Update comment.
5796 (sh_pseudo_register_read): Update.
5797 (sh_pseudo_register_write): Update.
5798 (sh4_register_read): Update.
5799 (sh4_register_write): Update.
5800 (sh64_pseudo_register_read): Update.
5801 (sh64_pseudo_register_write): Update.
5802 (sh64_register_read): Update.
5803 (sh64_register_write): Update.
5804 * i386-tdep.c (i386_extract_return_value): Update.
5805 (i386_extract_struct_value_address): Update.
5806 (i386_extract_return_value): Update.
5807 * blockframe.c (generic_read_register_dummy): Update.
5808 (generic_call_dummy_register_unwind): Update
5809 * infrun.c (write_inferior_status_register): Update.
5810
f7321c06
JB
58112002-07-23 Jim Blandy <jimb@redhat.com>
5812
5813 * parser-defs.h (expression_context_pc): Make this extern.
5814 (Thanks to Michael Snyder.)
5815
2037aebb
AC
58162002-07-23 Andrew Cagney <ac131313@redhat.com>
5817
5818 GDB 5.2.1 released from 5.2 branch.
5819 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5820 * README: Update to mention 5.2.1.
5821
66504d44
MS
58222002-07-23 Mark Salter <msalter@redhat.com>
5823
5824 * remote.c (remote_read_bytes): Fix check for error.
5825
27bae383
KB
58262002-07-22 Kevin Buettner <kevinb@redhat.com>
5827
5828 * aix-thread.c (language.h): Include.
5829 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5830 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5831 Print newlines at end of debug messages.
5832 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5833 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5834
58352002-07-22 Kevin Buettner <kevinb@redhat.com>
5836
5837 * aix-thread.c (ppc-tdep.h): Include.
5838 (special_register_p): New function.
5839 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5840 (store_regs_user_thread): Use register number information from
5841 gdbarch_tdep struct instead of hardcoded offsets relative to
5842 FIRST_UISA_SP_REGNUM.
5843 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5844 special_register_p() instead of using FPLAST_REGNUM and
5845 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5846 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5847 will be MQ's register number.
5848
58492002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5850
5851 * aix-thread.c (ops): Rename to aix_thread_ops.
5852 (base_ops): Rename to base_target.
5853 (ops_attach): Rename to aix_thread_attach.
5854 (ops_detach): Rename to aix_thread_detach.
5855 (ops_resume): Rename to aix_thread_detach.
5856 (ops_wait): Rename to aix_thread_wait.
5857 (ops_kill): Rename to aix_thread_kill.
5858 (init_ops): Rename to init_aix_thread_ops.
5859 (ops_fetch_register): Rename to aix_thread_fetch_register.
5860 (ops_store_register): Rename to aix_thread_store_register.
5861 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5862 (ops_thread_alive): Rename to aix_thread_thread_alive.
5863 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5864 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5865 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5866 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5867 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5868 (store_regs_lib): Rename to store_regs_user_thread.
5869 (store_regs_kern): Rename to store_regs_kernel_thread.
5870
27bae383 58712002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5872
5873 * aix-thread.c (ops_prepare_to_store): Eliminate.
5874 (init_ops): Don't initialize ops.prepare_to_store.
5875 (store_regs_kern): Pre-fetch register buffers from child,
5876 because some registers may not be in the cache. Copy
5877 regs from register cache only if they are cached.
5878 (store_regs_lib): Copy regs from register cache only
5879 if they are cached.
5880 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5881 fill_gprs64): Ditto.
5882
61c5da0b
KB
58832002-07-22 Kevin Buettner <kevinb@redhat.com>
5884
5885 * aix-thread.c (gdb_assert.h): Include.
5886 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5887 register sizes (from register cache) match size of buffer holding
5888 register data.
5889 (fill_sprs32): Change parameter types to match those in the ptrace()
5890 buffer.
5891 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5892 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5893
58942002-07-22 Michael Snyder <msnyder@redhat.com>
5895
5896 * aix-thread.c (supply_sprs64): Cosmetic change.
5897 (supply_sprs32): Cosmetic change.
5898 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5899 (fill_sprs64): Use regcache_collect instead of read_register.
5900 (store_regs_lib): Use regcache_collect instead of
5901 read_register. Use fill_sprs32 instead of fill_sprs64,
5902 if debugging a 32-bit architecture.
5903 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5904 out of the register cache, instead of passing a pointer into
5905 the register cache directly to ptrace. Use regcache_collect
5906 insteaad of read_register.
5907 (ops_prepare_to_store): Use target_read_registers instead
5908 of read_register_bytes.
5909
36479eb1
AS
59102002-07-20 Aidan Skinner <aidan@velvet.net>
5911
5912 * MAINTAINERS: Add self under write after approval.
5913
80ae6ee2
AS
59142002-07-20 Aidan Skinner <aidan@velvet.net>
5915
5916 * ada-tasks.c: Change k&r style function definitions to prototyped
5917 form.
5918
8a8ab2b9
AC
59192002-07-19 Andrew Cagney <ac131313@redhat.com>
5920
5921 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5922 * x86-64-tdep.c: Include "objfiles.h".
5923 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5924 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5925
fb16b900
ML
59262002-07-17 Michal Ludvig <michal@suse.cz>
5927
5928 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5929 (update_context): Initialise cfa variable.
5930
0fe7bf7b
MS
59312002-07-17 Michael Snyder <msnyder@redhat.com>
5932
5933 * aix-thread.c: Shorten some long lines.
5934 Bring comments into line with code spec.
5935
488f131b
JB
59362002-07-18 Joel Brobecker <brobecker@gnat.com>
5937
5938 * infrun.c: Re-indent using gdb_indent.sh.
5939
46c415d2
JB
59402002-07-18 Joel Brobecker <brobecker@gnat.com>
5941
5942 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5943 Leave the indentation temporarily untouched, to minimize the diffs.
5944
cdecafbe
EZ
59452002-07-18 Elena Zannoni <ezannoni@redhat.com>
5946
5947 * stabsread.c: Make os9k sections of the code obsolete,
5948 for real this time.
5949 * stabsread.h: Make os9k sections of the code obsolete.
5950
7b6aa020
ML
59512002-07-18 Michal Ludvig <mludvig@suse.cz>
5952
09ec9b38
ML
5953 * linux-low.c (regsets_store_inferior_registers): Add free()
5954 at the end of a loop to prevent memory leak.
5955 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5956 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5957 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5958 line a comment.
4894ac5d 5959 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5960
233282cd
JB
59612002-07-17 Jim Blandy <jimb@redhat.com>
5962
5963 * macrocmd.c (info_macro_command): Remove newline from error
5964 message.
5965
7b6aa020 59662002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5967
5968 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5969 (sh_gdbarch_init): Use it for sh-dsp.
5970
f7ef9339
KB
59712002-07-16 Kevin Buettner <kevinb@redhat.com>
5972
5973 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5974 64-bit DWARF2 format.
5975
8dd72958
JB
59762002-07-16 Joel Brobecker <brobecker@gnat.com>
5977
5978 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5979 <sys/proc.h> when not available.
5980
a99a9e1b
AC
59812002-07-16 Andrew Cagney <ac131313@redhat.com>
5982
5983 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5984 * stabsread.c: Make os9k sections of the code obsolete.
5985 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5986 * config/i386/i386os9k.mt: Make file obsolete.
5987 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5988 (COMMON_OBS): Remove os9kread.o
5989 (SFILES): Remove os9kread.c.
5990 (os9kread.o, remote-os9k.o): Make target obsolete.
5991 * remote-os9k.c: Make file obsolete.
5992 * os9kread.c: Make file obsolete.
5993 * Makefile.in
5994
7a3085c1
AC
59952002-07-16 Andrew Cagney <ac131313@redhat.com>
5996
5997 * NEWS: Mention that the FR30 has been made obsolete.
5998 * fr30-tdep.c: Make file obsolete.
5999 * config/fr30/tm-fr30.h: Ditto.
6000 * config/fr30/fr30.mt: Ditto.
6001 * configure.tgt: Make fr30-*-elf obsolete.
6002 * MAINTAINERS: Make fr30-elf obsolete.
6003
28a93f5a
PM
60042002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6005
6006 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6007 found is not inside a section.
6008
be006b8b
KB
60092002-07-15 Kevin Buettner <kevinb@redhat.com>
6010
6011 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6012 strerror().
6013 (pdc_realloc): Use xrealloc() instead of realloc().
6014
14fa3751
KB
60152002-07-15 Kevin Buettner <kevinb@redhat.com>
6016
6017 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6018 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6019 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6020 macros.
6021
42cc437f
KB
60222002-07-15 Kevin Buettner <kevinb@redhat.com>
6023
6024 * aix-thread.c (ptrace_check): Eliminate goto.
6025 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6026 problem.
6027
8e2c28d4
KB
60282002-07-15 Kevin Buettner <kevinb@redhat.com>
6029
6030 * aix-thread.c (gdbcmd.h): Include.
6031 (DEBUG, DBG, DBG2, dbg): Eliminate.
6032 (debug_aix_thread): New static global.
6033 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6034 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6035 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6036 invocations to DBG and DBG2 macros to test against
6037 ``debug_aix_thread'' and call fprintf_unfiltered().
6038 (_initialize_aix_thread): Add new command "set debug aix-thread".
6039
30413464
AC
60402002-07-15 Andrew Cagney <ac131313@redhat.com>
6041
6042 From Gerhard Tonn <TON@de.ibm.com>:
6043 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6044 instead of supply_register.
6045
7c43edc1
AC
60462002-07-15 Andrew Cagney <ac131313@redhat.com>
6047
6048 * dwarf2cfi.c: Include "gdb_assert.h".
6049 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6050 non-NULL.
6051 (update_context): Do not use __func__. Add missing ``break''.
6052 (update_context): Do not use __func__.
6053
9364a0ef
EZ
60542002-07-15 Elena Zannoni <ezannoni@redhat.com>
6055
6056 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6057 and its setting. Set gdbarch instruction printing functions
6058 directly. For non-rs6000 case use new function
6059 gdb_print_insn_powerpc.
6060 (gdb_print_insn_powerpc): New function.
6061
3fbeef0b
AC
60622002-07-13 Andrew Cagney <ac131313@redhat.com>
6063
92eb23c5 6064 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
6065 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6066 * configure.tgt: Mark d30v-*-* as obsolete.
6067 * d30v-tdep.c: Mark file as obsolete.
6068 * config/d30v/d30v.mt: Ditto.
6069 * config/d30v/tm-d30v.h: Ditto.
6070
aacb1f0a
AS
60712002-07-13 Aidan Skinner <aidan@velvet.net>
6072
6073 * ada-tasks.c (add_task_entry): replace calls to
6074 malloc() with xmalloc
6075 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6076
6077 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6078 ada_finish_decode_line_1, all_sals_for_line
6079 ada_breakpoint_rewrite): replace calls to free() with xfree()
6080
c11d79f2
KB
60812002-07-12 Kevin Buettner <kevinb@redhat.com>
6082
6083 From Nicholas Duffek (with minor changes by Martin Hunt,
6084 Louis Hamilton, and Kevin Buettner):
6085 * aix-thread.c: New file.
6086
8e19ed76
PS
60872002-07-12 Petr Sorfa <petrs@caldera.com>
6088
6089 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6090 complaint for invalid attribute class or form.
6091 (read_func_scope): DW_AT_frame_base
6092 better handling of DW_AT_block*.
6093 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6094 better handling of DW_AT_block*.
6095 (read_common_block): DW_AT_location
6096 better handling of DW_AT_block*.
6097 (read_partial_die): DW_AT_location better handling
6098 of DW_AT_block*.
6099 (new_symbol): DW_AT_external better handling of
6100 DW_AT_block*. Proper initialization of variable
6101 "addr".
6102 (attr_form_is_block): New function that returns true
6103 if the attribute's form is of DW_FORM_block*.
6104
295401f7
DJ
61052002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6106
6107 * valops.c (find_method_list): Remove comment about
6108 removed STATIC_MEMFUNCP argument.
6109 (value_find_oload_method_list): Likewise.
6110
e42dc924
KB
61112002-07-12 Kevin Buettner <kevinb@redhat.com>
6112
6113 From Nicholas Duffek:
6114 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6115 target_new_objfile_hook.
6116
6904b546
KB
61172002-07-12 Kevin Buettner <kevinb@redhat.com>
6118
6119 From Nicholas Duffek:
6120 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6121 csect.
6122
53fe9346
AC
61232002-07-12 Andrew Cagney <cagney@redhat.com>
6124
6125 * MAINTAINERS: Mention --enable-sim-build-warnings.
6126 (m68hc11-elf): Disable sim build warnings.
6127 (m32r-elf): Mark as broken obsolete candidate.
6128 (x86_64-linux-gnu): Mark as buildable with -Werror.
6129 (arm-elf): Change -w to ``,'' which enables warnings but not
6130 -Werror.
6131
af5f3db6
AC
61322002-07-12 Andrew Cagney <ac131313@redhat.com>
6133
6134 * bcache.h: Update copyright.
6135 (struct bstring, struct bcache): Move definition to "bcache.c".
6136 Replaced by opaque declaration.
6137 (bcache_xfree): Replace free_bcache.
6138 (bcache_xmalloc, bcache_memory_used): Declare.
6139
6140 * bcache.c: Update copyright.
6141 (struct bstring, struct bcache): Moved to here from "bcache.h".
6142 Update comments.
6143 (bcache_xmalloc, bcache_memory_used): New functions.
6144 (bcache_xfree): Replace function free_bcache.
6145
6146 * Makefile.in (objfiles.o): Add $(bcache_h).
6147 (objfiles_h): Remove $(bcache_h).
6148 (symfile.o): Add $(bcache_h).
6149
6150 * symmisc.c: Update copyright.
6151 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6152 (print_objfile_statistics): Use bcache_memory_used.
6153
6154 * symfile.c: Include "bcache.h".
6155 (reread_symbols): Use bcache_xfree.
6156 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6157 (add_psymbol_to_list): Pass psymbol_cache by value.
6158 (add_psymbol_with_dem_name_to_list): Ditto.
6159
6160 * objfiles.h: Update copyright.
6161 (struct bcache): Declare opaque. Do not include "bcache.h".
6162 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6163 bcache'' pointers.
6164 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6165
6166 * objfiles.c: Include "bcache.h". Update copyright.
6167 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6168 macro_cache.
6169 (free_objfile): Use bcache_xfree.
6170
444199e7
GS
61712002-07-11 Grace Sainsbury <graces@redhat.com>
6172
6173 * monitor.c (monitor_fetch_register): Make name a constant.
6174 (monitor_store_register): Same.
6175
261397f8
DJ
61762002-07-11 Daniel Jacobowitz <drow@mvista.com>
6177
6178 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6179 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6180 (finish_block) For non-function blocks, hash the symbol table. For
6181 function blocks, mark the symbol table as unhashed.
6182 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6183 (msymbol_hash_iw): Likewise.
6184 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6185 value.
6186 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6187 (lookup_minimal_symbol): Likewise for both.
6188 * symtab.h (struct block): Add `hashtable' flag. Comment the
6189 hashtable.
6190 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6191 (ALL_BLOCK_SYMBOLS): Update.
6192 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6193 (struct symbol): Add `hash_next' pointer.
6194 * symtab.c (lookup_block_symbol): Search using the hash table when
6195 possible.
6196 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6197 (search_symbols, find_addr_symbol): Likewise.
6198
6199 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6200 (read_dst_symtab): Likewise.
6201 * jv-lang.c (get_java_class_symtab): Likewise.
6202 * mdebugread.c: Include "gdb_assert.h".
6203 (shrink_block): Assert that the block being modified is not hashed.
6204 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6205 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6206 symbols.
6207 (dump_symtab): Recognize hashed blocks.
6208 * printcmd.c (print_frame_args): Assert that function blocks do not
6209 have hashed symbol tables.
6210 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6211 (fill_in_ada_prototype, debug_print_block): Likewise.
6212 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6213
6f0eaa01
CV
62142002-07-11 Corinna Vinschen <vinschen@redhat.com>
6215
6216 * stack.c (print_frame): Use result of frame_address_in_block()
6217 instead of fi->pc when evaluating symbols.
6218 (backtrace_command_1): Ditto.
6219
a208b0cb
AC
62202002-07-11 Andrew Cagney <cagney@redhat.com>
6221
6222 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6223 Make static.
6224
6225 * arm-tdep.c (arm_register_name): Make return type constant.
6226
a6b6b089
AC
62272002-07-10 Andrew Cagney <ac131313@redhat.com>
6228
5ae5f592
AC
6229 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6230 prototype.
6231 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6232 * s390-tdep.c (s390_fp_regnum): Ditto.
6233 (s390_read_fp): Ditto.
6234 (s390_pop_frame): Ditto.
6235 (_initialize_s390_tdep): Ditto.
6236 * remote.c (get_remote_state): Ditto.
6237 * procfs.c (mappingflags): Ditto.
6238 * memattr.c (_initialize_mem): Ditto.
6239 * mcore-tdep.c (mcore_pop_frame): Ditto.
6240 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6241 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6242 * language.c (set_case_str): Ditto.
6243 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6244 * frv-tdep.c (new_variant): Ditto.
6245 (frv_stopped_data_address): Ditto.
6246 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6247 (context_alloc): Ditto.
6248 (frame_state_alloc): Ditto.
6249 (unwind_tmp_obstack_init): Ditto.
6250 (unwind_tmp_obstack_free): Ditto.
6251 (cfi_read_fp): Ditto.
6252 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6253 (cris_pop_frame): Ditto.
6254 * c-lang.c (scanning_macro_expansion): Ditto.
6255 (finished_macro_expansion): Ditto.
6256 (c_preprocess_and_parse): Ditto.
6257 * gdbarch.sh: Ditto.
6258 * gdbarch.h, gdbarch.c: Regenerate.
6259 * config/mn10200/tm-mn10200.h: Adjust indentation.
6260 * target.c: Adjust indentation.
6261 * symtab.h: Adjust indentation.
6262 * stabsread.h: Adjust indentation.
6263 * remote-es.c: Adjust indentation.
6264 * os9kread.c: Adjust indentation.
6265
62662002-07-10 Andrew Cagney <ac131313@redhat.com>
6267
a6b6b089
AC
6268 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6269 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6270
a1789893
GS
62712002-07-10 Grace Sainsbury <graces@redhat.com>
6272
6273 * NEWS: Mention m68k, mcore multi-arching.
6274 * MAINTAINERS: Change status of m68k, mcore to reflect
6275 multi-arching.
6276
02f0d45d
DJ
62772002-07-10 Daniel Jacobowitz <drow@mvista.com>
6278
6279 * valops.c (find_overload_match): Free oload_syms.
6280
f15f768e
JB
62812002-07-09 Joel Brobecker <brobecker@gnat.com>
6282
6283 Define HAVE_SYS_PROC_H if sys/proc.h exists
6284 * configure.in: Add check for sys/proc.h
6285 * config.in: Regenerate.
6286 * configure: Regenerate.
6287
902a7139
GS
62882002-07-09 Grace Sainsbury <graces@redhat.com>
6289
6290 * config/m68k/tm-m68k.h: Remove macros wrapped in
6291 #if !GDB_MULTI_ARCH.
6292
a534e424
AC
62932002-07-08 Andrew Cagney <ac131313@redhat.com>
6294
6295 * config.in, configure: Regenerate.
6296
9b94f7bf
MK
62972002-07-08 Mark Kettenis <kettenis@gnu.org>
6298
6299 * dwarf2cfi.c: Include "gcore.h".
6300 (execute_stack_op): Fix implementation of the
6301 DW_OP_deref and DW_OP_deref_size operators by letting do their
6302 lookup in the target.
6303
1d34db41
MK
63042002-07-07 Mark Kettenis <kettenis@gnu.org>
6305
6306 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6307 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6308 tdep->sc_sp_offset.
6309
79d5b63a
DJ
63102002-07-05 Daniel Jacobowitz <drow@mvista.com>
6311
6312 Fix PR gdb/595, gdb/602
6313 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6314 Don't call value_cast, just read the vtable pointer; update comments
6315 to match.
6316
3bb912e8
GS
63172002-07-05 Grace Sainsbury <graces@redhat.com>
6318
6319 * config/mcore/tm-mcore.h: Remove file.
6320 * config/mcore/mcore.mt: Remove definition of TM_FILE
6321 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6322
ca39387d
MK
63232002-07-05 Mark Kettenis <kettenis@gnu.org>
6324
6325 * i386bsd-tdep.c: Include "gdb_string.h".
6326
efdc1108
GS
63272002-07-04 Grace Sainsbury <graces@redhat.com>
6328
6329 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6330 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6331 mcore-tdep.
6332 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6333 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6334 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6335 (RETVAL_REGNUM): Move macros from tm-mcore.h
6336 (mcore_reg_struct_has_addr): New function.
6337 (mcore_gdbarch_init): Added initializations for the macros removed
6338 from tm-mcore.h.
6339
bb21884d
MK
63402002-07-04 Mark Kettenis <kettenis@gnu.org>
6341
6342 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6343 traditonal string branding within the ELF header.
6344
228c6d41
DJ
63452002-07-04 Daniel Jacobowitz <drow@mvista.com>
6346
6347 * symtab.c (remove_params): New function.
6348 (make_symbol_overload_list): Use it instead of cplus_demangle.
6349 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6350
2404952e
MK
63512002-07-04 Mark Kettenis <kettenis@gnu.org>
6352
e5e4acad
MK
6353 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6354
baadce09
MK
6355 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6356 New variables.
6357 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6358 and tdep->sigtramp_end.
6359 * i386obsd-nat.c: New file.
6360 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6361
2404952e
MK
6362 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6363 Don't call get_current_frame().
6364
9b4f1ba7
PM
63652002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6366
6367 * i386-nat.c (child_post_startup_inferior): New function
6368 calling i386_cleanup_dregs if
6369 I386_USE_GENERIC_WATCHPOINTS is defined.
6370 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6371 conditional to acknowledge that i386-nat.c has its
6372 own child_post_startup_inferior function.
6373
c0d1d883
MK
63742002-07-04 Mark Kettenis <kettenis@gnu.org>
6375
00f8375e
MK
6376 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6377 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6378 instead of MAX_REGISTER_RAW_SIZE.
6379 (i386_extract_return_value, i386_extract_struct_value_address):
6380 Convert to use regcache.
6381 (i386_gdbarch_init): Set max_register_raw_size and
6382 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6383 Set extract_return_value and extract_struct_value_address instead
6384 of their deprecated variants.
6385
c0d1d883
MK
6386 Convert i386 target to generic dummy frames.
6387 * i386-tdep.c: Include "symfile.h".
6388 (i386_frameless_signal_p): Consider a function to be frameless if
6389 the pc points at the first instruction of the function.
6390 (i386_frame_chain): Handle (generic) call dummies.
6391 (i386_frame_saved_pc): Likewise.
6392 (i386_frame_init_saved_regs): Remove code dealing with call
6393 dummies on the stack.
6394 (i386_push_dummy_frame): Removed.
6395 (i386_call_dummy_words): Removed.
6396 (i386_fix_call_dummy): Removed.
6397 (i386_push_return_address): New function.
6398 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6399 parameter, and don't call get_current_frame.
6400 (i386_pop_frame): New function.
6401 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6402 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6403 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6404 call_dummy_length to 0, set call_dummy_words to NULL, set
6405 sizeof_call_dummy_words to 0, set fix_call_dummy to
6406 generic_fix_call_dummy, set pc_in_call_dummy to
6407 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6408 generic_push_dummy_frame, set push_return_address to
6409 i386_push_return_address and set frame_chain_valid to
6410 generic_file_frame_chain_valid.
6411
049ee0e4
AC
64122002-07-03 Andrew Cagney <ac131313@redhat.com>
6413
6414 * gdbarch.sh (struct regcache): Add opaque declaration.
6415 (EXTRACT_RETURN_VALUE): New architecture method.
6416 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6417 * gdbarch.h, gdbarch.c: Regenerate.
6418 * arch-utils.c (legacy_extract_return_value): New function.
6419 * arch-utils.h (legacy_extract_return_value): Declare.
6420 * values.c (value_being_returned): Re-enable code handling
6421 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6422 deprecated_grub_regcache_for_registers call to block handling
6423 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6424 (EXTRACT_RETURN_VALUE): Do not define.
6425
4e0d9804
GS
64262002-07-03 Grace Sainsbury <graces@redhat.com>
6427
6428 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6429 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6430 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6431 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6432 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6433 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6434 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6435 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6436 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6437 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6438 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6439 argument so the function fits the prototype in the architecture
6440 vector.
6441 (mcore_pop_frame): Remove argument so the function fits the
6442 prototype. Use get_current_frame instead of the argument.
6443 (mcore_push_arguments): Change type of struct_return so the
6444 function can be used in the architecture vector.
6445 (mcore_store_struct_return): Add.
6446 (mcore_frame_init_saved_regs): Add.
6447 (mcore_gdbarch_init): Add function calls to replace the macros
6448 removed from tm-mcore.h
6449
36160dc4
AC
64502002-07-03 Andrew Cagney <ac131313@redhat.com>
6451
6452 * infcmd.c (print_return_value): Remove compatibility code calling
6453 deprecated_grub_regcache_for_registers.
6454
6455 * values.c: Include "regcache.h".
6456 (value_being_returned): Update. Use
6457 deprecated_grub_regcache_for_registers to extract the register
6458 buffer address.
6459 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6460 ``struct regcache''.
6461 * Makefile.in (values.o): Add dependency on $(regcache_h).
6462
6463 * inferior.h (run_stack_dummy): Change type of second parameter to
6464 a ``struct regcache''.
6465 * valops.c (hand_function_call): Change type of retbuf to ``struct
6466 regcache''. Allocate using regcache_xmalloc, clean using
6467 make_cleanup_regcache_xfree.
6468 * infcmd.c (run_stack_dummy): Update. Use
6469 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6470
6471 * regcache.c (do_regcache_xfree): New function.
6472 (make_cleanup_regcache_xfree): New function.
6473 * regcache.h (make_cleanup_regcache_xfree): Declare.
6474
e64d9b3d
MH
64752002-07-03 Martin M. Hunt <hunt@redhat.com>
6476
4dd79c29
MH
6477 * event-top.c (command_line_handler): Don't read past
6478 beginning of buffer.
e64d9b3d 6479
4dd79c29
MH
64802002-07-03 Martin M. Hunt <hunt@redhat.com>
6481
e64d9b3d
MH
6482 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6483 struct frame_id.
6484 (varobj_create): Store frame_id for root.
6485 (varobj_gen_name): Use xasprintf.
6486 (varobj_update): Save and restore frame using get_frame_id() and
6487 frame_find_by_id().
6488 (create_child): Use xasprintf.
6489 (new_root_variable): Initialize frame_id.
6490 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6491 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6492 to prevent memory leak.
6493
26e6c56a
AC
64942002-07-03 Andrew Cagney <ac131313@redhat.com>
6495
6496 * valops.c (hand_function_call): Move declaration of retbuf to
6497 start of function, allocate using malloc, add a cleanup but before
6498 the inf_status cleanup, cleanup the buffer. Rename local variable
6499 old_chain to inf_status_cleanup.
6500
f436dd25
MH
65012002-07-03 Martin M. Hunt <hunt@redhat.com>
6502
6503 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6504
6505 * cli/cli-decode.c (cmd_func_p): New function.
6506 (cmd_func): New function.
6507
6508 * command.h: Add cmd_func() and cmd_func_p().
6509
4cfe2084
GS
65102002-07-03 Grace Sainsbury <graces@redhat.com>
6511
6512 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6513 (REGISTER_SIZE): Remove.
6514 (MAX_REGISTER_RAW_SIZE): Remove.
6515 (REGISTER_VIRTUAL_TYPE): Remove.
6516 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6517 (REGISTER_NAME): Remove.
6518 (USE_GENERIC_DUMMY_FRAMES): Remove.
6519 (CALL_DUMMY): Remove.
6520 (CALL_DUMMY_START_OFFSET): Remove.
6521 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6522 (CALL_DUMMY_LOCATION): Remove.
6523 (FIX_CALL_DUMMY): Remove.
6524 (CALL_DUMMY_ADDRESS): Remove.
6525 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6526 (SAVE_DUMMY_FRAME_TOS): Remove.
6527 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6528 (mcore_register_virtual_type): New function.
6529 (mcore_register_byte): New function.
6530 (mcore_register_size): New function.
6531 (mcore_register_name): New function.
6532 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6533 macros removed from tm-mcore.h.
6534 (mcore_dump_tdep): Add.
6535 (_initialize_mcore_tdep): Add gdbarch_register call.
6536
4fd667e9
MK
65372002-07-03 Mark Kettenis <kettenis@gnu.org>
6538
6539 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6540 frameless_look_for_prologue, such that we actually call this
6541 function.
6542
42f99ac2
JB
65432002-07-02 Joel Brobecker <brobecker@gnat.com>
6544
6545 * frame.h (frame_address_in_block): New function.
6546
6547 * blockframe.c (frame_address_in_block): New function extracted
6548 from get_frame_block().
6549 (get_frame_block): Use frame_address_in_block().
6550 (block_innermost_frame): Use frame_address_in_block() to match
6551 the frame pc address against the block boundaries rather than
6552 the frame pc directly. This prevents a failure when a frame pc
6553 is actually a return-address pointing immediately after the end
6554 of the given block.
6555
103a1597 65562002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6557
6558 * MAINTAINERS: Add self under write after approval.
6559
65602002-07-02 Grace Sainsbury <graces@redhat.com>
6561
103a1597
GS
6562 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6563 used in architecture vector. The default is
6564 m68k_local_breakpoint_from_pc.
6565 (m68k_local_breakpoint_from_pc): Add.
6566 (enum): Add register numbers from tm-m68k.h.
6567 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6568 vector.
6569 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6570 GDB_MULTI_ARCH_PARTIAL.
6571 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6572 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6573 m68k-tdep.c.
6574 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6575 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6576 to enum in m68k-tdep.c
6577
7a5a0534
JB
65782002-07-02 Joel Brobecker <brobecker@gnat.com>
6579
6580 * solib-osf.c (open_map): Compute the list of shared libraries
6581 loaded by the inferior, rather than the list of libraries loaded
6582 by GDB itself. Otherwise, GDB ends up reading the symbols from
6583 the wrong shared libraries...
6584
6f558d74
MK
65852002-07-02 Mark Kettenis <kettenis@gnu.org>
6586
b7d15bf7
MK
6587 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6588 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6589 macros.
6590 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6591 Remove functions.
6592 (FRAMELESS_SIGNAL): Remove function.
6593 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6594 i386_linux_saved_pc_after_call): Removed.
6595 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6596 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6597 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6598
6bff26de
MK
6599 * i386-tdep.c (i386_frameless_signal_p): New function.
6600 (i386_frame_chain): Deal with frameless signals.
6601 (i386_sigtramp_saved_sp): New function.
6602 (i386_frame_saved_pc): Deal with frameless signals.
6603 (i386_saved_pc_after_call): Make sure the correct value is
6604 returned just after entry into a sigtramp.
6605 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6606 i386fbsd4_sc_sp_offset): New variables.
6607 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6608 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6609 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6610 similiar to what we already did for sc_pc_offset.
6611 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6612 tdep->sc_sp_offset.
6613
6f558d74
MK
6614 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6615
145564b7
ML
66162002-07-02 Michal Ludvig <mludvig@suse.cz>
6617
6618 * config/i386/tm-x86-64linux.h: New.
6619 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6620 definitions.
6621 * config/i386/nm-x86-64.h: Rename to ...
6622 * config/i386/nm-x86-64linux.h: ... this one.
6623 * config/i386/x86-64linux.mh: Reflect the above change.
6624
3a1e71e3
MK
66252002-07-01 Mark Kettenis <kettenis@gnu.org>
6626
21d0e8a4
MK
6627 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6628 with sigcontext_addr. Add sc_sp_offset.
6629 (i386bsd_sigtramp_saved_pc): Remove prototype.
6630 (i386bsd_sicontext_addr): Add prototype.
6631 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6632 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6633 (i386_svr4_sigtramp_saved_pc): Removed.
6634 (i386_svr4_sigcontext_addr): New function.
6635 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6636 Initialize tdep->sigcontext_addr instead. Initialize
6637 tdep->sc_pc_offset and tdep->sc_sp_offset.
6638 (i386_gdbarch_init): Likewise.
6639 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6640 any more.
6641 (i386bsd_sigtramp_saved_pc): Remove function.
6642 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6643 Initialize tdep->sigcontext_addr instead. Initialize
6644 tdep->sc_pc_offset.
6645 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6646 of tdep->sigtramp_saved_pc.
6647 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6648 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6649 instead.
6650
3a1e71e3
MK
6651 * i386-tdep.c (i386_frameless_function_invocation,
6652 i386_frame_num_args, i386_frame_init_saved_regs,
6653 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6654 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6655 i386_extract_return_value, i386_store_return_value,
6656 i386_extract_struct_value_address, i386_register_virtual_type,
6657 i386_register_convertible, i386_register_convert_to_virtual,
6658 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6659 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6660 static.
6661
52e9098c
MK
66622002-07-01 Mark Kettenis <kettenis@gnu.org>
6663
77b13a25
MK
6664 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6665
52e9098c
MK
6666 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6667 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6668 this macro. Include "value.h".
6669
1b372fff
AS
66702002-06-30 Aidan Skinner <aidan@velvet.net>
6671
6672 * ada-exp.tab.c: remove as it's a generated file
6673 * ada-lex.c: remove as it's a generated file
6674
9c5045b5
MK
66752002-06-30 Mark Kettenis <kettenis@gnu.org>
6676
4a93c5bb
MK
6677 * config/i386/tm-i386.h (struct frame_info, struct
6678 frame_saved_regs, struct value, struct type): Remove forward
6679 declarations.
6680
322d4fe0
MK
6681 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6682 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6683 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6684 (FILL_FPXREGSET): Define.
6685
fdd8263d
MK
6686 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6687
482e577b
MK
6688 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6689 i[3456]86-*-netbsd* case.
6690 * config/i386/tm-obsd.h: Removed.
6691 * config/i386/obsd.mt: Removed.
6692 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6693 core-aout.o.
6694 (MH_CFLAGS): Add -DYYDEBUG=0.
6695
6916549a
MK
6696 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6697 i386nbsd_sc_pc_offset on OpenBSD too.
6698
9c5045b5
MK
6699 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6700 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6701 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6702 define.
6703 * i386bsd-tdep.c: Include "arch-utils.h".
6704 (i386bsd_aout_in_solib_call_trampoline): New function.
6705 (i386bsd_init_abi): Set in_solib_call_trampoline to
6706 i386bsd_aout_in_solib_call_trampoline.
6707 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6708 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6709
aa84d1bb
AC
67102002-06-28 Andrew Cagney <ac131313@redhat.com>
6711
6712 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6713 (struct obstack, struct bcache): Add opaque declarations.
6714 * Makefile.in (macrotab_h): Update
6715
b4d83933
AC
67162002-06-28 Andrew Cagney <ac131313@redhat.com>
6717
6718 * blockframe.c (generic_find_dummy_frame): Change return type to
6719 ``struct regcache''.
6720 (struct dummy_frame): Replace field ``registers'' with regcache, a
6721 struct regcache object.
6722 (generic_find_dummy_frame): Update.
6723 (generic_push_dummy_frame): Update. Use regcache_xfree,
6724 regcache_xmalloc and regcache_cpy.
6725 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6726 regcache_xfree.
6727 (deprecated_generic_find_dummy_frame): Update.
6728 (generic_read_register_dummy): Update. Use
6729 regcache_read_as_address.
6730 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6731 (generic_get_saved_register): Update. Use regcache_read.
6732
08c0b5bc
AC
67332002-06-28 Andrew Cagney <ac131313@redhat.com>
6734
6735 * Makefile.in (objfiles_h): Add $(bcache_h).
6736 * objfiles.h: Include "bcache.h".
6737
6738 * Makefile.in (symtab_h): Remove $(bcache_h).
6739 * symtab.h: Do not include "bcache.h".
6740
1f89801a
AC
67412002-06-28 Andrew Cagney <ac131313@redhat.com>
6742
6743 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6744 generic_func_frame_chain_valid.
6745
b9644b58
DB
67462002-06-28 David O'Brien <obrien@FreeBSD.org>
6747
6748 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6749 * config/i386/tm-fbsd.h: Likewise.
6750
dd486634
AC
67512002-06-28 Andrew Cagney <ac131313@redhat.com>
6752
6753 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6754 generic_unwind_get_saved_register.
6755
0b434a00
AC
67562002-06-27 Andrew Cagney <ac131313@redhat.com>
6757
6758 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6759 * regcache.c (supply_register): Add missing argument to
6760 register_buffer call.
6761
f30e5a77
AC
67622002-06-27 Andrew Cagney <ac131313@redhat.com>
6763
6764 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6765 Solaris /bin/grep does not not like it. From Peter Schauer.
6766
9f064c95
TT
67672002-06-26 Tom Tromey <tromey@redhat.com>
6768
6769 * command.h (add_setshow_cmd): Declare.
6770 (add_setshow_cmd_full): Declare.
6771 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6772 returns void. Use add_setshow_cmd_full.
6773 (add_setshow_cmd_full): New function.
6774 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6775 (add_setshow_boolean_cmd): Likewise.
6776
099c7589
JT
67772002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6778
6779 * config/vax/tm-vax.h: Protect from multiple inclusion.
6780 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6781 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6782 * config/vax/tm-vaxbsd.h: ...here. New file.
6783 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6784
1d049c5e
JT
67852002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6786
6787 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6788 (BELIEVE_PCC_PROMOTION): Remove.
6789 (AP_REGNUM): Move to...
6790 * config/vax/nm-vax.h: ...here.
6791 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6792 (vax_breakpoint_from_pc): New function.
6793 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6794 and gdbarch_believe_pcc_promotion.
6795
4791e091
JT
67962002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6797
6798 * Makefile.in (vax_tdep_h): Define.
6799 (vax-tdep.o): Use $(vax_tdep_h).
6800 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6801 (vax_dump_tdep): New function.
6802 (_initialize_vax_tdep): Register vax_dump_tdep.
6803 * vax-tdep.h: Include osabi.h.
6804 (struct gdbarch_tdep): New.
6805
da130f98
AC
68062002-06-26 Andrew Cagney <cagney@redhat.com>
6807
6808 * frame.h (deprecated_generic_find_dummy_frame): Rename
6809 generic_find_dummy_frame.
6810 * blockframe.c (generic_find_dummy_frame): Make static.
6811 (deprecated_generic_find_dummy_frame): New function.
6812 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6813 generic_find_dummy_frame with deprecated_find_dummy_frame.
6814 (sh64_nofp_frame_init_saved_regs): Ditto.
6815 (sh_fp_frame_init_saved_regs): Ditto.
6816 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6817 (s390_frame_chain): Ditto.
6818 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6819
6300c360
GS
68202002-06-26 Grace Sainsbury <graces@redhat.com>
6821
6822 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6823 gdbarch vector are at the top.
6824 (NUM_REGS): Remove.
6825 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6826 (FRAME_ARGS_ADDRESS): Remove.
6827 (FRAME_LOCALS_ADDRESS): Remove.
6828 (FRAME_NUM_ARGS): Remove.
6829 (FRAME_ARGS_SKIP): Remove.
6830 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6831 (m68k_gdbarch_init): Add gdbarch initializations for macros
6832 undefined in tm-m68k.h
6833
1c617db8
GS
68342002-06-26 Grace Sainsbury <graces@redhat.com>
6835
6836 * monitor.h: Add the function regname to monitor_ops
6837 structure. This way NUM_REGS does not have to be a constant.
6838 * monitor.c (monitor_fetch_register): Added support for regname
6839 function. The function is called if the array regnames is NULL.
6840 (monitor_store_register): Same.
da130f98
AC
6841 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6842 regnames array.
1c617db8
GS
6843 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6844 cpu32bug_cmds.regname to point to new function.
6845 * abug-rom.c (abug_regname): Same as above.
6846 (init_abug_cmds): Same.
6847 * dbug-rom.c (dbug_regname): Same as above.
6848 (init_dbug_cmds): Same.
6849 * remote-est.c (est_regname): Same.
6850 (init_est_cmds): Same.
6851 * rom68k-rom.c (rom68k_regname): Same.
6852 (init_rom68k_cmds): Same.
6853
ea9365bb
TT
68542002-06-25 Tom Tromey <tromey@redhat.com>
6855
6856 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6857
72cec141
AC
68582002-06-25 Andrew Cagney <cagney@redhat.com>
6859
6860 * infrun.c (stop_registers): Change variable's type to ``struct
6861 regcache'''.
6862 (xmalloc_inferior_status): Delete function.
6863 (free_inferior_status): Delete function.
6864 (normal_stop): Use regcache_cpy.
6865 (struct inferior_status): Change type of fields ``stop_registers''
6866 and ``registers'' to ``struct regcache''.
6867 (write_inferior_status_register): Use regcache_write.
6868 (save_inferior_status): Instead of calling
6869 xmalloc_inferior_status, allocate the inf_status buffer directly.
6870 Use regcache_dup_no_passthrough and regcache_dup to save the
6871 buffers.
6872 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6873 Replace the stop_registers regcache instead of overriding it. Use
6874 regcache_xfree. Instead of calling free_inferior_status, xfree
6875 the buffer directly.
6876 (discard_inferior_status): Use regcache_xfree. Instead of calling
6877 free_inferior_status, xfree the buffer directly.
6878 (build_infrun): Use regcache_xmalloc.
6879 (_initialize_infrun): Delete redundant call to build_infrun.
6880
6881 * Makefile.in (infcmd.o): Add $(regcache_h).
6882
6883 * infcmd.c: Include "regcache.h".
6884 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6885 obtain the address of `stop_registers' register buffer.
6886 (print_return_value): Ditto.
6887
6888 * inferior.h (struct regcache): Add opaque declaration.
6889 (stop_registers): Change variable's declared type to ``struct
6890 regcache''.
6891
defc6f8c
TT
68922002-06-24 Tom Tromey <tromey@redhat.com>
6893
c0e624e7
TT
6894 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6895 * target.c (initialize_targets): Fixed typo in
6896 trust-readonly-sections `show' documentation.
6897
defc6f8c
TT
6898 * main.c: Marked all strings with _().
6899
2b236d82
DH
69002002-06-24 Don Howard <dhoward@redhat.com>
6901
6902 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6903 that means max CORE_ADDR+1.
6904 (lookup_mem_region): Ditto.
6905 (mem_info_command): Ditto.
6906
942dc0e9
GS
69072002-06-24 Grace Sainsbury <graces@redhat.com>
6908
6909 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6910 (REGISTER_BYTES_OK): Remove.
6911 (REGISTER_BYTES): Remove.
6912 (STORE_STRUCT_RETURN): Remove.
6913 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6914 (STORE_RETURN_VALUE): Remove.
6915 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6916 (FRAME_CHAIN): Remove.
6917 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6918 (FRAME_SAVED_PC): Remove.
6919 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6920 (m68k_store_struct_return): Add.
6921 (m68k_deprecated_extract_return_value): Add.
6922 (m68k_deprecated_extract_struct_value_address): Add.
6923 (m68k_store_return_value): Add.
6924 (m68k_frame_chain): Add.
6925 (m68k_frameless_function_invocation): Add.
6926 (m68k_frame_saved_pc): Add.
6927 (m68k_gdbarch_init): added set_gdbarch calls for new
6928 functions and deleted macros.
6929
03c30d4d
TT
69302002-06-23 Tom Tromey <tromey@redhat.com>
6931
6932 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6933 (ALLDEPFILES): Likewise.
6934 (udiheaders): Removed.
6935 (udip2soc.o): Likewise.
6936 (udi2go32.o): Likewise.
6937 (udr.o): Likewise.
6938 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6939
37e71372
AC
69402002-06-22 Andrew Cagney <ac131313@redhat.com>
6941
06a6ac57
AC
6942 * infrun.c (_initialize_infrun): Delete unnecessary call to
6943 build_infrun.
6944
37e71372
AC
6945 * regcache.h: Update comments describing the regcache_cpy family
6946 of functions.
6947 (regcache_save, regcache_restore): Delete declaration.
6948 (regcache_save_no_passthrough): Delete declaration.
6949 (regcache_restore_no_passthrough): Delete declaration.
6950 * regcache.c (regcache_save): Delete function.
6951 (regcache_save_no_passthrough): Delete function.
6952 (regcache_restore): Delete function.
6953 (regcache_restore_no_passthrough): Delete function.
6954
78f6d055
AC
69552002-06-21 Andrew Cagney <ac131313@redhat.com>
6956
6957 * config/m68k/tm-m68k.h: Fix typo.
6958 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6959 (m68k_frame_init_saved_regs): Declare.
6960
78b119cb
JB
69612002-06-21 Jim Blandy <jimb@redhat.com>
6962
6963 Remove some vestiges of Harris 88k support.
6964 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6965 register numbering quirk.
6966 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6967 odd symbols occurring in Harris 88k ELF targets.
6968
0fbb3da7
TT
69692002-06-21 Tom Tromey <tromey@redhat.com>
6970
6971 * gdb_locale.h: New file.
6972 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6973 (defs_h): Added gdb_locale.h.
6974 * configure, config.in: Rebuilt.
6975 * configure.in (PACKAGE): Define.
6976 * defs.h: Include gdb_locale.h.
6977 * main.c (captured_main): Call setlocale, bindtextdomain,
6978 textdomain.
6979
456f8b9d
DB
69802002-06-21 Dave Brolley <brolley@redhat.com>
6981
6982 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6983 * config/frv/frv.mt: New file.
6984 * config/frv/tm-frv.h: New file.
6985 * configure.tgt: Support frv-*-*.
6986 * Makefile.in (frv-tdep.o): New target.
6987 * frv-tdep.c: New file.
6988 * NEWS: Mention frv.
6989
cdd463f9
DB
69902002-06-21 Dave Brolley <brolley@redhat.com>
6991
6992 * MAINTAINERS: Add self to "Write After Approval" list.
6993
5d3ed2e3
GS
69942002-06-21 Grace Sainsbury <graces@redhat.com>
6995
6996 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6997 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6998 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6999 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7000 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7001
7002 * m68k-tdep.c: Include arch-utils.h
7003 (m68k_register_raw_size): Add.
7004 (m68k_register_virtual_size): Add.
7005 (m68k_register_virtual_type): Add.
7006 (m68k_register_name): Add.
7007 (m68k_stack_align): Add.
7008 (m68k_register_byte): Add.
7009 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7010 tm-m68k.h.
7011
7f8e7424
GS
70122002-06-21 Grace Sainsbury <graces@redhat.com>
7013
a2c6a6d5 7014 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
7015 m68k_find_saved_regs.
7016 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 7017 references to it with frame->saved_regs.
7f8e7424
GS
7018 (m68k_gdbarch_init): Added function calls to initialize the
7019 gdbarch structure.
a2c6a6d5
GS
7020 (m68k_fix_call_dummy): Add.
7021 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7022 (CALL_DUMMY): Remove.
7023 (CALL_DUMMY_LENGTH): Remove.
7024 (CALL_DUMMY_START_OFFSET): Remove.
7025 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7026 (FIX_CALL_DUMMY): Remove.
7027 (PUSH_DUMMY_FRAME): Remove.
7028 (POP_FRAME): Remove.
7f8e7424 7029
f461f5cf
PM
70302002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7031
7032 * parse.c (parse_fprintf): New function used to avoid calls to
7033 fprintf in bison parser generated debug code.
7034 * parser-defs.h: Declaration of new parse_fprintf function.
7035 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7036 Set YYDEBUG to 1 by default.
7037 Set YYFPRINTF as parse_fprintf.
7038
7f0c12ed
ML
70392002-06-21 Michal Ludvig <mludvig@suse.cz>
7040
7041 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7042 encoding anymore.
7043 (pointer_encoding, enum ptr_encoding): New.
7044 (execute_cfa_program): Take care about pointer encoding.
7045 (dwarf2_build_frame_info): Only call parse_frame_info for
7046 .debug_frame and .eh_frame.
7047 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7048 fixed augmentation handling, added relative addressing,
7049 ignore duplicate FDEs. Added comments.
19d833a2 7050 * dwarf2cfi.c: Reindented.
7f0c12ed 7051
87c4a039
EZ
70522002-06-20 Elena Zannoni <ezannoni@redhat.com>
7053
7054 * event-top.c (command_handler): Don't use space_at_cmd_start
7055 unless there is sbrk() on the host. Assign time and space data
7056 to union fields of the appropriate length.
7057
1cf877ad
ML
70582002-06-20 Michal Ludvig <mludvig@suse.cz>
7059
7060 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7061 x86_64_register_name. Return type changed to 'const char *'.
7062 (x86_64_register_name2nr): Rename to x86_64_register_number.
7063 (x86_64_gdbarch_init): Update to reflect the change.
7064 * x86-64-tdep.h: Ditto.
7065 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7066 (supply_fpregset): Ditto.
7067
3fadccb3
AC
70682002-06-19 Andrew Cagney <cagney@redhat.com>
7069
7070 * regcache.h: Update copyright.
7071 (struct regcache, struct gdbarch): Add opaque declarations.
7072 (current_regcache): Declare global variable.
7073 (regcache_read, regcache_write): Add gdbarch parameter.
7074 (regcache_save, regcache_save_no_passthrough)
7075 (regcache_restore, regcache_restore_no_passthrough)
7076 (regcache_dup, regcache_dup_no_passthrough)
7077 (regcache_cpy, regcache_cpy_no_passthrough)
7078 (deprecated_grub_regcache_for_registers)
7079 (deprecated_grub_regcache_for_register_valid)
7080 (regcache_valid_p): Add function declarations.
7081
7082 * regcache.c: Update copyright.
7083 (regcache_descr_handle): New global variable.
7084 (struct regcache_descr): Define.
7085 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7086 (regcache_descr, xfree_regcache_descr): New functions.
7087 (struct regcache): Define.
7088 (regcache_xmalloc, regcache_xfree): New functions.
7089 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7090 (regcache_dup, regcache_dup_no_passthrough): New functions.
7091 (regcache_valid_p, regcache_read_as_address): New functions.
7092 (deprecated_grub_regcache_for_registers): New function.
7093 (deprecated_grub_regcache_for_register_valid): New function.
7094 (current_regcache): New global variable.
7095 (register_buffer): Add regcache parameter. Update calls.
7096 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7097 (read_register_gen, write_register_gen): Update register_buffer
7098 call. Test for legacy_p instead of gdbarch_register_read_p or
7099 gdbarch_register_write_p.
7100 (regcache_collect): Update register_buffer call.
7101 (build_regcache): Rewrite. Use deprecated grub functions.
7102 (regcache_save, regcache_save_no_passthrough): New functions.
7103 (regcache_restore, regcache_restore_no_passthrough): New
7104 functions.
7105 (_initialize_regcache): Create the regcache_data_handle. Swap
7106 current_regcache global variable.
7107
7108 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7109 parameter to regcache_read and regcache_write calls.
7110 (sh4_register_read): Ditto.
7111 (sh64_pseudo_register_read): Ditto.
7112 (sh64_register_read): Ditto.
7113 (sh_pseudo_register_write): Ditto.
7114 (sh4_register_write): Ditto.
7115 (sh64_pseudo_register_write): Ditto.
7116 (sh64_register_write): Ditto.
7117
7118 * defs.h (XCALLOC): Define.
7119
152d9db6
GS
71202002-06-19 Grace Sainsbury <graces@redhat.com>
7121
7122 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7123 * m68k-tdep.c (m68k_gdbarch_init): Added.
7124 (m68k_dump_tdep): Added.
7125
170911c7
DJ
71262002-06-19 Daniel Jacobowitz <drow@mvista.com>
7127
7128 * ada-lang.c (fill_in_ada_prototype): Update comment.
7129
2e4ebe70
DJ
71302002-06-19 Daniel Jacobowitz <drow@mvista.com>
7131
7132 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7133 MIPS_ABI_LAST.
7134 (mips_abi_string, mips_abi_strings): New.
7135 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7136 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7137 tdep->mips_abi_string. Honor mips_abi_string. Default to
7138 O32 if no ABI is found.
7139 (mips_dump_tdep): Use mips_abi_strings.
7140 (mips_abi_update): New function.
7141 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7142 ``set mips abi'' and ``show mips abi''. Check the size of
7143 mips_abi_strings.
7144
16775908
AC
71452002-06-19 Andrew Cagney <cagney@redhat.com>
7146
7147 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7148 constant.
7149
5051bfa4 71502002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 7151
5051bfa4
JB
7152 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7153 current frame using only the first stack size adjustment. All
7154 subsequent size adjustments are not considered to be part of
7155 the "static" part of the current frame.
7156 Compute the address of the saved registers relative to the
7157 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7158 in use in this frame.
7159
56468235
DH
71602002-06-18 Don Howard <dhoward@redhat.com>
7161
7162 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7163 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7164 suggesting this solution.
7165
0b624158
AC
71662002-06-18 Andrew Cagney <ac131313@redhat.com>
7167
7168 * config/romp/xm-rtbsd.h: Delete file.
7169 * config/romp/rtbsd.mh: Delete file.
7170
221ea385
KS
71712002-06-18 Keith Seitz <keiths@redhat.com>
7172
7173 * breakpoint.c (condition_command): Post breakpoint_modify
7174 when a condition is added to an existing breakpoint.
7175 (commands_command): Likewise for commands.
7176 (set_ignore_count): Likewise for ignore counts.
7177 If no tty, do not simply return, still need to send event
7178 notification.
7179 (ignore_command): Only print a newline if the command came
7180 from a tty.
7181 Don't call breakpoints_changed, since this is now properly
7182 handled by set_ignore_count.
7183
5402eed1
AC
71842002-06-18 Andrew Cagney <cagney@redhat.com>
7185
7186 * MAINTAINERS: Note that cris-elf target can be compiled with
7187 -Werror.
7188 * cris-tdep.c (cris_register_name): Make return type constant.
7189 (cris_breakpoint_from_pc): Ditto.
7190
cc22880b
ML
71912002-06-18 Michal Ludvig <mludvig@suse.cz>
7192
7193 * frame.h (struct frame_info): Change type of context to
7194 'struct context'.
7195
fa88f677
AC
71962002-06-17 Andrew Cagney <cagney@redhat.com>
7197
7198 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7199 pointer.
7200 * gdbarch.h, gdbarch.c: Regenerate.
7201 * config/mips/tm-mips.h (mips_register_name): Update.
7202 * i386-tdep.h (i386_register_name): Update.
7203 * mips-tdep.c (mips_register_name): Update
7204 * alpha-tdep.c (alpha_register_name): Update.
7205 * arch-utils.c (legacy_register_name): Update.
7206 * arch-utils.h (legacy_register_name): Update.
7207 * avr-tdep.c (avr_register_name): Update.
7208 * ia64-tdep.c (ia64_register_name): Update.
7209 * i386-tdep.c (i386_register_name): Update.
7210 * sparc-tdep.c (sparc32_register_name): Update.
7211 (sparc64_register_name): Update.
7212 (sparclite_register_name): Update.
7213 (sparclet_register_name): Update.
7214 * sh-tdep.c (sh_generic_register_name): Update.
7215 (sh_sh_register_name): Update.
7216 (sh_sh3_register_name): Update.
7217 (sh_sh3e_register_name): Update.
7218 (sh_sh_dsp_register_name): Update.
7219 (sh_sh3_dsp_register_name): Update.
7220 (sh_sh4_register_name): Update.
7221 (sh_sh64_register_name): Update.
7222 * s390-tdep.c (s390_register_name): Update.
7223 * rs6000-tdep.c (rs6000_register_name): Update.
7224 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7225 (ns32k_register_name_32382): Update.
7226 * d10v-tdep.c (d10v_ts2_register_name): Update.
7227 (d10v_ts3_register_name): Update.
7228 * xstormy16-tdep.c (xstormy16_register_name): Update.
7229 * vax-tdep.c (vax_register_name): Update.
7230 * v850-tdep.c (v850_register_name): Update.
7231 * m68hc11-tdep.c (m68hc11_register_name): Update.
7232 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7233 (am33_register_name): Update.
7234
ea1e7ef6
GS
72352002-06-17 Grace Sainsbury <graces@redhat.com>
7236
7237 * m68k-tdep.c: Reindented.
7238
9b02dd1b
AC
72392002-06-17 Andrew Cagney <ac131313@redhat.com>
7240
7241 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7242 list of predefined types.
7243
8758dec1
MK
72442002-06-16 Mark Kettenis <kettenis@gnu.org>
7245
b6197528
MK
7246 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7247 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7248 REGISTER_CONVERT_TO_RAW): Remove defines.
7249 (i386_register_virtual_type, i386_register_convertible,
7250 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7251 Remove prototypes.
7252 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7253 macros mentioned above.
7254
82b47e62
MK
7255 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7256 (i386lynx_saved_pc_after_call): Remove prototype.
7257 * i386ly-tdep.c: Include "i386-tdep.h".
7258 (i386lynx_saved_pc_after_call): Make static. Use
7259 read_memory_nobpt instead of read_memory. Use
7260 read_memory_unsigned_integer instead of read_memory_integer.
7261 (i386lynx_init_abi): New function.
7262 (i386lynx_coff_osabi_sniffer): New function.
7263 (_initialize_i386bsd_tdep): New function.
7264
8758dec1
MK
7265 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7266 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7267 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7268 (i386_fix_call_dummy): Remove prototype.
7269 * i386-tdep.c (i386_call_dummy_words): New variable.
7270 (i386_gdbarch_init): Adjust for removal of the
7271 macros mentioned above.
7272
e9e68a56
AC
72732002-06-15 Andrew Cagney <ac131313@redhat.com>
7274
7275 * command.h (add_setshow_auto_boolean_cmd): Replace
7276 add_set_auto_boolean_cmd.
7277 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7278 add_set_auto_boolean_cmd.
7279 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7280 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7281 mask-address'' command.
7282 (show_mask_address): Add cmd parameter.
7283 * remote.c (add_packet_config_cmd): Update. Change type of
7284 set_func and show_func to cmd_sfunc_ftype.
7285 (_initialize_remote): Update `set remote Z-packet'
7286 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7287 (show_remote_protocol_e_packet_cmd): Ditto.
7288 (show_remote_protocol_E_packet_cmd): Ditto.
7289 (show_remote_protocol_P_packet_cmd): Ditto.
7290 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7291 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7292 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7293 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7294 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7295 (show_remote_protocol_Z_packet_cmd): Ditto.
7296 (show_remote_protocol_binary_download_cmd): Ditto.
7297 (show_remote_cmd): Pass NULL to all of above.
7298
fc08ec52
MK
72992002-06-15 Mark Kettenis <kettenis@gnu.org>
7300
7301 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7302 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7303 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7304 POP_FRAME): Remove defines.
7305 (i386_push_arguments, i386_store_struct_return,
7306 i386_extract_return_value, i386_store_return_value,
7307 i386_extract_struct_value_address, i386_push_dummy_frame,
7308 i386_pop_frame): Renove prototypes.
7309 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7310 macros mentioned above.
7311
e707bbc2
AC
73122002-06-15 Andrew Cagney <ac131313@redhat.com>
7313
7314 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7315 add_set_boolean_cmd.
7316 (add_setshow_cmd): New function.
7317 * command.h (add_setshow_boolean_cmd): Replace
7318 add_set_boolean_cmd.
7319 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7320 and ``set rdiromatzero''.
7321 * maint.c (_initialize_maint_cmds): Update commented out code.
7322 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7323 * target.c (initialize_targets): Update `set
7324 trust-readonly-sections'.
7325 * remote.c (_initialize_remote): Update `set remotebreak'.
7326
42fdc8df
MK
73272002-06-15 Mark Kettenis <kettenis@gnu.org>
7328
93924b6b
MK
7329 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7330 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7331 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7332 fit into multi-arch framework.
7333 (i386_breakpoint_from_pc): New function.
7334 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7335 above.
7336
42fdc8df
MK
7337 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7338 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7339 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7340 (i386_frameless_function_invocation, i386_frame_num_args,
7341 i386_frame_init_saved_regs): Remove prototypes.
7342 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7343 macros mentioned above.
7344
9773a94b
AC
73452002-06-15 Andrew Cagney <ac131313@redhat.com>
7346
7347 * cli/cli-decode.c (set_cmd_cfunc): Update.
7348 (set_cmd_sfunc): Update.
7349 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7350 (set_cmd_sfunc, set_cmd_cfunc): Update.
7351 * cli/cli-decode.h: Update.
7352
6e157172
MK
73532002-06-15 Mark Kettenis <kettenis@gnu.org>
7354
7355 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7356 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7357
7f19b9a2
AC
73582002-06-15 Andrew Cagney <ac131313@redhat.com>
7359
7360 * defs.h (auto_boolean): Declare enum.
7361 * command.h (cmd_auto_boolean): Delete enum.
7362 * mips-tdep.c (mask_address_var): Update.
7363 (mips_mask_address_p): Update.
7364 (show_mask_address): Update.
7365 * remote.c (struct packet_config): Update.
7366 (update_packet_config): Update.
7367 (show_packet_config_cmd): Update.
7368 (packet_ok): Update.
7369 (add_packet_config_cmd): Update.
7370 (_initialize_remote):
7371 * command.h: Update.
7372 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7373 (do_setshow_command): Update.
7374 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7375 * cli/cli-decode.h: Update.
7376
1cf88de5
MK
73772002-06-15 Mark Kettenis <kettenis@gnu.org>
7378
22ba8cf2
MK
7379 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7380 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7381 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7382 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7383 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7384 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7385
762c5349
MK
7386 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7387 list of DJGPP COFF targets.
7388
091198bb
MK
7389 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7390 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7391 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7392 (FP0_REGNUM): Remove define.
7393 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7394 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7395 (i386_register_virtual_size): Remove protoype.
7396 * i386-tdep.c (i386_register_virtual_size): Removed.
7397 (i386_extract_return_value, i386_store_return_value): Use
7398 FP0_REGNUM instead of NUM_FREGS to determine whether the
7399 floating-point registers are available.
7400 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7401 Adjust for removal of macros mentioned above.
7402
74032002-06-15 Mark Kettenis <kettenis@gnu.org>
7404
fcc9bf01
MK
7405 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7406 comments.
7407 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7408 Remove prototypes.
7409 (supply_gregset, fill_gregset): Remove use of register keyword and
7410 remove declaration for regmap. Use I386_NUM_GREGS instead of
7411 NUM_REGS and NUM_FREGS.
7412 (FPREGSET_FSAVE_OFFSET): Remove.
7413 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7414 NUM_FREGS to determine whether the floating-point registers are
7415 available.
7416
65e78234
MK
7417 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7418 gnu_store_registers): Replace usage of NUM_GREGS with
7419 I386_NUM_GREGS.
7420
98df6387
MK
7421 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7422 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7423 usage of NUM_GREGS with I386_NUM_GREGS.
7424
099a9414
MK
7425 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7426
57976e88
MK
7427 * i386bsd-nat.c: Include "i386-tdep.h".
7428 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7429 I386_NUM_GREGS.
7430
b335f4a6
MK
7431 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7432 and associated comment. They no longer make any sense, since we
7433 don't use this file anymore on Linux.
7434
1cf88de5
MK
7435 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7436 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7437 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7438 elements in these arrays.
7439 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7440 MAX_NUM_REGS.
7441
daa66587
MK
74422002-06-15 Mark Kettenis <kettenis@gnu.org>
7443
7444 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7445 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7446
26e9b323
AC
74472002-06-14 Andrew Cagney <cagney@redhat.com>
7448
7449 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7450 EXTRACT_RETURN_VALUE.
7451 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7452 EXTRACT_STRUCT_VALUE_ADDRESS.
7453 * gdbarch.h, gdbarch.c: Regenerate.
7454
7455 * values.c (value_being_returned): Handle
7456 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7457 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7458
7459 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7460 * arm-tdep.c (arm_gdbarch_init): Update.
7461 * avr-tdep.c (avr_gdbarch_init): Update.
7462 * cris-tdep.c (cris_gdbarch_init): Update.
7463 * d10v-tdep.c (d10v_gdbarch_init): Update.
7464 * ia64-tdep.c (ia64_gdbarch_init): Update.
7465 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7466 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7467 * s390-tdep.c (s390_gdbarch_init): Update.
7468 * sh-tdep.c (sh_gdbarch_init): Update.
7469 * s390-tdep.c (s390_gdbarch_init): Update.
7470 * sparc-tdep.c (sparc_gdbarch_init): Update.
7471 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7472 * v850-tdep.c (v850_gdbarch_init): Update.
7473 * vax-tdep.c (vax_gdbarch_init): Update.
7474 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7475 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7476
7477 * config/arc/tm-arc.h: Update.
7478 * config/d30v/tm-d30v.h: Update.
7479 * config/fr30/tm-fr30.h: Update.
7480 * config/h8300/tm-h8300.h: Update.
7481 * config/h8500/tm-h8500.h: Update.
7482 * config/i386/tm-i386.h: Update.
7483 * config/i386/tm-ptx.h: Update.
7484 * config/i386/tm-symmetry.h: Update.
7485 * config/i960/tm-i960.h: Update.
7486 * config/m32r/tm-m32r.h: Update.
7487 * config/m68k/tm-delta68.h: Update.
7488 * config/m68k/tm-linux.h: Update.
7489 * config/m68k/tm-m68k.h: Update.
7490 * config/m88k/tm-m88k.h: Update.
7491 * config/mcore/tm-mcore.h: Update.
7492 * config/mips/tm-mips.h: Update.
7493 * config/mn10200/tm-mn10200.h: Update.
7494 * config/pa/tm-hppa.h: Update.
7495 * config/pa/tm-hppa64.h: Update.
7496 * config/sparc/tm-sp64.h: Update.
7497 * config/sparc/tm-sparc.h: Update.
7498 * config/sparc/tm-sparclet.h: Update.
7499 * config/z8k/tm-z8k.h: Update.
7500
5179e78f
AC
75012002-06-14 Andrew Cagney <cagney@redhat.com>
7502
7503 * Makefile.in (i386_linux_tdep_h): Define.
7504 (i386_tdep_h, i387_tdep_h): Define.
7505 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7506 $(i386_tdep_h) and $(i387_tdep_h).
7507 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7508
8201327c
MK
75092002-06-14 Mark Kettenis <kettenis@gnu.org>
7510
edf393ac
MK
7511 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7512 Already covered by the default.
7513
896fb97d
MK
7514 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7515 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7516 (i386_gdbarch_init): Initialize long_double_format and long_double
7517 bit.
7518
8201327c
MK
7519 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7520 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7521 Move these to ...
7522 * config/i386/i386sol2.mh: ... here.
7523 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7524 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7525 (SIGCONTEXT_PC_OFFSET): Remove define.
7526 (IN_SIGTRAMP): Remove define.
7527 * i386-sol2-tdep.c: New file.
7528
7529 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7530 * config/i386/tm-i386nw.h: Removed.
7531
7532 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7533 USE_STRUCT_CONVENTION): Remove defines.
7534 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7535 (get_longjmp_target): Remove prototype.
7536 (IN_SIGTRAMP): Remove define.
7537 (i386bsd_in_sigtramp): Remove prototype.
7538 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7539 function. Update comment accordingly
7540 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7541 (FRAME_SAVED_PC): Remove define.
7542 (i386bsd_frame_saved_pc): Remove prototype.
7543 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7544 GET_LONGJMP_TARGET): Remove defines.
7545 (get_longjmp_target): Remove prototype.
7546 (IN_SIGTRAMP): Remove define.
7547 (i386bsd_in_sigtramp): Remove prototype.
7548 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7549 function. Update comment accordingly
7550 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7551 (FRAME_SAVED_PC): Remove define.
7552 (i386bsd_frame_saved_pc): Remove prototype.
7553 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7554 Remove prototype.
7555 (USE_STRUCT_CONVENTION): Remove prototype.
7556 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7557 declaration.
7558 (_initialize_i386bsd_nat): Revise logic to determine some
7559 constants at compile time when compiling a native GDB. Warn if
7560 things don't match up with what we expect.
7561 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7562 Remove variables.
7563 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7564 to use date stored in `struct gdbarch_tdep'.
7565 (i386bsd_sigcontext_offset): Remove varaible.
7566 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7567 stored in `struct gdbarch_tdep'.
7568 (i386bsd_frame_saved_pc): Make static.
7569 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7570 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7571 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7572 i386fbsd4_sc_pc_offset): New variables.
7573 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7574 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7575 functions.
7576 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7577 functions.
7578 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7579 Modify the value of i386fbsd_sigtramp_start and
7580 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7581 i386fbsd_sigtramp_end.
7582 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7583 function.
7584
7585 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7586 define to i386-linux-tdep.h.
7587 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7588 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7589 defines.
7590 (i386_linux_register_name, i386_linux_register_byte,
7591 i386_linux_register_raw_size): Remove prototypes.
7592 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7593 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7594 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7595 TARGET_WRITE_PC): Remove defines.
7596 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7597 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7598 i386_linux_write_pc): Remove prototypes.
7599 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7600 (get_longjmp_target): Remove prototype.
7601 * i386-linux-tdep.h: New file.
7602 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7603 * i386-linux-tdep.c: Include "i386-tdep.h" and
7604 "i386-linux-tdep.h".
7605 (i386_linux_register_name, i386_linux_register_byte,
7606 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7607 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7608 Make static.
7609 (i386_linux_init_abi): New function.
7610 (_initialize_i386_linux_tdep): New function.
7611
7612 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7613 (i386_saved_pc_after_call): Remove prototype.
7614 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7615 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7616 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7617 (i386_register_name, i386_stab_reg_to_regnum,
7618 i386_dwarf_reg_to_regnum): Remove prototypes.
7619 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7620 SIZEOF_SSE_REGS): Remove defines.
7621 (REGISTER_BYTES): Remove define.
7622 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7623 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7624 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7625 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7626 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7627 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7628 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7629 (get_longjmp_target): Remove prototype.
7630 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7631 (sigtramp_saved_pc): Remove define.
7632 (i386v4_sigtramp_saved_pc): Remove prototype.
7633 * config/i386/tm-go32.h (FRAME_CHAIN,
7634 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7635 (i386go32_frame_saved_pc): Remove prototype.
7636 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7637 (get_longjmp_target): Remove prototype.
7638 * i386-tdep.h: Include "osabi.h".
7639 (enum i386_abi): Removed.
7640 (enum struct_return): New enum.
7641 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7642 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7643 sc_pc_offset members.
7644 (i386_gdbarch_register_os_abi): Remove prototype.
7645 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7646 I386_SSE_NUM_REGS): New defines.
7647 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7648 I386_SSE_SIZEOF_REGS): New defines.
7649 (i386_register_name, i386_register_byte, i386_register_raw_size):
7650 New prototypes.
7651 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7652 (i386bsd_sigtramp_saved_pc): New prototype.
7653 * i386-tdep.c: Don't include "elf-bfd.h".
7654 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7655 i386_frame_chain, i386_saved_pc_after_call): Make static.
7656 (i386_frame_saved_pc): Rewrite to call architecture dependent
7657 function to deal with signal handlers. Make static.
7658 (i386go32_frame_saved_pc): Removed.
7659 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7660 Removed.
7661 (i386_get_longjmp_target): New function.
7662 (default_struct_convention, pcc_struct_convention,
7663 reg_struct_convention, valid_conventions, struct_convention): New
7664 variables.
7665 (i386_use_struct_convention): New function.
7666 (i386v4_sigtramp_saved_pc): Renamed to
7667 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7668 (i386_pc_in_sigtramp): New function.
7669 (i386_abi_names): Removed.
7670 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7671 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7672 Removed.
7673 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7674 i386_gdbarch_register_os_abi): Removed.
7675 (struct i386_abi_handler): Removed.
7676 (i386_abi_handler_list): Removed.
7677 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7678 functions.
7679 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7680 i386_nw_init_abi): New functions.
7681 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7682 Use set_gdbarch_xxx() calls instead of relying on macros for a
7683 number of calls.
7684 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7685 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7686 Register the various architecture variants defined in this file.
7687
ad2f7632
DJ
76882002-06-14 Daniel Jacobowitz <drow@mvista.com>
7689
7690 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7691 (struct main_type): Remove arg_types member. Update comments for
7692 struct field.
7693 (TYPE_ARG_TYPES): Remove.
7694 (TYPE_FN_FIELD_ARGS): Update.
7695 (smash_to_method_type): Update prototype.
7696
7697 * c-typeprint.c (cp_type_print_method_args): Take method type
7698 instead of argument list. Use new argument layout. Simplify.
7699 (c_type_print_args): Use new argument layout. Simplify.
7700 (c_type_print_base): Update call to cp_type_print_method_args.
7701 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7702 argument; use die->type instead. Update call to
7703 smash_to_method_type.
7704 (read_structure_scope): Update call to dwarf2_add_member_fn.
7705 * gdbtypes.c (allocate_stub_method): Update comment.
7706 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7707 Use new argument layout.
7708 (check_stub_method): Use new argument layout. Don't count
7709 void as an argument.
7710 (print_arg_types): Update comments. Use new argument layout.
7711 (recursive_dump_type): Don't print arg_types member.
7712 * hpread.c (hpread_read_struct_type): Use new argument layout.
7713 (fixup_class_method_type): Likewise.
7714 (hpread_type_lookup): Likewise.
7715 * stabsread.c (read_type): Update calls to read_args and
7716 smash_to_method_type.
7717 (read_args): Use new argument layout. Simplify.
7718 * valops.c (typecmp): Use new argument layout. Update parameters
7719 and comments. Simplify.
7720 (hand_function_call): Use new argument layout.
7721 (search_struct_method): Update call to typecmp.
7722 (find_overload_match): Use new argument layout.
7723
6da02953
DJ
77242002-06-13 Daniel Jacobowitz <drow@mvista.com>
7725
7726 * NEWS: Mention multithreaded debug support for gdbserver.
7727
519b2366
DJ
77282002-06-13 Daniel Jacobowitz <drow@mvista.com>
7729
7730 * MAINTAINERS: Mention NEWS.
7731
6c0d6680
DJ
77322002-06-13 Daniel Jacobowitz <drow@mvista.com>
7733
7734 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7735 (struct mips_objfile_private, compare_pdr_entries): New.
7736 (non_heuristic_proc_desc): Read the ".pdr" section if it
7737 is present.
7738
6529d2dd
AC
77392002-06-12 Andrew Cagney <ac131313@redhat.com>
7740
7741 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7742 (arm_debug): New static variable.
7743 (_initialize_arm_tdep): Add ``set debug arm'' command.
7744
26216b98
AC
77452002-06-12 Andrew Cagney <ac131313@redhat.com>
7746
7747 * Makefile.in (sim_arm_h): Define.
7748 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7749 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7750 (arm_register_sim_regno): New function, map an internal REGNUM
7751 onto a simulator register number.
7752 (arm_gdbarch_init): Set register_sim_regno.
7753
814b3ba0
AH
77542002-06-09 Aldy Hernandez <aldyh@redhat.com>
7755
7756 * MAINTAINERS: Add self.
7757
475b0867
JB
77582002-06-11 Jim Blandy <jimb@redhat.com>
7759
919d772c
JB
7760 * source.c (source_info): Mention whether the symtab has
7761 information about preprocessor macros.
7762
475b0867
JB
7763 Call the command `info macro', not `show macro'.
7764 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7765 Fix error message.
7766 (_initialize_macrocmd): Register `info_macro_command' in
7767 `infolist', not `showlist'.
7768
9e364162
DJ
77692002-06-11 Daniel Jacobowitz <drow@mvista.com>
7770
7771 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7772 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7773 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7774 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7775 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7776 unconditionally.
7777 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7778 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7779 (_initialize_mips_tdep): Remove dead code.
7780 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7781 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7782 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7783 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7784 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7785 MIPS_LAST_FP_ARG_REGNUM): Remove.
7786
23aa4c72
ML
77872002-06-11 Michal Ludvig <mludvig@suse.cz>
7788
7789 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7790 (unwind_tmp_obstack_free, parse_frame_info)
7791 (update_context, cfi_read_fp, cfi_write_fp)
7792 (cfi_frame_chain, cfi_init_extra_frame_info)
7793 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7794 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7795
70eb15a4
CV
77962002-06-11 Corinna Vinschen <vinschen@redhat.com>
7797
7798 * v850-tdep.c (v850_type_is_scalar): New function.
7799 (v850_use_struct_convention): Match current gcc implementation
7800 as close as possible.
7801 (v850_push_arguments): Fix stack_offset handling. Don't write
7802 struct_addr into register. This is done by v850_store_struct_return.
7803 (v850_extract_return_value): Care for structs.
7804 (v850_store_return_value): Ditto.
7805 (v850_store_struct_return): Actually write address.
7806
482a4d06
ML
78072002-06-11 Michal Ludvig <mludvig@suse.cz>
7808
7809 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7810 without debug information too.
7811
d855c300
AC
78122002-06-10 Andrew Cagney <ac131313@redhat.com>
7813
7814 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7815 Make multi-arch pure.
7816 * gdbarch.h, gdbarch.c: Re-generate.
7817 * arm-tdep.c (arm_print_float_info): Update.
7818 * arch-utils.h (default_print_float_info): Update.
7819 * arch-utils.c (default_print_float_info): Update.
7820 * infcmd.c (float_info): Update call.
7821
dd12a101
AC
78222002-06-10 Andrew Cagney <ac131313@redhat.com>
7823
7824 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7825 the front of the initialize list.
7826
101dcfbe
AC
78272002-06-10 Andrew Cagney <ac131313@redhat.com>
7828
7829 * infrun.c (struct inferior_status): Replace fields
7830 selected_frame_address and selected_level with field
7831 selected_frame_id.
7832 (save_inferior_status): Update. Use get_frame_id.
7833 (struct restore_selected_frame_args): Delete.
7834 (restore_selected_frame): Update. Use frame_find_by_id.
7835 (restore_inferior_status): Update.
7836
7837 * breakpoint.h (struct breakpoint): Change type of
7838 watchpoint_frame to frame_id.
7839 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7840 call to get_current_frame.
7841 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7842 get_current_frame.
7843 (watchpoint_check): Use frame_find_by_id.
7844
7845 * frame.h (record_selected_frame): Delete declaration.
7846 * stack.c (record_selected_frame): Delete function.
7847
7848 * frame.h (struct frame_id): Define.
7849 (get_frame_id): Declare.
7850 (frame_find_by_id): Declare.
7851 * frame.c (frame_find_by_id): New function.
7852 (get_frame_id): New function.
7853
304270b6
AV
78542002-06-10 Andrey Volkov <avolkov@transas.com>
7855
7856 * ser-e7kpc.c: Fix duplicated define and call of
7857 _initialize_ser_e7000pc
7858
2f2cf184
DJ
78592002-06-09 Daniel Jacobowitz <drow@mvista.com>
7860
7861 * signals/signals.c (target_signal_from_host): Fix #ifdef
7862 SIGRTMIN case.
7863 (do_target_signal_to_host): Likewise.
7864
caaa3122
DJ
78652002-06-09 Daniel Jacobowitz <drow@mvista.com>
7866
7867 * mips-tdep.c (mips_find_abi_section): New function.
7868 (mips_gdbarch_init): Call it.
7869
6ac5df3a
MK
78702002-06-09 Mark Kettenis <kettenis@gnu.org>
7871
7872 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7873 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7874 after Andrew's 2002-06-08 gdbarch change.
7875
82ea117a
MK
78762002-06-09 Mark Kettenis <kettenis@gnu.org>
7877
7878 * i386-linux-nat.c (suppy_gregset): Don't supply
7879 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7880 register cache.
7881 (fill_gregset): Don't fetch it under the same circumstances.
7882
3c25f8c7
AC
78832002-06-09 Andrew Cagney <cagney@redhat.com>
7884
7885 * Makefile.in (callback_h): Define.
7886 (remote_sim_h): Update path to remote-sim.h.
7887 (remote-rdp.o): Add $(callback_h).
7888 (remote-sim.o): Use $(callback_h).
7889 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7890 * remote-rdp.c: Include "gdb/callback.h".
7891
1029b7fa
MK
78922002-06-09 Mark Kettenis <kettenis@gnu.org>
7893
7894 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7895 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7896
616675d3
AC
78972002-06-08 Andrew Cagney <ac131313@redhat.com>
7898
a3efda28
AC
7899 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7900 * rdi-share/serpardr.c: Ditto.
7901 * rdi-share/unixcomm.c: Ditto.
7902 * rdi-share/serdrv.c: Ditto.
7903 * rdi-share/hostchan.h: Ditto.
7904 * rdi-share/hostchan.c: Ditto.
7905 * rdi-share/host.h: Ditto.
7906 * rdi-share/devsw.c: Ditto.
7907
c5f10366
AC
7908 * objfiles.h: Change type of obj_private to void pointer.
7909 * pa64solib.c: Update copyright. Don't include "assert.h", use
7910 strcmp instead of STREQ, use LONGEST, do not use PTR
7911 * somsolib.c: Ditto.
7912
616675d3
AC
7913 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7914 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7915 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7916
e4b415d9
AC
79172002-06-08 Andrew Cagney <ac131313@redhat.com>
7918
7919 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7920 (default_get_saved_register): Delete function.
7921 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7922 generic_unwind_get_saved_register.
7923 * gdbarch.h, gdbarch.c: Re-generate.
7924
ca0d0b52
AC
79252002-06-08 Andrew Cagney <ac131313@redhat.com>
7926
7927 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7928 generic_func_frame_chain_valid.
7929 * gdbarch.h, gdbarch.c: Re-generate.
7930 * blockframe.c (generic_func_frame_chain_valid): Only check
7931 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7932 passing FP to PC_IN_CALL_DUMMY.
7933 Fix PR gdb/360.
7934
76860b5f
AC
79352002-06-08 Andrew Cagney <ac131313@redhat.com>
7936
7937 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7938 (register_gdbarch_data): Initialize init_p.
7939 (gdbarch_data): Initialize data pointer using the init function.
7940 (init_gdbarch_data): Delete function.
7941 (gdbarch_update_p): Update.
7942 (initialize_non_multiarch): Update.
7943 (struct gdbarch): Add field initialized_p.
7944 * gdbarch.h, gdbarch.c: Re-generate.
7945
8dda9770
ML
79462002-06-07 Michal Ludvig <mludvig@suse.cz>
7947
7948 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7949 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7950 better do the things actually here.
7951 * x86-64-tdep.c (x86_64_register_name2nr): New.
7952 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7953 (x86_64_gdbarch_init): Respect the above change.
7954 * x86-64-tdep.h (x86_64_register_name2nr)
7955 (x86_64_register_nr2name): Add prototypes.
7956 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7957
3d79a47c
MS
79582002-06-06 Michael Snyder <msnyder@redhat.com>
7959
7bd91a28
MS
7960 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7961 Delete extra braces and re-indent.
7962 (d10v_store_return_value): Char return values
3d79a47c
MS
7963 must be shifted over by one byte in R0.
7964 (d10v_extract_return_value): Delete extra braces, re-indent.
7965
095a4c96
EZ
79662002-06-06 Elena Zannoni <ezannoni@redhat.com>
7967
7968 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7969 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7970 (d10v_integer_to_address): Rewrite.
7971 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7972 the d10v specific functions which take care of converting to the
7973 correct space.
7974
e8a77ca4
EZ
79752002-06-06 Elena Zannoni <ezannoni@redhat.com>
7976
7977 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7978 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7979
4f2e4a4f
AC
79802002-06-02 Andrew Cagney <ac131313@redhat.com>
7981
7982 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7983 includes.
7984 * config/tm-linux.h: Ditto.
7985 * config/alpha/tm-alphalinux.h: Ditto.
7986 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7987 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7988 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7989 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7990 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7991 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7992 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7993 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7994 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7995 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7996 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7997 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7998 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7999 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8000 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8001 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8002 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8003 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8004 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8005 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8006 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8007 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8008 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8009 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8010 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8011 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8012 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8013 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8014 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8015 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8016 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8017 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8018 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8019 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8020 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8021 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8022 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8023
ae2ab2ce
AS
80242002-05-04 Aidan Skinner <aidan@velvet.net>
8025
8026 * ada-exp.tab.c: New file
8027 * ada-exp.y: New file
8028 * ada-lang.c: New file
8029 * ada-lang.h: New file
8030 * ada-lex.c: New file
8031 * ada-lex.l: New file
8032 * ada-tasks.c: New file
8033 * ada-typeprint.c: New file
8034 * ada-valprint.c: New file
8035
0ddd0135
JT
80362002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8037
8038 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8039 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8040
750fbacc
JT
80412002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8042
8043 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8044 insetead of ppc-linux-tdep.o.
8045 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8046 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8047
df94e18a
AC
80482002-06-02 Andrew Cagney <ac131313@redhat.com>
8049
8050 2002-05-07 Christian Groessler <chris@groessler.org>
8051 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8052 bit register contents for little endian hosts.
8053
1a38ab75
AC
80542002-06-01 Andrew Cagney <ac131313@redhat.com>
8055
8056 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8057 any maintainer.
8058
8b1632ac
AC
80592002-06-01 Andrew Cagney <ac131313@redhat.com>
8060
8061 * gdbarch.h: Regenerate.
8062
627054c8
AC
80632002-06-01 Andrew Cagney <ac131313@redhat.com>
8064
8065 * MAINTAINERS: Add everyone to write-after-approval list.
8066
4f460812
AC
80672002-06-01 Andrew Cagney <ac131313@redhat.com>
8068
8069 * stack.c (frame_info): Use frame_register_unwind instead of
8070 saved_regs. Mention when the SP is on the stack or in a register.
8071
8072 * frame.h (frame_register_unwind_ftype): Define. Document.
8073 (struct frame_info): Add field register_unwind and
8074 register_unwind_cache.
8075 (frame_register_unwind): Declare.
8076 (generic_unwind_get_saved_register): Declare.
8077
8078 * frame.c (frame_register_unwind): New function.
8079 (generic_unwind_get_saved_register): New function.
8080
8081 * blockframe.c (generic_call_dummy_register_unwind): New function.
8082 (frame_saved_regs_register_unwind): New function.
8083 (set_unwind_by_pc): New function.
8084 (create_new_frame): New function.
8085 (get_prev_frame): New function.
8086
de888f76
AC
80872002-05-30 Andrew Cagney <ac131313@redhat.com>
8088
8089 * a29k-share/: Delete directory.
8090 * remote-vx29k.c: Delete file.
8091
2f2c3626
JT
80922002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8093
8094 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8095 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8096
9ce5c36a
JT
80972002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8098
8099 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8100 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8101 (sparc64nbsd-nat.o)
8102 (sparcnbsd-nat.o)
8103 (sparcnbsd-tdep.o): New dependency lists.
8104 * NEWS: Note new UltraSPARC NetBSD native configuration.
8105 * configure.host (sparc64-*-netbsd*): New host.
8106 * configure.tgt (sparc-*-netbsdelf*)
8107 (sparc-*-netbsd*): Set gdb_target to nbsd.
8108 (sparc64-*-netbsd*): New target.
8109 * sparc64nbsd-nat.c: New file.
8110 * sparcnbsd-nat.c: New file.
8111 * sparcnbsd-tdep.c: New file.
8112 * sparcnbsd-tdep.h: New file.
8113 * config/sparc/nbsd.mt: New file.
8114 * config/sparc/nbsd64.mh: New file.
8115 * config/sparc/nbsd64.mt: New file.
8116 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8117 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8118 (HOST_IPC): Remove.
8119 * config/sparc/nbsdaout.mt: Remove.
8120 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8121 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8122 (HOST_IPC): Remove.
8123 * config/sparc/nbsdelf.mt: Remove.
8124 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8125 sparc-nat.c compatiblity defines.
8126 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8127 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8128 * config/sparc/tm-nbsd64.h: New file.
8129 * config/sparc/tm-nbsdaout.h: Remove.
8130 * config/sparc/xm-nbsd.h: Remove.
8131
ef3cf062
JT
81322002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8133
8134 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8135 * sparc-tdep.c: Include osabi.h.
8136 (gdbarch_tdep): Add osabi member.
8137 (_initialize_sparc_tdep): Use gdbarch_register.
8138 (sparc_gdbarch_init): Use generic OS ABI framework.
8139 (sparc_dump_tdep): New function.
8140
ee8ff470
KB
81412002-05-30 Kevin Buettner <kevinb@redhat.com>
8142
8143 * corefile.c (do_captured_read_memory_integer): Return non-zero
8144 result.
8145 (safe_read_memory_integer): Copy result of memory read when
8146 status is non-zero. Also, add comments.
8147
7b112f9c
JT
81482002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8149
8150 * Makefile.in (ppc_tdep_h): Define.
8151 (ppc-linux-nat.o)
8152 (ppc-linux-tdep.o)
8153 (rs6000-tdep.o): Use $(ppc_tdep_h).
8154 (ppc-sysv-tdep.o)
8155 (ppcnbsd-nat.o)
8156 (ppcnbsd-tdep.o): New dependency lists.
8157 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
8158 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8159 (ppc_linux_init_abi): New functions.
7b112f9c
JT
8160 (ppc_sysv_abi_broken_use_struct_convention)
8161 (ppc_sysv_abi_use_struct_convention)
8162 (ppc_sysv_abi_push_arguments): Move to...
8163 * ppc-sysv-tdep.c: ...here.
8164 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8165 * rs6000-tdep.c (process_note_abi_tag_sections)
8166 (get_elfosabi): Remove.
8167 (rs6000_gdbarch_init): Use generic OS ABI framework.
8168 (rs6000_dump_tdep): New function.
8169 (_initialize_rs6000_tdep): Use gdbarch_register.
8170 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8171 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8172 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8173 of ppc-linux-tdep.o.
8174 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8175 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8176 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8177 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8178 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8179 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8180
480dd42a
JB
81812002-05-29 Jim Blandy <jimb@redhat.com>
8182
8183 * macroscope.c (default_macro_scope): Put `void' in empty argument
8184 list.
8185
4182591f
AC
81862002-05-29 Andrew Cagney <ac131313@redhat.com>
8187
8188 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8189 * arch-utils.c: Include "sim-regno.h".
8190 * gdbarch.sh: Don't include "sim-regno.h".
8191 * gdbarch.h, gdbarch.c: Regenerate.
8192 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8193 here.
8194 * arch-utils.h (legacy_register_sim_regno): To here.
8195 * remote-sim.c (legacy_register_sim_regno): Move function from
8196 here.
8197 * arch-utils.c (legacy_register_sim_regno): To here.
8198
8238d0bf
AC
81992002-05-28 Andrew Cagney <ac131313@redhat.com>
8200
8201 * sim-regno.h: New file.
8202 * Makefile.in (sim_regno_h): Define.
8203 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8204 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8205 (legacy_register_sim_regno): New function.
8206 (one2one_register_sim_regno): New function.
8207 (gdbsim_fetch_register): Rewrite.
8208 (gdbsim_store_register): Only store a register when
8209 REGISTER_SIM_REGNO is valid.
8210 * d10v-tdep.c: Include "sim-regno.h".
8211 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8212 (d10v_ts3_register_sim_regno): Ditto.
8213 * gdbarch.sh: Include "sim-regno.h".
8214 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8215 * gdbarch.h, gdbarch.c: Regenerate.
8216 * arch-utils.h (default_register_sim_regno): Delete declaration.
8217 * arch-utils.c (default_register_sim_regno): Delete function.
8218
485721b1
JT
82192002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8220
8221 * ppcnbsd-nat.c: Rewrite.
8222 * ppcnbsd-tdep.c: New file.
8223 * ppcnbsd-tdep.h: New file.
8224 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8225 solib.o, and solib-svr4.o.
8226 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8227 nbsd-tdep.o, and corelow.o.
8228
697f244d
AC
82292002-05-28 Andrew Cagney <ac131313@redhat.com>
8230
8231 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8232 `tr' and `sed'. Mention that `broken' targets are not expected to
8233 build.
8234
f08caad1 82352002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
8236
8237 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8238 Let PC point right after the prologue before looking up symbols.
8239
3139facc
MH
82402002-05-27 Martin M. Hunt <hunt@redhat.com>
8241
8242 * i386-tdep.c (i386_register_virtual_type): Return
8243 builtin_type_vec128i for SSE registers.
8244
8245 * gdbtypes.h (builtin_type_vec128i): Declare.
8246
8247 * gdbtypes.c (build_builtin_type_vec128i): New function.
8248 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8249 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8250 (build_gdbtypes): Initialize new builtin vector types.
8251 (_initialize_gdbtypes): Register new vector types with gdbarch.
8252
6e3ba3b8
JT
82532002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8254
8255 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8256 since it has been multi-arch'd.
8257 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8258 Move Alpha and VAX multi-arch news entries to same section
8259 as other multi-arch news.
8260
93d5585d
JT
82612002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8262
8263 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8264 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8265 static. Rename some register numbers to put them in ns32k-tdep
8266 private namespace.
8267 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8268 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8269 functions.
8270 (_initialize_ns32k_tdep): Use gdbarch_register.
8271 * ns32k-tdep.h: New file.
8272 * ns32knbsd-tdep.c: New file.
8273 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8274 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8275 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8276 REGISTER_BYTES, REGISTER_BYTE): Remove.
8277 * config/ns32k/tm-ns32k.h: New file.
8278 * config/ns32k/tm-umax.h: Remove.
8279
efb2c70e
JT
82802002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8281
8282 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8283 ns32k_store_struct_return, ns32k_extract_return_value,
8284 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8285 functions.
8286 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8287 ns32k_saved_pc_after_call.
8288 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8289 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8290 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8291 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8292 ns32k_extract_struct_value_address.
8293
7bcc927b
JT
82942002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8295
8296 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8297 ns32k_fix_call_dummy): New.
8298 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8299 ns32k_call_dummy_words.
8300 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8301 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8302 CALL_DUMMY_NARGS): Remove.
8303 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8304
78f9d765
JT
83052002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8306
8307 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8308 ns32k_frame_saved_pc, ns32k_frame_args_address,
8309 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8310 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8311 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8312 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8313 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8314 (BREAKPOINT): Remove..
8315 (FRAME_CHAIN): Define as ns32k_frame_chain.
8316 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8317 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8318 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8319 (FRAME_FIND_SAVED_REGS): Remove.
8320 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8321 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8322 (POP_FRAME): Define as ns32k_pop_frame.
8323
f2c762e0
JT
83242002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8325
8326 * ns32k-tdep.c (ns32k_register_byte_32082,
8327 ns32k_register_byte_32382, ns32k_register_raw_size,
8328 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8329 functions.
8330 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8331 ns32k_register_byte_32382.
8332 * config/ns32k/tm-umax.h: Update copyright years.
8333 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8334 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8335 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8336 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8337 (ns32k_get_enter_addr): Fix prototype.
8338
af137673
JT
83392002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8340
8341 * ns32k-tdep.c: Update copyright years.
8342 (ns32k_register_name_32082): New function.
8343 (ns32k_register_name_32382): Ditto.
8344 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8345 (REGISTER_NAME): Define as ns32k_register_name_32382.
8346 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8347 (REGISTER_NAME): Define as ns32k_register_name_32082.
8348
a8bc7b56
JB
83492002-05-24 Jim Blandy <jimb@redhat.com>
8350
8351 * dwarf2read.c (free_line_header): Use xfree, not free.
8352
83a45910
JT
83532002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8354
8355 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8356 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8357
0db71247
AC
83582002-05-23 Andrew Cagney <ac131313@redhat.com>
8359
8360 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8361
b9e5e4dd
AC
83622002-05-23 Andrew Cagney <ac131313@redhat.com>
8363
8364 From Ross Alexander at NEC Europe:
8365 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8366
de530e84
MS
83672002-05-23 Michael Snyder <msnyder@redhat.com>
8368
8369 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8370 for input, rather than parse_and_eval_address.
8371
b91b96f4
AC
83722002-05-23 Andrew Cagney <ac131313@redhat.com>
8373
8374 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8375 * Makefile.in (sim_d10v_h): Update definition.
8376
8b279e7a
AC
83772002-05-24 Andrew Cagney <cagney@redhat.com>
8378
8379 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8380 change `2002-05-22 Michael Snyder' below.
8381 (d10v_push_arguments): Ditto.
8382 (d10v_extract_return_value): Ditto.
8383
0a3d0425
JB
83842002-05-23 Jim Blandy <jimb@redhat.com>
8385
8386 * macrotab.c (check_for_redefinition): Don't complain if the new
8387 definition is the same as the previous one. Take more arguments
8388 to allow the comparison.
8389 (macro_define_object, macro_define_function): Pass more arguments
8390 to check_for_redefinition.
8391
78eac43e
MS
83922002-05-22 Michael Snyder <msnyder@redhat.com>
8393
8394 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8395 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8396 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8397 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8398 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8399 Add a temp variable to save a call (and a memory read).
8400 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8401 if possible (so that PC_IN_CALL_DUMMY will work).
8402
9bc1edb8
CV
84032002-05-22 Corinna Vinschen <vinschen@redhat.com>
8404
8405 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8406
005ef3d2
ML
84072002-05-22 Michal Ludvig <mludvig@suse.cz>
8408
8409 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8410 fde->cie_ptr.
8411 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8412 (dwarf2_build_frame_info): Add offset to fde->initial_location
8413 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
8414 (execute_stack_op): Change type of 'result' from ULONGEST to
8415 CORE_ADDR.
005ef3d2 8416
fcf4f891
JT
84172002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8418
8419 * config/alpha/tm-nbsd.h: Include solib.h.
8420
cfef91e4
JT
84212002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8422
8423 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8424 assumptions about the host's byte order.
8425
9964235a
JT
84262002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8427
8428 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8429 to dependency list.
8430 * alphanbsd-tdep.c: Include solib-svr4.h.
8431 * shnbsd-tdep.c: Ditto.
8432
9eeef8ef
JT
84332002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8434
8435 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8436 nbsd-tdep.h to dependency list.
8437 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8438 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8439 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8440 nbsdaout.mh and nbsdelf.mh consistently.
8441 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8442 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8443 nbsdaout.mt and nbsdelf.mh consistently.
8444 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8445 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8446 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8447 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8448 a.out shared library stuff from here...
8449 * config/nm-nbsdaout.h: ...to here.
8450 * config/tm-nbsd.h: Remove.
8451 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8452 * config/arm/nbsd.mh: Remove.
8453 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8454 nbsd-tdep.o.
8455 * config/arm/nbsdaout.mh: New file.
8456 * config/arm/nbsdelf.mh: New file.
8457 * config/arm/nm-nbsdaout.h: New file.
8458 * config/i386/nbsd.mh: Remove.
8459 * config/i386/nbsd.mt: Remove.
8460 * config/i386/nbsdaout.mh: New file.
8461 * config/i386/nbsdaout.mt: New file.
8462 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8463 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8464 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8465 i386_register_u_addr): Remove.
8466 * config/i386/nm-nbsdaout.h: New file.
8467 * config/i386/nm-nbsdelf.h: Remove.
8468 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8469 (USE_STRUCT_CONVENTION): Remove.
8470 * config/i386/tm-nbsdaout.h: New file.
8471 * config/i386/tm-nbsdelf.h: Remove.
8472 * config/m68k/nbsd.mh: Remove.
8473 * config/m68k/nbsd.mt: Remove.
8474 * config/m68k/nbsdaout.mh: New file.
8475 * config/m68k/nbsdaout.mt: New file.
8476 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8477 * config/m68k/nm-nbsdaout.h: New file.
8478 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8479 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8480 * config/ns32k/nbsd.mh: Remove.
8481 * config/ns32k/nbsd.mt: Remove.
8482 * config/ns32k/nbsdaout.mh: New file.
8483 * config/ns32k/nbsdaout.mt: New file.
8484 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8485 * config/ns32k/nm-nbsdaout.h: New file.
8486 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8487 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8488 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8489 (SVR4_SHARED_LIBS): Remove.
8490 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8491 * config/sparc/nbsd.mh: Remove.
8492 * config/sparc/nbsd.mt: Remove.
8493 * config/sparc/nbsdaout.mh: New file.
8494 * config/sparc/nbsdaout.mt: New file.
8495 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8496 * config/sparc/nbsdelf.mt: New file.
8497 * config/sparc/nm-nbsdaout.h: New file.
8498 * config/sparc/nm-nbsdelf.h: Remove.
8499 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8500 * config/sparc/tm-nbsdaout.h: New file.
8501
257ce470
JT
85022002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8503
8504 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8505 mipsnbsd-tdep.c
8506 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8507
76a6d5fe
JT
85082002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8509
8510 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8511 shnbsd-nat.c.
8512 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8513
45888261
JT
85142002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8515
8516 * NEWS: Note new MIPS NetBSD native configuration.
8517 * configure.host (mips*-*-netbsd*): New host.
8518 * configure.tgt (mips*-*-netbsd*): New target.
8519 * mipsnbsd-nat.c: New file.
8520 * mipsnbsd-tdep.c: New file.
8521 * mipsnbsd-tdep.h: New file.
8522 * config/mips/nbsd.mh: New file.
8523 * config/mips/nbsd.mt: New file.
8524 * config/mips/nm-nbsd.h: New file.
8525 * config/mips/tm-nbsd.h: New file.
8526
70f80edf
JT
85272002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8528
8529 * Makefile.in (SFILES): Add osabi.c.
8530 (COMMON_OBS): Add osabi.o.
8531 (osabi.o): New dependency list.
8532 * osabi.c: New file.
8533 * osabi.h: New file.
8534 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8535
8536 * Makefile.in (alpha_tdep_h): Define and use instead of
8537 alpha-tdep.h.
8538 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8539 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8540 Remove.
8541 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8542 * alpha-tdep.h: Include osabi.h.
8543 (alpha_abi): Remove.
8544 (gdbarch_tdep): Use generic OS ABI framework.
8545 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8546 gdbarch_register_osabi.
8547 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8548 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8549 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8550
8551 * Makefile.in (sh_tdep_h): Add osabi.h.
8552 * sh-tdep.h (sh_osabi): Remove.
8553 (gdbarch_tdep): Use generic OS ABI framework.
8554 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8555 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8556 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8557 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8558
8559 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8560 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8561 gdbarch_register_osabi.
8562 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8563 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8564 (get_elfosabi): Rename to...
8565 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8566 ABI framework support routines.
8567 (arm_gdbarch_init): Use generic OS ABI framework.
8568 (arm_dump_tdep): Likewise.
8569 (_initialize_arm_tdep): Likewise.
8570 * arm-tdep.h: Include osabi.h.
8571 (arm_abi): Remove.
8572 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8573 osabi member.
8574 (arm_gdbarch_register_os_abi): Remove prototype.
8575 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8576 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8577
8578 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8579 * mips-tdep.c: Include osabi.h.
8580 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8581 OS ABI framework.
8582
d194345b
KH
85832002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8584
8585 * h8300-tdep.c: Fix formatting.
8586
70c6b0d1
EZ
85872002-05-20 Elena Zannoni <ezannoni@redhat.com>
8588
8589 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8590 printing vector registers.
8591
165b8e33
AC
85922002-05-19 Andrew Cagney <ac131313@redhat.com>
8593
8594 From Fernando Nasser:
8595 * remote.c (remote_async_open_1): Re-throw the exception when the
8596 connection fails.
8597 (remote_cisco_open): Ditto.
8598 (remote_open_1): Ditto.
8599
36918e70
AC
86002002-05-19 Andrew Cagney <ac131313@redhat.com>
8601
8602 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8603 (remote_start_remote): Add uiout parameter. Pass through to
8604 remote_start_remote_dummy.
8605 (remote_open_1): Use catch_exception instead of catch_errors.
8606 (remote_async_open_1): Ditto.
8607 (remote_cisco_open): Ditto.
8608
ae44c0c4
AC
86092002-05-19 Andrew Cagney <ac131313@redhat.com>
8610
8611 * remote.c (remote_start_remote): Replace PTR with void pointer.
8612 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8613 static.
8614
8efe637d
AC
86152002-05-18 Andrew Cagney <ac131313@redhat.com>
8616
8617 * gdb_indent.sh: Allow the script to be run in the sim directory.
8618
2f1b5984
MK
86192002-05-18 Mark Kettenis <kettenis@gnu.org>
8620
f0f625e2
MK
8621 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8622 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8623
2f1b5984
MK
8624 * corelow.c (core_open): Only call set_gdbarch_from_file if
8625 exec_bfd is NULL.
8626
fc974602
AV
86272002-05-17 Andrey Volkov <avolkov@transas.com>
8628
8629 * h8300-tdep.c: Add support of EXR register
8630 * config/h8300/tm-h8300.h: Ditto.
8631
906709f4
AV
86322002-05-17 Andrey Volkov <avolkov@transas.com>
8633
8634 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8635
6e591d68
AV
86362002-05-17 Andrey Volkov <avolkov@transas.com>
8637
8638 * h8300-tdep.c: Change literal regnums to REGNO.
8639
84f0252a
JB
86402002-05-17 Jim Blandy <jimb@redhat.com>
8641
e0e9281e
JB
8642 * NEWS: Note addition of macro support.
8643
84f0252a
JB
8644 Expand preprocessor macros in C expressions.
8645 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8646 (scan_macro_expansion, scanning_macro_expansion,
8647 finished_macro_expansion): New function declarations.
8648 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8649 variable declarations.
8650 * parser-defs.h (expression_context_pc): New declaration.
8651 * parse.c (expression_context_pc): New variable.
8652 (parse_exp_1): Set expression_context_pc, as well as
8653 expression_context_block.
8654 * c-exp.y (yylex): If we're not already reading the result of a
8655 macro expansion, try to macro-expand the next token. When we're
8656 done scanning a macro expansion, switch back to the mainline text.
8657 Commas and `if's in a macro's expansion don't terminate the input.
8658 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8659 (macro_original_text, macro_expanded_text,
8660 expression_macro_lookup_func, expression_macro_lookup_baton): New
8661 variables.
8662 (scan_macro_expansion, scanning_macro_expansion,
8663 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8664 c_preprocess_and_parse): New functions.
8665 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8666 c_preprocess_and_parse, instead of c_parse.
8667 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8668 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8669
1c509ca8
JR
8670Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8671
8672 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8673 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8674 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8675
2250ee0c
CV
86762002-05-17 Corinna Vinschen <vinschen@redhat.com>
8677
8678 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8679
ab3b8126
JT
86802002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8681
8682 * Makefile.in (sh_tdep_h): Define and use.
8683 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8684 register enum): Move to...
8685 * * sh-tdep.h: ...here.
8686 * sh-tdep.c: Include sh-tdep.h.
8687 * sh3-rom.c: Likewise.
8688 * shnbsd-tdep.c: Likewise.
8689
ed9d4749
MS
86902002-05-16 Michael Snyder <msnyder@redhat.com>
8691
8692 * arm-tdep.c: Spelling fix in comment.
8693
2e276125
JB
86942002-05-16 Jim Blandy <jimb@redhat.com>
8695
6821892e
JB
8696 Add commands for manually expanding macros and showing their
8697 definitions.
8698 * macrocmd.c, macroscope.c, macroscope.h: New files.
8699 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8700 (macroscope_h): New variable.
8701 (HFILES_NO_SRCDIR): Add macroscope.h.
8702 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8703 (macroscope.o, macrocmd.o): New rules.
8704
2e276125
JB
8705 Teach the Dwarf 2 reader to read macro information.
8706 * dwarf2read.c: #include "macrotab.h".
8707 (dwarf_macinfo_buffer): New variable.
8708 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8709 dwarf_macinfo_size.
8710 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8711 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8712 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8713 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8714 dwarf2_macro_spaces_in_definition): New complaints.
8715 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8716 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8717 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8718 the partial symbol table.
8719 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8720 from what's recorded in the partial symbol table.
8721 (read_file_scope): If the compilation unit has a
8722 `DW_AT_macro_info' attribute, read its macro information.
8723 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8724
2f53fe6c
DJ
87252002-05-16 Daniel Jacobowitz <drow@mvista.com>
8726
8727 Fix PR gdb/546
8728 * ser-tcp.c: Don't include <netinet/udp.h>.
8729
2be99286
SC
87302002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8731
8732 * MAINTAINERS: Update my email address.
8733
c9af212b 87342002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8735
8736 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8737 include file of the same name.
8738
bf5f1a52
CV
87392002-05-16 Corinna Vinschen <vinschen@redhat.com>
8740
8741 * configure.tgt: Mark v850 as multi-arched.
8742 * config/v850/tm-v850.h: Remove file.
8743 * config/v850/v850.mt: Eliminate TM_FILE.
8744
435e042a
CV
87452002-05-16 Corinna Vinschen <vinschen@redhat.com>
8746
8747 * v850-tdep.c: Full multi-arch.
8748 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8749 Define GDB_MULTI_ARCH to 2.
8750
9819c6c8
PM
87512002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8752
8753 * p-exp.y (current_type): New static variable.
8754 Carries the type of the expression at the position that is parsed.
8755 (push_current_type, pop_current_type): Two new functions. Used
8756 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8757 (search_field): New static variable. Set to one after parsing a point
8758 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8759 (FIELDNAME): New token. After a point only a token belonging to
8760 current_type type definition is allowed.
8761 (all over token rules): reset and change current_type according
8762 to rules.
8763 (exp '[' rule): insert implicit array index field if
8764 exp is a pascal string type.
8765
3a06899a
CV
87662002-05-16 Corinna Vinschen <vinschen@redhat.com>
8767
8768 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8769 frame info. Use frame_info's saved_regs instead of matching member
8770 in extra_frame_info throughout.
8771 (v850_frame_init_saved_regs): New function.
8772 (v850_init_extra_frame_info): Move most functionality into
8773 v850_frame_init_saved_regs().
8774 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8775 (v850_frame_find_saved_regs): Remove declaration.
8776 (FRAME_FIND_SAVED_REGS): Remove definition.
8777 (v850_frame_init_saved_regs): Add declaration.
8778 (FRAME_INIT_SAVED_REGS): Add definition.
8779
6ed14b0e
CV
87802002-05-16 Corinna Vinschen <vinschen@redhat.com>
8781
8782 * v850-tdep.c: Begin multi-arch'ing v850.
8783 (v850_target_architecture_hook): Remove function.
8784 (v850_gdbarch_init): New function. Add code previously in
8785 v850_target_architecture_hook().
8786 (_initialize_v850_tdep): Don't set target_architecture_hook.
8787 Call register_gdbarch_init() instead.
8788
42725910
DJ
87892002-05-16 Daniel Jacobowitz <drow@mvista.com>
8790
8791 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8792 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8793 (fixup_class_method_type): Likewise.
8794
99d9066e
JB
87952002-05-15 Jim Blandy <jimb@redhat.com>
8796
8797 Add macro structures to GDB's symbol tables. Nobody puts anything
8798 in them yet.
8799 * symtab.h (struct symtab): New member: `macro_table'.
8800 * buildsym.h (pending_macros): New global variable.
8801 * buildsym.c: #include "macrotab.h".
8802 (buildsym_init): Initialize `pending_macros'.
8803 (end_symtab): If we found macro information while reading a CU's
8804 debugging info, do build a symtab structure for it. Make the
8805 symtab point to the macro information, and clear the
8806 `pending_macros' pointer which held it while we were reading the
8807 debug info.
8808 (really_free_pendings): Free any pending macro table.
8809 * objfiles.h (struct objfile): New member: `macro_cache'.
8810 * objfiles.c (allocate_objfile): Set allocate and free functions
8811 for the macro cache's objstack.
8812 (free_objfile): Empty the macro cache's obstack.
8813 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8814 set new allocate and free functions for it.
8815 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8816 free functions for the macro cache's objstack. (Why is this
8817 function building its own objfile?)
8818 * symmisc.c (print_objfile_statistics): Print statistics on the
8819 macro bcache.
8820 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8821
c899585b
RE
88222002-05-15 Richard Earnshaw <rearnsha@arm.com>
8823
8824 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8825 (REGISTER_U_ADDR): Delete definition.
8826 (arm_register_u_addr): Delete declaration.
8827
a6cdd8c5
RE
88282002-05-15 Richard Earnshaw <rearnsha@arm.com>
8829
8830 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8831 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8832
c97dcfc7
AC
88332002-05-14 Andrew Cagney <ac131313@redhat.com>
8834
8835 * regcache.c (register_valid): Revise comments refering to "Not
8836 available" and "unavailable".
8837 * frame.c (frame_register_read): Ditto.
8838 * findvar.c (value_of_register): Ditto.
8839
93021b7d
AC
88402002-05-15 Andrew Cagney <cagney@redhat.com>
8841
8842 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8843 (remote-sim.o): Update dependencies.
8844 (d10v-tdep.o): Specify dependencies.
8845 (sim_d10v_h): Define.
8846
a86bc61c
JB
88472002-05-14 Jim Blandy <jimb@redhat.com>
8848
8849 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8850 * macrotab.c (macro_lookup_inclusion, find_definition,
8851 new_macro_table): Same.
8852
8853 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8854 not `! strcmp ()'. This is a dubious improvement.
8855 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8856
8857 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8858 although it's not necessary, to avoid a warning.
8859
2fdde8f8
DJ
88602002-05-14 Daniel Jacobowitz <drow@mvista.com>
8861
8862 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8863 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8864 TYPE_INSTANCE_FLAGS.
8865 (struct main_type): New.
8866 (struct type): Move most members to struct main_type. Change
8867 cv_type and as_type to new type_chain member. Add instance_flags.
8868 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8869 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8870 (finish_cv_type): Remove prototype.
8871 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8872 Set TYPE_CHAIN.
8873 (alloc_type_instance): New function.
8874 (smash_type): New function.
8875 (make_pointer_type, make_reference_type, make_function_type)
8876 (smash_to_member_type, smash_to_method_type): Call smash_type.
8877 (make_qualified_type): New function.
8878 (make_type_with_address_space): Call make_qualified_type.
8879 (make_cv_type): Likewise.
8880 (finish_cv_type): Remove unnecessary function.
8881 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8882 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8883 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8884 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8885 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8886 * hpread.c (hpread_read_struct_type): Likewise.
8887 * stabsread.c (read_struct_type): Likewise.
8888
843fedf4
EZ
88892002-05-14 Elena Zannoni <ezannoni@redhat.com>
8890
8891 * configure.tgt: Add a catch all sh* target, for cases like
8892 sh[2,3,4]-elf and sh-hms.
8893
05a6c72c
KS
88942002-05-14 Keith Seitz <keiths@redhat.com>
8895
8896 * event-loop.c (create_file_handler): Don't do anything but
8897 update data when we are given a fd which we are already
8898 monitoring.
8899
5d085aaf
ML
89002002-05-14 Michal Ludvig <mludvig@suse.cz>
8901
8902 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8903 (update_context): Use __func__ in warnings.
8904
9db8d71f
DJ
89052002-05-14 Daniel Jacobowitz <drow@mvista.com>
8906
8907 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8908 and tcp_close to net_open and net_close.
8909 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8910 using UDP if requested. Don't try to disable Nagle on UDP
8911 sockets.
8912 * remote.c (remote_serial_open): New function. Warn about UDP.
8913 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8914
5dbc6baa
EZ
89152002-05-13 Elena Zannoni <ezannoni@redhat.com>
8916
8917 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8918
cc3023f7
EZ
89192002-05-13 Elena Zannoni <ezannoni@redhat.com>
8920
8921 * configure.tgt: Remove sh-hms target.
8922 * MAINTAINERS: Don't list sh-hms as a separate target.
8923
ec2bcbe7
JB
89242002-05-13 Jim Blandy <jimb@redhat.com>
8925
8926 Add first preprocessor macro-expansion files.
8927 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8928 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8929 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8930 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8931 (COMMON_OBS): Add macrotab.o, macroexp.o.
8932 (macroexp.o, macrotab.o): New rules.
8933
6d531722
AC
89342002-05-13 Andrew Cagney <ac131313@redhat.com>
8935
8936 * config/m88k/tm-m88k.h: Update copyright.
8937 (m88k_target_write_pc): Declare
8938 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8939 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8940 (SHIFT_INST_REGS): Update definition.
8941 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8942 using old definition of TARGET_WRITE_PC.
8943 * regcache.c (generic_target_write_pc): Delete code handling
8944 NNPC_REGNUM.
8945 * gdbarch.sh (NNPC_REGNUM): Delete.
8946 * gdbarch.h, gdbarch.c: Regenerate.
8947
3e3f2739
RE
89482002-05-13 Richard Earnshaw <rearnsha@arm.com>
8949
8950 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8951 builtin reg number.
8952
0004e5a2
DJ
89532002-05-13 Daniel Jacobowitz <drow@mvista.com>
8954
8955 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8956 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8957 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8958 access macros.
8959 * c-typeprint.c (cp_type_print_method_args): Likewise.
8960 (c_type_print_args): Likewise.
8961 * d10v-tdep.c (d10v_push_arguments): Likewise.
8962 (d10v_extract_return_value): Likewise.
8963 * expprint.c (print_subexp): Likewise.
8964 * gdbtypes.c (lookup_primitive_typename): Likewise.
8965 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8966 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8967 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8968 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8969 (TYPE_VECTOR): Likewise.
8970 * hpread.c (hpread_read_struct_type)
8971 (fix_static_member_physnames, fixup_class_method_type)
8972 (hpread_type_lookup): Likewise.
8973 * mdebugread.c (parse_symbol, parse_type): Likewise.
8974 * p-lang.c (is_pascal_string_type): Likewise.
8975 * valops.c (hand_function_call): Likewise.
8976 * x86-64-tdep.c (classify_argument): Likewise.
8977
8978 * hpread.c (hpread_read_function_type)
8979 (hpread_read_doc_function_type): Call replace_type.
8980 * dstread.c (create_new_type): Delete.
8981 (decode_dst_structure, process_dst_function): Call alloc_type.
8982 Use type access macros.
8983
dff95cc7
MK
89842002-05-12 Mark Kettenis <kettenis@gnu.org>
8985
8986 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8987 the're not supported by the current architecture.
8988 (i387_fill_fxsave): Likewise.
8989
bbcd32ad
FF
89902002-05-12 Fred Fish <fnf@redhat.com>
8991
8992 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8993 sect_index_xxx members to index the first slot in section_offsets
8994 if all of the section_offsets are zero.
8995
89cf4787
MK
89962002-05-12 Mark Kettenis <kettenis@gnu.org>
8997
8998 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8999 checked in with last change.
9000
1f77ffc5
MK
90012002-05-12 Mark Kettenis <kettenis@gnu.org>
9002
9003 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9004 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9005 config.sub.
9006
89b8b4a9
DJ
90072002-05-12 Daniel Jacobowitz <drow@mvista.com>
9008
9009 * Makefile.in: Update dependencies.
9010
14a5e767
AC
90112002-05-11 Andrew Cagney <ac131313@redhat.com>
9012
9013 * language.c (local_hex_string_custom): Simplify. Do not depend
9014 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9015
9016 * memattr.c (mem_info_command): Replace calls to
9017 longest_local_hex_string and longest_local_hex_string_custom.
9018 * buildsym.c (make_blockvector): Ditto.
9019 * solib.c (info_sharedlibrary_command): Ditto.
9020 * tracepoint.c (tracepoints_info): Ditto.
9021 * symtab.c (print_msymbol_info): Ditto.
9022
9023 * language.c (local_hex_string): Delete.
9024 (local_hex_string_custom): Delete.
9025 (longest_local_hex_string): Rename to local_hex_string.
9026 (longest_local_hex_string_custom): Rename to
9027 local_hex_string_custom.
9028 * language.h (local_hex_string): Change parameter type to LONGEST.
9029 (local_hex_string_custom): Ditto.
9030 (longest_local_hex_string): Delete declaration.
9031 (longest_local_hex_string_custom): Ditto.
9032
9033 * solib.c: Update copyright.
9034 * memattr.c: Update copyright.
9035
13d01224
AC
90362002-05-11 Andrew Cagney <ac131313@redhat.com>
9037
9038 * arch-utils.h (legacy_register_to_value): Declare.
9039 (legacy_value_to_register): Declare.
9040 (legacy_convert_register_p): Declare.
9041 * arch-utils.c (legacy_register_to_value): New function.
9042 (legacy_value_to_register): New function.
9043 (legacy_convert_register_p): New function.
9044
9045 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9046 (VALUE_TO_REGISTER): Define.
9047 (CONVERT_REGISTER_P): Define.
9048 * gdbarch.h, gdbarch.c: Regenerate.
9049
9050 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9051 VALUE_TO_REGISTER.
9052 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9053 CONVERT_REGISTER_P.
9054
4a1970e4
DJ
90552005-05-11 Daniel Jacobowitz <drow@mvista.com>
9056 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9057
9058 * Makefile.in: Update dependencies for valops.c.
9059 * valops.c: Include "gdb_assert.h".
9060 (typecmp): Skip THIS parameter to methods.
9061 (find_method_list): Remove static_memfuncp argument,
9062 update callers. Check for stub methods.
9063 (find_value_oload_method_list): Don't set *static_memfuncp.
9064 (find_overload_match): Don't check for stub methods. Assert
9065 that methods are not stubbed. Handle static methods.
9066 (value_find_oload_method_list): Remove static_memfuncp argument.
9067 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9068 to the argument list for static stub methods.
9069 * value.h (value_find_oload_method_list): Update prototype.
9070
b2e75d78
AC
90712002-05-11 Andrew Cagney <ac131313@redhat.com>
9072
9073 * arch-utils.h (generic_register_size): Declare.
9074 (generic_register_raw_size, generic_register_virtual_size): Delete
9075 declarations.
9076 * arch-utils.c (generic_register_raw_size): Delete.
9077 (generic_register_size): New function.
9078 (generic_register_virtual_size): Delete.
9079
9080 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9081 default generic_register_size.
9082 * gdbarch.h, gdbarch.c: Re-generate.
9083
9084 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9085 register_virtual_size.
9086 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9087 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9088
451fbdda
AC
90892002-05-11 Andrew Cagney <ac131313@redhat.com>
9090
9091 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9092 * gdbarch.h, gdbarch.c: Regenerate.
9093 * gnu-v3-abi.c: Update copyright.
9094 (vtable_address_point_offset): Update.
9095 (gnuv3_rtti_type): Update.
9096 (gnuv3_baseclass_offset): Update.
9097 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9098 (init_fetch_link_map_offsets): Update.
9099 * remote.c (get_remote_state): Update.
9100
6d2f5cea
DJ
91012002-05-11 Daniel Jacobowitz <drow@mvista.com>
9102
9103 * TODO: Remove value_headof/value_from_vtable_info comment.
9104 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9105 * values.c (value_headof, value_from_vtable_info): Delete.
9106 * value.h (value_from_vtable_info): Delete prototype.
9107
d2324da4
AC
91082002-05-11 Andrew Cagney <ac131313@redhat.com>
9109
9110 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9111 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9112 $(gdb_regex_h).
9113 (gdb_assert_h): Define.
9114 (gdb_wait_h): Define.
9115 (gdb_regex_h): Define.
9116
5c717440
DJ
91172002-05-11 Daniel Jacobowitz <drow@mvista.com>
9118
9119 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9120 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9121
6c7861b3
JT
91222002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9123
9124 * nbsd-tdep.c: Fix comment.
9125
ea5bc2a6
JT
91262002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9127
9128 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9129 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9130 (nbsd-tdep.o): New dependency list.
9131 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9132 nbsd-tdep.h.
9133 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9134 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9135 * nbsd-tdep.c: New file.
9136 * nbsd-tdep.h: New file.
9137 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9138 nbsd-tdep.h.
9139 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9140 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9141 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9142 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9143
b28da865
JT
91442002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9145
9146 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9147 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9148 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9149 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9150 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9151 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9152
4b8ff1fa
JT
91532002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9154
9155 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9156 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9157 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9158 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9159 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9160 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9161 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9162
dfe6eb1f
JT
91632002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9164
9165 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9166 fetch_elfcore_registers to...
9167 * i386nbsd-tdep.c: ...here.
9168 (i386nbsd_use_struct_convention): Rename to...
9169 (i386nbsd_aout_use_struct_convention): ...this.
9170 (i386nbsd_supply_reg): New function.
9171 (i386nbsd_fill_reg): New function.
9172 (fetch_core_registers): Use i386nbsd_supply_reg.
9173 (fetch_elfcore_registers): Likewise.
9174 (_initialize_i386nbsd_tdep): New function.
9175 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9176 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9177 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9178 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9179 (i386nbsd_aout_use_struct_convention): ...this.
9180
20cb8cda
JT
91812002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9182
9183 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9184 (store_inferior_registers): Use shnbsd_fill_reg.
9185 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9186 sh_nbsd_supply_register): Collapse into...
9187 (shnbsd_supply_reg): ...this.
9188 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9189 (shnbsd_fill_reg): ...this.
9190 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9191 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9192 (fetch_core_registers): Use shnbsd_supply_reg.
9193 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9194 (sh_nbsd_core_fns): Rename to...
9195 (shnbsd_core_fns): ...this.
9196 (sh_nbsd_elfcore_fns): Rename to...
9197 (shnbsd_elfcore_fns): ...this.
9198 (sh_nbsd_init_abi): Rename to...
9199 (shnbsd_init_abi): ...this.
9200 (_initialize_sh_nbsd_tdep): Rename to...
9201 (_initialize_shnbsd_tdep): ...this.
9202 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9203 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9204 sh_nbsd_fill_register): Remove prototypes.
9205 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9206
e750d25e
JT
92072002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9208
9209 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9210 (i387-nat.o): Delete dependency list.
9211 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9212 (x86-64-linux-nat.o): Likewise.
9213 * i387-nat.c: Delete file, moving contents to...
9214 * i387-tdep.c: ...here.
9215 * i387-nat.h: Rename...
9216 * i387-tdep.h: ...to this.
9217 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9218 * i386-linux-nat.c: Likewise.
9219 * i386bsd-nat.c: Likewise.
9220 * i386gnu-nat.c: Likewise.
9221 * i386nbsd-nat.c: Likewise.
9222 * i386v4-nat.c: Likewise.
9223 * x86-64-linux-nat.c: Likewise.
9224 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9225 * config/i386/go32.mh (NATDEPFILES): Likewise.
9226 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9227 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9228 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9229 * config/i386/linux.mh (NATDEPFILES): Likewise.
9230 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9231 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9232 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9233 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9234
1aee598a
JT
92352002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9236
9237 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9238 (alphanbsd-nat.o): Remove dependency list.
9239 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9240 * alphanbsd-nat.c: Delete. Contents moved to...
9241 * alphanbsd-tdep.c: ...here.
9242 (_initialize_alphanbsd_tdep): Register core functions.
9243 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9244
12bcb0fe
JT
92452002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9246
9247 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9248 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9249 (alphanbsd-nat.o): Likewise.
9250 (alphabsd-tdep.o): New dependency list.
9251 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9252 (fill_gregset): Use alphabsd_fill_reg.
9253 (supply_fpregset): Use alphabsd_supply_fpreg.
9254 (fill_fpregset): Use alphabsd_fill_fpreg.
9255 (fetch_inferior_registers): Use struct reg and struct fpreg
9256 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9257 and alphabsd_supply_fpreg.
9258 (store_inferior_registers): Use struct reg and struct fpreg
9259 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9260 and alphabsd_fill_fpreg.
9261 * alphabsd-tdep.c: New file.
9262 * alphabsd-tdep.h: New file.
9263 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9264 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9265 alphabsd_supply_fpreg.
9266 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9267 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9268
361d1df0
EC
92692002-05-11 Eric Christopher <echristo@redhat.com>
9270
9271 * mips-tdep.c (mips_double_register_type): Fix thinko.
9272 (mips_single_register_type): Ditto.
9273 * MAINTAINERS: Add self.
9274
92dd7cee
MK
92752002-05-11 Mark Kettenis <kettenis@gnu.org>
9276
9277 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9278 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9279 right thing on architectures with different endianness and/or
9280 integer sizes.
9281
e27da16d
JT
92822002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9283
9284 From Christian Limpach <chris@Pin.LU>
9285 * configure.in: Change sed expression which comments out
9286 NATDEPFILES to also comment out continuation lines.
9287 * configure: Regenerate.
9288
ddde02bd
EZ
92892002-05-10 Elena Zannoni <ezannoni@redhat.com>
9290
9291 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9292 big patch.
9293
1c922164
EZ
92942002-05-10 Elena Zannoni <ezannoni@redhat.com>
9295
9296 * sh-tdep.c: Include correct file.
9297
283150cd
EZ
92982002-05-10 Elena Zannoni <ezannoni@redhat.com>
9299
9300 New support for sh64-elf (sh5) target.
9301
9302 * configure.tgt: For sh64-elf target, default to sh-elf.
9303
9304 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9305 (struct gdbarch_tdep): Add new fields for new registers and ABI
9306 info.
361d1df0 9307
283150cd
EZ
9308 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9309 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9310 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9311 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9312 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9313 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9314 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9315 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9316 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9317 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9318 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9319 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9320 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9321 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9322 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9323 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9324 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9325 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9326 sign_extend, sh64_nofp_frame_init_saved_regs,
9327 sh64_init_extra_frame_info, sh64_get_saved_register,
9328 sh64_extract_struct_value_address, sh64_pop_frame,
9329 sh64_push_arguments, sh64_extract_return_value,
9330 sh64_store_return_value, sh64_show_media_regs,
9331 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9332 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9333 sh_sh64_register_virtual_type,
9334 sh_sh64_register_convert_to_virtual,
9335 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9336 sh64_register_read, sh64_pseudo_register_write,
9337 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9338 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9339 sh64_do_pseudo_register, sh_compact_do_registers_info,
9340 sh64_do_registers_info, sh_gdbarch_init): New functions.
9341
3117ed25
EZ
93422002-05-10 Elena Zannoni <ezannoni@redhat.com>
9343
9344 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9345
2654e6d4
DJ
93462002-05-10 Daniel Jacobowitz <drow@mvista.com>
9347
9348 * linespec.c (decode_line_1): Check for a double quote after
9349 a filename correctly.
9350
9ab3e532
JB
93512002-05-10 Jim Blandy <jimb@redhat.com>
9352
9353 Properly track the size of the current objfile's .debug_line section.
9354 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9355 (DWARF_LINE_SIZE): New macro.
9356 (dwarf2_build_psymtabs_hard): Record the line section's size in
9357 the partial symbol table.
9358 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9359 symbol table.
9360
126fa72d
PS
93612002-05-10 Petr Sorfa <petrs@caldera.com>
9362
9363 * ia64-tdep.c: Handle breakpoints on L instruction type
9364 in MLX instruction bundle by moving the breakpoint to
9365 the third slot (X instruction type) as L holds only data.
9366
1f077a3e
KB
93672002-05-10 Kevin Buettner <kevinb@redhat.com>
9368
9369 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9370 (process_one_symbol): Complain about discarding local symbols
9371 due to a misplaced N_LBRAC entry.
9372
8120c9d5 93732002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
9374
9375 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
9376 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9377 decrease the depth we are at, in the case of templates.
361d1df0 9378
67b2c998
DJ
93792002-05-09 Daniel Jacobowitz <drow@mvista.com>
9380
9381 * mips-tdep.c (mips_float_register_type): New function.
9382 (mips_double_register_type): New function.
9383 (mips_print_register): Use them.
9384 (do_fp_register_row): Likewise.
9385
fd326606
DJ
93862002-05-09 Daniel Jacobowitz <drow@mvista.com>
9387
6609d9af 9388 * signals/signals.c (signals): Remove conditional compilation around
fd326606 9389 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 9390 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 9391
bef35864
MS
93922002-05-09 Michael Snyder <msnyder@redhat.com>
9393
9394 * remote-rdp.c (remote_rdp_can_run): Remove.
9395
c55a3f73
TT
93962002-05-09 Tom Tromey <tromey@redhat.com>
9397
9398 * jv-valprint.c (java_val_print): Handle `char' as a special case
9399 of TYPE_CODE_INT.
9400
b8d5e71d
MS
94012002-05-09 Michael Snyder <msnyder@redhat.com>
9402
9403 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9404 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 9405 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 9406 str r(0123),[sp,#nn].
361d1df0 9407 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
9408 order-independent by placing it in a loop.
9409
e2cd42dd
MS
94102002-05-06 Michael Snyder <msnyder@redhat.com>
9411
9412 * stabsread.c (read_type): Add recognition for new attribute:
9413 "@V;" means that an array type is actually a vector.
9414 This is analogous to the vector flag that's been added to dwarf2.
9415
3ce1502b
MK
94162002-05-09 Mark Kettenis <kettenis@gnu.org>
9417
9418 * i386-tdep.h (i386_abi): New enum.
9419 (struct gdbarch_tdep): Replace os_ident member with abi.
9420 (i386_gdbarch_register_os_abi): New prototype.
9421 * i386-tdep.c (i386_abi_names): New array.
9422 (process_note_abi_tag_sections): Removed.
9423 (process_note_sections): New function.
9424 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9425 (struct i386_abi_handler): New struct.
9426 (i386_abi_handler_list): New variable.
9427 (i386_gdbarch_register_os_abi): New function.
9428 (i386_gdbarch_init): Adapt for the changes given above.
9429
084c156a
DJ
94302002-05-08 Daniel Jacobowitz <drow@mvista.com>
9431
9432 * gregset.h: Say "GNU/Linux".
9433
6599f021
EZ
94342002-05-08 Elena Zannoni <ezannoni@redhat.com>
9435
9436 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9437 (build_gdbtypes): Build builtin_type_v2_float.
9438 (_initialize_gdbtypes): Register new builtin type.
9439
40af4b0c
AC
94402002-05-08 Andrew Cagney <ac131313@redhat.com>
9441
9442 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9443 (clear_gdbarch_swap): New function.
9444 (initialize_non_multiarch): Call.
9445 (gdbarch_update_p): Before calling init(), swap out and clear the
9446 existing architecture.
9447 * gdbarch.c: Regenerate.
9448
4fe84f46
JT
94492002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9450
9451 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9452 alphanbsd-tdep.c.
9453
4015edd1
JT
94542002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9455
9456 * sh-nbsd-nat.c: Rename to...
9457 * shnbsd-nat.c: ...this.
9458 * sh-nbsd-tdep.c: Rename to...
9459 * shnbsd-tdep.c: ...this.
9460 * sh-nbsd-tdep.h: Rename to...
9461 * shnbsd-tdep.h: ...this.
9462 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9463 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9464
0e2bd219
RE
94652002-05-08 Richard Earnshaw <rearnsha@arm.com>
9466
9467 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9468 concatenation for command help messages.
9469
13a38d45
JT
94702002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9471
9472 * NEWS: Note new sh*-*-netbsdelf* configuration.
9473 * configure.host: Set gdb_host_cpu to sh for all sh*.
9474 (sh*-*-netbsdelf*): New host.
9475 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9476 (sh*-*-netbsdelf*): New target.
9477 * sh-nbsd-nat.c: New file.
9478 * sh-nbsd-tdep.c: New file.
9479 * sh-nbsd-tdep.h: New file.
9480 * config/sh/nbsd.mh: New file.
9481 * config/sh/nbsd.mt: New file.
9482 * config/sh/nm-nbsd.h: New file.
9483 * config/sh/tm-nbsd.h: New file.
9484
d658f924
JT
94852002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9486
9487 * sh-tdep.c (sh_osabi_names): Declare.
9488 (process_note_abi_tag_sections): New function.
9489 (get_elfosabi): Ditto.
9490 (sh_gdbarch_register_os_abi): Ditto.
9491 (sh_dump_tdep): Ditto.
9492 _initialize_sh_tdep): Use gdbarch_register to register
9493 sh_gdbarch_init and sh_dump_tdep.
9494 * config/sh/tm-sh.h (sh_osabi): Declare.
9495 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9496
848cfffb
AC
94972002-05-07 Andrew Cagney <ac131313@redhat.com>
9498
9499 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9500 (thumb_scan_prologue): Ditto.
9501 (arm_find_callers_reg): Ditto.
9502 (arm_frame_chain): Ditto.
9503 (arm_init_extra_frame_info): Ditto.
9504 (arm_frame_saved_pc): Ditto.
9505 (arm_pop_frame): Ditto.
9506 (arm_push_return_address): New function.
9507 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9508 call_dummy_location, call_dummy_breakpoint_offset_p,
9509 call_dummy_breakpoint_offset, call_dummy_p,
9510 call_dummy_stack_adjust_p, call_dummy_words,
9511 sizeof_call_dummy_words, call_dummy_start_offset,
9512 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9513 call_dummy_address, push_return_address and push_dummy_frame for
9514 generic dummy frames.
9515
e7d717c0
JT
95162002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9517
9518 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9519 size computation for alloca.
9520 (sh_fp_frame_init_saved_regs): Likewise.
9521
7bbcf283
RE
95222002-05-07 Richard Earnshaw <rearnsha@arm.com>
9523
9524 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9525 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9526 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9527 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9528 * remote-rdp.c (remote_rdp_fetch_register): Use
9529 ARM_MAX_REGISTER_RAW_SIZE.
9530 (remote_rdp_store_register): Likewise.
9531
4657573b
ML
95322002-05-07 Michal Ludvig <mludvig@suse.cz>
9533
361d1df0 9534 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9535 added default labels to switch {} statements.
9536 * x86-64-tdep.c: Ditto.
9537 * x86-64-linux-nat.c: Ditto.
9538
010f3b2f
JT
95392002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9540
9541 * solib.h: Protect against multiple inclusion.
9542
debd256d
JB
95432002-05-06 Jim Blandy <jimb@redhat.com>
9544
9ab3e532
JB
9545 Add first preprocessor macro-expansion files.
9546 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9547 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9548 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9549 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9550 (COMMON_OBS): Add macrotab.o, macroexp.o.
9551 (macroexp.o, macrotab.o): New rules.
9552
debd256d
JB
9553 Separate the job of reading the line number info statement program
9554 header (...expialidocious) out into its own function.
9555 * dwarf2read.c (struct line_head, struct filenames, struct
9556 directories): Replace with...
9557 (struct line_header): New structure, containing the full
9558 contents of the statement program header, including the
9559 include directory and file name tables.
9560 (read_file_scope): If we have line number info, instead of just
9561 calling dwarf_decode_lines to do all the work, call
9562 dwarf_decode_line_header first to get a `struct line_header'
9563 containing the data in the statement program header, and then
9564 pass that to dwarf_decode_lines, which will pick up where that
9565 left off. Be sure to clean up the `struct line_header' object.
9566 (dwarf_decode_line_header, free_line_header, add_include_dir,
9567 add_file_name): New functions.
9568 (dwarf_decode_lines): Move all the code to read the statement
9569 program header into dwarf_decode_line_header. Take the line
9570 header it built as the first argument, instead of the offset to
9571 the compilation unit's line number info. Use the new `struct
9572 line_header' type instead of the old structures. No need to do
9573 cleanups here now, since we don't allocate anything.
9574 (dwarf2_statement_list_fits_in_line_number_section,
9575 dwarf2_line_header_too_long): New complaints.
9576
ac3aafc7
EZ
95772002-05-06 Elena Zannoni <ezannoni@redhat.com>
9578
9579 * gdbtypes.c (init_vector_type): New function.
9580 (build_builtin_type_vec128): Simplify the representation of SIMD
9581 registers.
9582 (build_gdbtypes): Initialize new builtin vector types.
9583 (_initialize_gdbtypes): Register new vector types with gdbarch.
9584 (builtin_type_v4_float, builtin_type_v4_int32,
9585 builtin_type_v8_int16, builtin_type_v16_int8,
9586 builtin_type_v2_int32, builtin_type_v4_int16,
9587 builtin_type_v8_int8): New (renamed) SIMD types.
9588
13e49980
MK
95892002-05-06 Mark Kettenis <kettenis@gnu.org>
9590
9591 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9592 (i387_fill_fxsave): Likewise.
9593
997b20b8
AO
95942002-05-05 Alexandre Oliva <aoliva@redhat.com>
9595
9596 * alpha-tdep.c (alpha_extract_return_value): Don't use
9597 non-constant array size in prototype.
9598
535c96ce
AC
95992002-05-04 Andrew Cagney <ac131313@redhat.com>
9600
9601 From Brian Taylor <briant at model dot com>:
9602 * ui-out.c (ui_out_field_core_addr): Use the function
9603 longest_local_hex_string_custom'to format addresses > 32 bits
9604 wide.
9605
9606 * ui-out.c (ui_out_field_core_addr): Update comment.
9607
bedfa57b
AC
96082002-05-04 Andrew Cagney <ac131313@redhat.com>
9609
9610 * stack.c (select_and_print_frame): Make static. Delete the
9611 parameter `level'.
9612 (func_command): Update call.
9613 (select_frame_command): Delete code computing the frame level.
9614 * frame.h (select_and_print_frame): Delete declaration.
9615
f621c63e
AC
96162002-05-04 Andrew Cagney <ac131313@redhat.com>
9617
9618 * sparc-tdep.c (sparc_get_saved_register): Comment why
9619 get_prev_frame call is safe.
9620
0f7d239c
AC
96212002-05-04 Andrew Cagney <ac131313@redhat.com>
9622
9623 * frame.h (select_frame): Delete level parameter.
9624 * stack.c (select_frame): Update. Use frame_relative_level to
9625 obtain the frame's level.
9626 (select_and_print_frame): Update call.
9627 (select_frame_command): Ditto.
9628 (up_silently_base): Ditto.
9629 (down_silently_base): Ditto.
9630 * ocd.c (ocd_start_remote): Ditto.
9631 * remote-rdp.c (remote_rdp_open): Ditto.
9632 * remote-mips.c (mips_initialize): Ditto.
9633 (common_open): Ditto.
9634 * remote-e7000.c (e7000_start_remote): Ditto.
9635 * m3-nat.c (select_thread): Ditto.
9636 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9637 (child_get_current_exception_event): Ditto.
9638 * varobj.c (varobj_create): Ditto.
9639 (varobj_update): Ditto.
9640 (c_value_of_root): Ditto.
9641 * tracepoint.c (finish_tfind_command): Ditto.
9642 * corelow.c (core_open): Ditto.
9643 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9644 * thread.c (info_threads_command): Ditto.
9645 (switch_to_thread): Ditto.
9646 * infrun.c (normal_stop): Ditto.
9647 (restore_selected_frame): Ditto.
9648 (restore_inferior_status): Ditto.
9649 * breakpoint.c (insert_breakpoints): Ditto.
9650 (watchpoint_check): Ditto.
9651 (bpstat_stop_status): Ditto.
9652 (do_enable_breakpoint): Ditto.
9653 * blockframe.c (flush_cached_frames): Ditto.
9654 (reinit_frame_cache): Ditto.
9655
71d6c7b1
AC
96562002-05-04 Andrew Cagney <ac131313@redhat.com>
9657
9658 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9659 maintainer.
9660
cda6c68a
JB
96612002-05-04 Jim Blandy <jimb@redhat.com>
9662
9663 * gdbtypes.c (replace_type): Doc fix.
9664
5c1c87f0
AC
96652002-05-04 Andrew Cagney <ac131313@redhat.com>
9666
9667 * valprint.c (strcat_longest): Delete commented out function.
9668 Update copyright.
9669
cd9bfe15
AC
96702002-05-04 Andrew Cagney <ac131313@redhat.com>
9671
9672 * MAINTAINERS: Mark a29k as deleted.
9673 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9674 Move new configurations to the top.
9675 * configure.tgt: Remove a29k.
9676 * config/a29k/tm-vx29k.h: Delete.
9677 * config/a29k/vx29k.mt: Delete.
9678 * config/a29k/tm-a29k.h: Delete.
9679 * config/a29k/a29k-udi.mt: Delete.
9680 * config/a29k/a29k.mt: Delete.
9681 * a29k-tdep.c: Delete.
9682 * remote-udi.c: Delete.
9683 * remote-mm.c: Delete.
9684 * remote-eb.c: Delete.
9685 * remote-adapt.c: Delete.
9686 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9687 * config/s390/s390x.mt: Ditto.
9688 * config/s390/s390.mt: Ditto.
9689 * config/sparc/sparclynx.mh: Ditto.
9690 * config/sparc/linux.mh: Ditto.
9691 * config/pa/hppaosf.mh: Ditto.
9692 * config/pa/hppabsd.mh: Ditto.
9693 * config/ns32k/nbsd.mt: Ditto.
9694 * config/mips/vr5000.mt: Ditto.
9695 * config/m68k/sun3os4.mh: Ditto.
9696 * config/m68k/nbsd.mt: Ditto.
9697 * config/m68k/m68klynx.mh: Ditto.
9698 * config/m32r/m32r.mt: Ditto.
9699 * config/i386/x86-64linux.mt: Ditto.
9700 * config/i386/nbsdelf.mt: Ditto.
9701 * config/i386/nbsd.mt: Ditto.
9702 * config/i386/i386lynx.mh: Ditto.
9703
bf0c5130
AC
97042002-05-04 Andrew Cagney <ac131313@redhat.com>
9705
9706 * target.c (debug_print_register): New function. Handle oversize
9707 registers.
9708 (debug_to_fetch_registers): Call.
9709 (debug_to_store_registers): Call.
9710
2ae1c2d2
JB
97112002-05-03 Jim Blandy <jimb@redhat.com>
9712
13a393b0
JB
9713 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9714 (read_type): Doc fix.
9715 * gdbtypes.c (replace_type): Doc fix.
9716
2ae1c2d2
JB
9717 * stabsread.c (multiply_defined_struct): New complaint.
9718 (read_struct_type): If the type we were passed isn't empty, or
9719 incomplete, don't read the new struct type into it; complain,
9720 and return the original type unchanged. Take a new `type_code'
9721 argument, which is the type code for the new type.
9722 (read_type): Rather than storing the type's type code here, pass
9723 it as an argument to read_struct_type, and let that take care of
9724 storing it. That way, we don't overwrite the original type code,
9725 so read_struct_type can use it to decide whether we're overwriting
9726 something we shouldn't.
9727 (complain_about_struct_wipeout): New function.
9728
8de9bdc4
AC
97292002-05-03 Andrew Cagney <ac131313@redhat.com>
9730
9731 * gdbarch.sh: Assert that gdbarch is non-NULL.
9732 * gdbarch.c: Regenerate.
9733
f773fdbb
JM
97342002-05-03 Jason Merrill <jason@redhat.com>
9735
9736 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9737 and return NULL.
9738
0e04a514
ML
97392002-05-03 Michal Ludvig <mludvig@suse.cz>
9740
9741 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9742 (x86_64_dwarf2gdb_regno_map_length),
9743 (x86_64_dwarf2_reg_to_regnum): Added.
9744 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9745 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9746 (_initialize_x86_64_tdep): Synced with the change above.
9747 (x86_64_skip_prologue): Reformulated message.
9748
065432a8
PM
97492002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9750
9751 * f-exp.y: Also use new prev_lexptr variable
9752 to improve error reporting. Based on Michael Snyder
9753 2002-04-24 dated patch to c-exp.y.
9754 * jv-exp.y: Likewise.
9755 * m2-exp.y: Likewise.
9756
a3162708
EZ
97572002-05-02 Elena Zannoni <ezannoni@redhat.com>
9758
9759 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9760 we are dealing with vectors.
9761
03620c38
PM
97622002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9763
9764 * config/m68k/tm-nbsd.h: Obvious fix,
9765 correct machine name.
9766
6604db2e
PM
97672002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9768
9769 * p-typeprint.c (pascal_type_print_base): Add support
9770 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9771
0906b739
PM
97722002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9773
9774 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9775 for fondamental pascal 'char' type.
9776
e2625b33
PM
97772002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9778
9779 * p-lang.h (is_pascal_string_type): Declaration changed,
9780 new sixth argument of type char ** added.
361d1df0 9781 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9782 changed. Args length_pos, length_size, string_pos, char_size
9783 can now be NULL. New argument arrayname set to the field
9784 name of the char array. Return value set to char array
9785 field index plus one.
361d1df0 9786 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9787 is_pascal_string_type function.
9788
cf17c188
AC
97892002-05-02 Andrew Cagney <cagney@redhat.com>
9790
9791 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9792 <cagney@redhat.com> change.
9793 * gdbarch.c: Regenerate.
9794
52bca491
AC
97952002-05-02 Andrew Cagney <cagney@redhat.com>
9796
9797 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9798 before probing for a new one. Detect errorenous gdbarch_init
9799 functions.
9800 * gdbarch.c: Regenerate.
9801
d5e72505
AC
98022002-05-01 Andrew Cagney <cagney@redhat.com>
9803
9804 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9805 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9806 * config/v850/tm-v850.h: Ditto. Update copyright.
9807
af566d9f
AC
98082002-04-30 Andrew Cagney <ac131313@redhat.com>
9809
9810 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9811 current_gdbarch.
9812
880d85fa
MS
98132002-04-30 Michael Snyder <msnyder@redhat.com>
9814
94c30b78
MS
9815 * arm-tdep.c: Whitespace clean-ups.
9816 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9817 should have been removed as part of 4/24 change.
9818
6f5987a6
KB
98192002-04-30 Kevin Buettner <kevinb@redhat.com>
9820
9821 * rs6000-tdep.c: Added comment describing how fpscr register
9822 numbers were chosen.
9823
1a113c93
MS
98242002-04-30 Michael Snyder <msnyder@redhat.com>
9825
9826 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9827
9a6f53fe
EZ
98282002-04-29 Elena Zannoni <ezannoni@redhat.com>
9829
9830 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9831 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9832 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9833
11ed25ac
KB
98342002-04-29 Kevin Buettner <kevinb@redhat.com>
9835
9836 From Louis Hamilton <hamilton@redhat.com>:
9837 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9838 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9839 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9840 not bfd-private xcoff data, to determine wordsize.
9841 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9842
ae232405
AC
98432002-04-29 Andrew Cagney <ac131313@redhat.com>
9844
9845 GDB 5.2 released from 5.2 branch.
9846
91fd20f7
ML
98472002-04-29 Michal Ludvig <mludvig@suse.cz>
9848
9849 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9850 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9851 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9852
2dc5091b
EZ
98532002-04-29 Elena Zannoni <ezannoni@redhat.com>
9854
9855 * rs6000-tdep.c (rs6000_extract_return_value,
9856 rs6000_store_return_value): Handle returning vectors.
9857 (rs6000_gdbarch_init): Use
9858 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9859 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9860 New function.
9861 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9862 vectors.
9863 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9864 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9865
2b9848d8
PM
98662002-04-24 Pierre Muller <ics.u-strasbg.fr>
9867
9868 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9869 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9870 with fprintf_unfiltered (gdb_stderr,...).
9871
f8d17dc5
PM
98722002-04-24 Pierre Muller <ics.u-strasbg.fr>
9873
9874 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9875 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9876 Replace fprintf (stderr,...
9877 with fprintf_unfiltered (gdb_stderr,....
9878 * remote-es.c: Likewise.
9879 * remote-os9k.c: Likewise.
9880 * remote-st.c: Likewise.
9881
2f2f1ad1
AS
98822002-04-28 Andreas Schwab <schwab@suse.de>
9883
9884 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9885 linux-proc.o and gcore.o.
9886
b6779aa2
AC
98872002-04-26 Michal Ludvig <mludvig@suse.cz>
9888
9889 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9890 code without frame pointers.
9891
7e57f5f4
AC
98922002-04-26 Andrew Cagney <ac131313@redhat.com>
9893
9894 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9895 ON_STACK is needed.
9896
2ceb85d0
BE
98972002-04-26 Ben Elliston <bje@redhat.com>
9898
9899 * target.c (do_xfer_memory): Correct reference to the new option
9900 "trust-readonly-sections".
9901
f5f8a009
EZ
99022002-04-26 Elena Zannoni <ezannoni@redhat.com>
9903
9904 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9905 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9906 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9907 vectors.
9908 (read_array_type): Record the fact that this array type is really a
9909 vector (i.e. are passed in by value).
9910
5868c862
JT
99112002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9912
9913 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9914 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9915 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9916 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9917 * alpha-linux-tdep.c: Include frame.h.
9918 (alpha_linux_sigcontext_addr): New function.
9919 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9920 alpha_linux_sigcontext_addr.
9921 * alpha-osf1-tdep.c: Include gdbcore.h.
9922 (alpha_osf1_sigcontext_addr): New function.
9923 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9924 alpha_osf1_sigcontext_addr.
9925 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9926 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9927
bfb01f37
AC
99282002-04-26 Andrew Cagney <ac131313@redhat.com>
9929
361d1df0 9930 * stack.c (selected_frame_level):
bfb01f37
AC
9931 (select_frame): Do not set selected_frame_level.
9932 * frame.h (selected_frame_level): Delete declaration.
9933
15813d3f
AC
99342002-04-26 Andrew Cagney <ac131313@redhat.com>
9935
9936 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9937 convert_from_func_ptr-addr when AIX / PowerOpen.
9938
6096c27a
AC
99392002-04-25 Andrew Cagney <ac131313@redhat.com>
9940
9941 * valops.c (hand_function_call): Call
9942 generic_save_call_dummy_addr.
9943 * frame.h (generic_save_call_dummy_addr): Declare.
9944 * blockframe.c (struct dummy_frame): Add fields call_lo and
9945 call_hi.
9946 (generic_find_dummy_frame): Check for PC in range call_lo to
9947 call_hi instead of entry_point_address.
9948 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9949 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9950 (generic_save_call_dummy_addr): New function.
9951
f510d44e
DM
99522002-04-24 David S. Miller <davem@redhat.com>
9953
9954 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9955 sparc_skip_prologue.
9956 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9957 information to find prologue when possible.
9958 (sparc_prologue_frameless_p): Call examine_prologue directly.
9959 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9960 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9961 second argument.
9962 (SKIP_PROLOGUE): Likewise.
9963
15d72a92
JT
99642002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9965
9966 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9967 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9968 indicate that the condition it was testing is always true.
9969 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9970 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9971 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9972
accc6d1f
JT
99732002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9974
9975 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9976 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9977 tdep->jb_pc and tdep->jb_elt_size.
9978 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9979 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9980 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9981 * alpha-nat.c (get_longjmp_target): Remove.
9982 (JB_ELEMENT_SIZE): Ditto.
9983 (JB_PC): Ditto.
9984 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9985 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9986 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9987 to alpha_get_longjmp_target.
9988 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9989 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9990 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9991
1bfdc549
AC
99922002-04-25 Andrew Cagney <ac131313@redhat.com>
9993
9994 * README: Update to GDB 5.2.
9995
1bd316f0
AC
99962002-04-25 Andrew Cagney <ac131313@redhat.com>
9997
9998 * gdbarch.sh (LC_ALL): Set to `c'.
9999
2e5ff58c
TR
100002002-04-25 Theodore A. Roth <troth@verinet.com>
10001
10002 * avr-tdep.c: Ran through gdb_indent.sh.
10003
e33ce519
TR
100042002-04-25 Theodore A. Roth <troth@verinet.com>
10005
10006 * MAINTAINERS: Add myself as AVR maintainer.
10007 * NEWS: Note new target avr.
10008
8818c391
TR
100092002-04-25 Theodore A. Roth <troth@verinet.com>
10010
10011 * Makefile.in: Add support for AVR target.
10012 * configure.tgt: Add support for AVR target.
10013 * avr-tdep.c: New file
10014 * config/avr/avr.mt: New file.
10015
79509c2d
TR
100162002-04-25 Theodore A. Roth <troth@verinet.com>
10017
10018 * MAINTAINERS: Add myself to write-after-approval.
10019
dac8068e
PM
100202002-04-24 Pierre Muller <ics.u-strasbg.fr>
10021
10022 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10023 with fprintf_unfiltered (gdb_stderr,....
10024
25bf3106
PM
100252002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10026
10027 Fix PR gdb/508.
10028 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10029
24467a86
PM
100302002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10031
10032 * p-exp.y: Also use new prev_lexptr variable
10033 to improve error reporting. Based on Michael Snyder
10034 2002-04-24 dated patch to c-exp.y.
10035
95b80706
JT
100362002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10037
10038 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10039 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10040 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10041 to 0.
10042 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10043 and struct value.
10044 (FUNCTION_START_OFFSET): Remove.
10045 (BREAKPOINT): Ditto.
10046
e90cc612
JT
100472002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10048
10049 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10050 * NEWS: Ditto.
10051
6c72f9f9
JT
100522002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10053
10054 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10055 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10056 alpha_linux_pc_in_sigtramp.
10057 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10058 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10059 alpha_osf1_pc_in_sigtramp.
10060 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10061 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10062 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10063 alphafbsd_pc_in_sigtramp.
10064 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10065 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10066 alphanbsd_pc_in_sigtramp.
10067 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10068 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10069
5e4f3379
JT
100702002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10071
10072 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10073
da8ca43d
JT
100742002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10075
10076 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10077 alphanbsd-tdep.c.
10078 (alphanbsd-nat.o): New dependency list.
10079 (alphanbsd-tdep.o): Ditto.
10080 * NEWS: Note new native NetBSD/alpha configuration.
10081 * alphanbsd-nat.c: New file.
10082 * alphanbsd-tdep.c: Ditto.
10083 * configure.host (alpha*-*-netbsd*): New host.
10084 * configure.tgt (alpha*-*-netbsd*): New target.
10085 * config/alpha/nbsd.mh: New file.
10086 * config/alpha/nbsd.mt: Ditto.
10087 * config/alpha/nm-nbsd.h: Ditto.
10088 * config/alpha/tm-nbsd.h: Ditto.
10089
36a6271d
JT
100902002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10091
10092 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10093 (alpha-osf1-tdep.o): New dependency list.
10094 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10095 and skip_sigtramp_frame members.
10096 * alpha-linux-tdep.c: Include gdbcore.h.
10097 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10098 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10099 * alpha-osf1-tdep.c: New file.
10100 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10101 alpha-osf1-dep.c.
10102 (alpha_frame_past_sigtramp_frame): New function.
10103 (alpha_dynamic_sigtramp_offset): Ditto.
10104 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10105 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10106 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10107 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10108 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10109 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10110 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10111 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10112 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10113 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10114 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10115 to find_solib_trampoline_target.
10116 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10117 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10118 (SKIP_TRAMPOLINE_CODE): Remove.
10119 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10120 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10121 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10122 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10123 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10124 (PROC_SIGTRAMP_MAGIC): Ditto.
10125 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10126 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10127 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10128 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10129 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10130
2f4bc57b
JT
101312002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10132
10133 * NEWS: Note that Alpha targets are now multi-arch.
10134
665132f9
MS
101352002-04-24 Michael Snyder <msnyder@redhat.com>
10136
10137 * parser-defs.h (prev_lexptr): New external variable.
10138 * parse.c (parse_exp_1): Set prev_lexptr to null before
10139 calling the language-specific parser.
10140 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10141 (yyerror): Use prev_lexptr in error reporting.
10142
32872fa7
DJ
101432002-04-24 Daniel Jacobowitz <drow@mvista.com>
10144
10145 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10146 * gregset.h: If FILL_FPXREGSET is defined, provide
10147 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10148 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10149 is defined, call fill_fpxregset.
10150
57e76fac
MS
101512002-04-24 Roland McGrath <roland@frob.com>
10152
10153 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10154 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10155 (supply_gregset, supply_fpregset): New functions.
10156
10157 * gnu-nat.c (gnu_find_memory_regions): New function.
10158 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10159 (gnu_xfer_memory): Add a cast.
10160
f43845b3
MS
101612002-04-24 Michael Snyder <msnyder@redhat.com>
10162
361d1df0 10163 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
10164 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10165 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 10166 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
10167 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10168 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10169
a0abec03
AC
10170Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10171
10172 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10173 NUM_PSEUDO_REGS can be used.
10174
d7bd68ca
AC
101752002-04-24 Andrew Cagney <ac131313@redhat.com>
10176
10177 * arch-utils.h: Update copyright.
10178
10179 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10180 * gdbarch.h, gdbarch.c: Re-generate.
10181
10182 * inferior.h (IN_SIGTRAMP): Delete definition.
10183 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10184 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10185
10186 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10187 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10188 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10189 (find_proc_framesize): Ditto.
10190 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10191 (alpha_init_extra_frame_info): Ditto.
10192 * infrun.c (handle_inferior_event): Ditto.
10193 (handle_inferior_event): Ditto.
10194 (check_sigtramp2): Ditto.
10195 * blockframe.c (create_new_frame): Ditto.
10196 (get_prev_frame): Ditto.
10197 * ppc-linux-tdep.c: Update comments.
10198 * i386-linux-tdep.c: Update comments.
10199 * breakpoint.c (bpstat_what): Update comment.
10200
4867e41e
DM
102012002-04-24 David S. Miller <davem@redhat.com>
10202
21d83aa5
DM
10203 * i960-tdep.c (register_in_window_p): New function.
10204 (i960_find_saved_register): Use it instead of
10205 REGISTER_IN_WINDOW_P.
10206 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10207
4867e41e
DM
10208 * symtab.h (find_stab_function_addr): Kill extern.
10209 * minsyms.c (find_stab_function_addr): Remove from here...
10210 * dbxread.c: ... to here, and mark it static.
10211
69cdf6a2
DM
102122002-04-20 David S. Miller <davem@redhat.com>
10213
10214 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10215 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10216
5a595886
DM
102172002-04-21 David S. Miller <davem@redhat.com>
10218
10219 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10220 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10221 (vx_write_register): Likewise.
10222
1da1a192
JB
102232002-04-23 J. Brobecker <brobecker@gnat.com>
10224
10225 * source.c (is_regular_file): New function.
10226 (openp): Check wether file to open is a regular file
10227 to avoid opening directories.
10228
baa6f10b
JT
102292002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10230
10231 * findvar.c (extract_signed_integer): Cast printf argument
10232 to suppress format warning.
10233 (extract_unsigned_integer): Likewise.
10234 * infcmd.c (registers_info): Likewise.
10235 * top.c (get_prompt_1): Likewise.
10236 * valops.c (value_assign): Likewise.
10237 * valprint.c (print_decimal): Likewise.
10238
b2c4da81
L
102392002-04-22 H.J. Lu (hjl@gnu.org)
10240
10241 * c-exp.y (typebase): Support
361d1df0 10242
b2c4da81
L
10243 [long|long long|short] [signed|unsigned] [int|]
10244
10245 and
10246
10247 signed [long|long long|short] int
10248
f267bd6a
JT
102492002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10250
10251 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10252 and vax-tdep.h.
10253 * vax-tdep.h: New file.
10254 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10255 Make several routines static.
10256 (vax_get_saved_register): New function.
10257 (vax_gdbarch_init): New function.
10258 (_initialize_vax_tdep): Register vax_gdbarch_init.
10259 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10260 Remove macros now under the control of gdbarch.
10261
da3c6d4a
MS
102622002-04-22 Michael Snyder <msnyder@redhat.com>
10263
11d3b27d
MS
10264 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10265 Some whitespace and coding standards tweaks.
da3c6d4a 10266
a33f7558
JT
102672002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10268
10269 * vax-tdep.c: Include regcache.h.
10270 (vax_call_dummy_words): New.
10271 (sizeof_vax_call_dummy_words): New.
10272 (vax_fix_call_dummy): New function.
10273 (vax_saved_pc_after_call): Ditto.
10274 * config/vax/tm-vax.h: Don't include regcache.h.
10275 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10276 (CALL_DUMMY): Remove.
10277 (CALL_DUMMY_WORDS): Define.
10278 (SIZEOF_CALL_DUMMY_WORDS): Define.
10279 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10280
47a73475
MS
102812002-04-18 Michael Snyder <msnyder@redhat.com>
10282
10283 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10284
52efde73
JT
102852002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10286
10287 * vax-tdep.c (vax_frame_chain): New function.
10288 (vax_push_dummy_frame): Ditto.
10289 (vax_pop_frame): Ditto.
10290 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10291 (FRAMELESS_FUNCTION_INVOCATION): Use
10292 generic_frameless_function_invocation_not.
10293 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10294 (POP_FRAME): Use vax_pop_frame.
10295
ea74468c
JT
102962002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10297
10298 * vax-tdep.c (vax_store_struct_return): New function.
10299 (vax_extract_return_value): Ditto.
10300 (vax_store_return_value): Ditto.
10301 (vax_extract_struct_value_address): Ditto.
10302 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10303 vax_store_struct_return.
10304 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10305 (STORE_RETURN_VALUE): Use vax_store_return_value.
10306 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10307
5516aa92
JT
103082002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10309
10310 * vax-tdep.c (vax_frame_saved_pc): New function.
10311 (vax_frame_args_address_correct): Ditto.
10312 (vax_frame_args_address): Ditto.
10313 (vax_frame_locals_address): Ditto.
10314 (vax_frame_num_args): Move code to be in proximity to
10315 other frame-related functions.
10316 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10317 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10318 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10319 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10320 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10321
36af0b35
L
103222002-04-22 H.J. Lu (hjl@gnu.org)
10323
10324 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10325 includedir.
10326
ab62c900
JT
103272002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10328
10329 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10330 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10331 (FRAME_INIT_SAVED_REGS): New macro.
10332
7232b100
JT
103332002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10334
10335 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10336
b70d2aee
JT
103372002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10338
10339 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10340 where needed.
10341 (fetch_osf_core_registers): Likewise.
10342 (supply_gregset): Likewise.
10343
a0e8a2d1 103442002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 10345
a0e8a2d1
JB
10346 * symfile.h (get_section_index): Define.
10347 * symfile.c (get_section_index): New function.
10348 * mdebugread.c (SC_IS_SBSS): New macro.
10349 (SC_IS_BSS): Return true for the scBss storage class only, as
10350 the scSBss storage class refers to the .sbss section.
10351 (parse_partial_symbols): Discard the symbols which associated
10352 section does not exist.
10353 Make sure to use the .sbss section index for symbols which
10354 storage class is scBss, rather than using the .bss section index.
10355
51eb8b08
JT
103562002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10357
10358 * vax-tdep.c: Update copyright years.
10359 (vax_register_name): New function.
10360 (vax_register_byte): Ditto.
10361 (vax_register_raw_size): Ditto.
10362 (vax_register_virtual_size): Ditto.
10363 (vax_register_virtual_type): Ditto.
10364 * config/vax/tm-vax.h: Update copyright years.
10365 (REGISTER_NAMES): Remove.
10366 (REGISTER_NAME): Define.
10367 (REGISTER_BYTE): Use vax_register_byte.
10368 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10369 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10370 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10371
6cc1c0a8
AC
103722002-04-21 Andrew Cagney <ac131313@redhat.com>
10373
10374 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10375 declaration
10376 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10377
9319a2fe
DM
103782002-04-21 David S. Miller <davem@redhat.com>
10379
10380 * arch-utils.c (generic_prologue_frameless_p): Kill
10381 SKIP_PROLOGUE_FRAMELESS_P code.
10382 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10383 references.
10384 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10385 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10386 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10387 references.
10388 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10389 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10390 (sparc_gdbarch_init): Pass it to
10391 set_gdbarch_prologue_frameless_p.
a0e8a2d1 10392
e9ed6d01
JT
103932002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10394
10395 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10396 (alphabsd-nat.o): New dependency list.
10397
36012033
JT
103982002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10399
10400 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10401 alphafbsd-tdep.c.
10402 (alpha-linux-tdep.o): New dependency list.
10403 (alphafbsd-tdep.o): Likewise.
10404
3379287a
JT
104052002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10406
10407 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10408 to here...
10409 * alpha-tdep.c: ...from here.
10410 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10411
4bcbd6cb
JT
104122002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10413
10414 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10415 prototype from here...
10416 * alpha-tdep.h: ...to here.
10417
b31da25e
AC
104182002-04-21 Andrew Cagney <ac131313@redhat.com>
10419
10420 * frame.h (selected_frame_level): Document as deprecated.
10421 (frame_relative_level): Declare.
10422 * stack.c (frame_relative_level): New function.
10423 (selected_frame_level): Document as deprecated.
10424 (select_frame): Do not set the selected_frame_level.
10425
10426 * stack.c (frame_info, record_selected_frame): Update.
10427 (frame_command, current_frame_command): Update.
10428 (up_silently_base, up_command, down_silently_base): Update.
10429 (down_command): Update.
10430 * inflow.c (kill_command): Update.
10431 * tracepoint.c (finish_tfind_command): Update.
10432 * corelow.c (core_open): Update.
10433 * thread.c (info_threads_command): Update.
10434 (do_captured_thread_select): Update.
10435 * infcmd.c (finish_command): Update.
10436 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10437
9c1d6fe5
JT
104382002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10439
10440 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10441
ab89facf
AC
104422002-04-21 Andrew Cagney <ac131313@redhat.com>
10443
10444 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10445 type const.
10446
82a4efa1
JT
104472002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10448
10449 * alphafbsd-tdep.c: Update copyright years. Include
10450 alpha-tdep.h.
10451 (alphafbsd_use_struct_convention): Make static.
10452 (alphafbsd_init_abi): New function.
10453 (_initialize_alphafbsd_tdep): New function.
10454 * config/alpha/tm-fbsd.h: Update copyright years.
10455 (USE_STRUCT_CONVENTION): Remove.
10456
44dffaac
JT
104572002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10458
10459 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10460 an Alpha ABI variant.
10461 (alpha_abi_handler_list): Declare.
10462 (alpha_gdbarch_register_os_abi): New function.
10463 (alpha_gdbarch_init): Give registered ABI variant handlers a
10464 chance to tweak the gdbarch once we have set up defaults.
10465 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10466
65585be4
JT
104672002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10468
10469 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10470 to standard_coerce_float_to_double.
10471 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10472
d9b023cc
JT
104732002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10474
10475 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10476 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10477 from gdbarch_tdep rather than a constant.
10478 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10479 the default text address for all Alpha Unix ABIs.
10480 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10481 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10482
dc129d82
JT
104832002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10484
10485 * alpha-tdep.h: New file. Includes several Alpha target constants
10486 taken from...
10487 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10488 let gdbarch deal with.
10489 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10490 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10491 to dependency list.
10492 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10493 Alpha target register names.
10494 * alphabsd-nat.c: Likewise.
10495 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10496 Alpha target register names. Make serveral routines static.
10497 (alpha_get_saved_register): New function.
10498 (alpha_abi_names): New.
10499 (process_note_abi_tag_sections): New function.
10500 (get_elfosabi): New function.
10501 (alpha_gdbarch_init): New function.
10502 (alpha_dump_tdep): New function.
10503 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10504
d49d1e0a
AC
105052002-04-21 Andrew Cagney <ac131313@redhat.com>
10506
10507 * frame.c (find_saved_register): Delete #ifdef
10508 HAVE_REGISTER_WINDOWS code.
10509 * config/sparc/tm-sparc.h: Update comments.
10510 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10511
92e8c9ed
AC
105122002-04-21 Andrew Cagney <ac131313@redhat.com>
10513
10514 * i960-tdep.c (i960_find_saved_register): New function.
10515 (i960_get_saved_register): New function.
10516 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10517 (i960_get_saved_register): Declare.
10518 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10519
e1925118
DM
105202002-04-20 David S. Miller <davem@redhat.com>
10521
10522 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10523
29673b29
AC
105242002-04-20 Andrew Cagney <ac131313@redhat.com>
10525
10526 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10527 instead of NUM_PSEUDO_REGS.
10528
6c86dcd5
DM
105292002-04-20 David S. Miller <davem@redhat.com>
10530
10531 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10532 GDB_MULTI_ARCH_PARTIAL
10533 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10534 define, let tm-sp64.h do it.
10535
aa40ec90
JT
105362002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10537
10538 * frame.c (find_saved_register): Avoid a NULL pointer
10539 dereference and actually walk the frame list.
10540
0f79675b
AC
105412002-04-20 Andrew Cagney <ac131313@redhat.com>
10542
10543 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10544 sorted in most most-recent-used order. Document.
10545 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10546
f91305dd 105472002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10548
10549 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10550 instead of ->prev.
10551 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10552 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10553 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10554 instead of ->prev.
10555
73d322b1
EZ
105562002-04-19 Elena Zannoni <ezannoni@redhat.com>
10557
10558 Fix PR gdb/471.
10559 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10560 (build_builtin_type_vec128): Ditto.
10561 (append_composite_type_field): Fix calculation of type length in
10562 union case.
10563
ccd9a834
EZ
105642002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10565
10566 * config/djgpp/README: Update.
10567
10568 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10569 compiler warnings.
10570
a57f9e49
JT
105712002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10572
10573 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10574 (alpha_setup_arbitrary_frame): ...to this.
10575 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10576 for alpha_setup_arbitrary_frame.
10577
f4f9705a
AC
105782002-04-18 Andrew Cagney <cagney@redhat.com>
10579
10580 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10581 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10582
f4f9705a
AC
10583 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10584 * target.h (memory_breakpoint_from_pc): Update declaration.
10585 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10586
10587 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10588 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10589 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10590 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10591 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10592 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10593 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10594 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10595 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10596 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10597 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10598 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10599
10600 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10601 const pointer.
10602 * monitor.c (monitor_insert_breakpoint): Ditto.
10603 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10604
10605 * config/mcore/tm-mcore.h: Update copyright.
10606 * mem-break.c: Ditto.
10607 * xstormy16-tdep.c: Ditto.
10608
29f319b8
PM
106092002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10610
10611 * p-exp.y: Add precedence rule for '^' token.
10612 This removes the shift/reduce conflicts.
10613 Remove the comment concerning these shift/reduce conflicts.
10614
ebeac11a
EZ
106152002-04-18 Elena Zannoni <ezannoni@redhat.com>
10616
10617 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10618 (registers_powerpc_nofp): New register set for processors
10619 without floating point unit.
10620
27c31547
DM
106212002-04-18 David S. Miller <davem@redhat.com>
10622
10623 * MAINTAINERS: Add myself to write-after-approval.
10624
47a73475
MS
106252002-04-17 Michael Snyder <msnyder@redhat.com>
10626
10627 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10628
953836b2
AC
106292002-04-17 Andrew Cagney <ac131313@redhat.com>
10630
10631 * rs6000-tdep.c (frame_initial_stack_address): Use
10632 frame_register_read to read the alloca_reg.
10633
8b0d4340
AC
106342002-04-17 Andrew Cagney <ac131313@redhat.com>
10635
10636 * frame.c (find_saved_register): Find saved registers in the next
10637 not prev frame.
10638 Fix PR gdb/365.
10639
d8864532
AC
106402002-04-17 Andrew Cagney <ac131313@redhat.com>
10641
10642 * gdbarch.sh (LANG): Set to ``c''.
10643
36cc83a3 106442002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10645
36cc83a3 10646 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10647
2f4150cc 106482002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10649
10650 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10651 Update copyright.
10652
628703c6 10653 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10654 Also fix PR gdb/391.
361d1df0 10655
56157b4a
AC
106562002-04-14 Andrew Cagney <ac131313@redhat.com>
10657
10658 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10659 * aclocal.m4, configure: Re-generate.
10660 Fix PR gdb/391.
361d1df0 10661
6d1e3329
EZ
106622002-04-14 Elena Zannoni <ezannoni@redhat.com>
10663
10664 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10665 instead of tm_print_insn.
10666
cb06fa07
EZ
106672002-04-14 Elena Zannoni <ezannoni@redhat.com>
10668
10669 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10670
f208ba17
AC
106712002-04-14 Andrew Cagney <ac131313@redhat.com>
10672
10673 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10674 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10675 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10676
20f01a46
DH
106772002-04-12 Don Howard <dhoward@redhat.com>
10678
10679 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10680 max_user_call_depth.
10681 (init_cmd_lists): Initialize the new value;
10682 * cli/cli-script.c (execute_user_command): Limit the call depth of
10683 user defined commands. This avoids a core-dump when user commands
10684 are infinitly recursive.
10685
a88376a3
KB
106862002-04-12 Kevin Buettner <kevinb@redhat.com>
10687
10688 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10689 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10690 from tdep struct instead of DEFAULT_LR_SAVE.
10691 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10692 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10693 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10694
f2172603
MS
106952002-04-12 Michael Snyder <msnyder@redhat.com>
10696
694f61fb 10697 * Remote.c: Spelling fix.
20fe79c8
MS
10698 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10699 If no symbol found for "sbrk", try "_sbrk".
10700 (make_output_phdrs): Use bfd_section_name.
10701 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10702 * eval.c: Indentation fix-ups.
169a7369
MS
10703 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10704 in case it gets applied to an address that is already
10705 in the instruction space.
de74f71f
MS
10706 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10707 * symfile.c: Fix indentation, long lines.
f2172603
MS
10708 * source.c: White space fix-up.
10709
cda5a58a
AC
107102002-04-12 Andrew Cagney <cagney@redhat.com>
10711
10712 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10713 * frame.c (frame_register_read): New function. Return non-zero on
10714 success.
10715 (read_relative_register_raw_bytes_for_frame): Delete.
10716 (read_relative_register_raw_bytes): Delete.
10717 * frame.h (frame_register_read): Declare.
10718 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10719 * sh-tdep.c: Ditto.
10720 * infcmd.c (do_registers_info): Ditto.
10721 * hppa-tdep.c: Ditto.
10722 * rs6000-tdep.c: Ditto.
10723 * h8500-tdep.c: Ditto.
10724 * mips-tdep.c: Ditto.
10725 * h8300-tdep.c: Ditto.
10726 * z8k-tdep.c: Ditto.
10727
2ea5f656
KB
107282002-04-12 Kevin Buettner <kevinb@redhat.com>
10729
10730 From Jimi X <jimix@watson.ibm.com>:
10731 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10732 64-bit SysV ABI.
10733
27b15785
KB
107342002-04-12 Kevin Buettner <kevinb@redhat.com>
10735
10736 From Jimi X <jimix@watson.ibm.com>:
10737 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10738 bfd info.
10739
5d57ee30
KB
107402002-04-12 Kevin Buettner <kevinb@redhat.com>
10741
10742 From Jimi X <jimix@watson.ibm.com>:
10743 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10744 register sets for these processor variants.
10745
bc1e36ca
DJ
107462002-04-11 Daniel Jacobowitz <drow@mvista.com>
10747
bc1e36ca
DJ
10748 * regformats/reg-ppc.dat: Support FPSCR.
10749
e3f36dbd
KB
107502002-04-11 Kevin Buettner <kevinb@redhat.com>
10751
10752 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10753 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10754 Add fpscr as an invalid/unfetchable register.
10755 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10756 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10757 (fill_fpregset): Add support for register fpscr.
10758 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10759 (fill_gregset): Account for the fact that register ``mq'' might
10760 not exist.
10761 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10762 (registers_power): Add fpscr to register set at slot 71.
10763 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10764 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10765
943c9c25
MS
107662002-04-11 Michael Snyder <msnyder@redhat.com>
10767
10768 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10769 * configure: Regenerate.
10770 * config.in: Regenerate.
10771 * acconfig.h: Add define for _SYSCALL32.
10772 * core-sol2.c: Remove #define _SYSCALL32.
10773 * solib-legacy.c: Remove #define _SYSCALL32.
10774
d8c0a2e7
AC
107752002-04-10 Andrew Cagney <ac131313@redhat.com>
10776
10777 * stack.c (select_frame): Cleanup internal error message, do not
10778 use %p.
10779
7cc19214
AC
107802002-04-10 Andrew Cagney <ac131313@redhat.com>
10781
10782 * stack.c (select_frame): Check that selected_frame and the
10783 specified level are as expected.
10784 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10785 Update copyright.
10786 * frame.h (struct frame_info): Add field `level'. Update
10787 copyright.
10788 Work-in-progress PR gdb/464.
10789
67a2b77e
AC
107902002-04-10 Andrew Cagney <ac131313@redhat.com>
10791
10792 * maint.c (maint_print_section_info): Rename print_section_info.
10793 (print_bfd_section_info, print_objfile_section_info): Update.
10794 * inferior.h (struct gdbarch): Add opaque declaration.
10795 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10796 * gdbarch.h: Regenerate.
10797
8cfda98c
ML
107982002-04-10 Michal Ludvig <mludvig@suse.cz>
10799
10800 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10801 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10802 (kernel_u_size): Added.
10803 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10804 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10805
ca439ad2 108062002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10807
ca439ad2
JI
10808 * valarith.c (find_size_for_pointer_math): New function, either returns
10809 the size for a pointer's target, returns 1 for void *, or errors for
10810 incomplete types.
10811 (value_add, value_sub): use find_size_for_pointer_math.
10812
2f2893d9
DJ
108132002-04-09 Daniel Jacobowitz <drow@mvista.com>
10814
10815 * linux-low.c (linux_look_up_symbols): New hook.
10816 (linux_target_ops): Add linux_look_up_symbols.
10817 * remote-utils.c (decode_address): New function.
10818 (look_up_one_symbol): New function.
10819 * server.c (handle_query): Call target look_up_symbols hook.
10820 * server.h (look_up_one_symbol): Add prototype.
10821 * target.h (struct target_ops): Add look_up_symbols hook.
10822
96cb11df
AC
108232002-04-09 Andrew Cagney <ac131313@redhat.com>
10824
10825 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10826 override FP_REGNUM with frame->fp. Update copyright.
10827 * parse.c (num_std_regs, std_regs): Delete.
10828 (target_map_name_to_register): Do not search std_regs. Update
10829 function description.
10830 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10831 declarations. Update copyright.
10832 Fix PR gdb/251.
361d1df0 10833
97658e92
DJ
108342002-04-09 Daniel Jacobowitz <drow@mvista.com>
10835
10836 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10837 after the last symbol in a block.
10838
6044e3eb
PM
108392002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10840
10841 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10842 is non zero as a found symbol.
10843
0406ec40
AC
108442002-04-08 Andrew Cagney <ac131313@redhat.com>
10845
10846 * findvar.c: Include "builtin-regs.h".
10847 (value_of_register): Call value_of_builtin_reg when applicable.
10848 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10849 (target_map_name_to_register): Call
10850 builtin_reg_map_name_to_regnum.
10851 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10852 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10853 (builtin_regs_h): Define.
10854 (builtin-regs.o): New target.
10855 (findvar.o): Add $(builtin_regs_h).
10856 * builtin-regs.c, builtin-regs.h: New files.
10857 * std-regs.c: New file.
10858 Partial fix for PR gdb/251.
10859
56a6dfb9
KB
108602002-04-08 Kevin Buettner <kevinb@redhat.com>
10861
10862 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10863 it's no longer required.
10864
3a808432
AC
108652002-04-08 Andrew Cagney <ac131313@redhat.com>
10866
10867 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10868
7c40d541
KB
108692002-04-08 Kevin Buettner <kevinb@redhat.com>
10870
10871 From Jimi X <jimix@watson.ibm.com>:
10872 * rs6000-tdep.c (rs6000_software_single_step): Use
10873 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10874 and size. Use target_insert_breakpoint() and
10875 target_remove_breakpoint() to insert and remove breakpoints
10876 instead of explicit memory reads and writes.
10877
cc9836a8
KB
108782002-04-08 Kevin Buettner <kevinb@redhat.com>
10879
10880 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10881 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10882 ELF_OBJECT_FORMAT ifdef.
10883
7495d1dc
KB
108842002-04-08 Kevin Buettner <kevinb@redhat.com>
10885
10886 From Jimi X <jimix@watson.ibm.com>:
10887 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10888
4288e836
KB
108892002-04-08 Kevin Buettner <kevinb@redhat.com>
10890
10891 From Jimi X <jimix@watson.ibm.com>:
10892 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10893 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10894
a4e4e501
MK
108952002-04-07 Mark Kettenis <kettenis@gnu.org>
10896
10897 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10898 s/asprintf/xasprintf/.
10899 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10900
006defba
AC
109012002-04-07 Andrew Cagney <ac131313@redhat.com>
10902
10903 I believe Jeff Law denies responsability for this one:
10904 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10905 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10906 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10907 Work-around for PR gdb/366.
10908
7aa83cac
EZ
109092002-04-07 Elena Zannoni <ezannoni@redhat.com>
10910
10911 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10912 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10913 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10914
cf1fcca1
EZ
109152002-04-07 Elena Zannoni <ezannoni@redhat.com>
10916
10917 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10918 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10919 information.
10920
3f289e6f
AC
109212002-04-07 Andrew Cagney <ac131313@redhat.com>
10922
10923 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10924 maintainer.
10925
129188f6
AC
109262002-04-07 Andrew Cagney <ac131313@redhat.com>
10927
10928 * README (Reporting Bugs in GDB): Document the bug web page as the
10929 prefered way of submitting bugs.
10930 Fix PR gdb/402.
10931
1200cd6e
AC
109322002-04-06 Andrew Cagney <ac131313@redhat.com>
10933
10934 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10935 -1. Update comment.
10936 * gdbarch.h, gdbarch.c: Re-generate.
10937
2853c33c
AS
109382002-04-07 Andreas Schwab <schwab@suse.de>
10939
10940 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10941 buffer to regcache_collect.
10942
c2169756
AC
109432002-04-06 Andrew Cagney <ac131313@redhat.com>
10944
10945 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10946 * gdbarch.c, gdbarch.h: Re-generate.
10947
25f1b008
AC
109482002-04-06 Andrew Cagney <ac131313@redhat.com>
10949
10950 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10951 declaration. Fix -Werror.
10952
59263426
DJ
109532002-04-05 Daniel Jacobowitz <drow@mvista.com>
10954
10955 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10956 * gdbarch.c: Regenerate.
10957
f5db4da3
MS
109582002-04-05 Michael Snyder <msnyder@redhat.com>
10959
80f8a6eb
MS
10960 * breakpoint.c (clear_command): Rewrite middle section to
10961 combine two loops with identical control conditions.
10962 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10963 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10964
ad3dcc5c
L
109652002-04-05 H.J. Lu (hjl@gnu.org)
10966
10967 * solib-svr4.c (bkpt_names): Add "__start".
10968
f32e7a74
AC
109692002-04-04 Andrew Cagney <ac131313@redhat.com>
10970
10971 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10972 as test for 64 bit target.
10973
8227c0ff
AC
109742002-04-05 Andrew Cagney <ac131313@redhat.com>
10975
10976 * h8500-tdep.c (h8500_write_fp): Delete function.
10977 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10978 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10979 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10980 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10981 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10982 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10983 (s390_write_fp):
10984 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10985 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10986 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10987 (d10v_write_fp): Delete function.
10988 * inferior.h (write_fp, generic_target_write_fp): Delete
10989 declarations.
10990 * regcache.c (generic_target_write_fp): Delete function.
10991 (write_fp): Delete function.
10992 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10993 * gdbarch.h, gdbarch.c: Regenerate.
10994 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10995 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10996 (sparc64_write_fp): Delete declaration.
10997 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10998 (h8500_write_fp): Delete declaration.
10999
2757dd86
AC
110002002-04-04 Andrew Cagney <ac131313@redhat.com>
11001
11002 * sparc-tdep.c (sparc64_write_fp): Delete.
11003 (sparc_push_dummy_frame): Replace write_fp call with code to store
11004 the FP directly.
11005 (sparc_gdbarch_init): Do not initialize write_fp.
11006
c69255e1
KB
110072002-04-05 Kevin Buettner <kevinb@redhat.com>
11008
11009 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11010 clause.
11011
ae767bfb
JB
110122002-03-29 Jim Blandy <jimb@redhat.com>
11013
11014 * stack.c (get_selected_block): Add new argument `addr_in_block',
11015 used to return the exact code address we used to select the block,
11016 not just the block.
11017 * blockframe.c (get_frame_block, get_current_block): Same.
11018 * frame.h (get_frame_block, get_current_block,
11019 get_selected_block): Update declarations.
11020 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11021 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11022
84d2ac95
MS
110232002-04-05 Michael Snyder <msnyder@redhat.com>
11024
11025 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11026 warning message.
11027
596aa3bf
JB
110282002-04-05 J. Brobecker <brobecker@gnat.com>
11029
11030 * utils.c (xfullpath): New function.
11031 * defs.h (xfullpath): Add declaration.
11032 * source.c (openp): Use xfullpath in place of gdb_realpath to
11033 avoid resolving the basename part of filenames when the
11034 associated file is a symbolic link. This fixes a potential
11035 inconsistency between the filenames known to GDB and the
11036 filenames it prints in the annotations.
11037 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11038 to be able to match a filename with either the real filename, or
11039 the name of any symbolic link to this file.
11040 (lookup_partial_symtab): Ditto.
11041
c02f5703
MS
110422002-04-04 Michael Snyder <msnyder@redhat.com>
11043
11044 * breakpoint.c: Add support for hardware breakpoints in overlays.
11045 (overlay_events_enabled): New state variable.
11046 (insert_breakpoints): Use overlay_events_enabled to decide
11047 whether to attempt to set a breakpoint at the overlay load addr.
11048 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11049 (remove_breakpoint): Use overlay_events_enabled to decide
11050 whether breakpoints need to be removed from overlay load addr.
11051 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11052 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 11053 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
11054 disable_overlay_breakpoints): Update overlay_events_enabled.
11055
5fb290d7
DJ
110562002-04-04 Daniel Jacobowitz <drow@mvista.com>
11057
11058 * dwarf2read.c (struct function_range): New.
11059 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11060 (check_cu_functions): New.
11061 (read_file_scope): Initialize global function lists.
11062 Call dwarf_decode_line after processing children.
11063 (read_func_scope): Add to global function list.
11064 (dwarf_decode_lines): Call check_cu_functions everywhere
11065 record_line is called. Call record_line with a linenumber
11066 of 0 to mark sequence ends.
11067
7b3fabf0
ML
110682002-04-04 Michal Ludvig <mludvig@suse.cz>
11069
361d1df0 11070 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
11071 change sync with glibc.
11072
bce58c09
JB
110732002-04-03 Jim Blandy <jimb@redhat.com>
11074
11075 * configure.in: Call AC_C_INLINE.
11076 * configure: Regenerated.
361d1df0 11077
2fccf04a
DJ
110782002-04-01 Daniel Jacobowitz <drow@mvista.com>
11079
11080 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11081 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11082
2d1bfe2e
MK
110832002-03-31 Mark Kettenis <kettenis@gnu.org>
11084
a5941fbf
MK
11085 * NEWS: Mention gcore support on FreeBSD/i386.
11086
a90cd31d
MK
11087 * fbsd-proc.c: New file.
11088 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11089 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11090
2d1bfe2e
MK
11091 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11092 while statement.
11093
9eb6e5a1
JB
110942002-03-29 Jim Blandy <jimb@redhat.com>
11095
11096 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11097 unescaped newlines in string literals, but newer ones don't. So
11098 escape them.
11099
f02df580
MS
111002002-03-26 Michael Snyder <msnyder@redhat.com>
11101 Andrew Cagney <cagney@redhat.com>
11102
361d1df0 11103 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
11104 restore file to memory.
11105 * cli/cli-dump.h: New file.
11106 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 11107 * NEWS: Mention new commands.
f02df580 11108
109f874e
MS
111092002-03-28 Michael Snyder <msnyder@redhat.com>
11110
11111 * symfile.c (symbol_file_add): Move test for null symbols to later.
11112
520f6ade
AC
111132002-03-27 Andrew Cagney <ac131313@redhat.com>
11114
11115 From veksler at il.ibm.com:
11116 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11117 the xstrduped original path.
11118 Fix PR gdb/417.
11119
d4654627
MS
111202002-03-27 Michael Snyder <msnyder@redhat.com>
11121
11122 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11123 * infcmd.c (_initialize_infcmd): Ditto.
11124 * language.c (_initialize_language): Ditto.
11125 * symfile.c (_initialize_symfile): Ditto.
11126 * top.c (_init_main): Ditto.
11127 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11128
6be8bc0c
EZ
111292002-03-27 Elena Zannoni <ezannoni@redhat.com>
11130
11131 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11132 vector registers handling.
11133 (skip_prologue): Handle new AltiVec instructions. Fill in new
11134 fields of frame data.
11135 (frame_get_saved_regs): Fill in information for AltiVec registers.
11136
12af6855
JB
111372002-03-27 Jim Blandy <jimb@redhat.com>
11138
11139 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11140 a function; leave this macro here to invoke that function.
11141 (symbol_init_mangled_name): Declaration for that function.
11142 * symtab.c (symbol_init_mangled_name): New function.
11143
dc672865
AC
111442002-03-27 Andrew Cagney <ac131313@redhat.com>
11145
11146 * valarith.c: Replace strerror with safe_strerror.
11147 * tracepoint.c: Ditto.
11148 * lin-lwp.c: Ditto.
11149 * go32-nat.c: Ditto.
11150 * inflow.c: Ditto.
11151 * gnu-nat.c: Ditto.
11152
d96429cd
AS
111532002-03-27 Andreas Schwab <schwab@suse.de>
11154
11155 * event-top.c (command_line_handler): Remove useless if.
11156
7e336ba1
AJ
111572002-03-27 Andreas Jaeger <aj@suse.de>
11158
11159 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11160 comment.
11161
de220d0f
ML
111622002-03-27 Michal Ludvig <mludvig@suse.cz>
11163
11164 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11165 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11166 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11167 (x86_64_linux_dr_get_status, supply_gregset),
11168 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11169 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11170 (x86_64_register_info_table): Add.
11171 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11172 (x86_64_register_raw_size, x86_64_register_virtual_type),
11173 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11174 general x86_64_register_info_table.
11175 (i386_gdbarch_init): gdbarch_register_bytes is now set
11176 dynamicaly during initialization.
11177 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11178 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 11179
0e98d0a7
DJ
111802002-03-27 Daniel Jacobowitz <drow@mvista.com>
11181
11182 * gdbserver/server.c (main): Call target_signal_to_host_p
11183 and target_signal_to_host on signals received from the remote.
11184 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11185 target_signal_from_host on signals sent to the remote.
11186 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11187 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11188
3130066b
DJ
111892002-03-27 Daniel Jacobowitz <drow@mvista.com>
11190
11191 * signals/signals.c: Include "server.h" in gdbserver build.
11192 (target_signal_from_name): Don't use STREQ.
11193 (_initialize_signals): Likewise. Don't include function in
11194 gdbserver build.
11195
9aedf4f4
DJ
111962002-03-27 Daniel Jacobowitz <drow@mvista.com>
11197
11198 * signals.c: Moved to...
11199 * signals/signals.c: Here.
7e336ba1 11200 * Makefile (signals.o): Update.
9aedf4f4 11201
3fa41cdb
JL
112022002-03-26 Jeff Law (law@redhat.com)
11203
11204 * somread.c (som_symtab_read): Remove some commented out code and
11205 updated related comments. Do not set the minimal symbol table to
11206 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11207 in a dynamic executable.
11208 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11209 where we are unable to find the minimal symbol for the given
11210 PC value.
11211
ee677e8d
MS
112122002-03-25 Jeff Law (law@redhat.com)
11213
11214 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11215
e76e1718
ML
112162002-03-25 Michal Ludvig <mludvig@suse.cz>
11217
11218 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11219
18a642a1
AC
112202002-03-23 Andrew Cagney <ac131313@redhat.com>
11221
11222 * command.h: Update copyright.
11223 (struct cmd_list_element): Replace definition with opaque
11224 declaration.
11225 (enum cmd_types): Document that it will eventually be moved to
11226 cli/cli-decode.h
11227 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11228 (MALLOCED_REPLACEMENT): Delete macro.
11229 * Makefile.in (cli_decode_h): Add $(command_h).
11230 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 11231 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
11232 * completer.c: Include "cli/cli-decode.h".
11233 * maint.c: Include "cli/cli-decode.h".
11234 * cli/cli-decode.h: Include "command.h".
11235 (enum command_class): Delete.
11236 (enum cmd_types): Comment out.
11237 (enum cmd_auto_boolean): Delete.
11238 (enum var_types): Delete.
11239
b2875cc0
AC
112402002-03-23 Andrew Cagney <ac131313@redhat.com>
11241
11242 * cli/cli-decode.c: Include "gdb_assert.h".
11243 (add_set_or_show_cmd): New static function.
11244 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11245 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11246 all fields, such as func, from the set command.
11247
3b45974e
AC
112482002-03-23 Andrew Cagney <ac131313@redhat.com>
11249
11250 * MAINTAINERS (sh-elf): Change warning flag to -w.
11251
823ca731
AC
112522002-03-23 Andrew Cagney <cagney@redhat.com>
11253
11254 * defs.h (error): Add printf format attribute.
11255 * thread-db.c (thread_from_lwp): Fix error format string.
11256 * stack.c (parse_frame_specification): Ditto.
11257 * cli/cli-decode.c (undef_cmd_error): Ditto.
11258 * scm-lang.c (scm_lookup_name): Ditto.
11259 * tracepoint.c (trace_error): Ditto.
11260 * remote-utils.c (usage): Ditto.
11261 * remote.c (compare_sections_command): Ditto.
11262 Fix PR gdb/328.
11263
0e101458
AC
112642002-03-22 Andrew Cagney <ac131313@redhat.com>
11265
11266 * gdbtypes.c (append_composite_type_field): New function.
11267 (init_composite_type): New function.
11268 * gdbtypes.h (append_composite_type_field): Declare.
11269 (init_composite_type): Ditto.
11270
8e0662df
EZ
112712002-03-22 Elena Zannoni <ezannoni@redhat.com>
11272
11273 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 11274 function.
8e0662df
EZ
11275 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11276 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11277 structure returning convention for SYSV ABI case, but not
11278 for GNU/Linux, FreeBSD, or NetBSD.
11279
3121eff0
DJ
112802002-03-22 Daniel Jacobowitz <drow@mvista.com>
11281
11282 * symtab.h (lookup_block_symbol): Add mangled_name argument
11283 to prototype.
11284
11285 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11286 with new mangled_name argument.
11287 * linespec.c (decode_line_1): Likewise.
11288 * valops (value_of_this): Likewise.
11289 * symtab.c (lookup_transparent_type): Likewise.
11290 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11291 (lookup_symbol): If we are given a mangled name, pass it down
11292 to lookup_symbol_aux.
11293 (lookup_block_symbol): If we are given a mangled name to check
11294 against, only return symbols which match it.
11295
349b409f
CF
112962002-03-22 Christopher Faylor <cgf@redhat.com>
11297
11298 * win32-nat.c (child_create_inferior): Check for proper shell to use
11299 here, in case the user changes it on the fly.
11300 (_initialize_inftarg): Remove shell path considerations.
11301
2a873819
EZ
113022002-03-21 Elena Zannoni <ezannoni@redhat.com>
11303
11304 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11305 for gdbarch_max_register_raw_size and max_register_virtual_size.
11306 Adjust copyright year.
11307
a1b9830c
DJ
113082002-03-21 Daniel Jacobowitz <drow@mvista.com>
11309
11310 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11311 in a function to cover the entire beginning of the function
11312 as well if it does not already.
11313
8b5790f2
TR
113142002-03-21 Tom Rix <trix@redhat.com>
11315
11316 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11317 (rs6000_ptrace64): Renamed from ptrace64.
11318
bdbe5747
MH
113192002-03-20 Martin M. Hunt <hunt@redhat.com>
11320
11321 * gdbserver/remote-utils.c (remote_open): Don't call
11322 getprotobyname, we're all using TCP here so just use
11323 IPPROTO_TCP.
7e336ba1 11324 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
11325
113262002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 11327
bdbe5747
MH
11328 * regcache.c (_initialize_regcache): No need to call
11329 build_regcache() at this time; it gets called whenever
11330 the gdbarch changes.
11331
7781cd62
DB
113322002-03-20 David O'Brien <obrien@FreeBSD.org>
11333
11334 * sparc-nat.c: Include sys/param.h where possible.
11335
f65ca430
DJ
113362002-03-20 Daniel Jacobowitz <drow@mvista.com>
11337
11338 Fix PR gdb/422.
11339 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11340 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11341 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11342 complex types.
11343 * stabsread.c (rs6000_builtin_type): Likewise.
11344 (read_sun_floating_type): Likewise.
11345
0c867556
PS
113462002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11347
11348 * stabsread.c (read_member_functions): Remove skip code for duplicate
11349 constructor/destructor methods. Use standard parsing for these
11350 methods and just do not chain them to the list of methods after
11351 parsing.
11352
12b9c64f
AO
113532002-03-19 Alexandre Oliva <aoliva@redhat.com>
11354
11355 * coffread.c: Remove redundant static declarations. Replace
11356 occurrences of `PTR' with `void *'.
11357 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11358 * top.h (quit_cover): Likewise.
11359 * defs.h (catch_errors): Likewise.
11360
349c5d5f
AC
113612002-03-18 Andrew Cagney <ac131313@redhat.com>
11362
11363 * defs.h (XMALLOC): Define.
11364 * gdb-events.sh (XMALLOC): Delete macro.
11365 * gdb-events.c, gdb-events.h: Regenerate.
11366 * gdbarch.sh (XMALLOC): Delete macro.
11367 * gdbarch.c: Regenerate.
11368 * serial.c (XMALLOC): Delete macro.
11369 * ui-file.c (XMALLOC): Ditto.
11370 * ser-unix.h (XMALLOC): Ditto.
11371 * sh-tdep.c (XMALLOC): Ditto.
11372 * ui-out.c (XMALLOC): Ditto.
11373 * utils.c (XMALLOC): Ditto.
11374 * i386-tdep.c (XMALLOC): Ditto.
11375 * gdb-events.c (XMALLOC): Ditto.
11376 * d10v-tdep.c (XMALLOC): Ditto.
11377 * cli-out.c (XMALLOC): Ditto.
11378
11379 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11380 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11381 * ui-file.c, ui-out.c: Ditto.
11382
7d0766f3
AC
113832002-03-18 Andrew Cagney <ac131313@redhat.com>
11384
11385 * command.h (struct cmd_list_element): Add field context.
11386 (set_cmd_context, get_cmd_context): Declare.
11387 * cli/cli-decode.h: Ditto.
11388 * cli/cli-decode.c (get_cmd_context): New function.
11389 (set_cmd_context): New function.
11390 (add_cmd): Initialize context.
11391 Part of fixing PR gdb/145 and PR gdb/146.
11392
5913bcb0
AC
113932002-03-17 Andrew Cagney <ac131313@redhat.com>
11394
1868c04e
AC
11395 * cli/cli-decode.c (cmd_type): New function.
11396 * command.h (cmd_type): Declare.
11397 * infrun.c (set_schedlock_func): Call function cmd_type.
11398 * kod.c (kod_set_os): Call cmd_type.
11399 * cris-tdep.c (cris_version_update): Use function cmd_type.
11400 (cris_mode_update, cris_abi_update): Ditto.
11401
5913bcb0
AC
11402 * command.h: (execute_cmd_post_hook): Declare.
11403 (execute_cmd_pre_hook): Declare.
11404 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11405 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11406 functions. Execute pre/post hook while ensuring that afterwords
11407 hook_in is cleared.
11408 * top.c (execute_command): Use execute_cmd_post_hook, and
11409 execute_cmd_pre_hook to execute pre/post commands.
11410 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11411 hook_stop_stub.
11412 (hook_stop_stub): Call execute_cmd_pre_hook.
11413
b51450c9
AC
114142002-03-17 Andrew Cagney <ac131313@redhat.com>
11415
11416 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11417 set'' and this leads to a core dump. Move xstrdup of
11418 operating_system to after check that it is not NULL.
11419
f66c9f11
AC
114202002-03-17 Andrew Cagney <ac131313@redhat.com>
11421
8e694ecf
AC
11422 * kod.c (kod_set_os): Remove unnecessary check that
11423 ``command->type'' is set_cmd.
11424
f66c9f11
AC
11425 * valprint.c (set_input_radix): Use input_radix.
11426 (set_output_radix): Use output_radix.
11427 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11428 isn't reverted.
11429
9d01611c
AC
114302002-03-16 Andrew Cagney <ac131313@redhat.com>
11431
11432 * value.h (struct value): Delete field ``substring_addr''. Change
11433 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
11434 force_core_addr_align and force_pointer_aligh.
11435
11436 * value.h (struct value): Fix typo in above change.
9d01611c 11437
4156bb53
PS
114382002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11439
11440 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11441 to fix internal_error from ``maintenance print architecture''.
11442
0e5e3ea6
PS
114432002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11444
11445 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11446 for gcc versions after gcc-2.8.1.
11447
9b013045
PS
114482002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11449
11450 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11451 for method resolution. Restore adjustment of ``this'' pointer after
11452 calling value_struct_elt, which was accidentally removed during the
11453 HP merge.
11454
376c9600
AC
114552002-03-15 Andrew Cagney <ac131313@redhat.com>
11456
11457 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11458 value_of_register.
11459 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11460 get_saved_register.
11461 * value.h (value_of_register): Update.
11462
a4db0f07
RH
114632002-03-14 Richard Henderson <rth@redhat.com>
11464
11465 * configure.in: Detect declaration for canonicalize_file_name.
11466 * utils.c (canonicalize_file_name): Declare, if needed.
11467 (gdb_realpath): Prefer realpath if available and usable.
11468 * config.in, configure: Rebuild.
11469
96383835
RH
114702002-03-14 Richard Henderson <rth@redhat.com>
11471
11472 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11473 a constant array bound.
11474
11475 * MAINTAINERS: Add myself to write-after-approval.
11476
75245b24
MS
114772002-03-14 Michael Snyder <msnyder@redhat.com>
11478
11479 * symfile.c (syms_from_objfile): Return immediately if no syms.
11480 (symbol_file_add): Return immediately if no syms.
11481 (find_sym_fns): Return immediately if no syms.
11482
e641a1ca
ML
114832002-03-13 Michal Ludvig <mludvig@suse.cz>
11484
11485 * gdbserver/remote-util.c (remote_open): Print remote-side's
11486 IP address when remote debugging over the network.
7e336ba1 11487
df08bfec
DB
114882002-03-12 David O'Brien <obrien@FreeBSD.org>
11489
11490 * config/sparc/fbsd.mh: Fix copyright.
11491 * config/sparc/fbsd.mt: Likewise.
11492
9a57864f
RE
114932002-03-11 Richard Earnshaw <rearnsha@arm.com>
11494
11495 * MAINTAINERS: Fix typo in name of gdb warnings option.
11496 (x86-64): Fix formating so that this can be parsed by awk.
11497
dd7bf85e
DJ
114982002-03-10 Daniel Jacobowitz <drow@mvista.com>
11499
11500 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11501 * defs.h: Include "gdb/signals.h".
11502 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11503
33a0a2ac
ML
115042002-03-10 Michal Ludvig <mludvig@suse.cz>
11505
11506 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11507 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11508 from x86-64-tdep.h
11509
dd824b04
DJ
115102002-03-10 Daniel Jacobowitz <drow@mvista.com>
11511 Don Howard <dhoward@redhat.com>
11512
11513 * mips-tdep.c (ST0_FR): Define.
11514 (mips2_fp_compat): New function, temporarily disabled.
11515 (mips_read_fp_register_single): New function.
11516 (mips_read_fp_register_double): New function.
11517 (mips_print_register): Use them.
11518 (do_fp_register_row): Likewise.
11519
6a41ff59
AC
115202002-03-09 Andrew Cagney <ac131313@redhat.com>
11521
11522 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11523 approval''.
11524
4ea09c10
PS
115252002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11526
11527 * stabsread.c (read_member_functions): Fix is_stub test for
11528 static member functions, improve comment.
11529
6ccc741d
RE
115302002-03-07 Richard Earnshaw <rearnsha@arm.com>
11531
11532 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11533 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11534 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11535 commands that set boolean values.
11536 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11537 (arm_rdi_resume): Always initialize PC.
11538 (arm_rdi_open): Don't use rslt as a boolean.
11539 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11540 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11541 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11542 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11543
438013df
AO
115442002-03-06 Alexandre Oliva <aoliva@redhat.com>
11545
11546 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11547 * configure: Rebuilt.
11548
70ed8774
SC
115492002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11550
11551 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11552 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11553
5ba2abeb
AC
115542002-03-06 Andrew Cagney <ac131313@redhat.com>
11555
11556 * cli/cli-decode.c (set_cmd_completer): New function.
11557 * command.h (set_cmd_completer): Declare.
11558 * cli/cli-decode.h (set_cmd_completer): Ditto.
11559
11560 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11561 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11562 * win32-nat.c (_initialize_inftarg): Ditto.
11563 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11564 * proc-api.c (_initialize_proc_api): Ditto.
11565 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11566 * source.c (_initialize_source): Ditto.
11567 * exec.c (_initialize_exec): Ditto.
11568 * solib.c (_initialize_solib): Ditto.
11569 * top.c (init_main): Ditto.
11570 * tracepoint.c (_initialize_tracepoint): Ditto.
11571 * symfile.c (_initialize_symfile): Ditto.
11572 * printcmd.c (_initialize_printcmd): Ditto.
11573 * infcmd.c (_initialize_infcmd): Ditto.
11574 * corefile.c (_initialize_core): Ditto.
11575
f779ca99
AC
115762002-03-05 Andrew Cagney <ac131313@redhat.com>
11577
11578 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11579
01a3934b
AC
115802002-03-05 Andrew Cagney <ac131313@redhat.com>
11581
11582 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11583
37057839
AC
115842002-03-05 Andrew Cagney <ac131313@redhat.com>
11585
11586 * NEWS: Update headings, 5.2 has branched.
11587
c6ecbae5
DJ
115882002-03-04 Daniel Jacobowitz <drow@mvista.com>
11589
11590 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11591 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11592 (register_addr, REGISTER_RAW_SIZE): Likewise.
11593 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11594 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11595
e9f30c21
ML
115962002-03-03 Michal Ludvig <mludvig@suse.cz>
11597
11598 * MAINTAINERS (x86-64): Add myself.
11599 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11600 changed value_ptr -> struct value *
11601
54394ac3
DB
116022002-03-01 David O'Brien <obrien@FreeBSD.org>
11603
11604 * configure.host (sparc64-*-freebsd): Add.
11605 * configure.tgt: Likewise.
11606 * config/sparc/fbsd.mh: New file.
11607 * config/sparc/fbsd.mt: Likewise.
11608 * config/sparc/nm-fbsd.h: Likewise.
11609 * config/sparc/tm-fbsd.h: Likewise.
11610
bfe95955
DJ
116112002-03-01 Daniel Jacobowitz <drow@mvista.com>
11612
11613 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11614 regformats/reg-s390x.dat.
11615
f33c6cbf
AC
116162002-03-01 Andrew Cagney <ac131313@redhat.com>
11617
11618 * utils.c: Add FIXME explaining true/false problem.
11619
5ecaa7dd
AC
116202002-02-28 Andrew Cagney <ac131313@redhat.com>
11621
11622 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11623
2a251cc2
MC
116242002-02-28 Michael Chastain <mec@shout.net>
11625
11626 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11627
6a8031a3 116282002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11629
11630 * gdbserver/linux-s390-low.c: New file.
11631 * regformats/reg-s390.dat: New file.
11632 * regformats/reg-s390x.dat: New file.
11633 * gdbserver/configure.srv: Add S/390.
11634 * gdbserver/Makefile.in: Add S/390.
11635 * configure.tgt: Enable gdbserver for S/390.
11636
ac469903
EZ
116372002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11638
11639 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11640 first line of the doc string for "info dos", except at the end of
11641 the sentence, since the short help stops at the first period.
11642
985cb1a3
JM
116432002-02-28 Jason Merrill <jason@redhat.com>
11644
11645 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11646
c570663e
FF
116472002-02-27 Fred Fish <fnf@redhat.com>
11648
11649 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11650 comment (dumy -> dummy).
11651
43630227
PS
116522002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11653
11654 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11655
b84911e8
RB
116562002-02-27 Rodney Brown <rbrown64@csc.com.au>
11657
11658 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11659
58caa3dc
DJ
116602002-02-27 Daniel Jacobowitz <drow@mvista.com>
11661
11662 * gdbserver/acconfig.h: New file.
11663 * gdbserver/i387-fp.c: New file.
11664 * gdbserver/i387-fp.h: New file.
11665 * gdbserver/linux-x86-64.c: New file.
11666 * regformats/reg-x86-64.dat: New file.
11667 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11668 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11669 * gdbserver/configure.in: Add support for regsets.
11670 * gdbserver/config.in: Regenerate.
11671 * gdbserver/configure: Regenerate.
11672 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11673 * gdbserver/linux-low.h: New file.
11674 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11675 for regsets.
11676 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11677 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11678 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11679 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11680 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11681 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11682 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11683 "i387-fp.h". Add PTRACE_GETREGS and friends.
11684 * gdbserver/regcache.c (supply_register): New function.
11685 (supply_register_by_name): New function.
11686 (collect_register): New function.
11687 (collect_register_by_name): New function.
11688
93652174
DJ
116892002-02-27 Daniel Jacobowitz <drow@mvista.com>
11690
11691 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11692 (config.status): Add configure.srv dependency.
11693 (server_h): Add config.h dependency.
11694
a02e4a61
DJ
116952002-02-27 Daniel Jacobowitz <drow@mvista.com>
11696
11697 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11698 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11699 * gdbserver/configure.srv: Change i386-*-linux* to use
11700 reg-i386-linux.o.
11701
ce0eebec
AC
117022002-02-26 Andrew Cagney <ac131313@redhat.com>
11703
11704 * x86-64-tdep.c: Re-indent. Update copyright date.
11705
82dbc5f7
AC
117062002-02-26 Andrew Cagney <ac131313@redhat.com>
11707
11708 From Michal Ludvig <mludvig@suse.cz>:
11709 * x86-64-tdep.c (value.h): Delete.
11710 (gdb_assert.h): Include.
11711 (x86_64_register_convert_to_virtual,
11712 x86_64_register_convert_to_raw ): Add check which lets only
11713 floating-point values to be converted.
11714 (value_push): Delete.
11715 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11716 (i386_gdbarch_init): Number of register_bytes fixed.
11717
e4621584
AC
117182002-02-26 Andrew Cagney <ac131313@redhat.com>
11719
11720 * MAINTAINERS: Add x86-64 target.
11721
81a9a963
AC
117222002-02-26 Andrew Cagney <ac131313@redhat.com>
11723
11724 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11725 * osfsolib.c (solib_map_sections): Ditto.
11726 * irix5-nat.c (solib_map_sections): Ditto.
11727 * corelow.c (gdb_check_format): Ditto.
11728 * symfile.c (symfile_bfd_open): Ditto.
11729 * solib.c (solib_map_sections): Ditto.
11730 Fix PR gdb/354.
7e336ba1 11731
0f017ab9
AC
117322002-02-26 Andrew Cagney <ac131313@redhat.com>
11733
11734 * remote.c (_initialize_remote): By default, disable ``e'' and
11735 ``E'' step out-of-range packets.
11736
75738c29
AS
117372002-02-26 Andreas Schwab <schwab@suse.de>
11738
11739 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11740 m68k_linux_frame_saved_pc.
11741 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11742 in_sigtramp.
11743 (SIGCONTEXT_PC_OFFSET): Remove.
11744 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11745 m68k_linux_sigtramp_saved_pc): New functions.
11746 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11747 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11748 (UCONTEXT_PC_OFFSET): Define.
11749 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11750 non-RT and RT signal trampolines.
11751
7e8ed687
RE
117522002-02-26 Richard Earnshaw <rearnsha@arm.com>
11753
11754 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11755 (TARGET_NBPG, STACK_END_ADDR): Delete
11756 (VARIABLES_INSIDE_BLOCK): Delete.
11757
6972bc8b
AC
117582002-02-25 Andrew Cagney <ac131313@redhat.com>
11759
11760 * utils.c (perror_with_name): Make string parameter constant.
11761 (print_sys_errmsg): Ditto.
11762 (query): Ditto.
11763 * defs.h (perror_with_name): Update.
11764 (print_sys_errmsg): Update.
11765 (query): Update.
11766
aa32f823
DJ
117672002-02-25 Daniel Jacobowitz <drow@mvista.com>
11768
11769 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11770 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11771
19caaa45
PS
117722002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11773
11774 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11775 if it already matches the current architecture from the exec file.
11776 Include arch-utils.h for gdbarch_info_init prototype.
11777 * Makefile.in (rs6000-nat.o): Update dependencies.
11778
d951901f
EZ
117792002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11780
11781 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11782 list of exported variables.
11783
7ea81414
DJ
117842002-02-24 Daniel Jacobowitz <drow@mvista.com>
11785
11786 * gdbserver/configure.srv: New file.
11787 * gdbserver/configure.in: Use configure.srv instead
11788 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11789 from it.
11790 * gdbserver/configure: Regenerated.
11791 * gdbserver/terminal.h: New file.
11792 * gdbserver/Makefile.in: Update for configure changes. Remove
11793 more unneeded include paths.
11794
080fe24b
AC
117952002-02-24 Andrew Cagney <ac131313@redhat.com>
11796
11797 From wiz at danbala:
11798 * config/sparc/tm-sp64.h: Fix grammar and typos.
11799 Fix PR gdb/287.
11800
8605d56e
AC
118012002-02-24 Andrew Cagney <ac131313@redhat.com>
11802
11803 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11804 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11805 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11806 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11807 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11808 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11809 * s390-tdep.c: Ditto.
92362027
AC
11810 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11811 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11812 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11813 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11814 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11815 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11816 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11817 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11818 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11819 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11820 Fix PR gdb/378.
7e336ba1 11821
8ed32cc0
AC
118222002-02-23 Andrew Cagney <ac131313@redhat.com>
11823
a3007b6f
AC
11824 * lin-thread.c: Delete file.
11825 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11826 to gdb_proc_service.h.
11827 * configure: Re-generate.
11828
50a9e2f1
AC
11829 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11830 * serial.c (serial_open): Delete check for "ocd".
11831 Fix PR gdb/349.
11832
8b6e7932
AC
11833 * Makefile.in (linux-thread.o): Delete target.
11834 * linux-thread.c: Delete file.
11835
d155c46b
AC
11836 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11837 renamed SH files to be consistent.
11838
8ed32cc0
AC
11839 * symtab.c (sort_search_symbols): Use xfree.
11840
0e18d038
RE
118412002-02-23 Richard Earnshaw <rearnsha@arm.com>
11842
11843 * arm-linux-tdep.c (arm_linux_init_abi): Register
11844 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11845 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11846 definition with undef, since we don't want the sysvr4 definition.
11847 (SKIP_TRAMPOLINE_CODE): Likewise.
11848
27aac7ff
AC
118492002-02-23 Andrew Cagney <ac131313@redhat.com>
11850
11851 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11852
11853 * configure.in: (AC_CHECK_FUNCS) Added test for
11854 canonicalize_file_name Regenerated.
11855 * config.in, configure: Regenerated.
11856 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11857 defined use canonicalize_file_name.
7e336ba1 11858
65a6e0ee
MC
118592002-02-23 Michael Chastain <mec@shout.net>
11860
11861 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11862
47b95330
AC
118632002-02-23 Andrew Cagney <ac131313@redhat.com>
11864
11865 * README: Remove references to cygnus.com.
11866 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11867 dot com'' form. Remove references to cygnus.com and sourceware.
11868
696f451b
AC
118692002-02-23 Andrew Cagney <ac131313@redhat.com>
11870
11871 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11872 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11873 1003.1-2001 no longer allows "head -1".
11874 * gdb/Makefile.in (version.c): Likewise.
11875 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11876 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11877 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11878
bbaca940
AC
118792002-02-23 Andrew Cagney <ac131313@redhat.com>
11880
11881 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11882 * command.h (cmd_cfunc_eq): Declare.
11883 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11884
11885 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11886 ``struct cmd_list_element *''.
11887 * cli/cli-cmds.c (is_complete_command): Update. Use
11888 cmd_cfunc_eq.
11889 * top.c (execute_command): Pass the command to
11890 is_complete_command.
11891 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11892
b8b8b047
AC
118932002-02-23 Andrew Cagney <ac131313@redhat.com>
11894
11895 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11896 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11897 architecture defines.
11898 * s390-tdep.c (s390_gdbarch_init): Likewise.
11899
19d3fc80
RE
119002002-02-23 Richard Earnshaw <rearnsha@arm.com>
11901
11902 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11903 (arm_linux_push_arguments): Likewise.
11904 (arm_linux_init_abi): Register them. Also register linux-specific
11905 call_dummy_words.
11906 (find_minsym_and_objfile): Use strcmp, not STREQ.
11907 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11908 (arm_linux_call_dummy_words): Delete declaration.
11909 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11910 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11911 declarations.
11912 (LOWEST_PC): Delete.
11913
3ab13650
PS
119142002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11915
11916 * maint.c (print_section_info): Do not prepend `0x' to filepos
11917 output, it will be handled by local_hex_string_custom.
11918
19d3fc80 119192002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11920
11921 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11922 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11923 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11924
d85a5daf
JB
119252002-02-22 Jim Blandy <jimb@redhat.com>
11926
11927 Indicate that the bcache functions don't change the strings
11928 they're passed.
11929 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11930 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11931
eeb25b8a
PM
119322002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11933
11934 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11935
6badb179
CF
119362002-02-21 Christopher Faylor <cgf@redhat.com>
11937
11938 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11939 find the complete path to a loaded DLL.
11940
e8717518
FF
119412002-02-21 Fred Fish <fnf@redhat.com>
11942
11943 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11944 that marks the end of the range of a function, enter a line number
11945 entry that has a line number of zero and a PC offset that matches
11946 the end of the function. This starts a range of PC's for which no
11947 line number information is known.
11948 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11949 PC's for which no line number info is found (line number is zero)
11950 then we didn't find any valid line information.
11951 * symtab.h: Document use of zero line number entry.
11952
9abe5450
EZ
119532002-02-21 Elena Zannoni <ezannoni@redhat.com>
11954
11955 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11956 (have_ptrace_getvrregs): Define for run time checks.
11957 (gdb_vrregset_t): New type for Altivec register handling.
11958 (fetch_register, store_register): Fetch/store altivec register
11959 when needed.
11960 (fetch_altivec_register, store_altivec_register): New functions.
11961 (supply_vrregset, fill_vrregset): New functions.
11962 (fetch_altivec_registers, store_altivec_registers): New functions.
11963 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11964 registers as well.
11965
aaa38bb5
AJ
119662002-02-21 Jiri Smid <smid@suse.cz>
11967
11968 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11969
b34db576
RE
119702002-02-21 Richard Earnshaw <rearnsha@arm.com>
11971
11972 * Makefile.in (armnbsd-nat.o): Update dependencies.
11973 * armnbsd-nat.c (supply_gregset): New function. Common code to
11974 supply the integer register set.
11975 (supply_fparegset): New function. Similar for FPA registers.
11976 (fetch_regs, fetch_fp_regs): Use them.
11977 (fetch_core_registers): Likewise.
11978 (fetch_elfcore_registers): New function.
11979 (arm_netbsd_elfcore_fns): New core-file type specification.
11980 (_initialize_arm_netbsd_nat): Register it.
11981
3e56fc4b
RE
119822002-02-21 Richard Earnshaw <rearnsha@arm.com>
11983
11984 * armnbsd-nat.c: Include gdbcore.h.
11985 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11986 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11987 'void' to declaration, to shut up ARI.
11988 (fetch_core_registers): Make static. Rewrite using supply_register.
11989 (arm_netbsd_core_fns): New core-file type specification.
11990 (_initialize_arm_netbsd_nat): New function.
11991
097f6b0b
CF
119922002-02-21 Christopher Faylor <cgf@redhat.com>
11993
11994 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11995 value.
11996
c914e0cc
CF
119972002-02-20 Christopher Faylor <cgf@redhat.com>
11998
11999 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12000 fails.
12001
385fa495
DJ
120022002-02-20 Daniel Jacobowitz <drow@mvista.com>
12003
12004 * jv-exp.y (parse_number): Change type of implicit longs
12005 to builtin_type_uint64.
12006
e5f1222d
DJ
120072002-02-20 Daniel Jacobowitz <drow@mvista.com>
12008
12009 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12010 to be an integer instead of a `union wait'.
12011
75c9abc6
DJ
120122002-02-20 Daniel Jacobowitz <drow@mvista.com>
12013
12014 * mips-linux-nat.c: Call the operating system GNU/Linux.
12015 * mips-linux-tdep.c: Likewise.
12016 * mips-tdep.c: Likewise.
12017
551792a5
DJ
120182002-02-20 Daniel Jacobowitz <drow@mvista.com>
12019
12020 Fix PR gdb/265.
12021 * jv-exp.y (parse_number): Handle 64-bit integers.
12022
ee6e2b82
DJ
120232002-02-20 Daniel Jacobowitz <drow@mvista.com>
12024
12025 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12026 AC_STDC_HEADERS to AC_HEADER_STDC.
12027 * gdbserver/configure: Regenerated.
12028
a48442a0
RE
120292002-02-20 Richard Earnshaw <rearnsha@arm.com>
12030
12031 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12032 is defined.
12033 * sparc-tdep.c (get_longjmp_target): Likewise.
12034
fe419ffc
RE
120352002-02-20 Richard Earnshaw <rearnsha@arm.com>
12036
12037 * News: Add news about ARM and Multi-arch. Mention the new target
12038 arm*-*-netbsd*.
12039
5832ed7e
JB
120402002-02-19 Jim Blandy <jimb@redhat.com>
12041
12042 * stabsread.c (error_type_complaint): Improve error message.
12043
84563040
DJ
120442002-02-19 Daniel Jacobowitz <drow@mvista.com>
12045
12046 * gdbserver/README: Update documentation.
12047 * gdbserver/configure.in: Update configury to match documentation.
12048 * gdbserver/Makefile.in: Likewise.
12049 * gdbserver/configure: Regenerated.
12050 * gdbserver/aclocal.m4: New file, generated by aclocal.
12051 * gdbserver/config.in: New file, generated by autoheader.
12052
375fd65b
RE
120532002-02-19 Richard Earnshaw <rearnsha@arm.com>
12054
12055 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12056 armnbsd-nat.c.
12057
08216dd7
RE
120582002-02-19 Richard Earnshaw <rearnsha@arm.com>
12059
12060 * arm-tdep.h (enum arm_float_model): New enum.
12061 (struct gdbarch_tdep): Add fp_model.
12062 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12063 up floating-point conversions until we know the floating-point model
12064 in use by the inferior. Don't complain about being unable to
12065 determine the ABI of the inferior when we don't have one.
12066 (arm_extract_return_value): Support different floating-point models.
12067 (arm_store_return_value): Likewise.
aaa38bb5 12068 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
12069 ARM_FLOAT_SOFT.
12070 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12071
65d6d66a
PS
120722002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12073
12074 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12075 of ``current_gdbarch''.
12076
47221191
RE
120772002-02-19 Richard Earnshaw <rearnsha@arm.com>
12078
12079 * armnbsd-nat.c : ANSIfy all function declarations.
12080 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12081 (fetch_inferior_registers): Re-implement in terms of above.
12082 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12083 (store_inferior_registers): Re-implement in terms of above.
12084
fdf39c9a
RE
120852002-02-19 Richard Earnshaw <rearnsha@arm.com>
12086
aaa38bb5 12087 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
12088 kernel.
12089 * arm-linux-tdep.c: Likewise.
12090 * config/arm/tm-linux.h: Likewise.
12091
93247f88
RE
120922002-02-19 Richard Earnshaw <rearnsha@arm.com>
12093
12094 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12095 * config/arm/nbsd.mt (TM_FILE): Delete.
12096 * config/arm/tm-nbsd.h: Delete.
12097
d7b486e7
RE
120982002-02-19 Richard Earnshaw <rearnsha@arm.com>
12099
12100 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12101 Initialize CALL_DUMMY_LENGTH.
12102
41d39a95
RE
121032002-02-19 Richard Earnshaw <rearnsha@arm.com>
12104
12105 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12106 function.
12107 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 12108 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
12109 defines one thing and that is incorrect for this port.
12110 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12111
e1195560
PM
121122002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12113
12114 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12115
c1748f97
PM
121162002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12117
12118 * win32-nat.c (display_selector): New function. Displays information
12119 about the information returned by GetThreadSelectorEntry API function.
12120 (display_selectors): New function. Displays the infomation of
12121 the selector given as argument, or of CS, DS ans FS selectors
12122 if no argument is given.
12123 ( _initialize_inftarg): Add "w32" as info prefix command.
12124 Add "info w32 selector" as command calling display_selectors.
12125
e41e6bbf
PM
121262002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12127
12128 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12129 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12130 if not defined.
12131
0d3a9f48
RE
121322002-02-18 Richard Earnshaw <rearnsha@arm.com>
12133
12134 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12135
3fb4b924
RE
121362002-02-18 Richard Earnshaw <rearnsha@arm.com>
12137
12138 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12139 (arm_fix_call_dummy): Call it.
12140 (arm_call_dummy_breakpoint_offset): Delete.
12141 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12142 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12143
7f55af32
AC
121442002-02-18 Andrew Cagney <ac131313@redhat.com>
12145
12146 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12147 Default to func_frame_chain_valid.
12148 * gdbarch.h, gdbarch.c: Re-generate.
12149 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12150
05f13b9c
EZ
121512002-02-18 Elena Zannoni <ezannoni@redhat.com>
12152
12153 * ppc-linux-nat.c: Update copyright.
12154 (fetch_register, store_register): Add tid parameter, don't compute
12155 tid here.
12156 (fetch_ppc_registers, store_ppc_registers): Add tid
12157 parameter. Pass it along to callees.
12158 (fetch_inferior_registers, store_inferior_registers): Compute tid
12159 here, and pass it to calleed functions.
12160 (fill_gregset, supply_fpregset): Clean up formatting.
12161
d7afb4c9
RE
121622002-02-18 Richard Earnshaw <rearnsha@arm.com>
12163
12164 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12165 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12166
9df628e0
RE
121672002-02-18 Richard Earnshaw <rearnsha@arm.com>
12168
12169 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12170 * gdbarch.c gdbarch.h: Regenerate.
12171 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12172 function.
12173 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12174 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12175 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12176
12177 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12178 * arm-tdep.c (arm_get_longjmp_target): New function.
12179 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12180 this to a positive value register arm_get_longjmp_target as the
12181 longjmp handler.
12182 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12183 (arm_linux_init_abi): Set up longjmp description in tdep.
12184 * armnbsd-nat.c (get_longjmp_target): Delete.
12185 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12186 description in tdep.
12187 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12188 (get_longjmp_target): Delete declaration.
12189 (GET_LONGJMP_TARGET): Delete.
12190 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12191 (GET_LONGJMP_TARGET): Delete.
12192
57bc8964
KB
121932002-02-17 Kevin Buettner <kevinb@redhat.com>
12194
12195 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12196 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12197 of ``current_gdbarch''.
12198
83d31a92
TT
121992002-02-17 Tom Tromey <tromey@redhat.com>
12200
12201 * cli/cli-cmds.c (compare_strings): New function.
12202 (complete_command): Only print each unique item once.
12203 * completer.h (complete_line): Declare.
12204 * completer.c (complete_line): New function.
12205 (line_completion_function): Use it.
12206
17ef5d92
AC
122072002-02-16 Andrew Cagney <ac131313@redhat.com>
12208
12209 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12210 * gdbarch.h, gdbarch.c: Re-generate.
12211
491b8946
DJ
122122002-02-16 Daniel Jacobowitz <drow@mvista.com>
12213
12214 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12215
122162002-02-16 Daniel Jacobowitz <drow@mvista.com>
12217
12218 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12219 * valops.c (value_arg_coerce): Don't take the address of a reference
12220 to convert an argument to a reference.
12221
dfe7f3ac
CF
122222002-02-15 Christopher Faylor <cgf@redhat.com>
12223
12224 * win32-nat.c (get_image_name): New function.
12225 (handle_load_dll): Use get_image_name function.
12226 (get_child_debug_event): Avoid registering debug events until possibly
12227 execed process is started.
12228 (child_create_inferior): Allow invocation via shell so that command
12229 line redirection, etc. works ok.
12230 (_initialize_inftarg): Add new command: "set shell" to control whether
12231 a shell is used to start a process.
12232
1d33e73a
DJ
122332002-02-15 Daniel Jacobowitz <drow@mvista.com>
12234
12235 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12236 instead of find_register_by_number.
12237 (cannot_store_register): Likewise.
12238
48cd0caa
PM
122392002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12240
aaa38bb5 12241 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
12242 fprintf_unfiltered (gdb_stderr, ...).
12243
8656e7d8
DJ
122442002-02-15 Daniel Jacobowitz <drow@mvista.com>
12245
12246 * gdbserver/gdbserver.1: Document --attach.
12247
66e810cd
RE
122482002-02-15 Richard Earnshaw <rearnsha@arm.com>
12249
12250 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12251 descriptions.
12252 * arm-tdep.c (arm_default_arm_le_breakpoint)
12253 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12254 (arm_default_thumb_be_breakpoint): New. Initialize them from
12255 traditional breakpoint defines.
12256 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12257 (arm_gdbarch_init): Initialize new breakpoint variables.
12258 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12259 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12260 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12261 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12262 code out to ...
12263 (arm_netbsd_init_abi_common): ... here; new function.
12264 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12265 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12266 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12267 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12268
97e03143
RE
122692002-02-15 Richard Earnshaw <rearnsha@arm.com>
12270
12271 * arm-tdep.h (enum arm_abi): New enum.
12272 (struct gdbarch_tdep): New structure.
12273 (LOWEST_PC): Provide a default.
12274 (arm_gdbarch_register_os_abi): Declare new function.
12275 * arm-tdep.c (arm_abi_names): New array.
12276 (process_note_abi_tag_sections): New function.
12277 (get_elfosabi): New function.
12278 (arm_gdbarch_register_os_abi): New function.
12279 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12280 support for that ABI has been built in, then call the appropriate
12281 configuration routine. Use gdbarch_num_regs() to get the number
12282 of registers.
12283 (arm_dump_tdep): New function.
12284 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12285 place-holder functions.
12286 (_initialize_arm_tdep): Register them.
12287 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12288
12289 * armnbsd-tdep.c: New file.
12290 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12291 * config/arm/nbsd.mt (TDEPFILES): Add it.
12292 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12293
12294 * armnbsd-nat.c: Include regcache.h.
12295 * Makefile.in (armnbsd-nat.o): Update dependency list.
12296
12297 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12298
ad68be46
DJ
122992002-02-14 Daniel Jacobowitz <drow@mvista.com>
12300
12301 * gdbserver/Makefile.in: Fix typos in target rules.
12302
003d6d1d
DJ
123032002-02-14 Daniel Jacobowitz <drow@mvista.com>
12304
aaa38bb5 12305 Fix part of PR gdb/267.
003d6d1d
DJ
12306 * linespec.c (find_methods): Handle constructors specially for now.
12307
6b230f1b
CV
123082002-02-14 Corinna Vinschen <vinschen@redhat.com>
12309
12310 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12311 handling.
12312 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12313 standard_coerce_float_to_double().
12314
1ea98d12
CF
123152002-02-14 Christopher Faylor <cgf@redhat.com>
12316
12317 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12318 GDBINIT_FILENAME.
12319
dd47e6fd
EZ
123202002-02-14 Elena Zannoni <ezannoni@redhat.com>
12321
12322 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12323 find_variant_by_name, because it confuses the multiarch
12324 framework. Return NULL if there isn't an architecture with the
12325 user supplied name, instead of forcing a different one without
12326 recording the change with the multiarch machinery.
12327 (find_variant_by_name): Delete.
12328
d7e39b9e
PS
123292002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12330
12331 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12332 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12333
76e42a4f
MH
123342002-02-13 Martin M. Hunt <hunt@redhat.com>
12335
aaa38bb5 12336 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
12337 print_frame_info_listing_hook, set current_source_symtab.
12338
0a30fbc4
DJ
123392002-02-14 Daniel Jacobowitz <drow@mvista.com>
12340
12341 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12342 and remove unused $(INCLUDE_DIR).
12343 Add regcache.c to OBS.
12344 Add generated register protocol files to clean target.
12345 Update dependencies for new objects, obsolete old target code.
12346
12347 * gdbserver/linux-low.c: Remove all platform-specific code to
12348 new files. Remove various dead code. Update to use regcache
12349 functionality.
12350 * gdbserver/remote-utils.c (fromhex): Add return statement
12351 to quiet warning.
12352 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12353 constant.
12354 (input_interrupt): Add integer parameter to match prototype
12355 of a signal handler.
12356 (outreg): Use register_data ().
12357 (prepare_resume_reply): Use gdbserver_expedite_regs.
12358 * gdbserver/server.c (main): Dynamically allocate own_buf because
12359 PBUFSIZ is no longer constant. Use registers_to_string () and
12360 registers_from_string ().
12361 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12362 for error (), fatal (), and warning (). Update definition of
12363 PBUFSIZ to use regcache functionality. Add include guard.
12364 * gdbserver/utils.c (fatal): Add missing ``const''.
12365 (warning): New function.
12366
12367 * regformats/regdat.sh: Include "regcache.h" in generated files.
12368 Provide init_registers () function.
12369 * regformats/regdef.h: Add prototype for set_register_cache ().
12370 Add include guard.
12371
12372 * gdbserver/linux-arm-low.c: New file.
12373 * gdbserver/linux-i386-low.c: New file.
12374 * gdbserver/linux-ia64-low.c: New file.
12375 * gdbserver/linux-m68k-low.c: New file.
12376 * gdbserver/linux-mips-low.c: New file.
12377 * gdbserver/linux-ppc-low.c: New file.
12378 * gdbserver/linux-sh-low.c: New file.
12379
12380 * gdbserver/regcache.c: New file.
12381 * gdbserver/regcache.h: New file.
12382
12383 * gdbserver/low-linux.c: Removed obsolete file.
12384
4cc841d0
DJ
123852002-02-14 Daniel Jacobowitz <drow@mvista.com>
12386
12387 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12388 * config/i386/linux.mt: Likewise.
12389 * config/ia64/linux.mt: Likewise.
12390 * config/m68k/linux.mh: Likewise.
12391 * config/powerpc/linux.mh: Likewise.
12392 * config/mips/linux.mt: Likewise.
12393
12394 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12395
12396 * config/i386/i386lynx.mh: Mark gdbserver variables
12397 as (currently) obsolete for this target.
12398 * config/i386/nbsd.mt: Likewise.
12399 * config/i386/nbsdelf.mt: Likewise.
12400 * config/m32r/m32r.mt: Likewise.
12401 * config/m68k/m68klynx.mh: Likewise.
12402 * config/m68k/nbsd.mt: Likewise.
12403 * config/m68k/sun3os4.mh: Likewise.
12404 * config/mips/vr5000.mt: Likewise.
12405 * config/ns32k/nbsd.mt: Likewise.
12406 * config/pa/hppabsd.mh: Likewise.
12407 * config/pa/hppaosf.mh: Likewise.
12408 * config/powerpc/nbsd.mt: Likewise.
12409 * config/rs6000/rs6000lynx.mh: Likewise.
12410 * config/s390/s390.mt: Likewise.
12411 * config/s390/s390x.mt: Likewise.
12412 * config/sparc/sparclynx.mh: Likewise.
12413 * config/sparc/sun4os4.mh: Likewise.
12414 * config/i386/x86-64linux.mt: Likewise.
12415 * config/sparc/linux.mh: Likewise.
12416
a85f51e7
DJ
124172002-02-14 Daniel Jacobowitz <drow@mvista.com>
12418
12419 * configure.tgt: Configure gdbserver only for known working
12420 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12421 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12422 SUBDIRS if it is configured. Update comment for ${nativefile}.
12423 * configure: Regenerated.
12424
65554fef
MS
124252002-02-13 Michael Snyder <msnyder@redhat.com>
12426
670a52db
MS
12427 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12428
6dbdc4a3
MS
12429 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12430 (default_gcore_mach): Just return 0, work around a problem in bfd.
12431 (default_gcore_target): OK to return NULL if exec_bfd is null.
12432 (make_mem_sec): Use a cast, avoid a warning.
12433
12434 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 12435 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
12436 sizeof (host pointer) != sizeof (target pointer)).
12437 (procfs_make_note_section): Avoid overflow in psargs string.
12438
aaa38bb5 12439 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
12440 implementation return an error.
12441
124422002-02-13 Rodney Brown <rbrown64@csc.com.au>
12443
12444 * procfs.c (procfs_make_note_section): Provide a default definition
12445 (for alpha-dec-osf4.0f). Fix typos.
12446
1e4d76e7
EZ
124472002-02-13 Elena Zannoni <ezannoni@redhat.com>
12448
12449 * linux-proc.c: Add include of regcache.h.
12450 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12451
b6d1a1d5
AC
124522002-02-13 Andrew Cagney <ac131313@redhat.com>
12453
12454 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
12455 * memattr.c (create_mem_region): Disallow useless empty region.
12456 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12457 non-overlapping.
b6d1a1d5 12458
6c6ea35e
MC
124592002-02-13 Michael Chastain <mec@shout.net>
12460
12461 * defs.h: Kill CONST_PTR.
12462 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12463 * c-lang.c (c_builtin_types): Likewise.
12464 * ch-lang.c (ch_builtin_types): Likewise.
12465 * f-lang.c (f_builtin_types): Likewise.
12466 * language.c (unknown_builtin_types): Likewise.
12467 * m2-lang.c (m2_builtin_types): Likewise.
12468 * p-lang.c (pascal_builtin_types): Likewise.
12469 * scm-lang.c (c_builtin_types): Likewise.
12470
3e0b0f48
KS
124712002-02-13 Keith Seitz <keiths@redhat.com>
12472
12473 * arm-tdep.h (arm_get_next_pc): Add declaration.
12474
67255d04
RE
124752002-02-13 Richard Earnshaw <rearnsha@arm.com>
12476
12477 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12478 with other related struct-returning functions.
12479 (arm_extract_struct_value_address): New function.
12480 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12481 initialize float_format, double_format and long_double_format as
12482 appropriate to the endianness of the target.
12483 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12484 (arm_use_struct_convention): Delete declaration.
12485 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12486
079777f6
KS
124872002-02-13 Keith Seitz <keiths@redhat.com>
12488
12489 * defs.h (core_addr_to_string_nz): New function.
12490
34588f23
MK
124912002-02-13 Mark Kettenis <kettenis@gnu.org>
12492
12493 Apply missing bits of 2002-01-15 patch.
12494 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12495 (fill_fpregset): Use i387_fill_fsave.
12496
49b563f9
KS
124972002-02-12 Keith Seitz <keiths@redhat.com>
12498
49b563f9
KS
12499 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12500 (core_addr_to_string_nz): New function.
12501
aeb98c60
RE
125022002-02-11 Richard Earnshaw <rearnsha@arm.com>
12503
12504 * arm-linux-nat.c: Really include arm-tdep.h.
12505 * config/arm/tm-linux.h (struct type, struct value): Declare.
12506
65554fef
MS
125072002-02-11 Michael Snyder <msnyder@redhat.com>
12508
12509 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12510 (gcore section): Ifdef for Solaris and Unixware only.
12511 (procfs_do_thread_registers): Unixware needs one lwpstatus
12512 per thread (not one prstatus or pstatus).
12513 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12514 not over all gdb threads. For unixware, call elfcore_write_pstatus
12515 once before iterating over threads.
12516
34e8f22d
RE
125172002-02-11 Richard Earnshaw <rearnsha@arm.com>
12518
12519 * arm-tdep.h: New file.
12520 * arm-tdep.c: Include arm-tdep.h.
12521 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12522 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12523 (arm_print_float_info, arm_register_type, convert_to_extended)
12524 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12525 (arm_extract_return_value, arm_register_name): Make static.
12526 (arm_software_single_step): Similarly. Fix types in declaration.
12527 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12528 (arm_store_return_value, arm_store_struct_return): New functions.
12529 (arm_gdbarch_init): Register the above functions. Also register
12530 call_dummy_start_offset, sizeof_call_dummy_words,
12531 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12532 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12533 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12534 prologue_cache.saved_regs here, rather than ...
12535 (_initialize_arm_tdep): ... here.
12536 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12537 declarations.
12538 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12539 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12540 (arm_print_float_info, arm_register_type, convert_to_extended)
12541 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12542 (arm_extract_return_value, arm_register_name): Delete declarations.
12543 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12544 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12545 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12546 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12547 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12548 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12549 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12550 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12551 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12552 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12553 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12554 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12555 interface.
12556 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12557 * remote-rdi.c remote-rdp.c: Likewise.
12558 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12559 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12560 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12561 definition.
12562
12563 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12564 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12565 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12566 from non-ARM_ prefixed definitions.
12567 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12568 all uses of above.
12569 * remote-rdi.c remote-rdp.c: Likewise.
12570 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12571
148754e5
RE
125722002-02-11 Richard Earnshaw <rearnsha@arm.com>
12573
12574 * arm-tdep.c (arm_frameless_function_invocation)
12575 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12576 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12577 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12578 (arm_pop_frame, arm_get_next_pc): Make static.
12579 (arm_gdbarch_init): Register above in gdbarch structure.
12580 (arm_read_fp): Renamed from arm_target_read_fp.
12581 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12582 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12583 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12584 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12585 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12586 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12587 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12588 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12589 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12590 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12591 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12592
434d2d4f
DJ
125932002-02-10 Daniel Jacobowitz <drow@mvista.com>
12594
12595 * symtab.c (compare_search_syms): New function.
12596 (sort_search_symbols): New function.
12597 (search_symbols): Sort symbols after searching rather than
12598 before.
12599
55241689
AC
126002002-02-10 Andrew Cagney <ac131313@redhat.com>
12601
12602 * NEWS: Linux -> GNU/Linux.
12603
028c194b
AC
126042002-02-10 Andrew Cagney <ac131313@redhat.com>
12605
12606 * gdbarch.sh: For for level one methods, disallow a definition
12607 when partially multi-arched. Add comments explaining rationale.
12608 * gdbarch.h: Re-generate.
12609
6acf50cd
AC
126102002-02-10 Andrew Cagney <ac131313@redhat.com>
12611
12612 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12613 multi-arch partial.
aaa38bb5 12614
50248794
AC
126152002-02-10 Andrew Cagney <ac131313@redhat.com>
12616
12617 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12618 field. Use diff -u.
12619 * gdbarch.c: Re-generate.
12620
c30e0066
AC
126212002-02-10 Andrew Cagney <ac131313@redhat.com>
12622
9b56c5f3 12623 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12624 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12625 partial.
12626
6e6d6484
AC
126272002-02-10 Andrew Cagney <ac131313@redhat.com>
12628
12629 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12630 multi-arch partial.
12631 (PUSH_ARGUMENTS): Switch to using predefault.
12632 * gdbarch.c: Regenerate.
12633
c203844d
AC
126342002-02-10 Andrew Cagney <ac131313@redhat.com>
12635
12636 * valops.c (PUSH_ARGUMENTS): Delete definition.
12637 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12638 partial. Default to default_push_arguments.
12639 * gdbarch.h, gdbarch.c: Regenerate.
12640
b5a2688f
AC
126412002-02-09 Andrew Cagney <ac131313@redhat.com>
12642
12643 * defs.h (throw_exception): Rename return_to_top_level. Update
12644 comments.
12645 * utils.c (error_stream, internal_verror, quit): Ditto.
12646 * top.c (throw_exception, catcher): Ditto.
12647 * sparclet-rom.c (sparclet_load): Ditto.
12648 * remote.c (interrupt_query, minitelnet): Ditto.
12649 * remote-sds.c (interrupt_query): Ditto.
12650 * remote-mips.c (mips_error, mips_kill): Ditto.
12651 * ocd.c (interrupt_query): Ditto.
12652 * monitor.c (monitor_interrupt_query): Ditto.
12653 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12654 * target.h: Update comment.
aaa38bb5 12655
b5a2688f 12656 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12657
2fa5c1e0
AC
126582002-02-09 Andrew Cagney <ac131313@redhat.com>
12659
12660 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12661 default_double_format.
12662 * gdbarch.h, gdbarch.c: Re-generate.
12663 * findvar.c (floatformat_unknown): Delete variable definition.
12664 * doublest.h (floatformat_unknown): Delete variable declaration.
12665
da966255
JB
126662002-02-09 Jim Blandy <jimb@redhat.com>
12667
12668 * stabsread.c (read_type): Add code to parse Sun's syntax for
12669 prototyped function types.
12670
123a4891
AC
126712002-02-09 Andrew Cagney <ac131313@redhat.com>
12672
12673 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12674 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12675
fb39c8f3
PS
126762002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12677
12678 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12679 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12680 now _initialize_xcoffsolib gets called again and overrides the
12681 commands from solib.c in a native configuration.
12682
0b87a11d
MK
126832002-02-09 Mark Kettenis <kettenis@gnu.org>
12684
12685 * doublest.c (store_typed_floating): Don't try to return a value.
12686 Fixes PR gdb/290.
12687
bdc2fc72
JB
126882002-02-08 Jim Blandy <jimb@redhat.com>
12689
12690 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12691 is prototyped and has no arguments, print its argument list as
12692 `(void)'.
12693
da69bbcf
CD
126942002-02-08 Chris Demetriou <cgd@broadcom.com>
12695
12696 * MAINTAINERS (write-after-approval): Add myself.
12697 (paper-trail): I've escaped!
aaa38bb5 12698
b69571f5
CF
126992002-02-08 Christopher Faylor <cgf@redhat.com>
12700
12701 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12702 changes.
12703 (_initialize_check_for_gdb_ini): Ditto.
12704
f6871398
MH
127052002-02-08 Martin M. Hunt <hunt@redhat.com>
12706
12707 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12708 xaprintf -> xasprintf.
12709
4e52d31c
PM
127102002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12711
12712 * win32-nat.c: Remove use of printf and sprintf functions.
12713
39bbf761
RE
127142002-02-08 Richard Earnshaw <rearnsha@arm.com>
12715
12716 * arm-tdep.c (arm_frame_chain_valid): Make static.
12717 (arm_push_arguments): Likewise.
12718 (arm_gdbarch_init): New function.
12719 (_initialize_arm_tdep): Call it.
12720 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12721 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12722 (FRAME_CHAIN_VALID): Delete.
12723 (arm_frame_chain_valid): Delete declaration.
12724 (PUSH_ARGUMENTS): Delete.
12725 (arm_push_arguments): Delete declaration.
12726 (CALL_DUMMY_P): Delete.
12727
9c9532c9
CV
127282002-02-08 Andrew Cagney <ac131313@redhat.com>
12729 Corinna Vinschen <vinschen@redhat.com>
12730
12731 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12732 on builtin float types.
12733
4e8f7a8b
DJ
127342002-02-08 Daniel Jacobowitz <drow@mvista.com>
12735
12736 * utils.c: Include <curses.h> before "bfd.h".
12737 * tui/tui-hooks.c: Likewise.
12738 * tui/tui.c: Likewise.
12739 * tui/tuiCommand.c: Likewise.
12740 * tui/tuiData.c: Likewise.
12741 * tui/tuiDataWin.c: Likewise.
12742 * tui/tuiDisassem.c: Likewise.
12743 * tui/tuiGeneralWin.c: Likewise.
12744 * tui/tuiIO.c: Likewise.
12745 * tui/tuiLayout.c: Likewise.
12746 * tui/tuiRegs.c: Likewise.
12747 * tui/tuiSource.c: Likewise.
12748 * tui/tuiSourceWin.c: Likewise.
12749 * tui/tuiStack.c: Likewise.
12750 * tui/tuiWin.c: Likewise.
12751
cd4bffcf
EZ
127522002-02-07 Elena Zannoni <ezannoni@redhat.com>
12753
12754 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12755 to include space for pseudoregs as well. Update loops accordingly.
12756 (sh_fp_frame_init_saved_regs): Ditto.
12757 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12758
26806ce2
AC
127592002-02-07 Andrew Cagney <ac131313@redhat.com>
12760
12761 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12762 Add Richard Earnshaw to Arm maintainers.
12763
97fdab62
AC
127642002-02-07 Andrew Cagney <ac131313@redhat.com>
12765
a6b98203
AC
12766 * defs.h (warning_begin): Delete declaration.
12767
97fdab62
AC
12768 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12769 Delete macro.
12770
78b29b40
MS
127712002-02-07 Michael Snyder <msnyder@redhat.com>
12772
aaa38bb5 12773 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12774 Logic bug, remove misplaced else.
12775
d8849953
KD
127762002-02-07 Klee Dienes <klee@apple.com>
12777
12778 * fork-inferior.c (fork_inferior): Add '!' to the list of
12779 characters that need to be quoted when building a string for the
12780 shell. Quote '!' specifically with a backslash, since CSH chokes
12781 when trying to evaluate "str!str".
aaa38bb5 12782
095778a0
NC
127832002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12784
12785 * rdi-share/host.h: Only provide a typedef for bool if it is not
12786 defined.
12787
1900040c
MS
127882002-02-04 Michael Snyder <msnyder@redhat.com>
12789
12790 * breakpoint.h (enum bptype): Add new overlay event bp type.
12791 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12792
1900040c
MS
12793 * breakpoint.c (create_internal_breakpoint): New function.
12794 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12795 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12796 (create_thread_event_breakpoint): Ditto.
12797 (create_solib_event_breakpoint): Ditto.
12798 (create_overlay_event_breakpoint): New function.
12799 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12800 (update_breakpoints_after_exec): Delete and re-initialize
12801 overlay event breakpoints after an exec. Add FIXME comment
12802 about longjmp breakpoint.
12803 (print_it_typical): Ignore overlay event breakpoints.
12804 (print_one_breakpoint): Ditto.
12805 (mention): Ditto.
12806 (bpstat_what): Do not stop for overlay event breakpoints.
12807 (delete_breakpoint): Don't delete overlay event breakpoints.
12808 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12809 (breakpoint_re_set): Re-create overlay event breakpoint.
12810
12811 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12812 (overlay_manual_command): Disable overlay breakpoints.
12813 (overlay_off_command): Disable overlay breakpoints.
12814
082fc60d
RE
128152002-02-06 Richard Earnshaw <rearnsha@arm.com>
12816
12817 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12818 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12819 to here from config/tm-arm.h.
12820 (coff_sym_is_thumb): Make static.
12821 (arm_elf_make_msymbol_special): New function.
12822 (arm_coff_make_msymbol_special): New function.
12823 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12824 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12825 (coff_sym_is_thumb): Delete declaration.
12826 (arm_elf_make_msymbol_special): Declare.
12827 (arm_coff_make_msymbol_special): Declare.
12828 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12829 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12830
039c5766
RE
128312002-02-06 Richard Earnshaw <rearnsha@arm.com>
12832
12833 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12834
128352002-02-06 Richard Earnshaw <rearnsha@arm.com>
12836
12837 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12838 * gdbarch.c gdbarch.h: Regenerate.
12839 * arch-utils.c (default_print_float_info): New function.
12840 * arch-utils.h (default_print_float_info): Prototype it.
12841 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12842 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12843 (PRINT_FLOAT_INFO): Document it.
12844
12845 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12846 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12847 (PRINT_FLOAT_INFO): Define.
12848
58fa08f0
PM
128492002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12850
aaa38bb5 12851 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12852 Add typecast to sprintf argument to suppress a warning.
12853
7393af7c
PM
128542002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12855
58fa08f0 12856 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12857 to allow easier handling of pass state.
12858 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12859 that gives exception name and address.
12860 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12861 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12862 exceptions added.
aaa38bb5
AJ
12863 (child_continue): Correctly report continue_status.
12864 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12865 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12866 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12867 the exception should be passed to debuggee or not.
12868
6af4589c
MS
128692002-02-05 Michael Snyder <msnyder@redhat.com>
12870
12871 * regcache.c (fetch_register): Call target_fetch_register
12872 only if we don't call FETCH_PSEUDO_REGISTER.
12873 (store_register): Call target_store_register only if we
12874 don't call STORE_PSEUDO_REGISTER.
12875
a2cf933a
EZ
128762002-02-05 Elena Zannoni <ezannoni@redhat.com>
12877
12878 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12879 ELF_MAKE_MSYMBOL_SPECIAL.
12880 * gdbarch.c, gdbarch.h: Regenerate.
12881 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12882 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12883 * elfread.c (elf_symtab_read): Compile use of
12884 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12885 multiarched.
12886 * coffread.c (coff_symtab_read): Ditto, for
12887 COFF_MAKE_MSYMBOL_SPECIAL.
12888
6bb7be43
JB
128892002-02-05 Jim Blandy <jimb@redhat.com>
12890
12891 * solib-svr4.c (svr4_truncate_ptr): New function.
12892 (svr4_relocate_section_addresses): Do the address arithmetic with
12893 the appropriate truncation for target addresses, even when
12894 CORE_ADDR is larger than a target address.
12895
e18651ec
DJ
128962002-02-05 Daniel Jacobowitz <drow@mvista.com>
12897
12898 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12899 to (int *).
12900
6b2725be
DJ
129012002-02-05 Daniel Jacobowitz <drow@mvista.com>
12902
12903 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12904 code.
12905
fca9e603
DJ
129062002-02-05 Daniel Jacobowitz <drow@mvista.com>
12907
12908 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12909
6c537a52
DJ
129102002-02-05 Daniel Jacobowitz <drow@mvista.com>
12911
12912 * gdbserver/linux-low.c: Remove unused include files.
12913
d844cde6
DJ
129142002-02-05 Daniel Jacobowitz <drow@mvista.com>
12915
12916 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12917 (read_inferior_memory): Use it.
12918 (write_inferior_memory): Likewise.
12919
d07c63e7
DJ
129202002-02-05 Daniel Jacobowitz <drow@mvista.com>
12921
12922 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12923 grubbing through sys_errlist.
12924
da6d8c04
DJ
129252002-02-05 Daniel Jacobowitz <drow@mvista.com>
12926
12927 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12928
5b421780
PM
129292002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12930 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12931
9f60d481
AC
129322002-02-04 Andrew Cagney <ac131313@redhat.com>
12933
12934 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12935 (do_sfunc, set_cmd_sfunc): New functions.
12936
12937 * command.h (struct cmd_list_element): Add field func.
12938 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12939 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12940 * cli/cli-decode.h: Ditto.
12941
12942 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12943 (help_all, help_cmd_list): Ditto.
12944 (find_cmd, complete_on_cmdlist): Ditto.
12945 * top.c (execute_command): Ditto.
12946
12947 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12948 function.sfunc.
12949
12950 * infcmd.c (notice_args_read): Fix function signature.
12951
12952 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12953 * cli/cli-decode.c (add_set_cmd): Ditto.
12954 * utils.c (initialize_utils): Ditto.
12955 * maint.c (_initialize_maint_cmds): Ditto.
12956 * infrun.c (_initialize_infrun): Ditto.
12957 * demangle.c (_initialize_demangler): Ditto.
12958 * remote.c (add_packet_config_cmd): Ditto.
12959 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12960 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12961 * proc-api.c (_initialize_proc_api): Ditto.
12962 * kod.c (_initialize_kod): Ditto.
12963 * valprint.c (_initialize_valprint): Ditto.
12964 * top.c (init_main): Ditto.
12965 * infcmd.c (_initialize_infcmd): Ditto.
12966 * corefile.c (_initialize_core): Ditto.
12967 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12968 * arch-utils.c (initialize_current_architecture): Ditto.
12969 (_initialize_gdbarch_utils): Ditto.
12970 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12971
12972 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12973 * wince.c (_initialize_inftarg): Ditto.
12974 * symfile.c (_initialize_symfile): Ditto.
12975 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12976 * language.c (_initialize_language): Ditto.
12977 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12978
f9ba0717
MS
129792002-02-04 Michael Snyder <msnyder@redhat.com>
12980
12981 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12982
0c74b2a7
DJ
129832002-02-04 Daniel Jacobowitz <drow@mvista.com>
12984
12985 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12986 Add rules for building the register data files.
12987
c638789f
DJ
129882002-02-04 Daniel Jacobowitz <drow@mvista.com>
12989
12990 * regformats/regdat.sh: Add braces to the definition of
12991 expedite_regs_${arch}.
12992
db253027
DJ
129932002-02-04 Daniel Jacobowitz <drow@mvista.com>
12994
12995 * regformats/regdef.h (struct reg): Add comment describing the
12996 requirements for offset and size fields.
12997
206be19c
AS
129982002-02-04 Andreas Schwab <schwab@suse.de>
12999
13000 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13001 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13002
181c1381
RE
130032002-02-04 Richard Earnshaw <rearnsha@arm.com>
13004
13005 * gdbarch.sh (copyright): Update years in generated header.
13006 (SMASH_TEXT_ADDRESS): Add rule.
db253027 13007 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
13008 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13009 * dbxread.c: Likewise.
13010 * dwarfread.c: Likewise.
13011 * elfread.c: Likewise.
13012 * somread.c: Likewise.
13013
13014 * arm-tdep.c (arm_smash_text_address): New function.
13015 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13016
fa4ba8da
PM
130172002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13018
13019 Add support for hardware watchpoints on win32 native.
aaa38bb5 13020 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 13021 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 13022 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
13023 of debug registers.
13024 (debug_registers_changed): New variable. Reflects when debug registers
13025 are changed and need to be written to inferior.
aaa38bb5 13026 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
13027 was set, used when new threads are created.
13028 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13029 i386-nat code.
13030 (thread_rec): Set dr array if id is the thread of current_event .
13031 (child_continue, child_resume): Change the debug registers for all
13032 threads if debug_registers_changed.
13033 (child_add_thread): Change the debug registers if debug_registers_used.
13034 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13035 Link nm.h to new nm-cygwin.h file.
13036 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13037 of hardware registers.
13038
a73c86fb
AC
130392002-02-03 Andrew Cagney <ac131313@redhat.com>
13040
13041 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13042 Restore behavour broken by 2002-01-20 Andrew Cagney
13043 <ac131313@redhat.com> IEEE_FLOAT removal.
13044
acf5ed49
DJ
130452002-02-03 Daniel Jacobowitz <drow@mvista.com>
13046
13047 * c-valprint.c (c_val_print): Pass a proper valaddr to
13048 cp_print_class_method.
13049 * valops.c (search_struct_method): If there is only one method
13050 and args is NULL, return that method.
13051
493d28d5
DJ
130522002-02-03 Daniel Jacobowitz <drow@mvista.com>
13053
13054 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13055 accessing tag_name directly.
13056
7495dfdb
DJ
130572002-02-03 Daniel Jacobowitz <drow@mvista.com>
13058
13059 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13060 of accessing tag_name directly.
13061
dd6bda65
DJ
130622002-02-03 Daniel Jacobowitz <drow@mvista.com>
13063
13064 PR gdb/280
13065 * gdbtypes.c (replace_type): New function.
13066 * gdbtypes.h (replace_type): Add prototype.
13067 * stabsread.c (read_type): Use replace_type.
13068
88fe217c
RE
130692002-02-03 Richard Earnshaw <rearnsha@arm.com>
13070
13071 * Makefile.in (memattr.o): Add missing dependencies rule.
13072
e5d66720
PS
130732002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13074
13075 * breakpoint.c (break_at_finish_command): Really export.
13076 (break_at_finish_at_depth_command): Ditto.
13077 (tbreak_at_finish_command): Ditto.
13078 * hppa-tdep.c: Include completer.h.
13079 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13080 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13081
fffee0be
AC
130822002-02-01 Andrew Cagney <ac131313@redhat.com>
13083
13084 * utils.c (do_write): New function.
13085 (error_stream): Rewrite combining the code from error_begin and
13086 verror.
13087 (verror): Rewrite using error_stream.
13088 (error_begin): Delete function.
13089
255e7dbf
AC
130902002-02-01 Andrew Cagney <ac131313@redhat.com>
13091
13092 * utils.c (error_begin): Make static.
13093 * defs.h (error_begin): Delete declaration.
13094
13095 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13096 (decode_line_1): Use cplusplus_error instead of error_begin,
13097 cplusplus_hint and return_to_top_level.
13098 * coffread.c (coff_symfile_read): Use error instead of error_begin
13099 and return_to_top_level.
13100 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13101
ddfe3c15
AC
131022002-02-01 Andrew Cagney <ac131313@redhat.com>
13103
13104 * language.h (type_error, range_error): Make string parameter
13105 constant.
13106 * language.c (warning_pre_print): Delete extern declaration.
13107 * dwarfread.c (warning_pre_print): Ditto.
13108 * language.c (type_error, range_error): Rewrite to use verror and
13109 vwarning instead of warning_begin.
13110
03ac34d5
MS
131112002-02-01 Michael Snyder <msnyder@redhat.com>
13112
261c4ca2
MS
13113 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13114 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 13115
e00d1dc8
AC
131162002-02-01 Andrew Cagney <ac131313@redhat.com>
13117
13118 * command.h (NO_FUNCTION): Delete macro.
13119 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13120 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13121 * tracepoint.c (_initialize_tracepoint): Ditto.
13122 * cli/cli-decode.c (add_set_cmd): Ditto.
13123 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 13124
76b79d6e
DJ
131252002-02-01 Daniel Jacobowitz <drow@mvista.com>
13126
13127 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13128 Update ``this'' pointer when calling virtual functions.
13129
799f9e91
MS
131302002-02-01 Michael Snyder <msnyder@redhat.com>
13131
c7bd442c 13132 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
13133 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13134
3cf384d4
DJ
131352002-02-01 Daniel Jacobowitz <drow@mvista.com>
13136
13137 * regformats/reg-arm.dat: New file.
13138 * regformats/reg-i386.dat: New file.
13139 * regformats/reg-ia64.dat: New file.
13140 * regformats/reg-m68k.dat: New file.
13141 * regformats/reg-mips.dat: New file.
13142 * regformats/reg-ppc.dat: New file.
13143 * regformats/reg-sh.dat: New file.
13144 * regformats/regdef.h: New file.
13145 * regformats/regdat.sh: New file.
13146
0defa245
RE
131472002-02-01 Richard Earnshaw <reanrsha@arm.com>
13148
13149 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13150 (arm_frame_args_address, arm_frame_locals_address): New functions.
13151 (arm_frame_num_args): New function.
13152 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13153 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13154 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13155
405f26e6
MS
131562002-01-31 Michael Snyder <msnyder@redhat.com>
13157
502fd408
MS
13158 * breakpoint.c (break_at_finish_command): Export.
13159 (break_at_finish_at_depth_command): Export.
13160 (tbreak_at_finish_command): Export.
d6020d45 13161 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 13162 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 13163 "txbreak" commands, which are HPPA specific.
502fd408 13164
7d35e135
MS
13165 * printcmd.c (disassemble_command): Remove an ancient
13166 artifact of an old merge.
13167
aaa38bb5 13168 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
13169 Define enum constant values for overlay mode.
13170 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
13171 (overlay_is_mapped, overlay_auto_command,
13172 overlay_manual_command): Ditto.
d874f1e2 13173
aaa38bb5
AJ
13174 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13175 breakpoint_here_p, breakpoint_inserted_here_p,
13176 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
13177 describe_other_breakpoints, check_duplicates, clear_command):
13178 Coding standard fixes.
13179
8add0441 13180 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 13181 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
13182 code: check bfd SEC_READONLY flag for section.
13183
e351066e
AC
131842002-01-31 Andrew Cagney <ac131313@redhat.com>
13185
7d35e135 13186 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 13187
8a48e967
DJ
131882002-01-30 Daniel Jacobowitz <drow@mvista.com>
13189
13190 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13191 data symbols, since we search based on textlow and texthigh.
13192 (find_pc_sect_symtab): Likewise.
13193
f5a96129
AC
131942002-01-30 Andrew Cagney <ac131313@redhat.com>
13195
13196 * defs.h (vwarning): Declare.
f5a96129
AC
13197 * utils.c (vwarning): New function.
13198 (warning): Call vwarning.
13199 (warning_begin): Delete function.
13200
13201 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13202 the warning message.
13203 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13204 warning_begin.
13205
cefd4ef5
MS
132062002-01-30 Michael Snyder <msnyder@redhat.com>
13207
1a703748
MS
13208 * NEWS: Mention "set trust-readonly-sections" command.
13209 Mention generate-core-file command.
cefd4ef5 13210
3a11626d
MS
132112002-01-15 Michael Snyder <msnyder@redhat.com>
13212
13213 * target.c: New command, "set trust-readonly-sections on".
13214 (do_xfer_memory): Honor the suggestion to trust readonly sections
13215 by reading them from the object file instead of from the target.
13216 (initialize_targets): Register command "set trust-readonly-sections".
13217
d1c7e53b
AC
132182002-01-29 Andrew Cagney <ac131313@redhat.com>
13219
13220 * parse.c (target_map_name_to_register): Simplify, search regs and
13221 pseudo-regs using a single loop.
13222
e2c9a72c
AC
132232002-01-30 Andrew Cagney <ac131313@redhat.com>
13224
13225 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13226
69824b4e
MK
132272002-01-15 Rodney Brown <rbrown64@csc.com.au>
13228
13229 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13230 * config/i386/i386v42mp.mh: Add i387-nat.o .
13231 * i386v4-nat.c: Include i387-nat.h.
13232 (supply_fpregset): Use i387_supply_fsave.
13233 (fill_fpregset): Use i387_fill_fsave.
13234
6eb69eab
RE
132352002-01-30 Richard Earnshaw <rearnsha@arm.com>
13236
13237 * arm-tdep.c (arm_call_dummy_words): Define.
13238 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13239 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13240 (CALL_DUMMY_WORDS): Define.
13241 (arm_call_dummy_words): Declare.
13242 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13243 (arm_linux_call_dummy_words): Declare.
13244
9852326a
AS
132452002-01-30 Andreas Schwab <schwab@suse.de>
13246
13247 * m68klinux-nat.c: Fix last change to use regcache_collect
13248 instead of referencing registers[] directly.
13249
977a3030
AC
132502002-01-29 Andrew Cagney <ac131313@redhat.com>
13251
13252 * parse.c (target_map_name_to_register): Delete code wrapped in
13253 #ifdef REGISTER_NAME_ALIAS_HOOK.
13254
2076c72b
MS
132552002-01-28 Michael Snyder <msnyder@redhat.com>
13256
13257 * regcache.c (legacy_read_register_gen): Need to be able to
13258 read pseudo-register as well as real register.
13259 (legacy_write_register_gen): Ditto.
13260
8fcc723b
AC
132612002-01-28 Andrew Cagney <ac131313@redhat.com>
13262
13263 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13264 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13265 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13266 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13267 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13268 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13269 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13270 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13271 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13272 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13273 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13274 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13275 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13276 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13277 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13278 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13279 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13280 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13281 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13282 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13283
afe64c1a
AC
132842002-01-28 Andrew Cagney <ac131313@redhat.com>
13285
13286 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13287 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13288 (initialize_current_architecture): Update target_byte_order using
13289 information from BFD.
aaa38bb5 13290 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
13291 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13292
75bc7ddf
AC
132932002-01-28 Andrew Cagney <ac131313@redhat.com>
13294
13295 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13296 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13297
13298 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13299 #ifdef INVALID_FLOAT.
13300 * infcmd.c (do_registers_info): Ditto.
13301 * values.c (unpack_double): Ditto. Add comment.
13302
13303 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13304 already commented out.
13305
0280a90a
AS
133062002-01-26 Andreas Schwab <schwab@suse.de>
13307
13308 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13309 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13310 registers and add support for PTRACE_GETREGS.
13311
7072a954
AC
133122002-01-24 Andrew Cagney <ac131313@redhat.com>
13313
13314 GDB 5.1.1 released from 5.1 branch.
13315 * NEWS: Add 5.1.1 news.
13316 * README: Sync with 5.1 branch.
13317
86f902e0
FF
133182002-01-23 Fred Fish <fnf@redhat.com>
13319
13320 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13321 stabstring on initial malloc. Reallocing will copy it for us,
13322 if necessary.
13323
8af51c36
EZ
133242002-01-23 Elena Zannoni <ezannoni@redhat.com>
13325
aaa38bb5 13326 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
13327 (HFILES_NO_SRCDIR): Remove hpread.h.
13328 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13329 (hpread.o): Update dependencies.
13330 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13331
13332 * hp-psymtab-read.c: Remove file.
13333 * hp-symtab-read.c: Remove file.
13334 * hpread.h: Remove file.
13335
13336 * hpread.c: Merge all contents of hp-psymtab-read.c,
13337 hp-symtab-read.c and hpread.h into this file, as it was prior to
13338 January 1999.
13339
13340 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 13341 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
13342 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13343 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13344
dc5cfeb6
EZ
133452002-01-23 Elena Zannoni <ezannoni@redhat.com>
13346
13347 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13348 fill_gregset): Call gdbarch_tdep() just once, assign result to
13349 variable and use that, instead of calling the function several
13350 times.
13351
ea87b71b
AO
133522002-01-24 Alexandre Oliva <aoliva@redhat.com>
13353
13354 * configure.host: Accept sparcv9 as alias for sparc64.
13355 * configure.tgt: Likewise.
13356
13fc0c2f
KB
133572002-01-22 Kevin Buettner <kevinb@redhat.com>
13358
13359 * solib-aix5.c (build_so_list_from_mapfile)
13360 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13361 arguments is not reversed.
13362 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13363 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 13364
7bd872fe
EZ
133652002-01-22 Elena Zannoni <ezannoni@redhat.com>
13366
13367 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13368 modified version of obsolete sh_fetch_pseudo_register.
13369 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13370 (sh4_register_read): New function.
13371 (sh_pseudo_register_write): New function. Renamed and modified
13372 version of obsolete sh_store_pseudo_register.
13373 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13374 (sh4_register_write): New function.
13375 (sh_gdbarch_init): Remove setting of gdbarch function
13376 fetch_pseudo_register and store_pseudo_register. Remove setting of
13377 register_convert_to_raw, register_convert_to_virtual,
13378 register_convertible.
13379 (sh_sh4_register_convertible): Delete. No longer needed. All is
13380 taken care by architecture specific functions
13381 register_read/register_write.
13382 (sh_sh4_register_convert_to_virtual): Make static.
13383 (sh_sh4_register_convert_to_raw): Ditto.
13384
069e84fd
AC
133852002-01-22 Andrew Cagney <ac131313@redhat.com>
13386
13387 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13388 (floatformat_is_nan, floatformat_mantissa): Ditto.
13389
13390 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13391 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13392 builtin_type_ieee_double_little,
13393 builtin_type_ieee_double_littlebyte_bigword,
13394 builtin_type_m68881_ext, builtin_type_i960_ext,
13395 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13396 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13397 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13398 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13399
211a4f69
CV
134002002-01-22 Corinna Vinschen <vinschen@redhat.com>
13401
13402 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13403 parameter. Set frameless flag if it exists and depended of
13404 whether the scanned function is frameless or not.
13405 (xstormy16_skip_prologue): If function is frameless, return
13406 result of xstormy16_scan_prologue().
13407 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13408 call.
13409
f81353e4
EZ
134102002-01-21 Elena Zannoni <ezannoni@redhat.com>
13411
13412 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13413 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13414 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13415 sh_sh4_register_byte, sh_sh4_register_raw_size,
13416 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13417 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13418 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13419 sh_store_pseudo_register, sh_do_pseudo_register): Call
13420 gdbarch_tdep() just once, assign result to variable and use that,
13421 instead of calling the function several times.
13422
63c73a17
MK
134232002-01-20 Mark Kettenis <kettenis@gnu.org>
13424
13425 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13426 macros instead of LAST_FPU_CTRL_REGNUM.
13427 (store_register): Likewise.
13428
39ad761d
JB
134292002-01-21 Jim Blandy <jimb@redhat.com>
13430
13431 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13432 is up-to-date before running the program, not just when a program
13433 exits.
13434
3d74b771
FF
134352002-01-21 Fred Fish <fnf@redhat.com>
13436
13437 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13438 when we have found all instructions we are looking for.
13439
966fbf70
RE
134402002-01-21 Richard Earnshaw <rearnsha@arm.com>
13441
13442 * arm-tdep.c (arm_register_name): New function.
13443 (arm_registers_names): Make static.
13444 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13445 (arm_register_name): Declare.
13446 (REGISTER_NAME): Use it.
13447
c3b4394c
RE
134482002-01-21 Richard Earnshaw <rearnsha@arm.com>
13449 Kevin Buettner <kevinb@redhat.com>
13450
13451 Convert arm targets to new FRAME interface.
13452 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13453 (arm_frame_find_save_regs): Delete.
13454 (arm_frame_init_saved_regs): New.
13455 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13456 Allocate extra_info as required. Convert all uses of fsr.regs
13457 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13458 to use extra_info.
13459 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13460 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13461 (check_prologue_cache, save_prologue_cache): Likewise.
13462 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13463 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13464 (FRAME_FIND_SAVED_REGS): Delete.
13465 (arm_frame_find_saved_regs): Delete prototype.
13466 (arm_frame_init_saved_regs): New prototype.
13467 (FRAME_INIT_SAVED_REGS): Define.
13468
61d99182
AC
134692002-01-20 Andrew Cagney <ac131313@redhat.com>
13470
13471 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13472
6aaea291
AC
134732002-01-20 Andrew Cagney <ac131313@redhat.com>
13474
13475 From Jeff Law <law@redhat.com>:
13476 * infttrace.c: Include <sys/pstat.h>.
13477 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13478 exec file if the ttrace equivalent fails.
13479
15f698d2
AC
134802002-01-20 Andrew Cagney <ac131313@redhat.com>
13481
13482 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13483 (closeLogFile): Ditto.
13484
f86ddd7c
MC
134852002-01-20 Michael Chastain <mec@shout.net>
13486
13487 * top.c (print_gdb_version): Bump copyright year to 2002.
13488
904507ce
AC
134892002-01-20 Andrew Cagney <ac131313@redhat.com>
13490
13491 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13492 Zannoni and Eli Zaretskii.
13493
d7f0b9ce
DJ
134942002-01-20 Daniel Jacobowitz <drow@mvista.com>
13495
13496 * buildsym.c: Update copyright years.
13497 * c-typeprint.c: Likewise.
13498 * dwarf2read.c: Likewise.
13499 * f-typeprint.c: Likewise.
13500 * gdbtypes.c: Likewise.
13501 * gdbtypes.h: Likewise.
13502 * hp-symtab-read.c: Likewise.
13503 * hpread.c: Likewise.
13504 * mdebugread.c: Likewise.
13505 * p-typeprint.c: Likewise.
13506
3fd3d7d2
AC
135072002-01-20 Andrew Cagney <ac131313@redhat.com>
13508
13509 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13510 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13511 byte-order selectable.
13512 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13513 * arch-utils.c: Ditto.
13514 (set_endian): Ditto.
13515 (set_endian_from_file): Ditto.
13516 * gdbserver/low-sim.c (create_inferior): Ditto.
13517 * gdbarch.sh: Ditto.
13518 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13519 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13520 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13521 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13522 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13523 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13524 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13525 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13526 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13527 macro definition.
13528 * config/mips/tm-wince.h: Remove #undef of macro
13529 TARGET_BYTE_ORDER_SELECTABLE.
13530 * config/sh/tm-wince.h: Ditto.
13531
b02dede2
DJ
135322002-01-20 Daniel Jacobowitz <drow@mvista.com>
13533
13534 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13535 member function fields. Add accessor macro
13536 TYPE_FN_FIELD_ARTIFICIAL.
13537 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13538 * c-typeprint.c (c_type_print_base): Skip artificial member
13539 functions.
13540
c3643761
DJ
135412002-01-20 Daniel Jacobowitz <drow@mvista.com>
13542
13543 * f-typeprint.c: Delete unused function f_type_print_args.
13544 * p-typeprint.c: Delete unused function pascal_type_print_args.
13545
8176bb6d
DJ
135462002-01-20 Daniel Jacobowitz <drow@mvista.com>
13547
13548 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13549 comment. Add ``artificial'' to ``union field_location''.
13550
13551 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13552
13553 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13554 * mdebugread.c (parse_symbol): Likewise.
13555 * stabsread.c (define_symbol): Likewise.
13556 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13557 initializing TYPE_FIELD_BITPOS to n (obsolete).
13558 (hpread_doc_function_type): Likewise.
13559 * hpread.c (hpread_function_type): Likewise.
13560
7fd60527
AC
135612002-01-20 Andrew Cagney <ac131313@redhat.com>
13562
13563 * configure.in (host_makefile_frag): Only require a host makefile
13564 fragment when a native build.
13565 * configure: Re-generate.
13566
c2f05ac9
AC
135672002-01-20 Andrew Cagney <ac131313@redhat.com>
13568
13569 * doublest.h (floatformat_from_type): Declare.
13570 * doublest.c (floatformat_from_type): New function.
13571 (convert_typed_floating): Use.
13572
13573 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13574 call to function floatformat_from_type.
13575
13576 * gdbarch.sh (IEEE_FLOAT): Delete.
13577 * gdbarch.h, gdbarch.c: Re-generate.
13578 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13579 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13580 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13581 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13582 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13583 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13584 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13585 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13586 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13587 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13588 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13589 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13590
13591 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13592 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13593 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13594 * sh-tdep.c (sh_gdbarch_init): Ditto.
13595 * mips-tdep.c (mips_gdbarch_init): Ditto.
13596 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13597 * cris-tdep.c (cris_gdbarch_init): Ditto.
13598
abf22e64
AJ
135992002-01-20 Jiri Smid <smid@suse.cz>
13600
13601 * configure.host, configure.tgt: Support x86-64.
13602 * NEWS: Note new target x86-64.
13603
b7c4cbf8
AJ
13604 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13605 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13606 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13607 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13608 x86-64-linux-nat.o): Fix dependencies.
13609
82600034
AC
136102002-01-19 Andrew Cagney <ac131313@redhat.com>
13611
13612 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13613 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13614 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13615 * config/sparc/xm-sun4os4.h: Delete file.
13616 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13617
bbe5c628
AC
136182002-01-19 Andrew Cagney <ac131313@redhat.com>
13619
13620 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13621 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13622 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13623 * config/i386/i386lynx.mh (XM_FILE): Delete.
13624 * config/rs6000/xm-rs6000ly.h: Delete file.
13625 * config/sparc/xm-sparclynx.h: Delete file.
13626 * config/m68k/xm-m68klynx.h: Delete file.
13627 * config/i386/xm-i386lynx.h: Delete file.
13628 * config/xm-lynx.h: Delete file.
13629 * config/djgpp/fnchange.lst: Update.
13630
f8453e34
JT
136312002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13632
13633 * alpha-tdep.c (alpha_register_byte): New function.
13634 (alpha_register_raw_size): Ditto.
13635 (alpha_register_virtual_size): Ditto.
13636 (alpha_skip_prologue_internal): Renamed from
13637 alpha_skip_prologue.
13638 (alpha_skip_prologue): New version that calls
13639 alpha_skip_prologue_internal.
13640 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13641 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13642 second argument from alpha_skip_prologue.
13643 (REGISTER_BYTE): Use alpha_register_byte.
13644 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13645 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13646 (FRAMELESS_FUNCTION_INVOCATION): Use
13647 generic_frameless_function_invocation_not.
13648 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13649 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13650
52d9e613
AC
136512002-01-19 Andrew Cagney <ac131313@redhat.com>
13652
13653 * config/mips/xm-news-mips.h: Delete file.
13654 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13655
13656 * config/m88k/xm-m88k.h: Delete file.
13657 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13658 * config/m88k/xm-delta88v4.h: Ditto.
13659 * config/m88k/xm-delta88.h: Ditto.
13660
13661 * config/alpha/xm-fbsd.h: Delete file.
13662 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13663
13664 * config/sparc/xm-sparc.h: Delete file.
13665 * Makefile.in (xm-sun4os4.h): Delete dependency.
13666 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13667 * config/sparc/xm-sun4os4.h: Ditto.
13668 * config/sparc/xm-linux.h: Ditto.
13669
13670 * config/i386/xm-windows.h: Delete file.
13671
2d1b2124
AC
136722002-01-19 Andrew Cagney <ac131313@redhat.com>
13673
13674 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13675 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13676
ee1f65f0
JT
136772002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13678
13679 * alpha-tdep.c (alpha_call_dummy_words): New.
13680 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13681 (CALL_DUMMY_P): Define.
13682 (CALL_DUMMY_WORDS): Define.
13683 (SIZEOF_CALL_DUMMY_WORDS): Define.
13684
98081e55
PB
136852002-01-19 Per Bothner <per@bothner.com>
13686
13687 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13688 isn't NULL, which can happen with some gcj-3.x-produced code.
13689
0d056799
JT
136902002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13691
13692 * alpha-tdep.c (alpha_register_virtual_type): New function.
13693 (alpha_init_frame_pc_first): Ditto.
13694 (alpha_fix_call_dummy): Ditto.
13695 (alpha_store_struct_return): Ditto.
13696 (alpha_extract_struct_value_address): Ditto.
13697 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13698 alpha_register_virtual_type.
13699 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13700 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13701 alpha_extract_struct_value_address.
13702 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13703 (INIT_FRAME_PC): Use init_frame_pc_noop.
13704 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13705
4604bcad
MK
137062002-01-19 Mark Kettenis <kettenis@gnu.org>
13707
13708 * i386gnu-nat.c: Include "i386-tdep.h".
13709 (fetch_fpregs): Simplify code dealing with uninitialized floating
13710 point states such that it doesn't require FP7_REGNUM.
13711
140f9984
JT
137122002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13713
abf22e64
AJ
13714 * alpha-tdep.c (frame_extra_info): New.
13715 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13716 frame->extra_info.
13717 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13718 (alpha_frame_saved_pc): Use frame->extra_info.
13719 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13720 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13721 (init_extra_frame_info): Rename to...
13722 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13723 (alpha_print_extra_frame_info): New function.
140f9984
JT
13724 (alpha_frame_locals_address): Ditto.
13725 (alpha_frame_args_address): Ditto.
abf22e64 13726 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13727 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13728 alpha_frame_args_address.
abf22e64 13729 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13730 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13731 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13732 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13733 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13734 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13735
d734c450
JT
137362002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13737
13738 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13739 (alpha_cannot_fetch_register): Ditto.
13740 (alpha_cannot_store_register): Ditto.
13741 (alpha_register_convertible): Ditto.
13742 (alpha_use_struct_convention): Ditto.
13743 * config/alpha/tm-alpha.h: Update copyright years.
13744 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13745 (INNER_THAN): Use core_addr_lessthan.
13746 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13747 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13748 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13749 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13750 (FRAME_CHAIN): Remove unnecessary cast.
13751
b4ceaee6
AC
137522002-01-18 Andrew Cagney <ac131313@redhat.com>
13753
13754 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13755 obsolete.
13756
0a65a603
AC
137572002-01-18 Andrew Cagney <ac131313@redhat.com>
13758
13759 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13760 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13761 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13762 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13763 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13764 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13765 * x86-64-linux-nat.c: Ditto.
13766
636a6dfc
JT
137672002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13768
abf22e64 13769 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13770 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13771 (REGISTER_NAME): Define.
13772
acceddb6
JT
137732002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13774
13775 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13776
ec32e4be
JT
137772002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13778
13779 * alpha-tdep.c: Update copyright years.
13780 (alpha_next_pc): New function.
13781 (alpha_software_single_step): Ditto.
13782 * config/alpha/tm-alpha.h: Add prototype for
13783 alpha_software_single_step.
13784
e771a871
JT
137852002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13786
13787 * alphabsd-nat.c: Update copyright years.
13788 (fill_gregset): Use regcache_collect.
13789 (fill_fpregset): Likewise.
13790 (fetch_inferior_registers): Only fetch integer registers
13791 if requested to do so.
13792 (store_inferior_registers): Only store integer registers
13793 if requested to do so.
13794
7708fa01
AC
137952002-01-17 Andrew Cagney <ac131313@redhat.com>
13796
13797 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13798 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13799 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13800 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13801 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13802 * config/arm/linux.mh (XDEPFILES): Delete.
13803 * config/arm/nbsd.mh (XDEPFILES): Delete.
13804 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13805 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13806 * config/i386/i386m3.mh (XDEPFILES): Delete.
13807 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13808 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13809 * config/i386/fbsd.mh (XDEPFILES): Delete.
13810 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13811 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13812 * config/i386/i386v4.mh (XDEPFILES): Delete.
13813 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13814 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13815 * config/i386/i386aix.mh (XDEPFILES): Delete.
13816 * config/i386/go32.mh (XDEPFILES): Delete.
13817 * config/i386/cygwin.mh (XDEPFILES): Delete.
13818 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13819 * config/i386/i386mach.mh (XDEPFILES): Delete.
13820 * config/i386/i386v32.mh (XDEPFILES): Delete.
13821 * config/i386/linux.mh (XDEPFILES): Delete.
13822 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13823 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13824 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13825 * config/i386/i386sco.mh (XDEPFILES): Delete.
13826 * config/i386/i386v.mh (XDEPFILES): Delete.
13827 * config/i386/nbsd.mh (XDEPFILES): Delete.
13828 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13829 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13830 * config/i386/symmetry.mh (XDEPFILES): Delete.
13831 * config/i386/obsd.mh (XDEPFILES): Delete.
13832 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13833 * config/ia64/linux.mh (XDEPFILES): Delete.
13834 * config/ia64/aix.mh (XDEPFILES): Delete.
13835 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13836 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13837 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13838 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13839 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13840 * config/m68k/linux.mh (XDEPFILES): Delete.
13841 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13842 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13843 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13844 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13845 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13846 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13847 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13848 * config/m88k/delta88.mh (XDEPFILES): Delete.
13849 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13850 * config/m88k/m88k.mh (XDEPFILES): Delete.
13851 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13852 * config/mips/linux.mh (XDEPFILES): Delete.
13853 * config/mips/irix6.mh (XDEPFILES): Delete.
13854 * config/mips/irix5.mh (XDEPFILES): Delete.
13855 * config/mips/irix4.mh (XDEPFILES): Delete.
13856 * config/mips/irix3.mh (XDEPFILES): Delete.
13857 * config/mips/decstation.mh (XDEPFILES): Delete.
13858 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13859 (NATDEPFILES): Move core-aout.o to here.
13860 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13861 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13862 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13863 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13864 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13865 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13866 * config/pa/hpux11.mh (XDEPFILES): Delete.
13867 * config/powerpc/aix.mh (XDEPFILES): Delete.
13868 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13869 * config/powerpc/linux.mh (XDEPFILES): Delete.
13870 * config/romp/rtbsd.mh: Rename XDEPFILES.
13871 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13872 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13873 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13874 * config/s390/s390.mh (XDEPFILES): Delete.
13875 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13876 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13877 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13878 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13879 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13880 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13881 * config/sparc/linux.mh (XDEPFILES): Delete.
13882 * config/vax/vaxult.mh (XDEPFILES): Delete.
13883 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13884 * Makefile.in (DEPFILES): Remove XDEPFILES.
13885
375fc983
AC
138862002-01-17 Andrew Cagney <ac131313@redhat.com>
13887
13888 * utils.c (internal_verror): Fix comments, default is yes not no.
13889 Update queries to match. Default to quit and dump core.
13890
8926118c
AC
138912002-01-17 Andrew Cagney <ac131313@redhat.com>
13892
13893 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13894 copyright.
13895 * defs.h, event-top.c, gdbcmd.h: Ditto.
13896 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13897 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13898 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13899 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13900 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13901 * mi/mi-main.c:Ditto.
13902
13903 * stack.c, symfile.c: Update copyright.
13904
45b7b345
DJ
139052002-01-17 Daniel Jacobowitz <drow@mvista.com>
13906
db728ff7
DJ
13907 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13908 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13909 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13910 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13911
db728ff7
DJ
139122002-01-17 Daniel Jacobowitz <drow@mvista.com>
13913
13914 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13915 * gdbserver/low-lynx.c (myattach): Likewise.
13916 * gdbserver/low-nbsd.c (myattach): Likewise.
13917 * gdbserver/low-sim.c (myattach): Likewise.
13918 * gdbserver/low-sparc.c (myattach): Likewise.
13919 * gdbserver/low-sun3.c (myattach): Likewise.
13920
13921 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13922
db728ff7 13923 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13924 (main): Handle "--attach".
13925
8de3c354
AC
139262002-01-16 Andrew Cagney <ac131313@redhat.com>
13927
13928 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13929 maintainer.
13930
b0129042
DJ
139312002-01-15 Daniel Jacobowitz <drow@mvista.com>
13932
13933 * c-typeprint.c (is_type_conversion_operator): Add additional
13934 check for non-conversion operators.
13935
ba8679fb 139362002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13937
13938 * linux-proc.c: Add "info proc" command, a la procfs.c.
13939 (read_mapping): New function, abstract and re-use code.
13940 (linux_find_memory_regions): Use new func read_mapping.
13941 (linux_info_proc_cmd): New function, implement "info proc".
13942 (_initialize_linux_proc): Add new command "info proc".
13943
e4f9b4d5
MS
139442002-01-15 Michael Snyder <msnyder@redhat.com>
13945
13946 * symfile.c (generic_load): Use bfd_map_over_sections method
13947 instead of manipulating bfd structure members directly.
13948 (add_section_size_callback): New function, bfd sections callback
13949 used by generic_load.
13950 (load_sections_callback): New function, bfd sections callback
13951 used by generic_load.
13952
08cf96df
EZ
139532002-01-15 Elena Zannoni <ezannoni@redhat.com>
13954
abf22e64 13955 [Based on work by Jim Blandy]
08cf96df
EZ
13956 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13957 (builtin_type_vec128): Export.
13958 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13959 types.
13960 (builtin_type_vec128): New builtin type for 128 bit vector
13961 registers.
13962 (build_gdbtypes): Initialize builtin_type_v16qi and
13963 builtin_type_v8hi. Create the vec128 register builtin type
13964 structure.
13965 (build_builtin_type_vec128): New function.
abf22e64 13966 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13967 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13968 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13969 AltiVec register to new builtin type.
13970
d7242108
DJ
139712001-01-15 Daniel Jacobowitz <drow@mvista.com>
13972
13973 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13974 to make_cv_type.
13975
4ee3352d
AC
139762002-01-14 Andrew Cagney <ac131313@redhat.com>
13977
13978 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13979 CLEAN_UP_REGISTER_VALUE.
13980 * regcache.c (supply_register): Update only call.
13981
f015b2e7
AC
139822002-01-14 Andrew Cagney <ac131313@redhat.com>
13983
13984 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13985 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13986 a29k-*-vxworks* targets as obsolete.
13987
356ae49d
MS
139882002-01-14 Michael Snyder <msnyder@redhat.com>
13989
13990 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13991 until we can resolve portability issues.
13992 * gregset.h: Remove references to fpxregs.
13993 * gcore.c (gcore_command): Initialize note_sec to NULL.
13994
ade8f45e
AC
139952002-01-13 Andrew Cagney <ac131313@redhat.com>
13996
13997 * signals.c (target_signal_to_name): Rewrite. Only use
13998 signals[].name when in bounds and non-NULL.
abf22e64 13999
89c49e7a
AC
140002002-01-13 Andrew Cagney <ac131313@redhat.com>
14001
14002 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14003 * signals.c (target_signal_to_name): Verify that SIG is within the
14004 bounds of the signals array.
14005
4daa9f9f
AC
140062002-01-13 Andrew Cagney <ac131313@redhat.com>
14007
14008 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14009
ba4bbdcb
KS
140102002-01-13 Keith Seitz <keiths@redhat.com>
14011
14012 * stack.c (print_frame_info_base): Print the frame's pc
14013 only if when print_frame_info_listing_hook is not defined.
14014
575bbeb6
KS
140152002-01-13 Keith Seitz <keiths@redhat.com>
14016
14017 * varobj.c (varobj_set_value): Make sure that there were no
14018 errors evaluating the object before attempting to set its
14019 value.
14020 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14021 so this offset adjustment is no longer necessary.
14022 (create_child): Don't set the error flag if the child is
14023 a CPLUS_FAKE_CHILD.
14024 (value_of_child): If value_fetch_lazy fails, return NULL
14025 so that callers will be notified that an error occurred.
14026 (c_value_of_variable): Delay check of variable's validity
14027 until later. We actually want all structs and unions to have
14028 the value "{...}".
14029 Do not return "???" for variables which could not be evaluated.
14030 This error condition must be returned to the caller so that it
14031 can get the error condition from gdb.
14032 (cplus_name_of_child): Adjust index for vptr before figuring
14033 out the name of the child.
14034 (cplus_value_of_child): If a child's (real) parent is not valid,
14035 don't even bother trying to give a value for it. Just return
14036 an error. Change all instances in this function.
14037 (cplus_type_of_child): If our parent is one of the "fake"
14038 parents, we need to get at the type of the real parent, and
14039 derive the child's true type using this information.
14040
b76898ab
AC
140412002-01-13 Andrew Cagney <ac131313@redhat.com>
14042
14043 From 2002-01-09 John Marshall <johnm@falch.net>:
14044 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14045 sources.redhat.com, and tweak some related URLs which had
14046 suffered from linkrot.
14047
b6649e88
AC
140482002-01-13 Andrew Cagney <ac131313@redhat.com>
14049
14050 From Jeff law:
14051 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14052 structures passed in registers.
14053
82cc5033
EZ
140542002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14055
14056 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14057 white space which prevented compilation. Reported by DSK
14058 <dsk@student.unsw.edu.au>.
14059
ba5f2f8a
MS
140602002-01-11 Michael Snyder <msnyder@redhat.com>
14061
fbd35540
MS
14062 * symfile.c (build_section_addr_info_from_section_tab):
14063 Use bfd access method instead of manipulating bfd directly.
14064 (syms_from_objfile): Ditto.
14065 (simple_overlay_update_1): Ditto.
14066 (simple_overlay_update): Ditto.
14067 (generic_load): Ditto.
14068 (overlay_unmapped_address): FIXME comment, bfd access methods.
14069 (sections_overlap): FIXME comment, bfd access methods.
14070 (pc_in_mapped_range): FIXME comment, bfd access methods.
14071 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14072 (section_is_mapped): FIXME comment, bfd access methods.
14073 (section_is_overlay): FIXME comment, bfd access methods.
14074
ba5f2f8a
MS
14075 * symfile.c (generic_load): Whitespace and long line cleanups.
14076 Remove duplicate variable, change several local variables to
14077 more appropriate data types.
14078 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14079
17df2af6
AC
140802002-01-12 Andrew Cagney <ac131313@redhat.com>
14081
14082 From Peter Schauer:
14083 * language.c (longest_local_hex_string_custom): Use phex_nz to
14084 convert NUM to a hex string.
14085
ec920329
EZ
140862002-01-12 Elena Zannoni <ezannoni@redhat.com>
14087
14088 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14089 the function.
538a76d6 14090 Update Copyright year.
ec920329 14091
3abd2e01
AC
140922002-01-12 Andrew Cagney <ac131313@redhat.com>
14093
14094 * language.c (longest_raw_hex_string): Delete unused function.
14095
b21b22e0
PS
140962002-01-11 Petr Sorfa <petrs@caldera.com>
14097
14098 * MAINTAINERS (write-after-approval): Add myself.
14099 * dwarf2read.c (read_tag_string_type): Handling of
14100 DW_AT_byte_size.
14101 (read_tag_string_type): FORTRAN fix to prevent propagation of
14102 first string size.
14103 (set_cu_language): Handling of DW_LANG_Fortran95
14104
747fe712
RE
141052002-01-11 Richard Earnshaw <rearnsha@arm.com>
14106
14107 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14108 GETPID(inferior_ptid).
14109 (store_inferior_registers): Likewise.
14110
f1bea926
JM
141112002-01-10 Jason Merrill <jason@redhat.com>
14112
14113 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14114 Fix DW_OP_minus.
14115
ae940673
AC
141162002-01-10 Andrew Cagney <ac131313@redhat.com>
14117
14118 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14119 and bfd/elf32-sh-nbsd.c.
14120
00546b04
MS
141212002-01-10 Michael Snyder <msnyder@redhat.com>
14122
352ed7b4
MS
14123 * NEWS: Mention --pid and corefile/proc-id behavior change.
14124
c18be923
MS
14125 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14126 * gcore.c: Include cli/cli-decode.h instead of command.h.
14127
00546b04
MS
14128 * main.c (captured_main): Add new command line option "--pid".
14129 If the second command line argument (following the symbol-file)
14130 begins with a digit, try to attach to it before trying to open
14131 it as a corefile.
14132 (print_gdb_help): Document the "--pid" argument.
14133
db60ec62
EZ
141342002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14135
14136 * completer.c (command_completer): New function.
14137
14138 * completer.h <command_completer>: Add prototype.
14139
14140 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14141 completer for the "help" command.
14142
39c22d1a
JM
141432002-01-09 Jason Merrill <jason@redhat.com>
14144
14145 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14146
c564377f
MS
141472002-01-09 Michael Snyder <msnyder@redhat.com>
14148
975aec09
MS
14149 * i386-linux-nat.c (fill_fpxregset): Make global.
14150 (store_fpxregset): Ditto.
14151
db4a10fa
MS
14152 * gregset.h (gdb_fpxregset_t): Define.
14153 (supply_fpxregset): Prototype.
14154 (fill_fpxregset): Prototype.
14155
c564377f
MS
14156 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14157
c3d45d70
RE
141582002-01-09 Richard Earnshaw <rearnsha@arm.com>
14159
14160 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14161 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14162 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14163
fcc87af1
AC
141642002-01-09 Andrew Cagney <ac131313@redhat.com>
14165
14166 * MAINTAINERS: Update target maintainer rules so that any
14167 Maintainer can approve a tested patch for a maintenance-only
14168 target.
14169
dd96c05b
RE
141702002-01-09 Richard Earnshaw <rearnsha@arm.com>
14171
d4297db9 14172 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 14173
d4297db9 14174 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
14175 IN_SIGTRAMP.
14176
145fdc6e
MS
141772002-01-08 Michael Snyder <msnyder@redhat.com>
14178
14179 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14180 real name of the executable, rather than the /proc name.
14181
be4d1333
MS
141822002-01-03 Michael Snyder <msnyder@redhat.com>
14183
14184 Implement a "generate-core-file" command in gdb, save target state.
14185 * gcore.c: New file. Implement new command 'generate-core-file'.
14186 Save a corefile image of the current state of the inferior.
14187 * linux-proc.c: Add linux-specific code for saving corefiles.
14188 * target.h (struct target_ops): Add new target vectors for saving
14189 corefiles; to_find_memory_regions and to_make_corefile_notes.
14190 (target_find_memory_regions): New macro.
14191 (target_make_corefile_notes): New macro.
14192 * target.c (update_current_target): Inherit new target methods.
14193 (dummy_find_memory_regions): New place-holder method.
14194 (dummy_make_corefile_notes): New place-holder method.
14195 (init_dummy_target): Initialize new dummy target vectors.
14196 * exec.c (exec_set_find_memory_regions): New function.
14197 Allow the exec_ops vector for memory regions to be taken over.
14198 (exec_make_note_section): New function, target vector method.
14199 * defs.h (exec_set_find_memory_regions): Export prototype.
14200 * procfs.c (proc_find_memory_regions): New function, corefile method.
14201 (procfs_make_note_section): New function, corefile method.
14202 (init_procfs_ops): Set new target vector pointers.
14203 (find_memory_regions_callback): New function.
14204 (procfs_do_thread_registers): New function.
14205 (procfs_corefile_thread_callback): New function.
14206 * sol-thread.c (sol_find_memory_regions): New function.
14207 (sol_make_note_section): New function.
14208 (init_sol_thread_ops): Initialize new target vectors.
14209 * inftarg.c (inftarg_set_find_memory_regions): New function.
14210 Allow to_find_memory_regions vector to be taken over.
14211 (inftarg_set_make_corefile_notes): New function.
14212 Allow to_make_corefile_notes vector to be taken over.
14213 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14214 interface layer if not target_has_execution (may be a corefile).
14215 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14216 * config/sparc/sun4sol2.mh: Ditto.
14217 * config/alpha/alpha-linux.mh: Ditto.
14218 * config/arm/linux.mh: Ditto.
14219 * config/i386/x86-64linux.mh: Ditto.
14220 * config/ia64/linux.mh: Ditto.
14221 * config/m68k/linux.mh: Ditto.
14222 * config/mips/linux.mh: Ditto.
14223 * config/powerpc/linux.mh: Ditto.
14224 * config/sparc/linux.mh: Ditto.
14225
c6b92abd
MS
142262002-01-07 Michael Snyder <msnyder@redhat.com>
14227
14228 * arm-linux-nat.c: Remove references to regcache.c internal data
14229 (registers[] and register_valid[]).
14230
4b09dc8c
MS
142312002-01-07 Michael Snyder <msnyder@redhat.com>
14232
abf22e64
AJ
14233 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14234 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
14235 symbol file and shlibs.
14236 * Makefile.in: Add rule for linux-proc.o.
14237 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14238 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14239 * config/arm/linux.mh: Ditto.
14240 * config/i386/linux.mh: Ditto.
14241 * config/i386/x86-64linux.mh: Ditto.
14242 * config/ia64/linux.mh: Ditto.
14243 * config/m68k/linux.mh: Ditto.
14244 * config/mips/linux.mh: Ditto.
14245 * config/powerpc/linux.mh: Ditto.
14246 * config/sparc/linux.mh: Ditto.
14247
c25b74ac
PM
142482002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14249
14250 * win32-nat.c: Add i386-tdep.h dependency.
14251
94cd915f
MS
142522002-01-07 Michael Snyder <msnyder@redhat.com>
14253
c7cccb76
MS
14254 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14255 instead of bfd_get_arch_size. Don't bail out just because
14256 there's no exec_bfd.
abf22e64 14257
34c0bd93
MS
14258 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14259 * p-valprint.c (pascal_object_print_value): Ditto.
14260 * somread.c (som_symtab_read): Ditto.
14261 * symfile.c (simple_free_overlay_region_table): Ditto.
14262 * valops.c (value_assign): Ditto.
14263
21c1c920
MS
14264 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14265 use tilde_expand and strerror for opening save-tracepoints file.
14266
5bbd998e
MS
14267 * thread-db.c (thread_db_new_objfile): Indendation fix.
14268
94cd915f
MS
14269 * infptrace.c (GDB_MAX_ALLOCA): New define.
14270 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 14271 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
14272 can be overridden with whatever value is appropriate to the host).
14273 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14274 alloca to allocate potentially large buffer.
14275 * rs6000-nat.c (child_xfer_memory): Ditto.
14276 * symm-nat.c (child_xfer_memory): Ditto.
14277 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14278
494e8a93
JSC
142792002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14280
14281 From Nick Clifton <nickc@redhat.com>
14282 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14283
d0e1d48e
MS
142842002-01-07 Michael Snyder <msnyder@redhat.com>
14285
abf22e64 14286 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
14287 Don't use exec_bfd if it's NULL.
14288
290b2c7a
MK
142892002-01-06 Mark Kettenis <kettenis@gnu.org>
14290
abf22e64 14291 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 14292
aef21287
AC
142932002-01-06 Andrew Cagney <ac131313@redhat.com>
14294
14295 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14296 * gnu-nat.c: Ditto.
14297
30efa627
AC
142982002-01-06 Andrew Cagney <ac131313@redhat.com>
14299
14300 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14301 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14302 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14303 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14304 z8k-coff have not been multi-arched. Update z8k-coff build
14305 status.
14306
9b4ff276
AC
143072002-01-06 Andrew Cagney <ac131313@redhat.com>
14308
14309 * MAINTAINERS: Mark a29k target as obsolete.
14310 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14311 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14312 comments.
14313 * NEWS: Note that a29k targets are obsolete.
14314 * a29k-tdep.c: Mark as obsolete.
14315 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14316 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14317 a29k-*-vxworks* targets as obsolete.
14318 * remote-adapt.c: Obsolete.
14319 * remote-eb.c: Obsolete.
14320 * remote-mm.c: Obsolete.
14321 * remote-udi.c: Obsolete.
14322 * config/a29k/a29k-udi.mt: Obsolete.
14323 * config/a29k/a29k.mt: Obsolete.
14324 * config/a29k/tm-a29k.h: Obsolete.
14325 * config/a29k/tm-vx29k.h: Obsolete.
14326 * config/a29k/vx29k.mt: Obsolete.
14327
a9011d31
AC
143282002-01-05 Andrew Cagney <ac131313@redhat.com>
14329
14330 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14331 with BFD_ENDIAN_BIG.
14332
9299404e
AC
143332002-01-05 Andrew Cagney <ac131313@redhat.com>
14334
14335 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14336 * configure, config.in: Re-generate.
14337 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14338 * defs.h: Do not include <endian.h>.
14339
7e89e357
JT
143402002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14341
14342 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14343 * config.in: Regenerate.
14344 * configure.in: Update copyright years.
14345 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14346 * configure: Regenerate.
14347 * i386bsd-nat.c: Update copyright years.
14348 (fill_gregset): Use regcache_collect.
14349 (fetch_inferior_registers): Only fetch integer registers
14350 if requested to do so. Add support for XMM registers
14351 using PT_GETXMMREGS.
14352 (store_inferior_registers): Only store integer registers
14353 if requested to do so. Add support for XMM registers
14354 using PT_SETXMMREGS.
14355 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14356 (store_inferior_registers): Remove.
14357 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14358 (fetch_elfcore_registers): New function.
14359 (i386nbsd_elfcore_fns): New.
14360 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14361 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14362 i386bsd-nat.o.
14363 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14364 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14365 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14366 * config/i386/tm-nbsd.h: Update copyright years.
14367 (HAVE_SSE_REGS): Define.
14368 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14369 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14370 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14371 (SIGCONTEXT_PC_OFFSET): Remove.
14372 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14373
a752853e
AC
143742002-01-05 Andrew Cagney <ac131313@redhat.com>
14375
14376 * configure.tgt: Remove powerpc-*-macos* target.
14377 * config/m68k/xm-mpw.h: Delete file.
14378 * config/xm-mpw.h: Delete file.
14379 * ser-mac.c: Delete file.
14380 * mpw-make.sed: Delete file.
14381 * mpw-config.in: Delete file.
14382 * mac-xdep.c: Delete file.
14383 * mac-gdb.r: Delete file.
14384 * mac-defs.h: Delete file.
14385 * mac-nat.c: Delete file.
14386 * config/powerpc/macos.mh: Delete file.
14387 * config/powerpc/macos.mt: Delete file.
14388 * config/powerpc/nm-macos.h: Delete file.
14389 * config/powerpc/tm-macos.h: Delete file.
14390 * source.c (openp, open_source_file): Remove obsolete code.
14391 * top.c (gdb_readline): Ditto.
14392 * utils.c (query): Ditto.
14393 * event-top.c (display_gdb_prompt): Ditto.
14394 * Makefile.in (ser-mac.o): Delete obsolete target.
14395 * NEWS: Update.
14396
d7449b42
AC
143972002-01-04 Andrew Cagney <ac131313@redhat.com>
14398
14399 * defs.h (BIG_ENDIAN): Delete macro definition.
14400 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14401 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14402 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14403 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14404 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14405 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14406 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14407 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14408 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14409 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14410 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14411 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14412 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14413 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14414 * gdbarch.c: Re-generate.
14415
356374e8
DJ
144162002-01-04 Daniel Jacobowitz <drow@mvista.com>
14417
14418 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14419 for core files.
14420
a2b8f8f8
JT
144212002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14422
14423 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14424
12466af9
AC
144252002-01-04 Andrew Cagney <ac131313@redhat.com>
14426
14427 * value.h (value_ptr): Delete typedef.
14428
3549ab40
JT
144292002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14430
14431 * i386nbsd-nat.c: Update copyright years.
14432 Include i386-tdep.h.
14433
fedbd091
EZ
144342002-01-04 Elena Zannoni <ezannoni@redhat.com>
14435
14436 * stabsread.c: Update copyright years.
14437
14438 From Debashis Mahata <debashis.mahata@wipro.com>:
14439 (read_struct_fields): Deal with Sun C compiler erroneous stab
14440 output for structs and unions.
fec8b34f 14441 Fix PR gdb/269.
fedbd091 14442
eb43544b
DJ
144432002-01-04 Daniel Jacobowitz <drow@mvista.com>
14444
14445 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14446 prototype.
14447
1514d34e
DJ
144482002-01-04 Daniel Jacobowitz <drow@mvista.com>
14449
14450 * cp-abi.c: Fix whitespace.
14451 (baseclass_offset): New wrapper function.
14452 * cp-abi.h (baseclass_offset): Add prototype.
14453 (struct cp_abi_ops): Add baseclass_offset pointer.
14454
14455 * valops.c (vb_match): Move to...
14456 * gnu-v2-abi.c (vb_match): here.
14457 * valops.c (baseclass_offset): Move to...
14458 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14459
14460 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14461
14462 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14463 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14464 * hpacc-abi.c (init_hpacc_ops): Likewise.
14465
7f8c9282
DJ
144662002-01-04 Daniel Jacobowitz <drow@mvista.com>
14467
14468 * valops.c (find_overload_match): Accept obj as a
14469 reference parameter. Update it before returning.
14470 * value.h (find_overload_match): Update prototype.
14471 * eval.c (evaluate_subexp_standard): Pass object to
14472 find_overload_match by reference.
14473
f23631e4
AC
144742002-01-03 Andrew Cagney <ac131313@redhat.com>
14475
14476 * valarith.c: Replace value_ptr with struct value pointer. Remove
14477 register attribute from value declarations.
14478 * valops.c: Ditto.
14479 * value.h: Ditto.
14480 * scm-lang.c (scm_lookup_name): Ditto.
14481
79e10fab 144822002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 14483
79e10fab
AC
14484 Abstract the functionality of iterating over mapped memory
14485 regions into a general purpose iterator function.
abf22e64 14486 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14487 iterator for memory sections.
14488 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14489 (solib_mappings_callback): New function, callback for above.
14490 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14491 (info_mappings_callback): New function, callback for above.
14492
14493 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14494
c5ad026a
MK
144952002-01-01 Mark Kettenis <kettenis@gnu.org>
14496
d2a7c97a
MK
14497 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14498 * i386-tdep.c: Include "elf-bfd.h".
14499 (process_note_abi_tag_sections): New function.
14500 (i386_gdbarch_init): Add code to recognize various OS/ABI
14501 combinations.
14502
c5ad026a
MK
14503 * maint.c (_initialize_maint_cmds): Add missing \ in
14504 string-literal.
14505
a1a5b71e 14506For older changes see ChangeLog-2001
c906108c
SS
14507\f
14508Local Variables:
14509mode: change-log
14510left-margin: 8
14511fill-column: 74
14512version-control: never
14513End:
This page took 0.980885 seconds and 4 git commands to generate.