daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b87efeee
AC
12002-12-13 Andrew Cagney <ac131313@redhat.com>
2
3 * frame.c (deprecated_update_current_frame_pc_hack): New
4 function.
5 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
6 * infrun.c (normal_stop): Use said function instead of directly
7 modifying the frame's PC.
8
3de2dc4f
AO
92002-12-13 Alexandre Oliva <aoliva@redhat.com>
10
11 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
12
fe29b929
KB
132002-12-13 Kevin Buettner <kevinb@redhat.com>
14
15 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
16 config/mips/tm-irix6.h (NUM_REGS): Delete.
17 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
18 (temp_saved_regs): Declare as a pointer rather than an array.
19 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
20 that ``temp_saved_regs'' has storage allocated to it and that
21 it's the correct size.
22
c04e0a08
JJ
232002-12-13 Jeff Johnston <jjohnstn@redhat.com>
24
25 * defs.h (init_last_source_visited): New prototype.
26 (add_path): Ditto.
27 * source.c (add_path): New function that adds to a specified path.
28 (mod_path): Change to call add_path.
29 (init_last_source_visited): New function to allow interfaces to
30 initialize static variable: last_source_visited. Part of fix
31 for PR gdb/741.
32 * Makefile.in: Add support for mi/mi-cmd-env.c.
33
c689142b
AC
342002-12-13 Andrew Cagney <ac131313@redhat.com>
35
36 * frame.h (frame_id_unwind): Declare.
37 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
38 id_unwind_cache.
39 (frame_id_unwind_ftype): Declare.
40 * frame.c (frame_id_unwind): New function.
41 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
42 (create_new_frame, get_prev_frame): Pass id_unwind to
43 set_unwind_by_pc.
44 (frame_saved_regs_id_unwind): New function.
45 (frame_saved_regs_id_unwind): New function.
46 * dummy-frame.c (dummy_frame_id_unwind): New function.
47 (struct dummy_frame): Add field id.
48 (generic_push_dummy_frame): Initialize `id'.
49 * dummy-frame.h (dummy_frame_id_unwind): Declare.
50
18ea5ba4
AC
512002-12-13 Andrew Cagney <ac131313@redhat.com>
52
53 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
54 pass that to set_momentary_breakpoint. Move comments to where they
55 belong.
56 * frame.h (set_current_frame): Delete declaration.
57 * frame.c (set_current_frame): Delete function.
58
2c517d0e
AC
592002-12-13 Andrew Cagney <ac131313@redhat.com>
60
61 * frame.c (frame_extra_info_zalloc): New function.
62 * frame.h (frame_extra_info_zalloc): Declare.
63
516b1f28
JB
642002-12-13 Joel Brobecker <brobecker@gnat.com>
65
66 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
67 in the previous prototype change to set_momentary_breakpoint.
68
fbb265fc
DJ
692002-12-12 Daniel Jacobowitz <drow@mvista.com>
70
71 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
72 and saw_child_exec.
73 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
74 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
75 (stop_stepping): Remove outdated check for child vfork events.
76
4fd7f624
AC
772002-12-12 Andrew Cagney <ac131313@redhat.com>
78
79 * GDB 5.3 released from gdb_5_3-branch.
80
4c9ba7e0
DJ
812002-12-11 Daniel Jacobowitz <drow@mvista.com>
82
83 * corelow.c (init_core_ops): Delete references to to_require_attach
84 and to_require_detach.
85 * exec.c (init_exec_ops): Likewise.
86 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
87 hppa_require_detach directly.
88 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
89 * inftarg.c (child_detach): Remove.
90 (child_detach_from_process): Rename to child_detach, remove
91 after_fork argument.
92 (child_attach): Remove.
93 (child_attach_to_process): Rename to child_attach, remove after_fork
94 argument.
95 (init_child_ops): Delete references to to_require_attach
96 and to_require_detach.
97 * infttrace.c (hppa_require_attach): Update comment.
98 * target.c (cleanup_target, update_current_target)
99 (init_dummy_target, setup_target_debug): Delete references to
100 to_require_attach and to_require_detach.
101 (find_default_require_detach, find_default_require_attach)
102 (debug_to_require_attach, debug_to_require_detach): Remove
103 functions.
104 * target.h (struct target_ops): Remove to_require_attach
105 and to_require_detach.
106 (target_require_attach, target_require_detach): Delete macros.
107 (find_default_require_detach, find_default_require_attach): Delete
108 prototypes.
109 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
110
0394eb2a
AC
1112002-12-11 Andrew Cagney <ac131313@redhat.com>
112
113 * frame.c (get_frame_extra_info): New function.
114 * frame.h (get_frame_extra_info): Declare.
115
818dd999
AC
1162002-12-11 Andrew Cagney <ac131313@redhat.com>
117
118 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
119 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
120 with `struct frame_id'.
121 (set_longjmp_resume_breakpoint): Ditto.
122 * infrun.c (handle_inferior_event): Update.
123 * breakpoint.c (watch_command_1, until_break_command): Update.
124 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
125 (handle_inferior_event, step_over_function): Update.
126 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
127 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
128 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
129 * infcmd.c (finish_command, run_stack_dummy): Update.
130
4d3c2250
KB
1312002-12-11 Kevin Buettner <kevinb@redhat.com>
132
133 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
134 (dwarf2_non_const_array_bound_ignored)
135 (dwarf2_missing_line_number_section)
136 (dwarf2_statement_list_fits_in_line_number_section)
137 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
138 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
139 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
140 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
141 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
142 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
143 (dwarf2_missing_member_fn_type_complaint)
144 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
145 (dwarf2_const_value_length_mismatch)
146 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
147 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
148 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
149 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
150 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
151 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
152 complaints using deprecated struct..
153 (dwarf2_non_const_array_bound_ignored_complaint)
154 (dwarf2_complex_location_expr_complaint)
155 (dwarf2_unsupported_at_frame_base_complaint)
156 (dwarf2_const_value_length_mismatch_complaint)
157 (dwarf2_macros_too_long_complaint)
158 (dwarf2_macro_malformed_definition_complaint)
159 (dwarf2_invalid_attrib_class_complaint): New functions.
160 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
161 (read_structure_scope, read_array_type, read_common_block)
162 (read_tag_pointer_type, read_base_type, read_partial_die)
163 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
164 (new_symbol, dwarf2_const_value, read_type_die)
165 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
166 (parse_macro_definition, dwarf_decode_macros): Replace calls to
167 complain() with, possibly indirect, calls to complaint().
168
95486978
AC
1692002-12-11 Andrew Cagney <cagney@redhat.com>
170
171 * frame.c (deprecated_get_frame_saved_regs): Rename
172 get_frame_saved_regs.
173 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
174 * sparc-tdep.c: Update.
175 * hppa-tdep.c: Update.
176 * h8500-tdep.c: Update.
177
321432c0
KB
1782002-12-11 Kevin Buettner <kevinb@redhat.com>
179
180 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
181 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
182 ``char *'' for return and parameter types.
183 * gdbarch.h, gdbarch.c: Regenerate.
184 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
185 return type from ``char *'' to ``const char *''.
186 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
187 const.
188
5a4d6ff4
MK
1892002-12-11 Mark Kettenis <kettenis@gnu.org>
190
191 * i386-tdep.c: Include "dummy-frame.h".
192 (i386_frame_chain, i386_frame_saved_pc): Replace
193 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
194 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
195
a5afb99f
AC
1962002-12-10 Andrew Cagney <cagney@redhat.com>
197
198 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
199 Change to a function with predicate.
200 * gdbarch.h, gdbarch.c: Re-generate.
201 * frame.c (get_prev_frame): Update. Test
202 DEPRECATED_INIT_FRAME_PC_P.
203 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
204 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
205 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
206 * alpha-tdep.c (alpha_gdbarch_init): Update.
207 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
208 * mips-tdep.c (mips_gdbarch_init): Update.
209 * i386-interix-tdep.c (i386_interix_init_abi): Update.
210 * arm-tdep.c: Update comments.
211 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
212 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
213 * frv-tdep.c (frv_gdbarch_init): Ditto.
214 * x86-64-tdep.c (x86_64_init_abi): Ditto.
215 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
216 * s390-tdep.c (s390_gdbarch_init): Ditto.
217 * v850-tdep.c (v850_gdbarch_init): Ditto.
218 * vax-tdep.c (vax_gdbarch_init): Ditto.
219 * sh-tdep.c (sh_gdbarch_init): Ditto.
220 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
221 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
222 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
223 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
224 * i386-tdep.c (i386_gdbarch_init): Ditto.
225 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
226 * cris-tdep.c (cris_gdbarch_init): Ditto.
227 * avr-tdep.c (avr_gdbarch_init): Ditto.
228 * arm-tdep.c (arm_gdbarch_init): Ditto.
229 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
230 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
231
6604731b
DJ
2322002-12-10 Daniel Jacobowitz <drow@mvista.com>
233
234 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
235 CHILD_FOLLOW_FORK.
236 * hppah-nat.c (saved_vfork_pid): Add.
237 (child_post_follow_vfork): Remove.
238 (child_follow_fork): New function.
239 (child_wait): Call detach_breakpoints after receiving the child vfork.
240 Call child_resume directly instead of going through resume ().
241 Make sure we have the exec before reporting the vfork.
242 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
243 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
244 (follow_fork): New function. Call target_follow_fork.
245 (follow_inferior_reset_breakpoints): New function broken out from
246 old follow_inferior_fork.
247 (resume): Remove hack to follow exec after vfork.
248 * inftarg.c (child_post_follow_vfork): Remove.
249 (child_follow_fork): New function.
250 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
251 * target.c (cleanup_target): Replace to_post_follow_vfork with
252 to_follow_fork.
253 (update_current_target): Likewise.
254 (setup_target_debug): Likewise.
255 (debug_to_post_follow_vfork): Remove.
256 (debug_to_follow_fork): New function.
257 * target.h (struct target_ops): Replace to_post_folow_vfork with
258 to_follow_fork.
259 (child_post_follow_vfork): Remove prototype.
260 (child_follow_fork): Add prototype.
261 (target_post_follow_vfork): Remove macro.
262 (target_follow_fork): Add macro.
263
7d2830a3
DJ
2642002-12-10 Daniel Jacobowitz <drow@mvista.com>
265
266 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
267 (child_post_follow_vfork): Cancel pending exec event if we follow
268 the parent.
269 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
270 events have been processed. Return a fake TARGET_WAITKIND_EXECD
271 event at the following wait call if necessary.
272 * infrun.c (follow_vfork): Don't follow_exec here.
273 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
274 case about HP/UX 10.20. Remove code pushed down to
275 hppah-nat.c:child_wait.
276 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
277 vfork_in_flight is set.
278
2792002-12-10 Daniel Jacobowitz <drow@mvista.com>
8e7d2c16
DJ
280
281 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
282 for the parent's fork event.
283 * infrun.c (handle_inferior_event): Only expect one fork event.
284 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
285 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
286
50631d4f
AC
2872002-12-10 Andrew Cagney <ac131313@redhat.com>
288
bc124bd3
AC
289 * PROBLEMS: Delete reference to PR gdb/725.
290
50631d4f
AC
291 * MAINTAINERS (gdb.c++): Add David Carlton.
292
808013d1
DC
2932002-12-09 David Carlton <carlton@math.stanford.edu>
294
295 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
296 * cli/cli-cmds.c: Ditto.
297
31deffe5
AC
2982002-12-09 Andrew Cagney <cagney@redhat.com>
299
6cbda714
AC
300 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
301 function address in <>.
31deffe5
AC
302 * gdbarch.c: Re-generate.
303
2692ddb3
DC
3042002-12-09 David Carlton <carlton@math.stanford.edu>
305
306 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
307
f3c39e76
DC
3082002-12-09 David Carlton <carlton@math.stanford.edu>
309
310 * linespec.c (symtab_from_filename): New function.
311 (decode_line_1): Move code into symtab_from_filename.
312
1b84163e
KB
3132002-12-09 Kevin Buettner <kevinb@redhat.com>
314
315 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
316
bdd78e62
AC
3172002-12-07 Andrew Cagney <ac131313@redhat.com>
318
319 * f-valprint.c (info_common_command): Use get_frame_pc.
320 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
321 * ax-gdb.c (agent_command): Ditto.
322 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
323 (rs6000_pop_frame): Ditto.
324 (rs6000_frameless_function_invocation): Ditto.
325 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
326 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
327 * macroscope.c (default_macro_scope): Ditto.
328 * stack.c (print_frame_info_base): Ditto.
329 (print_frame, frame_info, print_frame_label_vars): Ditto.
330 (return_command, func_command, get_frame_language): Ditto.
331 * infcmd.c (finish_command): Ditto.
332 * dummy-frame.c (cached_find_dummy_frame): Ditto.
333 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
334 (break_at_finish_at_depth_command_1): Ditto.
335 (break_at_finish_command_1): Ditto.
336 (until_break_command, get_catch_sals): Ditto.
337 * blockframe.c (func_frame_chain_valid): Ditto.
338 (frameless_look_for_prologue): Ditto.
339 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
340
408400e7
AC
3412002-12-08 Andrew Cagney <ac131313@redhat.com>
342
343 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
344 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
345
97f46953
AC
3462002-12-08 Andrew Cagney <ac131313@redhat.com>
347
348 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
349 to pure functions.
350 * gdbarch.h, gdbarch.c: Re-generate.
351 * frame.c (get_prev_frame): Explictly assign prev's pc with value
352 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
353
354 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
355 declaration to a function returning a CORE_ADDR.
356 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
357 * arch-utils.c (init_frame_pc_noop): Return the PC value.
358 (init_frame_pc_default): Ditto.
359 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
360 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
361 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
362 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
363 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
364 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
365
366 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
367 to init_frame_pc_noop.
368 (i386_interix_init_frame_pc): Delete function.
369 * z8k-tdep.c (init_frame_pc): Delete function.
370 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
371 (INIT_FRAME_PC_FIRST): Ditto.
372 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
373 (INIT_FRAME_PC_FIRST): Ditto.
374 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
375 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
376 init_frame_pc_noop.
377 (INIT_FRAME_PC_FIRST): Convert to an expression.
378 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
379
8b36eed8
AC
3802002-12-08 Andrew Cagney <ac131313@redhat.com>
381
382 * blockframe.c: Use get_frame_base instead of directly accessing
383 the `struct frame_info' member frame.
384 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
385 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
386
aeeccc89
EZ
3872002-12-08 Elena Zannoni <ezannoni@redhat.com>
388
389 * Makefile.in (readline_h): Define.
390 (completer.o): Depend on readline_h.
391 (corelow.o): Ditto.
392 (event-top.o): Ditto.
393 (exec.o): Ditto.
394 (solib.o): Ditto.
395 (source.o): Ditto.
396 (symfile.o): Ditto.
397 (symmisc.o): Ditto.
398 (top.o): Ditto.
399 (tracepoint.o): Ditto.
400 (utils.o): Ditto.
401 (cli-dump.o): Ditto.
402 (tui-hooks.o): Ditto.
403 (tuiWin.o): Ditto.
404
38017ce8
EZ
4052002-12-08 Elena Zannoni <ezannoni@redhat.com>
406
407 More cleanup from import of readline 4.3.
408 * completer.h (complete_line, readline_line_completion_function):
409 Update prototypes.
410 (line_completion_function): Removed, not used outside of completer.c.
411 * completer.c (readline_line_completion_function,
412 complete_function, line_completion_function): Use const for first
413 parameter.
414 (line_completion_function): Make static.
415 (filename_completer): filename_completion_function is now called
416 rl_filename_completion_function
417 * corelow.c: Include <readline/readline.h>.
418 * exec.c: Ditto.
419 * solib.c: Ditto.
420 * source.c: Ditto.
421 * symfile.c: Ditto.
422 * symmisc.c: Ditto.
423 * top.c (init_main): No need to coerce
424 readline_line_completion_function anymore.
425 * cli/cli-dump.c: Include <readline/readline.h>.
426
75e3c1f9
AC
4272002-12-08 Andrew Cagney <ac131313@redhat.com>
428
429 * stack.c (frame_info): Use get_prev_frame.
430 * blockframe.c (frame_address_in_block): Ditto.
431 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
432 (rs6000_frameless_function_invocation): Ditto.
433 (rs6000_frame_saved_pc): Ditto.
434 (rs6000_frame_chain): Ditto.
435 * arch-utils.c (init_frame_pc_default): Ditto.
436
0d2b8049
AC
4372002-12-08 Andrew Cagney <ac131313@redhat.com>
438
439 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
440 Delete redundant definition.
441
9255ee31
EZ
4422002-12-08 Elena Zannoni <ezannoni@redhat.com>
443
444 Import of readline 4.3:
445 * cli/cli-cmds.c: Include readline/tilde.h.
446 * cli/cli-setshow.c: Ditto.
447 * defs.h: Don't declare tilde_expand anymore, since readline
448 exports it.
449
3442dad6 4502002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
451
452 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
453 -Werror on this file.
454
52f87c51
AC
4552002-12-07 Andrew Cagney <ac131313@redhat.com>
456
457 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
458 the format name.
459 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
460 * gdbarch.c: Regenerate.
461
2ca6c561
AC
4622002-12-06 Andrew Cagney <ac131313@redhat.com>
463
464 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
465 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
466 provide a default value.
467 * gdbarch.h, gdbarch.c: Regenerate.
468 * frame.c (get_prev_frame): Update. Check
469 DEPRECATED_INIT_FRAME_PC_FIRST_P.
470 * s390-tdep.c (s390_gdbarch_init): Update.
471 * mips-tdep.c (mips_gdbarch_init): Update.
472 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
473 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
474 * alpha-tdep.c (alpha_gdbarch_init): Update.
475
e162d11b
EZ
4762002-12-06 Elena Zannoni <ezannoni@redhat.com>
477
478 * ia64-linux-nat.c: Include gdb_string.h.
479 * alpha-nat.c: Ditto.
2b298b5d
EZ
480 * ppc-linux-nat.c: Ditto.
481 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
482 Update dependencies.
e162d11b 483
aa0cd9c1
AC
4842002-12-05 Andrew Cagney <ac131313@redhat.com>
485
486 * gdbthread.h: Include "frame.h".
487 (struct thread_info): Replace step_frame_address with
488 step_frame_id.
489 * inferior.h: Include "frame.h".
490 (step_frame_id): Replace external variable step_frame_address.
491 * gdbthread.h (save_infrun_state): Replace step_frame_address
492 parameter with step_frame_id parameter.
493 (load_infrun_state): Ditto.
494 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
495 * infcmd.c (step_frame_id, step_1, step_once): Update.
496 * thread.c (load_infrun_state, save_infrun_state): Update.
497 * infrun.c (clear_proceed_status, save_inferior_status): Update.
498 (handle_inferior_event, step_over_function): Update.
499 (normal_stop, context_switch, restore_inferior_status): Update.
500 (struct inferior_status): Replace step_frame_address with
501 step_frame_id.
502
a9a9bd0f
DC
5032002-12-05 David Carlton <carlton@math.stanford.edu>
504
505 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
506 DW_TAG_member as well as a declaration as being a C++ static data
507 member.
508 (read_structure_scope): Combine tests for DW_TAG_member and
509 DW_TAG_variable.
510
614b3b14
DC
5112002-12-05 David Carlton <carlton@math.stanford.edu>
512
513 * linespec.c (decode_compound): New function.
514 (decode_line_1): Move code into decode_compound.
515
e4051eeb
DC
5162002-12-05 David Carlton <carlton@math.stanford.edu>
517
518 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
519 argument.
520 (lookup_symbol_aux): Do the 'field_of_this' check before checking
521 the static block. See PR gdb/804.
522
f61e8913
DC
5232002-12-05 David Carlton <carlton@math.stanford.edu>
524
525 * symtab.c (lookup_symbol_aux_block): New function.
526 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
527
1e9f55d0
AC
5282002-12-05 Andrew Cagney <ac131313@redhat.com>
529
530 * gdbarch.sh: Dump the predicate function and macro values.
531 (read): Print error on standard error.
532 * gdbarch.c: Regenerate.
533
d1973055
KB
5342002-12-04 Kevin Buettner <kevinb@redhat.com>
535
536 * Makefile.in (mips_tdep_h): Define.
537 (mips-tdep.o): Add mips_tdep_h to dependency list.
538 * mips-tdep.h: New file.
539 * mips-tdep.c (mips-tdep.h): Include.
540 (enum mips_abi): Move to mips-tdep.h.
541 (mips_abi): New function.
542
f1253c7b
DC
5432002-12-04 David Carlton <carlton@math.stanford.edu>
544
545 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
546
406bc4de
DC
5472002-12-04 David Carlton <carlton@math.stanford.edu>
548
549 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
550 function.
551 (lookup_symbol_aux_minsyms): New function.
552
2a3750c5
JB
5532002-12-04 J. Brobecker <brobecker@gnat.com>
554
555 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
556
961d8652
JB
5572002-12-04 J. Brobecker <brobecker@gnat.com>
558
559 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
560 which is an obsolete macro name.
561
38c52d5a
DJ
5622002-12-04 Daniel Jacobowitz <drow@mvista.com>
563
564 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
565 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
566
d8ef46f5
DJ
5672002-12-03 H.J. Lu (hjl@gnu.org)
568
569 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
570 (create_breakpoints): Make sure the addr_string field is not
571 NULL.
572
02ae7771
AC
5732002-12-03 Andrew Cagney <ac131313@redhat.com>
574
575 * sparc-nat.c (fetch_inferior_registers)
576 (store_inferior_registers): Add comment on problem of LWP vs
577 threads.
578
579 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
580 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
581 (lin_lwp_store_registers): Remove.
582 (init_lin_lwp_ops): Use fetch_inferior_registers
583 and store_inferior_registers directly.
584 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
585 (store_inferior_registers): Likewise.
586 Fix PR gdb/725.
587
7a424e99
AC
5882002-12-03 Andrew Cagney <ac131313@redhat.com>
589
590 * frame.h (get_frame_id): Convert to a function.
591 (null_frame_id, frame_id_p): Declare.
592 (frame_id_eq, frame_id_inner): Declare.
593 (frame_id_build): New function.
594 * frame.c (get_frame_id): Update. Use null_frame_id.
595 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
596 frame_id_inner.
597 (null_frame_id, frame_id_p): Define.
598 (frame_id_eq, frame_id_inner): Define.
599 (frame_id_build): New function.
600 * varobj.c (varobj_create): Update.
601 (varobj_update): Update.
602 * valops.c (value_assign): Update.
603 (new_root_variable): Update.
604 * infrun.c (save_inferior_status): Update.
605 * breakpoint.c (watch_command_1): Update.
606
891c7f5f
JB
6072002-12-03 J. Brobecker <brobecker@gnat.com>
608
609 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
610 (SNAP2): Likewise.
611
144da3c1
AC
6122002-12-03 Andrew Cagney <cagney@redhat.com>
613
46248966
AC
614 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
615 patch.
616
144da3c1
AC
617 * PROBLEMS: Mention PR gdb/725.
618
03c6228e
AS
6192002-12-03 Andreas Schwab <schwab@suse.de>
620
621 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
622
36e53c63
AF
6232002-12-02 Adam Fedor <fedor@gnu.org>
624 Klee Dienes <kdienes@apple.com>
625
626 * objc-lang.c (objc_printstr): Add width arg to match
627 printstr prototype.
628 (compare_selectors): Add 'const' to arg types.
629 (compare_classes): Likewise.
630 (find_imps): Cast msym pointer to avoid compiler warning.
631 (print_object_command): Validate the address before
632 passing it to the print routine.
633 (find_objc_msgcall_submethod): Change function argument to
634 return an int.
635 * objc-lang.h: Add 'extern' to all function declarations.
636 (value_nsstring): Add declaration.
637
504d5c7e
JB
6382002-12-02 J. Brobecker <brobecker@gnat.com>
639
640 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
641 Fixes a build failure on HP/UX.
642
643 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
644 failure on HP/UX.
645 (hpread_has_name): Advance declaration to avoid a compilation warning.
646 (pst_syms_count): Add missing variable type. By change, the compiler
647 was defaulting to int, which seems a good choice. Fixes a compilation
648 warning.
649 (pst_syms_size): Likewise.
650
59623e27
JB
6512002-12-02 J. Brobecker <brobecker@gnat.com>
652
653 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
654 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
655 later to set the proper gdbarch methods depending on the osabi.
656 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
657
a09a320d
JB
6582002-12-02 J. Brobecker <brobecker@gnat.com>
659
660 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
661 * osabi.c (gdb_osabi_name): Add strings images for the two new
662 enum values.
663 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
664
8a81a99e
AC
6652002-12-02 Andrew Cagney <ac131313@redhat.com>
666
667 * MAINTAINERS (Java): Global maintainers are responible for Java.
668 (Past Maintainers): Mention both Anthony Green and Per Bothner as
669 part Java maintainers.
670
7af35dad
JB
6712002-12-02 J. Brobecker <brobecker@gnat.com>
672
673 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
674 Fixes a compilation failure on AiX.
675
f4ede9bc
JB
6762002-12-02 J. Brobecker <brobecker@gnat.com>
677
678 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
679 why aix-thread.o is not listed.
680
ae45cd16
AC
6812002-12-01 Andrew Cagney <ac131313@redhat.com>
682
683 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
684 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
685 * gdbarch.h, gdbarch.c: Re-generate.
686 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
687 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
688 * config/pa/tm-hppa.h, frame.h: Update.
689 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
690 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
691 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
692 * cris-tdep.c, alpha-tdep.c: Update.
693 * frame.c (set_unwind_by_pc, create_new_frame): Use either
694 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
695 (get_prev_frame): Ditto.
696
020cc13c
AC
6972002-11-30 Andrew Cagney <cagney@redhat.com>
698
699 * exec.c (xfer_memory): Replace boolean with int.
700 * p-exp.y: Use 0 instead of false.
701 * corelow.c (gdb_check_format): Change return type to int from
702 boolean.
703 * utils.c: Don't include <curses.h> or <term.h> first.
704
1d9b2aa8
SC
7052002-11-29 Stephane Carrez <stcarrez@nerim.fr>
706
707 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
708 (m68hc11_register_byte): Remove.
709 (m68hc11_gdbarch_init): Don't set the above.
710
a193e397
AC
7112002-11-29 Andrew Cagney <cagney@redhat.com>
712
713 * remote-mips.c (mips_initialize): Force a selected frame rebuild
714 by calling get_selected_frame.
715 * ocd.c (ocd_start_remote): Use get_selected frame instead of
716 set_current_frame, create_new_frame, select_frame and
717 get_current_frame.
718 * remote-e7000.c (e7000_start_remote): Ditto.
719 * remote-mips.c (common_open): Ditto
720 * remote-rdp.c (remote_rdp_open): Ditto.
721
b5fc49aa
AS
7222002-11-29 Andreas Schwab <schwab@suse.de>
723
724 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
725 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
726 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
727 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
728 read_memory_unsigned_integer instead of read_memory_integer when
729 dealing with addresses and instruction opcodes.
730 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
731 (m68k_linux_frame_saved_pc): Likewise.
732
6e7f8b9c
AC
7332002-11-29 Andrew Cagney <ac131313@redhat.com>
734
735 * stack.c (selected_frame, select_frame): Move from here ...
736 * frame.c (selected_frame, select_frame): ... to here. Include
737 "language.h".
738 * Makefile.in (frame.o): Update dependencies.
739 * frame.c (get_selected_frame): New function.
740 * frame.h (get_selected_frame): Declare.
741 (deprecated_selected_frame): Rename selected_frame.
742 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
743 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
744 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
745 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
746 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
747 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
748 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
749 * z8k-tdep.c, cli/cli-cmds.c: Update.
750
805e2818
AC
7512002-11-29 Andrew Cagney <ac131313@redhat.com>
752
753 * frame.h (get_selected_block): Add comments.
754
1058bca7
AC
7552002-11-28 Andrew Cagney <ac131313@redhat.com>
756
757 * frame.c (pc_notcurrent): New function.
758 (find_frame_sal): New function.
759 * frame.h (find_frame_sal): Declare.
760 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
761 * stack.c (print_frame_info_base): Use find_frame_sal instead of
762 find_pc_line.
1058bca7
AC
763 (frame_info): Ditto.
764 * ada-lang.c (find_printable_frame): Ditto.
765
d92419e5
JB
7662002-11-28 J. Brobecker <brobecker@gnat.com>
767
768 * configure.in: Check that the pthdebug library is recent enough
769 before enabling thread support on native AiX.
770 * configure: Regenerate.
771
772 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
773 from the list of object files as it is now appended by configure
774 if thread support is enabled.
775 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
776 if thread support is enabled.
777
8c69fc49
AC
7782002-11-28 Andrew Cagney <cagney@redhat.com>
779
780 * stack.c (get_selected_block): In-line get_current_block.
781 * frame.h (get_current_block): Delete declaration.
782 * blockframe.c (get_current_block): Delete function.
783
07555a72
AC
7842002-11-28 Andrew Cagney <ac131313@redhat.com>
785
786 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
787 USE_GENERIC_DUMMY_FRAMES.
788 * gdbarch.h, gdbarch.c: Regenerate.
789 * valops.c, frame.c: Update.
790 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
791 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
792 * config/pa/tm-hppa.h, blockframe.c: Update.
793 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
794 * m68k-tdep.c, alpha-tdep.c: Ditto.
795
796 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
797 * mips-tdep.c: Ditto.
798
b99fa2d2
AC
7992002-11-27 Andrew Cagney <ac131313@redhat.com>
800
801 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
802 (USE_GENERIC_DUMMY_FRAMES): Default to true.
803 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
804 * gdbarch.c, gdbarch.h: Re-generate.
805 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
806 (CALL_DUMMY_LOCATION): Delete macro definition.
807 (PC_IN_CALL_DUMMY): Delete macro definitions.
808
809 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
810 default is already generic_pc_in_call_dummy.
811 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
812 * v850-tdep.c (v850_gdbarch_init): Ditto.
813 * sh-tdep.c (sh_gdbarch_init): Ditto.
814 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
815 * mips-tdep.c (mips_gdbarch_init): Ditto.
816 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
817 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
818 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
819 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
820 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
821 * avr-tdep.c (avr_gdbarch_init): Ditto.
822
823 * arm-tdep.c (arm_gdbarch_init): Do not set
824 use_generic_dummy_frames, default is already 1.
825 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
826 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
827 * v850-tdep.c (v850_gdbarch_init): Ditto.
828 * sh-tdep.c (sh_gdbarch_init): Ditto.
829 * s390-tdep.c (s390_gdbarch_init): Ditto.
830 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
831 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
832 * mips-tdep.c (mips_gdbarch_init): Ditto.
833 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
834 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
835 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
836 * i386-tdep.c (i386_gdbarch_init): Ditto.
837 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
838 * frv-tdep.c (frv_gdbarch_init): Ditto.
839 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
840 * cris-tdep.c (cris_gdbarch_init): Ditto.
841 * avr-tdep.c (avr_gdbarch_init): Ditto.
842
843 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
844 call_dummy_location, default is already AT_ENTRY_POINT.
845 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
846 * v850-tdep.c (v850_gdbarch_init): Ditto.
847 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
848 * sh-tdep.c (sh_gdbarch_init): Ditto.
849 * s390-tdep.c (s390_gdbarch_init): Ditto.
850 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
851 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
852 * mips-tdep.c (mips_gdbarch_init): Ditto.
853 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
854 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
855 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
856 * i386-tdep.c (i386_gdbarch_init): Ditto.
857 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
858 * frv-tdep.c (frv_gdbarch_init): Ditto.
859 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
860 * cris-tdep.c (cris_gdbarch_init): Ditto.
861 * avr-tdep.c (avr_gdbarch_init): Ditto.
862 * arm-tdep.c (arm_gdbarch_init): Ditto.
863 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
864
abc0af47
AC
8652002-11-28 Andrew Cagney <cagney@redhat.com>
866
867 * frame.h: Update comments on set_current_frame, create_new_frame,
868 flush_cached_frames, reinit_frame_cache, select_frame and
869 selected_frame.
870
ed5cedc5
AC
8712002-11-27 Andrew Cagney <cagney@redhat.com>
872
873 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
874 deprecated pc_in_call_dummy function.
875 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
876 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
877 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
878 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
879 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
880
b2a1bd4f
MH
8812002-11-26 Martin M. Hunt <hunt@redhat.com>
882
883 * Makefile.in: Remove Tix dependencies.
884 * acinclude.m4: Ditto.
885 * aclocal.m4: Ditto.
886 * configure.in: Ditto.
887 * configure: Regenerated.
888
f09cffaa
AC
8892002-11-26 Andrew Cagney <ac131313@redhat.com>
890
891 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
892 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
893 * gdbarch.c: Re-generate.
894
e92b0cc9
AC
8952002-11-26 Andrew Cagney <ac131313@redhat.com>
896
897 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
898 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
899 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
900 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
901 pc_in_call_dummy_at_entry_point.
902 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
903 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
904 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
905 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
906 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
907 pc_in_call_dummy_on_stack.
908 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
909 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
910 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
911 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
912 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
913
b4b88177
AC
9142002-11-26 Andrew Cagney <ac131313@redhat.com>
915
916 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
917 pc_in_call_dummy_before_text_end
918 (deprecated_pc_in_call_dummy_after_text_end): Rename
919 pc_in_call_dummy_after_text_end.
920 (deprecated_pc_in_call_dummy_on_stack): Rename
921 pc_in_call_dummy_on_stack.
922 (deprecated_pc_in_call_dummy_at_entry_point): Rename
923 pc_in_call_dummy_at_entry_point.
924 * m68k-tdep.c (m68k_gdbarch_init): Update.
925 * s390-tdep.c (s390_gdbarch_init): Update.
926 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
927 * vax-tdep.c (vax_gdbarch_init): Update.
928 * sparc-tdep.c (sparc_gdbarch_init): Update.
929 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
930 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
931 * i386-tdep.c (i386_gdbarch_init): Update.
932 * frv-tdep.c (frv_gdbarch_init): Update.
933 * cris-tdep.c (cris_gdbarch_init): Update.
934 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
935 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
936 (deprecated_pc_in_call_dummy_after_text_end)
937 (deprecated_pc_in_call_dummy_on_stack)
938 (deprecated_pc_in_call_dummy_at_entry_point): Update.
939 * alpha-tdep.c (alpha_gdbarch_init): Update.
940
eb784848
DJ
9412002-11-25 Daniel Jacobowitz <drow@mvista.com>
942
943 * acconfig.h (HAVE_PREAD64): Add.
944 * configure.in: Check for pread64.
945 * config.in: Regenerated.
946 * configure: Regenerated.
947 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
948 * linux-proc.c (linux_proc_xfer_memory): New function.
949 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
950
933c6fe4
DC
9512002-11-25 David Carlton <carlton@math.stanford.edu>
952
953 * dwarf2read.c (scan_partial_symbols): Descend into namespace
954 pdi's with no name.
955
158a8022
AC
9562002-11-25 Andrew Cagney <ac131313@redhat.com>
957
958 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
959 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
960
481d0f41
JB
9612002-11-25 Jim Blandy <jimb@redhat.com>
962
e8289572
JB
963 * symfile.c (init_objfile_sect_indices): New function.
964 (default_symfile_offsets): Move the section-index-initializing
965 stuff into init_objfile_sect_indices, and call that.
966
b29c9944
JB
967 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
968 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
969
13de58df
JB
970 * symfile.c (syms_from_objfile): Adjust indentation.
971
481d0f41
JB
972 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
973 || info_verbose isn't true.
974
7d6a26a7
AC
9752002-11-24 Andrew Cagney <ac131313@redhat.com>
976
977 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
978 default to get_frame_base.
979 * gdbarch.h, gdbarch.c: Regenerate.
980 * arch-utils.c (default_frame_address): Delete function.
981 * arch-utils.h (default_frame_address): Delete declaration
982
6abe1021
PM
9832002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
984
985 * varobj.c (find_frame_addr_in_frame_chain):
986 Use get_frame_base instead of FRAME_FP,
987 obvious fix.
988
c193f6ac
AC
9892002-11-19 Andrew Cagney <ac131313@redhat.com>
990
991 * frame.h (FRAME_FP): Delete macro.
992 (get_frame_base): New function declaration.
993 * frame.c (get_frame_base): New function.
994 (get_frame_id): Use ->frame.
995 (frame_find_by_id): Rewrite to use get_frame_id.
996 * blockframe.c: Use get_frame_base instead of FRAME_FP.
997 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
998 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
999 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1000 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1001 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1002 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1003
e5d2af14
AC
10042002-11-24 Andrew Cagney <ac131313@redhat.com>
1005
1006 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1007
931d12c6
AC
10082002-11-24 Andrew Cagney <ac131313@redhat.com>
1009
1010 * frame.c (set_unwind_by_pc): Revert change below, use
1011 PC_IN_CALL_DUMMY.
1012 (get_prev_frame): Ditto.
1013
5e0f933e
AC
10142002-11-24 Andrew Cagney <ac131313@redhat.com>
1015
1016 * dummy-frame.c (pc_in_dummy_frame): New function.
1017 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1018 (find_dummy_frame): Update comment.
1019 (generic_pop_current_frame): Use get_frame_type.
1020 * dummy-frame.h (pc_in_dummy_frame): Declare.
1021 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1022 (create_new_frame): Use pc_in_dummy_frame.
1023 (get_prev_frame): Use pc_in_dummy_frame.
1024 (frame_saved_regs_register_unwind): Use get_prev_frame.
1025 (deprecated_generic_get_saved_register): Use get_prev_frame.
1026
7d8547c9
AC
10272002-11-23 Andrew Cagney <ac131313@redhat.com>
1028
1029 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1030 from here ...
1031 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1032 (varobj_create): Note that frame ID should be used.
1033 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1034
0225421b
AC
10352002-11-23 Andrew Cagney <ac131313@redhat.com>
1036
1037 * breakpoint.c: Include "gdb_assert.h".
1038 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1039 not being used.
1040 * Makefile.in (breakpoint.o): Update dependencies.
1041 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1042 deprecated_frame_in_dummy.
1043 * stack.c (print_frame_info_base): Ditto.
1044 (frame_info): Ditto.
1045 (print_frame_info_base): Ditto. Delete dead code.
1046
32eeb91a
AS
10472002-11-23 Andreas Schwab <schwab@suse.de>
1048
1049 * Makefile.in (m68k_tdep_h): Define.
1050 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1051 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1052 * m68k-tdep.c: Move register number enum ...
1053 * m68k-tdep.h: ... to this new file and rename the constants from
1054 E_* to M68K_*. All uses changed.
1055 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1056 * abug-rom.c: Include "m68k-tdep.h". Use
1057 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1058 * cpu32bug-rom.c: Likewise.
1059 * dbug-rom.c: Likewise.
1060 * m68k-tdep.c: Likewise.
1061 * m68klinux-nat.c: Likewise.
1062 * remote-est.c: Likewise.
1063 * rom68k-rom.c: Likewise.
1064 * config/m68k/tm-linux.h: Likewise.
1065
9648bac8
AC
10662002-11-23 Andrew Cagney <ac131313@redhat.com>
1067
1068 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1069 dummy frame initialization code.
1070 * mips-tdep.c (mips_gdbarch_init): Ditto.
1071
91a175b3
CF
10722002-11-22 Christopher Faylor <cgf@redhat.com>
1073
1074 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1075 attach will hang.
1076
f4ded5b1
AC
10772002-11-22 Andrew Cagney <ac131313@redhat.com>
1078
1079 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1080 to default_frame_address.
1081 * gdbarch.h, gdbarch.c: Re-generate.
1082
1083 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1084 or frame_locals_address to default_frame_address.
1085 * m68k-tdep.c (m68k_gdbarch_init): Update.
1086 * i386-tdep.c (i386_gdbarch_init): Update.
1087 * frv-tdep.c (frv_gdbarch_init): Update.
1088 * sh-tdep.c (sh_gdbarch_init): Update.
1089 * v850-tdep.c (v850_gdbarch_init): Update.
1090 * sparc-tdep.c (sparc_gdbarch_init): Update.
1091 * mips-tdep.c (mips_gdbarch_init): Update.
1092 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1093 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1094 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1095
1096 * cris-tdep.c (cris_frame_args_address): Delete function.
1097 (cris_frame_locals_address): Delete function.
1098 (cris_gdbarch_init): Do not set frame_args_address or
1099 frame_locals_address.
1100
f7c1e0f3
MS
11012002-11-22 Michael Snyder <msnyder@redhat.com>
1102
1103 * thread-db.c (thread_db_load): Tell the user what's going on
1104 if dlopen fails on libthread_db.
1105
03dac896
AS
11062002-11-23 Andreas Schwab <schwab@suse.de>
1107
1108 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1109 invariant return values.
1110
7a67d0fe
AS
11112002-11-22 Andreas Schwab <schwab@suse.de>
1112
1113 * valops.c (value_slice): Move declaration of `offset' to avoid
1114 warning.
1115
5633f842
CF
11162002-11-22 Christopher Faylor <cgf@redhat.com>
1117
1118 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1119 (struct so_stuff): Add end_addr field.
1120 (register_loaded_dll): Calculate and store end address of loaded dll.
1121 (solib_address): New function.
1122 (child_solib_loaded_library_pathname): Pass carefully constructed
1123 section info to safe_symbol_file_add rather than ignoring it.
1124 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1125 DLL is loaded.
1126 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1127 (child_create_inferior): Fix a compiler warning.
1128 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1129 (solib_address): Declare new function.
1130
d85fe7f7
AS
11312002-11-22 Andreas Schwab <schwab@suse.de>
1132
1133 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1134 and FPS registers.
1135
8308e54c
DJ
11362002-11-21 Daniel Jacobowitz <drow@mvista.com>
1137
1138 * maint.c (_initialize_maint_cmds): Fix typo. From
1139 Francesco Potorti` <pot@gnu.org>.
1140
8997bd5e
AC
11412002-11-21 Andrew Cagney <cagney@redhat.com>
1142
1143 * mips-tdep.c (mips_dump_tdep): Delete references to
1144 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1145 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1146 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1147 * printcmd.c (build_address_symbolic): Delete calls to
1148 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1149 (address_info): Ditto.
1150 Fix PR gdb/773.
1151
4e87b832
KD
11522002-11-19 Klee Dienes <kdienes@apple.com>
1153 Adam Fedor <fedor@gnu.org>
1154
1155 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1156 the ability to explicitly specify the quote characters and word
1157 break characters; if NULL is specified for either, use the old
1158 behavior of using the characters used by the completer.
1159 (skip_chars): New function. Convenience wrapper around
1160 skip_quoted_chars to provide the original skip_chars behavior.
1161 * completer.h (skip_quoted_chars): Add prototype.
1162
9ba8d803
AC
11632002-11-19 Andrew Cagney <ac131313@redhat.com>
1164
1165 Problems reported by Paul Eggert.
1166 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1167
0a595803
AS
11682002-11-19 Andreas Schwab <schwab@suse.de>
1169
1170 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1171 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1172 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1173 (m68k_linux_frame_saved_pc): Move to ...
1174 * m68klinux-tdep.c: ... here. New file.
1175 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1176 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1177
e8afa4d7
AF
11782002-11-19 Adam Fedor <fedor@gnu.org>
1179
1180 * objc-exp.y: Revert to old skip_quoted usage.
1181
a76c9d72
AF
11822002-11-19 Adam Fedor <fedor@gnu.org>
1183
1184 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1185 (objc_lang_h): Define.
1186 (YYFILES): Add objc-exp.tab.c.
1187 (local-maintainer-clean): Remove objc-exp.tab.c.
1188 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1189
fd0e9d45
PM
11902002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1191
1192 * p-exp.y (typecast rule): Add automatic dereference of
1193 pascal classes if needed.
1194 (THIS): Set current_type.
1195 Automatically dereference pascal classes.
1196 (typebase rule): Add ^typebase recognition.
1197
82eeeb94
AF
11982002-11-18 Adam Fedor <fedor@gnu.org>
1199
1200 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1201 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1202 (op_name): Handle OP_OBJC_SELF.
1203 * Makefile.in (expprint.o): Add additional depends.
1204
646df18d
AF
12052002-11-18 Adam Fedor <fedor@gnu.org>
1206
1207 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1208 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1209 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1210 * objc-exp.y: Likewise.
1211
379b85df
AF
12122002-11-18 Adam Fedor <fedor@gnu.org>
1213
1214 * gdb/parser-defs.h: (struct objc_class_str): New structure
1215 for parsing ObjC classes.
1216
85cf597a
AC
12172002-11-18 Andrew Cagney <ac131313@redhat.com>
1218
1219 * stack.c (frame_relative_level): Copy function from here ...
1220 * frame.c (frame_relative_level): ...to here.
1221
5a203e44
AC
12222002-11-18 Andrew Cagney <ac131313@redhat.com>
1223
1224 * frame.h (enum frame_type): Define.
1225 (get_frame_type): Declare.
1226 (struct frame_info): Add field `type'. Delete field
1227 signal_handler_caller.
1228 (deprecated_set_frame_signal_handler_caller): Declare.
1229 * frame.c (get_frame_type): New function.
1230 (deprecated_set_frame_type): New function.
1231 (create_new_frame): Set the frame's type.
1232 (get_prev_frame): Similar.
1233 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1234 * s390-tdep.c: Ditto.
1235 * m68klinux-nat.c: Ditto.
1236 * ns32k-tdep.c: Ditto.
1237 * x86-64-linux-tdep.c: Ditto.
1238 * vax-tdep.c: Ditto.
1239 * rs6000-tdep.c: Ditto.
1240 * ppc-linux-tdep.c: Ditto.
1241 * i386-interix-tdep.c: Ditto.
1242 * mips-tdep.c: Ditto.
1243 * m68k-tdep.c: Ditto.
1244 * hppa-tdep.c: Ditto.
1245 * ia64-tdep.c: Ditto.
1246 * cris-tdep.c: Ditto.
1247 * arm-tdep.c: Ditto.
1248 * alpha-tdep.c: Ditto.
1249 * i386-tdep.c: Ditto.
1250 * stack.c: Ditto.
1251 * ada-lang.c: Ditto.
1252 * blockframe.c: Update.
1253 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1254 deprecated_set_frame_type instead of signal_handler_caller.
1255 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1256 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1257 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1258
bf4ae8b2
KD
12592002-11-18 Klee Dienes <kdienes@apple.com>
1260
1261 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1262
a672ef13
KD
12632002-11-18 Klee Dienes <kdienes@apple.com>
1264
1265 * buildsym.c (pop_context): Add comment.
1266
0c5e171a
KD
12672002-11-18 Klee Dienes <kdienes@apple.com>
1268
1269 * buildsym.h (pop_context): Convert to function, defined in
1270 buildsym.c.
1271 * buildsym.c: Include gdb_assert.h.
1272 (pop_context): Implement as C function. Add check for stack
1273 underflow.
1274 * dbxread.c (process_one_symbol): Complain and stop processing
1275 that symbol if we are already at the top of the context stack for
1276 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1277 when processing N_RBRAC.
1278
8a1f4c4c
DJ
12792002-11-16 Daniel Jacobowitz <drow@mvista.com>
1280
1281 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1282 define.
1283 (struct target_waitstatus): Add opaque definition.
1284 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1285 * exec.c (init_exec_ops): Likewise.
1286 * fork-child.c (clone_and_follow_inferior): Remove.
1287 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1288 * inferior.h (clone_and_follow_inferior): Remove prototype.
1289 * infrun.c (follow_fork_mode_both): Remove.
1290 (follow_fork_mode_kind_names): Remove commented out "both".
1291 (follow_inferior_fork): Remove follow_fork_mode_both support.
1292 * inftarg.c (child_clone_and_follow_inferior): Remove.
1293 (child_post_follow_inferior_by_clone): Remove.
1294 (init_child_ops): Don't set to_clone_and_follow_inferior
1295 or to_post_follow_inferior_by_clone.
1296 * target.c (default_clone_and_follow_inferior): Remove.
1297 (cleanup_target): Don't set to_clone_and_follow_inferior
1298 or to_post_follow_inferior_by_clone.
1299 (find_default_clone_and_follow_inferior): Remove.
1300 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1301 (debug_to_clone_and_follow_inferior): Remove.
1302 (debug_to_post_follow_inferior_by_clone): Remove.
1303 (setup_target_debug): Don't set to_clone_and_follow_inferior
1304 or to_post_follow_inferior_by_clone.
1305 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1306 and to_post_follow_inferior_by_clone.
1307 (child_clone_and_follow_inferior): Remove prototype.
1308 (child_post_follow_inferior_by_clone): Remove prototype.
1309 (target_clone_and_follow_inferior): Remove macro.
1310 (target_post_follow_inferior_by_clone): Remove macro.
1311 (find_default_clone_and_follow_inferior): Remove prototype.
1312
47932f85
DJ
13132002-11-16 Daniel Jacobowitz <drow@mvista.com>
1314
1315 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1316 inferior_has_vforked, and inferior_has_execd instead of
1317 target_has_forked, target_has_vforked, and target_has_execd.
1318 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1319 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1320 (CHILD_WAIT): Define.
1321 (child_wait): Add prototype.
1322 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1323 Add prototype.
1324 (hpux_has_vforked): Likewise, from child_has_vforked.
1325 (hpux_has_execd): Likewise, from child_has_execd.
1326 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1327 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1328 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1329 and hpux_has_syscall_event instead of the target hooks.
1330 * infrun.c (inferior_has_forked, inferior_has_vforked)
1331 (inferior_has_execd): New functions.
1332 * inftarg.c (not_same_real_pid): Remove.
1333 (child_wait): Remove references to not_same_real_pid,
1334 target_has_forked, target_has_vforked, target_has_execd,
1335 and target_has_syscall_event.
1336 (child_has_forked, child_has_vforked, child_has_execd)
1337 (child_has_syscall_event): Remove.
1338 (init_child_ops): Remove references to child_has_forked,
1339 child_has_vforked, child_has_execd, and child_has_syscall_event.
1340 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1341 (hpux_has_vforked): Likewise, from child_has_vforked.
1342 (hpux_has_execd): Likewise, from child_has_execd.
1343 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1344 * target.c (cleanup_target): Remove references to
1345 to_has_forked, to_has_vforked, to_has_execd, and
1346 to_has_syscall_event.
1347 (update_current_target): Likewise.
1348 (setup_target_debug): Likewise.
1349 (debug_to_has_forked): Remove.
1350 (debug_to_has_vforked): Remove.
1351 (debug_to_has_execd): Remove.
1352 (debug_to_has_syscall_event): Remove.
1353 * target.h (struct target_ops): Remove to_has_forked.
1354 to_has_vforked, to_has_execd, and to_has_syscall_event.
1355 (child_has_forked, child_has_vforked, child_has_execd)
1356 (child_has_syscall_event): Remove prototypes.
1357 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1358 prototypes.
1359 (target_has_forked, target_has_vforked, target_has_execd)
1360 (target_has_syscall_event): Remove macros.
1361
4088142a
DJ
13622002-11-16 Daniel Jacobowitz <drow@mvista.com>
1363
1364 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1365 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1366 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1367 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1368 * target.c (cleanup_target): Remove reference to
1369 to_can_follow_vfork_prior_to_exec.
1370 (update_current_target): Likewise.
1371 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1372 (setup_target_debug): Remove reference to
1373 to_can_follow_vfork_prior_to_exec.
1374 * target.h (struct target_ops): Remove
1375 to_can_follow_vfork_prior_to_exec.
1376 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1377 (target_can_follow_vfork_prior_to_exec): Remove definition.
1378 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1379 define.
1380 * infrun.c (follow_vfork_when_exec): Remove.
1381 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1382 (follow_exec): Likewise.
1383 (handle_inferior_event): Likewise.
1384 (keep_going): Likewise.
1385
18cde8d5
AC
13862002-11-15 Andrew Cagney <cagney@redhat.com>
1387
1388 * frame.c (generic_unwind_get_saved_register): Make static.
1389 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1390 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1391 defaults to generic_unwind_get_saved_register.
1392 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1393 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1394 * frv-tdep.c (frv_gdbarch_init): Ditto.
1395 * i386-tdep.c (i386_gdbarch_init): Ditto.
1396 * s390-tdep.c (s390_gdbarch_init): Ditto.
1397 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1398 * v850-tdep.c (v850_gdbarch_init): Ditto.
1399 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1400 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1401 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1402
a6b063af
AC
14032002-11-15 Andrew Cagney <cagney@redhat.com>
1404
1405 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1406 i386-tdep.c.
1407
f407986f
AC
14082002-11-15 Andrew Cagney <cagney@redhat.com>
1409
1410 * frame.h (sigtramp_saved_pc): Delete declaration.
1411 * blockframe.c (sigtramp_saved_pc): Delete function.
1412 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1413 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1414 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1415 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1416
f18c5a73
AC
14172002-11-15 Andrew Cagney <ac131313@redhat.com>
1418
1419 * frame.c (frame_pc_unwind): New function.
1420 (frame_saved_regs_pc_unwind): New function.
1421 (frame_register_unwind): Pass unwind_cache instead of
1422 register_unwind_cache.
1423 (set_unwind_by_pc): Add unwind_pc parameter, set.
1424 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1425 (get_prev_frame): Ditto.
1426 * frame.h (frame_pc_unwind_ftype): Declare.
1427 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1428 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1429 (frame_pc_unwind): Declare.
1430 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1431 (struct dummy_frame): Add comment mentioning that values are for
1432 previous frame.
1433 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1434 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1435 (generic_file_frame_chain_valid): Ditto.
1436 * stack.c (frame_info): Ditto.
1437
d9285969 14382002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
1439
1440 * linespec.c (locate_first_half): New function.
1441 (decode_line_1): Move code into locate_first_half.
1442
d741b867
AC
14432002-11-15 Andrew Cagney <ac131313@redhat.com>
1444
1445 * complaints.h: Add comment explaining how to eliminate a
1446 deprecated_complain call.
24382c5c 1447 * complaints.h: Fix spelling errors.
d741b867 1448
82d03c99
DC
14492002-11-15 David Carlton <carlton@math.stanford.edu>
1450
1451 * printcmd.c: Remove #include "disasm.h".
1452
c97eb5d9
AC
14532002-11-14 Andrew Cagney <ac131313@redhat.com>
1454
1455 * frame.h: Move the most relevant interface functions to the start
1456 of the file.
1457
524d7c18
AC
14582002-11-14 Andrew Cagney <ac131313@redhat.com>
1459
1460 * regcache.h (deprecated_registers): Rename registers.
1461 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1462 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1463 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1464 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1465 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1466 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1467 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1468 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1469 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1470 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1471 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1472 * v850ice.c: Update.
1473
6411e720
AC
1474Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1475
1476 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1477 NULL buffer.
1478
73937e03
AC
14792002-11-13 Andrew Cagney <cagney@redhat.com>
1480
1481 * regcache.h (deprecated_read_register_bytes): Rename
1482 read_register_bytes.
1483 (deprecated_write_register_bytes): Rename write_register_bytes.
1484 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1485 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1486 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1487 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1488 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1489 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1490 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1491 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1492 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1493 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1494 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1495 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1496 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1497 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1498
fb0cd46e
JB
14992002-11-13 Jim Blandy <jimb@redhat.com>
1500
1501 * findvar.c (read_var_value): Doc fix.
1502
2d28509a
AC
15032002-11-13 Andrew Cagney <cagney@redhat.com>
1504
1505 * regcache.c (struct regcache): Replace passthough_p with
1506 readonly_p.
1507 (regcache_xmalloc): Initialize readonly_p.
1508 (build_regcache): Initialize readonly_p.
1509 (regcache_save): New function.
1510 (regcache_restore): New function.
1511 (regcache_cpy): Re-implement using regcache_save and
1512 regcache_restore.
1513 (regcache_raw_read): Update.
1514 (regcache_cooked_read): When a read-only cache, checked for cached
1515 pseudo register values.
1516 (regcache_raw_write): Assert that the cache is not read-only.
1517 Remove code handling a non-passthrough cache.
1518 * regcache.h (regcache_save): Declare.
1519 (regcache_restore): Declare.
1520
067df2e5
AC
15212002-11-13 Andrew Cagney <cagney@redhat.com>
1522
1523 * regcache.c (struct regcache_descr): Add fields
1524 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1525 (init_legacy_regcache_descr): Compute the size of a cooked
1526 register cache and then assign that to sizeof_raw_registers. Set
1527 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1528 (init_legacy_regcache_descr): Ditto.
1529
51b1fe4e
AC
15302002-11-13 Andrew Cagney <cagney@redhat.com>
1531
1532 * regcache.c (register_buffer): Move to near start of file, update
1533 description.
1534 (regcache_raw_read): Use.
1535 (regcache_raw_write): Use.
1536 (struct regcache): Rename raw_registers to registers and
1537 raw_register_valid_p to register_valid_p.
1538 (regcache_xmalloc): Update.
1539 (regcache_xfree): Update.
1540 (register_buffer): Update.
1541 (regcache_cpy): Update.
1542 (regcache_cpy_no_passthrough): Update.
1543 (regcache_valid_p): Update.
1544 (deprecated_grub_regcache_for_registers): Update.
1545 (deprecated_grub_regcache_for_register_valid): Update.
1546 (set_register_cached): Update.
1547 (regcache_raw_write): Update.
1548
80b4c677
PM
15492002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1550
1551 * p-exp.y (name_not_typename): Use copy_name to
1552 set current_type variable for fields of THIS.
1553
0f3fafde
DJ
15542002-11-12 Daniel Jacobowitz <drow@mvista.com>
1555
1556 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1557 * monitor.c (init_base_monitor_ops): Likewise.
1558 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1559 * remote-array.c (init_array_ops): Likewise.
1560 * remote-e7000.c (init_e7000_ops): Likewise.
1561 * remote-es.c (init_es1800_ops): Likewise.
1562 (init_es1800_child_ops): Likewise.
1563 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1564 * remote-sim.c (init_gdbsim_ops): Likewise.
1565 * remote-st.c (init_st2000_ops): Likewise.
1566 * sol-thread.c (init_sol_core_ops): Likewise.
1567 (init_sol_thread_ops): Likewise.
1568 * v850ice.c (init_850ice_ops): Likewise.
1569 * win32-nat.c (init_child_ops): Likewise.
1570 * wince.c (init_child_ops): Likewise.
1571
82c0260e
AC
15722002-11-12 Andrew Cagney <ac131313@redhat.com>
1573
1574 * utils.c (gdb_realpath): Make rp a constant pointer.
1575
70d35819
AC
15762002-11-12 Andrew Cagney <ac131313@redhat.com>
1577
1578 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1579 a constant buffer; cannonicalize_file_name(); realpath() with a
1580 pathconf() defined buffer, xstrdup().
1581
9835a8b0
AC
15822002-11-12 Andrew Cagney <ac131313@redhat.com>
1583
1584 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1585 to hang2.C; hang3.c to hang3.C.
1586
3f47be5c
EZ
15872002-11-11 Elena Zannoni <ezannoni@redhat.com>
1588
1589 * findvar.c (read_var_value): Reenable TLS code.
1590
15912002-11-11 Elena Zannoni <ezannoni@redhat.com>
1592 Jim Blandy <jimb@redhat.com>
1593
1594 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1595 * target.c (update_current_target): Add
1596 to_get_thread_local_address.
1597 * target.h (to_get_thread_local_address): Export.
1598 (target_get_thread_local_address): Define.
1599 (target_get_thread_local_address_p): Define.
1600 * thread-db.c: Include solib-svr4.h.
1601 (td_thr_tls_get_addr_p): Define.
1602 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1603 (thread_db_get_thread_local_address): New function.
1604 (init_thread_db_ops): Initialize to_get_thread_local_address.
1605 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1606 * configure: Regenerate.
1607 * config.in: Regenerate.
1608
636b1a6d
DC
16092002-11-11 David Carlton <carlton@math.stanford.edu>
1610
1611 * linespec.c (set_flags): New function.
1612 (decode_line_1): Move code into set_flags.
1613
44fe14ab
DC
16142002-11-11 David Carlton <carlton@math.stanford.edu>
1615
1616 * linespec.c (decode_line_1): Move chunks of code to separate
1617 functions.
1618 (initialize_defaults): New function.
1619 (decode_indirect): New function.
1620
e6f181f5
AC
16212002-11-11 Andrew Cagney <ac131313@redhat.com>
1622
8971b011
AC
1623 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1624 instead of void_code_ptr.
1625 (sigtramp_saved_pc): Ditto.
1626
e6f181f5
AC
1627 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1628 i386_fp_regnum_p.
1629
01ad7f36
DJ
16302002-11-10 Daniel Jacobowitz <drow@mvista.com>
1631
1632 * gdbtypes.h (struct main_type): Move artificial flag out of
1633 loc. New member of ``struct field'' named static_kind. Reduce
1634 overloaded meaning of bitsize.
1635 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1636 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1637 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1638
1639 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1640 new fields.
1641 (template_to_fixed_record_type, template_to_static_fixed_type)
1642 (to_record_with_fixed_variant_part): Likewise.
1643 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1644 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1645 * dwarfread.c (struct_type, enum_type): Likewise.
1646 * hpread.c (hpread_read_enum_type)
1647 (hpread_read_function_type, hpread_read_doc_function_type)
1648 (hpread_read_struct_type): Likewise.
1649 * mdebugread.c (parse_symbol): Likewise.
1650
bf1e52be
AC
16512002-11-10 Andrew Cagney <ac131313@redhat.com>
1652
1653 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1654 * stack.c (print_frame_info_base): Update.
1655 (print_frame_info_base, frame_info): Update.
1656 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1657 (sparc_frame_saved_pc): Update.
1658 * ada-lang.c (find_printable_frame): Update.
1659 * breakpoint.c (deprecated_frame_in_dummy): Update.
1660
ce556f85
MK
16612002-11-09 Mark Kettenis <kettenis@gnu.org>
1662
1663 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1664 defined.
1665 (regmap): Extend to cover all registers.
1666 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1667 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1668 definitions.
1669 (fetch_register, sore_register): Simplify.
1670 (old_fetch_inferior_registers, old_store_inferior_registers):
1671 Remove functions.
1672 (cannot_fetch_register, cannot_store_register): Change
1673 implementation to use regmap array to decide which registers
1674 cannot be fetched/stored. This removes $orig_eax from the
1675 registers that cannot be fetched/stored.
1676 (fetch_inferior_registers): Call fetch_register directly instead
1677 of calling old_fetch_inferior_registers.
1678 (store_inferior_registers): Call store_register directly instead
1679 of calling old_store_inferior_registers.
1680 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1681 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1682 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1683
932bb524
KD
16842002-11-09 Klee Dienes <kdienes@apple.com>
1685
1686 * i387-tdep.c (i387_supply_register): When called with NULL as a
1687 buffer, mark the register as not provided (to mirror the behavior
1688 of supply_register).
1689 (i387_supply_fxsave): Ditto.
1690 (i387_supply_fsave): Ditto (inherits the behavior from
1691 i387_supply_register).
1692
ebe68b27
KD
16932002-11-09 Klee Dienes <kdienes@apple.com>
1694
1695 * blockframe.c (sigtramp_saved_pc): Use
1696 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1697 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1698 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1699
15220c65
AC
17002002-11-09 Andrew Cagney <ac131313@redhat.com>
1701
1702 * frame.c (get_prev_frame): Test prev_p to identify a previously
1703 unwound frame. Initialize prev_p.
1704 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1705 comment.
1706
95adb866
AC
17072002-11-09 Andrew Cagney <ac131313@redhat.com>
1708
1709 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1710 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1711 more comments. Zap dead code.
1712
e71ecd70
MK
17132002-11-09 Mark Kettenis <kettenis@gnu.org>
1714
1715 * infcmd.c (print_vector_info, print_float_info): Move code that
1716 checks whether the target has any registers and whether there is a
1717 selected frame up, such that it is also used if a target provides
1718 multi-arch definitions of these functions.
1719
c525330d
AC
17202002-11-08 Andrew Cagney <ac131313@redhat.com>
1721
72bdd927
AC
1722 * Makefile.in (DESTDIR): Define.
1723 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1724 prefix.
1725
c525330d
AC
1726 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1727 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1728
38c968cf
AC
17292002-11-08 Andrew Cagney <ac131313@redhat.com>
1730
1731 * i386-linux-tdep.c: Include "reggroups.h".
1732 (i386_linux_register_reggroup_p): New function.
1733 (i386_linux_init_abi): Set register_reggroup_p to
1734 i386_linux_register_reggroup_p.
1735 * i386-tdep.h (i386_register_reggroup_p): Declare.
1736 * i386-tdep.c: Include "reggroups.h".
1737 (i386_init_reggroups): New function.
1738 (i386_add_reggroups): New function.
1739 (i386_register_reggroup_p): New function.
1740 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1741 (_initialize_i386_tdep): Call i386_init_reggroups.
1742 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1743 specific reggroups.
1744
19e33363
MK
17452002-11-09 Mark Kettenis <kettenis@gnu.org>
1746
371a6e84
MK
1747 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1748 request that's available in *BSD.
1749
94ba925a
MK
1750 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1751
19e33363
MK
1752 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1753 FDOFF_REGNUM.
1754
8779790c
AC
17552002-11-08 Andrew Cagney <ac131313@redhat.com>
1756
1757 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1758 * dummy-frame.c (find_dummy_frame): Rename
1759 generic_find_dummy_frame, make static. Return the dummy frame
1760 instead of the regcache.
1761 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1762 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1763 (dummy_frame_register_unwind): Rename
1764 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1765 * dummy-frame.h (dummy_frame_register_unwind): Rename
1766 generic_call_dummy_register_unwind.
1767
8674b74f
MK
17682002-11-08 Mark Kettenis <kettenis@gnu.org>
1769
1770 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1771 except the inclusion of "i386/tm-i386.h", to...
1772 * config/i386/nm-i386v42mp.h: ...here.
1773 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1774
4c1e7e9d
AC
17752002-11-08 Andrew Cagney <ac131313@redhat.com>
1776
1777 * Makefile.in (frame.o): Update dependencies.
1778 * blockframe.c (current_frame, frame_obstack_alloc)
1779 (frame_saved_regs_zalloc, get_current_frame)
1780 (set_current_frame, create_new_frame)
1781 (set_unwind_by_pc, get_next_frame)
1782 (flush_cached_frames, reinit_frame_cache)
1783 (frame_saved_regs_register_unwind)
1784 (deprecated_generic_get_saved_register)
1785 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1786 (_initialize_blockframe): Move frame code from here...
1787 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1788 "annotate.h" and "dummy-frame.h".
1789 (_initialize_frame): New function.
1790
921e78cf
JB
17912002-11-08 Jim Blandy <jimb@redhat.com>
1792
1793 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1794 when we finish a function a context.
1795 * buildsym.h (outermost_context_p): New macro.
1796 (Bug analyzed by David Edelsohn.)
1797
9c1412c1
AC
17982002-11-08 Andrew Cagney <ac131313@redhat.com>
1799
1800 * blockframe.c: Include "dummy-frame.h".
1801 (struct dummy_frame, dummy_frame_stack)
1802 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1803 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1804 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1805 (generic_save_call_dummy_addr, generic_pop_current_frame)
1806 (generic_pop_dummy_frame, generic_fix_call_dummy)
1807 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1808 dummy frame code from here...
1809 * dummy-frame.c: ...to here. New file.
1810 * dummy-frame.h: New file.
1811 (generic_call_dummy_register_unwind): Declare.
1812 (generic_find_dummy_frame): Declare.
1813 * Makefile.in (SFILES): Add dummy-frame.c.
1814 (dummy-frame.o): Specify dependencies.
1815 (dummy_frame_h): Define.
1816 (COMMON_OBS): Add dummy-frame.o.
1817 (blockframe.o): Update dependencies.
1818
208d8187
JB
18192002-11-08 Jim Blandy <jimb@redhat.com>
1820
1821 * dwarf2read.c (read_func_scope): Restore local_symbols and
1822 param_symbols after we finish the function context. (Based on a
1823 patch from David Edelsohn.)
1824
413dad4d
DC
18252002-11-08 David Carlton <carlton@math.stanford.edu>
1826
1827 * linespec.c (symbol_found): New function.
1828 (minsym_found): New function.
1829 (decode_line_1): Separate out some code into separate functions.
1830
5512c44a
JB
18312002-11-08 Joel Brobecker <brobecker@gnat.com>
1832
1833 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1834 the benefit of the interix target.
1835 * i386-tdep.h (i386_frameless_signal_p): Declare.
1836
1b33ef47
AC
18372002-11-08 Andrew Cagney <ac131313@redhat.com>
1838
1839 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1840 declaration that snuck in from change below.
1841
23a34459
AC
18422002-11-06 Andrew Cagney <cagney@redhat.com>
1843
1844 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1845 all callers.
1846 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1847 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1848 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1849 (i386_mxcsr_regnum_p): new function. Use instead of
1850 MXCSR_REGNUM_P.
1851 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1852 (i386_sse_regnum_p): Declare.
1853 (i386_mxcsr_regnum_p): Declare.
1854 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1855 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1856 (IS_FP_REGNUM): Update definition.
1857 (IS_FPU_CTRL_REGNUM): Update definition..
1858 (IS_SSE_REGNUM): Update definition..
1859 * i386v-nat.c (register_u_addr): Update.
1860 * go32-nat.c (fetch_register): Update.
1861 (store_register): Update.
1862
d709c020
JB
18632002-11-07 Joel Brobecker <brobecker@gnat.com>
1864
1865 Preparation work to convert the hppa targets to multiarch partial.
1866
1867 * hppa-tdep.c: Add new functions replacing macro bodies from
1868 config/pa/tm-hppa.h. These function will be used to initialize
1869 the gdbarch structure. Import some comments from tm-hppa.h,
1870 and place them where appropriate, to avoid loosing them when
1871 we cleanup this file.
1872 (hppa_reg_struct_has_addr): New function.
1873 (hppa_inner_than): New function.
1874 (hppa_stack_align): New function.
1875 (hppa_pc_requires_run_before_use): New function.
1876 (hppa_instruction_nullified): New function.
1877 (hppa_register_byte): New function.
1878 (hppa_register_virtual_type): New function.
1879 (hppa_store_struct_return): New function.
1880 (hppa_cannot_store_register): New function.
1881 (hppa_frame_args_address): New function.
1882 (hppa_frame_locals_address): New function.
1883 (hppa_smash_text_address): New function.
1884 (hppa_coerce_float_to_double): New function. Requires the inclusion
1885 of "language.h".
1886
1887 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1888
1889 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1890 gdbarch-eligible macro to a call to the new associated function
1891 created in hppa-tdep.c.
1892 (INNER_THAN): Likewise.
1893 (STACK_ALIGN): Likewise.
1894 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1895 (INSTRUCTION_NULLIFIED): Likewise.
1896 (REGISTER_BYTE): Likewise.
1897 (REGISTER_VIRTUAL_TYPE): Likewise.
1898 (STORE_STRUCT_RETURN): Likewise.
1899 (CANNOT_STORE_REGISTER): Likewise.
1900 (FRAME_ARGS_ADDRESS): Likewise.
1901 (FRAME_LOCALS_ADDRESS): Likewise.
1902 (SMASH_TEXT_ADDRESS): Likewise.
1903 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1904 (ABOUT_TO_RETURN): Delete, as no longer used.
1905
83c31e7d
FN
19062002-11-07 Fernando Nasser <fnasser@redhat.com>
1907
1908 * printcmd.c (disassemble_command): Remove obsolete function.
1909 (_initialize_printcmd): Do not create disassemble command here.
1910 * cli/cli-cmds.c (disassemble_command): New function. Implements
1911 disassemble command.
1912 (init_cli_cmds): Create disassemble command here instead.
1913
0ec30a36
AC
19142002-11-07 Andrew Cagney <ac131313@redhat.com>
1915
1916 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1917
e600bd34
AC
19182002-11-07 Andrew Cagney <ac131313@redhat.com>
1919
1920 * regcache.h (regcache_cooked_read_using_offset_hack)
1921 (regcache_cooked_write_using_offset_hack): Delete declarations.
1922 (register_changed): Delete declaration.
1923 * regcache.c (regcache_cooked_read_using_offset_hack)
1924 (regcache_cooked_write_using_offset_hack): Delete functions.
1925 (cooked_xfer_using_offset_hack): Delete function.
1926 (register_changed): Delete function.
1927
568f8739
JB
19282002-11-07 Jim Blandy <jimb@redhat.com>
1929
1930 * macroscope.c: #include "complaints.h".
1931 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1932 but not in the macro table.
1933 * Makefile.in (macroscope.o): Record dependency.
1934
b0718b7b
JB
19352002-11-07 Joel Brobecker <brobecker@gnat.com>
1936
1937 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1938
2b9e5f3f
AC
19392002-11-07 Andrew Cagney <ac131313@redhat.com>
1940
1941 * regcache.c (deprecated_registers_fetched): Update.
1942 * regcache.h (deprecated_registers_fetched): Rename
1943 registers_fetched.
1944 * remote-vxsparc.c (vx_read_register): Update.
1945 * remote-vxmips.c (vx_read_register): Update.
1946 * remote-vx68.c (vx_read_register): Update.
1947 * irix5-nat.c (fetch_core_registers): Update.
1948 * mipsm3-nat.c (fetch_inferior_registers): Update.
1949 * sun3-nat.c (fetch_inferior_registers): Update.
1950 * symm-nat.c (fetch_inferior_registers): Update.
1951 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1952 (fetch_core_registers): Update.
1953 (fetch_kcore_registers): Update.
1954 * mips-nat.c (fetch_inferior_registers): Update.
1955 * corelow.c (get_core_registers): Update.
1956 * a68v-nat.c (fetch_inferior_registers): Update.
1957
e6e68f1f
JB
19582002-11-06 Joel Brobecker <brobecker@gnat.com>
1959
1960 Put in place the framework necessary for multiarching the hppa targets.
1961 * hppa-tdep.c (hppa_gdbarch_init): New function.
1962 (hppa_dump_tdep): New function.
1963 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1964 tdep structure dumper.
1965 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1966 until the multi-arching conversion has partially been completed.
1967
492254e9
AC
19682002-11-06 Andrew Cagney <ac131313@redhat.com>
1969
1970 * valops.c (value_assign): Merge lval_register case into
1971 lval_reg_frame_relative. Use frame_register and
1972 regcache_cooked_write instead of get_saved_register and
1973 write_register_bytes. After flushing the register cache, try to
1974 re-select the selected frame.
1975
8262ee23
AC
19762002-11-06 Andrew Cagney <ac131313@redhat.com>
1977
1978 * regcache.h (deprecated_register_valid): Rename register_valid.
1979 * regcache.c: Update.
1980 * ia64-aix-nat.c: Update.
1981 * i386gnu-nat.c: Update.
1982 * alpha-nat.c: Update.
1983 * sparc-nat.c: Update.
1984 * lynx-nat.c: Update.
1985 * remote-mips.c: Update.
1986
4facf7e8
JB
19872002-11-06 Joel Brobecker <brobecker@gnat.com>
1988
1989 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1990 to end of file, to be more consistent with the pratice followed
1991 by other targets.
1992
f9418c0f
AC
19932002-11-06 Andrew Cagney <ac131313@redhat.com>
1994
1995 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1996 (print_float_info): Print registers in float_reggroup.
1997 (print_vector_info): Print registers in vector_reggroup.
1998 (default_print_registers_info): When all, print registers in
1999 all_reggroup. Otherwize, print registers in general_reggroup.
2000 (registers_info): Rewrite. Add support for register groups.
2001 Eliminate a goto.
2002
3fe235a7
EZ
20032002-11-06 Elena Zannoni <ezannoni@redhat.com>
2004
2005 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2006 ages.
2007 (symtab_symbol_info): Remove eons old ifdeffed out code.
2008 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2009 command.
2010
ef944135
TR
20112002-11-06 Theodore A. Roth <troth@openavr.org>
2012
2013 * c-exp.y: Add missing semi-colons.
2014 * f-exp.y: Add missing semi-colons.
2015 * m2-exp.y: Add missing semi-colons.
2016 * p-exp.y: Add missing semi-colons.
2017 Add empty action to start rule to avoid a type clash error when
2018 building with bison >= 1.50.
2019
f8302a57
JB
20202002-11-06 Jim Blandy <jimb@redhat.com>
2021
2022 * macrotab.h (struct macro_source_file): Doc fix.
2023
6e382aa3
JJ
20242002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2025
2026 * varobj.c (child_exists, cplus_number_of_children): Change
2027 STREQ macro references to strcmp.
2028 (cplus_name_of_child): Change code to handle the fact that
2029 fields are not necessarily contiguous with regards to their
2030 access control. This is a fix for PR gdb/792.
2031
a216a322
AC
20322002-11-05 Andrew Cagney <ac131313@redhat.com>
2033
2034 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2035 * gdbarch.h, gdbarch.c: Regnerate.
2036 * frame.h (frame_register): Declare.
2037 * frame.c (frame_register): New function.
2038 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2039 GET_SAVED_REGISTER, otherwize call
2040 generic_unwind_get_saved_register.
2041 (frame_register_read): Use frame_register instead of
2042 get_saved_register.
2043
7d5b6fdd
EZ
20442002-11-05 Elena Zannoni <ezannoni@redhat.com>
2045
2046 From Jim Ingham <jingham@apple.com>:
2047 * event-top.c (gdb_disable_readline): New function.
2048 (_initialize_event_loop): Move comment.
2049
b7c64260
EZ
20502002-11-05 Elena Zannoni <ezannoni@redhat.com>
2051
2052 * event-loop.c (start_event_loop): Add comment.
2053 Update copyright.
2054
c2e1b8f2
AC
20552002-11-05 Andrew Cagney <ac131313@redhat.com>
2056
2057 * infcmd.c (default_print_registers_info): Do not call
2058 PRINT_REGISTER_HOOK.
2059
87647bb0
AC
20602002-11-05 Andrew Cagney <ac131313@redhat.com>
2061
2062 * sparc-tdep.c (sparc_print_register_hook): Make static.
2063 (sparc_print_registers_info): New function.
2064 (sparc_do_registers_info): New function.
2065 (sparclet_print_registers_info): New function.
2066 (sparclet_do_registers_info): New function.
2067 (do_sparc_print_registers_info): New function.
2068 (sparc_print_registers): New static function, clone of infcmd.c's
2069 default_print_registers_info.
2070 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2071 (sparclet_do_registers_info): Declare.
2072 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2073 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2074 Re-define.
2075 (sparc_do_registers_info): Declare.
2076 (PRINT_REGISTER_HOOK): Delete macro.
2077 (sparc_print_register_hook): Delete declaration.
2078
8155455b
DC
20792002-11-05 David Carlton <carlton@math.stanford.edu>
2080
2081 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2082 functions.
2083 (lookup_symbol_aux_local): New function.
2084 (lookup_symbol_aux_symtabs): New function.
2085 (lookup_symbol_aux_psymtabs): New function.
2086
29924310
DC
20872002-11-05 David Carlton <carlton@math.stanford.edu>
2088
2089 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2090 previous values of 'objfile' and 'block'.
2091
cc303028
PM
20922002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2093
2094 * values.c (value_change_enclosing_type): Set
2095 enclosing_type field correctly also for the case where
2096 more memory needs to be allocated.
2097
1d70089a
MK
20982002-11-03 Mark Kettenis <kettenis@gnu.org>
2099
f16a25ae
MK
2100 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2101 of puts_filtered.
2102
1d70089a
MK
2103 * i387-tdep.c (i387_print_float_info): Replace calls to
2104 register_read and deprecated_read_register_gen with calls to
2105 frame_register_read, and make the necessary adjustments to the
2106 surrounding code.
2107
7e20f3fb
AC
21082002-11-02 Andrew Cagney <ac131313@redhat.com>
2109
2110 * gdbarch.sh (register_reggroup_p): Allow default value.
2111 * gdbarch.h, gdbarch.c: Regenerate.
2112
192dbe33
AC
21132002-11-02 Andrew Cagney <ac131313@redhat.com>
2114
2115 * regcache.h: Add coment indicating replacements for deprecated
2116 functions.
2117
b59ff9d5
AC
21182002-11-02 Andrew Cagney <cagney@redhat.com>
2119
2120 * reggroups.h, reggroups.c: New files.
2121 * regcache.c: Include "reggroups.h".
2122 (enum regcache_dump_what): Add `regcache_dump_groups'.
2123 (regcache_dump): Contract size of the "Type" column. When
2124 specified, dump the register's groups.
2125 (maintenance_print_register_groups): New function.
2126 (_initialize_regcache): Add command `maint print register-groups'.
2127 * Makefile.in (COMMON_OBS): Add reggroups.o
2128 (SFILES): Add reggroups.c.
2129 (reggroups_h): Define.
2130 (regcache.o, gdbarch.o): Update dependencies.
2131 (reggroups.o): Specify dependencies.
2132 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2133 Add opaque declaration for `struct reggroup' in generated .h file.
2134 Include "reggroups.h" in generated .c file.
2135 gdbarch.h, gdbarch.c: Re-generate.
2136
4caf0990
AC
21372002-11-02 Andrew Cagney <cagney@redhat.com>
2138
2139 * regcache.h (deprecated_read_register_gen): Rename
2140 read_register_gen.
2141 (deprecated_write_register_gen): Rename write_register_gen.
2142 * i387-tdep.c: Update.
2143 * x86-64-linux-nat.c: Update
2144 * wince.c: Update.
2145 * thread-db.c: Update.
2146 * win32-nat.c: Update.
2147 * mips-tdep.c: Update.
2148 * d10v-tdep.c: Update.
2149 * cris-tdep.c: Update.
2150 * remote-sim.c: Update.
2151 * remote-rdi.c: Update.
2152 * remote-rdp.c: Update.
2153 * frame.c: Update.
2154 * target.c: Update.
2155 * blockframe.c: Update.
2156 * x86-64-tdep.c: Update.
2157 * xstormy16-tdep.c: Update.
2158 * sh-tdep.c: Update.
2159 * s390-tdep.c: Update.
2160 * rs6000-tdep.c: Update.
2161 * sparc-tdep.c: Update.
2162 * i386-tdep.c: Update.
2163 * dwarf2cfi.c: Update.
2164 * regcache.c: Update.
2165
7a7adcdf
JB
21662002-11-01 Joel Brobecker <brobecker@gnat.com>
2167
2168 New interix-specific files:
2169 * config/i386/nm-interix.h: New file.
2170 * config/i386/interix.mh: New file.
2171 * config/i386/interix.mt: New file.
2172 * i386-interix-nat.c: New file.
2173 * i386-interix-tdep.c: New file.
2174
bdcdd535
AC
21752002-11-01 Andrew Cagney <cagney@redhat.com>
2176
2177 * frame.h (deprecated_generic_get_saved_register): Rename
2178 generic_get_saved_register.
2179 * blockframe.c (deprecated_generic_get_saved_register): Update.
2180 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2181 (xstormy16_frame_saved_register): Update.
2182 * sh-tdep.c (sh_gdbarch_init): Update.
2183 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2184 * ia64-tdep.c (ia64_get_saved_register): Update.
2185 * cris-tdep.c (cris_gdbarch_init): Update.
2186 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2187 * arm-tdep.c (arm_gdbarch_init): Update.
2188
2a4b7c45
DJ
21892002-10-31 Daniel Jacobowitz <drow@mvista.com>
2190
2191 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2192
ef17e74b
DJ
21932002-10-31 Daniel Jacobowitz <drow@mvista.com>
2194
2195 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2196 trampolines in sigaction.
2197
4904ba5b
AC
21982002-10-31 Andrew Cagney <cagney@redhat.com>
2199
2200 * h8300-tdep.c: Include "gdb_assert.h".
2201 (h8300_print_register): Add gdbarch, file and frame parameters.
2202 Use frame_read_unsigned_register to read the register's value.
2203 Use fprintf_filtered to display output.
2204 (h8300_print_registers_info): Replace h8300_do_registers_info.
2205 (h8300_gdbarch_init): Set print_registers_info.
2206
f908a0eb
AC
22072002-10-31 Andrew Cagney <cagney@redhat.com>
2208
2209 * frame.c (frame_read_unsigned_register): New function.
2210 (frame_read_signed_register): New function.
2211 * frame.h (frame_read_unsigned_register): Declare.
2212 (frame_read_signed_register): Declare.
2213
c5646e11
AC
22142002-10-31 Andrew Cagney <cagney@redhat.com>
2215
2216 * h8500-tdep.c (h8500_print_registers_info): New static function,
2217 clone of infcmd.c's default_print_registers_info.
2218 (h8500_do_registers_info): New funtion.
2219 (h8500_print_register_hook): Rename print_register_hook, make
2220 static.
2221
2222 * config/h8500/tm-h8500.h: Update copyright.
2223 (DEPRECATED_DO_REGISTERS_INFO): Define.
2224 (h8500_do_registers_info: Declare.
2225 (PRINT_REGISTER_HOOK): Delete macro.
2226 (print_register_hook): Delete function.
2227
0bdd672b
AC
22282002-10-31 Andrew Cagney <cagney@redhat.com>
2229
2230 * z8k-tdep.c (z8k_print_register_hook): Make static.
2231 (z8k_print_registers_info): New static function, clone of
2232 infcmd.c's default_print_registers_info.
2233 (z8k_do_registers_info): New function. Wrap
2234 z8k_print_registers_info.
2235 * config/z8k/tm-z8k.h: Update copyright.
2236 (PRINT_REGISTER_HOOK): Delete macro.
2237 (z8k_print_register_hook): Delete declaration.
2238 (DEPRECATED_DO_REGISTERS_INFO): Define.
2239 (z8k_do_registers_info): Declare.
2240
bf9c25dc
JB
22412002-10-30 Joel Brobecker <brobecker@gnat.com>
2242
2243 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2244 as this is already provided by value.h, and was actually causing
2245 a compilation error because of a conflict in parameter type
2246 declaration due to a missing const keyword.
2247 (low_text_segment_addres): Fix a compilation warning.
2248
2c665b51
DJ
22492002-10-29 Daniel Jacobowitz <drow@mvista.com>
2250
2251 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2252 registers without a name.
2253 (mips_linux_cannot_store_register): Don't store registers without
2254 a name.
2255
e70ea697
DC
22562002-10-28 David Carlton <carlton@math.stanford.edu>
2257
2258 * symtab.c (find_addr_symbol): Delete. (It was already commented
2259 out.)
2260 * symtab.h: Delete prototype for find_addr_symbol.
2261
903ad3a6
AC
22622002-10-26 Andrew Cagney <cagney@redhat.com>
2263
2264 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2265 DO_REGISTERS_INFO.
2266 gdbarch.h, gdbarch.c: Re-generate.
2267 * infcmd.c (default_print_registers_info): Update reference.
2268 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2269 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2270 * sh-tdep.c (sh_gdbarch_init): Ditto.
2271 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2272 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2273
ab91194c
MK
22742002-10-26 Mark Kettenis <kettenis@gnu.org>
2275
e3033f15
MK
2276 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2277 cfi_init_extra_frame_info.
2278 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2279 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2280
b83b026c
MK
2281 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2282 target where necessary. Add more comments and remove the ones
2283 that don't provide any useful information.
2284
267bf4bb
MK
2285 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2286 deprecated_read_register_dummy with
2287 frame_unwind_unsigned_register.
2288
751f1375
MK
2289 * i386-tdep.c (i386_extract_struct_value_address): Use
2290 regcache_raw_read_unsigned instead of
2291 regcache_cooked_read_unsigned since we know that the register
2292 we're reading isn't a pseudo register. Rename variable 'val' into
2293 the more descriptive 'addr'.
2294
26abbdc4
MK
2295 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2296 (x86_64_push_return_address): Add comment.
2297 (x86_64_pop_frame): Make static.
2298 (examine_argument): Clarify comment.
2299 (x86_64_skip_prologue): Make prolog_expact variable static.
2300
9f1549cc
MK
2301 * dwarf2cfi.c: Fix some formatting problems.
2302 (context_cpy, read_encoded_pointer): Clarify comments.
2303
ab91194c
MK
2304 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2305 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2306 i386 target back into x86_64_gdbarch_init. Add some comments and
2307 remove meaningless ones.
2308
72367fb4
AC
23092002-10-25 Andrew Cagney <cagney@redhat.com>
2310
2311 * complaints.h (struct deprecated_complaint): Rename `struct
2312 complaint'.
2313 * complaints.c (complain): Update.
2314 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2315 incorrect comment indicating that "symfile.h" was being included
2316 for the `struct complaint' definition.
2317 * remote-vx.c: Update.
2318 * objc-lang.c: Update.
2319 * xcoffread.c: Update.
2320 * hpread.c: Update.
2321 * mdebugread.c: Update.
2322 * stabsread.c: Update.
2323 * dwarf2read.c: Update.
2324 * dwarfread.c: Update.
2325 * elfread.c: Update.
2326 * coffread.c: Update.
2327 * stabsread.h: Update.
2328 * dbxread.c: Update.
2329 * buildsym.c: Update.
2330 * gdbtypes.c: Update.
2331 * macrotab.c: Update.
2332
1f2baacc
MK
23332002-10-25 Mark Kettenis <kettenis@gnu.org>
2334
0c1a73d6
MK
2335 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2336 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2337 (x86_64_init_abi): ...new function.
2338
6aee4d54 2339 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
2340 * i386v-nat.c: Include "i386-tdep.h".
2341
8f9cbe01
AC
23422002-10-25 Andrew Cagney <cagney@redhat.com>
2343
5f11f355
AC
2344 * gdbtypes.c (address_space_name_to_int): Update.
2345 (address_space_int_to_name): Update.
2346 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2347 multi-arch predicate.
2348 (address_class_name_to_type_flags): Ditto.
2349 * gdbarch.h, gdbarch.c: Re-generate.
2350
8f9cbe01
AC
2351 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2352
e8d96a5d
MH
23532002-10-24 Martin M. Hunt <hunt@redhat.com>
2354
2355 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2356
fe39c653
EZ
23572002-10-24 Elena Zannoni <ezannoni@redhat.com>
2358
2359 * symtab.h (INIT_SAL): Delete macro.
2360 (init_sal): Export.
2361 * symtab.c (init_sal): New function.
2362
2363 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2364 to init_sal function call.
2365 (find_sal_from_funcs_and_line): Ditto.
2366 (all_sals_for_line): Ditto.
2367 * breakpoint.c (create_internal_breakpoint): Ditto.
2368 (create_fork_vfork_event_catchpoint): Ditto.
2369 (create_exec_event_catchpoint): Ditto.
2370 (parse_breakpoint_sals): Ditto.
2371 (watch_command_1): Ditto.
2372 (handle_gnu_4_16_catch_command): Ditto.
2373 (clear_command): Ditto.
2374 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2375 * infcmd.c (run_stack_dummy): Ditto.
2376 * infrun.c (process_event_stop_test): Ditto.
2377 (check_sigtramp2): Ditto.
2378 (step_over_function): Ditto.
2379 * linespec.c (decode_line_2): Ditto.
2380 (decode_line_1): Ditto.
2381 * source.c (line_info): Ditto.
2382 * symtab.c (find_pc_sect_line): Ditto.
2383
baed091b
ML
23842002-10-24 Michal Ludvig <mludvig@suse.cz>
2385
2386 * dwarf2cfi.c (struct context)
2387 (struct context_reg): Moved to dwarf2cfi.h
2388 (context_alloc, frame_state_alloc, context_cpy):
2389 Made extern instead of static, removed prototypes.
2390 * dwarf2cfi.h (struct context)
2391 (struct context_reg): New, moved from dwarf2cfi.c
2392 (context_alloc, frame_state_alloc, context_cpy):
2393 New prototypes.
2394 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2395 Changed from static to extern.
2396 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2397 (LINUX_SIGCONTEXT_FP_OFFSET)
2398 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2399 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2400 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2401 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2402 set_gdbarch_*() calls now use x86-64 specific functions
2403 instead of DWARF2 CFI ones.
2404 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2405 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2406 (x86_64_init_extra_frame_info): New prototypes.
2407
c38da1af
DC
24082002-10-23 David Carlton <carlton@math.stanford.edu>
2409
2410 * linespec.c: #include "parser-defs.h".
2411 Delete prototype for find_template_name_end.
2412 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2413
fb9b6b35
JJ
24142002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2415
2416 * NEWS: add recent mi fixes.
2417 * varobj.c (struct varobj): Add new "updated" flag.
2418 (new_variable): Default "updated" flag to 0.
2419 (varobj_set_value): Set "updated" flag to 1 if value
2420 changes.
2421 (varobj_update): Check varobj "updated" flag before
2422 comparing old and refreshed values. Fix for
2423 PR gdb/702.
2424
8da065d5
DC
24252002-10-23 David Carlton <carlton@math.stanford.edu>
2426
2427 * parse.c (parse_exp_1): Use BLOCK_START.
2428 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2429 SYMBOL_BLOCK_VALUE.
2430 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2431
87f2f08c
DC
24322002-10-23 David Carlton <carlton@math.stanford.edu>
2433
2434 * symtab.c: Delete cplusplus_hint.
2435 Delete prototype for find_template_name_end.
2436
88cda038
EZ
24372002-10-23 Elena Zannoni <ezannoni@redhat.com>
2438
2439 * symtab.h: Update comment.
2440
2625d86c
MS
24412002-10-23 Michael Snyder <msnyder@redhat.com>
2442
2443 * printcmd.c (address_info): Restore quotes in output.
2444 * valops.c (value_of_local): Restore quotes in error message.
2445
9cc0d196
EZ
24462002-10-23 Elena Zannoni <ezannoni@redhat.com>
2447
2448 * symtab.c (symbol_demangled_name): New function.
2449 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2450 turning most of it into a function.
2451 (symbol_demangled_name): Export.
2452
19de93d0
MS
24532002-10-23 Michael Snyder <msnyder@redhat.com>
2454
2455 * valops.c (value_of_local): Restore quotes in error message.
2456
89aad1f9
EZ
24572002-10-23 Elena Zannoni <ezannoni@redhat.com>
2458
2459 * symtab.c (symbol_init_language_specific): New function.
2460 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2461 turning most of it into a function.
2462 (symbol_init_language_specific): Export.
2463
d9fa45fe
DC
24642002-10-23 David Carlton <carlton@math.stanford.edu>
2465
2466 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2467 (dwarf_attr_name): Ditto.
2468 (dwarf_type_encoding_name): Ditto.
2469 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2470 (process_die): Handle DW_TAG_namespace,
2471 DW_TAG_imported_declaration, DW_TAG_imported_module.
2472 (read_namespace): New function.
2473
1045b512
JB
24742002-10-22 Joel Brobecker <brobecker@gnat.com>
2475
2476 * configure.in: Define NEW_PROC_API on Interix too.
2477 * configure: Regenerate.
2478
24792002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
2480
2481 * configure: Regenerate using the proper version of autoconf.
2482
3987b9d4
EZ
24832002-10-21 Elena Zannoni <ezannoni@redhat.com>
2484
2485 * findvar.c (read_var_value): Temporarily disable TLS code, until
2486 complete TLS support is added.
2487
9d774e44
EZ
24882002-10-21 Jim Blandy <jimb@redhat.com>
2489 Elena Zannoni <ezannoni@redhat.com>
2490
2491 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2492 for thread local storage locations.
2493 (struct symbol): Add objfile field.
2494 (SYMBOL_OBJFILE): Define.
2495 * dwarf2read.c (is_thread_local): New static variable.
2496 (new_symbol): If variable is in thread local fill in address class
2497 and objfile appropriately.
2498 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2499 stack operation.
2500 * printcmd.c (address_info): Print the information for thread
2501 local storage variable.
2502 * findvar.c (read_var_value): In case of thread local variable,
2503 defer to the target vector code to compute address.
2504
bc4a16ae
EZ
25052002-10-21 Elena Zannoni <ezannoni@redhat.com>
2506
2507 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2508 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2509
407caf07
EZ
25102002-10-21 Elena Zannoni <ezannoni@redhat.com>
2511
2512 * symtab.h (address_class): Rename
2513 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2514 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2515 * printcmd.c (address_info): Ditto.
2516 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2517
005328e3
MK
25182002-10-20 Mark Kettenis <kettenis@gnu.org>
2519
afdb036a
MK
2520 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2521 DBREG_DRX macro to acces debug registers.
2522
ca02e098
MK
2523 * Makefile.in (i386obsd-tdep.o): New target.
2524
03cc47f7
MK
2525 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2526 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2527
005328e3
MK
2528 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2529 * config/i386/obsd.mt: New file.
2530 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2531 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2532 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2533 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2534 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2535 * i386obsd-tdep.c: New file.
2536
9c96f9f2
AF
25372002-10-19 Adam Fedor <fedor@gnu.org>
2538
2539 * objc-exp.y (name_not_typename): Fix invalid comment.
2540
ce1ed485
MK
25412002-10-20 Mark Kettenis <kettenis@gnu.org>
2542
2543 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2544 to allocate partial syms and macro byte caches.
2545
1efc7aaa
DC
25462002-10-18 David Carlton <carlton@math.stanford.edu>
2547
2548 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2549
7e1d63ec
AF
25502002-10-18 Adam Fedor <fedor@gnu.org>
2551
2552 * stabsread.c (find_name_end): New function.
2553 (define_symbol): Use it.
2554
6e8d29a9
DJ
25552002-10-18 Daniel Jacobowitz <drow@mvista.com>
2556
2557 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2558 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2559 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2560 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2561
1efc7aaa 25622002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2563
2564 * symfile.h: Add opaque declaration for struct obstack.
2565 Declare obsavestring to take a const char *.
2566 * symfile.c (obsavestring): Make first argument a const char *.
2567
1aeae86e
AF
25682002-10-16 Adam Fedor <fedor@gnu.org>
2569
2570 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2571 names when matching breakpoints in current file.
2572
8b2dbe47
KB
25732002-10-16 Kevin Buettner <kevinb@redhat.com>
2574
2575 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2576 (read_tag_pointer_type): Add address class support.
2577 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2578 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2579 New methods.
2580 * gdbarch.h, gdbarch.c: Regenerate.
2581 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2582 (make_type_with_address_space, recursive_type_dump): Add address
2583 class support.
2584 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2585 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2586 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2587
74451869
KD
25882002-10-16 Klee Dienes <kdienes@apple.com>
2589
2590 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2591 to get the last character of a char[] buffer, not
2592 name[sizeof(vptr_name)-1].
2593
ff4cb3e8
AF
25942002-10-14 Adam Fedor <fedor@gnu.org>
2595
2596 * symtab.h: New objc_specific struct.
2597 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2598 (SYMBOL_DEMANGLED_NAME): Likewise.
2599
da2cf7e0
AF
26002002-10-14 Adam Fedor <fedor@gnu.org>
2601
2602 * symfile.c (init_filename_language_table): Add ObjC file extension.
2603
4a351cef
AF
26042002-10-14 Adam Fedor <fedor@gnu.org>
2605
2606 * utils.c (puts_filtered_tabular): New function.
2607 (fprintf_symbol_filtered): Get ObjC demangled name.
2608 * defs.h (puts_filtered_tabular): Declared.
2609
9750e763
KB
26102002-10-14 Kevin Buettner <kevinb@redhat.com>
2611
2612 * c-lang.h (c_type_print_varspec_prefix): Delete.
2613 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2614 ``need_post_space'' parameter. Adjust all callers.
2615
eee771c1
DJ
26162002-10-14 Daniel Jacobowitz <drow@mvista.com>
2617
2618 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2619 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2620 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2621 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2622
46c82446
AF
26232002-10-13 Adam Fedor <fedor@gnu.org>
2624
2625 * source.c (print_source_lines): Update comments.
2626
d069f99d
AF
26272002-10-13 Adam Fedor <fedor@gnu.org>
2628
2629 * valops.c (value_of_local): New function.
2630 (value_of_this): Use it.
2631 * value.h (value_of_local): Declared.
2632
53c551b7
AF
26332002-10-13 Adam Fedor <fedor@gnu.org>
2634
2635 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2636 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2637
eb392fbf
AF
26382002-10-12 Adam Fedor <fedor@gnu.org>
2639
2640 * language.c (binop_result_type): Add language_objc to case.
2641 (integral_type): Likewise.
2642 (character_type): Likewise.
2643 (string_type): Likewise.
2644 (boolean_type): Likewise.
2645 (structured_type): Likewise.
2646 (binop_type_check): Likewise.
2647
e2b23ee9
AF
26482002-10-11 Adam Fedor <fedor@gnu.org>
2649
2650 * printcmd.c (address_info): Print 'self' for ObjC.
2651
b01ab485
AF
26522002-10-11 Adam Fedor <fedor@gnu.org>
2653
2654 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2655 OP_SELF.
2656
806e6073
AF
26572002-10-11 Adam Fedor <fedor@gnu.org>
2658
2659 * language.h (CAST_IS_CONVERSION): Add language_objc.
2660
50f85cdf
AF
26612002-10-11 Adam Fedor <fedor@gnu.org>
2662
2663 * defs.h (enum language): Add language_objc.
2664
0d540cdf
KD
26652002-10-11 Klee Dienes <kdienes@apple.com>
2666
69266111 2667 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2668 * gdbcore.h (read_memory_typed_address): Add prototype.
2669 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2670 to read a value destined for a CORE_ADDR, not read_memory_integer.
2671 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2672 (f77_get_dynamic_lowerbound): Ditto.
2673
d5dc7960
MH
26742002-10-11 Martin M. Hunt <hunt@redhat.com>
2675
2676 * utils.c (string_to_core_addr): After turning string into
2677 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2678 which will do necessary sign-extension, etc.
2679
8343f86c
DJ
26802002-10-11 Daniel Jacobowitz <drow@mvista.com>
2681
2682 * c-exp.y (THIS): Delete token and grammar rule.
2683 (yylex): Don't return THIS.
2684 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2685 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2686 * demangle.c (cplus_markers): Update comment. Put '$'
2687 first. Remove CPLUS_MARKER.
2688 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2689 * jv-exp.y (THIS): Delete token and grammar rule.
2690 (yylex): Don't return THIS.
2691 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2692 * objc-exp.y (THIS): Delete token and grammar rule.
2693 (yylex): Don't return THIS.
2694 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2695 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2696 (read_member_functions): Likewise for opname.
2697 (read_tilde_fields): Use is_cplus_marker.
2698
2699 * defs.h (CPLUS_MARKER): Don't define.
2700 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2701 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2702 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2703 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2704 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2705
2706 * config/i386/tm-i386v4.h: Delete file.
2707 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2708 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2709 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2710 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2711 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2712 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2713 * config/i386/i386v4.mt (TM_FILE): Likewise.
2714 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2715
967c0d83
MM
27162002-10-10 Marko Mlinar <markom@opencores.org>
2717
2718 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2719 accidentially not commited 2002-10-09
2720 * gdbarch.h, gdbarch.c: Re-generate.
2721
f74fa174
MM
27222002-10-09 Marko Mlinar <markom@opencores.org>
2723
2724 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2725 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2726 * gdbarch.h, gdbarch.c: Re-generate.
2727
57349743
JB
27282002-10-08 Petr Sorfa <petrs@caldera.com>
2729
2730 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2731
2732 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2733 so we can work on more than one compilation unit at a time. This
2734 helps prepare GDB to handle inter-CU die references.
2735 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2736 the code to be defined before struct comp_unit_head.
2737 (comp_unit_head): Added new members - offset, cu_head,
2738 begin_die, next and dwarf2_abbrevs.
2739 (dwarf2_abbrevs): Removed single static var; now member of
2740 struct comp_unit_head.
2741 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2742 members.
2743 (psymtab_to_symtab_1): Changed to work with the new
2744 struct comp_unit_head.
2745 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2746 constructs the dwarf2_abbrevs[] inside the cu_header.
2747 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2748 dwarf2_abbrev table to clean up.
2749 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2750 handling of dwarf2_abbrevs inside the cu_header.
2751 (read_partial_die): Now supports the call to the new
2752 dwarf2_lookup_abbrev.
2753 (read_full_die): Now supports the call to the new
2754 dwarf2_lookup_abbrev.
2755
4092aadb
CF
27562002-10-06 Christopher Faylor <cgf@redhat.com>
2757
2758 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2759 insure that shell variables, such as "transformed_name" are propagated
2760 to later shell statements in rule.
2761
af0b2512
MK
27622002-10-06 Mark Kettenis <kettenis@gnu.org>
2763
2764 * config/i386/nm-i386sco.h: Add protection against
2765 multiple-inclusion. Include "i386/nm-i386v.h".
2766 (REGISTER_U_ADDR): Remove define.
2767 (i386_register_u_addr): Remove prototype.
2768
d6020d45
MS
27692002-10-04 Michael Snyder <msnyder@redhat.com>
2770
2771 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2772 before treating it as a single-step event.
2773
7248f48e
AF
27742002-10-03 Adam Fedor <fedor@gnu.org>
2775
2776 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2777 (objc_demangle): Remove assignment in if statements, Replace
2778 free with xfree.
2779 (add_msglist): Likewise.
2780 (end_msglist): Likewise.
2781 (complare_selectors): Likewise.
2782 (selectors_info): Likewise.
2783 (compare_classes): Likewise.
2784 (classes_info): Likewise.
2785 (print_object_command): Likewise.
2786 (find_objc_msgcall_submethod): Replace PTR with void *.
2787 * objc-lang.h: Remove check for __STDC__.
2788
52c6a6ac
JJ
27892002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2790
2791 * ui-out.h (ui_out_field_fmt_int): New prototype.
2792 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2793 of field width and alignment.
2794 * stack.c (print_frame_info_base): When printing frame level, use
2795 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2796 PR gdb/192
2797
7e3cec17
JJ
27982002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2799
2800 * MAINTAINERS: Add self to Write After Approval list.
2801
a58dd373
EZ
28022002-10-02 Elena Zannoni <ezannoni@redhat.com>
2803
2804 * infcmd.c (interrupt_target_command_wrapper): Delete.
2805 (interrupt_target_command): Make non static.
2806 (nofp_registers_info): Make static.
2807 * stack.c (return_command_wrapper): Delete.
2808 (return_command): Make non static.
2809
cee6ddeb
EZ
28102002-10-02 Elena Zannoni <ezannoni@redhat.com>
2811
2812 * event-top.c (gdb_setup_readline): New function. Code moved from
2813 _initialize_event_loop().
2814 (_initialize_event_loop): Call gdb_setup_readline().
2815
c4ed33b9
AC
28162002-10-02 Andrew Cagney <ac131313@redhat.com>
2817
2818 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2819 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2820 * gdbarch.h, gdbarch.c: Re-generate.
2821
cef4f5dd
DJ
28222002-10-02 Daniel Jacobowitz <drow@mvista.com>
2823
2824 Fix PR gdb/778
2825 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2826 before recursing.
2827 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2828 of fill_in_vptr_fieldno.
2829
36dc181b 28302002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2831
36dc181b
EZ
2832 * inferior.h (registers_info, stepi_command, nexti_command,
2833 continue_command, interrupt_target_command): Export from infcmd.c.
2834 * frame.h (args_info, selected_frame_level_changed_hook,
2835 return_command): Export from stack.c.
2836 * v850ice.c (stepi_command, nexti_command, continue_command): use
2837 prototypes from inferior.h.
2838 * tracepoint.c (registers_info, args_info, locals_info): Use
2839 prototypes from frame.h and inferior.h.
2840 * Makefile.in (mi-main.o): Add dependency on frame.h.
2841
6f99cb26
AC
28422002-10-02 Andrew Cagney <ac131313@redhat.com>
2843
da3eff49
AC
2844 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2845 value in register 3 adjusted by ppc_gp0_regnum.
2846
6f99cb26
AC
2847 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2848
da615bee
MM
28492002-10-02 Marko Mlinar <markom@opencores.org>
2850
2851 * MAINTAINERS: Add myself to the Write After Approval list.
2852
d154bee2
AO
28532002-10-01 Alexandre Oliva <aoliva@redhat.com>
2854
62a49b2c
AO
2855 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2856 of the section for the N64 ABI, fixed.
2857
d154bee2
AO
2858 * config/mips/tm-irix6.h: Include solib.h.
2859
ed348acc
EZ
28602002-10-01 Elena Zannoni <ezannoni@redhat.com>
2861
2862 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2863 GNU operators.
2864
da0f9dcd
AC
28652002-10-01 Andrew Cagney <ac131313@redhat.com>
2866
2867 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2868 and that "mi0" syntax has been removed.
2869
bdf64bac
DC
28702002-09-30 David Carlton <carlton@math.stanford.edu>
2871
2872 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2873 * ppc-sysv-tdep.c: #include "gdb_string.h".
2874 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2875 pacify GCC.
2876
54c2a1e6
AC
28772002-10-01 Andrew Cagney <ac131313@redhat.com>
2878
2879 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2880 "vrsave"'s register number.
2881
cedea778
AC
28822002-09-30 Andrew Cagney <ac131313@redhat.com>
2883
2884 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2885 use frame_unwind_signed_register to obtain the PC.
2886 (mips_frame_chain): Handle a generic dummy frame.
2887 (mips_init_extra_frame_info): When a generic dummy frame, don't
2888 re-compute the frame base.
2889 (mips_pop_frame): Handle generic dummy frames.
2890 (mips_gdbarch_init): When generic dummy frames, set
2891 use_generic_dummy_frames, push_dummy_frame to
2892 generic_push_dummy_frame, pc_in_call_dummy to
2893 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2894 generic_save_dummy_frame_tos.
2895
68315eb8
AC
28962002-09-30 Andrew Cagney <ac131313@redhat.com>
2897
2898 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2899 against TOP when TOP was explictly set.
2900 (generic_push_dummy_frame): Set TOP to zero.
2901
3b8630c3
EZ
29022002-09-30 Elena Zannoni <ezannoni@redhat.com>
2903
2904 * event-loop.c (start_event_loop): Rename variable 'result' to
2905 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2906
28ee05e9
KS
29072002-09-30 Keith Seitz <keiths@redhat.com>
2908
2909 * gdb-events.sh (selected_thread_changed): New event.
2910 * gdb-events.c: Regenerated.
2911 * gdb-events.h: Regenerated.
2912
6eecb1c8
HPN
29132002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2914
2915 * MAINTAINERS: Add self to Write After Approval list.
2916
92df71f0
FN
29172002-09-30 Fernando Nasser <fnasser@redhat.com>
2918
3b8630c3
EZ
2919 * disasm.c: New file.
2920 * disasm.h: New file.
92df71f0
FN
2921 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2922 (compare_lines): Ditto.
2923 (dump_insns): Ditto.
3b8630c3
EZ
2924 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2925 argument.
92df71f0 2926 (do_assembly_only): Ditto.
3b8630c3
EZ
2927 (do_disassembly): Renamed to gdb_disassembly and moved to
2928 disasm.c. Sdded uiout argument.
2929 * Makefile.in: Add new files. Reorder SFILES list. Update
2930 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2931
0c22854d
AC
29322002-09-29 Andrew Cagney <ac131313@redhat.com>
2933
2934 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2935 bfd/elf64-alpha-fbsd.c.
2936
e67f2023
AC
29372002-09-29 Andrew Cagney <ac131313@redhat.com>
2938
2939 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2940 i386gnu-tdep.c.
2941
89396210
AC
29422002-09-29 Andrew Cagney <ac131313@redhat.com>
2943
2944 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2945 __FUNCTION__.
2946 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2947 function name.
2948 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2949 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2950 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2951 (S_msg_sig_post_reply): Ditto.
2952
7079c36c
CV
29532002-09-28 Corinna Vinschen <vinschen@redhat.com>
2954
89396210
AC
2955 * sh-tdep.c (sh_use_struct_convention): Use definition according
2956 to ABI.
7079c36c
CV
2957 (sh_push_arguments): Store in register with correct endianess.
2958 (sh_default_store_return_value): Ditto.
2959 (sh_gdbarch_init): Set sizeof long double to 8.
2960
975ac915
MK
29612002-09-27 Mark Kettenis <kettenis@gnu.org>
2962
2963 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2964 Fix some whitespace problems.
2965
9bbe19fb
DC
29662002-09-27 David Carlton <carlton@math.stanford.edu>
2967
2968 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2969 (mcore-tdep.o): Ditto.
2970 (ns32k-tdep.o): Ditto.
2971 (ns32knbsd-tdep.o): Ditto.
2972 (sh3-rom.o): Ditto.
2973 (vax-tdep.o): Ditto.
2974 * cris-tdep.c: #include "gdb_string.h"
2975 * mcore-tdep.c: Ditto.
2976 * ns32k-tdep.c: Ditto.
2977 * ns32knbsd-tdep.c: Ditto.
2978 * sh3-rom.c: Ditto.
2979 * vax-tdep.c: Ditto.
2980
43b2fdc7
DC
29812002-09-27 David Carlton <carlton@math.stanford.edu>
2982
2983 * config/djgpp/fnchange.lst: Add entries for
2984 gdb/testsuite/gdb.c++/m-static files.
2985
e8cfbbd9
JW
29862002-09-27 Jim Wilson <wilson@redhat.com>
2987
2988 * MAINTAINERS: Add myself to the Write After Approval list.
2989
43b2fdc7 29902002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2991
2992 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2993
2994
9f3b7f07
AC
29952002-09-26 Andrew Cagney <ac131313@redhat.com>
2996
2997 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2998 frame.
2999
11269d7e
AC
30002002-09-26 Andrew Cagney <ac131313@redhat.com>
3001
3002 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3003 (rs6000_struct_return_address): Delete variable.
3004 (rs6000_store_struct_return): Update.
3005 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3006 deprecated_extract_struct_value_address.
3007 (rs6000_frame_align): New function.
3008 (rs6000_gdbarch_init): Set frame_align.
3009
f15ab4a7
AC
30102002-09-26 Andrew Cagney <ac131313@redhat.com>
3011
3012 From Grace Sainsbury <graces@redhat.com>:
3013 * Makefile.in (gdbtk-main.o): New target.
3014 (gdb.o): New target.
3015 (main_h): Define.
3016 (main.o): Update dependencies.
3017 (gdb$(EXEEXT)): Add gdb.o.
3018 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3019 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3020 (SUBDIR_GDBTK_CLEAN): Set.
3021 (install-gdbtk): Install the insight binary.
3022 (uninstall-gdbtk): New target.
3023 (all-gdbtk, clean-gdbtk): New rule.
3024 * top.c (use_windows): Default to zero.
3025 * main.c: Include "main.h".
3026 (main): Delete.
3027 (struct captured_main_args): Delete.
3028 (gdb_main): New function.
3029 * main.h: New file.
3030 * gdb.c: New File.
3031
e36180d7
AC
30322002-09-25 Andrew Cagney <cagney@redhat.com>
3033
3034 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3035 (frame_map_regnum_to_name): New function.
3036 (frame_map_name_to_regnum): New function.
3037 * frame.h (frame_map_name_to_regnum): Declare.
3038 (frame_map_regnum_to_name): Declare.
3039 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3040 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3041 * parse.c: Do not include "builtin-regs.h".
3042 (target_map_name_to_register): Delete function.
3043 (write_dollar_variable): Use frame_map_name_to_regnum.
3044 * parser-defs.h (target_map_name_to_register): Delete declaration.
3045 * expprint.c: Include "frame.h".
3046 (print_subexp): Use frame_map_regnum_to_name.
3047 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3048 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3049
8b69000d
AC
30502002-09-25 Andrew Cagney <ac131313@redhat.com>
3051
3052 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3053 wasn't saved, and the next innermost frame is a dummy, return the
3054 dummy frame's link register.
3055
046ca86a
JB
30562002-09-24 Jim Blandy <jimb@redhat.com>
3057
3058 Fix from Paul Breed:
3059 * main.c (captured_main): Add a `break' after the case for 'b'.
3060
94b66fa7
KS
30612002-09-24 Keith Seitz <keiths@redhat.com>
3062
3063 * varobj.c (c_type_of_child): Use get_target_type instead
3064 of TYPE_TARGET_TYPE.
3065
c214a6fd
FN
30662002-09-22 Fernando Nasser <fnasser@redhat.com>
3067
53cb0458
FN
3068 * source.c (get_current_or_default_source_symtab_and_line): Remove
3069 function.
3070 (set_default_source_symtab_and_line): New function. Attempts to
3071 determine a source file to list lines from if one is not currently
3072 defined.
3073 (get_current_source_symtab_and_line): Initialize sal.pc and
3074 sal.end fields.
3075 (set_current_source_symtab_and_line): Mark argument as const.
3076 * source.h: Update declarations and comments.
3077 * linespec.c (decode_line_1): Replace call to removed routine above.
3078 * stack.c (print_frame_info_base): Ditto.
3079 * cli/cli-cmds.c (edit_command): Ditto.
3080 (list_command): Ditto.
3081
30822002-09-22 Fernando Nasser <fnasser@redhat.com>
3083
d6020d45 3084 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 3085 sal.pc and sal.end fields.
c214a6fd
FN
3086 (get_current_or_default_source_symtab_and_line): Ditto.
3087 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3088 so we do not cause a new source symtab to be searched for (reverting an
3089 unintentional change from the 2002-09-20 patch).
3090 * scm-lang.c (scm_unpac): Ditto.
3091
cc3b68a5
AC
30922002-09-21 Andrew Cagney <cagney@redhat.com>
3093
3094 * complaints.c (symfile_explanations): Remove new-line from
3095 ``isolated_message''.
3096 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3097 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3098
5835abe7
NC
30992002-09-20 Nick Clifton <nickc@redhat.com>
3100
3101 * NEWS: Announce that V850EA ISA is no longer supported.
3102 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3103
a15ef5f5
DC
31042002-09-20 David Carlton <carlton@math.stanford.edu>
3105
06ba1b39
DC
3106 * Makefile.in (c-lang.o): Correct dependencies.
3107 (utils.o): Gather dependencies.
3108 (charset.o): Move.
a15ef5f5
DC
3109 * c-lang.c: #include "gdb_string.h"
3110
87885426
FN
31112002-09-20 Fernando Nasser <fnasser@redhat.com>
3112
3113 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3114 * cli/cli-cmds.c (list_command): New function. Implements the new
3115 cli edit command.
3116 (_init_cli_cmds): Add new command definition.
3117 * gdb.1: Document edit command.
3118 * doc/gdb.texinfo: Document edit command.
3119
31202002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
3121
3122 * source.c: Make global variables current_source_symtab and
3123 current_source_line static.
3124 (list_command): Moved to cli/cli-cmds.c.
3125 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3126 (get_first_line_listed): New accessor function.
3127 (get_lines_to_list): New accessor function.
3128 (get_current_source_symtab_and_line): New function. Retrieves the
3129 position in the source code that we consider current.
3130 (get_current_or_default_source_symtab_and_line): New function.
3131 Like the above but attempts to determine a default position if one
3132 is not currently defined.
3133 (set_current_source_symtab_and_line): New function. Sets the source
3134 code position considered current and returns the previously set one.
3135 (clear_current_source_symtab_and_line): Reset stored information about
3136 a current source line.
3137 (_initialize_source): Remove registration for the "list" command and
3138 its alias.
3139 * source.h: Add declarations for the new functions above.
3140 * symtab.h: Remove declarations for the global variables mentioned
3141 above.
3142 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3143 obtain current source line.
3144 * linespec.c (decode_line_1): Ditto.
3145 * macroscope.c (default_macro_scope): Ditto.
3146 * scm-lang.c (scm_unpac): Ditto.
3147 * stack.c (print_frame_info_base): Ditto.
3148 * symfile.c (clear_symtab_users): Ditto.
3149 * symtab.c (decode_line_spec): Ditto.
3150 * cli/cli-cmds.c (list_command): Moved here from source.c.
3151 (ambiguous_line_spec): Moved here from source.c.
3152 (_init_cli_cmds): Add definition for "list" and its alias.
3153 * Makefile.in: Update dependencies.
3154
ddd216ea
CV
31552002-09-20 Corinna Vinschen <vinschen@redhat.com>
3156
3157 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3158 with what gcc thinks is correct.
3159
6d305052
CV
31602002-09-20 Corinna Vinschen <vinschen@redhat.com>
3161
3162 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3163 multiple register push instruction.
3164
234b45d4
KB
31652002-09-19 Jim Blandy <jimb@redhat.com>
3166
3167 Add support for distinct host and target character sets.
3168 * charset.c, charset.h: New files.
3169 * c-exp.y: #include "charset.h".
3170 (yylex): Convert character and string literals to the target
3171 character set, before returning them as the semantic value of the
3172 token.
3173 * c-lang.c: #include "charset.h".
3174 (c_emit_char): Use charset-specific methods to recognize
3175 characters with backslash escape forms, to decide which characters
3176 to print literally and which to print using numeric escape
3177 sequences, and to convert target characters to host characters
3178 before printing.
3179 * utils.c: #include "charset.h".
3180 (no_control_char_error): New function.
3181 (parse_escape): Use charset-specific methods to recognize
3182 backslash escapes, parse `control character' notation, and convert
3183 characters from the host character set to the target character set.
3184 * configure.in: Set the default host character set.
3185 Check where to find iconv, and what its argument types might be.
3186 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3187 * Makefile.in (SFILES): List charset.c.
3188 (COMMON_OBS): List charset.o.
3189 (charset.o): New rule.
3190 (charset_h): New header dependency variable.
3191 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3192 (LIBICONV): New variable, set by configure.
3193 (CLIBS): Include $(LIBICONV) here.
3194 * aclocal.m4, config.in, configure: Regenerated.
3195
525d6a61
JB
31962002-09-19 Joel Brobecker <brobecker@gnat.com>
3197
3198 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3199 bison 1.35 warning.
3200
3ed93867
RE
32012002-09-19 Richard Earnshaw <rearnsha@arm.com>
3202
3203 * gdb_mbuild.sh: New file.
3204
437666f8
AC
32052002-09-19 Andrew Cagney <ac131313@redhat.com>
3206
3207 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3208
389e51db
AC
32092002-09-18 Andrew Cagney <ac131313@redhat.com>
3210
3211 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3212 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3213 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3214 valops.c, value.h: Revert previous change.
3215
3b4efeaa
MS
32162002-09-18 Michael Snyder <msnyder@redhat.com>
3217
3218 Preliminary support for Objective-C:
3219 * defs.h (language_objc): New enum value.
3220 (puts_filtered_tabular): Declaration only, exported from utils.c.
3221 (skip_quoted): Delete, declared in completer.h.
3222 * c-exp.y: Include completer.h.
3223 * p-exp.y: Ditto.
3224 * jv-exp.y: Ditto.
3225 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3226 New operator enum values.
3227 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3228 * language.c (binop_result_type): Handle language_objc case.
3229 (integral_type, character_type, string_type, boolean_type,
3230 structured_type, binop_type_check): Ditto.
3231 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3232 (struct objc_specific): Add to general_symbol_info.
3233 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3234 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3235 * parser-defs.h (struct objc_class_str): New struct type.
3236 (start_msglist, end_msglist, add_msglist): Declaration only,
3237 exported from objc-lang.c.
3238 * value.h (value_of_local, value_nsstring,
3239 call_function_by_hand_expecting_type): Exported from valops.c.
3240 * valops.c (find_function_addr): Export.
3241 (call_function_by_hand_expecting_type): New function.
3242 (value_of_local): New function.
3243 * symfile.c (init_filename_language_table): Add ".m" extension
3244 for Objective-C.
3245 * utils.c (puts_filtered_tabular): New function.
3246 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3247 (set/show demangle): Extend help-string to refer to ObjC.
3248 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3249 * stabsread.c (symbol_reference_defined): Objective-C symbols
3250 may contain colons: make allowances when scanning stabs strings
3251 for colons.
3252 (objc_find_colon): New function.
3253 * printcmd.c (address_info): If language == objc then print
3254 "self" instead of "this".
3255 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3256 OP_NSSTRING, and OP_SELF.
3257 (prefixify_subexp): Ditto.
3258 * source.c (print_source_lines): Mention objc in comment.
3259 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3260 method names.
3261
b9caf505
AC
32622002-09-18 Andrew Cagney <ac131313@redhat.com>
3263
3264 * complaints.h: Update copyright.
3265 (struct complaints): Declare.
3266 (struct complaint): Make `message' constant.
3267 (internal_complaint): Declare.
3268 (complaint): Declare.
3269 (complaint_root): Delete declaration.
3270 (symfile_complaints): Delete declaration.
3271 (struct complaints): Add opaque declaration.
3272 (clear_complaints): Add a complaints parameter.
3273 * complaints.c: Update copyright.
3274 (enum complaint_series): Define.
3275 (complaint_root): Delete.
3276 (struct complaints): Define.
3277 (complaint_sentinel, symfile_complaint_book): New variables.
3278 (symfile_explanations, symfile_complaints): New variables.
3279 New variables.
3280 (get_complaints): New function.
3281 (vcomplaint): New function.
3282 (complaint): New function.
3283 (internal_complaint): New function.
3284 (complain): Call vcomplain with symfile_complaint.
3285 (clear_complaints): Rewrite.
3286 (_initialize_complaints): Use add_setshow_command.
3287 * Makefile.in (complaints.o): Update dependencies.
3288 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3289 to call to clear_complaints.
3290 (new_symfile_objfile, reread_symbols): Ditto.
3291 (oldsyms_complaint): Delete.
3292 (empty_symtab_complaint, unknown_option_complaint): Delete.
3293 (free_named_symtabs): Use complaint instead of complain.
3294
d2e6263c
MS
32952002-09-18 Michael Snyder <msnyder@redhat.com>
3296
5fb2031a
AC
3297 Contributed by Apple Computer, Inc. Merged with current sources
3298 by Adam Fedor <fedor@doc.com> [cagney].
3299
d2e6263c
MS
3300 * objc-lang.c: First clean-up round: comments, indentation.
3301 * objc-lang.h: Ditto.
3302 * objc-lang.y: Ditto.
3303
dec43320
AC
33042002-09-18 Andrew Cagney <ac131313@redhat.com>
3305
3306 * maint.c (maintenance_internal_error): Print the parameter as the
3307 error message.
3308 (maintenance_internal_warning): New function.
3309 (_initialize_maint_cmds): Add command `maint internal-warning'.
3310
3311 * defs.h (internal_warning, internal_vwarning): Declare.
3312 * utils.c (struct internal_problem): Define.
3313 (internal_vproblem): New function.
3314 (internal_warning): New function.
3315 (internal_vwarning): New function.
3316 (internal_warning_problem, internal_error_problem): New variables.
3317 (internal_verror): Just call internal_vproblem.
3318
b81654f1
MS
33192002-09-18 Michael Snyder <msnyder@redhat.com>
3320
3321 * objc-lang.c: New file, support for Objective-C.
3322 Preliminary check-in, not yet integrated into gdb.
3323 * objc-lang.h: New file.
3324 * objc-exp.y: New file.
3325
0542c381
AC
33262002-09-18 Andrew Cagney <ac131313@redhat.com>
3327
7bda5e4a
AC
3328 * infrun.c (signal_stop_update): Convert definition to ISO C.
3329 (signal_print_update): Ditto.
3330 (signal_pass_update): Ditto.
3331 * inflow.c (terminal_save_ours): Ditto.
3332
5247b418
AC
3333 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3334 comments.
3335
fc60962c
AC
3336 * config/djgpp/fnchange.lst: Handle name clashes between
3337 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3338 bfd/coff-tic80.c.
3339
0542c381
AC
3340 * i386-linux-tdep.h: Fix tipo.
3341
5b924b9b
AF
33422002-09-18 Adam Fedor <fedor@gnu.org>
3343
3344 * MAINTAINERS: Add myself to the Write After Approval list.
3345
5afc051b
JB
33462002-09-18 Jim Blandy <jimb@redhat.com>
3347
3348 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3349 texthigh and textlow to reader-specific structs caused
3350 objfile_relocate to miss them. This is fixable, but the work that
3351 the change was supposed to prepare GDB for never got done anyway.
3352
eb944380
DC
33532002-09-18 David Carlton <carlton@math.stanford.edu>
3354
3355 * MAINTAINERS: Alphabetize Write After Approval list.
3356
948e66d9
DJ
33572002-09-18 Daniel Jacobowitz <drow@mvista.com>
3358
3359 Fix PR gdb/709
3360 * values.c (value_static_field): Call read_var_value.
3361
dc604539
AC
33622002-09-18 Andrew Cagney <ac131313@redhat.com>
3363
3364 * valops.c (hand_function_call): Align the initial stack pointer
3365 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3366 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3367 return value.
3368 * mips-tdep.c (mips_frame_align): New function.
3369 (mips_gdbarch_init): Set frame_align.
3370 * gdbarch.sh (FRAME_ALIGN): New method.
3371 * gdbarch.h, gdbarch.c: Re-generate.
3372
cb7e422f
ML
33732002-09-18 Michal Ludvig <mludvig@suse.cz>
3374
3375 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3376 registers.
3377
a094c6fb
AC
33782002-09-17 Andrew Cagney <ac131313@redhat.com>
3379
3380 * NEWS: Mention that MIPS $fp behavior changed.
3381 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3382 reference to FP_REGNUM.
3383 (mipsnbsd_cannot_store_register): Ditto.
3384 * mips-linux-nat.c: Update copyright.
3385 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3386 (mips_linux_cannot_store_register): Ditto.
3387 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3388 * config/mips/tm-mips.h: Update copyright.
3389 (FP_REGNUM): Delete macro.
3390 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3391 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3392 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3393 (mips_r3041_reg_names, mips_r3051_reg_names)
3394 (mips_r3081_reg_names): Replace "fp" with "".
3395 Fix PR gdb/480.
3396
45cf40d1
TR
33972002-09-17 Theodore A. Roth <troth@verinet.com>
3398
3399 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3400 generic_read_register_dummy() (PR gdb/703).
3401 (avr_push_return_address): #if 0 out unused vars.
3402 (avr_gdbarch_init): Enable use of avr_push_return_address().
3403
c7e701b5
MS
34042002-09-17 Michael Snyder <msnyder@redhat.com>
3405
d76ba2a5 3406 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
3407 RTE will take care of it.
3408
20bcf01c
AC
34092002-09-17 Andrew Cagney <ac131313@redhat.com>
3410
3411 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3412 invalid, return SP_REGNUM.
3413
009a9971 34142002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
3415
3416 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3417 point registers without sign extension.
3418
135c175f
AC
34192002-09-17 Andrew Cagney <cagney@redhat.com>
3420
3421 * blockframe.c (deprecated_read_register_dummy): Rename
3422 generic_read_register_dummy.
3423 * frame.c (frame_unwind_signed_register): New function.
3424 (frame_unwind_unsigned_register): New function.
3425 * frame.h (frame_unwind_signed_register): Declare.
3426 (frame_unwind_unsigned_register): Declare.
3427 (deprecated_read_register_dummy): Rename
3428 generic_read_register_dummy.
3429
3430 * h8300-tdep.c (h8300_frame_chain): Update.
3431 (h8300_frame_saved_pc): Update.
3432 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3433 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3434 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3435 (s390_frame_chain): Update.
3436 * v850-tdep.c (v850_find_callers_reg): Update.
3437 (v850_frame_saved_pc): Update.
3438 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3439 (m32r_find_callers_reg): Update.
3440 (m32r_frame_saved_pc): Update.
3441 * sh-tdep.c (sh_find_callers_reg): Update.
3442 (sh64_get_saved_pr): Update.
3443 (sh_init_extra_frame_info): Update.
3444 (sh_init_extra_frame_info): Update.
3445 (sh64_init_extra_frame_info): Update.
3446 (sh64_init_extra_frame_info): Update.
3447 * mcore-tdep.c (mcore_find_callers_reg): Update.
3448 (mcore_frame_saved_pc): Update.
3449 (mcore_init_extra_frame_info): Update.
3450 * i386-tdep.c (i386_frame_saved_pc): Update.
3451 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3452 (ia64_init_extra_frame_info): Update.
3453 (ia64_init_extra_frame_info): Update.
3454 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3455 * cris-tdep.c (cris_init_extra_frame_info): Update.
3456 * avr-tdep.c (avr_frame_chain): Update.
3457 (avr_init_extra_frame_info): Update.
3458 (avr_frame_saved_pc): Update.
3459 * arm-tdep.c (arm_find_callers_reg): Update.
3460 (arm_init_extra_frame_info): Update.
3461 (arm_frame_saved_pc): Update.
3462
a741e514
TT
34632002-09-17 Tom Tromey <tromey@redhat.com>
3464
3465 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3466 is "'".
3467
d1a8e808
CV
34682002-09-17 Corinna Vinschen <vinschen@redhat.com>
3469
3470 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3471 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3472 NEXT_PROLOGUE_INSN.
3473 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3474 NEXT_PROLOGUE_INSN.
3475
d9025a18
JB
34762002-09-16 Joel Brobecker <brobecker@gnat.com>
3477
3478 * osfsolib.c: Remove file, replaced by solib-osf.c.
3479 * Makefile.in: Remove compilation rules for osfsolib.c.
3480
1b2ef1b6
DC
34812002-09-16 David Carlton <carlton@math.stanford.edu>
3482
3483 * cp-valprint.c (cp_print_class_method): Correct args to
3484 check_stub_method_group.
3485
928e48af
CV
34862002-09-16 Corinna Vinschen <vinschen@redhat.com>
3487
3488 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3489 `set architecture'. Unify naming convention of functions.
3490 (h8300_skip_prologue): Improve prologue analysis.
3491 (h8300_push_arguments): Rewritten to more closely match GCC's
3492 bizarre argument-passing behavior, along with the comment describing
3493 said behavior.
3494 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3495 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3496 sim, remote-e7000.c, remote-hms.c and remote.c
3497
5e3397bb
MK
34982002-09-15 Mark Kettenis <kettenis@gnu.org>
3499
3500 * i386-tdep.c (gdb_print_insn_i386): Removed.
3501 (i386_print_insn): New function.
3502 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3503 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3504 tm_print_insn_info.
3505
f710f4fc
MK
35062002-09-14 Mark Kettenis <kettenis@gnu.org>
3507
3508 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3509 zero.
3510
db54fef4
CV
35112002-09-14 Corinna Vinschen <vinschen@redhat.com>
3512
3513 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3514 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3515 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3516
2becadee
CF
35172002-09-13 Christopher Faylor <cgf@redhat.com>
3518
3519 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3520
de17c821
DJ
35212002-09-13 Daniel Jacobowitz <drow@mvista.com>
3522
3523 * gdbtypes.c (check_stub_method): Make static.
3524 (check_stub_method_group): New function.
3525 * gdbtypes.h: Update prototypes.
3526 * cp-support.c: New file.
3527 * cp-support.h: New file.
3528
3529 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3530 (update_method_name_from_physname): New function.
3531 (read_member_functions): Correct method names for operators
3532 and v3 constructors/destructors. Separate v2 constructors and
3533 destructors.
3534 * Makefile.in (stabsread.o): Update dependencies.
3535 (SFILES): Add cp-support.c.
3536 (COMMON_OBS): Add cp-support.o.
3537 (cp_support_h, cp-support.o): Add.
3538
3539 * cp-valprint.c (cp_print_class_method): Call
3540 check_stub_method_group instead of check_stub_method. Remove
3541 extraneous QUITs.
3542 * p-valprint.c (pascal_object_print_class_method): Likewise.
3543 * valops.c (search_struct_method): Likewise.
3544 (find_method_list, value_struct_elt_for_reference): Likewise.
3545
e76cff22
AC
35462002-09-13 Andrew Cagney <cagney@redhat.com>
3547
3548 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3549 * gdbarch.h, gdbarch.c: Regenerate.
3550
905abb3f
AC
35512002-09-13 Andrew Cagney <ac131313@redhat.com>
3552
3553 * frame.c (find_saved_register): Delete function.
3554 * frame.h (find_saved_register): Delete declaration.
3555 Fix PR gdb/631.
3556
64159455
AC
3557Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3558
3559 * mips-tdep.c (read_next_frame_reg): Re-hack using
3560 frame_register_unwind.
3561
795e1e11
AC
3562Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3563
3564 * mips-tdep.c (mips_get_saved_register): Re-hack using
3565 frame_register_unwind.
3566
5720643c
JB
35672002-09-12 Joel Brobecker <brobecker@gnat.com>
3568
3569 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3570 vector. Will be useful for Interix.
3571 * gdbarch.h, gdbarch.c: Regenerate.
3572
3573 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3574 name of the malloc function by NAME_OF_MALLOC.
3575
3bada2a2
JB
35762002-09-12 Joel Brobecker <brobecker@gnat.com>
3577
3578 * value.h (find_function_in_inferior): Add const keyword to
3579 one of the parameters. Allows us to invoke this function with
3580 a const char *.
3581 * valops.c (find_function_in_inferior): Likewise.
3582
3db26b01
JB
35832002-09-12 Joel Brobecker <brobecker@gnat.com>
3584
3585 * exec.c (xfer_memory): Fix compilation warning with old versions
3586 of GCC.
3587 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3588
17c5ed2c
DC
35892002-09-12 David Carlton <carlton@math.stanford.edu>
3590
3591 * symtab.h: Run through gdb_indent.h.
3592 Add 2002 to Copyright year list.
3593
ecd1107e
AM
35942002-09-12 Alan Modra <amodra@bigpond.net.au>
3595
3596 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3597 mach constants.
3598 * MAINTAINERS: Add myself to write after approval list.
3599
e64f66d1
JB
36002002-09-11 J. Brobecker <brobecker@gnat.com>
3601
3602 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3603
f9395794
JB
36042002-09-11 J. Brobecker <brobecker@gnat.com>
3605
3606 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3607 Interix.
3608
1a303dec
MS
36092002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3610
3611 * procfs.c (do_detach): Clear current signal, not just fault.
3612 Corrects problem with breakpoint trap signal leaking to detached
3613 process on Tru64.
3614
c0219d42
MS
36152002-09-10 Michael Snyder <msnyder@redhat.com>
3616
3617 * buildsym.c (finish_block): Protect against null pointer.
3618
9d84ac84
AC
36192002-09-10 Andrew Cagney <cagney@redhat.com>
3620
3621 * infcmd.c (default_print_registers_info): Send all output to
3622 ``file'' instead of ``gdb_stdout''.
3623
77d8f2b4
MS
36242002-09-10 Michael Snyder <msnyder@redhat.com>
3625
3626 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3627 LONGEST, and use signed register read (addresses are sign-
3628 extended for mips).
3629
99656a61
SC
36302002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3631
3632 * event-loop.c (gdb_do_one_event): Make public.
3633 * event-loop.h (gdb_do_one_event): Declare.
3634
da12f4d8
JL
36352002-09-10 Jeff Law <law@redhat.com>
3636
3637 * infttrace.c (child_resume): Simplify and rework to avoid
3638 TT_PROC_CONTINUE.
3639
d0aee0c4
FF
36402002-09-09 Fred Fish <fnf@intrinsity.com>
3641
3642 * printcmd.c (print_scalar_formatted): "len" is the number of
3643 target bytes, NOT the number of target bits.
3644
7cb3ec5e
EZ
36452002-09-09 Elena Zannoni <ezannoni@redhat.com>
3646
3647 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3648 * top.c (init_main): Set rl_terminal_name.
3649
4dc81987
AS
36502002-09-08 Aidan Skinner <aidan@velvet.net>
3651
3652 * ada-lang.c (ada_array_bound, ada_type_match,
3653 _initialize_ada_language): Fix K&R definitions.
3654 * ada-tasks.c (get_current_task): Fix K&R definitions.
3655 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3656
842330b4
CF
36572002-09-07 Christopher Faylor <cgf@redhat.com>
3658
3659 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3660 Add XP.
3661
43156d82
MK
36622002-09-06 Mark Kettenis <kettenis@gnu.org>
3663
66da5fd8
MK
3664 * i386-tdep.c (i386_register_virtual_type,
3665 i386_register_convertible, i386_register_convert_to_virtual,
3666 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3667 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3668 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3669 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3670 Don't set push_arguments twice.
3671
4b218c18
MK
3672 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3673 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3674 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3675 sigtramp_end to NULL.
3676 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3677 defines.
3678 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3679
4cc314d5
MK
3680 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3681 whitespace.
3682
43156d82
MK
3683 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3684 * gdbarch.h, gdbarch.c: Re-generate.
3685 * blockframe.c (find_pc_sect_partial_function): Convert to use
3686 SIGTRAMP_START_P predicate.
3687
6672060b
MS
36882002-09-05 Michael Snyder <msnyder@redhat.com>
3689
a90c3637
MS
3690 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3691 generic_dummy_frame method and old method. Also distinguish
3692 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3693 (arm_extract_return_value): Use new regcache method.
a90c3637 3694
6672060b
MS
3695 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3696 adjustment that doesn't conform to the ABI.
3697 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3698 saved regcache, not from current regcache.
3699
299ffc64
AC
37002002-09-05 Andrew Cagney <ac131313@redhat.com>
3701
3702 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3703 * README: Update.
3704
a3a2ee65
JT
37052002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3706
3707 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3708 if arm_apcs_32 is false.
3709
2bc7eea9
AC
37102002-09-04 Andrew Cagney <ac131313@redhat.com>
3711
3712 GDB 5.3 branch created.
3713
8a55a7c5
TR
37142002-09-03 Theodore A. Roth <troth@verinet.com>
3715
3716 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3717 generic_unwind_get_saved_register.
3718
e26fb1d7
DC
37192002-09-03 David Carlton <carlton@math.stanford.edu>
3720
3721 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3722 argument (PR gdb/653). Update call to smash_to_method_type.
3723 (read_structure_scope): Update call to dwarf2_add_member_fn.
3724
30d52491
ML
37252002-09-03 Michal Ludvig <mludvig@suse.cz>
3726
3727 * x86-64-linux-tdep.c: Include gdb_string.h
3728 * x86-64-linux-nat.c: Ditto.
3729
06891d83
JT
37302002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3731
3732 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3733 when YYDEBUG is set to 1.
3734 * c-exp.y: Likewise.
3735 * f-exp.y: Likewise.
3736 * jv-exp.y: Likewise.
3737 * m2-exp.y: Likewise.
3738 * p-exp.y: Likewise.
3739
7d400e77
JT
37402002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3741
3742 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3743 dependency list.
3744 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3745 solib_svr4_fetch_link_map_offsets to
3746 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3747 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3748 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3749 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3750 solib-svr4.o, and solib-legacy.o.
3751 * config/i386/tm-nbsd.h: Include solib.h.
3752
704a27c4
JT
37532002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3754
3755 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3756 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3757 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3758 comment noting that this needs its own target configuration.
3759 * config/i386/nbsd.mt: New file.
3760 * config/i386/nbsdaout.mt: Remove.
3761 * config/i386/nbsdelf.mt: Ditto.
3762 * config/i386/tm-nbsdaout.h: Ditto.
3763
d66198e1
JT
37642002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3765
3766 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3767 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3768 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3769 tdep->sigtramp_end.
3770 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3771 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3772 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3773
3cac699e
JT
37742002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3775
3776 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3777 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3778 * i386-tdep.h (i386bsd_init_abi): New prototype.
3779 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3780 function declaration.
3781 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3782 for NetBSD-a.out or NetBSD-ELF.
3783 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3784 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3785 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3786 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3787 and nbsd-tdep.h.
3788 (i386nbsd_pc_in_sigtramp): New function.
3789 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3790 i386nbsd_pc_in_sigtramp.
3791 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3792 and i386nbsdelf_init_abi OS ABI handlers.
3793 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3794 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3795
7010ca0a
MK
37962002-09-02 Mark Kettenis <kettenis@gnu.org>
3797
3798 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3799 registers if the target really has them.
3800
6dd93b72
JT
38012002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3802
3803 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3804 than nbsd-tdep.h.
3805
2ca8ae21
JT
38062002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3807
3808 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3809 list.
3810 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3811 (alphanbsd_skip_sigtramp_frame): New functions.
3812 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3813 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3814 to alphanbsd_sigcontext_addr.
3815
3d9b49b0
JT
38162002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3817
3818 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3819 list.
3820 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3821 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3822 nbsd_pc_in_sigtramp.
3823 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3824 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3825 * nbsd-tdep.c: Include gdb_string.h.
3826 (nbsd_pc_in_sigtramp): New function.
3827 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3828 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3829 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3830 ppcnbsd_pc_in_sigtramp.
3831 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3832 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3833 shnbsd_pc_in_sigtramp.
3834 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3835 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3836 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3837
c860120c
PM
38382002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3839
3840 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3841 watchpoints to NULL.
3842 (insert_breakpoints): set val field of watchpoints if NULL.
3843
3844
c7612d53
JB
38452002-08-29 Jim Blandy <jimb@redhat.com>
3846
3847 * symtab.c (lookup_symbol_aux): In the cases where we find a
3848 minimal symbol of an appropriate name and use its address to
3849 select a symtab to read and search, use `name' (as passed to us)
3850 as the demangled name when searching the symtab's global and
3851 static blocks, not the minsym's name.
3852
66609862
KS
38532002-08-29 Keith Seitz <keiths@redhat.com>
3854
3855 * stack.c (print_frame_info_base): Always set current_source_symtab
3856 and current_source_line.
3857
151fefe2
JB
38582002-08-29 Donn Terry <donnte@microsoft.com>
3859
3860 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3861
bfb3754e
KS
38622002-08-28 Keith Seitz <keiths@redhat.com>
3863
3864 * stack.c (select_frame): Add FIXME concerning selected-frame
3865 events.
3866 (select_frame_command): Send selected-frame-level-changed
3867 event notification, but only if the level actually changed.
3868 (up_silently_base): Add selected-frame-level-changed event
3869 notification.
3870 (down_silently_base): Likewise.
3871
e822a2a0
AC
38722002-08-28 Andrew Cagney <ac131313@redhat.com>
3873
3874 * Makefile.in: Update dependencies for all gdb/*.c files.
3875
309367d4
TT
38762002-08-27 Tom Tromey <tromey@redhat.com>
3877
3878 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3879 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3880 Update dependencies.
3881 * i387-tdep.c: Include gdb_string.h.
3882 * osabi.c: Likewise.
3883 * i386-linux-nat.c: Likewise.
3884 * lin-lwp.c: Likewise.
3885 * ax-gdb.c: Likewise.
3886 * signals/signals.c: Likewise.
3887 * jv-valprint.c: Likewise.
3888 * p-lang.c: Likewise.
3889 * c-valprint.c: Likewise.
3890 * cp-abi.c: Likewise.
3891
e1507482
EZ
38922002-08-27 Elena Zannoni <ezannoni@redhat.com>
3893
3894 * cli/cli-script.h (copy_command_lines): Export.
3895 * breakpoint.c: Include cli/cli-script.h.
3896 * Makefile.in (breakpoint.o): Update dependencies.
3897
c6510018
MS
38982002-08-26 Michael Snyder <msnyder@redhat.com>
3899
3900 * breakpoint.c (insert_breakpoints): Protect all references
3901 to 'process_warning'. Shorten long lines.
3902
c2b8ed2c
MS
39032002-08-26 Joel Brobecker <brobecker@gnat.com>
3904
3905 * cli/cli-script.c (copy_command_lines): New function.
3906 * defs.h (copy_command_lines): Export.
3907 * testsuite/gdb.base/commands.exp: New tests for commands
3908 attached to a temporary breakpoint, and for commands that
3909 delete the breakpoint they are attached to.
3910
39112002-08-26 Michael Snyder <msnyder@redhat.com>
3912
3913 * breakpoint.c (bpstat_stop_status): Instead of copying the
3914 pointer to the breakpoint commands struct, make a new copy
3915 of the struct and point to that.
3916 (bpstat_clear): Free the commands struct.
3917 (bpstat_clear_actions): Free the commands struct.
3918 (bpstat_do_actions): Free the command actions. Also execute
3919 the local cleanups, instead of deleting them.
3920 (delete_breakpoint): Leave the commands field of the bpstat
3921 chain alone -- it will be freed later.
3922
64b84175
KB
39232002-08-26 Kevin Buettner <kevinb@redhat.com>
3924
3925 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3926 deleted in 2002-08-20 commit. This function is still used by
3927 ppc-linux-nat.c.
3928
55970da6
KS
39292002-08-26 Keith Seitz <keiths@redhat.com>
3930
3931 * gdb-events.sh: Add selected-frame-level-changed event.
3932 * gdb-events.c: Regenerated.
3933 * gdb-events.h: Regenerated.
3934
a790ad35
SC
39352002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3936
3937 Fix PR gdb/393:
3938 * inflow.c (terminal_save_ours): New function to save terminal
3939 settings.
3940 * inferior.h (terminal_save_ours): Declare.
3941 * target.c (debug_to_terminal_save_ours): New function.
3942 (cleanup_target): Defaults to_terminal_save_ours.
3943 (update_current_target): Inherit to_terminal_save_ours.
3944 (setup_target_debug): Set to_terminal_save_ours.
3945 * target.h (target_terminal_save_ours): New to save terminal settings.
3946 (target_ops): New member to_terminal_save_ours.
3947 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3948 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3949 * inftarg.c (init_child_ops): Likewise.
3950 * m3-nat.c (init_m3_ops): Likewise.
3951 * procfs.c (init_procfs_ops): Likewise.
3952 * wince.c (init_child_ops): Likewise.
3953 * win32-nat.c (init_child_ops): Likewise.
3954 * sol-thread.c (init_sol_thread_ops): Likewise.
3955
c00dcbe9
MK
39562002-08-26 Mark Kettenis <kettenis@gnu.org>
3957
3d7f4f49
MK
3958 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3959 use regcache_* functions.
3960 (i386_gdbarch_init): Set store_return_value instead of
3961 deprecated_store_return_value.
3962
c00dcbe9
MK
3963 * regcache.c (regcache_raw_write_signed,
3964 regcache_raw_write_unsigned): New functions.
3965 * regcache.h (regcache_raw_write_signed,
3966 regcache_raw_write_unsigned): New prototypes.
3967
0e0d15ca
AC
39682002-08-25 Andrew Cagney <ac131313@redhat.com>
3969
3970 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3971 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3972 source file dependencies. Cleanup corresponding generator rules.
3973
d3b22ed5
AC
39742002-08-25 Andrew Cagney <ac131313@redhat.com>
3975
3976 * regcache.h (register_offset_hack): Declare.
3977 (regcache_cooked_read_using_offset_hack): Declare.
3978 (regcache_cooked_write_using_offset_hack): Declare.
3979
3980 * regcache.c (register_offset_hack): New function.
3981 (regcache_cooked_read_using_offset_hack): New function.
3982 (regcache_cooked_write_using_offset_hack): New function.
3983 (regcache_dump): Check that the registers, according to their
3984 offset, are packed hard against each other.
3985 (cooked_xfer_using_offset_hack): New function.
3986
bb425013
AC
39872002-08-25 Andrew Cagney <ac131313@redhat.com>
3988
3989 * regcache.c (struct regcache_descr): Add field register_type.
3990 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3991 in as a parameter
3992 (init_regcache_descr): Initialize register_type. Pass the descr
3993 to init_legacy_regcache_descr. Use register_type instead of
3994 REGISTER_VIRTUAL_TYPE.
3995 (register_type): New function.
3996 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3997 * regcache.h (register_type): Declare.
3998
d0403e00
AC
39992002-08-25 Andrew Cagney <ac131313@redhat.com>
4000
4001 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4002 instead of deprecated_store_return_value. Fix fallout from
4003 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4004
0ed04cce
AC
40052002-08-25 Andrew Cagney <ac131313@redhat.com>
4006
4007 * regcache.c (max_register_size): New function.
4008 (init_legacy_regcache_descr): Ensure that max_register_size is
4009 large enough for REGISTER_VIRTUAL_SIZE.
4010 * regcache.h (max_register_size): Declare.
4011
46d79c04
AC
40122002-08-24 Andrew Cagney <ac131313@redhat.com>
4013
4014 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4015 store_return_value.
4016 (e500_extract_return_value): Change type of valbuf pointer to
4017 void.
4018
853c7bd0
MK
40192002-08-24 Mark Kettenis <kettenis@gnu.org>
4020
cd87e769
MK
4021 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4022 workaround.
4023
853c7bd0
MK
4024 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4025 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4026 long long) to prevent compiler warning on 64-bit systems.
4027
ebba8386
AC
40282002-08-23 Andrew Cagney <cagney@redhat.com>
4029
4030 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4031 (DEPRECATED_STORE_RETURN_VALUE): New method.
4032 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4033 * gdbarch.h, gdbarch.c: Re-generate.
4034
4035 * values.c (set_return_value): Pass current_regcache to
4036 STORE_RETURN_VALUE.
4037 * arch-utils.h (legacy_store_return_value): Declare.
4038 * arch-utils.c (legacy_store_return_value): New function.
4039 (legacy_extract_return_value): Update parameters.
4040
4041 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4042 STORE_RETURN_VALUE.
4043 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4044 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4045 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4046 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4047 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4048 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4049 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4050 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4051 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4052 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4053
4054 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4055 * i386-tdep.c (i386_extract_return_value): Update.
4056 * arch-utils.c (legacy_extract_return_value): Update.
4057 * frv-tdep.c (frv_gdbarch_init): Update.
4058 * cris-tdep.c (cris_gdbarch_init): Update.
4059 * d10v-tdep.c (d10v_gdbarch_init): Update.
4060 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4061 * m68k-tdep.c (m68k_gdbarch_init): Update.
4062 * mcore-tdep.c (mcore_gdbarch_init): Update.
4063 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4064 * s390-tdep.c (s390_gdbarch_init): Update.
4065 * sparc-tdep.c (sparc_gdbarch_init): Update.
4066 * sh-tdep.c (sh_gdbarch_init): Update.
4067 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4068 * v850-tdep.c (v850_gdbarch_init): Update.
4069 * avr-tdep.c (avr_gdbarch_init): Update.
4070 * ia64-tdep.c (ia64_gdbarch_init): Update.
4071 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4072 * vax-tdep.c (vax_gdbarch_init): Update.
4073 * alpha-tdep.c (alpha_gdbarch_init): Update.
4074 * arm-tdep.c (arm_gdbarch_init): Update.
4075 * mips-tdep.c (mips_gdbarch_init): Update.
4076 * i386-tdep.c (i386_gdbarch_init): Update.
4077
5bd8c6d0
AC
40782002-08-23 Andrew Cagney <ac131313@redhat.com>
4079
4080 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4081 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4082
e73e1724
MK
40832002-08-24 Mark Kettenis <kettenis@gnu.org>
4084
4085 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4086 problems.
4087
3e6564e1
JB
40882002-08-23 Joel Brobecker <brobecker@gnat.com>
4089
4090 * infrun.c (handle_inferior_event): Move a comment outside of a
4091 function call, in order to avoid indent reformatting this part
4092 of the code in an unreadable way.
4093
81d0cc19
GS
40942002-08-23 Grace Sainsbury <graces@redhat.com>
4095
4096 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4097 when breakpoints fail. Move general breakpoint error messages to
4098 insert_breakpoints.
4099 * breakpoint.c (insert_breakpoints): Change warnings when
4100 breakpoints are nto inserted to specify the type. Remove call to
4101 memory_error when hardware breakpoints can't be inserted. Remove
4102 multiple calls to warning so all messages are sent to the user at
4103 once.
4104 (delete_breakpoints): Make insert error messsages more explicit.
4105
17574093
DJ
41062002-08-23 Daniel Jacobowitz <drow@mvista.com>
4107
4108 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4109 gdbserver/ChangeLog.
4110
8acc2935
MK
41112002-08-23 Mark Kettenis <kettenis@gnu.org>
4112
dfe01d39
MK
4113 * i386-tdep.c: Include "objfiles.h".
4114 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4115 skip_trampoline_code.
4116 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4117 (CPLUS_MARKER): Define to '.'.
4118
8acc2935
MK
4119 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4120 member.
4121 (linux_corefile_thread_callback): Increase args->num_notes.
4122 (linux_make_note_section): Initialize thread_args.num_notes, and
4123 use it to determine whether notes for any threads were created.
4124
151fefe2 41252002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
4126
4127 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4128 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4129 and PCUNKILL.
4130 (write_with_trace): Conditionalize out the switch branch handling
4131 PCSHOLD if the corresponding macro is not defined. Likewise for
4132 PRSABORT and PRSTOP.
4133 This change will be needed by the Interix port.
4134
e1507482
EZ
41352002-08-22 Elena Zannoni <ezannoni@redhat.com>
4136
4137 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4138 write_register wherever possible instead of manipulating the
4139 register bytes directly.
4140 Assign VALUE_CONTENTS to a variable and use that.
4141 The GPR numbers are now dependent on the architecture.
4142
96ff0de4
EZ
41432002-08-22 Elena Zannoni <ezannoni@redhat.com>
4144
4145 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4146 ev_offset fields.
4147 (skip_prologue): Add support for BookE/e500 instructions.
4148 (e500_extract_return_value): New function.
4149 (frame_get_saved_regs): Add support for saving ev registers and
4150 pseudo gpr's.
4151 (e500_store_return_value): New function.
4152 (rs6000_gdbarch_init): Move up default intializations of
4153 deprecated_extract_return_value and store_return_value. Overwrite
4154 init of store_return_value with e500 specific version.
4155 Set extract_return_value for e500.
4156
fbefca5b
EZ
41572002-08-22 Elena Zannoni <ezannoni@redhat.com>
4158
4159 * blockframe.c (generic_call_dummy_register_unwind): Use
4160 regcache_cooked_read to catch cases in which the variable is
4161 stored in a pseudo register.
4162
4d210288
AC
41632002-08-22 Andrew Cagney <cagney@redhat.com>
4164
4165 * NEWS: Mention that the i960 has been made obsolete.
4166 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4167 i960-tdep.c
4168 (remote-nrom.o): Obsolete target.
4169 (remote-nindy.o, i960-tdep.o): Ditto.
4170 * remote-nrom.c: Make file obsolete.
4171 * remote-nindy.c, remote-vx960.c: Ditto.
4172 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4173 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4174 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4175 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4176 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4177 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4178 i960-*-vxworks* obsolete.
4179 * MAINTAINERS: Note that the i960 is obsolete.
4180
6c0c456d
CV
41812002-08-21 Corinna Vinschen <vinschen@redhat.com
4182
4183 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4184 detach to allow reinitialization.
4185
9f9d12b3
AC
41862002-08-22 Andrew Cagney <ac131313@redhat.com>
4187
4188 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4189 attempt).
4190
ebeb39fe
JB
41912002-08-22 Jim Blandy <jimb@redhat.com>
4192
4193 * coffread.c (coff_symfile_read): Don't try to read the line
4194 number table from disk if the image file doesn't have a symbol
4195 table; we'll never actually look at the info anyway, and Windows
4196 ships DLL's with bogus file offsets for the line number data.
4197
5bf1c677
EZ
41982002-08-21 Elena Zannoni <ezannoni@redhat.com>
4199
4200 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4201 an e500 executable.
4202
71b8ef93
MS
42032002-08-21 Michael Snyder <msnyder@redhat.com>
4204
4205 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4206 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
4207 (DEFAULT_MIPS_TYPE): Delete unused macro.
4208 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4209 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 4210
d174216d
JB
42112002-08-21 Jim Blandy <jimb@redhat.com>
4212
4213 * valops.c (value_cast): Simplify and correct logic for doing a
4214 static cast from a pointer to a base class to a pointer to a
4215 derived class.
4216
0ab7a791
AC
42172002-08-21 Andrew Cagney <ac131313@redhat.com>
4218
4219 * infcmd.c (default_print_registers_info): Replace
4220 do_registers_info.
4221 (registers_info): Use gdbarch_print_registers_info instead of
4222 DO_REGISTERS_INFO.
4223 * inferior.h (default_print_registers_info): Replace
4224 do_registers_info.
4225 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4226 (DO_REGISTERS_INFO): Change to a predicate function.
4227 * gdbarch.h, gdbarch.c: Regenerate.
4228
e23792cc
KS
42292002-08-21 Keith Seitz <keiths@redhat.com>
4230
4231 * gdb-events.sh: Add target-changed event.
4232 * gdb-events.c: Regenerated.
4233 * gdb-events.c: Regenerated.
4234 * valops.c (value_assign): Add target-changed event notification
4235 to inlval_register, lval_memory, and lval_reg_frame_relative.
4236
9fb14e79
JB
42372002-08-21 Joel Brobecker <brobecker@gnat.com>
4238
4239 * NEWS: Add an entry regarding the improvement of the next/step
4240 operation on Alpha Tru64 multi-processor machines.
4241
6d39a69f
AC
42422002-08-21 Andrew Cagney <ac131313@redhat.com>
4243
72acd513
AC
4244 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4245 directores.
342af04b 4246 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
4247 * Makefile.in (install-gdbtk): Move to install section.
4248 (rdi-share/libangsd.a): Move to end of file.
4249
fa5f27c7
AC
42502002-08-19 Andrew Cagney <ac131313@redhat.com>
4251
4252 * frame.c (frame_register_unwind): When a register, set addrp to
4253 the register's byte.
4254
5a89d8aa
MS
42552002-08-20 Michael Snyder <msnyder@redhat.com>
4256
4257 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4258 used locally, so move them from the target machine header to here.
4259 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4260 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4261 Make static.
4262 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4263
822e978b
AC
42642002-08-20 Andrew Cagney <cagney@redhat.com>
4265
4266 * NEWS: Mention that the Apollo line was made obsolete.
4267 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4268 m68*-hp-hpux* obsolete.
4269 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4270 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4271 * buildsym.c (make_blockvector): Make static.
4272 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4273 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4274 (ALLDEPFILES): Remove dstread.c.
4275 (dstread.o): Obsolete make rule.
4276 * dstread.c: Makefile obsolete.
4277 * dst.h: Ditto.
4278 * config/m68k/hp300hpux.mt: Ditto.
4279 * config/m68k/hp300hpux.mh: Ditto.
4280 * config/m68k/hp300bsd.mt: Ditto.
4281 * config/m68k/hp300bsd.mh: Ditto.
4282 * config/m68k/apollo68b.mt: Ditto.
4283 * config/m68k/apollo68v.mh: Ditto.
4284 * config/m68k/apollo68b.mh: Ditto.
4285
e41b17f0
MS
42862002-08-20 Michael Snyder <msnyder@redhat.com>
4287
4288 * mips-tdep.c (mips_in_return_stub): Make static.
4289 (mips_gdbarch_init): Set in_solib_return_trampoline.
4290 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4291
d50355b6
MS
42922002-08-20 Michael Snyder <msnyder@redhat.com>
4293
4294 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4295 * gdbarch.c, gdbarch.h: Regenerate.
4296 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4297 Add.
4298 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4299
757a7cc6
MS
43002002-08-20 Michael Snyder <msnyder@redhat.com>
4301
4302 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4303 (mips_gdbarch_init): Set skip_trampoline_code,
4304 in_solib_call_trampoline.
4305 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4306 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4307
c8001721
EZ
43082002-08-20 Elena Zannoni <ezannoni@redhat.com>
4309
4310 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4311
4312 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4313 vector type for ev registers.
4314 (e500_pseudo_register_read): New function.
4315 (e500_pseudo_register_write): New function.
4316 (e500_dwarf2_reg_to_regnum): New function.
4317 (PPC_UISA_NOFP_SPRS): New macro.
4318 (PPC_EV_REGS): New macro.
4319 (PPC_GPRS_PSEUDO_REGS): New macro.
4320 (registers_e500): New register set for e500.
4321 (variants): Add e500 variant.
4322 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4323 before setting architectural dependent variations. Initialize ev
4324 registers numbers. Add case for e500 architecture. Set the
4325 number of pseudo registers.
4326
64366f1c
EZ
43272002-08-20 Elena Zannoni <ezannoni@redhat.com>
4328
4329 * rs6000-tdep.c: Clean up comments.
4330
7e78f0ca
AC
43312002-08-20 Andrew Cagney <cagney@redhat.com>
4332
4333 * h8300-tdep.c: Re-indent file.
4334
697f7479
JB
43352002-08-20 Jim Blandy <jimb@redhat.com>
4336
4337 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4338 default for this.
697f7479 4339
e86ae29f
KS
43402002-08-20 Keith Seitz <keiths@redhat.com>
4341
4342 * breakpoints.c (watch_command_1): Use internal breakpoint
4343 when setting a watchpoint_scope breakpoint.
4344
216b504f
EZ
43452002-08-20 Elena Zannoni <ezannoni@redhat.com>
4346
4347 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4348 (build_builtin_type_vec64i): Ditto.
4349 (build_builtin_type_vec128): Ditto.
4350 (build_builtin_type_vec128i): Ditto.
4351
f7ab6ec6
MS
43522002-08-19 Michael Snyder <msnyder@redhat.com>
4353
4354 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4355 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4356 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4357 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4358 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4359 CALL_DUMMY_ADDRESS): Delete.
4360 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4361 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4362 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4363 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4364 push_return_address.
4365 (mips_register_raw_size, mips_eabi_use_struct_convention,
4366 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4367 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4368 mips_init_extra_frame_info, mips_eabi_push_arguments,
4369 mips_n32n64_push_arguments, mips_push_return_address,
4370 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4371 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4372
b5d1566e
MS
43732002-08-19 Michael Snyder <msnyder@redhat.com>
4374
4375 * mips-tdep.c (mips_frame_num_args): New function.
4376 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4377 frame_saved_pc, frame_args_address, frame_locals_address,
4378 frame_num_args, and frame_args_skip.
4379 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4380 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4381 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4382 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4383
2f1488ce
MS
43842002-08-20 Michael Snyder <msnyder@redhat.com>
4385
4386 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4387 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4388 * mips-tdep.c (mips_store_struct_return): New function.
4389 (mips_extract_struct_value_address): New function.
4390 (mips_gdbarch_init): Set store_struct_return and
4391 extract_struct_value_address.
4392
41ff2da1
DC
43932002-08-20 David Carlton <carlton@math.stanford.edu>
4394
4395 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4396 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4397 (read_file_scope): Check that line_header is nonzero before
4398 decoding macro information.
4399
e5451d58
MK
44002002-08-20 Mark Kettenis <kettenis@gnu.org>
4401
4402 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4403 flag the general-purpose registers as floating-point on targets
4404 that don't support the floating-point registers.
4405
4a6daafa
EZ
44062002-08-20 Elena Zannoni <ezannoni@redhat.com>
4407
4408 * rs6000-tdep.c (altivec_register_p): Delete.
4409 (rs6000_do_altivec_registers): Delete.
4410 (rs6000_altivec_registers_info): Delete.
4411 (rs6000_do_registers_info): Delete.
4412 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4413 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4414
ab4327e0
EZ
44152002-08-20 Elena Zannoni <ezannoni@redhat.com>
4416
4417 * infcmd.c (do_registers_info): Print vector registers in hex
4418 format only.
4419 (print_vector_info): Check that printing registers
4420 makes sense.
4421 (print_float_info): Ditto.
4422
cb1d2653
AC
44232002-08-20 Andrew Cagney <ac131313@redhat.com>
4424
4425 * mips-tdep.c (mips_gdbarch_init): Update.
4426 (mips_o32_extract_return_value): Rewrite.
4427 (mips_o32_store_return_value): Rewrite.
4428 (mips_o32_xfer_return_value): New function.
4429 (mips_xfer_register): Tweak debug print message. Allow for
4430 buf_offset when dumping the value transfered.
4431
dfc3d9b2
AC
44322002-08-20 Andrew Cagney <ac131313@redhat.com>
4433
4434 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4435 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4436 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4437 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4438 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4439
7807aa61
MS
44402002-08-14 Michael Snyder <msnyder@redhat.com>
4441
4442 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4443
489461e2
EZ
44442002-08-19 Elena Zannoni <ezannoni@redhat.com>
4445
4446 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4447 register.
4448 (P): New macro to define a register as a pseudo register.
4449 (R, R4, R8, R16, FR32, R64, R0): Updated.
4450 (struct variant): Add new fields for number of pseudo registers
4451 and number of total registers.
4452 (tot_num_registers): New macro replacing....
4453 (num_registers): ...deleted macro.
4454 (num_registers): New function.
4455 (num_pseudo_registers): New function.
4456 (variants): Update all variants to intialize new fields correctly.
4457 Postpone initialization of number of pseudo regs and real regs.
4458 (init_variants): New function.
4459 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4460 registers offsets.
4461
fcaffe4c
DC
44622002-08-19 David Carlton <carlton@math.stanford.edu>
4463
2c2738a0
DC
4464 * valops.c (search_struct_field): Change error message to treat
4465 return value of 0 from value_static_field as meaning that field is
4466 optimized out.
4467 (value_struct_elt_for_reference): Ditto.
4468 * values.c (value_static_field): Treat an unresolved location the
4469 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4470 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4471 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4472 * MAINTAINERS: Add self to Write After Approval list.
4473
88658117
AC
44742002-08-19 Andrew Cagney <ac131313@redhat.com>
4475
4476 * mips-tdep.c (mips_xfer_register): New function.
4477 (mips_n32n64_extract_return_value): Rewrite.
4478 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4479 instead of deprecated_extract_return_value.
4480
21283beb
EZ
44812002-08-19 Elena Zannoni <ezannoni@redhat.com>
4482
4483 * rs6000-tdep.c (TDEP): Delete macro.
4484 (branch_dest): Replace use of TDEP macro with its body.
4485 (rs6000_pop_frame): Ditto.
4486 (rs6000_push_arguments): Ditto.
4487 (rs6000_skip_trampoline_code): Ditto.
4488 (rs6000_frame_saved_pc): Ditto.
4489 (rs6000_frame_chain): Ditto.
4490 (rs6000_register_name): Ditto.
4491 (rs6000_register_byte): Ditto.
4492 (rs6000_register_raw_size): Ditto.
4493 (rs6000_register_virtual_type): Ditto.
4494 (rs6000_register_convertible): Ditto.
4495 (rs6000_convert_from_func_ptr_addr): Ditto.
4496
bf072999
DJ
44972002-08-19 Daniel Jacobowitz <drow@mvista.com>
4498
4499 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4500 conditionally.
4501 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4502 MIPS_LINUX_JB_ELEMENT_SIZE.
4503 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4504 for MAX_REGISTER_RAW_SIZE arrays.
4505 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4506 MIPS_LINUX_JB_ELEMENT_SIZE.
4507
9b949a49
PM
45082002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4509
4510 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4511
6d3e79c6
AS
45122002-08-19 Aidan Skinner <aidan@velvet.net>
4513
4514 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4515 ada-valprint.c ada-tasks.c.
4516 (YYFILES): Add ada-exp.y.
4517 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4518 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4519 (ada-exp.tab.o): New target.
4520
06c0b04e
AC
45212002-08-18 Andrew Cagney <ac131313@redhat.com>
4522
4523 * regcache.c (regcache_xfer_part): New function.
4524 (regcache_raw_read_part): New function.
4525 (regcache_raw_write_part): New function.
4526 (regcache_cooked_read_part): New function.
4527 (regcache_cooked_write_part): New function.
4528 * regcache.h (regcache_raw_read_part): Declare.
4529 (regcache_raw_write_part): Declare.
4530 (regcache_cooked_read_part): Declare.
4531 (regcache_cooked_write_part): Declare.
4532
92d1e331
DJ
45332002-08-18 Daniel Jacobowitz <drow@mvista.com>
4534
4535 * remote.c (remote_open_1): Add async_p.
4536 (remote_async_open_1): Delete.
4537 (open_remote_target): Delete.
4538 (remote_open, extended_remote_open): Update calls to remote_open_1.
4539 (remote_async_open, extended_remote_async_open): Call
4540 remote_open_1 instead of remote_async_open_1.
4541
247055de
MK
45422002-08-19 Mark Kettenis <kettenis@gnu.org>
4543
4544 * blockframe.c: Fix a few coding standard violations.
4545
641eda39
MK
45462002-08-19 Mark Kettenis <kettenis@gnu.org>
4547
0b717710
MK
4548 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4549 here from ...
4550 * config/i386/tm-i386sco5.h: ... here. File removed.
4551 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4552
26d28e12 4553 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4554 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4555 (TM_FILE): Set to tm-i386.h.
4556 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4557 * config/i386/tm-i386v.h: Remove file.
4558 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4559 instead of "i386/tm-i386v.h".
4560 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4561 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4562 "i386/tm-i386v.h".
4563 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4564 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4565 "i386/tm-i386.h".
4566
d4e0bab4
MK
45672002-08-18 Mark Kettenis <kettenis@gnu.org>
4568
4569 * config/i386/nm-i386v.h: Add protection against
4570 multiple-inclusion.
4571 (i386_register_u_addr): Remove prototype.
4572 (register_u_addr): New prototype.
4573 (REGISTER_U_ADDR): Redefine accordingly.
4574 * i386v-nat.c: Improve several comments.
4575 (i386_register_u_addr): Change signature and rename to
4576 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4577 ubase variable.
4578
46cac009
AC
45792002-08-18 Andrew Cagney <ac131313@redhat.com>
4580
4581 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4582 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4583 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4584 deprecated_extract_return_value.
4585 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4586 rename mips_o32o64_push_arguments.
4587 (mips_gdbarch_init): Update.
4588 (mips_extract_return_value): Delete.
4589 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4590 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4591 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4592 (mips_n32n64_extract_return_value): Clone
4593 mips_extract_return_value.
4594 (mips_store_return_value): Delete.
4595 (mips_o32_store_return_value): Clone mips_store_return_value.
4596 (mips_o64_store_return_value): Clone mips_store_return_value.
4597 (mips_eabi_store_return_value): Clone mips_store_return_value.
4598 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4599
d2e4a39e
AS
46002002-08-18 Aidan Skinner <aidan@velvet.net>
4601
0c30c098
AS
4602 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4603 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4604
46052002-08-18 Aidan Skinner <aidan@velvet.net>
4606
4607 * ada-lang.c: Run through gdb_indent.sh.
4608 * ada-lang.h: Run through gdb_indent.sh.
4609 * ada-tasks.c: Run through gdb_indent.sh.
4610 * ada-typeprint.c: Run through gdb_indent.sh.
4611 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4612
01fc4e33
AC
46132002-08-18 Andrew Cagney <ac131313@redhat.com>
4614
4615 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4616 ABI.
4617
d8ee244c
MK
46182002-08-18 Mark Kettenis <kettenis@gnu.org>
4619
c38d8261
MK
4620 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4621
222db64c
MK
4622 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4623 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4624
c2848c82
MK
4625 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4626 write_register_gen instead of write_register_bytes.
4627
d8ee244c
MK
4628 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4629 i[3456]-*-osf1mk* configurations have been made obsolete.
4630 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4631 i[3456]86-*-osf1mk* hosts obsolete.
4632 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4633 targets obsolete.
4634 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4635 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4636 config/i386/i386m3.mt, config/i386/nm-m3.h,
4637 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4638 config/i386/i386mk.mh, config/i386/i386mk.mt,
4639 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4640 obsolete.
4641 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4642 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4643 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4644
61d8d407
AC
46452002-08-18 Andrew Cagney <ac131313@redhat.com>
4646
4647 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4648 (hppa_value_returned_from_stack): Declare.
4649 (hppa_extract_return_value): Declare.
4650 * config/pa/hppa.mt: New file.
4651 * configure.tgt: Recognize hppa*-*-*.
4652 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4653
0c52bd59
MK
46542002-08-18 Mark Kettenis <kettenis@gnu.org>
4655
4656 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4657 comment.
4658
b5686e99
MK
46592002-08-17 Mark Kettenis <kettenis@gnu.org>
4660
4661 * top.c (gdb_rl_operate_and_get_next): Make sure
4662 operate-and-get-next functions correctly even when the history
4663 list is completely filled.
4664
c1bab85b
AC
46652002-08-18 Andrew Cagney <ac131313@redhat.com>
4666
4667 * MAINTAINERS (Target Instruction Set Architectures): Rename
4668 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4669 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4670 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4671 already listed under Host/Native.
4672
4673 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4674 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4675 mips*-*-*.
4676
32089c7c
AC
46772002-08-17 Andrew Cagney <ac131313@redhat.com>
4678
4679 * config/ia64/ia64.mt: New file.
4680 * config/alpha/alpha.mt: New file.
4681 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4682 ia64-linux-gnu. Mention that ia64-elf is broken.
4683 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4684
b4671f85
MK
46852002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4686
4687 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4688 generic_func_frame_valid instead of func_frame_valid.
4689
c8edd8b4
JB
46902002-08-16 Joel Brobecker <brobecker@gnat.com>
4691
4692 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4693 procfs appears to be broken when debugging on multi-processor
4694 machines. So enable software single stepping in order to avoid
4695 using the procfs interface to do next/step operations, using
4696 internal breakpoints instead.
4697
4698 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4699 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4700 make this pc address equal to the value it would have if the
4701 system stepping capability was used. Also set a new flag used
4702 to ensure that we don't readjust the PC one more time later.
4703
4704 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4705 address by DECR_PC_AFTER_BREAK when software single step is
4706 in use for this architecture, as this has already been taken
4707 care of in handle_inferior_event().
4708
238617f6
JB
47092002-08-16 Joel Brobecker <brobecker@gnat.com>
4710
4711 * infrun.c (handle_inferior_event): Minor reformatting, to make
4712 a rather long condition expression easier to read.
4713
541a7aac
AC
47142002-08-16 Andrew Cagney <ac131313@redhat.com>
4715
4716 * Makefile.in (gdbtk.o): Move to end of file.
4717 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4718 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4719 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4720 (gdbtk-wrapper.o, gdbres.o): Ditto.
4721
f92d4a7b
AC
47222002-08-16 Andrew Cagney <ac131313@redhat.com>
4723
4724 * Makefile.in (copying.o): Separate out compile rule.
4725 (hpux-thread.o, procfs.o, signals.o): Ditto.
4726 (v850ice.o, z8k-tdep.o): Ditto.
4727 (tui-file.o): Move to TUI section.
4728 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4729 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4730
1cce71eb
JB
47312002-08-16 Joel Brobecker <brobecker@gnat.com>
4732
4733 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4734 skip_trampoline_code, for better namespace-proofing.
4735
4736 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4737
0851f23d
JB
47382002-08-16 Joel Brobecker <brobecker@gnat.com>
4739
4740 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4741
f8d40ec8
JB
47422002-08-16 Joel Brobecker <brobecker@gnat.com>
4743
4744 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4745 signal, check whether we hit a breakpoint before checking for a
4746 single step breakpoint. Otherwise, GDB fails to notice that a
4747 breakpoint has been hit when stepping onto a breakpoint.
4748
63d022e0
KS
47492002-08-16 Keith Seitz <keiths@redhat.com>
4750
4751 * gdb-events.sh (clear_gdb_event_hooks): New function.
4752 * gdb-events.c: Regenerate.
4753 * gdb-events.h: Regenerate.
4754
6e31adb3
AC
47552002-08-16 Andrew Cagney <ac131313@redhat.com>
4756
4757 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4758 not_a_sw_breakpoint.
4759 * breakpoint.h (bpstat_stop_status): Add parameter names.
4760
c8189ed1
GS
47612002-08-16 Grace Sainsbury <graces@redhat.com>
4762
4763 * remote.c (remote_insert_hw_breakpoint)
4764 (remote_remove_hw_breakpoint): Fix calculation of length field
4765 for Z-packet.
4766
d05285fa
MS
47672002-08-15 Michael Snyder <msnyder@redhat.com>
4768
466d7106
MS
4769 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4770 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4771 (supply_fpregset): Ditto.
4772
d05285fa
MS
4773 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4774 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4775 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4776 (TARGET_READ_SP): Delete.
bf1f5b4c 4777 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4778 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4779 Delete.
4780 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4781 from macros to functions.
bf1f5b4c 4782
d05285fa
MS
4783 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4784 (mips_register_convertible, mips_register_convert_to_virtual,
4785 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4786 (mips_read_sp): New function.
4787 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4788 (mips_do_registers_info): Make static.
4789 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4790 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4791 (mips_register_convert_from_type, mips_register_convert_to_type):
4792 New functions.
4793 (mips_gdbarch_init): Set up function_start_offset,
4794 register_virtual_size, pc_in_sigtramp.
d05285fa 4795
e76f1f2e
AC
47962002-08-15 Andrew Cagney <ac131313@redhat.com>
4797
4798 * infcmd.c (vector_info): New function.
4799 (_initialize_infcmd): Add command "info vector".
4800 (print_vector_info): New function.
4801
4802 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4803 * gdbarch.h, gdbarch.c: Regenerate.
4804
4782dc19
AC
48052002-08-15 Andrew Cagney <ac131313@redhat.com>
4806
4807 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4808 ``print_all''. Only print vector registers when ``print_all''.
4809
23e3a7ac
AC
48102002-08-15 Andrew Cagney <ac131313@redhat.com>
4811
8e186fd6
AC
4812 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4813 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4814
23e3a7ac
AC
4815 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4816 Add `args' parameter.
4817 * gdbarch.h, gdbarch.c: Regenerate.
4818
4819 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4820
4821 * infcmd.c (float_info): Call print_float_info.
4822 (print_float_info): New function. By default, print the
4823 floating-point registers.
4824
4825 * arch-utils.h (default_print_float_info): Delete declaration.
4826 * arch-utils.c (default_print_float_info): Delete function.
4827
e0ca2bb9
MK
48282002-08-16 Mark Kettenis <kettenis@gnu.org>
4829
3f733acc
MK
4830 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4831 out define.
4832
7d8d2918
MK
4833 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4834 FRAME.
4835
1c7cc583
MK
4836 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4837 * configure.host: Make i[3456]86-*-aix host obsolete.
4838 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4839 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4840 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4841 config/i386/xm-i386aix.h: Make files obsolete.
4842 * i386aix-nat.c: Make file obsolete.
4843 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4844 (i386aix-nat.o): Make target obsolete.
4845
e0ca2bb9
MK
4846 * config/i386/nm-gnu.h: Removed.
4847 * config/i386/nm-i386gnu.h: New file.
4848 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4849 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4850 Moved here from ...
4851 * config/i386/tm-i386gnu.h: ... here. Removed.
4852 * config/i386/xm-i386gnu.h: Removed.
4853 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4854 (NAT_FILE): Set to nm-i386gnu.h.
4855 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4856 * i386-tdep.c: New file.
4857 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4858 (i386gnu-tdep.o): Specify dependencies.
4859
16057ec7 48602002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4861
6b99ee2e
MK
4862 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4863 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4864 Adjust a few comments to reflect reality a bit closer.
4865 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4866 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4867 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4868 target_insert_watchpoint, target_remove_watchpoint):
4869 Move defines to ...
4870 * config/i386/nm-i386sco5.h: ... here.
4871 (kernel_u_size): Add prototype. Improve a few comments and add
4872 protection against multiple inclusion.
4873
d9a6f65c
MK
4874 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4875 out define.
4876
047eff6a
MK
4877 * uw-thread.c (SP_ARG0): Define if not already defined.
4878 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4879
dcdb1290
MK
4880 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4881
5d2d0b2a
MK
4882 * config/i386/tm-i386.h: Don't include "regcache.h".
4883
61113f8b
MK
4884 * i387-tdep.h (i387_print_float_info): New prototype.
4885 * i387-tdep.c (print_i387_value, print_i387_ext,
4886 print_i387_status_word, print_i387_control_word): Add `struct
4887 ui_file *' argument and use it for output.
4888 (i387_print_float_info): Renamed from i387_float_info. Add
4889 `struct gdbarch *' and `struct ui_file *' arguments and use the
4890 latter for output.
4891 * i386-tdep.c: Include "i387-tdep.h".
4892 (i386_gdbarch_init): Set print_float_info.
4893 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4894 (FLOAT_INFO): Remove define.
4895
46e0f506
MS
48962002-08-13 Michael Snyder <msnyder@redhat.com>
4897
4898 * mips-tdep.c (mips_push_arguments): Rename to
4899 mips_eabi_push_arguments, and tune for EABI.
4900 (MIPS_REGS_HAVE_HOME_P): Delete.
4901 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4902 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4903 Delete references to mips_regs_have_home_p.
4904
409268de
KS
49052002-08-14 Keith Seitz <keiths@redhat.com>
4906
4907 * Makefile.in (install-gdbtk): Create insight plugin directory.
4908 Install plugins.tcl file.
4909
ffc6a242
KS
49102002-08-14 Keith Seitz <keiths@redhat.com>
4911
4912 * configure.in: Move SUBDIRS to near top of the file so that
4913 --enable options may add things to it.
4914 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4915 * configure: Regenerate.
4916
ebafbe83
MS
49172002-08-13 Michael Snyder <msnyder@redhat.com>
4918
4919 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4920 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4921 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4922
32f6f25d
AC
49232002-08-13 Andrew Cagney <ac131313@redhat.com>
4924
4925 * vax-tdep.c (vax_get_saved_register): Delete function.
4926 (vax_gdbarch_init): Update.
4927 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4928 (ns32k_gdbarch_init): Update.
4929 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4930 (alpha_gdbarch_init): Update.
4931
53826de9
AC
49322002-08-13 Andrew Cagney <cagney@redhat.com>
4933
4934 * regcache.c (init_regcache_descr): Overallocate the
4935 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4936 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4937 nr_raw_registers.
4938 (set_register_cached): Add range checking assertions. Use
4939 current_regcache.
4940
16057ec7 49412002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4942
4943 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4944 numbers for MMX registers.
4945
7b4c2dce
AC
49462002-08-13 Andrew Cagney <cagney@redhat.com>
4947
4948 * i386-tdep.c (i386_gdbarch_init): Use
4949 generic_unwind_get_saved_register.
4950
1e03ad20
KB
49512002-08-13 Kevin Buettner <kevinb@redhat.com>
4952
4953 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4954 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4955 target vector.
4956 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4957 Delete. Add comment regarding this now-deleted target method.
4958
548bcbec
SC
49592002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4960
4961 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4962 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4963 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4964 real PC and the page number (if it's within the memory bank window).
4965 (m68hc11_pseudo_register_write): Likewise when saving.
4966 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4967 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4968 (m68hc11_register_raw_size): And use 32-bit for it.
4969 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4970 16K memory bank is used by the prog; also use the virtual pc.
4971
7df11f59
SC
49722002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4973
4974 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4975 (m68hc11_gdbarch_init): Install it in gdbarch.
4976 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4977 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4978 (MSYMBOL_SIZE): New for documentation.
4979 (insn_return_kind): Enum to specify how a function returns.
4980 (frame_extra_info): Cleanup and record the return mode.
4981 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4982 register in address computation.
4983 (m68hc11_get_return_insn): New to obtain the return instruction used
4984 by the function.
4985 (m68hc11_frame_init_saved_regs): Take into account the return
4986 instruction used by the function for far and interrupt functions.
4987 (m68hc11_init_extra_frame_info): Take into account page register.
4988 (m68hc11_frame_args_address): Adjust according to the return mode.
4989 (show_regs): Print page register only when it's used.
4990
5706502a
SC
49912002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4992
4993 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4994 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4995 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4996 registers.
4997 (m68hc11_register_raw_size): Likewise.
4998
28fc6740
AC
49992002-08-13 Andrew Cagney <cagney@redhat.com>
5000
5001 * i386-tdep.c (i386_register_name): Handle mmx registers.
5002 (mmx_regnum_p): New function.
5003 (i386_mmx_names): New array.
5004 (mmx_num_regs): New variable.
5005 (i386_pseudo_register_read): New function.
5006 (i386_pseudo_register_write): New function.
5007 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5008
5009 * regcache.c (regcache_raw_read_unsigned): New function.
5010 (regcache_raw_read_signed): New function.
5011 * regcache.h (regcache_raw_read_unsigned): Declare.
5012 (regcache_raw_read_signed): Declare.
5013
a378f419
AC
50142002-08-13 Andrew Cagney <cagney@redhat.com>
5015
5016 * regcache.c (regcache_raw_read_as_address): Delete function.
5017 (regcache_cooked_read_signed): New function.
5018 (regcache_cooked_read_unsigned): New function.
5019 * regcache.h (regcache_cooked_read_signed): Declare.
5020 (regcache_cooked_read_unsigned): Declare.
5021 (regcache_raw_read_as_address): Delete declaration.
5022
5023 * blockframe.c (generic_read_register_dummy): Use
5024 regcache_cooked_read_unsigned.
5025 * i386-tdep.c (i386_extract_struct_value_address): Use
5026 regcache_cooked_read_unsigned.
5027
81967506
SC
50282002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5029
5030 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5031 double sizes according to ELF ABI flags.
5032 (gdbarch_tdep): Record elf_flags.
5033
ffe1f3ee
SC
50342002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5035
5036 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5037 (m6812_prolog): They can appear in 68HC12 function prologue.
5038 (m68hc11_frame_chain): Cleanup.
5039
98216c5d
AC
50402002-08-12 Andrew Cagney <cagney@redhat.com>
5041
5042 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5043 declarations.
5044 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5045 (i386_linux_register_raw_size): Delete function.
5046 (i386_linux_init_abi): Update.
5047 * i386-tdep.c (i386_register_raw_size): Delete function.
5048 (i386_register_byte): Delete function.
5049 (i386_gdbarch_init): Update.
5050 (i386_register_size): Delete array.
5051 (i386_register_offset): Delete array.
5052
5053 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5054 (REGISTER_RAW_SIZE): Delete macro.
5055 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5056 (REGISTER_BYTE): Delete macro.
5057
3b19021e
AS
50582002-08-11 Aidan Skinner <aidan@velvet.net>
5059
5060 * ada-lang.c (ada_lookup_partial_symbol)
5061 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5062 prototype names so that grep ^func works properly.
5063
5064 * ada-lang.c (ada_array_element_type)
5065 (ada_lookup_partial_symbol): Fix typos in parameter list.
5066
5067 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5068 Fix prototype names so that grep ^func works properly.
5069
b063e7a2
AC
50702002-08-10 Andrew Cagney <cagney@redhat.com>
5071 Elena Zannoni <ezannoni@redhat.com>
5072 Martin M. Hunt <hunt@redhat.com>
5073
5074 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5075 (build_builtin_type_vec128i): Set the vector bit.
5076 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5077 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5078 (build_builtin_type_vec64): New function.
5079 (build_builtin_type_vec64i): New function.
5080 (build_gdbtypes): Initialize builtin_type_vec64 and
5081 builtin_type_vec64i.
5082
a7e3c2ad
AC
50832002-08-09 Andrew Cagney <cagney@redhat.com>
5084
5085 * regcache.c (regcache_dump): Compare the register offset
5086 with REGISTER_BYTE.
5087 * arch-utils.c (generic_register_byte): New function.
5088 * arch-utils.h (generic_register_byte): Declare.
5089 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5090 * gdbarch.h, gdbarch.c: Regenerate.
5091
af030b9a
AC
50922002-08-09 Andrew Cagney <cagney@redhat.com>
5093
5094 * regcache.c: Include "gdbcmd.h"
5095 (_initialize_regcache): Add commands "maintenance print
5096 registers", "maintenance print raw-registers" and "maintenance
5097 print cooked-registers".
5098 (enum regcache_dump_what): Define.
5099 (dump_endian_bytes): New function.
5100 (regcache_dump): New function.
5101 (regcache_print): New function.
5102 (maintenance_print_registers): New function.
5103 (maintenance_print_raw_registers): New function.
5104 (maintenance_print_cooked_registers): New function.
5105 * Makefile.in (regcache.o): Update dependencies.
5106
cb3d25d1
MS
51072002-08-09 Michael Snyder <msnyder@redhat.com>
5108
5109 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5110 (mips_push_arguments): Correct some comments. Use paddr_nz
5111 for printing addresses in debug output. Replace static
5112 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5113 (mips_n32n64_push_arguments): New function, cloned from
5114 mips_push_arguments and tuned for the n32/n64 ABI.
5115 (mips_push_register): Buffer needs dynamic allocation.
5116 (mips_print_register): Ditto.
5117 (do_gp_register_row): Ditto.
5118 (mips_store_return_value): Ditto.
5119 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5120
2163ab9d
DH
51212002-08-09 Don Howard <dhoward@redhat.com>
5122
5123 * memattr.c (mem_info_command): Print special case of upper bound
5124 as max CORE_ADDR + 1.
5125
b78bcb18
MS
51262002-08-08 Michael Snyder <msnyder@redhat.com>
5127
5128 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5129 returns structs by ref if they're too big to fit in two registers.
5130
ffabd70d
KB
51312002-08-09 Kevin Buettner <kevinb@redhat.com>
5132
5133 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5134 saved regs value.
5135 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5136 mips_find_saved_regs().
5137 (mips_pop_frame): Likewise.
5138
fbcdb4a3
KB
51392002-08-09 Kevin Buettner <kevinb@redhat.com>
5140
5141 * blockframe.c (frame_saved_regs_register_unwind): Revise
5142 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5143 frames are in use.
5144
3c3bea1c
GS
51452002-08-09 Grace Sainsbury <graces@redhat.com>
5146
5147 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5148 T-packets; the 'a' is not taken as a register number.
5149 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5150 (remote_stopped_data_address): New functions; add to target
5151 vector.
5152 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5153 prototypes to match other implementations of this
5154 function. replace integer argument with pointer -- the length
5155 field in the Z-packet is the length of what is pointed to or 1 if
5156 pointer is null. Add to target vector.
5157 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5158 target vector.
5159
5160 From Mark Salter:
5161 * remote.c (remote_wait): Add support to extract optional
5162 watchpoint information from T-packet. Ignore unrecognized
5163 optional info in T-packet.
5164 (remote_async_wait): Ditto.
5165
5d1d95de
CV
51662002-08-09 Corinna Vinschen <vinschen@redhat.com>
5167
5168 * cli/cli-dump.c: Change fopen modes to use binary open modes
5169 as defined in include/fopen-bin.h throughout.
5170
c86b5b38
MS
51712002-08-08 Michael Snyder <msnyder@redhat.com>
5172
5173 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5174
b30590dc
KB
51752002-08-08 Kevin Buettner <kevinb@redhat.com>
5176
5177 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5178 assertion failure by returning early after a warning.
5179
498868ed
KB
51802002-08-08 Kevin Buettner <kevinb@redhat.com>
5181
5182 * mips-tdep.c (mips_find_saved_regs): Make static.
5183 (mips_frame_init_saved_regs): New function.
5184 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5185 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5186 (mips_find_saved_regs): Delete declaration.
5187
b2dd6311
GS
51882002-08-08 Grace Sainsbury <graces@redhat.com>
5189
3c3bea1c
GS
5190 * remote.c (remote_wait, remote_async_wait): Change
5191 thread_num from int to ULONGEST.
5192 (unpack_varlen_hex): Change result parameter from
5193 int * to ULONGEST *.
b2dd6311 5194
ea47855f
AC
51952002-08-08 Andrew Cagney <ac131313@redhat.com>
5196
5197 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5198 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5199 powerpc*-*-*.
5200 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5201
69db8bae
AC
52022002-08-08 Andrew Cagney <cagney@redhat.com>
5203
5204 * gcore.c (override_derive_stack_segment): Delete variable.
5205 (preempt_derive_stack_segment): Delete function.
5206 (derive_stack_segment): Delete function.
5207 (default_derive_stack_segment): Renamed to derive_stack_segment.
5208 (override_derive_heap_segment): Delete variable.
5209 (preempt_derive_heap_segment): Delete function.
5210 (derive_heap_segment): Delete function.
5211 (default_derive_heap_segment): Rename to derive_heap_segment.
5212
cb811fe7
MS
52132002-08-06 Michael Snyder <msnyder@redhat.com>
5214
5215 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5216 * mips-tdep.c (mips_EABI_use_struct_convention,
5217 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5218 New functions. (mips_use_struct_convention): Delete.
5219 (mips_gdbarch_init): set use_gdbarch_convention.
5220
8b389c40
MS
52212002-08-06 Michael Snyder <msnyder@redhat.com>
5222
5223 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5224 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5225 mips_o32_reg_struct_has_addr): New functions.
5226 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5227
5c27f28a
AC
52282002-08-07 Andrew Cagney <ac131313@redhat.com>
5229
5230 * regcache.c (pseudo_register): Delete function.
5231 (fetch_register): Delete function.
5232 (store_register): Delete function.
5233 (regcache_raw_read, legacy_read_register_gen): Use
5234 target_fetch_registers instead of fetch_register.
5235 (legacy_write_register_gen, regcache_raw_write): Use
5236 target_store_register instead of store_register.
5237 (write_register_bytes): Ditto.
5238
5239 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5240 (STORE_PSEUDO_REGISTER): Delete.
5241 * gdbarch.h, gdbarch.c: Regenerate.
5242
5b331675
CV
52432002-08-06 Corinna Vinschen <vinschen@redhat.com>
5244
5245 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5246 write dump file binary.
5247
6acdf5c7
MS
52482002-08-05 Michael Snyder <msnyder@redhat.com>
5249
5250 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5251 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5252 (mips_gdbarch_init): Set N32 target to be mips64.
5253
b2f01c35
KB
52542002-08-06 Kevin Buettner <kevinb@redhat.com>
5255
5256 * frame.c (find_saved_register): Break out of loop once saved
5257 register address is found. Don't mention sparc in loop comment
5258 anymore.
5259
63db5580
KB
52602002-08-06 Kevin Buettner <kevinb@redhat.com>
5261
5262 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5263 mips_default_saved_regsize to 8.
5264
5e34e75e
AC
52652002-08-06 Andrew Cagney <ac131313@redhat.com>
5266
5267 * gcore.c: Do not include <sys/procfs.h>.
5268 * Makefile.in (gcore.o): Update dependencies.
5269
eb4c54a2
AC
52702002-08-06 Andrew Cagney <cagney@redhat.com>
5271
5272 * configure.tgt: Make arc-*-* obsolete.
5273 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5274 * MAINTAINERS: Make arc-elf obsolete.
5275 * arc-tdep.c: Make file obsolete.
5276 * config/arc/arc.mt: Ditto.
5277 * config/arc/tm-arc.h: Ditto.
5278
ced15480
TR
52792002-08-05 Theodore A. Roth <troth@verinet.com>
5280
c1bab85b 5281 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 5282
b4743822
AC
52832002-08-05 Andrew Cagney <ac131313@redhat.com>
5284
5285 * mcore-tdep.c (mcore_gdbarch_init): Use
5286 generic_unwind_get_saved_register instead of
5287 generic_get_saved_register.
5288 * v850-tdep.c (v850_gdbarch_init): Ditto.
5289 * frv-tdep.c (frv_gdbarch_init): Ditto.
5290 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5291 * s390-tdep.c (s390_gdbarch_init): Ditto.
5292 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5293 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5294 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5295
3956d554
JB
52962002-08-05 Joel Brobecker <brobecker@gnat.com>
5297
5298 * objfiles.h: Add missing #include "symfile.h"
5299
5300 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5301
8249c0d6
AC
53022002-08-04 Andrew Cagney <ac131313@redhat.com>
5303
5304 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5305 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5306 of FIELD_BITSIZE.
5307
b9d14705
DJ
53082002-08-04 Daniel Jacobowitz <drow@mvista.com>
5309
5310 * NEWS: Cleanup and nitpick.
5311
dd73b9bb
AC
53122002-08-03 Andrew Cagney <ac131313@redhat.com>
5313
5314 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5315
043a27f8
AC
53162002-08-03 Andrew Cagney <ac131313@redhat.com>
5317
5318 * Makefile.in (gdbtk-bp.o): Update dependencies.
5319 (gdbtk-register.o): Ditto.
5320 (gdbtk-varobj.o): Ditto.
5321
46ce284d
AC
53222002-08-03 Andrew Cagney <cagney@redhat.com>
5323
5324 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5325 m68hc11_fetch_pseudo_register.
5326 (m68hc11_pseudo_register_write): Replace
5327 m68hc11_store_pseudo_register.
5328 (m68hc11_gdbarch_init): Update.
5329
b66d6d2e
AC
5330Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5331
5332 * gdbarch.sh: Include "gdb_string.h".
5333 * gdbarch.c: Regenerate.
5334
5335 * regcache.c: Include "gdb_string.h".
5336 * ax-general.c: Ditto.
5337 * varobj.c: Ditto.
5338 * std-regs.c: Ditto.
5339 * fbsd-proc.c: Ditto.
5340 * thread.c: Ditto.
5341
5342 * Makefile.in (regcache.o): Update dependencies.
5343 (thread.o, gdbarch.o): Ditto.
5344 (ax-general.o, gdbarch.o): Ditto.
5345 (varobj.o, std-regs.o): Ditto.
5346 (fbsd-proc.o): Specify dependencies.
5347
29e1842b
AC
53482002-08-02 Andrew Cagney <cagney@redhat.com>
5349
5350 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5351 regnum.
5352 (regcache_cooked_write): Ditto.
5353
68365089
AC
53542002-08-02 Andrew Cagney <ac131313@redhat.com>
5355
5356 * regcache.c (regcache_cooked_read): New function.
5357 (regcache_cooked_write): New function.
5358 (read_register_gen): Rewrite using regcache_cooked_read.
5359 (write_register_gen): Rewrite using regcache_cooked_write.
5360
5361 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5362 Declare.
5363
d8124050
AC
53642002-08-02 Andrew Cagney <cagney@redhat.com>
5365
5366 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5367 Replace the architecture methods register_read and register_write.
5368 * gdbarch.h, gdbarch.c: Regenerate.
5369 * regcache.c (init_regcache_descr): Update.
5370 (read_register_gen): Update.
5371 (write_register_gen): Update.
5372 (supply_register): Update comment.
5373
5374 * sh-tdep.c (sh_gdbarch_init): Update.
5375 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5376 `regcache' and `gdbarch' parameters. Make `buffer' a void
5377 pointer. Update code.
5378 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5379 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5380 void pointer. Update code.
5381 (sh64_register_write): Delete.
5382 (sh4_register_read): Delete.
5383 (sh64_register_read): Delete.
5384 (sh4_register_write): Delete.
5385 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5386 void pointer, `to' parameter a void pointer.
5387 (sh_sh64_register_convert_to_raw): Ditto.
5388
a6425924
KB
53892002-08-01 Kevin Buettner <kevinb@redhat.com>
5390
5391 * mips-tdep.c (mips_register_virtual_type): Use architecture
5392 invariant return values.
5393
ff5922b5
AC
53942002-08-01 Andrew Cagney <cagney@redhat.com>
5395
5396 * linux-proc.c: Include "gdb_string.h".
5397 * Makefile.in (linux-proc.o): Update dependency list.
5398
32a6503c
KB
53992002-08-01 Kevin Buettner <kevinb@redhat.com>
5400
5401 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5402 comment.
5403
ccaa32c7
GS
54042002-08-01 Grace Sainsbury <graces@redhat.com>
5405
5406 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5407 to_insert_watchpoint, to_remove_watchpoint,
5408 to_stopped_by_watchpoint, to_stopped_data_address,
5409 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5410 target vecctor. Define their corresponding macros so they call
5411 them.
5412
5413 * target.c: Add default and debug versions of for
5414 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5415 to_insert_watchpoint, to_remove_watchpoint,
5416 to_stopped_by_watchpoint, to_stopped_data_address,
5417 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5418
78fde5f8
KB
54192002-08-01 Kevin Buettner <kevinb@redhat.com>
5420
5421 * mips-tdep.c (mips_register_virtual_type): New function.
5422 (mips_gdbarch_init): Register mips_register_virtual_type()
5423 with gdbarch machinery.
5424 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5425 this file instead of tm-bigmips.h.
5426 (MIPS_REGSIZE): Delete this macro.
5427 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5428 multiarch version in mips-tdep.c will be found.
5429
db034ac5
AC
54302002-08-01 Andrew Cagney <cagney@redhat.com>
5431
5432 * NEWS: Menion that CHILL has been made obsolete.
5433
5434 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
5435 * stabsread.c (read_range_type): Ditto.
5436 * gdbtypes.h: Ditto.
5437 * language.c (binop_type_check): Ditto.
5438 (binop_result_type): Ditto.
5439 (integral_type): Ditto.
5440 (character_type): Ditto.
5441 (string_type): Ditto.
5442 (boolean_type): Ditto.
5443 (structured_type): Ditto.
5444 (lang_bool_type): Ditto.
5445 (binop_type_check): Ditto.
5446 * language.h (_LANG_chill): Ditto.
5447 * dwarfread.c (set_cu_language): Ditto.
5448 * dwarfread.c (CHILL_PRODUCER): Ditto.
5449 * dwarfread.c (handle_producer): Ditto.
5450 * expression.h (enum exp_opcode): Ditto.
5451 * eval.c: Ditto for comments.
5452 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5453 * expprint.c (print_subexp): Ditto.
5454 (print_subexp): Ditto.
5455 * valops.c (value_cast): Ditto.
5456 (search_struct_field): Ditto.
5457 * value.h (COERCE_VARYING_ARRAY): Ditto.
5458 * symfile.c (init_filename_language_table): Ditto.
5459 (add_psymbol_with_dem_name_to_list): Ditto.
5460 * valarith.c (value_binop): Ditto.
5461 (value_neg): Ditto.
5462 * valops.c (value_slice): Ditto.
5463 * symtab.h (union language_specific): Ditto.
5464 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5465 (SYMBOL_DEMANGLED_NAME): Ditto.
5466 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5467 * defs.h (enum language): Ditto.
5468 * symtab.c (got_symtab): Ditto.
5469 * utils.c (fprintf_symbol_filtered): Ditto.
5470
5471 * ch-typeprint.c: Make file obsolete.
5472 * ch-valprint.c: Make file obsolete.
5473 * ch-lang.h: Make file obsolete.
5474 * ch-exp.c: Make file obsolete.
5475 * ch-lang.c: Make file obsolete.
5476
5477 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5478 CHILL_LIB.
5479 (TARGET_FLAGS_TO_PASS): Ditto.
5480 (CHILLFLAGS): Obsolete.
5481 (CHILL): Obsolete.
5482 (CHILL_FOR_TARGET): Obsolete.
5483 (CHILL_LIB): Obsolete.
5484 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5485 ch-valprint.c.
5486 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5487 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5488 ch-lang.o.
5489 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5490 targets.
5491
8aaf0b47
JB
54922002-07-31 Joel Brobecker <brobecker@gnat.com>
5493
5494 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5495 This does not change anything at the moment, but will be helpful
5496 later when full Ada support is integrated.
5497
f3a7b3a5
KB
54982002-07-31 Kevin Buettner <kevinb@redhat.com>
5499
5500 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5501 help message.
5502
fb850278
KB
55032002-07-31 Kevin Buettner <kevinb@redhat.com>
5504
5505 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5506 and save it in a local variable. Use variable in later test.
5507
e3bddbfa
KB
55082002-07-31 Kevin Buettner <kevinb@redhat.com>
5509
5510 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5511 test. (Thanks to Daniel Jacobowitz.)
5512
28d169de
KB
55132002-07-31 Kevin Buettner <kevinb@redhat.com>
5514
5515 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5516 (mips_abi_strings): Add "n64".
5517 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5518
7fe7e44e
KB
55192002-07-31 Kevin Buettner <kevinb@redhat.com>
5520
5521 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5522 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5523
c6caf090
KB
55242002-07-31 Kevin Buettner <kevinb@redhat.com>
5525
5526 * utils.c (host_pointer_to_address, address_to_host_pointer):
5527 Use gdb_assert() instead of explicit call to internal_error().
5528
c41669e0
KB
55292002-07-30 Kevin Buettner <kevinb@redhat.com>
5530
5531 * Makefile.in (rs6000-nat.o): Update dependencies.
5532
5533 From Nicholas Duffek:
5534 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5535 (aix-thread.o): New rule.
5536 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5537 * config/powerpc/aix432.mh: New file.
5538
2fda4977
DJ
55392002-07-30 Daniel Jacobowitz <drow@mvista.com>
5540
5541 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5542 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5543 (fetch_core_registers, ppc_linux_supply_gregset)
5544 (ppc_linux_supply_fpregset): New functions.
5545 (ppc_linux_regset_core_fns): New.
5546 (_initialize_ppc_linux_tdep): Call add_core_fns.
5547 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5548 and ppc_linux_supply_gregset.
5549 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5550 (supply_fpregset): Call ppc_linux_supply_fpregset.
5551 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5552 corelow.o.
5553 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5554
729051e6
DJ
55552002-07-30 Daniel Jacobowitz <drow@mvista.com>
5556
5557 * symtab.c (lookup_symbol): Demangle before lowercasing.
5558
5f8a3188
AC
55592002-07-30 Andrew Cagney <ac131313@redhat.com>
5560
5561 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5562 declaration.
5563 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5564 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5565 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5566 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5567 "gdb_string.h".
5568 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5569 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5570 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5571 (avr-tdep.o, mon960-rom.o): Ditto.
5572 (aout_stabs_gnu_h): Define.
5573 (symtab_h): Remove $(gdb_obstack_h).
5574
67f07146
JB
55752002-07-30 Jim Blandy <jimb@redhat.com>
5576
5577 Patch from David Carlton <carlton@math.stanford.edu>:
5578 * gdbinit.in: Move the `dir' commands that add GDB's own source
5579 directory to the search path to the end, so that the `gdb' source
5580 directory will be searched first.
5581
04ea0df1
AC
55822002-07-29 Andrew Cagney <ac131313@redhat.com>
5583
5584 * gdb_obstack.h: New file.
5585 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5586 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5587 * objfiles.h: Include "gdb_obstack.h".
5588 * Makefile.in (gdb_obstack_h): Define.
5589 (symtab_h): Add $(gdb_obstack_h).
5590 (objfiles_h): Add $(gdb_obstack_h).
5591
5592 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5593 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5594 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5595 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5596 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5597 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5598 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5599 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5600
5601 * Makefile.in (bcache.o): Update dependencies.
5602 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5603 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5604 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5605 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5606 (stabsread.o, symfile.o, symmisc.o): Ditto.
5607 (symtab.o, typeprint.o, macroexp.o): Ditto.
5608 (macrotab.o, mdebugread.o): Ditto.
5609 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5610 (coff_ecoff_h, aout_aout64_h): Define.
5611 (aout_stabs_gnu_h, libaout_h): Define.
5612
d138e37a
AC
56132002-07-29 Andrew Cagney <cagney@redhat.com>
5614
5615 * regcache.c (struct regcache_descr): Rename nr_registers to
5616 nr_cooked_registers. Revise comments describing the structure
5617 member fields.
5618 (init_regcache_descr): Update.
5619 (init_legacy_regcache_descr): Update.
5620 (read_register_gen, write_register_gen): When a cooked register in
5621 the raw register range, directly access the value from the raw
5622 register cache.
5623
460e6ec3
AC
56242002-07-29 Andrew Cagney <ac131313@redhat.com>
5625
5626 * z8k-tdep.c: Do not include "obstack.h".
5627 * h8300-tdep.c, h8500-tdep.c: Ditto.
5628 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5629 * valprint.c, v850-tdep.c: Ditto.
5630 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5631 * mn10200-tdep.c: Ditto.
5632
5633 * Makefile.in (z8k-tdep.o): Update dependencies.
5634 (m68hc11-tdep.o, valprint.o): Ditto.
5635 (v850-tdep.o, d10v-tdep.o): Ditto.
5636 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5637 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5638 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5639 (sh_opc_h, gdb_sim_sh_h): Define.
5640 (elf_sh_h, elf_bfd_h): Define.
5641 (opcode_m68hc11_h): Define.
5642 (OPCODES_SRC, OPCODES_DIR): define.
5643 (OPCODES): Use $(OPCODES_DIR).
5644 (gdb_sim_d10v_h): Rename sim_d10v_h.
5645 (gdb_sim_arm_h): Rename sim_arm_h.
5646
790c9cf0
KB
56472002-07-26 Kevin Buettner <kevinb@redhat.com>
5648
5649 * utils.c (host_pointer_to_address, address_to_host_pointer):
5650 Change internal_error() message to indicate function responsible
5651 for the error.
5652
9647fa49
KB
56532002-07-26 Kevin Buettner <kevinb@redhat.com>
5654
5655 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5656 calls to local_hex_string_custom().
5657
dabbe2c0
KB
56582002-07-26 Kevin Buettner <kevinb@redhat.com>
5659
5660 * irix5-nat.c: Move IRIX shared library support from here...
5661 * solib-irix.c: ...to here. Revised substantially to work with
5662 generic solib framework.
5663
b96d0a4e
KB
5664 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5665 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5666 * mips-irix-tdep.c: New file.
5667
313fb2f6
KB
5668 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5669 (mips-irix-tdep.o, solib-irix.o): New rules.
5670 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5671 solib-irix.o.
5672 * config/mips/irix6.mt (TDEPFILES): Likewise.
5673 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5674
ab2eaf26
KB
56752002-07-26 Kevin Buettner <kevinb@redhat.com>
5676
177e4768 5677 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5678 disabled (via ``#if 0'') includes.
5679
7244546a
KB
56802002-07-26 Kevin Buettner <kevinb@redhat.com>
5681
5682 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5683 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5684 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5685 Add support for the fpscr register.
5686 * rs6000-nat.c (regmap, fetch_inferior_registers)
5687 (store_inferior_registers, fetch_core_registers): Likewise.
5688
dd7be90a
KB
56892002-07-26 Kevin Buettner <kevinb@redhat.com>
5690
5691 * rs6000-nat.c (language.h): Include.
5692 (special_regs): Delete this array.
5693 (regmap): New function.
5694 (fetch_register, store_register): Use regmap() to map gdb
5695 register numbers to ptrace register numbers. Also, use
5696 outputs from regmap() to make decisions regarding type of
5697 ptrace() call to make. In particular, don't compare against
5698 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5699 (fetch_inferior_registers, store_inferior_registers): Where
5700 possible, obtain register numbers from tdep struct. Don't
5701 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5702 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5703 (LAST_UISA_SP_REGNUM): Delete.
5704
11bf77db
KB
57052002-07-25 Kevin Buettner <kevinb@redhat.com>
5706
5707 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5708 (fetch_registers, store_register, fetch_core_registers): Don't
5709 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5710 regcache_collect() as appropriate.
5711 (find_toc_address): Format hex address with local_hex_string().
5712
06afebeb
AC
57132002-07-25 Andrew Cagney <ac131313@redhat.com>
5714
5715 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5716 bfd/elf32-frv.c.
5717
8c554d79
TT
57182002-07-24 Tom Tromey <tromey@redhat.com>
5719
5720 * jv-exp.y: Marked all strings with _().
5721 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5722 internal_error.
5723 (MethodInvocation, CastExpression, parse_number, yyerror,
5724 java_type_from_name, push_expression_name, yylex): Typo fixes.
5725
e4c242d9
DJ
57262002-07-24 Daniel Jacobowitz <drow@mvista.com>
5727
5728 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5729 (tee_file_flush, tee_file_write, tee_file_fputs)
5730 (tee_file_isatty): New.
5731 * ui-file.h (tee_file_new): Add prototype.
5732
ebf56fd3
AS
57332002-07-24 Aidan Skinner <aidan@velvet.net>
5734
5735 * ada-lang.c: Change k&r style function definitions to prototyped
5736 form.
5737 * ada-typeprint.c: Change k&r style function definitions to prototyped
5738 form.
5739 * ada-valprint.c: Change k&r style function definitions to prototyped
5740 form.
5741
7fb623f7
AC
57422002-07-24 Andrew Cagney <cagney@redhat.com>
5743
5744 * README: Remove reference to remote-bug.
5745 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5746 remote-bug.c.
5747 (m88k-nat.o): Delete rule.
5748 (m88k-tdep.o): Delete rule.
5749 (remote-bug.o): Delete rule.
5750 * MAINTAINERS: Mark as obsolete.
5751 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5752 * m88k-tdep.c: Make file obsolete.
5753 * config/m88k/m88k.mh: Ditto.
5754 * config/m88k/delta88v4.mh: Ditto.
5755 * config/m88k/delta88v4.mt: Ditto.
5756 * config/m88k/delta88.mt: Ditto.
5757 * config/m88k/delta88.mh: Ditto.
5758 * remote-bug.c: Ditto.
5759 * config/m88k/tm-delta88.h: Ditto.
5760 * config/m88k/nm-delta88v4.h: Ditto.
5761 * config/m88k/xm-delta88.h: Ditto.
5762 * config/m88k/xm-dgux.h: Ditto.
5763 * config/m88k/tm-m88k.h: Ditto.
5764 * config/m88k/nm-m88k.h: Ditto.
5765 * config/m88k/tm-delta88v4.h: Ditto.
5766 * m88k-nat.c: Ditto.
5767 * cxux-nat.c: Ditto.
5768 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5769 and m88*-*-* obsolete.
5770 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5771 m88*-*-* obsolete.
5772
37611a2b
AC
57732002-07-24 Andrew Cagney <cagney@redhat.com>
5774
5775 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5776 constant. Same for local pointer variables.
5777 (extract_signed_integer): Ditto.
5778 * defs.h (extract_unsigned_integer): Update.
5779 (extract_signed_integer): Update.
5780
1aaa5f99
AC
57812002-07-24 Andrew Cagney <cagney@redhat.com>
5782
5783 * regcache.c (regcache_raw_write): Change buf parameter to a
5784 constant void pointer.
5785 (regcache_raw_read): Change buf parameter to a void pointer.
5786 (legacy_write_register_gen): Change myaddr parameter a constant
5787 void pointer.
5788 (supply_register): Change val parameter to a const void pointer.
5789 * regcache.h (regcache_raw_write): Update declaration.
5790 (regcache_raw_read): Update declaration.
5791 (supply_register): Update declaration.
5792
b4f5539f
TT
57932002-07-24 Tom Tromey <tromey@redhat.com>
5794
5795 * defs.h (gdb_readline_wrapper): Declare.
5796 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5797 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5798 * top.c (gdb_readline_wrapper): New function.
5799 (command_line_input): Use it.
5800
0818c12a
AC
58012002-07-24 Andrew Cagney <cagney@redhat.com>
5802
5803 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5804 regcache_read and regcache_write.
5805 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5806 * regcache.c: Update.
5807 * sh-tdep.c (sh64_push_arguments): Update comment.
5808 (sh_pseudo_register_read): Update.
5809 (sh_pseudo_register_write): Update.
5810 (sh4_register_read): Update.
5811 (sh4_register_write): Update.
5812 (sh64_pseudo_register_read): Update.
5813 (sh64_pseudo_register_write): Update.
5814 (sh64_register_read): Update.
5815 (sh64_register_write): Update.
5816 * i386-tdep.c (i386_extract_return_value): Update.
5817 (i386_extract_struct_value_address): Update.
5818 (i386_extract_return_value): Update.
5819 * blockframe.c (generic_read_register_dummy): Update.
5820 (generic_call_dummy_register_unwind): Update
5821 * infrun.c (write_inferior_status_register): Update.
5822
f7321c06
JB
58232002-07-23 Jim Blandy <jimb@redhat.com>
5824
5825 * parser-defs.h (expression_context_pc): Make this extern.
5826 (Thanks to Michael Snyder.)
5827
2037aebb
AC
58282002-07-23 Andrew Cagney <ac131313@redhat.com>
5829
5830 GDB 5.2.1 released from 5.2 branch.
5831 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5832 * README: Update to mention 5.2.1.
5833
66504d44
MS
58342002-07-23 Mark Salter <msalter@redhat.com>
5835
5836 * remote.c (remote_read_bytes): Fix check for error.
5837
27bae383
KB
58382002-07-22 Kevin Buettner <kevinb@redhat.com>
5839
5840 * aix-thread.c (language.h): Include.
5841 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5842 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5843 Print newlines at end of debug messages.
5844 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5845 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5846
58472002-07-22 Kevin Buettner <kevinb@redhat.com>
5848
5849 * aix-thread.c (ppc-tdep.h): Include.
5850 (special_register_p): New function.
5851 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5852 (store_regs_user_thread): Use register number information from
5853 gdbarch_tdep struct instead of hardcoded offsets relative to
5854 FIRST_UISA_SP_REGNUM.
5855 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5856 special_register_p() instead of using FPLAST_REGNUM and
5857 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5858 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5859 will be MQ's register number.
5860
58612002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5862
5863 * aix-thread.c (ops): Rename to aix_thread_ops.
5864 (base_ops): Rename to base_target.
5865 (ops_attach): Rename to aix_thread_attach.
5866 (ops_detach): Rename to aix_thread_detach.
5867 (ops_resume): Rename to aix_thread_detach.
5868 (ops_wait): Rename to aix_thread_wait.
5869 (ops_kill): Rename to aix_thread_kill.
5870 (init_ops): Rename to init_aix_thread_ops.
5871 (ops_fetch_register): Rename to aix_thread_fetch_register.
5872 (ops_store_register): Rename to aix_thread_store_register.
5873 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5874 (ops_thread_alive): Rename to aix_thread_thread_alive.
5875 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5876 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5877 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5878 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5879 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5880 (store_regs_lib): Rename to store_regs_user_thread.
5881 (store_regs_kern): Rename to store_regs_kernel_thread.
5882
27bae383 58832002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5884
5885 * aix-thread.c (ops_prepare_to_store): Eliminate.
5886 (init_ops): Don't initialize ops.prepare_to_store.
5887 (store_regs_kern): Pre-fetch register buffers from child,
5888 because some registers may not be in the cache. Copy
5889 regs from register cache only if they are cached.
5890 (store_regs_lib): Copy regs from register cache only
5891 if they are cached.
5892 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5893 fill_gprs64): Ditto.
5894
61c5da0b
KB
58952002-07-22 Kevin Buettner <kevinb@redhat.com>
5896
5897 * aix-thread.c (gdb_assert.h): Include.
5898 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5899 register sizes (from register cache) match size of buffer holding
5900 register data.
5901 (fill_sprs32): Change parameter types to match those in the ptrace()
5902 buffer.
5903 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5904 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5905
59062002-07-22 Michael Snyder <msnyder@redhat.com>
5907
5908 * aix-thread.c (supply_sprs64): Cosmetic change.
5909 (supply_sprs32): Cosmetic change.
5910 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5911 (fill_sprs64): Use regcache_collect instead of read_register.
5912 (store_regs_lib): Use regcache_collect instead of
5913 read_register. Use fill_sprs32 instead of fill_sprs64,
5914 if debugging a 32-bit architecture.
5915 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5916 out of the register cache, instead of passing a pointer into
5917 the register cache directly to ptrace. Use regcache_collect
5918 insteaad of read_register.
5919 (ops_prepare_to_store): Use target_read_registers instead
5920 of read_register_bytes.
5921
36479eb1
AS
59222002-07-20 Aidan Skinner <aidan@velvet.net>
5923
5924 * MAINTAINERS: Add self under write after approval.
5925
80ae6ee2
AS
59262002-07-20 Aidan Skinner <aidan@velvet.net>
5927
5928 * ada-tasks.c: Change k&r style function definitions to prototyped
5929 form.
5930
8a8ab2b9
AC
59312002-07-19 Andrew Cagney <ac131313@redhat.com>
5932
5933 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5934 * x86-64-tdep.c: Include "objfiles.h".
5935 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5936 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5937
fb16b900
ML
59382002-07-17 Michal Ludvig <michal@suse.cz>
5939
5940 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5941 (update_context): Initialise cfa variable.
5942
0fe7bf7b
MS
59432002-07-17 Michael Snyder <msnyder@redhat.com>
5944
5945 * aix-thread.c: Shorten some long lines.
5946 Bring comments into line with code spec.
5947
488f131b
JB
59482002-07-18 Joel Brobecker <brobecker@gnat.com>
5949
5950 * infrun.c: Re-indent using gdb_indent.sh.
5951
46c415d2
JB
59522002-07-18 Joel Brobecker <brobecker@gnat.com>
5953
5954 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5955 Leave the indentation temporarily untouched, to minimize the diffs.
5956
cdecafbe
EZ
59572002-07-18 Elena Zannoni <ezannoni@redhat.com>
5958
5959 * stabsread.c: Make os9k sections of the code obsolete,
5960 for real this time.
5961 * stabsread.h: Make os9k sections of the code obsolete.
5962
7b6aa020
ML
59632002-07-18 Michal Ludvig <mludvig@suse.cz>
5964
09ec9b38
ML
5965 * linux-low.c (regsets_store_inferior_registers): Add free()
5966 at the end of a loop to prevent memory leak.
5967 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5968 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5969 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5970 line a comment.
4894ac5d 5971 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5972
233282cd
JB
59732002-07-17 Jim Blandy <jimb@redhat.com>
5974
5975 * macrocmd.c (info_macro_command): Remove newline from error
5976 message.
5977
7b6aa020 59782002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5979
5980 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5981 (sh_gdbarch_init): Use it for sh-dsp.
5982
f7ef9339
KB
59832002-07-16 Kevin Buettner <kevinb@redhat.com>
5984
5985 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5986 64-bit DWARF2 format.
5987
8dd72958
JB
59882002-07-16 Joel Brobecker <brobecker@gnat.com>
5989
5990 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5991 <sys/proc.h> when not available.
5992
a99a9e1b
AC
59932002-07-16 Andrew Cagney <ac131313@redhat.com>
5994
5995 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5996 * stabsread.c: Make os9k sections of the code obsolete.
5997 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5998 * config/i386/i386os9k.mt: Make file obsolete.
5999 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6000 (COMMON_OBS): Remove os9kread.o
6001 (SFILES): Remove os9kread.c.
6002 (os9kread.o, remote-os9k.o): Make target obsolete.
6003 * remote-os9k.c: Make file obsolete.
6004 * os9kread.c: Make file obsolete.
6005 * Makefile.in
6006
7a3085c1
AC
60072002-07-16 Andrew Cagney <ac131313@redhat.com>
6008
6009 * NEWS: Mention that the FR30 has been made obsolete.
6010 * fr30-tdep.c: Make file obsolete.
6011 * config/fr30/tm-fr30.h: Ditto.
6012 * config/fr30/fr30.mt: Ditto.
6013 * configure.tgt: Make fr30-*-elf obsolete.
6014 * MAINTAINERS: Make fr30-elf obsolete.
6015
28a93f5a
PM
60162002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6017
6018 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6019 found is not inside a section.
6020
be006b8b
KB
60212002-07-15 Kevin Buettner <kevinb@redhat.com>
6022
6023 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6024 strerror().
6025 (pdc_realloc): Use xrealloc() instead of realloc().
6026
14fa3751
KB
60272002-07-15 Kevin Buettner <kevinb@redhat.com>
6028
6029 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6030 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6031 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6032 macros.
6033
42cc437f
KB
60342002-07-15 Kevin Buettner <kevinb@redhat.com>
6035
6036 * aix-thread.c (ptrace_check): Eliminate goto.
6037 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6038 problem.
6039
8e2c28d4
KB
60402002-07-15 Kevin Buettner <kevinb@redhat.com>
6041
6042 * aix-thread.c (gdbcmd.h): Include.
6043 (DEBUG, DBG, DBG2, dbg): Eliminate.
6044 (debug_aix_thread): New static global.
6045 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6046 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6047 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6048 invocations to DBG and DBG2 macros to test against
6049 ``debug_aix_thread'' and call fprintf_unfiltered().
6050 (_initialize_aix_thread): Add new command "set debug aix-thread".
6051
30413464
AC
60522002-07-15 Andrew Cagney <ac131313@redhat.com>
6053
6054 From Gerhard Tonn <TON@de.ibm.com>:
6055 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6056 instead of supply_register.
6057
7c43edc1
AC
60582002-07-15 Andrew Cagney <ac131313@redhat.com>
6059
6060 * dwarf2cfi.c: Include "gdb_assert.h".
6061 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6062 non-NULL.
6063 (update_context): Do not use __func__. Add missing ``break''.
6064 (update_context): Do not use __func__.
6065
9364a0ef
EZ
60662002-07-15 Elena Zannoni <ezannoni@redhat.com>
6067
6068 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6069 and its setting. Set gdbarch instruction printing functions
6070 directly. For non-rs6000 case use new function
6071 gdb_print_insn_powerpc.
6072 (gdb_print_insn_powerpc): New function.
6073
3fbeef0b
AC
60742002-07-13 Andrew Cagney <ac131313@redhat.com>
6075
92eb23c5 6076 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
6077 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6078 * configure.tgt: Mark d30v-*-* as obsolete.
6079 * d30v-tdep.c: Mark file as obsolete.
6080 * config/d30v/d30v.mt: Ditto.
6081 * config/d30v/tm-d30v.h: Ditto.
6082
aacb1f0a
AS
60832002-07-13 Aidan Skinner <aidan@velvet.net>
6084
6085 * ada-tasks.c (add_task_entry): replace calls to
6086 malloc() with xmalloc
6087 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6088
6089 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6090 ada_finish_decode_line_1, all_sals_for_line
6091 ada_breakpoint_rewrite): replace calls to free() with xfree()
6092
c11d79f2
KB
60932002-07-12 Kevin Buettner <kevinb@redhat.com>
6094
6095 From Nicholas Duffek (with minor changes by Martin Hunt,
6096 Louis Hamilton, and Kevin Buettner):
6097 * aix-thread.c: New file.
6098
8e19ed76
PS
60992002-07-12 Petr Sorfa <petrs@caldera.com>
6100
6101 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6102 complaint for invalid attribute class or form.
6103 (read_func_scope): DW_AT_frame_base
6104 better handling of DW_AT_block*.
6105 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6106 better handling of DW_AT_block*.
6107 (read_common_block): DW_AT_location
6108 better handling of DW_AT_block*.
6109 (read_partial_die): DW_AT_location better handling
6110 of DW_AT_block*.
6111 (new_symbol): DW_AT_external better handling of
6112 DW_AT_block*. Proper initialization of variable
6113 "addr".
6114 (attr_form_is_block): New function that returns true
6115 if the attribute's form is of DW_FORM_block*.
6116
295401f7
DJ
61172002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6118
6119 * valops.c (find_method_list): Remove comment about
6120 removed STATIC_MEMFUNCP argument.
6121 (value_find_oload_method_list): Likewise.
6122
e42dc924
KB
61232002-07-12 Kevin Buettner <kevinb@redhat.com>
6124
6125 From Nicholas Duffek:
6126 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6127 target_new_objfile_hook.
6128
6904b546
KB
61292002-07-12 Kevin Buettner <kevinb@redhat.com>
6130
6131 From Nicholas Duffek:
6132 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6133 csect.
6134
53fe9346
AC
61352002-07-12 Andrew Cagney <cagney@redhat.com>
6136
6137 * MAINTAINERS: Mention --enable-sim-build-warnings.
6138 (m68hc11-elf): Disable sim build warnings.
6139 (m32r-elf): Mark as broken obsolete candidate.
6140 (x86_64-linux-gnu): Mark as buildable with -Werror.
6141 (arm-elf): Change -w to ``,'' which enables warnings but not
6142 -Werror.
6143
af5f3db6
AC
61442002-07-12 Andrew Cagney <ac131313@redhat.com>
6145
6146 * bcache.h: Update copyright.
6147 (struct bstring, struct bcache): Move definition to "bcache.c".
6148 Replaced by opaque declaration.
6149 (bcache_xfree): Replace free_bcache.
6150 (bcache_xmalloc, bcache_memory_used): Declare.
6151
6152 * bcache.c: Update copyright.
6153 (struct bstring, struct bcache): Moved to here from "bcache.h".
6154 Update comments.
6155 (bcache_xmalloc, bcache_memory_used): New functions.
6156 (bcache_xfree): Replace function free_bcache.
6157
6158 * Makefile.in (objfiles.o): Add $(bcache_h).
6159 (objfiles_h): Remove $(bcache_h).
6160 (symfile.o): Add $(bcache_h).
6161
6162 * symmisc.c: Update copyright.
6163 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6164 (print_objfile_statistics): Use bcache_memory_used.
6165
6166 * symfile.c: Include "bcache.h".
6167 (reread_symbols): Use bcache_xfree.
6168 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6169 (add_psymbol_to_list): Pass psymbol_cache by value.
6170 (add_psymbol_with_dem_name_to_list): Ditto.
6171
6172 * objfiles.h: Update copyright.
6173 (struct bcache): Declare opaque. Do not include "bcache.h".
6174 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6175 bcache'' pointers.
6176 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6177
6178 * objfiles.c: Include "bcache.h". Update copyright.
6179 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6180 macro_cache.
6181 (free_objfile): Use bcache_xfree.
6182
444199e7
GS
61832002-07-11 Grace Sainsbury <graces@redhat.com>
6184
6185 * monitor.c (monitor_fetch_register): Make name a constant.
6186 (monitor_store_register): Same.
6187
261397f8
DJ
61882002-07-11 Daniel Jacobowitz <drow@mvista.com>
6189
6190 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6191 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6192 (finish_block) For non-function blocks, hash the symbol table. For
6193 function blocks, mark the symbol table as unhashed.
6194 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6195 (msymbol_hash_iw): Likewise.
6196 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6197 value.
6198 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6199 (lookup_minimal_symbol): Likewise for both.
6200 * symtab.h (struct block): Add `hashtable' flag. Comment the
6201 hashtable.
6202 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6203 (ALL_BLOCK_SYMBOLS): Update.
6204 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6205 (struct symbol): Add `hash_next' pointer.
6206 * symtab.c (lookup_block_symbol): Search using the hash table when
6207 possible.
6208 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6209 (search_symbols, find_addr_symbol): Likewise.
6210
6211 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6212 (read_dst_symtab): Likewise.
6213 * jv-lang.c (get_java_class_symtab): Likewise.
6214 * mdebugread.c: Include "gdb_assert.h".
6215 (shrink_block): Assert that the block being modified is not hashed.
6216 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6217 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6218 symbols.
6219 (dump_symtab): Recognize hashed blocks.
6220 * printcmd.c (print_frame_args): Assert that function blocks do not
6221 have hashed symbol tables.
6222 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6223 (fill_in_ada_prototype, debug_print_block): Likewise.
6224 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6225
6f0eaa01
CV
62262002-07-11 Corinna Vinschen <vinschen@redhat.com>
6227
6228 * stack.c (print_frame): Use result of frame_address_in_block()
6229 instead of fi->pc when evaluating symbols.
6230 (backtrace_command_1): Ditto.
6231
a208b0cb
AC
62322002-07-11 Andrew Cagney <cagney@redhat.com>
6233
6234 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6235 Make static.
6236
6237 * arm-tdep.c (arm_register_name): Make return type constant.
6238
a6b6b089
AC
62392002-07-10 Andrew Cagney <ac131313@redhat.com>
6240
5ae5f592
AC
6241 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6242 prototype.
6243 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6244 * s390-tdep.c (s390_fp_regnum): Ditto.
6245 (s390_read_fp): Ditto.
6246 (s390_pop_frame): Ditto.
6247 (_initialize_s390_tdep): Ditto.
6248 * remote.c (get_remote_state): Ditto.
6249 * procfs.c (mappingflags): Ditto.
6250 * memattr.c (_initialize_mem): Ditto.
6251 * mcore-tdep.c (mcore_pop_frame): Ditto.
6252 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6253 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6254 * language.c (set_case_str): Ditto.
6255 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6256 * frv-tdep.c (new_variant): Ditto.
6257 (frv_stopped_data_address): Ditto.
6258 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6259 (context_alloc): Ditto.
6260 (frame_state_alloc): Ditto.
6261 (unwind_tmp_obstack_init): Ditto.
6262 (unwind_tmp_obstack_free): Ditto.
6263 (cfi_read_fp): Ditto.
6264 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6265 (cris_pop_frame): Ditto.
6266 * c-lang.c (scanning_macro_expansion): Ditto.
6267 (finished_macro_expansion): Ditto.
6268 (c_preprocess_and_parse): Ditto.
6269 * gdbarch.sh: Ditto.
6270 * gdbarch.h, gdbarch.c: Regenerate.
6271 * config/mn10200/tm-mn10200.h: Adjust indentation.
6272 * target.c: Adjust indentation.
6273 * symtab.h: Adjust indentation.
6274 * stabsread.h: Adjust indentation.
6275 * remote-es.c: Adjust indentation.
6276 * os9kread.c: Adjust indentation.
6277
62782002-07-10 Andrew Cagney <ac131313@redhat.com>
6279
a6b6b089
AC
6280 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6281 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6282
a1789893
GS
62832002-07-10 Grace Sainsbury <graces@redhat.com>
6284
6285 * NEWS: Mention m68k, mcore multi-arching.
6286 * MAINTAINERS: Change status of m68k, mcore to reflect
6287 multi-arching.
6288
02f0d45d
DJ
62892002-07-10 Daniel Jacobowitz <drow@mvista.com>
6290
6291 * valops.c (find_overload_match): Free oload_syms.
6292
f15f768e
JB
62932002-07-09 Joel Brobecker <brobecker@gnat.com>
6294
6295 Define HAVE_SYS_PROC_H if sys/proc.h exists
6296 * configure.in: Add check for sys/proc.h
6297 * config.in: Regenerate.
6298 * configure: Regenerate.
6299
902a7139
GS
63002002-07-09 Grace Sainsbury <graces@redhat.com>
6301
6302 * config/m68k/tm-m68k.h: Remove macros wrapped in
6303 #if !GDB_MULTI_ARCH.
6304
a534e424
AC
63052002-07-08 Andrew Cagney <ac131313@redhat.com>
6306
6307 * config.in, configure: Regenerate.
6308
9b94f7bf
MK
63092002-07-08 Mark Kettenis <kettenis@gnu.org>
6310
6311 * dwarf2cfi.c: Include "gcore.h".
6312 (execute_stack_op): Fix implementation of the
6313 DW_OP_deref and DW_OP_deref_size operators by letting do their
6314 lookup in the target.
6315
1d34db41
MK
63162002-07-07 Mark Kettenis <kettenis@gnu.org>
6317
6318 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6319 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6320 tdep->sc_sp_offset.
6321
79d5b63a
DJ
63222002-07-05 Daniel Jacobowitz <drow@mvista.com>
6323
6324 Fix PR gdb/595, gdb/602
6325 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6326 Don't call value_cast, just read the vtable pointer; update comments
6327 to match.
6328
3bb912e8
GS
63292002-07-05 Grace Sainsbury <graces@redhat.com>
6330
6331 * config/mcore/tm-mcore.h: Remove file.
6332 * config/mcore/mcore.mt: Remove definition of TM_FILE
6333 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6334
ca39387d
MK
63352002-07-05 Mark Kettenis <kettenis@gnu.org>
6336
6337 * i386bsd-tdep.c: Include "gdb_string.h".
6338
efdc1108
GS
63392002-07-04 Grace Sainsbury <graces@redhat.com>
6340
6341 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6342 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6343 mcore-tdep.
6344 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6345 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6346 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6347 (RETVAL_REGNUM): Move macros from tm-mcore.h
6348 (mcore_reg_struct_has_addr): New function.
6349 (mcore_gdbarch_init): Added initializations for the macros removed
6350 from tm-mcore.h.
6351
bb21884d
MK
63522002-07-04 Mark Kettenis <kettenis@gnu.org>
6353
6354 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6355 traditonal string branding within the ELF header.
6356
228c6d41
DJ
63572002-07-04 Daniel Jacobowitz <drow@mvista.com>
6358
6359 * symtab.c (remove_params): New function.
6360 (make_symbol_overload_list): Use it instead of cplus_demangle.
6361 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6362
2404952e
MK
63632002-07-04 Mark Kettenis <kettenis@gnu.org>
6364
e5e4acad
MK
6365 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6366
baadce09
MK
6367 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6368 New variables.
6369 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6370 and tdep->sigtramp_end.
6371 * i386obsd-nat.c: New file.
6372 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6373
2404952e
MK
6374 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6375 Don't call get_current_frame().
6376
9b4f1ba7
PM
63772002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6378
6379 * i386-nat.c (child_post_startup_inferior): New function
6380 calling i386_cleanup_dregs if
6381 I386_USE_GENERIC_WATCHPOINTS is defined.
6382 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6383 conditional to acknowledge that i386-nat.c has its
6384 own child_post_startup_inferior function.
6385
c0d1d883
MK
63862002-07-04 Mark Kettenis <kettenis@gnu.org>
6387
00f8375e
MK
6388 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6389 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6390 instead of MAX_REGISTER_RAW_SIZE.
6391 (i386_extract_return_value, i386_extract_struct_value_address):
6392 Convert to use regcache.
6393 (i386_gdbarch_init): Set max_register_raw_size and
6394 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6395 Set extract_return_value and extract_struct_value_address instead
6396 of their deprecated variants.
6397
c0d1d883
MK
6398 Convert i386 target to generic dummy frames.
6399 * i386-tdep.c: Include "symfile.h".
6400 (i386_frameless_signal_p): Consider a function to be frameless if
6401 the pc points at the first instruction of the function.
6402 (i386_frame_chain): Handle (generic) call dummies.
6403 (i386_frame_saved_pc): Likewise.
6404 (i386_frame_init_saved_regs): Remove code dealing with call
6405 dummies on the stack.
6406 (i386_push_dummy_frame): Removed.
6407 (i386_call_dummy_words): Removed.
6408 (i386_fix_call_dummy): Removed.
6409 (i386_push_return_address): New function.
6410 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6411 parameter, and don't call get_current_frame.
6412 (i386_pop_frame): New function.
6413 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6414 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6415 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6416 call_dummy_length to 0, set call_dummy_words to NULL, set
6417 sizeof_call_dummy_words to 0, set fix_call_dummy to
6418 generic_fix_call_dummy, set pc_in_call_dummy to
6419 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6420 generic_push_dummy_frame, set push_return_address to
6421 i386_push_return_address and set frame_chain_valid to
6422 generic_file_frame_chain_valid.
6423
049ee0e4
AC
64242002-07-03 Andrew Cagney <ac131313@redhat.com>
6425
6426 * gdbarch.sh (struct regcache): Add opaque declaration.
6427 (EXTRACT_RETURN_VALUE): New architecture method.
6428 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6429 * gdbarch.h, gdbarch.c: Regenerate.
6430 * arch-utils.c (legacy_extract_return_value): New function.
6431 * arch-utils.h (legacy_extract_return_value): Declare.
6432 * values.c (value_being_returned): Re-enable code handling
6433 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6434 deprecated_grub_regcache_for_registers call to block handling
6435 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6436 (EXTRACT_RETURN_VALUE): Do not define.
6437
4e0d9804
GS
64382002-07-03 Grace Sainsbury <graces@redhat.com>
6439
6440 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6441 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6442 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6443 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6444 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6445 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6446 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6447 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6448 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6449 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6450 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6451 argument so the function fits the prototype in the architecture
6452 vector.
6453 (mcore_pop_frame): Remove argument so the function fits the
6454 prototype. Use get_current_frame instead of the argument.
6455 (mcore_push_arguments): Change type of struct_return so the
6456 function can be used in the architecture vector.
6457 (mcore_store_struct_return): Add.
6458 (mcore_frame_init_saved_regs): Add.
6459 (mcore_gdbarch_init): Add function calls to replace the macros
6460 removed from tm-mcore.h
6461
36160dc4
AC
64622002-07-03 Andrew Cagney <ac131313@redhat.com>
6463
6464 * infcmd.c (print_return_value): Remove compatibility code calling
6465 deprecated_grub_regcache_for_registers.
6466
6467 * values.c: Include "regcache.h".
6468 (value_being_returned): Update. Use
6469 deprecated_grub_regcache_for_registers to extract the register
6470 buffer address.
6471 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6472 ``struct regcache''.
6473 * Makefile.in (values.o): Add dependency on $(regcache_h).
6474
6475 * inferior.h (run_stack_dummy): Change type of second parameter to
6476 a ``struct regcache''.
6477 * valops.c (hand_function_call): Change type of retbuf to ``struct
6478 regcache''. Allocate using regcache_xmalloc, clean using
6479 make_cleanup_regcache_xfree.
6480 * infcmd.c (run_stack_dummy): Update. Use
6481 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6482
6483 * regcache.c (do_regcache_xfree): New function.
6484 (make_cleanup_regcache_xfree): New function.
6485 * regcache.h (make_cleanup_regcache_xfree): Declare.
6486
e64d9b3d
MH
64872002-07-03 Martin M. Hunt <hunt@redhat.com>
6488
4dd79c29
MH
6489 * event-top.c (command_line_handler): Don't read past
6490 beginning of buffer.
e64d9b3d 6491
4dd79c29
MH
64922002-07-03 Martin M. Hunt <hunt@redhat.com>
6493
e64d9b3d
MH
6494 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6495 struct frame_id.
6496 (varobj_create): Store frame_id for root.
6497 (varobj_gen_name): Use xasprintf.
6498 (varobj_update): Save and restore frame using get_frame_id() and
6499 frame_find_by_id().
6500 (create_child): Use xasprintf.
6501 (new_root_variable): Initialize frame_id.
6502 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6503 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6504 to prevent memory leak.
6505
26e6c56a
AC
65062002-07-03 Andrew Cagney <ac131313@redhat.com>
6507
6508 * valops.c (hand_function_call): Move declaration of retbuf to
6509 start of function, allocate using malloc, add a cleanup but before
6510 the inf_status cleanup, cleanup the buffer. Rename local variable
6511 old_chain to inf_status_cleanup.
6512
f436dd25
MH
65132002-07-03 Martin M. Hunt <hunt@redhat.com>
6514
6515 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6516
6517 * cli/cli-decode.c (cmd_func_p): New function.
6518 (cmd_func): New function.
6519
6520 * command.h: Add cmd_func() and cmd_func_p().
6521
4cfe2084
GS
65222002-07-03 Grace Sainsbury <graces@redhat.com>
6523
6524 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6525 (REGISTER_SIZE): Remove.
6526 (MAX_REGISTER_RAW_SIZE): Remove.
6527 (REGISTER_VIRTUAL_TYPE): Remove.
6528 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6529 (REGISTER_NAME): Remove.
6530 (USE_GENERIC_DUMMY_FRAMES): Remove.
6531 (CALL_DUMMY): Remove.
6532 (CALL_DUMMY_START_OFFSET): Remove.
6533 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6534 (CALL_DUMMY_LOCATION): Remove.
6535 (FIX_CALL_DUMMY): Remove.
6536 (CALL_DUMMY_ADDRESS): Remove.
6537 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6538 (SAVE_DUMMY_FRAME_TOS): Remove.
6539 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6540 (mcore_register_virtual_type): New function.
6541 (mcore_register_byte): New function.
6542 (mcore_register_size): New function.
6543 (mcore_register_name): New function.
6544 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6545 macros removed from tm-mcore.h.
6546 (mcore_dump_tdep): Add.
6547 (_initialize_mcore_tdep): Add gdbarch_register call.
6548
4fd667e9
MK
65492002-07-03 Mark Kettenis <kettenis@gnu.org>
6550
6551 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6552 frameless_look_for_prologue, such that we actually call this
6553 function.
6554
42f99ac2
JB
65552002-07-02 Joel Brobecker <brobecker@gnat.com>
6556
6557 * frame.h (frame_address_in_block): New function.
6558
6559 * blockframe.c (frame_address_in_block): New function extracted
6560 from get_frame_block().
6561 (get_frame_block): Use frame_address_in_block().
6562 (block_innermost_frame): Use frame_address_in_block() to match
6563 the frame pc address against the block boundaries rather than
6564 the frame pc directly. This prevents a failure when a frame pc
6565 is actually a return-address pointing immediately after the end
6566 of the given block.
6567
103a1597 65682002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6569
6570 * MAINTAINERS: Add self under write after approval.
6571
65722002-07-02 Grace Sainsbury <graces@redhat.com>
6573
103a1597
GS
6574 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6575 used in architecture vector. The default is
6576 m68k_local_breakpoint_from_pc.
6577 (m68k_local_breakpoint_from_pc): Add.
6578 (enum): Add register numbers from tm-m68k.h.
6579 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6580 vector.
6581 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6582 GDB_MULTI_ARCH_PARTIAL.
6583 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6584 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6585 m68k-tdep.c.
6586 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6587 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6588 to enum in m68k-tdep.c
6589
7a5a0534
JB
65902002-07-02 Joel Brobecker <brobecker@gnat.com>
6591
6592 * solib-osf.c (open_map): Compute the list of shared libraries
6593 loaded by the inferior, rather than the list of libraries loaded
6594 by GDB itself. Otherwise, GDB ends up reading the symbols from
6595 the wrong shared libraries...
6596
6f558d74
MK
65972002-07-02 Mark Kettenis <kettenis@gnu.org>
6598
b7d15bf7
MK
6599 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6600 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6601 macros.
6602 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6603 Remove functions.
6604 (FRAMELESS_SIGNAL): Remove function.
6605 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6606 i386_linux_saved_pc_after_call): Removed.
6607 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6608 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6609 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6610
6bff26de
MK
6611 * i386-tdep.c (i386_frameless_signal_p): New function.
6612 (i386_frame_chain): Deal with frameless signals.
6613 (i386_sigtramp_saved_sp): New function.
6614 (i386_frame_saved_pc): Deal with frameless signals.
6615 (i386_saved_pc_after_call): Make sure the correct value is
6616 returned just after entry into a sigtramp.
6617 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6618 i386fbsd4_sc_sp_offset): New variables.
6619 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6620 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6621 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6622 similiar to what we already did for sc_pc_offset.
6623 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6624 tdep->sc_sp_offset.
6625
6f558d74
MK
6626 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6627
145564b7
ML
66282002-07-02 Michal Ludvig <mludvig@suse.cz>
6629
6630 * config/i386/tm-x86-64linux.h: New.
6631 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6632 definitions.
6633 * config/i386/nm-x86-64.h: Rename to ...
6634 * config/i386/nm-x86-64linux.h: ... this one.
6635 * config/i386/x86-64linux.mh: Reflect the above change.
6636
3a1e71e3
MK
66372002-07-01 Mark Kettenis <kettenis@gnu.org>
6638
21d0e8a4
MK
6639 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6640 with sigcontext_addr. Add sc_sp_offset.
6641 (i386bsd_sigtramp_saved_pc): Remove prototype.
6642 (i386bsd_sicontext_addr): Add prototype.
6643 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6644 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6645 (i386_svr4_sigtramp_saved_pc): Removed.
6646 (i386_svr4_sigcontext_addr): New function.
6647 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6648 Initialize tdep->sigcontext_addr instead. Initialize
6649 tdep->sc_pc_offset and tdep->sc_sp_offset.
6650 (i386_gdbarch_init): Likewise.
6651 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6652 any more.
6653 (i386bsd_sigtramp_saved_pc): Remove function.
6654 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6655 Initialize tdep->sigcontext_addr instead. Initialize
6656 tdep->sc_pc_offset.
6657 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6658 of tdep->sigtramp_saved_pc.
6659 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6660 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6661 instead.
6662
3a1e71e3
MK
6663 * i386-tdep.c (i386_frameless_function_invocation,
6664 i386_frame_num_args, i386_frame_init_saved_regs,
6665 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6666 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6667 i386_extract_return_value, i386_store_return_value,
6668 i386_extract_struct_value_address, i386_register_virtual_type,
6669 i386_register_convertible, i386_register_convert_to_virtual,
6670 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6671 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6672 static.
6673
52e9098c
MK
66742002-07-01 Mark Kettenis <kettenis@gnu.org>
6675
77b13a25
MK
6676 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6677
52e9098c
MK
6678 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6679 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6680 this macro. Include "value.h".
6681
1b372fff
AS
66822002-06-30 Aidan Skinner <aidan@velvet.net>
6683
6684 * ada-exp.tab.c: remove as it's a generated file
6685 * ada-lex.c: remove as it's a generated file
6686
9c5045b5
MK
66872002-06-30 Mark Kettenis <kettenis@gnu.org>
6688
4a93c5bb
MK
6689 * config/i386/tm-i386.h (struct frame_info, struct
6690 frame_saved_regs, struct value, struct type): Remove forward
6691 declarations.
6692
322d4fe0
MK
6693 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6694 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6695 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6696 (FILL_FPXREGSET): Define.
6697
fdd8263d
MK
6698 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6699
482e577b
MK
6700 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6701 i[3456]86-*-netbsd* case.
6702 * config/i386/tm-obsd.h: Removed.
6703 * config/i386/obsd.mt: Removed.
6704 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6705 core-aout.o.
6706 (MH_CFLAGS): Add -DYYDEBUG=0.
6707
6916549a
MK
6708 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6709 i386nbsd_sc_pc_offset on OpenBSD too.
6710
9c5045b5
MK
6711 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6712 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6713 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6714 define.
6715 * i386bsd-tdep.c: Include "arch-utils.h".
6716 (i386bsd_aout_in_solib_call_trampoline): New function.
6717 (i386bsd_init_abi): Set in_solib_call_trampoline to
6718 i386bsd_aout_in_solib_call_trampoline.
6719 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6720 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6721
aa84d1bb
AC
67222002-06-28 Andrew Cagney <ac131313@redhat.com>
6723
6724 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6725 (struct obstack, struct bcache): Add opaque declarations.
6726 * Makefile.in (macrotab_h): Update
6727
b4d83933
AC
67282002-06-28 Andrew Cagney <ac131313@redhat.com>
6729
6730 * blockframe.c (generic_find_dummy_frame): Change return type to
6731 ``struct regcache''.
6732 (struct dummy_frame): Replace field ``registers'' with regcache, a
6733 struct regcache object.
6734 (generic_find_dummy_frame): Update.
6735 (generic_push_dummy_frame): Update. Use regcache_xfree,
6736 regcache_xmalloc and regcache_cpy.
6737 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6738 regcache_xfree.
6739 (deprecated_generic_find_dummy_frame): Update.
6740 (generic_read_register_dummy): Update. Use
6741 regcache_read_as_address.
6742 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6743 (generic_get_saved_register): Update. Use regcache_read.
6744
08c0b5bc
AC
67452002-06-28 Andrew Cagney <ac131313@redhat.com>
6746
6747 * Makefile.in (objfiles_h): Add $(bcache_h).
6748 * objfiles.h: Include "bcache.h".
6749
6750 * Makefile.in (symtab_h): Remove $(bcache_h).
6751 * symtab.h: Do not include "bcache.h".
6752
1f89801a
AC
67532002-06-28 Andrew Cagney <ac131313@redhat.com>
6754
6755 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6756 generic_func_frame_chain_valid.
6757
b9644b58
DB
67582002-06-28 David O'Brien <obrien@FreeBSD.org>
6759
6760 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6761 * config/i386/tm-fbsd.h: Likewise.
6762
dd486634
AC
67632002-06-28 Andrew Cagney <ac131313@redhat.com>
6764
6765 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6766 generic_unwind_get_saved_register.
6767
0b434a00
AC
67682002-06-27 Andrew Cagney <ac131313@redhat.com>
6769
6770 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6771 * regcache.c (supply_register): Add missing argument to
6772 register_buffer call.
6773
f30e5a77
AC
67742002-06-27 Andrew Cagney <ac131313@redhat.com>
6775
6776 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6777 Solaris /bin/grep does not not like it. From Peter Schauer.
6778
9f064c95
TT
67792002-06-26 Tom Tromey <tromey@redhat.com>
6780
6781 * command.h (add_setshow_cmd): Declare.
6782 (add_setshow_cmd_full): Declare.
6783 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6784 returns void. Use add_setshow_cmd_full.
6785 (add_setshow_cmd_full): New function.
6786 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6787 (add_setshow_boolean_cmd): Likewise.
6788
099c7589
JT
67892002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6790
6791 * config/vax/tm-vax.h: Protect from multiple inclusion.
6792 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6793 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6794 * config/vax/tm-vaxbsd.h: ...here. New file.
6795 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6796
1d049c5e
JT
67972002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6798
6799 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6800 (BELIEVE_PCC_PROMOTION): Remove.
6801 (AP_REGNUM): Move to...
6802 * config/vax/nm-vax.h: ...here.
6803 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6804 (vax_breakpoint_from_pc): New function.
6805 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6806 and gdbarch_believe_pcc_promotion.
6807
4791e091
JT
68082002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6809
6810 * Makefile.in (vax_tdep_h): Define.
6811 (vax-tdep.o): Use $(vax_tdep_h).
6812 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6813 (vax_dump_tdep): New function.
6814 (_initialize_vax_tdep): Register vax_dump_tdep.
6815 * vax-tdep.h: Include osabi.h.
6816 (struct gdbarch_tdep): New.
6817
da130f98
AC
68182002-06-26 Andrew Cagney <cagney@redhat.com>
6819
6820 * frame.h (deprecated_generic_find_dummy_frame): Rename
6821 generic_find_dummy_frame.
6822 * blockframe.c (generic_find_dummy_frame): Make static.
6823 (deprecated_generic_find_dummy_frame): New function.
6824 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6825 generic_find_dummy_frame with deprecated_find_dummy_frame.
6826 (sh64_nofp_frame_init_saved_regs): Ditto.
6827 (sh_fp_frame_init_saved_regs): Ditto.
6828 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6829 (s390_frame_chain): Ditto.
6830 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6831
6300c360
GS
68322002-06-26 Grace Sainsbury <graces@redhat.com>
6833
6834 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6835 gdbarch vector are at the top.
6836 (NUM_REGS): Remove.
6837 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6838 (FRAME_ARGS_ADDRESS): Remove.
6839 (FRAME_LOCALS_ADDRESS): Remove.
6840 (FRAME_NUM_ARGS): Remove.
6841 (FRAME_ARGS_SKIP): Remove.
6842 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6843 (m68k_gdbarch_init): Add gdbarch initializations for macros
6844 undefined in tm-m68k.h
6845
1c617db8
GS
68462002-06-26 Grace Sainsbury <graces@redhat.com>
6847
6848 * monitor.h: Add the function regname to monitor_ops
6849 structure. This way NUM_REGS does not have to be a constant.
6850 * monitor.c (monitor_fetch_register): Added support for regname
6851 function. The function is called if the array regnames is NULL.
6852 (monitor_store_register): Same.
da130f98
AC
6853 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6854 regnames array.
1c617db8
GS
6855 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6856 cpu32bug_cmds.regname to point to new function.
6857 * abug-rom.c (abug_regname): Same as above.
6858 (init_abug_cmds): Same.
6859 * dbug-rom.c (dbug_regname): Same as above.
6860 (init_dbug_cmds): Same.
6861 * remote-est.c (est_regname): Same.
6862 (init_est_cmds): Same.
6863 * rom68k-rom.c (rom68k_regname): Same.
6864 (init_rom68k_cmds): Same.
6865
ea9365bb
TT
68662002-06-25 Tom Tromey <tromey@redhat.com>
6867
6868 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6869
72cec141
AC
68702002-06-25 Andrew Cagney <cagney@redhat.com>
6871
6872 * infrun.c (stop_registers): Change variable's type to ``struct
6873 regcache'''.
6874 (xmalloc_inferior_status): Delete function.
6875 (free_inferior_status): Delete function.
6876 (normal_stop): Use regcache_cpy.
6877 (struct inferior_status): Change type of fields ``stop_registers''
6878 and ``registers'' to ``struct regcache''.
6879 (write_inferior_status_register): Use regcache_write.
6880 (save_inferior_status): Instead of calling
6881 xmalloc_inferior_status, allocate the inf_status buffer directly.
6882 Use regcache_dup_no_passthrough and regcache_dup to save the
6883 buffers.
6884 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6885 Replace the stop_registers regcache instead of overriding it. Use
6886 regcache_xfree. Instead of calling free_inferior_status, xfree
6887 the buffer directly.
6888 (discard_inferior_status): Use regcache_xfree. Instead of calling
6889 free_inferior_status, xfree the buffer directly.
6890 (build_infrun): Use regcache_xmalloc.
6891 (_initialize_infrun): Delete redundant call to build_infrun.
6892
6893 * Makefile.in (infcmd.o): Add $(regcache_h).
6894
6895 * infcmd.c: Include "regcache.h".
6896 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6897 obtain the address of `stop_registers' register buffer.
6898 (print_return_value): Ditto.
6899
6900 * inferior.h (struct regcache): Add opaque declaration.
6901 (stop_registers): Change variable's declared type to ``struct
6902 regcache''.
6903
defc6f8c
TT
69042002-06-24 Tom Tromey <tromey@redhat.com>
6905
c0e624e7
TT
6906 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6907 * target.c (initialize_targets): Fixed typo in
6908 trust-readonly-sections `show' documentation.
6909
defc6f8c
TT
6910 * main.c: Marked all strings with _().
6911
2b236d82
DH
69122002-06-24 Don Howard <dhoward@redhat.com>
6913
6914 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6915 that means max CORE_ADDR+1.
6916 (lookup_mem_region): Ditto.
6917 (mem_info_command): Ditto.
6918
942dc0e9
GS
69192002-06-24 Grace Sainsbury <graces@redhat.com>
6920
6921 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6922 (REGISTER_BYTES_OK): Remove.
6923 (REGISTER_BYTES): Remove.
6924 (STORE_STRUCT_RETURN): Remove.
6925 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6926 (STORE_RETURN_VALUE): Remove.
6927 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6928 (FRAME_CHAIN): Remove.
6929 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6930 (FRAME_SAVED_PC): Remove.
6931 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6932 (m68k_store_struct_return): Add.
6933 (m68k_deprecated_extract_return_value): Add.
6934 (m68k_deprecated_extract_struct_value_address): Add.
6935 (m68k_store_return_value): Add.
6936 (m68k_frame_chain): Add.
6937 (m68k_frameless_function_invocation): Add.
6938 (m68k_frame_saved_pc): Add.
6939 (m68k_gdbarch_init): added set_gdbarch calls for new
6940 functions and deleted macros.
6941
03c30d4d
TT
69422002-06-23 Tom Tromey <tromey@redhat.com>
6943
6944 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6945 (ALLDEPFILES): Likewise.
6946 (udiheaders): Removed.
6947 (udip2soc.o): Likewise.
6948 (udi2go32.o): Likewise.
6949 (udr.o): Likewise.
6950 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6951
37e71372
AC
69522002-06-22 Andrew Cagney <ac131313@redhat.com>
6953
06a6ac57
AC
6954 * infrun.c (_initialize_infrun): Delete unnecessary call to
6955 build_infrun.
6956
37e71372
AC
6957 * regcache.h: Update comments describing the regcache_cpy family
6958 of functions.
6959 (regcache_save, regcache_restore): Delete declaration.
6960 (regcache_save_no_passthrough): Delete declaration.
6961 (regcache_restore_no_passthrough): Delete declaration.
6962 * regcache.c (regcache_save): Delete function.
6963 (regcache_save_no_passthrough): Delete function.
6964 (regcache_restore): Delete function.
6965 (regcache_restore_no_passthrough): Delete function.
6966
78f6d055
AC
69672002-06-21 Andrew Cagney <ac131313@redhat.com>
6968
6969 * config/m68k/tm-m68k.h: Fix typo.
6970 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6971 (m68k_frame_init_saved_regs): Declare.
6972
78b119cb
JB
69732002-06-21 Jim Blandy <jimb@redhat.com>
6974
6975 Remove some vestiges of Harris 88k support.
6976 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6977 register numbering quirk.
6978 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6979 odd symbols occurring in Harris 88k ELF targets.
6980
0fbb3da7
TT
69812002-06-21 Tom Tromey <tromey@redhat.com>
6982
6983 * gdb_locale.h: New file.
6984 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6985 (defs_h): Added gdb_locale.h.
6986 * configure, config.in: Rebuilt.
6987 * configure.in (PACKAGE): Define.
6988 * defs.h: Include gdb_locale.h.
6989 * main.c (captured_main): Call setlocale, bindtextdomain,
6990 textdomain.
6991
456f8b9d
DB
69922002-06-21 Dave Brolley <brolley@redhat.com>
6993
6994 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6995 * config/frv/frv.mt: New file.
6996 * config/frv/tm-frv.h: New file.
6997 * configure.tgt: Support frv-*-*.
6998 * Makefile.in (frv-tdep.o): New target.
6999 * frv-tdep.c: New file.
7000 * NEWS: Mention frv.
7001
cdd463f9
DB
70022002-06-21 Dave Brolley <brolley@redhat.com>
7003
7004 * MAINTAINERS: Add self to "Write After Approval" list.
7005
5d3ed2e3
GS
70062002-06-21 Grace Sainsbury <graces@redhat.com>
7007
7008 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7009 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7010 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7011 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7012 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7013
7014 * m68k-tdep.c: Include arch-utils.h
7015 (m68k_register_raw_size): Add.
7016 (m68k_register_virtual_size): Add.
7017 (m68k_register_virtual_type): Add.
7018 (m68k_register_name): Add.
7019 (m68k_stack_align): Add.
7020 (m68k_register_byte): Add.
7021 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7022 tm-m68k.h.
7023
7f8e7424
GS
70242002-06-21 Grace Sainsbury <graces@redhat.com>
7025
a2c6a6d5 7026 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
7027 m68k_find_saved_regs.
7028 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 7029 references to it with frame->saved_regs.
7f8e7424
GS
7030 (m68k_gdbarch_init): Added function calls to initialize the
7031 gdbarch structure.
a2c6a6d5
GS
7032 (m68k_fix_call_dummy): Add.
7033 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7034 (CALL_DUMMY): Remove.
7035 (CALL_DUMMY_LENGTH): Remove.
7036 (CALL_DUMMY_START_OFFSET): Remove.
7037 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7038 (FIX_CALL_DUMMY): Remove.
7039 (PUSH_DUMMY_FRAME): Remove.
7040 (POP_FRAME): Remove.
7f8e7424 7041
f461f5cf
PM
70422002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7043
7044 * parse.c (parse_fprintf): New function used to avoid calls to
7045 fprintf in bison parser generated debug code.
7046 * parser-defs.h: Declaration of new parse_fprintf function.
7047 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7048 Set YYDEBUG to 1 by default.
7049 Set YYFPRINTF as parse_fprintf.
7050
7f0c12ed
ML
70512002-06-21 Michal Ludvig <mludvig@suse.cz>
7052
7053 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7054 encoding anymore.
7055 (pointer_encoding, enum ptr_encoding): New.
7056 (execute_cfa_program): Take care about pointer encoding.
7057 (dwarf2_build_frame_info): Only call parse_frame_info for
7058 .debug_frame and .eh_frame.
7059 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7060 fixed augmentation handling, added relative addressing,
7061 ignore duplicate FDEs. Added comments.
19d833a2 7062 * dwarf2cfi.c: Reindented.
7f0c12ed 7063
87c4a039
EZ
70642002-06-20 Elena Zannoni <ezannoni@redhat.com>
7065
7066 * event-top.c (command_handler): Don't use space_at_cmd_start
7067 unless there is sbrk() on the host. Assign time and space data
7068 to union fields of the appropriate length.
7069
1cf877ad
ML
70702002-06-20 Michal Ludvig <mludvig@suse.cz>
7071
7072 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7073 x86_64_register_name. Return type changed to 'const char *'.
7074 (x86_64_register_name2nr): Rename to x86_64_register_number.
7075 (x86_64_gdbarch_init): Update to reflect the change.
7076 * x86-64-tdep.h: Ditto.
7077 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7078 (supply_fpregset): Ditto.
7079
3fadccb3
AC
70802002-06-19 Andrew Cagney <cagney@redhat.com>
7081
7082 * regcache.h: Update copyright.
7083 (struct regcache, struct gdbarch): Add opaque declarations.
7084 (current_regcache): Declare global variable.
7085 (regcache_read, regcache_write): Add gdbarch parameter.
7086 (regcache_save, regcache_save_no_passthrough)
7087 (regcache_restore, regcache_restore_no_passthrough)
7088 (regcache_dup, regcache_dup_no_passthrough)
7089 (regcache_cpy, regcache_cpy_no_passthrough)
7090 (deprecated_grub_regcache_for_registers)
7091 (deprecated_grub_regcache_for_register_valid)
7092 (regcache_valid_p): Add function declarations.
7093
7094 * regcache.c: Update copyright.
7095 (regcache_descr_handle): New global variable.
7096 (struct regcache_descr): Define.
7097 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7098 (regcache_descr, xfree_regcache_descr): New functions.
7099 (struct regcache): Define.
7100 (regcache_xmalloc, regcache_xfree): New functions.
7101 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7102 (regcache_dup, regcache_dup_no_passthrough): New functions.
7103 (regcache_valid_p, regcache_read_as_address): New functions.
7104 (deprecated_grub_regcache_for_registers): New function.
7105 (deprecated_grub_regcache_for_register_valid): New function.
7106 (current_regcache): New global variable.
7107 (register_buffer): Add regcache parameter. Update calls.
7108 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7109 (read_register_gen, write_register_gen): Update register_buffer
7110 call. Test for legacy_p instead of gdbarch_register_read_p or
7111 gdbarch_register_write_p.
7112 (regcache_collect): Update register_buffer call.
7113 (build_regcache): Rewrite. Use deprecated grub functions.
7114 (regcache_save, regcache_save_no_passthrough): New functions.
7115 (regcache_restore, regcache_restore_no_passthrough): New
7116 functions.
7117 (_initialize_regcache): Create the regcache_data_handle. Swap
7118 current_regcache global variable.
7119
7120 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7121 parameter to regcache_read and regcache_write calls.
7122 (sh4_register_read): Ditto.
7123 (sh64_pseudo_register_read): Ditto.
7124 (sh64_register_read): Ditto.
7125 (sh_pseudo_register_write): Ditto.
7126 (sh4_register_write): Ditto.
7127 (sh64_pseudo_register_write): Ditto.
7128 (sh64_register_write): Ditto.
7129
7130 * defs.h (XCALLOC): Define.
7131
152d9db6
GS
71322002-06-19 Grace Sainsbury <graces@redhat.com>
7133
7134 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7135 * m68k-tdep.c (m68k_gdbarch_init): Added.
7136 (m68k_dump_tdep): Added.
7137
170911c7
DJ
71382002-06-19 Daniel Jacobowitz <drow@mvista.com>
7139
7140 * ada-lang.c (fill_in_ada_prototype): Update comment.
7141
2e4ebe70
DJ
71422002-06-19 Daniel Jacobowitz <drow@mvista.com>
7143
7144 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7145 MIPS_ABI_LAST.
7146 (mips_abi_string, mips_abi_strings): New.
7147 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7148 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7149 tdep->mips_abi_string. Honor mips_abi_string. Default to
7150 O32 if no ABI is found.
7151 (mips_dump_tdep): Use mips_abi_strings.
7152 (mips_abi_update): New function.
7153 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7154 ``set mips abi'' and ``show mips abi''. Check the size of
7155 mips_abi_strings.
7156
16775908
AC
71572002-06-19 Andrew Cagney <cagney@redhat.com>
7158
7159 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7160 constant.
7161
5051bfa4 71622002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 7163
5051bfa4
JB
7164 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7165 current frame using only the first stack size adjustment. All
7166 subsequent size adjustments are not considered to be part of
7167 the "static" part of the current frame.
7168 Compute the address of the saved registers relative to the
7169 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7170 in use in this frame.
7171
56468235
DH
71722002-06-18 Don Howard <dhoward@redhat.com>
7173
7174 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7175 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7176 suggesting this solution.
7177
0b624158
AC
71782002-06-18 Andrew Cagney <ac131313@redhat.com>
7179
7180 * config/romp/xm-rtbsd.h: Delete file.
7181 * config/romp/rtbsd.mh: Delete file.
7182
221ea385
KS
71832002-06-18 Keith Seitz <keiths@redhat.com>
7184
7185 * breakpoint.c (condition_command): Post breakpoint_modify
7186 when a condition is added to an existing breakpoint.
7187 (commands_command): Likewise for commands.
7188 (set_ignore_count): Likewise for ignore counts.
7189 If no tty, do not simply return, still need to send event
7190 notification.
7191 (ignore_command): Only print a newline if the command came
7192 from a tty.
7193 Don't call breakpoints_changed, since this is now properly
7194 handled by set_ignore_count.
7195
5402eed1
AC
71962002-06-18 Andrew Cagney <cagney@redhat.com>
7197
7198 * MAINTAINERS: Note that cris-elf target can be compiled with
7199 -Werror.
7200 * cris-tdep.c (cris_register_name): Make return type constant.
7201 (cris_breakpoint_from_pc): Ditto.
7202
cc22880b
ML
72032002-06-18 Michal Ludvig <mludvig@suse.cz>
7204
7205 * frame.h (struct frame_info): Change type of context to
7206 'struct context'.
7207
fa88f677
AC
72082002-06-17 Andrew Cagney <cagney@redhat.com>
7209
7210 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7211 pointer.
7212 * gdbarch.h, gdbarch.c: Regenerate.
7213 * config/mips/tm-mips.h (mips_register_name): Update.
7214 * i386-tdep.h (i386_register_name): Update.
7215 * mips-tdep.c (mips_register_name): Update
7216 * alpha-tdep.c (alpha_register_name): Update.
7217 * arch-utils.c (legacy_register_name): Update.
7218 * arch-utils.h (legacy_register_name): Update.
7219 * avr-tdep.c (avr_register_name): Update.
7220 * ia64-tdep.c (ia64_register_name): Update.
7221 * i386-tdep.c (i386_register_name): Update.
7222 * sparc-tdep.c (sparc32_register_name): Update.
7223 (sparc64_register_name): Update.
7224 (sparclite_register_name): Update.
7225 (sparclet_register_name): Update.
7226 * sh-tdep.c (sh_generic_register_name): Update.
7227 (sh_sh_register_name): Update.
7228 (sh_sh3_register_name): Update.
7229 (sh_sh3e_register_name): Update.
7230 (sh_sh_dsp_register_name): Update.
7231 (sh_sh3_dsp_register_name): Update.
7232 (sh_sh4_register_name): Update.
7233 (sh_sh64_register_name): Update.
7234 * s390-tdep.c (s390_register_name): Update.
7235 * rs6000-tdep.c (rs6000_register_name): Update.
7236 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7237 (ns32k_register_name_32382): Update.
7238 * d10v-tdep.c (d10v_ts2_register_name): Update.
7239 (d10v_ts3_register_name): Update.
7240 * xstormy16-tdep.c (xstormy16_register_name): Update.
7241 * vax-tdep.c (vax_register_name): Update.
7242 * v850-tdep.c (v850_register_name): Update.
7243 * m68hc11-tdep.c (m68hc11_register_name): Update.
7244 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7245 (am33_register_name): Update.
7246
ea1e7ef6
GS
72472002-06-17 Grace Sainsbury <graces@redhat.com>
7248
7249 * m68k-tdep.c: Reindented.
7250
9b02dd1b
AC
72512002-06-17 Andrew Cagney <ac131313@redhat.com>
7252
7253 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7254 list of predefined types.
7255
8758dec1
MK
72562002-06-16 Mark Kettenis <kettenis@gnu.org>
7257
b6197528
MK
7258 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7259 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7260 REGISTER_CONVERT_TO_RAW): Remove defines.
7261 (i386_register_virtual_type, i386_register_convertible,
7262 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7263 Remove prototypes.
7264 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7265 macros mentioned above.
7266
82b47e62
MK
7267 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7268 (i386lynx_saved_pc_after_call): Remove prototype.
7269 * i386ly-tdep.c: Include "i386-tdep.h".
7270 (i386lynx_saved_pc_after_call): Make static. Use
7271 read_memory_nobpt instead of read_memory. Use
7272 read_memory_unsigned_integer instead of read_memory_integer.
7273 (i386lynx_init_abi): New function.
7274 (i386lynx_coff_osabi_sniffer): New function.
7275 (_initialize_i386bsd_tdep): New function.
7276
8758dec1
MK
7277 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7278 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7279 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7280 (i386_fix_call_dummy): Remove prototype.
7281 * i386-tdep.c (i386_call_dummy_words): New variable.
7282 (i386_gdbarch_init): Adjust for removal of the
7283 macros mentioned above.
7284
e9e68a56
AC
72852002-06-15 Andrew Cagney <ac131313@redhat.com>
7286
7287 * command.h (add_setshow_auto_boolean_cmd): Replace
7288 add_set_auto_boolean_cmd.
7289 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7290 add_set_auto_boolean_cmd.
7291 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7292 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7293 mask-address'' command.
7294 (show_mask_address): Add cmd parameter.
7295 * remote.c (add_packet_config_cmd): Update. Change type of
7296 set_func and show_func to cmd_sfunc_ftype.
7297 (_initialize_remote): Update `set remote Z-packet'
7298 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7299 (show_remote_protocol_e_packet_cmd): Ditto.
7300 (show_remote_protocol_E_packet_cmd): Ditto.
7301 (show_remote_protocol_P_packet_cmd): Ditto.
7302 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7303 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7304 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7305 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7306 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7307 (show_remote_protocol_Z_packet_cmd): Ditto.
7308 (show_remote_protocol_binary_download_cmd): Ditto.
7309 (show_remote_cmd): Pass NULL to all of above.
7310
fc08ec52
MK
73112002-06-15 Mark Kettenis <kettenis@gnu.org>
7312
7313 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7314 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7315 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7316 POP_FRAME): Remove defines.
7317 (i386_push_arguments, i386_store_struct_return,
7318 i386_extract_return_value, i386_store_return_value,
7319 i386_extract_struct_value_address, i386_push_dummy_frame,
7320 i386_pop_frame): Renove prototypes.
7321 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7322 macros mentioned above.
7323
e707bbc2
AC
73242002-06-15 Andrew Cagney <ac131313@redhat.com>
7325
7326 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7327 add_set_boolean_cmd.
7328 (add_setshow_cmd): New function.
7329 * command.h (add_setshow_boolean_cmd): Replace
7330 add_set_boolean_cmd.
7331 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7332 and ``set rdiromatzero''.
7333 * maint.c (_initialize_maint_cmds): Update commented out code.
7334 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7335 * target.c (initialize_targets): Update `set
7336 trust-readonly-sections'.
7337 * remote.c (_initialize_remote): Update `set remotebreak'.
7338
42fdc8df
MK
73392002-06-15 Mark Kettenis <kettenis@gnu.org>
7340
93924b6b
MK
7341 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7342 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7343 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7344 fit into multi-arch framework.
7345 (i386_breakpoint_from_pc): New function.
7346 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7347 above.
7348
42fdc8df
MK
7349 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7350 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7351 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7352 (i386_frameless_function_invocation, i386_frame_num_args,
7353 i386_frame_init_saved_regs): Remove prototypes.
7354 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7355 macros mentioned above.
7356
9773a94b
AC
73572002-06-15 Andrew Cagney <ac131313@redhat.com>
7358
7359 * cli/cli-decode.c (set_cmd_cfunc): Update.
7360 (set_cmd_sfunc): Update.
7361 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7362 (set_cmd_sfunc, set_cmd_cfunc): Update.
7363 * cli/cli-decode.h: Update.
7364
6e157172
MK
73652002-06-15 Mark Kettenis <kettenis@gnu.org>
7366
7367 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7368 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7369
7f19b9a2
AC
73702002-06-15 Andrew Cagney <ac131313@redhat.com>
7371
7372 * defs.h (auto_boolean): Declare enum.
7373 * command.h (cmd_auto_boolean): Delete enum.
7374 * mips-tdep.c (mask_address_var): Update.
7375 (mips_mask_address_p): Update.
7376 (show_mask_address): Update.
7377 * remote.c (struct packet_config): Update.
7378 (update_packet_config): Update.
7379 (show_packet_config_cmd): Update.
7380 (packet_ok): Update.
7381 (add_packet_config_cmd): Update.
7382 (_initialize_remote):
7383 * command.h: Update.
7384 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7385 (do_setshow_command): Update.
7386 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7387 * cli/cli-decode.h: Update.
7388
1cf88de5
MK
73892002-06-15 Mark Kettenis <kettenis@gnu.org>
7390
22ba8cf2
MK
7391 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7392 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7393 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7394 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7395 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7396 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7397
762c5349
MK
7398 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7399 list of DJGPP COFF targets.
7400
091198bb
MK
7401 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7402 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7403 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7404 (FP0_REGNUM): Remove define.
7405 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7406 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7407 (i386_register_virtual_size): Remove protoype.
7408 * i386-tdep.c (i386_register_virtual_size): Removed.
7409 (i386_extract_return_value, i386_store_return_value): Use
7410 FP0_REGNUM instead of NUM_FREGS to determine whether the
7411 floating-point registers are available.
7412 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7413 Adjust for removal of macros mentioned above.
7414
74152002-06-15 Mark Kettenis <kettenis@gnu.org>
7416
fcc9bf01
MK
7417 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7418 comments.
7419 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7420 Remove prototypes.
7421 (supply_gregset, fill_gregset): Remove use of register keyword and
7422 remove declaration for regmap. Use I386_NUM_GREGS instead of
7423 NUM_REGS and NUM_FREGS.
7424 (FPREGSET_FSAVE_OFFSET): Remove.
7425 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7426 NUM_FREGS to determine whether the floating-point registers are
7427 available.
7428
65e78234
MK
7429 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7430 gnu_store_registers): Replace usage of NUM_GREGS with
7431 I386_NUM_GREGS.
7432
98df6387
MK
7433 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7434 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7435 usage of NUM_GREGS with I386_NUM_GREGS.
7436
099a9414
MK
7437 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7438
57976e88
MK
7439 * i386bsd-nat.c: Include "i386-tdep.h".
7440 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7441 I386_NUM_GREGS.
7442
b335f4a6
MK
7443 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7444 and associated comment. They no longer make any sense, since we
7445 don't use this file anymore on Linux.
7446
1cf88de5
MK
7447 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7448 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7449 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7450 elements in these arrays.
7451 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7452 MAX_NUM_REGS.
7453
daa66587
MK
74542002-06-15 Mark Kettenis <kettenis@gnu.org>
7455
7456 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7457 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7458
26e9b323
AC
74592002-06-14 Andrew Cagney <cagney@redhat.com>
7460
7461 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7462 EXTRACT_RETURN_VALUE.
7463 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7464 EXTRACT_STRUCT_VALUE_ADDRESS.
7465 * gdbarch.h, gdbarch.c: Regenerate.
7466
7467 * values.c (value_being_returned): Handle
7468 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7469 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7470
7471 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7472 * arm-tdep.c (arm_gdbarch_init): Update.
7473 * avr-tdep.c (avr_gdbarch_init): Update.
7474 * cris-tdep.c (cris_gdbarch_init): Update.
7475 * d10v-tdep.c (d10v_gdbarch_init): Update.
7476 * ia64-tdep.c (ia64_gdbarch_init): Update.
7477 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7478 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7479 * s390-tdep.c (s390_gdbarch_init): Update.
7480 * sh-tdep.c (sh_gdbarch_init): Update.
7481 * s390-tdep.c (s390_gdbarch_init): Update.
7482 * sparc-tdep.c (sparc_gdbarch_init): Update.
7483 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7484 * v850-tdep.c (v850_gdbarch_init): Update.
7485 * vax-tdep.c (vax_gdbarch_init): Update.
7486 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7487 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7488
7489 * config/arc/tm-arc.h: Update.
7490 * config/d30v/tm-d30v.h: Update.
7491 * config/fr30/tm-fr30.h: Update.
7492 * config/h8300/tm-h8300.h: Update.
7493 * config/h8500/tm-h8500.h: Update.
7494 * config/i386/tm-i386.h: Update.
7495 * config/i386/tm-ptx.h: Update.
7496 * config/i386/tm-symmetry.h: Update.
7497 * config/i960/tm-i960.h: Update.
7498 * config/m32r/tm-m32r.h: Update.
7499 * config/m68k/tm-delta68.h: Update.
7500 * config/m68k/tm-linux.h: Update.
7501 * config/m68k/tm-m68k.h: Update.
7502 * config/m88k/tm-m88k.h: Update.
7503 * config/mcore/tm-mcore.h: Update.
7504 * config/mips/tm-mips.h: Update.
7505 * config/mn10200/tm-mn10200.h: Update.
7506 * config/pa/tm-hppa.h: Update.
7507 * config/pa/tm-hppa64.h: Update.
7508 * config/sparc/tm-sp64.h: Update.
7509 * config/sparc/tm-sparc.h: Update.
7510 * config/sparc/tm-sparclet.h: Update.
7511 * config/z8k/tm-z8k.h: Update.
7512
5179e78f
AC
75132002-06-14 Andrew Cagney <cagney@redhat.com>
7514
7515 * Makefile.in (i386_linux_tdep_h): Define.
7516 (i386_tdep_h, i387_tdep_h): Define.
7517 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7518 $(i386_tdep_h) and $(i387_tdep_h).
7519 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7520
8201327c
MK
75212002-06-14 Mark Kettenis <kettenis@gnu.org>
7522
edf393ac
MK
7523 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7524 Already covered by the default.
7525
896fb97d
MK
7526 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7527 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7528 (i386_gdbarch_init): Initialize long_double_format and long_double
7529 bit.
7530
8201327c
MK
7531 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7532 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7533 Move these to ...
7534 * config/i386/i386sol2.mh: ... here.
7535 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7536 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7537 (SIGCONTEXT_PC_OFFSET): Remove define.
7538 (IN_SIGTRAMP): Remove define.
7539 * i386-sol2-tdep.c: New file.
7540
7541 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7542 * config/i386/tm-i386nw.h: Removed.
7543
7544 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7545 USE_STRUCT_CONVENTION): Remove defines.
7546 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7547 (get_longjmp_target): Remove prototype.
7548 (IN_SIGTRAMP): Remove define.
7549 (i386bsd_in_sigtramp): Remove prototype.
7550 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7551 function. Update comment accordingly
7552 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7553 (FRAME_SAVED_PC): Remove define.
7554 (i386bsd_frame_saved_pc): Remove prototype.
7555 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7556 GET_LONGJMP_TARGET): Remove defines.
7557 (get_longjmp_target): Remove prototype.
7558 (IN_SIGTRAMP): Remove define.
7559 (i386bsd_in_sigtramp): Remove prototype.
7560 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7561 function. Update comment accordingly
7562 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7563 (FRAME_SAVED_PC): Remove define.
7564 (i386bsd_frame_saved_pc): Remove prototype.
7565 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7566 Remove prototype.
7567 (USE_STRUCT_CONVENTION): Remove prototype.
7568 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7569 declaration.
7570 (_initialize_i386bsd_nat): Revise logic to determine some
7571 constants at compile time when compiling a native GDB. Warn if
7572 things don't match up with what we expect.
7573 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7574 Remove variables.
7575 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7576 to use date stored in `struct gdbarch_tdep'.
7577 (i386bsd_sigcontext_offset): Remove varaible.
7578 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7579 stored in `struct gdbarch_tdep'.
7580 (i386bsd_frame_saved_pc): Make static.
7581 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7582 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7583 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7584 i386fbsd4_sc_pc_offset): New variables.
7585 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7586 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7587 functions.
7588 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7589 functions.
7590 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7591 Modify the value of i386fbsd_sigtramp_start and
7592 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7593 i386fbsd_sigtramp_end.
7594 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7595 function.
7596
7597 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7598 define to i386-linux-tdep.h.
7599 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7600 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7601 defines.
7602 (i386_linux_register_name, i386_linux_register_byte,
7603 i386_linux_register_raw_size): Remove prototypes.
7604 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7605 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7606 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7607 TARGET_WRITE_PC): Remove defines.
7608 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7609 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7610 i386_linux_write_pc): Remove prototypes.
7611 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7612 (get_longjmp_target): Remove prototype.
7613 * i386-linux-tdep.h: New file.
7614 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7615 * i386-linux-tdep.c: Include "i386-tdep.h" and
7616 "i386-linux-tdep.h".
7617 (i386_linux_register_name, i386_linux_register_byte,
7618 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7619 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7620 Make static.
7621 (i386_linux_init_abi): New function.
7622 (_initialize_i386_linux_tdep): New function.
7623
7624 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7625 (i386_saved_pc_after_call): Remove prototype.
7626 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7627 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7628 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7629 (i386_register_name, i386_stab_reg_to_regnum,
7630 i386_dwarf_reg_to_regnum): Remove prototypes.
7631 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7632 SIZEOF_SSE_REGS): Remove defines.
7633 (REGISTER_BYTES): Remove define.
7634 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7635 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7636 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7637 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7638 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7639 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7640 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7641 (get_longjmp_target): Remove prototype.
7642 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7643 (sigtramp_saved_pc): Remove define.
7644 (i386v4_sigtramp_saved_pc): Remove prototype.
7645 * config/i386/tm-go32.h (FRAME_CHAIN,
7646 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7647 (i386go32_frame_saved_pc): Remove prototype.
7648 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7649 (get_longjmp_target): Remove prototype.
7650 * i386-tdep.h: Include "osabi.h".
7651 (enum i386_abi): Removed.
7652 (enum struct_return): New enum.
7653 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7654 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7655 sc_pc_offset members.
7656 (i386_gdbarch_register_os_abi): Remove prototype.
7657 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7658 I386_SSE_NUM_REGS): New defines.
7659 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7660 I386_SSE_SIZEOF_REGS): New defines.
7661 (i386_register_name, i386_register_byte, i386_register_raw_size):
7662 New prototypes.
7663 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7664 (i386bsd_sigtramp_saved_pc): New prototype.
7665 * i386-tdep.c: Don't include "elf-bfd.h".
7666 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7667 i386_frame_chain, i386_saved_pc_after_call): Make static.
7668 (i386_frame_saved_pc): Rewrite to call architecture dependent
7669 function to deal with signal handlers. Make static.
7670 (i386go32_frame_saved_pc): Removed.
7671 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7672 Removed.
7673 (i386_get_longjmp_target): New function.
7674 (default_struct_convention, pcc_struct_convention,
7675 reg_struct_convention, valid_conventions, struct_convention): New
7676 variables.
7677 (i386_use_struct_convention): New function.
7678 (i386v4_sigtramp_saved_pc): Renamed to
7679 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7680 (i386_pc_in_sigtramp): New function.
7681 (i386_abi_names): Removed.
7682 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7683 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7684 Removed.
7685 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7686 i386_gdbarch_register_os_abi): Removed.
7687 (struct i386_abi_handler): Removed.
7688 (i386_abi_handler_list): Removed.
7689 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7690 functions.
7691 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7692 i386_nw_init_abi): New functions.
7693 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7694 Use set_gdbarch_xxx() calls instead of relying on macros for a
7695 number of calls.
7696 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7697 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7698 Register the various architecture variants defined in this file.
7699
ad2f7632
DJ
77002002-06-14 Daniel Jacobowitz <drow@mvista.com>
7701
7702 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7703 (struct main_type): Remove arg_types member. Update comments for
7704 struct field.
7705 (TYPE_ARG_TYPES): Remove.
7706 (TYPE_FN_FIELD_ARGS): Update.
7707 (smash_to_method_type): Update prototype.
7708
7709 * c-typeprint.c (cp_type_print_method_args): Take method type
7710 instead of argument list. Use new argument layout. Simplify.
7711 (c_type_print_args): Use new argument layout. Simplify.
7712 (c_type_print_base): Update call to cp_type_print_method_args.
7713 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7714 argument; use die->type instead. Update call to
7715 smash_to_method_type.
7716 (read_structure_scope): Update call to dwarf2_add_member_fn.
7717 * gdbtypes.c (allocate_stub_method): Update comment.
7718 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7719 Use new argument layout.
7720 (check_stub_method): Use new argument layout. Don't count
7721 void as an argument.
7722 (print_arg_types): Update comments. Use new argument layout.
7723 (recursive_dump_type): Don't print arg_types member.
7724 * hpread.c (hpread_read_struct_type): Use new argument layout.
7725 (fixup_class_method_type): Likewise.
7726 (hpread_type_lookup): Likewise.
7727 * stabsread.c (read_type): Update calls to read_args and
7728 smash_to_method_type.
7729 (read_args): Use new argument layout. Simplify.
7730 * valops.c (typecmp): Use new argument layout. Update parameters
7731 and comments. Simplify.
7732 (hand_function_call): Use new argument layout.
7733 (search_struct_method): Update call to typecmp.
7734 (find_overload_match): Use new argument layout.
7735
6da02953
DJ
77362002-06-13 Daniel Jacobowitz <drow@mvista.com>
7737
7738 * NEWS: Mention multithreaded debug support for gdbserver.
7739
519b2366
DJ
77402002-06-13 Daniel Jacobowitz <drow@mvista.com>
7741
7742 * MAINTAINERS: Mention NEWS.
7743
6c0d6680
DJ
77442002-06-13 Daniel Jacobowitz <drow@mvista.com>
7745
7746 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7747 (struct mips_objfile_private, compare_pdr_entries): New.
7748 (non_heuristic_proc_desc): Read the ".pdr" section if it
7749 is present.
7750
6529d2dd
AC
77512002-06-12 Andrew Cagney <ac131313@redhat.com>
7752
7753 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7754 (arm_debug): New static variable.
7755 (_initialize_arm_tdep): Add ``set debug arm'' command.
7756
26216b98
AC
77572002-06-12 Andrew Cagney <ac131313@redhat.com>
7758
7759 * Makefile.in (sim_arm_h): Define.
7760 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7761 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7762 (arm_register_sim_regno): New function, map an internal REGNUM
7763 onto a simulator register number.
7764 (arm_gdbarch_init): Set register_sim_regno.
7765
814b3ba0
AH
77662002-06-09 Aldy Hernandez <aldyh@redhat.com>
7767
7768 * MAINTAINERS: Add self.
7769
475b0867
JB
77702002-06-11 Jim Blandy <jimb@redhat.com>
7771
919d772c
JB
7772 * source.c (source_info): Mention whether the symtab has
7773 information about preprocessor macros.
7774
475b0867
JB
7775 Call the command `info macro', not `show macro'.
7776 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7777 Fix error message.
7778 (_initialize_macrocmd): Register `info_macro_command' in
7779 `infolist', not `showlist'.
7780
9e364162
DJ
77812002-06-11 Daniel Jacobowitz <drow@mvista.com>
7782
7783 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7784 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7785 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7786 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7787 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7788 unconditionally.
7789 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7790 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7791 (_initialize_mips_tdep): Remove dead code.
7792 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7793 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7794 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7795 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7796 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7797 MIPS_LAST_FP_ARG_REGNUM): Remove.
7798
23aa4c72
ML
77992002-06-11 Michal Ludvig <mludvig@suse.cz>
7800
7801 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7802 (unwind_tmp_obstack_free, parse_frame_info)
7803 (update_context, cfi_read_fp, cfi_write_fp)
7804 (cfi_frame_chain, cfi_init_extra_frame_info)
7805 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7806 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7807
70eb15a4
CV
78082002-06-11 Corinna Vinschen <vinschen@redhat.com>
7809
7810 * v850-tdep.c (v850_type_is_scalar): New function.
7811 (v850_use_struct_convention): Match current gcc implementation
7812 as close as possible.
7813 (v850_push_arguments): Fix stack_offset handling. Don't write
7814 struct_addr into register. This is done by v850_store_struct_return.
7815 (v850_extract_return_value): Care for structs.
7816 (v850_store_return_value): Ditto.
7817 (v850_store_struct_return): Actually write address.
7818
482a4d06
ML
78192002-06-11 Michal Ludvig <mludvig@suse.cz>
7820
7821 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7822 without debug information too.
7823
d855c300
AC
78242002-06-10 Andrew Cagney <ac131313@redhat.com>
7825
7826 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7827 Make multi-arch pure.
7828 * gdbarch.h, gdbarch.c: Re-generate.
7829 * arm-tdep.c (arm_print_float_info): Update.
7830 * arch-utils.h (default_print_float_info): Update.
7831 * arch-utils.c (default_print_float_info): Update.
7832 * infcmd.c (float_info): Update call.
7833
dd12a101
AC
78342002-06-10 Andrew Cagney <ac131313@redhat.com>
7835
7836 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7837 the front of the initialize list.
7838
101dcfbe
AC
78392002-06-10 Andrew Cagney <ac131313@redhat.com>
7840
7841 * infrun.c (struct inferior_status): Replace fields
7842 selected_frame_address and selected_level with field
7843 selected_frame_id.
7844 (save_inferior_status): Update. Use get_frame_id.
7845 (struct restore_selected_frame_args): Delete.
7846 (restore_selected_frame): Update. Use frame_find_by_id.
7847 (restore_inferior_status): Update.
7848
7849 * breakpoint.h (struct breakpoint): Change type of
7850 watchpoint_frame to frame_id.
7851 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7852 call to get_current_frame.
7853 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7854 get_current_frame.
7855 (watchpoint_check): Use frame_find_by_id.
7856
7857 * frame.h (record_selected_frame): Delete declaration.
7858 * stack.c (record_selected_frame): Delete function.
7859
7860 * frame.h (struct frame_id): Define.
7861 (get_frame_id): Declare.
7862 (frame_find_by_id): Declare.
7863 * frame.c (frame_find_by_id): New function.
7864 (get_frame_id): New function.
7865
304270b6
AV
78662002-06-10 Andrey Volkov <avolkov@transas.com>
7867
7868 * ser-e7kpc.c: Fix duplicated define and call of
7869 _initialize_ser_e7000pc
7870
2f2cf184
DJ
78712002-06-09 Daniel Jacobowitz <drow@mvista.com>
7872
7873 * signals/signals.c (target_signal_from_host): Fix #ifdef
7874 SIGRTMIN case.
7875 (do_target_signal_to_host): Likewise.
7876
caaa3122
DJ
78772002-06-09 Daniel Jacobowitz <drow@mvista.com>
7878
7879 * mips-tdep.c (mips_find_abi_section): New function.
7880 (mips_gdbarch_init): Call it.
7881
6ac5df3a
MK
78822002-06-09 Mark Kettenis <kettenis@gnu.org>
7883
7884 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7885 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7886 after Andrew's 2002-06-08 gdbarch change.
7887
82ea117a
MK
78882002-06-09 Mark Kettenis <kettenis@gnu.org>
7889
7890 * i386-linux-nat.c (suppy_gregset): Don't supply
7891 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7892 register cache.
7893 (fill_gregset): Don't fetch it under the same circumstances.
7894
3c25f8c7
AC
78952002-06-09 Andrew Cagney <cagney@redhat.com>
7896
7897 * Makefile.in (callback_h): Define.
7898 (remote_sim_h): Update path to remote-sim.h.
7899 (remote-rdp.o): Add $(callback_h).
7900 (remote-sim.o): Use $(callback_h).
7901 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7902 * remote-rdp.c: Include "gdb/callback.h".
7903
1029b7fa
MK
79042002-06-09 Mark Kettenis <kettenis@gnu.org>
7905
7906 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7907 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7908
616675d3
AC
79092002-06-08 Andrew Cagney <ac131313@redhat.com>
7910
a3efda28
AC
7911 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7912 * rdi-share/serpardr.c: Ditto.
7913 * rdi-share/unixcomm.c: Ditto.
7914 * rdi-share/serdrv.c: Ditto.
7915 * rdi-share/hostchan.h: Ditto.
7916 * rdi-share/hostchan.c: Ditto.
7917 * rdi-share/host.h: Ditto.
7918 * rdi-share/devsw.c: Ditto.
7919
c5f10366
AC
7920 * objfiles.h: Change type of obj_private to void pointer.
7921 * pa64solib.c: Update copyright. Don't include "assert.h", use
7922 strcmp instead of STREQ, use LONGEST, do not use PTR
7923 * somsolib.c: Ditto.
7924
616675d3
AC
7925 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7926 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7927 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7928
e4b415d9
AC
79292002-06-08 Andrew Cagney <ac131313@redhat.com>
7930
7931 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7932 (default_get_saved_register): Delete function.
7933 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7934 generic_unwind_get_saved_register.
7935 * gdbarch.h, gdbarch.c: Re-generate.
7936
ca0d0b52
AC
79372002-06-08 Andrew Cagney <ac131313@redhat.com>
7938
7939 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7940 generic_func_frame_chain_valid.
7941 * gdbarch.h, gdbarch.c: Re-generate.
7942 * blockframe.c (generic_func_frame_chain_valid): Only check
7943 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7944 passing FP to PC_IN_CALL_DUMMY.
7945 Fix PR gdb/360.
7946
76860b5f
AC
79472002-06-08 Andrew Cagney <ac131313@redhat.com>
7948
7949 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7950 (register_gdbarch_data): Initialize init_p.
7951 (gdbarch_data): Initialize data pointer using the init function.
7952 (init_gdbarch_data): Delete function.
7953 (gdbarch_update_p): Update.
7954 (initialize_non_multiarch): Update.
7955 (struct gdbarch): Add field initialized_p.
7956 * gdbarch.h, gdbarch.c: Re-generate.
7957
8dda9770
ML
79582002-06-07 Michal Ludvig <mludvig@suse.cz>
7959
7960 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7961 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7962 better do the things actually here.
7963 * x86-64-tdep.c (x86_64_register_name2nr): New.
7964 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7965 (x86_64_gdbarch_init): Respect the above change.
7966 * x86-64-tdep.h (x86_64_register_name2nr)
7967 (x86_64_register_nr2name): Add prototypes.
7968 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7969
3d79a47c
MS
79702002-06-06 Michael Snyder <msnyder@redhat.com>
7971
7bd91a28
MS
7972 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7973 Delete extra braces and re-indent.
7974 (d10v_store_return_value): Char return values
3d79a47c
MS
7975 must be shifted over by one byte in R0.
7976 (d10v_extract_return_value): Delete extra braces, re-indent.
7977
095a4c96
EZ
79782002-06-06 Elena Zannoni <ezannoni@redhat.com>
7979
7980 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7981 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7982 (d10v_integer_to_address): Rewrite.
7983 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7984 the d10v specific functions which take care of converting to the
7985 correct space.
7986
e8a77ca4
EZ
79872002-06-06 Elena Zannoni <ezannoni@redhat.com>
7988
7989 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7990 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7991
4f2e4a4f
AC
79922002-06-02 Andrew Cagney <ac131313@redhat.com>
7993
7994 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7995 includes.
7996 * config/tm-linux.h: Ditto.
7997 * config/alpha/tm-alphalinux.h: Ditto.
7998 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7999 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8000 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8001 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8002 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8003 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8004 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8005 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8006 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8007 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8008 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8009 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8010 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8011 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8012 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8013 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8014 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8015 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8016 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8017 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8018 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8019 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8020 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8021 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8022 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8023 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8024 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8025 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8026 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8027 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8028 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8029 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8030 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8031 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8032 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8033 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8034 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8035
ae2ab2ce
AS
80362002-05-04 Aidan Skinner <aidan@velvet.net>
8037
8038 * ada-exp.tab.c: New file
8039 * ada-exp.y: New file
8040 * ada-lang.c: New file
8041 * ada-lang.h: New file
8042 * ada-lex.c: New file
8043 * ada-lex.l: New file
8044 * ada-tasks.c: New file
8045 * ada-typeprint.c: New file
8046 * ada-valprint.c: New file
8047
0ddd0135
JT
80482002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8049
8050 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8051 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8052
750fbacc
JT
80532002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8054
8055 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8056 insetead of ppc-linux-tdep.o.
8057 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8058 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8059
df94e18a
AC
80602002-06-02 Andrew Cagney <ac131313@redhat.com>
8061
8062 2002-05-07 Christian Groessler <chris@groessler.org>
8063 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8064 bit register contents for little endian hosts.
8065
1a38ab75
AC
80662002-06-01 Andrew Cagney <ac131313@redhat.com>
8067
8068 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8069 any maintainer.
8070
8b1632ac
AC
80712002-06-01 Andrew Cagney <ac131313@redhat.com>
8072
8073 * gdbarch.h: Regenerate.
8074
627054c8
AC
80752002-06-01 Andrew Cagney <ac131313@redhat.com>
8076
8077 * MAINTAINERS: Add everyone to write-after-approval list.
8078
4f460812
AC
80792002-06-01 Andrew Cagney <ac131313@redhat.com>
8080
8081 * stack.c (frame_info): Use frame_register_unwind instead of
8082 saved_regs. Mention when the SP is on the stack or in a register.
8083
8084 * frame.h (frame_register_unwind_ftype): Define. Document.
8085 (struct frame_info): Add field register_unwind and
8086 register_unwind_cache.
8087 (frame_register_unwind): Declare.
8088 (generic_unwind_get_saved_register): Declare.
8089
8090 * frame.c (frame_register_unwind): New function.
8091 (generic_unwind_get_saved_register): New function.
8092
8093 * blockframe.c (generic_call_dummy_register_unwind): New function.
8094 (frame_saved_regs_register_unwind): New function.
8095 (set_unwind_by_pc): New function.
8096 (create_new_frame): New function.
8097 (get_prev_frame): New function.
8098
de888f76
AC
80992002-05-30 Andrew Cagney <ac131313@redhat.com>
8100
8101 * a29k-share/: Delete directory.
8102 * remote-vx29k.c: Delete file.
8103
2f2c3626
JT
81042002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8105
8106 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8107 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8108
9ce5c36a
JT
81092002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8110
8111 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8112 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8113 (sparc64nbsd-nat.o)
8114 (sparcnbsd-nat.o)
8115 (sparcnbsd-tdep.o): New dependency lists.
8116 * NEWS: Note new UltraSPARC NetBSD native configuration.
8117 * configure.host (sparc64-*-netbsd*): New host.
8118 * configure.tgt (sparc-*-netbsdelf*)
8119 (sparc-*-netbsd*): Set gdb_target to nbsd.
8120 (sparc64-*-netbsd*): New target.
8121 * sparc64nbsd-nat.c: New file.
8122 * sparcnbsd-nat.c: New file.
8123 * sparcnbsd-tdep.c: New file.
8124 * sparcnbsd-tdep.h: New file.
8125 * config/sparc/nbsd.mt: New file.
8126 * config/sparc/nbsd64.mh: New file.
8127 * config/sparc/nbsd64.mt: New file.
8128 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8129 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8130 (HOST_IPC): Remove.
8131 * config/sparc/nbsdaout.mt: Remove.
8132 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8133 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8134 (HOST_IPC): Remove.
8135 * config/sparc/nbsdelf.mt: Remove.
8136 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8137 sparc-nat.c compatiblity defines.
8138 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8139 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8140 * config/sparc/tm-nbsd64.h: New file.
8141 * config/sparc/tm-nbsdaout.h: Remove.
8142 * config/sparc/xm-nbsd.h: Remove.
8143
ef3cf062
JT
81442002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8145
8146 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8147 * sparc-tdep.c: Include osabi.h.
8148 (gdbarch_tdep): Add osabi member.
8149 (_initialize_sparc_tdep): Use gdbarch_register.
8150 (sparc_gdbarch_init): Use generic OS ABI framework.
8151 (sparc_dump_tdep): New function.
8152
ee8ff470
KB
81532002-05-30 Kevin Buettner <kevinb@redhat.com>
8154
8155 * corefile.c (do_captured_read_memory_integer): Return non-zero
8156 result.
8157 (safe_read_memory_integer): Copy result of memory read when
8158 status is non-zero. Also, add comments.
8159
7b112f9c
JT
81602002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8161
8162 * Makefile.in (ppc_tdep_h): Define.
8163 (ppc-linux-nat.o)
8164 (ppc-linux-tdep.o)
8165 (rs6000-tdep.o): Use $(ppc_tdep_h).
8166 (ppc-sysv-tdep.o)
8167 (ppcnbsd-nat.o)
8168 (ppcnbsd-tdep.o): New dependency lists.
8169 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
8170 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8171 (ppc_linux_init_abi): New functions.
7b112f9c
JT
8172 (ppc_sysv_abi_broken_use_struct_convention)
8173 (ppc_sysv_abi_use_struct_convention)
8174 (ppc_sysv_abi_push_arguments): Move to...
8175 * ppc-sysv-tdep.c: ...here.
8176 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8177 * rs6000-tdep.c (process_note_abi_tag_sections)
8178 (get_elfosabi): Remove.
8179 (rs6000_gdbarch_init): Use generic OS ABI framework.
8180 (rs6000_dump_tdep): New function.
8181 (_initialize_rs6000_tdep): Use gdbarch_register.
8182 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8183 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8184 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8185 of ppc-linux-tdep.o.
8186 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8187 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8188 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8189 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8190 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8191 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8192
480dd42a
JB
81932002-05-29 Jim Blandy <jimb@redhat.com>
8194
8195 * macroscope.c (default_macro_scope): Put `void' in empty argument
8196 list.
8197
4182591f
AC
81982002-05-29 Andrew Cagney <ac131313@redhat.com>
8199
8200 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8201 * arch-utils.c: Include "sim-regno.h".
8202 * gdbarch.sh: Don't include "sim-regno.h".
8203 * gdbarch.h, gdbarch.c: Regenerate.
8204 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8205 here.
8206 * arch-utils.h (legacy_register_sim_regno): To here.
8207 * remote-sim.c (legacy_register_sim_regno): Move function from
8208 here.
8209 * arch-utils.c (legacy_register_sim_regno): To here.
8210
8238d0bf
AC
82112002-05-28 Andrew Cagney <ac131313@redhat.com>
8212
8213 * sim-regno.h: New file.
8214 * Makefile.in (sim_regno_h): Define.
8215 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8216 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8217 (legacy_register_sim_regno): New function.
8218 (one2one_register_sim_regno): New function.
8219 (gdbsim_fetch_register): Rewrite.
8220 (gdbsim_store_register): Only store a register when
8221 REGISTER_SIM_REGNO is valid.
8222 * d10v-tdep.c: Include "sim-regno.h".
8223 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8224 (d10v_ts3_register_sim_regno): Ditto.
8225 * gdbarch.sh: Include "sim-regno.h".
8226 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8227 * gdbarch.h, gdbarch.c: Regenerate.
8228 * arch-utils.h (default_register_sim_regno): Delete declaration.
8229 * arch-utils.c (default_register_sim_regno): Delete function.
8230
485721b1
JT
82312002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8232
8233 * ppcnbsd-nat.c: Rewrite.
8234 * ppcnbsd-tdep.c: New file.
8235 * ppcnbsd-tdep.h: New file.
8236 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8237 solib.o, and solib-svr4.o.
8238 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8239 nbsd-tdep.o, and corelow.o.
8240
697f244d
AC
82412002-05-28 Andrew Cagney <ac131313@redhat.com>
8242
8243 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8244 `tr' and `sed'. Mention that `broken' targets are not expected to
8245 build.
8246
f08caad1 82472002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
8248
8249 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8250 Let PC point right after the prologue before looking up symbols.
8251
3139facc
MH
82522002-05-27 Martin M. Hunt <hunt@redhat.com>
8253
8254 * i386-tdep.c (i386_register_virtual_type): Return
8255 builtin_type_vec128i for SSE registers.
8256
8257 * gdbtypes.h (builtin_type_vec128i): Declare.
8258
8259 * gdbtypes.c (build_builtin_type_vec128i): New function.
8260 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8261 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8262 (build_gdbtypes): Initialize new builtin vector types.
8263 (_initialize_gdbtypes): Register new vector types with gdbarch.
8264
6e3ba3b8
JT
82652002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8266
8267 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8268 since it has been multi-arch'd.
8269 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8270 Move Alpha and VAX multi-arch news entries to same section
8271 as other multi-arch news.
8272
93d5585d
JT
82732002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8274
8275 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8276 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8277 static. Rename some register numbers to put them in ns32k-tdep
8278 private namespace.
8279 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8280 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8281 functions.
8282 (_initialize_ns32k_tdep): Use gdbarch_register.
8283 * ns32k-tdep.h: New file.
8284 * ns32knbsd-tdep.c: New file.
8285 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8286 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8287 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8288 REGISTER_BYTES, REGISTER_BYTE): Remove.
8289 * config/ns32k/tm-ns32k.h: New file.
8290 * config/ns32k/tm-umax.h: Remove.
8291
efb2c70e
JT
82922002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8293
8294 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8295 ns32k_store_struct_return, ns32k_extract_return_value,
8296 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8297 functions.
8298 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8299 ns32k_saved_pc_after_call.
8300 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8301 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8302 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8303 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8304 ns32k_extract_struct_value_address.
8305
7bcc927b
JT
83062002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8307
8308 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8309 ns32k_fix_call_dummy): New.
8310 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8311 ns32k_call_dummy_words.
8312 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8313 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8314 CALL_DUMMY_NARGS): Remove.
8315 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8316
78f9d765
JT
83172002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8318
8319 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8320 ns32k_frame_saved_pc, ns32k_frame_args_address,
8321 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8322 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8323 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8324 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8325 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8326 (BREAKPOINT): Remove..
8327 (FRAME_CHAIN): Define as ns32k_frame_chain.
8328 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8329 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8330 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8331 (FRAME_FIND_SAVED_REGS): Remove.
8332 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8333 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8334 (POP_FRAME): Define as ns32k_pop_frame.
8335
f2c762e0
JT
83362002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8337
8338 * ns32k-tdep.c (ns32k_register_byte_32082,
8339 ns32k_register_byte_32382, ns32k_register_raw_size,
8340 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8341 functions.
8342 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8343 ns32k_register_byte_32382.
8344 * config/ns32k/tm-umax.h: Update copyright years.
8345 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8346 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8347 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8348 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8349 (ns32k_get_enter_addr): Fix prototype.
8350
af137673
JT
83512002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8352
8353 * ns32k-tdep.c: Update copyright years.
8354 (ns32k_register_name_32082): New function.
8355 (ns32k_register_name_32382): Ditto.
8356 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8357 (REGISTER_NAME): Define as ns32k_register_name_32382.
8358 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8359 (REGISTER_NAME): Define as ns32k_register_name_32082.
8360
a8bc7b56
JB
83612002-05-24 Jim Blandy <jimb@redhat.com>
8362
8363 * dwarf2read.c (free_line_header): Use xfree, not free.
8364
83a45910
JT
83652002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8366
8367 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8368 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8369
0db71247
AC
83702002-05-23 Andrew Cagney <ac131313@redhat.com>
8371
8372 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8373
b9e5e4dd
AC
83742002-05-23 Andrew Cagney <ac131313@redhat.com>
8375
8376 From Ross Alexander at NEC Europe:
8377 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8378
de530e84
MS
83792002-05-23 Michael Snyder <msnyder@redhat.com>
8380
8381 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8382 for input, rather than parse_and_eval_address.
8383
b91b96f4
AC
83842002-05-23 Andrew Cagney <ac131313@redhat.com>
8385
8386 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8387 * Makefile.in (sim_d10v_h): Update definition.
8388
8b279e7a
AC
83892002-05-24 Andrew Cagney <cagney@redhat.com>
8390
8391 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8392 change `2002-05-22 Michael Snyder' below.
8393 (d10v_push_arguments): Ditto.
8394 (d10v_extract_return_value): Ditto.
8395
0a3d0425
JB
83962002-05-23 Jim Blandy <jimb@redhat.com>
8397
8398 * macrotab.c (check_for_redefinition): Don't complain if the new
8399 definition is the same as the previous one. Take more arguments
8400 to allow the comparison.
8401 (macro_define_object, macro_define_function): Pass more arguments
8402 to check_for_redefinition.
8403
78eac43e
MS
84042002-05-22 Michael Snyder <msnyder@redhat.com>
8405
8406 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8407 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8408 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8409 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8410 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8411 Add a temp variable to save a call (and a memory read).
8412 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8413 if possible (so that PC_IN_CALL_DUMMY will work).
8414
9bc1edb8
CV
84152002-05-22 Corinna Vinschen <vinschen@redhat.com>
8416
8417 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8418
005ef3d2
ML
84192002-05-22 Michal Ludvig <mludvig@suse.cz>
8420
8421 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8422 fde->cie_ptr.
8423 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8424 (dwarf2_build_frame_info): Add offset to fde->initial_location
8425 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
8426 (execute_stack_op): Change type of 'result' from ULONGEST to
8427 CORE_ADDR.
005ef3d2 8428
fcf4f891
JT
84292002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8430
8431 * config/alpha/tm-nbsd.h: Include solib.h.
8432
cfef91e4
JT
84332002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8434
8435 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8436 assumptions about the host's byte order.
8437
9964235a
JT
84382002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8439
8440 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8441 to dependency list.
8442 * alphanbsd-tdep.c: Include solib-svr4.h.
8443 * shnbsd-tdep.c: Ditto.
8444
9eeef8ef
JT
84452002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8446
8447 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8448 nbsd-tdep.h to dependency list.
8449 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8450 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8451 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8452 nbsdaout.mh and nbsdelf.mh consistently.
8453 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8454 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8455 nbsdaout.mt and nbsdelf.mh consistently.
8456 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8457 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8458 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8459 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8460 a.out shared library stuff from here...
8461 * config/nm-nbsdaout.h: ...to here.
8462 * config/tm-nbsd.h: Remove.
8463 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8464 * config/arm/nbsd.mh: Remove.
8465 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8466 nbsd-tdep.o.
8467 * config/arm/nbsdaout.mh: New file.
8468 * config/arm/nbsdelf.mh: New file.
8469 * config/arm/nm-nbsdaout.h: New file.
8470 * config/i386/nbsd.mh: Remove.
8471 * config/i386/nbsd.mt: Remove.
8472 * config/i386/nbsdaout.mh: New file.
8473 * config/i386/nbsdaout.mt: New file.
8474 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8475 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8476 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8477 i386_register_u_addr): Remove.
8478 * config/i386/nm-nbsdaout.h: New file.
8479 * config/i386/nm-nbsdelf.h: Remove.
8480 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8481 (USE_STRUCT_CONVENTION): Remove.
8482 * config/i386/tm-nbsdaout.h: New file.
8483 * config/i386/tm-nbsdelf.h: Remove.
8484 * config/m68k/nbsd.mh: Remove.
8485 * config/m68k/nbsd.mt: Remove.
8486 * config/m68k/nbsdaout.mh: New file.
8487 * config/m68k/nbsdaout.mt: New file.
8488 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8489 * config/m68k/nm-nbsdaout.h: New file.
8490 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8491 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8492 * config/ns32k/nbsd.mh: Remove.
8493 * config/ns32k/nbsd.mt: Remove.
8494 * config/ns32k/nbsdaout.mh: New file.
8495 * config/ns32k/nbsdaout.mt: New file.
8496 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8497 * config/ns32k/nm-nbsdaout.h: New file.
8498 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8499 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8500 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8501 (SVR4_SHARED_LIBS): Remove.
8502 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8503 * config/sparc/nbsd.mh: Remove.
8504 * config/sparc/nbsd.mt: Remove.
8505 * config/sparc/nbsdaout.mh: New file.
8506 * config/sparc/nbsdaout.mt: New file.
8507 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8508 * config/sparc/nbsdelf.mt: New file.
8509 * config/sparc/nm-nbsdaout.h: New file.
8510 * config/sparc/nm-nbsdelf.h: Remove.
8511 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8512 * config/sparc/tm-nbsdaout.h: New file.
8513
257ce470
JT
85142002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8515
8516 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8517 mipsnbsd-tdep.c
8518 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8519
76a6d5fe
JT
85202002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8521
8522 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8523 shnbsd-nat.c.
8524 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8525
45888261
JT
85262002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8527
8528 * NEWS: Note new MIPS NetBSD native configuration.
8529 * configure.host (mips*-*-netbsd*): New host.
8530 * configure.tgt (mips*-*-netbsd*): New target.
8531 * mipsnbsd-nat.c: New file.
8532 * mipsnbsd-tdep.c: New file.
8533 * mipsnbsd-tdep.h: New file.
8534 * config/mips/nbsd.mh: New file.
8535 * config/mips/nbsd.mt: New file.
8536 * config/mips/nm-nbsd.h: New file.
8537 * config/mips/tm-nbsd.h: New file.
8538
70f80edf
JT
85392002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8540
8541 * Makefile.in (SFILES): Add osabi.c.
8542 (COMMON_OBS): Add osabi.o.
8543 (osabi.o): New dependency list.
8544 * osabi.c: New file.
8545 * osabi.h: New file.
8546 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8547
8548 * Makefile.in (alpha_tdep_h): Define and use instead of
8549 alpha-tdep.h.
8550 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8551 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8552 Remove.
8553 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8554 * alpha-tdep.h: Include osabi.h.
8555 (alpha_abi): Remove.
8556 (gdbarch_tdep): Use generic OS ABI framework.
8557 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8558 gdbarch_register_osabi.
8559 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8560 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8561 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8562
8563 * Makefile.in (sh_tdep_h): Add osabi.h.
8564 * sh-tdep.h (sh_osabi): Remove.
8565 (gdbarch_tdep): Use generic OS ABI framework.
8566 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8567 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8568 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8569 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8570
8571 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8572 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8573 gdbarch_register_osabi.
8574 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8575 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8576 (get_elfosabi): Rename to...
8577 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8578 ABI framework support routines.
8579 (arm_gdbarch_init): Use generic OS ABI framework.
8580 (arm_dump_tdep): Likewise.
8581 (_initialize_arm_tdep): Likewise.
8582 * arm-tdep.h: Include osabi.h.
8583 (arm_abi): Remove.
8584 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8585 osabi member.
8586 (arm_gdbarch_register_os_abi): Remove prototype.
8587 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8588 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8589
8590 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8591 * mips-tdep.c: Include osabi.h.
8592 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8593 OS ABI framework.
8594
d194345b
KH
85952002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8596
8597 * h8300-tdep.c: Fix formatting.
8598
70c6b0d1
EZ
85992002-05-20 Elena Zannoni <ezannoni@redhat.com>
8600
8601 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8602 printing vector registers.
8603
165b8e33
AC
86042002-05-19 Andrew Cagney <ac131313@redhat.com>
8605
8606 From Fernando Nasser:
8607 * remote.c (remote_async_open_1): Re-throw the exception when the
8608 connection fails.
8609 (remote_cisco_open): Ditto.
8610 (remote_open_1): Ditto.
8611
36918e70
AC
86122002-05-19 Andrew Cagney <ac131313@redhat.com>
8613
8614 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8615 (remote_start_remote): Add uiout parameter. Pass through to
8616 remote_start_remote_dummy.
8617 (remote_open_1): Use catch_exception instead of catch_errors.
8618 (remote_async_open_1): Ditto.
8619 (remote_cisco_open): Ditto.
8620
ae44c0c4
AC
86212002-05-19 Andrew Cagney <ac131313@redhat.com>
8622
8623 * remote.c (remote_start_remote): Replace PTR with void pointer.
8624 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8625 static.
8626
8efe637d
AC
86272002-05-18 Andrew Cagney <ac131313@redhat.com>
8628
8629 * gdb_indent.sh: Allow the script to be run in the sim directory.
8630
2f1b5984
MK
86312002-05-18 Mark Kettenis <kettenis@gnu.org>
8632
f0f625e2
MK
8633 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8634 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8635
2f1b5984
MK
8636 * corelow.c (core_open): Only call set_gdbarch_from_file if
8637 exec_bfd is NULL.
8638
fc974602
AV
86392002-05-17 Andrey Volkov <avolkov@transas.com>
8640
8641 * h8300-tdep.c: Add support of EXR register
8642 * config/h8300/tm-h8300.h: Ditto.
8643
906709f4
AV
86442002-05-17 Andrey Volkov <avolkov@transas.com>
8645
8646 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8647
6e591d68
AV
86482002-05-17 Andrey Volkov <avolkov@transas.com>
8649
8650 * h8300-tdep.c: Change literal regnums to REGNO.
8651
84f0252a
JB
86522002-05-17 Jim Blandy <jimb@redhat.com>
8653
e0e9281e
JB
8654 * NEWS: Note addition of macro support.
8655
84f0252a
JB
8656 Expand preprocessor macros in C expressions.
8657 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8658 (scan_macro_expansion, scanning_macro_expansion,
8659 finished_macro_expansion): New function declarations.
8660 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8661 variable declarations.
8662 * parser-defs.h (expression_context_pc): New declaration.
8663 * parse.c (expression_context_pc): New variable.
8664 (parse_exp_1): Set expression_context_pc, as well as
8665 expression_context_block.
8666 * c-exp.y (yylex): If we're not already reading the result of a
8667 macro expansion, try to macro-expand the next token. When we're
8668 done scanning a macro expansion, switch back to the mainline text.
8669 Commas and `if's in a macro's expansion don't terminate the input.
8670 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8671 (macro_original_text, macro_expanded_text,
8672 expression_macro_lookup_func, expression_macro_lookup_baton): New
8673 variables.
8674 (scan_macro_expansion, scanning_macro_expansion,
8675 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8676 c_preprocess_and_parse): New functions.
8677 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8678 c_preprocess_and_parse, instead of c_parse.
8679 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8680 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8681
1c509ca8
JR
8682Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8683
8684 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8685 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8686 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8687
2250ee0c
CV
86882002-05-17 Corinna Vinschen <vinschen@redhat.com>
8689
8690 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8691
ab3b8126
JT
86922002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8693
8694 * Makefile.in (sh_tdep_h): Define and use.
8695 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8696 register enum): Move to...
8697 * * sh-tdep.h: ...here.
8698 * sh-tdep.c: Include sh-tdep.h.
8699 * sh3-rom.c: Likewise.
8700 * shnbsd-tdep.c: Likewise.
8701
ed9d4749
MS
87022002-05-16 Michael Snyder <msnyder@redhat.com>
8703
8704 * arm-tdep.c: Spelling fix in comment.
8705
2e276125
JB
87062002-05-16 Jim Blandy <jimb@redhat.com>
8707
6821892e
JB
8708 Add commands for manually expanding macros and showing their
8709 definitions.
8710 * macrocmd.c, macroscope.c, macroscope.h: New files.
8711 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8712 (macroscope_h): New variable.
8713 (HFILES_NO_SRCDIR): Add macroscope.h.
8714 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8715 (macroscope.o, macrocmd.o): New rules.
8716
2e276125
JB
8717 Teach the Dwarf 2 reader to read macro information.
8718 * dwarf2read.c: #include "macrotab.h".
8719 (dwarf_macinfo_buffer): New variable.
8720 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8721 dwarf_macinfo_size.
8722 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8723 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8724 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8725 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8726 dwarf2_macro_spaces_in_definition): New complaints.
8727 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8728 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8729 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8730 the partial symbol table.
8731 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8732 from what's recorded in the partial symbol table.
8733 (read_file_scope): If the compilation unit has a
8734 `DW_AT_macro_info' attribute, read its macro information.
8735 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8736
2f53fe6c
DJ
87372002-05-16 Daniel Jacobowitz <drow@mvista.com>
8738
8739 Fix PR gdb/546
8740 * ser-tcp.c: Don't include <netinet/udp.h>.
8741
2be99286
SC
87422002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8743
8744 * MAINTAINERS: Update my email address.
8745
c9af212b 87462002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8747
8748 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8749 include file of the same name.
8750
bf5f1a52
CV
87512002-05-16 Corinna Vinschen <vinschen@redhat.com>
8752
8753 * configure.tgt: Mark v850 as multi-arched.
8754 * config/v850/tm-v850.h: Remove file.
8755 * config/v850/v850.mt: Eliminate TM_FILE.
8756
435e042a
CV
87572002-05-16 Corinna Vinschen <vinschen@redhat.com>
8758
8759 * v850-tdep.c: Full multi-arch.
8760 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8761 Define GDB_MULTI_ARCH to 2.
8762
9819c6c8
PM
87632002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8764
8765 * p-exp.y (current_type): New static variable.
8766 Carries the type of the expression at the position that is parsed.
8767 (push_current_type, pop_current_type): Two new functions. Used
8768 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8769 (search_field): New static variable. Set to one after parsing a point
8770 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8771 (FIELDNAME): New token. After a point only a token belonging to
8772 current_type type definition is allowed.
8773 (all over token rules): reset and change current_type according
8774 to rules.
8775 (exp '[' rule): insert implicit array index field if
8776 exp is a pascal string type.
8777
3a06899a
CV
87782002-05-16 Corinna Vinschen <vinschen@redhat.com>
8779
8780 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8781 frame info. Use frame_info's saved_regs instead of matching member
8782 in extra_frame_info throughout.
8783 (v850_frame_init_saved_regs): New function.
8784 (v850_init_extra_frame_info): Move most functionality into
8785 v850_frame_init_saved_regs().
8786 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8787 (v850_frame_find_saved_regs): Remove declaration.
8788 (FRAME_FIND_SAVED_REGS): Remove definition.
8789 (v850_frame_init_saved_regs): Add declaration.
8790 (FRAME_INIT_SAVED_REGS): Add definition.
8791
6ed14b0e
CV
87922002-05-16 Corinna Vinschen <vinschen@redhat.com>
8793
8794 * v850-tdep.c: Begin multi-arch'ing v850.
8795 (v850_target_architecture_hook): Remove function.
8796 (v850_gdbarch_init): New function. Add code previously in
8797 v850_target_architecture_hook().
8798 (_initialize_v850_tdep): Don't set target_architecture_hook.
8799 Call register_gdbarch_init() instead.
8800
42725910
DJ
88012002-05-16 Daniel Jacobowitz <drow@mvista.com>
8802
8803 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8804 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8805 (fixup_class_method_type): Likewise.
8806
99d9066e
JB
88072002-05-15 Jim Blandy <jimb@redhat.com>
8808
8809 Add macro structures to GDB's symbol tables. Nobody puts anything
8810 in them yet.
8811 * symtab.h (struct symtab): New member: `macro_table'.
8812 * buildsym.h (pending_macros): New global variable.
8813 * buildsym.c: #include "macrotab.h".
8814 (buildsym_init): Initialize `pending_macros'.
8815 (end_symtab): If we found macro information while reading a CU's
8816 debugging info, do build a symtab structure for it. Make the
8817 symtab point to the macro information, and clear the
8818 `pending_macros' pointer which held it while we were reading the
8819 debug info.
8820 (really_free_pendings): Free any pending macro table.
8821 * objfiles.h (struct objfile): New member: `macro_cache'.
8822 * objfiles.c (allocate_objfile): Set allocate and free functions
8823 for the macro cache's objstack.
8824 (free_objfile): Empty the macro cache's obstack.
8825 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8826 set new allocate and free functions for it.
8827 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8828 free functions for the macro cache's objstack. (Why is this
8829 function building its own objfile?)
8830 * symmisc.c (print_objfile_statistics): Print statistics on the
8831 macro bcache.
8832 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8833
c899585b
RE
88342002-05-15 Richard Earnshaw <rearnsha@arm.com>
8835
8836 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8837 (REGISTER_U_ADDR): Delete definition.
8838 (arm_register_u_addr): Delete declaration.
8839
a6cdd8c5
RE
88402002-05-15 Richard Earnshaw <rearnsha@arm.com>
8841
8842 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8843 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8844
c97dcfc7
AC
88452002-05-14 Andrew Cagney <ac131313@redhat.com>
8846
8847 * regcache.c (register_valid): Revise comments refering to "Not
8848 available" and "unavailable".
8849 * frame.c (frame_register_read): Ditto.
8850 * findvar.c (value_of_register): Ditto.
8851
93021b7d
AC
88522002-05-15 Andrew Cagney <cagney@redhat.com>
8853
8854 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8855 (remote-sim.o): Update dependencies.
8856 (d10v-tdep.o): Specify dependencies.
8857 (sim_d10v_h): Define.
8858
a86bc61c
JB
88592002-05-14 Jim Blandy <jimb@redhat.com>
8860
8861 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8862 * macrotab.c (macro_lookup_inclusion, find_definition,
8863 new_macro_table): Same.
8864
8865 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8866 not `! strcmp ()'. This is a dubious improvement.
8867 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8868
8869 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8870 although it's not necessary, to avoid a warning.
8871
2fdde8f8
DJ
88722002-05-14 Daniel Jacobowitz <drow@mvista.com>
8873
8874 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8875 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8876 TYPE_INSTANCE_FLAGS.
8877 (struct main_type): New.
8878 (struct type): Move most members to struct main_type. Change
8879 cv_type and as_type to new type_chain member. Add instance_flags.
8880 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8881 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8882 (finish_cv_type): Remove prototype.
8883 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8884 Set TYPE_CHAIN.
8885 (alloc_type_instance): New function.
8886 (smash_type): New function.
8887 (make_pointer_type, make_reference_type, make_function_type)
8888 (smash_to_member_type, smash_to_method_type): Call smash_type.
8889 (make_qualified_type): New function.
8890 (make_type_with_address_space): Call make_qualified_type.
8891 (make_cv_type): Likewise.
8892 (finish_cv_type): Remove unnecessary function.
8893 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8894 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8895 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8896 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8897 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8898 * hpread.c (hpread_read_struct_type): Likewise.
8899 * stabsread.c (read_struct_type): Likewise.
8900
843fedf4
EZ
89012002-05-14 Elena Zannoni <ezannoni@redhat.com>
8902
8903 * configure.tgt: Add a catch all sh* target, for cases like
8904 sh[2,3,4]-elf and sh-hms.
8905
05a6c72c
KS
89062002-05-14 Keith Seitz <keiths@redhat.com>
8907
8908 * event-loop.c (create_file_handler): Don't do anything but
8909 update data when we are given a fd which we are already
8910 monitoring.
8911
5d085aaf
ML
89122002-05-14 Michal Ludvig <mludvig@suse.cz>
8913
8914 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8915 (update_context): Use __func__ in warnings.
8916
9db8d71f
DJ
89172002-05-14 Daniel Jacobowitz <drow@mvista.com>
8918
8919 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8920 and tcp_close to net_open and net_close.
8921 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8922 using UDP if requested. Don't try to disable Nagle on UDP
8923 sockets.
8924 * remote.c (remote_serial_open): New function. Warn about UDP.
8925 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8926
5dbc6baa
EZ
89272002-05-13 Elena Zannoni <ezannoni@redhat.com>
8928
8929 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8930
cc3023f7
EZ
89312002-05-13 Elena Zannoni <ezannoni@redhat.com>
8932
8933 * configure.tgt: Remove sh-hms target.
8934 * MAINTAINERS: Don't list sh-hms as a separate target.
8935
ec2bcbe7
JB
89362002-05-13 Jim Blandy <jimb@redhat.com>
8937
8938 Add first preprocessor macro-expansion files.
8939 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8940 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8941 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8942 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8943 (COMMON_OBS): Add macrotab.o, macroexp.o.
8944 (macroexp.o, macrotab.o): New rules.
8945
6d531722
AC
89462002-05-13 Andrew Cagney <ac131313@redhat.com>
8947
8948 * config/m88k/tm-m88k.h: Update copyright.
8949 (m88k_target_write_pc): Declare
8950 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8951 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8952 (SHIFT_INST_REGS): Update definition.
8953 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8954 using old definition of TARGET_WRITE_PC.
8955 * regcache.c (generic_target_write_pc): Delete code handling
8956 NNPC_REGNUM.
8957 * gdbarch.sh (NNPC_REGNUM): Delete.
8958 * gdbarch.h, gdbarch.c: Regenerate.
8959
3e3f2739
RE
89602002-05-13 Richard Earnshaw <rearnsha@arm.com>
8961
8962 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8963 builtin reg number.
8964
0004e5a2
DJ
89652002-05-13 Daniel Jacobowitz <drow@mvista.com>
8966
8967 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8968 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8969 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8970 access macros.
8971 * c-typeprint.c (cp_type_print_method_args): Likewise.
8972 (c_type_print_args): Likewise.
8973 * d10v-tdep.c (d10v_push_arguments): Likewise.
8974 (d10v_extract_return_value): Likewise.
8975 * expprint.c (print_subexp): Likewise.
8976 * gdbtypes.c (lookup_primitive_typename): Likewise.
8977 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8978 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8979 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8980 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8981 (TYPE_VECTOR): Likewise.
8982 * hpread.c (hpread_read_struct_type)
8983 (fix_static_member_physnames, fixup_class_method_type)
8984 (hpread_type_lookup): Likewise.
8985 * mdebugread.c (parse_symbol, parse_type): Likewise.
8986 * p-lang.c (is_pascal_string_type): Likewise.
8987 * valops.c (hand_function_call): Likewise.
8988 * x86-64-tdep.c (classify_argument): Likewise.
8989
8990 * hpread.c (hpread_read_function_type)
8991 (hpread_read_doc_function_type): Call replace_type.
8992 * dstread.c (create_new_type): Delete.
8993 (decode_dst_structure, process_dst_function): Call alloc_type.
8994 Use type access macros.
8995
dff95cc7
MK
89962002-05-12 Mark Kettenis <kettenis@gnu.org>
8997
8998 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8999 the're not supported by the current architecture.
9000 (i387_fill_fxsave): Likewise.
9001
bbcd32ad
FF
90022002-05-12 Fred Fish <fnf@redhat.com>
9003
9004 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9005 sect_index_xxx members to index the first slot in section_offsets
9006 if all of the section_offsets are zero.
9007
89cf4787
MK
90082002-05-12 Mark Kettenis <kettenis@gnu.org>
9009
9010 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9011 checked in with last change.
9012
1f77ffc5
MK
90132002-05-12 Mark Kettenis <kettenis@gnu.org>
9014
9015 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9016 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9017 config.sub.
9018
89b8b4a9
DJ
90192002-05-12 Daniel Jacobowitz <drow@mvista.com>
9020
9021 * Makefile.in: Update dependencies.
9022
14a5e767
AC
90232002-05-11 Andrew Cagney <ac131313@redhat.com>
9024
9025 * language.c (local_hex_string_custom): Simplify. Do not depend
9026 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9027
9028 * memattr.c (mem_info_command): Replace calls to
9029 longest_local_hex_string and longest_local_hex_string_custom.
9030 * buildsym.c (make_blockvector): Ditto.
9031 * solib.c (info_sharedlibrary_command): Ditto.
9032 * tracepoint.c (tracepoints_info): Ditto.
9033 * symtab.c (print_msymbol_info): Ditto.
9034
9035 * language.c (local_hex_string): Delete.
9036 (local_hex_string_custom): Delete.
9037 (longest_local_hex_string): Rename to local_hex_string.
9038 (longest_local_hex_string_custom): Rename to
9039 local_hex_string_custom.
9040 * language.h (local_hex_string): Change parameter type to LONGEST.
9041 (local_hex_string_custom): Ditto.
9042 (longest_local_hex_string): Delete declaration.
9043 (longest_local_hex_string_custom): Ditto.
9044
9045 * solib.c: Update copyright.
9046 * memattr.c: Update copyright.
9047
13d01224
AC
90482002-05-11 Andrew Cagney <ac131313@redhat.com>
9049
9050 * arch-utils.h (legacy_register_to_value): Declare.
9051 (legacy_value_to_register): Declare.
9052 (legacy_convert_register_p): Declare.
9053 * arch-utils.c (legacy_register_to_value): New function.
9054 (legacy_value_to_register): New function.
9055 (legacy_convert_register_p): New function.
9056
9057 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9058 (VALUE_TO_REGISTER): Define.
9059 (CONVERT_REGISTER_P): Define.
9060 * gdbarch.h, gdbarch.c: Regenerate.
9061
9062 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9063 VALUE_TO_REGISTER.
9064 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9065 CONVERT_REGISTER_P.
9066
4a1970e4
DJ
90672005-05-11 Daniel Jacobowitz <drow@mvista.com>
9068 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9069
9070 * Makefile.in: Update dependencies for valops.c.
9071 * valops.c: Include "gdb_assert.h".
9072 (typecmp): Skip THIS parameter to methods.
9073 (find_method_list): Remove static_memfuncp argument,
9074 update callers. Check for stub methods.
9075 (find_value_oload_method_list): Don't set *static_memfuncp.
9076 (find_overload_match): Don't check for stub methods. Assert
9077 that methods are not stubbed. Handle static methods.
9078 (value_find_oload_method_list): Remove static_memfuncp argument.
9079 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9080 to the argument list for static stub methods.
9081 * value.h (value_find_oload_method_list): Update prototype.
9082
b2e75d78
AC
90832002-05-11 Andrew Cagney <ac131313@redhat.com>
9084
9085 * arch-utils.h (generic_register_size): Declare.
9086 (generic_register_raw_size, generic_register_virtual_size): Delete
9087 declarations.
9088 * arch-utils.c (generic_register_raw_size): Delete.
9089 (generic_register_size): New function.
9090 (generic_register_virtual_size): Delete.
9091
9092 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9093 default generic_register_size.
9094 * gdbarch.h, gdbarch.c: Re-generate.
9095
9096 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9097 register_virtual_size.
9098 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9099 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9100
451fbdda
AC
91012002-05-11 Andrew Cagney <ac131313@redhat.com>
9102
9103 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9104 * gdbarch.h, gdbarch.c: Regenerate.
9105 * gnu-v3-abi.c: Update copyright.
9106 (vtable_address_point_offset): Update.
9107 (gnuv3_rtti_type): Update.
9108 (gnuv3_baseclass_offset): Update.
9109 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9110 (init_fetch_link_map_offsets): Update.
9111 * remote.c (get_remote_state): Update.
9112
6d2f5cea
DJ
91132002-05-11 Daniel Jacobowitz <drow@mvista.com>
9114
9115 * TODO: Remove value_headof/value_from_vtable_info comment.
9116 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9117 * values.c (value_headof, value_from_vtable_info): Delete.
9118 * value.h (value_from_vtable_info): Delete prototype.
9119
d2324da4
AC
91202002-05-11 Andrew Cagney <ac131313@redhat.com>
9121
9122 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9123 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9124 $(gdb_regex_h).
9125 (gdb_assert_h): Define.
9126 (gdb_wait_h): Define.
9127 (gdb_regex_h): Define.
9128
5c717440
DJ
91292002-05-11 Daniel Jacobowitz <drow@mvista.com>
9130
9131 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9132 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9133
6c7861b3
JT
91342002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9135
9136 * nbsd-tdep.c: Fix comment.
9137
ea5bc2a6
JT
91382002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9139
9140 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9141 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9142 (nbsd-tdep.o): New dependency list.
9143 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9144 nbsd-tdep.h.
9145 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9146 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9147 * nbsd-tdep.c: New file.
9148 * nbsd-tdep.h: New file.
9149 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9150 nbsd-tdep.h.
9151 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9152 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9153 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9154 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9155
b28da865
JT
91562002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9157
9158 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9159 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9160 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9161 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9162 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9163 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9164
4b8ff1fa
JT
91652002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9166
9167 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9168 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9169 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9170 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9171 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9172 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9173 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9174
dfe6eb1f
JT
91752002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9176
9177 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9178 fetch_elfcore_registers to...
9179 * i386nbsd-tdep.c: ...here.
9180 (i386nbsd_use_struct_convention): Rename to...
9181 (i386nbsd_aout_use_struct_convention): ...this.
9182 (i386nbsd_supply_reg): New function.
9183 (i386nbsd_fill_reg): New function.
9184 (fetch_core_registers): Use i386nbsd_supply_reg.
9185 (fetch_elfcore_registers): Likewise.
9186 (_initialize_i386nbsd_tdep): New function.
9187 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9188 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9189 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9190 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9191 (i386nbsd_aout_use_struct_convention): ...this.
9192
20cb8cda
JT
91932002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9194
9195 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9196 (store_inferior_registers): Use shnbsd_fill_reg.
9197 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9198 sh_nbsd_supply_register): Collapse into...
9199 (shnbsd_supply_reg): ...this.
9200 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9201 (shnbsd_fill_reg): ...this.
9202 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9203 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9204 (fetch_core_registers): Use shnbsd_supply_reg.
9205 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9206 (sh_nbsd_core_fns): Rename to...
9207 (shnbsd_core_fns): ...this.
9208 (sh_nbsd_elfcore_fns): Rename to...
9209 (shnbsd_elfcore_fns): ...this.
9210 (sh_nbsd_init_abi): Rename to...
9211 (shnbsd_init_abi): ...this.
9212 (_initialize_sh_nbsd_tdep): Rename to...
9213 (_initialize_shnbsd_tdep): ...this.
9214 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9215 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9216 sh_nbsd_fill_register): Remove prototypes.
9217 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9218
e750d25e
JT
92192002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9220
9221 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9222 (i387-nat.o): Delete dependency list.
9223 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9224 (x86-64-linux-nat.o): Likewise.
9225 * i387-nat.c: Delete file, moving contents to...
9226 * i387-tdep.c: ...here.
9227 * i387-nat.h: Rename...
9228 * i387-tdep.h: ...to this.
9229 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9230 * i386-linux-nat.c: Likewise.
9231 * i386bsd-nat.c: Likewise.
9232 * i386gnu-nat.c: Likewise.
9233 * i386nbsd-nat.c: Likewise.
9234 * i386v4-nat.c: Likewise.
9235 * x86-64-linux-nat.c: Likewise.
9236 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9237 * config/i386/go32.mh (NATDEPFILES): Likewise.
9238 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9239 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9240 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9241 * config/i386/linux.mh (NATDEPFILES): Likewise.
9242 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9243 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9244 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9245 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9246
1aee598a
JT
92472002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9248
9249 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9250 (alphanbsd-nat.o): Remove dependency list.
9251 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9252 * alphanbsd-nat.c: Delete. Contents moved to...
9253 * alphanbsd-tdep.c: ...here.
9254 (_initialize_alphanbsd_tdep): Register core functions.
9255 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9256
12bcb0fe
JT
92572002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9258
9259 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9260 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9261 (alphanbsd-nat.o): Likewise.
9262 (alphabsd-tdep.o): New dependency list.
9263 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9264 (fill_gregset): Use alphabsd_fill_reg.
9265 (supply_fpregset): Use alphabsd_supply_fpreg.
9266 (fill_fpregset): Use alphabsd_fill_fpreg.
9267 (fetch_inferior_registers): Use struct reg and struct fpreg
9268 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9269 and alphabsd_supply_fpreg.
9270 (store_inferior_registers): Use struct reg and struct fpreg
9271 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9272 and alphabsd_fill_fpreg.
9273 * alphabsd-tdep.c: New file.
9274 * alphabsd-tdep.h: New file.
9275 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9276 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9277 alphabsd_supply_fpreg.
9278 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9279 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9280
361d1df0
EC
92812002-05-11 Eric Christopher <echristo@redhat.com>
9282
9283 * mips-tdep.c (mips_double_register_type): Fix thinko.
9284 (mips_single_register_type): Ditto.
9285 * MAINTAINERS: Add self.
9286
92dd7cee
MK
92872002-05-11 Mark Kettenis <kettenis@gnu.org>
9288
9289 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9290 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9291 right thing on architectures with different endianness and/or
9292 integer sizes.
9293
e27da16d
JT
92942002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9295
9296 From Christian Limpach <chris@Pin.LU>
9297 * configure.in: Change sed expression which comments out
9298 NATDEPFILES to also comment out continuation lines.
9299 * configure: Regenerate.
9300
ddde02bd
EZ
93012002-05-10 Elena Zannoni <ezannoni@redhat.com>
9302
9303 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9304 big patch.
9305
1c922164
EZ
93062002-05-10 Elena Zannoni <ezannoni@redhat.com>
9307
9308 * sh-tdep.c: Include correct file.
9309
283150cd
EZ
93102002-05-10 Elena Zannoni <ezannoni@redhat.com>
9311
9312 New support for sh64-elf (sh5) target.
9313
9314 * configure.tgt: For sh64-elf target, default to sh-elf.
9315
9316 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9317 (struct gdbarch_tdep): Add new fields for new registers and ABI
9318 info.
361d1df0 9319
283150cd
EZ
9320 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9321 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9322 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9323 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9324 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9325 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9326 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9327 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9328 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9329 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9330 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9331 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9332 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9333 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9334 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9335 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9336 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9337 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9338 sign_extend, sh64_nofp_frame_init_saved_regs,
9339 sh64_init_extra_frame_info, sh64_get_saved_register,
9340 sh64_extract_struct_value_address, sh64_pop_frame,
9341 sh64_push_arguments, sh64_extract_return_value,
9342 sh64_store_return_value, sh64_show_media_regs,
9343 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9344 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9345 sh_sh64_register_virtual_type,
9346 sh_sh64_register_convert_to_virtual,
9347 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9348 sh64_register_read, sh64_pseudo_register_write,
9349 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9350 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9351 sh64_do_pseudo_register, sh_compact_do_registers_info,
9352 sh64_do_registers_info, sh_gdbarch_init): New functions.
9353
3117ed25
EZ
93542002-05-10 Elena Zannoni <ezannoni@redhat.com>
9355
9356 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9357
2654e6d4
DJ
93582002-05-10 Daniel Jacobowitz <drow@mvista.com>
9359
9360 * linespec.c (decode_line_1): Check for a double quote after
9361 a filename correctly.
9362
9ab3e532
JB
93632002-05-10 Jim Blandy <jimb@redhat.com>
9364
9365 Properly track the size of the current objfile's .debug_line section.
9366 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9367 (DWARF_LINE_SIZE): New macro.
9368 (dwarf2_build_psymtabs_hard): Record the line section's size in
9369 the partial symbol table.
9370 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9371 symbol table.
9372
126fa72d
PS
93732002-05-10 Petr Sorfa <petrs@caldera.com>
9374
9375 * ia64-tdep.c: Handle breakpoints on L instruction type
9376 in MLX instruction bundle by moving the breakpoint to
9377 the third slot (X instruction type) as L holds only data.
9378
1f077a3e
KB
93792002-05-10 Kevin Buettner <kevinb@redhat.com>
9380
9381 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9382 (process_one_symbol): Complain about discarding local symbols
9383 due to a misplaced N_LBRAC entry.
9384
8120c9d5 93852002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
9386
9387 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
9388 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9389 decrease the depth we are at, in the case of templates.
361d1df0 9390
67b2c998
DJ
93912002-05-09 Daniel Jacobowitz <drow@mvista.com>
9392
9393 * mips-tdep.c (mips_float_register_type): New function.
9394 (mips_double_register_type): New function.
9395 (mips_print_register): Use them.
9396 (do_fp_register_row): Likewise.
9397
fd326606
DJ
93982002-05-09 Daniel Jacobowitz <drow@mvista.com>
9399
6609d9af 9400 * signals/signals.c (signals): Remove conditional compilation around
fd326606 9401 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 9402 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 9403
bef35864
MS
94042002-05-09 Michael Snyder <msnyder@redhat.com>
9405
9406 * remote-rdp.c (remote_rdp_can_run): Remove.
9407
c55a3f73
TT
94082002-05-09 Tom Tromey <tromey@redhat.com>
9409
9410 * jv-valprint.c (java_val_print): Handle `char' as a special case
9411 of TYPE_CODE_INT.
9412
b8d5e71d
MS
94132002-05-09 Michael Snyder <msnyder@redhat.com>
9414
9415 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9416 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 9417 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 9418 str r(0123),[sp,#nn].
361d1df0 9419 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
9420 order-independent by placing it in a loop.
9421
e2cd42dd
MS
94222002-05-06 Michael Snyder <msnyder@redhat.com>
9423
9424 * stabsread.c (read_type): Add recognition for new attribute:
9425 "@V;" means that an array type is actually a vector.
9426 This is analogous to the vector flag that's been added to dwarf2.
9427
3ce1502b
MK
94282002-05-09 Mark Kettenis <kettenis@gnu.org>
9429
9430 * i386-tdep.h (i386_abi): New enum.
9431 (struct gdbarch_tdep): Replace os_ident member with abi.
9432 (i386_gdbarch_register_os_abi): New prototype.
9433 * i386-tdep.c (i386_abi_names): New array.
9434 (process_note_abi_tag_sections): Removed.
9435 (process_note_sections): New function.
9436 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9437 (struct i386_abi_handler): New struct.
9438 (i386_abi_handler_list): New variable.
9439 (i386_gdbarch_register_os_abi): New function.
9440 (i386_gdbarch_init): Adapt for the changes given above.
9441
084c156a
DJ
94422002-05-08 Daniel Jacobowitz <drow@mvista.com>
9443
9444 * gregset.h: Say "GNU/Linux".
9445
6599f021
EZ
94462002-05-08 Elena Zannoni <ezannoni@redhat.com>
9447
9448 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9449 (build_gdbtypes): Build builtin_type_v2_float.
9450 (_initialize_gdbtypes): Register new builtin type.
9451
40af4b0c
AC
94522002-05-08 Andrew Cagney <ac131313@redhat.com>
9453
9454 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9455 (clear_gdbarch_swap): New function.
9456 (initialize_non_multiarch): Call.
9457 (gdbarch_update_p): Before calling init(), swap out and clear the
9458 existing architecture.
9459 * gdbarch.c: Regenerate.
9460
4fe84f46
JT
94612002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9462
9463 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9464 alphanbsd-tdep.c.
9465
4015edd1
JT
94662002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9467
9468 * sh-nbsd-nat.c: Rename to...
9469 * shnbsd-nat.c: ...this.
9470 * sh-nbsd-tdep.c: Rename to...
9471 * shnbsd-tdep.c: ...this.
9472 * sh-nbsd-tdep.h: Rename to...
9473 * shnbsd-tdep.h: ...this.
9474 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9475 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9476
0e2bd219
RE
94772002-05-08 Richard Earnshaw <rearnsha@arm.com>
9478
9479 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9480 concatenation for command help messages.
9481
13a38d45
JT
94822002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9483
9484 * NEWS: Note new sh*-*-netbsdelf* configuration.
9485 * configure.host: Set gdb_host_cpu to sh for all sh*.
9486 (sh*-*-netbsdelf*): New host.
9487 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9488 (sh*-*-netbsdelf*): New target.
9489 * sh-nbsd-nat.c: New file.
9490 * sh-nbsd-tdep.c: New file.
9491 * sh-nbsd-tdep.h: New file.
9492 * config/sh/nbsd.mh: New file.
9493 * config/sh/nbsd.mt: New file.
9494 * config/sh/nm-nbsd.h: New file.
9495 * config/sh/tm-nbsd.h: New file.
9496
d658f924
JT
94972002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9498
9499 * sh-tdep.c (sh_osabi_names): Declare.
9500 (process_note_abi_tag_sections): New function.
9501 (get_elfosabi): Ditto.
9502 (sh_gdbarch_register_os_abi): Ditto.
9503 (sh_dump_tdep): Ditto.
9504 _initialize_sh_tdep): Use gdbarch_register to register
9505 sh_gdbarch_init and sh_dump_tdep.
9506 * config/sh/tm-sh.h (sh_osabi): Declare.
9507 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9508
848cfffb
AC
95092002-05-07 Andrew Cagney <ac131313@redhat.com>
9510
9511 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9512 (thumb_scan_prologue): Ditto.
9513 (arm_find_callers_reg): Ditto.
9514 (arm_frame_chain): Ditto.
9515 (arm_init_extra_frame_info): Ditto.
9516 (arm_frame_saved_pc): Ditto.
9517 (arm_pop_frame): Ditto.
9518 (arm_push_return_address): New function.
9519 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9520 call_dummy_location, call_dummy_breakpoint_offset_p,
9521 call_dummy_breakpoint_offset, call_dummy_p,
9522 call_dummy_stack_adjust_p, call_dummy_words,
9523 sizeof_call_dummy_words, call_dummy_start_offset,
9524 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9525 call_dummy_address, push_return_address and push_dummy_frame for
9526 generic dummy frames.
9527
e7d717c0
JT
95282002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9529
9530 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9531 size computation for alloca.
9532 (sh_fp_frame_init_saved_regs): Likewise.
9533
7bbcf283
RE
95342002-05-07 Richard Earnshaw <rearnsha@arm.com>
9535
9536 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9537 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9538 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9539 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9540 * remote-rdp.c (remote_rdp_fetch_register): Use
9541 ARM_MAX_REGISTER_RAW_SIZE.
9542 (remote_rdp_store_register): Likewise.
9543
4657573b
ML
95442002-05-07 Michal Ludvig <mludvig@suse.cz>
9545
361d1df0 9546 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9547 added default labels to switch {} statements.
9548 * x86-64-tdep.c: Ditto.
9549 * x86-64-linux-nat.c: Ditto.
9550
010f3b2f
JT
95512002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9552
9553 * solib.h: Protect against multiple inclusion.
9554
debd256d
JB
95552002-05-06 Jim Blandy <jimb@redhat.com>
9556
9ab3e532
JB
9557 Add first preprocessor macro-expansion files.
9558 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9559 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9560 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9561 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9562 (COMMON_OBS): Add macrotab.o, macroexp.o.
9563 (macroexp.o, macrotab.o): New rules.
9564
debd256d
JB
9565 Separate the job of reading the line number info statement program
9566 header (...expialidocious) out into its own function.
9567 * dwarf2read.c (struct line_head, struct filenames, struct
9568 directories): Replace with...
9569 (struct line_header): New structure, containing the full
9570 contents of the statement program header, including the
9571 include directory and file name tables.
9572 (read_file_scope): If we have line number info, instead of just
9573 calling dwarf_decode_lines to do all the work, call
9574 dwarf_decode_line_header first to get a `struct line_header'
9575 containing the data in the statement program header, and then
9576 pass that to dwarf_decode_lines, which will pick up where that
9577 left off. Be sure to clean up the `struct line_header' object.
9578 (dwarf_decode_line_header, free_line_header, add_include_dir,
9579 add_file_name): New functions.
9580 (dwarf_decode_lines): Move all the code to read the statement
9581 program header into dwarf_decode_line_header. Take the line
9582 header it built as the first argument, instead of the offset to
9583 the compilation unit's line number info. Use the new `struct
9584 line_header' type instead of the old structures. No need to do
9585 cleanups here now, since we don't allocate anything.
9586 (dwarf2_statement_list_fits_in_line_number_section,
9587 dwarf2_line_header_too_long): New complaints.
9588
ac3aafc7
EZ
95892002-05-06 Elena Zannoni <ezannoni@redhat.com>
9590
9591 * gdbtypes.c (init_vector_type): New function.
9592 (build_builtin_type_vec128): Simplify the representation of SIMD
9593 registers.
9594 (build_gdbtypes): Initialize new builtin vector types.
9595 (_initialize_gdbtypes): Register new vector types with gdbarch.
9596 (builtin_type_v4_float, builtin_type_v4_int32,
9597 builtin_type_v8_int16, builtin_type_v16_int8,
9598 builtin_type_v2_int32, builtin_type_v4_int16,
9599 builtin_type_v8_int8): New (renamed) SIMD types.
9600
13e49980
MK
96012002-05-06 Mark Kettenis <kettenis@gnu.org>
9602
9603 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9604 (i387_fill_fxsave): Likewise.
9605
997b20b8
AO
96062002-05-05 Alexandre Oliva <aoliva@redhat.com>
9607
9608 * alpha-tdep.c (alpha_extract_return_value): Don't use
9609 non-constant array size in prototype.
9610
535c96ce
AC
96112002-05-04 Andrew Cagney <ac131313@redhat.com>
9612
9613 From Brian Taylor <briant at model dot com>:
9614 * ui-out.c (ui_out_field_core_addr): Use the function
9615 longest_local_hex_string_custom'to format addresses > 32 bits
9616 wide.
9617
9618 * ui-out.c (ui_out_field_core_addr): Update comment.
9619
bedfa57b
AC
96202002-05-04 Andrew Cagney <ac131313@redhat.com>
9621
9622 * stack.c (select_and_print_frame): Make static. Delete the
9623 parameter `level'.
9624 (func_command): Update call.
9625 (select_frame_command): Delete code computing the frame level.
9626 * frame.h (select_and_print_frame): Delete declaration.
9627
f621c63e
AC
96282002-05-04 Andrew Cagney <ac131313@redhat.com>
9629
9630 * sparc-tdep.c (sparc_get_saved_register): Comment why
9631 get_prev_frame call is safe.
9632
0f7d239c
AC
96332002-05-04 Andrew Cagney <ac131313@redhat.com>
9634
9635 * frame.h (select_frame): Delete level parameter.
9636 * stack.c (select_frame): Update. Use frame_relative_level to
9637 obtain the frame's level.
9638 (select_and_print_frame): Update call.
9639 (select_frame_command): Ditto.
9640 (up_silently_base): Ditto.
9641 (down_silently_base): Ditto.
9642 * ocd.c (ocd_start_remote): Ditto.
9643 * remote-rdp.c (remote_rdp_open): Ditto.
9644 * remote-mips.c (mips_initialize): Ditto.
9645 (common_open): Ditto.
9646 * remote-e7000.c (e7000_start_remote): Ditto.
9647 * m3-nat.c (select_thread): Ditto.
9648 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9649 (child_get_current_exception_event): Ditto.
9650 * varobj.c (varobj_create): Ditto.
9651 (varobj_update): Ditto.
9652 (c_value_of_root): Ditto.
9653 * tracepoint.c (finish_tfind_command): Ditto.
9654 * corelow.c (core_open): Ditto.
9655 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9656 * thread.c (info_threads_command): Ditto.
9657 (switch_to_thread): Ditto.
9658 * infrun.c (normal_stop): Ditto.
9659 (restore_selected_frame): Ditto.
9660 (restore_inferior_status): Ditto.
9661 * breakpoint.c (insert_breakpoints): Ditto.
9662 (watchpoint_check): Ditto.
9663 (bpstat_stop_status): Ditto.
9664 (do_enable_breakpoint): Ditto.
9665 * blockframe.c (flush_cached_frames): Ditto.
9666 (reinit_frame_cache): Ditto.
9667
71d6c7b1
AC
96682002-05-04 Andrew Cagney <ac131313@redhat.com>
9669
9670 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9671 maintainer.
9672
cda6c68a
JB
96732002-05-04 Jim Blandy <jimb@redhat.com>
9674
9675 * gdbtypes.c (replace_type): Doc fix.
9676
5c1c87f0
AC
96772002-05-04 Andrew Cagney <ac131313@redhat.com>
9678
9679 * valprint.c (strcat_longest): Delete commented out function.
9680 Update copyright.
9681
cd9bfe15
AC
96822002-05-04 Andrew Cagney <ac131313@redhat.com>
9683
9684 * MAINTAINERS: Mark a29k as deleted.
9685 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9686 Move new configurations to the top.
9687 * configure.tgt: Remove a29k.
9688 * config/a29k/tm-vx29k.h: Delete.
9689 * config/a29k/vx29k.mt: Delete.
9690 * config/a29k/tm-a29k.h: Delete.
9691 * config/a29k/a29k-udi.mt: Delete.
9692 * config/a29k/a29k.mt: Delete.
9693 * a29k-tdep.c: Delete.
9694 * remote-udi.c: Delete.
9695 * remote-mm.c: Delete.
9696 * remote-eb.c: Delete.
9697 * remote-adapt.c: Delete.
9698 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9699 * config/s390/s390x.mt: Ditto.
9700 * config/s390/s390.mt: Ditto.
9701 * config/sparc/sparclynx.mh: Ditto.
9702 * config/sparc/linux.mh: Ditto.
9703 * config/pa/hppaosf.mh: Ditto.
9704 * config/pa/hppabsd.mh: Ditto.
9705 * config/ns32k/nbsd.mt: Ditto.
9706 * config/mips/vr5000.mt: Ditto.
9707 * config/m68k/sun3os4.mh: Ditto.
9708 * config/m68k/nbsd.mt: Ditto.
9709 * config/m68k/m68klynx.mh: Ditto.
9710 * config/m32r/m32r.mt: Ditto.
9711 * config/i386/x86-64linux.mt: Ditto.
9712 * config/i386/nbsdelf.mt: Ditto.
9713 * config/i386/nbsd.mt: Ditto.
9714 * config/i386/i386lynx.mh: Ditto.
9715
bf0c5130
AC
97162002-05-04 Andrew Cagney <ac131313@redhat.com>
9717
9718 * target.c (debug_print_register): New function. Handle oversize
9719 registers.
9720 (debug_to_fetch_registers): Call.
9721 (debug_to_store_registers): Call.
9722
2ae1c2d2
JB
97232002-05-03 Jim Blandy <jimb@redhat.com>
9724
13a393b0
JB
9725 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9726 (read_type): Doc fix.
9727 * gdbtypes.c (replace_type): Doc fix.
9728
2ae1c2d2
JB
9729 * stabsread.c (multiply_defined_struct): New complaint.
9730 (read_struct_type): If the type we were passed isn't empty, or
9731 incomplete, don't read the new struct type into it; complain,
9732 and return the original type unchanged. Take a new `type_code'
9733 argument, which is the type code for the new type.
9734 (read_type): Rather than storing the type's type code here, pass
9735 it as an argument to read_struct_type, and let that take care of
9736 storing it. That way, we don't overwrite the original type code,
9737 so read_struct_type can use it to decide whether we're overwriting
9738 something we shouldn't.
9739 (complain_about_struct_wipeout): New function.
9740
8de9bdc4
AC
97412002-05-03 Andrew Cagney <ac131313@redhat.com>
9742
9743 * gdbarch.sh: Assert that gdbarch is non-NULL.
9744 * gdbarch.c: Regenerate.
9745
f773fdbb
JM
97462002-05-03 Jason Merrill <jason@redhat.com>
9747
9748 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9749 and return NULL.
9750
0e04a514
ML
97512002-05-03 Michal Ludvig <mludvig@suse.cz>
9752
9753 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9754 (x86_64_dwarf2gdb_regno_map_length),
9755 (x86_64_dwarf2_reg_to_regnum): Added.
9756 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9757 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9758 (_initialize_x86_64_tdep): Synced with the change above.
9759 (x86_64_skip_prologue): Reformulated message.
9760
065432a8
PM
97612002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9762
9763 * f-exp.y: Also use new prev_lexptr variable
9764 to improve error reporting. Based on Michael Snyder
9765 2002-04-24 dated patch to c-exp.y.
9766 * jv-exp.y: Likewise.
9767 * m2-exp.y: Likewise.
9768
a3162708
EZ
97692002-05-02 Elena Zannoni <ezannoni@redhat.com>
9770
9771 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9772 we are dealing with vectors.
9773
03620c38
PM
97742002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9775
9776 * config/m68k/tm-nbsd.h: Obvious fix,
9777 correct machine name.
9778
6604db2e
PM
97792002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9780
9781 * p-typeprint.c (pascal_type_print_base): Add support
9782 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9783
0906b739
PM
97842002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9785
9786 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9787 for fondamental pascal 'char' type.
9788
e2625b33
PM
97892002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9790
9791 * p-lang.h (is_pascal_string_type): Declaration changed,
9792 new sixth argument of type char ** added.
361d1df0 9793 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9794 changed. Args length_pos, length_size, string_pos, char_size
9795 can now be NULL. New argument arrayname set to the field
9796 name of the char array. Return value set to char array
9797 field index plus one.
361d1df0 9798 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9799 is_pascal_string_type function.
9800
cf17c188
AC
98012002-05-02 Andrew Cagney <cagney@redhat.com>
9802
9803 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9804 <cagney@redhat.com> change.
9805 * gdbarch.c: Regenerate.
9806
52bca491
AC
98072002-05-02 Andrew Cagney <cagney@redhat.com>
9808
9809 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9810 before probing for a new one. Detect errorenous gdbarch_init
9811 functions.
9812 * gdbarch.c: Regenerate.
9813
d5e72505
AC
98142002-05-01 Andrew Cagney <cagney@redhat.com>
9815
9816 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9817 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9818 * config/v850/tm-v850.h: Ditto. Update copyright.
9819
af566d9f
AC
98202002-04-30 Andrew Cagney <ac131313@redhat.com>
9821
9822 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9823 current_gdbarch.
9824
880d85fa
MS
98252002-04-30 Michael Snyder <msnyder@redhat.com>
9826
94c30b78
MS
9827 * arm-tdep.c: Whitespace clean-ups.
9828 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9829 should have been removed as part of 4/24 change.
9830
6f5987a6
KB
98312002-04-30 Kevin Buettner <kevinb@redhat.com>
9832
9833 * rs6000-tdep.c: Added comment describing how fpscr register
9834 numbers were chosen.
9835
1a113c93
MS
98362002-04-30 Michael Snyder <msnyder@redhat.com>
9837
9838 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9839
9a6f53fe
EZ
98402002-04-29 Elena Zannoni <ezannoni@redhat.com>
9841
9842 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9843 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9844 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9845
11ed25ac
KB
98462002-04-29 Kevin Buettner <kevinb@redhat.com>
9847
9848 From Louis Hamilton <hamilton@redhat.com>:
9849 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9850 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9851 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9852 not bfd-private xcoff data, to determine wordsize.
9853 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9854
ae232405
AC
98552002-04-29 Andrew Cagney <ac131313@redhat.com>
9856
9857 GDB 5.2 released from 5.2 branch.
9858
91fd20f7
ML
98592002-04-29 Michal Ludvig <mludvig@suse.cz>
9860
9861 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9862 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9863 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9864
2dc5091b
EZ
98652002-04-29 Elena Zannoni <ezannoni@redhat.com>
9866
9867 * rs6000-tdep.c (rs6000_extract_return_value,
9868 rs6000_store_return_value): Handle returning vectors.
9869 (rs6000_gdbarch_init): Use
9870 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9871 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9872 New function.
9873 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9874 vectors.
9875 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9876 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9877
2b9848d8
PM
98782002-04-24 Pierre Muller <ics.u-strasbg.fr>
9879
9880 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9881 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9882 with fprintf_unfiltered (gdb_stderr,...).
9883
f8d17dc5
PM
98842002-04-24 Pierre Muller <ics.u-strasbg.fr>
9885
9886 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9887 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9888 Replace fprintf (stderr,...
9889 with fprintf_unfiltered (gdb_stderr,....
9890 * remote-es.c: Likewise.
9891 * remote-os9k.c: Likewise.
9892 * remote-st.c: Likewise.
9893
2f2f1ad1
AS
98942002-04-28 Andreas Schwab <schwab@suse.de>
9895
9896 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9897 linux-proc.o and gcore.o.
9898
b6779aa2
AC
98992002-04-26 Michal Ludvig <mludvig@suse.cz>
9900
9901 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9902 code without frame pointers.
9903
7e57f5f4
AC
99042002-04-26 Andrew Cagney <ac131313@redhat.com>
9905
9906 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9907 ON_STACK is needed.
9908
2ceb85d0
BE
99092002-04-26 Ben Elliston <bje@redhat.com>
9910
9911 * target.c (do_xfer_memory): Correct reference to the new option
9912 "trust-readonly-sections".
9913
f5f8a009
EZ
99142002-04-26 Elena Zannoni <ezannoni@redhat.com>
9915
9916 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9917 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9918 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9919 vectors.
9920 (read_array_type): Record the fact that this array type is really a
9921 vector (i.e. are passed in by value).
9922
5868c862
JT
99232002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9924
9925 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9926 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9927 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9928 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9929 * alpha-linux-tdep.c: Include frame.h.
9930 (alpha_linux_sigcontext_addr): New function.
9931 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9932 alpha_linux_sigcontext_addr.
9933 * alpha-osf1-tdep.c: Include gdbcore.h.
9934 (alpha_osf1_sigcontext_addr): New function.
9935 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9936 alpha_osf1_sigcontext_addr.
9937 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9938 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9939
bfb01f37
AC
99402002-04-26 Andrew Cagney <ac131313@redhat.com>
9941
361d1df0 9942 * stack.c (selected_frame_level):
bfb01f37
AC
9943 (select_frame): Do not set selected_frame_level.
9944 * frame.h (selected_frame_level): Delete declaration.
9945
15813d3f
AC
99462002-04-26 Andrew Cagney <ac131313@redhat.com>
9947
9948 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9949 convert_from_func_ptr-addr when AIX / PowerOpen.
9950
6096c27a
AC
99512002-04-25 Andrew Cagney <ac131313@redhat.com>
9952
9953 * valops.c (hand_function_call): Call
9954 generic_save_call_dummy_addr.
9955 * frame.h (generic_save_call_dummy_addr): Declare.
9956 * blockframe.c (struct dummy_frame): Add fields call_lo and
9957 call_hi.
9958 (generic_find_dummy_frame): Check for PC in range call_lo to
9959 call_hi instead of entry_point_address.
9960 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9961 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9962 (generic_save_call_dummy_addr): New function.
9963
f510d44e
DM
99642002-04-24 David S. Miller <davem@redhat.com>
9965
9966 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9967 sparc_skip_prologue.
9968 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9969 information to find prologue when possible.
9970 (sparc_prologue_frameless_p): Call examine_prologue directly.
9971 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9972 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9973 second argument.
9974 (SKIP_PROLOGUE): Likewise.
9975
15d72a92
JT
99762002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9977
9978 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9979 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9980 indicate that the condition it was testing is always true.
9981 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9982 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9983 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9984
accc6d1f
JT
99852002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9986
9987 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9988 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9989 tdep->jb_pc and tdep->jb_elt_size.
9990 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9991 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9992 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9993 * alpha-nat.c (get_longjmp_target): Remove.
9994 (JB_ELEMENT_SIZE): Ditto.
9995 (JB_PC): Ditto.
9996 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9997 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9998 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9999 to alpha_get_longjmp_target.
10000 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10001 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10002 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10003
1bfdc549
AC
100042002-04-25 Andrew Cagney <ac131313@redhat.com>
10005
10006 * README: Update to GDB 5.2.
10007
1bd316f0
AC
100082002-04-25 Andrew Cagney <ac131313@redhat.com>
10009
10010 * gdbarch.sh (LC_ALL): Set to `c'.
10011
2e5ff58c
TR
100122002-04-25 Theodore A. Roth <troth@verinet.com>
10013
10014 * avr-tdep.c: Ran through gdb_indent.sh.
10015
e33ce519
TR
100162002-04-25 Theodore A. Roth <troth@verinet.com>
10017
10018 * MAINTAINERS: Add myself as AVR maintainer.
10019 * NEWS: Note new target avr.
10020
8818c391
TR
100212002-04-25 Theodore A. Roth <troth@verinet.com>
10022
10023 * Makefile.in: Add support for AVR target.
10024 * configure.tgt: Add support for AVR target.
10025 * avr-tdep.c: New file
10026 * config/avr/avr.mt: New file.
10027
79509c2d
TR
100282002-04-25 Theodore A. Roth <troth@verinet.com>
10029
10030 * MAINTAINERS: Add myself to write-after-approval.
10031
dac8068e
PM
100322002-04-24 Pierre Muller <ics.u-strasbg.fr>
10033
10034 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10035 with fprintf_unfiltered (gdb_stderr,....
10036
25bf3106
PM
100372002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10038
10039 Fix PR gdb/508.
10040 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10041
24467a86
PM
100422002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10043
10044 * p-exp.y: Also use new prev_lexptr variable
10045 to improve error reporting. Based on Michael Snyder
10046 2002-04-24 dated patch to c-exp.y.
10047
95b80706
JT
100482002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10049
10050 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10051 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10052 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10053 to 0.
10054 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10055 and struct value.
10056 (FUNCTION_START_OFFSET): Remove.
10057 (BREAKPOINT): Ditto.
10058
e90cc612
JT
100592002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10060
10061 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10062 * NEWS: Ditto.
10063
6c72f9f9
JT
100642002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10065
10066 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10067 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10068 alpha_linux_pc_in_sigtramp.
10069 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10070 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10071 alpha_osf1_pc_in_sigtramp.
10072 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10073 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10074 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10075 alphafbsd_pc_in_sigtramp.
10076 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10077 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10078 alphanbsd_pc_in_sigtramp.
10079 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10080 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10081
5e4f3379
JT
100822002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10083
10084 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10085
da8ca43d
JT
100862002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10087
10088 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10089 alphanbsd-tdep.c.
10090 (alphanbsd-nat.o): New dependency list.
10091 (alphanbsd-tdep.o): Ditto.
10092 * NEWS: Note new native NetBSD/alpha configuration.
10093 * alphanbsd-nat.c: New file.
10094 * alphanbsd-tdep.c: Ditto.
10095 * configure.host (alpha*-*-netbsd*): New host.
10096 * configure.tgt (alpha*-*-netbsd*): New target.
10097 * config/alpha/nbsd.mh: New file.
10098 * config/alpha/nbsd.mt: Ditto.
10099 * config/alpha/nm-nbsd.h: Ditto.
10100 * config/alpha/tm-nbsd.h: Ditto.
10101
36a6271d
JT
101022002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10103
10104 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10105 (alpha-osf1-tdep.o): New dependency list.
10106 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10107 and skip_sigtramp_frame members.
10108 * alpha-linux-tdep.c: Include gdbcore.h.
10109 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10110 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10111 * alpha-osf1-tdep.c: New file.
10112 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10113 alpha-osf1-dep.c.
10114 (alpha_frame_past_sigtramp_frame): New function.
10115 (alpha_dynamic_sigtramp_offset): Ditto.
10116 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10117 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10118 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10119 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10120 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10121 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10122 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10123 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10124 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10125 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10126 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10127 to find_solib_trampoline_target.
10128 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10129 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10130 (SKIP_TRAMPOLINE_CODE): Remove.
10131 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10132 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10133 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10134 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10135 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10136 (PROC_SIGTRAMP_MAGIC): Ditto.
10137 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10138 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10139 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10140 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10141 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10142
2f4bc57b
JT
101432002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10144
10145 * NEWS: Note that Alpha targets are now multi-arch.
10146
665132f9
MS
101472002-04-24 Michael Snyder <msnyder@redhat.com>
10148
10149 * parser-defs.h (prev_lexptr): New external variable.
10150 * parse.c (parse_exp_1): Set prev_lexptr to null before
10151 calling the language-specific parser.
10152 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10153 (yyerror): Use prev_lexptr in error reporting.
10154
32872fa7
DJ
101552002-04-24 Daniel Jacobowitz <drow@mvista.com>
10156
10157 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10158 * gregset.h: If FILL_FPXREGSET is defined, provide
10159 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10160 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10161 is defined, call fill_fpxregset.
10162
57e76fac
MS
101632002-04-24 Roland McGrath <roland@frob.com>
10164
10165 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10166 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10167 (supply_gregset, supply_fpregset): New functions.
10168
10169 * gnu-nat.c (gnu_find_memory_regions): New function.
10170 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10171 (gnu_xfer_memory): Add a cast.
10172
f43845b3
MS
101732002-04-24 Michael Snyder <msnyder@redhat.com>
10174
361d1df0 10175 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
10176 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10177 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 10178 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
10179 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10180 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10181
a0abec03
AC
10182Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10183
10184 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10185 NUM_PSEUDO_REGS can be used.
10186
d7bd68ca
AC
101872002-04-24 Andrew Cagney <ac131313@redhat.com>
10188
10189 * arch-utils.h: Update copyright.
10190
10191 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10192 * gdbarch.h, gdbarch.c: Re-generate.
10193
10194 * inferior.h (IN_SIGTRAMP): Delete definition.
10195 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10196 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10197
10198 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10199 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10200 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10201 (find_proc_framesize): Ditto.
10202 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10203 (alpha_init_extra_frame_info): Ditto.
10204 * infrun.c (handle_inferior_event): Ditto.
10205 (handle_inferior_event): Ditto.
10206 (check_sigtramp2): Ditto.
10207 * blockframe.c (create_new_frame): Ditto.
10208 (get_prev_frame): Ditto.
10209 * ppc-linux-tdep.c: Update comments.
10210 * i386-linux-tdep.c: Update comments.
10211 * breakpoint.c (bpstat_what): Update comment.
10212
4867e41e
DM
102132002-04-24 David S. Miller <davem@redhat.com>
10214
21d83aa5
DM
10215 * i960-tdep.c (register_in_window_p): New function.
10216 (i960_find_saved_register): Use it instead of
10217 REGISTER_IN_WINDOW_P.
10218 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10219
4867e41e
DM
10220 * symtab.h (find_stab_function_addr): Kill extern.
10221 * minsyms.c (find_stab_function_addr): Remove from here...
10222 * dbxread.c: ... to here, and mark it static.
10223
69cdf6a2
DM
102242002-04-20 David S. Miller <davem@redhat.com>
10225
10226 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10227 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10228
5a595886
DM
102292002-04-21 David S. Miller <davem@redhat.com>
10230
10231 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10232 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10233 (vx_write_register): Likewise.
10234
1da1a192
JB
102352002-04-23 J. Brobecker <brobecker@gnat.com>
10236
10237 * source.c (is_regular_file): New function.
10238 (openp): Check wether file to open is a regular file
10239 to avoid opening directories.
10240
baa6f10b
JT
102412002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10242
10243 * findvar.c (extract_signed_integer): Cast printf argument
10244 to suppress format warning.
10245 (extract_unsigned_integer): Likewise.
10246 * infcmd.c (registers_info): Likewise.
10247 * top.c (get_prompt_1): Likewise.
10248 * valops.c (value_assign): Likewise.
10249 * valprint.c (print_decimal): Likewise.
10250
b2c4da81
L
102512002-04-22 H.J. Lu (hjl@gnu.org)
10252
10253 * c-exp.y (typebase): Support
361d1df0 10254
b2c4da81
L
10255 [long|long long|short] [signed|unsigned] [int|]
10256
10257 and
10258
10259 signed [long|long long|short] int
10260
f267bd6a
JT
102612002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10262
10263 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10264 and vax-tdep.h.
10265 * vax-tdep.h: New file.
10266 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10267 Make several routines static.
10268 (vax_get_saved_register): New function.
10269 (vax_gdbarch_init): New function.
10270 (_initialize_vax_tdep): Register vax_gdbarch_init.
10271 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10272 Remove macros now under the control of gdbarch.
10273
da3c6d4a
MS
102742002-04-22 Michael Snyder <msnyder@redhat.com>
10275
11d3b27d
MS
10276 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10277 Some whitespace and coding standards tweaks.
da3c6d4a 10278
a33f7558
JT
102792002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10280
10281 * vax-tdep.c: Include regcache.h.
10282 (vax_call_dummy_words): New.
10283 (sizeof_vax_call_dummy_words): New.
10284 (vax_fix_call_dummy): New function.
10285 (vax_saved_pc_after_call): Ditto.
10286 * config/vax/tm-vax.h: Don't include regcache.h.
10287 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10288 (CALL_DUMMY): Remove.
10289 (CALL_DUMMY_WORDS): Define.
10290 (SIZEOF_CALL_DUMMY_WORDS): Define.
10291 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10292
47a73475
MS
102932002-04-18 Michael Snyder <msnyder@redhat.com>
10294
10295 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10296
52efde73
JT
102972002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10298
10299 * vax-tdep.c (vax_frame_chain): New function.
10300 (vax_push_dummy_frame): Ditto.
10301 (vax_pop_frame): Ditto.
10302 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10303 (FRAMELESS_FUNCTION_INVOCATION): Use
10304 generic_frameless_function_invocation_not.
10305 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10306 (POP_FRAME): Use vax_pop_frame.
10307
ea74468c
JT
103082002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10309
10310 * vax-tdep.c (vax_store_struct_return): New function.
10311 (vax_extract_return_value): Ditto.
10312 (vax_store_return_value): Ditto.
10313 (vax_extract_struct_value_address): Ditto.
10314 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10315 vax_store_struct_return.
10316 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10317 (STORE_RETURN_VALUE): Use vax_store_return_value.
10318 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10319
5516aa92
JT
103202002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10321
10322 * vax-tdep.c (vax_frame_saved_pc): New function.
10323 (vax_frame_args_address_correct): Ditto.
10324 (vax_frame_args_address): Ditto.
10325 (vax_frame_locals_address): Ditto.
10326 (vax_frame_num_args): Move code to be in proximity to
10327 other frame-related functions.
10328 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10329 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10330 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10331 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10332 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10333
36af0b35
L
103342002-04-22 H.J. Lu (hjl@gnu.org)
10335
10336 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10337 includedir.
10338
ab62c900
JT
103392002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10340
10341 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10342 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10343 (FRAME_INIT_SAVED_REGS): New macro.
10344
7232b100
JT
103452002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10346
10347 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10348
b70d2aee
JT
103492002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10350
10351 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10352 where needed.
10353 (fetch_osf_core_registers): Likewise.
10354 (supply_gregset): Likewise.
10355
a0e8a2d1 103562002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 10357
a0e8a2d1
JB
10358 * symfile.h (get_section_index): Define.
10359 * symfile.c (get_section_index): New function.
10360 * mdebugread.c (SC_IS_SBSS): New macro.
10361 (SC_IS_BSS): Return true for the scBss storage class only, as
10362 the scSBss storage class refers to the .sbss section.
10363 (parse_partial_symbols): Discard the symbols which associated
10364 section does not exist.
10365 Make sure to use the .sbss section index for symbols which
10366 storage class is scBss, rather than using the .bss section index.
10367
51eb8b08
JT
103682002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10369
10370 * vax-tdep.c: Update copyright years.
10371 (vax_register_name): New function.
10372 (vax_register_byte): Ditto.
10373 (vax_register_raw_size): Ditto.
10374 (vax_register_virtual_size): Ditto.
10375 (vax_register_virtual_type): Ditto.
10376 * config/vax/tm-vax.h: Update copyright years.
10377 (REGISTER_NAMES): Remove.
10378 (REGISTER_NAME): Define.
10379 (REGISTER_BYTE): Use vax_register_byte.
10380 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10381 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10382 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10383
6cc1c0a8
AC
103842002-04-21 Andrew Cagney <ac131313@redhat.com>
10385
10386 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10387 declaration
10388 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10389
9319a2fe
DM
103902002-04-21 David S. Miller <davem@redhat.com>
10391
10392 * arch-utils.c (generic_prologue_frameless_p): Kill
10393 SKIP_PROLOGUE_FRAMELESS_P code.
10394 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10395 references.
10396 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10397 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10398 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10399 references.
10400 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10401 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10402 (sparc_gdbarch_init): Pass it to
10403 set_gdbarch_prologue_frameless_p.
a0e8a2d1 10404
e9ed6d01
JT
104052002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10406
10407 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10408 (alphabsd-nat.o): New dependency list.
10409
36012033
JT
104102002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10411
10412 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10413 alphafbsd-tdep.c.
10414 (alpha-linux-tdep.o): New dependency list.
10415 (alphafbsd-tdep.o): Likewise.
10416
3379287a
JT
104172002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10418
10419 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10420 to here...
10421 * alpha-tdep.c: ...from here.
10422 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10423
4bcbd6cb
JT
104242002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10425
10426 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10427 prototype from here...
10428 * alpha-tdep.h: ...to here.
10429
b31da25e
AC
104302002-04-21 Andrew Cagney <ac131313@redhat.com>
10431
10432 * frame.h (selected_frame_level): Document as deprecated.
10433 (frame_relative_level): Declare.
10434 * stack.c (frame_relative_level): New function.
10435 (selected_frame_level): Document as deprecated.
10436 (select_frame): Do not set the selected_frame_level.
10437
10438 * stack.c (frame_info, record_selected_frame): Update.
10439 (frame_command, current_frame_command): Update.
10440 (up_silently_base, up_command, down_silently_base): Update.
10441 (down_command): Update.
10442 * inflow.c (kill_command): Update.
10443 * tracepoint.c (finish_tfind_command): Update.
10444 * corelow.c (core_open): Update.
10445 * thread.c (info_threads_command): Update.
10446 (do_captured_thread_select): Update.
10447 * infcmd.c (finish_command): Update.
10448 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10449
9c1d6fe5
JT
104502002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10451
10452 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10453
ab89facf
AC
104542002-04-21 Andrew Cagney <ac131313@redhat.com>
10455
10456 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10457 type const.
10458
82a4efa1
JT
104592002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10460
10461 * alphafbsd-tdep.c: Update copyright years. Include
10462 alpha-tdep.h.
10463 (alphafbsd_use_struct_convention): Make static.
10464 (alphafbsd_init_abi): New function.
10465 (_initialize_alphafbsd_tdep): New function.
10466 * config/alpha/tm-fbsd.h: Update copyright years.
10467 (USE_STRUCT_CONVENTION): Remove.
10468
44dffaac
JT
104692002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10470
10471 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10472 an Alpha ABI variant.
10473 (alpha_abi_handler_list): Declare.
10474 (alpha_gdbarch_register_os_abi): New function.
10475 (alpha_gdbarch_init): Give registered ABI variant handlers a
10476 chance to tweak the gdbarch once we have set up defaults.
10477 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10478
65585be4
JT
104792002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10480
10481 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10482 to standard_coerce_float_to_double.
10483 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10484
d9b023cc
JT
104852002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10486
10487 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10488 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10489 from gdbarch_tdep rather than a constant.
10490 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10491 the default text address for all Alpha Unix ABIs.
10492 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10493 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10494
dc129d82
JT
104952002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10496
10497 * alpha-tdep.h: New file. Includes several Alpha target constants
10498 taken from...
10499 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10500 let gdbarch deal with.
10501 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10502 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10503 to dependency list.
10504 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10505 Alpha target register names.
10506 * alphabsd-nat.c: Likewise.
10507 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10508 Alpha target register names. Make serveral routines static.
10509 (alpha_get_saved_register): New function.
10510 (alpha_abi_names): New.
10511 (process_note_abi_tag_sections): New function.
10512 (get_elfosabi): New function.
10513 (alpha_gdbarch_init): New function.
10514 (alpha_dump_tdep): New function.
10515 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10516
d49d1e0a
AC
105172002-04-21 Andrew Cagney <ac131313@redhat.com>
10518
10519 * frame.c (find_saved_register): Delete #ifdef
10520 HAVE_REGISTER_WINDOWS code.
10521 * config/sparc/tm-sparc.h: Update comments.
10522 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10523
92e8c9ed
AC
105242002-04-21 Andrew Cagney <ac131313@redhat.com>
10525
10526 * i960-tdep.c (i960_find_saved_register): New function.
10527 (i960_get_saved_register): New function.
10528 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10529 (i960_get_saved_register): Declare.
10530 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10531
e1925118
DM
105322002-04-20 David S. Miller <davem@redhat.com>
10533
10534 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10535
29673b29
AC
105362002-04-20 Andrew Cagney <ac131313@redhat.com>
10537
10538 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10539 instead of NUM_PSEUDO_REGS.
10540
6c86dcd5
DM
105412002-04-20 David S. Miller <davem@redhat.com>
10542
10543 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10544 GDB_MULTI_ARCH_PARTIAL
10545 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10546 define, let tm-sp64.h do it.
10547
aa40ec90
JT
105482002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10549
10550 * frame.c (find_saved_register): Avoid a NULL pointer
10551 dereference and actually walk the frame list.
10552
0f79675b
AC
105532002-04-20 Andrew Cagney <ac131313@redhat.com>
10554
10555 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10556 sorted in most most-recent-used order. Document.
10557 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10558
f91305dd 105592002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10560
10561 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10562 instead of ->prev.
10563 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10564 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10565 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10566 instead of ->prev.
10567
73d322b1
EZ
105682002-04-19 Elena Zannoni <ezannoni@redhat.com>
10569
10570 Fix PR gdb/471.
10571 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10572 (build_builtin_type_vec128): Ditto.
10573 (append_composite_type_field): Fix calculation of type length in
10574 union case.
10575
ccd9a834
EZ
105762002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10577
10578 * config/djgpp/README: Update.
10579
10580 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10581 compiler warnings.
10582
a57f9e49
JT
105832002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10584
10585 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10586 (alpha_setup_arbitrary_frame): ...to this.
10587 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10588 for alpha_setup_arbitrary_frame.
10589
f4f9705a
AC
105902002-04-18 Andrew Cagney <cagney@redhat.com>
10591
10592 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10593 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10594
f4f9705a
AC
10595 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10596 * target.h (memory_breakpoint_from_pc): Update declaration.
10597 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10598
10599 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10600 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10601 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10602 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10603 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10604 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10605 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10606 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10607 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10608 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10609 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10610 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10611
10612 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10613 const pointer.
10614 * monitor.c (monitor_insert_breakpoint): Ditto.
10615 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10616
10617 * config/mcore/tm-mcore.h: Update copyright.
10618 * mem-break.c: Ditto.
10619 * xstormy16-tdep.c: Ditto.
10620
29f319b8
PM
106212002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10622
10623 * p-exp.y: Add precedence rule for '^' token.
10624 This removes the shift/reduce conflicts.
10625 Remove the comment concerning these shift/reduce conflicts.
10626
ebeac11a
EZ
106272002-04-18 Elena Zannoni <ezannoni@redhat.com>
10628
10629 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10630 (registers_powerpc_nofp): New register set for processors
10631 without floating point unit.
10632
27c31547
DM
106332002-04-18 David S. Miller <davem@redhat.com>
10634
10635 * MAINTAINERS: Add myself to write-after-approval.
10636
47a73475
MS
106372002-04-17 Michael Snyder <msnyder@redhat.com>
10638
10639 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10640
953836b2
AC
106412002-04-17 Andrew Cagney <ac131313@redhat.com>
10642
10643 * rs6000-tdep.c (frame_initial_stack_address): Use
10644 frame_register_read to read the alloca_reg.
10645
8b0d4340
AC
106462002-04-17 Andrew Cagney <ac131313@redhat.com>
10647
10648 * frame.c (find_saved_register): Find saved registers in the next
10649 not prev frame.
10650 Fix PR gdb/365.
10651
d8864532
AC
106522002-04-17 Andrew Cagney <ac131313@redhat.com>
10653
10654 * gdbarch.sh (LANG): Set to ``c''.
10655
36cc83a3 106562002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10657
36cc83a3 10658 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10659
2f4150cc 106602002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10661
10662 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10663 Update copyright.
10664
628703c6 10665 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10666 Also fix PR gdb/391.
361d1df0 10667
56157b4a
AC
106682002-04-14 Andrew Cagney <ac131313@redhat.com>
10669
10670 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10671 * aclocal.m4, configure: Re-generate.
10672 Fix PR gdb/391.
361d1df0 10673
6d1e3329
EZ
106742002-04-14 Elena Zannoni <ezannoni@redhat.com>
10675
10676 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10677 instead of tm_print_insn.
10678
cb06fa07
EZ
106792002-04-14 Elena Zannoni <ezannoni@redhat.com>
10680
10681 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10682
f208ba17
AC
106832002-04-14 Andrew Cagney <ac131313@redhat.com>
10684
10685 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10686 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10687 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10688
20f01a46
DH
106892002-04-12 Don Howard <dhoward@redhat.com>
10690
10691 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10692 max_user_call_depth.
10693 (init_cmd_lists): Initialize the new value;
10694 * cli/cli-script.c (execute_user_command): Limit the call depth of
10695 user defined commands. This avoids a core-dump when user commands
10696 are infinitly recursive.
10697
a88376a3
KB
106982002-04-12 Kevin Buettner <kevinb@redhat.com>
10699
10700 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10701 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10702 from tdep struct instead of DEFAULT_LR_SAVE.
10703 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10704 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10705 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10706
f2172603
MS
107072002-04-12 Michael Snyder <msnyder@redhat.com>
10708
694f61fb 10709 * Remote.c: Spelling fix.
20fe79c8
MS
10710 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10711 If no symbol found for "sbrk", try "_sbrk".
10712 (make_output_phdrs): Use bfd_section_name.
10713 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10714 * eval.c: Indentation fix-ups.
169a7369
MS
10715 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10716 in case it gets applied to an address that is already
10717 in the instruction space.
de74f71f
MS
10718 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10719 * symfile.c: Fix indentation, long lines.
f2172603
MS
10720 * source.c: White space fix-up.
10721
cda5a58a
AC
107222002-04-12 Andrew Cagney <cagney@redhat.com>
10723
10724 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10725 * frame.c (frame_register_read): New function. Return non-zero on
10726 success.
10727 (read_relative_register_raw_bytes_for_frame): Delete.
10728 (read_relative_register_raw_bytes): Delete.
10729 * frame.h (frame_register_read): Declare.
10730 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10731 * sh-tdep.c: Ditto.
10732 * infcmd.c (do_registers_info): Ditto.
10733 * hppa-tdep.c: Ditto.
10734 * rs6000-tdep.c: Ditto.
10735 * h8500-tdep.c: Ditto.
10736 * mips-tdep.c: Ditto.
10737 * h8300-tdep.c: Ditto.
10738 * z8k-tdep.c: Ditto.
10739
2ea5f656
KB
107402002-04-12 Kevin Buettner <kevinb@redhat.com>
10741
10742 From Jimi X <jimix@watson.ibm.com>:
10743 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10744 64-bit SysV ABI.
10745
27b15785
KB
107462002-04-12 Kevin Buettner <kevinb@redhat.com>
10747
10748 From Jimi X <jimix@watson.ibm.com>:
10749 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10750 bfd info.
10751
5d57ee30
KB
107522002-04-12 Kevin Buettner <kevinb@redhat.com>
10753
10754 From Jimi X <jimix@watson.ibm.com>:
10755 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10756 register sets for these processor variants.
10757
bc1e36ca
DJ
107582002-04-11 Daniel Jacobowitz <drow@mvista.com>
10759
bc1e36ca
DJ
10760 * regformats/reg-ppc.dat: Support FPSCR.
10761
e3f36dbd
KB
107622002-04-11 Kevin Buettner <kevinb@redhat.com>
10763
10764 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10765 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10766 Add fpscr as an invalid/unfetchable register.
10767 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10768 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10769 (fill_fpregset): Add support for register fpscr.
10770 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10771 (fill_gregset): Account for the fact that register ``mq'' might
10772 not exist.
10773 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10774 (registers_power): Add fpscr to register set at slot 71.
10775 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10776 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10777
943c9c25
MS
107782002-04-11 Michael Snyder <msnyder@redhat.com>
10779
10780 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10781 * configure: Regenerate.
10782 * config.in: Regenerate.
10783 * acconfig.h: Add define for _SYSCALL32.
10784 * core-sol2.c: Remove #define _SYSCALL32.
10785 * solib-legacy.c: Remove #define _SYSCALL32.
10786
d8c0a2e7
AC
107872002-04-10 Andrew Cagney <ac131313@redhat.com>
10788
10789 * stack.c (select_frame): Cleanup internal error message, do not
10790 use %p.
10791
7cc19214
AC
107922002-04-10 Andrew Cagney <ac131313@redhat.com>
10793
10794 * stack.c (select_frame): Check that selected_frame and the
10795 specified level are as expected.
10796 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10797 Update copyright.
10798 * frame.h (struct frame_info): Add field `level'. Update
10799 copyright.
10800 Work-in-progress PR gdb/464.
10801
67a2b77e
AC
108022002-04-10 Andrew Cagney <ac131313@redhat.com>
10803
10804 * maint.c (maint_print_section_info): Rename print_section_info.
10805 (print_bfd_section_info, print_objfile_section_info): Update.
10806 * inferior.h (struct gdbarch): Add opaque declaration.
10807 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10808 * gdbarch.h: Regenerate.
10809
8cfda98c
ML
108102002-04-10 Michal Ludvig <mludvig@suse.cz>
10811
10812 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10813 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10814 (kernel_u_size): Added.
10815 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10816 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10817
ca439ad2 108182002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10819
ca439ad2
JI
10820 * valarith.c (find_size_for_pointer_math): New function, either returns
10821 the size for a pointer's target, returns 1 for void *, or errors for
10822 incomplete types.
10823 (value_add, value_sub): use find_size_for_pointer_math.
10824
2f2893d9
DJ
108252002-04-09 Daniel Jacobowitz <drow@mvista.com>
10826
10827 * linux-low.c (linux_look_up_symbols): New hook.
10828 (linux_target_ops): Add linux_look_up_symbols.
10829 * remote-utils.c (decode_address): New function.
10830 (look_up_one_symbol): New function.
10831 * server.c (handle_query): Call target look_up_symbols hook.
10832 * server.h (look_up_one_symbol): Add prototype.
10833 * target.h (struct target_ops): Add look_up_symbols hook.
10834
96cb11df
AC
108352002-04-09 Andrew Cagney <ac131313@redhat.com>
10836
10837 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10838 override FP_REGNUM with frame->fp. Update copyright.
10839 * parse.c (num_std_regs, std_regs): Delete.
10840 (target_map_name_to_register): Do not search std_regs. Update
10841 function description.
10842 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10843 declarations. Update copyright.
10844 Fix PR gdb/251.
361d1df0 10845
97658e92
DJ
108462002-04-09 Daniel Jacobowitz <drow@mvista.com>
10847
10848 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10849 after the last symbol in a block.
10850
6044e3eb
PM
108512002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10852
10853 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10854 is non zero as a found symbol.
10855
0406ec40
AC
108562002-04-08 Andrew Cagney <ac131313@redhat.com>
10857
10858 * findvar.c: Include "builtin-regs.h".
10859 (value_of_register): Call value_of_builtin_reg when applicable.
10860 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10861 (target_map_name_to_register): Call
10862 builtin_reg_map_name_to_regnum.
10863 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10864 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10865 (builtin_regs_h): Define.
10866 (builtin-regs.o): New target.
10867 (findvar.o): Add $(builtin_regs_h).
10868 * builtin-regs.c, builtin-regs.h: New files.
10869 * std-regs.c: New file.
10870 Partial fix for PR gdb/251.
10871
56a6dfb9
KB
108722002-04-08 Kevin Buettner <kevinb@redhat.com>
10873
10874 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10875 it's no longer required.
10876
3a808432
AC
108772002-04-08 Andrew Cagney <ac131313@redhat.com>
10878
10879 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10880
7c40d541
KB
108812002-04-08 Kevin Buettner <kevinb@redhat.com>
10882
10883 From Jimi X <jimix@watson.ibm.com>:
10884 * rs6000-tdep.c (rs6000_software_single_step): Use
10885 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10886 and size. Use target_insert_breakpoint() and
10887 target_remove_breakpoint() to insert and remove breakpoints
10888 instead of explicit memory reads and writes.
10889
cc9836a8
KB
108902002-04-08 Kevin Buettner <kevinb@redhat.com>
10891
10892 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10893 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10894 ELF_OBJECT_FORMAT ifdef.
10895
7495d1dc
KB
108962002-04-08 Kevin Buettner <kevinb@redhat.com>
10897
10898 From Jimi X <jimix@watson.ibm.com>:
10899 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10900
4288e836
KB
109012002-04-08 Kevin Buettner <kevinb@redhat.com>
10902
10903 From Jimi X <jimix@watson.ibm.com>:
10904 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10905 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10906
a4e4e501
MK
109072002-04-07 Mark Kettenis <kettenis@gnu.org>
10908
10909 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10910 s/asprintf/xasprintf/.
10911 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10912
006defba
AC
109132002-04-07 Andrew Cagney <ac131313@redhat.com>
10914
10915 I believe Jeff Law denies responsability for this one:
10916 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10917 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10918 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10919 Work-around for PR gdb/366.
10920
7aa83cac
EZ
109212002-04-07 Elena Zannoni <ezannoni@redhat.com>
10922
10923 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10924 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10925 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10926
cf1fcca1
EZ
109272002-04-07 Elena Zannoni <ezannoni@redhat.com>
10928
10929 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10930 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10931 information.
10932
3f289e6f
AC
109332002-04-07 Andrew Cagney <ac131313@redhat.com>
10934
10935 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10936 maintainer.
10937
129188f6
AC
109382002-04-07 Andrew Cagney <ac131313@redhat.com>
10939
10940 * README (Reporting Bugs in GDB): Document the bug web page as the
10941 prefered way of submitting bugs.
10942 Fix PR gdb/402.
10943
1200cd6e
AC
109442002-04-06 Andrew Cagney <ac131313@redhat.com>
10945
10946 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10947 -1. Update comment.
10948 * gdbarch.h, gdbarch.c: Re-generate.
10949
2853c33c
AS
109502002-04-07 Andreas Schwab <schwab@suse.de>
10951
10952 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10953 buffer to regcache_collect.
10954
c2169756
AC
109552002-04-06 Andrew Cagney <ac131313@redhat.com>
10956
10957 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10958 * gdbarch.c, gdbarch.h: Re-generate.
10959
25f1b008
AC
109602002-04-06 Andrew Cagney <ac131313@redhat.com>
10961
10962 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10963 declaration. Fix -Werror.
10964
59263426
DJ
109652002-04-05 Daniel Jacobowitz <drow@mvista.com>
10966
10967 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10968 * gdbarch.c: Regenerate.
10969
f5db4da3
MS
109702002-04-05 Michael Snyder <msnyder@redhat.com>
10971
80f8a6eb
MS
10972 * breakpoint.c (clear_command): Rewrite middle section to
10973 combine two loops with identical control conditions.
10974 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10975 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10976
ad3dcc5c
L
109772002-04-05 H.J. Lu (hjl@gnu.org)
10978
10979 * solib-svr4.c (bkpt_names): Add "__start".
10980
f32e7a74
AC
109812002-04-04 Andrew Cagney <ac131313@redhat.com>
10982
10983 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10984 as test for 64 bit target.
10985
8227c0ff
AC
109862002-04-05 Andrew Cagney <ac131313@redhat.com>
10987
10988 * h8500-tdep.c (h8500_write_fp): Delete function.
10989 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10990 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10991 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10992 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10993 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10994 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10995 (s390_write_fp):
10996 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10997 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10998 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10999 (d10v_write_fp): Delete function.
11000 * inferior.h (write_fp, generic_target_write_fp): Delete
11001 declarations.
11002 * regcache.c (generic_target_write_fp): Delete function.
11003 (write_fp): Delete function.
11004 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11005 * gdbarch.h, gdbarch.c: Regenerate.
11006 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11007 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11008 (sparc64_write_fp): Delete declaration.
11009 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11010 (h8500_write_fp): Delete declaration.
11011
2757dd86
AC
110122002-04-04 Andrew Cagney <ac131313@redhat.com>
11013
11014 * sparc-tdep.c (sparc64_write_fp): Delete.
11015 (sparc_push_dummy_frame): Replace write_fp call with code to store
11016 the FP directly.
11017 (sparc_gdbarch_init): Do not initialize write_fp.
11018
c69255e1
KB
110192002-04-05 Kevin Buettner <kevinb@redhat.com>
11020
11021 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11022 clause.
11023
ae767bfb
JB
110242002-03-29 Jim Blandy <jimb@redhat.com>
11025
11026 * stack.c (get_selected_block): Add new argument `addr_in_block',
11027 used to return the exact code address we used to select the block,
11028 not just the block.
11029 * blockframe.c (get_frame_block, get_current_block): Same.
11030 * frame.h (get_frame_block, get_current_block,
11031 get_selected_block): Update declarations.
11032 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11033 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11034
84d2ac95
MS
110352002-04-05 Michael Snyder <msnyder@redhat.com>
11036
11037 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11038 warning message.
11039
596aa3bf
JB
110402002-04-05 J. Brobecker <brobecker@gnat.com>
11041
11042 * utils.c (xfullpath): New function.
11043 * defs.h (xfullpath): Add declaration.
11044 * source.c (openp): Use xfullpath in place of gdb_realpath to
11045 avoid resolving the basename part of filenames when the
11046 associated file is a symbolic link. This fixes a potential
11047 inconsistency between the filenames known to GDB and the
11048 filenames it prints in the annotations.
11049 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11050 to be able to match a filename with either the real filename, or
11051 the name of any symbolic link to this file.
11052 (lookup_partial_symtab): Ditto.
11053
c02f5703
MS
110542002-04-04 Michael Snyder <msnyder@redhat.com>
11055
11056 * breakpoint.c: Add support for hardware breakpoints in overlays.
11057 (overlay_events_enabled): New state variable.
11058 (insert_breakpoints): Use overlay_events_enabled to decide
11059 whether to attempt to set a breakpoint at the overlay load addr.
11060 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11061 (remove_breakpoint): Use overlay_events_enabled to decide
11062 whether breakpoints need to be removed from overlay load addr.
11063 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11064 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 11065 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
11066 disable_overlay_breakpoints): Update overlay_events_enabled.
11067
5fb290d7
DJ
110682002-04-04 Daniel Jacobowitz <drow@mvista.com>
11069
11070 * dwarf2read.c (struct function_range): New.
11071 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11072 (check_cu_functions): New.
11073 (read_file_scope): Initialize global function lists.
11074 Call dwarf_decode_line after processing children.
11075 (read_func_scope): Add to global function list.
11076 (dwarf_decode_lines): Call check_cu_functions everywhere
11077 record_line is called. Call record_line with a linenumber
11078 of 0 to mark sequence ends.
11079
7b3fabf0
ML
110802002-04-04 Michal Ludvig <mludvig@suse.cz>
11081
361d1df0 11082 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
11083 change sync with glibc.
11084
bce58c09
JB
110852002-04-03 Jim Blandy <jimb@redhat.com>
11086
11087 * configure.in: Call AC_C_INLINE.
11088 * configure: Regenerated.
361d1df0 11089
2fccf04a
DJ
110902002-04-01 Daniel Jacobowitz <drow@mvista.com>
11091
11092 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11093 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11094
2d1bfe2e
MK
110952002-03-31 Mark Kettenis <kettenis@gnu.org>
11096
a5941fbf
MK
11097 * NEWS: Mention gcore support on FreeBSD/i386.
11098
a90cd31d
MK
11099 * fbsd-proc.c: New file.
11100 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11101 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11102
2d1bfe2e
MK
11103 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11104 while statement.
11105
9eb6e5a1
JB
111062002-03-29 Jim Blandy <jimb@redhat.com>
11107
11108 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11109 unescaped newlines in string literals, but newer ones don't. So
11110 escape them.
11111
f02df580
MS
111122002-03-26 Michael Snyder <msnyder@redhat.com>
11113 Andrew Cagney <cagney@redhat.com>
11114
361d1df0 11115 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
11116 restore file to memory.
11117 * cli/cli-dump.h: New file.
11118 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 11119 * NEWS: Mention new commands.
f02df580 11120
109f874e
MS
111212002-03-28 Michael Snyder <msnyder@redhat.com>
11122
11123 * symfile.c (symbol_file_add): Move test for null symbols to later.
11124
520f6ade
AC
111252002-03-27 Andrew Cagney <ac131313@redhat.com>
11126
11127 From veksler at il.ibm.com:
11128 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11129 the xstrduped original path.
11130 Fix PR gdb/417.
11131
d4654627
MS
111322002-03-27 Michael Snyder <msnyder@redhat.com>
11133
11134 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11135 * infcmd.c (_initialize_infcmd): Ditto.
11136 * language.c (_initialize_language): Ditto.
11137 * symfile.c (_initialize_symfile): Ditto.
11138 * top.c (_init_main): Ditto.
11139 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11140
6be8bc0c
EZ
111412002-03-27 Elena Zannoni <ezannoni@redhat.com>
11142
11143 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11144 vector registers handling.
11145 (skip_prologue): Handle new AltiVec instructions. Fill in new
11146 fields of frame data.
11147 (frame_get_saved_regs): Fill in information for AltiVec registers.
11148
12af6855
JB
111492002-03-27 Jim Blandy <jimb@redhat.com>
11150
11151 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11152 a function; leave this macro here to invoke that function.
11153 (symbol_init_mangled_name): Declaration for that function.
11154 * symtab.c (symbol_init_mangled_name): New function.
11155
dc672865
AC
111562002-03-27 Andrew Cagney <ac131313@redhat.com>
11157
11158 * valarith.c: Replace strerror with safe_strerror.
11159 * tracepoint.c: Ditto.
11160 * lin-lwp.c: Ditto.
11161 * go32-nat.c: Ditto.
11162 * inflow.c: Ditto.
11163 * gnu-nat.c: Ditto.
11164
d96429cd
AS
111652002-03-27 Andreas Schwab <schwab@suse.de>
11166
11167 * event-top.c (command_line_handler): Remove useless if.
11168
7e336ba1
AJ
111692002-03-27 Andreas Jaeger <aj@suse.de>
11170
11171 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11172 comment.
11173
de220d0f
ML
111742002-03-27 Michal Ludvig <mludvig@suse.cz>
11175
11176 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11177 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11178 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11179 (x86_64_linux_dr_get_status, supply_gregset),
11180 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11181 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11182 (x86_64_register_info_table): Add.
11183 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11184 (x86_64_register_raw_size, x86_64_register_virtual_type),
11185 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11186 general x86_64_register_info_table.
11187 (i386_gdbarch_init): gdbarch_register_bytes is now set
11188 dynamicaly during initialization.
11189 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11190 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 11191
0e98d0a7
DJ
111922002-03-27 Daniel Jacobowitz <drow@mvista.com>
11193
11194 * gdbserver/server.c (main): Call target_signal_to_host_p
11195 and target_signal_to_host on signals received from the remote.
11196 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11197 target_signal_from_host on signals sent to the remote.
11198 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11199 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11200
3130066b
DJ
112012002-03-27 Daniel Jacobowitz <drow@mvista.com>
11202
11203 * signals/signals.c: Include "server.h" in gdbserver build.
11204 (target_signal_from_name): Don't use STREQ.
11205 (_initialize_signals): Likewise. Don't include function in
11206 gdbserver build.
11207
9aedf4f4
DJ
112082002-03-27 Daniel Jacobowitz <drow@mvista.com>
11209
11210 * signals.c: Moved to...
11211 * signals/signals.c: Here.
7e336ba1 11212 * Makefile (signals.o): Update.
9aedf4f4 11213
3fa41cdb
JL
112142002-03-26 Jeff Law (law@redhat.com)
11215
11216 * somread.c (som_symtab_read): Remove some commented out code and
11217 updated related comments. Do not set the minimal symbol table to
11218 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11219 in a dynamic executable.
11220 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11221 where we are unable to find the minimal symbol for the given
11222 PC value.
11223
ee677e8d
MS
112242002-03-25 Jeff Law (law@redhat.com)
11225
11226 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11227
e76e1718
ML
112282002-03-25 Michal Ludvig <mludvig@suse.cz>
11229
11230 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11231
18a642a1
AC
112322002-03-23 Andrew Cagney <ac131313@redhat.com>
11233
11234 * command.h: Update copyright.
11235 (struct cmd_list_element): Replace definition with opaque
11236 declaration.
11237 (enum cmd_types): Document that it will eventually be moved to
11238 cli/cli-decode.h
11239 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11240 (MALLOCED_REPLACEMENT): Delete macro.
11241 * Makefile.in (cli_decode_h): Add $(command_h).
11242 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 11243 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
11244 * completer.c: Include "cli/cli-decode.h".
11245 * maint.c: Include "cli/cli-decode.h".
11246 * cli/cli-decode.h: Include "command.h".
11247 (enum command_class): Delete.
11248 (enum cmd_types): Comment out.
11249 (enum cmd_auto_boolean): Delete.
11250 (enum var_types): Delete.
11251
b2875cc0
AC
112522002-03-23 Andrew Cagney <ac131313@redhat.com>
11253
11254 * cli/cli-decode.c: Include "gdb_assert.h".
11255 (add_set_or_show_cmd): New static function.
11256 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11257 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11258 all fields, such as func, from the set command.
11259
3b45974e
AC
112602002-03-23 Andrew Cagney <ac131313@redhat.com>
11261
11262 * MAINTAINERS (sh-elf): Change warning flag to -w.
11263
823ca731
AC
112642002-03-23 Andrew Cagney <cagney@redhat.com>
11265
11266 * defs.h (error): Add printf format attribute.
11267 * thread-db.c (thread_from_lwp): Fix error format string.
11268 * stack.c (parse_frame_specification): Ditto.
11269 * cli/cli-decode.c (undef_cmd_error): Ditto.
11270 * scm-lang.c (scm_lookup_name): Ditto.
11271 * tracepoint.c (trace_error): Ditto.
11272 * remote-utils.c (usage): Ditto.
11273 * remote.c (compare_sections_command): Ditto.
11274 Fix PR gdb/328.
11275
0e101458
AC
112762002-03-22 Andrew Cagney <ac131313@redhat.com>
11277
11278 * gdbtypes.c (append_composite_type_field): New function.
11279 (init_composite_type): New function.
11280 * gdbtypes.h (append_composite_type_field): Declare.
11281 (init_composite_type): Ditto.
11282
8e0662df
EZ
112832002-03-22 Elena Zannoni <ezannoni@redhat.com>
11284
11285 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 11286 function.
8e0662df
EZ
11287 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11288 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11289 structure returning convention for SYSV ABI case, but not
11290 for GNU/Linux, FreeBSD, or NetBSD.
11291
3121eff0
DJ
112922002-03-22 Daniel Jacobowitz <drow@mvista.com>
11293
11294 * symtab.h (lookup_block_symbol): Add mangled_name argument
11295 to prototype.
11296
11297 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11298 with new mangled_name argument.
11299 * linespec.c (decode_line_1): Likewise.
11300 * valops (value_of_this): Likewise.
11301 * symtab.c (lookup_transparent_type): Likewise.
11302 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11303 (lookup_symbol): If we are given a mangled name, pass it down
11304 to lookup_symbol_aux.
11305 (lookup_block_symbol): If we are given a mangled name to check
11306 against, only return symbols which match it.
11307
349b409f
CF
113082002-03-22 Christopher Faylor <cgf@redhat.com>
11309
11310 * win32-nat.c (child_create_inferior): Check for proper shell to use
11311 here, in case the user changes it on the fly.
11312 (_initialize_inftarg): Remove shell path considerations.
11313
2a873819
EZ
113142002-03-21 Elena Zannoni <ezannoni@redhat.com>
11315
11316 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11317 for gdbarch_max_register_raw_size and max_register_virtual_size.
11318 Adjust copyright year.
11319
a1b9830c
DJ
113202002-03-21 Daniel Jacobowitz <drow@mvista.com>
11321
11322 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11323 in a function to cover the entire beginning of the function
11324 as well if it does not already.
11325
8b5790f2
TR
113262002-03-21 Tom Rix <trix@redhat.com>
11327
11328 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11329 (rs6000_ptrace64): Renamed from ptrace64.
11330
bdbe5747
MH
113312002-03-20 Martin M. Hunt <hunt@redhat.com>
11332
11333 * gdbserver/remote-utils.c (remote_open): Don't call
11334 getprotobyname, we're all using TCP here so just use
11335 IPPROTO_TCP.
7e336ba1 11336 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
11337
113382002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 11339
bdbe5747
MH
11340 * regcache.c (_initialize_regcache): No need to call
11341 build_regcache() at this time; it gets called whenever
11342 the gdbarch changes.
11343
7781cd62
DB
113442002-03-20 David O'Brien <obrien@FreeBSD.org>
11345
11346 * sparc-nat.c: Include sys/param.h where possible.
11347
f65ca430
DJ
113482002-03-20 Daniel Jacobowitz <drow@mvista.com>
11349
11350 Fix PR gdb/422.
11351 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11352 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11353 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11354 complex types.
11355 * stabsread.c (rs6000_builtin_type): Likewise.
11356 (read_sun_floating_type): Likewise.
11357
0c867556
PS
113582002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11359
11360 * stabsread.c (read_member_functions): Remove skip code for duplicate
11361 constructor/destructor methods. Use standard parsing for these
11362 methods and just do not chain them to the list of methods after
11363 parsing.
11364
12b9c64f
AO
113652002-03-19 Alexandre Oliva <aoliva@redhat.com>
11366
11367 * coffread.c: Remove redundant static declarations. Replace
11368 occurrences of `PTR' with `void *'.
11369 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11370 * top.h (quit_cover): Likewise.
11371 * defs.h (catch_errors): Likewise.
11372
349c5d5f
AC
113732002-03-18 Andrew Cagney <ac131313@redhat.com>
11374
11375 * defs.h (XMALLOC): Define.
11376 * gdb-events.sh (XMALLOC): Delete macro.
11377 * gdb-events.c, gdb-events.h: Regenerate.
11378 * gdbarch.sh (XMALLOC): Delete macro.
11379 * gdbarch.c: Regenerate.
11380 * serial.c (XMALLOC): Delete macro.
11381 * ui-file.c (XMALLOC): Ditto.
11382 * ser-unix.h (XMALLOC): Ditto.
11383 * sh-tdep.c (XMALLOC): Ditto.
11384 * ui-out.c (XMALLOC): Ditto.
11385 * utils.c (XMALLOC): Ditto.
11386 * i386-tdep.c (XMALLOC): Ditto.
11387 * gdb-events.c (XMALLOC): Ditto.
11388 * d10v-tdep.c (XMALLOC): Ditto.
11389 * cli-out.c (XMALLOC): Ditto.
11390
11391 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11392 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11393 * ui-file.c, ui-out.c: Ditto.
11394
7d0766f3
AC
113952002-03-18 Andrew Cagney <ac131313@redhat.com>
11396
11397 * command.h (struct cmd_list_element): Add field context.
11398 (set_cmd_context, get_cmd_context): Declare.
11399 * cli/cli-decode.h: Ditto.
11400 * cli/cli-decode.c (get_cmd_context): New function.
11401 (set_cmd_context): New function.
11402 (add_cmd): Initialize context.
11403 Part of fixing PR gdb/145 and PR gdb/146.
11404
5913bcb0
AC
114052002-03-17 Andrew Cagney <ac131313@redhat.com>
11406
1868c04e
AC
11407 * cli/cli-decode.c (cmd_type): New function.
11408 * command.h (cmd_type): Declare.
11409 * infrun.c (set_schedlock_func): Call function cmd_type.
11410 * kod.c (kod_set_os): Call cmd_type.
11411 * cris-tdep.c (cris_version_update): Use function cmd_type.
11412 (cris_mode_update, cris_abi_update): Ditto.
11413
5913bcb0
AC
11414 * command.h: (execute_cmd_post_hook): Declare.
11415 (execute_cmd_pre_hook): Declare.
11416 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11417 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11418 functions. Execute pre/post hook while ensuring that afterwords
11419 hook_in is cleared.
11420 * top.c (execute_command): Use execute_cmd_post_hook, and
11421 execute_cmd_pre_hook to execute pre/post commands.
11422 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11423 hook_stop_stub.
11424 (hook_stop_stub): Call execute_cmd_pre_hook.
11425
b51450c9
AC
114262002-03-17 Andrew Cagney <ac131313@redhat.com>
11427
11428 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11429 set'' and this leads to a core dump. Move xstrdup of
11430 operating_system to after check that it is not NULL.
11431
f66c9f11
AC
114322002-03-17 Andrew Cagney <ac131313@redhat.com>
11433
8e694ecf
AC
11434 * kod.c (kod_set_os): Remove unnecessary check that
11435 ``command->type'' is set_cmd.
11436
f66c9f11
AC
11437 * valprint.c (set_input_radix): Use input_radix.
11438 (set_output_radix): Use output_radix.
11439 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11440 isn't reverted.
11441
9d01611c
AC
114422002-03-16 Andrew Cagney <ac131313@redhat.com>
11443
11444 * value.h (struct value): Delete field ``substring_addr''. Change
11445 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
11446 force_core_addr_align and force_pointer_aligh.
11447
11448 * value.h (struct value): Fix typo in above change.
9d01611c 11449
4156bb53
PS
114502002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11451
11452 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11453 to fix internal_error from ``maintenance print architecture''.
11454
0e5e3ea6
PS
114552002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11456
11457 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11458 for gcc versions after gcc-2.8.1.
11459
9b013045
PS
114602002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11461
11462 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11463 for method resolution. Restore adjustment of ``this'' pointer after
11464 calling value_struct_elt, which was accidentally removed during the
11465 HP merge.
11466
376c9600
AC
114672002-03-15 Andrew Cagney <ac131313@redhat.com>
11468
11469 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11470 value_of_register.
11471 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11472 get_saved_register.
11473 * value.h (value_of_register): Update.
11474
a4db0f07
RH
114752002-03-14 Richard Henderson <rth@redhat.com>
11476
11477 * configure.in: Detect declaration for canonicalize_file_name.
11478 * utils.c (canonicalize_file_name): Declare, if needed.
11479 (gdb_realpath): Prefer realpath if available and usable.
11480 * config.in, configure: Rebuild.
11481
96383835
RH
114822002-03-14 Richard Henderson <rth@redhat.com>
11483
11484 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11485 a constant array bound.
11486
11487 * MAINTAINERS: Add myself to write-after-approval.
11488
75245b24
MS
114892002-03-14 Michael Snyder <msnyder@redhat.com>
11490
11491 * symfile.c (syms_from_objfile): Return immediately if no syms.
11492 (symbol_file_add): Return immediately if no syms.
11493 (find_sym_fns): Return immediately if no syms.
11494
e641a1ca
ML
114952002-03-13 Michal Ludvig <mludvig@suse.cz>
11496
11497 * gdbserver/remote-util.c (remote_open): Print remote-side's
11498 IP address when remote debugging over the network.
7e336ba1 11499
df08bfec
DB
115002002-03-12 David O'Brien <obrien@FreeBSD.org>
11501
11502 * config/sparc/fbsd.mh: Fix copyright.
11503 * config/sparc/fbsd.mt: Likewise.
11504
9a57864f
RE
115052002-03-11 Richard Earnshaw <rearnsha@arm.com>
11506
11507 * MAINTAINERS: Fix typo in name of gdb warnings option.
11508 (x86-64): Fix formating so that this can be parsed by awk.
11509
dd7bf85e
DJ
115102002-03-10 Daniel Jacobowitz <drow@mvista.com>
11511
11512 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11513 * defs.h: Include "gdb/signals.h".
11514 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11515
33a0a2ac
ML
115162002-03-10 Michal Ludvig <mludvig@suse.cz>
11517
11518 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11519 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11520 from x86-64-tdep.h
11521
dd824b04
DJ
115222002-03-10 Daniel Jacobowitz <drow@mvista.com>
11523 Don Howard <dhoward@redhat.com>
11524
11525 * mips-tdep.c (ST0_FR): Define.
11526 (mips2_fp_compat): New function, temporarily disabled.
11527 (mips_read_fp_register_single): New function.
11528 (mips_read_fp_register_double): New function.
11529 (mips_print_register): Use them.
11530 (do_fp_register_row): Likewise.
11531
6a41ff59
AC
115322002-03-09 Andrew Cagney <ac131313@redhat.com>
11533
11534 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11535 approval''.
11536
4ea09c10
PS
115372002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11538
11539 * stabsread.c (read_member_functions): Fix is_stub test for
11540 static member functions, improve comment.
11541
6ccc741d
RE
115422002-03-07 Richard Earnshaw <rearnsha@arm.com>
11543
11544 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11545 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11546 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11547 commands that set boolean values.
11548 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11549 (arm_rdi_resume): Always initialize PC.
11550 (arm_rdi_open): Don't use rslt as a boolean.
11551 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11552 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11553 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11554 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11555
438013df
AO
115562002-03-06 Alexandre Oliva <aoliva@redhat.com>
11557
11558 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11559 * configure: Rebuilt.
11560
70ed8774
SC
115612002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11562
11563 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11564 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11565
5ba2abeb
AC
115662002-03-06 Andrew Cagney <ac131313@redhat.com>
11567
11568 * cli/cli-decode.c (set_cmd_completer): New function.
11569 * command.h (set_cmd_completer): Declare.
11570 * cli/cli-decode.h (set_cmd_completer): Ditto.
11571
11572 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11573 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11574 * win32-nat.c (_initialize_inftarg): Ditto.
11575 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11576 * proc-api.c (_initialize_proc_api): Ditto.
11577 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11578 * source.c (_initialize_source): Ditto.
11579 * exec.c (_initialize_exec): Ditto.
11580 * solib.c (_initialize_solib): Ditto.
11581 * top.c (init_main): Ditto.
11582 * tracepoint.c (_initialize_tracepoint): Ditto.
11583 * symfile.c (_initialize_symfile): Ditto.
11584 * printcmd.c (_initialize_printcmd): Ditto.
11585 * infcmd.c (_initialize_infcmd): Ditto.
11586 * corefile.c (_initialize_core): Ditto.
11587
f779ca99
AC
115882002-03-05 Andrew Cagney <ac131313@redhat.com>
11589
11590 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11591
01a3934b
AC
115922002-03-05 Andrew Cagney <ac131313@redhat.com>
11593
11594 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11595
37057839
AC
115962002-03-05 Andrew Cagney <ac131313@redhat.com>
11597
11598 * NEWS: Update headings, 5.2 has branched.
11599
c6ecbae5
DJ
116002002-03-04 Daniel Jacobowitz <drow@mvista.com>
11601
11602 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11603 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11604 (register_addr, REGISTER_RAW_SIZE): Likewise.
11605 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11606 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11607
e9f30c21
ML
116082002-03-03 Michal Ludvig <mludvig@suse.cz>
11609
11610 * MAINTAINERS (x86-64): Add myself.
11611 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11612 changed value_ptr -> struct value *
11613
54394ac3
DB
116142002-03-01 David O'Brien <obrien@FreeBSD.org>
11615
11616 * configure.host (sparc64-*-freebsd): Add.
11617 * configure.tgt: Likewise.
11618 * config/sparc/fbsd.mh: New file.
11619 * config/sparc/fbsd.mt: Likewise.
11620 * config/sparc/nm-fbsd.h: Likewise.
11621 * config/sparc/tm-fbsd.h: Likewise.
11622
bfe95955
DJ
116232002-03-01 Daniel Jacobowitz <drow@mvista.com>
11624
11625 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11626 regformats/reg-s390x.dat.
11627
f33c6cbf
AC
116282002-03-01 Andrew Cagney <ac131313@redhat.com>
11629
11630 * utils.c: Add FIXME explaining true/false problem.
11631
5ecaa7dd
AC
116322002-02-28 Andrew Cagney <ac131313@redhat.com>
11633
11634 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11635
2a251cc2
MC
116362002-02-28 Michael Chastain <mec@shout.net>
11637
11638 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11639
6a8031a3 116402002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11641
11642 * gdbserver/linux-s390-low.c: New file.
11643 * regformats/reg-s390.dat: New file.
11644 * regformats/reg-s390x.dat: New file.
11645 * gdbserver/configure.srv: Add S/390.
11646 * gdbserver/Makefile.in: Add S/390.
11647 * configure.tgt: Enable gdbserver for S/390.
11648
ac469903
EZ
116492002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11650
11651 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11652 first line of the doc string for "info dos", except at the end of
11653 the sentence, since the short help stops at the first period.
11654
985cb1a3
JM
116552002-02-28 Jason Merrill <jason@redhat.com>
11656
11657 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11658
c570663e
FF
116592002-02-27 Fred Fish <fnf@redhat.com>
11660
11661 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11662 comment (dumy -> dummy).
11663
43630227
PS
116642002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11665
11666 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11667
b84911e8
RB
116682002-02-27 Rodney Brown <rbrown64@csc.com.au>
11669
11670 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11671
58caa3dc
DJ
116722002-02-27 Daniel Jacobowitz <drow@mvista.com>
11673
11674 * gdbserver/acconfig.h: New file.
11675 * gdbserver/i387-fp.c: New file.
11676 * gdbserver/i387-fp.h: New file.
11677 * gdbserver/linux-x86-64.c: New file.
11678 * regformats/reg-x86-64.dat: New file.
11679 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11680 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11681 * gdbserver/configure.in: Add support for regsets.
11682 * gdbserver/config.in: Regenerate.
11683 * gdbserver/configure: Regenerate.
11684 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11685 * gdbserver/linux-low.h: New file.
11686 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11687 for regsets.
11688 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11689 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11690 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11691 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11692 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11693 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11694 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11695 "i387-fp.h". Add PTRACE_GETREGS and friends.
11696 * gdbserver/regcache.c (supply_register): New function.
11697 (supply_register_by_name): New function.
11698 (collect_register): New function.
11699 (collect_register_by_name): New function.
11700
93652174
DJ
117012002-02-27 Daniel Jacobowitz <drow@mvista.com>
11702
11703 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11704 (config.status): Add configure.srv dependency.
11705 (server_h): Add config.h dependency.
11706
a02e4a61
DJ
117072002-02-27 Daniel Jacobowitz <drow@mvista.com>
11708
11709 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11710 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11711 * gdbserver/configure.srv: Change i386-*-linux* to use
11712 reg-i386-linux.o.
11713
ce0eebec
AC
117142002-02-26 Andrew Cagney <ac131313@redhat.com>
11715
11716 * x86-64-tdep.c: Re-indent. Update copyright date.
11717
82dbc5f7
AC
117182002-02-26 Andrew Cagney <ac131313@redhat.com>
11719
11720 From Michal Ludvig <mludvig@suse.cz>:
11721 * x86-64-tdep.c (value.h): Delete.
11722 (gdb_assert.h): Include.
11723 (x86_64_register_convert_to_virtual,
11724 x86_64_register_convert_to_raw ): Add check which lets only
11725 floating-point values to be converted.
11726 (value_push): Delete.
11727 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11728 (i386_gdbarch_init): Number of register_bytes fixed.
11729
e4621584
AC
117302002-02-26 Andrew Cagney <ac131313@redhat.com>
11731
11732 * MAINTAINERS: Add x86-64 target.
11733
81a9a963
AC
117342002-02-26 Andrew Cagney <ac131313@redhat.com>
11735
11736 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11737 * osfsolib.c (solib_map_sections): Ditto.
11738 * irix5-nat.c (solib_map_sections): Ditto.
11739 * corelow.c (gdb_check_format): Ditto.
11740 * symfile.c (symfile_bfd_open): Ditto.
11741 * solib.c (solib_map_sections): Ditto.
11742 Fix PR gdb/354.
7e336ba1 11743
0f017ab9
AC
117442002-02-26 Andrew Cagney <ac131313@redhat.com>
11745
11746 * remote.c (_initialize_remote): By default, disable ``e'' and
11747 ``E'' step out-of-range packets.
11748
75738c29
AS
117492002-02-26 Andreas Schwab <schwab@suse.de>
11750
11751 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11752 m68k_linux_frame_saved_pc.
11753 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11754 in_sigtramp.
11755 (SIGCONTEXT_PC_OFFSET): Remove.
11756 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11757 m68k_linux_sigtramp_saved_pc): New functions.
11758 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11759 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11760 (UCONTEXT_PC_OFFSET): Define.
11761 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11762 non-RT and RT signal trampolines.
11763
7e8ed687
RE
117642002-02-26 Richard Earnshaw <rearnsha@arm.com>
11765
11766 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11767 (TARGET_NBPG, STACK_END_ADDR): Delete
11768 (VARIABLES_INSIDE_BLOCK): Delete.
11769
6972bc8b
AC
117702002-02-25 Andrew Cagney <ac131313@redhat.com>
11771
11772 * utils.c (perror_with_name): Make string parameter constant.
11773 (print_sys_errmsg): Ditto.
11774 (query): Ditto.
11775 * defs.h (perror_with_name): Update.
11776 (print_sys_errmsg): Update.
11777 (query): Update.
11778
aa32f823
DJ
117792002-02-25 Daniel Jacobowitz <drow@mvista.com>
11780
11781 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11782 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11783
19caaa45
PS
117842002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11785
11786 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11787 if it already matches the current architecture from the exec file.
11788 Include arch-utils.h for gdbarch_info_init prototype.
11789 * Makefile.in (rs6000-nat.o): Update dependencies.
11790
d951901f
EZ
117912002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11792
11793 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11794 list of exported variables.
11795
7ea81414
DJ
117962002-02-24 Daniel Jacobowitz <drow@mvista.com>
11797
11798 * gdbserver/configure.srv: New file.
11799 * gdbserver/configure.in: Use configure.srv instead
11800 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11801 from it.
11802 * gdbserver/configure: Regenerated.
11803 * gdbserver/terminal.h: New file.
11804 * gdbserver/Makefile.in: Update for configure changes. Remove
11805 more unneeded include paths.
11806
080fe24b
AC
118072002-02-24 Andrew Cagney <ac131313@redhat.com>
11808
11809 From wiz at danbala:
11810 * config/sparc/tm-sp64.h: Fix grammar and typos.
11811 Fix PR gdb/287.
11812
8605d56e
AC
118132002-02-24 Andrew Cagney <ac131313@redhat.com>
11814
11815 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11816 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11817 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11818 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11819 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11820 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11821 * s390-tdep.c: Ditto.
92362027
AC
11822 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11823 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11824 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11825 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11826 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11827 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11828 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11829 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11830 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11831 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11832 Fix PR gdb/378.
7e336ba1 11833
8ed32cc0
AC
118342002-02-23 Andrew Cagney <ac131313@redhat.com>
11835
a3007b6f
AC
11836 * lin-thread.c: Delete file.
11837 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11838 to gdb_proc_service.h.
11839 * configure: Re-generate.
11840
50a9e2f1
AC
11841 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11842 * serial.c (serial_open): Delete check for "ocd".
11843 Fix PR gdb/349.
11844
8b6e7932
AC
11845 * Makefile.in (linux-thread.o): Delete target.
11846 * linux-thread.c: Delete file.
11847
d155c46b
AC
11848 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11849 renamed SH files to be consistent.
11850
8ed32cc0
AC
11851 * symtab.c (sort_search_symbols): Use xfree.
11852
0e18d038
RE
118532002-02-23 Richard Earnshaw <rearnsha@arm.com>
11854
11855 * arm-linux-tdep.c (arm_linux_init_abi): Register
11856 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11857 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11858 definition with undef, since we don't want the sysvr4 definition.
11859 (SKIP_TRAMPOLINE_CODE): Likewise.
11860
27aac7ff
AC
118612002-02-23 Andrew Cagney <ac131313@redhat.com>
11862
11863 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11864
11865 * configure.in: (AC_CHECK_FUNCS) Added test for
11866 canonicalize_file_name Regenerated.
11867 * config.in, configure: Regenerated.
11868 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11869 defined use canonicalize_file_name.
7e336ba1 11870
65a6e0ee
MC
118712002-02-23 Michael Chastain <mec@shout.net>
11872
11873 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11874
47b95330
AC
118752002-02-23 Andrew Cagney <ac131313@redhat.com>
11876
11877 * README: Remove references to cygnus.com.
11878 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11879 dot com'' form. Remove references to cygnus.com and sourceware.
11880
696f451b
AC
118812002-02-23 Andrew Cagney <ac131313@redhat.com>
11882
11883 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11884 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11885 1003.1-2001 no longer allows "head -1".
11886 * gdb/Makefile.in (version.c): Likewise.
11887 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11888 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11889 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11890
bbaca940
AC
118912002-02-23 Andrew Cagney <ac131313@redhat.com>
11892
11893 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11894 * command.h (cmd_cfunc_eq): Declare.
11895 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11896
11897 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11898 ``struct cmd_list_element *''.
11899 * cli/cli-cmds.c (is_complete_command): Update. Use
11900 cmd_cfunc_eq.
11901 * top.c (execute_command): Pass the command to
11902 is_complete_command.
11903 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11904
b8b8b047
AC
119052002-02-23 Andrew Cagney <ac131313@redhat.com>
11906
11907 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11908 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11909 architecture defines.
11910 * s390-tdep.c (s390_gdbarch_init): Likewise.
11911
19d3fc80
RE
119122002-02-23 Richard Earnshaw <rearnsha@arm.com>
11913
11914 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11915 (arm_linux_push_arguments): Likewise.
11916 (arm_linux_init_abi): Register them. Also register linux-specific
11917 call_dummy_words.
11918 (find_minsym_and_objfile): Use strcmp, not STREQ.
11919 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11920 (arm_linux_call_dummy_words): Delete declaration.
11921 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11922 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11923 declarations.
11924 (LOWEST_PC): Delete.
11925
3ab13650
PS
119262002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11927
11928 * maint.c (print_section_info): Do not prepend `0x' to filepos
11929 output, it will be handled by local_hex_string_custom.
11930
19d3fc80 119312002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11932
11933 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11934 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11935 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11936
d85a5daf
JB
119372002-02-22 Jim Blandy <jimb@redhat.com>
11938
11939 Indicate that the bcache functions don't change the strings
11940 they're passed.
11941 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11942 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11943
eeb25b8a
PM
119442002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11945
11946 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11947
6badb179
CF
119482002-02-21 Christopher Faylor <cgf@redhat.com>
11949
11950 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11951 find the complete path to a loaded DLL.
11952
e8717518
FF
119532002-02-21 Fred Fish <fnf@redhat.com>
11954
11955 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11956 that marks the end of the range of a function, enter a line number
11957 entry that has a line number of zero and a PC offset that matches
11958 the end of the function. This starts a range of PC's for which no
11959 line number information is known.
11960 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11961 PC's for which no line number info is found (line number is zero)
11962 then we didn't find any valid line information.
11963 * symtab.h: Document use of zero line number entry.
11964
9abe5450
EZ
119652002-02-21 Elena Zannoni <ezannoni@redhat.com>
11966
11967 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11968 (have_ptrace_getvrregs): Define for run time checks.
11969 (gdb_vrregset_t): New type for Altivec register handling.
11970 (fetch_register, store_register): Fetch/store altivec register
11971 when needed.
11972 (fetch_altivec_register, store_altivec_register): New functions.
11973 (supply_vrregset, fill_vrregset): New functions.
11974 (fetch_altivec_registers, store_altivec_registers): New functions.
11975 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11976 registers as well.
11977
aaa38bb5
AJ
119782002-02-21 Jiri Smid <smid@suse.cz>
11979
11980 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11981
b34db576
RE
119822002-02-21 Richard Earnshaw <rearnsha@arm.com>
11983
11984 * Makefile.in (armnbsd-nat.o): Update dependencies.
11985 * armnbsd-nat.c (supply_gregset): New function. Common code to
11986 supply the integer register set.
11987 (supply_fparegset): New function. Similar for FPA registers.
11988 (fetch_regs, fetch_fp_regs): Use them.
11989 (fetch_core_registers): Likewise.
11990 (fetch_elfcore_registers): New function.
11991 (arm_netbsd_elfcore_fns): New core-file type specification.
11992 (_initialize_arm_netbsd_nat): Register it.
11993
3e56fc4b
RE
119942002-02-21 Richard Earnshaw <rearnsha@arm.com>
11995
11996 * armnbsd-nat.c: Include gdbcore.h.
11997 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11998 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11999 'void' to declaration, to shut up ARI.
12000 (fetch_core_registers): Make static. Rewrite using supply_register.
12001 (arm_netbsd_core_fns): New core-file type specification.
12002 (_initialize_arm_netbsd_nat): New function.
12003
097f6b0b
CF
120042002-02-21 Christopher Faylor <cgf@redhat.com>
12005
12006 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12007 value.
12008
c914e0cc
CF
120092002-02-20 Christopher Faylor <cgf@redhat.com>
12010
12011 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12012 fails.
12013
385fa495
DJ
120142002-02-20 Daniel Jacobowitz <drow@mvista.com>
12015
12016 * jv-exp.y (parse_number): Change type of implicit longs
12017 to builtin_type_uint64.
12018
e5f1222d
DJ
120192002-02-20 Daniel Jacobowitz <drow@mvista.com>
12020
12021 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12022 to be an integer instead of a `union wait'.
12023
75c9abc6
DJ
120242002-02-20 Daniel Jacobowitz <drow@mvista.com>
12025
12026 * mips-linux-nat.c: Call the operating system GNU/Linux.
12027 * mips-linux-tdep.c: Likewise.
12028 * mips-tdep.c: Likewise.
12029
551792a5
DJ
120302002-02-20 Daniel Jacobowitz <drow@mvista.com>
12031
12032 Fix PR gdb/265.
12033 * jv-exp.y (parse_number): Handle 64-bit integers.
12034
ee6e2b82
DJ
120352002-02-20 Daniel Jacobowitz <drow@mvista.com>
12036
12037 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12038 AC_STDC_HEADERS to AC_HEADER_STDC.
12039 * gdbserver/configure: Regenerated.
12040
a48442a0
RE
120412002-02-20 Richard Earnshaw <rearnsha@arm.com>
12042
12043 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12044 is defined.
12045 * sparc-tdep.c (get_longjmp_target): Likewise.
12046
fe419ffc
RE
120472002-02-20 Richard Earnshaw <rearnsha@arm.com>
12048
12049 * News: Add news about ARM and Multi-arch. Mention the new target
12050 arm*-*-netbsd*.
12051
5832ed7e
JB
120522002-02-19 Jim Blandy <jimb@redhat.com>
12053
12054 * stabsread.c (error_type_complaint): Improve error message.
12055
84563040
DJ
120562002-02-19 Daniel Jacobowitz <drow@mvista.com>
12057
12058 * gdbserver/README: Update documentation.
12059 * gdbserver/configure.in: Update configury to match documentation.
12060 * gdbserver/Makefile.in: Likewise.
12061 * gdbserver/configure: Regenerated.
12062 * gdbserver/aclocal.m4: New file, generated by aclocal.
12063 * gdbserver/config.in: New file, generated by autoheader.
12064
375fd65b
RE
120652002-02-19 Richard Earnshaw <rearnsha@arm.com>
12066
12067 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12068 armnbsd-nat.c.
12069
08216dd7
RE
120702002-02-19 Richard Earnshaw <rearnsha@arm.com>
12071
12072 * arm-tdep.h (enum arm_float_model): New enum.
12073 (struct gdbarch_tdep): Add fp_model.
12074 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12075 up floating-point conversions until we know the floating-point model
12076 in use by the inferior. Don't complain about being unable to
12077 determine the ABI of the inferior when we don't have one.
12078 (arm_extract_return_value): Support different floating-point models.
12079 (arm_store_return_value): Likewise.
aaa38bb5 12080 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
12081 ARM_FLOAT_SOFT.
12082 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12083
65d6d66a
PS
120842002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12085
12086 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12087 of ``current_gdbarch''.
12088
47221191
RE
120892002-02-19 Richard Earnshaw <rearnsha@arm.com>
12090
12091 * armnbsd-nat.c : ANSIfy all function declarations.
12092 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12093 (fetch_inferior_registers): Re-implement in terms of above.
12094 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12095 (store_inferior_registers): Re-implement in terms of above.
12096
fdf39c9a
RE
120972002-02-19 Richard Earnshaw <rearnsha@arm.com>
12098
aaa38bb5 12099 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
12100 kernel.
12101 * arm-linux-tdep.c: Likewise.
12102 * config/arm/tm-linux.h: Likewise.
12103
93247f88
RE
121042002-02-19 Richard Earnshaw <rearnsha@arm.com>
12105
12106 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12107 * config/arm/nbsd.mt (TM_FILE): Delete.
12108 * config/arm/tm-nbsd.h: Delete.
12109
d7b486e7
RE
121102002-02-19 Richard Earnshaw <rearnsha@arm.com>
12111
12112 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12113 Initialize CALL_DUMMY_LENGTH.
12114
41d39a95
RE
121152002-02-19 Richard Earnshaw <rearnsha@arm.com>
12116
12117 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12118 function.
12119 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 12120 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
12121 defines one thing and that is incorrect for this port.
12122 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12123
e1195560
PM
121242002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12125
12126 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12127
c1748f97
PM
121282002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12129
12130 * win32-nat.c (display_selector): New function. Displays information
12131 about the information returned by GetThreadSelectorEntry API function.
12132 (display_selectors): New function. Displays the infomation of
12133 the selector given as argument, or of CS, DS ans FS selectors
12134 if no argument is given.
12135 ( _initialize_inftarg): Add "w32" as info prefix command.
12136 Add "info w32 selector" as command calling display_selectors.
12137
e41e6bbf
PM
121382002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12139
12140 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12141 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12142 if not defined.
12143
0d3a9f48
RE
121442002-02-18 Richard Earnshaw <rearnsha@arm.com>
12145
12146 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12147
3fb4b924
RE
121482002-02-18 Richard Earnshaw <rearnsha@arm.com>
12149
12150 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12151 (arm_fix_call_dummy): Call it.
12152 (arm_call_dummy_breakpoint_offset): Delete.
12153 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12154 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12155
7f55af32
AC
121562002-02-18 Andrew Cagney <ac131313@redhat.com>
12157
12158 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12159 Default to func_frame_chain_valid.
12160 * gdbarch.h, gdbarch.c: Re-generate.
12161 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12162
05f13b9c
EZ
121632002-02-18 Elena Zannoni <ezannoni@redhat.com>
12164
12165 * ppc-linux-nat.c: Update copyright.
12166 (fetch_register, store_register): Add tid parameter, don't compute
12167 tid here.
12168 (fetch_ppc_registers, store_ppc_registers): Add tid
12169 parameter. Pass it along to callees.
12170 (fetch_inferior_registers, store_inferior_registers): Compute tid
12171 here, and pass it to calleed functions.
12172 (fill_gregset, supply_fpregset): Clean up formatting.
12173
d7afb4c9
RE
121742002-02-18 Richard Earnshaw <rearnsha@arm.com>
12175
12176 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12177 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12178
9df628e0
RE
121792002-02-18 Richard Earnshaw <rearnsha@arm.com>
12180
12181 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12182 * gdbarch.c gdbarch.h: Regenerate.
12183 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12184 function.
12185 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12186 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12187 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12188
12189 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12190 * arm-tdep.c (arm_get_longjmp_target): New function.
12191 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12192 this to a positive value register arm_get_longjmp_target as the
12193 longjmp handler.
12194 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12195 (arm_linux_init_abi): Set up longjmp description in tdep.
12196 * armnbsd-nat.c (get_longjmp_target): Delete.
12197 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12198 description in tdep.
12199 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12200 (get_longjmp_target): Delete declaration.
12201 (GET_LONGJMP_TARGET): Delete.
12202 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12203 (GET_LONGJMP_TARGET): Delete.
12204
57bc8964
KB
122052002-02-17 Kevin Buettner <kevinb@redhat.com>
12206
12207 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12208 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12209 of ``current_gdbarch''.
12210
83d31a92
TT
122112002-02-17 Tom Tromey <tromey@redhat.com>
12212
12213 * cli/cli-cmds.c (compare_strings): New function.
12214 (complete_command): Only print each unique item once.
12215 * completer.h (complete_line): Declare.
12216 * completer.c (complete_line): New function.
12217 (line_completion_function): Use it.
12218
17ef5d92
AC
122192002-02-16 Andrew Cagney <ac131313@redhat.com>
12220
12221 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12222 * gdbarch.h, gdbarch.c: Re-generate.
12223
491b8946
DJ
122242002-02-16 Daniel Jacobowitz <drow@mvista.com>
12225
12226 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12227
122282002-02-16 Daniel Jacobowitz <drow@mvista.com>
12229
12230 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12231 * valops.c (value_arg_coerce): Don't take the address of a reference
12232 to convert an argument to a reference.
12233
dfe7f3ac
CF
122342002-02-15 Christopher Faylor <cgf@redhat.com>
12235
12236 * win32-nat.c (get_image_name): New function.
12237 (handle_load_dll): Use get_image_name function.
12238 (get_child_debug_event): Avoid registering debug events until possibly
12239 execed process is started.
12240 (child_create_inferior): Allow invocation via shell so that command
12241 line redirection, etc. works ok.
12242 (_initialize_inftarg): Add new command: "set shell" to control whether
12243 a shell is used to start a process.
12244
1d33e73a
DJ
122452002-02-15 Daniel Jacobowitz <drow@mvista.com>
12246
12247 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12248 instead of find_register_by_number.
12249 (cannot_store_register): Likewise.
12250
48cd0caa
PM
122512002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12252
aaa38bb5 12253 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
12254 fprintf_unfiltered (gdb_stderr, ...).
12255
8656e7d8
DJ
122562002-02-15 Daniel Jacobowitz <drow@mvista.com>
12257
12258 * gdbserver/gdbserver.1: Document --attach.
12259
66e810cd
RE
122602002-02-15 Richard Earnshaw <rearnsha@arm.com>
12261
12262 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12263 descriptions.
12264 * arm-tdep.c (arm_default_arm_le_breakpoint)
12265 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12266 (arm_default_thumb_be_breakpoint): New. Initialize them from
12267 traditional breakpoint defines.
12268 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12269 (arm_gdbarch_init): Initialize new breakpoint variables.
12270 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12271 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12272 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12273 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12274 code out to ...
12275 (arm_netbsd_init_abi_common): ... here; new function.
12276 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12277 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12278 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12279 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12280
97e03143
RE
122812002-02-15 Richard Earnshaw <rearnsha@arm.com>
12282
12283 * arm-tdep.h (enum arm_abi): New enum.
12284 (struct gdbarch_tdep): New structure.
12285 (LOWEST_PC): Provide a default.
12286 (arm_gdbarch_register_os_abi): Declare new function.
12287 * arm-tdep.c (arm_abi_names): New array.
12288 (process_note_abi_tag_sections): New function.
12289 (get_elfosabi): New function.
12290 (arm_gdbarch_register_os_abi): New function.
12291 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12292 support for that ABI has been built in, then call the appropriate
12293 configuration routine. Use gdbarch_num_regs() to get the number
12294 of registers.
12295 (arm_dump_tdep): New function.
12296 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12297 place-holder functions.
12298 (_initialize_arm_tdep): Register them.
12299 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12300
12301 * armnbsd-tdep.c: New file.
12302 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12303 * config/arm/nbsd.mt (TDEPFILES): Add it.
12304 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12305
12306 * armnbsd-nat.c: Include regcache.h.
12307 * Makefile.in (armnbsd-nat.o): Update dependency list.
12308
12309 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12310
ad68be46
DJ
123112002-02-14 Daniel Jacobowitz <drow@mvista.com>
12312
12313 * gdbserver/Makefile.in: Fix typos in target rules.
12314
003d6d1d
DJ
123152002-02-14 Daniel Jacobowitz <drow@mvista.com>
12316
aaa38bb5 12317 Fix part of PR gdb/267.
003d6d1d
DJ
12318 * linespec.c (find_methods): Handle constructors specially for now.
12319
6b230f1b
CV
123202002-02-14 Corinna Vinschen <vinschen@redhat.com>
12321
12322 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12323 handling.
12324 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12325 standard_coerce_float_to_double().
12326
1ea98d12
CF
123272002-02-14 Christopher Faylor <cgf@redhat.com>
12328
12329 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12330 GDBINIT_FILENAME.
12331
dd47e6fd
EZ
123322002-02-14 Elena Zannoni <ezannoni@redhat.com>
12333
12334 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12335 find_variant_by_name, because it confuses the multiarch
12336 framework. Return NULL if there isn't an architecture with the
12337 user supplied name, instead of forcing a different one without
12338 recording the change with the multiarch machinery.
12339 (find_variant_by_name): Delete.
12340
d7e39b9e
PS
123412002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12342
12343 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12344 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12345
76e42a4f
MH
123462002-02-13 Martin M. Hunt <hunt@redhat.com>
12347
aaa38bb5 12348 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
12349 print_frame_info_listing_hook, set current_source_symtab.
12350
0a30fbc4
DJ
123512002-02-14 Daniel Jacobowitz <drow@mvista.com>
12352
12353 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12354 and remove unused $(INCLUDE_DIR).
12355 Add regcache.c to OBS.
12356 Add generated register protocol files to clean target.
12357 Update dependencies for new objects, obsolete old target code.
12358
12359 * gdbserver/linux-low.c: Remove all platform-specific code to
12360 new files. Remove various dead code. Update to use regcache
12361 functionality.
12362 * gdbserver/remote-utils.c (fromhex): Add return statement
12363 to quiet warning.
12364 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12365 constant.
12366 (input_interrupt): Add integer parameter to match prototype
12367 of a signal handler.
12368 (outreg): Use register_data ().
12369 (prepare_resume_reply): Use gdbserver_expedite_regs.
12370 * gdbserver/server.c (main): Dynamically allocate own_buf because
12371 PBUFSIZ is no longer constant. Use registers_to_string () and
12372 registers_from_string ().
12373 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12374 for error (), fatal (), and warning (). Update definition of
12375 PBUFSIZ to use regcache functionality. Add include guard.
12376 * gdbserver/utils.c (fatal): Add missing ``const''.
12377 (warning): New function.
12378
12379 * regformats/regdat.sh: Include "regcache.h" in generated files.
12380 Provide init_registers () function.
12381 * regformats/regdef.h: Add prototype for set_register_cache ().
12382 Add include guard.
12383
12384 * gdbserver/linux-arm-low.c: New file.
12385 * gdbserver/linux-i386-low.c: New file.
12386 * gdbserver/linux-ia64-low.c: New file.
12387 * gdbserver/linux-m68k-low.c: New file.
12388 * gdbserver/linux-mips-low.c: New file.
12389 * gdbserver/linux-ppc-low.c: New file.
12390 * gdbserver/linux-sh-low.c: New file.
12391
12392 * gdbserver/regcache.c: New file.
12393 * gdbserver/regcache.h: New file.
12394
12395 * gdbserver/low-linux.c: Removed obsolete file.
12396
4cc841d0
DJ
123972002-02-14 Daniel Jacobowitz <drow@mvista.com>
12398
12399 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12400 * config/i386/linux.mt: Likewise.
12401 * config/ia64/linux.mt: Likewise.
12402 * config/m68k/linux.mh: Likewise.
12403 * config/powerpc/linux.mh: Likewise.
12404 * config/mips/linux.mt: Likewise.
12405
12406 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12407
12408 * config/i386/i386lynx.mh: Mark gdbserver variables
12409 as (currently) obsolete for this target.
12410 * config/i386/nbsd.mt: Likewise.
12411 * config/i386/nbsdelf.mt: Likewise.
12412 * config/m32r/m32r.mt: Likewise.
12413 * config/m68k/m68klynx.mh: Likewise.
12414 * config/m68k/nbsd.mt: Likewise.
12415 * config/m68k/sun3os4.mh: Likewise.
12416 * config/mips/vr5000.mt: Likewise.
12417 * config/ns32k/nbsd.mt: Likewise.
12418 * config/pa/hppabsd.mh: Likewise.
12419 * config/pa/hppaosf.mh: Likewise.
12420 * config/powerpc/nbsd.mt: Likewise.
12421 * config/rs6000/rs6000lynx.mh: Likewise.
12422 * config/s390/s390.mt: Likewise.
12423 * config/s390/s390x.mt: Likewise.
12424 * config/sparc/sparclynx.mh: Likewise.
12425 * config/sparc/sun4os4.mh: Likewise.
12426 * config/i386/x86-64linux.mt: Likewise.
12427 * config/sparc/linux.mh: Likewise.
12428
a85f51e7
DJ
124292002-02-14 Daniel Jacobowitz <drow@mvista.com>
12430
12431 * configure.tgt: Configure gdbserver only for known working
12432 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12433 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12434 SUBDIRS if it is configured. Update comment for ${nativefile}.
12435 * configure: Regenerated.
12436
65554fef
MS
124372002-02-13 Michael Snyder <msnyder@redhat.com>
12438
670a52db
MS
12439 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12440
6dbdc4a3
MS
12441 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12442 (default_gcore_mach): Just return 0, work around a problem in bfd.
12443 (default_gcore_target): OK to return NULL if exec_bfd is null.
12444 (make_mem_sec): Use a cast, avoid a warning.
12445
12446 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 12447 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
12448 sizeof (host pointer) != sizeof (target pointer)).
12449 (procfs_make_note_section): Avoid overflow in psargs string.
12450
aaa38bb5 12451 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
12452 implementation return an error.
12453
124542002-02-13 Rodney Brown <rbrown64@csc.com.au>
12455
12456 * procfs.c (procfs_make_note_section): Provide a default definition
12457 (for alpha-dec-osf4.0f). Fix typos.
12458
1e4d76e7
EZ
124592002-02-13 Elena Zannoni <ezannoni@redhat.com>
12460
12461 * linux-proc.c: Add include of regcache.h.
12462 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12463
b6d1a1d5
AC
124642002-02-13 Andrew Cagney <ac131313@redhat.com>
12465
12466 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
12467 * memattr.c (create_mem_region): Disallow useless empty region.
12468 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12469 non-overlapping.
b6d1a1d5 12470
6c6ea35e
MC
124712002-02-13 Michael Chastain <mec@shout.net>
12472
12473 * defs.h: Kill CONST_PTR.
12474 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12475 * c-lang.c (c_builtin_types): Likewise.
12476 * ch-lang.c (ch_builtin_types): Likewise.
12477 * f-lang.c (f_builtin_types): Likewise.
12478 * language.c (unknown_builtin_types): Likewise.
12479 * m2-lang.c (m2_builtin_types): Likewise.
12480 * p-lang.c (pascal_builtin_types): Likewise.
12481 * scm-lang.c (c_builtin_types): Likewise.
12482
3e0b0f48
KS
124832002-02-13 Keith Seitz <keiths@redhat.com>
12484
12485 * arm-tdep.h (arm_get_next_pc): Add declaration.
12486
67255d04
RE
124872002-02-13 Richard Earnshaw <rearnsha@arm.com>
12488
12489 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12490 with other related struct-returning functions.
12491 (arm_extract_struct_value_address): New function.
12492 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12493 initialize float_format, double_format and long_double_format as
12494 appropriate to the endianness of the target.
12495 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12496 (arm_use_struct_convention): Delete declaration.
12497 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12498
079777f6
KS
124992002-02-13 Keith Seitz <keiths@redhat.com>
12500
12501 * defs.h (core_addr_to_string_nz): New function.
12502
34588f23
MK
125032002-02-13 Mark Kettenis <kettenis@gnu.org>
12504
12505 Apply missing bits of 2002-01-15 patch.
12506 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12507 (fill_fpregset): Use i387_fill_fsave.
12508
49b563f9
KS
125092002-02-12 Keith Seitz <keiths@redhat.com>
12510
49b563f9
KS
12511 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12512 (core_addr_to_string_nz): New function.
12513
aeb98c60
RE
125142002-02-11 Richard Earnshaw <rearnsha@arm.com>
12515
12516 * arm-linux-nat.c: Really include arm-tdep.h.
12517 * config/arm/tm-linux.h (struct type, struct value): Declare.
12518
65554fef
MS
125192002-02-11 Michael Snyder <msnyder@redhat.com>
12520
12521 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12522 (gcore section): Ifdef for Solaris and Unixware only.
12523 (procfs_do_thread_registers): Unixware needs one lwpstatus
12524 per thread (not one prstatus or pstatus).
12525 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12526 not over all gdb threads. For unixware, call elfcore_write_pstatus
12527 once before iterating over threads.
12528
34e8f22d
RE
125292002-02-11 Richard Earnshaw <rearnsha@arm.com>
12530
12531 * arm-tdep.h: New file.
12532 * arm-tdep.c: Include arm-tdep.h.
12533 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12534 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12535 (arm_print_float_info, arm_register_type, convert_to_extended)
12536 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12537 (arm_extract_return_value, arm_register_name): Make static.
12538 (arm_software_single_step): Similarly. Fix types in declaration.
12539 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12540 (arm_store_return_value, arm_store_struct_return): New functions.
12541 (arm_gdbarch_init): Register the above functions. Also register
12542 call_dummy_start_offset, sizeof_call_dummy_words,
12543 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12544 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12545 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12546 prologue_cache.saved_regs here, rather than ...
12547 (_initialize_arm_tdep): ... here.
12548 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12549 declarations.
12550 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12551 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12552 (arm_print_float_info, arm_register_type, convert_to_extended)
12553 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12554 (arm_extract_return_value, arm_register_name): Delete declarations.
12555 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12556 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12557 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12558 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12559 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12560 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12561 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12562 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12563 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12564 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12565 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12566 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12567 interface.
12568 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12569 * remote-rdi.c remote-rdp.c: Likewise.
12570 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12571 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12572 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12573 definition.
12574
12575 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12576 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12577 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12578 from non-ARM_ prefixed definitions.
12579 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12580 all uses of above.
12581 * remote-rdi.c remote-rdp.c: Likewise.
12582 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12583
148754e5
RE
125842002-02-11 Richard Earnshaw <rearnsha@arm.com>
12585
12586 * arm-tdep.c (arm_frameless_function_invocation)
12587 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12588 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12589 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12590 (arm_pop_frame, arm_get_next_pc): Make static.
12591 (arm_gdbarch_init): Register above in gdbarch structure.
12592 (arm_read_fp): Renamed from arm_target_read_fp.
12593 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12594 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12595 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12596 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12597 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12598 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12599 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12600 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12601 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12602 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12603 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12604
434d2d4f
DJ
126052002-02-10 Daniel Jacobowitz <drow@mvista.com>
12606
12607 * symtab.c (compare_search_syms): New function.
12608 (sort_search_symbols): New function.
12609 (search_symbols): Sort symbols after searching rather than
12610 before.
12611
55241689
AC
126122002-02-10 Andrew Cagney <ac131313@redhat.com>
12613
12614 * NEWS: Linux -> GNU/Linux.
12615
028c194b
AC
126162002-02-10 Andrew Cagney <ac131313@redhat.com>
12617
12618 * gdbarch.sh: For for level one methods, disallow a definition
12619 when partially multi-arched. Add comments explaining rationale.
12620 * gdbarch.h: Re-generate.
12621
6acf50cd
AC
126222002-02-10 Andrew Cagney <ac131313@redhat.com>
12623
12624 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12625 multi-arch partial.
aaa38bb5 12626
50248794
AC
126272002-02-10 Andrew Cagney <ac131313@redhat.com>
12628
12629 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12630 field. Use diff -u.
12631 * gdbarch.c: Re-generate.
12632
c30e0066
AC
126332002-02-10 Andrew Cagney <ac131313@redhat.com>
12634
9b56c5f3 12635 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12636 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12637 partial.
12638
6e6d6484
AC
126392002-02-10 Andrew Cagney <ac131313@redhat.com>
12640
12641 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12642 multi-arch partial.
12643 (PUSH_ARGUMENTS): Switch to using predefault.
12644 * gdbarch.c: Regenerate.
12645
c203844d
AC
126462002-02-10 Andrew Cagney <ac131313@redhat.com>
12647
12648 * valops.c (PUSH_ARGUMENTS): Delete definition.
12649 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12650 partial. Default to default_push_arguments.
12651 * gdbarch.h, gdbarch.c: Regenerate.
12652
b5a2688f
AC
126532002-02-09 Andrew Cagney <ac131313@redhat.com>
12654
12655 * defs.h (throw_exception): Rename return_to_top_level. Update
12656 comments.
12657 * utils.c (error_stream, internal_verror, quit): Ditto.
12658 * top.c (throw_exception, catcher): Ditto.
12659 * sparclet-rom.c (sparclet_load): Ditto.
12660 * remote.c (interrupt_query, minitelnet): Ditto.
12661 * remote-sds.c (interrupt_query): Ditto.
12662 * remote-mips.c (mips_error, mips_kill): Ditto.
12663 * ocd.c (interrupt_query): Ditto.
12664 * monitor.c (monitor_interrupt_query): Ditto.
12665 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12666 * target.h: Update comment.
aaa38bb5 12667
b5a2688f 12668 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12669
2fa5c1e0
AC
126702002-02-09 Andrew Cagney <ac131313@redhat.com>
12671
12672 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12673 default_double_format.
12674 * gdbarch.h, gdbarch.c: Re-generate.
12675 * findvar.c (floatformat_unknown): Delete variable definition.
12676 * doublest.h (floatformat_unknown): Delete variable declaration.
12677
da966255
JB
126782002-02-09 Jim Blandy <jimb@redhat.com>
12679
12680 * stabsread.c (read_type): Add code to parse Sun's syntax for
12681 prototyped function types.
12682
123a4891
AC
126832002-02-09 Andrew Cagney <ac131313@redhat.com>
12684
12685 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12686 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12687
fb39c8f3
PS
126882002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12689
12690 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12691 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12692 now _initialize_xcoffsolib gets called again and overrides the
12693 commands from solib.c in a native configuration.
12694
0b87a11d
MK
126952002-02-09 Mark Kettenis <kettenis@gnu.org>
12696
12697 * doublest.c (store_typed_floating): Don't try to return a value.
12698 Fixes PR gdb/290.
12699
bdc2fc72
JB
127002002-02-08 Jim Blandy <jimb@redhat.com>
12701
12702 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12703 is prototyped and has no arguments, print its argument list as
12704 `(void)'.
12705
da69bbcf
CD
127062002-02-08 Chris Demetriou <cgd@broadcom.com>
12707
12708 * MAINTAINERS (write-after-approval): Add myself.
12709 (paper-trail): I've escaped!
aaa38bb5 12710
b69571f5
CF
127112002-02-08 Christopher Faylor <cgf@redhat.com>
12712
12713 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12714 changes.
12715 (_initialize_check_for_gdb_ini): Ditto.
12716
f6871398
MH
127172002-02-08 Martin M. Hunt <hunt@redhat.com>
12718
12719 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12720 xaprintf -> xasprintf.
12721
4e52d31c
PM
127222002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12723
12724 * win32-nat.c: Remove use of printf and sprintf functions.
12725
39bbf761
RE
127262002-02-08 Richard Earnshaw <rearnsha@arm.com>
12727
12728 * arm-tdep.c (arm_frame_chain_valid): Make static.
12729 (arm_push_arguments): Likewise.
12730 (arm_gdbarch_init): New function.
12731 (_initialize_arm_tdep): Call it.
12732 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12733 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12734 (FRAME_CHAIN_VALID): Delete.
12735 (arm_frame_chain_valid): Delete declaration.
12736 (PUSH_ARGUMENTS): Delete.
12737 (arm_push_arguments): Delete declaration.
12738 (CALL_DUMMY_P): Delete.
12739
9c9532c9
CV
127402002-02-08 Andrew Cagney <ac131313@redhat.com>
12741 Corinna Vinschen <vinschen@redhat.com>
12742
12743 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12744 on builtin float types.
12745
4e8f7a8b
DJ
127462002-02-08 Daniel Jacobowitz <drow@mvista.com>
12747
12748 * utils.c: Include <curses.h> before "bfd.h".
12749 * tui/tui-hooks.c: Likewise.
12750 * tui/tui.c: Likewise.
12751 * tui/tuiCommand.c: Likewise.
12752 * tui/tuiData.c: Likewise.
12753 * tui/tuiDataWin.c: Likewise.
12754 * tui/tuiDisassem.c: Likewise.
12755 * tui/tuiGeneralWin.c: Likewise.
12756 * tui/tuiIO.c: Likewise.
12757 * tui/tuiLayout.c: Likewise.
12758 * tui/tuiRegs.c: Likewise.
12759 * tui/tuiSource.c: Likewise.
12760 * tui/tuiSourceWin.c: Likewise.
12761 * tui/tuiStack.c: Likewise.
12762 * tui/tuiWin.c: Likewise.
12763
cd4bffcf
EZ
127642002-02-07 Elena Zannoni <ezannoni@redhat.com>
12765
12766 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12767 to include space for pseudoregs as well. Update loops accordingly.
12768 (sh_fp_frame_init_saved_regs): Ditto.
12769 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12770
26806ce2
AC
127712002-02-07 Andrew Cagney <ac131313@redhat.com>
12772
12773 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12774 Add Richard Earnshaw to Arm maintainers.
12775
97fdab62
AC
127762002-02-07 Andrew Cagney <ac131313@redhat.com>
12777
a6b98203
AC
12778 * defs.h (warning_begin): Delete declaration.
12779
97fdab62
AC
12780 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12781 Delete macro.
12782
78b29b40
MS
127832002-02-07 Michael Snyder <msnyder@redhat.com>
12784
aaa38bb5 12785 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12786 Logic bug, remove misplaced else.
12787
d8849953
KD
127882002-02-07 Klee Dienes <klee@apple.com>
12789
12790 * fork-inferior.c (fork_inferior): Add '!' to the list of
12791 characters that need to be quoted when building a string for the
12792 shell. Quote '!' specifically with a backslash, since CSH chokes
12793 when trying to evaluate "str!str".
aaa38bb5 12794
095778a0
NC
127952002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12796
12797 * rdi-share/host.h: Only provide a typedef for bool if it is not
12798 defined.
12799
1900040c
MS
128002002-02-04 Michael Snyder <msnyder@redhat.com>
12801
12802 * breakpoint.h (enum bptype): Add new overlay event bp type.
12803 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12804
1900040c
MS
12805 * breakpoint.c (create_internal_breakpoint): New function.
12806 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12807 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12808 (create_thread_event_breakpoint): Ditto.
12809 (create_solib_event_breakpoint): Ditto.
12810 (create_overlay_event_breakpoint): New function.
12811 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12812 (update_breakpoints_after_exec): Delete and re-initialize
12813 overlay event breakpoints after an exec. Add FIXME comment
12814 about longjmp breakpoint.
12815 (print_it_typical): Ignore overlay event breakpoints.
12816 (print_one_breakpoint): Ditto.
12817 (mention): Ditto.
12818 (bpstat_what): Do not stop for overlay event breakpoints.
12819 (delete_breakpoint): Don't delete overlay event breakpoints.
12820 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12821 (breakpoint_re_set): Re-create overlay event breakpoint.
12822
12823 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12824 (overlay_manual_command): Disable overlay breakpoints.
12825 (overlay_off_command): Disable overlay breakpoints.
12826
082fc60d
RE
128272002-02-06 Richard Earnshaw <rearnsha@arm.com>
12828
12829 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12830 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12831 to here from config/tm-arm.h.
12832 (coff_sym_is_thumb): Make static.
12833 (arm_elf_make_msymbol_special): New function.
12834 (arm_coff_make_msymbol_special): New function.
12835 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12836 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12837 (coff_sym_is_thumb): Delete declaration.
12838 (arm_elf_make_msymbol_special): Declare.
12839 (arm_coff_make_msymbol_special): Declare.
12840 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12841 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12842
039c5766
RE
128432002-02-06 Richard Earnshaw <rearnsha@arm.com>
12844
12845 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12846
128472002-02-06 Richard Earnshaw <rearnsha@arm.com>
12848
12849 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12850 * gdbarch.c gdbarch.h: Regenerate.
12851 * arch-utils.c (default_print_float_info): New function.
12852 * arch-utils.h (default_print_float_info): Prototype it.
12853 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12854 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12855 (PRINT_FLOAT_INFO): Document it.
12856
12857 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12858 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12859 (PRINT_FLOAT_INFO): Define.
12860
58fa08f0
PM
128612002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12862
aaa38bb5 12863 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12864 Add typecast to sprintf argument to suppress a warning.
12865
7393af7c
PM
128662002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12867
58fa08f0 12868 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12869 to allow easier handling of pass state.
12870 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12871 that gives exception name and address.
12872 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12873 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12874 exceptions added.
aaa38bb5
AJ
12875 (child_continue): Correctly report continue_status.
12876 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12877 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12878 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12879 the exception should be passed to debuggee or not.
12880
6af4589c
MS
128812002-02-05 Michael Snyder <msnyder@redhat.com>
12882
12883 * regcache.c (fetch_register): Call target_fetch_register
12884 only if we don't call FETCH_PSEUDO_REGISTER.
12885 (store_register): Call target_store_register only if we
12886 don't call STORE_PSEUDO_REGISTER.
12887
a2cf933a
EZ
128882002-02-05 Elena Zannoni <ezannoni@redhat.com>
12889
12890 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12891 ELF_MAKE_MSYMBOL_SPECIAL.
12892 * gdbarch.c, gdbarch.h: Regenerate.
12893 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12894 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12895 * elfread.c (elf_symtab_read): Compile use of
12896 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12897 multiarched.
12898 * coffread.c (coff_symtab_read): Ditto, for
12899 COFF_MAKE_MSYMBOL_SPECIAL.
12900
6bb7be43
JB
129012002-02-05 Jim Blandy <jimb@redhat.com>
12902
12903 * solib-svr4.c (svr4_truncate_ptr): New function.
12904 (svr4_relocate_section_addresses): Do the address arithmetic with
12905 the appropriate truncation for target addresses, even when
12906 CORE_ADDR is larger than a target address.
12907
e18651ec
DJ
129082002-02-05 Daniel Jacobowitz <drow@mvista.com>
12909
12910 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12911 to (int *).
12912
6b2725be
DJ
129132002-02-05 Daniel Jacobowitz <drow@mvista.com>
12914
12915 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12916 code.
12917
fca9e603
DJ
129182002-02-05 Daniel Jacobowitz <drow@mvista.com>
12919
12920 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12921
6c537a52
DJ
129222002-02-05 Daniel Jacobowitz <drow@mvista.com>
12923
12924 * gdbserver/linux-low.c: Remove unused include files.
12925
d844cde6
DJ
129262002-02-05 Daniel Jacobowitz <drow@mvista.com>
12927
12928 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12929 (read_inferior_memory): Use it.
12930 (write_inferior_memory): Likewise.
12931
d07c63e7
DJ
129322002-02-05 Daniel Jacobowitz <drow@mvista.com>
12933
12934 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12935 grubbing through sys_errlist.
12936
da6d8c04
DJ
129372002-02-05 Daniel Jacobowitz <drow@mvista.com>
12938
12939 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12940
5b421780
PM
129412002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12942 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12943
9f60d481
AC
129442002-02-04 Andrew Cagney <ac131313@redhat.com>
12945
12946 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12947 (do_sfunc, set_cmd_sfunc): New functions.
12948
12949 * command.h (struct cmd_list_element): Add field func.
12950 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12951 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12952 * cli/cli-decode.h: Ditto.
12953
12954 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12955 (help_all, help_cmd_list): Ditto.
12956 (find_cmd, complete_on_cmdlist): Ditto.
12957 * top.c (execute_command): Ditto.
12958
12959 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12960 function.sfunc.
12961
12962 * infcmd.c (notice_args_read): Fix function signature.
12963
12964 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12965 * cli/cli-decode.c (add_set_cmd): Ditto.
12966 * utils.c (initialize_utils): Ditto.
12967 * maint.c (_initialize_maint_cmds): Ditto.
12968 * infrun.c (_initialize_infrun): Ditto.
12969 * demangle.c (_initialize_demangler): Ditto.
12970 * remote.c (add_packet_config_cmd): Ditto.
12971 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12972 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12973 * proc-api.c (_initialize_proc_api): Ditto.
12974 * kod.c (_initialize_kod): Ditto.
12975 * valprint.c (_initialize_valprint): Ditto.
12976 * top.c (init_main): Ditto.
12977 * infcmd.c (_initialize_infcmd): Ditto.
12978 * corefile.c (_initialize_core): Ditto.
12979 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12980 * arch-utils.c (initialize_current_architecture): Ditto.
12981 (_initialize_gdbarch_utils): Ditto.
12982 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12983
12984 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12985 * wince.c (_initialize_inftarg): Ditto.
12986 * symfile.c (_initialize_symfile): Ditto.
12987 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12988 * language.c (_initialize_language): Ditto.
12989 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12990
f9ba0717
MS
129912002-02-04 Michael Snyder <msnyder@redhat.com>
12992
12993 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12994
0c74b2a7
DJ
129952002-02-04 Daniel Jacobowitz <drow@mvista.com>
12996
12997 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12998 Add rules for building the register data files.
12999
c638789f
DJ
130002002-02-04 Daniel Jacobowitz <drow@mvista.com>
13001
13002 * regformats/regdat.sh: Add braces to the definition of
13003 expedite_regs_${arch}.
13004
db253027
DJ
130052002-02-04 Daniel Jacobowitz <drow@mvista.com>
13006
13007 * regformats/regdef.h (struct reg): Add comment describing the
13008 requirements for offset and size fields.
13009
206be19c
AS
130102002-02-04 Andreas Schwab <schwab@suse.de>
13011
13012 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13013 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13014
181c1381
RE
130152002-02-04 Richard Earnshaw <rearnsha@arm.com>
13016
13017 * gdbarch.sh (copyright): Update years in generated header.
13018 (SMASH_TEXT_ADDRESS): Add rule.
db253027 13019 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
13020 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13021 * dbxread.c: Likewise.
13022 * dwarfread.c: Likewise.
13023 * elfread.c: Likewise.
13024 * somread.c: Likewise.
13025
13026 * arm-tdep.c (arm_smash_text_address): New function.
13027 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13028
fa4ba8da
PM
130292002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13030
13031 Add support for hardware watchpoints on win32 native.
aaa38bb5 13032 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 13033 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 13034 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
13035 of debug registers.
13036 (debug_registers_changed): New variable. Reflects when debug registers
13037 are changed and need to be written to inferior.
aaa38bb5 13038 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
13039 was set, used when new threads are created.
13040 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13041 i386-nat code.
13042 (thread_rec): Set dr array if id is the thread of current_event .
13043 (child_continue, child_resume): Change the debug registers for all
13044 threads if debug_registers_changed.
13045 (child_add_thread): Change the debug registers if debug_registers_used.
13046 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13047 Link nm.h to new nm-cygwin.h file.
13048 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13049 of hardware registers.
13050
a73c86fb
AC
130512002-02-03 Andrew Cagney <ac131313@redhat.com>
13052
13053 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13054 Restore behavour broken by 2002-01-20 Andrew Cagney
13055 <ac131313@redhat.com> IEEE_FLOAT removal.
13056
acf5ed49
DJ
130572002-02-03 Daniel Jacobowitz <drow@mvista.com>
13058
13059 * c-valprint.c (c_val_print): Pass a proper valaddr to
13060 cp_print_class_method.
13061 * valops.c (search_struct_method): If there is only one method
13062 and args is NULL, return that method.
13063
493d28d5
DJ
130642002-02-03 Daniel Jacobowitz <drow@mvista.com>
13065
13066 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13067 accessing tag_name directly.
13068
7495dfdb
DJ
130692002-02-03 Daniel Jacobowitz <drow@mvista.com>
13070
13071 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13072 of accessing tag_name directly.
13073
dd6bda65
DJ
130742002-02-03 Daniel Jacobowitz <drow@mvista.com>
13075
13076 PR gdb/280
13077 * gdbtypes.c (replace_type): New function.
13078 * gdbtypes.h (replace_type): Add prototype.
13079 * stabsread.c (read_type): Use replace_type.
13080
88fe217c
RE
130812002-02-03 Richard Earnshaw <rearnsha@arm.com>
13082
13083 * Makefile.in (memattr.o): Add missing dependencies rule.
13084
e5d66720
PS
130852002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13086
13087 * breakpoint.c (break_at_finish_command): Really export.
13088 (break_at_finish_at_depth_command): Ditto.
13089 (tbreak_at_finish_command): Ditto.
13090 * hppa-tdep.c: Include completer.h.
13091 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13092 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13093
fffee0be
AC
130942002-02-01 Andrew Cagney <ac131313@redhat.com>
13095
13096 * utils.c (do_write): New function.
13097 (error_stream): Rewrite combining the code from error_begin and
13098 verror.
13099 (verror): Rewrite using error_stream.
13100 (error_begin): Delete function.
13101
255e7dbf
AC
131022002-02-01 Andrew Cagney <ac131313@redhat.com>
13103
13104 * utils.c (error_begin): Make static.
13105 * defs.h (error_begin): Delete declaration.
13106
13107 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13108 (decode_line_1): Use cplusplus_error instead of error_begin,
13109 cplusplus_hint and return_to_top_level.
13110 * coffread.c (coff_symfile_read): Use error instead of error_begin
13111 and return_to_top_level.
13112 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13113
ddfe3c15
AC
131142002-02-01 Andrew Cagney <ac131313@redhat.com>
13115
13116 * language.h (type_error, range_error): Make string parameter
13117 constant.
13118 * language.c (warning_pre_print): Delete extern declaration.
13119 * dwarfread.c (warning_pre_print): Ditto.
13120 * language.c (type_error, range_error): Rewrite to use verror and
13121 vwarning instead of warning_begin.
13122
03ac34d5
MS
131232002-02-01 Michael Snyder <msnyder@redhat.com>
13124
261c4ca2
MS
13125 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13126 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 13127
e00d1dc8
AC
131282002-02-01 Andrew Cagney <ac131313@redhat.com>
13129
13130 * command.h (NO_FUNCTION): Delete macro.
13131 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13132 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13133 * tracepoint.c (_initialize_tracepoint): Ditto.
13134 * cli/cli-decode.c (add_set_cmd): Ditto.
13135 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 13136
76b79d6e
DJ
131372002-02-01 Daniel Jacobowitz <drow@mvista.com>
13138
13139 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13140 Update ``this'' pointer when calling virtual functions.
13141
799f9e91
MS
131422002-02-01 Michael Snyder <msnyder@redhat.com>
13143
c7bd442c 13144 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
13145 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13146
3cf384d4
DJ
131472002-02-01 Daniel Jacobowitz <drow@mvista.com>
13148
13149 * regformats/reg-arm.dat: New file.
13150 * regformats/reg-i386.dat: New file.
13151 * regformats/reg-ia64.dat: New file.
13152 * regformats/reg-m68k.dat: New file.
13153 * regformats/reg-mips.dat: New file.
13154 * regformats/reg-ppc.dat: New file.
13155 * regformats/reg-sh.dat: New file.
13156 * regformats/regdef.h: New file.
13157 * regformats/regdat.sh: New file.
13158
0defa245
RE
131592002-02-01 Richard Earnshaw <reanrsha@arm.com>
13160
13161 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13162 (arm_frame_args_address, arm_frame_locals_address): New functions.
13163 (arm_frame_num_args): New function.
13164 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13165 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13166 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13167
405f26e6
MS
131682002-01-31 Michael Snyder <msnyder@redhat.com>
13169
502fd408
MS
13170 * breakpoint.c (break_at_finish_command): Export.
13171 (break_at_finish_at_depth_command): Export.
13172 (tbreak_at_finish_command): Export.
d6020d45 13173 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 13174 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 13175 "txbreak" commands, which are HPPA specific.
502fd408 13176
7d35e135
MS
13177 * printcmd.c (disassemble_command): Remove an ancient
13178 artifact of an old merge.
13179
aaa38bb5 13180 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
13181 Define enum constant values for overlay mode.
13182 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
13183 (overlay_is_mapped, overlay_auto_command,
13184 overlay_manual_command): Ditto.
d874f1e2 13185
aaa38bb5
AJ
13186 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13187 breakpoint_here_p, breakpoint_inserted_here_p,
13188 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
13189 describe_other_breakpoints, check_duplicates, clear_command):
13190 Coding standard fixes.
13191
8add0441 13192 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 13193 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
13194 code: check bfd SEC_READONLY flag for section.
13195
e351066e
AC
131962002-01-31 Andrew Cagney <ac131313@redhat.com>
13197
7d35e135 13198 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 13199
8a48e967
DJ
132002002-01-30 Daniel Jacobowitz <drow@mvista.com>
13201
13202 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13203 data symbols, since we search based on textlow and texthigh.
13204 (find_pc_sect_symtab): Likewise.
13205
f5a96129
AC
132062002-01-30 Andrew Cagney <ac131313@redhat.com>
13207
13208 * defs.h (vwarning): Declare.
f5a96129
AC
13209 * utils.c (vwarning): New function.
13210 (warning): Call vwarning.
13211 (warning_begin): Delete function.
13212
13213 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13214 the warning message.
13215 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13216 warning_begin.
13217
cefd4ef5
MS
132182002-01-30 Michael Snyder <msnyder@redhat.com>
13219
1a703748
MS
13220 * NEWS: Mention "set trust-readonly-sections" command.
13221 Mention generate-core-file command.
cefd4ef5 13222
3a11626d
MS
132232002-01-15 Michael Snyder <msnyder@redhat.com>
13224
13225 * target.c: New command, "set trust-readonly-sections on".
13226 (do_xfer_memory): Honor the suggestion to trust readonly sections
13227 by reading them from the object file instead of from the target.
13228 (initialize_targets): Register command "set trust-readonly-sections".
13229
d1c7e53b
AC
132302002-01-29 Andrew Cagney <ac131313@redhat.com>
13231
13232 * parse.c (target_map_name_to_register): Simplify, search regs and
13233 pseudo-regs using a single loop.
13234
e2c9a72c
AC
132352002-01-30 Andrew Cagney <ac131313@redhat.com>
13236
13237 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13238
69824b4e
MK
132392002-01-15 Rodney Brown <rbrown64@csc.com.au>
13240
13241 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13242 * config/i386/i386v42mp.mh: Add i387-nat.o .
13243 * i386v4-nat.c: Include i387-nat.h.
13244 (supply_fpregset): Use i387_supply_fsave.
13245 (fill_fpregset): Use i387_fill_fsave.
13246
6eb69eab
RE
132472002-01-30 Richard Earnshaw <rearnsha@arm.com>
13248
13249 * arm-tdep.c (arm_call_dummy_words): Define.
13250 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13251 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13252 (CALL_DUMMY_WORDS): Define.
13253 (arm_call_dummy_words): Declare.
13254 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13255 (arm_linux_call_dummy_words): Declare.
13256
9852326a
AS
132572002-01-30 Andreas Schwab <schwab@suse.de>
13258
13259 * m68klinux-nat.c: Fix last change to use regcache_collect
13260 instead of referencing registers[] directly.
13261
977a3030
AC
132622002-01-29 Andrew Cagney <ac131313@redhat.com>
13263
13264 * parse.c (target_map_name_to_register): Delete code wrapped in
13265 #ifdef REGISTER_NAME_ALIAS_HOOK.
13266
2076c72b
MS
132672002-01-28 Michael Snyder <msnyder@redhat.com>
13268
13269 * regcache.c (legacy_read_register_gen): Need to be able to
13270 read pseudo-register as well as real register.
13271 (legacy_write_register_gen): Ditto.
13272
8fcc723b
AC
132732002-01-28 Andrew Cagney <ac131313@redhat.com>
13274
13275 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13276 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13277 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13278 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13279 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13280 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13281 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13282 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13283 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13284 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13285 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13286 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13287 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13288 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13289 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13290 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13291 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13292 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13293 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13294 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13295
afe64c1a
AC
132962002-01-28 Andrew Cagney <ac131313@redhat.com>
13297
13298 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13299 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13300 (initialize_current_architecture): Update target_byte_order using
13301 information from BFD.
aaa38bb5 13302 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
13303 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13304
75bc7ddf
AC
133052002-01-28 Andrew Cagney <ac131313@redhat.com>
13306
13307 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13308 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13309
13310 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13311 #ifdef INVALID_FLOAT.
13312 * infcmd.c (do_registers_info): Ditto.
13313 * values.c (unpack_double): Ditto. Add comment.
13314
13315 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13316 already commented out.
13317
0280a90a
AS
133182002-01-26 Andreas Schwab <schwab@suse.de>
13319
13320 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13321 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13322 registers and add support for PTRACE_GETREGS.
13323
7072a954
AC
133242002-01-24 Andrew Cagney <ac131313@redhat.com>
13325
13326 GDB 5.1.1 released from 5.1 branch.
13327 * NEWS: Add 5.1.1 news.
13328 * README: Sync with 5.1 branch.
13329
86f902e0
FF
133302002-01-23 Fred Fish <fnf@redhat.com>
13331
13332 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13333 stabstring on initial malloc. Reallocing will copy it for us,
13334 if necessary.
13335
8af51c36
EZ
133362002-01-23 Elena Zannoni <ezannoni@redhat.com>
13337
aaa38bb5 13338 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
13339 (HFILES_NO_SRCDIR): Remove hpread.h.
13340 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13341 (hpread.o): Update dependencies.
13342 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13343
13344 * hp-psymtab-read.c: Remove file.
13345 * hp-symtab-read.c: Remove file.
13346 * hpread.h: Remove file.
13347
13348 * hpread.c: Merge all contents of hp-psymtab-read.c,
13349 hp-symtab-read.c and hpread.h into this file, as it was prior to
13350 January 1999.
13351
13352 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 13353 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
13354 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13355 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13356
dc5cfeb6
EZ
133572002-01-23 Elena Zannoni <ezannoni@redhat.com>
13358
13359 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13360 fill_gregset): Call gdbarch_tdep() just once, assign result to
13361 variable and use that, instead of calling the function several
13362 times.
13363
ea87b71b
AO
133642002-01-24 Alexandre Oliva <aoliva@redhat.com>
13365
13366 * configure.host: Accept sparcv9 as alias for sparc64.
13367 * configure.tgt: Likewise.
13368
13fc0c2f
KB
133692002-01-22 Kevin Buettner <kevinb@redhat.com>
13370
13371 * solib-aix5.c (build_so_list_from_mapfile)
13372 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13373 arguments is not reversed.
13374 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13375 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 13376
7bd872fe
EZ
133772002-01-22 Elena Zannoni <ezannoni@redhat.com>
13378
13379 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13380 modified version of obsolete sh_fetch_pseudo_register.
13381 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13382 (sh4_register_read): New function.
13383 (sh_pseudo_register_write): New function. Renamed and modified
13384 version of obsolete sh_store_pseudo_register.
13385 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13386 (sh4_register_write): New function.
13387 (sh_gdbarch_init): Remove setting of gdbarch function
13388 fetch_pseudo_register and store_pseudo_register. Remove setting of
13389 register_convert_to_raw, register_convert_to_virtual,
13390 register_convertible.
13391 (sh_sh4_register_convertible): Delete. No longer needed. All is
13392 taken care by architecture specific functions
13393 register_read/register_write.
13394 (sh_sh4_register_convert_to_virtual): Make static.
13395 (sh_sh4_register_convert_to_raw): Ditto.
13396
069e84fd
AC
133972002-01-22 Andrew Cagney <ac131313@redhat.com>
13398
13399 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13400 (floatformat_is_nan, floatformat_mantissa): Ditto.
13401
13402 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13403 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13404 builtin_type_ieee_double_little,
13405 builtin_type_ieee_double_littlebyte_bigword,
13406 builtin_type_m68881_ext, builtin_type_i960_ext,
13407 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13408 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13409 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13410 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13411
211a4f69
CV
134122002-01-22 Corinna Vinschen <vinschen@redhat.com>
13413
13414 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13415 parameter. Set frameless flag if it exists and depended of
13416 whether the scanned function is frameless or not.
13417 (xstormy16_skip_prologue): If function is frameless, return
13418 result of xstormy16_scan_prologue().
13419 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13420 call.
13421
f81353e4
EZ
134222002-01-21 Elena Zannoni <ezannoni@redhat.com>
13423
13424 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13425 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13426 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13427 sh_sh4_register_byte, sh_sh4_register_raw_size,
13428 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13429 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13430 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13431 sh_store_pseudo_register, sh_do_pseudo_register): Call
13432 gdbarch_tdep() just once, assign result to variable and use that,
13433 instead of calling the function several times.
13434
63c73a17
MK
134352002-01-20 Mark Kettenis <kettenis@gnu.org>
13436
13437 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13438 macros instead of LAST_FPU_CTRL_REGNUM.
13439 (store_register): Likewise.
13440
39ad761d
JB
134412002-01-21 Jim Blandy <jimb@redhat.com>
13442
13443 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13444 is up-to-date before running the program, not just when a program
13445 exits.
13446
3d74b771
FF
134472002-01-21 Fred Fish <fnf@redhat.com>
13448
13449 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13450 when we have found all instructions we are looking for.
13451
966fbf70
RE
134522002-01-21 Richard Earnshaw <rearnsha@arm.com>
13453
13454 * arm-tdep.c (arm_register_name): New function.
13455 (arm_registers_names): Make static.
13456 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13457 (arm_register_name): Declare.
13458 (REGISTER_NAME): Use it.
13459
c3b4394c
RE
134602002-01-21 Richard Earnshaw <rearnsha@arm.com>
13461 Kevin Buettner <kevinb@redhat.com>
13462
13463 Convert arm targets to new FRAME interface.
13464 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13465 (arm_frame_find_save_regs): Delete.
13466 (arm_frame_init_saved_regs): New.
13467 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13468 Allocate extra_info as required. Convert all uses of fsr.regs
13469 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13470 to use extra_info.
13471 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13472 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13473 (check_prologue_cache, save_prologue_cache): Likewise.
13474 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13475 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13476 (FRAME_FIND_SAVED_REGS): Delete.
13477 (arm_frame_find_saved_regs): Delete prototype.
13478 (arm_frame_init_saved_regs): New prototype.
13479 (FRAME_INIT_SAVED_REGS): Define.
13480
61d99182
AC
134812002-01-20 Andrew Cagney <ac131313@redhat.com>
13482
13483 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13484
6aaea291
AC
134852002-01-20 Andrew Cagney <ac131313@redhat.com>
13486
13487 From Jeff Law <law@redhat.com>:
13488 * infttrace.c: Include <sys/pstat.h>.
13489 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13490 exec file if the ttrace equivalent fails.
13491
15f698d2
AC
134922002-01-20 Andrew Cagney <ac131313@redhat.com>
13493
13494 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13495 (closeLogFile): Ditto.
13496
f86ddd7c
MC
134972002-01-20 Michael Chastain <mec@shout.net>
13498
13499 * top.c (print_gdb_version): Bump copyright year to 2002.
13500
904507ce
AC
135012002-01-20 Andrew Cagney <ac131313@redhat.com>
13502
13503 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13504 Zannoni and Eli Zaretskii.
13505
d7f0b9ce
DJ
135062002-01-20 Daniel Jacobowitz <drow@mvista.com>
13507
13508 * buildsym.c: Update copyright years.
13509 * c-typeprint.c: Likewise.
13510 * dwarf2read.c: Likewise.
13511 * f-typeprint.c: Likewise.
13512 * gdbtypes.c: Likewise.
13513 * gdbtypes.h: Likewise.
13514 * hp-symtab-read.c: Likewise.
13515 * hpread.c: Likewise.
13516 * mdebugread.c: Likewise.
13517 * p-typeprint.c: Likewise.
13518
3fd3d7d2
AC
135192002-01-20 Andrew Cagney <ac131313@redhat.com>
13520
13521 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13522 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13523 byte-order selectable.
13524 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13525 * arch-utils.c: Ditto.
13526 (set_endian): Ditto.
13527 (set_endian_from_file): Ditto.
13528 * gdbserver/low-sim.c (create_inferior): Ditto.
13529 * gdbarch.sh: Ditto.
13530 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13531 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13532 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13533 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13534 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13535 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13536 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13537 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13538 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13539 macro definition.
13540 * config/mips/tm-wince.h: Remove #undef of macro
13541 TARGET_BYTE_ORDER_SELECTABLE.
13542 * config/sh/tm-wince.h: Ditto.
13543
b02dede2
DJ
135442002-01-20 Daniel Jacobowitz <drow@mvista.com>
13545
13546 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13547 member function fields. Add accessor macro
13548 TYPE_FN_FIELD_ARTIFICIAL.
13549 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13550 * c-typeprint.c (c_type_print_base): Skip artificial member
13551 functions.
13552
c3643761
DJ
135532002-01-20 Daniel Jacobowitz <drow@mvista.com>
13554
13555 * f-typeprint.c: Delete unused function f_type_print_args.
13556 * p-typeprint.c: Delete unused function pascal_type_print_args.
13557
8176bb6d
DJ
135582002-01-20 Daniel Jacobowitz <drow@mvista.com>
13559
13560 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13561 comment. Add ``artificial'' to ``union field_location''.
13562
13563 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13564
13565 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13566 * mdebugread.c (parse_symbol): Likewise.
13567 * stabsread.c (define_symbol): Likewise.
13568 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13569 initializing TYPE_FIELD_BITPOS to n (obsolete).
13570 (hpread_doc_function_type): Likewise.
13571 * hpread.c (hpread_function_type): Likewise.
13572
7fd60527
AC
135732002-01-20 Andrew Cagney <ac131313@redhat.com>
13574
13575 * configure.in (host_makefile_frag): Only require a host makefile
13576 fragment when a native build.
13577 * configure: Re-generate.
13578
c2f05ac9
AC
135792002-01-20 Andrew Cagney <ac131313@redhat.com>
13580
13581 * doublest.h (floatformat_from_type): Declare.
13582 * doublest.c (floatformat_from_type): New function.
13583 (convert_typed_floating): Use.
13584
13585 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13586 call to function floatformat_from_type.
13587
13588 * gdbarch.sh (IEEE_FLOAT): Delete.
13589 * gdbarch.h, gdbarch.c: Re-generate.
13590 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13591 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13592 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13593 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13594 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13595 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13596 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13597 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13598 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13599 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13600 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13601 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13602
13603 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13604 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13605 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13606 * sh-tdep.c (sh_gdbarch_init): Ditto.
13607 * mips-tdep.c (mips_gdbarch_init): Ditto.
13608 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13609 * cris-tdep.c (cris_gdbarch_init): Ditto.
13610
abf22e64
AJ
136112002-01-20 Jiri Smid <smid@suse.cz>
13612
13613 * configure.host, configure.tgt: Support x86-64.
13614 * NEWS: Note new target x86-64.
13615
b7c4cbf8
AJ
13616 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13617 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13618 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13619 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13620 x86-64-linux-nat.o): Fix dependencies.
13621
82600034
AC
136222002-01-19 Andrew Cagney <ac131313@redhat.com>
13623
13624 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13625 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13626 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13627 * config/sparc/xm-sun4os4.h: Delete file.
13628 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13629
bbe5c628
AC
136302002-01-19 Andrew Cagney <ac131313@redhat.com>
13631
13632 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13633 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13634 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13635 * config/i386/i386lynx.mh (XM_FILE): Delete.
13636 * config/rs6000/xm-rs6000ly.h: Delete file.
13637 * config/sparc/xm-sparclynx.h: Delete file.
13638 * config/m68k/xm-m68klynx.h: Delete file.
13639 * config/i386/xm-i386lynx.h: Delete file.
13640 * config/xm-lynx.h: Delete file.
13641 * config/djgpp/fnchange.lst: Update.
13642
f8453e34
JT
136432002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13644
13645 * alpha-tdep.c (alpha_register_byte): New function.
13646 (alpha_register_raw_size): Ditto.
13647 (alpha_register_virtual_size): Ditto.
13648 (alpha_skip_prologue_internal): Renamed from
13649 alpha_skip_prologue.
13650 (alpha_skip_prologue): New version that calls
13651 alpha_skip_prologue_internal.
13652 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13653 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13654 second argument from alpha_skip_prologue.
13655 (REGISTER_BYTE): Use alpha_register_byte.
13656 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13657 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13658 (FRAMELESS_FUNCTION_INVOCATION): Use
13659 generic_frameless_function_invocation_not.
13660 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13661 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13662
52d9e613
AC
136632002-01-19 Andrew Cagney <ac131313@redhat.com>
13664
13665 * config/mips/xm-news-mips.h: Delete file.
13666 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13667
13668 * config/m88k/xm-m88k.h: Delete file.
13669 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13670 * config/m88k/xm-delta88v4.h: Ditto.
13671 * config/m88k/xm-delta88.h: Ditto.
13672
13673 * config/alpha/xm-fbsd.h: Delete file.
13674 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13675
13676 * config/sparc/xm-sparc.h: Delete file.
13677 * Makefile.in (xm-sun4os4.h): Delete dependency.
13678 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13679 * config/sparc/xm-sun4os4.h: Ditto.
13680 * config/sparc/xm-linux.h: Ditto.
13681
13682 * config/i386/xm-windows.h: Delete file.
13683
2d1b2124
AC
136842002-01-19 Andrew Cagney <ac131313@redhat.com>
13685
13686 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13687 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13688
ee1f65f0
JT
136892002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13690
13691 * alpha-tdep.c (alpha_call_dummy_words): New.
13692 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13693 (CALL_DUMMY_P): Define.
13694 (CALL_DUMMY_WORDS): Define.
13695 (SIZEOF_CALL_DUMMY_WORDS): Define.
13696
98081e55
PB
136972002-01-19 Per Bothner <per@bothner.com>
13698
13699 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13700 isn't NULL, which can happen with some gcj-3.x-produced code.
13701
0d056799
JT
137022002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13703
13704 * alpha-tdep.c (alpha_register_virtual_type): New function.
13705 (alpha_init_frame_pc_first): Ditto.
13706 (alpha_fix_call_dummy): Ditto.
13707 (alpha_store_struct_return): Ditto.
13708 (alpha_extract_struct_value_address): Ditto.
13709 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13710 alpha_register_virtual_type.
13711 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13712 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13713 alpha_extract_struct_value_address.
13714 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13715 (INIT_FRAME_PC): Use init_frame_pc_noop.
13716 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13717
4604bcad
MK
137182002-01-19 Mark Kettenis <kettenis@gnu.org>
13719
13720 * i386gnu-nat.c: Include "i386-tdep.h".
13721 (fetch_fpregs): Simplify code dealing with uninitialized floating
13722 point states such that it doesn't require FP7_REGNUM.
13723
140f9984
JT
137242002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13725
abf22e64
AJ
13726 * alpha-tdep.c (frame_extra_info): New.
13727 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13728 frame->extra_info.
13729 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13730 (alpha_frame_saved_pc): Use frame->extra_info.
13731 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13732 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13733 (init_extra_frame_info): Rename to...
13734 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13735 (alpha_print_extra_frame_info): New function.
140f9984
JT
13736 (alpha_frame_locals_address): Ditto.
13737 (alpha_frame_args_address): Ditto.
abf22e64 13738 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13739 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13740 alpha_frame_args_address.
abf22e64 13741 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13742 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13743 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13744 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13745 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13746 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13747
d734c450
JT
137482002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13749
13750 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13751 (alpha_cannot_fetch_register): Ditto.
13752 (alpha_cannot_store_register): Ditto.
13753 (alpha_register_convertible): Ditto.
13754 (alpha_use_struct_convention): Ditto.
13755 * config/alpha/tm-alpha.h: Update copyright years.
13756 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13757 (INNER_THAN): Use core_addr_lessthan.
13758 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13759 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13760 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13761 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13762 (FRAME_CHAIN): Remove unnecessary cast.
13763
b4ceaee6
AC
137642002-01-18 Andrew Cagney <ac131313@redhat.com>
13765
13766 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13767 obsolete.
13768
0a65a603
AC
137692002-01-18 Andrew Cagney <ac131313@redhat.com>
13770
13771 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13772 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13773 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13774 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13775 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13776 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13777 * x86-64-linux-nat.c: Ditto.
13778
636a6dfc
JT
137792002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13780
abf22e64 13781 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13782 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13783 (REGISTER_NAME): Define.
13784
acceddb6
JT
137852002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13786
13787 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13788
ec32e4be
JT
137892002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13790
13791 * alpha-tdep.c: Update copyright years.
13792 (alpha_next_pc): New function.
13793 (alpha_software_single_step): Ditto.
13794 * config/alpha/tm-alpha.h: Add prototype for
13795 alpha_software_single_step.
13796
e771a871
JT
137972002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13798
13799 * alphabsd-nat.c: Update copyright years.
13800 (fill_gregset): Use regcache_collect.
13801 (fill_fpregset): Likewise.
13802 (fetch_inferior_registers): Only fetch integer registers
13803 if requested to do so.
13804 (store_inferior_registers): Only store integer registers
13805 if requested to do so.
13806
7708fa01
AC
138072002-01-17 Andrew Cagney <ac131313@redhat.com>
13808
13809 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13810 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13811 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13812 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13813 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13814 * config/arm/linux.mh (XDEPFILES): Delete.
13815 * config/arm/nbsd.mh (XDEPFILES): Delete.
13816 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13817 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13818 * config/i386/i386m3.mh (XDEPFILES): Delete.
13819 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13820 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13821 * config/i386/fbsd.mh (XDEPFILES): Delete.
13822 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13823 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13824 * config/i386/i386v4.mh (XDEPFILES): Delete.
13825 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13826 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13827 * config/i386/i386aix.mh (XDEPFILES): Delete.
13828 * config/i386/go32.mh (XDEPFILES): Delete.
13829 * config/i386/cygwin.mh (XDEPFILES): Delete.
13830 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13831 * config/i386/i386mach.mh (XDEPFILES): Delete.
13832 * config/i386/i386v32.mh (XDEPFILES): Delete.
13833 * config/i386/linux.mh (XDEPFILES): Delete.
13834 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13835 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13836 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13837 * config/i386/i386sco.mh (XDEPFILES): Delete.
13838 * config/i386/i386v.mh (XDEPFILES): Delete.
13839 * config/i386/nbsd.mh (XDEPFILES): Delete.
13840 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13841 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13842 * config/i386/symmetry.mh (XDEPFILES): Delete.
13843 * config/i386/obsd.mh (XDEPFILES): Delete.
13844 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13845 * config/ia64/linux.mh (XDEPFILES): Delete.
13846 * config/ia64/aix.mh (XDEPFILES): Delete.
13847 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13848 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13849 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13850 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13851 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13852 * config/m68k/linux.mh (XDEPFILES): Delete.
13853 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13854 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13855 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13856 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13857 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13858 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13859 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13860 * config/m88k/delta88.mh (XDEPFILES): Delete.
13861 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13862 * config/m88k/m88k.mh (XDEPFILES): Delete.
13863 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13864 * config/mips/linux.mh (XDEPFILES): Delete.
13865 * config/mips/irix6.mh (XDEPFILES): Delete.
13866 * config/mips/irix5.mh (XDEPFILES): Delete.
13867 * config/mips/irix4.mh (XDEPFILES): Delete.
13868 * config/mips/irix3.mh (XDEPFILES): Delete.
13869 * config/mips/decstation.mh (XDEPFILES): Delete.
13870 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13871 (NATDEPFILES): Move core-aout.o to here.
13872 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13873 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13874 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13875 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13876 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13877 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13878 * config/pa/hpux11.mh (XDEPFILES): Delete.
13879 * config/powerpc/aix.mh (XDEPFILES): Delete.
13880 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13881 * config/powerpc/linux.mh (XDEPFILES): Delete.
13882 * config/romp/rtbsd.mh: Rename XDEPFILES.
13883 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13884 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13885 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13886 * config/s390/s390.mh (XDEPFILES): Delete.
13887 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13888 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13889 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13890 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13891 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13892 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13893 * config/sparc/linux.mh (XDEPFILES): Delete.
13894 * config/vax/vaxult.mh (XDEPFILES): Delete.
13895 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13896 * Makefile.in (DEPFILES): Remove XDEPFILES.
13897
375fc983
AC
138982002-01-17 Andrew Cagney <ac131313@redhat.com>
13899
13900 * utils.c (internal_verror): Fix comments, default is yes not no.
13901 Update queries to match. Default to quit and dump core.
13902
8926118c
AC
139032002-01-17 Andrew Cagney <ac131313@redhat.com>
13904
13905 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13906 copyright.
13907 * defs.h, event-top.c, gdbcmd.h: Ditto.
13908 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13909 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13910 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13911 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13912 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13913 * mi/mi-main.c:Ditto.
13914
13915 * stack.c, symfile.c: Update copyright.
13916
45b7b345
DJ
139172002-01-17 Daniel Jacobowitz <drow@mvista.com>
13918
db728ff7
DJ
13919 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13920 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13921 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13922 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13923
db728ff7
DJ
139242002-01-17 Daniel Jacobowitz <drow@mvista.com>
13925
13926 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13927 * gdbserver/low-lynx.c (myattach): Likewise.
13928 * gdbserver/low-nbsd.c (myattach): Likewise.
13929 * gdbserver/low-sim.c (myattach): Likewise.
13930 * gdbserver/low-sparc.c (myattach): Likewise.
13931 * gdbserver/low-sun3.c (myattach): Likewise.
13932
13933 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13934
db728ff7 13935 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13936 (main): Handle "--attach".
13937
8de3c354
AC
139382002-01-16 Andrew Cagney <ac131313@redhat.com>
13939
13940 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13941 maintainer.
13942
b0129042
DJ
139432002-01-15 Daniel Jacobowitz <drow@mvista.com>
13944
13945 * c-typeprint.c (is_type_conversion_operator): Add additional
13946 check for non-conversion operators.
13947
ba8679fb 139482002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13949
13950 * linux-proc.c: Add "info proc" command, a la procfs.c.
13951 (read_mapping): New function, abstract and re-use code.
13952 (linux_find_memory_regions): Use new func read_mapping.
13953 (linux_info_proc_cmd): New function, implement "info proc".
13954 (_initialize_linux_proc): Add new command "info proc".
13955
e4f9b4d5
MS
139562002-01-15 Michael Snyder <msnyder@redhat.com>
13957
13958 * symfile.c (generic_load): Use bfd_map_over_sections method
13959 instead of manipulating bfd structure members directly.
13960 (add_section_size_callback): New function, bfd sections callback
13961 used by generic_load.
13962 (load_sections_callback): New function, bfd sections callback
13963 used by generic_load.
13964
08cf96df
EZ
139652002-01-15 Elena Zannoni <ezannoni@redhat.com>
13966
abf22e64 13967 [Based on work by Jim Blandy]
08cf96df
EZ
13968 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13969 (builtin_type_vec128): Export.
13970 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13971 types.
13972 (builtin_type_vec128): New builtin type for 128 bit vector
13973 registers.
13974 (build_gdbtypes): Initialize builtin_type_v16qi and
13975 builtin_type_v8hi. Create the vec128 register builtin type
13976 structure.
13977 (build_builtin_type_vec128): New function.
abf22e64 13978 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13979 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13980 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13981 AltiVec register to new builtin type.
13982
d7242108
DJ
139832001-01-15 Daniel Jacobowitz <drow@mvista.com>
13984
13985 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13986 to make_cv_type.
13987
4ee3352d
AC
139882002-01-14 Andrew Cagney <ac131313@redhat.com>
13989
13990 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13991 CLEAN_UP_REGISTER_VALUE.
13992 * regcache.c (supply_register): Update only call.
13993
f015b2e7
AC
139942002-01-14 Andrew Cagney <ac131313@redhat.com>
13995
13996 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13997 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13998 a29k-*-vxworks* targets as obsolete.
13999
356ae49d
MS
140002002-01-14 Michael Snyder <msnyder@redhat.com>
14001
14002 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14003 until we can resolve portability issues.
14004 * gregset.h: Remove references to fpxregs.
14005 * gcore.c (gcore_command): Initialize note_sec to NULL.
14006
ade8f45e
AC
140072002-01-13 Andrew Cagney <ac131313@redhat.com>
14008
14009 * signals.c (target_signal_to_name): Rewrite. Only use
14010 signals[].name when in bounds and non-NULL.
abf22e64 14011
89c49e7a
AC
140122002-01-13 Andrew Cagney <ac131313@redhat.com>
14013
14014 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14015 * signals.c (target_signal_to_name): Verify that SIG is within the
14016 bounds of the signals array.
14017
4daa9f9f
AC
140182002-01-13 Andrew Cagney <ac131313@redhat.com>
14019
14020 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14021
ba4bbdcb
KS
140222002-01-13 Keith Seitz <keiths@redhat.com>
14023
14024 * stack.c (print_frame_info_base): Print the frame's pc
14025 only if when print_frame_info_listing_hook is not defined.
14026
575bbeb6
KS
140272002-01-13 Keith Seitz <keiths@redhat.com>
14028
14029 * varobj.c (varobj_set_value): Make sure that there were no
14030 errors evaluating the object before attempting to set its
14031 value.
14032 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14033 so this offset adjustment is no longer necessary.
14034 (create_child): Don't set the error flag if the child is
14035 a CPLUS_FAKE_CHILD.
14036 (value_of_child): If value_fetch_lazy fails, return NULL
14037 so that callers will be notified that an error occurred.
14038 (c_value_of_variable): Delay check of variable's validity
14039 until later. We actually want all structs and unions to have
14040 the value "{...}".
14041 Do not return "???" for variables which could not be evaluated.
14042 This error condition must be returned to the caller so that it
14043 can get the error condition from gdb.
14044 (cplus_name_of_child): Adjust index for vptr before figuring
14045 out the name of the child.
14046 (cplus_value_of_child): If a child's (real) parent is not valid,
14047 don't even bother trying to give a value for it. Just return
14048 an error. Change all instances in this function.
14049 (cplus_type_of_child): If our parent is one of the "fake"
14050 parents, we need to get at the type of the real parent, and
14051 derive the child's true type using this information.
14052
b76898ab
AC
140532002-01-13 Andrew Cagney <ac131313@redhat.com>
14054
14055 From 2002-01-09 John Marshall <johnm@falch.net>:
14056 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14057 sources.redhat.com, and tweak some related URLs which had
14058 suffered from linkrot.
14059
b6649e88
AC
140602002-01-13 Andrew Cagney <ac131313@redhat.com>
14061
14062 From Jeff law:
14063 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14064 structures passed in registers.
14065
82cc5033
EZ
140662002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14067
14068 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14069 white space which prevented compilation. Reported by DSK
14070 <dsk@student.unsw.edu.au>.
14071
ba5f2f8a
MS
140722002-01-11 Michael Snyder <msnyder@redhat.com>
14073
fbd35540
MS
14074 * symfile.c (build_section_addr_info_from_section_tab):
14075 Use bfd access method instead of manipulating bfd directly.
14076 (syms_from_objfile): Ditto.
14077 (simple_overlay_update_1): Ditto.
14078 (simple_overlay_update): Ditto.
14079 (generic_load): Ditto.
14080 (overlay_unmapped_address): FIXME comment, bfd access methods.
14081 (sections_overlap): FIXME comment, bfd access methods.
14082 (pc_in_mapped_range): FIXME comment, bfd access methods.
14083 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14084 (section_is_mapped): FIXME comment, bfd access methods.
14085 (section_is_overlay): FIXME comment, bfd access methods.
14086
ba5f2f8a
MS
14087 * symfile.c (generic_load): Whitespace and long line cleanups.
14088 Remove duplicate variable, change several local variables to
14089 more appropriate data types.
14090 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14091
17df2af6
AC
140922002-01-12 Andrew Cagney <ac131313@redhat.com>
14093
14094 From Peter Schauer:
14095 * language.c (longest_local_hex_string_custom): Use phex_nz to
14096 convert NUM to a hex string.
14097
ec920329
EZ
140982002-01-12 Elena Zannoni <ezannoni@redhat.com>
14099
14100 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14101 the function.
538a76d6 14102 Update Copyright year.
ec920329 14103
3abd2e01
AC
141042002-01-12 Andrew Cagney <ac131313@redhat.com>
14105
14106 * language.c (longest_raw_hex_string): Delete unused function.
14107
b21b22e0
PS
141082002-01-11 Petr Sorfa <petrs@caldera.com>
14109
14110 * MAINTAINERS (write-after-approval): Add myself.
14111 * dwarf2read.c (read_tag_string_type): Handling of
14112 DW_AT_byte_size.
14113 (read_tag_string_type): FORTRAN fix to prevent propagation of
14114 first string size.
14115 (set_cu_language): Handling of DW_LANG_Fortran95
14116
747fe712
RE
141172002-01-11 Richard Earnshaw <rearnsha@arm.com>
14118
14119 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14120 GETPID(inferior_ptid).
14121 (store_inferior_registers): Likewise.
14122
f1bea926
JM
141232002-01-10 Jason Merrill <jason@redhat.com>
14124
14125 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14126 Fix DW_OP_minus.
14127
ae940673
AC
141282002-01-10 Andrew Cagney <ac131313@redhat.com>
14129
14130 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14131 and bfd/elf32-sh-nbsd.c.
14132
00546b04
MS
141332002-01-10 Michael Snyder <msnyder@redhat.com>
14134
352ed7b4
MS
14135 * NEWS: Mention --pid and corefile/proc-id behavior change.
14136
c18be923
MS
14137 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14138 * gcore.c: Include cli/cli-decode.h instead of command.h.
14139
00546b04
MS
14140 * main.c (captured_main): Add new command line option "--pid".
14141 If the second command line argument (following the symbol-file)
14142 begins with a digit, try to attach to it before trying to open
14143 it as a corefile.
14144 (print_gdb_help): Document the "--pid" argument.
14145
db60ec62
EZ
141462002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14147
14148 * completer.c (command_completer): New function.
14149
14150 * completer.h <command_completer>: Add prototype.
14151
14152 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14153 completer for the "help" command.
14154
39c22d1a
JM
141552002-01-09 Jason Merrill <jason@redhat.com>
14156
14157 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14158
c564377f
MS
141592002-01-09 Michael Snyder <msnyder@redhat.com>
14160
975aec09
MS
14161 * i386-linux-nat.c (fill_fpxregset): Make global.
14162 (store_fpxregset): Ditto.
14163
db4a10fa
MS
14164 * gregset.h (gdb_fpxregset_t): Define.
14165 (supply_fpxregset): Prototype.
14166 (fill_fpxregset): Prototype.
14167
c564377f
MS
14168 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14169
c3d45d70
RE
141702002-01-09 Richard Earnshaw <rearnsha@arm.com>
14171
14172 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14173 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14174 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14175
fcc87af1
AC
141762002-01-09 Andrew Cagney <ac131313@redhat.com>
14177
14178 * MAINTAINERS: Update target maintainer rules so that any
14179 Maintainer can approve a tested patch for a maintenance-only
14180 target.
14181
dd96c05b
RE
141822002-01-09 Richard Earnshaw <rearnsha@arm.com>
14183
d4297db9 14184 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 14185
d4297db9 14186 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
14187 IN_SIGTRAMP.
14188
145fdc6e
MS
141892002-01-08 Michael Snyder <msnyder@redhat.com>
14190
14191 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14192 real name of the executable, rather than the /proc name.
14193
be4d1333
MS
141942002-01-03 Michael Snyder <msnyder@redhat.com>
14195
14196 Implement a "generate-core-file" command in gdb, save target state.
14197 * gcore.c: New file. Implement new command 'generate-core-file'.
14198 Save a corefile image of the current state of the inferior.
14199 * linux-proc.c: Add linux-specific code for saving corefiles.
14200 * target.h (struct target_ops): Add new target vectors for saving
14201 corefiles; to_find_memory_regions and to_make_corefile_notes.
14202 (target_find_memory_regions): New macro.
14203 (target_make_corefile_notes): New macro.
14204 * target.c (update_current_target): Inherit new target methods.
14205 (dummy_find_memory_regions): New place-holder method.
14206 (dummy_make_corefile_notes): New place-holder method.
14207 (init_dummy_target): Initialize new dummy target vectors.
14208 * exec.c (exec_set_find_memory_regions): New function.
14209 Allow the exec_ops vector for memory regions to be taken over.
14210 (exec_make_note_section): New function, target vector method.
14211 * defs.h (exec_set_find_memory_regions): Export prototype.
14212 * procfs.c (proc_find_memory_regions): New function, corefile method.
14213 (procfs_make_note_section): New function, corefile method.
14214 (init_procfs_ops): Set new target vector pointers.
14215 (find_memory_regions_callback): New function.
14216 (procfs_do_thread_registers): New function.
14217 (procfs_corefile_thread_callback): New function.
14218 * sol-thread.c (sol_find_memory_regions): New function.
14219 (sol_make_note_section): New function.
14220 (init_sol_thread_ops): Initialize new target vectors.
14221 * inftarg.c (inftarg_set_find_memory_regions): New function.
14222 Allow to_find_memory_regions vector to be taken over.
14223 (inftarg_set_make_corefile_notes): New function.
14224 Allow to_make_corefile_notes vector to be taken over.
14225 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14226 interface layer if not target_has_execution (may be a corefile).
14227 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14228 * config/sparc/sun4sol2.mh: Ditto.
14229 * config/alpha/alpha-linux.mh: Ditto.
14230 * config/arm/linux.mh: Ditto.
14231 * config/i386/x86-64linux.mh: Ditto.
14232 * config/ia64/linux.mh: Ditto.
14233 * config/m68k/linux.mh: Ditto.
14234 * config/mips/linux.mh: Ditto.
14235 * config/powerpc/linux.mh: Ditto.
14236 * config/sparc/linux.mh: Ditto.
14237
c6b92abd
MS
142382002-01-07 Michael Snyder <msnyder@redhat.com>
14239
14240 * arm-linux-nat.c: Remove references to regcache.c internal data
14241 (registers[] and register_valid[]).
14242
4b09dc8c
MS
142432002-01-07 Michael Snyder <msnyder@redhat.com>
14244
abf22e64
AJ
14245 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14246 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
14247 symbol file and shlibs.
14248 * Makefile.in: Add rule for linux-proc.o.
14249 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14250 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14251 * config/arm/linux.mh: Ditto.
14252 * config/i386/linux.mh: Ditto.
14253 * config/i386/x86-64linux.mh: Ditto.
14254 * config/ia64/linux.mh: Ditto.
14255 * config/m68k/linux.mh: Ditto.
14256 * config/mips/linux.mh: Ditto.
14257 * config/powerpc/linux.mh: Ditto.
14258 * config/sparc/linux.mh: Ditto.
14259
c25b74ac
PM
142602002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14261
14262 * win32-nat.c: Add i386-tdep.h dependency.
14263
94cd915f
MS
142642002-01-07 Michael Snyder <msnyder@redhat.com>
14265
c7cccb76
MS
14266 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14267 instead of bfd_get_arch_size. Don't bail out just because
14268 there's no exec_bfd.
abf22e64 14269
34c0bd93
MS
14270 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14271 * p-valprint.c (pascal_object_print_value): Ditto.
14272 * somread.c (som_symtab_read): Ditto.
14273 * symfile.c (simple_free_overlay_region_table): Ditto.
14274 * valops.c (value_assign): Ditto.
14275
21c1c920
MS
14276 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14277 use tilde_expand and strerror for opening save-tracepoints file.
14278
5bbd998e
MS
14279 * thread-db.c (thread_db_new_objfile): Indendation fix.
14280
94cd915f
MS
14281 * infptrace.c (GDB_MAX_ALLOCA): New define.
14282 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 14283 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
14284 can be overridden with whatever value is appropriate to the host).
14285 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14286 alloca to allocate potentially large buffer.
14287 * rs6000-nat.c (child_xfer_memory): Ditto.
14288 * symm-nat.c (child_xfer_memory): Ditto.
14289 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14290
494e8a93
JSC
142912002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14292
14293 From Nick Clifton <nickc@redhat.com>
14294 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14295
d0e1d48e
MS
142962002-01-07 Michael Snyder <msnyder@redhat.com>
14297
abf22e64 14298 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
14299 Don't use exec_bfd if it's NULL.
14300
290b2c7a
MK
143012002-01-06 Mark Kettenis <kettenis@gnu.org>
14302
abf22e64 14303 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 14304
aef21287
AC
143052002-01-06 Andrew Cagney <ac131313@redhat.com>
14306
14307 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14308 * gnu-nat.c: Ditto.
14309
30efa627
AC
143102002-01-06 Andrew Cagney <ac131313@redhat.com>
14311
14312 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14313 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14314 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14315 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14316 z8k-coff have not been multi-arched. Update z8k-coff build
14317 status.
14318
9b4ff276
AC
143192002-01-06 Andrew Cagney <ac131313@redhat.com>
14320
14321 * MAINTAINERS: Mark a29k target as obsolete.
14322 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14323 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14324 comments.
14325 * NEWS: Note that a29k targets are obsolete.
14326 * a29k-tdep.c: Mark as obsolete.
14327 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14328 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14329 a29k-*-vxworks* targets as obsolete.
14330 * remote-adapt.c: Obsolete.
14331 * remote-eb.c: Obsolete.
14332 * remote-mm.c: Obsolete.
14333 * remote-udi.c: Obsolete.
14334 * config/a29k/a29k-udi.mt: Obsolete.
14335 * config/a29k/a29k.mt: Obsolete.
14336 * config/a29k/tm-a29k.h: Obsolete.
14337 * config/a29k/tm-vx29k.h: Obsolete.
14338 * config/a29k/vx29k.mt: Obsolete.
14339
a9011d31
AC
143402002-01-05 Andrew Cagney <ac131313@redhat.com>
14341
14342 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14343 with BFD_ENDIAN_BIG.
14344
9299404e
AC
143452002-01-05 Andrew Cagney <ac131313@redhat.com>
14346
14347 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14348 * configure, config.in: Re-generate.
14349 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14350 * defs.h: Do not include <endian.h>.
14351
7e89e357
JT
143522002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14353
14354 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14355 * config.in: Regenerate.
14356 * configure.in: Update copyright years.
14357 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14358 * configure: Regenerate.
14359 * i386bsd-nat.c: Update copyright years.
14360 (fill_gregset): Use regcache_collect.
14361 (fetch_inferior_registers): Only fetch integer registers
14362 if requested to do so. Add support for XMM registers
14363 using PT_GETXMMREGS.
14364 (store_inferior_registers): Only store integer registers
14365 if requested to do so. Add support for XMM registers
14366 using PT_SETXMMREGS.
14367 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14368 (store_inferior_registers): Remove.
14369 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14370 (fetch_elfcore_registers): New function.
14371 (i386nbsd_elfcore_fns): New.
14372 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14373 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14374 i386bsd-nat.o.
14375 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14376 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14377 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14378 * config/i386/tm-nbsd.h: Update copyright years.
14379 (HAVE_SSE_REGS): Define.
14380 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14381 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14382 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14383 (SIGCONTEXT_PC_OFFSET): Remove.
14384 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14385
a752853e
AC
143862002-01-05 Andrew Cagney <ac131313@redhat.com>
14387
14388 * configure.tgt: Remove powerpc-*-macos* target.
14389 * config/m68k/xm-mpw.h: Delete file.
14390 * config/xm-mpw.h: Delete file.
14391 * ser-mac.c: Delete file.
14392 * mpw-make.sed: Delete file.
14393 * mpw-config.in: Delete file.
14394 * mac-xdep.c: Delete file.
14395 * mac-gdb.r: Delete file.
14396 * mac-defs.h: Delete file.
14397 * mac-nat.c: Delete file.
14398 * config/powerpc/macos.mh: Delete file.
14399 * config/powerpc/macos.mt: Delete file.
14400 * config/powerpc/nm-macos.h: Delete file.
14401 * config/powerpc/tm-macos.h: Delete file.
14402 * source.c (openp, open_source_file): Remove obsolete code.
14403 * top.c (gdb_readline): Ditto.
14404 * utils.c (query): Ditto.
14405 * event-top.c (display_gdb_prompt): Ditto.
14406 * Makefile.in (ser-mac.o): Delete obsolete target.
14407 * NEWS: Update.
14408
d7449b42
AC
144092002-01-04 Andrew Cagney <ac131313@redhat.com>
14410
14411 * defs.h (BIG_ENDIAN): Delete macro definition.
14412 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14413 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14414 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14415 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14416 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14417 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14418 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14419 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14420 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14421 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14422 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14423 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14424 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14425 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14426 * gdbarch.c: Re-generate.
14427
356374e8
DJ
144282002-01-04 Daniel Jacobowitz <drow@mvista.com>
14429
14430 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14431 for core files.
14432
a2b8f8f8
JT
144332002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14434
14435 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14436
12466af9
AC
144372002-01-04 Andrew Cagney <ac131313@redhat.com>
14438
14439 * value.h (value_ptr): Delete typedef.
14440
3549ab40
JT
144412002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14442
14443 * i386nbsd-nat.c: Update copyright years.
14444 Include i386-tdep.h.
14445
fedbd091
EZ
144462002-01-04 Elena Zannoni <ezannoni@redhat.com>
14447
14448 * stabsread.c: Update copyright years.
14449
14450 From Debashis Mahata <debashis.mahata@wipro.com>:
14451 (read_struct_fields): Deal with Sun C compiler erroneous stab
14452 output for structs and unions.
fec8b34f 14453 Fix PR gdb/269.
fedbd091 14454
eb43544b
DJ
144552002-01-04 Daniel Jacobowitz <drow@mvista.com>
14456
14457 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14458 prototype.
14459
1514d34e
DJ
144602002-01-04 Daniel Jacobowitz <drow@mvista.com>
14461
14462 * cp-abi.c: Fix whitespace.
14463 (baseclass_offset): New wrapper function.
14464 * cp-abi.h (baseclass_offset): Add prototype.
14465 (struct cp_abi_ops): Add baseclass_offset pointer.
14466
14467 * valops.c (vb_match): Move to...
14468 * gnu-v2-abi.c (vb_match): here.
14469 * valops.c (baseclass_offset): Move to...
14470 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14471
14472 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14473
14474 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14475 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14476 * hpacc-abi.c (init_hpacc_ops): Likewise.
14477
7f8c9282
DJ
144782002-01-04 Daniel Jacobowitz <drow@mvista.com>
14479
14480 * valops.c (find_overload_match): Accept obj as a
14481 reference parameter. Update it before returning.
14482 * value.h (find_overload_match): Update prototype.
14483 * eval.c (evaluate_subexp_standard): Pass object to
14484 find_overload_match by reference.
14485
f23631e4
AC
144862002-01-03 Andrew Cagney <ac131313@redhat.com>
14487
14488 * valarith.c: Replace value_ptr with struct value pointer. Remove
14489 register attribute from value declarations.
14490 * valops.c: Ditto.
14491 * value.h: Ditto.
14492 * scm-lang.c (scm_lookup_name): Ditto.
14493
79e10fab 144942002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 14495
79e10fab
AC
14496 Abstract the functionality of iterating over mapped memory
14497 regions into a general purpose iterator function.
abf22e64 14498 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14499 iterator for memory sections.
14500 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14501 (solib_mappings_callback): New function, callback for above.
14502 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14503 (info_mappings_callback): New function, callback for above.
14504
14505 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14506
c5ad026a
MK
145072002-01-01 Mark Kettenis <kettenis@gnu.org>
14508
d2a7c97a
MK
14509 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14510 * i386-tdep.c: Include "elf-bfd.h".
14511 (process_note_abi_tag_sections): New function.
14512 (i386_gdbarch_init): Add code to recognize various OS/ABI
14513 combinations.
14514
c5ad026a
MK
14515 * maint.c (_initialize_maint_cmds): Add missing \ in
14516 string-literal.
14517
a1a5b71e 14518For older changes see ChangeLog-2001
c906108c
SS
14519\f
14520Local Variables:
14521mode: change-log
14522left-margin: 8
14523fill-column: 74
14524version-control: never
14525End:
This page took 1.016296 seconds and 4 git commands to generate.