2002-12-13 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
18ea5ba4
AC
12002-12-13 Andrew Cagney <ac131313@redhat.com>
2
3 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
4 pass that to set_momentary_breakpoint. Move comments to where they
5 belong.
6 * frame.h (set_current_frame): Delete declaration.
7 * frame.c (set_current_frame): Delete function.
8
2c517d0e
AC
92002-12-13 Andrew Cagney <ac131313@redhat.com>
10
11 * frame.c (frame_extra_info_zalloc): New function.
12 * frame.h (frame_extra_info_zalloc): Declare.
13
516b1f28
JB
142002-12-13 Joel Brobecker <brobecker@gnat.com>
15
16 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
17 in the previous prototype change to set_momentary_breakpoint.
18
fbb265fc
DJ
192002-12-12 Daniel Jacobowitz <drow@mvista.com>
20
21 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
22 and saw_child_exec.
23 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
24 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
25 (stop_stepping): Remove outdated check for child vfork events.
26
4fd7f624
AC
272002-12-12 Andrew Cagney <ac131313@redhat.com>
28
29 * GDB 5.3 released from gdb_5_3-branch.
30
4c9ba7e0
DJ
312002-12-11 Daniel Jacobowitz <drow@mvista.com>
32
33 * corelow.c (init_core_ops): Delete references to to_require_attach
34 and to_require_detach.
35 * exec.c (init_exec_ops): Likewise.
36 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
37 hppa_require_detach directly.
38 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
39 * inftarg.c (child_detach): Remove.
40 (child_detach_from_process): Rename to child_detach, remove
41 after_fork argument.
42 (child_attach): Remove.
43 (child_attach_to_process): Rename to child_attach, remove after_fork
44 argument.
45 (init_child_ops): Delete references to to_require_attach
46 and to_require_detach.
47 * infttrace.c (hppa_require_attach): Update comment.
48 * target.c (cleanup_target, update_current_target)
49 (init_dummy_target, setup_target_debug): Delete references to
50 to_require_attach and to_require_detach.
51 (find_default_require_detach, find_default_require_attach)
52 (debug_to_require_attach, debug_to_require_detach): Remove
53 functions.
54 * target.h (struct target_ops): Remove to_require_attach
55 and to_require_detach.
56 (target_require_attach, target_require_detach): Delete macros.
57 (find_default_require_detach, find_default_require_attach): Delete
58 prototypes.
59 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
60
0394eb2a
AC
612002-12-11 Andrew Cagney <ac131313@redhat.com>
62
63 * frame.c (get_frame_extra_info): New function.
64 * frame.h (get_frame_extra_info): Declare.
65
818dd999
AC
662002-12-11 Andrew Cagney <ac131313@redhat.com>
67
68 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
69 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
70 with `struct frame_id'.
71 (set_longjmp_resume_breakpoint): Ditto.
72 * infrun.c (handle_inferior_event): Update.
73 * breakpoint.c (watch_command_1, until_break_command): Update.
74 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
75 (handle_inferior_event, step_over_function): Update.
76 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
77 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
78 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
79 * infcmd.c (finish_command, run_stack_dummy): Update.
80
4d3c2250
KB
812002-12-11 Kevin Buettner <kevinb@redhat.com>
82
83 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
84 (dwarf2_non_const_array_bound_ignored)
85 (dwarf2_missing_line_number_section)
86 (dwarf2_statement_list_fits_in_line_number_section)
87 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
88 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
89 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
90 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
91 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
92 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
93 (dwarf2_missing_member_fn_type_complaint)
94 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
95 (dwarf2_const_value_length_mismatch)
96 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
97 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
98 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
99 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
100 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
101 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
102 complaints using deprecated struct..
103 (dwarf2_non_const_array_bound_ignored_complaint)
104 (dwarf2_complex_location_expr_complaint)
105 (dwarf2_unsupported_at_frame_base_complaint)
106 (dwarf2_const_value_length_mismatch_complaint)
107 (dwarf2_macros_too_long_complaint)
108 (dwarf2_macro_malformed_definition_complaint)
109 (dwarf2_invalid_attrib_class_complaint): New functions.
110 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
111 (read_structure_scope, read_array_type, read_common_block)
112 (read_tag_pointer_type, read_base_type, read_partial_die)
113 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
114 (new_symbol, dwarf2_const_value, read_type_die)
115 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
116 (parse_macro_definition, dwarf_decode_macros): Replace calls to
117 complain() with, possibly indirect, calls to complaint().
118
95486978
AC
1192002-12-11 Andrew Cagney <cagney@redhat.com>
120
121 * frame.c (deprecated_get_frame_saved_regs): Rename
122 get_frame_saved_regs.
123 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
124 * sparc-tdep.c: Update.
125 * hppa-tdep.c: Update.
126 * h8500-tdep.c: Update.
127
321432c0
KB
1282002-12-11 Kevin Buettner <kevinb@redhat.com>
129
130 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
131 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
132 ``char *'' for return and parameter types.
133 * gdbarch.h, gdbarch.c: Regenerate.
134 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
135 return type from ``char *'' to ``const char *''.
136 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
137 const.
138
5a4d6ff4
MK
1392002-12-11 Mark Kettenis <kettenis@gnu.org>
140
141 * i386-tdep.c: Include "dummy-frame.h".
142 (i386_frame_chain, i386_frame_saved_pc): Replace
143 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
144 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
145
a5afb99f
AC
1462002-12-10 Andrew Cagney <cagney@redhat.com>
147
148 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
149 Change to a function with predicate.
150 * gdbarch.h, gdbarch.c: Re-generate.
151 * frame.c (get_prev_frame): Update. Test
152 DEPRECATED_INIT_FRAME_PC_P.
153 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
154 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
155 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
156 * alpha-tdep.c (alpha_gdbarch_init): Update.
157 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
158 * mips-tdep.c (mips_gdbarch_init): Update.
159 * i386-interix-tdep.c (i386_interix_init_abi): Update.
160 * arm-tdep.c: Update comments.
161 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
162 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
163 * frv-tdep.c (frv_gdbarch_init): Ditto.
164 * x86-64-tdep.c (x86_64_init_abi): Ditto.
165 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
166 * s390-tdep.c (s390_gdbarch_init): Ditto.
167 * v850-tdep.c (v850_gdbarch_init): Ditto.
168 * vax-tdep.c (vax_gdbarch_init): Ditto.
169 * sh-tdep.c (sh_gdbarch_init): Ditto.
170 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
171 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
172 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
173 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
174 * i386-tdep.c (i386_gdbarch_init): Ditto.
175 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
176 * cris-tdep.c (cris_gdbarch_init): Ditto.
177 * avr-tdep.c (avr_gdbarch_init): Ditto.
178 * arm-tdep.c (arm_gdbarch_init): Ditto.
179 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
180 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
181
6604731b
DJ
1822002-12-10 Daniel Jacobowitz <drow@mvista.com>
183
184 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
185 CHILD_FOLLOW_FORK.
186 * hppah-nat.c (saved_vfork_pid): Add.
187 (child_post_follow_vfork): Remove.
188 (child_follow_fork): New function.
189 (child_wait): Call detach_breakpoints after receiving the child vfork.
190 Call child_resume directly instead of going through resume ().
191 Make sure we have the exec before reporting the vfork.
192 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
193 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
194 (follow_fork): New function. Call target_follow_fork.
195 (follow_inferior_reset_breakpoints): New function broken out from
196 old follow_inferior_fork.
197 (resume): Remove hack to follow exec after vfork.
198 * inftarg.c (child_post_follow_vfork): Remove.
199 (child_follow_fork): New function.
200 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
201 * target.c (cleanup_target): Replace to_post_follow_vfork with
202 to_follow_fork.
203 (update_current_target): Likewise.
204 (setup_target_debug): Likewise.
205 (debug_to_post_follow_vfork): Remove.
206 (debug_to_follow_fork): New function.
207 * target.h (struct target_ops): Replace to_post_folow_vfork with
208 to_follow_fork.
209 (child_post_follow_vfork): Remove prototype.
210 (child_follow_fork): Add prototype.
211 (target_post_follow_vfork): Remove macro.
212 (target_follow_fork): Add macro.
213
7d2830a3
DJ
2142002-12-10 Daniel Jacobowitz <drow@mvista.com>
215
216 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
217 (child_post_follow_vfork): Cancel pending exec event if we follow
218 the parent.
219 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
220 events have been processed. Return a fake TARGET_WAITKIND_EXECD
221 event at the following wait call if necessary.
222 * infrun.c (follow_vfork): Don't follow_exec here.
223 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
224 case about HP/UX 10.20. Remove code pushed down to
225 hppah-nat.c:child_wait.
226 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
227 vfork_in_flight is set.
228
2292002-12-10 Daniel Jacobowitz <drow@mvista.com>
8e7d2c16
DJ
230
231 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
232 for the parent's fork event.
233 * infrun.c (handle_inferior_event): Only expect one fork event.
234 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
235 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
236
50631d4f
AC
2372002-12-10 Andrew Cagney <ac131313@redhat.com>
238
bc124bd3
AC
239 * PROBLEMS: Delete reference to PR gdb/725.
240
50631d4f
AC
241 * MAINTAINERS (gdb.c++): Add David Carlton.
242
808013d1
DC
2432002-12-09 David Carlton <carlton@math.stanford.edu>
244
245 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
246 * cli/cli-cmds.c: Ditto.
247
31deffe5
AC
2482002-12-09 Andrew Cagney <cagney@redhat.com>
249
6cbda714
AC
250 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
251 function address in <>.
31deffe5
AC
252 * gdbarch.c: Re-generate.
253
2692ddb3
DC
2542002-12-09 David Carlton <carlton@math.stanford.edu>
255
256 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
257
f3c39e76
DC
2582002-12-09 David Carlton <carlton@math.stanford.edu>
259
260 * linespec.c (symtab_from_filename): New function.
261 (decode_line_1): Move code into symtab_from_filename.
262
1b84163e
KB
2632002-12-09 Kevin Buettner <kevinb@redhat.com>
264
265 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
266
bdd78e62
AC
2672002-12-07 Andrew Cagney <ac131313@redhat.com>
268
269 * f-valprint.c (info_common_command): Use get_frame_pc.
270 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
271 * ax-gdb.c (agent_command): Ditto.
272 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
273 (rs6000_pop_frame): Ditto.
274 (rs6000_frameless_function_invocation): Ditto.
275 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
276 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
277 * macroscope.c (default_macro_scope): Ditto.
278 * stack.c (print_frame_info_base): Ditto.
279 (print_frame, frame_info, print_frame_label_vars): Ditto.
280 (return_command, func_command, get_frame_language): Ditto.
281 * infcmd.c (finish_command): Ditto.
282 * dummy-frame.c (cached_find_dummy_frame): Ditto.
283 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
284 (break_at_finish_at_depth_command_1): Ditto.
285 (break_at_finish_command_1): Ditto.
286 (until_break_command, get_catch_sals): Ditto.
287 * blockframe.c (func_frame_chain_valid): Ditto.
288 (frameless_look_for_prologue): Ditto.
289 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
290
408400e7
AC
2912002-12-08 Andrew Cagney <ac131313@redhat.com>
292
293 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
294 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
295
97f46953
AC
2962002-12-08 Andrew Cagney <ac131313@redhat.com>
297
298 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
299 to pure functions.
300 * gdbarch.h, gdbarch.c: Re-generate.
301 * frame.c (get_prev_frame): Explictly assign prev's pc with value
302 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
303
304 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
305 declaration to a function returning a CORE_ADDR.
306 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
307 * arch-utils.c (init_frame_pc_noop): Return the PC value.
308 (init_frame_pc_default): Ditto.
309 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
310 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
311 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
312 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
313 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
314 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
315
316 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
317 to init_frame_pc_noop.
318 (i386_interix_init_frame_pc): Delete function.
319 * z8k-tdep.c (init_frame_pc): Delete function.
320 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
321 (INIT_FRAME_PC_FIRST): Ditto.
322 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
323 (INIT_FRAME_PC_FIRST): Ditto.
324 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
325 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
326 init_frame_pc_noop.
327 (INIT_FRAME_PC_FIRST): Convert to an expression.
328 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
329
8b36eed8
AC
3302002-12-08 Andrew Cagney <ac131313@redhat.com>
331
332 * blockframe.c: Use get_frame_base instead of directly accessing
333 the `struct frame_info' member frame.
334 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
335 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
336
aeeccc89
EZ
3372002-12-08 Elena Zannoni <ezannoni@redhat.com>
338
339 * Makefile.in (readline_h): Define.
340 (completer.o): Depend on readline_h.
341 (corelow.o): Ditto.
342 (event-top.o): Ditto.
343 (exec.o): Ditto.
344 (solib.o): Ditto.
345 (source.o): Ditto.
346 (symfile.o): Ditto.
347 (symmisc.o): Ditto.
348 (top.o): Ditto.
349 (tracepoint.o): Ditto.
350 (utils.o): Ditto.
351 (cli-dump.o): Ditto.
352 (tui-hooks.o): Ditto.
353 (tuiWin.o): Ditto.
354
38017ce8
EZ
3552002-12-08 Elena Zannoni <ezannoni@redhat.com>
356
357 More cleanup from import of readline 4.3.
358 * completer.h (complete_line, readline_line_completion_function):
359 Update prototypes.
360 (line_completion_function): Removed, not used outside of completer.c.
361 * completer.c (readline_line_completion_function,
362 complete_function, line_completion_function): Use const for first
363 parameter.
364 (line_completion_function): Make static.
365 (filename_completer): filename_completion_function is now called
366 rl_filename_completion_function
367 * corelow.c: Include <readline/readline.h>.
368 * exec.c: Ditto.
369 * solib.c: Ditto.
370 * source.c: Ditto.
371 * symfile.c: Ditto.
372 * symmisc.c: Ditto.
373 * top.c (init_main): No need to coerce
374 readline_line_completion_function anymore.
375 * cli/cli-dump.c: Include <readline/readline.h>.
376
75e3c1f9
AC
3772002-12-08 Andrew Cagney <ac131313@redhat.com>
378
379 * stack.c (frame_info): Use get_prev_frame.
380 * blockframe.c (frame_address_in_block): Ditto.
381 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
382 (rs6000_frameless_function_invocation): Ditto.
383 (rs6000_frame_saved_pc): Ditto.
384 (rs6000_frame_chain): Ditto.
385 * arch-utils.c (init_frame_pc_default): Ditto.
386
0d2b8049
AC
3872002-12-08 Andrew Cagney <ac131313@redhat.com>
388
389 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
390 Delete redundant definition.
391
9255ee31
EZ
3922002-12-08 Elena Zannoni <ezannoni@redhat.com>
393
394 Import of readline 4.3:
395 * cli/cli-cmds.c: Include readline/tilde.h.
396 * cli/cli-setshow.c: Ditto.
397 * defs.h: Don't declare tilde_expand anymore, since readline
398 exports it.
399
3442dad6 4002002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
401
402 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
403 -Werror on this file.
404
52f87c51
AC
4052002-12-07 Andrew Cagney <ac131313@redhat.com>
406
407 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
408 the format name.
409 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
410 * gdbarch.c: Regenerate.
411
2ca6c561
AC
4122002-12-06 Andrew Cagney <ac131313@redhat.com>
413
414 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
415 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
416 provide a default value.
417 * gdbarch.h, gdbarch.c: Regenerate.
418 * frame.c (get_prev_frame): Update. Check
419 DEPRECATED_INIT_FRAME_PC_FIRST_P.
420 * s390-tdep.c (s390_gdbarch_init): Update.
421 * mips-tdep.c (mips_gdbarch_init): Update.
422 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
423 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
424 * alpha-tdep.c (alpha_gdbarch_init): Update.
425
e162d11b
EZ
4262002-12-06 Elena Zannoni <ezannoni@redhat.com>
427
428 * ia64-linux-nat.c: Include gdb_string.h.
429 * alpha-nat.c: Ditto.
2b298b5d
EZ
430 * ppc-linux-nat.c: Ditto.
431 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
432 Update dependencies.
e162d11b 433
aa0cd9c1
AC
4342002-12-05 Andrew Cagney <ac131313@redhat.com>
435
436 * gdbthread.h: Include "frame.h".
437 (struct thread_info): Replace step_frame_address with
438 step_frame_id.
439 * inferior.h: Include "frame.h".
440 (step_frame_id): Replace external variable step_frame_address.
441 * gdbthread.h (save_infrun_state): Replace step_frame_address
442 parameter with step_frame_id parameter.
443 (load_infrun_state): Ditto.
444 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
445 * infcmd.c (step_frame_id, step_1, step_once): Update.
446 * thread.c (load_infrun_state, save_infrun_state): Update.
447 * infrun.c (clear_proceed_status, save_inferior_status): Update.
448 (handle_inferior_event, step_over_function): Update.
449 (normal_stop, context_switch, restore_inferior_status): Update.
450 (struct inferior_status): Replace step_frame_address with
451 step_frame_id.
452
a9a9bd0f
DC
4532002-12-05 David Carlton <carlton@math.stanford.edu>
454
455 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
456 DW_TAG_member as well as a declaration as being a C++ static data
457 member.
458 (read_structure_scope): Combine tests for DW_TAG_member and
459 DW_TAG_variable.
460
614b3b14
DC
4612002-12-05 David Carlton <carlton@math.stanford.edu>
462
463 * linespec.c (decode_compound): New function.
464 (decode_line_1): Move code into decode_compound.
465
e4051eeb
DC
4662002-12-05 David Carlton <carlton@math.stanford.edu>
467
468 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
469 argument.
470 (lookup_symbol_aux): Do the 'field_of_this' check before checking
471 the static block. See PR gdb/804.
472
f61e8913
DC
4732002-12-05 David Carlton <carlton@math.stanford.edu>
474
475 * symtab.c (lookup_symbol_aux_block): New function.
476 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
477
1e9f55d0
AC
4782002-12-05 Andrew Cagney <ac131313@redhat.com>
479
480 * gdbarch.sh: Dump the predicate function and macro values.
481 (read): Print error on standard error.
482 * gdbarch.c: Regenerate.
483
d1973055
KB
4842002-12-04 Kevin Buettner <kevinb@redhat.com>
485
486 * Makefile.in (mips_tdep_h): Define.
487 (mips-tdep.o): Add mips_tdep_h to dependency list.
488 * mips-tdep.h: New file.
489 * mips-tdep.c (mips-tdep.h): Include.
490 (enum mips_abi): Move to mips-tdep.h.
491 (mips_abi): New function.
492
f1253c7b
DC
4932002-12-04 David Carlton <carlton@math.stanford.edu>
494
495 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
496
406bc4de
DC
4972002-12-04 David Carlton <carlton@math.stanford.edu>
498
499 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
500 function.
501 (lookup_symbol_aux_minsyms): New function.
502
2a3750c5
JB
5032002-12-04 J. Brobecker <brobecker@gnat.com>
504
505 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
506
961d8652
JB
5072002-12-04 J. Brobecker <brobecker@gnat.com>
508
509 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
510 which is an obsolete macro name.
511
38c52d5a
DJ
5122002-12-04 Daniel Jacobowitz <drow@mvista.com>
513
514 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
515 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
516
d8ef46f5
DJ
5172002-12-03 H.J. Lu (hjl@gnu.org)
518
519 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
520 (create_breakpoints): Make sure the addr_string field is not
521 NULL.
522
02ae7771
AC
5232002-12-03 Andrew Cagney <ac131313@redhat.com>
524
525 * sparc-nat.c (fetch_inferior_registers)
526 (store_inferior_registers): Add comment on problem of LWP vs
527 threads.
528
529 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
530 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
531 (lin_lwp_store_registers): Remove.
532 (init_lin_lwp_ops): Use fetch_inferior_registers
533 and store_inferior_registers directly.
534 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
535 (store_inferior_registers): Likewise.
536 Fix PR gdb/725.
537
7a424e99
AC
5382002-12-03 Andrew Cagney <ac131313@redhat.com>
539
540 * frame.h (get_frame_id): Convert to a function.
541 (null_frame_id, frame_id_p): Declare.
542 (frame_id_eq, frame_id_inner): Declare.
543 (frame_id_build): New function.
544 * frame.c (get_frame_id): Update. Use null_frame_id.
545 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
546 frame_id_inner.
547 (null_frame_id, frame_id_p): Define.
548 (frame_id_eq, frame_id_inner): Define.
549 (frame_id_build): New function.
550 * varobj.c (varobj_create): Update.
551 (varobj_update): Update.
552 * valops.c (value_assign): Update.
553 (new_root_variable): Update.
554 * infrun.c (save_inferior_status): Update.
555 * breakpoint.c (watch_command_1): Update.
556
891c7f5f
JB
5572002-12-03 J. Brobecker <brobecker@gnat.com>
558
559 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
560 (SNAP2): Likewise.
561
144da3c1
AC
5622002-12-03 Andrew Cagney <cagney@redhat.com>
563
46248966
AC
564 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
565 patch.
566
144da3c1
AC
567 * PROBLEMS: Mention PR gdb/725.
568
03c6228e
AS
5692002-12-03 Andreas Schwab <schwab@suse.de>
570
571 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
572
36e53c63
AF
5732002-12-02 Adam Fedor <fedor@gnu.org>
574 Klee Dienes <kdienes@apple.com>
575
576 * objc-lang.c (objc_printstr): Add width arg to match
577 printstr prototype.
578 (compare_selectors): Add 'const' to arg types.
579 (compare_classes): Likewise.
580 (find_imps): Cast msym pointer to avoid compiler warning.
581 (print_object_command): Validate the address before
582 passing it to the print routine.
583 (find_objc_msgcall_submethod): Change function argument to
584 return an int.
585 * objc-lang.h: Add 'extern' to all function declarations.
586 (value_nsstring): Add declaration.
587
504d5c7e
JB
5882002-12-02 J. Brobecker <brobecker@gnat.com>
589
590 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
591 Fixes a build failure on HP/UX.
592
593 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
594 failure on HP/UX.
595 (hpread_has_name): Advance declaration to avoid a compilation warning.
596 (pst_syms_count): Add missing variable type. By change, the compiler
597 was defaulting to int, which seems a good choice. Fixes a compilation
598 warning.
599 (pst_syms_size): Likewise.
600
59623e27
JB
6012002-12-02 J. Brobecker <brobecker@gnat.com>
602
603 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
604 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
605 later to set the proper gdbarch methods depending on the osabi.
606 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
607
a09a320d
JB
6082002-12-02 J. Brobecker <brobecker@gnat.com>
609
610 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
611 * osabi.c (gdb_osabi_name): Add strings images for the two new
612 enum values.
613 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
614
8a81a99e
AC
6152002-12-02 Andrew Cagney <ac131313@redhat.com>
616
617 * MAINTAINERS (Java): Global maintainers are responible for Java.
618 (Past Maintainers): Mention both Anthony Green and Per Bothner as
619 part Java maintainers.
620
7af35dad
JB
6212002-12-02 J. Brobecker <brobecker@gnat.com>
622
623 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
624 Fixes a compilation failure on AiX.
625
f4ede9bc
JB
6262002-12-02 J. Brobecker <brobecker@gnat.com>
627
628 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
629 why aix-thread.o is not listed.
630
ae45cd16
AC
6312002-12-01 Andrew Cagney <ac131313@redhat.com>
632
633 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
634 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
635 * gdbarch.h, gdbarch.c: Re-generate.
636 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
637 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
638 * config/pa/tm-hppa.h, frame.h: Update.
639 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
640 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
641 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
642 * cris-tdep.c, alpha-tdep.c: Update.
643 * frame.c (set_unwind_by_pc, create_new_frame): Use either
644 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
645 (get_prev_frame): Ditto.
646
020cc13c
AC
6472002-11-30 Andrew Cagney <cagney@redhat.com>
648
649 * exec.c (xfer_memory): Replace boolean with int.
650 * p-exp.y: Use 0 instead of false.
651 * corelow.c (gdb_check_format): Change return type to int from
652 boolean.
653 * utils.c: Don't include <curses.h> or <term.h> first.
654
1d9b2aa8
SC
6552002-11-29 Stephane Carrez <stcarrez@nerim.fr>
656
657 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
658 (m68hc11_register_byte): Remove.
659 (m68hc11_gdbarch_init): Don't set the above.
660
a193e397
AC
6612002-11-29 Andrew Cagney <cagney@redhat.com>
662
663 * remote-mips.c (mips_initialize): Force a selected frame rebuild
664 by calling get_selected_frame.
665 * ocd.c (ocd_start_remote): Use get_selected frame instead of
666 set_current_frame, create_new_frame, select_frame and
667 get_current_frame.
668 * remote-e7000.c (e7000_start_remote): Ditto.
669 * remote-mips.c (common_open): Ditto
670 * remote-rdp.c (remote_rdp_open): Ditto.
671
b5fc49aa
AS
6722002-11-29 Andreas Schwab <schwab@suse.de>
673
674 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
675 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
676 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
677 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
678 read_memory_unsigned_integer instead of read_memory_integer when
679 dealing with addresses and instruction opcodes.
680 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
681 (m68k_linux_frame_saved_pc): Likewise.
682
6e7f8b9c
AC
6832002-11-29 Andrew Cagney <ac131313@redhat.com>
684
685 * stack.c (selected_frame, select_frame): Move from here ...
686 * frame.c (selected_frame, select_frame): ... to here. Include
687 "language.h".
688 * Makefile.in (frame.o): Update dependencies.
689 * frame.c (get_selected_frame): New function.
690 * frame.h (get_selected_frame): Declare.
691 (deprecated_selected_frame): Rename selected_frame.
692 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
693 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
694 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
695 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
696 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
697 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
698 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
699 * z8k-tdep.c, cli/cli-cmds.c: Update.
700
805e2818
AC
7012002-11-29 Andrew Cagney <ac131313@redhat.com>
702
703 * frame.h (get_selected_block): Add comments.
704
1058bca7
AC
7052002-11-28 Andrew Cagney <ac131313@redhat.com>
706
707 * frame.c (pc_notcurrent): New function.
708 (find_frame_sal): New function.
709 * frame.h (find_frame_sal): Declare.
710 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
711 * stack.c (print_frame_info_base): Use find_frame_sal instead of
712 find_pc_line.
1058bca7
AC
713 (frame_info): Ditto.
714 * ada-lang.c (find_printable_frame): Ditto.
715
d92419e5
JB
7162002-11-28 J. Brobecker <brobecker@gnat.com>
717
718 * configure.in: Check that the pthdebug library is recent enough
719 before enabling thread support on native AiX.
720 * configure: Regenerate.
721
722 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
723 from the list of object files as it is now appended by configure
724 if thread support is enabled.
725 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
726 if thread support is enabled.
727
8c69fc49
AC
7282002-11-28 Andrew Cagney <cagney@redhat.com>
729
730 * stack.c (get_selected_block): In-line get_current_block.
731 * frame.h (get_current_block): Delete declaration.
732 * blockframe.c (get_current_block): Delete function.
733
07555a72
AC
7342002-11-28 Andrew Cagney <ac131313@redhat.com>
735
736 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
737 USE_GENERIC_DUMMY_FRAMES.
738 * gdbarch.h, gdbarch.c: Regenerate.
739 * valops.c, frame.c: Update.
740 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
741 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
742 * config/pa/tm-hppa.h, blockframe.c: Update.
743 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
744 * m68k-tdep.c, alpha-tdep.c: Ditto.
745
746 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
747 * mips-tdep.c: Ditto.
748
b99fa2d2
AC
7492002-11-27 Andrew Cagney <ac131313@redhat.com>
750
751 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
752 (USE_GENERIC_DUMMY_FRAMES): Default to true.
753 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
754 * gdbarch.c, gdbarch.h: Re-generate.
755 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
756 (CALL_DUMMY_LOCATION): Delete macro definition.
757 (PC_IN_CALL_DUMMY): Delete macro definitions.
758
759 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
760 default is already generic_pc_in_call_dummy.
761 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
762 * v850-tdep.c (v850_gdbarch_init): Ditto.
763 * sh-tdep.c (sh_gdbarch_init): Ditto.
764 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
765 * mips-tdep.c (mips_gdbarch_init): Ditto.
766 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
767 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
768 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
769 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
770 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
771 * avr-tdep.c (avr_gdbarch_init): Ditto.
772
773 * arm-tdep.c (arm_gdbarch_init): Do not set
774 use_generic_dummy_frames, default is already 1.
775 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
776 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
777 * v850-tdep.c (v850_gdbarch_init): Ditto.
778 * sh-tdep.c (sh_gdbarch_init): Ditto.
779 * s390-tdep.c (s390_gdbarch_init): Ditto.
780 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
781 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
782 * mips-tdep.c (mips_gdbarch_init): Ditto.
783 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
784 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
785 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
786 * i386-tdep.c (i386_gdbarch_init): Ditto.
787 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
788 * frv-tdep.c (frv_gdbarch_init): Ditto.
789 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
790 * cris-tdep.c (cris_gdbarch_init): Ditto.
791 * avr-tdep.c (avr_gdbarch_init): Ditto.
792
793 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
794 call_dummy_location, default is already AT_ENTRY_POINT.
795 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
796 * v850-tdep.c (v850_gdbarch_init): Ditto.
797 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
798 * sh-tdep.c (sh_gdbarch_init): Ditto.
799 * s390-tdep.c (s390_gdbarch_init): Ditto.
800 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
801 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
802 * mips-tdep.c (mips_gdbarch_init): Ditto.
803 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
805 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
806 * i386-tdep.c (i386_gdbarch_init): Ditto.
807 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
808 * frv-tdep.c (frv_gdbarch_init): Ditto.
809 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
810 * cris-tdep.c (cris_gdbarch_init): Ditto.
811 * avr-tdep.c (avr_gdbarch_init): Ditto.
812 * arm-tdep.c (arm_gdbarch_init): Ditto.
813 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
814
abc0af47
AC
8152002-11-28 Andrew Cagney <cagney@redhat.com>
816
817 * frame.h: Update comments on set_current_frame, create_new_frame,
818 flush_cached_frames, reinit_frame_cache, select_frame and
819 selected_frame.
820
ed5cedc5
AC
8212002-11-27 Andrew Cagney <cagney@redhat.com>
822
823 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
824 deprecated pc_in_call_dummy function.
825 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
826 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
827 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
828 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
829 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
830
b2a1bd4f
MH
8312002-11-26 Martin M. Hunt <hunt@redhat.com>
832
833 * Makefile.in: Remove Tix dependencies.
834 * acinclude.m4: Ditto.
835 * aclocal.m4: Ditto.
836 * configure.in: Ditto.
837 * configure: Regenerated.
838
f09cffaa
AC
8392002-11-26 Andrew Cagney <ac131313@redhat.com>
840
841 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
842 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
843 * gdbarch.c: Re-generate.
844
e92b0cc9
AC
8452002-11-26 Andrew Cagney <ac131313@redhat.com>
846
847 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
848 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
849 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
850 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
851 pc_in_call_dummy_at_entry_point.
852 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
853 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
854 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
855 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
856 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
857 pc_in_call_dummy_on_stack.
858 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
859 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
860 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
861 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
862 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
863
b4b88177
AC
8642002-11-26 Andrew Cagney <ac131313@redhat.com>
865
866 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
867 pc_in_call_dummy_before_text_end
868 (deprecated_pc_in_call_dummy_after_text_end): Rename
869 pc_in_call_dummy_after_text_end.
870 (deprecated_pc_in_call_dummy_on_stack): Rename
871 pc_in_call_dummy_on_stack.
872 (deprecated_pc_in_call_dummy_at_entry_point): Rename
873 pc_in_call_dummy_at_entry_point.
874 * m68k-tdep.c (m68k_gdbarch_init): Update.
875 * s390-tdep.c (s390_gdbarch_init): Update.
876 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
877 * vax-tdep.c (vax_gdbarch_init): Update.
878 * sparc-tdep.c (sparc_gdbarch_init): Update.
879 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
880 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
881 * i386-tdep.c (i386_gdbarch_init): Update.
882 * frv-tdep.c (frv_gdbarch_init): Update.
883 * cris-tdep.c (cris_gdbarch_init): Update.
884 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
885 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
886 (deprecated_pc_in_call_dummy_after_text_end)
887 (deprecated_pc_in_call_dummy_on_stack)
888 (deprecated_pc_in_call_dummy_at_entry_point): Update.
889 * alpha-tdep.c (alpha_gdbarch_init): Update.
890
eb784848
DJ
8912002-11-25 Daniel Jacobowitz <drow@mvista.com>
892
893 * acconfig.h (HAVE_PREAD64): Add.
894 * configure.in: Check for pread64.
895 * config.in: Regenerated.
896 * configure: Regenerated.
897 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
898 * linux-proc.c (linux_proc_xfer_memory): New function.
899 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
900
933c6fe4
DC
9012002-11-25 David Carlton <carlton@math.stanford.edu>
902
903 * dwarf2read.c (scan_partial_symbols): Descend into namespace
904 pdi's with no name.
905
158a8022
AC
9062002-11-25 Andrew Cagney <ac131313@redhat.com>
907
908 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
909 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
910
481d0f41
JB
9112002-11-25 Jim Blandy <jimb@redhat.com>
912
e8289572
JB
913 * symfile.c (init_objfile_sect_indices): New function.
914 (default_symfile_offsets): Move the section-index-initializing
915 stuff into init_objfile_sect_indices, and call that.
916
b29c9944
JB
917 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
918 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
919
13de58df
JB
920 * symfile.c (syms_from_objfile): Adjust indentation.
921
481d0f41
JB
922 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
923 || info_verbose isn't true.
924
7d6a26a7
AC
9252002-11-24 Andrew Cagney <ac131313@redhat.com>
926
927 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
928 default to get_frame_base.
929 * gdbarch.h, gdbarch.c: Regenerate.
930 * arch-utils.c (default_frame_address): Delete function.
931 * arch-utils.h (default_frame_address): Delete declaration
932
6abe1021
PM
9332002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
934
935 * varobj.c (find_frame_addr_in_frame_chain):
936 Use get_frame_base instead of FRAME_FP,
937 obvious fix.
938
c193f6ac
AC
9392002-11-19 Andrew Cagney <ac131313@redhat.com>
940
941 * frame.h (FRAME_FP): Delete macro.
942 (get_frame_base): New function declaration.
943 * frame.c (get_frame_base): New function.
944 (get_frame_id): Use ->frame.
945 (frame_find_by_id): Rewrite to use get_frame_id.
946 * blockframe.c: Use get_frame_base instead of FRAME_FP.
947 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
948 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
949 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
950 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
951 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
952 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
953
e5d2af14
AC
9542002-11-24 Andrew Cagney <ac131313@redhat.com>
955
956 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
957
931d12c6
AC
9582002-11-24 Andrew Cagney <ac131313@redhat.com>
959
960 * frame.c (set_unwind_by_pc): Revert change below, use
961 PC_IN_CALL_DUMMY.
962 (get_prev_frame): Ditto.
963
5e0f933e
AC
9642002-11-24 Andrew Cagney <ac131313@redhat.com>
965
966 * dummy-frame.c (pc_in_dummy_frame): New function.
967 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
968 (find_dummy_frame): Update comment.
969 (generic_pop_current_frame): Use get_frame_type.
970 * dummy-frame.h (pc_in_dummy_frame): Declare.
971 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
972 (create_new_frame): Use pc_in_dummy_frame.
973 (get_prev_frame): Use pc_in_dummy_frame.
974 (frame_saved_regs_register_unwind): Use get_prev_frame.
975 (deprecated_generic_get_saved_register): Use get_prev_frame.
976
7d8547c9
AC
9772002-11-23 Andrew Cagney <ac131313@redhat.com>
978
979 * blockframe.c (find_frame_addr_in_frame_chain): Move function
980 from here ...
981 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
982 (varobj_create): Note that frame ID should be used.
983 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
984
0225421b
AC
9852002-11-23 Andrew Cagney <ac131313@redhat.com>
986
987 * breakpoint.c: Include "gdb_assert.h".
988 (deprecated_frame_in_dummy): Assert that generic dummy frames are
989 not being used.
990 * Makefile.in (breakpoint.o): Update dependencies.
991 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
992 deprecated_frame_in_dummy.
993 * stack.c (print_frame_info_base): Ditto.
994 (frame_info): Ditto.
995 (print_frame_info_base): Ditto. Delete dead code.
996
32eeb91a
AS
9972002-11-23 Andreas Schwab <schwab@suse.de>
998
999 * Makefile.in (m68k_tdep_h): Define.
1000 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1001 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1002 * m68k-tdep.c: Move register number enum ...
1003 * m68k-tdep.h: ... to this new file and rename the constants from
1004 E_* to M68K_*. All uses changed.
1005 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1006 * abug-rom.c: Include "m68k-tdep.h". Use
1007 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1008 * cpu32bug-rom.c: Likewise.
1009 * dbug-rom.c: Likewise.
1010 * m68k-tdep.c: Likewise.
1011 * m68klinux-nat.c: Likewise.
1012 * remote-est.c: Likewise.
1013 * rom68k-rom.c: Likewise.
1014 * config/m68k/tm-linux.h: Likewise.
1015
9648bac8
AC
10162002-11-23 Andrew Cagney <ac131313@redhat.com>
1017
1018 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1019 dummy frame initialization code.
1020 * mips-tdep.c (mips_gdbarch_init): Ditto.
1021
91a175b3
CF
10222002-11-22 Christopher Faylor <cgf@redhat.com>
1023
1024 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1025 attach will hang.
1026
f4ded5b1
AC
10272002-11-22 Andrew Cagney <ac131313@redhat.com>
1028
1029 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1030 to default_frame_address.
1031 * gdbarch.h, gdbarch.c: Re-generate.
1032
1033 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1034 or frame_locals_address to default_frame_address.
1035 * m68k-tdep.c (m68k_gdbarch_init): Update.
1036 * i386-tdep.c (i386_gdbarch_init): Update.
1037 * frv-tdep.c (frv_gdbarch_init): Update.
1038 * sh-tdep.c (sh_gdbarch_init): Update.
1039 * v850-tdep.c (v850_gdbarch_init): Update.
1040 * sparc-tdep.c (sparc_gdbarch_init): Update.
1041 * mips-tdep.c (mips_gdbarch_init): Update.
1042 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1043 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1044 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1045
1046 * cris-tdep.c (cris_frame_args_address): Delete function.
1047 (cris_frame_locals_address): Delete function.
1048 (cris_gdbarch_init): Do not set frame_args_address or
1049 frame_locals_address.
1050
f7c1e0f3
MS
10512002-11-22 Michael Snyder <msnyder@redhat.com>
1052
1053 * thread-db.c (thread_db_load): Tell the user what's going on
1054 if dlopen fails on libthread_db.
1055
03dac896
AS
10562002-11-23 Andreas Schwab <schwab@suse.de>
1057
1058 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1059 invariant return values.
1060
7a67d0fe
AS
10612002-11-22 Andreas Schwab <schwab@suse.de>
1062
1063 * valops.c (value_slice): Move declaration of `offset' to avoid
1064 warning.
1065
5633f842
CF
10662002-11-22 Christopher Faylor <cgf@redhat.com>
1067
1068 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1069 (struct so_stuff): Add end_addr field.
1070 (register_loaded_dll): Calculate and store end address of loaded dll.
1071 (solib_address): New function.
1072 (child_solib_loaded_library_pathname): Pass carefully constructed
1073 section info to safe_symbol_file_add rather than ignoring it.
1074 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1075 DLL is loaded.
1076 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1077 (child_create_inferior): Fix a compiler warning.
1078 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1079 (solib_address): Declare new function.
1080
d85fe7f7
AS
10812002-11-22 Andreas Schwab <schwab@suse.de>
1082
1083 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1084 and FPS registers.
1085
8308e54c
DJ
10862002-11-21 Daniel Jacobowitz <drow@mvista.com>
1087
1088 * maint.c (_initialize_maint_cmds): Fix typo. From
1089 Francesco Potorti` <pot@gnu.org>.
1090
8997bd5e
AC
10912002-11-21 Andrew Cagney <cagney@redhat.com>
1092
1093 * mips-tdep.c (mips_dump_tdep): Delete references to
1094 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1095 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1096 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1097 * printcmd.c (build_address_symbolic): Delete calls to
1098 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1099 (address_info): Ditto.
1100 Fix PR gdb/773.
1101
4e87b832
KD
11022002-11-19 Klee Dienes <kdienes@apple.com>
1103 Adam Fedor <fedor@gnu.org>
1104
1105 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1106 the ability to explicitly specify the quote characters and word
1107 break characters; if NULL is specified for either, use the old
1108 behavior of using the characters used by the completer.
1109 (skip_chars): New function. Convenience wrapper around
1110 skip_quoted_chars to provide the original skip_chars behavior.
1111 * completer.h (skip_quoted_chars): Add prototype.
1112
9ba8d803
AC
11132002-11-19 Andrew Cagney <ac131313@redhat.com>
1114
1115 Problems reported by Paul Eggert.
1116 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1117
0a595803
AS
11182002-11-19 Andreas Schwab <schwab@suse.de>
1119
1120 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1121 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1122 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1123 (m68k_linux_frame_saved_pc): Move to ...
1124 * m68klinux-tdep.c: ... here. New file.
1125 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1126 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1127
e8afa4d7
AF
11282002-11-19 Adam Fedor <fedor@gnu.org>
1129
1130 * objc-exp.y: Revert to old skip_quoted usage.
1131
a76c9d72
AF
11322002-11-19 Adam Fedor <fedor@gnu.org>
1133
1134 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1135 (objc_lang_h): Define.
1136 (YYFILES): Add objc-exp.tab.c.
1137 (local-maintainer-clean): Remove objc-exp.tab.c.
1138 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1139
fd0e9d45
PM
11402002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1141
1142 * p-exp.y (typecast rule): Add automatic dereference of
1143 pascal classes if needed.
1144 (THIS): Set current_type.
1145 Automatically dereference pascal classes.
1146 (typebase rule): Add ^typebase recognition.
1147
82eeeb94
AF
11482002-11-18 Adam Fedor <fedor@gnu.org>
1149
1150 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1151 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1152 (op_name): Handle OP_OBJC_SELF.
1153 * Makefile.in (expprint.o): Add additional depends.
1154
646df18d
AF
11552002-11-18 Adam Fedor <fedor@gnu.org>
1156
1157 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1158 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1159 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1160 * objc-exp.y: Likewise.
1161
379b85df
AF
11622002-11-18 Adam Fedor <fedor@gnu.org>
1163
1164 * gdb/parser-defs.h: (struct objc_class_str): New structure
1165 for parsing ObjC classes.
1166
85cf597a
AC
11672002-11-18 Andrew Cagney <ac131313@redhat.com>
1168
1169 * stack.c (frame_relative_level): Copy function from here ...
1170 * frame.c (frame_relative_level): ...to here.
1171
5a203e44
AC
11722002-11-18 Andrew Cagney <ac131313@redhat.com>
1173
1174 * frame.h (enum frame_type): Define.
1175 (get_frame_type): Declare.
1176 (struct frame_info): Add field `type'. Delete field
1177 signal_handler_caller.
1178 (deprecated_set_frame_signal_handler_caller): Declare.
1179 * frame.c (get_frame_type): New function.
1180 (deprecated_set_frame_type): New function.
1181 (create_new_frame): Set the frame's type.
1182 (get_prev_frame): Similar.
1183 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1184 * s390-tdep.c: Ditto.
1185 * m68klinux-nat.c: Ditto.
1186 * ns32k-tdep.c: Ditto.
1187 * x86-64-linux-tdep.c: Ditto.
1188 * vax-tdep.c: Ditto.
1189 * rs6000-tdep.c: Ditto.
1190 * ppc-linux-tdep.c: Ditto.
1191 * i386-interix-tdep.c: Ditto.
1192 * mips-tdep.c: Ditto.
1193 * m68k-tdep.c: Ditto.
1194 * hppa-tdep.c: Ditto.
1195 * ia64-tdep.c: Ditto.
1196 * cris-tdep.c: Ditto.
1197 * arm-tdep.c: Ditto.
1198 * alpha-tdep.c: Ditto.
1199 * i386-tdep.c: Ditto.
1200 * stack.c: Ditto.
1201 * ada-lang.c: Ditto.
1202 * blockframe.c: Update.
1203 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1204 deprecated_set_frame_type instead of signal_handler_caller.
1205 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1206 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1207 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1208
bf4ae8b2
KD
12092002-11-18 Klee Dienes <kdienes@apple.com>
1210
1211 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1212
a672ef13
KD
12132002-11-18 Klee Dienes <kdienes@apple.com>
1214
1215 * buildsym.c (pop_context): Add comment.
1216
0c5e171a
KD
12172002-11-18 Klee Dienes <kdienes@apple.com>
1218
1219 * buildsym.h (pop_context): Convert to function, defined in
1220 buildsym.c.
1221 * buildsym.c: Include gdb_assert.h.
1222 (pop_context): Implement as C function. Add check for stack
1223 underflow.
1224 * dbxread.c (process_one_symbol): Complain and stop processing
1225 that symbol if we are already at the top of the context stack for
1226 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1227 when processing N_RBRAC.
1228
8a1f4c4c
DJ
12292002-11-16 Daniel Jacobowitz <drow@mvista.com>
1230
1231 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1232 define.
1233 (struct target_waitstatus): Add opaque definition.
1234 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1235 * exec.c (init_exec_ops): Likewise.
1236 * fork-child.c (clone_and_follow_inferior): Remove.
1237 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1238 * inferior.h (clone_and_follow_inferior): Remove prototype.
1239 * infrun.c (follow_fork_mode_both): Remove.
1240 (follow_fork_mode_kind_names): Remove commented out "both".
1241 (follow_inferior_fork): Remove follow_fork_mode_both support.
1242 * inftarg.c (child_clone_and_follow_inferior): Remove.
1243 (child_post_follow_inferior_by_clone): Remove.
1244 (init_child_ops): Don't set to_clone_and_follow_inferior
1245 or to_post_follow_inferior_by_clone.
1246 * target.c (default_clone_and_follow_inferior): Remove.
1247 (cleanup_target): Don't set to_clone_and_follow_inferior
1248 or to_post_follow_inferior_by_clone.
1249 (find_default_clone_and_follow_inferior): Remove.
1250 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1251 (debug_to_clone_and_follow_inferior): Remove.
1252 (debug_to_post_follow_inferior_by_clone): Remove.
1253 (setup_target_debug): Don't set to_clone_and_follow_inferior
1254 or to_post_follow_inferior_by_clone.
1255 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1256 and to_post_follow_inferior_by_clone.
1257 (child_clone_and_follow_inferior): Remove prototype.
1258 (child_post_follow_inferior_by_clone): Remove prototype.
1259 (target_clone_and_follow_inferior): Remove macro.
1260 (target_post_follow_inferior_by_clone): Remove macro.
1261 (find_default_clone_and_follow_inferior): Remove prototype.
1262
47932f85
DJ
12632002-11-16 Daniel Jacobowitz <drow@mvista.com>
1264
1265 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1266 inferior_has_vforked, and inferior_has_execd instead of
1267 target_has_forked, target_has_vforked, and target_has_execd.
1268 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1269 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1270 (CHILD_WAIT): Define.
1271 (child_wait): Add prototype.
1272 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1273 Add prototype.
1274 (hpux_has_vforked): Likewise, from child_has_vforked.
1275 (hpux_has_execd): Likewise, from child_has_execd.
1276 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1277 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1278 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1279 and hpux_has_syscall_event instead of the target hooks.
1280 * infrun.c (inferior_has_forked, inferior_has_vforked)
1281 (inferior_has_execd): New functions.
1282 * inftarg.c (not_same_real_pid): Remove.
1283 (child_wait): Remove references to not_same_real_pid,
1284 target_has_forked, target_has_vforked, target_has_execd,
1285 and target_has_syscall_event.
1286 (child_has_forked, child_has_vforked, child_has_execd)
1287 (child_has_syscall_event): Remove.
1288 (init_child_ops): Remove references to child_has_forked,
1289 child_has_vforked, child_has_execd, and child_has_syscall_event.
1290 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1291 (hpux_has_vforked): Likewise, from child_has_vforked.
1292 (hpux_has_execd): Likewise, from child_has_execd.
1293 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1294 * target.c (cleanup_target): Remove references to
1295 to_has_forked, to_has_vforked, to_has_execd, and
1296 to_has_syscall_event.
1297 (update_current_target): Likewise.
1298 (setup_target_debug): Likewise.
1299 (debug_to_has_forked): Remove.
1300 (debug_to_has_vforked): Remove.
1301 (debug_to_has_execd): Remove.
1302 (debug_to_has_syscall_event): Remove.
1303 * target.h (struct target_ops): Remove to_has_forked.
1304 to_has_vforked, to_has_execd, and to_has_syscall_event.
1305 (child_has_forked, child_has_vforked, child_has_execd)
1306 (child_has_syscall_event): Remove prototypes.
1307 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1308 prototypes.
1309 (target_has_forked, target_has_vforked, target_has_execd)
1310 (target_has_syscall_event): Remove macros.
1311
4088142a
DJ
13122002-11-16 Daniel Jacobowitz <drow@mvista.com>
1313
1314 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1315 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1316 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1317 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1318 * target.c (cleanup_target): Remove reference to
1319 to_can_follow_vfork_prior_to_exec.
1320 (update_current_target): Likewise.
1321 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1322 (setup_target_debug): Remove reference to
1323 to_can_follow_vfork_prior_to_exec.
1324 * target.h (struct target_ops): Remove
1325 to_can_follow_vfork_prior_to_exec.
1326 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1327 (target_can_follow_vfork_prior_to_exec): Remove definition.
1328 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1329 define.
1330 * infrun.c (follow_vfork_when_exec): Remove.
1331 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1332 (follow_exec): Likewise.
1333 (handle_inferior_event): Likewise.
1334 (keep_going): Likewise.
1335
18cde8d5
AC
13362002-11-15 Andrew Cagney <cagney@redhat.com>
1337
1338 * frame.c (generic_unwind_get_saved_register): Make static.
1339 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1340 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1341 defaults to generic_unwind_get_saved_register.
1342 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1343 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1344 * frv-tdep.c (frv_gdbarch_init): Ditto.
1345 * i386-tdep.c (i386_gdbarch_init): Ditto.
1346 * s390-tdep.c (s390_gdbarch_init): Ditto.
1347 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1348 * v850-tdep.c (v850_gdbarch_init): Ditto.
1349 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1350 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1351 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1352
a6b063af
AC
13532002-11-15 Andrew Cagney <cagney@redhat.com>
1354
1355 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1356 i386-tdep.c.
1357
f407986f
AC
13582002-11-15 Andrew Cagney <cagney@redhat.com>
1359
1360 * frame.h (sigtramp_saved_pc): Delete declaration.
1361 * blockframe.c (sigtramp_saved_pc): Delete function.
1362 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1363 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1364 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1365 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1366
f18c5a73
AC
13672002-11-15 Andrew Cagney <ac131313@redhat.com>
1368
1369 * frame.c (frame_pc_unwind): New function.
1370 (frame_saved_regs_pc_unwind): New function.
1371 (frame_register_unwind): Pass unwind_cache instead of
1372 register_unwind_cache.
1373 (set_unwind_by_pc): Add unwind_pc parameter, set.
1374 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1375 (get_prev_frame): Ditto.
1376 * frame.h (frame_pc_unwind_ftype): Declare.
1377 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1378 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1379 (frame_pc_unwind): Declare.
1380 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1381 (struct dummy_frame): Add comment mentioning that values are for
1382 previous frame.
1383 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1384 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1385 (generic_file_frame_chain_valid): Ditto.
1386 * stack.c (frame_info): Ditto.
1387
d9285969 13882002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
1389
1390 * linespec.c (locate_first_half): New function.
1391 (decode_line_1): Move code into locate_first_half.
1392
d741b867
AC
13932002-11-15 Andrew Cagney <ac131313@redhat.com>
1394
1395 * complaints.h: Add comment explaining how to eliminate a
1396 deprecated_complain call.
24382c5c 1397 * complaints.h: Fix spelling errors.
d741b867 1398
82d03c99
DC
13992002-11-15 David Carlton <carlton@math.stanford.edu>
1400
1401 * printcmd.c: Remove #include "disasm.h".
1402
c97eb5d9
AC
14032002-11-14 Andrew Cagney <ac131313@redhat.com>
1404
1405 * frame.h: Move the most relevant interface functions to the start
1406 of the file.
1407
524d7c18
AC
14082002-11-14 Andrew Cagney <ac131313@redhat.com>
1409
1410 * regcache.h (deprecated_registers): Rename registers.
1411 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1412 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1413 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1414 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1415 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1416 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1417 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1418 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1419 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1420 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1421 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1422 * v850ice.c: Update.
1423
6411e720
AC
1424Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1425
1426 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1427 NULL buffer.
1428
73937e03
AC
14292002-11-13 Andrew Cagney <cagney@redhat.com>
1430
1431 * regcache.h (deprecated_read_register_bytes): Rename
1432 read_register_bytes.
1433 (deprecated_write_register_bytes): Rename write_register_bytes.
1434 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1435 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1436 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1437 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1438 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1439 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1440 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1441 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1442 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1443 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1444 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1445 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1446 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1447 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1448
fb0cd46e
JB
14492002-11-13 Jim Blandy <jimb@redhat.com>
1450
1451 * findvar.c (read_var_value): Doc fix.
1452
2d28509a
AC
14532002-11-13 Andrew Cagney <cagney@redhat.com>
1454
1455 * regcache.c (struct regcache): Replace passthough_p with
1456 readonly_p.
1457 (regcache_xmalloc): Initialize readonly_p.
1458 (build_regcache): Initialize readonly_p.
1459 (regcache_save): New function.
1460 (regcache_restore): New function.
1461 (regcache_cpy): Re-implement using regcache_save and
1462 regcache_restore.
1463 (regcache_raw_read): Update.
1464 (regcache_cooked_read): When a read-only cache, checked for cached
1465 pseudo register values.
1466 (regcache_raw_write): Assert that the cache is not read-only.
1467 Remove code handling a non-passthrough cache.
1468 * regcache.h (regcache_save): Declare.
1469 (regcache_restore): Declare.
1470
067df2e5
AC
14712002-11-13 Andrew Cagney <cagney@redhat.com>
1472
1473 * regcache.c (struct regcache_descr): Add fields
1474 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1475 (init_legacy_regcache_descr): Compute the size of a cooked
1476 register cache and then assign that to sizeof_raw_registers. Set
1477 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1478 (init_legacy_regcache_descr): Ditto.
1479
51b1fe4e
AC
14802002-11-13 Andrew Cagney <cagney@redhat.com>
1481
1482 * regcache.c (register_buffer): Move to near start of file, update
1483 description.
1484 (regcache_raw_read): Use.
1485 (regcache_raw_write): Use.
1486 (struct regcache): Rename raw_registers to registers and
1487 raw_register_valid_p to register_valid_p.
1488 (regcache_xmalloc): Update.
1489 (regcache_xfree): Update.
1490 (register_buffer): Update.
1491 (regcache_cpy): Update.
1492 (regcache_cpy_no_passthrough): Update.
1493 (regcache_valid_p): Update.
1494 (deprecated_grub_regcache_for_registers): Update.
1495 (deprecated_grub_regcache_for_register_valid): Update.
1496 (set_register_cached): Update.
1497 (regcache_raw_write): Update.
1498
80b4c677
PM
14992002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1500
1501 * p-exp.y (name_not_typename): Use copy_name to
1502 set current_type variable for fields of THIS.
1503
0f3fafde
DJ
15042002-11-12 Daniel Jacobowitz <drow@mvista.com>
1505
1506 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1507 * monitor.c (init_base_monitor_ops): Likewise.
1508 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1509 * remote-array.c (init_array_ops): Likewise.
1510 * remote-e7000.c (init_e7000_ops): Likewise.
1511 * remote-es.c (init_es1800_ops): Likewise.
1512 (init_es1800_child_ops): Likewise.
1513 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1514 * remote-sim.c (init_gdbsim_ops): Likewise.
1515 * remote-st.c (init_st2000_ops): Likewise.
1516 * sol-thread.c (init_sol_core_ops): Likewise.
1517 (init_sol_thread_ops): Likewise.
1518 * v850ice.c (init_850ice_ops): Likewise.
1519 * win32-nat.c (init_child_ops): Likewise.
1520 * wince.c (init_child_ops): Likewise.
1521
82c0260e
AC
15222002-11-12 Andrew Cagney <ac131313@redhat.com>
1523
1524 * utils.c (gdb_realpath): Make rp a constant pointer.
1525
70d35819
AC
15262002-11-12 Andrew Cagney <ac131313@redhat.com>
1527
1528 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1529 a constant buffer; cannonicalize_file_name(); realpath() with a
1530 pathconf() defined buffer, xstrdup().
1531
9835a8b0
AC
15322002-11-12 Andrew Cagney <ac131313@redhat.com>
1533
1534 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1535 to hang2.C; hang3.c to hang3.C.
1536
3f47be5c
EZ
15372002-11-11 Elena Zannoni <ezannoni@redhat.com>
1538
1539 * findvar.c (read_var_value): Reenable TLS code.
1540
15412002-11-11 Elena Zannoni <ezannoni@redhat.com>
1542 Jim Blandy <jimb@redhat.com>
1543
1544 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1545 * target.c (update_current_target): Add
1546 to_get_thread_local_address.
1547 * target.h (to_get_thread_local_address): Export.
1548 (target_get_thread_local_address): Define.
1549 (target_get_thread_local_address_p): Define.
1550 * thread-db.c: Include solib-svr4.h.
1551 (td_thr_tls_get_addr_p): Define.
1552 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1553 (thread_db_get_thread_local_address): New function.
1554 (init_thread_db_ops): Initialize to_get_thread_local_address.
1555 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1556 * configure: Regenerate.
1557 * config.in: Regenerate.
1558
636b1a6d
DC
15592002-11-11 David Carlton <carlton@math.stanford.edu>
1560
1561 * linespec.c (set_flags): New function.
1562 (decode_line_1): Move code into set_flags.
1563
44fe14ab
DC
15642002-11-11 David Carlton <carlton@math.stanford.edu>
1565
1566 * linespec.c (decode_line_1): Move chunks of code to separate
1567 functions.
1568 (initialize_defaults): New function.
1569 (decode_indirect): New function.
1570
e6f181f5
AC
15712002-11-11 Andrew Cagney <ac131313@redhat.com>
1572
8971b011
AC
1573 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1574 instead of void_code_ptr.
1575 (sigtramp_saved_pc): Ditto.
1576
e6f181f5
AC
1577 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1578 i386_fp_regnum_p.
1579
01ad7f36
DJ
15802002-11-10 Daniel Jacobowitz <drow@mvista.com>
1581
1582 * gdbtypes.h (struct main_type): Move artificial flag out of
1583 loc. New member of ``struct field'' named static_kind. Reduce
1584 overloaded meaning of bitsize.
1585 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1586 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1587 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1588
1589 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1590 new fields.
1591 (template_to_fixed_record_type, template_to_static_fixed_type)
1592 (to_record_with_fixed_variant_part): Likewise.
1593 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1594 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1595 * dwarfread.c (struct_type, enum_type): Likewise.
1596 * hpread.c (hpread_read_enum_type)
1597 (hpread_read_function_type, hpread_read_doc_function_type)
1598 (hpread_read_struct_type): Likewise.
1599 * mdebugread.c (parse_symbol): Likewise.
1600
bf1e52be
AC
16012002-11-10 Andrew Cagney <ac131313@redhat.com>
1602
1603 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1604 * stack.c (print_frame_info_base): Update.
1605 (print_frame_info_base, frame_info): Update.
1606 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1607 (sparc_frame_saved_pc): Update.
1608 * ada-lang.c (find_printable_frame): Update.
1609 * breakpoint.c (deprecated_frame_in_dummy): Update.
1610
ce556f85
MK
16112002-11-09 Mark Kettenis <kettenis@gnu.org>
1612
1613 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1614 defined.
1615 (regmap): Extend to cover all registers.
1616 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1617 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1618 definitions.
1619 (fetch_register, sore_register): Simplify.
1620 (old_fetch_inferior_registers, old_store_inferior_registers):
1621 Remove functions.
1622 (cannot_fetch_register, cannot_store_register): Change
1623 implementation to use regmap array to decide which registers
1624 cannot be fetched/stored. This removes $orig_eax from the
1625 registers that cannot be fetched/stored.
1626 (fetch_inferior_registers): Call fetch_register directly instead
1627 of calling old_fetch_inferior_registers.
1628 (store_inferior_registers): Call store_register directly instead
1629 of calling old_store_inferior_registers.
1630 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1631 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1632 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1633
932bb524
KD
16342002-11-09 Klee Dienes <kdienes@apple.com>
1635
1636 * i387-tdep.c (i387_supply_register): When called with NULL as a
1637 buffer, mark the register as not provided (to mirror the behavior
1638 of supply_register).
1639 (i387_supply_fxsave): Ditto.
1640 (i387_supply_fsave): Ditto (inherits the behavior from
1641 i387_supply_register).
1642
ebe68b27
KD
16432002-11-09 Klee Dienes <kdienes@apple.com>
1644
1645 * blockframe.c (sigtramp_saved_pc): Use
1646 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1647 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1648 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1649
15220c65
AC
16502002-11-09 Andrew Cagney <ac131313@redhat.com>
1651
1652 * frame.c (get_prev_frame): Test prev_p to identify a previously
1653 unwound frame. Initialize prev_p.
1654 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1655 comment.
1656
95adb866
AC
16572002-11-09 Andrew Cagney <ac131313@redhat.com>
1658
1659 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1660 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1661 more comments. Zap dead code.
1662
e71ecd70
MK
16632002-11-09 Mark Kettenis <kettenis@gnu.org>
1664
1665 * infcmd.c (print_vector_info, print_float_info): Move code that
1666 checks whether the target has any registers and whether there is a
1667 selected frame up, such that it is also used if a target provides
1668 multi-arch definitions of these functions.
1669
c525330d
AC
16702002-11-08 Andrew Cagney <ac131313@redhat.com>
1671
72bdd927
AC
1672 * Makefile.in (DESTDIR): Define.
1673 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1674 prefix.
1675
c525330d
AC
1676 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1677 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1678
38c968cf
AC
16792002-11-08 Andrew Cagney <ac131313@redhat.com>
1680
1681 * i386-linux-tdep.c: Include "reggroups.h".
1682 (i386_linux_register_reggroup_p): New function.
1683 (i386_linux_init_abi): Set register_reggroup_p to
1684 i386_linux_register_reggroup_p.
1685 * i386-tdep.h (i386_register_reggroup_p): Declare.
1686 * i386-tdep.c: Include "reggroups.h".
1687 (i386_init_reggroups): New function.
1688 (i386_add_reggroups): New function.
1689 (i386_register_reggroup_p): New function.
1690 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1691 (_initialize_i386_tdep): Call i386_init_reggroups.
1692 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1693 specific reggroups.
1694
19e33363
MK
16952002-11-09 Mark Kettenis <kettenis@gnu.org>
1696
371a6e84
MK
1697 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1698 request that's available in *BSD.
1699
94ba925a
MK
1700 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1701
19e33363
MK
1702 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1703 FDOFF_REGNUM.
1704
8779790c
AC
17052002-11-08 Andrew Cagney <ac131313@redhat.com>
1706
1707 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1708 * dummy-frame.c (find_dummy_frame): Rename
1709 generic_find_dummy_frame, make static. Return the dummy frame
1710 instead of the regcache.
1711 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1712 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1713 (dummy_frame_register_unwind): Rename
1714 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1715 * dummy-frame.h (dummy_frame_register_unwind): Rename
1716 generic_call_dummy_register_unwind.
1717
8674b74f
MK
17182002-11-08 Mark Kettenis <kettenis@gnu.org>
1719
1720 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1721 except the inclusion of "i386/tm-i386.h", to...
1722 * config/i386/nm-i386v42mp.h: ...here.
1723 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1724
4c1e7e9d
AC
17252002-11-08 Andrew Cagney <ac131313@redhat.com>
1726
1727 * Makefile.in (frame.o): Update dependencies.
1728 * blockframe.c (current_frame, frame_obstack_alloc)
1729 (frame_saved_regs_zalloc, get_current_frame)
1730 (set_current_frame, create_new_frame)
1731 (set_unwind_by_pc, get_next_frame)
1732 (flush_cached_frames, reinit_frame_cache)
1733 (frame_saved_regs_register_unwind)
1734 (deprecated_generic_get_saved_register)
1735 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1736 (_initialize_blockframe): Move frame code from here...
1737 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1738 "annotate.h" and "dummy-frame.h".
1739 (_initialize_frame): New function.
1740
921e78cf
JB
17412002-11-08 Jim Blandy <jimb@redhat.com>
1742
1743 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1744 when we finish a function a context.
1745 * buildsym.h (outermost_context_p): New macro.
1746 (Bug analyzed by David Edelsohn.)
1747
9c1412c1
AC
17482002-11-08 Andrew Cagney <ac131313@redhat.com>
1749
1750 * blockframe.c: Include "dummy-frame.h".
1751 (struct dummy_frame, dummy_frame_stack)
1752 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1753 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1754 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1755 (generic_save_call_dummy_addr, generic_pop_current_frame)
1756 (generic_pop_dummy_frame, generic_fix_call_dummy)
1757 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1758 dummy frame code from here...
1759 * dummy-frame.c: ...to here. New file.
1760 * dummy-frame.h: New file.
1761 (generic_call_dummy_register_unwind): Declare.
1762 (generic_find_dummy_frame): Declare.
1763 * Makefile.in (SFILES): Add dummy-frame.c.
1764 (dummy-frame.o): Specify dependencies.
1765 (dummy_frame_h): Define.
1766 (COMMON_OBS): Add dummy-frame.o.
1767 (blockframe.o): Update dependencies.
1768
208d8187
JB
17692002-11-08 Jim Blandy <jimb@redhat.com>
1770
1771 * dwarf2read.c (read_func_scope): Restore local_symbols and
1772 param_symbols after we finish the function context. (Based on a
1773 patch from David Edelsohn.)
1774
413dad4d
DC
17752002-11-08 David Carlton <carlton@math.stanford.edu>
1776
1777 * linespec.c (symbol_found): New function.
1778 (minsym_found): New function.
1779 (decode_line_1): Separate out some code into separate functions.
1780
5512c44a
JB
17812002-11-08 Joel Brobecker <brobecker@gnat.com>
1782
1783 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1784 the benefit of the interix target.
1785 * i386-tdep.h (i386_frameless_signal_p): Declare.
1786
1b33ef47
AC
17872002-11-08 Andrew Cagney <ac131313@redhat.com>
1788
1789 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1790 declaration that snuck in from change below.
1791
23a34459
AC
17922002-11-06 Andrew Cagney <cagney@redhat.com>
1793
1794 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1795 all callers.
1796 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1797 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1798 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1799 (i386_mxcsr_regnum_p): new function. Use instead of
1800 MXCSR_REGNUM_P.
1801 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1802 (i386_sse_regnum_p): Declare.
1803 (i386_mxcsr_regnum_p): Declare.
1804 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1805 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1806 (IS_FP_REGNUM): Update definition.
1807 (IS_FPU_CTRL_REGNUM): Update definition..
1808 (IS_SSE_REGNUM): Update definition..
1809 * i386v-nat.c (register_u_addr): Update.
1810 * go32-nat.c (fetch_register): Update.
1811 (store_register): Update.
1812
d709c020
JB
18132002-11-07 Joel Brobecker <brobecker@gnat.com>
1814
1815 Preparation work to convert the hppa targets to multiarch partial.
1816
1817 * hppa-tdep.c: Add new functions replacing macro bodies from
1818 config/pa/tm-hppa.h. These function will be used to initialize
1819 the gdbarch structure. Import some comments from tm-hppa.h,
1820 and place them where appropriate, to avoid loosing them when
1821 we cleanup this file.
1822 (hppa_reg_struct_has_addr): New function.
1823 (hppa_inner_than): New function.
1824 (hppa_stack_align): New function.
1825 (hppa_pc_requires_run_before_use): New function.
1826 (hppa_instruction_nullified): New function.
1827 (hppa_register_byte): New function.
1828 (hppa_register_virtual_type): New function.
1829 (hppa_store_struct_return): New function.
1830 (hppa_cannot_store_register): New function.
1831 (hppa_frame_args_address): New function.
1832 (hppa_frame_locals_address): New function.
1833 (hppa_smash_text_address): New function.
1834 (hppa_coerce_float_to_double): New function. Requires the inclusion
1835 of "language.h".
1836
1837 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1838
1839 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1840 gdbarch-eligible macro to a call to the new associated function
1841 created in hppa-tdep.c.
1842 (INNER_THAN): Likewise.
1843 (STACK_ALIGN): Likewise.
1844 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1845 (INSTRUCTION_NULLIFIED): Likewise.
1846 (REGISTER_BYTE): Likewise.
1847 (REGISTER_VIRTUAL_TYPE): Likewise.
1848 (STORE_STRUCT_RETURN): Likewise.
1849 (CANNOT_STORE_REGISTER): Likewise.
1850 (FRAME_ARGS_ADDRESS): Likewise.
1851 (FRAME_LOCALS_ADDRESS): Likewise.
1852 (SMASH_TEXT_ADDRESS): Likewise.
1853 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1854 (ABOUT_TO_RETURN): Delete, as no longer used.
1855
83c31e7d
FN
18562002-11-07 Fernando Nasser <fnasser@redhat.com>
1857
1858 * printcmd.c (disassemble_command): Remove obsolete function.
1859 (_initialize_printcmd): Do not create disassemble command here.
1860 * cli/cli-cmds.c (disassemble_command): New function. Implements
1861 disassemble command.
1862 (init_cli_cmds): Create disassemble command here instead.
1863
0ec30a36
AC
18642002-11-07 Andrew Cagney <ac131313@redhat.com>
1865
1866 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1867
e600bd34
AC
18682002-11-07 Andrew Cagney <ac131313@redhat.com>
1869
1870 * regcache.h (regcache_cooked_read_using_offset_hack)
1871 (regcache_cooked_write_using_offset_hack): Delete declarations.
1872 (register_changed): Delete declaration.
1873 * regcache.c (regcache_cooked_read_using_offset_hack)
1874 (regcache_cooked_write_using_offset_hack): Delete functions.
1875 (cooked_xfer_using_offset_hack): Delete function.
1876 (register_changed): Delete function.
1877
568f8739
JB
18782002-11-07 Jim Blandy <jimb@redhat.com>
1879
1880 * macroscope.c: #include "complaints.h".
1881 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1882 but not in the macro table.
1883 * Makefile.in (macroscope.o): Record dependency.
1884
b0718b7b
JB
18852002-11-07 Joel Brobecker <brobecker@gnat.com>
1886
1887 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1888
2b9e5f3f
AC
18892002-11-07 Andrew Cagney <ac131313@redhat.com>
1890
1891 * regcache.c (deprecated_registers_fetched): Update.
1892 * regcache.h (deprecated_registers_fetched): Rename
1893 registers_fetched.
1894 * remote-vxsparc.c (vx_read_register): Update.
1895 * remote-vxmips.c (vx_read_register): Update.
1896 * remote-vx68.c (vx_read_register): Update.
1897 * irix5-nat.c (fetch_core_registers): Update.
1898 * mipsm3-nat.c (fetch_inferior_registers): Update.
1899 * sun3-nat.c (fetch_inferior_registers): Update.
1900 * symm-nat.c (fetch_inferior_registers): Update.
1901 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1902 (fetch_core_registers): Update.
1903 (fetch_kcore_registers): Update.
1904 * mips-nat.c (fetch_inferior_registers): Update.
1905 * corelow.c (get_core_registers): Update.
1906 * a68v-nat.c (fetch_inferior_registers): Update.
1907
e6e68f1f
JB
19082002-11-06 Joel Brobecker <brobecker@gnat.com>
1909
1910 Put in place the framework necessary for multiarching the hppa targets.
1911 * hppa-tdep.c (hppa_gdbarch_init): New function.
1912 (hppa_dump_tdep): New function.
1913 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1914 tdep structure dumper.
1915 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1916 until the multi-arching conversion has partially been completed.
1917
492254e9
AC
19182002-11-06 Andrew Cagney <ac131313@redhat.com>
1919
1920 * valops.c (value_assign): Merge lval_register case into
1921 lval_reg_frame_relative. Use frame_register and
1922 regcache_cooked_write instead of get_saved_register and
1923 write_register_bytes. After flushing the register cache, try to
1924 re-select the selected frame.
1925
8262ee23
AC
19262002-11-06 Andrew Cagney <ac131313@redhat.com>
1927
1928 * regcache.h (deprecated_register_valid): Rename register_valid.
1929 * regcache.c: Update.
1930 * ia64-aix-nat.c: Update.
1931 * i386gnu-nat.c: Update.
1932 * alpha-nat.c: Update.
1933 * sparc-nat.c: Update.
1934 * lynx-nat.c: Update.
1935 * remote-mips.c: Update.
1936
4facf7e8
JB
19372002-11-06 Joel Brobecker <brobecker@gnat.com>
1938
1939 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1940 to end of file, to be more consistent with the pratice followed
1941 by other targets.
1942
f9418c0f
AC
19432002-11-06 Andrew Cagney <ac131313@redhat.com>
1944
1945 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1946 (print_float_info): Print registers in float_reggroup.
1947 (print_vector_info): Print registers in vector_reggroup.
1948 (default_print_registers_info): When all, print registers in
1949 all_reggroup. Otherwize, print registers in general_reggroup.
1950 (registers_info): Rewrite. Add support for register groups.
1951 Eliminate a goto.
1952
3fe235a7
EZ
19532002-11-06 Elena Zannoni <ezannoni@redhat.com>
1954
1955 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1956 ages.
1957 (symtab_symbol_info): Remove eons old ifdeffed out code.
1958 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1959 command.
1960
ef944135
TR
19612002-11-06 Theodore A. Roth <troth@openavr.org>
1962
1963 * c-exp.y: Add missing semi-colons.
1964 * f-exp.y: Add missing semi-colons.
1965 * m2-exp.y: Add missing semi-colons.
1966 * p-exp.y: Add missing semi-colons.
1967 Add empty action to start rule to avoid a type clash error when
1968 building with bison >= 1.50.
1969
f8302a57
JB
19702002-11-06 Jim Blandy <jimb@redhat.com>
1971
1972 * macrotab.h (struct macro_source_file): Doc fix.
1973
6e382aa3
JJ
19742002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1975
1976 * varobj.c (child_exists, cplus_number_of_children): Change
1977 STREQ macro references to strcmp.
1978 (cplus_name_of_child): Change code to handle the fact that
1979 fields are not necessarily contiguous with regards to their
1980 access control. This is a fix for PR gdb/792.
1981
a216a322
AC
19822002-11-05 Andrew Cagney <ac131313@redhat.com>
1983
1984 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1985 * gdbarch.h, gdbarch.c: Regnerate.
1986 * frame.h (frame_register): Declare.
1987 * frame.c (frame_register): New function.
1988 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1989 GET_SAVED_REGISTER, otherwize call
1990 generic_unwind_get_saved_register.
1991 (frame_register_read): Use frame_register instead of
1992 get_saved_register.
1993
7d5b6fdd
EZ
19942002-11-05 Elena Zannoni <ezannoni@redhat.com>
1995
1996 From Jim Ingham <jingham@apple.com>:
1997 * event-top.c (gdb_disable_readline): New function.
1998 (_initialize_event_loop): Move comment.
1999
b7c64260
EZ
20002002-11-05 Elena Zannoni <ezannoni@redhat.com>
2001
2002 * event-loop.c (start_event_loop): Add comment.
2003 Update copyright.
2004
c2e1b8f2
AC
20052002-11-05 Andrew Cagney <ac131313@redhat.com>
2006
2007 * infcmd.c (default_print_registers_info): Do not call
2008 PRINT_REGISTER_HOOK.
2009
87647bb0
AC
20102002-11-05 Andrew Cagney <ac131313@redhat.com>
2011
2012 * sparc-tdep.c (sparc_print_register_hook): Make static.
2013 (sparc_print_registers_info): New function.
2014 (sparc_do_registers_info): New function.
2015 (sparclet_print_registers_info): New function.
2016 (sparclet_do_registers_info): New function.
2017 (do_sparc_print_registers_info): New function.
2018 (sparc_print_registers): New static function, clone of infcmd.c's
2019 default_print_registers_info.
2020 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2021 (sparclet_do_registers_info): Declare.
2022 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2023 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2024 Re-define.
2025 (sparc_do_registers_info): Declare.
2026 (PRINT_REGISTER_HOOK): Delete macro.
2027 (sparc_print_register_hook): Delete declaration.
2028
8155455b
DC
20292002-11-05 David Carlton <carlton@math.stanford.edu>
2030
2031 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2032 functions.
2033 (lookup_symbol_aux_local): New function.
2034 (lookup_symbol_aux_symtabs): New function.
2035 (lookup_symbol_aux_psymtabs): New function.
2036
29924310
DC
20372002-11-05 David Carlton <carlton@math.stanford.edu>
2038
2039 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2040 previous values of 'objfile' and 'block'.
2041
cc303028
PM
20422002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2043
2044 * values.c (value_change_enclosing_type): Set
2045 enclosing_type field correctly also for the case where
2046 more memory needs to be allocated.
2047
1d70089a
MK
20482002-11-03 Mark Kettenis <kettenis@gnu.org>
2049
f16a25ae
MK
2050 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2051 of puts_filtered.
2052
1d70089a
MK
2053 * i387-tdep.c (i387_print_float_info): Replace calls to
2054 register_read and deprecated_read_register_gen with calls to
2055 frame_register_read, and make the necessary adjustments to the
2056 surrounding code.
2057
7e20f3fb
AC
20582002-11-02 Andrew Cagney <ac131313@redhat.com>
2059
2060 * gdbarch.sh (register_reggroup_p): Allow default value.
2061 * gdbarch.h, gdbarch.c: Regenerate.
2062
192dbe33
AC
20632002-11-02 Andrew Cagney <ac131313@redhat.com>
2064
2065 * regcache.h: Add coment indicating replacements for deprecated
2066 functions.
2067
b59ff9d5
AC
20682002-11-02 Andrew Cagney <cagney@redhat.com>
2069
2070 * reggroups.h, reggroups.c: New files.
2071 * regcache.c: Include "reggroups.h".
2072 (enum regcache_dump_what): Add `regcache_dump_groups'.
2073 (regcache_dump): Contract size of the "Type" column. When
2074 specified, dump the register's groups.
2075 (maintenance_print_register_groups): New function.
2076 (_initialize_regcache): Add command `maint print register-groups'.
2077 * Makefile.in (COMMON_OBS): Add reggroups.o
2078 (SFILES): Add reggroups.c.
2079 (reggroups_h): Define.
2080 (regcache.o, gdbarch.o): Update dependencies.
2081 (reggroups.o): Specify dependencies.
2082 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2083 Add opaque declaration for `struct reggroup' in generated .h file.
2084 Include "reggroups.h" in generated .c file.
2085 gdbarch.h, gdbarch.c: Re-generate.
2086
4caf0990
AC
20872002-11-02 Andrew Cagney <cagney@redhat.com>
2088
2089 * regcache.h (deprecated_read_register_gen): Rename
2090 read_register_gen.
2091 (deprecated_write_register_gen): Rename write_register_gen.
2092 * i387-tdep.c: Update.
2093 * x86-64-linux-nat.c: Update
2094 * wince.c: Update.
2095 * thread-db.c: Update.
2096 * win32-nat.c: Update.
2097 * mips-tdep.c: Update.
2098 * d10v-tdep.c: Update.
2099 * cris-tdep.c: Update.
2100 * remote-sim.c: Update.
2101 * remote-rdi.c: Update.
2102 * remote-rdp.c: Update.
2103 * frame.c: Update.
2104 * target.c: Update.
2105 * blockframe.c: Update.
2106 * x86-64-tdep.c: Update.
2107 * xstormy16-tdep.c: Update.
2108 * sh-tdep.c: Update.
2109 * s390-tdep.c: Update.
2110 * rs6000-tdep.c: Update.
2111 * sparc-tdep.c: Update.
2112 * i386-tdep.c: Update.
2113 * dwarf2cfi.c: Update.
2114 * regcache.c: Update.
2115
7a7adcdf
JB
21162002-11-01 Joel Brobecker <brobecker@gnat.com>
2117
2118 New interix-specific files:
2119 * config/i386/nm-interix.h: New file.
2120 * config/i386/interix.mh: New file.
2121 * config/i386/interix.mt: New file.
2122 * i386-interix-nat.c: New file.
2123 * i386-interix-tdep.c: New file.
2124
bdcdd535
AC
21252002-11-01 Andrew Cagney <cagney@redhat.com>
2126
2127 * frame.h (deprecated_generic_get_saved_register): Rename
2128 generic_get_saved_register.
2129 * blockframe.c (deprecated_generic_get_saved_register): Update.
2130 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2131 (xstormy16_frame_saved_register): Update.
2132 * sh-tdep.c (sh_gdbarch_init): Update.
2133 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2134 * ia64-tdep.c (ia64_get_saved_register): Update.
2135 * cris-tdep.c (cris_gdbarch_init): Update.
2136 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2137 * arm-tdep.c (arm_gdbarch_init): Update.
2138
2a4b7c45
DJ
21392002-10-31 Daniel Jacobowitz <drow@mvista.com>
2140
2141 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2142
ef17e74b
DJ
21432002-10-31 Daniel Jacobowitz <drow@mvista.com>
2144
2145 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2146 trampolines in sigaction.
2147
4904ba5b
AC
21482002-10-31 Andrew Cagney <cagney@redhat.com>
2149
2150 * h8300-tdep.c: Include "gdb_assert.h".
2151 (h8300_print_register): Add gdbarch, file and frame parameters.
2152 Use frame_read_unsigned_register to read the register's value.
2153 Use fprintf_filtered to display output.
2154 (h8300_print_registers_info): Replace h8300_do_registers_info.
2155 (h8300_gdbarch_init): Set print_registers_info.
2156
f908a0eb
AC
21572002-10-31 Andrew Cagney <cagney@redhat.com>
2158
2159 * frame.c (frame_read_unsigned_register): New function.
2160 (frame_read_signed_register): New function.
2161 * frame.h (frame_read_unsigned_register): Declare.
2162 (frame_read_signed_register): Declare.
2163
c5646e11
AC
21642002-10-31 Andrew Cagney <cagney@redhat.com>
2165
2166 * h8500-tdep.c (h8500_print_registers_info): New static function,
2167 clone of infcmd.c's default_print_registers_info.
2168 (h8500_do_registers_info): New funtion.
2169 (h8500_print_register_hook): Rename print_register_hook, make
2170 static.
2171
2172 * config/h8500/tm-h8500.h: Update copyright.
2173 (DEPRECATED_DO_REGISTERS_INFO): Define.
2174 (h8500_do_registers_info: Declare.
2175 (PRINT_REGISTER_HOOK): Delete macro.
2176 (print_register_hook): Delete function.
2177
0bdd672b
AC
21782002-10-31 Andrew Cagney <cagney@redhat.com>
2179
2180 * z8k-tdep.c (z8k_print_register_hook): Make static.
2181 (z8k_print_registers_info): New static function, clone of
2182 infcmd.c's default_print_registers_info.
2183 (z8k_do_registers_info): New function. Wrap
2184 z8k_print_registers_info.
2185 * config/z8k/tm-z8k.h: Update copyright.
2186 (PRINT_REGISTER_HOOK): Delete macro.
2187 (z8k_print_register_hook): Delete declaration.
2188 (DEPRECATED_DO_REGISTERS_INFO): Define.
2189 (z8k_do_registers_info): Declare.
2190
bf9c25dc
JB
21912002-10-30 Joel Brobecker <brobecker@gnat.com>
2192
2193 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2194 as this is already provided by value.h, and was actually causing
2195 a compilation error because of a conflict in parameter type
2196 declaration due to a missing const keyword.
2197 (low_text_segment_addres): Fix a compilation warning.
2198
2c665b51
DJ
21992002-10-29 Daniel Jacobowitz <drow@mvista.com>
2200
2201 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2202 registers without a name.
2203 (mips_linux_cannot_store_register): Don't store registers without
2204 a name.
2205
e70ea697
DC
22062002-10-28 David Carlton <carlton@math.stanford.edu>
2207
2208 * symtab.c (find_addr_symbol): Delete. (It was already commented
2209 out.)
2210 * symtab.h: Delete prototype for find_addr_symbol.
2211
903ad3a6
AC
22122002-10-26 Andrew Cagney <cagney@redhat.com>
2213
2214 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2215 DO_REGISTERS_INFO.
2216 gdbarch.h, gdbarch.c: Re-generate.
2217 * infcmd.c (default_print_registers_info): Update reference.
2218 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2219 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2220 * sh-tdep.c (sh_gdbarch_init): Ditto.
2221 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2222 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2223
ab91194c
MK
22242002-10-26 Mark Kettenis <kettenis@gnu.org>
2225
e3033f15
MK
2226 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2227 cfi_init_extra_frame_info.
2228 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2229 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2230
b83b026c
MK
2231 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2232 target where necessary. Add more comments and remove the ones
2233 that don't provide any useful information.
2234
267bf4bb
MK
2235 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2236 deprecated_read_register_dummy with
2237 frame_unwind_unsigned_register.
2238
751f1375
MK
2239 * i386-tdep.c (i386_extract_struct_value_address): Use
2240 regcache_raw_read_unsigned instead of
2241 regcache_cooked_read_unsigned since we know that the register
2242 we're reading isn't a pseudo register. Rename variable 'val' into
2243 the more descriptive 'addr'.
2244
26abbdc4
MK
2245 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2246 (x86_64_push_return_address): Add comment.
2247 (x86_64_pop_frame): Make static.
2248 (examine_argument): Clarify comment.
2249 (x86_64_skip_prologue): Make prolog_expact variable static.
2250
9f1549cc
MK
2251 * dwarf2cfi.c: Fix some formatting problems.
2252 (context_cpy, read_encoded_pointer): Clarify comments.
2253
ab91194c
MK
2254 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2255 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2256 i386 target back into x86_64_gdbarch_init. Add some comments and
2257 remove meaningless ones.
2258
72367fb4
AC
22592002-10-25 Andrew Cagney <cagney@redhat.com>
2260
2261 * complaints.h (struct deprecated_complaint): Rename `struct
2262 complaint'.
2263 * complaints.c (complain): Update.
2264 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2265 incorrect comment indicating that "symfile.h" was being included
2266 for the `struct complaint' definition.
2267 * remote-vx.c: Update.
2268 * objc-lang.c: Update.
2269 * xcoffread.c: Update.
2270 * hpread.c: Update.
2271 * mdebugread.c: Update.
2272 * stabsread.c: Update.
2273 * dwarf2read.c: Update.
2274 * dwarfread.c: Update.
2275 * elfread.c: Update.
2276 * coffread.c: Update.
2277 * stabsread.h: Update.
2278 * dbxread.c: Update.
2279 * buildsym.c: Update.
2280 * gdbtypes.c: Update.
2281 * macrotab.c: Update.
2282
1f2baacc
MK
22832002-10-25 Mark Kettenis <kettenis@gnu.org>
2284
0c1a73d6
MK
2285 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2286 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2287 (x86_64_init_abi): ...new function.
2288
6aee4d54 2289 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
2290 * i386v-nat.c: Include "i386-tdep.h".
2291
8f9cbe01
AC
22922002-10-25 Andrew Cagney <cagney@redhat.com>
2293
5f11f355
AC
2294 * gdbtypes.c (address_space_name_to_int): Update.
2295 (address_space_int_to_name): Update.
2296 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2297 multi-arch predicate.
2298 (address_class_name_to_type_flags): Ditto.
2299 * gdbarch.h, gdbarch.c: Re-generate.
2300
8f9cbe01
AC
2301 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2302
e8d96a5d
MH
23032002-10-24 Martin M. Hunt <hunt@redhat.com>
2304
2305 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2306
fe39c653
EZ
23072002-10-24 Elena Zannoni <ezannoni@redhat.com>
2308
2309 * symtab.h (INIT_SAL): Delete macro.
2310 (init_sal): Export.
2311 * symtab.c (init_sal): New function.
2312
2313 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2314 to init_sal function call.
2315 (find_sal_from_funcs_and_line): Ditto.
2316 (all_sals_for_line): Ditto.
2317 * breakpoint.c (create_internal_breakpoint): Ditto.
2318 (create_fork_vfork_event_catchpoint): Ditto.
2319 (create_exec_event_catchpoint): Ditto.
2320 (parse_breakpoint_sals): Ditto.
2321 (watch_command_1): Ditto.
2322 (handle_gnu_4_16_catch_command): Ditto.
2323 (clear_command): Ditto.
2324 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2325 * infcmd.c (run_stack_dummy): Ditto.
2326 * infrun.c (process_event_stop_test): Ditto.
2327 (check_sigtramp2): Ditto.
2328 (step_over_function): Ditto.
2329 * linespec.c (decode_line_2): Ditto.
2330 (decode_line_1): Ditto.
2331 * source.c (line_info): Ditto.
2332 * symtab.c (find_pc_sect_line): Ditto.
2333
baed091b
ML
23342002-10-24 Michal Ludvig <mludvig@suse.cz>
2335
2336 * dwarf2cfi.c (struct context)
2337 (struct context_reg): Moved to dwarf2cfi.h
2338 (context_alloc, frame_state_alloc, context_cpy):
2339 Made extern instead of static, removed prototypes.
2340 * dwarf2cfi.h (struct context)
2341 (struct context_reg): New, moved from dwarf2cfi.c
2342 (context_alloc, frame_state_alloc, context_cpy):
2343 New prototypes.
2344 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2345 Changed from static to extern.
2346 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2347 (LINUX_SIGCONTEXT_FP_OFFSET)
2348 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2349 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2350 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2351 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2352 set_gdbarch_*() calls now use x86-64 specific functions
2353 instead of DWARF2 CFI ones.
2354 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2355 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2356 (x86_64_init_extra_frame_info): New prototypes.
2357
c38da1af
DC
23582002-10-23 David Carlton <carlton@math.stanford.edu>
2359
2360 * linespec.c: #include "parser-defs.h".
2361 Delete prototype for find_template_name_end.
2362 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2363
fb9b6b35
JJ
23642002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2365
2366 * NEWS: add recent mi fixes.
2367 * varobj.c (struct varobj): Add new "updated" flag.
2368 (new_variable): Default "updated" flag to 0.
2369 (varobj_set_value): Set "updated" flag to 1 if value
2370 changes.
2371 (varobj_update): Check varobj "updated" flag before
2372 comparing old and refreshed values. Fix for
2373 PR gdb/702.
2374
8da065d5
DC
23752002-10-23 David Carlton <carlton@math.stanford.edu>
2376
2377 * parse.c (parse_exp_1): Use BLOCK_START.
2378 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2379 SYMBOL_BLOCK_VALUE.
2380 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2381
87f2f08c
DC
23822002-10-23 David Carlton <carlton@math.stanford.edu>
2383
2384 * symtab.c: Delete cplusplus_hint.
2385 Delete prototype for find_template_name_end.
2386
88cda038
EZ
23872002-10-23 Elena Zannoni <ezannoni@redhat.com>
2388
2389 * symtab.h: Update comment.
2390
2625d86c
MS
23912002-10-23 Michael Snyder <msnyder@redhat.com>
2392
2393 * printcmd.c (address_info): Restore quotes in output.
2394 * valops.c (value_of_local): Restore quotes in error message.
2395
9cc0d196
EZ
23962002-10-23 Elena Zannoni <ezannoni@redhat.com>
2397
2398 * symtab.c (symbol_demangled_name): New function.
2399 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2400 turning most of it into a function.
2401 (symbol_demangled_name): Export.
2402
19de93d0
MS
24032002-10-23 Michael Snyder <msnyder@redhat.com>
2404
2405 * valops.c (value_of_local): Restore quotes in error message.
2406
89aad1f9
EZ
24072002-10-23 Elena Zannoni <ezannoni@redhat.com>
2408
2409 * symtab.c (symbol_init_language_specific): New function.
2410 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2411 turning most of it into a function.
2412 (symbol_init_language_specific): Export.
2413
d9fa45fe
DC
24142002-10-23 David Carlton <carlton@math.stanford.edu>
2415
2416 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2417 (dwarf_attr_name): Ditto.
2418 (dwarf_type_encoding_name): Ditto.
2419 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2420 (process_die): Handle DW_TAG_namespace,
2421 DW_TAG_imported_declaration, DW_TAG_imported_module.
2422 (read_namespace): New function.
2423
1045b512
JB
24242002-10-22 Joel Brobecker <brobecker@gnat.com>
2425
2426 * configure.in: Define NEW_PROC_API on Interix too.
2427 * configure: Regenerate.
2428
24292002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
2430
2431 * configure: Regenerate using the proper version of autoconf.
2432
3987b9d4
EZ
24332002-10-21 Elena Zannoni <ezannoni@redhat.com>
2434
2435 * findvar.c (read_var_value): Temporarily disable TLS code, until
2436 complete TLS support is added.
2437
9d774e44
EZ
24382002-10-21 Jim Blandy <jimb@redhat.com>
2439 Elena Zannoni <ezannoni@redhat.com>
2440
2441 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2442 for thread local storage locations.
2443 (struct symbol): Add objfile field.
2444 (SYMBOL_OBJFILE): Define.
2445 * dwarf2read.c (is_thread_local): New static variable.
2446 (new_symbol): If variable is in thread local fill in address class
2447 and objfile appropriately.
2448 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2449 stack operation.
2450 * printcmd.c (address_info): Print the information for thread
2451 local storage variable.
2452 * findvar.c (read_var_value): In case of thread local variable,
2453 defer to the target vector code to compute address.
2454
bc4a16ae
EZ
24552002-10-21 Elena Zannoni <ezannoni@redhat.com>
2456
2457 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2458 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2459
407caf07
EZ
24602002-10-21 Elena Zannoni <ezannoni@redhat.com>
2461
2462 * symtab.h (address_class): Rename
2463 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2464 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2465 * printcmd.c (address_info): Ditto.
2466 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2467
005328e3
MK
24682002-10-20 Mark Kettenis <kettenis@gnu.org>
2469
afdb036a
MK
2470 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2471 DBREG_DRX macro to acces debug registers.
2472
ca02e098
MK
2473 * Makefile.in (i386obsd-tdep.o): New target.
2474
03cc47f7
MK
2475 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2476 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2477
005328e3
MK
2478 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2479 * config/i386/obsd.mt: New file.
2480 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2481 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2482 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2483 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2484 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2485 * i386obsd-tdep.c: New file.
2486
9c96f9f2
AF
24872002-10-19 Adam Fedor <fedor@gnu.org>
2488
2489 * objc-exp.y (name_not_typename): Fix invalid comment.
2490
ce1ed485
MK
24912002-10-20 Mark Kettenis <kettenis@gnu.org>
2492
2493 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2494 to allocate partial syms and macro byte caches.
2495
1efc7aaa
DC
24962002-10-18 David Carlton <carlton@math.stanford.edu>
2497
2498 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2499
7e1d63ec
AF
25002002-10-18 Adam Fedor <fedor@gnu.org>
2501
2502 * stabsread.c (find_name_end): New function.
2503 (define_symbol): Use it.
2504
6e8d29a9
DJ
25052002-10-18 Daniel Jacobowitz <drow@mvista.com>
2506
2507 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2508 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2509 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2510 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2511
1efc7aaa 25122002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2513
2514 * symfile.h: Add opaque declaration for struct obstack.
2515 Declare obsavestring to take a const char *.
2516 * symfile.c (obsavestring): Make first argument a const char *.
2517
1aeae86e
AF
25182002-10-16 Adam Fedor <fedor@gnu.org>
2519
2520 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2521 names when matching breakpoints in current file.
2522
8b2dbe47
KB
25232002-10-16 Kevin Buettner <kevinb@redhat.com>
2524
2525 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2526 (read_tag_pointer_type): Add address class support.
2527 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2528 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2529 New methods.
2530 * gdbarch.h, gdbarch.c: Regenerate.
2531 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2532 (make_type_with_address_space, recursive_type_dump): Add address
2533 class support.
2534 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2535 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2536 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2537
74451869
KD
25382002-10-16 Klee Dienes <kdienes@apple.com>
2539
2540 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2541 to get the last character of a char[] buffer, not
2542 name[sizeof(vptr_name)-1].
2543
ff4cb3e8
AF
25442002-10-14 Adam Fedor <fedor@gnu.org>
2545
2546 * symtab.h: New objc_specific struct.
2547 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2548 (SYMBOL_DEMANGLED_NAME): Likewise.
2549
da2cf7e0
AF
25502002-10-14 Adam Fedor <fedor@gnu.org>
2551
2552 * symfile.c (init_filename_language_table): Add ObjC file extension.
2553
4a351cef
AF
25542002-10-14 Adam Fedor <fedor@gnu.org>
2555
2556 * utils.c (puts_filtered_tabular): New function.
2557 (fprintf_symbol_filtered): Get ObjC demangled name.
2558 * defs.h (puts_filtered_tabular): Declared.
2559
9750e763
KB
25602002-10-14 Kevin Buettner <kevinb@redhat.com>
2561
2562 * c-lang.h (c_type_print_varspec_prefix): Delete.
2563 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2564 ``need_post_space'' parameter. Adjust all callers.
2565
eee771c1
DJ
25662002-10-14 Daniel Jacobowitz <drow@mvista.com>
2567
2568 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2569 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2570 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2571 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2572
46c82446
AF
25732002-10-13 Adam Fedor <fedor@gnu.org>
2574
2575 * source.c (print_source_lines): Update comments.
2576
d069f99d
AF
25772002-10-13 Adam Fedor <fedor@gnu.org>
2578
2579 * valops.c (value_of_local): New function.
2580 (value_of_this): Use it.
2581 * value.h (value_of_local): Declared.
2582
53c551b7
AF
25832002-10-13 Adam Fedor <fedor@gnu.org>
2584
2585 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2586 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2587
eb392fbf
AF
25882002-10-12 Adam Fedor <fedor@gnu.org>
2589
2590 * language.c (binop_result_type): Add language_objc to case.
2591 (integral_type): Likewise.
2592 (character_type): Likewise.
2593 (string_type): Likewise.
2594 (boolean_type): Likewise.
2595 (structured_type): Likewise.
2596 (binop_type_check): Likewise.
2597
e2b23ee9
AF
25982002-10-11 Adam Fedor <fedor@gnu.org>
2599
2600 * printcmd.c (address_info): Print 'self' for ObjC.
2601
b01ab485
AF
26022002-10-11 Adam Fedor <fedor@gnu.org>
2603
2604 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2605 OP_SELF.
2606
806e6073
AF
26072002-10-11 Adam Fedor <fedor@gnu.org>
2608
2609 * language.h (CAST_IS_CONVERSION): Add language_objc.
2610
50f85cdf
AF
26112002-10-11 Adam Fedor <fedor@gnu.org>
2612
2613 * defs.h (enum language): Add language_objc.
2614
0d540cdf
KD
26152002-10-11 Klee Dienes <kdienes@apple.com>
2616
69266111 2617 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2618 * gdbcore.h (read_memory_typed_address): Add prototype.
2619 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2620 to read a value destined for a CORE_ADDR, not read_memory_integer.
2621 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2622 (f77_get_dynamic_lowerbound): Ditto.
2623
d5dc7960
MH
26242002-10-11 Martin M. Hunt <hunt@redhat.com>
2625
2626 * utils.c (string_to_core_addr): After turning string into
2627 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2628 which will do necessary sign-extension, etc.
2629
8343f86c
DJ
26302002-10-11 Daniel Jacobowitz <drow@mvista.com>
2631
2632 * c-exp.y (THIS): Delete token and grammar rule.
2633 (yylex): Don't return THIS.
2634 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2635 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2636 * demangle.c (cplus_markers): Update comment. Put '$'
2637 first. Remove CPLUS_MARKER.
2638 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2639 * jv-exp.y (THIS): Delete token and grammar rule.
2640 (yylex): Don't return THIS.
2641 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2642 * objc-exp.y (THIS): Delete token and grammar rule.
2643 (yylex): Don't return THIS.
2644 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2645 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2646 (read_member_functions): Likewise for opname.
2647 (read_tilde_fields): Use is_cplus_marker.
2648
2649 * defs.h (CPLUS_MARKER): Don't define.
2650 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2651 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2652 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2653 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2654 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2655
2656 * config/i386/tm-i386v4.h: Delete file.
2657 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2658 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2659 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2660 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2661 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2662 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2663 * config/i386/i386v4.mt (TM_FILE): Likewise.
2664 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2665
967c0d83
MM
26662002-10-10 Marko Mlinar <markom@opencores.org>
2667
2668 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2669 accidentially not commited 2002-10-09
2670 * gdbarch.h, gdbarch.c: Re-generate.
2671
f74fa174
MM
26722002-10-09 Marko Mlinar <markom@opencores.org>
2673
2674 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2675 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2676 * gdbarch.h, gdbarch.c: Re-generate.
2677
57349743
JB
26782002-10-08 Petr Sorfa <petrs@caldera.com>
2679
2680 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2681
2682 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2683 so we can work on more than one compilation unit at a time. This
2684 helps prepare GDB to handle inter-CU die references.
2685 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2686 the code to be defined before struct comp_unit_head.
2687 (comp_unit_head): Added new members - offset, cu_head,
2688 begin_die, next and dwarf2_abbrevs.
2689 (dwarf2_abbrevs): Removed single static var; now member of
2690 struct comp_unit_head.
2691 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2692 members.
2693 (psymtab_to_symtab_1): Changed to work with the new
2694 struct comp_unit_head.
2695 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2696 constructs the dwarf2_abbrevs[] inside the cu_header.
2697 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2698 dwarf2_abbrev table to clean up.
2699 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2700 handling of dwarf2_abbrevs inside the cu_header.
2701 (read_partial_die): Now supports the call to the new
2702 dwarf2_lookup_abbrev.
2703 (read_full_die): Now supports the call to the new
2704 dwarf2_lookup_abbrev.
2705
4092aadb
CF
27062002-10-06 Christopher Faylor <cgf@redhat.com>
2707
2708 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2709 insure that shell variables, such as "transformed_name" are propagated
2710 to later shell statements in rule.
2711
af0b2512
MK
27122002-10-06 Mark Kettenis <kettenis@gnu.org>
2713
2714 * config/i386/nm-i386sco.h: Add protection against
2715 multiple-inclusion. Include "i386/nm-i386v.h".
2716 (REGISTER_U_ADDR): Remove define.
2717 (i386_register_u_addr): Remove prototype.
2718
d6020d45
MS
27192002-10-04 Michael Snyder <msnyder@redhat.com>
2720
2721 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2722 before treating it as a single-step event.
2723
7248f48e
AF
27242002-10-03 Adam Fedor <fedor@gnu.org>
2725
2726 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2727 (objc_demangle): Remove assignment in if statements, Replace
2728 free with xfree.
2729 (add_msglist): Likewise.
2730 (end_msglist): Likewise.
2731 (complare_selectors): Likewise.
2732 (selectors_info): Likewise.
2733 (compare_classes): Likewise.
2734 (classes_info): Likewise.
2735 (print_object_command): Likewise.
2736 (find_objc_msgcall_submethod): Replace PTR with void *.
2737 * objc-lang.h: Remove check for __STDC__.
2738
52c6a6ac
JJ
27392002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2740
2741 * ui-out.h (ui_out_field_fmt_int): New prototype.
2742 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2743 of field width and alignment.
2744 * stack.c (print_frame_info_base): When printing frame level, use
2745 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2746 PR gdb/192
2747
7e3cec17
JJ
27482002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2749
2750 * MAINTAINERS: Add self to Write After Approval list.
2751
a58dd373
EZ
27522002-10-02 Elena Zannoni <ezannoni@redhat.com>
2753
2754 * infcmd.c (interrupt_target_command_wrapper): Delete.
2755 (interrupt_target_command): Make non static.
2756 (nofp_registers_info): Make static.
2757 * stack.c (return_command_wrapper): Delete.
2758 (return_command): Make non static.
2759
cee6ddeb
EZ
27602002-10-02 Elena Zannoni <ezannoni@redhat.com>
2761
2762 * event-top.c (gdb_setup_readline): New function. Code moved from
2763 _initialize_event_loop().
2764 (_initialize_event_loop): Call gdb_setup_readline().
2765
c4ed33b9
AC
27662002-10-02 Andrew Cagney <ac131313@redhat.com>
2767
2768 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2769 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2770 * gdbarch.h, gdbarch.c: Re-generate.
2771
cef4f5dd
DJ
27722002-10-02 Daniel Jacobowitz <drow@mvista.com>
2773
2774 Fix PR gdb/778
2775 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2776 before recursing.
2777 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2778 of fill_in_vptr_fieldno.
2779
36dc181b 27802002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2781
36dc181b
EZ
2782 * inferior.h (registers_info, stepi_command, nexti_command,
2783 continue_command, interrupt_target_command): Export from infcmd.c.
2784 * frame.h (args_info, selected_frame_level_changed_hook,
2785 return_command): Export from stack.c.
2786 * v850ice.c (stepi_command, nexti_command, continue_command): use
2787 prototypes from inferior.h.
2788 * tracepoint.c (registers_info, args_info, locals_info): Use
2789 prototypes from frame.h and inferior.h.
2790 * Makefile.in (mi-main.o): Add dependency on frame.h.
2791
6f99cb26
AC
27922002-10-02 Andrew Cagney <ac131313@redhat.com>
2793
da3eff49
AC
2794 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2795 value in register 3 adjusted by ppc_gp0_regnum.
2796
6f99cb26
AC
2797 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2798
da615bee
MM
27992002-10-02 Marko Mlinar <markom@opencores.org>
2800
2801 * MAINTAINERS: Add myself to the Write After Approval list.
2802
d154bee2
AO
28032002-10-01 Alexandre Oliva <aoliva@redhat.com>
2804
62a49b2c
AO
2805 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2806 of the section for the N64 ABI, fixed.
2807
d154bee2
AO
2808 * config/mips/tm-irix6.h: Include solib.h.
2809
ed348acc
EZ
28102002-10-01 Elena Zannoni <ezannoni@redhat.com>
2811
2812 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2813 GNU operators.
2814
da0f9dcd
AC
28152002-10-01 Andrew Cagney <ac131313@redhat.com>
2816
2817 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2818 and that "mi0" syntax has been removed.
2819
bdf64bac
DC
28202002-09-30 David Carlton <carlton@math.stanford.edu>
2821
2822 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2823 * ppc-sysv-tdep.c: #include "gdb_string.h".
2824 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2825 pacify GCC.
2826
54c2a1e6
AC
28272002-10-01 Andrew Cagney <ac131313@redhat.com>
2828
2829 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2830 "vrsave"'s register number.
2831
cedea778
AC
28322002-09-30 Andrew Cagney <ac131313@redhat.com>
2833
2834 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2835 use frame_unwind_signed_register to obtain the PC.
2836 (mips_frame_chain): Handle a generic dummy frame.
2837 (mips_init_extra_frame_info): When a generic dummy frame, don't
2838 re-compute the frame base.
2839 (mips_pop_frame): Handle generic dummy frames.
2840 (mips_gdbarch_init): When generic dummy frames, set
2841 use_generic_dummy_frames, push_dummy_frame to
2842 generic_push_dummy_frame, pc_in_call_dummy to
2843 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2844 generic_save_dummy_frame_tos.
2845
68315eb8
AC
28462002-09-30 Andrew Cagney <ac131313@redhat.com>
2847
2848 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2849 against TOP when TOP was explictly set.
2850 (generic_push_dummy_frame): Set TOP to zero.
2851
3b8630c3
EZ
28522002-09-30 Elena Zannoni <ezannoni@redhat.com>
2853
2854 * event-loop.c (start_event_loop): Rename variable 'result' to
2855 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2856
28ee05e9
KS
28572002-09-30 Keith Seitz <keiths@redhat.com>
2858
2859 * gdb-events.sh (selected_thread_changed): New event.
2860 * gdb-events.c: Regenerated.
2861 * gdb-events.h: Regenerated.
2862
6eecb1c8
HPN
28632002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2864
2865 * MAINTAINERS: Add self to Write After Approval list.
2866
92df71f0
FN
28672002-09-30 Fernando Nasser <fnasser@redhat.com>
2868
3b8630c3
EZ
2869 * disasm.c: New file.
2870 * disasm.h: New file.
92df71f0
FN
2871 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2872 (compare_lines): Ditto.
2873 (dump_insns): Ditto.
3b8630c3
EZ
2874 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2875 argument.
92df71f0 2876 (do_assembly_only): Ditto.
3b8630c3
EZ
2877 (do_disassembly): Renamed to gdb_disassembly and moved to
2878 disasm.c. Sdded uiout argument.
2879 * Makefile.in: Add new files. Reorder SFILES list. Update
2880 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2881
0c22854d
AC
28822002-09-29 Andrew Cagney <ac131313@redhat.com>
2883
2884 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2885 bfd/elf64-alpha-fbsd.c.
2886
e67f2023
AC
28872002-09-29 Andrew Cagney <ac131313@redhat.com>
2888
2889 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2890 i386gnu-tdep.c.
2891
89396210
AC
28922002-09-29 Andrew Cagney <ac131313@redhat.com>
2893
2894 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2895 __FUNCTION__.
2896 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2897 function name.
2898 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2899 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2900 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2901 (S_msg_sig_post_reply): Ditto.
2902
7079c36c
CV
29032002-09-28 Corinna Vinschen <vinschen@redhat.com>
2904
89396210
AC
2905 * sh-tdep.c (sh_use_struct_convention): Use definition according
2906 to ABI.
7079c36c
CV
2907 (sh_push_arguments): Store in register with correct endianess.
2908 (sh_default_store_return_value): Ditto.
2909 (sh_gdbarch_init): Set sizeof long double to 8.
2910
975ac915
MK
29112002-09-27 Mark Kettenis <kettenis@gnu.org>
2912
2913 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2914 Fix some whitespace problems.
2915
9bbe19fb
DC
29162002-09-27 David Carlton <carlton@math.stanford.edu>
2917
2918 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2919 (mcore-tdep.o): Ditto.
2920 (ns32k-tdep.o): Ditto.
2921 (ns32knbsd-tdep.o): Ditto.
2922 (sh3-rom.o): Ditto.
2923 (vax-tdep.o): Ditto.
2924 * cris-tdep.c: #include "gdb_string.h"
2925 * mcore-tdep.c: Ditto.
2926 * ns32k-tdep.c: Ditto.
2927 * ns32knbsd-tdep.c: Ditto.
2928 * sh3-rom.c: Ditto.
2929 * vax-tdep.c: Ditto.
2930
43b2fdc7
DC
29312002-09-27 David Carlton <carlton@math.stanford.edu>
2932
2933 * config/djgpp/fnchange.lst: Add entries for
2934 gdb/testsuite/gdb.c++/m-static files.
2935
e8cfbbd9
JW
29362002-09-27 Jim Wilson <wilson@redhat.com>
2937
2938 * MAINTAINERS: Add myself to the Write After Approval list.
2939
43b2fdc7 29402002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2941
2942 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2943
2944
9f3b7f07
AC
29452002-09-26 Andrew Cagney <ac131313@redhat.com>
2946
2947 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2948 frame.
2949
11269d7e
AC
29502002-09-26 Andrew Cagney <ac131313@redhat.com>
2951
2952 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2953 (rs6000_struct_return_address): Delete variable.
2954 (rs6000_store_struct_return): Update.
2955 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2956 deprecated_extract_struct_value_address.
2957 (rs6000_frame_align): New function.
2958 (rs6000_gdbarch_init): Set frame_align.
2959
f15ab4a7
AC
29602002-09-26 Andrew Cagney <ac131313@redhat.com>
2961
2962 From Grace Sainsbury <graces@redhat.com>:
2963 * Makefile.in (gdbtk-main.o): New target.
2964 (gdb.o): New target.
2965 (main_h): Define.
2966 (main.o): Update dependencies.
2967 (gdb$(EXEEXT)): Add gdb.o.
2968 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2969 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2970 (SUBDIR_GDBTK_CLEAN): Set.
2971 (install-gdbtk): Install the insight binary.
2972 (uninstall-gdbtk): New target.
2973 (all-gdbtk, clean-gdbtk): New rule.
2974 * top.c (use_windows): Default to zero.
2975 * main.c: Include "main.h".
2976 (main): Delete.
2977 (struct captured_main_args): Delete.
2978 (gdb_main): New function.
2979 * main.h: New file.
2980 * gdb.c: New File.
2981
e36180d7
AC
29822002-09-25 Andrew Cagney <cagney@redhat.com>
2983
2984 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2985 (frame_map_regnum_to_name): New function.
2986 (frame_map_name_to_regnum): New function.
2987 * frame.h (frame_map_name_to_regnum): Declare.
2988 (frame_map_regnum_to_name): Declare.
2989 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2990 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2991 * parse.c: Do not include "builtin-regs.h".
2992 (target_map_name_to_register): Delete function.
2993 (write_dollar_variable): Use frame_map_name_to_regnum.
2994 * parser-defs.h (target_map_name_to_register): Delete declaration.
2995 * expprint.c: Include "frame.h".
2996 (print_subexp): Use frame_map_regnum_to_name.
2997 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2998 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2999
8b69000d
AC
30002002-09-25 Andrew Cagney <ac131313@redhat.com>
3001
3002 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3003 wasn't saved, and the next innermost frame is a dummy, return the
3004 dummy frame's link register.
3005
046ca86a
JB
30062002-09-24 Jim Blandy <jimb@redhat.com>
3007
3008 Fix from Paul Breed:
3009 * main.c (captured_main): Add a `break' after the case for 'b'.
3010
94b66fa7
KS
30112002-09-24 Keith Seitz <keiths@redhat.com>
3012
3013 * varobj.c (c_type_of_child): Use get_target_type instead
3014 of TYPE_TARGET_TYPE.
3015
c214a6fd
FN
30162002-09-22 Fernando Nasser <fnasser@redhat.com>
3017
53cb0458
FN
3018 * source.c (get_current_or_default_source_symtab_and_line): Remove
3019 function.
3020 (set_default_source_symtab_and_line): New function. Attempts to
3021 determine a source file to list lines from if one is not currently
3022 defined.
3023 (get_current_source_symtab_and_line): Initialize sal.pc and
3024 sal.end fields.
3025 (set_current_source_symtab_and_line): Mark argument as const.
3026 * source.h: Update declarations and comments.
3027 * linespec.c (decode_line_1): Replace call to removed routine above.
3028 * stack.c (print_frame_info_base): Ditto.
3029 * cli/cli-cmds.c (edit_command): Ditto.
3030 (list_command): Ditto.
3031
30322002-09-22 Fernando Nasser <fnasser@redhat.com>
3033
d6020d45 3034 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 3035 sal.pc and sal.end fields.
c214a6fd
FN
3036 (get_current_or_default_source_symtab_and_line): Ditto.
3037 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3038 so we do not cause a new source symtab to be searched for (reverting an
3039 unintentional change from the 2002-09-20 patch).
3040 * scm-lang.c (scm_unpac): Ditto.
3041
cc3b68a5
AC
30422002-09-21 Andrew Cagney <cagney@redhat.com>
3043
3044 * complaints.c (symfile_explanations): Remove new-line from
3045 ``isolated_message''.
3046 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3047 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3048
5835abe7
NC
30492002-09-20 Nick Clifton <nickc@redhat.com>
3050
3051 * NEWS: Announce that V850EA ISA is no longer supported.
3052 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3053
a15ef5f5
DC
30542002-09-20 David Carlton <carlton@math.stanford.edu>
3055
06ba1b39
DC
3056 * Makefile.in (c-lang.o): Correct dependencies.
3057 (utils.o): Gather dependencies.
3058 (charset.o): Move.
a15ef5f5
DC
3059 * c-lang.c: #include "gdb_string.h"
3060
87885426
FN
30612002-09-20 Fernando Nasser <fnasser@redhat.com>
3062
3063 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3064 * cli/cli-cmds.c (list_command): New function. Implements the new
3065 cli edit command.
3066 (_init_cli_cmds): Add new command definition.
3067 * gdb.1: Document edit command.
3068 * doc/gdb.texinfo: Document edit command.
3069
30702002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
3071
3072 * source.c: Make global variables current_source_symtab and
3073 current_source_line static.
3074 (list_command): Moved to cli/cli-cmds.c.
3075 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3076 (get_first_line_listed): New accessor function.
3077 (get_lines_to_list): New accessor function.
3078 (get_current_source_symtab_and_line): New function. Retrieves the
3079 position in the source code that we consider current.
3080 (get_current_or_default_source_symtab_and_line): New function.
3081 Like the above but attempts to determine a default position if one
3082 is not currently defined.
3083 (set_current_source_symtab_and_line): New function. Sets the source
3084 code position considered current and returns the previously set one.
3085 (clear_current_source_symtab_and_line): Reset stored information about
3086 a current source line.
3087 (_initialize_source): Remove registration for the "list" command and
3088 its alias.
3089 * source.h: Add declarations for the new functions above.
3090 * symtab.h: Remove declarations for the global variables mentioned
3091 above.
3092 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3093 obtain current source line.
3094 * linespec.c (decode_line_1): Ditto.
3095 * macroscope.c (default_macro_scope): Ditto.
3096 * scm-lang.c (scm_unpac): Ditto.
3097 * stack.c (print_frame_info_base): Ditto.
3098 * symfile.c (clear_symtab_users): Ditto.
3099 * symtab.c (decode_line_spec): Ditto.
3100 * cli/cli-cmds.c (list_command): Moved here from source.c.
3101 (ambiguous_line_spec): Moved here from source.c.
3102 (_init_cli_cmds): Add definition for "list" and its alias.
3103 * Makefile.in: Update dependencies.
3104
ddd216ea
CV
31052002-09-20 Corinna Vinschen <vinschen@redhat.com>
3106
3107 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3108 with what gcc thinks is correct.
3109
6d305052
CV
31102002-09-20 Corinna Vinschen <vinschen@redhat.com>
3111
3112 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3113 multiple register push instruction.
3114
234b45d4
KB
31152002-09-19 Jim Blandy <jimb@redhat.com>
3116
3117 Add support for distinct host and target character sets.
3118 * charset.c, charset.h: New files.
3119 * c-exp.y: #include "charset.h".
3120 (yylex): Convert character and string literals to the target
3121 character set, before returning them as the semantic value of the
3122 token.
3123 * c-lang.c: #include "charset.h".
3124 (c_emit_char): Use charset-specific methods to recognize
3125 characters with backslash escape forms, to decide which characters
3126 to print literally and which to print using numeric escape
3127 sequences, and to convert target characters to host characters
3128 before printing.
3129 * utils.c: #include "charset.h".
3130 (no_control_char_error): New function.
3131 (parse_escape): Use charset-specific methods to recognize
3132 backslash escapes, parse `control character' notation, and convert
3133 characters from the host character set to the target character set.
3134 * configure.in: Set the default host character set.
3135 Check where to find iconv, and what its argument types might be.
3136 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3137 * Makefile.in (SFILES): List charset.c.
3138 (COMMON_OBS): List charset.o.
3139 (charset.o): New rule.
3140 (charset_h): New header dependency variable.
3141 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3142 (LIBICONV): New variable, set by configure.
3143 (CLIBS): Include $(LIBICONV) here.
3144 * aclocal.m4, config.in, configure: Regenerated.
3145
525d6a61
JB
31462002-09-19 Joel Brobecker <brobecker@gnat.com>
3147
3148 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3149 bison 1.35 warning.
3150
3ed93867
RE
31512002-09-19 Richard Earnshaw <rearnsha@arm.com>
3152
3153 * gdb_mbuild.sh: New file.
3154
437666f8
AC
31552002-09-19 Andrew Cagney <ac131313@redhat.com>
3156
3157 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3158
389e51db
AC
31592002-09-18 Andrew Cagney <ac131313@redhat.com>
3160
3161 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3162 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3163 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3164 valops.c, value.h: Revert previous change.
3165
3b4efeaa
MS
31662002-09-18 Michael Snyder <msnyder@redhat.com>
3167
3168 Preliminary support for Objective-C:
3169 * defs.h (language_objc): New enum value.
3170 (puts_filtered_tabular): Declaration only, exported from utils.c.
3171 (skip_quoted): Delete, declared in completer.h.
3172 * c-exp.y: Include completer.h.
3173 * p-exp.y: Ditto.
3174 * jv-exp.y: Ditto.
3175 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3176 New operator enum values.
3177 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3178 * language.c (binop_result_type): Handle language_objc case.
3179 (integral_type, character_type, string_type, boolean_type,
3180 structured_type, binop_type_check): Ditto.
3181 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3182 (struct objc_specific): Add to general_symbol_info.
3183 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3184 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3185 * parser-defs.h (struct objc_class_str): New struct type.
3186 (start_msglist, end_msglist, add_msglist): Declaration only,
3187 exported from objc-lang.c.
3188 * value.h (value_of_local, value_nsstring,
3189 call_function_by_hand_expecting_type): Exported from valops.c.
3190 * valops.c (find_function_addr): Export.
3191 (call_function_by_hand_expecting_type): New function.
3192 (value_of_local): New function.
3193 * symfile.c (init_filename_language_table): Add ".m" extension
3194 for Objective-C.
3195 * utils.c (puts_filtered_tabular): New function.
3196 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3197 (set/show demangle): Extend help-string to refer to ObjC.
3198 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3199 * stabsread.c (symbol_reference_defined): Objective-C symbols
3200 may contain colons: make allowances when scanning stabs strings
3201 for colons.
3202 (objc_find_colon): New function.
3203 * printcmd.c (address_info): If language == objc then print
3204 "self" instead of "this".
3205 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3206 OP_NSSTRING, and OP_SELF.
3207 (prefixify_subexp): Ditto.
3208 * source.c (print_source_lines): Mention objc in comment.
3209 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3210 method names.
3211
b9caf505
AC
32122002-09-18 Andrew Cagney <ac131313@redhat.com>
3213
3214 * complaints.h: Update copyright.
3215 (struct complaints): Declare.
3216 (struct complaint): Make `message' constant.
3217 (internal_complaint): Declare.
3218 (complaint): Declare.
3219 (complaint_root): Delete declaration.
3220 (symfile_complaints): Delete declaration.
3221 (struct complaints): Add opaque declaration.
3222 (clear_complaints): Add a complaints parameter.
3223 * complaints.c: Update copyright.
3224 (enum complaint_series): Define.
3225 (complaint_root): Delete.
3226 (struct complaints): Define.
3227 (complaint_sentinel, symfile_complaint_book): New variables.
3228 (symfile_explanations, symfile_complaints): New variables.
3229 New variables.
3230 (get_complaints): New function.
3231 (vcomplaint): New function.
3232 (complaint): New function.
3233 (internal_complaint): New function.
3234 (complain): Call vcomplain with symfile_complaint.
3235 (clear_complaints): Rewrite.
3236 (_initialize_complaints): Use add_setshow_command.
3237 * Makefile.in (complaints.o): Update dependencies.
3238 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3239 to call to clear_complaints.
3240 (new_symfile_objfile, reread_symbols): Ditto.
3241 (oldsyms_complaint): Delete.
3242 (empty_symtab_complaint, unknown_option_complaint): Delete.
3243 (free_named_symtabs): Use complaint instead of complain.
3244
d2e6263c
MS
32452002-09-18 Michael Snyder <msnyder@redhat.com>
3246
5fb2031a
AC
3247 Contributed by Apple Computer, Inc. Merged with current sources
3248 by Adam Fedor <fedor@doc.com> [cagney].
3249
d2e6263c
MS
3250 * objc-lang.c: First clean-up round: comments, indentation.
3251 * objc-lang.h: Ditto.
3252 * objc-lang.y: Ditto.
3253
dec43320
AC
32542002-09-18 Andrew Cagney <ac131313@redhat.com>
3255
3256 * maint.c (maintenance_internal_error): Print the parameter as the
3257 error message.
3258 (maintenance_internal_warning): New function.
3259 (_initialize_maint_cmds): Add command `maint internal-warning'.
3260
3261 * defs.h (internal_warning, internal_vwarning): Declare.
3262 * utils.c (struct internal_problem): Define.
3263 (internal_vproblem): New function.
3264 (internal_warning): New function.
3265 (internal_vwarning): New function.
3266 (internal_warning_problem, internal_error_problem): New variables.
3267 (internal_verror): Just call internal_vproblem.
3268
b81654f1
MS
32692002-09-18 Michael Snyder <msnyder@redhat.com>
3270
3271 * objc-lang.c: New file, support for Objective-C.
3272 Preliminary check-in, not yet integrated into gdb.
3273 * objc-lang.h: New file.
3274 * objc-exp.y: New file.
3275
0542c381
AC
32762002-09-18 Andrew Cagney <ac131313@redhat.com>
3277
7bda5e4a
AC
3278 * infrun.c (signal_stop_update): Convert definition to ISO C.
3279 (signal_print_update): Ditto.
3280 (signal_pass_update): Ditto.
3281 * inflow.c (terminal_save_ours): Ditto.
3282
5247b418
AC
3283 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3284 comments.
3285
fc60962c
AC
3286 * config/djgpp/fnchange.lst: Handle name clashes between
3287 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3288 bfd/coff-tic80.c.
3289
0542c381
AC
3290 * i386-linux-tdep.h: Fix tipo.
3291
5b924b9b
AF
32922002-09-18 Adam Fedor <fedor@gnu.org>
3293
3294 * MAINTAINERS: Add myself to the Write After Approval list.
3295
5afc051b
JB
32962002-09-18 Jim Blandy <jimb@redhat.com>
3297
3298 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3299 texthigh and textlow to reader-specific structs caused
3300 objfile_relocate to miss them. This is fixable, but the work that
3301 the change was supposed to prepare GDB for never got done anyway.
3302
eb944380
DC
33032002-09-18 David Carlton <carlton@math.stanford.edu>
3304
3305 * MAINTAINERS: Alphabetize Write After Approval list.
3306
948e66d9
DJ
33072002-09-18 Daniel Jacobowitz <drow@mvista.com>
3308
3309 Fix PR gdb/709
3310 * values.c (value_static_field): Call read_var_value.
3311
dc604539
AC
33122002-09-18 Andrew Cagney <ac131313@redhat.com>
3313
3314 * valops.c (hand_function_call): Align the initial stack pointer
3315 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3316 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3317 return value.
3318 * mips-tdep.c (mips_frame_align): New function.
3319 (mips_gdbarch_init): Set frame_align.
3320 * gdbarch.sh (FRAME_ALIGN): New method.
3321 * gdbarch.h, gdbarch.c: Re-generate.
3322
cb7e422f
ML
33232002-09-18 Michal Ludvig <mludvig@suse.cz>
3324
3325 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3326 registers.
3327
a094c6fb
AC
33282002-09-17 Andrew Cagney <ac131313@redhat.com>
3329
3330 * NEWS: Mention that MIPS $fp behavior changed.
3331 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3332 reference to FP_REGNUM.
3333 (mipsnbsd_cannot_store_register): Ditto.
3334 * mips-linux-nat.c: Update copyright.
3335 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3336 (mips_linux_cannot_store_register): Ditto.
3337 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3338 * config/mips/tm-mips.h: Update copyright.
3339 (FP_REGNUM): Delete macro.
3340 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3341 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3342 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3343 (mips_r3041_reg_names, mips_r3051_reg_names)
3344 (mips_r3081_reg_names): Replace "fp" with "".
3345 Fix PR gdb/480.
3346
45cf40d1
TR
33472002-09-17 Theodore A. Roth <troth@verinet.com>
3348
3349 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3350 generic_read_register_dummy() (PR gdb/703).
3351 (avr_push_return_address): #if 0 out unused vars.
3352 (avr_gdbarch_init): Enable use of avr_push_return_address().
3353
c7e701b5
MS
33542002-09-17 Michael Snyder <msnyder@redhat.com>
3355
d76ba2a5 3356 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
3357 RTE will take care of it.
3358
20bcf01c
AC
33592002-09-17 Andrew Cagney <ac131313@redhat.com>
3360
3361 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3362 invalid, return SP_REGNUM.
3363
009a9971 33642002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
3365
3366 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3367 point registers without sign extension.
3368
135c175f
AC
33692002-09-17 Andrew Cagney <cagney@redhat.com>
3370
3371 * blockframe.c (deprecated_read_register_dummy): Rename
3372 generic_read_register_dummy.
3373 * frame.c (frame_unwind_signed_register): New function.
3374 (frame_unwind_unsigned_register): New function.
3375 * frame.h (frame_unwind_signed_register): Declare.
3376 (frame_unwind_unsigned_register): Declare.
3377 (deprecated_read_register_dummy): Rename
3378 generic_read_register_dummy.
3379
3380 * h8300-tdep.c (h8300_frame_chain): Update.
3381 (h8300_frame_saved_pc): Update.
3382 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3383 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3384 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3385 (s390_frame_chain): Update.
3386 * v850-tdep.c (v850_find_callers_reg): Update.
3387 (v850_frame_saved_pc): Update.
3388 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3389 (m32r_find_callers_reg): Update.
3390 (m32r_frame_saved_pc): Update.
3391 * sh-tdep.c (sh_find_callers_reg): Update.
3392 (sh64_get_saved_pr): Update.
3393 (sh_init_extra_frame_info): Update.
3394 (sh_init_extra_frame_info): Update.
3395 (sh64_init_extra_frame_info): Update.
3396 (sh64_init_extra_frame_info): Update.
3397 * mcore-tdep.c (mcore_find_callers_reg): Update.
3398 (mcore_frame_saved_pc): Update.
3399 (mcore_init_extra_frame_info): Update.
3400 * i386-tdep.c (i386_frame_saved_pc): Update.
3401 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3402 (ia64_init_extra_frame_info): Update.
3403 (ia64_init_extra_frame_info): Update.
3404 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3405 * cris-tdep.c (cris_init_extra_frame_info): Update.
3406 * avr-tdep.c (avr_frame_chain): Update.
3407 (avr_init_extra_frame_info): Update.
3408 (avr_frame_saved_pc): Update.
3409 * arm-tdep.c (arm_find_callers_reg): Update.
3410 (arm_init_extra_frame_info): Update.
3411 (arm_frame_saved_pc): Update.
3412
a741e514
TT
34132002-09-17 Tom Tromey <tromey@redhat.com>
3414
3415 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3416 is "'".
3417
d1a8e808
CV
34182002-09-17 Corinna Vinschen <vinschen@redhat.com>
3419
3420 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3421 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3422 NEXT_PROLOGUE_INSN.
3423 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3424 NEXT_PROLOGUE_INSN.
3425
d9025a18
JB
34262002-09-16 Joel Brobecker <brobecker@gnat.com>
3427
3428 * osfsolib.c: Remove file, replaced by solib-osf.c.
3429 * Makefile.in: Remove compilation rules for osfsolib.c.
3430
1b2ef1b6
DC
34312002-09-16 David Carlton <carlton@math.stanford.edu>
3432
3433 * cp-valprint.c (cp_print_class_method): Correct args to
3434 check_stub_method_group.
3435
928e48af
CV
34362002-09-16 Corinna Vinschen <vinschen@redhat.com>
3437
3438 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3439 `set architecture'. Unify naming convention of functions.
3440 (h8300_skip_prologue): Improve prologue analysis.
3441 (h8300_push_arguments): Rewritten to more closely match GCC's
3442 bizarre argument-passing behavior, along with the comment describing
3443 said behavior.
3444 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3445 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3446 sim, remote-e7000.c, remote-hms.c and remote.c
3447
5e3397bb
MK
34482002-09-15 Mark Kettenis <kettenis@gnu.org>
3449
3450 * i386-tdep.c (gdb_print_insn_i386): Removed.
3451 (i386_print_insn): New function.
3452 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3453 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3454 tm_print_insn_info.
3455
f710f4fc
MK
34562002-09-14 Mark Kettenis <kettenis@gnu.org>
3457
3458 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3459 zero.
3460
db54fef4
CV
34612002-09-14 Corinna Vinschen <vinschen@redhat.com>
3462
3463 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3464 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3465 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3466
2becadee
CF
34672002-09-13 Christopher Faylor <cgf@redhat.com>
3468
3469 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3470
de17c821
DJ
34712002-09-13 Daniel Jacobowitz <drow@mvista.com>
3472
3473 * gdbtypes.c (check_stub_method): Make static.
3474 (check_stub_method_group): New function.
3475 * gdbtypes.h: Update prototypes.
3476 * cp-support.c: New file.
3477 * cp-support.h: New file.
3478
3479 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3480 (update_method_name_from_physname): New function.
3481 (read_member_functions): Correct method names for operators
3482 and v3 constructors/destructors. Separate v2 constructors and
3483 destructors.
3484 * Makefile.in (stabsread.o): Update dependencies.
3485 (SFILES): Add cp-support.c.
3486 (COMMON_OBS): Add cp-support.o.
3487 (cp_support_h, cp-support.o): Add.
3488
3489 * cp-valprint.c (cp_print_class_method): Call
3490 check_stub_method_group instead of check_stub_method. Remove
3491 extraneous QUITs.
3492 * p-valprint.c (pascal_object_print_class_method): Likewise.
3493 * valops.c (search_struct_method): Likewise.
3494 (find_method_list, value_struct_elt_for_reference): Likewise.
3495
e76cff22
AC
34962002-09-13 Andrew Cagney <cagney@redhat.com>
3497
3498 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3499 * gdbarch.h, gdbarch.c: Regenerate.
3500
905abb3f
AC
35012002-09-13 Andrew Cagney <ac131313@redhat.com>
3502
3503 * frame.c (find_saved_register): Delete function.
3504 * frame.h (find_saved_register): Delete declaration.
3505 Fix PR gdb/631.
3506
64159455
AC
3507Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3508
3509 * mips-tdep.c (read_next_frame_reg): Re-hack using
3510 frame_register_unwind.
3511
795e1e11
AC
3512Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3513
3514 * mips-tdep.c (mips_get_saved_register): Re-hack using
3515 frame_register_unwind.
3516
5720643c
JB
35172002-09-12 Joel Brobecker <brobecker@gnat.com>
3518
3519 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3520 vector. Will be useful for Interix.
3521 * gdbarch.h, gdbarch.c: Regenerate.
3522
3523 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3524 name of the malloc function by NAME_OF_MALLOC.
3525
3bada2a2
JB
35262002-09-12 Joel Brobecker <brobecker@gnat.com>
3527
3528 * value.h (find_function_in_inferior): Add const keyword to
3529 one of the parameters. Allows us to invoke this function with
3530 a const char *.
3531 * valops.c (find_function_in_inferior): Likewise.
3532
3db26b01
JB
35332002-09-12 Joel Brobecker <brobecker@gnat.com>
3534
3535 * exec.c (xfer_memory): Fix compilation warning with old versions
3536 of GCC.
3537 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3538
17c5ed2c
DC
35392002-09-12 David Carlton <carlton@math.stanford.edu>
3540
3541 * symtab.h: Run through gdb_indent.h.
3542 Add 2002 to Copyright year list.
3543
ecd1107e
AM
35442002-09-12 Alan Modra <amodra@bigpond.net.au>
3545
3546 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3547 mach constants.
3548 * MAINTAINERS: Add myself to write after approval list.
3549
e64f66d1
JB
35502002-09-11 J. Brobecker <brobecker@gnat.com>
3551
3552 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3553
f9395794
JB
35542002-09-11 J. Brobecker <brobecker@gnat.com>
3555
3556 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3557 Interix.
3558
1a303dec
MS
35592002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3560
3561 * procfs.c (do_detach): Clear current signal, not just fault.
3562 Corrects problem with breakpoint trap signal leaking to detached
3563 process on Tru64.
3564
c0219d42
MS
35652002-09-10 Michael Snyder <msnyder@redhat.com>
3566
3567 * buildsym.c (finish_block): Protect against null pointer.
3568
9d84ac84
AC
35692002-09-10 Andrew Cagney <cagney@redhat.com>
3570
3571 * infcmd.c (default_print_registers_info): Send all output to
3572 ``file'' instead of ``gdb_stdout''.
3573
77d8f2b4
MS
35742002-09-10 Michael Snyder <msnyder@redhat.com>
3575
3576 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3577 LONGEST, and use signed register read (addresses are sign-
3578 extended for mips).
3579
99656a61
SC
35802002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3581
3582 * event-loop.c (gdb_do_one_event): Make public.
3583 * event-loop.h (gdb_do_one_event): Declare.
3584
da12f4d8
JL
35852002-09-10 Jeff Law <law@redhat.com>
3586
3587 * infttrace.c (child_resume): Simplify and rework to avoid
3588 TT_PROC_CONTINUE.
3589
d0aee0c4
FF
35902002-09-09 Fred Fish <fnf@intrinsity.com>
3591
3592 * printcmd.c (print_scalar_formatted): "len" is the number of
3593 target bytes, NOT the number of target bits.
3594
7cb3ec5e
EZ
35952002-09-09 Elena Zannoni <ezannoni@redhat.com>
3596
3597 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3598 * top.c (init_main): Set rl_terminal_name.
3599
4dc81987
AS
36002002-09-08 Aidan Skinner <aidan@velvet.net>
3601
3602 * ada-lang.c (ada_array_bound, ada_type_match,
3603 _initialize_ada_language): Fix K&R definitions.
3604 * ada-tasks.c (get_current_task): Fix K&R definitions.
3605 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3606
842330b4
CF
36072002-09-07 Christopher Faylor <cgf@redhat.com>
3608
3609 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3610 Add XP.
3611
43156d82
MK
36122002-09-06 Mark Kettenis <kettenis@gnu.org>
3613
66da5fd8
MK
3614 * i386-tdep.c (i386_register_virtual_type,
3615 i386_register_convertible, i386_register_convert_to_virtual,
3616 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3617 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3618 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3619 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3620 Don't set push_arguments twice.
3621
4b218c18
MK
3622 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3623 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3624 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3625 sigtramp_end to NULL.
3626 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3627 defines.
3628 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3629
4cc314d5
MK
3630 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3631 whitespace.
3632
43156d82
MK
3633 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3634 * gdbarch.h, gdbarch.c: Re-generate.
3635 * blockframe.c (find_pc_sect_partial_function): Convert to use
3636 SIGTRAMP_START_P predicate.
3637
6672060b
MS
36382002-09-05 Michael Snyder <msnyder@redhat.com>
3639
a90c3637
MS
3640 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3641 generic_dummy_frame method and old method. Also distinguish
3642 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3643 (arm_extract_return_value): Use new regcache method.
a90c3637 3644
6672060b
MS
3645 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3646 adjustment that doesn't conform to the ABI.
3647 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3648 saved regcache, not from current regcache.
3649
299ffc64
AC
36502002-09-05 Andrew Cagney <ac131313@redhat.com>
3651
3652 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3653 * README: Update.
3654
a3a2ee65
JT
36552002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3656
3657 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3658 if arm_apcs_32 is false.
3659
2bc7eea9
AC
36602002-09-04 Andrew Cagney <ac131313@redhat.com>
3661
3662 GDB 5.3 branch created.
3663
8a55a7c5
TR
36642002-09-03 Theodore A. Roth <troth@verinet.com>
3665
3666 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3667 generic_unwind_get_saved_register.
3668
e26fb1d7
DC
36692002-09-03 David Carlton <carlton@math.stanford.edu>
3670
3671 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3672 argument (PR gdb/653). Update call to smash_to_method_type.
3673 (read_structure_scope): Update call to dwarf2_add_member_fn.
3674
30d52491
ML
36752002-09-03 Michal Ludvig <mludvig@suse.cz>
3676
3677 * x86-64-linux-tdep.c: Include gdb_string.h
3678 * x86-64-linux-nat.c: Ditto.
3679
06891d83
JT
36802002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3681
3682 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3683 when YYDEBUG is set to 1.
3684 * c-exp.y: Likewise.
3685 * f-exp.y: Likewise.
3686 * jv-exp.y: Likewise.
3687 * m2-exp.y: Likewise.
3688 * p-exp.y: Likewise.
3689
7d400e77
JT
36902002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3691
3692 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3693 dependency list.
3694 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3695 solib_svr4_fetch_link_map_offsets to
3696 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3697 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3698 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3699 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3700 solib-svr4.o, and solib-legacy.o.
3701 * config/i386/tm-nbsd.h: Include solib.h.
3702
704a27c4
JT
37032002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3704
3705 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3706 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3707 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3708 comment noting that this needs its own target configuration.
3709 * config/i386/nbsd.mt: New file.
3710 * config/i386/nbsdaout.mt: Remove.
3711 * config/i386/nbsdelf.mt: Ditto.
3712 * config/i386/tm-nbsdaout.h: Ditto.
3713
d66198e1
JT
37142002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3715
3716 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3717 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3718 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3719 tdep->sigtramp_end.
3720 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3721 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3722 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3723
3cac699e
JT
37242002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3725
3726 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3727 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3728 * i386-tdep.h (i386bsd_init_abi): New prototype.
3729 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3730 function declaration.
3731 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3732 for NetBSD-a.out or NetBSD-ELF.
3733 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3734 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3735 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3736 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3737 and nbsd-tdep.h.
3738 (i386nbsd_pc_in_sigtramp): New function.
3739 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3740 i386nbsd_pc_in_sigtramp.
3741 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3742 and i386nbsdelf_init_abi OS ABI handlers.
3743 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3744 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3745
7010ca0a
MK
37462002-09-02 Mark Kettenis <kettenis@gnu.org>
3747
3748 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3749 registers if the target really has them.
3750
6dd93b72
JT
37512002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3752
3753 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3754 than nbsd-tdep.h.
3755
2ca8ae21
JT
37562002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3757
3758 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3759 list.
3760 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3761 (alphanbsd_skip_sigtramp_frame): New functions.
3762 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3763 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3764 to alphanbsd_sigcontext_addr.
3765
3d9b49b0
JT
37662002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3767
3768 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3769 list.
3770 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3771 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3772 nbsd_pc_in_sigtramp.
3773 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3774 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3775 * nbsd-tdep.c: Include gdb_string.h.
3776 (nbsd_pc_in_sigtramp): New function.
3777 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3778 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3779 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3780 ppcnbsd_pc_in_sigtramp.
3781 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3782 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3783 shnbsd_pc_in_sigtramp.
3784 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3785 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3786 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3787
c860120c
PM
37882002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3789
3790 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3791 watchpoints to NULL.
3792 (insert_breakpoints): set val field of watchpoints if NULL.
3793
3794
c7612d53
JB
37952002-08-29 Jim Blandy <jimb@redhat.com>
3796
3797 * symtab.c (lookup_symbol_aux): In the cases where we find a
3798 minimal symbol of an appropriate name and use its address to
3799 select a symtab to read and search, use `name' (as passed to us)
3800 as the demangled name when searching the symtab's global and
3801 static blocks, not the minsym's name.
3802
66609862
KS
38032002-08-29 Keith Seitz <keiths@redhat.com>
3804
3805 * stack.c (print_frame_info_base): Always set current_source_symtab
3806 and current_source_line.
3807
151fefe2
JB
38082002-08-29 Donn Terry <donnte@microsoft.com>
3809
3810 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3811
bfb3754e
KS
38122002-08-28 Keith Seitz <keiths@redhat.com>
3813
3814 * stack.c (select_frame): Add FIXME concerning selected-frame
3815 events.
3816 (select_frame_command): Send selected-frame-level-changed
3817 event notification, but only if the level actually changed.
3818 (up_silently_base): Add selected-frame-level-changed event
3819 notification.
3820 (down_silently_base): Likewise.
3821
e822a2a0
AC
38222002-08-28 Andrew Cagney <ac131313@redhat.com>
3823
3824 * Makefile.in: Update dependencies for all gdb/*.c files.
3825
309367d4
TT
38262002-08-27 Tom Tromey <tromey@redhat.com>
3827
3828 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3829 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3830 Update dependencies.
3831 * i387-tdep.c: Include gdb_string.h.
3832 * osabi.c: Likewise.
3833 * i386-linux-nat.c: Likewise.
3834 * lin-lwp.c: Likewise.
3835 * ax-gdb.c: Likewise.
3836 * signals/signals.c: Likewise.
3837 * jv-valprint.c: Likewise.
3838 * p-lang.c: Likewise.
3839 * c-valprint.c: Likewise.
3840 * cp-abi.c: Likewise.
3841
e1507482
EZ
38422002-08-27 Elena Zannoni <ezannoni@redhat.com>
3843
3844 * cli/cli-script.h (copy_command_lines): Export.
3845 * breakpoint.c: Include cli/cli-script.h.
3846 * Makefile.in (breakpoint.o): Update dependencies.
3847
c6510018
MS
38482002-08-26 Michael Snyder <msnyder@redhat.com>
3849
3850 * breakpoint.c (insert_breakpoints): Protect all references
3851 to 'process_warning'. Shorten long lines.
3852
c2b8ed2c
MS
38532002-08-26 Joel Brobecker <brobecker@gnat.com>
3854
3855 * cli/cli-script.c (copy_command_lines): New function.
3856 * defs.h (copy_command_lines): Export.
3857 * testsuite/gdb.base/commands.exp: New tests for commands
3858 attached to a temporary breakpoint, and for commands that
3859 delete the breakpoint they are attached to.
3860
38612002-08-26 Michael Snyder <msnyder@redhat.com>
3862
3863 * breakpoint.c (bpstat_stop_status): Instead of copying the
3864 pointer to the breakpoint commands struct, make a new copy
3865 of the struct and point to that.
3866 (bpstat_clear): Free the commands struct.
3867 (bpstat_clear_actions): Free the commands struct.
3868 (bpstat_do_actions): Free the command actions. Also execute
3869 the local cleanups, instead of deleting them.
3870 (delete_breakpoint): Leave the commands field of the bpstat
3871 chain alone -- it will be freed later.
3872
64b84175
KB
38732002-08-26 Kevin Buettner <kevinb@redhat.com>
3874
3875 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3876 deleted in 2002-08-20 commit. This function is still used by
3877 ppc-linux-nat.c.
3878
55970da6
KS
38792002-08-26 Keith Seitz <keiths@redhat.com>
3880
3881 * gdb-events.sh: Add selected-frame-level-changed event.
3882 * gdb-events.c: Regenerated.
3883 * gdb-events.h: Regenerated.
3884
a790ad35
SC
38852002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3886
3887 Fix PR gdb/393:
3888 * inflow.c (terminal_save_ours): New function to save terminal
3889 settings.
3890 * inferior.h (terminal_save_ours): Declare.
3891 * target.c (debug_to_terminal_save_ours): New function.
3892 (cleanup_target): Defaults to_terminal_save_ours.
3893 (update_current_target): Inherit to_terminal_save_ours.
3894 (setup_target_debug): Set to_terminal_save_ours.
3895 * target.h (target_terminal_save_ours): New to save terminal settings.
3896 (target_ops): New member to_terminal_save_ours.
3897 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3898 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3899 * inftarg.c (init_child_ops): Likewise.
3900 * m3-nat.c (init_m3_ops): Likewise.
3901 * procfs.c (init_procfs_ops): Likewise.
3902 * wince.c (init_child_ops): Likewise.
3903 * win32-nat.c (init_child_ops): Likewise.
3904 * sol-thread.c (init_sol_thread_ops): Likewise.
3905
c00dcbe9
MK
39062002-08-26 Mark Kettenis <kettenis@gnu.org>
3907
3d7f4f49
MK
3908 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3909 use regcache_* functions.
3910 (i386_gdbarch_init): Set store_return_value instead of
3911 deprecated_store_return_value.
3912
c00dcbe9
MK
3913 * regcache.c (regcache_raw_write_signed,
3914 regcache_raw_write_unsigned): New functions.
3915 * regcache.h (regcache_raw_write_signed,
3916 regcache_raw_write_unsigned): New prototypes.
3917
0e0d15ca
AC
39182002-08-25 Andrew Cagney <ac131313@redhat.com>
3919
3920 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3921 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3922 source file dependencies. Cleanup corresponding generator rules.
3923
d3b22ed5
AC
39242002-08-25 Andrew Cagney <ac131313@redhat.com>
3925
3926 * regcache.h (register_offset_hack): Declare.
3927 (regcache_cooked_read_using_offset_hack): Declare.
3928 (regcache_cooked_write_using_offset_hack): Declare.
3929
3930 * regcache.c (register_offset_hack): New function.
3931 (regcache_cooked_read_using_offset_hack): New function.
3932 (regcache_cooked_write_using_offset_hack): New function.
3933 (regcache_dump): Check that the registers, according to their
3934 offset, are packed hard against each other.
3935 (cooked_xfer_using_offset_hack): New function.
3936
bb425013
AC
39372002-08-25 Andrew Cagney <ac131313@redhat.com>
3938
3939 * regcache.c (struct regcache_descr): Add field register_type.
3940 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3941 in as a parameter
3942 (init_regcache_descr): Initialize register_type. Pass the descr
3943 to init_legacy_regcache_descr. Use register_type instead of
3944 REGISTER_VIRTUAL_TYPE.
3945 (register_type): New function.
3946 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3947 * regcache.h (register_type): Declare.
3948
d0403e00
AC
39492002-08-25 Andrew Cagney <ac131313@redhat.com>
3950
3951 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3952 instead of deprecated_store_return_value. Fix fallout from
3953 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3954
0ed04cce
AC
39552002-08-25 Andrew Cagney <ac131313@redhat.com>
3956
3957 * regcache.c (max_register_size): New function.
3958 (init_legacy_regcache_descr): Ensure that max_register_size is
3959 large enough for REGISTER_VIRTUAL_SIZE.
3960 * regcache.h (max_register_size): Declare.
3961
46d79c04
AC
39622002-08-24 Andrew Cagney <ac131313@redhat.com>
3963
3964 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3965 store_return_value.
3966 (e500_extract_return_value): Change type of valbuf pointer to
3967 void.
3968
853c7bd0
MK
39692002-08-24 Mark Kettenis <kettenis@gnu.org>
3970
cd87e769
MK
3971 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3972 workaround.
3973
853c7bd0
MK
3974 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3975 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3976 long long) to prevent compiler warning on 64-bit systems.
3977
ebba8386
AC
39782002-08-23 Andrew Cagney <cagney@redhat.com>
3979
3980 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3981 (DEPRECATED_STORE_RETURN_VALUE): New method.
3982 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3983 * gdbarch.h, gdbarch.c: Re-generate.
3984
3985 * values.c (set_return_value): Pass current_regcache to
3986 STORE_RETURN_VALUE.
3987 * arch-utils.h (legacy_store_return_value): Declare.
3988 * arch-utils.c (legacy_store_return_value): New function.
3989 (legacy_extract_return_value): Update parameters.
3990
3991 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3992 STORE_RETURN_VALUE.
3993 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3994 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3995 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3996 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3997 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3998 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3999 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4000 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4001 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4002 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4003
4004 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4005 * i386-tdep.c (i386_extract_return_value): Update.
4006 * arch-utils.c (legacy_extract_return_value): Update.
4007 * frv-tdep.c (frv_gdbarch_init): Update.
4008 * cris-tdep.c (cris_gdbarch_init): Update.
4009 * d10v-tdep.c (d10v_gdbarch_init): Update.
4010 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4011 * m68k-tdep.c (m68k_gdbarch_init): Update.
4012 * mcore-tdep.c (mcore_gdbarch_init): Update.
4013 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4014 * s390-tdep.c (s390_gdbarch_init): Update.
4015 * sparc-tdep.c (sparc_gdbarch_init): Update.
4016 * sh-tdep.c (sh_gdbarch_init): Update.
4017 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4018 * v850-tdep.c (v850_gdbarch_init): Update.
4019 * avr-tdep.c (avr_gdbarch_init): Update.
4020 * ia64-tdep.c (ia64_gdbarch_init): Update.
4021 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4022 * vax-tdep.c (vax_gdbarch_init): Update.
4023 * alpha-tdep.c (alpha_gdbarch_init): Update.
4024 * arm-tdep.c (arm_gdbarch_init): Update.
4025 * mips-tdep.c (mips_gdbarch_init): Update.
4026 * i386-tdep.c (i386_gdbarch_init): Update.
4027
5bd8c6d0
AC
40282002-08-23 Andrew Cagney <ac131313@redhat.com>
4029
4030 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4031 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4032
e73e1724
MK
40332002-08-24 Mark Kettenis <kettenis@gnu.org>
4034
4035 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4036 problems.
4037
3e6564e1
JB
40382002-08-23 Joel Brobecker <brobecker@gnat.com>
4039
4040 * infrun.c (handle_inferior_event): Move a comment outside of a
4041 function call, in order to avoid indent reformatting this part
4042 of the code in an unreadable way.
4043
81d0cc19
GS
40442002-08-23 Grace Sainsbury <graces@redhat.com>
4045
4046 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4047 when breakpoints fail. Move general breakpoint error messages to
4048 insert_breakpoints.
4049 * breakpoint.c (insert_breakpoints): Change warnings when
4050 breakpoints are nto inserted to specify the type. Remove call to
4051 memory_error when hardware breakpoints can't be inserted. Remove
4052 multiple calls to warning so all messages are sent to the user at
4053 once.
4054 (delete_breakpoints): Make insert error messsages more explicit.
4055
17574093
DJ
40562002-08-23 Daniel Jacobowitz <drow@mvista.com>
4057
4058 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4059 gdbserver/ChangeLog.
4060
8acc2935
MK
40612002-08-23 Mark Kettenis <kettenis@gnu.org>
4062
dfe01d39
MK
4063 * i386-tdep.c: Include "objfiles.h".
4064 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4065 skip_trampoline_code.
4066 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4067 (CPLUS_MARKER): Define to '.'.
4068
8acc2935
MK
4069 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4070 member.
4071 (linux_corefile_thread_callback): Increase args->num_notes.
4072 (linux_make_note_section): Initialize thread_args.num_notes, and
4073 use it to determine whether notes for any threads were created.
4074
151fefe2 40752002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
4076
4077 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4078 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4079 and PCUNKILL.
4080 (write_with_trace): Conditionalize out the switch branch handling
4081 PCSHOLD if the corresponding macro is not defined. Likewise for
4082 PRSABORT and PRSTOP.
4083 This change will be needed by the Interix port.
4084
e1507482
EZ
40852002-08-22 Elena Zannoni <ezannoni@redhat.com>
4086
4087 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4088 write_register wherever possible instead of manipulating the
4089 register bytes directly.
4090 Assign VALUE_CONTENTS to a variable and use that.
4091 The GPR numbers are now dependent on the architecture.
4092
96ff0de4
EZ
40932002-08-22 Elena Zannoni <ezannoni@redhat.com>
4094
4095 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4096 ev_offset fields.
4097 (skip_prologue): Add support for BookE/e500 instructions.
4098 (e500_extract_return_value): New function.
4099 (frame_get_saved_regs): Add support for saving ev registers and
4100 pseudo gpr's.
4101 (e500_store_return_value): New function.
4102 (rs6000_gdbarch_init): Move up default intializations of
4103 deprecated_extract_return_value and store_return_value. Overwrite
4104 init of store_return_value with e500 specific version.
4105 Set extract_return_value for e500.
4106
fbefca5b
EZ
41072002-08-22 Elena Zannoni <ezannoni@redhat.com>
4108
4109 * blockframe.c (generic_call_dummy_register_unwind): Use
4110 regcache_cooked_read to catch cases in which the variable is
4111 stored in a pseudo register.
4112
4d210288
AC
41132002-08-22 Andrew Cagney <cagney@redhat.com>
4114
4115 * NEWS: Mention that the i960 has been made obsolete.
4116 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4117 i960-tdep.c
4118 (remote-nrom.o): Obsolete target.
4119 (remote-nindy.o, i960-tdep.o): Ditto.
4120 * remote-nrom.c: Make file obsolete.
4121 * remote-nindy.c, remote-vx960.c: Ditto.
4122 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4123 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4124 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4125 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4126 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4127 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4128 i960-*-vxworks* obsolete.
4129 * MAINTAINERS: Note that the i960 is obsolete.
4130
6c0c456d
CV
41312002-08-21 Corinna Vinschen <vinschen@redhat.com
4132
4133 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4134 detach to allow reinitialization.
4135
9f9d12b3
AC
41362002-08-22 Andrew Cagney <ac131313@redhat.com>
4137
4138 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4139 attempt).
4140
ebeb39fe
JB
41412002-08-22 Jim Blandy <jimb@redhat.com>
4142
4143 * coffread.c (coff_symfile_read): Don't try to read the line
4144 number table from disk if the image file doesn't have a symbol
4145 table; we'll never actually look at the info anyway, and Windows
4146 ships DLL's with bogus file offsets for the line number data.
4147
5bf1c677
EZ
41482002-08-21 Elena Zannoni <ezannoni@redhat.com>
4149
4150 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4151 an e500 executable.
4152
71b8ef93
MS
41532002-08-21 Michael Snyder <msnyder@redhat.com>
4154
4155 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4156 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
4157 (DEFAULT_MIPS_TYPE): Delete unused macro.
4158 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4159 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 4160
d174216d
JB
41612002-08-21 Jim Blandy <jimb@redhat.com>
4162
4163 * valops.c (value_cast): Simplify and correct logic for doing a
4164 static cast from a pointer to a base class to a pointer to a
4165 derived class.
4166
0ab7a791
AC
41672002-08-21 Andrew Cagney <ac131313@redhat.com>
4168
4169 * infcmd.c (default_print_registers_info): Replace
4170 do_registers_info.
4171 (registers_info): Use gdbarch_print_registers_info instead of
4172 DO_REGISTERS_INFO.
4173 * inferior.h (default_print_registers_info): Replace
4174 do_registers_info.
4175 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4176 (DO_REGISTERS_INFO): Change to a predicate function.
4177 * gdbarch.h, gdbarch.c: Regenerate.
4178
e23792cc
KS
41792002-08-21 Keith Seitz <keiths@redhat.com>
4180
4181 * gdb-events.sh: Add target-changed event.
4182 * gdb-events.c: Regenerated.
4183 * gdb-events.c: Regenerated.
4184 * valops.c (value_assign): Add target-changed event notification
4185 to inlval_register, lval_memory, and lval_reg_frame_relative.
4186
9fb14e79
JB
41872002-08-21 Joel Brobecker <brobecker@gnat.com>
4188
4189 * NEWS: Add an entry regarding the improvement of the next/step
4190 operation on Alpha Tru64 multi-processor machines.
4191
6d39a69f
AC
41922002-08-21 Andrew Cagney <ac131313@redhat.com>
4193
72acd513
AC
4194 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4195 directores.
342af04b 4196 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
4197 * Makefile.in (install-gdbtk): Move to install section.
4198 (rdi-share/libangsd.a): Move to end of file.
4199
fa5f27c7
AC
42002002-08-19 Andrew Cagney <ac131313@redhat.com>
4201
4202 * frame.c (frame_register_unwind): When a register, set addrp to
4203 the register's byte.
4204
5a89d8aa
MS
42052002-08-20 Michael Snyder <msnyder@redhat.com>
4206
4207 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4208 used locally, so move them from the target machine header to here.
4209 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4210 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4211 Make static.
4212 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4213
822e978b
AC
42142002-08-20 Andrew Cagney <cagney@redhat.com>
4215
4216 * NEWS: Mention that the Apollo line was made obsolete.
4217 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4218 m68*-hp-hpux* obsolete.
4219 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4220 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4221 * buildsym.c (make_blockvector): Make static.
4222 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4223 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4224 (ALLDEPFILES): Remove dstread.c.
4225 (dstread.o): Obsolete make rule.
4226 * dstread.c: Makefile obsolete.
4227 * dst.h: Ditto.
4228 * config/m68k/hp300hpux.mt: Ditto.
4229 * config/m68k/hp300hpux.mh: Ditto.
4230 * config/m68k/hp300bsd.mt: Ditto.
4231 * config/m68k/hp300bsd.mh: Ditto.
4232 * config/m68k/apollo68b.mt: Ditto.
4233 * config/m68k/apollo68v.mh: Ditto.
4234 * config/m68k/apollo68b.mh: Ditto.
4235
e41b17f0
MS
42362002-08-20 Michael Snyder <msnyder@redhat.com>
4237
4238 * mips-tdep.c (mips_in_return_stub): Make static.
4239 (mips_gdbarch_init): Set in_solib_return_trampoline.
4240 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4241
d50355b6
MS
42422002-08-20 Michael Snyder <msnyder@redhat.com>
4243
4244 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4245 * gdbarch.c, gdbarch.h: Regenerate.
4246 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4247 Add.
4248 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4249
757a7cc6
MS
42502002-08-20 Michael Snyder <msnyder@redhat.com>
4251
4252 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4253 (mips_gdbarch_init): Set skip_trampoline_code,
4254 in_solib_call_trampoline.
4255 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4256 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4257
c8001721
EZ
42582002-08-20 Elena Zannoni <ezannoni@redhat.com>
4259
4260 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4261
4262 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4263 vector type for ev registers.
4264 (e500_pseudo_register_read): New function.
4265 (e500_pseudo_register_write): New function.
4266 (e500_dwarf2_reg_to_regnum): New function.
4267 (PPC_UISA_NOFP_SPRS): New macro.
4268 (PPC_EV_REGS): New macro.
4269 (PPC_GPRS_PSEUDO_REGS): New macro.
4270 (registers_e500): New register set for e500.
4271 (variants): Add e500 variant.
4272 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4273 before setting architectural dependent variations. Initialize ev
4274 registers numbers. Add case for e500 architecture. Set the
4275 number of pseudo registers.
4276
64366f1c
EZ
42772002-08-20 Elena Zannoni <ezannoni@redhat.com>
4278
4279 * rs6000-tdep.c: Clean up comments.
4280
7e78f0ca
AC
42812002-08-20 Andrew Cagney <cagney@redhat.com>
4282
4283 * h8300-tdep.c: Re-indent file.
4284
697f7479
JB
42852002-08-20 Jim Blandy <jimb@redhat.com>
4286
4287 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4288 default for this.
697f7479 4289
e86ae29f
KS
42902002-08-20 Keith Seitz <keiths@redhat.com>
4291
4292 * breakpoints.c (watch_command_1): Use internal breakpoint
4293 when setting a watchpoint_scope breakpoint.
4294
216b504f
EZ
42952002-08-20 Elena Zannoni <ezannoni@redhat.com>
4296
4297 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4298 (build_builtin_type_vec64i): Ditto.
4299 (build_builtin_type_vec128): Ditto.
4300 (build_builtin_type_vec128i): Ditto.
4301
f7ab6ec6
MS
43022002-08-19 Michael Snyder <msnyder@redhat.com>
4303
4304 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4305 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4306 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4307 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4308 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4309 CALL_DUMMY_ADDRESS): Delete.
4310 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4311 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4312 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4313 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4314 push_return_address.
4315 (mips_register_raw_size, mips_eabi_use_struct_convention,
4316 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4317 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4318 mips_init_extra_frame_info, mips_eabi_push_arguments,
4319 mips_n32n64_push_arguments, mips_push_return_address,
4320 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4321 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4322
b5d1566e
MS
43232002-08-19 Michael Snyder <msnyder@redhat.com>
4324
4325 * mips-tdep.c (mips_frame_num_args): New function.
4326 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4327 frame_saved_pc, frame_args_address, frame_locals_address,
4328 frame_num_args, and frame_args_skip.
4329 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4330 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4331 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4332 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4333
2f1488ce
MS
43342002-08-20 Michael Snyder <msnyder@redhat.com>
4335
4336 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4337 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4338 * mips-tdep.c (mips_store_struct_return): New function.
4339 (mips_extract_struct_value_address): New function.
4340 (mips_gdbarch_init): Set store_struct_return and
4341 extract_struct_value_address.
4342
41ff2da1
DC
43432002-08-20 David Carlton <carlton@math.stanford.edu>
4344
4345 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4346 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4347 (read_file_scope): Check that line_header is nonzero before
4348 decoding macro information.
4349
e5451d58
MK
43502002-08-20 Mark Kettenis <kettenis@gnu.org>
4351
4352 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4353 flag the general-purpose registers as floating-point on targets
4354 that don't support the floating-point registers.
4355
4a6daafa
EZ
43562002-08-20 Elena Zannoni <ezannoni@redhat.com>
4357
4358 * rs6000-tdep.c (altivec_register_p): Delete.
4359 (rs6000_do_altivec_registers): Delete.
4360 (rs6000_altivec_registers_info): Delete.
4361 (rs6000_do_registers_info): Delete.
4362 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4363 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4364
ab4327e0
EZ
43652002-08-20 Elena Zannoni <ezannoni@redhat.com>
4366
4367 * infcmd.c (do_registers_info): Print vector registers in hex
4368 format only.
4369 (print_vector_info): Check that printing registers
4370 makes sense.
4371 (print_float_info): Ditto.
4372
cb1d2653
AC
43732002-08-20 Andrew Cagney <ac131313@redhat.com>
4374
4375 * mips-tdep.c (mips_gdbarch_init): Update.
4376 (mips_o32_extract_return_value): Rewrite.
4377 (mips_o32_store_return_value): Rewrite.
4378 (mips_o32_xfer_return_value): New function.
4379 (mips_xfer_register): Tweak debug print message. Allow for
4380 buf_offset when dumping the value transfered.
4381
dfc3d9b2
AC
43822002-08-20 Andrew Cagney <ac131313@redhat.com>
4383
4384 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4385 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4386 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4387 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4388 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4389
7807aa61
MS
43902002-08-14 Michael Snyder <msnyder@redhat.com>
4391
4392 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4393
489461e2
EZ
43942002-08-19 Elena Zannoni <ezannoni@redhat.com>
4395
4396 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4397 register.
4398 (P): New macro to define a register as a pseudo register.
4399 (R, R4, R8, R16, FR32, R64, R0): Updated.
4400 (struct variant): Add new fields for number of pseudo registers
4401 and number of total registers.
4402 (tot_num_registers): New macro replacing....
4403 (num_registers): ...deleted macro.
4404 (num_registers): New function.
4405 (num_pseudo_registers): New function.
4406 (variants): Update all variants to intialize new fields correctly.
4407 Postpone initialization of number of pseudo regs and real regs.
4408 (init_variants): New function.
4409 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4410 registers offsets.
4411
fcaffe4c
DC
44122002-08-19 David Carlton <carlton@math.stanford.edu>
4413
2c2738a0
DC
4414 * valops.c (search_struct_field): Change error message to treat
4415 return value of 0 from value_static_field as meaning that field is
4416 optimized out.
4417 (value_struct_elt_for_reference): Ditto.
4418 * values.c (value_static_field): Treat an unresolved location the
4419 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4420 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4421 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4422 * MAINTAINERS: Add self to Write After Approval list.
4423
88658117
AC
44242002-08-19 Andrew Cagney <ac131313@redhat.com>
4425
4426 * mips-tdep.c (mips_xfer_register): New function.
4427 (mips_n32n64_extract_return_value): Rewrite.
4428 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4429 instead of deprecated_extract_return_value.
4430
21283beb
EZ
44312002-08-19 Elena Zannoni <ezannoni@redhat.com>
4432
4433 * rs6000-tdep.c (TDEP): Delete macro.
4434 (branch_dest): Replace use of TDEP macro with its body.
4435 (rs6000_pop_frame): Ditto.
4436 (rs6000_push_arguments): Ditto.
4437 (rs6000_skip_trampoline_code): Ditto.
4438 (rs6000_frame_saved_pc): Ditto.
4439 (rs6000_frame_chain): Ditto.
4440 (rs6000_register_name): Ditto.
4441 (rs6000_register_byte): Ditto.
4442 (rs6000_register_raw_size): Ditto.
4443 (rs6000_register_virtual_type): Ditto.
4444 (rs6000_register_convertible): Ditto.
4445 (rs6000_convert_from_func_ptr_addr): Ditto.
4446
bf072999
DJ
44472002-08-19 Daniel Jacobowitz <drow@mvista.com>
4448
4449 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4450 conditionally.
4451 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4452 MIPS_LINUX_JB_ELEMENT_SIZE.
4453 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4454 for MAX_REGISTER_RAW_SIZE arrays.
4455 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4456 MIPS_LINUX_JB_ELEMENT_SIZE.
4457
9b949a49
PM
44582002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4459
4460 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4461
6d3e79c6
AS
44622002-08-19 Aidan Skinner <aidan@velvet.net>
4463
4464 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4465 ada-valprint.c ada-tasks.c.
4466 (YYFILES): Add ada-exp.y.
4467 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4468 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4469 (ada-exp.tab.o): New target.
4470
06c0b04e
AC
44712002-08-18 Andrew Cagney <ac131313@redhat.com>
4472
4473 * regcache.c (regcache_xfer_part): New function.
4474 (regcache_raw_read_part): New function.
4475 (regcache_raw_write_part): New function.
4476 (regcache_cooked_read_part): New function.
4477 (regcache_cooked_write_part): New function.
4478 * regcache.h (regcache_raw_read_part): Declare.
4479 (regcache_raw_write_part): Declare.
4480 (regcache_cooked_read_part): Declare.
4481 (regcache_cooked_write_part): Declare.
4482
92d1e331
DJ
44832002-08-18 Daniel Jacobowitz <drow@mvista.com>
4484
4485 * remote.c (remote_open_1): Add async_p.
4486 (remote_async_open_1): Delete.
4487 (open_remote_target): Delete.
4488 (remote_open, extended_remote_open): Update calls to remote_open_1.
4489 (remote_async_open, extended_remote_async_open): Call
4490 remote_open_1 instead of remote_async_open_1.
4491
247055de
MK
44922002-08-19 Mark Kettenis <kettenis@gnu.org>
4493
4494 * blockframe.c: Fix a few coding standard violations.
4495
641eda39
MK
44962002-08-19 Mark Kettenis <kettenis@gnu.org>
4497
0b717710
MK
4498 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4499 here from ...
4500 * config/i386/tm-i386sco5.h: ... here. File removed.
4501 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4502
26d28e12 4503 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4504 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4505 (TM_FILE): Set to tm-i386.h.
4506 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4507 * config/i386/tm-i386v.h: Remove file.
4508 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4509 instead of "i386/tm-i386v.h".
4510 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4511 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4512 "i386/tm-i386v.h".
4513 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4514 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4515 "i386/tm-i386.h".
4516
d4e0bab4
MK
45172002-08-18 Mark Kettenis <kettenis@gnu.org>
4518
4519 * config/i386/nm-i386v.h: Add protection against
4520 multiple-inclusion.
4521 (i386_register_u_addr): Remove prototype.
4522 (register_u_addr): New prototype.
4523 (REGISTER_U_ADDR): Redefine accordingly.
4524 * i386v-nat.c: Improve several comments.
4525 (i386_register_u_addr): Change signature and rename to
4526 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4527 ubase variable.
4528
46cac009
AC
45292002-08-18 Andrew Cagney <ac131313@redhat.com>
4530
4531 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4532 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4533 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4534 deprecated_extract_return_value.
4535 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4536 rename mips_o32o64_push_arguments.
4537 (mips_gdbarch_init): Update.
4538 (mips_extract_return_value): Delete.
4539 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4540 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4541 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4542 (mips_n32n64_extract_return_value): Clone
4543 mips_extract_return_value.
4544 (mips_store_return_value): Delete.
4545 (mips_o32_store_return_value): Clone mips_store_return_value.
4546 (mips_o64_store_return_value): Clone mips_store_return_value.
4547 (mips_eabi_store_return_value): Clone mips_store_return_value.
4548 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4549
d2e4a39e
AS
45502002-08-18 Aidan Skinner <aidan@velvet.net>
4551
0c30c098
AS
4552 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4553 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4554
45552002-08-18 Aidan Skinner <aidan@velvet.net>
4556
4557 * ada-lang.c: Run through gdb_indent.sh.
4558 * ada-lang.h: Run through gdb_indent.sh.
4559 * ada-tasks.c: Run through gdb_indent.sh.
4560 * ada-typeprint.c: Run through gdb_indent.sh.
4561 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4562
01fc4e33
AC
45632002-08-18 Andrew Cagney <ac131313@redhat.com>
4564
4565 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4566 ABI.
4567
d8ee244c
MK
45682002-08-18 Mark Kettenis <kettenis@gnu.org>
4569
c38d8261
MK
4570 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4571
222db64c
MK
4572 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4573 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4574
c2848c82
MK
4575 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4576 write_register_gen instead of write_register_bytes.
4577
d8ee244c
MK
4578 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4579 i[3456]-*-osf1mk* configurations have been made obsolete.
4580 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4581 i[3456]86-*-osf1mk* hosts obsolete.
4582 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4583 targets obsolete.
4584 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4585 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4586 config/i386/i386m3.mt, config/i386/nm-m3.h,
4587 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4588 config/i386/i386mk.mh, config/i386/i386mk.mt,
4589 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4590 obsolete.
4591 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4592 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4593 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4594
61d8d407
AC
45952002-08-18 Andrew Cagney <ac131313@redhat.com>
4596
4597 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4598 (hppa_value_returned_from_stack): Declare.
4599 (hppa_extract_return_value): Declare.
4600 * config/pa/hppa.mt: New file.
4601 * configure.tgt: Recognize hppa*-*-*.
4602 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4603
0c52bd59
MK
46042002-08-18 Mark Kettenis <kettenis@gnu.org>
4605
4606 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4607 comment.
4608
b5686e99
MK
46092002-08-17 Mark Kettenis <kettenis@gnu.org>
4610
4611 * top.c (gdb_rl_operate_and_get_next): Make sure
4612 operate-and-get-next functions correctly even when the history
4613 list is completely filled.
4614
c1bab85b
AC
46152002-08-18 Andrew Cagney <ac131313@redhat.com>
4616
4617 * MAINTAINERS (Target Instruction Set Architectures): Rename
4618 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4619 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4620 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4621 already listed under Host/Native.
4622
4623 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4624 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4625 mips*-*-*.
4626
32089c7c
AC
46272002-08-17 Andrew Cagney <ac131313@redhat.com>
4628
4629 * config/ia64/ia64.mt: New file.
4630 * config/alpha/alpha.mt: New file.
4631 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4632 ia64-linux-gnu. Mention that ia64-elf is broken.
4633 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4634
b4671f85
MK
46352002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4636
4637 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4638 generic_func_frame_valid instead of func_frame_valid.
4639
c8edd8b4
JB
46402002-08-16 Joel Brobecker <brobecker@gnat.com>
4641
4642 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4643 procfs appears to be broken when debugging on multi-processor
4644 machines. So enable software single stepping in order to avoid
4645 using the procfs interface to do next/step operations, using
4646 internal breakpoints instead.
4647
4648 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4649 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4650 make this pc address equal to the value it would have if the
4651 system stepping capability was used. Also set a new flag used
4652 to ensure that we don't readjust the PC one more time later.
4653
4654 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4655 address by DECR_PC_AFTER_BREAK when software single step is
4656 in use for this architecture, as this has already been taken
4657 care of in handle_inferior_event().
4658
238617f6
JB
46592002-08-16 Joel Brobecker <brobecker@gnat.com>
4660
4661 * infrun.c (handle_inferior_event): Minor reformatting, to make
4662 a rather long condition expression easier to read.
4663
541a7aac
AC
46642002-08-16 Andrew Cagney <ac131313@redhat.com>
4665
4666 * Makefile.in (gdbtk.o): Move to end of file.
4667 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4668 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4669 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4670 (gdbtk-wrapper.o, gdbres.o): Ditto.
4671
f92d4a7b
AC
46722002-08-16 Andrew Cagney <ac131313@redhat.com>
4673
4674 * Makefile.in (copying.o): Separate out compile rule.
4675 (hpux-thread.o, procfs.o, signals.o): Ditto.
4676 (v850ice.o, z8k-tdep.o): Ditto.
4677 (tui-file.o): Move to TUI section.
4678 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4679 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4680
1cce71eb
JB
46812002-08-16 Joel Brobecker <brobecker@gnat.com>
4682
4683 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4684 skip_trampoline_code, for better namespace-proofing.
4685
4686 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4687
0851f23d
JB
46882002-08-16 Joel Brobecker <brobecker@gnat.com>
4689
4690 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4691
f8d40ec8
JB
46922002-08-16 Joel Brobecker <brobecker@gnat.com>
4693
4694 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4695 signal, check whether we hit a breakpoint before checking for a
4696 single step breakpoint. Otherwise, GDB fails to notice that a
4697 breakpoint has been hit when stepping onto a breakpoint.
4698
63d022e0
KS
46992002-08-16 Keith Seitz <keiths@redhat.com>
4700
4701 * gdb-events.sh (clear_gdb_event_hooks): New function.
4702 * gdb-events.c: Regenerate.
4703 * gdb-events.h: Regenerate.
4704
6e31adb3
AC
47052002-08-16 Andrew Cagney <ac131313@redhat.com>
4706
4707 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4708 not_a_sw_breakpoint.
4709 * breakpoint.h (bpstat_stop_status): Add parameter names.
4710
c8189ed1
GS
47112002-08-16 Grace Sainsbury <graces@redhat.com>
4712
4713 * remote.c (remote_insert_hw_breakpoint)
4714 (remote_remove_hw_breakpoint): Fix calculation of length field
4715 for Z-packet.
4716
d05285fa
MS
47172002-08-15 Michael Snyder <msnyder@redhat.com>
4718
466d7106
MS
4719 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4720 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4721 (supply_fpregset): Ditto.
4722
d05285fa
MS
4723 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4724 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4725 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4726 (TARGET_READ_SP): Delete.
bf1f5b4c 4727 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4728 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4729 Delete.
4730 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4731 from macros to functions.
bf1f5b4c 4732
d05285fa
MS
4733 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4734 (mips_register_convertible, mips_register_convert_to_virtual,
4735 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4736 (mips_read_sp): New function.
4737 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4738 (mips_do_registers_info): Make static.
4739 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4740 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4741 (mips_register_convert_from_type, mips_register_convert_to_type):
4742 New functions.
4743 (mips_gdbarch_init): Set up function_start_offset,
4744 register_virtual_size, pc_in_sigtramp.
d05285fa 4745
e76f1f2e
AC
47462002-08-15 Andrew Cagney <ac131313@redhat.com>
4747
4748 * infcmd.c (vector_info): New function.
4749 (_initialize_infcmd): Add command "info vector".
4750 (print_vector_info): New function.
4751
4752 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4753 * gdbarch.h, gdbarch.c: Regenerate.
4754
4782dc19
AC
47552002-08-15 Andrew Cagney <ac131313@redhat.com>
4756
4757 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4758 ``print_all''. Only print vector registers when ``print_all''.
4759
23e3a7ac
AC
47602002-08-15 Andrew Cagney <ac131313@redhat.com>
4761
8e186fd6
AC
4762 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4763 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4764
23e3a7ac
AC
4765 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4766 Add `args' parameter.
4767 * gdbarch.h, gdbarch.c: Regenerate.
4768
4769 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4770
4771 * infcmd.c (float_info): Call print_float_info.
4772 (print_float_info): New function. By default, print the
4773 floating-point registers.
4774
4775 * arch-utils.h (default_print_float_info): Delete declaration.
4776 * arch-utils.c (default_print_float_info): Delete function.
4777
e0ca2bb9
MK
47782002-08-16 Mark Kettenis <kettenis@gnu.org>
4779
3f733acc
MK
4780 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4781 out define.
4782
7d8d2918
MK
4783 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4784 FRAME.
4785
1c7cc583
MK
4786 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4787 * configure.host: Make i[3456]86-*-aix host obsolete.
4788 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4789 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4790 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4791 config/i386/xm-i386aix.h: Make files obsolete.
4792 * i386aix-nat.c: Make file obsolete.
4793 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4794 (i386aix-nat.o): Make target obsolete.
4795
e0ca2bb9
MK
4796 * config/i386/nm-gnu.h: Removed.
4797 * config/i386/nm-i386gnu.h: New file.
4798 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4799 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4800 Moved here from ...
4801 * config/i386/tm-i386gnu.h: ... here. Removed.
4802 * config/i386/xm-i386gnu.h: Removed.
4803 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4804 (NAT_FILE): Set to nm-i386gnu.h.
4805 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4806 * i386-tdep.c: New file.
4807 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4808 (i386gnu-tdep.o): Specify dependencies.
4809
16057ec7 48102002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4811
6b99ee2e
MK
4812 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4813 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4814 Adjust a few comments to reflect reality a bit closer.
4815 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4816 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4817 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4818 target_insert_watchpoint, target_remove_watchpoint):
4819 Move defines to ...
4820 * config/i386/nm-i386sco5.h: ... here.
4821 (kernel_u_size): Add prototype. Improve a few comments and add
4822 protection against multiple inclusion.
4823
d9a6f65c
MK
4824 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4825 out define.
4826
047eff6a
MK
4827 * uw-thread.c (SP_ARG0): Define if not already defined.
4828 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4829
dcdb1290
MK
4830 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4831
5d2d0b2a
MK
4832 * config/i386/tm-i386.h: Don't include "regcache.h".
4833
61113f8b
MK
4834 * i387-tdep.h (i387_print_float_info): New prototype.
4835 * i387-tdep.c (print_i387_value, print_i387_ext,
4836 print_i387_status_word, print_i387_control_word): Add `struct
4837 ui_file *' argument and use it for output.
4838 (i387_print_float_info): Renamed from i387_float_info. Add
4839 `struct gdbarch *' and `struct ui_file *' arguments and use the
4840 latter for output.
4841 * i386-tdep.c: Include "i387-tdep.h".
4842 (i386_gdbarch_init): Set print_float_info.
4843 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4844 (FLOAT_INFO): Remove define.
4845
46e0f506
MS
48462002-08-13 Michael Snyder <msnyder@redhat.com>
4847
4848 * mips-tdep.c (mips_push_arguments): Rename to
4849 mips_eabi_push_arguments, and tune for EABI.
4850 (MIPS_REGS_HAVE_HOME_P): Delete.
4851 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4852 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4853 Delete references to mips_regs_have_home_p.
4854
409268de
KS
48552002-08-14 Keith Seitz <keiths@redhat.com>
4856
4857 * Makefile.in (install-gdbtk): Create insight plugin directory.
4858 Install plugins.tcl file.
4859
ffc6a242
KS
48602002-08-14 Keith Seitz <keiths@redhat.com>
4861
4862 * configure.in: Move SUBDIRS to near top of the file so that
4863 --enable options may add things to it.
4864 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4865 * configure: Regenerate.
4866
ebafbe83
MS
48672002-08-13 Michael Snyder <msnyder@redhat.com>
4868
4869 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4870 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4871 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4872
32f6f25d
AC
48732002-08-13 Andrew Cagney <ac131313@redhat.com>
4874
4875 * vax-tdep.c (vax_get_saved_register): Delete function.
4876 (vax_gdbarch_init): Update.
4877 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4878 (ns32k_gdbarch_init): Update.
4879 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4880 (alpha_gdbarch_init): Update.
4881
53826de9
AC
48822002-08-13 Andrew Cagney <cagney@redhat.com>
4883
4884 * regcache.c (init_regcache_descr): Overallocate the
4885 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4886 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4887 nr_raw_registers.
4888 (set_register_cached): Add range checking assertions. Use
4889 current_regcache.
4890
16057ec7 48912002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4892
4893 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4894 numbers for MMX registers.
4895
7b4c2dce
AC
48962002-08-13 Andrew Cagney <cagney@redhat.com>
4897
4898 * i386-tdep.c (i386_gdbarch_init): Use
4899 generic_unwind_get_saved_register.
4900
1e03ad20
KB
49012002-08-13 Kevin Buettner <kevinb@redhat.com>
4902
4903 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4904 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4905 target vector.
4906 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4907 Delete. Add comment regarding this now-deleted target method.
4908
548bcbec
SC
49092002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4910
4911 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4912 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4913 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4914 real PC and the page number (if it's within the memory bank window).
4915 (m68hc11_pseudo_register_write): Likewise when saving.
4916 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4917 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4918 (m68hc11_register_raw_size): And use 32-bit for it.
4919 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4920 16K memory bank is used by the prog; also use the virtual pc.
4921
7df11f59
SC
49222002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4923
4924 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4925 (m68hc11_gdbarch_init): Install it in gdbarch.
4926 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4927 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4928 (MSYMBOL_SIZE): New for documentation.
4929 (insn_return_kind): Enum to specify how a function returns.
4930 (frame_extra_info): Cleanup and record the return mode.
4931 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4932 register in address computation.
4933 (m68hc11_get_return_insn): New to obtain the return instruction used
4934 by the function.
4935 (m68hc11_frame_init_saved_regs): Take into account the return
4936 instruction used by the function for far and interrupt functions.
4937 (m68hc11_init_extra_frame_info): Take into account page register.
4938 (m68hc11_frame_args_address): Adjust according to the return mode.
4939 (show_regs): Print page register only when it's used.
4940
5706502a
SC
49412002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4942
4943 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4944 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4945 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4946 registers.
4947 (m68hc11_register_raw_size): Likewise.
4948
28fc6740
AC
49492002-08-13 Andrew Cagney <cagney@redhat.com>
4950
4951 * i386-tdep.c (i386_register_name): Handle mmx registers.
4952 (mmx_regnum_p): New function.
4953 (i386_mmx_names): New array.
4954 (mmx_num_regs): New variable.
4955 (i386_pseudo_register_read): New function.
4956 (i386_pseudo_register_write): New function.
4957 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4958
4959 * regcache.c (regcache_raw_read_unsigned): New function.
4960 (regcache_raw_read_signed): New function.
4961 * regcache.h (regcache_raw_read_unsigned): Declare.
4962 (regcache_raw_read_signed): Declare.
4963
a378f419
AC
49642002-08-13 Andrew Cagney <cagney@redhat.com>
4965
4966 * regcache.c (regcache_raw_read_as_address): Delete function.
4967 (regcache_cooked_read_signed): New function.
4968 (regcache_cooked_read_unsigned): New function.
4969 * regcache.h (regcache_cooked_read_signed): Declare.
4970 (regcache_cooked_read_unsigned): Declare.
4971 (regcache_raw_read_as_address): Delete declaration.
4972
4973 * blockframe.c (generic_read_register_dummy): Use
4974 regcache_cooked_read_unsigned.
4975 * i386-tdep.c (i386_extract_struct_value_address): Use
4976 regcache_cooked_read_unsigned.
4977
81967506
SC
49782002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4979
4980 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4981 double sizes according to ELF ABI flags.
4982 (gdbarch_tdep): Record elf_flags.
4983
ffe1f3ee
SC
49842002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4985
4986 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4987 (m6812_prolog): They can appear in 68HC12 function prologue.
4988 (m68hc11_frame_chain): Cleanup.
4989
98216c5d
AC
49902002-08-12 Andrew Cagney <cagney@redhat.com>
4991
4992 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4993 declarations.
4994 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4995 (i386_linux_register_raw_size): Delete function.
4996 (i386_linux_init_abi): Update.
4997 * i386-tdep.c (i386_register_raw_size): Delete function.
4998 (i386_register_byte): Delete function.
4999 (i386_gdbarch_init): Update.
5000 (i386_register_size): Delete array.
5001 (i386_register_offset): Delete array.
5002
5003 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5004 (REGISTER_RAW_SIZE): Delete macro.
5005 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5006 (REGISTER_BYTE): Delete macro.
5007
3b19021e
AS
50082002-08-11 Aidan Skinner <aidan@velvet.net>
5009
5010 * ada-lang.c (ada_lookup_partial_symbol)
5011 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5012 prototype names so that grep ^func works properly.
5013
5014 * ada-lang.c (ada_array_element_type)
5015 (ada_lookup_partial_symbol): Fix typos in parameter list.
5016
5017 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5018 Fix prototype names so that grep ^func works properly.
5019
b063e7a2
AC
50202002-08-10 Andrew Cagney <cagney@redhat.com>
5021 Elena Zannoni <ezannoni@redhat.com>
5022 Martin M. Hunt <hunt@redhat.com>
5023
5024 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5025 (build_builtin_type_vec128i): Set the vector bit.
5026 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5027 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5028 (build_builtin_type_vec64): New function.
5029 (build_builtin_type_vec64i): New function.
5030 (build_gdbtypes): Initialize builtin_type_vec64 and
5031 builtin_type_vec64i.
5032
a7e3c2ad
AC
50332002-08-09 Andrew Cagney <cagney@redhat.com>
5034
5035 * regcache.c (regcache_dump): Compare the register offset
5036 with REGISTER_BYTE.
5037 * arch-utils.c (generic_register_byte): New function.
5038 * arch-utils.h (generic_register_byte): Declare.
5039 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5040 * gdbarch.h, gdbarch.c: Regenerate.
5041
af030b9a
AC
50422002-08-09 Andrew Cagney <cagney@redhat.com>
5043
5044 * regcache.c: Include "gdbcmd.h"
5045 (_initialize_regcache): Add commands "maintenance print
5046 registers", "maintenance print raw-registers" and "maintenance
5047 print cooked-registers".
5048 (enum regcache_dump_what): Define.
5049 (dump_endian_bytes): New function.
5050 (regcache_dump): New function.
5051 (regcache_print): New function.
5052 (maintenance_print_registers): New function.
5053 (maintenance_print_raw_registers): New function.
5054 (maintenance_print_cooked_registers): New function.
5055 * Makefile.in (regcache.o): Update dependencies.
5056
cb3d25d1
MS
50572002-08-09 Michael Snyder <msnyder@redhat.com>
5058
5059 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5060 (mips_push_arguments): Correct some comments. Use paddr_nz
5061 for printing addresses in debug output. Replace static
5062 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5063 (mips_n32n64_push_arguments): New function, cloned from
5064 mips_push_arguments and tuned for the n32/n64 ABI.
5065 (mips_push_register): Buffer needs dynamic allocation.
5066 (mips_print_register): Ditto.
5067 (do_gp_register_row): Ditto.
5068 (mips_store_return_value): Ditto.
5069 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5070
2163ab9d
DH
50712002-08-09 Don Howard <dhoward@redhat.com>
5072
5073 * memattr.c (mem_info_command): Print special case of upper bound
5074 as max CORE_ADDR + 1.
5075
b78bcb18
MS
50762002-08-08 Michael Snyder <msnyder@redhat.com>
5077
5078 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5079 returns structs by ref if they're too big to fit in two registers.
5080
ffabd70d
KB
50812002-08-09 Kevin Buettner <kevinb@redhat.com>
5082
5083 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5084 saved regs value.
5085 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5086 mips_find_saved_regs().
5087 (mips_pop_frame): Likewise.
5088
fbcdb4a3
KB
50892002-08-09 Kevin Buettner <kevinb@redhat.com>
5090
5091 * blockframe.c (frame_saved_regs_register_unwind): Revise
5092 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5093 frames are in use.
5094
3c3bea1c
GS
50952002-08-09 Grace Sainsbury <graces@redhat.com>
5096
5097 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5098 T-packets; the 'a' is not taken as a register number.
5099 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5100 (remote_stopped_data_address): New functions; add to target
5101 vector.
5102 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5103 prototypes to match other implementations of this
5104 function. replace integer argument with pointer -- the length
5105 field in the Z-packet is the length of what is pointed to or 1 if
5106 pointer is null. Add to target vector.
5107 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5108 target vector.
5109
5110 From Mark Salter:
5111 * remote.c (remote_wait): Add support to extract optional
5112 watchpoint information from T-packet. Ignore unrecognized
5113 optional info in T-packet.
5114 (remote_async_wait): Ditto.
5115
5d1d95de
CV
51162002-08-09 Corinna Vinschen <vinschen@redhat.com>
5117
5118 * cli/cli-dump.c: Change fopen modes to use binary open modes
5119 as defined in include/fopen-bin.h throughout.
5120
c86b5b38
MS
51212002-08-08 Michael Snyder <msnyder@redhat.com>
5122
5123 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5124
b30590dc
KB
51252002-08-08 Kevin Buettner <kevinb@redhat.com>
5126
5127 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5128 assertion failure by returning early after a warning.
5129
498868ed
KB
51302002-08-08 Kevin Buettner <kevinb@redhat.com>
5131
5132 * mips-tdep.c (mips_find_saved_regs): Make static.
5133 (mips_frame_init_saved_regs): New function.
5134 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5135 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5136 (mips_find_saved_regs): Delete declaration.
5137
b2dd6311
GS
51382002-08-08 Grace Sainsbury <graces@redhat.com>
5139
3c3bea1c
GS
5140 * remote.c (remote_wait, remote_async_wait): Change
5141 thread_num from int to ULONGEST.
5142 (unpack_varlen_hex): Change result parameter from
5143 int * to ULONGEST *.
b2dd6311 5144
ea47855f
AC
51452002-08-08 Andrew Cagney <ac131313@redhat.com>
5146
5147 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5148 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5149 powerpc*-*-*.
5150 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5151
69db8bae
AC
51522002-08-08 Andrew Cagney <cagney@redhat.com>
5153
5154 * gcore.c (override_derive_stack_segment): Delete variable.
5155 (preempt_derive_stack_segment): Delete function.
5156 (derive_stack_segment): Delete function.
5157 (default_derive_stack_segment): Renamed to derive_stack_segment.
5158 (override_derive_heap_segment): Delete variable.
5159 (preempt_derive_heap_segment): Delete function.
5160 (derive_heap_segment): Delete function.
5161 (default_derive_heap_segment): Rename to derive_heap_segment.
5162
cb811fe7
MS
51632002-08-06 Michael Snyder <msnyder@redhat.com>
5164
5165 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5166 * mips-tdep.c (mips_EABI_use_struct_convention,
5167 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5168 New functions. (mips_use_struct_convention): Delete.
5169 (mips_gdbarch_init): set use_gdbarch_convention.
5170
8b389c40
MS
51712002-08-06 Michael Snyder <msnyder@redhat.com>
5172
5173 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5174 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5175 mips_o32_reg_struct_has_addr): New functions.
5176 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5177
5c27f28a
AC
51782002-08-07 Andrew Cagney <ac131313@redhat.com>
5179
5180 * regcache.c (pseudo_register): Delete function.
5181 (fetch_register): Delete function.
5182 (store_register): Delete function.
5183 (regcache_raw_read, legacy_read_register_gen): Use
5184 target_fetch_registers instead of fetch_register.
5185 (legacy_write_register_gen, regcache_raw_write): Use
5186 target_store_register instead of store_register.
5187 (write_register_bytes): Ditto.
5188
5189 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5190 (STORE_PSEUDO_REGISTER): Delete.
5191 * gdbarch.h, gdbarch.c: Regenerate.
5192
5b331675
CV
51932002-08-06 Corinna Vinschen <vinschen@redhat.com>
5194
5195 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5196 write dump file binary.
5197
6acdf5c7
MS
51982002-08-05 Michael Snyder <msnyder@redhat.com>
5199
5200 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5201 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5202 (mips_gdbarch_init): Set N32 target to be mips64.
5203
b2f01c35
KB
52042002-08-06 Kevin Buettner <kevinb@redhat.com>
5205
5206 * frame.c (find_saved_register): Break out of loop once saved
5207 register address is found. Don't mention sparc in loop comment
5208 anymore.
5209
63db5580
KB
52102002-08-06 Kevin Buettner <kevinb@redhat.com>
5211
5212 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5213 mips_default_saved_regsize to 8.
5214
5e34e75e
AC
52152002-08-06 Andrew Cagney <ac131313@redhat.com>
5216
5217 * gcore.c: Do not include <sys/procfs.h>.
5218 * Makefile.in (gcore.o): Update dependencies.
5219
eb4c54a2
AC
52202002-08-06 Andrew Cagney <cagney@redhat.com>
5221
5222 * configure.tgt: Make arc-*-* obsolete.
5223 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5224 * MAINTAINERS: Make arc-elf obsolete.
5225 * arc-tdep.c: Make file obsolete.
5226 * config/arc/arc.mt: Ditto.
5227 * config/arc/tm-arc.h: Ditto.
5228
ced15480
TR
52292002-08-05 Theodore A. Roth <troth@verinet.com>
5230
c1bab85b 5231 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 5232
b4743822
AC
52332002-08-05 Andrew Cagney <ac131313@redhat.com>
5234
5235 * mcore-tdep.c (mcore_gdbarch_init): Use
5236 generic_unwind_get_saved_register instead of
5237 generic_get_saved_register.
5238 * v850-tdep.c (v850_gdbarch_init): Ditto.
5239 * frv-tdep.c (frv_gdbarch_init): Ditto.
5240 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5241 * s390-tdep.c (s390_gdbarch_init): Ditto.
5242 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5243 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5244 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5245
3956d554
JB
52462002-08-05 Joel Brobecker <brobecker@gnat.com>
5247
5248 * objfiles.h: Add missing #include "symfile.h"
5249
5250 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5251
8249c0d6
AC
52522002-08-04 Andrew Cagney <ac131313@redhat.com>
5253
5254 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5255 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5256 of FIELD_BITSIZE.
5257
b9d14705
DJ
52582002-08-04 Daniel Jacobowitz <drow@mvista.com>
5259
5260 * NEWS: Cleanup and nitpick.
5261
dd73b9bb
AC
52622002-08-03 Andrew Cagney <ac131313@redhat.com>
5263
5264 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5265
043a27f8
AC
52662002-08-03 Andrew Cagney <ac131313@redhat.com>
5267
5268 * Makefile.in (gdbtk-bp.o): Update dependencies.
5269 (gdbtk-register.o): Ditto.
5270 (gdbtk-varobj.o): Ditto.
5271
46ce284d
AC
52722002-08-03 Andrew Cagney <cagney@redhat.com>
5273
5274 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5275 m68hc11_fetch_pseudo_register.
5276 (m68hc11_pseudo_register_write): Replace
5277 m68hc11_store_pseudo_register.
5278 (m68hc11_gdbarch_init): Update.
5279
b66d6d2e
AC
5280Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5281
5282 * gdbarch.sh: Include "gdb_string.h".
5283 * gdbarch.c: Regenerate.
5284
5285 * regcache.c: Include "gdb_string.h".
5286 * ax-general.c: Ditto.
5287 * varobj.c: Ditto.
5288 * std-regs.c: Ditto.
5289 * fbsd-proc.c: Ditto.
5290 * thread.c: Ditto.
5291
5292 * Makefile.in (regcache.o): Update dependencies.
5293 (thread.o, gdbarch.o): Ditto.
5294 (ax-general.o, gdbarch.o): Ditto.
5295 (varobj.o, std-regs.o): Ditto.
5296 (fbsd-proc.o): Specify dependencies.
5297
29e1842b
AC
52982002-08-02 Andrew Cagney <cagney@redhat.com>
5299
5300 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5301 regnum.
5302 (regcache_cooked_write): Ditto.
5303
68365089
AC
53042002-08-02 Andrew Cagney <ac131313@redhat.com>
5305
5306 * regcache.c (regcache_cooked_read): New function.
5307 (regcache_cooked_write): New function.
5308 (read_register_gen): Rewrite using regcache_cooked_read.
5309 (write_register_gen): Rewrite using regcache_cooked_write.
5310
5311 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5312 Declare.
5313
d8124050
AC
53142002-08-02 Andrew Cagney <cagney@redhat.com>
5315
5316 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5317 Replace the architecture methods register_read and register_write.
5318 * gdbarch.h, gdbarch.c: Regenerate.
5319 * regcache.c (init_regcache_descr): Update.
5320 (read_register_gen): Update.
5321 (write_register_gen): Update.
5322 (supply_register): Update comment.
5323
5324 * sh-tdep.c (sh_gdbarch_init): Update.
5325 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5326 `regcache' and `gdbarch' parameters. Make `buffer' a void
5327 pointer. Update code.
5328 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5329 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5330 void pointer. Update code.
5331 (sh64_register_write): Delete.
5332 (sh4_register_read): Delete.
5333 (sh64_register_read): Delete.
5334 (sh4_register_write): Delete.
5335 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5336 void pointer, `to' parameter a void pointer.
5337 (sh_sh64_register_convert_to_raw): Ditto.
5338
a6425924
KB
53392002-08-01 Kevin Buettner <kevinb@redhat.com>
5340
5341 * mips-tdep.c (mips_register_virtual_type): Use architecture
5342 invariant return values.
5343
ff5922b5
AC
53442002-08-01 Andrew Cagney <cagney@redhat.com>
5345
5346 * linux-proc.c: Include "gdb_string.h".
5347 * Makefile.in (linux-proc.o): Update dependency list.
5348
32a6503c
KB
53492002-08-01 Kevin Buettner <kevinb@redhat.com>
5350
5351 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5352 comment.
5353
ccaa32c7
GS
53542002-08-01 Grace Sainsbury <graces@redhat.com>
5355
5356 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5357 to_insert_watchpoint, to_remove_watchpoint,
5358 to_stopped_by_watchpoint, to_stopped_data_address,
5359 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5360 target vecctor. Define their corresponding macros so they call
5361 them.
5362
5363 * target.c: Add default and debug versions of for
5364 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5365 to_insert_watchpoint, to_remove_watchpoint,
5366 to_stopped_by_watchpoint, to_stopped_data_address,
5367 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5368
78fde5f8
KB
53692002-08-01 Kevin Buettner <kevinb@redhat.com>
5370
5371 * mips-tdep.c (mips_register_virtual_type): New function.
5372 (mips_gdbarch_init): Register mips_register_virtual_type()
5373 with gdbarch machinery.
5374 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5375 this file instead of tm-bigmips.h.
5376 (MIPS_REGSIZE): Delete this macro.
5377 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5378 multiarch version in mips-tdep.c will be found.
5379
db034ac5
AC
53802002-08-01 Andrew Cagney <cagney@redhat.com>
5381
5382 * NEWS: Menion that CHILL has been made obsolete.
5383
5384 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
5385 * stabsread.c (read_range_type): Ditto.
5386 * gdbtypes.h: Ditto.
5387 * language.c (binop_type_check): Ditto.
5388 (binop_result_type): Ditto.
5389 (integral_type): Ditto.
5390 (character_type): Ditto.
5391 (string_type): Ditto.
5392 (boolean_type): Ditto.
5393 (structured_type): Ditto.
5394 (lang_bool_type): Ditto.
5395 (binop_type_check): Ditto.
5396 * language.h (_LANG_chill): Ditto.
5397 * dwarfread.c (set_cu_language): Ditto.
5398 * dwarfread.c (CHILL_PRODUCER): Ditto.
5399 * dwarfread.c (handle_producer): Ditto.
5400 * expression.h (enum exp_opcode): Ditto.
5401 * eval.c: Ditto for comments.
5402 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5403 * expprint.c (print_subexp): Ditto.
5404 (print_subexp): Ditto.
5405 * valops.c (value_cast): Ditto.
5406 (search_struct_field): Ditto.
5407 * value.h (COERCE_VARYING_ARRAY): Ditto.
5408 * symfile.c (init_filename_language_table): Ditto.
5409 (add_psymbol_with_dem_name_to_list): Ditto.
5410 * valarith.c (value_binop): Ditto.
5411 (value_neg): Ditto.
5412 * valops.c (value_slice): Ditto.
5413 * symtab.h (union language_specific): Ditto.
5414 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5415 (SYMBOL_DEMANGLED_NAME): Ditto.
5416 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5417 * defs.h (enum language): Ditto.
5418 * symtab.c (got_symtab): Ditto.
5419 * utils.c (fprintf_symbol_filtered): Ditto.
5420
5421 * ch-typeprint.c: Make file obsolete.
5422 * ch-valprint.c: Make file obsolete.
5423 * ch-lang.h: Make file obsolete.
5424 * ch-exp.c: Make file obsolete.
5425 * ch-lang.c: Make file obsolete.
5426
5427 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5428 CHILL_LIB.
5429 (TARGET_FLAGS_TO_PASS): Ditto.
5430 (CHILLFLAGS): Obsolete.
5431 (CHILL): Obsolete.
5432 (CHILL_FOR_TARGET): Obsolete.
5433 (CHILL_LIB): Obsolete.
5434 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5435 ch-valprint.c.
5436 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5437 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5438 ch-lang.o.
5439 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5440 targets.
5441
8aaf0b47
JB
54422002-07-31 Joel Brobecker <brobecker@gnat.com>
5443
5444 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5445 This does not change anything at the moment, but will be helpful
5446 later when full Ada support is integrated.
5447
f3a7b3a5
KB
54482002-07-31 Kevin Buettner <kevinb@redhat.com>
5449
5450 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5451 help message.
5452
fb850278
KB
54532002-07-31 Kevin Buettner <kevinb@redhat.com>
5454
5455 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5456 and save it in a local variable. Use variable in later test.
5457
e3bddbfa
KB
54582002-07-31 Kevin Buettner <kevinb@redhat.com>
5459
5460 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5461 test. (Thanks to Daniel Jacobowitz.)
5462
28d169de
KB
54632002-07-31 Kevin Buettner <kevinb@redhat.com>
5464
5465 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5466 (mips_abi_strings): Add "n64".
5467 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5468
7fe7e44e
KB
54692002-07-31 Kevin Buettner <kevinb@redhat.com>
5470
5471 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5472 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5473
c6caf090
KB
54742002-07-31 Kevin Buettner <kevinb@redhat.com>
5475
5476 * utils.c (host_pointer_to_address, address_to_host_pointer):
5477 Use gdb_assert() instead of explicit call to internal_error().
5478
c41669e0
KB
54792002-07-30 Kevin Buettner <kevinb@redhat.com>
5480
5481 * Makefile.in (rs6000-nat.o): Update dependencies.
5482
5483 From Nicholas Duffek:
5484 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5485 (aix-thread.o): New rule.
5486 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5487 * config/powerpc/aix432.mh: New file.
5488
2fda4977
DJ
54892002-07-30 Daniel Jacobowitz <drow@mvista.com>
5490
5491 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5492 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5493 (fetch_core_registers, ppc_linux_supply_gregset)
5494 (ppc_linux_supply_fpregset): New functions.
5495 (ppc_linux_regset_core_fns): New.
5496 (_initialize_ppc_linux_tdep): Call add_core_fns.
5497 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5498 and ppc_linux_supply_gregset.
5499 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5500 (supply_fpregset): Call ppc_linux_supply_fpregset.
5501 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5502 corelow.o.
5503 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5504
729051e6
DJ
55052002-07-30 Daniel Jacobowitz <drow@mvista.com>
5506
5507 * symtab.c (lookup_symbol): Demangle before lowercasing.
5508
5f8a3188
AC
55092002-07-30 Andrew Cagney <ac131313@redhat.com>
5510
5511 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5512 declaration.
5513 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5514 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5515 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5516 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5517 "gdb_string.h".
5518 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5519 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5520 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5521 (avr-tdep.o, mon960-rom.o): Ditto.
5522 (aout_stabs_gnu_h): Define.
5523 (symtab_h): Remove $(gdb_obstack_h).
5524
67f07146
JB
55252002-07-30 Jim Blandy <jimb@redhat.com>
5526
5527 Patch from David Carlton <carlton@math.stanford.edu>:
5528 * gdbinit.in: Move the `dir' commands that add GDB's own source
5529 directory to the search path to the end, so that the `gdb' source
5530 directory will be searched first.
5531
04ea0df1
AC
55322002-07-29 Andrew Cagney <ac131313@redhat.com>
5533
5534 * gdb_obstack.h: New file.
5535 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5536 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5537 * objfiles.h: Include "gdb_obstack.h".
5538 * Makefile.in (gdb_obstack_h): Define.
5539 (symtab_h): Add $(gdb_obstack_h).
5540 (objfiles_h): Add $(gdb_obstack_h).
5541
5542 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5543 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5544 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5545 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5546 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5547 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5548 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5549 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5550
5551 * Makefile.in (bcache.o): Update dependencies.
5552 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5553 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5554 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5555 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5556 (stabsread.o, symfile.o, symmisc.o): Ditto.
5557 (symtab.o, typeprint.o, macroexp.o): Ditto.
5558 (macrotab.o, mdebugread.o): Ditto.
5559 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5560 (coff_ecoff_h, aout_aout64_h): Define.
5561 (aout_stabs_gnu_h, libaout_h): Define.
5562
d138e37a
AC
55632002-07-29 Andrew Cagney <cagney@redhat.com>
5564
5565 * regcache.c (struct regcache_descr): Rename nr_registers to
5566 nr_cooked_registers. Revise comments describing the structure
5567 member fields.
5568 (init_regcache_descr): Update.
5569 (init_legacy_regcache_descr): Update.
5570 (read_register_gen, write_register_gen): When a cooked register in
5571 the raw register range, directly access the value from the raw
5572 register cache.
5573
460e6ec3
AC
55742002-07-29 Andrew Cagney <ac131313@redhat.com>
5575
5576 * z8k-tdep.c: Do not include "obstack.h".
5577 * h8300-tdep.c, h8500-tdep.c: Ditto.
5578 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5579 * valprint.c, v850-tdep.c: Ditto.
5580 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5581 * mn10200-tdep.c: Ditto.
5582
5583 * Makefile.in (z8k-tdep.o): Update dependencies.
5584 (m68hc11-tdep.o, valprint.o): Ditto.
5585 (v850-tdep.o, d10v-tdep.o): Ditto.
5586 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5587 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5588 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5589 (sh_opc_h, gdb_sim_sh_h): Define.
5590 (elf_sh_h, elf_bfd_h): Define.
5591 (opcode_m68hc11_h): Define.
5592 (OPCODES_SRC, OPCODES_DIR): define.
5593 (OPCODES): Use $(OPCODES_DIR).
5594 (gdb_sim_d10v_h): Rename sim_d10v_h.
5595 (gdb_sim_arm_h): Rename sim_arm_h.
5596
790c9cf0
KB
55972002-07-26 Kevin Buettner <kevinb@redhat.com>
5598
5599 * utils.c (host_pointer_to_address, address_to_host_pointer):
5600 Change internal_error() message to indicate function responsible
5601 for the error.
5602
9647fa49
KB
56032002-07-26 Kevin Buettner <kevinb@redhat.com>
5604
5605 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5606 calls to local_hex_string_custom().
5607
dabbe2c0
KB
56082002-07-26 Kevin Buettner <kevinb@redhat.com>
5609
5610 * irix5-nat.c: Move IRIX shared library support from here...
5611 * solib-irix.c: ...to here. Revised substantially to work with
5612 generic solib framework.
5613
b96d0a4e
KB
5614 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5615 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5616 * mips-irix-tdep.c: New file.
5617
313fb2f6
KB
5618 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5619 (mips-irix-tdep.o, solib-irix.o): New rules.
5620 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5621 solib-irix.o.
5622 * config/mips/irix6.mt (TDEPFILES): Likewise.
5623 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5624
ab2eaf26
KB
56252002-07-26 Kevin Buettner <kevinb@redhat.com>
5626
177e4768 5627 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5628 disabled (via ``#if 0'') includes.
5629
7244546a
KB
56302002-07-26 Kevin Buettner <kevinb@redhat.com>
5631
5632 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5633 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5634 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5635 Add support for the fpscr register.
5636 * rs6000-nat.c (regmap, fetch_inferior_registers)
5637 (store_inferior_registers, fetch_core_registers): Likewise.
5638
dd7be90a
KB
56392002-07-26 Kevin Buettner <kevinb@redhat.com>
5640
5641 * rs6000-nat.c (language.h): Include.
5642 (special_regs): Delete this array.
5643 (regmap): New function.
5644 (fetch_register, store_register): Use regmap() to map gdb
5645 register numbers to ptrace register numbers. Also, use
5646 outputs from regmap() to make decisions regarding type of
5647 ptrace() call to make. In particular, don't compare against
5648 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5649 (fetch_inferior_registers, store_inferior_registers): Where
5650 possible, obtain register numbers from tdep struct. Don't
5651 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5652 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5653 (LAST_UISA_SP_REGNUM): Delete.
5654
11bf77db
KB
56552002-07-25 Kevin Buettner <kevinb@redhat.com>
5656
5657 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5658 (fetch_registers, store_register, fetch_core_registers): Don't
5659 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5660 regcache_collect() as appropriate.
5661 (find_toc_address): Format hex address with local_hex_string().
5662
06afebeb
AC
56632002-07-25 Andrew Cagney <ac131313@redhat.com>
5664
5665 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5666 bfd/elf32-frv.c.
5667
8c554d79
TT
56682002-07-24 Tom Tromey <tromey@redhat.com>
5669
5670 * jv-exp.y: Marked all strings with _().
5671 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5672 internal_error.
5673 (MethodInvocation, CastExpression, parse_number, yyerror,
5674 java_type_from_name, push_expression_name, yylex): Typo fixes.
5675
e4c242d9
DJ
56762002-07-24 Daniel Jacobowitz <drow@mvista.com>
5677
5678 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5679 (tee_file_flush, tee_file_write, tee_file_fputs)
5680 (tee_file_isatty): New.
5681 * ui-file.h (tee_file_new): Add prototype.
5682
ebf56fd3
AS
56832002-07-24 Aidan Skinner <aidan@velvet.net>
5684
5685 * ada-lang.c: Change k&r style function definitions to prototyped
5686 form.
5687 * ada-typeprint.c: Change k&r style function definitions to prototyped
5688 form.
5689 * ada-valprint.c: Change k&r style function definitions to prototyped
5690 form.
5691
7fb623f7
AC
56922002-07-24 Andrew Cagney <cagney@redhat.com>
5693
5694 * README: Remove reference to remote-bug.
5695 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5696 remote-bug.c.
5697 (m88k-nat.o): Delete rule.
5698 (m88k-tdep.o): Delete rule.
5699 (remote-bug.o): Delete rule.
5700 * MAINTAINERS: Mark as obsolete.
5701 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5702 * m88k-tdep.c: Make file obsolete.
5703 * config/m88k/m88k.mh: Ditto.
5704 * config/m88k/delta88v4.mh: Ditto.
5705 * config/m88k/delta88v4.mt: Ditto.
5706 * config/m88k/delta88.mt: Ditto.
5707 * config/m88k/delta88.mh: Ditto.
5708 * remote-bug.c: Ditto.
5709 * config/m88k/tm-delta88.h: Ditto.
5710 * config/m88k/nm-delta88v4.h: Ditto.
5711 * config/m88k/xm-delta88.h: Ditto.
5712 * config/m88k/xm-dgux.h: Ditto.
5713 * config/m88k/tm-m88k.h: Ditto.
5714 * config/m88k/nm-m88k.h: Ditto.
5715 * config/m88k/tm-delta88v4.h: Ditto.
5716 * m88k-nat.c: Ditto.
5717 * cxux-nat.c: Ditto.
5718 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5719 and m88*-*-* obsolete.
5720 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5721 m88*-*-* obsolete.
5722
37611a2b
AC
57232002-07-24 Andrew Cagney <cagney@redhat.com>
5724
5725 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5726 constant. Same for local pointer variables.
5727 (extract_signed_integer): Ditto.
5728 * defs.h (extract_unsigned_integer): Update.
5729 (extract_signed_integer): Update.
5730
1aaa5f99
AC
57312002-07-24 Andrew Cagney <cagney@redhat.com>
5732
5733 * regcache.c (regcache_raw_write): Change buf parameter to a
5734 constant void pointer.
5735 (regcache_raw_read): Change buf parameter to a void pointer.
5736 (legacy_write_register_gen): Change myaddr parameter a constant
5737 void pointer.
5738 (supply_register): Change val parameter to a const void pointer.
5739 * regcache.h (regcache_raw_write): Update declaration.
5740 (regcache_raw_read): Update declaration.
5741 (supply_register): Update declaration.
5742
b4f5539f
TT
57432002-07-24 Tom Tromey <tromey@redhat.com>
5744
5745 * defs.h (gdb_readline_wrapper): Declare.
5746 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5747 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5748 * top.c (gdb_readline_wrapper): New function.
5749 (command_line_input): Use it.
5750
0818c12a
AC
57512002-07-24 Andrew Cagney <cagney@redhat.com>
5752
5753 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5754 regcache_read and regcache_write.
5755 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5756 * regcache.c: Update.
5757 * sh-tdep.c (sh64_push_arguments): Update comment.
5758 (sh_pseudo_register_read): Update.
5759 (sh_pseudo_register_write): Update.
5760 (sh4_register_read): Update.
5761 (sh4_register_write): Update.
5762 (sh64_pseudo_register_read): Update.
5763 (sh64_pseudo_register_write): Update.
5764 (sh64_register_read): Update.
5765 (sh64_register_write): Update.
5766 * i386-tdep.c (i386_extract_return_value): Update.
5767 (i386_extract_struct_value_address): Update.
5768 (i386_extract_return_value): Update.
5769 * blockframe.c (generic_read_register_dummy): Update.
5770 (generic_call_dummy_register_unwind): Update
5771 * infrun.c (write_inferior_status_register): Update.
5772
f7321c06
JB
57732002-07-23 Jim Blandy <jimb@redhat.com>
5774
5775 * parser-defs.h (expression_context_pc): Make this extern.
5776 (Thanks to Michael Snyder.)
5777
2037aebb
AC
57782002-07-23 Andrew Cagney <ac131313@redhat.com>
5779
5780 GDB 5.2.1 released from 5.2 branch.
5781 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5782 * README: Update to mention 5.2.1.
5783
66504d44
MS
57842002-07-23 Mark Salter <msalter@redhat.com>
5785
5786 * remote.c (remote_read_bytes): Fix check for error.
5787
27bae383
KB
57882002-07-22 Kevin Buettner <kevinb@redhat.com>
5789
5790 * aix-thread.c (language.h): Include.
5791 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5792 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5793 Print newlines at end of debug messages.
5794 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5795 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5796
57972002-07-22 Kevin Buettner <kevinb@redhat.com>
5798
5799 * aix-thread.c (ppc-tdep.h): Include.
5800 (special_register_p): New function.
5801 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5802 (store_regs_user_thread): Use register number information from
5803 gdbarch_tdep struct instead of hardcoded offsets relative to
5804 FIRST_UISA_SP_REGNUM.
5805 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5806 special_register_p() instead of using FPLAST_REGNUM and
5807 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5808 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5809 will be MQ's register number.
5810
58112002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5812
5813 * aix-thread.c (ops): Rename to aix_thread_ops.
5814 (base_ops): Rename to base_target.
5815 (ops_attach): Rename to aix_thread_attach.
5816 (ops_detach): Rename to aix_thread_detach.
5817 (ops_resume): Rename to aix_thread_detach.
5818 (ops_wait): Rename to aix_thread_wait.
5819 (ops_kill): Rename to aix_thread_kill.
5820 (init_ops): Rename to init_aix_thread_ops.
5821 (ops_fetch_register): Rename to aix_thread_fetch_register.
5822 (ops_store_register): Rename to aix_thread_store_register.
5823 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5824 (ops_thread_alive): Rename to aix_thread_thread_alive.
5825 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5826 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5827 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5828 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5829 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5830 (store_regs_lib): Rename to store_regs_user_thread.
5831 (store_regs_kern): Rename to store_regs_kernel_thread.
5832
27bae383 58332002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5834
5835 * aix-thread.c (ops_prepare_to_store): Eliminate.
5836 (init_ops): Don't initialize ops.prepare_to_store.
5837 (store_regs_kern): Pre-fetch register buffers from child,
5838 because some registers may not be in the cache. Copy
5839 regs from register cache only if they are cached.
5840 (store_regs_lib): Copy regs from register cache only
5841 if they are cached.
5842 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5843 fill_gprs64): Ditto.
5844
61c5da0b
KB
58452002-07-22 Kevin Buettner <kevinb@redhat.com>
5846
5847 * aix-thread.c (gdb_assert.h): Include.
5848 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5849 register sizes (from register cache) match size of buffer holding
5850 register data.
5851 (fill_sprs32): Change parameter types to match those in the ptrace()
5852 buffer.
5853 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5854 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5855
58562002-07-22 Michael Snyder <msnyder@redhat.com>
5857
5858 * aix-thread.c (supply_sprs64): Cosmetic change.
5859 (supply_sprs32): Cosmetic change.
5860 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5861 (fill_sprs64): Use regcache_collect instead of read_register.
5862 (store_regs_lib): Use regcache_collect instead of
5863 read_register. Use fill_sprs32 instead of fill_sprs64,
5864 if debugging a 32-bit architecture.
5865 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5866 out of the register cache, instead of passing a pointer into
5867 the register cache directly to ptrace. Use regcache_collect
5868 insteaad of read_register.
5869 (ops_prepare_to_store): Use target_read_registers instead
5870 of read_register_bytes.
5871
36479eb1
AS
58722002-07-20 Aidan Skinner <aidan@velvet.net>
5873
5874 * MAINTAINERS: Add self under write after approval.
5875
80ae6ee2
AS
58762002-07-20 Aidan Skinner <aidan@velvet.net>
5877
5878 * ada-tasks.c: Change k&r style function definitions to prototyped
5879 form.
5880
8a8ab2b9
AC
58812002-07-19 Andrew Cagney <ac131313@redhat.com>
5882
5883 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5884 * x86-64-tdep.c: Include "objfiles.h".
5885 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5886 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5887
fb16b900
ML
58882002-07-17 Michal Ludvig <michal@suse.cz>
5889
5890 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5891 (update_context): Initialise cfa variable.
5892
0fe7bf7b
MS
58932002-07-17 Michael Snyder <msnyder@redhat.com>
5894
5895 * aix-thread.c: Shorten some long lines.
5896 Bring comments into line with code spec.
5897
488f131b
JB
58982002-07-18 Joel Brobecker <brobecker@gnat.com>
5899
5900 * infrun.c: Re-indent using gdb_indent.sh.
5901
46c415d2
JB
59022002-07-18 Joel Brobecker <brobecker@gnat.com>
5903
5904 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5905 Leave the indentation temporarily untouched, to minimize the diffs.
5906
cdecafbe
EZ
59072002-07-18 Elena Zannoni <ezannoni@redhat.com>
5908
5909 * stabsread.c: Make os9k sections of the code obsolete,
5910 for real this time.
5911 * stabsread.h: Make os9k sections of the code obsolete.
5912
7b6aa020
ML
59132002-07-18 Michal Ludvig <mludvig@suse.cz>
5914
09ec9b38
ML
5915 * linux-low.c (regsets_store_inferior_registers): Add free()
5916 at the end of a loop to prevent memory leak.
5917 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5918 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5919 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5920 line a comment.
4894ac5d 5921 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5922
233282cd
JB
59232002-07-17 Jim Blandy <jimb@redhat.com>
5924
5925 * macrocmd.c (info_macro_command): Remove newline from error
5926 message.
5927
7b6aa020 59282002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5929
5930 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5931 (sh_gdbarch_init): Use it for sh-dsp.
5932
f7ef9339
KB
59332002-07-16 Kevin Buettner <kevinb@redhat.com>
5934
5935 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5936 64-bit DWARF2 format.
5937
8dd72958
JB
59382002-07-16 Joel Brobecker <brobecker@gnat.com>
5939
5940 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5941 <sys/proc.h> when not available.
5942
a99a9e1b
AC
59432002-07-16 Andrew Cagney <ac131313@redhat.com>
5944
5945 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5946 * stabsread.c: Make os9k sections of the code obsolete.
5947 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5948 * config/i386/i386os9k.mt: Make file obsolete.
5949 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5950 (COMMON_OBS): Remove os9kread.o
5951 (SFILES): Remove os9kread.c.
5952 (os9kread.o, remote-os9k.o): Make target obsolete.
5953 * remote-os9k.c: Make file obsolete.
5954 * os9kread.c: Make file obsolete.
5955 * Makefile.in
5956
7a3085c1
AC
59572002-07-16 Andrew Cagney <ac131313@redhat.com>
5958
5959 * NEWS: Mention that the FR30 has been made obsolete.
5960 * fr30-tdep.c: Make file obsolete.
5961 * config/fr30/tm-fr30.h: Ditto.
5962 * config/fr30/fr30.mt: Ditto.
5963 * configure.tgt: Make fr30-*-elf obsolete.
5964 * MAINTAINERS: Make fr30-elf obsolete.
5965
28a93f5a
PM
59662002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5967
5968 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5969 found is not inside a section.
5970
be006b8b
KB
59712002-07-15 Kevin Buettner <kevinb@redhat.com>
5972
5973 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5974 strerror().
5975 (pdc_realloc): Use xrealloc() instead of realloc().
5976
14fa3751
KB
59772002-07-15 Kevin Buettner <kevinb@redhat.com>
5978
5979 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5980 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5981 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5982 macros.
5983
42cc437f
KB
59842002-07-15 Kevin Buettner <kevinb@redhat.com>
5985
5986 * aix-thread.c (ptrace_check): Eliminate goto.
5987 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5988 problem.
5989
8e2c28d4
KB
59902002-07-15 Kevin Buettner <kevinb@redhat.com>
5991
5992 * aix-thread.c (gdbcmd.h): Include.
5993 (DEBUG, DBG, DBG2, dbg): Eliminate.
5994 (debug_aix_thread): New static global.
5995 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5996 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5997 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5998 invocations to DBG and DBG2 macros to test against
5999 ``debug_aix_thread'' and call fprintf_unfiltered().
6000 (_initialize_aix_thread): Add new command "set debug aix-thread".
6001
30413464
AC
60022002-07-15 Andrew Cagney <ac131313@redhat.com>
6003
6004 From Gerhard Tonn <TON@de.ibm.com>:
6005 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6006 instead of supply_register.
6007
7c43edc1
AC
60082002-07-15 Andrew Cagney <ac131313@redhat.com>
6009
6010 * dwarf2cfi.c: Include "gdb_assert.h".
6011 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6012 non-NULL.
6013 (update_context): Do not use __func__. Add missing ``break''.
6014 (update_context): Do not use __func__.
6015
9364a0ef
EZ
60162002-07-15 Elena Zannoni <ezannoni@redhat.com>
6017
6018 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6019 and its setting. Set gdbarch instruction printing functions
6020 directly. For non-rs6000 case use new function
6021 gdb_print_insn_powerpc.
6022 (gdb_print_insn_powerpc): New function.
6023
3fbeef0b
AC
60242002-07-13 Andrew Cagney <ac131313@redhat.com>
6025
92eb23c5 6026 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
6027 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6028 * configure.tgt: Mark d30v-*-* as obsolete.
6029 * d30v-tdep.c: Mark file as obsolete.
6030 * config/d30v/d30v.mt: Ditto.
6031 * config/d30v/tm-d30v.h: Ditto.
6032
aacb1f0a
AS
60332002-07-13 Aidan Skinner <aidan@velvet.net>
6034
6035 * ada-tasks.c (add_task_entry): replace calls to
6036 malloc() with xmalloc
6037 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6038
6039 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6040 ada_finish_decode_line_1, all_sals_for_line
6041 ada_breakpoint_rewrite): replace calls to free() with xfree()
6042
c11d79f2
KB
60432002-07-12 Kevin Buettner <kevinb@redhat.com>
6044
6045 From Nicholas Duffek (with minor changes by Martin Hunt,
6046 Louis Hamilton, and Kevin Buettner):
6047 * aix-thread.c: New file.
6048
8e19ed76
PS
60492002-07-12 Petr Sorfa <petrs@caldera.com>
6050
6051 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6052 complaint for invalid attribute class or form.
6053 (read_func_scope): DW_AT_frame_base
6054 better handling of DW_AT_block*.
6055 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6056 better handling of DW_AT_block*.
6057 (read_common_block): DW_AT_location
6058 better handling of DW_AT_block*.
6059 (read_partial_die): DW_AT_location better handling
6060 of DW_AT_block*.
6061 (new_symbol): DW_AT_external better handling of
6062 DW_AT_block*. Proper initialization of variable
6063 "addr".
6064 (attr_form_is_block): New function that returns true
6065 if the attribute's form is of DW_FORM_block*.
6066
295401f7
DJ
60672002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6068
6069 * valops.c (find_method_list): Remove comment about
6070 removed STATIC_MEMFUNCP argument.
6071 (value_find_oload_method_list): Likewise.
6072
e42dc924
KB
60732002-07-12 Kevin Buettner <kevinb@redhat.com>
6074
6075 From Nicholas Duffek:
6076 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6077 target_new_objfile_hook.
6078
6904b546
KB
60792002-07-12 Kevin Buettner <kevinb@redhat.com>
6080
6081 From Nicholas Duffek:
6082 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6083 csect.
6084
53fe9346
AC
60852002-07-12 Andrew Cagney <cagney@redhat.com>
6086
6087 * MAINTAINERS: Mention --enable-sim-build-warnings.
6088 (m68hc11-elf): Disable sim build warnings.
6089 (m32r-elf): Mark as broken obsolete candidate.
6090 (x86_64-linux-gnu): Mark as buildable with -Werror.
6091 (arm-elf): Change -w to ``,'' which enables warnings but not
6092 -Werror.
6093
af5f3db6
AC
60942002-07-12 Andrew Cagney <ac131313@redhat.com>
6095
6096 * bcache.h: Update copyright.
6097 (struct bstring, struct bcache): Move definition to "bcache.c".
6098 Replaced by opaque declaration.
6099 (bcache_xfree): Replace free_bcache.
6100 (bcache_xmalloc, bcache_memory_used): Declare.
6101
6102 * bcache.c: Update copyright.
6103 (struct bstring, struct bcache): Moved to here from "bcache.h".
6104 Update comments.
6105 (bcache_xmalloc, bcache_memory_used): New functions.
6106 (bcache_xfree): Replace function free_bcache.
6107
6108 * Makefile.in (objfiles.o): Add $(bcache_h).
6109 (objfiles_h): Remove $(bcache_h).
6110 (symfile.o): Add $(bcache_h).
6111
6112 * symmisc.c: Update copyright.
6113 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6114 (print_objfile_statistics): Use bcache_memory_used.
6115
6116 * symfile.c: Include "bcache.h".
6117 (reread_symbols): Use bcache_xfree.
6118 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6119 (add_psymbol_to_list): Pass psymbol_cache by value.
6120 (add_psymbol_with_dem_name_to_list): Ditto.
6121
6122 * objfiles.h: Update copyright.
6123 (struct bcache): Declare opaque. Do not include "bcache.h".
6124 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6125 bcache'' pointers.
6126 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6127
6128 * objfiles.c: Include "bcache.h". Update copyright.
6129 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6130 macro_cache.
6131 (free_objfile): Use bcache_xfree.
6132
444199e7
GS
61332002-07-11 Grace Sainsbury <graces@redhat.com>
6134
6135 * monitor.c (monitor_fetch_register): Make name a constant.
6136 (monitor_store_register): Same.
6137
261397f8
DJ
61382002-07-11 Daniel Jacobowitz <drow@mvista.com>
6139
6140 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6141 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6142 (finish_block) For non-function blocks, hash the symbol table. For
6143 function blocks, mark the symbol table as unhashed.
6144 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6145 (msymbol_hash_iw): Likewise.
6146 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6147 value.
6148 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6149 (lookup_minimal_symbol): Likewise for both.
6150 * symtab.h (struct block): Add `hashtable' flag. Comment the
6151 hashtable.
6152 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6153 (ALL_BLOCK_SYMBOLS): Update.
6154 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6155 (struct symbol): Add `hash_next' pointer.
6156 * symtab.c (lookup_block_symbol): Search using the hash table when
6157 possible.
6158 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6159 (search_symbols, find_addr_symbol): Likewise.
6160
6161 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6162 (read_dst_symtab): Likewise.
6163 * jv-lang.c (get_java_class_symtab): Likewise.
6164 * mdebugread.c: Include "gdb_assert.h".
6165 (shrink_block): Assert that the block being modified is not hashed.
6166 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6167 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6168 symbols.
6169 (dump_symtab): Recognize hashed blocks.
6170 * printcmd.c (print_frame_args): Assert that function blocks do not
6171 have hashed symbol tables.
6172 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6173 (fill_in_ada_prototype, debug_print_block): Likewise.
6174 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6175
6f0eaa01
CV
61762002-07-11 Corinna Vinschen <vinschen@redhat.com>
6177
6178 * stack.c (print_frame): Use result of frame_address_in_block()
6179 instead of fi->pc when evaluating symbols.
6180 (backtrace_command_1): Ditto.
6181
a208b0cb
AC
61822002-07-11 Andrew Cagney <cagney@redhat.com>
6183
6184 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6185 Make static.
6186
6187 * arm-tdep.c (arm_register_name): Make return type constant.
6188
a6b6b089
AC
61892002-07-10 Andrew Cagney <ac131313@redhat.com>
6190
5ae5f592
AC
6191 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6192 prototype.
6193 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6194 * s390-tdep.c (s390_fp_regnum): Ditto.
6195 (s390_read_fp): Ditto.
6196 (s390_pop_frame): Ditto.
6197 (_initialize_s390_tdep): Ditto.
6198 * remote.c (get_remote_state): Ditto.
6199 * procfs.c (mappingflags): Ditto.
6200 * memattr.c (_initialize_mem): Ditto.
6201 * mcore-tdep.c (mcore_pop_frame): Ditto.
6202 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6203 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6204 * language.c (set_case_str): Ditto.
6205 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6206 * frv-tdep.c (new_variant): Ditto.
6207 (frv_stopped_data_address): Ditto.
6208 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6209 (context_alloc): Ditto.
6210 (frame_state_alloc): Ditto.
6211 (unwind_tmp_obstack_init): Ditto.
6212 (unwind_tmp_obstack_free): Ditto.
6213 (cfi_read_fp): Ditto.
6214 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6215 (cris_pop_frame): Ditto.
6216 * c-lang.c (scanning_macro_expansion): Ditto.
6217 (finished_macro_expansion): Ditto.
6218 (c_preprocess_and_parse): Ditto.
6219 * gdbarch.sh: Ditto.
6220 * gdbarch.h, gdbarch.c: Regenerate.
6221 * config/mn10200/tm-mn10200.h: Adjust indentation.
6222 * target.c: Adjust indentation.
6223 * symtab.h: Adjust indentation.
6224 * stabsread.h: Adjust indentation.
6225 * remote-es.c: Adjust indentation.
6226 * os9kread.c: Adjust indentation.
6227
62282002-07-10 Andrew Cagney <ac131313@redhat.com>
6229
a6b6b089
AC
6230 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6231 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6232
a1789893
GS
62332002-07-10 Grace Sainsbury <graces@redhat.com>
6234
6235 * NEWS: Mention m68k, mcore multi-arching.
6236 * MAINTAINERS: Change status of m68k, mcore to reflect
6237 multi-arching.
6238
02f0d45d
DJ
62392002-07-10 Daniel Jacobowitz <drow@mvista.com>
6240
6241 * valops.c (find_overload_match): Free oload_syms.
6242
f15f768e
JB
62432002-07-09 Joel Brobecker <brobecker@gnat.com>
6244
6245 Define HAVE_SYS_PROC_H if sys/proc.h exists
6246 * configure.in: Add check for sys/proc.h
6247 * config.in: Regenerate.
6248 * configure: Regenerate.
6249
902a7139
GS
62502002-07-09 Grace Sainsbury <graces@redhat.com>
6251
6252 * config/m68k/tm-m68k.h: Remove macros wrapped in
6253 #if !GDB_MULTI_ARCH.
6254
a534e424
AC
62552002-07-08 Andrew Cagney <ac131313@redhat.com>
6256
6257 * config.in, configure: Regenerate.
6258
9b94f7bf
MK
62592002-07-08 Mark Kettenis <kettenis@gnu.org>
6260
6261 * dwarf2cfi.c: Include "gcore.h".
6262 (execute_stack_op): Fix implementation of the
6263 DW_OP_deref and DW_OP_deref_size operators by letting do their
6264 lookup in the target.
6265
1d34db41
MK
62662002-07-07 Mark Kettenis <kettenis@gnu.org>
6267
6268 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6269 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6270 tdep->sc_sp_offset.
6271
79d5b63a
DJ
62722002-07-05 Daniel Jacobowitz <drow@mvista.com>
6273
6274 Fix PR gdb/595, gdb/602
6275 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6276 Don't call value_cast, just read the vtable pointer; update comments
6277 to match.
6278
3bb912e8
GS
62792002-07-05 Grace Sainsbury <graces@redhat.com>
6280
6281 * config/mcore/tm-mcore.h: Remove file.
6282 * config/mcore/mcore.mt: Remove definition of TM_FILE
6283 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6284
ca39387d
MK
62852002-07-05 Mark Kettenis <kettenis@gnu.org>
6286
6287 * i386bsd-tdep.c: Include "gdb_string.h".
6288
efdc1108
GS
62892002-07-04 Grace Sainsbury <graces@redhat.com>
6290
6291 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6292 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6293 mcore-tdep.
6294 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6295 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6296 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6297 (RETVAL_REGNUM): Move macros from tm-mcore.h
6298 (mcore_reg_struct_has_addr): New function.
6299 (mcore_gdbarch_init): Added initializations for the macros removed
6300 from tm-mcore.h.
6301
bb21884d
MK
63022002-07-04 Mark Kettenis <kettenis@gnu.org>
6303
6304 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6305 traditonal string branding within the ELF header.
6306
228c6d41
DJ
63072002-07-04 Daniel Jacobowitz <drow@mvista.com>
6308
6309 * symtab.c (remove_params): New function.
6310 (make_symbol_overload_list): Use it instead of cplus_demangle.
6311 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6312
2404952e
MK
63132002-07-04 Mark Kettenis <kettenis@gnu.org>
6314
e5e4acad
MK
6315 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6316
baadce09
MK
6317 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6318 New variables.
6319 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6320 and tdep->sigtramp_end.
6321 * i386obsd-nat.c: New file.
6322 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6323
2404952e
MK
6324 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6325 Don't call get_current_frame().
6326
9b4f1ba7
PM
63272002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6328
6329 * i386-nat.c (child_post_startup_inferior): New function
6330 calling i386_cleanup_dregs if
6331 I386_USE_GENERIC_WATCHPOINTS is defined.
6332 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6333 conditional to acknowledge that i386-nat.c has its
6334 own child_post_startup_inferior function.
6335
c0d1d883
MK
63362002-07-04 Mark Kettenis <kettenis@gnu.org>
6337
00f8375e
MK
6338 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6339 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6340 instead of MAX_REGISTER_RAW_SIZE.
6341 (i386_extract_return_value, i386_extract_struct_value_address):
6342 Convert to use regcache.
6343 (i386_gdbarch_init): Set max_register_raw_size and
6344 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6345 Set extract_return_value and extract_struct_value_address instead
6346 of their deprecated variants.
6347
c0d1d883
MK
6348 Convert i386 target to generic dummy frames.
6349 * i386-tdep.c: Include "symfile.h".
6350 (i386_frameless_signal_p): Consider a function to be frameless if
6351 the pc points at the first instruction of the function.
6352 (i386_frame_chain): Handle (generic) call dummies.
6353 (i386_frame_saved_pc): Likewise.
6354 (i386_frame_init_saved_regs): Remove code dealing with call
6355 dummies on the stack.
6356 (i386_push_dummy_frame): Removed.
6357 (i386_call_dummy_words): Removed.
6358 (i386_fix_call_dummy): Removed.
6359 (i386_push_return_address): New function.
6360 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6361 parameter, and don't call get_current_frame.
6362 (i386_pop_frame): New function.
6363 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6364 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6365 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6366 call_dummy_length to 0, set call_dummy_words to NULL, set
6367 sizeof_call_dummy_words to 0, set fix_call_dummy to
6368 generic_fix_call_dummy, set pc_in_call_dummy to
6369 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6370 generic_push_dummy_frame, set push_return_address to
6371 i386_push_return_address and set frame_chain_valid to
6372 generic_file_frame_chain_valid.
6373
049ee0e4
AC
63742002-07-03 Andrew Cagney <ac131313@redhat.com>
6375
6376 * gdbarch.sh (struct regcache): Add opaque declaration.
6377 (EXTRACT_RETURN_VALUE): New architecture method.
6378 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6379 * gdbarch.h, gdbarch.c: Regenerate.
6380 * arch-utils.c (legacy_extract_return_value): New function.
6381 * arch-utils.h (legacy_extract_return_value): Declare.
6382 * values.c (value_being_returned): Re-enable code handling
6383 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6384 deprecated_grub_regcache_for_registers call to block handling
6385 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6386 (EXTRACT_RETURN_VALUE): Do not define.
6387
4e0d9804
GS
63882002-07-03 Grace Sainsbury <graces@redhat.com>
6389
6390 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6391 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6392 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6393 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6394 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6395 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6396 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6397 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6398 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6399 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6400 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6401 argument so the function fits the prototype in the architecture
6402 vector.
6403 (mcore_pop_frame): Remove argument so the function fits the
6404 prototype. Use get_current_frame instead of the argument.
6405 (mcore_push_arguments): Change type of struct_return so the
6406 function can be used in the architecture vector.
6407 (mcore_store_struct_return): Add.
6408 (mcore_frame_init_saved_regs): Add.
6409 (mcore_gdbarch_init): Add function calls to replace the macros
6410 removed from tm-mcore.h
6411
36160dc4
AC
64122002-07-03 Andrew Cagney <ac131313@redhat.com>
6413
6414 * infcmd.c (print_return_value): Remove compatibility code calling
6415 deprecated_grub_regcache_for_registers.
6416
6417 * values.c: Include "regcache.h".
6418 (value_being_returned): Update. Use
6419 deprecated_grub_regcache_for_registers to extract the register
6420 buffer address.
6421 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6422 ``struct regcache''.
6423 * Makefile.in (values.o): Add dependency on $(regcache_h).
6424
6425 * inferior.h (run_stack_dummy): Change type of second parameter to
6426 a ``struct regcache''.
6427 * valops.c (hand_function_call): Change type of retbuf to ``struct
6428 regcache''. Allocate using regcache_xmalloc, clean using
6429 make_cleanup_regcache_xfree.
6430 * infcmd.c (run_stack_dummy): Update. Use
6431 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6432
6433 * regcache.c (do_regcache_xfree): New function.
6434 (make_cleanup_regcache_xfree): New function.
6435 * regcache.h (make_cleanup_regcache_xfree): Declare.
6436
e64d9b3d
MH
64372002-07-03 Martin M. Hunt <hunt@redhat.com>
6438
4dd79c29
MH
6439 * event-top.c (command_line_handler): Don't read past
6440 beginning of buffer.
e64d9b3d 6441
4dd79c29
MH
64422002-07-03 Martin M. Hunt <hunt@redhat.com>
6443
e64d9b3d
MH
6444 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6445 struct frame_id.
6446 (varobj_create): Store frame_id for root.
6447 (varobj_gen_name): Use xasprintf.
6448 (varobj_update): Save and restore frame using get_frame_id() and
6449 frame_find_by_id().
6450 (create_child): Use xasprintf.
6451 (new_root_variable): Initialize frame_id.
6452 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6453 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6454 to prevent memory leak.
6455
26e6c56a
AC
64562002-07-03 Andrew Cagney <ac131313@redhat.com>
6457
6458 * valops.c (hand_function_call): Move declaration of retbuf to
6459 start of function, allocate using malloc, add a cleanup but before
6460 the inf_status cleanup, cleanup the buffer. Rename local variable
6461 old_chain to inf_status_cleanup.
6462
f436dd25
MH
64632002-07-03 Martin M. Hunt <hunt@redhat.com>
6464
6465 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6466
6467 * cli/cli-decode.c (cmd_func_p): New function.
6468 (cmd_func): New function.
6469
6470 * command.h: Add cmd_func() and cmd_func_p().
6471
4cfe2084
GS
64722002-07-03 Grace Sainsbury <graces@redhat.com>
6473
6474 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6475 (REGISTER_SIZE): Remove.
6476 (MAX_REGISTER_RAW_SIZE): Remove.
6477 (REGISTER_VIRTUAL_TYPE): Remove.
6478 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6479 (REGISTER_NAME): Remove.
6480 (USE_GENERIC_DUMMY_FRAMES): Remove.
6481 (CALL_DUMMY): Remove.
6482 (CALL_DUMMY_START_OFFSET): Remove.
6483 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6484 (CALL_DUMMY_LOCATION): Remove.
6485 (FIX_CALL_DUMMY): Remove.
6486 (CALL_DUMMY_ADDRESS): Remove.
6487 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6488 (SAVE_DUMMY_FRAME_TOS): Remove.
6489 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6490 (mcore_register_virtual_type): New function.
6491 (mcore_register_byte): New function.
6492 (mcore_register_size): New function.
6493 (mcore_register_name): New function.
6494 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6495 macros removed from tm-mcore.h.
6496 (mcore_dump_tdep): Add.
6497 (_initialize_mcore_tdep): Add gdbarch_register call.
6498
4fd667e9
MK
64992002-07-03 Mark Kettenis <kettenis@gnu.org>
6500
6501 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6502 frameless_look_for_prologue, such that we actually call this
6503 function.
6504
42f99ac2
JB
65052002-07-02 Joel Brobecker <brobecker@gnat.com>
6506
6507 * frame.h (frame_address_in_block): New function.
6508
6509 * blockframe.c (frame_address_in_block): New function extracted
6510 from get_frame_block().
6511 (get_frame_block): Use frame_address_in_block().
6512 (block_innermost_frame): Use frame_address_in_block() to match
6513 the frame pc address against the block boundaries rather than
6514 the frame pc directly. This prevents a failure when a frame pc
6515 is actually a return-address pointing immediately after the end
6516 of the given block.
6517
103a1597 65182002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6519
6520 * MAINTAINERS: Add self under write after approval.
6521
65222002-07-02 Grace Sainsbury <graces@redhat.com>
6523
103a1597
GS
6524 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6525 used in architecture vector. The default is
6526 m68k_local_breakpoint_from_pc.
6527 (m68k_local_breakpoint_from_pc): Add.
6528 (enum): Add register numbers from tm-m68k.h.
6529 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6530 vector.
6531 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6532 GDB_MULTI_ARCH_PARTIAL.
6533 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6534 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6535 m68k-tdep.c.
6536 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6537 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6538 to enum in m68k-tdep.c
6539
7a5a0534
JB
65402002-07-02 Joel Brobecker <brobecker@gnat.com>
6541
6542 * solib-osf.c (open_map): Compute the list of shared libraries
6543 loaded by the inferior, rather than the list of libraries loaded
6544 by GDB itself. Otherwise, GDB ends up reading the symbols from
6545 the wrong shared libraries...
6546
6f558d74
MK
65472002-07-02 Mark Kettenis <kettenis@gnu.org>
6548
b7d15bf7
MK
6549 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6550 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6551 macros.
6552 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6553 Remove functions.
6554 (FRAMELESS_SIGNAL): Remove function.
6555 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6556 i386_linux_saved_pc_after_call): Removed.
6557 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6558 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6559 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6560
6bff26de
MK
6561 * i386-tdep.c (i386_frameless_signal_p): New function.
6562 (i386_frame_chain): Deal with frameless signals.
6563 (i386_sigtramp_saved_sp): New function.
6564 (i386_frame_saved_pc): Deal with frameless signals.
6565 (i386_saved_pc_after_call): Make sure the correct value is
6566 returned just after entry into a sigtramp.
6567 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6568 i386fbsd4_sc_sp_offset): New variables.
6569 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6570 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6571 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6572 similiar to what we already did for sc_pc_offset.
6573 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6574 tdep->sc_sp_offset.
6575
6f558d74
MK
6576 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6577
145564b7
ML
65782002-07-02 Michal Ludvig <mludvig@suse.cz>
6579
6580 * config/i386/tm-x86-64linux.h: New.
6581 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6582 definitions.
6583 * config/i386/nm-x86-64.h: Rename to ...
6584 * config/i386/nm-x86-64linux.h: ... this one.
6585 * config/i386/x86-64linux.mh: Reflect the above change.
6586
3a1e71e3
MK
65872002-07-01 Mark Kettenis <kettenis@gnu.org>
6588
21d0e8a4
MK
6589 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6590 with sigcontext_addr. Add sc_sp_offset.
6591 (i386bsd_sigtramp_saved_pc): Remove prototype.
6592 (i386bsd_sicontext_addr): Add prototype.
6593 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6594 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6595 (i386_svr4_sigtramp_saved_pc): Removed.
6596 (i386_svr4_sigcontext_addr): New function.
6597 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6598 Initialize tdep->sigcontext_addr instead. Initialize
6599 tdep->sc_pc_offset and tdep->sc_sp_offset.
6600 (i386_gdbarch_init): Likewise.
6601 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6602 any more.
6603 (i386bsd_sigtramp_saved_pc): Remove function.
6604 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6605 Initialize tdep->sigcontext_addr instead. Initialize
6606 tdep->sc_pc_offset.
6607 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6608 of tdep->sigtramp_saved_pc.
6609 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6610 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6611 instead.
6612
3a1e71e3
MK
6613 * i386-tdep.c (i386_frameless_function_invocation,
6614 i386_frame_num_args, i386_frame_init_saved_regs,
6615 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6616 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6617 i386_extract_return_value, i386_store_return_value,
6618 i386_extract_struct_value_address, i386_register_virtual_type,
6619 i386_register_convertible, i386_register_convert_to_virtual,
6620 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6621 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6622 static.
6623
52e9098c
MK
66242002-07-01 Mark Kettenis <kettenis@gnu.org>
6625
77b13a25
MK
6626 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6627
52e9098c
MK
6628 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6629 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6630 this macro. Include "value.h".
6631
1b372fff
AS
66322002-06-30 Aidan Skinner <aidan@velvet.net>
6633
6634 * ada-exp.tab.c: remove as it's a generated file
6635 * ada-lex.c: remove as it's a generated file
6636
9c5045b5
MK
66372002-06-30 Mark Kettenis <kettenis@gnu.org>
6638
4a93c5bb
MK
6639 * config/i386/tm-i386.h (struct frame_info, struct
6640 frame_saved_regs, struct value, struct type): Remove forward
6641 declarations.
6642
322d4fe0
MK
6643 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6644 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6645 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6646 (FILL_FPXREGSET): Define.
6647
fdd8263d
MK
6648 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6649
482e577b
MK
6650 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6651 i[3456]86-*-netbsd* case.
6652 * config/i386/tm-obsd.h: Removed.
6653 * config/i386/obsd.mt: Removed.
6654 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6655 core-aout.o.
6656 (MH_CFLAGS): Add -DYYDEBUG=0.
6657
6916549a
MK
6658 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6659 i386nbsd_sc_pc_offset on OpenBSD too.
6660
9c5045b5
MK
6661 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6662 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6663 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6664 define.
6665 * i386bsd-tdep.c: Include "arch-utils.h".
6666 (i386bsd_aout_in_solib_call_trampoline): New function.
6667 (i386bsd_init_abi): Set in_solib_call_trampoline to
6668 i386bsd_aout_in_solib_call_trampoline.
6669 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6670 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6671
aa84d1bb
AC
66722002-06-28 Andrew Cagney <ac131313@redhat.com>
6673
6674 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6675 (struct obstack, struct bcache): Add opaque declarations.
6676 * Makefile.in (macrotab_h): Update
6677
b4d83933
AC
66782002-06-28 Andrew Cagney <ac131313@redhat.com>
6679
6680 * blockframe.c (generic_find_dummy_frame): Change return type to
6681 ``struct regcache''.
6682 (struct dummy_frame): Replace field ``registers'' with regcache, a
6683 struct regcache object.
6684 (generic_find_dummy_frame): Update.
6685 (generic_push_dummy_frame): Update. Use regcache_xfree,
6686 regcache_xmalloc and regcache_cpy.
6687 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6688 regcache_xfree.
6689 (deprecated_generic_find_dummy_frame): Update.
6690 (generic_read_register_dummy): Update. Use
6691 regcache_read_as_address.
6692 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6693 (generic_get_saved_register): Update. Use regcache_read.
6694
08c0b5bc
AC
66952002-06-28 Andrew Cagney <ac131313@redhat.com>
6696
6697 * Makefile.in (objfiles_h): Add $(bcache_h).
6698 * objfiles.h: Include "bcache.h".
6699
6700 * Makefile.in (symtab_h): Remove $(bcache_h).
6701 * symtab.h: Do not include "bcache.h".
6702
1f89801a
AC
67032002-06-28 Andrew Cagney <ac131313@redhat.com>
6704
6705 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6706 generic_func_frame_chain_valid.
6707
b9644b58
DB
67082002-06-28 David O'Brien <obrien@FreeBSD.org>
6709
6710 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6711 * config/i386/tm-fbsd.h: Likewise.
6712
dd486634
AC
67132002-06-28 Andrew Cagney <ac131313@redhat.com>
6714
6715 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6716 generic_unwind_get_saved_register.
6717
0b434a00
AC
67182002-06-27 Andrew Cagney <ac131313@redhat.com>
6719
6720 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6721 * regcache.c (supply_register): Add missing argument to
6722 register_buffer call.
6723
f30e5a77
AC
67242002-06-27 Andrew Cagney <ac131313@redhat.com>
6725
6726 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6727 Solaris /bin/grep does not not like it. From Peter Schauer.
6728
9f064c95
TT
67292002-06-26 Tom Tromey <tromey@redhat.com>
6730
6731 * command.h (add_setshow_cmd): Declare.
6732 (add_setshow_cmd_full): Declare.
6733 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6734 returns void. Use add_setshow_cmd_full.
6735 (add_setshow_cmd_full): New function.
6736 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6737 (add_setshow_boolean_cmd): Likewise.
6738
099c7589
JT
67392002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6740
6741 * config/vax/tm-vax.h: Protect from multiple inclusion.
6742 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6743 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6744 * config/vax/tm-vaxbsd.h: ...here. New file.
6745 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6746
1d049c5e
JT
67472002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6748
6749 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6750 (BELIEVE_PCC_PROMOTION): Remove.
6751 (AP_REGNUM): Move to...
6752 * config/vax/nm-vax.h: ...here.
6753 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6754 (vax_breakpoint_from_pc): New function.
6755 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6756 and gdbarch_believe_pcc_promotion.
6757
4791e091
JT
67582002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6759
6760 * Makefile.in (vax_tdep_h): Define.
6761 (vax-tdep.o): Use $(vax_tdep_h).
6762 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6763 (vax_dump_tdep): New function.
6764 (_initialize_vax_tdep): Register vax_dump_tdep.
6765 * vax-tdep.h: Include osabi.h.
6766 (struct gdbarch_tdep): New.
6767
da130f98
AC
67682002-06-26 Andrew Cagney <cagney@redhat.com>
6769
6770 * frame.h (deprecated_generic_find_dummy_frame): Rename
6771 generic_find_dummy_frame.
6772 * blockframe.c (generic_find_dummy_frame): Make static.
6773 (deprecated_generic_find_dummy_frame): New function.
6774 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6775 generic_find_dummy_frame with deprecated_find_dummy_frame.
6776 (sh64_nofp_frame_init_saved_regs): Ditto.
6777 (sh_fp_frame_init_saved_regs): Ditto.
6778 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6779 (s390_frame_chain): Ditto.
6780 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6781
6300c360
GS
67822002-06-26 Grace Sainsbury <graces@redhat.com>
6783
6784 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6785 gdbarch vector are at the top.
6786 (NUM_REGS): Remove.
6787 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6788 (FRAME_ARGS_ADDRESS): Remove.
6789 (FRAME_LOCALS_ADDRESS): Remove.
6790 (FRAME_NUM_ARGS): Remove.
6791 (FRAME_ARGS_SKIP): Remove.
6792 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6793 (m68k_gdbarch_init): Add gdbarch initializations for macros
6794 undefined in tm-m68k.h
6795
1c617db8
GS
67962002-06-26 Grace Sainsbury <graces@redhat.com>
6797
6798 * monitor.h: Add the function regname to monitor_ops
6799 structure. This way NUM_REGS does not have to be a constant.
6800 * monitor.c (monitor_fetch_register): Added support for regname
6801 function. The function is called if the array regnames is NULL.
6802 (monitor_store_register): Same.
da130f98
AC
6803 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6804 regnames array.
1c617db8
GS
6805 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6806 cpu32bug_cmds.regname to point to new function.
6807 * abug-rom.c (abug_regname): Same as above.
6808 (init_abug_cmds): Same.
6809 * dbug-rom.c (dbug_regname): Same as above.
6810 (init_dbug_cmds): Same.
6811 * remote-est.c (est_regname): Same.
6812 (init_est_cmds): Same.
6813 * rom68k-rom.c (rom68k_regname): Same.
6814 (init_rom68k_cmds): Same.
6815
ea9365bb
TT
68162002-06-25 Tom Tromey <tromey@redhat.com>
6817
6818 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6819
72cec141
AC
68202002-06-25 Andrew Cagney <cagney@redhat.com>
6821
6822 * infrun.c (stop_registers): Change variable's type to ``struct
6823 regcache'''.
6824 (xmalloc_inferior_status): Delete function.
6825 (free_inferior_status): Delete function.
6826 (normal_stop): Use regcache_cpy.
6827 (struct inferior_status): Change type of fields ``stop_registers''
6828 and ``registers'' to ``struct regcache''.
6829 (write_inferior_status_register): Use regcache_write.
6830 (save_inferior_status): Instead of calling
6831 xmalloc_inferior_status, allocate the inf_status buffer directly.
6832 Use regcache_dup_no_passthrough and regcache_dup to save the
6833 buffers.
6834 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6835 Replace the stop_registers regcache instead of overriding it. Use
6836 regcache_xfree. Instead of calling free_inferior_status, xfree
6837 the buffer directly.
6838 (discard_inferior_status): Use regcache_xfree. Instead of calling
6839 free_inferior_status, xfree the buffer directly.
6840 (build_infrun): Use regcache_xmalloc.
6841 (_initialize_infrun): Delete redundant call to build_infrun.
6842
6843 * Makefile.in (infcmd.o): Add $(regcache_h).
6844
6845 * infcmd.c: Include "regcache.h".
6846 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6847 obtain the address of `stop_registers' register buffer.
6848 (print_return_value): Ditto.
6849
6850 * inferior.h (struct regcache): Add opaque declaration.
6851 (stop_registers): Change variable's declared type to ``struct
6852 regcache''.
6853
defc6f8c
TT
68542002-06-24 Tom Tromey <tromey@redhat.com>
6855
c0e624e7
TT
6856 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6857 * target.c (initialize_targets): Fixed typo in
6858 trust-readonly-sections `show' documentation.
6859
defc6f8c
TT
6860 * main.c: Marked all strings with _().
6861
2b236d82
DH
68622002-06-24 Don Howard <dhoward@redhat.com>
6863
6864 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6865 that means max CORE_ADDR+1.
6866 (lookup_mem_region): Ditto.
6867 (mem_info_command): Ditto.
6868
942dc0e9
GS
68692002-06-24 Grace Sainsbury <graces@redhat.com>
6870
6871 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6872 (REGISTER_BYTES_OK): Remove.
6873 (REGISTER_BYTES): Remove.
6874 (STORE_STRUCT_RETURN): Remove.
6875 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6876 (STORE_RETURN_VALUE): Remove.
6877 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6878 (FRAME_CHAIN): Remove.
6879 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6880 (FRAME_SAVED_PC): Remove.
6881 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6882 (m68k_store_struct_return): Add.
6883 (m68k_deprecated_extract_return_value): Add.
6884 (m68k_deprecated_extract_struct_value_address): Add.
6885 (m68k_store_return_value): Add.
6886 (m68k_frame_chain): Add.
6887 (m68k_frameless_function_invocation): Add.
6888 (m68k_frame_saved_pc): Add.
6889 (m68k_gdbarch_init): added set_gdbarch calls for new
6890 functions and deleted macros.
6891
03c30d4d
TT
68922002-06-23 Tom Tromey <tromey@redhat.com>
6893
6894 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6895 (ALLDEPFILES): Likewise.
6896 (udiheaders): Removed.
6897 (udip2soc.o): Likewise.
6898 (udi2go32.o): Likewise.
6899 (udr.o): Likewise.
6900 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6901
37e71372
AC
69022002-06-22 Andrew Cagney <ac131313@redhat.com>
6903
06a6ac57
AC
6904 * infrun.c (_initialize_infrun): Delete unnecessary call to
6905 build_infrun.
6906
37e71372
AC
6907 * regcache.h: Update comments describing the regcache_cpy family
6908 of functions.
6909 (regcache_save, regcache_restore): Delete declaration.
6910 (regcache_save_no_passthrough): Delete declaration.
6911 (regcache_restore_no_passthrough): Delete declaration.
6912 * regcache.c (regcache_save): Delete function.
6913 (regcache_save_no_passthrough): Delete function.
6914 (regcache_restore): Delete function.
6915 (regcache_restore_no_passthrough): Delete function.
6916
78f6d055
AC
69172002-06-21 Andrew Cagney <ac131313@redhat.com>
6918
6919 * config/m68k/tm-m68k.h: Fix typo.
6920 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6921 (m68k_frame_init_saved_regs): Declare.
6922
78b119cb
JB
69232002-06-21 Jim Blandy <jimb@redhat.com>
6924
6925 Remove some vestiges of Harris 88k support.
6926 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6927 register numbering quirk.
6928 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6929 odd symbols occurring in Harris 88k ELF targets.
6930
0fbb3da7
TT
69312002-06-21 Tom Tromey <tromey@redhat.com>
6932
6933 * gdb_locale.h: New file.
6934 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6935 (defs_h): Added gdb_locale.h.
6936 * configure, config.in: Rebuilt.
6937 * configure.in (PACKAGE): Define.
6938 * defs.h: Include gdb_locale.h.
6939 * main.c (captured_main): Call setlocale, bindtextdomain,
6940 textdomain.
6941
456f8b9d
DB
69422002-06-21 Dave Brolley <brolley@redhat.com>
6943
6944 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6945 * config/frv/frv.mt: New file.
6946 * config/frv/tm-frv.h: New file.
6947 * configure.tgt: Support frv-*-*.
6948 * Makefile.in (frv-tdep.o): New target.
6949 * frv-tdep.c: New file.
6950 * NEWS: Mention frv.
6951
cdd463f9
DB
69522002-06-21 Dave Brolley <brolley@redhat.com>
6953
6954 * MAINTAINERS: Add self to "Write After Approval" list.
6955
5d3ed2e3
GS
69562002-06-21 Grace Sainsbury <graces@redhat.com>
6957
6958 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6959 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6960 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6961 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6962 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6963
6964 * m68k-tdep.c: Include arch-utils.h
6965 (m68k_register_raw_size): Add.
6966 (m68k_register_virtual_size): Add.
6967 (m68k_register_virtual_type): Add.
6968 (m68k_register_name): Add.
6969 (m68k_stack_align): Add.
6970 (m68k_register_byte): Add.
6971 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6972 tm-m68k.h.
6973
7f8e7424
GS
69742002-06-21 Grace Sainsbury <graces@redhat.com>
6975
a2c6a6d5 6976 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6977 m68k_find_saved_regs.
6978 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6979 references to it with frame->saved_regs.
7f8e7424
GS
6980 (m68k_gdbarch_init): Added function calls to initialize the
6981 gdbarch structure.
a2c6a6d5
GS
6982 (m68k_fix_call_dummy): Add.
6983 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6984 (CALL_DUMMY): Remove.
6985 (CALL_DUMMY_LENGTH): Remove.
6986 (CALL_DUMMY_START_OFFSET): Remove.
6987 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6988 (FIX_CALL_DUMMY): Remove.
6989 (PUSH_DUMMY_FRAME): Remove.
6990 (POP_FRAME): Remove.
7f8e7424 6991
f461f5cf
PM
69922002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6993
6994 * parse.c (parse_fprintf): New function used to avoid calls to
6995 fprintf in bison parser generated debug code.
6996 * parser-defs.h: Declaration of new parse_fprintf function.
6997 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6998 Set YYDEBUG to 1 by default.
6999 Set YYFPRINTF as parse_fprintf.
7000
7f0c12ed
ML
70012002-06-21 Michal Ludvig <mludvig@suse.cz>
7002
7003 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7004 encoding anymore.
7005 (pointer_encoding, enum ptr_encoding): New.
7006 (execute_cfa_program): Take care about pointer encoding.
7007 (dwarf2_build_frame_info): Only call parse_frame_info for
7008 .debug_frame and .eh_frame.
7009 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7010 fixed augmentation handling, added relative addressing,
7011 ignore duplicate FDEs. Added comments.
19d833a2 7012 * dwarf2cfi.c: Reindented.
7f0c12ed 7013
87c4a039
EZ
70142002-06-20 Elena Zannoni <ezannoni@redhat.com>
7015
7016 * event-top.c (command_handler): Don't use space_at_cmd_start
7017 unless there is sbrk() on the host. Assign time and space data
7018 to union fields of the appropriate length.
7019
1cf877ad
ML
70202002-06-20 Michal Ludvig <mludvig@suse.cz>
7021
7022 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7023 x86_64_register_name. Return type changed to 'const char *'.
7024 (x86_64_register_name2nr): Rename to x86_64_register_number.
7025 (x86_64_gdbarch_init): Update to reflect the change.
7026 * x86-64-tdep.h: Ditto.
7027 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7028 (supply_fpregset): Ditto.
7029
3fadccb3
AC
70302002-06-19 Andrew Cagney <cagney@redhat.com>
7031
7032 * regcache.h: Update copyright.
7033 (struct regcache, struct gdbarch): Add opaque declarations.
7034 (current_regcache): Declare global variable.
7035 (regcache_read, regcache_write): Add gdbarch parameter.
7036 (regcache_save, regcache_save_no_passthrough)
7037 (regcache_restore, regcache_restore_no_passthrough)
7038 (regcache_dup, regcache_dup_no_passthrough)
7039 (regcache_cpy, regcache_cpy_no_passthrough)
7040 (deprecated_grub_regcache_for_registers)
7041 (deprecated_grub_regcache_for_register_valid)
7042 (regcache_valid_p): Add function declarations.
7043
7044 * regcache.c: Update copyright.
7045 (regcache_descr_handle): New global variable.
7046 (struct regcache_descr): Define.
7047 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7048 (regcache_descr, xfree_regcache_descr): New functions.
7049 (struct regcache): Define.
7050 (regcache_xmalloc, regcache_xfree): New functions.
7051 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7052 (regcache_dup, regcache_dup_no_passthrough): New functions.
7053 (regcache_valid_p, regcache_read_as_address): New functions.
7054 (deprecated_grub_regcache_for_registers): New function.
7055 (deprecated_grub_regcache_for_register_valid): New function.
7056 (current_regcache): New global variable.
7057 (register_buffer): Add regcache parameter. Update calls.
7058 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7059 (read_register_gen, write_register_gen): Update register_buffer
7060 call. Test for legacy_p instead of gdbarch_register_read_p or
7061 gdbarch_register_write_p.
7062 (regcache_collect): Update register_buffer call.
7063 (build_regcache): Rewrite. Use deprecated grub functions.
7064 (regcache_save, regcache_save_no_passthrough): New functions.
7065 (regcache_restore, regcache_restore_no_passthrough): New
7066 functions.
7067 (_initialize_regcache): Create the regcache_data_handle. Swap
7068 current_regcache global variable.
7069
7070 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7071 parameter to regcache_read and regcache_write calls.
7072 (sh4_register_read): Ditto.
7073 (sh64_pseudo_register_read): Ditto.
7074 (sh64_register_read): Ditto.
7075 (sh_pseudo_register_write): Ditto.
7076 (sh4_register_write): Ditto.
7077 (sh64_pseudo_register_write): Ditto.
7078 (sh64_register_write): Ditto.
7079
7080 * defs.h (XCALLOC): Define.
7081
152d9db6
GS
70822002-06-19 Grace Sainsbury <graces@redhat.com>
7083
7084 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7085 * m68k-tdep.c (m68k_gdbarch_init): Added.
7086 (m68k_dump_tdep): Added.
7087
170911c7
DJ
70882002-06-19 Daniel Jacobowitz <drow@mvista.com>
7089
7090 * ada-lang.c (fill_in_ada_prototype): Update comment.
7091
2e4ebe70
DJ
70922002-06-19 Daniel Jacobowitz <drow@mvista.com>
7093
7094 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7095 MIPS_ABI_LAST.
7096 (mips_abi_string, mips_abi_strings): New.
7097 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7098 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7099 tdep->mips_abi_string. Honor mips_abi_string. Default to
7100 O32 if no ABI is found.
7101 (mips_dump_tdep): Use mips_abi_strings.
7102 (mips_abi_update): New function.
7103 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7104 ``set mips abi'' and ``show mips abi''. Check the size of
7105 mips_abi_strings.
7106
16775908
AC
71072002-06-19 Andrew Cagney <cagney@redhat.com>
7108
7109 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7110 constant.
7111
5051bfa4 71122002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 7113
5051bfa4
JB
7114 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7115 current frame using only the first stack size adjustment. All
7116 subsequent size adjustments are not considered to be part of
7117 the "static" part of the current frame.
7118 Compute the address of the saved registers relative to the
7119 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7120 in use in this frame.
7121
56468235
DH
71222002-06-18 Don Howard <dhoward@redhat.com>
7123
7124 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7125 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7126 suggesting this solution.
7127
0b624158
AC
71282002-06-18 Andrew Cagney <ac131313@redhat.com>
7129
7130 * config/romp/xm-rtbsd.h: Delete file.
7131 * config/romp/rtbsd.mh: Delete file.
7132
221ea385
KS
71332002-06-18 Keith Seitz <keiths@redhat.com>
7134
7135 * breakpoint.c (condition_command): Post breakpoint_modify
7136 when a condition is added to an existing breakpoint.
7137 (commands_command): Likewise for commands.
7138 (set_ignore_count): Likewise for ignore counts.
7139 If no tty, do not simply return, still need to send event
7140 notification.
7141 (ignore_command): Only print a newline if the command came
7142 from a tty.
7143 Don't call breakpoints_changed, since this is now properly
7144 handled by set_ignore_count.
7145
5402eed1
AC
71462002-06-18 Andrew Cagney <cagney@redhat.com>
7147
7148 * MAINTAINERS: Note that cris-elf target can be compiled with
7149 -Werror.
7150 * cris-tdep.c (cris_register_name): Make return type constant.
7151 (cris_breakpoint_from_pc): Ditto.
7152
cc22880b
ML
71532002-06-18 Michal Ludvig <mludvig@suse.cz>
7154
7155 * frame.h (struct frame_info): Change type of context to
7156 'struct context'.
7157
fa88f677
AC
71582002-06-17 Andrew Cagney <cagney@redhat.com>
7159
7160 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7161 pointer.
7162 * gdbarch.h, gdbarch.c: Regenerate.
7163 * config/mips/tm-mips.h (mips_register_name): Update.
7164 * i386-tdep.h (i386_register_name): Update.
7165 * mips-tdep.c (mips_register_name): Update
7166 * alpha-tdep.c (alpha_register_name): Update.
7167 * arch-utils.c (legacy_register_name): Update.
7168 * arch-utils.h (legacy_register_name): Update.
7169 * avr-tdep.c (avr_register_name): Update.
7170 * ia64-tdep.c (ia64_register_name): Update.
7171 * i386-tdep.c (i386_register_name): Update.
7172 * sparc-tdep.c (sparc32_register_name): Update.
7173 (sparc64_register_name): Update.
7174 (sparclite_register_name): Update.
7175 (sparclet_register_name): Update.
7176 * sh-tdep.c (sh_generic_register_name): Update.
7177 (sh_sh_register_name): Update.
7178 (sh_sh3_register_name): Update.
7179 (sh_sh3e_register_name): Update.
7180 (sh_sh_dsp_register_name): Update.
7181 (sh_sh3_dsp_register_name): Update.
7182 (sh_sh4_register_name): Update.
7183 (sh_sh64_register_name): Update.
7184 * s390-tdep.c (s390_register_name): Update.
7185 * rs6000-tdep.c (rs6000_register_name): Update.
7186 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7187 (ns32k_register_name_32382): Update.
7188 * d10v-tdep.c (d10v_ts2_register_name): Update.
7189 (d10v_ts3_register_name): Update.
7190 * xstormy16-tdep.c (xstormy16_register_name): Update.
7191 * vax-tdep.c (vax_register_name): Update.
7192 * v850-tdep.c (v850_register_name): Update.
7193 * m68hc11-tdep.c (m68hc11_register_name): Update.
7194 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7195 (am33_register_name): Update.
7196
ea1e7ef6
GS
71972002-06-17 Grace Sainsbury <graces@redhat.com>
7198
7199 * m68k-tdep.c: Reindented.
7200
9b02dd1b
AC
72012002-06-17 Andrew Cagney <ac131313@redhat.com>
7202
7203 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7204 list of predefined types.
7205
8758dec1
MK
72062002-06-16 Mark Kettenis <kettenis@gnu.org>
7207
b6197528
MK
7208 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7209 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7210 REGISTER_CONVERT_TO_RAW): Remove defines.
7211 (i386_register_virtual_type, i386_register_convertible,
7212 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7213 Remove prototypes.
7214 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7215 macros mentioned above.
7216
82b47e62
MK
7217 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7218 (i386lynx_saved_pc_after_call): Remove prototype.
7219 * i386ly-tdep.c: Include "i386-tdep.h".
7220 (i386lynx_saved_pc_after_call): Make static. Use
7221 read_memory_nobpt instead of read_memory. Use
7222 read_memory_unsigned_integer instead of read_memory_integer.
7223 (i386lynx_init_abi): New function.
7224 (i386lynx_coff_osabi_sniffer): New function.
7225 (_initialize_i386bsd_tdep): New function.
7226
8758dec1
MK
7227 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7228 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7229 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7230 (i386_fix_call_dummy): Remove prototype.
7231 * i386-tdep.c (i386_call_dummy_words): New variable.
7232 (i386_gdbarch_init): Adjust for removal of the
7233 macros mentioned above.
7234
e9e68a56
AC
72352002-06-15 Andrew Cagney <ac131313@redhat.com>
7236
7237 * command.h (add_setshow_auto_boolean_cmd): Replace
7238 add_set_auto_boolean_cmd.
7239 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7240 add_set_auto_boolean_cmd.
7241 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7242 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7243 mask-address'' command.
7244 (show_mask_address): Add cmd parameter.
7245 * remote.c (add_packet_config_cmd): Update. Change type of
7246 set_func and show_func to cmd_sfunc_ftype.
7247 (_initialize_remote): Update `set remote Z-packet'
7248 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7249 (show_remote_protocol_e_packet_cmd): Ditto.
7250 (show_remote_protocol_E_packet_cmd): Ditto.
7251 (show_remote_protocol_P_packet_cmd): Ditto.
7252 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7253 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7254 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7255 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7256 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7257 (show_remote_protocol_Z_packet_cmd): Ditto.
7258 (show_remote_protocol_binary_download_cmd): Ditto.
7259 (show_remote_cmd): Pass NULL to all of above.
7260
fc08ec52
MK
72612002-06-15 Mark Kettenis <kettenis@gnu.org>
7262
7263 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7264 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7265 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7266 POP_FRAME): Remove defines.
7267 (i386_push_arguments, i386_store_struct_return,
7268 i386_extract_return_value, i386_store_return_value,
7269 i386_extract_struct_value_address, i386_push_dummy_frame,
7270 i386_pop_frame): Renove prototypes.
7271 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7272 macros mentioned above.
7273
e707bbc2
AC
72742002-06-15 Andrew Cagney <ac131313@redhat.com>
7275
7276 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7277 add_set_boolean_cmd.
7278 (add_setshow_cmd): New function.
7279 * command.h (add_setshow_boolean_cmd): Replace
7280 add_set_boolean_cmd.
7281 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7282 and ``set rdiromatzero''.
7283 * maint.c (_initialize_maint_cmds): Update commented out code.
7284 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7285 * target.c (initialize_targets): Update `set
7286 trust-readonly-sections'.
7287 * remote.c (_initialize_remote): Update `set remotebreak'.
7288
42fdc8df
MK
72892002-06-15 Mark Kettenis <kettenis@gnu.org>
7290
93924b6b
MK
7291 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7292 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7293 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7294 fit into multi-arch framework.
7295 (i386_breakpoint_from_pc): New function.
7296 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7297 above.
7298
42fdc8df
MK
7299 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7300 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7301 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7302 (i386_frameless_function_invocation, i386_frame_num_args,
7303 i386_frame_init_saved_regs): Remove prototypes.
7304 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7305 macros mentioned above.
7306
9773a94b
AC
73072002-06-15 Andrew Cagney <ac131313@redhat.com>
7308
7309 * cli/cli-decode.c (set_cmd_cfunc): Update.
7310 (set_cmd_sfunc): Update.
7311 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7312 (set_cmd_sfunc, set_cmd_cfunc): Update.
7313 * cli/cli-decode.h: Update.
7314
6e157172
MK
73152002-06-15 Mark Kettenis <kettenis@gnu.org>
7316
7317 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7318 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7319
7f19b9a2
AC
73202002-06-15 Andrew Cagney <ac131313@redhat.com>
7321
7322 * defs.h (auto_boolean): Declare enum.
7323 * command.h (cmd_auto_boolean): Delete enum.
7324 * mips-tdep.c (mask_address_var): Update.
7325 (mips_mask_address_p): Update.
7326 (show_mask_address): Update.
7327 * remote.c (struct packet_config): Update.
7328 (update_packet_config): Update.
7329 (show_packet_config_cmd): Update.
7330 (packet_ok): Update.
7331 (add_packet_config_cmd): Update.
7332 (_initialize_remote):
7333 * command.h: Update.
7334 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7335 (do_setshow_command): Update.
7336 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7337 * cli/cli-decode.h: Update.
7338
1cf88de5
MK
73392002-06-15 Mark Kettenis <kettenis@gnu.org>
7340
22ba8cf2
MK
7341 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7342 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7343 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7344 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7345 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7346 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7347
762c5349
MK
7348 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7349 list of DJGPP COFF targets.
7350
091198bb
MK
7351 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7352 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7353 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7354 (FP0_REGNUM): Remove define.
7355 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7356 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7357 (i386_register_virtual_size): Remove protoype.
7358 * i386-tdep.c (i386_register_virtual_size): Removed.
7359 (i386_extract_return_value, i386_store_return_value): Use
7360 FP0_REGNUM instead of NUM_FREGS to determine whether the
7361 floating-point registers are available.
7362 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7363 Adjust for removal of macros mentioned above.
7364
73652002-06-15 Mark Kettenis <kettenis@gnu.org>
7366
fcc9bf01
MK
7367 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7368 comments.
7369 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7370 Remove prototypes.
7371 (supply_gregset, fill_gregset): Remove use of register keyword and
7372 remove declaration for regmap. Use I386_NUM_GREGS instead of
7373 NUM_REGS and NUM_FREGS.
7374 (FPREGSET_FSAVE_OFFSET): Remove.
7375 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7376 NUM_FREGS to determine whether the floating-point registers are
7377 available.
7378
65e78234
MK
7379 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7380 gnu_store_registers): Replace usage of NUM_GREGS with
7381 I386_NUM_GREGS.
7382
98df6387
MK
7383 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7384 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7385 usage of NUM_GREGS with I386_NUM_GREGS.
7386
099a9414
MK
7387 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7388
57976e88
MK
7389 * i386bsd-nat.c: Include "i386-tdep.h".
7390 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7391 I386_NUM_GREGS.
7392
b335f4a6
MK
7393 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7394 and associated comment. They no longer make any sense, since we
7395 don't use this file anymore on Linux.
7396
1cf88de5
MK
7397 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7398 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7399 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7400 elements in these arrays.
7401 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7402 MAX_NUM_REGS.
7403
daa66587
MK
74042002-06-15 Mark Kettenis <kettenis@gnu.org>
7405
7406 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7407 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7408
26e9b323
AC
74092002-06-14 Andrew Cagney <cagney@redhat.com>
7410
7411 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7412 EXTRACT_RETURN_VALUE.
7413 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7414 EXTRACT_STRUCT_VALUE_ADDRESS.
7415 * gdbarch.h, gdbarch.c: Regenerate.
7416
7417 * values.c (value_being_returned): Handle
7418 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7419 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7420
7421 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7422 * arm-tdep.c (arm_gdbarch_init): Update.
7423 * avr-tdep.c (avr_gdbarch_init): Update.
7424 * cris-tdep.c (cris_gdbarch_init): Update.
7425 * d10v-tdep.c (d10v_gdbarch_init): Update.
7426 * ia64-tdep.c (ia64_gdbarch_init): Update.
7427 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7428 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7429 * s390-tdep.c (s390_gdbarch_init): Update.
7430 * sh-tdep.c (sh_gdbarch_init): Update.
7431 * s390-tdep.c (s390_gdbarch_init): Update.
7432 * sparc-tdep.c (sparc_gdbarch_init): Update.
7433 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7434 * v850-tdep.c (v850_gdbarch_init): Update.
7435 * vax-tdep.c (vax_gdbarch_init): Update.
7436 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7437 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7438
7439 * config/arc/tm-arc.h: Update.
7440 * config/d30v/tm-d30v.h: Update.
7441 * config/fr30/tm-fr30.h: Update.
7442 * config/h8300/tm-h8300.h: Update.
7443 * config/h8500/tm-h8500.h: Update.
7444 * config/i386/tm-i386.h: Update.
7445 * config/i386/tm-ptx.h: Update.
7446 * config/i386/tm-symmetry.h: Update.
7447 * config/i960/tm-i960.h: Update.
7448 * config/m32r/tm-m32r.h: Update.
7449 * config/m68k/tm-delta68.h: Update.
7450 * config/m68k/tm-linux.h: Update.
7451 * config/m68k/tm-m68k.h: Update.
7452 * config/m88k/tm-m88k.h: Update.
7453 * config/mcore/tm-mcore.h: Update.
7454 * config/mips/tm-mips.h: Update.
7455 * config/mn10200/tm-mn10200.h: Update.
7456 * config/pa/tm-hppa.h: Update.
7457 * config/pa/tm-hppa64.h: Update.
7458 * config/sparc/tm-sp64.h: Update.
7459 * config/sparc/tm-sparc.h: Update.
7460 * config/sparc/tm-sparclet.h: Update.
7461 * config/z8k/tm-z8k.h: Update.
7462
5179e78f
AC
74632002-06-14 Andrew Cagney <cagney@redhat.com>
7464
7465 * Makefile.in (i386_linux_tdep_h): Define.
7466 (i386_tdep_h, i387_tdep_h): Define.
7467 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7468 $(i386_tdep_h) and $(i387_tdep_h).
7469 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7470
8201327c
MK
74712002-06-14 Mark Kettenis <kettenis@gnu.org>
7472
edf393ac
MK
7473 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7474 Already covered by the default.
7475
896fb97d
MK
7476 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7477 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7478 (i386_gdbarch_init): Initialize long_double_format and long_double
7479 bit.
7480
8201327c
MK
7481 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7482 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7483 Move these to ...
7484 * config/i386/i386sol2.mh: ... here.
7485 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7486 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7487 (SIGCONTEXT_PC_OFFSET): Remove define.
7488 (IN_SIGTRAMP): Remove define.
7489 * i386-sol2-tdep.c: New file.
7490
7491 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7492 * config/i386/tm-i386nw.h: Removed.
7493
7494 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7495 USE_STRUCT_CONVENTION): Remove defines.
7496 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7497 (get_longjmp_target): Remove prototype.
7498 (IN_SIGTRAMP): Remove define.
7499 (i386bsd_in_sigtramp): Remove prototype.
7500 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7501 function. Update comment accordingly
7502 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7503 (FRAME_SAVED_PC): Remove define.
7504 (i386bsd_frame_saved_pc): Remove prototype.
7505 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7506 GET_LONGJMP_TARGET): Remove defines.
7507 (get_longjmp_target): Remove prototype.
7508 (IN_SIGTRAMP): Remove define.
7509 (i386bsd_in_sigtramp): Remove prototype.
7510 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7511 function. Update comment accordingly
7512 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7513 (FRAME_SAVED_PC): Remove define.
7514 (i386bsd_frame_saved_pc): Remove prototype.
7515 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7516 Remove prototype.
7517 (USE_STRUCT_CONVENTION): Remove prototype.
7518 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7519 declaration.
7520 (_initialize_i386bsd_nat): Revise logic to determine some
7521 constants at compile time when compiling a native GDB. Warn if
7522 things don't match up with what we expect.
7523 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7524 Remove variables.
7525 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7526 to use date stored in `struct gdbarch_tdep'.
7527 (i386bsd_sigcontext_offset): Remove varaible.
7528 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7529 stored in `struct gdbarch_tdep'.
7530 (i386bsd_frame_saved_pc): Make static.
7531 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7532 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7533 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7534 i386fbsd4_sc_pc_offset): New variables.
7535 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7536 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7537 functions.
7538 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7539 functions.
7540 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7541 Modify the value of i386fbsd_sigtramp_start and
7542 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7543 i386fbsd_sigtramp_end.
7544 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7545 function.
7546
7547 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7548 define to i386-linux-tdep.h.
7549 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7550 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7551 defines.
7552 (i386_linux_register_name, i386_linux_register_byte,
7553 i386_linux_register_raw_size): Remove prototypes.
7554 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7555 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7556 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7557 TARGET_WRITE_PC): Remove defines.
7558 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7559 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7560 i386_linux_write_pc): Remove prototypes.
7561 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7562 (get_longjmp_target): Remove prototype.
7563 * i386-linux-tdep.h: New file.
7564 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7565 * i386-linux-tdep.c: Include "i386-tdep.h" and
7566 "i386-linux-tdep.h".
7567 (i386_linux_register_name, i386_linux_register_byte,
7568 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7569 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7570 Make static.
7571 (i386_linux_init_abi): New function.
7572 (_initialize_i386_linux_tdep): New function.
7573
7574 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7575 (i386_saved_pc_after_call): Remove prototype.
7576 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7577 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7578 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7579 (i386_register_name, i386_stab_reg_to_regnum,
7580 i386_dwarf_reg_to_regnum): Remove prototypes.
7581 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7582 SIZEOF_SSE_REGS): Remove defines.
7583 (REGISTER_BYTES): Remove define.
7584 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7585 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7586 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7587 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7588 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7589 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7590 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7591 (get_longjmp_target): Remove prototype.
7592 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7593 (sigtramp_saved_pc): Remove define.
7594 (i386v4_sigtramp_saved_pc): Remove prototype.
7595 * config/i386/tm-go32.h (FRAME_CHAIN,
7596 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7597 (i386go32_frame_saved_pc): Remove prototype.
7598 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7599 (get_longjmp_target): Remove prototype.
7600 * i386-tdep.h: Include "osabi.h".
7601 (enum i386_abi): Removed.
7602 (enum struct_return): New enum.
7603 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7604 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7605 sc_pc_offset members.
7606 (i386_gdbarch_register_os_abi): Remove prototype.
7607 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7608 I386_SSE_NUM_REGS): New defines.
7609 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7610 I386_SSE_SIZEOF_REGS): New defines.
7611 (i386_register_name, i386_register_byte, i386_register_raw_size):
7612 New prototypes.
7613 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7614 (i386bsd_sigtramp_saved_pc): New prototype.
7615 * i386-tdep.c: Don't include "elf-bfd.h".
7616 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7617 i386_frame_chain, i386_saved_pc_after_call): Make static.
7618 (i386_frame_saved_pc): Rewrite to call architecture dependent
7619 function to deal with signal handlers. Make static.
7620 (i386go32_frame_saved_pc): Removed.
7621 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7622 Removed.
7623 (i386_get_longjmp_target): New function.
7624 (default_struct_convention, pcc_struct_convention,
7625 reg_struct_convention, valid_conventions, struct_convention): New
7626 variables.
7627 (i386_use_struct_convention): New function.
7628 (i386v4_sigtramp_saved_pc): Renamed to
7629 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7630 (i386_pc_in_sigtramp): New function.
7631 (i386_abi_names): Removed.
7632 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7633 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7634 Removed.
7635 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7636 i386_gdbarch_register_os_abi): Removed.
7637 (struct i386_abi_handler): Removed.
7638 (i386_abi_handler_list): Removed.
7639 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7640 functions.
7641 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7642 i386_nw_init_abi): New functions.
7643 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7644 Use set_gdbarch_xxx() calls instead of relying on macros for a
7645 number of calls.
7646 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7647 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7648 Register the various architecture variants defined in this file.
7649
ad2f7632
DJ
76502002-06-14 Daniel Jacobowitz <drow@mvista.com>
7651
7652 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7653 (struct main_type): Remove arg_types member. Update comments for
7654 struct field.
7655 (TYPE_ARG_TYPES): Remove.
7656 (TYPE_FN_FIELD_ARGS): Update.
7657 (smash_to_method_type): Update prototype.
7658
7659 * c-typeprint.c (cp_type_print_method_args): Take method type
7660 instead of argument list. Use new argument layout. Simplify.
7661 (c_type_print_args): Use new argument layout. Simplify.
7662 (c_type_print_base): Update call to cp_type_print_method_args.
7663 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7664 argument; use die->type instead. Update call to
7665 smash_to_method_type.
7666 (read_structure_scope): Update call to dwarf2_add_member_fn.
7667 * gdbtypes.c (allocate_stub_method): Update comment.
7668 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7669 Use new argument layout.
7670 (check_stub_method): Use new argument layout. Don't count
7671 void as an argument.
7672 (print_arg_types): Update comments. Use new argument layout.
7673 (recursive_dump_type): Don't print arg_types member.
7674 * hpread.c (hpread_read_struct_type): Use new argument layout.
7675 (fixup_class_method_type): Likewise.
7676 (hpread_type_lookup): Likewise.
7677 * stabsread.c (read_type): Update calls to read_args and
7678 smash_to_method_type.
7679 (read_args): Use new argument layout. Simplify.
7680 * valops.c (typecmp): Use new argument layout. Update parameters
7681 and comments. Simplify.
7682 (hand_function_call): Use new argument layout.
7683 (search_struct_method): Update call to typecmp.
7684 (find_overload_match): Use new argument layout.
7685
6da02953
DJ
76862002-06-13 Daniel Jacobowitz <drow@mvista.com>
7687
7688 * NEWS: Mention multithreaded debug support for gdbserver.
7689
519b2366
DJ
76902002-06-13 Daniel Jacobowitz <drow@mvista.com>
7691
7692 * MAINTAINERS: Mention NEWS.
7693
6c0d6680
DJ
76942002-06-13 Daniel Jacobowitz <drow@mvista.com>
7695
7696 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7697 (struct mips_objfile_private, compare_pdr_entries): New.
7698 (non_heuristic_proc_desc): Read the ".pdr" section if it
7699 is present.
7700
6529d2dd
AC
77012002-06-12 Andrew Cagney <ac131313@redhat.com>
7702
7703 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7704 (arm_debug): New static variable.
7705 (_initialize_arm_tdep): Add ``set debug arm'' command.
7706
26216b98
AC
77072002-06-12 Andrew Cagney <ac131313@redhat.com>
7708
7709 * Makefile.in (sim_arm_h): Define.
7710 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7711 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7712 (arm_register_sim_regno): New function, map an internal REGNUM
7713 onto a simulator register number.
7714 (arm_gdbarch_init): Set register_sim_regno.
7715
814b3ba0
AH
77162002-06-09 Aldy Hernandez <aldyh@redhat.com>
7717
7718 * MAINTAINERS: Add self.
7719
475b0867
JB
77202002-06-11 Jim Blandy <jimb@redhat.com>
7721
919d772c
JB
7722 * source.c (source_info): Mention whether the symtab has
7723 information about preprocessor macros.
7724
475b0867
JB
7725 Call the command `info macro', not `show macro'.
7726 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7727 Fix error message.
7728 (_initialize_macrocmd): Register `info_macro_command' in
7729 `infolist', not `showlist'.
7730
9e364162
DJ
77312002-06-11 Daniel Jacobowitz <drow@mvista.com>
7732
7733 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7734 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7735 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7736 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7737 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7738 unconditionally.
7739 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7740 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7741 (_initialize_mips_tdep): Remove dead code.
7742 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7743 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7744 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7745 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7746 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7747 MIPS_LAST_FP_ARG_REGNUM): Remove.
7748
23aa4c72
ML
77492002-06-11 Michal Ludvig <mludvig@suse.cz>
7750
7751 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7752 (unwind_tmp_obstack_free, parse_frame_info)
7753 (update_context, cfi_read_fp, cfi_write_fp)
7754 (cfi_frame_chain, cfi_init_extra_frame_info)
7755 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7756 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7757
70eb15a4
CV
77582002-06-11 Corinna Vinschen <vinschen@redhat.com>
7759
7760 * v850-tdep.c (v850_type_is_scalar): New function.
7761 (v850_use_struct_convention): Match current gcc implementation
7762 as close as possible.
7763 (v850_push_arguments): Fix stack_offset handling. Don't write
7764 struct_addr into register. This is done by v850_store_struct_return.
7765 (v850_extract_return_value): Care for structs.
7766 (v850_store_return_value): Ditto.
7767 (v850_store_struct_return): Actually write address.
7768
482a4d06
ML
77692002-06-11 Michal Ludvig <mludvig@suse.cz>
7770
7771 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7772 without debug information too.
7773
d855c300
AC
77742002-06-10 Andrew Cagney <ac131313@redhat.com>
7775
7776 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7777 Make multi-arch pure.
7778 * gdbarch.h, gdbarch.c: Re-generate.
7779 * arm-tdep.c (arm_print_float_info): Update.
7780 * arch-utils.h (default_print_float_info): Update.
7781 * arch-utils.c (default_print_float_info): Update.
7782 * infcmd.c (float_info): Update call.
7783
dd12a101
AC
77842002-06-10 Andrew Cagney <ac131313@redhat.com>
7785
7786 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7787 the front of the initialize list.
7788
101dcfbe
AC
77892002-06-10 Andrew Cagney <ac131313@redhat.com>
7790
7791 * infrun.c (struct inferior_status): Replace fields
7792 selected_frame_address and selected_level with field
7793 selected_frame_id.
7794 (save_inferior_status): Update. Use get_frame_id.
7795 (struct restore_selected_frame_args): Delete.
7796 (restore_selected_frame): Update. Use frame_find_by_id.
7797 (restore_inferior_status): Update.
7798
7799 * breakpoint.h (struct breakpoint): Change type of
7800 watchpoint_frame to frame_id.
7801 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7802 call to get_current_frame.
7803 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7804 get_current_frame.
7805 (watchpoint_check): Use frame_find_by_id.
7806
7807 * frame.h (record_selected_frame): Delete declaration.
7808 * stack.c (record_selected_frame): Delete function.
7809
7810 * frame.h (struct frame_id): Define.
7811 (get_frame_id): Declare.
7812 (frame_find_by_id): Declare.
7813 * frame.c (frame_find_by_id): New function.
7814 (get_frame_id): New function.
7815
304270b6
AV
78162002-06-10 Andrey Volkov <avolkov@transas.com>
7817
7818 * ser-e7kpc.c: Fix duplicated define and call of
7819 _initialize_ser_e7000pc
7820
2f2cf184
DJ
78212002-06-09 Daniel Jacobowitz <drow@mvista.com>
7822
7823 * signals/signals.c (target_signal_from_host): Fix #ifdef
7824 SIGRTMIN case.
7825 (do_target_signal_to_host): Likewise.
7826
caaa3122
DJ
78272002-06-09 Daniel Jacobowitz <drow@mvista.com>
7828
7829 * mips-tdep.c (mips_find_abi_section): New function.
7830 (mips_gdbarch_init): Call it.
7831
6ac5df3a
MK
78322002-06-09 Mark Kettenis <kettenis@gnu.org>
7833
7834 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7835 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7836 after Andrew's 2002-06-08 gdbarch change.
7837
82ea117a
MK
78382002-06-09 Mark Kettenis <kettenis@gnu.org>
7839
7840 * i386-linux-nat.c (suppy_gregset): Don't supply
7841 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7842 register cache.
7843 (fill_gregset): Don't fetch it under the same circumstances.
7844
3c25f8c7
AC
78452002-06-09 Andrew Cagney <cagney@redhat.com>
7846
7847 * Makefile.in (callback_h): Define.
7848 (remote_sim_h): Update path to remote-sim.h.
7849 (remote-rdp.o): Add $(callback_h).
7850 (remote-sim.o): Use $(callback_h).
7851 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7852 * remote-rdp.c: Include "gdb/callback.h".
7853
1029b7fa
MK
78542002-06-09 Mark Kettenis <kettenis@gnu.org>
7855
7856 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7857 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7858
616675d3
AC
78592002-06-08 Andrew Cagney <ac131313@redhat.com>
7860
a3efda28
AC
7861 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7862 * rdi-share/serpardr.c: Ditto.
7863 * rdi-share/unixcomm.c: Ditto.
7864 * rdi-share/serdrv.c: Ditto.
7865 * rdi-share/hostchan.h: Ditto.
7866 * rdi-share/hostchan.c: Ditto.
7867 * rdi-share/host.h: Ditto.
7868 * rdi-share/devsw.c: Ditto.
7869
c5f10366
AC
7870 * objfiles.h: Change type of obj_private to void pointer.
7871 * pa64solib.c: Update copyright. Don't include "assert.h", use
7872 strcmp instead of STREQ, use LONGEST, do not use PTR
7873 * somsolib.c: Ditto.
7874
616675d3
AC
7875 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7876 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7877 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7878
e4b415d9
AC
78792002-06-08 Andrew Cagney <ac131313@redhat.com>
7880
7881 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7882 (default_get_saved_register): Delete function.
7883 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7884 generic_unwind_get_saved_register.
7885 * gdbarch.h, gdbarch.c: Re-generate.
7886
ca0d0b52
AC
78872002-06-08 Andrew Cagney <ac131313@redhat.com>
7888
7889 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7890 generic_func_frame_chain_valid.
7891 * gdbarch.h, gdbarch.c: Re-generate.
7892 * blockframe.c (generic_func_frame_chain_valid): Only check
7893 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7894 passing FP to PC_IN_CALL_DUMMY.
7895 Fix PR gdb/360.
7896
76860b5f
AC
78972002-06-08 Andrew Cagney <ac131313@redhat.com>
7898
7899 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7900 (register_gdbarch_data): Initialize init_p.
7901 (gdbarch_data): Initialize data pointer using the init function.
7902 (init_gdbarch_data): Delete function.
7903 (gdbarch_update_p): Update.
7904 (initialize_non_multiarch): Update.
7905 (struct gdbarch): Add field initialized_p.
7906 * gdbarch.h, gdbarch.c: Re-generate.
7907
8dda9770
ML
79082002-06-07 Michal Ludvig <mludvig@suse.cz>
7909
7910 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7911 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7912 better do the things actually here.
7913 * x86-64-tdep.c (x86_64_register_name2nr): New.
7914 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7915 (x86_64_gdbarch_init): Respect the above change.
7916 * x86-64-tdep.h (x86_64_register_name2nr)
7917 (x86_64_register_nr2name): Add prototypes.
7918 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7919
3d79a47c
MS
79202002-06-06 Michael Snyder <msnyder@redhat.com>
7921
7bd91a28
MS
7922 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7923 Delete extra braces and re-indent.
7924 (d10v_store_return_value): Char return values
3d79a47c
MS
7925 must be shifted over by one byte in R0.
7926 (d10v_extract_return_value): Delete extra braces, re-indent.
7927
095a4c96
EZ
79282002-06-06 Elena Zannoni <ezannoni@redhat.com>
7929
7930 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7931 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7932 (d10v_integer_to_address): Rewrite.
7933 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7934 the d10v specific functions which take care of converting to the
7935 correct space.
7936
e8a77ca4
EZ
79372002-06-06 Elena Zannoni <ezannoni@redhat.com>
7938
7939 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7940 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7941
4f2e4a4f
AC
79422002-06-02 Andrew Cagney <ac131313@redhat.com>
7943
7944 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7945 includes.
7946 * config/tm-linux.h: Ditto.
7947 * config/alpha/tm-alphalinux.h: Ditto.
7948 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7949 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7950 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7951 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7952 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7953 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7954 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7955 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7956 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7957 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7958 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7959 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7960 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7961 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7962 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7963 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7964 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7965 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7966 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7967 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7968 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7969 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7970 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7971 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7972 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7973 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7974 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7975 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7976 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7977 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7978 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7979 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7980 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7981 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7982 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7983 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7984 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7985
ae2ab2ce
AS
79862002-05-04 Aidan Skinner <aidan@velvet.net>
7987
7988 * ada-exp.tab.c: New file
7989 * ada-exp.y: New file
7990 * ada-lang.c: New file
7991 * ada-lang.h: New file
7992 * ada-lex.c: New file
7993 * ada-lex.l: New file
7994 * ada-tasks.c: New file
7995 * ada-typeprint.c: New file
7996 * ada-valprint.c: New file
7997
0ddd0135
JT
79982002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7999
8000 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8001 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8002
750fbacc
JT
80032002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8004
8005 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8006 insetead of ppc-linux-tdep.o.
8007 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8008 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8009
df94e18a
AC
80102002-06-02 Andrew Cagney <ac131313@redhat.com>
8011
8012 2002-05-07 Christian Groessler <chris@groessler.org>
8013 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8014 bit register contents for little endian hosts.
8015
1a38ab75
AC
80162002-06-01 Andrew Cagney <ac131313@redhat.com>
8017
8018 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8019 any maintainer.
8020
8b1632ac
AC
80212002-06-01 Andrew Cagney <ac131313@redhat.com>
8022
8023 * gdbarch.h: Regenerate.
8024
627054c8
AC
80252002-06-01 Andrew Cagney <ac131313@redhat.com>
8026
8027 * MAINTAINERS: Add everyone to write-after-approval list.
8028
4f460812
AC
80292002-06-01 Andrew Cagney <ac131313@redhat.com>
8030
8031 * stack.c (frame_info): Use frame_register_unwind instead of
8032 saved_regs. Mention when the SP is on the stack or in a register.
8033
8034 * frame.h (frame_register_unwind_ftype): Define. Document.
8035 (struct frame_info): Add field register_unwind and
8036 register_unwind_cache.
8037 (frame_register_unwind): Declare.
8038 (generic_unwind_get_saved_register): Declare.
8039
8040 * frame.c (frame_register_unwind): New function.
8041 (generic_unwind_get_saved_register): New function.
8042
8043 * blockframe.c (generic_call_dummy_register_unwind): New function.
8044 (frame_saved_regs_register_unwind): New function.
8045 (set_unwind_by_pc): New function.
8046 (create_new_frame): New function.
8047 (get_prev_frame): New function.
8048
de888f76
AC
80492002-05-30 Andrew Cagney <ac131313@redhat.com>
8050
8051 * a29k-share/: Delete directory.
8052 * remote-vx29k.c: Delete file.
8053
2f2c3626
JT
80542002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8055
8056 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8057 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8058
9ce5c36a
JT
80592002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8060
8061 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8062 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8063 (sparc64nbsd-nat.o)
8064 (sparcnbsd-nat.o)
8065 (sparcnbsd-tdep.o): New dependency lists.
8066 * NEWS: Note new UltraSPARC NetBSD native configuration.
8067 * configure.host (sparc64-*-netbsd*): New host.
8068 * configure.tgt (sparc-*-netbsdelf*)
8069 (sparc-*-netbsd*): Set gdb_target to nbsd.
8070 (sparc64-*-netbsd*): New target.
8071 * sparc64nbsd-nat.c: New file.
8072 * sparcnbsd-nat.c: New file.
8073 * sparcnbsd-tdep.c: New file.
8074 * sparcnbsd-tdep.h: New file.
8075 * config/sparc/nbsd.mt: New file.
8076 * config/sparc/nbsd64.mh: New file.
8077 * config/sparc/nbsd64.mt: New file.
8078 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8079 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8080 (HOST_IPC): Remove.
8081 * config/sparc/nbsdaout.mt: Remove.
8082 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8083 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8084 (HOST_IPC): Remove.
8085 * config/sparc/nbsdelf.mt: Remove.
8086 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8087 sparc-nat.c compatiblity defines.
8088 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8089 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8090 * config/sparc/tm-nbsd64.h: New file.
8091 * config/sparc/tm-nbsdaout.h: Remove.
8092 * config/sparc/xm-nbsd.h: Remove.
8093
ef3cf062
JT
80942002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8095
8096 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8097 * sparc-tdep.c: Include osabi.h.
8098 (gdbarch_tdep): Add osabi member.
8099 (_initialize_sparc_tdep): Use gdbarch_register.
8100 (sparc_gdbarch_init): Use generic OS ABI framework.
8101 (sparc_dump_tdep): New function.
8102
ee8ff470
KB
81032002-05-30 Kevin Buettner <kevinb@redhat.com>
8104
8105 * corefile.c (do_captured_read_memory_integer): Return non-zero
8106 result.
8107 (safe_read_memory_integer): Copy result of memory read when
8108 status is non-zero. Also, add comments.
8109
7b112f9c
JT
81102002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8111
8112 * Makefile.in (ppc_tdep_h): Define.
8113 (ppc-linux-nat.o)
8114 (ppc-linux-tdep.o)
8115 (rs6000-tdep.o): Use $(ppc_tdep_h).
8116 (ppc-sysv-tdep.o)
8117 (ppcnbsd-nat.o)
8118 (ppcnbsd-tdep.o): New dependency lists.
8119 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
8120 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8121 (ppc_linux_init_abi): New functions.
7b112f9c
JT
8122 (ppc_sysv_abi_broken_use_struct_convention)
8123 (ppc_sysv_abi_use_struct_convention)
8124 (ppc_sysv_abi_push_arguments): Move to...
8125 * ppc-sysv-tdep.c: ...here.
8126 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8127 * rs6000-tdep.c (process_note_abi_tag_sections)
8128 (get_elfosabi): Remove.
8129 (rs6000_gdbarch_init): Use generic OS ABI framework.
8130 (rs6000_dump_tdep): New function.
8131 (_initialize_rs6000_tdep): Use gdbarch_register.
8132 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8133 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8134 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8135 of ppc-linux-tdep.o.
8136 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8137 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8138 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8139 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8140 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8141 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8142
480dd42a
JB
81432002-05-29 Jim Blandy <jimb@redhat.com>
8144
8145 * macroscope.c (default_macro_scope): Put `void' in empty argument
8146 list.
8147
4182591f
AC
81482002-05-29 Andrew Cagney <ac131313@redhat.com>
8149
8150 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8151 * arch-utils.c: Include "sim-regno.h".
8152 * gdbarch.sh: Don't include "sim-regno.h".
8153 * gdbarch.h, gdbarch.c: Regenerate.
8154 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8155 here.
8156 * arch-utils.h (legacy_register_sim_regno): To here.
8157 * remote-sim.c (legacy_register_sim_regno): Move function from
8158 here.
8159 * arch-utils.c (legacy_register_sim_regno): To here.
8160
8238d0bf
AC
81612002-05-28 Andrew Cagney <ac131313@redhat.com>
8162
8163 * sim-regno.h: New file.
8164 * Makefile.in (sim_regno_h): Define.
8165 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8166 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8167 (legacy_register_sim_regno): New function.
8168 (one2one_register_sim_regno): New function.
8169 (gdbsim_fetch_register): Rewrite.
8170 (gdbsim_store_register): Only store a register when
8171 REGISTER_SIM_REGNO is valid.
8172 * d10v-tdep.c: Include "sim-regno.h".
8173 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8174 (d10v_ts3_register_sim_regno): Ditto.
8175 * gdbarch.sh: Include "sim-regno.h".
8176 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8177 * gdbarch.h, gdbarch.c: Regenerate.
8178 * arch-utils.h (default_register_sim_regno): Delete declaration.
8179 * arch-utils.c (default_register_sim_regno): Delete function.
8180
485721b1
JT
81812002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8182
8183 * ppcnbsd-nat.c: Rewrite.
8184 * ppcnbsd-tdep.c: New file.
8185 * ppcnbsd-tdep.h: New file.
8186 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8187 solib.o, and solib-svr4.o.
8188 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8189 nbsd-tdep.o, and corelow.o.
8190
697f244d
AC
81912002-05-28 Andrew Cagney <ac131313@redhat.com>
8192
8193 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8194 `tr' and `sed'. Mention that `broken' targets are not expected to
8195 build.
8196
f08caad1 81972002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
8198
8199 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8200 Let PC point right after the prologue before looking up symbols.
8201
3139facc
MH
82022002-05-27 Martin M. Hunt <hunt@redhat.com>
8203
8204 * i386-tdep.c (i386_register_virtual_type): Return
8205 builtin_type_vec128i for SSE registers.
8206
8207 * gdbtypes.h (builtin_type_vec128i): Declare.
8208
8209 * gdbtypes.c (build_builtin_type_vec128i): New function.
8210 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8211 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8212 (build_gdbtypes): Initialize new builtin vector types.
8213 (_initialize_gdbtypes): Register new vector types with gdbarch.
8214
6e3ba3b8
JT
82152002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8216
8217 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8218 since it has been multi-arch'd.
8219 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8220 Move Alpha and VAX multi-arch news entries to same section
8221 as other multi-arch news.
8222
93d5585d
JT
82232002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8224
8225 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8226 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8227 static. Rename some register numbers to put them in ns32k-tdep
8228 private namespace.
8229 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8230 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8231 functions.
8232 (_initialize_ns32k_tdep): Use gdbarch_register.
8233 * ns32k-tdep.h: New file.
8234 * ns32knbsd-tdep.c: New file.
8235 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8236 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8237 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8238 REGISTER_BYTES, REGISTER_BYTE): Remove.
8239 * config/ns32k/tm-ns32k.h: New file.
8240 * config/ns32k/tm-umax.h: Remove.
8241
efb2c70e
JT
82422002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8243
8244 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8245 ns32k_store_struct_return, ns32k_extract_return_value,
8246 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8247 functions.
8248 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8249 ns32k_saved_pc_after_call.
8250 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8251 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8252 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8253 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8254 ns32k_extract_struct_value_address.
8255
7bcc927b
JT
82562002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8257
8258 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8259 ns32k_fix_call_dummy): New.
8260 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8261 ns32k_call_dummy_words.
8262 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8263 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8264 CALL_DUMMY_NARGS): Remove.
8265 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8266
78f9d765
JT
82672002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8268
8269 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8270 ns32k_frame_saved_pc, ns32k_frame_args_address,
8271 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8272 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8273 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8274 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8275 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8276 (BREAKPOINT): Remove..
8277 (FRAME_CHAIN): Define as ns32k_frame_chain.
8278 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8279 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8280 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8281 (FRAME_FIND_SAVED_REGS): Remove.
8282 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8283 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8284 (POP_FRAME): Define as ns32k_pop_frame.
8285
f2c762e0
JT
82862002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8287
8288 * ns32k-tdep.c (ns32k_register_byte_32082,
8289 ns32k_register_byte_32382, ns32k_register_raw_size,
8290 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8291 functions.
8292 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8293 ns32k_register_byte_32382.
8294 * config/ns32k/tm-umax.h: Update copyright years.
8295 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8296 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8297 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8298 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8299 (ns32k_get_enter_addr): Fix prototype.
8300
af137673
JT
83012002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8302
8303 * ns32k-tdep.c: Update copyright years.
8304 (ns32k_register_name_32082): New function.
8305 (ns32k_register_name_32382): Ditto.
8306 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8307 (REGISTER_NAME): Define as ns32k_register_name_32382.
8308 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8309 (REGISTER_NAME): Define as ns32k_register_name_32082.
8310
a8bc7b56
JB
83112002-05-24 Jim Blandy <jimb@redhat.com>
8312
8313 * dwarf2read.c (free_line_header): Use xfree, not free.
8314
83a45910
JT
83152002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8316
8317 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8318 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8319
0db71247
AC
83202002-05-23 Andrew Cagney <ac131313@redhat.com>
8321
8322 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8323
b9e5e4dd
AC
83242002-05-23 Andrew Cagney <ac131313@redhat.com>
8325
8326 From Ross Alexander at NEC Europe:
8327 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8328
de530e84
MS
83292002-05-23 Michael Snyder <msnyder@redhat.com>
8330
8331 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8332 for input, rather than parse_and_eval_address.
8333
b91b96f4
AC
83342002-05-23 Andrew Cagney <ac131313@redhat.com>
8335
8336 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8337 * Makefile.in (sim_d10v_h): Update definition.
8338
8b279e7a
AC
83392002-05-24 Andrew Cagney <cagney@redhat.com>
8340
8341 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8342 change `2002-05-22 Michael Snyder' below.
8343 (d10v_push_arguments): Ditto.
8344 (d10v_extract_return_value): Ditto.
8345
0a3d0425
JB
83462002-05-23 Jim Blandy <jimb@redhat.com>
8347
8348 * macrotab.c (check_for_redefinition): Don't complain if the new
8349 definition is the same as the previous one. Take more arguments
8350 to allow the comparison.
8351 (macro_define_object, macro_define_function): Pass more arguments
8352 to check_for_redefinition.
8353
78eac43e
MS
83542002-05-22 Michael Snyder <msnyder@redhat.com>
8355
8356 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8357 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8358 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8359 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8360 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8361 Add a temp variable to save a call (and a memory read).
8362 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8363 if possible (so that PC_IN_CALL_DUMMY will work).
8364
9bc1edb8
CV
83652002-05-22 Corinna Vinschen <vinschen@redhat.com>
8366
8367 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8368
005ef3d2
ML
83692002-05-22 Michal Ludvig <mludvig@suse.cz>
8370
8371 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8372 fde->cie_ptr.
8373 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8374 (dwarf2_build_frame_info): Add offset to fde->initial_location
8375 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
8376 (execute_stack_op): Change type of 'result' from ULONGEST to
8377 CORE_ADDR.
005ef3d2 8378
fcf4f891
JT
83792002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8380
8381 * config/alpha/tm-nbsd.h: Include solib.h.
8382
cfef91e4
JT
83832002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8384
8385 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8386 assumptions about the host's byte order.
8387
9964235a
JT
83882002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8389
8390 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8391 to dependency list.
8392 * alphanbsd-tdep.c: Include solib-svr4.h.
8393 * shnbsd-tdep.c: Ditto.
8394
9eeef8ef
JT
83952002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8396
8397 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8398 nbsd-tdep.h to dependency list.
8399 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8400 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8401 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8402 nbsdaout.mh and nbsdelf.mh consistently.
8403 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8404 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8405 nbsdaout.mt and nbsdelf.mh consistently.
8406 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8407 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8408 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8409 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8410 a.out shared library stuff from here...
8411 * config/nm-nbsdaout.h: ...to here.
8412 * config/tm-nbsd.h: Remove.
8413 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8414 * config/arm/nbsd.mh: Remove.
8415 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8416 nbsd-tdep.o.
8417 * config/arm/nbsdaout.mh: New file.
8418 * config/arm/nbsdelf.mh: New file.
8419 * config/arm/nm-nbsdaout.h: New file.
8420 * config/i386/nbsd.mh: Remove.
8421 * config/i386/nbsd.mt: Remove.
8422 * config/i386/nbsdaout.mh: New file.
8423 * config/i386/nbsdaout.mt: New file.
8424 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8425 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8426 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8427 i386_register_u_addr): Remove.
8428 * config/i386/nm-nbsdaout.h: New file.
8429 * config/i386/nm-nbsdelf.h: Remove.
8430 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8431 (USE_STRUCT_CONVENTION): Remove.
8432 * config/i386/tm-nbsdaout.h: New file.
8433 * config/i386/tm-nbsdelf.h: Remove.
8434 * config/m68k/nbsd.mh: Remove.
8435 * config/m68k/nbsd.mt: Remove.
8436 * config/m68k/nbsdaout.mh: New file.
8437 * config/m68k/nbsdaout.mt: New file.
8438 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8439 * config/m68k/nm-nbsdaout.h: New file.
8440 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8441 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8442 * config/ns32k/nbsd.mh: Remove.
8443 * config/ns32k/nbsd.mt: Remove.
8444 * config/ns32k/nbsdaout.mh: New file.
8445 * config/ns32k/nbsdaout.mt: New file.
8446 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8447 * config/ns32k/nm-nbsdaout.h: New file.
8448 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8449 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8450 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8451 (SVR4_SHARED_LIBS): Remove.
8452 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8453 * config/sparc/nbsd.mh: Remove.
8454 * config/sparc/nbsd.mt: Remove.
8455 * config/sparc/nbsdaout.mh: New file.
8456 * config/sparc/nbsdaout.mt: New file.
8457 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8458 * config/sparc/nbsdelf.mt: New file.
8459 * config/sparc/nm-nbsdaout.h: New file.
8460 * config/sparc/nm-nbsdelf.h: Remove.
8461 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8462 * config/sparc/tm-nbsdaout.h: New file.
8463
257ce470
JT
84642002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8465
8466 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8467 mipsnbsd-tdep.c
8468 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8469
76a6d5fe
JT
84702002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8471
8472 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8473 shnbsd-nat.c.
8474 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8475
45888261
JT
84762002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8477
8478 * NEWS: Note new MIPS NetBSD native configuration.
8479 * configure.host (mips*-*-netbsd*): New host.
8480 * configure.tgt (mips*-*-netbsd*): New target.
8481 * mipsnbsd-nat.c: New file.
8482 * mipsnbsd-tdep.c: New file.
8483 * mipsnbsd-tdep.h: New file.
8484 * config/mips/nbsd.mh: New file.
8485 * config/mips/nbsd.mt: New file.
8486 * config/mips/nm-nbsd.h: New file.
8487 * config/mips/tm-nbsd.h: New file.
8488
70f80edf
JT
84892002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8490
8491 * Makefile.in (SFILES): Add osabi.c.
8492 (COMMON_OBS): Add osabi.o.
8493 (osabi.o): New dependency list.
8494 * osabi.c: New file.
8495 * osabi.h: New file.
8496 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8497
8498 * Makefile.in (alpha_tdep_h): Define and use instead of
8499 alpha-tdep.h.
8500 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8501 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8502 Remove.
8503 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8504 * alpha-tdep.h: Include osabi.h.
8505 (alpha_abi): Remove.
8506 (gdbarch_tdep): Use generic OS ABI framework.
8507 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8508 gdbarch_register_osabi.
8509 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8510 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8511 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8512
8513 * Makefile.in (sh_tdep_h): Add osabi.h.
8514 * sh-tdep.h (sh_osabi): Remove.
8515 (gdbarch_tdep): Use generic OS ABI framework.
8516 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8517 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8518 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8519 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8520
8521 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8522 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8523 gdbarch_register_osabi.
8524 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8525 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8526 (get_elfosabi): Rename to...
8527 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8528 ABI framework support routines.
8529 (arm_gdbarch_init): Use generic OS ABI framework.
8530 (arm_dump_tdep): Likewise.
8531 (_initialize_arm_tdep): Likewise.
8532 * arm-tdep.h: Include osabi.h.
8533 (arm_abi): Remove.
8534 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8535 osabi member.
8536 (arm_gdbarch_register_os_abi): Remove prototype.
8537 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8538 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8539
8540 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8541 * mips-tdep.c: Include osabi.h.
8542 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8543 OS ABI framework.
8544
d194345b
KH
85452002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8546
8547 * h8300-tdep.c: Fix formatting.
8548
70c6b0d1
EZ
85492002-05-20 Elena Zannoni <ezannoni@redhat.com>
8550
8551 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8552 printing vector registers.
8553
165b8e33
AC
85542002-05-19 Andrew Cagney <ac131313@redhat.com>
8555
8556 From Fernando Nasser:
8557 * remote.c (remote_async_open_1): Re-throw the exception when the
8558 connection fails.
8559 (remote_cisco_open): Ditto.
8560 (remote_open_1): Ditto.
8561
36918e70
AC
85622002-05-19 Andrew Cagney <ac131313@redhat.com>
8563
8564 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8565 (remote_start_remote): Add uiout parameter. Pass through to
8566 remote_start_remote_dummy.
8567 (remote_open_1): Use catch_exception instead of catch_errors.
8568 (remote_async_open_1): Ditto.
8569 (remote_cisco_open): Ditto.
8570
ae44c0c4
AC
85712002-05-19 Andrew Cagney <ac131313@redhat.com>
8572
8573 * remote.c (remote_start_remote): Replace PTR with void pointer.
8574 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8575 static.
8576
8efe637d
AC
85772002-05-18 Andrew Cagney <ac131313@redhat.com>
8578
8579 * gdb_indent.sh: Allow the script to be run in the sim directory.
8580
2f1b5984
MK
85812002-05-18 Mark Kettenis <kettenis@gnu.org>
8582
f0f625e2
MK
8583 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8584 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8585
2f1b5984
MK
8586 * corelow.c (core_open): Only call set_gdbarch_from_file if
8587 exec_bfd is NULL.
8588
fc974602
AV
85892002-05-17 Andrey Volkov <avolkov@transas.com>
8590
8591 * h8300-tdep.c: Add support of EXR register
8592 * config/h8300/tm-h8300.h: Ditto.
8593
906709f4
AV
85942002-05-17 Andrey Volkov <avolkov@transas.com>
8595
8596 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8597
6e591d68
AV
85982002-05-17 Andrey Volkov <avolkov@transas.com>
8599
8600 * h8300-tdep.c: Change literal regnums to REGNO.
8601
84f0252a
JB
86022002-05-17 Jim Blandy <jimb@redhat.com>
8603
e0e9281e
JB
8604 * NEWS: Note addition of macro support.
8605
84f0252a
JB
8606 Expand preprocessor macros in C expressions.
8607 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8608 (scan_macro_expansion, scanning_macro_expansion,
8609 finished_macro_expansion): New function declarations.
8610 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8611 variable declarations.
8612 * parser-defs.h (expression_context_pc): New declaration.
8613 * parse.c (expression_context_pc): New variable.
8614 (parse_exp_1): Set expression_context_pc, as well as
8615 expression_context_block.
8616 * c-exp.y (yylex): If we're not already reading the result of a
8617 macro expansion, try to macro-expand the next token. When we're
8618 done scanning a macro expansion, switch back to the mainline text.
8619 Commas and `if's in a macro's expansion don't terminate the input.
8620 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8621 (macro_original_text, macro_expanded_text,
8622 expression_macro_lookup_func, expression_macro_lookup_baton): New
8623 variables.
8624 (scan_macro_expansion, scanning_macro_expansion,
8625 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8626 c_preprocess_and_parse): New functions.
8627 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8628 c_preprocess_and_parse, instead of c_parse.
8629 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8630 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8631
1c509ca8
JR
8632Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8633
8634 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8635 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8636 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8637
2250ee0c
CV
86382002-05-17 Corinna Vinschen <vinschen@redhat.com>
8639
8640 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8641
ab3b8126
JT
86422002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8643
8644 * Makefile.in (sh_tdep_h): Define and use.
8645 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8646 register enum): Move to...
8647 * * sh-tdep.h: ...here.
8648 * sh-tdep.c: Include sh-tdep.h.
8649 * sh3-rom.c: Likewise.
8650 * shnbsd-tdep.c: Likewise.
8651
ed9d4749
MS
86522002-05-16 Michael Snyder <msnyder@redhat.com>
8653
8654 * arm-tdep.c: Spelling fix in comment.
8655
2e276125
JB
86562002-05-16 Jim Blandy <jimb@redhat.com>
8657
6821892e
JB
8658 Add commands for manually expanding macros and showing their
8659 definitions.
8660 * macrocmd.c, macroscope.c, macroscope.h: New files.
8661 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8662 (macroscope_h): New variable.
8663 (HFILES_NO_SRCDIR): Add macroscope.h.
8664 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8665 (macroscope.o, macrocmd.o): New rules.
8666
2e276125
JB
8667 Teach the Dwarf 2 reader to read macro information.
8668 * dwarf2read.c: #include "macrotab.h".
8669 (dwarf_macinfo_buffer): New variable.
8670 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8671 dwarf_macinfo_size.
8672 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8673 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8674 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8675 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8676 dwarf2_macro_spaces_in_definition): New complaints.
8677 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8678 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8679 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8680 the partial symbol table.
8681 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8682 from what's recorded in the partial symbol table.
8683 (read_file_scope): If the compilation unit has a
8684 `DW_AT_macro_info' attribute, read its macro information.
8685 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8686
2f53fe6c
DJ
86872002-05-16 Daniel Jacobowitz <drow@mvista.com>
8688
8689 Fix PR gdb/546
8690 * ser-tcp.c: Don't include <netinet/udp.h>.
8691
2be99286
SC
86922002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8693
8694 * MAINTAINERS: Update my email address.
8695
c9af212b 86962002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8697
8698 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8699 include file of the same name.
8700
bf5f1a52
CV
87012002-05-16 Corinna Vinschen <vinschen@redhat.com>
8702
8703 * configure.tgt: Mark v850 as multi-arched.
8704 * config/v850/tm-v850.h: Remove file.
8705 * config/v850/v850.mt: Eliminate TM_FILE.
8706
435e042a
CV
87072002-05-16 Corinna Vinschen <vinschen@redhat.com>
8708
8709 * v850-tdep.c: Full multi-arch.
8710 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8711 Define GDB_MULTI_ARCH to 2.
8712
9819c6c8
PM
87132002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8714
8715 * p-exp.y (current_type): New static variable.
8716 Carries the type of the expression at the position that is parsed.
8717 (push_current_type, pop_current_type): Two new functions. Used
8718 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8719 (search_field): New static variable. Set to one after parsing a point
8720 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8721 (FIELDNAME): New token. After a point only a token belonging to
8722 current_type type definition is allowed.
8723 (all over token rules): reset and change current_type according
8724 to rules.
8725 (exp '[' rule): insert implicit array index field if
8726 exp is a pascal string type.
8727
3a06899a
CV
87282002-05-16 Corinna Vinschen <vinschen@redhat.com>
8729
8730 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8731 frame info. Use frame_info's saved_regs instead of matching member
8732 in extra_frame_info throughout.
8733 (v850_frame_init_saved_regs): New function.
8734 (v850_init_extra_frame_info): Move most functionality into
8735 v850_frame_init_saved_regs().
8736 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8737 (v850_frame_find_saved_regs): Remove declaration.
8738 (FRAME_FIND_SAVED_REGS): Remove definition.
8739 (v850_frame_init_saved_regs): Add declaration.
8740 (FRAME_INIT_SAVED_REGS): Add definition.
8741
6ed14b0e
CV
87422002-05-16 Corinna Vinschen <vinschen@redhat.com>
8743
8744 * v850-tdep.c: Begin multi-arch'ing v850.
8745 (v850_target_architecture_hook): Remove function.
8746 (v850_gdbarch_init): New function. Add code previously in
8747 v850_target_architecture_hook().
8748 (_initialize_v850_tdep): Don't set target_architecture_hook.
8749 Call register_gdbarch_init() instead.
8750
42725910
DJ
87512002-05-16 Daniel Jacobowitz <drow@mvista.com>
8752
8753 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8754 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8755 (fixup_class_method_type): Likewise.
8756
99d9066e
JB
87572002-05-15 Jim Blandy <jimb@redhat.com>
8758
8759 Add macro structures to GDB's symbol tables. Nobody puts anything
8760 in them yet.
8761 * symtab.h (struct symtab): New member: `macro_table'.
8762 * buildsym.h (pending_macros): New global variable.
8763 * buildsym.c: #include "macrotab.h".
8764 (buildsym_init): Initialize `pending_macros'.
8765 (end_symtab): If we found macro information while reading a CU's
8766 debugging info, do build a symtab structure for it. Make the
8767 symtab point to the macro information, and clear the
8768 `pending_macros' pointer which held it while we were reading the
8769 debug info.
8770 (really_free_pendings): Free any pending macro table.
8771 * objfiles.h (struct objfile): New member: `macro_cache'.
8772 * objfiles.c (allocate_objfile): Set allocate and free functions
8773 for the macro cache's objstack.
8774 (free_objfile): Empty the macro cache's obstack.
8775 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8776 set new allocate and free functions for it.
8777 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8778 free functions for the macro cache's objstack. (Why is this
8779 function building its own objfile?)
8780 * symmisc.c (print_objfile_statistics): Print statistics on the
8781 macro bcache.
8782 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8783
c899585b
RE
87842002-05-15 Richard Earnshaw <rearnsha@arm.com>
8785
8786 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8787 (REGISTER_U_ADDR): Delete definition.
8788 (arm_register_u_addr): Delete declaration.
8789
a6cdd8c5
RE
87902002-05-15 Richard Earnshaw <rearnsha@arm.com>
8791
8792 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8793 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8794
c97dcfc7
AC
87952002-05-14 Andrew Cagney <ac131313@redhat.com>
8796
8797 * regcache.c (register_valid): Revise comments refering to "Not
8798 available" and "unavailable".
8799 * frame.c (frame_register_read): Ditto.
8800 * findvar.c (value_of_register): Ditto.
8801
93021b7d
AC
88022002-05-15 Andrew Cagney <cagney@redhat.com>
8803
8804 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8805 (remote-sim.o): Update dependencies.
8806 (d10v-tdep.o): Specify dependencies.
8807 (sim_d10v_h): Define.
8808
a86bc61c
JB
88092002-05-14 Jim Blandy <jimb@redhat.com>
8810
8811 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8812 * macrotab.c (macro_lookup_inclusion, find_definition,
8813 new_macro_table): Same.
8814
8815 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8816 not `! strcmp ()'. This is a dubious improvement.
8817 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8818
8819 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8820 although it's not necessary, to avoid a warning.
8821
2fdde8f8
DJ
88222002-05-14 Daniel Jacobowitz <drow@mvista.com>
8823
8824 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8825 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8826 TYPE_INSTANCE_FLAGS.
8827 (struct main_type): New.
8828 (struct type): Move most members to struct main_type. Change
8829 cv_type and as_type to new type_chain member. Add instance_flags.
8830 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8831 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8832 (finish_cv_type): Remove prototype.
8833 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8834 Set TYPE_CHAIN.
8835 (alloc_type_instance): New function.
8836 (smash_type): New function.
8837 (make_pointer_type, make_reference_type, make_function_type)
8838 (smash_to_member_type, smash_to_method_type): Call smash_type.
8839 (make_qualified_type): New function.
8840 (make_type_with_address_space): Call make_qualified_type.
8841 (make_cv_type): Likewise.
8842 (finish_cv_type): Remove unnecessary function.
8843 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8844 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8845 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8846 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8847 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8848 * hpread.c (hpread_read_struct_type): Likewise.
8849 * stabsread.c (read_struct_type): Likewise.
8850
843fedf4
EZ
88512002-05-14 Elena Zannoni <ezannoni@redhat.com>
8852
8853 * configure.tgt: Add a catch all sh* target, for cases like
8854 sh[2,3,4]-elf and sh-hms.
8855
05a6c72c
KS
88562002-05-14 Keith Seitz <keiths@redhat.com>
8857
8858 * event-loop.c (create_file_handler): Don't do anything but
8859 update data when we are given a fd which we are already
8860 monitoring.
8861
5d085aaf
ML
88622002-05-14 Michal Ludvig <mludvig@suse.cz>
8863
8864 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8865 (update_context): Use __func__ in warnings.
8866
9db8d71f
DJ
88672002-05-14 Daniel Jacobowitz <drow@mvista.com>
8868
8869 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8870 and tcp_close to net_open and net_close.
8871 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8872 using UDP if requested. Don't try to disable Nagle on UDP
8873 sockets.
8874 * remote.c (remote_serial_open): New function. Warn about UDP.
8875 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8876
5dbc6baa
EZ
88772002-05-13 Elena Zannoni <ezannoni@redhat.com>
8878
8879 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8880
cc3023f7
EZ
88812002-05-13 Elena Zannoni <ezannoni@redhat.com>
8882
8883 * configure.tgt: Remove sh-hms target.
8884 * MAINTAINERS: Don't list sh-hms as a separate target.
8885
ec2bcbe7
JB
88862002-05-13 Jim Blandy <jimb@redhat.com>
8887
8888 Add first preprocessor macro-expansion files.
8889 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8890 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8891 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8892 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8893 (COMMON_OBS): Add macrotab.o, macroexp.o.
8894 (macroexp.o, macrotab.o): New rules.
8895
6d531722
AC
88962002-05-13 Andrew Cagney <ac131313@redhat.com>
8897
8898 * config/m88k/tm-m88k.h: Update copyright.
8899 (m88k_target_write_pc): Declare
8900 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8901 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8902 (SHIFT_INST_REGS): Update definition.
8903 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8904 using old definition of TARGET_WRITE_PC.
8905 * regcache.c (generic_target_write_pc): Delete code handling
8906 NNPC_REGNUM.
8907 * gdbarch.sh (NNPC_REGNUM): Delete.
8908 * gdbarch.h, gdbarch.c: Regenerate.
8909
3e3f2739
RE
89102002-05-13 Richard Earnshaw <rearnsha@arm.com>
8911
8912 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8913 builtin reg number.
8914
0004e5a2
DJ
89152002-05-13 Daniel Jacobowitz <drow@mvista.com>
8916
8917 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8918 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8919 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8920 access macros.
8921 * c-typeprint.c (cp_type_print_method_args): Likewise.
8922 (c_type_print_args): Likewise.
8923 * d10v-tdep.c (d10v_push_arguments): Likewise.
8924 (d10v_extract_return_value): Likewise.
8925 * expprint.c (print_subexp): Likewise.
8926 * gdbtypes.c (lookup_primitive_typename): Likewise.
8927 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8928 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8929 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8930 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8931 (TYPE_VECTOR): Likewise.
8932 * hpread.c (hpread_read_struct_type)
8933 (fix_static_member_physnames, fixup_class_method_type)
8934 (hpread_type_lookup): Likewise.
8935 * mdebugread.c (parse_symbol, parse_type): Likewise.
8936 * p-lang.c (is_pascal_string_type): Likewise.
8937 * valops.c (hand_function_call): Likewise.
8938 * x86-64-tdep.c (classify_argument): Likewise.
8939
8940 * hpread.c (hpread_read_function_type)
8941 (hpread_read_doc_function_type): Call replace_type.
8942 * dstread.c (create_new_type): Delete.
8943 (decode_dst_structure, process_dst_function): Call alloc_type.
8944 Use type access macros.
8945
dff95cc7
MK
89462002-05-12 Mark Kettenis <kettenis@gnu.org>
8947
8948 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8949 the're not supported by the current architecture.
8950 (i387_fill_fxsave): Likewise.
8951
bbcd32ad
FF
89522002-05-12 Fred Fish <fnf@redhat.com>
8953
8954 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8955 sect_index_xxx members to index the first slot in section_offsets
8956 if all of the section_offsets are zero.
8957
89cf4787
MK
89582002-05-12 Mark Kettenis <kettenis@gnu.org>
8959
8960 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8961 checked in with last change.
8962
1f77ffc5
MK
89632002-05-12 Mark Kettenis <kettenis@gnu.org>
8964
8965 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8966 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8967 config.sub.
8968
89b8b4a9
DJ
89692002-05-12 Daniel Jacobowitz <drow@mvista.com>
8970
8971 * Makefile.in: Update dependencies.
8972
14a5e767
AC
89732002-05-11 Andrew Cagney <ac131313@redhat.com>
8974
8975 * language.c (local_hex_string_custom): Simplify. Do not depend
8976 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8977
8978 * memattr.c (mem_info_command): Replace calls to
8979 longest_local_hex_string and longest_local_hex_string_custom.
8980 * buildsym.c (make_blockvector): Ditto.
8981 * solib.c (info_sharedlibrary_command): Ditto.
8982 * tracepoint.c (tracepoints_info): Ditto.
8983 * symtab.c (print_msymbol_info): Ditto.
8984
8985 * language.c (local_hex_string): Delete.
8986 (local_hex_string_custom): Delete.
8987 (longest_local_hex_string): Rename to local_hex_string.
8988 (longest_local_hex_string_custom): Rename to
8989 local_hex_string_custom.
8990 * language.h (local_hex_string): Change parameter type to LONGEST.
8991 (local_hex_string_custom): Ditto.
8992 (longest_local_hex_string): Delete declaration.
8993 (longest_local_hex_string_custom): Ditto.
8994
8995 * solib.c: Update copyright.
8996 * memattr.c: Update copyright.
8997
13d01224
AC
89982002-05-11 Andrew Cagney <ac131313@redhat.com>
8999
9000 * arch-utils.h (legacy_register_to_value): Declare.
9001 (legacy_value_to_register): Declare.
9002 (legacy_convert_register_p): Declare.
9003 * arch-utils.c (legacy_register_to_value): New function.
9004 (legacy_value_to_register): New function.
9005 (legacy_convert_register_p): New function.
9006
9007 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9008 (VALUE_TO_REGISTER): Define.
9009 (CONVERT_REGISTER_P): Define.
9010 * gdbarch.h, gdbarch.c: Regenerate.
9011
9012 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9013 VALUE_TO_REGISTER.
9014 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9015 CONVERT_REGISTER_P.
9016
4a1970e4
DJ
90172005-05-11 Daniel Jacobowitz <drow@mvista.com>
9018 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9019
9020 * Makefile.in: Update dependencies for valops.c.
9021 * valops.c: Include "gdb_assert.h".
9022 (typecmp): Skip THIS parameter to methods.
9023 (find_method_list): Remove static_memfuncp argument,
9024 update callers. Check for stub methods.
9025 (find_value_oload_method_list): Don't set *static_memfuncp.
9026 (find_overload_match): Don't check for stub methods. Assert
9027 that methods are not stubbed. Handle static methods.
9028 (value_find_oload_method_list): Remove static_memfuncp argument.
9029 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9030 to the argument list for static stub methods.
9031 * value.h (value_find_oload_method_list): Update prototype.
9032
b2e75d78
AC
90332002-05-11 Andrew Cagney <ac131313@redhat.com>
9034
9035 * arch-utils.h (generic_register_size): Declare.
9036 (generic_register_raw_size, generic_register_virtual_size): Delete
9037 declarations.
9038 * arch-utils.c (generic_register_raw_size): Delete.
9039 (generic_register_size): New function.
9040 (generic_register_virtual_size): Delete.
9041
9042 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9043 default generic_register_size.
9044 * gdbarch.h, gdbarch.c: Re-generate.
9045
9046 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9047 register_virtual_size.
9048 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9049 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9050
451fbdda
AC
90512002-05-11 Andrew Cagney <ac131313@redhat.com>
9052
9053 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9054 * gdbarch.h, gdbarch.c: Regenerate.
9055 * gnu-v3-abi.c: Update copyright.
9056 (vtable_address_point_offset): Update.
9057 (gnuv3_rtti_type): Update.
9058 (gnuv3_baseclass_offset): Update.
9059 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9060 (init_fetch_link_map_offsets): Update.
9061 * remote.c (get_remote_state): Update.
9062
6d2f5cea
DJ
90632002-05-11 Daniel Jacobowitz <drow@mvista.com>
9064
9065 * TODO: Remove value_headof/value_from_vtable_info comment.
9066 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9067 * values.c (value_headof, value_from_vtable_info): Delete.
9068 * value.h (value_from_vtable_info): Delete prototype.
9069
d2324da4
AC
90702002-05-11 Andrew Cagney <ac131313@redhat.com>
9071
9072 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9073 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9074 $(gdb_regex_h).
9075 (gdb_assert_h): Define.
9076 (gdb_wait_h): Define.
9077 (gdb_regex_h): Define.
9078
5c717440
DJ
90792002-05-11 Daniel Jacobowitz <drow@mvista.com>
9080
9081 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9082 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9083
6c7861b3
JT
90842002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9085
9086 * nbsd-tdep.c: Fix comment.
9087
ea5bc2a6
JT
90882002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9089
9090 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9091 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9092 (nbsd-tdep.o): New dependency list.
9093 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9094 nbsd-tdep.h.
9095 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9096 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9097 * nbsd-tdep.c: New file.
9098 * nbsd-tdep.h: New file.
9099 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9100 nbsd-tdep.h.
9101 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9102 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9103 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9104 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9105
b28da865
JT
91062002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9107
9108 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9109 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9110 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9111 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9112 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9113 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9114
4b8ff1fa
JT
91152002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9116
9117 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9118 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9119 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9120 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9121 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9122 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9123 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9124
dfe6eb1f
JT
91252002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9126
9127 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9128 fetch_elfcore_registers to...
9129 * i386nbsd-tdep.c: ...here.
9130 (i386nbsd_use_struct_convention): Rename to...
9131 (i386nbsd_aout_use_struct_convention): ...this.
9132 (i386nbsd_supply_reg): New function.
9133 (i386nbsd_fill_reg): New function.
9134 (fetch_core_registers): Use i386nbsd_supply_reg.
9135 (fetch_elfcore_registers): Likewise.
9136 (_initialize_i386nbsd_tdep): New function.
9137 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9138 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9139 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9140 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9141 (i386nbsd_aout_use_struct_convention): ...this.
9142
20cb8cda
JT
91432002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9144
9145 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9146 (store_inferior_registers): Use shnbsd_fill_reg.
9147 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9148 sh_nbsd_supply_register): Collapse into...
9149 (shnbsd_supply_reg): ...this.
9150 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9151 (shnbsd_fill_reg): ...this.
9152 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9153 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9154 (fetch_core_registers): Use shnbsd_supply_reg.
9155 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9156 (sh_nbsd_core_fns): Rename to...
9157 (shnbsd_core_fns): ...this.
9158 (sh_nbsd_elfcore_fns): Rename to...
9159 (shnbsd_elfcore_fns): ...this.
9160 (sh_nbsd_init_abi): Rename to...
9161 (shnbsd_init_abi): ...this.
9162 (_initialize_sh_nbsd_tdep): Rename to...
9163 (_initialize_shnbsd_tdep): ...this.
9164 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9165 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9166 sh_nbsd_fill_register): Remove prototypes.
9167 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9168
e750d25e
JT
91692002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9170
9171 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9172 (i387-nat.o): Delete dependency list.
9173 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9174 (x86-64-linux-nat.o): Likewise.
9175 * i387-nat.c: Delete file, moving contents to...
9176 * i387-tdep.c: ...here.
9177 * i387-nat.h: Rename...
9178 * i387-tdep.h: ...to this.
9179 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9180 * i386-linux-nat.c: Likewise.
9181 * i386bsd-nat.c: Likewise.
9182 * i386gnu-nat.c: Likewise.
9183 * i386nbsd-nat.c: Likewise.
9184 * i386v4-nat.c: Likewise.
9185 * x86-64-linux-nat.c: Likewise.
9186 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9187 * config/i386/go32.mh (NATDEPFILES): Likewise.
9188 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9189 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9190 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9191 * config/i386/linux.mh (NATDEPFILES): Likewise.
9192 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9193 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9194 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9195 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9196
1aee598a
JT
91972002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9198
9199 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9200 (alphanbsd-nat.o): Remove dependency list.
9201 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9202 * alphanbsd-nat.c: Delete. Contents moved to...
9203 * alphanbsd-tdep.c: ...here.
9204 (_initialize_alphanbsd_tdep): Register core functions.
9205 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9206
12bcb0fe
JT
92072002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9208
9209 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9210 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9211 (alphanbsd-nat.o): Likewise.
9212 (alphabsd-tdep.o): New dependency list.
9213 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9214 (fill_gregset): Use alphabsd_fill_reg.
9215 (supply_fpregset): Use alphabsd_supply_fpreg.
9216 (fill_fpregset): Use alphabsd_fill_fpreg.
9217 (fetch_inferior_registers): Use struct reg and struct fpreg
9218 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9219 and alphabsd_supply_fpreg.
9220 (store_inferior_registers): Use struct reg and struct fpreg
9221 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9222 and alphabsd_fill_fpreg.
9223 * alphabsd-tdep.c: New file.
9224 * alphabsd-tdep.h: New file.
9225 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9226 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9227 alphabsd_supply_fpreg.
9228 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9229 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9230
361d1df0
EC
92312002-05-11 Eric Christopher <echristo@redhat.com>
9232
9233 * mips-tdep.c (mips_double_register_type): Fix thinko.
9234 (mips_single_register_type): Ditto.
9235 * MAINTAINERS: Add self.
9236
92dd7cee
MK
92372002-05-11 Mark Kettenis <kettenis@gnu.org>
9238
9239 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9240 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9241 right thing on architectures with different endianness and/or
9242 integer sizes.
9243
e27da16d
JT
92442002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9245
9246 From Christian Limpach <chris@Pin.LU>
9247 * configure.in: Change sed expression which comments out
9248 NATDEPFILES to also comment out continuation lines.
9249 * configure: Regenerate.
9250
ddde02bd
EZ
92512002-05-10 Elena Zannoni <ezannoni@redhat.com>
9252
9253 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9254 big patch.
9255
1c922164
EZ
92562002-05-10 Elena Zannoni <ezannoni@redhat.com>
9257
9258 * sh-tdep.c: Include correct file.
9259
283150cd
EZ
92602002-05-10 Elena Zannoni <ezannoni@redhat.com>
9261
9262 New support for sh64-elf (sh5) target.
9263
9264 * configure.tgt: For sh64-elf target, default to sh-elf.
9265
9266 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9267 (struct gdbarch_tdep): Add new fields for new registers and ABI
9268 info.
361d1df0 9269
283150cd
EZ
9270 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9271 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9272 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9273 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9274 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9275 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9276 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9277 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9278 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9279 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9280 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9281 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9282 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9283 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9284 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9285 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9286 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9287 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9288 sign_extend, sh64_nofp_frame_init_saved_regs,
9289 sh64_init_extra_frame_info, sh64_get_saved_register,
9290 sh64_extract_struct_value_address, sh64_pop_frame,
9291 sh64_push_arguments, sh64_extract_return_value,
9292 sh64_store_return_value, sh64_show_media_regs,
9293 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9294 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9295 sh_sh64_register_virtual_type,
9296 sh_sh64_register_convert_to_virtual,
9297 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9298 sh64_register_read, sh64_pseudo_register_write,
9299 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9300 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9301 sh64_do_pseudo_register, sh_compact_do_registers_info,
9302 sh64_do_registers_info, sh_gdbarch_init): New functions.
9303
3117ed25
EZ
93042002-05-10 Elena Zannoni <ezannoni@redhat.com>
9305
9306 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9307
2654e6d4
DJ
93082002-05-10 Daniel Jacobowitz <drow@mvista.com>
9309
9310 * linespec.c (decode_line_1): Check for a double quote after
9311 a filename correctly.
9312
9ab3e532
JB
93132002-05-10 Jim Blandy <jimb@redhat.com>
9314
9315 Properly track the size of the current objfile's .debug_line section.
9316 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9317 (DWARF_LINE_SIZE): New macro.
9318 (dwarf2_build_psymtabs_hard): Record the line section's size in
9319 the partial symbol table.
9320 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9321 symbol table.
9322
126fa72d
PS
93232002-05-10 Petr Sorfa <petrs@caldera.com>
9324
9325 * ia64-tdep.c: Handle breakpoints on L instruction type
9326 in MLX instruction bundle by moving the breakpoint to
9327 the third slot (X instruction type) as L holds only data.
9328
1f077a3e
KB
93292002-05-10 Kevin Buettner <kevinb@redhat.com>
9330
9331 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9332 (process_one_symbol): Complain about discarding local symbols
9333 due to a misplaced N_LBRAC entry.
9334
8120c9d5 93352002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
9336
9337 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
9338 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9339 decrease the depth we are at, in the case of templates.
361d1df0 9340
67b2c998
DJ
93412002-05-09 Daniel Jacobowitz <drow@mvista.com>
9342
9343 * mips-tdep.c (mips_float_register_type): New function.
9344 (mips_double_register_type): New function.
9345 (mips_print_register): Use them.
9346 (do_fp_register_row): Likewise.
9347
fd326606
DJ
93482002-05-09 Daniel Jacobowitz <drow@mvista.com>
9349
6609d9af 9350 * signals/signals.c (signals): Remove conditional compilation around
fd326606 9351 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 9352 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 9353
bef35864
MS
93542002-05-09 Michael Snyder <msnyder@redhat.com>
9355
9356 * remote-rdp.c (remote_rdp_can_run): Remove.
9357
c55a3f73
TT
93582002-05-09 Tom Tromey <tromey@redhat.com>
9359
9360 * jv-valprint.c (java_val_print): Handle `char' as a special case
9361 of TYPE_CODE_INT.
9362
b8d5e71d
MS
93632002-05-09 Michael Snyder <msnyder@redhat.com>
9364
9365 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9366 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 9367 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 9368 str r(0123),[sp,#nn].
361d1df0 9369 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
9370 order-independent by placing it in a loop.
9371
e2cd42dd
MS
93722002-05-06 Michael Snyder <msnyder@redhat.com>
9373
9374 * stabsread.c (read_type): Add recognition for new attribute:
9375 "@V;" means that an array type is actually a vector.
9376 This is analogous to the vector flag that's been added to dwarf2.
9377
3ce1502b
MK
93782002-05-09 Mark Kettenis <kettenis@gnu.org>
9379
9380 * i386-tdep.h (i386_abi): New enum.
9381 (struct gdbarch_tdep): Replace os_ident member with abi.
9382 (i386_gdbarch_register_os_abi): New prototype.
9383 * i386-tdep.c (i386_abi_names): New array.
9384 (process_note_abi_tag_sections): Removed.
9385 (process_note_sections): New function.
9386 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9387 (struct i386_abi_handler): New struct.
9388 (i386_abi_handler_list): New variable.
9389 (i386_gdbarch_register_os_abi): New function.
9390 (i386_gdbarch_init): Adapt for the changes given above.
9391
084c156a
DJ
93922002-05-08 Daniel Jacobowitz <drow@mvista.com>
9393
9394 * gregset.h: Say "GNU/Linux".
9395
6599f021
EZ
93962002-05-08 Elena Zannoni <ezannoni@redhat.com>
9397
9398 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9399 (build_gdbtypes): Build builtin_type_v2_float.
9400 (_initialize_gdbtypes): Register new builtin type.
9401
40af4b0c
AC
94022002-05-08 Andrew Cagney <ac131313@redhat.com>
9403
9404 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9405 (clear_gdbarch_swap): New function.
9406 (initialize_non_multiarch): Call.
9407 (gdbarch_update_p): Before calling init(), swap out and clear the
9408 existing architecture.
9409 * gdbarch.c: Regenerate.
9410
4fe84f46
JT
94112002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9412
9413 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9414 alphanbsd-tdep.c.
9415
4015edd1
JT
94162002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9417
9418 * sh-nbsd-nat.c: Rename to...
9419 * shnbsd-nat.c: ...this.
9420 * sh-nbsd-tdep.c: Rename to...
9421 * shnbsd-tdep.c: ...this.
9422 * sh-nbsd-tdep.h: Rename to...
9423 * shnbsd-tdep.h: ...this.
9424 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9425 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9426
0e2bd219
RE
94272002-05-08 Richard Earnshaw <rearnsha@arm.com>
9428
9429 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9430 concatenation for command help messages.
9431
13a38d45
JT
94322002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9433
9434 * NEWS: Note new sh*-*-netbsdelf* configuration.
9435 * configure.host: Set gdb_host_cpu to sh for all sh*.
9436 (sh*-*-netbsdelf*): New host.
9437 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9438 (sh*-*-netbsdelf*): New target.
9439 * sh-nbsd-nat.c: New file.
9440 * sh-nbsd-tdep.c: New file.
9441 * sh-nbsd-tdep.h: New file.
9442 * config/sh/nbsd.mh: New file.
9443 * config/sh/nbsd.mt: New file.
9444 * config/sh/nm-nbsd.h: New file.
9445 * config/sh/tm-nbsd.h: New file.
9446
d658f924
JT
94472002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9448
9449 * sh-tdep.c (sh_osabi_names): Declare.
9450 (process_note_abi_tag_sections): New function.
9451 (get_elfosabi): Ditto.
9452 (sh_gdbarch_register_os_abi): Ditto.
9453 (sh_dump_tdep): Ditto.
9454 _initialize_sh_tdep): Use gdbarch_register to register
9455 sh_gdbarch_init and sh_dump_tdep.
9456 * config/sh/tm-sh.h (sh_osabi): Declare.
9457 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9458
848cfffb
AC
94592002-05-07 Andrew Cagney <ac131313@redhat.com>
9460
9461 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9462 (thumb_scan_prologue): Ditto.
9463 (arm_find_callers_reg): Ditto.
9464 (arm_frame_chain): Ditto.
9465 (arm_init_extra_frame_info): Ditto.
9466 (arm_frame_saved_pc): Ditto.
9467 (arm_pop_frame): Ditto.
9468 (arm_push_return_address): New function.
9469 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9470 call_dummy_location, call_dummy_breakpoint_offset_p,
9471 call_dummy_breakpoint_offset, call_dummy_p,
9472 call_dummy_stack_adjust_p, call_dummy_words,
9473 sizeof_call_dummy_words, call_dummy_start_offset,
9474 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9475 call_dummy_address, push_return_address and push_dummy_frame for
9476 generic dummy frames.
9477
e7d717c0
JT
94782002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9479
9480 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9481 size computation for alloca.
9482 (sh_fp_frame_init_saved_regs): Likewise.
9483
7bbcf283
RE
94842002-05-07 Richard Earnshaw <rearnsha@arm.com>
9485
9486 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9487 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9488 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9489 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9490 * remote-rdp.c (remote_rdp_fetch_register): Use
9491 ARM_MAX_REGISTER_RAW_SIZE.
9492 (remote_rdp_store_register): Likewise.
9493
4657573b
ML
94942002-05-07 Michal Ludvig <mludvig@suse.cz>
9495
361d1df0 9496 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9497 added default labels to switch {} statements.
9498 * x86-64-tdep.c: Ditto.
9499 * x86-64-linux-nat.c: Ditto.
9500
010f3b2f
JT
95012002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9502
9503 * solib.h: Protect against multiple inclusion.
9504
debd256d
JB
95052002-05-06 Jim Blandy <jimb@redhat.com>
9506
9ab3e532
JB
9507 Add first preprocessor macro-expansion files.
9508 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9509 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9510 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9511 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9512 (COMMON_OBS): Add macrotab.o, macroexp.o.
9513 (macroexp.o, macrotab.o): New rules.
9514
debd256d
JB
9515 Separate the job of reading the line number info statement program
9516 header (...expialidocious) out into its own function.
9517 * dwarf2read.c (struct line_head, struct filenames, struct
9518 directories): Replace with...
9519 (struct line_header): New structure, containing the full
9520 contents of the statement program header, including the
9521 include directory and file name tables.
9522 (read_file_scope): If we have line number info, instead of just
9523 calling dwarf_decode_lines to do all the work, call
9524 dwarf_decode_line_header first to get a `struct line_header'
9525 containing the data in the statement program header, and then
9526 pass that to dwarf_decode_lines, which will pick up where that
9527 left off. Be sure to clean up the `struct line_header' object.
9528 (dwarf_decode_line_header, free_line_header, add_include_dir,
9529 add_file_name): New functions.
9530 (dwarf_decode_lines): Move all the code to read the statement
9531 program header into dwarf_decode_line_header. Take the line
9532 header it built as the first argument, instead of the offset to
9533 the compilation unit's line number info. Use the new `struct
9534 line_header' type instead of the old structures. No need to do
9535 cleanups here now, since we don't allocate anything.
9536 (dwarf2_statement_list_fits_in_line_number_section,
9537 dwarf2_line_header_too_long): New complaints.
9538
ac3aafc7
EZ
95392002-05-06 Elena Zannoni <ezannoni@redhat.com>
9540
9541 * gdbtypes.c (init_vector_type): New function.
9542 (build_builtin_type_vec128): Simplify the representation of SIMD
9543 registers.
9544 (build_gdbtypes): Initialize new builtin vector types.
9545 (_initialize_gdbtypes): Register new vector types with gdbarch.
9546 (builtin_type_v4_float, builtin_type_v4_int32,
9547 builtin_type_v8_int16, builtin_type_v16_int8,
9548 builtin_type_v2_int32, builtin_type_v4_int16,
9549 builtin_type_v8_int8): New (renamed) SIMD types.
9550
13e49980
MK
95512002-05-06 Mark Kettenis <kettenis@gnu.org>
9552
9553 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9554 (i387_fill_fxsave): Likewise.
9555
997b20b8
AO
95562002-05-05 Alexandre Oliva <aoliva@redhat.com>
9557
9558 * alpha-tdep.c (alpha_extract_return_value): Don't use
9559 non-constant array size in prototype.
9560
535c96ce
AC
95612002-05-04 Andrew Cagney <ac131313@redhat.com>
9562
9563 From Brian Taylor <briant at model dot com>:
9564 * ui-out.c (ui_out_field_core_addr): Use the function
9565 longest_local_hex_string_custom'to format addresses > 32 bits
9566 wide.
9567
9568 * ui-out.c (ui_out_field_core_addr): Update comment.
9569
bedfa57b
AC
95702002-05-04 Andrew Cagney <ac131313@redhat.com>
9571
9572 * stack.c (select_and_print_frame): Make static. Delete the
9573 parameter `level'.
9574 (func_command): Update call.
9575 (select_frame_command): Delete code computing the frame level.
9576 * frame.h (select_and_print_frame): Delete declaration.
9577
f621c63e
AC
95782002-05-04 Andrew Cagney <ac131313@redhat.com>
9579
9580 * sparc-tdep.c (sparc_get_saved_register): Comment why
9581 get_prev_frame call is safe.
9582
0f7d239c
AC
95832002-05-04 Andrew Cagney <ac131313@redhat.com>
9584
9585 * frame.h (select_frame): Delete level parameter.
9586 * stack.c (select_frame): Update. Use frame_relative_level to
9587 obtain the frame's level.
9588 (select_and_print_frame): Update call.
9589 (select_frame_command): Ditto.
9590 (up_silently_base): Ditto.
9591 (down_silently_base): Ditto.
9592 * ocd.c (ocd_start_remote): Ditto.
9593 * remote-rdp.c (remote_rdp_open): Ditto.
9594 * remote-mips.c (mips_initialize): Ditto.
9595 (common_open): Ditto.
9596 * remote-e7000.c (e7000_start_remote): Ditto.
9597 * m3-nat.c (select_thread): Ditto.
9598 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9599 (child_get_current_exception_event): Ditto.
9600 * varobj.c (varobj_create): Ditto.
9601 (varobj_update): Ditto.
9602 (c_value_of_root): Ditto.
9603 * tracepoint.c (finish_tfind_command): Ditto.
9604 * corelow.c (core_open): Ditto.
9605 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9606 * thread.c (info_threads_command): Ditto.
9607 (switch_to_thread): Ditto.
9608 * infrun.c (normal_stop): Ditto.
9609 (restore_selected_frame): Ditto.
9610 (restore_inferior_status): Ditto.
9611 * breakpoint.c (insert_breakpoints): Ditto.
9612 (watchpoint_check): Ditto.
9613 (bpstat_stop_status): Ditto.
9614 (do_enable_breakpoint): Ditto.
9615 * blockframe.c (flush_cached_frames): Ditto.
9616 (reinit_frame_cache): Ditto.
9617
71d6c7b1
AC
96182002-05-04 Andrew Cagney <ac131313@redhat.com>
9619
9620 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9621 maintainer.
9622
cda6c68a
JB
96232002-05-04 Jim Blandy <jimb@redhat.com>
9624
9625 * gdbtypes.c (replace_type): Doc fix.
9626
5c1c87f0
AC
96272002-05-04 Andrew Cagney <ac131313@redhat.com>
9628
9629 * valprint.c (strcat_longest): Delete commented out function.
9630 Update copyright.
9631
cd9bfe15
AC
96322002-05-04 Andrew Cagney <ac131313@redhat.com>
9633
9634 * MAINTAINERS: Mark a29k as deleted.
9635 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9636 Move new configurations to the top.
9637 * configure.tgt: Remove a29k.
9638 * config/a29k/tm-vx29k.h: Delete.
9639 * config/a29k/vx29k.mt: Delete.
9640 * config/a29k/tm-a29k.h: Delete.
9641 * config/a29k/a29k-udi.mt: Delete.
9642 * config/a29k/a29k.mt: Delete.
9643 * a29k-tdep.c: Delete.
9644 * remote-udi.c: Delete.
9645 * remote-mm.c: Delete.
9646 * remote-eb.c: Delete.
9647 * remote-adapt.c: Delete.
9648 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9649 * config/s390/s390x.mt: Ditto.
9650 * config/s390/s390.mt: Ditto.
9651 * config/sparc/sparclynx.mh: Ditto.
9652 * config/sparc/linux.mh: Ditto.
9653 * config/pa/hppaosf.mh: Ditto.
9654 * config/pa/hppabsd.mh: Ditto.
9655 * config/ns32k/nbsd.mt: Ditto.
9656 * config/mips/vr5000.mt: Ditto.
9657 * config/m68k/sun3os4.mh: Ditto.
9658 * config/m68k/nbsd.mt: Ditto.
9659 * config/m68k/m68klynx.mh: Ditto.
9660 * config/m32r/m32r.mt: Ditto.
9661 * config/i386/x86-64linux.mt: Ditto.
9662 * config/i386/nbsdelf.mt: Ditto.
9663 * config/i386/nbsd.mt: Ditto.
9664 * config/i386/i386lynx.mh: Ditto.
9665
bf0c5130
AC
96662002-05-04 Andrew Cagney <ac131313@redhat.com>
9667
9668 * target.c (debug_print_register): New function. Handle oversize
9669 registers.
9670 (debug_to_fetch_registers): Call.
9671 (debug_to_store_registers): Call.
9672
2ae1c2d2
JB
96732002-05-03 Jim Blandy <jimb@redhat.com>
9674
13a393b0
JB
9675 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9676 (read_type): Doc fix.
9677 * gdbtypes.c (replace_type): Doc fix.
9678
2ae1c2d2
JB
9679 * stabsread.c (multiply_defined_struct): New complaint.
9680 (read_struct_type): If the type we were passed isn't empty, or
9681 incomplete, don't read the new struct type into it; complain,
9682 and return the original type unchanged. Take a new `type_code'
9683 argument, which is the type code for the new type.
9684 (read_type): Rather than storing the type's type code here, pass
9685 it as an argument to read_struct_type, and let that take care of
9686 storing it. That way, we don't overwrite the original type code,
9687 so read_struct_type can use it to decide whether we're overwriting
9688 something we shouldn't.
9689 (complain_about_struct_wipeout): New function.
9690
8de9bdc4
AC
96912002-05-03 Andrew Cagney <ac131313@redhat.com>
9692
9693 * gdbarch.sh: Assert that gdbarch is non-NULL.
9694 * gdbarch.c: Regenerate.
9695
f773fdbb
JM
96962002-05-03 Jason Merrill <jason@redhat.com>
9697
9698 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9699 and return NULL.
9700
0e04a514
ML
97012002-05-03 Michal Ludvig <mludvig@suse.cz>
9702
9703 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9704 (x86_64_dwarf2gdb_regno_map_length),
9705 (x86_64_dwarf2_reg_to_regnum): Added.
9706 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9707 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9708 (_initialize_x86_64_tdep): Synced with the change above.
9709 (x86_64_skip_prologue): Reformulated message.
9710
065432a8
PM
97112002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9712
9713 * f-exp.y: Also use new prev_lexptr variable
9714 to improve error reporting. Based on Michael Snyder
9715 2002-04-24 dated patch to c-exp.y.
9716 * jv-exp.y: Likewise.
9717 * m2-exp.y: Likewise.
9718
a3162708
EZ
97192002-05-02 Elena Zannoni <ezannoni@redhat.com>
9720
9721 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9722 we are dealing with vectors.
9723
03620c38
PM
97242002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9725
9726 * config/m68k/tm-nbsd.h: Obvious fix,
9727 correct machine name.
9728
6604db2e
PM
97292002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9730
9731 * p-typeprint.c (pascal_type_print_base): Add support
9732 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9733
0906b739
PM
97342002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9735
9736 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9737 for fondamental pascal 'char' type.
9738
e2625b33
PM
97392002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9740
9741 * p-lang.h (is_pascal_string_type): Declaration changed,
9742 new sixth argument of type char ** added.
361d1df0 9743 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9744 changed. Args length_pos, length_size, string_pos, char_size
9745 can now be NULL. New argument arrayname set to the field
9746 name of the char array. Return value set to char array
9747 field index plus one.
361d1df0 9748 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9749 is_pascal_string_type function.
9750
cf17c188
AC
97512002-05-02 Andrew Cagney <cagney@redhat.com>
9752
9753 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9754 <cagney@redhat.com> change.
9755 * gdbarch.c: Regenerate.
9756
52bca491
AC
97572002-05-02 Andrew Cagney <cagney@redhat.com>
9758
9759 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9760 before probing for a new one. Detect errorenous gdbarch_init
9761 functions.
9762 * gdbarch.c: Regenerate.
9763
d5e72505
AC
97642002-05-01 Andrew Cagney <cagney@redhat.com>
9765
9766 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9767 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9768 * config/v850/tm-v850.h: Ditto. Update copyright.
9769
af566d9f
AC
97702002-04-30 Andrew Cagney <ac131313@redhat.com>
9771
9772 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9773 current_gdbarch.
9774
880d85fa
MS
97752002-04-30 Michael Snyder <msnyder@redhat.com>
9776
94c30b78
MS
9777 * arm-tdep.c: Whitespace clean-ups.
9778 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9779 should have been removed as part of 4/24 change.
9780
6f5987a6
KB
97812002-04-30 Kevin Buettner <kevinb@redhat.com>
9782
9783 * rs6000-tdep.c: Added comment describing how fpscr register
9784 numbers were chosen.
9785
1a113c93
MS
97862002-04-30 Michael Snyder <msnyder@redhat.com>
9787
9788 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9789
9a6f53fe
EZ
97902002-04-29 Elena Zannoni <ezannoni@redhat.com>
9791
9792 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9793 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9794 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9795
11ed25ac
KB
97962002-04-29 Kevin Buettner <kevinb@redhat.com>
9797
9798 From Louis Hamilton <hamilton@redhat.com>:
9799 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9800 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9801 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9802 not bfd-private xcoff data, to determine wordsize.
9803 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9804
ae232405
AC
98052002-04-29 Andrew Cagney <ac131313@redhat.com>
9806
9807 GDB 5.2 released from 5.2 branch.
9808
91fd20f7
ML
98092002-04-29 Michal Ludvig <mludvig@suse.cz>
9810
9811 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9812 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9813 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9814
2dc5091b
EZ
98152002-04-29 Elena Zannoni <ezannoni@redhat.com>
9816
9817 * rs6000-tdep.c (rs6000_extract_return_value,
9818 rs6000_store_return_value): Handle returning vectors.
9819 (rs6000_gdbarch_init): Use
9820 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9821 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9822 New function.
9823 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9824 vectors.
9825 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9826 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9827
2b9848d8
PM
98282002-04-24 Pierre Muller <ics.u-strasbg.fr>
9829
9830 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9831 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9832 with fprintf_unfiltered (gdb_stderr,...).
9833
f8d17dc5
PM
98342002-04-24 Pierre Muller <ics.u-strasbg.fr>
9835
9836 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9837 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9838 Replace fprintf (stderr,...
9839 with fprintf_unfiltered (gdb_stderr,....
9840 * remote-es.c: Likewise.
9841 * remote-os9k.c: Likewise.
9842 * remote-st.c: Likewise.
9843
2f2f1ad1
AS
98442002-04-28 Andreas Schwab <schwab@suse.de>
9845
9846 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9847 linux-proc.o and gcore.o.
9848
b6779aa2
AC
98492002-04-26 Michal Ludvig <mludvig@suse.cz>
9850
9851 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9852 code without frame pointers.
9853
7e57f5f4
AC
98542002-04-26 Andrew Cagney <ac131313@redhat.com>
9855
9856 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9857 ON_STACK is needed.
9858
2ceb85d0
BE
98592002-04-26 Ben Elliston <bje@redhat.com>
9860
9861 * target.c (do_xfer_memory): Correct reference to the new option
9862 "trust-readonly-sections".
9863
f5f8a009
EZ
98642002-04-26 Elena Zannoni <ezannoni@redhat.com>
9865
9866 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9867 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9868 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9869 vectors.
9870 (read_array_type): Record the fact that this array type is really a
9871 vector (i.e. are passed in by value).
9872
5868c862
JT
98732002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9874
9875 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9876 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9877 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9878 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9879 * alpha-linux-tdep.c: Include frame.h.
9880 (alpha_linux_sigcontext_addr): New function.
9881 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9882 alpha_linux_sigcontext_addr.
9883 * alpha-osf1-tdep.c: Include gdbcore.h.
9884 (alpha_osf1_sigcontext_addr): New function.
9885 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9886 alpha_osf1_sigcontext_addr.
9887 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9888 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9889
bfb01f37
AC
98902002-04-26 Andrew Cagney <ac131313@redhat.com>
9891
361d1df0 9892 * stack.c (selected_frame_level):
bfb01f37
AC
9893 (select_frame): Do not set selected_frame_level.
9894 * frame.h (selected_frame_level): Delete declaration.
9895
15813d3f
AC
98962002-04-26 Andrew Cagney <ac131313@redhat.com>
9897
9898 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9899 convert_from_func_ptr-addr when AIX / PowerOpen.
9900
6096c27a
AC
99012002-04-25 Andrew Cagney <ac131313@redhat.com>
9902
9903 * valops.c (hand_function_call): Call
9904 generic_save_call_dummy_addr.
9905 * frame.h (generic_save_call_dummy_addr): Declare.
9906 * blockframe.c (struct dummy_frame): Add fields call_lo and
9907 call_hi.
9908 (generic_find_dummy_frame): Check for PC in range call_lo to
9909 call_hi instead of entry_point_address.
9910 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9911 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9912 (generic_save_call_dummy_addr): New function.
9913
f510d44e
DM
99142002-04-24 David S. Miller <davem@redhat.com>
9915
9916 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9917 sparc_skip_prologue.
9918 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9919 information to find prologue when possible.
9920 (sparc_prologue_frameless_p): Call examine_prologue directly.
9921 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9922 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9923 second argument.
9924 (SKIP_PROLOGUE): Likewise.
9925
15d72a92
JT
99262002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9927
9928 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9929 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9930 indicate that the condition it was testing is always true.
9931 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9932 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9933 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9934
accc6d1f
JT
99352002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9936
9937 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9938 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9939 tdep->jb_pc and tdep->jb_elt_size.
9940 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9941 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9942 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9943 * alpha-nat.c (get_longjmp_target): Remove.
9944 (JB_ELEMENT_SIZE): Ditto.
9945 (JB_PC): Ditto.
9946 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9947 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9948 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9949 to alpha_get_longjmp_target.
9950 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9951 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9952 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9953
1bfdc549
AC
99542002-04-25 Andrew Cagney <ac131313@redhat.com>
9955
9956 * README: Update to GDB 5.2.
9957
1bd316f0
AC
99582002-04-25 Andrew Cagney <ac131313@redhat.com>
9959
9960 * gdbarch.sh (LC_ALL): Set to `c'.
9961
2e5ff58c
TR
99622002-04-25 Theodore A. Roth <troth@verinet.com>
9963
9964 * avr-tdep.c: Ran through gdb_indent.sh.
9965
e33ce519
TR
99662002-04-25 Theodore A. Roth <troth@verinet.com>
9967
9968 * MAINTAINERS: Add myself as AVR maintainer.
9969 * NEWS: Note new target avr.
9970
8818c391
TR
99712002-04-25 Theodore A. Roth <troth@verinet.com>
9972
9973 * Makefile.in: Add support for AVR target.
9974 * configure.tgt: Add support for AVR target.
9975 * avr-tdep.c: New file
9976 * config/avr/avr.mt: New file.
9977
79509c2d
TR
99782002-04-25 Theodore A. Roth <troth@verinet.com>
9979
9980 * MAINTAINERS: Add myself to write-after-approval.
9981
dac8068e
PM
99822002-04-24 Pierre Muller <ics.u-strasbg.fr>
9983
9984 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9985 with fprintf_unfiltered (gdb_stderr,....
9986
25bf3106
PM
99872002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9988
9989 Fix PR gdb/508.
9990 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9991
24467a86
PM
99922002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9993
9994 * p-exp.y: Also use new prev_lexptr variable
9995 to improve error reporting. Based on Michael Snyder
9996 2002-04-24 dated patch to c-exp.y.
9997
95b80706
JT
99982002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9999
10000 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10001 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10002 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10003 to 0.
10004 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10005 and struct value.
10006 (FUNCTION_START_OFFSET): Remove.
10007 (BREAKPOINT): Ditto.
10008
e90cc612
JT
100092002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10010
10011 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10012 * NEWS: Ditto.
10013
6c72f9f9
JT
100142002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10015
10016 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10017 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10018 alpha_linux_pc_in_sigtramp.
10019 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10020 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10021 alpha_osf1_pc_in_sigtramp.
10022 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10023 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10024 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10025 alphafbsd_pc_in_sigtramp.
10026 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10027 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10028 alphanbsd_pc_in_sigtramp.
10029 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10030 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10031
5e4f3379
JT
100322002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10033
10034 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10035
da8ca43d
JT
100362002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10037
10038 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10039 alphanbsd-tdep.c.
10040 (alphanbsd-nat.o): New dependency list.
10041 (alphanbsd-tdep.o): Ditto.
10042 * NEWS: Note new native NetBSD/alpha configuration.
10043 * alphanbsd-nat.c: New file.
10044 * alphanbsd-tdep.c: Ditto.
10045 * configure.host (alpha*-*-netbsd*): New host.
10046 * configure.tgt (alpha*-*-netbsd*): New target.
10047 * config/alpha/nbsd.mh: New file.
10048 * config/alpha/nbsd.mt: Ditto.
10049 * config/alpha/nm-nbsd.h: Ditto.
10050 * config/alpha/tm-nbsd.h: Ditto.
10051
36a6271d
JT
100522002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10053
10054 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10055 (alpha-osf1-tdep.o): New dependency list.
10056 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10057 and skip_sigtramp_frame members.
10058 * alpha-linux-tdep.c: Include gdbcore.h.
10059 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10060 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10061 * alpha-osf1-tdep.c: New file.
10062 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10063 alpha-osf1-dep.c.
10064 (alpha_frame_past_sigtramp_frame): New function.
10065 (alpha_dynamic_sigtramp_offset): Ditto.
10066 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10067 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10068 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10069 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10070 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10071 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10072 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10073 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10074 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10075 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10076 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10077 to find_solib_trampoline_target.
10078 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10079 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10080 (SKIP_TRAMPOLINE_CODE): Remove.
10081 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10082 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10083 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10084 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10085 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10086 (PROC_SIGTRAMP_MAGIC): Ditto.
10087 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10088 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10089 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10090 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10091 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10092
2f4bc57b
JT
100932002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10094
10095 * NEWS: Note that Alpha targets are now multi-arch.
10096
665132f9
MS
100972002-04-24 Michael Snyder <msnyder@redhat.com>
10098
10099 * parser-defs.h (prev_lexptr): New external variable.
10100 * parse.c (parse_exp_1): Set prev_lexptr to null before
10101 calling the language-specific parser.
10102 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10103 (yyerror): Use prev_lexptr in error reporting.
10104
32872fa7
DJ
101052002-04-24 Daniel Jacobowitz <drow@mvista.com>
10106
10107 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10108 * gregset.h: If FILL_FPXREGSET is defined, provide
10109 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10110 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10111 is defined, call fill_fpxregset.
10112
57e76fac
MS
101132002-04-24 Roland McGrath <roland@frob.com>
10114
10115 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10116 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10117 (supply_gregset, supply_fpregset): New functions.
10118
10119 * gnu-nat.c (gnu_find_memory_regions): New function.
10120 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10121 (gnu_xfer_memory): Add a cast.
10122
f43845b3
MS
101232002-04-24 Michael Snyder <msnyder@redhat.com>
10124
361d1df0 10125 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
10126 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10127 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 10128 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
10129 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10130 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10131
a0abec03
AC
10132Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10133
10134 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10135 NUM_PSEUDO_REGS can be used.
10136
d7bd68ca
AC
101372002-04-24 Andrew Cagney <ac131313@redhat.com>
10138
10139 * arch-utils.h: Update copyright.
10140
10141 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10142 * gdbarch.h, gdbarch.c: Re-generate.
10143
10144 * inferior.h (IN_SIGTRAMP): Delete definition.
10145 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10146 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10147
10148 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10149 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10150 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10151 (find_proc_framesize): Ditto.
10152 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10153 (alpha_init_extra_frame_info): Ditto.
10154 * infrun.c (handle_inferior_event): Ditto.
10155 (handle_inferior_event): Ditto.
10156 (check_sigtramp2): Ditto.
10157 * blockframe.c (create_new_frame): Ditto.
10158 (get_prev_frame): Ditto.
10159 * ppc-linux-tdep.c: Update comments.
10160 * i386-linux-tdep.c: Update comments.
10161 * breakpoint.c (bpstat_what): Update comment.
10162
4867e41e
DM
101632002-04-24 David S. Miller <davem@redhat.com>
10164
21d83aa5
DM
10165 * i960-tdep.c (register_in_window_p): New function.
10166 (i960_find_saved_register): Use it instead of
10167 REGISTER_IN_WINDOW_P.
10168 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10169
4867e41e
DM
10170 * symtab.h (find_stab_function_addr): Kill extern.
10171 * minsyms.c (find_stab_function_addr): Remove from here...
10172 * dbxread.c: ... to here, and mark it static.
10173
69cdf6a2
DM
101742002-04-20 David S. Miller <davem@redhat.com>
10175
10176 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10177 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10178
5a595886
DM
101792002-04-21 David S. Miller <davem@redhat.com>
10180
10181 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10182 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10183 (vx_write_register): Likewise.
10184
1da1a192
JB
101852002-04-23 J. Brobecker <brobecker@gnat.com>
10186
10187 * source.c (is_regular_file): New function.
10188 (openp): Check wether file to open is a regular file
10189 to avoid opening directories.
10190
baa6f10b
JT
101912002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10192
10193 * findvar.c (extract_signed_integer): Cast printf argument
10194 to suppress format warning.
10195 (extract_unsigned_integer): Likewise.
10196 * infcmd.c (registers_info): Likewise.
10197 * top.c (get_prompt_1): Likewise.
10198 * valops.c (value_assign): Likewise.
10199 * valprint.c (print_decimal): Likewise.
10200
b2c4da81
L
102012002-04-22 H.J. Lu (hjl@gnu.org)
10202
10203 * c-exp.y (typebase): Support
361d1df0 10204
b2c4da81
L
10205 [long|long long|short] [signed|unsigned] [int|]
10206
10207 and
10208
10209 signed [long|long long|short] int
10210
f267bd6a
JT
102112002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10212
10213 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10214 and vax-tdep.h.
10215 * vax-tdep.h: New file.
10216 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10217 Make several routines static.
10218 (vax_get_saved_register): New function.
10219 (vax_gdbarch_init): New function.
10220 (_initialize_vax_tdep): Register vax_gdbarch_init.
10221 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10222 Remove macros now under the control of gdbarch.
10223
da3c6d4a
MS
102242002-04-22 Michael Snyder <msnyder@redhat.com>
10225
11d3b27d
MS
10226 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10227 Some whitespace and coding standards tweaks.
da3c6d4a 10228
a33f7558
JT
102292002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10230
10231 * vax-tdep.c: Include regcache.h.
10232 (vax_call_dummy_words): New.
10233 (sizeof_vax_call_dummy_words): New.
10234 (vax_fix_call_dummy): New function.
10235 (vax_saved_pc_after_call): Ditto.
10236 * config/vax/tm-vax.h: Don't include regcache.h.
10237 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10238 (CALL_DUMMY): Remove.
10239 (CALL_DUMMY_WORDS): Define.
10240 (SIZEOF_CALL_DUMMY_WORDS): Define.
10241 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10242
47a73475
MS
102432002-04-18 Michael Snyder <msnyder@redhat.com>
10244
10245 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10246
52efde73
JT
102472002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10248
10249 * vax-tdep.c (vax_frame_chain): New function.
10250 (vax_push_dummy_frame): Ditto.
10251 (vax_pop_frame): Ditto.
10252 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10253 (FRAMELESS_FUNCTION_INVOCATION): Use
10254 generic_frameless_function_invocation_not.
10255 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10256 (POP_FRAME): Use vax_pop_frame.
10257
ea74468c
JT
102582002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10259
10260 * vax-tdep.c (vax_store_struct_return): New function.
10261 (vax_extract_return_value): Ditto.
10262 (vax_store_return_value): Ditto.
10263 (vax_extract_struct_value_address): Ditto.
10264 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10265 vax_store_struct_return.
10266 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10267 (STORE_RETURN_VALUE): Use vax_store_return_value.
10268 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10269
5516aa92
JT
102702002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10271
10272 * vax-tdep.c (vax_frame_saved_pc): New function.
10273 (vax_frame_args_address_correct): Ditto.
10274 (vax_frame_args_address): Ditto.
10275 (vax_frame_locals_address): Ditto.
10276 (vax_frame_num_args): Move code to be in proximity to
10277 other frame-related functions.
10278 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10279 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10280 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10281 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10282 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10283
36af0b35
L
102842002-04-22 H.J. Lu (hjl@gnu.org)
10285
10286 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10287 includedir.
10288
ab62c900
JT
102892002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10290
10291 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10292 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10293 (FRAME_INIT_SAVED_REGS): New macro.
10294
7232b100
JT
102952002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10296
10297 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10298
b70d2aee
JT
102992002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10300
10301 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10302 where needed.
10303 (fetch_osf_core_registers): Likewise.
10304 (supply_gregset): Likewise.
10305
a0e8a2d1 103062002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 10307
a0e8a2d1
JB
10308 * symfile.h (get_section_index): Define.
10309 * symfile.c (get_section_index): New function.
10310 * mdebugread.c (SC_IS_SBSS): New macro.
10311 (SC_IS_BSS): Return true for the scBss storage class only, as
10312 the scSBss storage class refers to the .sbss section.
10313 (parse_partial_symbols): Discard the symbols which associated
10314 section does not exist.
10315 Make sure to use the .sbss section index for symbols which
10316 storage class is scBss, rather than using the .bss section index.
10317
51eb8b08
JT
103182002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10319
10320 * vax-tdep.c: Update copyright years.
10321 (vax_register_name): New function.
10322 (vax_register_byte): Ditto.
10323 (vax_register_raw_size): Ditto.
10324 (vax_register_virtual_size): Ditto.
10325 (vax_register_virtual_type): Ditto.
10326 * config/vax/tm-vax.h: Update copyright years.
10327 (REGISTER_NAMES): Remove.
10328 (REGISTER_NAME): Define.
10329 (REGISTER_BYTE): Use vax_register_byte.
10330 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10331 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10332 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10333
6cc1c0a8
AC
103342002-04-21 Andrew Cagney <ac131313@redhat.com>
10335
10336 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10337 declaration
10338 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10339
9319a2fe
DM
103402002-04-21 David S. Miller <davem@redhat.com>
10341
10342 * arch-utils.c (generic_prologue_frameless_p): Kill
10343 SKIP_PROLOGUE_FRAMELESS_P code.
10344 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10345 references.
10346 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10347 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10348 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10349 references.
10350 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10351 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10352 (sparc_gdbarch_init): Pass it to
10353 set_gdbarch_prologue_frameless_p.
a0e8a2d1 10354
e9ed6d01
JT
103552002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10356
10357 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10358 (alphabsd-nat.o): New dependency list.
10359
36012033
JT
103602002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10361
10362 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10363 alphafbsd-tdep.c.
10364 (alpha-linux-tdep.o): New dependency list.
10365 (alphafbsd-tdep.o): Likewise.
10366
3379287a
JT
103672002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10368
10369 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10370 to here...
10371 * alpha-tdep.c: ...from here.
10372 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10373
4bcbd6cb
JT
103742002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10375
10376 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10377 prototype from here...
10378 * alpha-tdep.h: ...to here.
10379
b31da25e
AC
103802002-04-21 Andrew Cagney <ac131313@redhat.com>
10381
10382 * frame.h (selected_frame_level): Document as deprecated.
10383 (frame_relative_level): Declare.
10384 * stack.c (frame_relative_level): New function.
10385 (selected_frame_level): Document as deprecated.
10386 (select_frame): Do not set the selected_frame_level.
10387
10388 * stack.c (frame_info, record_selected_frame): Update.
10389 (frame_command, current_frame_command): Update.
10390 (up_silently_base, up_command, down_silently_base): Update.
10391 (down_command): Update.
10392 * inflow.c (kill_command): Update.
10393 * tracepoint.c (finish_tfind_command): Update.
10394 * corelow.c (core_open): Update.
10395 * thread.c (info_threads_command): Update.
10396 (do_captured_thread_select): Update.
10397 * infcmd.c (finish_command): Update.
10398 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10399
9c1d6fe5
JT
104002002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10401
10402 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10403
ab89facf
AC
104042002-04-21 Andrew Cagney <ac131313@redhat.com>
10405
10406 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10407 type const.
10408
82a4efa1
JT
104092002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10410
10411 * alphafbsd-tdep.c: Update copyright years. Include
10412 alpha-tdep.h.
10413 (alphafbsd_use_struct_convention): Make static.
10414 (alphafbsd_init_abi): New function.
10415 (_initialize_alphafbsd_tdep): New function.
10416 * config/alpha/tm-fbsd.h: Update copyright years.
10417 (USE_STRUCT_CONVENTION): Remove.
10418
44dffaac
JT
104192002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10420
10421 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10422 an Alpha ABI variant.
10423 (alpha_abi_handler_list): Declare.
10424 (alpha_gdbarch_register_os_abi): New function.
10425 (alpha_gdbarch_init): Give registered ABI variant handlers a
10426 chance to tweak the gdbarch once we have set up defaults.
10427 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10428
65585be4
JT
104292002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10430
10431 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10432 to standard_coerce_float_to_double.
10433 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10434
d9b023cc
JT
104352002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10436
10437 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10438 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10439 from gdbarch_tdep rather than a constant.
10440 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10441 the default text address for all Alpha Unix ABIs.
10442 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10443 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10444
dc129d82
JT
104452002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10446
10447 * alpha-tdep.h: New file. Includes several Alpha target constants
10448 taken from...
10449 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10450 let gdbarch deal with.
10451 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10452 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10453 to dependency list.
10454 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10455 Alpha target register names.
10456 * alphabsd-nat.c: Likewise.
10457 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10458 Alpha target register names. Make serveral routines static.
10459 (alpha_get_saved_register): New function.
10460 (alpha_abi_names): New.
10461 (process_note_abi_tag_sections): New function.
10462 (get_elfosabi): New function.
10463 (alpha_gdbarch_init): New function.
10464 (alpha_dump_tdep): New function.
10465 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10466
d49d1e0a
AC
104672002-04-21 Andrew Cagney <ac131313@redhat.com>
10468
10469 * frame.c (find_saved_register): Delete #ifdef
10470 HAVE_REGISTER_WINDOWS code.
10471 * config/sparc/tm-sparc.h: Update comments.
10472 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10473
92e8c9ed
AC
104742002-04-21 Andrew Cagney <ac131313@redhat.com>
10475
10476 * i960-tdep.c (i960_find_saved_register): New function.
10477 (i960_get_saved_register): New function.
10478 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10479 (i960_get_saved_register): Declare.
10480 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10481
e1925118
DM
104822002-04-20 David S. Miller <davem@redhat.com>
10483
10484 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10485
29673b29
AC
104862002-04-20 Andrew Cagney <ac131313@redhat.com>
10487
10488 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10489 instead of NUM_PSEUDO_REGS.
10490
6c86dcd5
DM
104912002-04-20 David S. Miller <davem@redhat.com>
10492
10493 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10494 GDB_MULTI_ARCH_PARTIAL
10495 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10496 define, let tm-sp64.h do it.
10497
aa40ec90
JT
104982002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10499
10500 * frame.c (find_saved_register): Avoid a NULL pointer
10501 dereference and actually walk the frame list.
10502
0f79675b
AC
105032002-04-20 Andrew Cagney <ac131313@redhat.com>
10504
10505 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10506 sorted in most most-recent-used order. Document.
10507 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10508
f91305dd 105092002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10510
10511 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10512 instead of ->prev.
10513 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10514 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10515 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10516 instead of ->prev.
10517
73d322b1
EZ
105182002-04-19 Elena Zannoni <ezannoni@redhat.com>
10519
10520 Fix PR gdb/471.
10521 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10522 (build_builtin_type_vec128): Ditto.
10523 (append_composite_type_field): Fix calculation of type length in
10524 union case.
10525
ccd9a834
EZ
105262002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10527
10528 * config/djgpp/README: Update.
10529
10530 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10531 compiler warnings.
10532
a57f9e49
JT
105332002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10534
10535 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10536 (alpha_setup_arbitrary_frame): ...to this.
10537 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10538 for alpha_setup_arbitrary_frame.
10539
f4f9705a
AC
105402002-04-18 Andrew Cagney <cagney@redhat.com>
10541
10542 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10543 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10544
f4f9705a
AC
10545 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10546 * target.h (memory_breakpoint_from_pc): Update declaration.
10547 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10548
10549 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10550 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10551 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10552 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10553 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10554 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10555 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10556 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10557 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10558 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10559 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10560 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10561
10562 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10563 const pointer.
10564 * monitor.c (monitor_insert_breakpoint): Ditto.
10565 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10566
10567 * config/mcore/tm-mcore.h: Update copyright.
10568 * mem-break.c: Ditto.
10569 * xstormy16-tdep.c: Ditto.
10570
29f319b8
PM
105712002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10572
10573 * p-exp.y: Add precedence rule for '^' token.
10574 This removes the shift/reduce conflicts.
10575 Remove the comment concerning these shift/reduce conflicts.
10576
ebeac11a
EZ
105772002-04-18 Elena Zannoni <ezannoni@redhat.com>
10578
10579 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10580 (registers_powerpc_nofp): New register set for processors
10581 without floating point unit.
10582
27c31547
DM
105832002-04-18 David S. Miller <davem@redhat.com>
10584
10585 * MAINTAINERS: Add myself to write-after-approval.
10586
47a73475
MS
105872002-04-17 Michael Snyder <msnyder@redhat.com>
10588
10589 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10590
953836b2
AC
105912002-04-17 Andrew Cagney <ac131313@redhat.com>
10592
10593 * rs6000-tdep.c (frame_initial_stack_address): Use
10594 frame_register_read to read the alloca_reg.
10595
8b0d4340
AC
105962002-04-17 Andrew Cagney <ac131313@redhat.com>
10597
10598 * frame.c (find_saved_register): Find saved registers in the next
10599 not prev frame.
10600 Fix PR gdb/365.
10601
d8864532
AC
106022002-04-17 Andrew Cagney <ac131313@redhat.com>
10603
10604 * gdbarch.sh (LANG): Set to ``c''.
10605
36cc83a3 106062002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10607
36cc83a3 10608 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10609
2f4150cc 106102002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10611
10612 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10613 Update copyright.
10614
628703c6 10615 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10616 Also fix PR gdb/391.
361d1df0 10617
56157b4a
AC
106182002-04-14 Andrew Cagney <ac131313@redhat.com>
10619
10620 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10621 * aclocal.m4, configure: Re-generate.
10622 Fix PR gdb/391.
361d1df0 10623
6d1e3329
EZ
106242002-04-14 Elena Zannoni <ezannoni@redhat.com>
10625
10626 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10627 instead of tm_print_insn.
10628
cb06fa07
EZ
106292002-04-14 Elena Zannoni <ezannoni@redhat.com>
10630
10631 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10632
f208ba17
AC
106332002-04-14 Andrew Cagney <ac131313@redhat.com>
10634
10635 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10636 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10637 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10638
20f01a46
DH
106392002-04-12 Don Howard <dhoward@redhat.com>
10640
10641 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10642 max_user_call_depth.
10643 (init_cmd_lists): Initialize the new value;
10644 * cli/cli-script.c (execute_user_command): Limit the call depth of
10645 user defined commands. This avoids a core-dump when user commands
10646 are infinitly recursive.
10647
a88376a3
KB
106482002-04-12 Kevin Buettner <kevinb@redhat.com>
10649
10650 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10651 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10652 from tdep struct instead of DEFAULT_LR_SAVE.
10653 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10654 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10655 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10656
f2172603
MS
106572002-04-12 Michael Snyder <msnyder@redhat.com>
10658
694f61fb 10659 * Remote.c: Spelling fix.
20fe79c8
MS
10660 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10661 If no symbol found for "sbrk", try "_sbrk".
10662 (make_output_phdrs): Use bfd_section_name.
10663 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10664 * eval.c: Indentation fix-ups.
169a7369
MS
10665 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10666 in case it gets applied to an address that is already
10667 in the instruction space.
de74f71f
MS
10668 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10669 * symfile.c: Fix indentation, long lines.
f2172603
MS
10670 * source.c: White space fix-up.
10671
cda5a58a
AC
106722002-04-12 Andrew Cagney <cagney@redhat.com>
10673
10674 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10675 * frame.c (frame_register_read): New function. Return non-zero on
10676 success.
10677 (read_relative_register_raw_bytes_for_frame): Delete.
10678 (read_relative_register_raw_bytes): Delete.
10679 * frame.h (frame_register_read): Declare.
10680 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10681 * sh-tdep.c: Ditto.
10682 * infcmd.c (do_registers_info): Ditto.
10683 * hppa-tdep.c: Ditto.
10684 * rs6000-tdep.c: Ditto.
10685 * h8500-tdep.c: Ditto.
10686 * mips-tdep.c: Ditto.
10687 * h8300-tdep.c: Ditto.
10688 * z8k-tdep.c: Ditto.
10689
2ea5f656
KB
106902002-04-12 Kevin Buettner <kevinb@redhat.com>
10691
10692 From Jimi X <jimix@watson.ibm.com>:
10693 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10694 64-bit SysV ABI.
10695
27b15785
KB
106962002-04-12 Kevin Buettner <kevinb@redhat.com>
10697
10698 From Jimi X <jimix@watson.ibm.com>:
10699 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10700 bfd info.
10701
5d57ee30
KB
107022002-04-12 Kevin Buettner <kevinb@redhat.com>
10703
10704 From Jimi X <jimix@watson.ibm.com>:
10705 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10706 register sets for these processor variants.
10707
bc1e36ca
DJ
107082002-04-11 Daniel Jacobowitz <drow@mvista.com>
10709
bc1e36ca
DJ
10710 * regformats/reg-ppc.dat: Support FPSCR.
10711
e3f36dbd
KB
107122002-04-11 Kevin Buettner <kevinb@redhat.com>
10713
10714 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10715 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10716 Add fpscr as an invalid/unfetchable register.
10717 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10718 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10719 (fill_fpregset): Add support for register fpscr.
10720 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10721 (fill_gregset): Account for the fact that register ``mq'' might
10722 not exist.
10723 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10724 (registers_power): Add fpscr to register set at slot 71.
10725 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10726 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10727
943c9c25
MS
107282002-04-11 Michael Snyder <msnyder@redhat.com>
10729
10730 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10731 * configure: Regenerate.
10732 * config.in: Regenerate.
10733 * acconfig.h: Add define for _SYSCALL32.
10734 * core-sol2.c: Remove #define _SYSCALL32.
10735 * solib-legacy.c: Remove #define _SYSCALL32.
10736
d8c0a2e7
AC
107372002-04-10 Andrew Cagney <ac131313@redhat.com>
10738
10739 * stack.c (select_frame): Cleanup internal error message, do not
10740 use %p.
10741
7cc19214
AC
107422002-04-10 Andrew Cagney <ac131313@redhat.com>
10743
10744 * stack.c (select_frame): Check that selected_frame and the
10745 specified level are as expected.
10746 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10747 Update copyright.
10748 * frame.h (struct frame_info): Add field `level'. Update
10749 copyright.
10750 Work-in-progress PR gdb/464.
10751
67a2b77e
AC
107522002-04-10 Andrew Cagney <ac131313@redhat.com>
10753
10754 * maint.c (maint_print_section_info): Rename print_section_info.
10755 (print_bfd_section_info, print_objfile_section_info): Update.
10756 * inferior.h (struct gdbarch): Add opaque declaration.
10757 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10758 * gdbarch.h: Regenerate.
10759
8cfda98c
ML
107602002-04-10 Michal Ludvig <mludvig@suse.cz>
10761
10762 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10763 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10764 (kernel_u_size): Added.
10765 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10766 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10767
ca439ad2 107682002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10769
ca439ad2
JI
10770 * valarith.c (find_size_for_pointer_math): New function, either returns
10771 the size for a pointer's target, returns 1 for void *, or errors for
10772 incomplete types.
10773 (value_add, value_sub): use find_size_for_pointer_math.
10774
2f2893d9
DJ
107752002-04-09 Daniel Jacobowitz <drow@mvista.com>
10776
10777 * linux-low.c (linux_look_up_symbols): New hook.
10778 (linux_target_ops): Add linux_look_up_symbols.
10779 * remote-utils.c (decode_address): New function.
10780 (look_up_one_symbol): New function.
10781 * server.c (handle_query): Call target look_up_symbols hook.
10782 * server.h (look_up_one_symbol): Add prototype.
10783 * target.h (struct target_ops): Add look_up_symbols hook.
10784
96cb11df
AC
107852002-04-09 Andrew Cagney <ac131313@redhat.com>
10786
10787 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10788 override FP_REGNUM with frame->fp. Update copyright.
10789 * parse.c (num_std_regs, std_regs): Delete.
10790 (target_map_name_to_register): Do not search std_regs. Update
10791 function description.
10792 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10793 declarations. Update copyright.
10794 Fix PR gdb/251.
361d1df0 10795
97658e92
DJ
107962002-04-09 Daniel Jacobowitz <drow@mvista.com>
10797
10798 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10799 after the last symbol in a block.
10800
6044e3eb
PM
108012002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10802
10803 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10804 is non zero as a found symbol.
10805
0406ec40
AC
108062002-04-08 Andrew Cagney <ac131313@redhat.com>
10807
10808 * findvar.c: Include "builtin-regs.h".
10809 (value_of_register): Call value_of_builtin_reg when applicable.
10810 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10811 (target_map_name_to_register): Call
10812 builtin_reg_map_name_to_regnum.
10813 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10814 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10815 (builtin_regs_h): Define.
10816 (builtin-regs.o): New target.
10817 (findvar.o): Add $(builtin_regs_h).
10818 * builtin-regs.c, builtin-regs.h: New files.
10819 * std-regs.c: New file.
10820 Partial fix for PR gdb/251.
10821
56a6dfb9
KB
108222002-04-08 Kevin Buettner <kevinb@redhat.com>
10823
10824 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10825 it's no longer required.
10826
3a808432
AC
108272002-04-08 Andrew Cagney <ac131313@redhat.com>
10828
10829 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10830
7c40d541
KB
108312002-04-08 Kevin Buettner <kevinb@redhat.com>
10832
10833 From Jimi X <jimix@watson.ibm.com>:
10834 * rs6000-tdep.c (rs6000_software_single_step): Use
10835 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10836 and size. Use target_insert_breakpoint() and
10837 target_remove_breakpoint() to insert and remove breakpoints
10838 instead of explicit memory reads and writes.
10839
cc9836a8
KB
108402002-04-08 Kevin Buettner <kevinb@redhat.com>
10841
10842 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10843 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10844 ELF_OBJECT_FORMAT ifdef.
10845
7495d1dc
KB
108462002-04-08 Kevin Buettner <kevinb@redhat.com>
10847
10848 From Jimi X <jimix@watson.ibm.com>:
10849 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10850
4288e836
KB
108512002-04-08 Kevin Buettner <kevinb@redhat.com>
10852
10853 From Jimi X <jimix@watson.ibm.com>:
10854 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10855 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10856
a4e4e501
MK
108572002-04-07 Mark Kettenis <kettenis@gnu.org>
10858
10859 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10860 s/asprintf/xasprintf/.
10861 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10862
006defba
AC
108632002-04-07 Andrew Cagney <ac131313@redhat.com>
10864
10865 I believe Jeff Law denies responsability for this one:
10866 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10867 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10868 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10869 Work-around for PR gdb/366.
10870
7aa83cac
EZ
108712002-04-07 Elena Zannoni <ezannoni@redhat.com>
10872
10873 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10874 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10875 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10876
cf1fcca1
EZ
108772002-04-07 Elena Zannoni <ezannoni@redhat.com>
10878
10879 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10880 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10881 information.
10882
3f289e6f
AC
108832002-04-07 Andrew Cagney <ac131313@redhat.com>
10884
10885 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10886 maintainer.
10887
129188f6
AC
108882002-04-07 Andrew Cagney <ac131313@redhat.com>
10889
10890 * README (Reporting Bugs in GDB): Document the bug web page as the
10891 prefered way of submitting bugs.
10892 Fix PR gdb/402.
10893
1200cd6e
AC
108942002-04-06 Andrew Cagney <ac131313@redhat.com>
10895
10896 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10897 -1. Update comment.
10898 * gdbarch.h, gdbarch.c: Re-generate.
10899
2853c33c
AS
109002002-04-07 Andreas Schwab <schwab@suse.de>
10901
10902 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10903 buffer to regcache_collect.
10904
c2169756
AC
109052002-04-06 Andrew Cagney <ac131313@redhat.com>
10906
10907 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10908 * gdbarch.c, gdbarch.h: Re-generate.
10909
25f1b008
AC
109102002-04-06 Andrew Cagney <ac131313@redhat.com>
10911
10912 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10913 declaration. Fix -Werror.
10914
59263426
DJ
109152002-04-05 Daniel Jacobowitz <drow@mvista.com>
10916
10917 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10918 * gdbarch.c: Regenerate.
10919
f5db4da3
MS
109202002-04-05 Michael Snyder <msnyder@redhat.com>
10921
80f8a6eb
MS
10922 * breakpoint.c (clear_command): Rewrite middle section to
10923 combine two loops with identical control conditions.
10924 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10925 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10926
ad3dcc5c
L
109272002-04-05 H.J. Lu (hjl@gnu.org)
10928
10929 * solib-svr4.c (bkpt_names): Add "__start".
10930
f32e7a74
AC
109312002-04-04 Andrew Cagney <ac131313@redhat.com>
10932
10933 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10934 as test for 64 bit target.
10935
8227c0ff
AC
109362002-04-05 Andrew Cagney <ac131313@redhat.com>
10937
10938 * h8500-tdep.c (h8500_write_fp): Delete function.
10939 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10940 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10941 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10942 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10943 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10944 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10945 (s390_write_fp):
10946 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10947 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10948 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10949 (d10v_write_fp): Delete function.
10950 * inferior.h (write_fp, generic_target_write_fp): Delete
10951 declarations.
10952 * regcache.c (generic_target_write_fp): Delete function.
10953 (write_fp): Delete function.
10954 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10955 * gdbarch.h, gdbarch.c: Regenerate.
10956 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10957 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10958 (sparc64_write_fp): Delete declaration.
10959 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10960 (h8500_write_fp): Delete declaration.
10961
2757dd86
AC
109622002-04-04 Andrew Cagney <ac131313@redhat.com>
10963
10964 * sparc-tdep.c (sparc64_write_fp): Delete.
10965 (sparc_push_dummy_frame): Replace write_fp call with code to store
10966 the FP directly.
10967 (sparc_gdbarch_init): Do not initialize write_fp.
10968
c69255e1
KB
109692002-04-05 Kevin Buettner <kevinb@redhat.com>
10970
10971 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10972 clause.
10973
ae767bfb
JB
109742002-03-29 Jim Blandy <jimb@redhat.com>
10975
10976 * stack.c (get_selected_block): Add new argument `addr_in_block',
10977 used to return the exact code address we used to select the block,
10978 not just the block.
10979 * blockframe.c (get_frame_block, get_current_block): Same.
10980 * frame.h (get_frame_block, get_current_block,
10981 get_selected_block): Update declarations.
10982 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10983 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10984
84d2ac95
MS
109852002-04-05 Michael Snyder <msnyder@redhat.com>
10986
10987 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10988 warning message.
10989
596aa3bf
JB
109902002-04-05 J. Brobecker <brobecker@gnat.com>
10991
10992 * utils.c (xfullpath): New function.
10993 * defs.h (xfullpath): Add declaration.
10994 * source.c (openp): Use xfullpath in place of gdb_realpath to
10995 avoid resolving the basename part of filenames when the
10996 associated file is a symbolic link. This fixes a potential
10997 inconsistency between the filenames known to GDB and the
10998 filenames it prints in the annotations.
10999 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11000 to be able to match a filename with either the real filename, or
11001 the name of any symbolic link to this file.
11002 (lookup_partial_symtab): Ditto.
11003
c02f5703
MS
110042002-04-04 Michael Snyder <msnyder@redhat.com>
11005
11006 * breakpoint.c: Add support for hardware breakpoints in overlays.
11007 (overlay_events_enabled): New state variable.
11008 (insert_breakpoints): Use overlay_events_enabled to decide
11009 whether to attempt to set a breakpoint at the overlay load addr.
11010 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11011 (remove_breakpoint): Use overlay_events_enabled to decide
11012 whether breakpoints need to be removed from overlay load addr.
11013 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11014 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 11015 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
11016 disable_overlay_breakpoints): Update overlay_events_enabled.
11017
5fb290d7
DJ
110182002-04-04 Daniel Jacobowitz <drow@mvista.com>
11019
11020 * dwarf2read.c (struct function_range): New.
11021 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11022 (check_cu_functions): New.
11023 (read_file_scope): Initialize global function lists.
11024 Call dwarf_decode_line after processing children.
11025 (read_func_scope): Add to global function list.
11026 (dwarf_decode_lines): Call check_cu_functions everywhere
11027 record_line is called. Call record_line with a linenumber
11028 of 0 to mark sequence ends.
11029
7b3fabf0
ML
110302002-04-04 Michal Ludvig <mludvig@suse.cz>
11031
361d1df0 11032 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
11033 change sync with glibc.
11034
bce58c09
JB
110352002-04-03 Jim Blandy <jimb@redhat.com>
11036
11037 * configure.in: Call AC_C_INLINE.
11038 * configure: Regenerated.
361d1df0 11039
2fccf04a
DJ
110402002-04-01 Daniel Jacobowitz <drow@mvista.com>
11041
11042 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11043 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11044
2d1bfe2e
MK
110452002-03-31 Mark Kettenis <kettenis@gnu.org>
11046
a5941fbf
MK
11047 * NEWS: Mention gcore support on FreeBSD/i386.
11048
a90cd31d
MK
11049 * fbsd-proc.c: New file.
11050 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11051 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11052
2d1bfe2e
MK
11053 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11054 while statement.
11055
9eb6e5a1
JB
110562002-03-29 Jim Blandy <jimb@redhat.com>
11057
11058 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11059 unescaped newlines in string literals, but newer ones don't. So
11060 escape them.
11061
f02df580
MS
110622002-03-26 Michael Snyder <msnyder@redhat.com>
11063 Andrew Cagney <cagney@redhat.com>
11064
361d1df0 11065 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
11066 restore file to memory.
11067 * cli/cli-dump.h: New file.
11068 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 11069 * NEWS: Mention new commands.
f02df580 11070
109f874e
MS
110712002-03-28 Michael Snyder <msnyder@redhat.com>
11072
11073 * symfile.c (symbol_file_add): Move test for null symbols to later.
11074
520f6ade
AC
110752002-03-27 Andrew Cagney <ac131313@redhat.com>
11076
11077 From veksler at il.ibm.com:
11078 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11079 the xstrduped original path.
11080 Fix PR gdb/417.
11081
d4654627
MS
110822002-03-27 Michael Snyder <msnyder@redhat.com>
11083
11084 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11085 * infcmd.c (_initialize_infcmd): Ditto.
11086 * language.c (_initialize_language): Ditto.
11087 * symfile.c (_initialize_symfile): Ditto.
11088 * top.c (_init_main): Ditto.
11089 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11090
6be8bc0c
EZ
110912002-03-27 Elena Zannoni <ezannoni@redhat.com>
11092
11093 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11094 vector registers handling.
11095 (skip_prologue): Handle new AltiVec instructions. Fill in new
11096 fields of frame data.
11097 (frame_get_saved_regs): Fill in information for AltiVec registers.
11098
12af6855
JB
110992002-03-27 Jim Blandy <jimb@redhat.com>
11100
11101 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11102 a function; leave this macro here to invoke that function.
11103 (symbol_init_mangled_name): Declaration for that function.
11104 * symtab.c (symbol_init_mangled_name): New function.
11105
dc672865
AC
111062002-03-27 Andrew Cagney <ac131313@redhat.com>
11107
11108 * valarith.c: Replace strerror with safe_strerror.
11109 * tracepoint.c: Ditto.
11110 * lin-lwp.c: Ditto.
11111 * go32-nat.c: Ditto.
11112 * inflow.c: Ditto.
11113 * gnu-nat.c: Ditto.
11114
d96429cd
AS
111152002-03-27 Andreas Schwab <schwab@suse.de>
11116
11117 * event-top.c (command_line_handler): Remove useless if.
11118
7e336ba1
AJ
111192002-03-27 Andreas Jaeger <aj@suse.de>
11120
11121 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11122 comment.
11123
de220d0f
ML
111242002-03-27 Michal Ludvig <mludvig@suse.cz>
11125
11126 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11127 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11128 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11129 (x86_64_linux_dr_get_status, supply_gregset),
11130 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11131 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11132 (x86_64_register_info_table): Add.
11133 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11134 (x86_64_register_raw_size, x86_64_register_virtual_type),
11135 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11136 general x86_64_register_info_table.
11137 (i386_gdbarch_init): gdbarch_register_bytes is now set
11138 dynamicaly during initialization.
11139 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11140 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 11141
0e98d0a7
DJ
111422002-03-27 Daniel Jacobowitz <drow@mvista.com>
11143
11144 * gdbserver/server.c (main): Call target_signal_to_host_p
11145 and target_signal_to_host on signals received from the remote.
11146 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11147 target_signal_from_host on signals sent to the remote.
11148 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11149 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11150
3130066b
DJ
111512002-03-27 Daniel Jacobowitz <drow@mvista.com>
11152
11153 * signals/signals.c: Include "server.h" in gdbserver build.
11154 (target_signal_from_name): Don't use STREQ.
11155 (_initialize_signals): Likewise. Don't include function in
11156 gdbserver build.
11157
9aedf4f4
DJ
111582002-03-27 Daniel Jacobowitz <drow@mvista.com>
11159
11160 * signals.c: Moved to...
11161 * signals/signals.c: Here.
7e336ba1 11162 * Makefile (signals.o): Update.
9aedf4f4 11163
3fa41cdb
JL
111642002-03-26 Jeff Law (law@redhat.com)
11165
11166 * somread.c (som_symtab_read): Remove some commented out code and
11167 updated related comments. Do not set the minimal symbol table to
11168 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11169 in a dynamic executable.
11170 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11171 where we are unable to find the minimal symbol for the given
11172 PC value.
11173
ee677e8d
MS
111742002-03-25 Jeff Law (law@redhat.com)
11175
11176 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11177
e76e1718
ML
111782002-03-25 Michal Ludvig <mludvig@suse.cz>
11179
11180 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11181
18a642a1
AC
111822002-03-23 Andrew Cagney <ac131313@redhat.com>
11183
11184 * command.h: Update copyright.
11185 (struct cmd_list_element): Replace definition with opaque
11186 declaration.
11187 (enum cmd_types): Document that it will eventually be moved to
11188 cli/cli-decode.h
11189 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11190 (MALLOCED_REPLACEMENT): Delete macro.
11191 * Makefile.in (cli_decode_h): Add $(command_h).
11192 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 11193 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
11194 * completer.c: Include "cli/cli-decode.h".
11195 * maint.c: Include "cli/cli-decode.h".
11196 * cli/cli-decode.h: Include "command.h".
11197 (enum command_class): Delete.
11198 (enum cmd_types): Comment out.
11199 (enum cmd_auto_boolean): Delete.
11200 (enum var_types): Delete.
11201
b2875cc0
AC
112022002-03-23 Andrew Cagney <ac131313@redhat.com>
11203
11204 * cli/cli-decode.c: Include "gdb_assert.h".
11205 (add_set_or_show_cmd): New static function.
11206 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11207 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11208 all fields, such as func, from the set command.
11209
3b45974e
AC
112102002-03-23 Andrew Cagney <ac131313@redhat.com>
11211
11212 * MAINTAINERS (sh-elf): Change warning flag to -w.
11213
823ca731
AC
112142002-03-23 Andrew Cagney <cagney@redhat.com>
11215
11216 * defs.h (error): Add printf format attribute.
11217 * thread-db.c (thread_from_lwp): Fix error format string.
11218 * stack.c (parse_frame_specification): Ditto.
11219 * cli/cli-decode.c (undef_cmd_error): Ditto.
11220 * scm-lang.c (scm_lookup_name): Ditto.
11221 * tracepoint.c (trace_error): Ditto.
11222 * remote-utils.c (usage): Ditto.
11223 * remote.c (compare_sections_command): Ditto.
11224 Fix PR gdb/328.
11225
0e101458
AC
112262002-03-22 Andrew Cagney <ac131313@redhat.com>
11227
11228 * gdbtypes.c (append_composite_type_field): New function.
11229 (init_composite_type): New function.
11230 * gdbtypes.h (append_composite_type_field): Declare.
11231 (init_composite_type): Ditto.
11232
8e0662df
EZ
112332002-03-22 Elena Zannoni <ezannoni@redhat.com>
11234
11235 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 11236 function.
8e0662df
EZ
11237 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11238 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11239 structure returning convention for SYSV ABI case, but not
11240 for GNU/Linux, FreeBSD, or NetBSD.
11241
3121eff0
DJ
112422002-03-22 Daniel Jacobowitz <drow@mvista.com>
11243
11244 * symtab.h (lookup_block_symbol): Add mangled_name argument
11245 to prototype.
11246
11247 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11248 with new mangled_name argument.
11249 * linespec.c (decode_line_1): Likewise.
11250 * valops (value_of_this): Likewise.
11251 * symtab.c (lookup_transparent_type): Likewise.
11252 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11253 (lookup_symbol): If we are given a mangled name, pass it down
11254 to lookup_symbol_aux.
11255 (lookup_block_symbol): If we are given a mangled name to check
11256 against, only return symbols which match it.
11257
349b409f
CF
112582002-03-22 Christopher Faylor <cgf@redhat.com>
11259
11260 * win32-nat.c (child_create_inferior): Check for proper shell to use
11261 here, in case the user changes it on the fly.
11262 (_initialize_inftarg): Remove shell path considerations.
11263
2a873819
EZ
112642002-03-21 Elena Zannoni <ezannoni@redhat.com>
11265
11266 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11267 for gdbarch_max_register_raw_size and max_register_virtual_size.
11268 Adjust copyright year.
11269
a1b9830c
DJ
112702002-03-21 Daniel Jacobowitz <drow@mvista.com>
11271
11272 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11273 in a function to cover the entire beginning of the function
11274 as well if it does not already.
11275
8b5790f2
TR
112762002-03-21 Tom Rix <trix@redhat.com>
11277
11278 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11279 (rs6000_ptrace64): Renamed from ptrace64.
11280
bdbe5747
MH
112812002-03-20 Martin M. Hunt <hunt@redhat.com>
11282
11283 * gdbserver/remote-utils.c (remote_open): Don't call
11284 getprotobyname, we're all using TCP here so just use
11285 IPPROTO_TCP.
7e336ba1 11286 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
11287
112882002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 11289
bdbe5747
MH
11290 * regcache.c (_initialize_regcache): No need to call
11291 build_regcache() at this time; it gets called whenever
11292 the gdbarch changes.
11293
7781cd62
DB
112942002-03-20 David O'Brien <obrien@FreeBSD.org>
11295
11296 * sparc-nat.c: Include sys/param.h where possible.
11297
f65ca430
DJ
112982002-03-20 Daniel Jacobowitz <drow@mvista.com>
11299
11300 Fix PR gdb/422.
11301 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11302 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11303 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11304 complex types.
11305 * stabsread.c (rs6000_builtin_type): Likewise.
11306 (read_sun_floating_type): Likewise.
11307
0c867556
PS
113082002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11309
11310 * stabsread.c (read_member_functions): Remove skip code for duplicate
11311 constructor/destructor methods. Use standard parsing for these
11312 methods and just do not chain them to the list of methods after
11313 parsing.
11314
12b9c64f
AO
113152002-03-19 Alexandre Oliva <aoliva@redhat.com>
11316
11317 * coffread.c: Remove redundant static declarations. Replace
11318 occurrences of `PTR' with `void *'.
11319 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11320 * top.h (quit_cover): Likewise.
11321 * defs.h (catch_errors): Likewise.
11322
349c5d5f
AC
113232002-03-18 Andrew Cagney <ac131313@redhat.com>
11324
11325 * defs.h (XMALLOC): Define.
11326 * gdb-events.sh (XMALLOC): Delete macro.
11327 * gdb-events.c, gdb-events.h: Regenerate.
11328 * gdbarch.sh (XMALLOC): Delete macro.
11329 * gdbarch.c: Regenerate.
11330 * serial.c (XMALLOC): Delete macro.
11331 * ui-file.c (XMALLOC): Ditto.
11332 * ser-unix.h (XMALLOC): Ditto.
11333 * sh-tdep.c (XMALLOC): Ditto.
11334 * ui-out.c (XMALLOC): Ditto.
11335 * utils.c (XMALLOC): Ditto.
11336 * i386-tdep.c (XMALLOC): Ditto.
11337 * gdb-events.c (XMALLOC): Ditto.
11338 * d10v-tdep.c (XMALLOC): Ditto.
11339 * cli-out.c (XMALLOC): Ditto.
11340
11341 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11342 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11343 * ui-file.c, ui-out.c: Ditto.
11344
7d0766f3
AC
113452002-03-18 Andrew Cagney <ac131313@redhat.com>
11346
11347 * command.h (struct cmd_list_element): Add field context.
11348 (set_cmd_context, get_cmd_context): Declare.
11349 * cli/cli-decode.h: Ditto.
11350 * cli/cli-decode.c (get_cmd_context): New function.
11351 (set_cmd_context): New function.
11352 (add_cmd): Initialize context.
11353 Part of fixing PR gdb/145 and PR gdb/146.
11354
5913bcb0
AC
113552002-03-17 Andrew Cagney <ac131313@redhat.com>
11356
1868c04e
AC
11357 * cli/cli-decode.c (cmd_type): New function.
11358 * command.h (cmd_type): Declare.
11359 * infrun.c (set_schedlock_func): Call function cmd_type.
11360 * kod.c (kod_set_os): Call cmd_type.
11361 * cris-tdep.c (cris_version_update): Use function cmd_type.
11362 (cris_mode_update, cris_abi_update): Ditto.
11363
5913bcb0
AC
11364 * command.h: (execute_cmd_post_hook): Declare.
11365 (execute_cmd_pre_hook): Declare.
11366 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11367 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11368 functions. Execute pre/post hook while ensuring that afterwords
11369 hook_in is cleared.
11370 * top.c (execute_command): Use execute_cmd_post_hook, and
11371 execute_cmd_pre_hook to execute pre/post commands.
11372 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11373 hook_stop_stub.
11374 (hook_stop_stub): Call execute_cmd_pre_hook.
11375
b51450c9
AC
113762002-03-17 Andrew Cagney <ac131313@redhat.com>
11377
11378 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11379 set'' and this leads to a core dump. Move xstrdup of
11380 operating_system to after check that it is not NULL.
11381
f66c9f11
AC
113822002-03-17 Andrew Cagney <ac131313@redhat.com>
11383
8e694ecf
AC
11384 * kod.c (kod_set_os): Remove unnecessary check that
11385 ``command->type'' is set_cmd.
11386
f66c9f11
AC
11387 * valprint.c (set_input_radix): Use input_radix.
11388 (set_output_radix): Use output_radix.
11389 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11390 isn't reverted.
11391
9d01611c
AC
113922002-03-16 Andrew Cagney <ac131313@redhat.com>
11393
11394 * value.h (struct value): Delete field ``substring_addr''. Change
11395 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
11396 force_core_addr_align and force_pointer_aligh.
11397
11398 * value.h (struct value): Fix typo in above change.
9d01611c 11399
4156bb53
PS
114002002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11401
11402 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11403 to fix internal_error from ``maintenance print architecture''.
11404
0e5e3ea6
PS
114052002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11406
11407 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11408 for gcc versions after gcc-2.8.1.
11409
9b013045
PS
114102002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11411
11412 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11413 for method resolution. Restore adjustment of ``this'' pointer after
11414 calling value_struct_elt, which was accidentally removed during the
11415 HP merge.
11416
376c9600
AC
114172002-03-15 Andrew Cagney <ac131313@redhat.com>
11418
11419 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11420 value_of_register.
11421 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11422 get_saved_register.
11423 * value.h (value_of_register): Update.
11424
a4db0f07
RH
114252002-03-14 Richard Henderson <rth@redhat.com>
11426
11427 * configure.in: Detect declaration for canonicalize_file_name.
11428 * utils.c (canonicalize_file_name): Declare, if needed.
11429 (gdb_realpath): Prefer realpath if available and usable.
11430 * config.in, configure: Rebuild.
11431
96383835
RH
114322002-03-14 Richard Henderson <rth@redhat.com>
11433
11434 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11435 a constant array bound.
11436
11437 * MAINTAINERS: Add myself to write-after-approval.
11438
75245b24
MS
114392002-03-14 Michael Snyder <msnyder@redhat.com>
11440
11441 * symfile.c (syms_from_objfile): Return immediately if no syms.
11442 (symbol_file_add): Return immediately if no syms.
11443 (find_sym_fns): Return immediately if no syms.
11444
e641a1ca
ML
114452002-03-13 Michal Ludvig <mludvig@suse.cz>
11446
11447 * gdbserver/remote-util.c (remote_open): Print remote-side's
11448 IP address when remote debugging over the network.
7e336ba1 11449
df08bfec
DB
114502002-03-12 David O'Brien <obrien@FreeBSD.org>
11451
11452 * config/sparc/fbsd.mh: Fix copyright.
11453 * config/sparc/fbsd.mt: Likewise.
11454
9a57864f
RE
114552002-03-11 Richard Earnshaw <rearnsha@arm.com>
11456
11457 * MAINTAINERS: Fix typo in name of gdb warnings option.
11458 (x86-64): Fix formating so that this can be parsed by awk.
11459
dd7bf85e
DJ
114602002-03-10 Daniel Jacobowitz <drow@mvista.com>
11461
11462 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11463 * defs.h: Include "gdb/signals.h".
11464 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11465
33a0a2ac
ML
114662002-03-10 Michal Ludvig <mludvig@suse.cz>
11467
11468 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11469 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11470 from x86-64-tdep.h
11471
dd824b04
DJ
114722002-03-10 Daniel Jacobowitz <drow@mvista.com>
11473 Don Howard <dhoward@redhat.com>
11474
11475 * mips-tdep.c (ST0_FR): Define.
11476 (mips2_fp_compat): New function, temporarily disabled.
11477 (mips_read_fp_register_single): New function.
11478 (mips_read_fp_register_double): New function.
11479 (mips_print_register): Use them.
11480 (do_fp_register_row): Likewise.
11481
6a41ff59
AC
114822002-03-09 Andrew Cagney <ac131313@redhat.com>
11483
11484 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11485 approval''.
11486
4ea09c10
PS
114872002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11488
11489 * stabsread.c (read_member_functions): Fix is_stub test for
11490 static member functions, improve comment.
11491
6ccc741d
RE
114922002-03-07 Richard Earnshaw <rearnsha@arm.com>
11493
11494 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11495 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11496 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11497 commands that set boolean values.
11498 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11499 (arm_rdi_resume): Always initialize PC.
11500 (arm_rdi_open): Don't use rslt as a boolean.
11501 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11502 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11503 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11504 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11505
438013df
AO
115062002-03-06 Alexandre Oliva <aoliva@redhat.com>
11507
11508 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11509 * configure: Rebuilt.
11510
70ed8774
SC
115112002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11512
11513 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11514 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11515
5ba2abeb
AC
115162002-03-06 Andrew Cagney <ac131313@redhat.com>
11517
11518 * cli/cli-decode.c (set_cmd_completer): New function.
11519 * command.h (set_cmd_completer): Declare.
11520 * cli/cli-decode.h (set_cmd_completer): Ditto.
11521
11522 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11523 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11524 * win32-nat.c (_initialize_inftarg): Ditto.
11525 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11526 * proc-api.c (_initialize_proc_api): Ditto.
11527 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11528 * source.c (_initialize_source): Ditto.
11529 * exec.c (_initialize_exec): Ditto.
11530 * solib.c (_initialize_solib): Ditto.
11531 * top.c (init_main): Ditto.
11532 * tracepoint.c (_initialize_tracepoint): Ditto.
11533 * symfile.c (_initialize_symfile): Ditto.
11534 * printcmd.c (_initialize_printcmd): Ditto.
11535 * infcmd.c (_initialize_infcmd): Ditto.
11536 * corefile.c (_initialize_core): Ditto.
11537
f779ca99
AC
115382002-03-05 Andrew Cagney <ac131313@redhat.com>
11539
11540 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11541
01a3934b
AC
115422002-03-05 Andrew Cagney <ac131313@redhat.com>
11543
11544 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11545
37057839
AC
115462002-03-05 Andrew Cagney <ac131313@redhat.com>
11547
11548 * NEWS: Update headings, 5.2 has branched.
11549
c6ecbae5
DJ
115502002-03-04 Daniel Jacobowitz <drow@mvista.com>
11551
11552 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11553 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11554 (register_addr, REGISTER_RAW_SIZE): Likewise.
11555 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11556 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11557
e9f30c21
ML
115582002-03-03 Michal Ludvig <mludvig@suse.cz>
11559
11560 * MAINTAINERS (x86-64): Add myself.
11561 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11562 changed value_ptr -> struct value *
11563
54394ac3
DB
115642002-03-01 David O'Brien <obrien@FreeBSD.org>
11565
11566 * configure.host (sparc64-*-freebsd): Add.
11567 * configure.tgt: Likewise.
11568 * config/sparc/fbsd.mh: New file.
11569 * config/sparc/fbsd.mt: Likewise.
11570 * config/sparc/nm-fbsd.h: Likewise.
11571 * config/sparc/tm-fbsd.h: Likewise.
11572
bfe95955
DJ
115732002-03-01 Daniel Jacobowitz <drow@mvista.com>
11574
11575 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11576 regformats/reg-s390x.dat.
11577
f33c6cbf
AC
115782002-03-01 Andrew Cagney <ac131313@redhat.com>
11579
11580 * utils.c: Add FIXME explaining true/false problem.
11581
5ecaa7dd
AC
115822002-02-28 Andrew Cagney <ac131313@redhat.com>
11583
11584 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11585
2a251cc2
MC
115862002-02-28 Michael Chastain <mec@shout.net>
11587
11588 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11589
6a8031a3 115902002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11591
11592 * gdbserver/linux-s390-low.c: New file.
11593 * regformats/reg-s390.dat: New file.
11594 * regformats/reg-s390x.dat: New file.
11595 * gdbserver/configure.srv: Add S/390.
11596 * gdbserver/Makefile.in: Add S/390.
11597 * configure.tgt: Enable gdbserver for S/390.
11598
ac469903
EZ
115992002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11600
11601 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11602 first line of the doc string for "info dos", except at the end of
11603 the sentence, since the short help stops at the first period.
11604
985cb1a3
JM
116052002-02-28 Jason Merrill <jason@redhat.com>
11606
11607 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11608
c570663e
FF
116092002-02-27 Fred Fish <fnf@redhat.com>
11610
11611 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11612 comment (dumy -> dummy).
11613
43630227
PS
116142002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11615
11616 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11617
b84911e8
RB
116182002-02-27 Rodney Brown <rbrown64@csc.com.au>
11619
11620 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11621
58caa3dc
DJ
116222002-02-27 Daniel Jacobowitz <drow@mvista.com>
11623
11624 * gdbserver/acconfig.h: New file.
11625 * gdbserver/i387-fp.c: New file.
11626 * gdbserver/i387-fp.h: New file.
11627 * gdbserver/linux-x86-64.c: New file.
11628 * regformats/reg-x86-64.dat: New file.
11629 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11630 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11631 * gdbserver/configure.in: Add support for regsets.
11632 * gdbserver/config.in: Regenerate.
11633 * gdbserver/configure: Regenerate.
11634 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11635 * gdbserver/linux-low.h: New file.
11636 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11637 for regsets.
11638 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11639 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11640 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11641 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11642 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11643 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11644 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11645 "i387-fp.h". Add PTRACE_GETREGS and friends.
11646 * gdbserver/regcache.c (supply_register): New function.
11647 (supply_register_by_name): New function.
11648 (collect_register): New function.
11649 (collect_register_by_name): New function.
11650
93652174
DJ
116512002-02-27 Daniel Jacobowitz <drow@mvista.com>
11652
11653 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11654 (config.status): Add configure.srv dependency.
11655 (server_h): Add config.h dependency.
11656
a02e4a61
DJ
116572002-02-27 Daniel Jacobowitz <drow@mvista.com>
11658
11659 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11660 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11661 * gdbserver/configure.srv: Change i386-*-linux* to use
11662 reg-i386-linux.o.
11663
ce0eebec
AC
116642002-02-26 Andrew Cagney <ac131313@redhat.com>
11665
11666 * x86-64-tdep.c: Re-indent. Update copyright date.
11667
82dbc5f7
AC
116682002-02-26 Andrew Cagney <ac131313@redhat.com>
11669
11670 From Michal Ludvig <mludvig@suse.cz>:
11671 * x86-64-tdep.c (value.h): Delete.
11672 (gdb_assert.h): Include.
11673 (x86_64_register_convert_to_virtual,
11674 x86_64_register_convert_to_raw ): Add check which lets only
11675 floating-point values to be converted.
11676 (value_push): Delete.
11677 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11678 (i386_gdbarch_init): Number of register_bytes fixed.
11679
e4621584
AC
116802002-02-26 Andrew Cagney <ac131313@redhat.com>
11681
11682 * MAINTAINERS: Add x86-64 target.
11683
81a9a963
AC
116842002-02-26 Andrew Cagney <ac131313@redhat.com>
11685
11686 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11687 * osfsolib.c (solib_map_sections): Ditto.
11688 * irix5-nat.c (solib_map_sections): Ditto.
11689 * corelow.c (gdb_check_format): Ditto.
11690 * symfile.c (symfile_bfd_open): Ditto.
11691 * solib.c (solib_map_sections): Ditto.
11692 Fix PR gdb/354.
7e336ba1 11693
0f017ab9
AC
116942002-02-26 Andrew Cagney <ac131313@redhat.com>
11695
11696 * remote.c (_initialize_remote): By default, disable ``e'' and
11697 ``E'' step out-of-range packets.
11698
75738c29
AS
116992002-02-26 Andreas Schwab <schwab@suse.de>
11700
11701 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11702 m68k_linux_frame_saved_pc.
11703 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11704 in_sigtramp.
11705 (SIGCONTEXT_PC_OFFSET): Remove.
11706 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11707 m68k_linux_sigtramp_saved_pc): New functions.
11708 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11709 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11710 (UCONTEXT_PC_OFFSET): Define.
11711 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11712 non-RT and RT signal trampolines.
11713
7e8ed687
RE
117142002-02-26 Richard Earnshaw <rearnsha@arm.com>
11715
11716 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11717 (TARGET_NBPG, STACK_END_ADDR): Delete
11718 (VARIABLES_INSIDE_BLOCK): Delete.
11719
6972bc8b
AC
117202002-02-25 Andrew Cagney <ac131313@redhat.com>
11721
11722 * utils.c (perror_with_name): Make string parameter constant.
11723 (print_sys_errmsg): Ditto.
11724 (query): Ditto.
11725 * defs.h (perror_with_name): Update.
11726 (print_sys_errmsg): Update.
11727 (query): Update.
11728
aa32f823
DJ
117292002-02-25 Daniel Jacobowitz <drow@mvista.com>
11730
11731 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11732 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11733
19caaa45
PS
117342002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11735
11736 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11737 if it already matches the current architecture from the exec file.
11738 Include arch-utils.h for gdbarch_info_init prototype.
11739 * Makefile.in (rs6000-nat.o): Update dependencies.
11740
d951901f
EZ
117412002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11742
11743 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11744 list of exported variables.
11745
7ea81414
DJ
117462002-02-24 Daniel Jacobowitz <drow@mvista.com>
11747
11748 * gdbserver/configure.srv: New file.
11749 * gdbserver/configure.in: Use configure.srv instead
11750 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11751 from it.
11752 * gdbserver/configure: Regenerated.
11753 * gdbserver/terminal.h: New file.
11754 * gdbserver/Makefile.in: Update for configure changes. Remove
11755 more unneeded include paths.
11756
080fe24b
AC
117572002-02-24 Andrew Cagney <ac131313@redhat.com>
11758
11759 From wiz at danbala:
11760 * config/sparc/tm-sp64.h: Fix grammar and typos.
11761 Fix PR gdb/287.
11762
8605d56e
AC
117632002-02-24 Andrew Cagney <ac131313@redhat.com>
11764
11765 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11766 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11767 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11768 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11769 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11770 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11771 * s390-tdep.c: Ditto.
92362027
AC
11772 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11773 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11774 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11775 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11776 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11777 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11778 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11779 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11780 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11781 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11782 Fix PR gdb/378.
7e336ba1 11783
8ed32cc0
AC
117842002-02-23 Andrew Cagney <ac131313@redhat.com>
11785
a3007b6f
AC
11786 * lin-thread.c: Delete file.
11787 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11788 to gdb_proc_service.h.
11789 * configure: Re-generate.
11790
50a9e2f1
AC
11791 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11792 * serial.c (serial_open): Delete check for "ocd".
11793 Fix PR gdb/349.
11794
8b6e7932
AC
11795 * Makefile.in (linux-thread.o): Delete target.
11796 * linux-thread.c: Delete file.
11797
d155c46b
AC
11798 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11799 renamed SH files to be consistent.
11800
8ed32cc0
AC
11801 * symtab.c (sort_search_symbols): Use xfree.
11802
0e18d038
RE
118032002-02-23 Richard Earnshaw <rearnsha@arm.com>
11804
11805 * arm-linux-tdep.c (arm_linux_init_abi): Register
11806 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11807 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11808 definition with undef, since we don't want the sysvr4 definition.
11809 (SKIP_TRAMPOLINE_CODE): Likewise.
11810
27aac7ff
AC
118112002-02-23 Andrew Cagney <ac131313@redhat.com>
11812
11813 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11814
11815 * configure.in: (AC_CHECK_FUNCS) Added test for
11816 canonicalize_file_name Regenerated.
11817 * config.in, configure: Regenerated.
11818 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11819 defined use canonicalize_file_name.
7e336ba1 11820
65a6e0ee
MC
118212002-02-23 Michael Chastain <mec@shout.net>
11822
11823 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11824
47b95330
AC
118252002-02-23 Andrew Cagney <ac131313@redhat.com>
11826
11827 * README: Remove references to cygnus.com.
11828 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11829 dot com'' form. Remove references to cygnus.com and sourceware.
11830
696f451b
AC
118312002-02-23 Andrew Cagney <ac131313@redhat.com>
11832
11833 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11834 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11835 1003.1-2001 no longer allows "head -1".
11836 * gdb/Makefile.in (version.c): Likewise.
11837 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11838 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11839 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11840
bbaca940
AC
118412002-02-23 Andrew Cagney <ac131313@redhat.com>
11842
11843 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11844 * command.h (cmd_cfunc_eq): Declare.
11845 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11846
11847 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11848 ``struct cmd_list_element *''.
11849 * cli/cli-cmds.c (is_complete_command): Update. Use
11850 cmd_cfunc_eq.
11851 * top.c (execute_command): Pass the command to
11852 is_complete_command.
11853 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11854
b8b8b047
AC
118552002-02-23 Andrew Cagney <ac131313@redhat.com>
11856
11857 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11858 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11859 architecture defines.
11860 * s390-tdep.c (s390_gdbarch_init): Likewise.
11861
19d3fc80
RE
118622002-02-23 Richard Earnshaw <rearnsha@arm.com>
11863
11864 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11865 (arm_linux_push_arguments): Likewise.
11866 (arm_linux_init_abi): Register them. Also register linux-specific
11867 call_dummy_words.
11868 (find_minsym_and_objfile): Use strcmp, not STREQ.
11869 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11870 (arm_linux_call_dummy_words): Delete declaration.
11871 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11872 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11873 declarations.
11874 (LOWEST_PC): Delete.
11875
3ab13650
PS
118762002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11877
11878 * maint.c (print_section_info): Do not prepend `0x' to filepos
11879 output, it will be handled by local_hex_string_custom.
11880
19d3fc80 118812002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11882
11883 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11884 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11885 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11886
d85a5daf
JB
118872002-02-22 Jim Blandy <jimb@redhat.com>
11888
11889 Indicate that the bcache functions don't change the strings
11890 they're passed.
11891 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11892 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11893
eeb25b8a
PM
118942002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11895
11896 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11897
6badb179
CF
118982002-02-21 Christopher Faylor <cgf@redhat.com>
11899
11900 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11901 find the complete path to a loaded DLL.
11902
e8717518
FF
119032002-02-21 Fred Fish <fnf@redhat.com>
11904
11905 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11906 that marks the end of the range of a function, enter a line number
11907 entry that has a line number of zero and a PC offset that matches
11908 the end of the function. This starts a range of PC's for which no
11909 line number information is known.
11910 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11911 PC's for which no line number info is found (line number is zero)
11912 then we didn't find any valid line information.
11913 * symtab.h: Document use of zero line number entry.
11914
9abe5450
EZ
119152002-02-21 Elena Zannoni <ezannoni@redhat.com>
11916
11917 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11918 (have_ptrace_getvrregs): Define for run time checks.
11919 (gdb_vrregset_t): New type for Altivec register handling.
11920 (fetch_register, store_register): Fetch/store altivec register
11921 when needed.
11922 (fetch_altivec_register, store_altivec_register): New functions.
11923 (supply_vrregset, fill_vrregset): New functions.
11924 (fetch_altivec_registers, store_altivec_registers): New functions.
11925 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11926 registers as well.
11927
aaa38bb5
AJ
119282002-02-21 Jiri Smid <smid@suse.cz>
11929
11930 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11931
b34db576
RE
119322002-02-21 Richard Earnshaw <rearnsha@arm.com>
11933
11934 * Makefile.in (armnbsd-nat.o): Update dependencies.
11935 * armnbsd-nat.c (supply_gregset): New function. Common code to
11936 supply the integer register set.
11937 (supply_fparegset): New function. Similar for FPA registers.
11938 (fetch_regs, fetch_fp_regs): Use them.
11939 (fetch_core_registers): Likewise.
11940 (fetch_elfcore_registers): New function.
11941 (arm_netbsd_elfcore_fns): New core-file type specification.
11942 (_initialize_arm_netbsd_nat): Register it.
11943
3e56fc4b
RE
119442002-02-21 Richard Earnshaw <rearnsha@arm.com>
11945
11946 * armnbsd-nat.c: Include gdbcore.h.
11947 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11948 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11949 'void' to declaration, to shut up ARI.
11950 (fetch_core_registers): Make static. Rewrite using supply_register.
11951 (arm_netbsd_core_fns): New core-file type specification.
11952 (_initialize_arm_netbsd_nat): New function.
11953
097f6b0b
CF
119542002-02-21 Christopher Faylor <cgf@redhat.com>
11955
11956 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11957 value.
11958
c914e0cc
CF
119592002-02-20 Christopher Faylor <cgf@redhat.com>
11960
11961 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11962 fails.
11963
385fa495
DJ
119642002-02-20 Daniel Jacobowitz <drow@mvista.com>
11965
11966 * jv-exp.y (parse_number): Change type of implicit longs
11967 to builtin_type_uint64.
11968
e5f1222d
DJ
119692002-02-20 Daniel Jacobowitz <drow@mvista.com>
11970
11971 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11972 to be an integer instead of a `union wait'.
11973
75c9abc6
DJ
119742002-02-20 Daniel Jacobowitz <drow@mvista.com>
11975
11976 * mips-linux-nat.c: Call the operating system GNU/Linux.
11977 * mips-linux-tdep.c: Likewise.
11978 * mips-tdep.c: Likewise.
11979
551792a5
DJ
119802002-02-20 Daniel Jacobowitz <drow@mvista.com>
11981
11982 Fix PR gdb/265.
11983 * jv-exp.y (parse_number): Handle 64-bit integers.
11984
ee6e2b82
DJ
119852002-02-20 Daniel Jacobowitz <drow@mvista.com>
11986
11987 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11988 AC_STDC_HEADERS to AC_HEADER_STDC.
11989 * gdbserver/configure: Regenerated.
11990
a48442a0
RE
119912002-02-20 Richard Earnshaw <rearnsha@arm.com>
11992
11993 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11994 is defined.
11995 * sparc-tdep.c (get_longjmp_target): Likewise.
11996
fe419ffc
RE
119972002-02-20 Richard Earnshaw <rearnsha@arm.com>
11998
11999 * News: Add news about ARM and Multi-arch. Mention the new target
12000 arm*-*-netbsd*.
12001
5832ed7e
JB
120022002-02-19 Jim Blandy <jimb@redhat.com>
12003
12004 * stabsread.c (error_type_complaint): Improve error message.
12005
84563040
DJ
120062002-02-19 Daniel Jacobowitz <drow@mvista.com>
12007
12008 * gdbserver/README: Update documentation.
12009 * gdbserver/configure.in: Update configury to match documentation.
12010 * gdbserver/Makefile.in: Likewise.
12011 * gdbserver/configure: Regenerated.
12012 * gdbserver/aclocal.m4: New file, generated by aclocal.
12013 * gdbserver/config.in: New file, generated by autoheader.
12014
375fd65b
RE
120152002-02-19 Richard Earnshaw <rearnsha@arm.com>
12016
12017 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12018 armnbsd-nat.c.
12019
08216dd7
RE
120202002-02-19 Richard Earnshaw <rearnsha@arm.com>
12021
12022 * arm-tdep.h (enum arm_float_model): New enum.
12023 (struct gdbarch_tdep): Add fp_model.
12024 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12025 up floating-point conversions until we know the floating-point model
12026 in use by the inferior. Don't complain about being unable to
12027 determine the ABI of the inferior when we don't have one.
12028 (arm_extract_return_value): Support different floating-point models.
12029 (arm_store_return_value): Likewise.
aaa38bb5 12030 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
12031 ARM_FLOAT_SOFT.
12032 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12033
65d6d66a
PS
120342002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12035
12036 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12037 of ``current_gdbarch''.
12038
47221191
RE
120392002-02-19 Richard Earnshaw <rearnsha@arm.com>
12040
12041 * armnbsd-nat.c : ANSIfy all function declarations.
12042 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12043 (fetch_inferior_registers): Re-implement in terms of above.
12044 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12045 (store_inferior_registers): Re-implement in terms of above.
12046
fdf39c9a
RE
120472002-02-19 Richard Earnshaw <rearnsha@arm.com>
12048
aaa38bb5 12049 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
12050 kernel.
12051 * arm-linux-tdep.c: Likewise.
12052 * config/arm/tm-linux.h: Likewise.
12053
93247f88
RE
120542002-02-19 Richard Earnshaw <rearnsha@arm.com>
12055
12056 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12057 * config/arm/nbsd.mt (TM_FILE): Delete.
12058 * config/arm/tm-nbsd.h: Delete.
12059
d7b486e7
RE
120602002-02-19 Richard Earnshaw <rearnsha@arm.com>
12061
12062 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12063 Initialize CALL_DUMMY_LENGTH.
12064
41d39a95
RE
120652002-02-19 Richard Earnshaw <rearnsha@arm.com>
12066
12067 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12068 function.
12069 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 12070 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
12071 defines one thing and that is incorrect for this port.
12072 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12073
e1195560
PM
120742002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12075
12076 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12077
c1748f97
PM
120782002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12079
12080 * win32-nat.c (display_selector): New function. Displays information
12081 about the information returned by GetThreadSelectorEntry API function.
12082 (display_selectors): New function. Displays the infomation of
12083 the selector given as argument, or of CS, DS ans FS selectors
12084 if no argument is given.
12085 ( _initialize_inftarg): Add "w32" as info prefix command.
12086 Add "info w32 selector" as command calling display_selectors.
12087
e41e6bbf
PM
120882002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12089
12090 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12091 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12092 if not defined.
12093
0d3a9f48
RE
120942002-02-18 Richard Earnshaw <rearnsha@arm.com>
12095
12096 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12097
3fb4b924
RE
120982002-02-18 Richard Earnshaw <rearnsha@arm.com>
12099
12100 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12101 (arm_fix_call_dummy): Call it.
12102 (arm_call_dummy_breakpoint_offset): Delete.
12103 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12104 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12105
7f55af32
AC
121062002-02-18 Andrew Cagney <ac131313@redhat.com>
12107
12108 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12109 Default to func_frame_chain_valid.
12110 * gdbarch.h, gdbarch.c: Re-generate.
12111 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12112
05f13b9c
EZ
121132002-02-18 Elena Zannoni <ezannoni@redhat.com>
12114
12115 * ppc-linux-nat.c: Update copyright.
12116 (fetch_register, store_register): Add tid parameter, don't compute
12117 tid here.
12118 (fetch_ppc_registers, store_ppc_registers): Add tid
12119 parameter. Pass it along to callees.
12120 (fetch_inferior_registers, store_inferior_registers): Compute tid
12121 here, and pass it to calleed functions.
12122 (fill_gregset, supply_fpregset): Clean up formatting.
12123
d7afb4c9
RE
121242002-02-18 Richard Earnshaw <rearnsha@arm.com>
12125
12126 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12127 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12128
9df628e0
RE
121292002-02-18 Richard Earnshaw <rearnsha@arm.com>
12130
12131 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12132 * gdbarch.c gdbarch.h: Regenerate.
12133 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12134 function.
12135 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12136 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12137 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12138
12139 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12140 * arm-tdep.c (arm_get_longjmp_target): New function.
12141 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12142 this to a positive value register arm_get_longjmp_target as the
12143 longjmp handler.
12144 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12145 (arm_linux_init_abi): Set up longjmp description in tdep.
12146 * armnbsd-nat.c (get_longjmp_target): Delete.
12147 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12148 description in tdep.
12149 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12150 (get_longjmp_target): Delete declaration.
12151 (GET_LONGJMP_TARGET): Delete.
12152 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12153 (GET_LONGJMP_TARGET): Delete.
12154
57bc8964
KB
121552002-02-17 Kevin Buettner <kevinb@redhat.com>
12156
12157 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12158 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12159 of ``current_gdbarch''.
12160
83d31a92
TT
121612002-02-17 Tom Tromey <tromey@redhat.com>
12162
12163 * cli/cli-cmds.c (compare_strings): New function.
12164 (complete_command): Only print each unique item once.
12165 * completer.h (complete_line): Declare.
12166 * completer.c (complete_line): New function.
12167 (line_completion_function): Use it.
12168
17ef5d92
AC
121692002-02-16 Andrew Cagney <ac131313@redhat.com>
12170
12171 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12172 * gdbarch.h, gdbarch.c: Re-generate.
12173
491b8946
DJ
121742002-02-16 Daniel Jacobowitz <drow@mvista.com>
12175
12176 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12177
121782002-02-16 Daniel Jacobowitz <drow@mvista.com>
12179
12180 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12181 * valops.c (value_arg_coerce): Don't take the address of a reference
12182 to convert an argument to a reference.
12183
dfe7f3ac
CF
121842002-02-15 Christopher Faylor <cgf@redhat.com>
12185
12186 * win32-nat.c (get_image_name): New function.
12187 (handle_load_dll): Use get_image_name function.
12188 (get_child_debug_event): Avoid registering debug events until possibly
12189 execed process is started.
12190 (child_create_inferior): Allow invocation via shell so that command
12191 line redirection, etc. works ok.
12192 (_initialize_inftarg): Add new command: "set shell" to control whether
12193 a shell is used to start a process.
12194
1d33e73a
DJ
121952002-02-15 Daniel Jacobowitz <drow@mvista.com>
12196
12197 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12198 instead of find_register_by_number.
12199 (cannot_store_register): Likewise.
12200
48cd0caa
PM
122012002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12202
aaa38bb5 12203 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
12204 fprintf_unfiltered (gdb_stderr, ...).
12205
8656e7d8
DJ
122062002-02-15 Daniel Jacobowitz <drow@mvista.com>
12207
12208 * gdbserver/gdbserver.1: Document --attach.
12209
66e810cd
RE
122102002-02-15 Richard Earnshaw <rearnsha@arm.com>
12211
12212 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12213 descriptions.
12214 * arm-tdep.c (arm_default_arm_le_breakpoint)
12215 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12216 (arm_default_thumb_be_breakpoint): New. Initialize them from
12217 traditional breakpoint defines.
12218 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12219 (arm_gdbarch_init): Initialize new breakpoint variables.
12220 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12221 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12222 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12223 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12224 code out to ...
12225 (arm_netbsd_init_abi_common): ... here; new function.
12226 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12227 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12228 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12229 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12230
97e03143
RE
122312002-02-15 Richard Earnshaw <rearnsha@arm.com>
12232
12233 * arm-tdep.h (enum arm_abi): New enum.
12234 (struct gdbarch_tdep): New structure.
12235 (LOWEST_PC): Provide a default.
12236 (arm_gdbarch_register_os_abi): Declare new function.
12237 * arm-tdep.c (arm_abi_names): New array.
12238 (process_note_abi_tag_sections): New function.
12239 (get_elfosabi): New function.
12240 (arm_gdbarch_register_os_abi): New function.
12241 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12242 support for that ABI has been built in, then call the appropriate
12243 configuration routine. Use gdbarch_num_regs() to get the number
12244 of registers.
12245 (arm_dump_tdep): New function.
12246 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12247 place-holder functions.
12248 (_initialize_arm_tdep): Register them.
12249 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12250
12251 * armnbsd-tdep.c: New file.
12252 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12253 * config/arm/nbsd.mt (TDEPFILES): Add it.
12254 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12255
12256 * armnbsd-nat.c: Include regcache.h.
12257 * Makefile.in (armnbsd-nat.o): Update dependency list.
12258
12259 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12260
ad68be46
DJ
122612002-02-14 Daniel Jacobowitz <drow@mvista.com>
12262
12263 * gdbserver/Makefile.in: Fix typos in target rules.
12264
003d6d1d
DJ
122652002-02-14 Daniel Jacobowitz <drow@mvista.com>
12266
aaa38bb5 12267 Fix part of PR gdb/267.
003d6d1d
DJ
12268 * linespec.c (find_methods): Handle constructors specially for now.
12269
6b230f1b
CV
122702002-02-14 Corinna Vinschen <vinschen@redhat.com>
12271
12272 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12273 handling.
12274 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12275 standard_coerce_float_to_double().
12276
1ea98d12
CF
122772002-02-14 Christopher Faylor <cgf@redhat.com>
12278
12279 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12280 GDBINIT_FILENAME.
12281
dd47e6fd
EZ
122822002-02-14 Elena Zannoni <ezannoni@redhat.com>
12283
12284 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12285 find_variant_by_name, because it confuses the multiarch
12286 framework. Return NULL if there isn't an architecture with the
12287 user supplied name, instead of forcing a different one without
12288 recording the change with the multiarch machinery.
12289 (find_variant_by_name): Delete.
12290
d7e39b9e
PS
122912002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12292
12293 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12294 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12295
76e42a4f
MH
122962002-02-13 Martin M. Hunt <hunt@redhat.com>
12297
aaa38bb5 12298 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
12299 print_frame_info_listing_hook, set current_source_symtab.
12300
0a30fbc4
DJ
123012002-02-14 Daniel Jacobowitz <drow@mvista.com>
12302
12303 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12304 and remove unused $(INCLUDE_DIR).
12305 Add regcache.c to OBS.
12306 Add generated register protocol files to clean target.
12307 Update dependencies for new objects, obsolete old target code.
12308
12309 * gdbserver/linux-low.c: Remove all platform-specific code to
12310 new files. Remove various dead code. Update to use regcache
12311 functionality.
12312 * gdbserver/remote-utils.c (fromhex): Add return statement
12313 to quiet warning.
12314 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12315 constant.
12316 (input_interrupt): Add integer parameter to match prototype
12317 of a signal handler.
12318 (outreg): Use register_data ().
12319 (prepare_resume_reply): Use gdbserver_expedite_regs.
12320 * gdbserver/server.c (main): Dynamically allocate own_buf because
12321 PBUFSIZ is no longer constant. Use registers_to_string () and
12322 registers_from_string ().
12323 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12324 for error (), fatal (), and warning (). Update definition of
12325 PBUFSIZ to use regcache functionality. Add include guard.
12326 * gdbserver/utils.c (fatal): Add missing ``const''.
12327 (warning): New function.
12328
12329 * regformats/regdat.sh: Include "regcache.h" in generated files.
12330 Provide init_registers () function.
12331 * regformats/regdef.h: Add prototype for set_register_cache ().
12332 Add include guard.
12333
12334 * gdbserver/linux-arm-low.c: New file.
12335 * gdbserver/linux-i386-low.c: New file.
12336 * gdbserver/linux-ia64-low.c: New file.
12337 * gdbserver/linux-m68k-low.c: New file.
12338 * gdbserver/linux-mips-low.c: New file.
12339 * gdbserver/linux-ppc-low.c: New file.
12340 * gdbserver/linux-sh-low.c: New file.
12341
12342 * gdbserver/regcache.c: New file.
12343 * gdbserver/regcache.h: New file.
12344
12345 * gdbserver/low-linux.c: Removed obsolete file.
12346
4cc841d0
DJ
123472002-02-14 Daniel Jacobowitz <drow@mvista.com>
12348
12349 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12350 * config/i386/linux.mt: Likewise.
12351 * config/ia64/linux.mt: Likewise.
12352 * config/m68k/linux.mh: Likewise.
12353 * config/powerpc/linux.mh: Likewise.
12354 * config/mips/linux.mt: Likewise.
12355
12356 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12357
12358 * config/i386/i386lynx.mh: Mark gdbserver variables
12359 as (currently) obsolete for this target.
12360 * config/i386/nbsd.mt: Likewise.
12361 * config/i386/nbsdelf.mt: Likewise.
12362 * config/m32r/m32r.mt: Likewise.
12363 * config/m68k/m68klynx.mh: Likewise.
12364 * config/m68k/nbsd.mt: Likewise.
12365 * config/m68k/sun3os4.mh: Likewise.
12366 * config/mips/vr5000.mt: Likewise.
12367 * config/ns32k/nbsd.mt: Likewise.
12368 * config/pa/hppabsd.mh: Likewise.
12369 * config/pa/hppaosf.mh: Likewise.
12370 * config/powerpc/nbsd.mt: Likewise.
12371 * config/rs6000/rs6000lynx.mh: Likewise.
12372 * config/s390/s390.mt: Likewise.
12373 * config/s390/s390x.mt: Likewise.
12374 * config/sparc/sparclynx.mh: Likewise.
12375 * config/sparc/sun4os4.mh: Likewise.
12376 * config/i386/x86-64linux.mt: Likewise.
12377 * config/sparc/linux.mh: Likewise.
12378
a85f51e7
DJ
123792002-02-14 Daniel Jacobowitz <drow@mvista.com>
12380
12381 * configure.tgt: Configure gdbserver only for known working
12382 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12383 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12384 SUBDIRS if it is configured. Update comment for ${nativefile}.
12385 * configure: Regenerated.
12386
65554fef
MS
123872002-02-13 Michael Snyder <msnyder@redhat.com>
12388
670a52db
MS
12389 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12390
6dbdc4a3
MS
12391 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12392 (default_gcore_mach): Just return 0, work around a problem in bfd.
12393 (default_gcore_target): OK to return NULL if exec_bfd is null.
12394 (make_mem_sec): Use a cast, avoid a warning.
12395
12396 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 12397 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
12398 sizeof (host pointer) != sizeof (target pointer)).
12399 (procfs_make_note_section): Avoid overflow in psargs string.
12400
aaa38bb5 12401 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
12402 implementation return an error.
12403
124042002-02-13 Rodney Brown <rbrown64@csc.com.au>
12405
12406 * procfs.c (procfs_make_note_section): Provide a default definition
12407 (for alpha-dec-osf4.0f). Fix typos.
12408
1e4d76e7
EZ
124092002-02-13 Elena Zannoni <ezannoni@redhat.com>
12410
12411 * linux-proc.c: Add include of regcache.h.
12412 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12413
b6d1a1d5
AC
124142002-02-13 Andrew Cagney <ac131313@redhat.com>
12415
12416 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
12417 * memattr.c (create_mem_region): Disallow useless empty region.
12418 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12419 non-overlapping.
b6d1a1d5 12420
6c6ea35e
MC
124212002-02-13 Michael Chastain <mec@shout.net>
12422
12423 * defs.h: Kill CONST_PTR.
12424 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12425 * c-lang.c (c_builtin_types): Likewise.
12426 * ch-lang.c (ch_builtin_types): Likewise.
12427 * f-lang.c (f_builtin_types): Likewise.
12428 * language.c (unknown_builtin_types): Likewise.
12429 * m2-lang.c (m2_builtin_types): Likewise.
12430 * p-lang.c (pascal_builtin_types): Likewise.
12431 * scm-lang.c (c_builtin_types): Likewise.
12432
3e0b0f48
KS
124332002-02-13 Keith Seitz <keiths@redhat.com>
12434
12435 * arm-tdep.h (arm_get_next_pc): Add declaration.
12436
67255d04
RE
124372002-02-13 Richard Earnshaw <rearnsha@arm.com>
12438
12439 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12440 with other related struct-returning functions.
12441 (arm_extract_struct_value_address): New function.
12442 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12443 initialize float_format, double_format and long_double_format as
12444 appropriate to the endianness of the target.
12445 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12446 (arm_use_struct_convention): Delete declaration.
12447 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12448
079777f6
KS
124492002-02-13 Keith Seitz <keiths@redhat.com>
12450
12451 * defs.h (core_addr_to_string_nz): New function.
12452
34588f23
MK
124532002-02-13 Mark Kettenis <kettenis@gnu.org>
12454
12455 Apply missing bits of 2002-01-15 patch.
12456 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12457 (fill_fpregset): Use i387_fill_fsave.
12458
49b563f9
KS
124592002-02-12 Keith Seitz <keiths@redhat.com>
12460
49b563f9
KS
12461 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12462 (core_addr_to_string_nz): New function.
12463
aeb98c60
RE
124642002-02-11 Richard Earnshaw <rearnsha@arm.com>
12465
12466 * arm-linux-nat.c: Really include arm-tdep.h.
12467 * config/arm/tm-linux.h (struct type, struct value): Declare.
12468
65554fef
MS
124692002-02-11 Michael Snyder <msnyder@redhat.com>
12470
12471 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12472 (gcore section): Ifdef for Solaris and Unixware only.
12473 (procfs_do_thread_registers): Unixware needs one lwpstatus
12474 per thread (not one prstatus or pstatus).
12475 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12476 not over all gdb threads. For unixware, call elfcore_write_pstatus
12477 once before iterating over threads.
12478
34e8f22d
RE
124792002-02-11 Richard Earnshaw <rearnsha@arm.com>
12480
12481 * arm-tdep.h: New file.
12482 * arm-tdep.c: Include arm-tdep.h.
12483 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12484 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12485 (arm_print_float_info, arm_register_type, convert_to_extended)
12486 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12487 (arm_extract_return_value, arm_register_name): Make static.
12488 (arm_software_single_step): Similarly. Fix types in declaration.
12489 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12490 (arm_store_return_value, arm_store_struct_return): New functions.
12491 (arm_gdbarch_init): Register the above functions. Also register
12492 call_dummy_start_offset, sizeof_call_dummy_words,
12493 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12494 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12495 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12496 prologue_cache.saved_regs here, rather than ...
12497 (_initialize_arm_tdep): ... here.
12498 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12499 declarations.
12500 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12501 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12502 (arm_print_float_info, arm_register_type, convert_to_extended)
12503 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12504 (arm_extract_return_value, arm_register_name): Delete declarations.
12505 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12506 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12507 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12508 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12509 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12510 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12511 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12512 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12513 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12514 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12515 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12516 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12517 interface.
12518 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12519 * remote-rdi.c remote-rdp.c: Likewise.
12520 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12521 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12522 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12523 definition.
12524
12525 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12526 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12527 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12528 from non-ARM_ prefixed definitions.
12529 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12530 all uses of above.
12531 * remote-rdi.c remote-rdp.c: Likewise.
12532 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12533
148754e5
RE
125342002-02-11 Richard Earnshaw <rearnsha@arm.com>
12535
12536 * arm-tdep.c (arm_frameless_function_invocation)
12537 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12538 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12539 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12540 (arm_pop_frame, arm_get_next_pc): Make static.
12541 (arm_gdbarch_init): Register above in gdbarch structure.
12542 (arm_read_fp): Renamed from arm_target_read_fp.
12543 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12544 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12545 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12546 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12547 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12548 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12549 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12550 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12551 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12552 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12553 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12554
434d2d4f
DJ
125552002-02-10 Daniel Jacobowitz <drow@mvista.com>
12556
12557 * symtab.c (compare_search_syms): New function.
12558 (sort_search_symbols): New function.
12559 (search_symbols): Sort symbols after searching rather than
12560 before.
12561
55241689
AC
125622002-02-10 Andrew Cagney <ac131313@redhat.com>
12563
12564 * NEWS: Linux -> GNU/Linux.
12565
028c194b
AC
125662002-02-10 Andrew Cagney <ac131313@redhat.com>
12567
12568 * gdbarch.sh: For for level one methods, disallow a definition
12569 when partially multi-arched. Add comments explaining rationale.
12570 * gdbarch.h: Re-generate.
12571
6acf50cd
AC
125722002-02-10 Andrew Cagney <ac131313@redhat.com>
12573
12574 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12575 multi-arch partial.
aaa38bb5 12576
50248794
AC
125772002-02-10 Andrew Cagney <ac131313@redhat.com>
12578
12579 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12580 field. Use diff -u.
12581 * gdbarch.c: Re-generate.
12582
c30e0066
AC
125832002-02-10 Andrew Cagney <ac131313@redhat.com>
12584
9b56c5f3 12585 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12586 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12587 partial.
12588
6e6d6484
AC
125892002-02-10 Andrew Cagney <ac131313@redhat.com>
12590
12591 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12592 multi-arch partial.
12593 (PUSH_ARGUMENTS): Switch to using predefault.
12594 * gdbarch.c: Regenerate.
12595
c203844d
AC
125962002-02-10 Andrew Cagney <ac131313@redhat.com>
12597
12598 * valops.c (PUSH_ARGUMENTS): Delete definition.
12599 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12600 partial. Default to default_push_arguments.
12601 * gdbarch.h, gdbarch.c: Regenerate.
12602
b5a2688f
AC
126032002-02-09 Andrew Cagney <ac131313@redhat.com>
12604
12605 * defs.h (throw_exception): Rename return_to_top_level. Update
12606 comments.
12607 * utils.c (error_stream, internal_verror, quit): Ditto.
12608 * top.c (throw_exception, catcher): Ditto.
12609 * sparclet-rom.c (sparclet_load): Ditto.
12610 * remote.c (interrupt_query, minitelnet): Ditto.
12611 * remote-sds.c (interrupt_query): Ditto.
12612 * remote-mips.c (mips_error, mips_kill): Ditto.
12613 * ocd.c (interrupt_query): Ditto.
12614 * monitor.c (monitor_interrupt_query): Ditto.
12615 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12616 * target.h: Update comment.
aaa38bb5 12617
b5a2688f 12618 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12619
2fa5c1e0
AC
126202002-02-09 Andrew Cagney <ac131313@redhat.com>
12621
12622 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12623 default_double_format.
12624 * gdbarch.h, gdbarch.c: Re-generate.
12625 * findvar.c (floatformat_unknown): Delete variable definition.
12626 * doublest.h (floatformat_unknown): Delete variable declaration.
12627
da966255
JB
126282002-02-09 Jim Blandy <jimb@redhat.com>
12629
12630 * stabsread.c (read_type): Add code to parse Sun's syntax for
12631 prototyped function types.
12632
123a4891
AC
126332002-02-09 Andrew Cagney <ac131313@redhat.com>
12634
12635 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12636 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12637
fb39c8f3
PS
126382002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12639
12640 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12641 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12642 now _initialize_xcoffsolib gets called again and overrides the
12643 commands from solib.c in a native configuration.
12644
0b87a11d
MK
126452002-02-09 Mark Kettenis <kettenis@gnu.org>
12646
12647 * doublest.c (store_typed_floating): Don't try to return a value.
12648 Fixes PR gdb/290.
12649
bdc2fc72
JB
126502002-02-08 Jim Blandy <jimb@redhat.com>
12651
12652 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12653 is prototyped and has no arguments, print its argument list as
12654 `(void)'.
12655
da69bbcf
CD
126562002-02-08 Chris Demetriou <cgd@broadcom.com>
12657
12658 * MAINTAINERS (write-after-approval): Add myself.
12659 (paper-trail): I've escaped!
aaa38bb5 12660
b69571f5
CF
126612002-02-08 Christopher Faylor <cgf@redhat.com>
12662
12663 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12664 changes.
12665 (_initialize_check_for_gdb_ini): Ditto.
12666
f6871398
MH
126672002-02-08 Martin M. Hunt <hunt@redhat.com>
12668
12669 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12670 xaprintf -> xasprintf.
12671
4e52d31c
PM
126722002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12673
12674 * win32-nat.c: Remove use of printf and sprintf functions.
12675
39bbf761
RE
126762002-02-08 Richard Earnshaw <rearnsha@arm.com>
12677
12678 * arm-tdep.c (arm_frame_chain_valid): Make static.
12679 (arm_push_arguments): Likewise.
12680 (arm_gdbarch_init): New function.
12681 (_initialize_arm_tdep): Call it.
12682 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12683 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12684 (FRAME_CHAIN_VALID): Delete.
12685 (arm_frame_chain_valid): Delete declaration.
12686 (PUSH_ARGUMENTS): Delete.
12687 (arm_push_arguments): Delete declaration.
12688 (CALL_DUMMY_P): Delete.
12689
9c9532c9
CV
126902002-02-08 Andrew Cagney <ac131313@redhat.com>
12691 Corinna Vinschen <vinschen@redhat.com>
12692
12693 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12694 on builtin float types.
12695
4e8f7a8b
DJ
126962002-02-08 Daniel Jacobowitz <drow@mvista.com>
12697
12698 * utils.c: Include <curses.h> before "bfd.h".
12699 * tui/tui-hooks.c: Likewise.
12700 * tui/tui.c: Likewise.
12701 * tui/tuiCommand.c: Likewise.
12702 * tui/tuiData.c: Likewise.
12703 * tui/tuiDataWin.c: Likewise.
12704 * tui/tuiDisassem.c: Likewise.
12705 * tui/tuiGeneralWin.c: Likewise.
12706 * tui/tuiIO.c: Likewise.
12707 * tui/tuiLayout.c: Likewise.
12708 * tui/tuiRegs.c: Likewise.
12709 * tui/tuiSource.c: Likewise.
12710 * tui/tuiSourceWin.c: Likewise.
12711 * tui/tuiStack.c: Likewise.
12712 * tui/tuiWin.c: Likewise.
12713
cd4bffcf
EZ
127142002-02-07 Elena Zannoni <ezannoni@redhat.com>
12715
12716 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12717 to include space for pseudoregs as well. Update loops accordingly.
12718 (sh_fp_frame_init_saved_regs): Ditto.
12719 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12720
26806ce2
AC
127212002-02-07 Andrew Cagney <ac131313@redhat.com>
12722
12723 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12724 Add Richard Earnshaw to Arm maintainers.
12725
97fdab62
AC
127262002-02-07 Andrew Cagney <ac131313@redhat.com>
12727
a6b98203
AC
12728 * defs.h (warning_begin): Delete declaration.
12729
97fdab62
AC
12730 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12731 Delete macro.
12732
78b29b40
MS
127332002-02-07 Michael Snyder <msnyder@redhat.com>
12734
aaa38bb5 12735 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12736 Logic bug, remove misplaced else.
12737
d8849953
KD
127382002-02-07 Klee Dienes <klee@apple.com>
12739
12740 * fork-inferior.c (fork_inferior): Add '!' to the list of
12741 characters that need to be quoted when building a string for the
12742 shell. Quote '!' specifically with a backslash, since CSH chokes
12743 when trying to evaluate "str!str".
aaa38bb5 12744
095778a0
NC
127452002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12746
12747 * rdi-share/host.h: Only provide a typedef for bool if it is not
12748 defined.
12749
1900040c
MS
127502002-02-04 Michael Snyder <msnyder@redhat.com>
12751
12752 * breakpoint.h (enum bptype): Add new overlay event bp type.
12753 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12754
1900040c
MS
12755 * breakpoint.c (create_internal_breakpoint): New function.
12756 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12757 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12758 (create_thread_event_breakpoint): Ditto.
12759 (create_solib_event_breakpoint): Ditto.
12760 (create_overlay_event_breakpoint): New function.
12761 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12762 (update_breakpoints_after_exec): Delete and re-initialize
12763 overlay event breakpoints after an exec. Add FIXME comment
12764 about longjmp breakpoint.
12765 (print_it_typical): Ignore overlay event breakpoints.
12766 (print_one_breakpoint): Ditto.
12767 (mention): Ditto.
12768 (bpstat_what): Do not stop for overlay event breakpoints.
12769 (delete_breakpoint): Don't delete overlay event breakpoints.
12770 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12771 (breakpoint_re_set): Re-create overlay event breakpoint.
12772
12773 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12774 (overlay_manual_command): Disable overlay breakpoints.
12775 (overlay_off_command): Disable overlay breakpoints.
12776
082fc60d
RE
127772002-02-06 Richard Earnshaw <rearnsha@arm.com>
12778
12779 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12780 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12781 to here from config/tm-arm.h.
12782 (coff_sym_is_thumb): Make static.
12783 (arm_elf_make_msymbol_special): New function.
12784 (arm_coff_make_msymbol_special): New function.
12785 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12786 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12787 (coff_sym_is_thumb): Delete declaration.
12788 (arm_elf_make_msymbol_special): Declare.
12789 (arm_coff_make_msymbol_special): Declare.
12790 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12791 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12792
039c5766
RE
127932002-02-06 Richard Earnshaw <rearnsha@arm.com>
12794
12795 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12796
127972002-02-06 Richard Earnshaw <rearnsha@arm.com>
12798
12799 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12800 * gdbarch.c gdbarch.h: Regenerate.
12801 * arch-utils.c (default_print_float_info): New function.
12802 * arch-utils.h (default_print_float_info): Prototype it.
12803 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12804 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12805 (PRINT_FLOAT_INFO): Document it.
12806
12807 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12808 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12809 (PRINT_FLOAT_INFO): Define.
12810
58fa08f0
PM
128112002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12812
aaa38bb5 12813 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12814 Add typecast to sprintf argument to suppress a warning.
12815
7393af7c
PM
128162002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12817
58fa08f0 12818 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12819 to allow easier handling of pass state.
12820 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12821 that gives exception name and address.
12822 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12823 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12824 exceptions added.
aaa38bb5
AJ
12825 (child_continue): Correctly report continue_status.
12826 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12827 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12828 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12829 the exception should be passed to debuggee or not.
12830
6af4589c
MS
128312002-02-05 Michael Snyder <msnyder@redhat.com>
12832
12833 * regcache.c (fetch_register): Call target_fetch_register
12834 only if we don't call FETCH_PSEUDO_REGISTER.
12835 (store_register): Call target_store_register only if we
12836 don't call STORE_PSEUDO_REGISTER.
12837
a2cf933a
EZ
128382002-02-05 Elena Zannoni <ezannoni@redhat.com>
12839
12840 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12841 ELF_MAKE_MSYMBOL_SPECIAL.
12842 * gdbarch.c, gdbarch.h: Regenerate.
12843 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12844 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12845 * elfread.c (elf_symtab_read): Compile use of
12846 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12847 multiarched.
12848 * coffread.c (coff_symtab_read): Ditto, for
12849 COFF_MAKE_MSYMBOL_SPECIAL.
12850
6bb7be43
JB
128512002-02-05 Jim Blandy <jimb@redhat.com>
12852
12853 * solib-svr4.c (svr4_truncate_ptr): New function.
12854 (svr4_relocate_section_addresses): Do the address arithmetic with
12855 the appropriate truncation for target addresses, even when
12856 CORE_ADDR is larger than a target address.
12857
e18651ec
DJ
128582002-02-05 Daniel Jacobowitz <drow@mvista.com>
12859
12860 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12861 to (int *).
12862
6b2725be
DJ
128632002-02-05 Daniel Jacobowitz <drow@mvista.com>
12864
12865 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12866 code.
12867
fca9e603
DJ
128682002-02-05 Daniel Jacobowitz <drow@mvista.com>
12869
12870 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12871
6c537a52
DJ
128722002-02-05 Daniel Jacobowitz <drow@mvista.com>
12873
12874 * gdbserver/linux-low.c: Remove unused include files.
12875
d844cde6
DJ
128762002-02-05 Daniel Jacobowitz <drow@mvista.com>
12877
12878 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12879 (read_inferior_memory): Use it.
12880 (write_inferior_memory): Likewise.
12881
d07c63e7
DJ
128822002-02-05 Daniel Jacobowitz <drow@mvista.com>
12883
12884 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12885 grubbing through sys_errlist.
12886
da6d8c04
DJ
128872002-02-05 Daniel Jacobowitz <drow@mvista.com>
12888
12889 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12890
5b421780
PM
128912002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12892 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12893
9f60d481
AC
128942002-02-04 Andrew Cagney <ac131313@redhat.com>
12895
12896 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12897 (do_sfunc, set_cmd_sfunc): New functions.
12898
12899 * command.h (struct cmd_list_element): Add field func.
12900 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12901 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12902 * cli/cli-decode.h: Ditto.
12903
12904 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12905 (help_all, help_cmd_list): Ditto.
12906 (find_cmd, complete_on_cmdlist): Ditto.
12907 * top.c (execute_command): Ditto.
12908
12909 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12910 function.sfunc.
12911
12912 * infcmd.c (notice_args_read): Fix function signature.
12913
12914 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12915 * cli/cli-decode.c (add_set_cmd): Ditto.
12916 * utils.c (initialize_utils): Ditto.
12917 * maint.c (_initialize_maint_cmds): Ditto.
12918 * infrun.c (_initialize_infrun): Ditto.
12919 * demangle.c (_initialize_demangler): Ditto.
12920 * remote.c (add_packet_config_cmd): Ditto.
12921 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12922 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12923 * proc-api.c (_initialize_proc_api): Ditto.
12924 * kod.c (_initialize_kod): Ditto.
12925 * valprint.c (_initialize_valprint): Ditto.
12926 * top.c (init_main): Ditto.
12927 * infcmd.c (_initialize_infcmd): Ditto.
12928 * corefile.c (_initialize_core): Ditto.
12929 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12930 * arch-utils.c (initialize_current_architecture): Ditto.
12931 (_initialize_gdbarch_utils): Ditto.
12932 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12933
12934 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12935 * wince.c (_initialize_inftarg): Ditto.
12936 * symfile.c (_initialize_symfile): Ditto.
12937 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12938 * language.c (_initialize_language): Ditto.
12939 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12940
f9ba0717
MS
129412002-02-04 Michael Snyder <msnyder@redhat.com>
12942
12943 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12944
0c74b2a7
DJ
129452002-02-04 Daniel Jacobowitz <drow@mvista.com>
12946
12947 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12948 Add rules for building the register data files.
12949
c638789f
DJ
129502002-02-04 Daniel Jacobowitz <drow@mvista.com>
12951
12952 * regformats/regdat.sh: Add braces to the definition of
12953 expedite_regs_${arch}.
12954
db253027
DJ
129552002-02-04 Daniel Jacobowitz <drow@mvista.com>
12956
12957 * regformats/regdef.h (struct reg): Add comment describing the
12958 requirements for offset and size fields.
12959
206be19c
AS
129602002-02-04 Andreas Schwab <schwab@suse.de>
12961
12962 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12963 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12964
181c1381
RE
129652002-02-04 Richard Earnshaw <rearnsha@arm.com>
12966
12967 * gdbarch.sh (copyright): Update years in generated header.
12968 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12969 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12970 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12971 * dbxread.c: Likewise.
12972 * dwarfread.c: Likewise.
12973 * elfread.c: Likewise.
12974 * somread.c: Likewise.
12975
12976 * arm-tdep.c (arm_smash_text_address): New function.
12977 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12978
fa4ba8da
PM
129792002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12980
12981 Add support for hardware watchpoints on win32 native.
aaa38bb5 12982 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12983 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12984 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12985 of debug registers.
12986 (debug_registers_changed): New variable. Reflects when debug registers
12987 are changed and need to be written to inferior.
aaa38bb5 12988 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12989 was set, used when new threads are created.
12990 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12991 i386-nat code.
12992 (thread_rec): Set dr array if id is the thread of current_event .
12993 (child_continue, child_resume): Change the debug registers for all
12994 threads if debug_registers_changed.
12995 (child_add_thread): Change the debug registers if debug_registers_used.
12996 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12997 Link nm.h to new nm-cygwin.h file.
12998 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12999 of hardware registers.
13000
a73c86fb
AC
130012002-02-03 Andrew Cagney <ac131313@redhat.com>
13002
13003 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13004 Restore behavour broken by 2002-01-20 Andrew Cagney
13005 <ac131313@redhat.com> IEEE_FLOAT removal.
13006
acf5ed49
DJ
130072002-02-03 Daniel Jacobowitz <drow@mvista.com>
13008
13009 * c-valprint.c (c_val_print): Pass a proper valaddr to
13010 cp_print_class_method.
13011 * valops.c (search_struct_method): If there is only one method
13012 and args is NULL, return that method.
13013
493d28d5
DJ
130142002-02-03 Daniel Jacobowitz <drow@mvista.com>
13015
13016 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13017 accessing tag_name directly.
13018
7495dfdb
DJ
130192002-02-03 Daniel Jacobowitz <drow@mvista.com>
13020
13021 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13022 of accessing tag_name directly.
13023
dd6bda65
DJ
130242002-02-03 Daniel Jacobowitz <drow@mvista.com>
13025
13026 PR gdb/280
13027 * gdbtypes.c (replace_type): New function.
13028 * gdbtypes.h (replace_type): Add prototype.
13029 * stabsread.c (read_type): Use replace_type.
13030
88fe217c
RE
130312002-02-03 Richard Earnshaw <rearnsha@arm.com>
13032
13033 * Makefile.in (memattr.o): Add missing dependencies rule.
13034
e5d66720
PS
130352002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13036
13037 * breakpoint.c (break_at_finish_command): Really export.
13038 (break_at_finish_at_depth_command): Ditto.
13039 (tbreak_at_finish_command): Ditto.
13040 * hppa-tdep.c: Include completer.h.
13041 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13042 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13043
fffee0be
AC
130442002-02-01 Andrew Cagney <ac131313@redhat.com>
13045
13046 * utils.c (do_write): New function.
13047 (error_stream): Rewrite combining the code from error_begin and
13048 verror.
13049 (verror): Rewrite using error_stream.
13050 (error_begin): Delete function.
13051
255e7dbf
AC
130522002-02-01 Andrew Cagney <ac131313@redhat.com>
13053
13054 * utils.c (error_begin): Make static.
13055 * defs.h (error_begin): Delete declaration.
13056
13057 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13058 (decode_line_1): Use cplusplus_error instead of error_begin,
13059 cplusplus_hint and return_to_top_level.
13060 * coffread.c (coff_symfile_read): Use error instead of error_begin
13061 and return_to_top_level.
13062 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13063
ddfe3c15
AC
130642002-02-01 Andrew Cagney <ac131313@redhat.com>
13065
13066 * language.h (type_error, range_error): Make string parameter
13067 constant.
13068 * language.c (warning_pre_print): Delete extern declaration.
13069 * dwarfread.c (warning_pre_print): Ditto.
13070 * language.c (type_error, range_error): Rewrite to use verror and
13071 vwarning instead of warning_begin.
13072
03ac34d5
MS
130732002-02-01 Michael Snyder <msnyder@redhat.com>
13074
261c4ca2
MS
13075 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13076 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 13077
e00d1dc8
AC
130782002-02-01 Andrew Cagney <ac131313@redhat.com>
13079
13080 * command.h (NO_FUNCTION): Delete macro.
13081 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13082 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13083 * tracepoint.c (_initialize_tracepoint): Ditto.
13084 * cli/cli-decode.c (add_set_cmd): Ditto.
13085 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 13086
76b79d6e
DJ
130872002-02-01 Daniel Jacobowitz <drow@mvista.com>
13088
13089 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13090 Update ``this'' pointer when calling virtual functions.
13091
799f9e91
MS
130922002-02-01 Michael Snyder <msnyder@redhat.com>
13093
c7bd442c 13094 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
13095 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13096
3cf384d4
DJ
130972002-02-01 Daniel Jacobowitz <drow@mvista.com>
13098
13099 * regformats/reg-arm.dat: New file.
13100 * regformats/reg-i386.dat: New file.
13101 * regformats/reg-ia64.dat: New file.
13102 * regformats/reg-m68k.dat: New file.
13103 * regformats/reg-mips.dat: New file.
13104 * regformats/reg-ppc.dat: New file.
13105 * regformats/reg-sh.dat: New file.
13106 * regformats/regdef.h: New file.
13107 * regformats/regdat.sh: New file.
13108
0defa245
RE
131092002-02-01 Richard Earnshaw <reanrsha@arm.com>
13110
13111 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13112 (arm_frame_args_address, arm_frame_locals_address): New functions.
13113 (arm_frame_num_args): New function.
13114 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13115 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13116 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13117
405f26e6
MS
131182002-01-31 Michael Snyder <msnyder@redhat.com>
13119
502fd408
MS
13120 * breakpoint.c (break_at_finish_command): Export.
13121 (break_at_finish_at_depth_command): Export.
13122 (tbreak_at_finish_command): Export.
d6020d45 13123 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 13124 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 13125 "txbreak" commands, which are HPPA specific.
502fd408 13126
7d35e135
MS
13127 * printcmd.c (disassemble_command): Remove an ancient
13128 artifact of an old merge.
13129
aaa38bb5 13130 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
13131 Define enum constant values for overlay mode.
13132 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
13133 (overlay_is_mapped, overlay_auto_command,
13134 overlay_manual_command): Ditto.
d874f1e2 13135
aaa38bb5
AJ
13136 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13137 breakpoint_here_p, breakpoint_inserted_here_p,
13138 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
13139 describe_other_breakpoints, check_duplicates, clear_command):
13140 Coding standard fixes.
13141
8add0441 13142 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 13143 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
13144 code: check bfd SEC_READONLY flag for section.
13145
e351066e
AC
131462002-01-31 Andrew Cagney <ac131313@redhat.com>
13147
7d35e135 13148 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 13149
8a48e967
DJ
131502002-01-30 Daniel Jacobowitz <drow@mvista.com>
13151
13152 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13153 data symbols, since we search based on textlow and texthigh.
13154 (find_pc_sect_symtab): Likewise.
13155
f5a96129
AC
131562002-01-30 Andrew Cagney <ac131313@redhat.com>
13157
13158 * defs.h (vwarning): Declare.
f5a96129
AC
13159 * utils.c (vwarning): New function.
13160 (warning): Call vwarning.
13161 (warning_begin): Delete function.
13162
13163 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13164 the warning message.
13165 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13166 warning_begin.
13167
cefd4ef5
MS
131682002-01-30 Michael Snyder <msnyder@redhat.com>
13169
1a703748
MS
13170 * NEWS: Mention "set trust-readonly-sections" command.
13171 Mention generate-core-file command.
cefd4ef5 13172
3a11626d
MS
131732002-01-15 Michael Snyder <msnyder@redhat.com>
13174
13175 * target.c: New command, "set trust-readonly-sections on".
13176 (do_xfer_memory): Honor the suggestion to trust readonly sections
13177 by reading them from the object file instead of from the target.
13178 (initialize_targets): Register command "set trust-readonly-sections".
13179
d1c7e53b
AC
131802002-01-29 Andrew Cagney <ac131313@redhat.com>
13181
13182 * parse.c (target_map_name_to_register): Simplify, search regs and
13183 pseudo-regs using a single loop.
13184
e2c9a72c
AC
131852002-01-30 Andrew Cagney <ac131313@redhat.com>
13186
13187 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13188
69824b4e
MK
131892002-01-15 Rodney Brown <rbrown64@csc.com.au>
13190
13191 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13192 * config/i386/i386v42mp.mh: Add i387-nat.o .
13193 * i386v4-nat.c: Include i387-nat.h.
13194 (supply_fpregset): Use i387_supply_fsave.
13195 (fill_fpregset): Use i387_fill_fsave.
13196
6eb69eab
RE
131972002-01-30 Richard Earnshaw <rearnsha@arm.com>
13198
13199 * arm-tdep.c (arm_call_dummy_words): Define.
13200 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13201 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13202 (CALL_DUMMY_WORDS): Define.
13203 (arm_call_dummy_words): Declare.
13204 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13205 (arm_linux_call_dummy_words): Declare.
13206
9852326a
AS
132072002-01-30 Andreas Schwab <schwab@suse.de>
13208
13209 * m68klinux-nat.c: Fix last change to use regcache_collect
13210 instead of referencing registers[] directly.
13211
977a3030
AC
132122002-01-29 Andrew Cagney <ac131313@redhat.com>
13213
13214 * parse.c (target_map_name_to_register): Delete code wrapped in
13215 #ifdef REGISTER_NAME_ALIAS_HOOK.
13216
2076c72b
MS
132172002-01-28 Michael Snyder <msnyder@redhat.com>
13218
13219 * regcache.c (legacy_read_register_gen): Need to be able to
13220 read pseudo-register as well as real register.
13221 (legacy_write_register_gen): Ditto.
13222
8fcc723b
AC
132232002-01-28 Andrew Cagney <ac131313@redhat.com>
13224
13225 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13226 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13227 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13228 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13229 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13230 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13231 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13232 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13233 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13234 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13235 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13236 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13237 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13238 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13239 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13240 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13241 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13242 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13243 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13244 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13245
afe64c1a
AC
132462002-01-28 Andrew Cagney <ac131313@redhat.com>
13247
13248 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13249 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13250 (initialize_current_architecture): Update target_byte_order using
13251 information from BFD.
aaa38bb5 13252 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
13253 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13254
75bc7ddf
AC
132552002-01-28 Andrew Cagney <ac131313@redhat.com>
13256
13257 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13258 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13259
13260 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13261 #ifdef INVALID_FLOAT.
13262 * infcmd.c (do_registers_info): Ditto.
13263 * values.c (unpack_double): Ditto. Add comment.
13264
13265 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13266 already commented out.
13267
0280a90a
AS
132682002-01-26 Andreas Schwab <schwab@suse.de>
13269
13270 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13271 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13272 registers and add support for PTRACE_GETREGS.
13273
7072a954
AC
132742002-01-24 Andrew Cagney <ac131313@redhat.com>
13275
13276 GDB 5.1.1 released from 5.1 branch.
13277 * NEWS: Add 5.1.1 news.
13278 * README: Sync with 5.1 branch.
13279
86f902e0
FF
132802002-01-23 Fred Fish <fnf@redhat.com>
13281
13282 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13283 stabstring on initial malloc. Reallocing will copy it for us,
13284 if necessary.
13285
8af51c36
EZ
132862002-01-23 Elena Zannoni <ezannoni@redhat.com>
13287
aaa38bb5 13288 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
13289 (HFILES_NO_SRCDIR): Remove hpread.h.
13290 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13291 (hpread.o): Update dependencies.
13292 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13293
13294 * hp-psymtab-read.c: Remove file.
13295 * hp-symtab-read.c: Remove file.
13296 * hpread.h: Remove file.
13297
13298 * hpread.c: Merge all contents of hp-psymtab-read.c,
13299 hp-symtab-read.c and hpread.h into this file, as it was prior to
13300 January 1999.
13301
13302 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 13303 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
13304 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13305 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13306
dc5cfeb6
EZ
133072002-01-23 Elena Zannoni <ezannoni@redhat.com>
13308
13309 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13310 fill_gregset): Call gdbarch_tdep() just once, assign result to
13311 variable and use that, instead of calling the function several
13312 times.
13313
ea87b71b
AO
133142002-01-24 Alexandre Oliva <aoliva@redhat.com>
13315
13316 * configure.host: Accept sparcv9 as alias for sparc64.
13317 * configure.tgt: Likewise.
13318
13fc0c2f
KB
133192002-01-22 Kevin Buettner <kevinb@redhat.com>
13320
13321 * solib-aix5.c (build_so_list_from_mapfile)
13322 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13323 arguments is not reversed.
13324 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13325 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 13326
7bd872fe
EZ
133272002-01-22 Elena Zannoni <ezannoni@redhat.com>
13328
13329 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13330 modified version of obsolete sh_fetch_pseudo_register.
13331 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13332 (sh4_register_read): New function.
13333 (sh_pseudo_register_write): New function. Renamed and modified
13334 version of obsolete sh_store_pseudo_register.
13335 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13336 (sh4_register_write): New function.
13337 (sh_gdbarch_init): Remove setting of gdbarch function
13338 fetch_pseudo_register and store_pseudo_register. Remove setting of
13339 register_convert_to_raw, register_convert_to_virtual,
13340 register_convertible.
13341 (sh_sh4_register_convertible): Delete. No longer needed. All is
13342 taken care by architecture specific functions
13343 register_read/register_write.
13344 (sh_sh4_register_convert_to_virtual): Make static.
13345 (sh_sh4_register_convert_to_raw): Ditto.
13346
069e84fd
AC
133472002-01-22 Andrew Cagney <ac131313@redhat.com>
13348
13349 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13350 (floatformat_is_nan, floatformat_mantissa): Ditto.
13351
13352 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13353 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13354 builtin_type_ieee_double_little,
13355 builtin_type_ieee_double_littlebyte_bigword,
13356 builtin_type_m68881_ext, builtin_type_i960_ext,
13357 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13358 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13359 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13360 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13361
211a4f69
CV
133622002-01-22 Corinna Vinschen <vinschen@redhat.com>
13363
13364 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13365 parameter. Set frameless flag if it exists and depended of
13366 whether the scanned function is frameless or not.
13367 (xstormy16_skip_prologue): If function is frameless, return
13368 result of xstormy16_scan_prologue().
13369 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13370 call.
13371
f81353e4
EZ
133722002-01-21 Elena Zannoni <ezannoni@redhat.com>
13373
13374 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13375 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13376 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13377 sh_sh4_register_byte, sh_sh4_register_raw_size,
13378 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13379 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13380 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13381 sh_store_pseudo_register, sh_do_pseudo_register): Call
13382 gdbarch_tdep() just once, assign result to variable and use that,
13383 instead of calling the function several times.
13384
63c73a17
MK
133852002-01-20 Mark Kettenis <kettenis@gnu.org>
13386
13387 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13388 macros instead of LAST_FPU_CTRL_REGNUM.
13389 (store_register): Likewise.
13390
39ad761d
JB
133912002-01-21 Jim Blandy <jimb@redhat.com>
13392
13393 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13394 is up-to-date before running the program, not just when a program
13395 exits.
13396
3d74b771
FF
133972002-01-21 Fred Fish <fnf@redhat.com>
13398
13399 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13400 when we have found all instructions we are looking for.
13401
966fbf70
RE
134022002-01-21 Richard Earnshaw <rearnsha@arm.com>
13403
13404 * arm-tdep.c (arm_register_name): New function.
13405 (arm_registers_names): Make static.
13406 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13407 (arm_register_name): Declare.
13408 (REGISTER_NAME): Use it.
13409
c3b4394c
RE
134102002-01-21 Richard Earnshaw <rearnsha@arm.com>
13411 Kevin Buettner <kevinb@redhat.com>
13412
13413 Convert arm targets to new FRAME interface.
13414 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13415 (arm_frame_find_save_regs): Delete.
13416 (arm_frame_init_saved_regs): New.
13417 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13418 Allocate extra_info as required. Convert all uses of fsr.regs
13419 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13420 to use extra_info.
13421 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13422 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13423 (check_prologue_cache, save_prologue_cache): Likewise.
13424 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13425 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13426 (FRAME_FIND_SAVED_REGS): Delete.
13427 (arm_frame_find_saved_regs): Delete prototype.
13428 (arm_frame_init_saved_regs): New prototype.
13429 (FRAME_INIT_SAVED_REGS): Define.
13430
61d99182
AC
134312002-01-20 Andrew Cagney <ac131313@redhat.com>
13432
13433 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13434
6aaea291
AC
134352002-01-20 Andrew Cagney <ac131313@redhat.com>
13436
13437 From Jeff Law <law@redhat.com>:
13438 * infttrace.c: Include <sys/pstat.h>.
13439 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13440 exec file if the ttrace equivalent fails.
13441
15f698d2
AC
134422002-01-20 Andrew Cagney <ac131313@redhat.com>
13443
13444 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13445 (closeLogFile): Ditto.
13446
f86ddd7c
MC
134472002-01-20 Michael Chastain <mec@shout.net>
13448
13449 * top.c (print_gdb_version): Bump copyright year to 2002.
13450
904507ce
AC
134512002-01-20 Andrew Cagney <ac131313@redhat.com>
13452
13453 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13454 Zannoni and Eli Zaretskii.
13455
d7f0b9ce
DJ
134562002-01-20 Daniel Jacobowitz <drow@mvista.com>
13457
13458 * buildsym.c: Update copyright years.
13459 * c-typeprint.c: Likewise.
13460 * dwarf2read.c: Likewise.
13461 * f-typeprint.c: Likewise.
13462 * gdbtypes.c: Likewise.
13463 * gdbtypes.h: Likewise.
13464 * hp-symtab-read.c: Likewise.
13465 * hpread.c: Likewise.
13466 * mdebugread.c: Likewise.
13467 * p-typeprint.c: Likewise.
13468
3fd3d7d2
AC
134692002-01-20 Andrew Cagney <ac131313@redhat.com>
13470
13471 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13472 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13473 byte-order selectable.
13474 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13475 * arch-utils.c: Ditto.
13476 (set_endian): Ditto.
13477 (set_endian_from_file): Ditto.
13478 * gdbserver/low-sim.c (create_inferior): Ditto.
13479 * gdbarch.sh: Ditto.
13480 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13481 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13482 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13483 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13484 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13485 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13486 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13487 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13488 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13489 macro definition.
13490 * config/mips/tm-wince.h: Remove #undef of macro
13491 TARGET_BYTE_ORDER_SELECTABLE.
13492 * config/sh/tm-wince.h: Ditto.
13493
b02dede2
DJ
134942002-01-20 Daniel Jacobowitz <drow@mvista.com>
13495
13496 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13497 member function fields. Add accessor macro
13498 TYPE_FN_FIELD_ARTIFICIAL.
13499 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13500 * c-typeprint.c (c_type_print_base): Skip artificial member
13501 functions.
13502
c3643761
DJ
135032002-01-20 Daniel Jacobowitz <drow@mvista.com>
13504
13505 * f-typeprint.c: Delete unused function f_type_print_args.
13506 * p-typeprint.c: Delete unused function pascal_type_print_args.
13507
8176bb6d
DJ
135082002-01-20 Daniel Jacobowitz <drow@mvista.com>
13509
13510 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13511 comment. Add ``artificial'' to ``union field_location''.
13512
13513 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13514
13515 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13516 * mdebugread.c (parse_symbol): Likewise.
13517 * stabsread.c (define_symbol): Likewise.
13518 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13519 initializing TYPE_FIELD_BITPOS to n (obsolete).
13520 (hpread_doc_function_type): Likewise.
13521 * hpread.c (hpread_function_type): Likewise.
13522
7fd60527
AC
135232002-01-20 Andrew Cagney <ac131313@redhat.com>
13524
13525 * configure.in (host_makefile_frag): Only require a host makefile
13526 fragment when a native build.
13527 * configure: Re-generate.
13528
c2f05ac9
AC
135292002-01-20 Andrew Cagney <ac131313@redhat.com>
13530
13531 * doublest.h (floatformat_from_type): Declare.
13532 * doublest.c (floatformat_from_type): New function.
13533 (convert_typed_floating): Use.
13534
13535 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13536 call to function floatformat_from_type.
13537
13538 * gdbarch.sh (IEEE_FLOAT): Delete.
13539 * gdbarch.h, gdbarch.c: Re-generate.
13540 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13541 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13542 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13543 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13544 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13545 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13546 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13547 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13548 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13549 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13550 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13551 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13552
13553 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13554 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13555 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13556 * sh-tdep.c (sh_gdbarch_init): Ditto.
13557 * mips-tdep.c (mips_gdbarch_init): Ditto.
13558 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13559 * cris-tdep.c (cris_gdbarch_init): Ditto.
13560
abf22e64
AJ
135612002-01-20 Jiri Smid <smid@suse.cz>
13562
13563 * configure.host, configure.tgt: Support x86-64.
13564 * NEWS: Note new target x86-64.
13565
b7c4cbf8
AJ
13566 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13567 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13568 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13569 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13570 x86-64-linux-nat.o): Fix dependencies.
13571
82600034
AC
135722002-01-19 Andrew Cagney <ac131313@redhat.com>
13573
13574 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13575 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13576 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13577 * config/sparc/xm-sun4os4.h: Delete file.
13578 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13579
bbe5c628
AC
135802002-01-19 Andrew Cagney <ac131313@redhat.com>
13581
13582 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13583 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13584 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13585 * config/i386/i386lynx.mh (XM_FILE): Delete.
13586 * config/rs6000/xm-rs6000ly.h: Delete file.
13587 * config/sparc/xm-sparclynx.h: Delete file.
13588 * config/m68k/xm-m68klynx.h: Delete file.
13589 * config/i386/xm-i386lynx.h: Delete file.
13590 * config/xm-lynx.h: Delete file.
13591 * config/djgpp/fnchange.lst: Update.
13592
f8453e34
JT
135932002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13594
13595 * alpha-tdep.c (alpha_register_byte): New function.
13596 (alpha_register_raw_size): Ditto.
13597 (alpha_register_virtual_size): Ditto.
13598 (alpha_skip_prologue_internal): Renamed from
13599 alpha_skip_prologue.
13600 (alpha_skip_prologue): New version that calls
13601 alpha_skip_prologue_internal.
13602 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13603 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13604 second argument from alpha_skip_prologue.
13605 (REGISTER_BYTE): Use alpha_register_byte.
13606 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13607 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13608 (FRAMELESS_FUNCTION_INVOCATION): Use
13609 generic_frameless_function_invocation_not.
13610 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13611 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13612
52d9e613
AC
136132002-01-19 Andrew Cagney <ac131313@redhat.com>
13614
13615 * config/mips/xm-news-mips.h: Delete file.
13616 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13617
13618 * config/m88k/xm-m88k.h: Delete file.
13619 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13620 * config/m88k/xm-delta88v4.h: Ditto.
13621 * config/m88k/xm-delta88.h: Ditto.
13622
13623 * config/alpha/xm-fbsd.h: Delete file.
13624 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13625
13626 * config/sparc/xm-sparc.h: Delete file.
13627 * Makefile.in (xm-sun4os4.h): Delete dependency.
13628 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13629 * config/sparc/xm-sun4os4.h: Ditto.
13630 * config/sparc/xm-linux.h: Ditto.
13631
13632 * config/i386/xm-windows.h: Delete file.
13633
2d1b2124
AC
136342002-01-19 Andrew Cagney <ac131313@redhat.com>
13635
13636 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13637 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13638
ee1f65f0
JT
136392002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13640
13641 * alpha-tdep.c (alpha_call_dummy_words): New.
13642 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13643 (CALL_DUMMY_P): Define.
13644 (CALL_DUMMY_WORDS): Define.
13645 (SIZEOF_CALL_DUMMY_WORDS): Define.
13646
98081e55
PB
136472002-01-19 Per Bothner <per@bothner.com>
13648
13649 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13650 isn't NULL, which can happen with some gcj-3.x-produced code.
13651
0d056799
JT
136522002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13653
13654 * alpha-tdep.c (alpha_register_virtual_type): New function.
13655 (alpha_init_frame_pc_first): Ditto.
13656 (alpha_fix_call_dummy): Ditto.
13657 (alpha_store_struct_return): Ditto.
13658 (alpha_extract_struct_value_address): Ditto.
13659 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13660 alpha_register_virtual_type.
13661 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13662 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13663 alpha_extract_struct_value_address.
13664 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13665 (INIT_FRAME_PC): Use init_frame_pc_noop.
13666 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13667
4604bcad
MK
136682002-01-19 Mark Kettenis <kettenis@gnu.org>
13669
13670 * i386gnu-nat.c: Include "i386-tdep.h".
13671 (fetch_fpregs): Simplify code dealing with uninitialized floating
13672 point states such that it doesn't require FP7_REGNUM.
13673
140f9984
JT
136742002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13675
abf22e64
AJ
13676 * alpha-tdep.c (frame_extra_info): New.
13677 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13678 frame->extra_info.
13679 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13680 (alpha_frame_saved_pc): Use frame->extra_info.
13681 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13682 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13683 (init_extra_frame_info): Rename to...
13684 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13685 (alpha_print_extra_frame_info): New function.
140f9984
JT
13686 (alpha_frame_locals_address): Ditto.
13687 (alpha_frame_args_address): Ditto.
abf22e64 13688 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13689 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13690 alpha_frame_args_address.
abf22e64 13691 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13692 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13693 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13694 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13695 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13696 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13697
d734c450
JT
136982002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13699
13700 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13701 (alpha_cannot_fetch_register): Ditto.
13702 (alpha_cannot_store_register): Ditto.
13703 (alpha_register_convertible): Ditto.
13704 (alpha_use_struct_convention): Ditto.
13705 * config/alpha/tm-alpha.h: Update copyright years.
13706 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13707 (INNER_THAN): Use core_addr_lessthan.
13708 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13709 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13710 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13711 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13712 (FRAME_CHAIN): Remove unnecessary cast.
13713
b4ceaee6
AC
137142002-01-18 Andrew Cagney <ac131313@redhat.com>
13715
13716 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13717 obsolete.
13718
0a65a603
AC
137192002-01-18 Andrew Cagney <ac131313@redhat.com>
13720
13721 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13722 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13723 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13724 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13725 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13726 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13727 * x86-64-linux-nat.c: Ditto.
13728
636a6dfc
JT
137292002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13730
abf22e64 13731 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13732 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13733 (REGISTER_NAME): Define.
13734
acceddb6
JT
137352002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13736
13737 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13738
ec32e4be
JT
137392002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13740
13741 * alpha-tdep.c: Update copyright years.
13742 (alpha_next_pc): New function.
13743 (alpha_software_single_step): Ditto.
13744 * config/alpha/tm-alpha.h: Add prototype for
13745 alpha_software_single_step.
13746
e771a871
JT
137472002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13748
13749 * alphabsd-nat.c: Update copyright years.
13750 (fill_gregset): Use regcache_collect.
13751 (fill_fpregset): Likewise.
13752 (fetch_inferior_registers): Only fetch integer registers
13753 if requested to do so.
13754 (store_inferior_registers): Only store integer registers
13755 if requested to do so.
13756
7708fa01
AC
137572002-01-17 Andrew Cagney <ac131313@redhat.com>
13758
13759 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13760 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13761 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13762 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13763 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13764 * config/arm/linux.mh (XDEPFILES): Delete.
13765 * config/arm/nbsd.mh (XDEPFILES): Delete.
13766 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13767 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13768 * config/i386/i386m3.mh (XDEPFILES): Delete.
13769 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13770 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13771 * config/i386/fbsd.mh (XDEPFILES): Delete.
13772 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13773 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13774 * config/i386/i386v4.mh (XDEPFILES): Delete.
13775 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13776 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13777 * config/i386/i386aix.mh (XDEPFILES): Delete.
13778 * config/i386/go32.mh (XDEPFILES): Delete.
13779 * config/i386/cygwin.mh (XDEPFILES): Delete.
13780 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13781 * config/i386/i386mach.mh (XDEPFILES): Delete.
13782 * config/i386/i386v32.mh (XDEPFILES): Delete.
13783 * config/i386/linux.mh (XDEPFILES): Delete.
13784 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13785 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13786 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13787 * config/i386/i386sco.mh (XDEPFILES): Delete.
13788 * config/i386/i386v.mh (XDEPFILES): Delete.
13789 * config/i386/nbsd.mh (XDEPFILES): Delete.
13790 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13791 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13792 * config/i386/symmetry.mh (XDEPFILES): Delete.
13793 * config/i386/obsd.mh (XDEPFILES): Delete.
13794 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13795 * config/ia64/linux.mh (XDEPFILES): Delete.
13796 * config/ia64/aix.mh (XDEPFILES): Delete.
13797 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13798 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13799 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13800 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13801 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13802 * config/m68k/linux.mh (XDEPFILES): Delete.
13803 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13804 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13805 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13806 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13807 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13808 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13809 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13810 * config/m88k/delta88.mh (XDEPFILES): Delete.
13811 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13812 * config/m88k/m88k.mh (XDEPFILES): Delete.
13813 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13814 * config/mips/linux.mh (XDEPFILES): Delete.
13815 * config/mips/irix6.mh (XDEPFILES): Delete.
13816 * config/mips/irix5.mh (XDEPFILES): Delete.
13817 * config/mips/irix4.mh (XDEPFILES): Delete.
13818 * config/mips/irix3.mh (XDEPFILES): Delete.
13819 * config/mips/decstation.mh (XDEPFILES): Delete.
13820 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13821 (NATDEPFILES): Move core-aout.o to here.
13822 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13823 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13824 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13825 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13826 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13827 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13828 * config/pa/hpux11.mh (XDEPFILES): Delete.
13829 * config/powerpc/aix.mh (XDEPFILES): Delete.
13830 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13831 * config/powerpc/linux.mh (XDEPFILES): Delete.
13832 * config/romp/rtbsd.mh: Rename XDEPFILES.
13833 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13834 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13835 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13836 * config/s390/s390.mh (XDEPFILES): Delete.
13837 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13838 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13839 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13840 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13841 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13842 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13843 * config/sparc/linux.mh (XDEPFILES): Delete.
13844 * config/vax/vaxult.mh (XDEPFILES): Delete.
13845 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13846 * Makefile.in (DEPFILES): Remove XDEPFILES.
13847
375fc983
AC
138482002-01-17 Andrew Cagney <ac131313@redhat.com>
13849
13850 * utils.c (internal_verror): Fix comments, default is yes not no.
13851 Update queries to match. Default to quit and dump core.
13852
8926118c
AC
138532002-01-17 Andrew Cagney <ac131313@redhat.com>
13854
13855 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13856 copyright.
13857 * defs.h, event-top.c, gdbcmd.h: Ditto.
13858 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13859 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13860 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13861 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13862 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13863 * mi/mi-main.c:Ditto.
13864
13865 * stack.c, symfile.c: Update copyright.
13866
45b7b345
DJ
138672002-01-17 Daniel Jacobowitz <drow@mvista.com>
13868
db728ff7
DJ
13869 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13870 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13871 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13872 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13873
db728ff7
DJ
138742002-01-17 Daniel Jacobowitz <drow@mvista.com>
13875
13876 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13877 * gdbserver/low-lynx.c (myattach): Likewise.
13878 * gdbserver/low-nbsd.c (myattach): Likewise.
13879 * gdbserver/low-sim.c (myattach): Likewise.
13880 * gdbserver/low-sparc.c (myattach): Likewise.
13881 * gdbserver/low-sun3.c (myattach): Likewise.
13882
13883 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13884
db728ff7 13885 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13886 (main): Handle "--attach".
13887
8de3c354
AC
138882002-01-16 Andrew Cagney <ac131313@redhat.com>
13889
13890 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13891 maintainer.
13892
b0129042
DJ
138932002-01-15 Daniel Jacobowitz <drow@mvista.com>
13894
13895 * c-typeprint.c (is_type_conversion_operator): Add additional
13896 check for non-conversion operators.
13897
ba8679fb 138982002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13899
13900 * linux-proc.c: Add "info proc" command, a la procfs.c.
13901 (read_mapping): New function, abstract and re-use code.
13902 (linux_find_memory_regions): Use new func read_mapping.
13903 (linux_info_proc_cmd): New function, implement "info proc".
13904 (_initialize_linux_proc): Add new command "info proc".
13905
e4f9b4d5
MS
139062002-01-15 Michael Snyder <msnyder@redhat.com>
13907
13908 * symfile.c (generic_load): Use bfd_map_over_sections method
13909 instead of manipulating bfd structure members directly.
13910 (add_section_size_callback): New function, bfd sections callback
13911 used by generic_load.
13912 (load_sections_callback): New function, bfd sections callback
13913 used by generic_load.
13914
08cf96df
EZ
139152002-01-15 Elena Zannoni <ezannoni@redhat.com>
13916
abf22e64 13917 [Based on work by Jim Blandy]
08cf96df
EZ
13918 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13919 (builtin_type_vec128): Export.
13920 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13921 types.
13922 (builtin_type_vec128): New builtin type for 128 bit vector
13923 registers.
13924 (build_gdbtypes): Initialize builtin_type_v16qi and
13925 builtin_type_v8hi. Create the vec128 register builtin type
13926 structure.
13927 (build_builtin_type_vec128): New function.
abf22e64 13928 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13929 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13930 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13931 AltiVec register to new builtin type.
13932
d7242108
DJ
139332001-01-15 Daniel Jacobowitz <drow@mvista.com>
13934
13935 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13936 to make_cv_type.
13937
4ee3352d
AC
139382002-01-14 Andrew Cagney <ac131313@redhat.com>
13939
13940 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13941 CLEAN_UP_REGISTER_VALUE.
13942 * regcache.c (supply_register): Update only call.
13943
f015b2e7
AC
139442002-01-14 Andrew Cagney <ac131313@redhat.com>
13945
13946 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13947 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13948 a29k-*-vxworks* targets as obsolete.
13949
356ae49d
MS
139502002-01-14 Michael Snyder <msnyder@redhat.com>
13951
13952 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13953 until we can resolve portability issues.
13954 * gregset.h: Remove references to fpxregs.
13955 * gcore.c (gcore_command): Initialize note_sec to NULL.
13956
ade8f45e
AC
139572002-01-13 Andrew Cagney <ac131313@redhat.com>
13958
13959 * signals.c (target_signal_to_name): Rewrite. Only use
13960 signals[].name when in bounds and non-NULL.
abf22e64 13961
89c49e7a
AC
139622002-01-13 Andrew Cagney <ac131313@redhat.com>
13963
13964 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13965 * signals.c (target_signal_to_name): Verify that SIG is within the
13966 bounds of the signals array.
13967
4daa9f9f
AC
139682002-01-13 Andrew Cagney <ac131313@redhat.com>
13969
13970 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13971
ba4bbdcb
KS
139722002-01-13 Keith Seitz <keiths@redhat.com>
13973
13974 * stack.c (print_frame_info_base): Print the frame's pc
13975 only if when print_frame_info_listing_hook is not defined.
13976
575bbeb6
KS
139772002-01-13 Keith Seitz <keiths@redhat.com>
13978
13979 * varobj.c (varobj_set_value): Make sure that there were no
13980 errors evaluating the object before attempting to set its
13981 value.
13982 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13983 so this offset adjustment is no longer necessary.
13984 (create_child): Don't set the error flag if the child is
13985 a CPLUS_FAKE_CHILD.
13986 (value_of_child): If value_fetch_lazy fails, return NULL
13987 so that callers will be notified that an error occurred.
13988 (c_value_of_variable): Delay check of variable's validity
13989 until later. We actually want all structs and unions to have
13990 the value "{...}".
13991 Do not return "???" for variables which could not be evaluated.
13992 This error condition must be returned to the caller so that it
13993 can get the error condition from gdb.
13994 (cplus_name_of_child): Adjust index for vptr before figuring
13995 out the name of the child.
13996 (cplus_value_of_child): If a child's (real) parent is not valid,
13997 don't even bother trying to give a value for it. Just return
13998 an error. Change all instances in this function.
13999 (cplus_type_of_child): If our parent is one of the "fake"
14000 parents, we need to get at the type of the real parent, and
14001 derive the child's true type using this information.
14002
b76898ab
AC
140032002-01-13 Andrew Cagney <ac131313@redhat.com>
14004
14005 From 2002-01-09 John Marshall <johnm@falch.net>:
14006 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14007 sources.redhat.com, and tweak some related URLs which had
14008 suffered from linkrot.
14009
b6649e88
AC
140102002-01-13 Andrew Cagney <ac131313@redhat.com>
14011
14012 From Jeff law:
14013 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14014 structures passed in registers.
14015
82cc5033
EZ
140162002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14017
14018 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14019 white space which prevented compilation. Reported by DSK
14020 <dsk@student.unsw.edu.au>.
14021
ba5f2f8a
MS
140222002-01-11 Michael Snyder <msnyder@redhat.com>
14023
fbd35540
MS
14024 * symfile.c (build_section_addr_info_from_section_tab):
14025 Use bfd access method instead of manipulating bfd directly.
14026 (syms_from_objfile): Ditto.
14027 (simple_overlay_update_1): Ditto.
14028 (simple_overlay_update): Ditto.
14029 (generic_load): Ditto.
14030 (overlay_unmapped_address): FIXME comment, bfd access methods.
14031 (sections_overlap): FIXME comment, bfd access methods.
14032 (pc_in_mapped_range): FIXME comment, bfd access methods.
14033 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14034 (section_is_mapped): FIXME comment, bfd access methods.
14035 (section_is_overlay): FIXME comment, bfd access methods.
14036
ba5f2f8a
MS
14037 * symfile.c (generic_load): Whitespace and long line cleanups.
14038 Remove duplicate variable, change several local variables to
14039 more appropriate data types.
14040 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14041
17df2af6
AC
140422002-01-12 Andrew Cagney <ac131313@redhat.com>
14043
14044 From Peter Schauer:
14045 * language.c (longest_local_hex_string_custom): Use phex_nz to
14046 convert NUM to a hex string.
14047
ec920329
EZ
140482002-01-12 Elena Zannoni <ezannoni@redhat.com>
14049
14050 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14051 the function.
538a76d6 14052 Update Copyright year.
ec920329 14053
3abd2e01
AC
140542002-01-12 Andrew Cagney <ac131313@redhat.com>
14055
14056 * language.c (longest_raw_hex_string): Delete unused function.
14057
b21b22e0
PS
140582002-01-11 Petr Sorfa <petrs@caldera.com>
14059
14060 * MAINTAINERS (write-after-approval): Add myself.
14061 * dwarf2read.c (read_tag_string_type): Handling of
14062 DW_AT_byte_size.
14063 (read_tag_string_type): FORTRAN fix to prevent propagation of
14064 first string size.
14065 (set_cu_language): Handling of DW_LANG_Fortran95
14066
747fe712
RE
140672002-01-11 Richard Earnshaw <rearnsha@arm.com>
14068
14069 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14070 GETPID(inferior_ptid).
14071 (store_inferior_registers): Likewise.
14072
f1bea926
JM
140732002-01-10 Jason Merrill <jason@redhat.com>
14074
14075 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14076 Fix DW_OP_minus.
14077
ae940673
AC
140782002-01-10 Andrew Cagney <ac131313@redhat.com>
14079
14080 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14081 and bfd/elf32-sh-nbsd.c.
14082
00546b04
MS
140832002-01-10 Michael Snyder <msnyder@redhat.com>
14084
352ed7b4
MS
14085 * NEWS: Mention --pid and corefile/proc-id behavior change.
14086
c18be923
MS
14087 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14088 * gcore.c: Include cli/cli-decode.h instead of command.h.
14089
00546b04
MS
14090 * main.c (captured_main): Add new command line option "--pid".
14091 If the second command line argument (following the symbol-file)
14092 begins with a digit, try to attach to it before trying to open
14093 it as a corefile.
14094 (print_gdb_help): Document the "--pid" argument.
14095
db60ec62
EZ
140962002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14097
14098 * completer.c (command_completer): New function.
14099
14100 * completer.h <command_completer>: Add prototype.
14101
14102 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14103 completer for the "help" command.
14104
39c22d1a
JM
141052002-01-09 Jason Merrill <jason@redhat.com>
14106
14107 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14108
c564377f
MS
141092002-01-09 Michael Snyder <msnyder@redhat.com>
14110
975aec09
MS
14111 * i386-linux-nat.c (fill_fpxregset): Make global.
14112 (store_fpxregset): Ditto.
14113
db4a10fa
MS
14114 * gregset.h (gdb_fpxregset_t): Define.
14115 (supply_fpxregset): Prototype.
14116 (fill_fpxregset): Prototype.
14117
c564377f
MS
14118 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14119
c3d45d70
RE
141202002-01-09 Richard Earnshaw <rearnsha@arm.com>
14121
14122 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14123 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14124 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14125
fcc87af1
AC
141262002-01-09 Andrew Cagney <ac131313@redhat.com>
14127
14128 * MAINTAINERS: Update target maintainer rules so that any
14129 Maintainer can approve a tested patch for a maintenance-only
14130 target.
14131
dd96c05b
RE
141322002-01-09 Richard Earnshaw <rearnsha@arm.com>
14133
d4297db9 14134 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 14135
d4297db9 14136 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
14137 IN_SIGTRAMP.
14138
145fdc6e
MS
141392002-01-08 Michael Snyder <msnyder@redhat.com>
14140
14141 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14142 real name of the executable, rather than the /proc name.
14143
be4d1333
MS
141442002-01-03 Michael Snyder <msnyder@redhat.com>
14145
14146 Implement a "generate-core-file" command in gdb, save target state.
14147 * gcore.c: New file. Implement new command 'generate-core-file'.
14148 Save a corefile image of the current state of the inferior.
14149 * linux-proc.c: Add linux-specific code for saving corefiles.
14150 * target.h (struct target_ops): Add new target vectors for saving
14151 corefiles; to_find_memory_regions and to_make_corefile_notes.
14152 (target_find_memory_regions): New macro.
14153 (target_make_corefile_notes): New macro.
14154 * target.c (update_current_target): Inherit new target methods.
14155 (dummy_find_memory_regions): New place-holder method.
14156 (dummy_make_corefile_notes): New place-holder method.
14157 (init_dummy_target): Initialize new dummy target vectors.
14158 * exec.c (exec_set_find_memory_regions): New function.
14159 Allow the exec_ops vector for memory regions to be taken over.
14160 (exec_make_note_section): New function, target vector method.
14161 * defs.h (exec_set_find_memory_regions): Export prototype.
14162 * procfs.c (proc_find_memory_regions): New function, corefile method.
14163 (procfs_make_note_section): New function, corefile method.
14164 (init_procfs_ops): Set new target vector pointers.
14165 (find_memory_regions_callback): New function.
14166 (procfs_do_thread_registers): New function.
14167 (procfs_corefile_thread_callback): New function.
14168 * sol-thread.c (sol_find_memory_regions): New function.
14169 (sol_make_note_section): New function.
14170 (init_sol_thread_ops): Initialize new target vectors.
14171 * inftarg.c (inftarg_set_find_memory_regions): New function.
14172 Allow to_find_memory_regions vector to be taken over.
14173 (inftarg_set_make_corefile_notes): New function.
14174 Allow to_make_corefile_notes vector to be taken over.
14175 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14176 interface layer if not target_has_execution (may be a corefile).
14177 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14178 * config/sparc/sun4sol2.mh: Ditto.
14179 * config/alpha/alpha-linux.mh: Ditto.
14180 * config/arm/linux.mh: Ditto.
14181 * config/i386/x86-64linux.mh: Ditto.
14182 * config/ia64/linux.mh: Ditto.
14183 * config/m68k/linux.mh: Ditto.
14184 * config/mips/linux.mh: Ditto.
14185 * config/powerpc/linux.mh: Ditto.
14186 * config/sparc/linux.mh: Ditto.
14187
c6b92abd
MS
141882002-01-07 Michael Snyder <msnyder@redhat.com>
14189
14190 * arm-linux-nat.c: Remove references to regcache.c internal data
14191 (registers[] and register_valid[]).
14192
4b09dc8c
MS
141932002-01-07 Michael Snyder <msnyder@redhat.com>
14194
abf22e64
AJ
14195 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14196 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
14197 symbol file and shlibs.
14198 * Makefile.in: Add rule for linux-proc.o.
14199 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14200 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14201 * config/arm/linux.mh: Ditto.
14202 * config/i386/linux.mh: Ditto.
14203 * config/i386/x86-64linux.mh: Ditto.
14204 * config/ia64/linux.mh: Ditto.
14205 * config/m68k/linux.mh: Ditto.
14206 * config/mips/linux.mh: Ditto.
14207 * config/powerpc/linux.mh: Ditto.
14208 * config/sparc/linux.mh: Ditto.
14209
c25b74ac
PM
142102002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14211
14212 * win32-nat.c: Add i386-tdep.h dependency.
14213
94cd915f
MS
142142002-01-07 Michael Snyder <msnyder@redhat.com>
14215
c7cccb76
MS
14216 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14217 instead of bfd_get_arch_size. Don't bail out just because
14218 there's no exec_bfd.
abf22e64 14219
34c0bd93
MS
14220 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14221 * p-valprint.c (pascal_object_print_value): Ditto.
14222 * somread.c (som_symtab_read): Ditto.
14223 * symfile.c (simple_free_overlay_region_table): Ditto.
14224 * valops.c (value_assign): Ditto.
14225
21c1c920
MS
14226 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14227 use tilde_expand and strerror for opening save-tracepoints file.
14228
5bbd998e
MS
14229 * thread-db.c (thread_db_new_objfile): Indendation fix.
14230
94cd915f
MS
14231 * infptrace.c (GDB_MAX_ALLOCA): New define.
14232 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 14233 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
14234 can be overridden with whatever value is appropriate to the host).
14235 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14236 alloca to allocate potentially large buffer.
14237 * rs6000-nat.c (child_xfer_memory): Ditto.
14238 * symm-nat.c (child_xfer_memory): Ditto.
14239 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14240
494e8a93
JSC
142412002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14242
14243 From Nick Clifton <nickc@redhat.com>
14244 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14245
d0e1d48e
MS
142462002-01-07 Michael Snyder <msnyder@redhat.com>
14247
abf22e64 14248 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
14249 Don't use exec_bfd if it's NULL.
14250
290b2c7a
MK
142512002-01-06 Mark Kettenis <kettenis@gnu.org>
14252
abf22e64 14253 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 14254
aef21287
AC
142552002-01-06 Andrew Cagney <ac131313@redhat.com>
14256
14257 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14258 * gnu-nat.c: Ditto.
14259
30efa627
AC
142602002-01-06 Andrew Cagney <ac131313@redhat.com>
14261
14262 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14263 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14264 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14265 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14266 z8k-coff have not been multi-arched. Update z8k-coff build
14267 status.
14268
9b4ff276
AC
142692002-01-06 Andrew Cagney <ac131313@redhat.com>
14270
14271 * MAINTAINERS: Mark a29k target as obsolete.
14272 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14273 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14274 comments.
14275 * NEWS: Note that a29k targets are obsolete.
14276 * a29k-tdep.c: Mark as obsolete.
14277 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14278 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14279 a29k-*-vxworks* targets as obsolete.
14280 * remote-adapt.c: Obsolete.
14281 * remote-eb.c: Obsolete.
14282 * remote-mm.c: Obsolete.
14283 * remote-udi.c: Obsolete.
14284 * config/a29k/a29k-udi.mt: Obsolete.
14285 * config/a29k/a29k.mt: Obsolete.
14286 * config/a29k/tm-a29k.h: Obsolete.
14287 * config/a29k/tm-vx29k.h: Obsolete.
14288 * config/a29k/vx29k.mt: Obsolete.
14289
a9011d31
AC
142902002-01-05 Andrew Cagney <ac131313@redhat.com>
14291
14292 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14293 with BFD_ENDIAN_BIG.
14294
9299404e
AC
142952002-01-05 Andrew Cagney <ac131313@redhat.com>
14296
14297 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14298 * configure, config.in: Re-generate.
14299 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14300 * defs.h: Do not include <endian.h>.
14301
7e89e357
JT
143022002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14303
14304 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14305 * config.in: Regenerate.
14306 * configure.in: Update copyright years.
14307 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14308 * configure: Regenerate.
14309 * i386bsd-nat.c: Update copyright years.
14310 (fill_gregset): Use regcache_collect.
14311 (fetch_inferior_registers): Only fetch integer registers
14312 if requested to do so. Add support for XMM registers
14313 using PT_GETXMMREGS.
14314 (store_inferior_registers): Only store integer registers
14315 if requested to do so. Add support for XMM registers
14316 using PT_SETXMMREGS.
14317 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14318 (store_inferior_registers): Remove.
14319 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14320 (fetch_elfcore_registers): New function.
14321 (i386nbsd_elfcore_fns): New.
14322 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14323 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14324 i386bsd-nat.o.
14325 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14326 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14327 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14328 * config/i386/tm-nbsd.h: Update copyright years.
14329 (HAVE_SSE_REGS): Define.
14330 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14331 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14332 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14333 (SIGCONTEXT_PC_OFFSET): Remove.
14334 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14335
a752853e
AC
143362002-01-05 Andrew Cagney <ac131313@redhat.com>
14337
14338 * configure.tgt: Remove powerpc-*-macos* target.
14339 * config/m68k/xm-mpw.h: Delete file.
14340 * config/xm-mpw.h: Delete file.
14341 * ser-mac.c: Delete file.
14342 * mpw-make.sed: Delete file.
14343 * mpw-config.in: Delete file.
14344 * mac-xdep.c: Delete file.
14345 * mac-gdb.r: Delete file.
14346 * mac-defs.h: Delete file.
14347 * mac-nat.c: Delete file.
14348 * config/powerpc/macos.mh: Delete file.
14349 * config/powerpc/macos.mt: Delete file.
14350 * config/powerpc/nm-macos.h: Delete file.
14351 * config/powerpc/tm-macos.h: Delete file.
14352 * source.c (openp, open_source_file): Remove obsolete code.
14353 * top.c (gdb_readline): Ditto.
14354 * utils.c (query): Ditto.
14355 * event-top.c (display_gdb_prompt): Ditto.
14356 * Makefile.in (ser-mac.o): Delete obsolete target.
14357 * NEWS: Update.
14358
d7449b42
AC
143592002-01-04 Andrew Cagney <ac131313@redhat.com>
14360
14361 * defs.h (BIG_ENDIAN): Delete macro definition.
14362 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14363 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14364 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14365 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14366 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14367 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14368 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14369 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14370 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14371 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14372 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14373 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14374 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14375 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14376 * gdbarch.c: Re-generate.
14377
356374e8
DJ
143782002-01-04 Daniel Jacobowitz <drow@mvista.com>
14379
14380 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14381 for core files.
14382
a2b8f8f8
JT
143832002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14384
14385 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14386
12466af9
AC
143872002-01-04 Andrew Cagney <ac131313@redhat.com>
14388
14389 * value.h (value_ptr): Delete typedef.
14390
3549ab40
JT
143912002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14392
14393 * i386nbsd-nat.c: Update copyright years.
14394 Include i386-tdep.h.
14395
fedbd091
EZ
143962002-01-04 Elena Zannoni <ezannoni@redhat.com>
14397
14398 * stabsread.c: Update copyright years.
14399
14400 From Debashis Mahata <debashis.mahata@wipro.com>:
14401 (read_struct_fields): Deal with Sun C compiler erroneous stab
14402 output for structs and unions.
fec8b34f 14403 Fix PR gdb/269.
fedbd091 14404
eb43544b
DJ
144052002-01-04 Daniel Jacobowitz <drow@mvista.com>
14406
14407 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14408 prototype.
14409
1514d34e
DJ
144102002-01-04 Daniel Jacobowitz <drow@mvista.com>
14411
14412 * cp-abi.c: Fix whitespace.
14413 (baseclass_offset): New wrapper function.
14414 * cp-abi.h (baseclass_offset): Add prototype.
14415 (struct cp_abi_ops): Add baseclass_offset pointer.
14416
14417 * valops.c (vb_match): Move to...
14418 * gnu-v2-abi.c (vb_match): here.
14419 * valops.c (baseclass_offset): Move to...
14420 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14421
14422 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14423
14424 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14425 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14426 * hpacc-abi.c (init_hpacc_ops): Likewise.
14427
7f8c9282
DJ
144282002-01-04 Daniel Jacobowitz <drow@mvista.com>
14429
14430 * valops.c (find_overload_match): Accept obj as a
14431 reference parameter. Update it before returning.
14432 * value.h (find_overload_match): Update prototype.
14433 * eval.c (evaluate_subexp_standard): Pass object to
14434 find_overload_match by reference.
14435
f23631e4
AC
144362002-01-03 Andrew Cagney <ac131313@redhat.com>
14437
14438 * valarith.c: Replace value_ptr with struct value pointer. Remove
14439 register attribute from value declarations.
14440 * valops.c: Ditto.
14441 * value.h: Ditto.
14442 * scm-lang.c (scm_lookup_name): Ditto.
14443
79e10fab 144442002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 14445
79e10fab
AC
14446 Abstract the functionality of iterating over mapped memory
14447 regions into a general purpose iterator function.
abf22e64 14448 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14449 iterator for memory sections.
14450 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14451 (solib_mappings_callback): New function, callback for above.
14452 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14453 (info_mappings_callback): New function, callback for above.
14454
14455 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14456
c5ad026a
MK
144572002-01-01 Mark Kettenis <kettenis@gnu.org>
14458
d2a7c97a
MK
14459 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14460 * i386-tdep.c: Include "elf-bfd.h".
14461 (process_note_abi_tag_sections): New function.
14462 (i386_gdbarch_init): Add code to recognize various OS/ABI
14463 combinations.
14464
c5ad026a
MK
14465 * maint.c (_initialize_maint_cmds): Add missing \ in
14466 string-literal.
14467
a1a5b71e 14468For older changes see ChangeLog-2001
c906108c
SS
14469\f
14470Local Variables:
14471mode: change-log
14472left-margin: 8
14473fill-column: 74
14474version-control: never
14475End:
This page took 0.95587 seconds and 4 git commands to generate.