2003-08-04 Andrew Cagney <cagney@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2003-08-04 Andrew Cagney <cagney@redhat.com>
2
3 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4 (register_gdbarch_data): Delete "free" parameter. Update
5 comments.
6 * gdbarch.h, gdbarch.c: Re-generate.
7 * reggroups.c (_initialize_reggroup): Update.
8 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9 * frame-base.c (_initialize_frame_base): Update.
10 * frame-unwind.c (_initialize_frame_unwind): Update.
11 * user-regs.c (_initialize_user_regs): Update.
12 * remote.c (_initialize_remote): Update.
13 * regcache.c (_initialize_regcache): Update.
14
15 * regcache.c (xfree_regcache_descr): Delete function.
16 (_initialize_regcache): Update call to register_gdbarch_data.
17 (init_regcache_descr, init_legacy_regcache_descr): Use
18 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
19
20 * remote.c (free_remote_state): Delete function.
21 (_initialize_remote): Update register_gdbarch_data.
22 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
23 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
24
25 2003-08-04 Andrew Cagney <cagney@redhat.com>
26
27 * reggroups.c (struct reggroup_el): Define.
28 (struct reggroups): Delete field "nr_group". Replace array
29 "group" with a "first" to "last" linked list.
30 (reggroups_init): Update. Allocate using gdbarch's obstack.
31 (reggroups_free): Delete function.
32 (add_group): Update. Add "el" parameter.
33 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
34 (default_groups): Update.
35 (reggroup_next): Replace reggroups.
36 (reggroups_dump): Update.
37 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
38 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
39 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
40
41 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
42
43 * Makefile.in (tui-interp.o): Update dependencies.
44
45 2003-08-04 David Carlton <carlton@kealia.com>
46
47 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
48 to internal_error call.
49 * source.c (forward_search_command): Add "%s" format argument.
50 (reverse_search_command): Ditto.
51 * top.c (quit_confirm): Ditto.
52 * cli/cli-setshow.c (do_setshow_command): Ditto.
53 * cp-valprint.c (cp_print_class_method): Replace
54 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
55 (cp_print_class_member): Ditto.
56 * event-top.c (command_line_handler): Ditto.
57 * linux-proc.c (linux_info_proc_cmd): Ditto.
58 * p-typeprint.c (pascal_type_print_base): Ditto.
59 * p-valprint.c (pascal_object_print_class_method): Ditto.
60 (pascal_object_print_class_member): Ditto.
61 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
62 * remote.c (remote_cisco_section_offsets): Ditto.
63 * top.c (command_line_input): Ditto.
64 * utils.c (vwarning,error_stream,quit): Ditto.
65 * valprint.c (print_floating,print_binary_chars)
66 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
67
68 2003-08-04 Andrew Cagney <cagney@redhat.com>
69
70 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
71
72 2003-08-02 Andrew Cagney <cagney@redhat.com>
73
74 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
75 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
76 amd64fbsd-nat.c.
77
78 2003-08-02 Andrew Cagney <cagney@redhat.com>
79
80 * Makefile.in: Update all dependencies and definitions.
81
82 2003-08-02 Adam Fedor <fedor@gnu.org>
83
84 * linespec.c (is_objc_method_format): New function
85 (decode_line_1, locate_first_half): Use it.
86 Fixes PR objc/1298
87
88 2003-08-01 Andrew Cagney <cagney@redhat.com>
89
90 * NEWS: Mention that m32r is multi-arch.
91 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
92 * configure.tgt: Recognize m32r-*-*.
93 * config/m32r/tm-m32r.h: Delete file.
94 * config/m32r/m32r.mt: New file.
95 * m32r-rom.c (m32r_upload_command): Use hostent only when
96 gethostname succeeds, in order to avoid a compilation
97 warning.
98 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
99 compiler warning.
100
101 2003-08-01 Michael Snyder <msnyder@redhat.com>
102
103 * sh-tdep.c (sh_frame_align): New gdbarch method.
104 (sh_gdbarch_init): Set up frame_align method.
105
106 2003-07-31 Michael Snyder <msnyder@redhat.com>
107
108 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
109 which is already covered by the new frames infrastructure.
110
111 2003-07-31 Andrew Cagney <cagney@redhat.com>
112
113 * user-regs.c (struct user_reg): Add "next" link.
114 (struct user_regs): Replace "user" with "first" and "last" links.
115 (append_user_reg): Add pre-allocated "reg" parameter.
116 (builtin_user_regs): Provide initial value for "last".
117 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
118 (user_regs_init): Allocate memory from the gdbarch obstack.
119 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
120 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
121 linked list.
122 (usernum_to_user_reg): New function.
123 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
124 (value_of_user_reg): Use usernum_to_user_reg.
125 (user_regs_free): Delete function.
126 (_initialize_user_regs): Update register_gdbarch_data call.
127
128 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
129
130 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
131
132 2003-07-30 Michael Snyder <msnyder@redhat.com>
133
134 * value.h (value_being_returned): Add a struct_addr argument.
135 * infcall.c (call_function_by_hand): Pass struct_addr to
136 value_being_returned.
137 * infcmd.c (print_return_value): Pass zero as struct_addr.
138 * values.c (value_being_returned): If struct_addr is passed,
139 use it instead of trying to recover it from the inferior.
140
141 2003-07-30 Kevin Buettner <kevinb@redhat.com>
142
143 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
144 the prologue analyzer won't need to attempt to extract the pc
145 value from the woefully incomplete dummy frame.
146 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
147 possible. Disable code which modifies the frame.
148
149 2003-07-28 Andrew Cagney <cagney@redhat.com>
150
151 * annotate.c (annotate_breakpoints_headers): Restrict annotation
152 to level 2.
153 (annotate_breakpoints_table, annotate_record): Ditto.
154 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
155 (annotate_field_name_end, annotate_field_value): Ditto.
156 (annotate_field_end, annotate_frame_source_begin): Ditto.
157 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
158 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
159 (annotate_frame_begin, annotate_frame_function_name): Ditto.
160 (annotate_frame_address_end, annotate_frame_address): Ditto.
161 (annotate_frame_args, annotate_frame_end): Ditto.
162 (annotate_frame_where, annotate_arg_begin): Ditto.
163 (annotate_arg_name_end, annotate_arg_value): Ditto.
164 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
165 (annotate_function_call, annotate_signal_name): Ditto.
166 (annotate_signal_string, annotate_signal_name_end): Ditto.
167 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
168 (annotate_value_begin, annotate_value_history_value): Ditto.
169 (annotate_value_history_end, annotate_value_end): Ditto.
170 (annotate_display_begin, annotate_display_number_end): Ditto.
171 (annotate_display_format, annotate_display_expression): Ditto.
172 (annotate_display_expression_end, annotate_display_value): Ditto.
173 (annotate_display_end, annotate_array_section_begin): Ditto.
174 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
175 (annotate_elt, annotate_array_section_end): Ditto.
176
177 2003-07-28 Andrew Cagney <cagney@redhat.com>
178
179 * regcache.c (struct regcache_descr): Update comments on
180 nr_raw_registers.
181 (init_legacy_regcache_descr): Don't set nr_raw_registers or
182 sizeof_raw_register_valid_p.
183 (init_regcache_descr): Set nr_raw_registers and
184 sizeof_raw_register_valid_p before calling
185 init_legacy_regcache_descr.
186
187 2003-07-28 Andrew Cagney <cagney@redhat.com>
188
189 * mips-tdep.c (print_gp_register_row): Print the GPR's register
190 MOD NUM_REGS.
191
192 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
193
194 * thread.c (info_threads_command): Use get_selected_frame ().
195 Check that there is at least one non-sentinel frame.
196
197 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
198
199 * m68hc11-tdep.c (struct frame_extra_info): Remove.
200 (m68hc11_pop_frame): Remove.
201 (m68hc11_frame_saved_pc): Remove.
202 (m68hc11_frame_chain): Remove.
203 (m68hc11_frame_init_saved_regs): Remove.
204 (m68hc11_init_extra_frame_info): Remove.
205 (m68hc11_store_struct_return): Remove.
206 (m68hc11_saved_pc_after_call): Remove.
207
208 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
209
210 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
211 frame unwind information.
212 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
213 and adapted for frame unwinding.
214 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
215 (m68hc11_unwind_pc): New function.
216 (m68hc11_frame_unwind_cache): New function to analyze frames.
217 (m68hc11_frame_this_id): New function to create new frame struct.
218 (m68hc11_frame_prev_register): New function to unwind a register from
219 the frame.
220 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
221 (m68hc11_frame_p): New function for the above.
222 (m68hc11_frame_base_address): New function to return fp of frame.
223 (m68hc11_frame_args_address): Update for frame.
224 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
225 (m68hc11_unwind_sp): New function.
226 (m68hc11_unwind_dummy_id): New function.
227 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
228 calls.
229
230 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
231
232 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
233 (m68hc11_guess_from_prologue): Advance the pc and frame size only
234 when we are beyond the current pc.
235
236 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
237
238 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
239 from m68hc11_push_arguments.
240 (m68hc11_push_arguments): Remove.
241 (m68hc11_push_return_address): Remove.
242 (m68hc11_gdbarch_init): Install the above; remove above deprecated
243 handlers; remove deprecated_extra_stack_alignment_needed.
244
245 2003-07-27 Andrew Cagney <cagney@redhat.com>
246
247 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
248 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
249 REAL_PC and not the pointer.
250 * hppa-hpux-tdep.c: Include frame.h
251
252 2003-07-27 Andrew Cagney <cagney@redhat.com>
253
254 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
255 GDB_MULTI_ACH_PARTIAL.
256
257 2003-07-27 Andrew Cagney <cagney@redhat.com>
258
259 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
260 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
261 operator at start and not end of line.
262 (decode_prologue): Ditto.
263 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
264 frame_unwind_register_unsigned instead of
265 frame_unwind_unsigned_register.
266 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
267 read_register.
268 (m32r_push_dummy_call): Use register_size instead of
269 REGISTER_RAW_SIZE.
270 (m32r_frame_sniffer): Replace m32r_frame_p.
271 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
272 * m32r-rom.c (report_transfer_performance): Delete extern
273 declaration.
274 (m32r_load, m32r_upload_command): Use print_transfer_performance
275 instead of report_transfer_performance.
276 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
277 / add_show_from_set.
278
279 2003-07-26 Andrew Cagney <cagney@redhat.com>
280
281 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
282 store_return_value and extract_struct_value_address.
283
284 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
285
286 PR c++/1267
287 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
288 NULL, default to the section containing PC.
289
290 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
291
292 * NEWS: Mention "regs" deprecated for m68hc11 too.
293
294 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
295 (m68hc11_print_register): New function to print out one register.
296 (m68hc11_print_registers_info): New function to print registers.
297 (show_regs): Deprecate and use the above.
298 (m68hc11_gdbarch_init): Install the print_registers_info.
299
300 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
301
302 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
303 that we have a SIGTRAP before returning non-zero.
304
305 2003-07-23 Michal Ludvig <mludvig@suse.cz>
306 Elena Zannoni <ezannoni@redhat.com>
307
308 * linespec.c (decode_line_2): Avoid crash if
309 find_function_start_sal() returns empty record.
310
311 2003-07-23 Andreas Schwab <schwab@suse.de>
312
313 * ia64-tdep.c (ia64_print_insn): New function.
314 (ia64_gdbarch_init): Set print_insn to it.
315 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
316 deprecated_tm_print_insn_info.
317
318 2003-07-22 Michael Snyder <msnyder@redhat.com>
319
320 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
321 handle 8-bit returns (long long).
322 (h8300h_extract_return_value): Ditto.
323 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
324
325 2003-07-22 Andrew Cagney <cagney@redhat.com>
326
327 * gdbarch.c Include "gdb_obstack.h".
328 (struct gdbarch): Add an "obstack".
329 (alloc_gdbarch_data): Allocate the gdbarch data using
330 GDBARCH_OBSTACK_CALLOC.
331 (free_gdbarch_data): Delete function.
332 (gdbarch_obstack_zalloc): New function.
333 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
334 Assert that the architecture is not initialized.
335 (gdbarch_alloc): Allocate an obstack, allocate the architecture
336 vector from the obstack.
337 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
338 architecture obstack.
339 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
340 (set_gdbarch_data): Assert that the data is not initialized.
341 (struct gdbarch_data): Delete member "free".
342 (register_gdbarch_data): Do not initialize "free".
343 * gdbarch.h, gdbarch.c: Re-generate.
344
345 2003-07-22 Andrew Cagney <cagney@redhat.com>
346
347 * configure.in (build_warnings): Add -Wformat-nonliteral.
348 * configure: Re-generate.
349
350 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
351
352 * dwarf2loc.c (locexpr_describe_location): Fix typos.
353
354 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
355
356 * findvar.c (read_var_value): Remove case for thread local storage
357 variables. It is now entirely handled by the dwarf2 location
358 expression code.
359 * printcmd.c (address_info): Ditto.
360 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
361 enumeration value.
362 (struct symbol): Remove objfile field, which was used by
363 LOC_THREAD_LOCAL_STATIC only.
364 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
365 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
366 usage of objfile pointer.
367 * dwarf2loc.c (locexpr_describe_location): Add case to handle
368 thread local variables.
369 Add include of objfiles.h.
370 * dwarf2expr.c (execute_stack_op): Add comments about thread local
371 storage variables.
372 * Makefile.in (dwarf2loc.o): Update dependencies.
373
374 2003-07-22 Andrew Cagney <cagney@redhat.com>
375
376 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
377 get_frame_base.
378 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
379 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
380 (struct value): Add opaque declaration.
381 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
382
383 2003-07-21 Andrew Cagney <cagney@redhat.com>
384
385 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
386 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
387
388 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
389
390 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
391 regcache_cooked_read_unsigned instead of read_register.
392 (m68hc11_saved_pc_after_call): Likewise.
393 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
394 instead of write_register.
395 (m68hc11_register_type): New function.
396 (m68hc11_register_virtual_type): Remove.
397 (m68hc11_store_return_value): Convert to use the regcache.
398 (m68hc11_extract_struct_value_address): Likewise.
399 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
400 m68hc11_register_type; undeprecate store_return_value and
401 extract_struct_value_address.
402
403 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
404
405 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
406 and translate to use regcache.
407 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
408
409 2003-07-18 Andrew Cagney <cagney@redhat.com>
410
411 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
412 * gdbarch.h, gdbarch.c: Re-generate.
413 * i386-tdep.c (i386_gdbarch_init): Do not set
414 DWARF2_BUILD_FRAME_INFO.
415 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
416 unconditionally.
417 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
418 DWARF2_BUILD_FRAME_INFO.
419
420 2003-07-18 Andrew Cagney <cagney@redhat.com>
421
422 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
423 * disasm.c (gdb_disassemble_info): Initilize di.arch.
424
425 2003-07-18 Andrew Cagney <cagney@redhat.com>
426
427 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
428 frame_unwind_address_in_block, instead of frame_pc_unwind.
429 (dwarf2_frame_cache): Ditto.
430
431 2003-07-18 Andrew Cagney <cagney@redhat.com>
432
433 * user-regs.h (struct gdbarch): Declare opaque.
434 * ui-out.h (struct ui_file): Declare opaque.
435 * dwarf2-frame.h (struct frame_info): Declare opaque.
436
437 2003-07-18 Kris Warkentin <kewarken@qnx.com>
438
439 * nto-procfs.c: Clean ARI hits. Change #include <..> to
440 #include "...".
441 (procfs_meminfo): Change strerror to safe_strerror.
442 (procfs_can_run): Remove K&R badness.
443
444 2003-07-17 Michael Snyder <msnyder@redhat.com>
445
446 * remote-sim.c: Comment typo fix.
447
448 2003-07-17 Andrew Cagney <cagney@redhat.com>
449
450 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
451 configure.
452 * sparc-tdep.c (sparc_intreg_size): Make non-static.
453 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
454 GDB_MULTI_ARCH_PARTIAL.
455
456 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
457
458 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
459 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
460 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
461
462 2003-07-16 Theodore A. Roth <troth@openavr.org>
463
464 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
465 found.
466 (avr_frame_unwind_cache): Don't unwind FP for main.
467 Update a comment.
468 Save the computed prev_sp.
469 (avr_saved_regs_unwinder): Remove function.
470 (avr_frame_prev_register): Use PC unwind logic from
471 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
472
473 2003-07-16 Andrew Cagney <cagney@redhat.com>
474
475 * frame-base.h (frame_base_p_ftype): Delete definition.
476 (frame_base_append_predicate): Delete declaration.
477 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
478 (frame_unwind_append_predicate): Delete declaration.
479 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
480 (append_predicate): Delete parameter "p".
481 (frame_unwind_append_predicate): Delete function.
482 (frame_unwind_append_sniffer): Update call to append_predicate.
483 (frame_unwind_free): Delete function.
484 (_initialize_frame_unwind): Pass NULL as "free" to
485 register_gdbarch_data.
486 (frame_unwind_init): Append the dummy_frame_sniffer.
487 (frame_unwind_find_by_frame): Simplify.
488 * frame-base.c (struct frame_base_table): Delete field "p".
489 (append_predicate): Delete parameter "p".
490 (frame_base_append_predicate): Delete function.
491 (frame_base_append_sniffer): Update call to append_predicate.
492 (frame_base_free): Delete function.
493 (frame_base_find_by_frame): Simplify.
494 (_initialize_frame_base): Pass NULL as "free" to
495 register_gdbarch_data.
496 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
497 (x86_64_sigtramp_frame_sniffer): Replace
498 "x86_64_sigtramp_frame_p".
499 (x86_64_init_abi): Set the frame unwind sniffers.
500 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
501 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
502 (m68k_gdbarch_init): Set the frame unwind sniffers.
503 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
504 "i386_sigtramp_frame_p".
505 (i386_frame_sniffer): Replace "i386_frame_p".
506 (i386_gdbarch_init): Set the frame unwind sniffers.
507 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
508 (avr_gdbarch_init): Set the frame unwind sniffers.
509 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
510 "alpha_sigtramp_frame_p"
511 (alpha_heuristic_frame_sniffer): Replace
512 "alpha_heuristic_frame_p".
513 (alpha_gdbarch_init): Set the frame unwind sniffers.
514 (alpha_dwarf2_init_abi): Ditto.
515 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
516 "alpha_debug_frame_p".
517 (alpha_mdebug_frame_base_sniffer): Replace
518 "alpha_mdebug_frame_base_p".
519 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
520 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
521 (d10v_gdbarch_init): Set the frame unwind sniffer.
522 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
523 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
524 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
525 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
526 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
527 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
528
529 2003-07-16 Michael Snyder <msnyder@redhat.com>
530
531 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
532 should go thru sh_dsp_register_sim_regno, else the dsp regs
533 will not get the right values.
534
535 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
536
537 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
538 deprecated_store_floating by call to store_typed_floating.
539 (sh_sh4_register_convert_to_raw): Substitute call to
540 deprecated_extract_floating by call to extract_typed_floating.
541
542 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
543
544 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
545
546 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
547
548 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
549 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
550 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
551 as possible.
552 (do_pseudo_register): Remove.
553 (sh_push_dummy_code): New function.
554 (sh64_store_struct_return): Rename from sh_store_struct_return.
555 Only called for sh64 now.
556 (sh_extract_struct_value_address): Regcache'ify.
557 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
558 and accomodate new tasks.
559 (sh64_push_return_address): Rename from sh_push_return_address.
560 Only called for sh64 now.
561 (sh_default_extract_return_value): Rename from sh_extract_return_value.
562 Regcache'ify.
563 (sh3e_sh4_extract_return_value): Regcache'ify.
564 (sh_default_store_return_value): Ditto.
565 (sh3e_sh4_store_return_value): Ditto.
566 (sh_default_register_byte): Remove.
567 (sh_sh4_register_byte): Remove.
568 (sh_default_register_raw_size): Remove.
569 (sh_sh4_register_raw_size): Remove.
570 (sh_register_virtual_size): Remove.
571 (sh_sh3e_register_virtual_type): Remove.
572 (sh_sh3e_register_type): New function.
573 (sh_sh4_register_virtual_type): Remove.
574 (sh_sh4_register_type): New function.
575 (sh_default_register_virtual_type): Remove.
576 (sh_default_register_type): New function.
577 (do_fv_register_info): Add parameters to accomodate call from
578 sh_print_registers_info.
579 (do_dr_register_info): Ditto.
580 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
581 Add parameters to accomodate call from sh_print_registers_info.
582 (sh_do_fp_register): Ditto.
583 (sh64_do_pseudo_register): Call do_dr_register_info,
584 do_fv_register_info and sh_do_fp_register with default parameters.
585 (sh_do_register): Add parameters to accomodate call from
586 sh_print_registers_info.
587 (sh_print_register): Ditto.
588 (sh_print_registers_info): Rename from sh_do_registers_info.
589 Add parameters to be used as gdbarch_print_registers_info
590 implementation. Accomodate removed do_pseudo_register function
591 pointer.
592 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
593 function pointer. Call sh_print_register with default parameters.
594 (sh64_do_registers_info): Call sh_print_registers_info instead of
595 sh_do_registers_info.
596 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
597 detection of deprecated vs. non-deprecated functionality.
598 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
599 function pointer assignments by direct function calls.
600
601 2003-07-15 Andrew Cagney <cagney@redhat.com>
602
603 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
604 (frame_register_unwind, create_new_frame): Ditto.
605 (legacy_get_prev_frame, get_frame_type): Ditto.
606 (get_frame_base_address): Use frame_base_find_by_frame.
607 (get_frame_locals_address): Use frame_base_find_by_frame.
608 (get_frame_args_address): Use frame_base_find_by_frame.
609 * frame-base.h (frame_base_sniffer_ftype): Declare.
610 (frame_base_append_sniffer): Declare.
611 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
612 * frame-base.c (append_predicate): Add a "sniffer" parameter.
613 (frame_base_append_sniffer): New function.
614 (frame_base_append_predicate): Add a NULL sniffer.
615 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
616 (struct frame_base_table): Add "sniffer".
617 (frame_base_free): Free the "sniffer" table.
618 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
619 (frame_unwind_append_sniffer): Declare.
620 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
621 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
622 (struct frame_unwind_table): Add "sniffer", delete "middle".
623 (append_predicate): Add "sniffer" parameter, append the sniffer.
624 (frame_unwind_init): Update append_predicate call.
625 (frame_unwind_append_sniffer): New function.
626 (frame_unwind_append_predicate): Update append_predicate call.
627 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
628
629 2003-07-15 Andrew Cagney <cagney@redhat.com>
630
631 * frame.c (get_prev_frame): Move disabled inside_entry_func to
632 before code inhibiting repeated unwind attempts. Add to
633 commentary on that test's problems.
634 * blockframe.c (inside_main_func): Look for "main" in the minimal
635 symbol table.
636 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
637 identical.
638
639 2003-07-15 Andrew Cagney <cagney@redhat.com>
640
641 * complaints.c (struct explanation): Define.
642 (struct complaints): Change type of "explanation" to "struct
643 explanation".
644 (symfile_explanations): Convert to a "struct explanation" table.
645 (vcomplaint): Update.
646
647 2003-07-15 Michal Ludvig <mludvig@suse.cz>
648
649 * x86-64-linux-nat.c (regmap): Removed.
650 (supply_gregset, fill_gregset): Call
651 x86_64_linux_(fill,supply)_gregset functions.
652 * x86-64-linux-tdep.c (USER_*): New defines.
653 (user_to_gdb_regmap, x86_64_core_fns): New structure.
654 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
655 New functions.
656 (fetch_core_registers): Ditto.
657 (_initialize_x86_64_linux_tdep): Call add_core_fns().
658 * x86-64-linux-tdep.h: New file.
659 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
660 and core-regset.o.
661 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
662
663 2003-07-13 Mark Kettenis <kettenis@gnu.org>
664
665 * x86-64-tdep.c (x86_64_store_return_value): Use
666 regcache_cooked_write_part instead of regcache_cooked_write.
667
668 * configure.host: Add x86_64-*-freebsd*.
669 * configure.tgt: Add x86_64-*-freebsd*.
670 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
671 * amd64fbsd-nat.c: New file.
672 * amd64fbsd-tdep.c: New file.
673 * config/i386/nm-fbsd64.h: New file.
674 * config/i386/fbsd64.mh: New file.
675 * config/i386/fbsd64.mt: New file.
676
677 2003-07-11 Mark Kettenis <kettenis@gnu.org>
678
679 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
680 `sc_regs_offset' and `sc_fpregs_offset'.
681 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
682 SIGFRAME_FPREGSAVE_OFF): Remove defines.
683 (alpha_sigtramp_register_address): Rewrite to use new members of
684 `struct gdbarch_tdep'.
685 (alpha_gdbarch_init): Initialize new members of struct
686 gdbarch_tdep'.
687 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
688 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
689 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
690 (alphafbsd_pc_in_sigtramp): Implement.
691 (alphafbsd_sigtramp_offset): New function.
692 (alphafbsd_sigcontext_addr): New function.
693 (alphafbsd_init_abi): Initialize signal trampoline related members
694 of `struct gdbarch_tdep'.
695 (_initialize_alphafbsd_tdep): Add prototype.
696
697 2003-07-11 Theodore A. Roth <troth@openavr.org>
698
699 * Makefile.in (install-only): Quote sed expression when generating
700 transformed_name.
701
702 2003-07-11 Richard Henderson <rth@redhat.com>
703
704 * Makefile.in (dwarf2-frame.o): Add complaints_h.
705 * dwarf2-frame.c: Include complaints.h.
706 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
707 variable initialization; return NULL on error.
708 (decode_frame_entry): New.
709
710 2003-07-11 Andrew Cagney <cagney@redhat.com>
711
712 * frame.h (frame_address_in_block): Delete declaration.
713 * blockframe.c (frame_address_in_block): Delete function.
714 (get_frame_block): Use get_frame_address_in_block.
715 (block_innermost_frame): Ditto.
716 * stack.c (print_frame, backtrace_command_1): Ditto.
717
718 * frame.h (get_frame_address_in_block): Declare.
719 (frame_unwind_address_in_block): Declare.
720 * frame.c (frame_unwind_address_in_block): New function.
721 (get_frame_address_in_block): New function.
722
723 2003-07-10 Andrew Cagney <cagney@redhat.com>
724
725 * gdbarch.sh: Simplify predicate methods. Remove need to provide
726 pre-default. Note: re-generate has no effect.
727
728 2003-07-10 Andrew Cagney <cagney@redhat.com>
729
730 * gdbarch.sh: When a variable, but not a function, compare against
731 0. Fix problem in previous patch.
732 * gdbarch.c: Re-generate.
733
734 2003-07-10 Andrew Cagney <cagney@redhat.com>
735
736 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
737 functions against NULL, not 0.
738 * gdbarch.c: Re-generate.
739
740 2003-07-10 Fred Fish <fnf@ninemoons.com>
741
742 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
743 null string instead of a null pointer.
744 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
745
746 2003-07-09 Michael Snyder <msnyder@redhat.com>
747
748 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
749
750 2003-07-09 Mark Kettenis <kettenis@gnu.org>
751
752 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
753 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
754 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
755 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
756 * x86-64-tdep.c: ... from here.
757
758 2003-07-09 Andreas Schwab <schwab@suse.de>
759
760 * m68k-tdep.h (enum struct_return): Define.
761 (struct gdbarch_tdep): Add struct_return.
762 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
763 bytes are padded to the right, not to the left. Pass struct value
764 address in register %a1, not on stack.
765 (m68k_use_struct_convention): New function.
766 (m68k_gdbarch_init): Set use_struct_convention. Initialize
767 struct_return in tdep to pcc_struct_return.
768 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
769 reg_struct_return.
770
771 2003-07-09 Joel Brobecker <brobecker@gnat.com>
772
773 * somread.c (som_symfile_offsets): Fix compilation error.
774
775 2003-07-09 Andrew Cagney <cagney@redhat.com>
776
777 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
778 Add comments about the checks.
779
780 2003-07-08 Andrew Cagney <cagney@redhat.com>
781
782 * Makefile.in: Make dependency section headers consistent.
783 (config_h): Move to $BUILD headers section.
784 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
785 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
786 (ada-exp.tab.c): Move to YACC/LEX section.
787 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
788 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
789
790 2003-07-08 Kris Warkentin <kewarken@qnx.com>
791
792 * nto-procfs.c: Cleaned up a bunch of ARI hits.
793 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
794 of strerror with safe_strerror, use ISO C function definitions,
795 and replace instances of sprintf with snprintf.
796
797 2003-07-07 Andrew Cagney <cagney@redhat.com>
798
799 * frame.c (get_prev_frame): Enable check for identical frames.
800 Update comments. Update error messages.
801
802 2003-07-07 Joel Brobecker <brobecker@gnat.com>
803
804 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
805
806 2003-07-07 Joel Brobecker <brobecker@gnat.com>
807
808 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
809 sort_symtab_syms, no longer necessary.
810
811 2003-07-07 Joel Brobecker <brobecker@gnat.com>
812
813 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
814
815 2003-07-07 Joel Brobecker <brobecker@gnat.com>
816
817 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
818 (mips_register_byte): Likewise.
819
820 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
821
822 * Makefile.in (sparc_tdep_h): New.
823 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
824 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
825 * sparc-linux-nat.c: Include "sparc-tdep.h".
826 * sparc-nat.c: Likewise.
827 * sparc-tdep.c: Likewise.
828 * sparc64nbsd-nat.c: Likewise.
829 * sparcnbsd-nat.c: Likewise.
830 * sparcnbsd-tdep.c: Likewise.
831 * sparc-tdep.h: New file.
832 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
833 and sparc_npc_regnum.
834
835 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
836
837 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
838 (mips_linux_cannot_store_register): List supported instead of
839 unsupported registers.
840
841 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
842
843 * disasm.c (dump_insns): Separate instructions from addresses.
844
845 2003-07-07 Andreas Schwab <schwab@suse.de>
846
847 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
848 dependencies.
849 * m68k-tdep.c (NUM_FREGS): Delete.
850 (SIG_PC_FP_OFFSET): Delete.
851 (TARGET_M68K): Delete.
852 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
853 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
854 P_MOVEL_SP, P_MOVEML_SP): Define.
855 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
856 P_TRAP): Delete.
857 (m68k_register_raw_size): Delete.
858 (m68k_register_virtual_size): Delete.
859 (m68k_register_type): Renamed from m68k_register_virtual_type and
860 add gdbarch argument.
861 (m68k_store_struct_return): Delete.
862 (m68k_deprecated_extract_return_value): Delete.
863 (m68k_deprecated_extract_struct_value_address): Delete.
864 (m68k_frame_chain): Delete.
865 (m68k_frame_saved_pc): Delete.
866 (m68k_fix_call_dummy): Delete.
867 (m68k_push_dummy_frame): Delete.
868 (m68k_pop_frame): Delete.
869 (m68k_extract_return_value): New function.
870 (m68k_store_return_value): Rewrite using regcache.
871 (m68k_extract_struct_value_address): Rewrite using regcache.
872 (m68k_push_dummy_call): New function.
873 (struct m68k_frame_cache): Define.
874 (m68k_alloc_frame_cache): New function.
875 (m68k_analyze_frame_setup): New function.
876 (m68k_analyze_register_saves): New function.
877 (m68k_analyze_prologue): New function.
878 (m68k_skip_prologue): Rewrite using above functions.
879 (m68k_unwind_pc): New function.
880 (m68k_frame_cache): New function.
881 (m68k_frame_this_id): New function.
882 (m68k_frame_prev_register): New function.
883 (m68k_frame_unwind): New variable.
884 (m68k_frame_p): New function.
885 (m68k_sigtramp_frame_cache): New function.
886 (m68k_sigtramp_frame_this_id): New function.
887 (m68k_sigtramp_frame_prev_register): New function.
888 (m68k_sigtramp_frame_unwind): New variable.
889 (m68k_sigtramp_frame_p): New function.
890 (m68k_frame_base_address): New function.
891 (m68k_frame_base): New function.
892 (m68k_unwind_dummy_id): New function.
893 (fill_gregset): Use regcache_collect.
894 (fill_fpregset): Likewise.
895 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
896 defined.
897 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
898 deprecated_init_frame_pc, deprecated_store_struct_return,
899 deprecated_extract_return_value, deprecated_store_return_value,
900 deprecated_frame_chain, deprecated_frame_saved_pc,
901 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
902 deprecated_register_virtual_size,
903 deprecated_max_register_raw_size,
904 deprecated_max_register_virtual_size,
905 deprecated_register_virtual_type, deprecated_register_size,
906 deprecated_register_byte, deprecated_register_bytes,
907 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
908 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
909 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
910 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
911 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
912 deprecated_push_dummy_frame, deprecated_pop_frame,
913 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
914 only if SYSCALL_TRAP is defined. Set extract_return_value,
915 store_return_value, extract_struct_value_address, register_type,
916 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
917 predicates.
918 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
919 M68K_MAX_REGISTER_SIZE): Define.
920 (struct m68k_sigtramp_info): Define.
921 (struct gdbarch_tdep): Add get_sigtramp_info.
922 * m68klinux-nat.c (fetch_register): Use register_size instead of
923 REGISTER_RAW_SIZE. Don't put assignment in if.
924 (store_register): Likewise.
925 (fetch_inferior_registers): Likewise.
926 (store_inferior_registers): Likewise.
927 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
928 (m68k_linux_frame_saved_pc): Delete.
929 (m68k_linux_sigcontext_reg_offset,
930 m68k_linux_ucontext_reg_offset): Define.
931 (m68k_linux_get_sigtramp_info): New function.
932 (m68k_linux_extract_return_value): Rewrite using regcache.
933 (m68k_linux_store_return_value): Likewise.
934 (m68k_linux_extract_struct_value_address): Likewise.
935 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
936 Don't set deprecated_frame_saved_pc,
937 deprecated_extract_return_value, deprecated_store_return_value,
938 deprecated_extract_struct_value_address. Set
939 extract_return_value, store_return_value,
940 extract_struct_value_address.
941
942 2003-07-07 Andrew Cagney <cagney@redhat.com>
943
944 * expprint.c: Include "user-regs.h" instead of "frame.h".
945 (print_subexp): Use user_reg_map_regnum_to_name, instead of
946 frame_map_regnum_to_name.
947 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
948 (frame_map_name_to_regnum): Simplify, call
949 user_reg_map_name_to_regnum.
950 (frame_map_regnum_to_name): Simplify, call
951 user_reg_map_regnum_to_name.
952 (frame_register_unwind): Update.
953 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
954 (_initialize_frame_reg): Call user_reg_add_builtin.
955 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
956 (value_of_register): Use value_of_user_reg.
957 * eval.c (evaluate_subexp_standard): Update.
958 * parse.c (write_dollar_variable): Update.
959 * d10v-tdep.c (d10v_print_registers_info): Update.
960 * infcmd.c (registers_info): Update.
961 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
962 (builtin_regs_h): Delete macro.
963 (user_regs_h): Define.
964 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
965 (builtin-regs.o): Delete target.
966 (user-regs.o): Specify dependencies.
967 (expprint.o): Update dependencies.
968 (findvar.o): Update dependencies.
969 (frame.o): Update dependencies.
970 (std-regs.o): Update dependencies.
971
972 2003-07-06 Christopher Faylor <cgf@redhat.com>
973
974 * win32-nat.c (solib_symbols_add): Use one variable for all section
975 address stuff. Pass variable rather than address of variable to
976 safe_symbol_file_add.
977
978 2003-07-06 Andreas Schwab <schwab@suse.de>
979
980 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
981
982 2003-07-04 Joel Brobecker <brobecker@gnat.com>
983
984 * rs6000-nat.c (vmap_symtab): Fix compilation error.
985
986 2003-07-04 Kris Warkentin <kewarken@qnx.com>
987
988 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
989
990 2003-07-04 Kris Warkentin <kewarken@qnx.com>
991
992 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
993 * config/i386/nto.mh: New file.
994 * config/i386/nm-nto.h: New file.
995 * configure.host: Add i[3456]86-*-nto*.
996
997 2003-07-03 Joel Brobecker <brobecker@gnat.com>
998
999 * remote-vx.c (vx_add_symbols): Fix compilation error.
1000
1001 2003-07-03 Andrew Cagney <cagney@redhat.com>
1002
1003 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1004 * gdbarch.h, gdbarch.c: Re-generate.
1005 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1006 (legacy_register_name): Declare.
1007 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1008 (REGISTER_NAME): Define.
1009 * sparc-tdep.c (legacy_register_name): New function.
1010 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1011 (REGISTER_NAME): Define.
1012 (hppa64_register_name): Declare.
1013 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1014 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1015 (hppa64_register_name): New function.
1016 (hppa_register_name): New function.
1017 * arch-utils.c (legacy_register_name): Delete.
1018 * arch-utils.h (legacy_register_name): Delete.
1019
1020 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1021
1022 * cli/cli-interp.c (cli_interpreter_resume): Update the
1023 cli_uiout's stream to gdb_stdout.
1024
1025 2003-07-03 Andrew Cagney <cagney@redhat.com>
1026
1027 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1028 predicate.
1029 * gdbarch.h, gdbarch.c: Re-generate.
1030 * regcache.c (init_regcache_descr): Use legacy code when either
1031 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1032
1033 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1034
1035 * NEWS: Move "set logging" entry into GDB 6.0 section.
1036
1037 2003-07-02 Jim Blandy <jimb@redhat.com>
1038
1039 * s390-tdep.c (struct frame_extra_info): new member:
1040 'stack_bought_valid'.
1041 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1042 initialize fextra_info->stack_bought.
1043 (s390_frameless_function_invocation): Don't trust the value of
1044 fextra_info_ptr->stack_bought unless
1045 fextra_info->stack_bought_valid is set.
1046
1047 New S390 prologue analyzer.
1048 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1049 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1050 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1051 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1052 compute_x_addr, s390_on_stack, s390_store,
1053 s390_get_signal_frame_info): New functions.
1054 (S390_NUM_SPILL_SLOTS): New macro.
1055 (s390_get_frame_info): Rewritten.
1056 (is_arg_reg): Deleted.
1057
1058 Break out the decoding of S/390 instructions into separate
1059 functions, to make it more legible, and easier to check
1060 against the spec.
1061 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1062 is_rx, is_rxe): New functions.
1063 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1064 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1065 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1066 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1067 enums for opcode values. (Is this an improvement?)
1068
1069 2003-07-02 Andrew Cagney <cagney@redhat.com>
1070
1071 * i386-tdep.c: Revert change committed as part of trad-frame code
1072 below.
1073
1074 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1075
1076 * breakpoint.c (insert_catchpoint): Make static.
1077
1078 2003-07-02 Andreas Schwab <schwab@suse.de>
1079
1080 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1081 former ia64_push_arguments and ia64_push_return_address, and use
1082 regcache functions instead of read/write_register.
1083 (ia64_gdbarch_init): Set push_dummy_call instead of
1084 deprecated_push_arguments and deprecated_push_return_address.
1085
1086 2003-07-01 Andreas Jaeger <aj@suse.de>
1087
1088 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1089 before the call.
1090 Set %rax only to number of SSE registers used.
1091
1092 2003-07-01 Andrew Cagney <cagney@redhat.com>
1093
1094 * trad-frame.h: Update comments, a -1 .addr is reserved.
1095 (trad_frame_value_p, trad_frame_addr_p): Declare.
1096 (trad_frame_reg_p): Declare.
1097 (trad_frame_set_value): Rename trad_frame_register_value.
1098 (trad_frame_set_unknown): Declare.
1099 * trad-frame.c (trad_frame_realreg_p): New function.
1100 (trad_frame_addr_p, trad_frame_value_p): New function.
1101 (trad_frame_set_unknown): New function.
1102 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1103 (trad_frame_prev_register): Use trad_frame_realreg_p,
1104 trad_frame_addr_p and trad_frame_value_p.
1105 (trad_frame_set_value): Rename trad_frame_register_value.
1106 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1107 and trad_frame_set_value.
1108
1109 2003-06-30 Jim Blandy <jimb@redhat.com>
1110
1111 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1112 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1113 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1114 for 16 registers, and then 32 more bytes.
1115 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1116 New macros.
1117 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1118 Move up in the file, since it's now used by is_simple_arg.
1119 (is_simple_arg): Don't assume registers are four bytes long.
1120 Exclude all double arguments. Extended floats are not simple
1121 args.
1122 (is_power_of_two): New function.
1123 (pass_by_copy_ref): Call is_power_of_two, and check that the
1124 length fits in a register, rather than listing all the acceptable
1125 sizes. Extended floats are not passed by reference.
1126 (s390_push_arguments): Don't assume registers are four bytes long.
1127 Reserve an argument register to point to the buffer for structures
1128 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1129 S390_STACK_FRAME_OVERHEAD.
1130
1131 2003-06-30 Andreas Schwab <schwab@suse.de>
1132
1133 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1134 format error message.
1135
1136 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1137
1138 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1139
1140 2003-06-30 David Carlton <carlton@kealia.com>
1141
1142 Band-aid for PR c++/1245.
1143 * Makefile.in (cp-support.o): Depend on complaints_h.
1144 * cp-support.c: Include complaints.h. Add declaration for
1145 find_last_component.
1146 (cp_find_first_component): Separate code into
1147 cp_find_first_component_aux.
1148 (cp_find_first_component_aux): Call demangled_name_complaint.
1149 (demangled_name_complaint): New.
1150
1151 2003-06-30 Andrew Cagney <cagney@redhat.com>
1152
1153 * remote.c (remote_write_bytes): Explicitly compute and then use
1154 the payload size. Update comments to reflect. Fixes problem of
1155 GDB not sending small packets as found by Fred Fish.
1156
1157 2003-06-30 Andrew Cagney <cagney@redhat.com>
1158
1159 * remote.c (remote_async_wait): Fix -Wformat problem.
1160
1161 2003-06-29 Andrew Cagney <cagney@redhat.com>
1162
1163 * remote.c (remote_wait): Call error, and not warning, when the
1164 packet is corrupt.
1165 (remote_async_wait): Ditto.
1166
1167 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1168
1169 * sparc-tdep.c (sparc_y_regnum): Make external again.
1170
1171 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1172
1173 * cli/cli-logging.c (pop_output_files): Add void to function
1174 definition.
1175
1176 2003-06-29 Andrew Cagney <cagney@redhat.com>
1177
1178 * frame.c (frame_register_unwind): Use unsigned char when dumping
1179 the buffer contents.
1180
1181 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1182
1183 * cli/cli-logging.c: New file.
1184 * cli-out.c (struct ui_out_data): Add original_stream.
1185 (cli_redirect): New function.
1186 (cli_ui_out_impl): Add cli_redirect.
1187 (cli_out_new): Initialize original_stream.
1188 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1189 (uo_redirect, ui_out_redirect): New.
1190 * ui-out.h (struct ui_out_impl): Add redirect member.
1191 (redirect_ftype): New.
1192 (ui_out_redirect): Add prototype.
1193 * Makefile.in: Add rules for cli-logging.c.
1194 * NEWS: Mention "set logging".
1195
1196 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1197
1198 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1199
1200 2003-06-27 Andrew Cagney <cagney@redhat.com>
1201
1202 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1203 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1204 * avr-tdep.c (avr_call_dummy_address): Delete function.
1205 (avr_gdbarch_init): Do not set call_dummy_address.
1206
1207 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1208
1209 * symfile.c (syms_from_objfile): Move variables to inner block.
1210 Move the checks for the non-mainline case a bit earlier to avoid
1211 doing some useless computations.
1212
1213 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1214
1215 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1216
1217 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1218
1219 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1220 sections.
1221
1222 2003-06-26 Michael Chastain <mec@shout.net>
1223
1224 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1225 gdb/testsuite/gdb.c++/pr-1210.exp.
1226
1227 2003-06-26 Andrew Cagney <cagney@redhat.com>
1228
1229 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1230 altivec_expression.h and altivec_registers.h.
1231
1232 2003-06-26 Andrew Cagney <cagney@redhat.com>
1233
1234 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1235 info->mach when MIPS16. Patch suggested by Fred Fish.
1236
1237 2003-06-26 Andrew Cagney <cagney@redhat.com>
1238
1239 * utils.c (internal_vproblem): Print the problem to a reason
1240 buffer and then pass to query. Make the msg variable more local.
1241
1242 2003-06-26 Andrew Cagney <cagney@redhat.com>
1243
1244 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1245 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1246 * gdbarch.h, gdbarch.c: Re-generate.
1247 * frame-base.c (default_frame_args_address): Update. Use
1248 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1249 not available.
1250 (default_frame_locals_address): Ditto for
1251 DEPRECATED_FRAME_LOCALS_ADDRESS.
1252 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1253 (vax_frame_num_args): Update.
1254 (vax_gdbarch_init): Update.
1255 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1256 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1257 * mcore-tdep.c (mcore_gdbarch_init): Update.
1258 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1259 * ia64-tdep.c (ia64_gdbarch_init): Update.
1260 * symtab.h (address_class): Update comments.
1261 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1262 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1263 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1264 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1265 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1266 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1267 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1268 * alpha-mdebug-tdep.c: Update.
1269 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1270
1271 2003-06-26 Andreas Jaeger <aj@suse.de>
1272
1273 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1274 of SSE registers so that varargs functions work. Rework handling
1275 of passing arguments on the stack.
1276 (x86_64_store_return_value): Return double and float values in SSE
1277 register.
1278
1279 2003-06-24 Michael Chastain <mec@shout.net>
1280
1281 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1282 the "constructor breakpoints ignored" bug.
1283
1284 2003-06-25 David Carlton <carlton@kealia.com>
1285
1286 * MAINTAINERS: Update e-mail address.
1287
1288 2003-06-24 Jim Blandy <jimb@redhat.com>
1289
1290 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1291
1292 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1293 function.
1294 (ppc_linux_init_abi): Register it as the
1295 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1296
1297 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1298 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1299 method.
1300
1301 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1302 (ppc64_standard_linkage_target): Use it.
1303
1304 2003-06-23 Andrew Cagney <cagney@redhat.com>
1305
1306 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1307 for 0 "int0" and 4 "int32" sized registers.
1308 * gdbtypes.c (builtin_type_int0): Define.
1309 (build_gdbtypes): Initialize builtin_type_int0.
1310 * gdbtypes.h (builtin_type_int0): Declare.
1311
1312 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1313
1314 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1315 as characters are unsigned.
1316
1317 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1318
1319 PR gdb/1179
1320 * dwarfread.c (struct_type): Skip static fields without crashing.
1321
1322 2003-06-22 Andrew Cagney <cagney@redhat.com>
1323
1324 GDB 6.0 branch created.
1325 * README: Update.
1326 * PROBLEMS: Update. Empty.
1327 * NEWS: Update.
1328
1329 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1330
1331 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1332 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1333
1334 2003-06-22 Andrew Cagney <cagney@redhat.com>
1335
1336 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1337 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1338 Velikov.
1339
1340 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1341
1342 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1343 compilers.
1344
1345 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1346
1347 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1348 argument of val_print.
1349 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1350 to the address argument of baseclass_offset or target_read_memory.
1351 Do add it to the argument of cp_print_value_fields.
1352
1353 2003-06-21 Andrew Cagney <cagney@redhat.com>
1354
1355 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1356 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1357 instead of 0..NUM_REGS.
1358 (mips_register_reggroup_p): New function.
1359 (mips_pseudo_register_write): New function.
1360 (mips_pseudo_register_read): New function.
1361 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1362 based on the register's type.
1363 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1364 cooked.
1365 (mips_get_saved_register): Simplify. Assert that REGNO is a
1366 pseudo / cooked.
1367 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1368 (mips_register_type): Replace mips_register_virtual_type. Map
1369 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1370 when available.
1371 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1372 that the register is cooked / virtual.
1373 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1374 Only get the extra info when needed.
1375 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1376 (mips32_heuristic_proc_desc): Fetch the cooked register.
1377 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1378 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1379 (mips_print_register): Use gdbarch_register_type, instead of
1380 REGISTER_VIRTUAL_TYPE.
1381 (print_gp_register_row): Use gdbarch_register_type, instead of
1382 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1383 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1384 Print the pseudo / cooked registers.
1385 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1386 Print the pseudo / cooked registers.
1387 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1388 REG_NUM is pseudo / cooked.
1389 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1390 (mips_n32n64_xfer_return_value): Ditto.
1391 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1392 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1393 (mips_register_sim_regno): New function.
1394 (mips_gdbarch_init): Set deprecated_register_byte,
1395 register_group_p, pseudo_register_write, pseudo_register_read,
1396 register_sim_regno, and num_pseudo_regs. Set register_type,
1397 instead of register_virtual_type.
1398 * Makefile.in (mips-tdep.o): Update dependencies.
1399 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1400 REGISTER_VIRTUAL_TYPE.
1401 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1402 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1403 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1404 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1405 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1406
1407 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1408
1409 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1410 * cli/cli-cmds.c: Include "gdb_vfork.h".
1411 (shell_escape): Use vfork.
1412
1413 2003-06-21 Andrew Cagney <cagney@redhat.com>
1414
1415 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1416 32 bit floating-point register saves.
1417
1418 * frame.h (deprecated_unwind_get_saved_register): Delete.
1419 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1420 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1421 and deprecated_get_next_frame_hack instead of
1422 deprecated_unwind_get_saved_register.
1423
1424 * mips-tdep.c (mips_dump_tdep): Do not print
1425 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1426
1427 * frame.c (get_frame_register): New function.
1428 (frame_unwind_register_signed): New function.
1429 (get_frame_register_signed): New function.
1430 (frame_unwind_register_unsigned): New function.
1431 (get_frame_register_unsigned): New function.
1432 * frame.h: Add comments on naming schema.
1433 (get_frame_register, frame_unwind_register_signed): Declare.
1434 (get_frame_register_signed, get_frame_register_signed): Declare.
1435 (frame_unwind_register_unsigned): Declare.
1436 (get_frame_register_unsigned): Declare.
1437
1438 2003-06-20 Theodore A. Roth <troth@openavr.org>
1439
1440 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1441
1442 2003-06-20 Theodore A. Roth <troth@openavr.org>
1443
1444 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1445 (avr_read_sp): Ditto.
1446
1447 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
1448
1449 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1450 * config/arm/nm-linux.h: Likewise.
1451 * config/arm/tm-linux.h: Likewise.
1452 * config/ia64/nm-linux.h: Likewise.
1453 * config/ia64/tm-ia64.h: Likewise.
1454 * config/s390/tm-linux.h: Likewise.
1455 * config/s390/tm-s390.h: Likewise.
1456 * s390-nat.c: Likewise.
1457 * s390-tdep.c: Likewise.
1458
1459 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1460 * config/ia64/linux.mt: Likewise.
1461 * config/m68k/linux.mh: Likewise.
1462 * config/mips/linux.mt: Likewise.
1463 * config/powerpc/linux.mh: Likewise.
1464 * config/sh/linux.mt: Likewise.
1465
1466 2003-06-19 Kris Warkentin <kewarken@qnx.com>
1467
1468 * solib.c (solib_open): Change tests for whether to search
1469 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1470 comments.
1471
1472 2003-06-19 Theodore A. Roth <troth@openavr.org>
1473
1474 * avr-tdep.c (avr_frame_address): Delete function.
1475 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1476 set_gdbarch_frame_args_address.
1477
1478 2003-06-19 Andrew Cagney <cagney@redhat.com>
1479
1480 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1481 (REGISTER_CONVERT_FROM_TYPE): Delete.
1482 (mips_register_convert_to_type): Delete declaration.
1483 (mips_register_convert_from_type): Delete declaration.
1484 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1485 kernel/.
1486
1487 2003-06-19 Michael Snyder <msnyder@redhat.com>
1488
1489 * linux-nat.h: New file.
1490 * linux-nat.c: Include linux-nat.h.
1491 * lin-lwp.c: Include linux-nat.h.
1492 Move struct lwp_info def to linux-nat.h.
1493 * linux-proc.c: Include linux-nat.h.
1494 (linux_make_note_section): Iterate over lwps instead of threads.
1495 (linux_do_thread_registers): Use lwp instead of merged pid.
1496 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
1497 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
1498 Add dependency on linux_nat_h.
1499
1500 2003-06-19 Theodore A. Roth <troth@openavr.org>
1501
1502 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1503
1504 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1505
1506 * varobj.c (get_type, get_target_type): Use check_typedef.
1507
1508 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1509
1510 * breakpoint.c (insert_catchpoint): Call internal_error.
1511
1512 2003-06-19 Theodore A. Roth <troth@openavr.org>
1513
1514 * avr-tdep.c (avr_push_dummy_code): Delete function.
1515 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1516
1517 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1518
1519 * arch-utils.c (default_prepare_to_proceed): Remove.
1520 (generic_prepare_to_proceed): Remove.
1521 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1522 (generic_prepare_to_proceed): Remove prototype.
1523 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1524 * gdbarch.c: Regenerate.
1525 * gdbarch.h: Regenerate.
1526 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1527 * hppah-nat.c (hppa_switched_threads): Remove.
1528 * infrun.c (prepare_to_proceed): New static function, copied from
1529 generic_prepare_to_proceed. Remove select_it argument.
1530 (proceed): Call prepare_to_proceed.
1531 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1532 variables.
1533 (ptrace_wait): Don't set the removed variables.
1534 (hppa_switched_threads): Remove.
1535 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1536 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1537 (lin_lwp_prepare_to_proceed): Remove prototype.
1538 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1539 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1540
1541 2003-06-18 Theodore A. Roth <troth@openavr.org>
1542
1543 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1544 trad-frame.h.
1545 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1546 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1547 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1548 (AVR_PROLOGUE_*): Enumerate prologue types.
1549 (struct frame_extra_info): Remove.
1550 (struct avr_unwind_cache): Define.
1551 (avr_write_sp): Delete function.
1552 (avr_read_fp): Ditto.
1553 (avr_init_extra_frame_info): Ditto.
1554 (avr_pop_frame): Ditto.
1555 (avr_frame_saved_pc): Ditto.
1556 (avr_saved_pc_after_call): Ditto.
1557 (avr_push_return_address): Ditto.
1558 (avr_frame_chain): Ditto.
1559 (avr_store_struct_return): Ditto.
1560 (avr_push_arguments): Ditto.
1561 (avr_scan_prologue): Update comments. Changed to set up the info for
1562 cache unwinding. Now returns end of prologue PC.
1563 (avr_skip_prologue): Better handling of functions lacking a prologue
1564 by using avr_scan_prologue.
1565 (avr_scan_arg_moves): New function.
1566 (avr_saved_regs_unwinder): Ditto.
1567 (avr_frame_unwind_cache): Ditto.
1568 (avr_unwind_pc): Ditto.
1569 (avr_frame_this_id): Ditto.
1570 (avr_frame_prev_register): Ditto.
1571 (avr_frame_p): Ditto.
1572 (avr_frame_base_address ): Ditto.
1573 (avr_unwind_dummy_id): Ditto.
1574 (avr_push_dummy_code): Ditto.
1575 (push_stack_item): Ditto.
1576 (pop_stack_item): Ditto.
1577 (avr_push_dummy_call): Ditto.
1578 (struct stack_item): Define.
1579 (avr_frame_unwind): Declare structure.
1580 (avr_frame_base): Ditto.
1581 (avr_gdbarch_init): Remove calls to
1582 set_gdbarch_deprecated_init_frame_pc,
1583 set_gdbarch_deprecated_target_read_fp,
1584 set_gdbarch_deprecated_dummy_write_sp,
1585 set_gdbarch_deprecated_fp_regnum,
1586 set_gdbarch_deprecated_push_arguments,
1587 set_gdbarch_deprecated_push_return_address,
1588 set_gdbarch_deprecated_pop_frame,
1589 set_gdbarch_deprecated_store_struct_return,
1590 set_gdbarch_deprecated_frame_init_saved_regs,
1591 set_gdbarch_deprecated_init_extra_frame_info,
1592 set_gdbarch_deprecated_frame_chain,
1593 set_gdbarch_deprecated_frame_saved_pc,
1594 set_gdbarch_deprecated_saved_pc_after_call.
1595 Add calls to set_gdbarch_push_dummy_call,
1596 set_gdbarch_push_dummy_code,
1597 frame_unwind_append_predicate,
1598 frame_base_set_default,
1599 set_gdbarch_unwind_dummy_id,
1600 set_gdbarch_unwind_pc.
1601 Wrap a long line.
1602
1603 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
1604
1605 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
1606 registers for H8/300S.
1607 (h8300_print_registers_info): Ditto.
1608 (h8300_gdbarch_init): Accommodate register count for H8/300S.
1609
1610 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
1611
1612 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
1613 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1614 (lin_lwp_wait): Likewise. Update comments.
1615 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
1616 (pull_pid_from_list, linux_record_stopped_pid): New.
1617
1618 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1619
1620 * ada-lang.c (scan_discrim_bound): Name first argument.
1621 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
1622 declared by ALL_BLOCK_SYMBOLS.
1623
1624 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1625
1626 * ada-tasks.c (find_function_in_inferior): Don't declare it.
1627 ("regcache.h"): Include it.
1628 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
1629
1630 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1631
1632 * NEWS: Mention gdbserver detach change and "disconnect" command.
1633 * infcmd.c (disconnect_command): New function.
1634 (_initialize_infcmd): Add ``disconnect'' command.
1635 * remote.c (remote_async_detach): Delete.
1636 (remote_detach): Merge remote_async_detach.
1637 (remote_disconnect): New.
1638 (init_remote_ops): Set to_disconnect.
1639 (init_remote_cisco_ops): Likewise.
1640 (init_remote_async_ops): Likewise. Use remote_detach.
1641 * target.c (cleanup_target): Default to_disconnect.
1642 (update_current_target): Inherit to_disconnect.
1643 (target_disconnect, debug_to_disconnect): New functions.
1644 (setup_target_debug): Set to_disconnect.
1645 * target.h (struct target_ops): Add to_disconnect.
1646 (target_disconnect): Add prototype.
1647
1648 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1649
1650 * breakpoint.c (insert_catchpoint): New function.
1651 (insert_breakpoints): Use catch_exceptions to call
1652 insert_catchpoint. Disable catchpoints if they fail to insert.
1653
1654 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1655
1656 * symfile.c (reread_symbols): Clear sym_private.
1657
1658 2003-06-17 Andrew Cagney <cagney@redhat.com>
1659
1660 * trad-frame.h (struct frame_info): Add opaque declaration.
1661 * remote-fileio.h (struct cmd_list_element): Add opaque
1662 declaration.
1663 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
1664 comments.
1665
1666 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1667
1668 * remote.c (remote_prepare_to_store): Replace call to
1669 deprecated_read_register_bytes with multiple regcache_raw_read
1670 calls.
1671
1672 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1673
1674 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
1675 (nto_find_and_open_solib): Likewise.
1676 (nto_init_solib_absolute_prefix): Likewise.
1677 (_initialize_nto_tdep): Fix indentation.
1678
1679 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1680
1681 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
1682
1683 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1684
1685 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
1686
1687 2003-06-17 Jim Blandy <jimb@redhat.com>
1688
1689 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
1690
1691 2003-06-16 Theodore A. Roth <troth@openavr.org>
1692
1693 * avr-tdep.c (avr_extract_return_value): New function.
1694 (avr_gdbarch_init): Set extract_return_value method.
1695
1696 2003-06-16 Andrew Cagney <cagney@redhat.com>
1697
1698 * frame.h (deprecated_get_next_frame_hack): Declare.
1699 * frame.c (legacy_saved_regs_prev_register): Only require
1700 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
1701 there are always saved regs.
1702 (deprecated_generic_get_saved_register): Do not require
1703 DEPRECATED_FRAME_INIT_SAVED_REGS.
1704 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
1705 use frame ID unwind instead.
1706 (deprecated_get_next_frame_hack): New function.
1707
1708 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
1709
1710 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
1711 (h8300_push_dummy_call): ...this function. Some minor optimization.
1712 (h8300_push_return_address): Remove.
1713 (h8300_gdbarch_init): Remove calls to
1714 set_gdbarch_deprecated_dummy_write_sp,
1715 set_gdbarch_deprecated_push_arguments and
1716 set_gdbarch_deprecated_push_return_address.
1717 Add call to set_gdbarch_push_dummy_call.
1718
1719 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
1720
1721 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
1722 (E_PSEUDO_EXR_REGNUM): Ditto.
1723 (h8300_is_argument_spill): Check for instructions moving argument
1724 registers into safe registers.
1725 (h8300_skip_prologue): Check for stm instruction to push registers
1726 used for register variables onto stack.
1727 (gdb_print_insn_h8300): Remove.
1728 (h8300_examine_prologue): Add a comment.
1729 (h8300_register_name): Take pseudo registers into account.
1730 (h8300s_register_name): Ditto.
1731 (h8300sx_register_name): Ditto.
1732 (h8300_print_register): Ditto.
1733 (h8300_print_registers_info): Define "nice" printing order.
1734 (h8300_saved_pc_after_call): Take pseudo registers into account.
1735 (h8300_register_type): Ditto. Return type used for remote connection
1736 when requesting real CCR or EXR register, return actual type when
1737 requesting pseudo CCR or EXR.
1738 (h8300_pseudo_register_read): New function.
1739 (h8300_pseudo_register_write): Ditto.
1740 (h8300_dbg_reg_to_regnum): Ditto.
1741 (h8300s_dbg_reg_to_regnum): Ditto.
1742 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
1743 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
1744 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
1745 set_gdbarch_print_insn architecture dependent.
1746 Call set_gdbarch_pseudo_register_read and
1747 set_gdbarch_pseudo_register_write.
1748 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
1749
1750 2003-06-16 Andrew Cagney <cagney@redhat.com>
1751
1752 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
1753 * gdbarch.h, gdbarch.c: Re-generate.
1754 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1755 * s390-tdep.c (s390_gdbarch_init): Update.
1756 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1757 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1758 * mips-tdep.c (mips_gdbarch_init): Update.
1759 * mcore-tdep.c (mcore_gdbarch_init): Update.
1760 * cris-tdep.c (cris_gdbarch_init): Update.
1761 * infcall.c (call_function_by_hand): Update.
1762 * ia64-tdep.c (ia64_push_arguments): Update comment.
1763 * frame.c (legacy_get_prev_frame): Do not assume
1764 SAVE_DUMMY_FRAME_TOS_P.
1765 * dummy-frame.c (find_dummy_frame): Update comment.
1766
1767 2003-06-16 Andrew Cagney <cagney@redhat.com>
1768
1769 * regcache.c (do_cooked_read): Do not use register_valid_p.
1770
1771 2003-06-15 Theodore A. Roth <troth@openavr.org>
1772
1773 * avr-tdep.c (avr_register_type): Remove a blank line.
1774 (avr_scan_prologue): Correct some comments.
1775
1776 2003-06-15 Theodore A. Roth <troth@openavr.org>
1777
1778 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
1779 prologue types.
1780 Properly scan prologues generated by gcc with the -mcall-prologues
1781 option.
1782 Add code to scan -mcall-prologues for mega devices.
1783
1784 2003-06-15 Theodore A. Roth <troth@openavr.org>
1785
1786 * avr-tdep.c (avr_register_byte): Delete function.
1787 (avr_register_raw_size): Delete function.
1788 (avr_register_virtual_size): Delete function.
1789 (avr_register_virtual_type): Delete function.
1790 (avr_register_type): New function.
1791 (avr_address_to_pointer): Remove unused code.
1792 (avr_read_fp): Need to read FP as two separate bytes due to change to
1793 avr_register_type() usage.
1794 (avr_gdbarch_init): Don't set deprecated_register_size.
1795 Don't set deprecated_register_bytes.
1796 Don't set deprecated_register_byte.
1797 Don't set deprecated_register_raw_size.
1798 Don't set deprecated_max_register_raw_size.
1799 Don't set deprecated_register_virtual_size.
1800 Don't set deprecated_max_register_virtual_size.
1801 Don't set deprecated_register_virtual_type.
1802 Set register_type method.
1803
1804 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
1805
1806 * Makefile.in (linux-nat.o): Add rule.
1807 * linux-nat.c: New file.
1808 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
1809 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
1810 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
1811 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
1812 * config/arm/linux.mh (NATDEPFILES): Likewise.
1813 * config/i386/linux.mh (NATDEPFILES): Likewise.
1814 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1815 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1816 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1817 * config/mips/linux.mh (NATDEPFILES): Likewise.
1818 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1819 * config/s390/s390.mh (NATDEPFILES): Likewise.
1820 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1821
1822 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1823
1824 * i387-tdep.c: Reorder includes, fix some whitespace issues and
1825 replace out-of-date comment.
1826
1827 2003-06-15 Andrew Cagney <cagney@redhat.com>
1828
1829 * rdi-share/host.h (Fail): Change to a varargs function.
1830 * remote-rdi.c (Fail): Update.
1831
1832 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1833
1834 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
1835 (i386_convert_register_p, i386_register_to_value,
1836 i386_register_from_value): Handle types longer than 8 bytes.
1837
1838 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1839
1840 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
1841 Move floating-point code to new function in i387-tdep.c.
1842 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
1843 New functions containing code moved here from i386-tdep.c.
1844 * i387-tdep.h: Add opaque declaration for `struct type'.
1845 (i387_register_to_value, i387_value_to_register): New prototypes.
1846 * x86-64-tdep.c (x86_64_convert_register_p): New function.
1847 (x86_64_init_abi): Set convert_register_p, register_to_value and
1848 value_to_register here.
1849
1850 2003-06-14 Andrew Cagney <cagney@redhat.com>
1851
1852 * mips-tdep.c (mips_register_to_value): Make static.
1853 (mips_value_to_register): Make static.
1854 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
1855 * ia64-tdep.c (ia64_register_raw_size): Make static.
1856 (ia64_register_virtual_size): Make static.
1857 (ia64_register_byte): Make static.
1858 * i387-tdep.c: Include "i387-tdep.h".
1859 (print_387_control_word): Delete function.
1860 (print_387_status_word): Delete function.
1861 (print_387_status_bits): Delete function.
1862 (print_387_control_bits): Delete function.
1863 * Makefile.in (i387-tdep.o): Update dependencies.
1864 * rdi-share/host.h (Fail): Declare.
1865 * remote-rdi.c (Fail): Update to match declaration.
1866
1867 2003-06-14 Andrew Cagney <cagney@redhat.com>
1868
1869 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
1870 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
1871 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
1872 * config/djgpp/fnchange.lst: Delete "remote-array.c".
1873 * README: Delete reference to remote-array.
1874 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
1875 (remote-array.o): Delete target.
1876 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
1877 * remote-array.c: Delete file.
1878
1879 2003-06-14 Andrew Cagney <cagney@redhat.com>
1880 Mark Kettenis <kettenis@gnu.org>
1881
1882 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
1883 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
1884 parameter with "frame".
1885 * gdbarch.h, gdbarch.c: Re-generate.
1886 * frame.h (put_frame_register): Declare.
1887 * frame.c (put_frame_register): New function.
1888 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
1889 (legacy_register_to_value): Rewrite, use "frame" to get the
1890 register value.
1891 (legacy_value_to_register): Rewrite, use "frame" to find the
1892 register's location before storing.
1893 * arch-utils.h (legacy_convert_register_p): Update.
1894 (legacy_register_to_value, legacy_value_to_register): Update.
1895 * findvar.c (value_from_register): Rewrite, eliminate use of
1896 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
1897 "frame" to REGISTER_TO_VALUE.
1898 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
1899 lval_reg_frame_relative + lval_register branch of the switch. Do
1900 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
1901 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1902 I386_EDI_REGNUM): New defines.
1903 (i386_next_regnum, i386_convert_register_p,
1904 i386_register_to_value, i386_value_to_register): New functions.
1905 (i386_register_convertible, i386_register_convert_to_virtual,
1906 i386_convert_to_raw): Remove functions.
1907 (i386_gdbarch_init): Set convert_register_p, register_to_value and
1908 value_to_register instead of register_convertible,
1909 register_convert_to_virtual and register_convert_to_raw.
1910 * mips-tdep.c (mips_convert_register_p): New function.
1911 (mips_value_to_register): Replace mips_register_convert_from_type.
1912 (mips_register_to_value): Replace mips_register_convert_to_type.
1913 (mips_gdbarch_init): Set conver_register_p, value_to_register and
1914 register_to_value.
1915 * alpha-tdep.c (alpha_convert_register_p): Update.
1916 (alpha_value_to_register): Update, store the register.
1917 (alpha_register_to_value): Update, fetch the register.
1918
1919 2003-06-14 Theodore A. Roth <troth@openavr.org>
1920
1921 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
1922 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
1923 Don't set deprecated_call_dummy_words.
1924 Remove commented out set_gdbarch_believe_pcc_promotion() call.
1925 Don't set remote_translate_xfer_address.
1926 (avr_io_reg_read_command): Remove commented out debug printf.
1927 Wrap a long line.
1928
1929 2003-06-14 Theodore A. Roth <troth@openavr.org>
1930
1931 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
1932 causes gdb to seg fault.
1933
1934 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
1935
1936 * sparc-nat.c (fetch_inferior_registers): Correct
1937 a reference to "registers".
1938
1939 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
1940
1941 * Makefile.in (exc_request_U_h): Define
1942 (exc_request_S_h): Likewise.
1943 (msg_reply_S_h): Likewise.
1944 (msg_U_h): Likewise.
1945 (notify_S_h): Likewise.
1946 (process_reply_S_h): Likewise.
1947 (gnu-nat.o): Depend on gdb_obstack_h
1948 * gnu-nat.c: Include "gdb_obstack.h".
1949
1950 2003-06-13 Andrew Cagney <cagney@redhat.com>
1951
1952 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
1953 * gdbarch.h, gdbarch.c: Re-generate.
1954
1955 2003-06-13 Andrew Cagney <cagney@redhat.com>
1956
1957 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
1958 when deprecated REGISTER macros can be deleted.
1959 * gdbarch.h, gdbarch.c: Re-generate.
1960
1961 2003-06-13 Jim Blandy <jimb@redhat.com>
1962
1963 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
1964 Linux entry point symbols for _dl_debug_state, too.
1965
1966 2003-06-13 Andrew Cagney <cagney@redhat.com>
1967
1968 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
1969 available, do not use the FP register, and always save the TOS.
1970 * dummy-frame.c (dummy_frame_this_id): Do not assert
1971 SAVE_DUMMY_FRAME_TOS.
1972 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
1973 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
1974 (i386_push_dummy_call): Add 8 to the returned SP.
1975 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
1976 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
1977 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
1978 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
1979 (x86_64_push_dummy_call): Return "sp + 16".
1980 (x86_64_init_abi): Do not set save_dummy_frame_tos.
1981 * alpha-tdep.c (alpha_gdbarch_init): Do not set
1982 save_dummy_frame_tos.
1983
1984 2003-06-13 Jim Blandy <jimb@redhat.com>
1985
1986 * frv-tdep.c (frv_use_struct_convention): Delete static
1987 declaration for function deleted in my change of 2003-06-12.
1988
1989 2003-06-13 Theodore A. Roth <troth@openavr.org>
1990
1991 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
1992 (avr_pointer_to_address): Shift code addrs left 1 bit.
1993 (avr_convert_from_func_ptr_addr): Delete function since operation is
1994 better handled by avr_address_to_pointer and avr_pointer_to_address.
1995 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
1996
1997 2003-06-13 Mark Kettenis <kettenis@gnu.org>
1998
1999 From Kelley Cook <kelleycook@wideopenwest.com>:
2000 * configure.host: Accept i[34567]86 variants.
2001 * configure.tgt: Likewise.
2002 * nlm/configure.in: Likewise.
2003 * nlm/configure: Regenerated.
2004
2005 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2006
2007 * arm-tdep.c (solib-svr4.h): Dont' include it.
2008 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2009 * arm-linux-tdep.c: ... here. Make static.
2010 (arm_linux_init_abi): Register it.
2011 (solib-svr4.h): Include it.
2012 * Makefile.in: Update dependencies.
2013 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2014 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2015
2016 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2017
2018 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2019 indicate registers used for return values.
2020 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2021 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2022 members.
2023 (h8300_init_extra_frame_info): Ditto.
2024 (h8300_frame_locals_address): Removed.
2025 (h8300_frame_args_address): Removed.
2026 (h8300_extract_return_value): Use new regcache structure. Only care
2027 for 16 bit CPUs.
2028 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2029 (h8300_store_return_value): Use new regcache structure. Only care
2030 for 16 bit CPUs.
2031 (h8300h_store_return_value): Same function for 32 bit CPUs.
2032 (h8300_store_struct_return): Removed.
2033 (h8300_extract_struct_value_address): Use new regcache structure.
2034 (h8300h_extract_struct_value_address): Removed.
2035 (h8300_push_dummy_code): New function.
2036 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2037 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2038 set_gdbarch_store_return_value architecture dependent.
2039 Call set_gdbarch_push_dummy_code and
2040 set_gdbarch_extract_struct_value_address.
2041 Remove calls to set_gdbarch_frame_args_address,
2042 set_gdbarch_frame_locals_address,
2043 set_gdbarch_deprecated_store_struct_return,
2044 set_gdbarch_deprecated_extract_return_value,
2045 set_gdbarch_deprecated_extract_struct_value_address,
2046 set_gdbarch_deprecated_call_dummy_words and
2047 set_gdbarch_deprecated_sizeof_call_dummy_words.
2048
2049 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2050
2051 * h8300-tdep.c (h8300_register_byte): Remove.
2052 (h8300h_register_byte): Remove.
2053 (h8300_register_virtual_type): Remove. Substitute by...
2054 (h8300_register_type): New function.
2055 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2056 (h8300h_extract_struct_value_address): Ditto.
2057 (h8300_gdbarch_init): Drop calls to
2058 set_gdbarch_deprecated_register_byte and
2059 set_gdbarch_deprecated_register_virtual_type.
2060 Add call to set_gdbarch_register_type.
2061
2062 2003-06-13 Andrew Cagney <cagney@redhat.com>
2063
2064 * gdbarch.sh: Update comments on registers.
2065 (deprecated_register_byte): Rename register_byte.
2066 (deprecated_register_raw_size): Rename register_raw_size.
2067 (deprecated_register_virtual_size): Rename register_virtual_size.
2068 (deprecated_register_virtual_type): Rename register_virtual_type.
2069 * gdbarch.h, gdbarch.c: Re-generate.
2070 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2071 * vax-tdep.c (vax_gdbarch_init): Update.
2072 * v850-tdep.c (v850_gdbarch_init): Update.
2073 * sparc-tdep.c (sparc_gdbarch_init): Update.
2074 * sh-tdep.c (sh_gdbarch_init): Update.
2075 * s390-tdep.c (s390_gdbarch_init): Update.
2076 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2077 * ns32k-tdep.c: Update.
2078 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2079 * mips-tdep.c (mips_gdbarch_init): Update.
2080 * mcore-tdep.c (mcore_gdbarch_init): Update.
2081 * m68k-tdep.c (m68k_gdbarch_init): Update.
2082 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2083 * ia64-tdep.c (ia64_gdbarch_init): Update.
2084 * hppa-tdep.c (hppa_gdbarch_init): Update.
2085 * h8300-tdep.c (h8300_gdbarch_init): Update.
2086 * frv-tdep.c (frv_gdbarch_init): Update.
2087 * cris-tdep.c (cris_gdbarch_init): Update.
2088 * avr-tdep.c (avr_gdbarch_init): Update.
2089 * alpha-tdep.c (alpha_gdbarch_init): Update.
2090 * arm-tdep.c (arm_gdbarch_init): Update.
2091
2092 2003-06-13 Andrew Cagney <cagney@redhat.com>
2093
2094 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2095 mips_o32_use_struct_convention with always_use_struct_convention.
2096
2097 2003-06-12 David Carlton <carlton@kealia.com>
2098
2099 * cp-namespace.c (cp_set_block_scope): Comment out
2100 processing_has_namespace_info branch.
2101
2102 2003-06-12 Jim Blandy <jimb@redhat.com>
2103
2104 Recognize and skip 64-bit PowerPC Linux linkage functions.
2105 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2106 insn_pattern, insns_match_pattern, d_field, ds_field): New
2107 functions, macros, and types for working with PPC instructions.
2108 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2109 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2110 ppc64_skip_trampoline_code): New functions, variables, and macros
2111 for recognizing and skipping linkage functions.
2112 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2113 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2114
2115 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2116 register offsets for both the 32- and 64-bit interfaces.
2117
2118 Actually finish the job started by my change of 2003-05-29.
2119 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2120 other #definition of this.
2121 (ppc_linux_skip_trampoline_code): Remove declaration.
2122 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2123 static.
2124 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2125 method for GDBARCH.
2126
2127 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2128 'long' on ppc64-*-linux*.
2129
2130 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2131 isn't #defined, assume the register doesn't exist: act as if
2132 tdep->ppc_mq_regnum were -1.
2133
2134 * configure.host, configure.tgt: Add entries for
2135 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2136 powerpc/linux.mt.
2137 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2138 New files.
2139
2140 * arch-utils.c (always_use_struct_convention): New function.
2141 * arch-utils.h (always_use_struct_convention): New prototype.
2142 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2143 (alpha_gdbarch_init): Register always_use_struct_convention,
2144 instead of alpha_use_struct_convention.
2145 * cris-tdep.c (cris_use_struct_convention): Delete.
2146 (cris_gdbarch_init): Register always_use_struct_convention,
2147 instead of cris_use_struct_convention.
2148 * frv-tdep.c (frv_use_struct_convention): Delete.
2149 (frv_gdbarch_init): Register always_use_struct_convention,
2150 instead of frv_use_struct_convention.
2151 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2152 (h8300_gdbarch_init): Register always_use_struct_convention,
2153 instead of h8300_use_struct_convention.
2154 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2155 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2156 instead of mips_o32_use_struct_convention.
2157
2158 2003-06-12 Andrew Cagney <cagney@redhat.com>
2159
2160 * wince.c: Include "mips-tdep.h".
2161 * mips-tdep.h (mips_next_pc): Declare.
2162 * mcore-tdep.c: Make more local functions static.
2163 * Makefile.in (wince.o): Update dependencies.
2164
2165 2003-06-12 David Carlton <carlton@kealia.com>
2166
2167 * symtab.c (lookup_symbol_aux_minsyms): Replace
2168 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2169 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2170 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2171 SYMBOL_NATURAL_NAME.
2172
2173 2003-06-12 Andreas Schwab <schwab@suse.de>
2174
2175 * Makefile.in (tuiDisassem.o): Update dependencies.
2176
2177 2003-06-12 David Carlton <carlton@bactrian.org>
2178
2179 * symtab.h: Delete declaration of make_symbol_overload_list.
2180 Add declaration of lookup_partial_symbol.
2181 * symtab.c (remove_params): Move to cp-support.c.
2182 (overload_list_add_symbol, make_symbol_overload_list)
2183 (sym_return_val_size, sym_return_val_index): Ditto.
2184 (lookup_partial_symbol): Make extern.
2185 * cp-support.h: Add declaration of make_symbol_overload_list.
2186 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2187 symtab.h, and block.h.
2188 (remove_params): Move here from symtab.c.
2189 (overload_list_add_symbol, make_symbol_overload_list)
2190 (sym_return_val_size, sym_return_val_index): Ditto.
2191 * valops.c: Include cp-support.h.
2192 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2193 frame_h, and block_h.
2194 (valops.o): Depend on cp_support_h.
2195
2196 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2197
2198 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2199 substitute by NUM_REGS throughout.
2200 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2201 (h8300s_register_name): New function for H8S registers.
2202 (h8300sx_register_name): Ditto for H8SX registers.
2203 (h8300_print_register): Revise register printing, avoid depending
2204 on 32 bit long.
2205 (h8300_register_byte): Only care for H8/300 registers.
2206 (h8300h_register_byte): New function for any other architecture.
2207 (h8300_register_raw_size): Remove.
2208 (h8300_register_virtual_type): Revise to return actually useful
2209 type.
2210 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2211 (h8300h_extract_struct_value_address): New function for any other
2212 architecture.
2213 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2214 set_gdbarch_register_name, set_gdbarch_register_byte,
2215 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2216 Remove calls to set_gdbarch_deprecated_register_size,
2217 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2218 set_gdbarch_deprecated_max_register_raw_size,
2219 set_gdbarch_register_virtual_size and
2220 set_gdbarch_deprecated_max_register_virtual_size entirely.
2221 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2222 set_gdbarch_long_double_bit.
2223
2224 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2225
2226 * doublest.c (convert_doublest_to_floatformat): When dealing
2227 with the implied integer bit, only alter mant_bits if we are
2228 processing a full 32 bits of mantissa.
2229
2230 2003-06-11 David Carlton <carlton@bactrian.org>
2231
2232 * dictionary.h: New.
2233 * dictionary.c: New.
2234 * block.h: Add opaque declaration for struct dictionary.
2235 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2236 'sym' members.
2237 (BLOCK_DICT): New macro.
2238 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2239 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2240 BLOCK_SHOULD_SORT.
2241 (ALL_BLOCK_SYMBOLS): Update definition.
2242 * Makefile.in (SFILES): Add dictionary.c.
2243 (dictionary_h): New.
2244 (COMMON_OBS): Add dictionary.o.
2245 (dictionary.o): New.
2246 (ada-lang.o): Depend on dictionary_h.
2247 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2248 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2249 (mi-cmd-stack.o): Ditto.
2250 (gdbtk-cmds.o): Update dependencies.
2251 (gdbtk-stack.o): Ditto.
2252 * ada-lang.c: Include dictionary.h.
2253 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2254 (fill_in_ada_prototype, debug_print_block): Ditto.
2255 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2256 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2257 'is_sorted'.
2258 * mdebugread.c: Include dictionary.h.
2259 (struct parse_stack): Delete 'maxsyms' member.
2260 (parse_symbol): Update calls to new_block. Delete calls to
2261 shrink_block. Use dictionary methods.
2262 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2263 Update calls to new_symtab. Don't maintain maxsyms data.
2264 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2265 (add_symbol): Just call dict_add_symbol.
2266 (new_symtab): Delete 'maxsyms' argument.
2267 (new_symtab): Update calls to new_block.
2268 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2269 (shrink_block): Delete function.
2270 (fixup_sigtramp): Update call to new_block. Add symbol via
2271 dict_add_symbol.
2272 * jv-lang.c: Include dictionary.h.
2273 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2274 appropriately. Set class_symtab->free_func. Make sure the
2275 blockvector is big enough to hold two blocks.
2276 (add_class_symtab_symbol): Use dictionary methods.
2277 (free_class_block): New function.
2278 (type_from_class): Replace explicit iteration by
2279 ALL_BLOCK_SYMBOLS.
2280 * symtab.h (struct symtab): Replace 'free_ptr' method by
2281 'free_func'.
2282 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2283 sort_symtab_syms.
2284 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2285 sort_symtab_syms.
2286 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2287 Include dictionary.h.
2288 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2289 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2290 sort_symtab_syms.
2291 * objfiles.c: Include dictionary.h.
2292 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2293 * buildsym.c: Include dictionary.h.
2294 (finish_block): Use dictionary methods.
2295 (end_symtab): Set free_func to NULL, not free_ptr.
2296 * tracepoint.c: Include dictionary.h.
2297 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2298 (scope_info): Ditto.
2299 * stack.c: Include dictionary.h.
2300 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2301 (print_block_frame_labels, print_frame_arg_vars)
2302 (print_frame_args): Ditto.
2303 * symmisc.c (free_symtab_block): Use dictionary methods.
2304 (dump_symtab): Ditto.
2305 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2306 Include dictionary.h.
2307 * symfile.h: Delete declarations of sort_block_syms,
2308 sort_symtab_syms.
2309 * symfile.c (sort_block_syms): Delete.
2310 (sort_symtab_syms): Delete.
2311 * symtab.c: Include dictionary.h.
2312 (lookup_block_symbol): Use dictionary iterators.
2313 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2314 (search_symbols, make_symbol_completion_list): Ditto.
2315 (make_symbol_overload_list): Ditto.
2316 * valops.c (value_of_local): Use dict_empty.
2317 Include dictionary.h.
2318
2319 2003-06-11 J. Brobecker <brobecker@gnat.com>
2320
2321 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2322
2323 2003-06-11 David Carlton <carlton@bactrian.org>
2324
2325 * block.h (BLOCK_SHOULD_SORT): Delete.
2326 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2327 blocks.
2328 * ada-lang.c (ada_add_block_symbols): Ditto.
2329 * symfile.c (sort_block_syms): Delete.
2330 (sort_symtab_syms): Ditto.
2331 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2332 declarations.
2333 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2334 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2335 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2336 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2337 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2338 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2339 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2340
2341 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2342
2343 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2344 bits to 128.
2345
2346 2003-06-11 Andrew Cagney <cagney@redhat.com>
2347
2348 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2349 REGISTER_CONVERTIBLE.
2350 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2351 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2352 * gdbarch.h, gdbarch.c: Re-generate.
2353 * arch-utils.h (deprecated_register_convertible_not): Rename
2354 generic_register_convertible_not.
2355 * arch-utils.c (deprecated_register_convertible_not): Rename
2356 generic_register_convertible.
2357 (legacy_convert_register_p, legacy_register_to_value): Update.
2358 * sh-tdep.c (sh64_push_arguments): Update.
2359 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2360 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2361 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2362 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2363 * arch-utils.c (legacy_value_to_register): Update.
2364 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2365 (rs6000_register_convert_to_raw): Make parameter "from" const.
2366 * mips-tdep.c (mips_gdbarch_init): Update.
2367 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2368 * infcmd.c (default_print_registers_info): Update.
2369 * ia64-tdep.c (ia64_gdbarch_init): Update.
2370 (ia64_register_convert_to_raw): Make parameter "from" const.
2371 * i386-tdep.c (i386_gdbarch_init): Update.
2372 (i386_register_convert_to_raw): Update.
2373
2374 2003-06-11 Andrew Cagney <cagney@redhat.com>
2375
2376 * remote-fileio.c: Include "remote-fileio.h".
2377 * Makefile.in (remote-fileio.o): Update dependencies.
2378 (remote_fileio_h): Fix typo.
2379
2380 2003-06-11 Andrew Cagney <cagney@redhat.com>
2381
2382 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2383 (xstormy16_save_dummy_frame_tos): Make static.
2384 (_initialize_xstormy16_tdep): Add declaration.
2385 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2386 * v850-tdep.c: Make local functions static.
2387 (_initialize_v850_tdep): Add declaration.
2388 * sparc-tdep.c: Make local functions static.
2389 (_initialize_sparc_tdep): Add declaration.
2390 * sh-tdep.c: Make local functions static.
2391 (_initialize_sh_tdep): Add declaration.
2392 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2393 * s390-tdep.c: Make local functions static.
2394 (_initialize_s390_tdep): Add declaration.
2395 * dbxread.c (find_stab_function_addr): Make static.
2396 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2397 * ocd.c (_initialize_remote_ocd): Add declaration.
2398 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2399 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2400 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2401 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2402 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2403 * remote-array.c (_initialize_array): Add declaration.
2404 (_initialize_remote_monitors): Add declaration.
2405 * remote-mips.c: Make local functions static.
2406 (_initialize_remote_mips): Add declaration.
2407 * mcore-tdep.c: Make all local functions static.
2408 (_initialize_mcore_tdep): Add declaration.
2409 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2410 * abug-rom.c (_initialize_abug_rom): Add declaration.
2411 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2412 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2413 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2414 * remote-est.c (_initialize_est): Add declaration.
2415 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2416 (m68hc11_call_dummy_address): Make static.
2417 * ia64-tdep.c: Make local functions static.
2418 (_initialize_ia64_tdep): Add declaration.
2419 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2420 * monitor.c (monitor_wait_filter): Make static.
2421 (_initialize_remote_monitors): Add declaration.
2422 * remote-hms.c (_initialize_remote_hms): Add declaration.
2423 * remote-e7000.c (fetch_regs_from_dump): Make static.
2424 (expect_n): Make static.
2425 (_initialize_remote_e7000): Add declaration.
2426 * ser-e7kpc.c: Always include "defs.h".
2427 (_initialize_ser_e7000pc): Add declaration.
2428 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2429 * cris-tdep.c: Make all but one function static.
2430 (_initialize_cris_tdep): Add declaration.
2431 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2432 * solib.c (update_solib_list): Make static.
2433 (_initialize_solib): Add declaration.
2434 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2435 (_initialize_avr_tdep): Add declaration.
2436 * remote-rdi.c (voiddummy): Make static.
2437 (_initialize_remote_rdi): Add declaration.
2438 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2439 * remote-rdp.c (send_rdp): Make static.
2440 (_initialize_remote_rdp): Add declaration.
2441 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2442
2443 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
2444
2445 * remote-fileio.c: Make ari happy.
2446
2447 2003-06-10 J. Brobecker <brobecker@gnat.com>
2448
2449 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2450 fetching the trailing bytes of the buffer we are about to write.
2451
2452 2003-06-10 Andrew Cagney <cagney@redhat.com>
2453
2454 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2455 * Makefile.in (remote-fileio.o): Update dependencies.
2456 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2457 include <setjmp.h>, or <sys/types.h> conditional on USG.
2458 (remote_fio_jmp_buf): Delete global variable.
2459
2460 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
2461 Martin M. Hunt <hunt@redhat.com>
2462
2463 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2464 (SFILES): Add remote-fileio.c.
2465 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2466 dependencies for building remote.o.
2467 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2468 * remote-fileio.h: New header file defining remote File-I/O interface.
2469 * remote.c (remote_write_bytes, remote_read_bytes): Remove
2470 static storage class.
2471 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2472 'F' packet.
2473 (_initialize_remote): Call initialize_remote_fileio().
2474 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
2475 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2476 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2477 (captured_main): Initialize new ui_files.
2478 * ui-file.c: Add read and fgets input functions.
2479 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2480 (null_file_read): New function.
2481 (ui_file_read): New function.
2482 (set_ui_file_read): New function.
2483 (stdio_file_read): New function.
2484 * ui-file.h: New type ui_file_read_ftype.
2485 (set_ui_file_read): Declare.
2486 (ui_file_read): Declare.
2487
2488 2003-06-09 Andrew Cagney <cagney@redhat.com>
2489
2490 * frame.h (deprecated_unwind_get_saved_register): Rename
2491 generic_unwind_get_saved_register, update comments.
2492 * mips-tdep.c (mips_get_saved_register): Update.
2493 * frame.c (deprecated_unwind_get_saved_register): Update.
2494
2495 2003-06-09 Andrew Cagney <cagney@redhat.com>
2496
2497 * vax-tdep.c (vax_frame_locals_address): Delete function.
2498 (vax_gdbarch_init): Do not set frame_locals_address.
2499 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2500 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2501 * s390-tdep.c (s390_frame_args_address): Delete function.
2502 (s390_gdbarch_init): Do not set frame_args_address or
2503 frame_locals_address.
2504 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2505 (ns32k_gdbarch_init): Do not set frame_locals_address.
2506 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2507 (hppa_frame_locals_address): Delete function.
2508 (hppa_gdbarch_init): Do not set frame_args_address, or
2509 frame_locals_address.
2510 * arm-tdep.c (arm_frame_args_address): Delete.
2511 (arm_frame_locals_address): Delete.
2512 (arm_gdbarch_init): Do not set frame_args_address, or
2513 frame_locals_address.
2514
2515 2003-06-09 Andrew Cagney <cagney@redhat.com>
2516
2517 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2518 * gdbarch.h, gdbarch.c: Re-generate.
2519 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2520 * arch-utils.c (frame_num_args_unknown): Delete function.
2521 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2522 (frame_info): Use FRAME_NUM_ARGS_P.
2523 * arm-tdep.c (arm_frame_num_args): Delete function.
2524 (arm_gdbarch_init): Do not set frame_num_args.
2525 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2526 * hppa-tdep.c (hppa_frame_num_args): Delete function.
2527 (hppa_gdbarch_init): Do not set frame_num_args.
2528 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2529 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2530 frame_num_args to default frame_num_args_unknown.
2531 * v850-tdep.c (v850_gdbarch_init): Ditto.
2532 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2533 * sh-tdep.c (sh_gdbarch_init): Ditto.
2534 * s390-tdep.c (s390_gdbarch_init): Ditto.
2535 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2536 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2537 * mips-tdep.c (mips_gdbarch_init): Ditto.
2538 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2539 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2540 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2541 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2542 * i386-tdep.c (i386_gdbarch_init): Ditto.
2543 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2544 * frv-tdep.c (frv_gdbarch_init): Ditto.
2545 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2546 * cris-tdep.c (cris_gdbarch_init): Ditto.
2547 * avr-tdep.c (avr_gdbarch_init): Ditto.
2548 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2549
2550 2003-06-09 Andrew Cagney <cagney@redhat.com>
2551
2552 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2553 (print_frame_args): Moved to "stack.c".
2554 * stack.c: Include "gdb_assert.h".
2555 (print_frame_nameless_args): Moved from "printcmd.c", made static.
2556 (print_frame_args): Moved from "printcmd.c".
2557 * frame.h (print_frame_args): Delete declaration.
2558 * Makefile.in (stack.o): Update dependencies.
2559
2560 2003-06-08 Andrew Cagney <cagney@redhat.com>
2561
2562 * frame.c (get_prev_frame): Remove reference to
2563 frame_args_address_correct in comments.
2564 * frame-base.c (default_frame_args_address): Delete code
2565 conditional on FRAME_ARGS_ADDRESS_CORRECT.
2566 * vax-tdep.c (vax_frame_args_address_correct): Delete.
2567 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2568 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2569 (vax_frame_args_address_correct): Delete declaration.
2570
2571 2003-06-08 Andrew Cagney <cagney@redhat.com>
2572
2573 * gdbarch.sh (UNWIND_SP): Add.
2574 * gdbarch.h, gdbarch.c: Re-generate.
2575 * frame.c (frame_sp_unwind): New function.
2576 (get_frame_sp): New function.
2577 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2578 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2579 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2580 value.
2581 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2582 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2583
2584 2003-06-08 Andrew Cagney <cagney@redhat.com>
2585
2586 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
2587 REMOTE_BREAKPOINT.
2588 * remote.c: Update.
2589 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
2590 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
2591 * config/m68k/tm-sun3.h: Update.
2592 * config/m68k/tm-m68klynx.h: Update.
2593 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
2594
2595 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
2596 trad_frame". Update comments.
2597 * d10v-tdep.c (struct d10v_unwind_cache): Update.
2598 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
2599 (trad_frame_register_value, trad_frame_prev_register): Update.
2600
2601 2003-06-08 Andrew Cagney <cagney@redhat.com>
2602
2603 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
2604 from GCC's acinclude.m4.
2605 * configure.in: Check for getopt's delcaration.
2606 * aclocal.m4, config.in, configure: Re-generate.
2607 * main.c (error_init): Delete declaration.
2608 * defs.h (error_init): Declare.
2609 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
2610 (rs6000_convert_from_func_ptr_addr): Make static.
2611 (_initialize_rs6000_tdep): Add declaration.
2612 * cli/cli-cmds.c (dont_repeat): Delete declaration.
2613 (show_commands, set_verbose, show_history): Delete declaration.
2614 * top.h (set_verbose): Add declaration.
2615 (show_history, set_history, show_commands): Add declaration.
2616 (do_restore_instream_cleanup): Add declaration.
2617 * objc-lang.c (specialcmp): Make static.
2618 (print_object_command): Make static.
2619 (find_objc_msgsend): Make static.
2620 (find_objc_msgcall_submethod_helper): Make static.
2621 (find_objc_msgcall_submethod): Make static.
2622 (_initialize_objc_language): Add declaration.
2623 (find_implementation_from_class): Make static.
2624 (find_implementation): Make static.
2625 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
2626 * objc-lang.h (lookup_struct_typedef): Add declaration.
2627 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2628 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
2629 (do_restore_user_call_depth): Make static.
2630 (do_restore_instream_cleanup): Delete declaration.
2631 (dont_repeat): Delete declaration.
2632 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
2633 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
2634 * reggroups.c (_initialize_reggroup): Add declaration.
2635 * cp-support.c (_initialize_cp_support): Add declaration.
2636 * cp-abi.c (_initialize_cp_abi): Add declaration.
2637 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
2638 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
2639 (_initialize_gnu_v3_abi): Add declaration.
2640 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
2641 (_initialize_gnu_v2_abi): Add declaration.
2642 * frame-base.c (_initialize_frame_base): Add declaration.
2643 * doublest.c (floatformat_from_length): Make static.
2644 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
2645 * frame.c (create_sentinel_frame): Make static.
2646 (_initialize_frame): Add declaration.
2647 * top.c (do_catch_errors): Make static.
2648 (gdb_rl_operate_and_get_next_completion): Make static.
2649 * typeprint.c: Include "typeprint.h".
2650 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
2651 (sentinel_frame_this_id): Make static.
2652 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
2653 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
2654 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
2655 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
2656 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
2657 * maint.c (maintenance_print_architecture): Make static.
2658 * signals/signals.c (_initialize_signals): Add declaration.
2659 * std-regs.c (_initialize_frame_reg): Add declaration.
2660 * jv-exp.y (push_variable): ISO C definition.
2661 (push_qualified_expression_name): Ditto.
2662 * memattr.c (_initialize_mem): Add declaration.
2663 * remote.c (remote_check_watch_resources): Make static.
2664 (remote_stopped_by_watchpoint): Make static.
2665 (remote_stopped_data_address): Make static.
2666 * d10v-tdep.c (nr_dmap_regs): Make static.
2667 (a0_regnum): Make static.
2668 (d10v_frame_unwind_cache): Make static.
2669 (d10v_frame_p): Make static.
2670 * osabi.c (show_osabi): Make static.
2671 (_initialize_gdb_osabi): Add extern declaration.
2672 * gdbtypes.c (make_qualified_type): Make static.
2673 (safe_parse_type): Make static.
2674 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
2675 * macrotab.c (macro_bcache_free): Make static.
2676 * interps.c (interp_set_quiet): Make static.
2677 (interpreter_exec_cmd): Make static.
2678 * stack.h (select_frame_command): New file.
2679 * stack.c: Include "stack.h".
2680 (select_frame_command_wrapper): Delete function.
2681 (select_frame_command): Make global.
2682 * infcall.c: Include "infcall.h".
2683 * linespec.c: Include "linespec.h".
2684 * symfile.c (sections_overlap): Make static.
2685 * cp-support.h (cp_initialize_namespace): ISO C declaration.
2686 * charset.c (_initialize_charset): Add missing prototype.
2687 * regcache.c (init_legacy_regcache_descr): Make static.
2688 (do_regcache_xfree): Make static.
2689 (regcache_xfer_part): Make static.
2690 (_initialize_regcache): Add missing prototype.
2691 * breakpoint.c (parse_breakpoint_sals): Make static.
2692 (breakpoint_sals_to_pc): Make static.
2693 * interps.h (clear_interpreter_hooks): ISO C declaration.
2694 * Makefile.in (stack_h): Define.
2695 (stack.o, typeprint.o, mi-main.o): Update dependencies.
2696 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
2697
2698 2003-06-08 Andrew Cagney <cagney@redhat.com>
2699
2700 * Makefile.in (d10v-tdep.o): Update dependencies.
2701 (SFILES): Add trad-frame.c.
2702 (trad_frame_h): Define.
2703 (COMMON_OBS): Add trad-frame.o.
2704 (trad-frame.o): Specify dependencies.
2705 * d10v-tdep.c: Include "trad-frame.h".
2706 (saved_regs_unwinder): Delete function.
2707 (d10v_frame_prev_register): Use trad_frame_prev_register.
2708 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
2709 trad_frame", delete "regs" and "prev_sp".
2710 (prologue_find_regs): Use trad-frame.
2711 * trad-frame.h, trad-frame.c: New files.
2712
2713 2003-06-08 Mark Kettenis <kettenis@gnu.org>
2714
2715 * dwarf2cfi.c, dwarf2cfi.h: Remove.
2716
2717 2003-06-07 Adam Fedor <fedor@gnu.org>
2718
2719 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
2720 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
2721 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
2722 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
2723 resolve_msgsend_super, resolve_msgsend_super_stret):
2724 Use it.
2725
2726 2003-06-07 Andrew Cagney <cagney@redhat.com>
2727
2728 * symfile.h: Re-indent, clean up comments.
2729
2730 2003-06-07 Andrew Cagney <cagney@redhat.com>
2731
2732 * inferior.h (deprecated_write_sp): Replace
2733 generic_target_write_sp.
2734 * regcache.c (deprecated_write_sp): Replace
2735 generic_target_write_sp.
2736 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2737 * vax-tdep.c (vax_gdbarch_init): Update.
2738 * v850-tdep.c (v850_gdbarch_init): Update.
2739 * sparc-tdep.c (sparc_gdbarch_init): Update.
2740 * sh-tdep.c (sh_gdbarch_init): Update.
2741 * s390-tdep.c (s390_gdbarch_init): Update.
2742 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2743 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2744 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2745 * mcore-tdep.c (mcore_gdbarch_init): Update.
2746 * m68k-tdep.c (m68k_gdbarch_init): Update.
2747 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2748 * ia64-tdep.c (ia64_gdbarch_init): Update.
2749 * h8300-tdep.c (h8300_gdbarch_init): Update.
2750 * frv-tdep.c (frv_gdbarch_init): Update.
2751 * cris-tdep.c (cris_gdbarch_init): Update.
2752 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2753
2754 2003-06-07 Andrew Cagney <cagney@redhat.com>
2755
2756 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
2757 Assert that PC_REGNUM is valid.
2758 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
2759
2760 2003-06-07 Andrew Cagney <cagney@redhat.com>
2761
2762 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
2763 * gdbarch.h, gdbarch.c: Regenerate.
2764 * mn10300-tdep.c: Include "gdb_assert.h".
2765 (mn10300_read_fp): New function.
2766 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
2767 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
2768 * ia64-tdep.c: Include "gdb_assert.h".
2769 (ia64_read_fp): New function.
2770 (ia64_gdbarch_init): Set deprecated_target_read_fp to
2771 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
2772 * regcache.c (generic_target_read_sp): Delete function.
2773 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
2774 * inferior.h (generic_target_read_sp): Delete declaration.
2775 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
2776 generic_target_read_sp.
2777 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2778 * sparc-tdep.c (sparc_gdbarch_init): Ditto
2779 * sh-tdep.c (sh_gdbarch_init): Ditto.
2780 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2781 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
2782
2783 2003-06-07 Andrew Cagney <cagney@redhat.com>
2784
2785 * gdbarch.sh: Comment each field of startup_gdbarch.
2786 * gdbarch.h, gdbarch.c: Re-generate.
2787
2788 2003-06-07 Andrew Cagney <cagney@redhat.com>
2789
2790 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
2791 * gdbarch.h, gdbarch.c: Re-generate.
2792 * regcache.c: Update comments on read_pc et.al.
2793 (generic_target_read_pc): Delete function.
2794 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
2795 * inferior.h (generic_target_read_pc): Delete declaration.
2796 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
2797 generic_target_read_pc.
2798 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2799 * sh-tdep.c (sh_gdbarch_init): Ditto.
2800 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2801 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2802
2803 2003-06-07 Andrew Cagney <cagney@redhat.com>
2804
2805 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
2806 "index" with "special_local_sect". Use strcmp instead of STREQ.
2807 Append period to coments.
2808
2809 2003-06-06 Mark Mitchell <mark@codesourcery.com>
2810
2811 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
2812 (elfstab_offset_sections): Likewise.
2813 * gdb-stabs.h (stab_section_info): Likewise.
2814 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
2815 * objfiles.c (objfile_relocate): Likewise.
2816 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
2817 * remote.c (get_offsets): Likewise.
2818 (remote_cisco_objfile_relocate): Likewise.
2819 * somread.c (som_symfile_offsets): Likewise.
2820 * symfile.c (alloc_section_addr_info): New function.
2821 (build_section_addr_info_from_section_tab): Use it.
2822 (free_section_addr_info): Adjust.
2823 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
2824 (syms_from_objfile): Allocate local_addr dynamically.
2825 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
2826 dynamically.
2827 (add_symbol_file_command): Allocate sect_opts dynamically.
2828 (reread_symbols): Avoid use of SECT_OFF_MAX.
2829 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
2830 (alloc_section_addr_info): Declare it.
2831 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
2832 * win32-nat.c (solib_symbols_add): Allocate section_addrs
2833 dynamically.
2834 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
2835
2836 2003-06-06 Andrew Cagney <cagney@redhat.com>
2837
2838 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
2839 (d10v_frame_unwind_cache): Do not set "return_pc".
2840
2841 2003-06-06 Michael Snyder <msnyder@redhat.com>
2842
2843 * h8300-tdep.c: Make tidy (long lines).
2844
2845 2003-06-06 Michal Ludvig <mludvig@suse.cz>
2846
2847 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
2848 to regcache_collect().
2849
2850 2003-06-05 J. Brobecker <brobecker@gnat.com>
2851
2852 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
2853 pc_in_sigtramp multiarch method.
2854 (hppa_hpux_som_init_abi): Use it.
2855 (hppa_hpux_elf_init_abi): Likewise.
2856 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
2857 macro has been multiarched.
2858 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
2859 macro here, as hppa64 isn't multiarched yet.
2860
2861 2003-06-05 Andrew Cagney <cagney@redhat.com>
2862
2863 * Makefile.in (value_h): Add $(frame_h).
2864 * value.h: Include "frame.h".
2865 (struct value): Replace "frame_addr" with "frame_id".
2866 (VALUE_FRAME_ID): Replace VALUE_FRAME.
2867 * values.c (allocate_value): Use VALUE_FRAME_ID.
2868 (value_copy): Use VALUE_FRAME_ID.
2869 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
2870 * valops.c (value_assign): Update. Use frame_find_by_id.
2871
2872 2003-06-05 Michal Ludvig <mludvig@suse.cz>
2873
2874 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
2875 in each pass.
2876
2877 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
2878
2879 * thread-db.c (check_event): For create/death event breakpoints,
2880 loop through all messages to ensure that we read the message
2881 corresponding to the breakpoint we are at.
2882
2883 2003-06-04 Michael Snyder <msnyder@redhat.com>
2884
2885 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
2886
2887 2003-06-04 Mark Kettenis <kettenis@gnu.org>
2888
2889 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
2890 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
2891 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
2892 when handling .eh_frame sections.
2893
2894 2003-06-04 J. Brobecker <brobecker@gnat.com>
2895
2896 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
2897 prepare_to_proceed procedure instead of the hppa-specific one.
2898 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
2899
2900 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
2901
2902 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
2903 * config.in: Regenerated.
2904 * configure.in: Add test for syscall function and check for
2905 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
2906 * configure: Regenerated.
2907 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
2908 <sys/syscall.h>.
2909 (kill_lwp): New function that uses tkill syscall or
2910 uses kill, depending on whether threading model is nptl or not.
2911 All callers of kill() changed to use kill_lwp().
2912 (lin_lwp_wait): Make special check when WIFEXITED occurs to
2913 see if all threads have already exited in the nptl model.
2914 (stop_and_resume_callback): New callback function used by the
2915 lin_lwp_wait thread exit handling code.
2916 (stop_wait_callback): Check for threads already having exited and
2917 delete such threads fromt the lwp list when discovered.
2918 (stop_callback): Don't assert retcode of kill call.
2919
2920 Roland McGrath <roland@redhat.com>
2921 * i386-linux-nat.c (ps_get_thread_area): New function needed by
2922 nptl libthread_db.
2923
2924 2003-06-03 Richard Henderson <rth@redhat.com>
2925
2926 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
2927 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
2928 (alpha_sigtramp_frame_prev_register): Likewise.
2929 (alpha_heuristic_frame_prev_register): Likewise.
2930 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
2931
2932 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
2933 alpha-specific register id names.
2934 (alpha_mdebug_frame_unwind_cache): Likewise.
2935 (alpha_mdebug_frame_prev_register): Likewise.
2936
2937 2003-06-03 Richard Henderson <rth@redhat.com>
2938
2939 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
2940 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
2941 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
2942 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
2943 unwind routines.
2944 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2945 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2946 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2947
2948 * alpha-linux-tdep.c: Remove unnecessary includes.
2949 * Makefile.in (alpha-linux-tdep.o): Update.
2950
2951 2003-06-03 Richard Henderson <rth@redhat.com>
2952
2953 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
2954 (alphabsd_fill_fpreg): Likewise.
2955
2956 2003-06-03 J. Brobecker <brobecker@gnat.com>
2957
2958 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
2959 references to struct frame_info fields by calls to the equivalent
2960 accessors. Necessary now that frame_info is opaque.
2961
2962 2003-06-03 J. Brobecker <brobecker@gnat.com>
2963
2964 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
2965 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
2966 structure, field no longer exists.
2967
2968 2003-06-03 J. Brobecker <brobecker@gnat.com>
2969
2970 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2971 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
2972
2973 2003-06-03 J. Brobecker <brobecker@gnat.com>
2974
2975 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
2976 references to struct frame_info fields by calls to the equivalent
2977 accessors. Necessary now that frame_info is opaque.
2978
2979 2003-06-03 J. Brobecker <brobecker@gnat.com>
2980
2981 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
2982 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
2983 structure, field no longer exists.
2984
2985 2003-06-03 Theodore A. Roth <troth@openavr.org>
2986
2987 * remote.c (init_remote_state): Compute sizeof_g_packet by
2988 accumulation of the size of all registers instead of blindly using
2989 DEPRECATED_REGISTER_BYTES.
2990
2991 2003-06-03 Michael Snyder <msnyder@redhat.com>
2992
2993 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
2994 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
2995 for h8300sx.
2996
2997 2003-06-03 J. Brobecker <brobecker@gnat.com>
2998
2999 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3000 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3001
3002 2003-06-03 Andrew Cagney <cagney@redhat.com>
3003
3004 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3005 (sparc_convert_to_raw): Delete function.
3006 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3007 register_convert_to_virtual.
3008
3009 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3010
3011 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3012 layer if not dealing with a statically-linked threaded program.
3013
3014 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3015
3016 * solib.c (solib_open): Update comment to reflect actual search order.
3017
3018 2003-06-03 Andrew Cagney <cagney@redhat.com>
3019
3020 * frame.c (get_frame_memory_signed): New function.
3021 (get_frame_memory, get_frame_memory_unsigned): New function.
3022 (get_frame_arch): New function.
3023 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3024 (get_frame_memory, get_frame_unsigned_memory): Declare.
3025 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3026 get_frame_memory_unsigned and get_frame_arch.
3027 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3028
3029 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3030
3031 * MAINTAINERS (write after approval): Add myself.
3032
3033 2003-06-03 Jim Blandy <jimb@redhat.com>
3034
3035 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3036 elements of gregset_t are 64 bits each, but access registers
3037 are still 32 bits, so they're packed two per gregset_t
3038 element. Unpack/pack them properly.
3039
3040 2003-06-02 David Carlton <carlton@bactrian.org>
3041
3042 * linespec.c (find_methods): Break out code into
3043 add_matching_methods and add_constructors.
3044 (add_matching_methods): New.
3045 (add_constructors): Ditto.
3046
3047 2003-06-02 Andrew Cagney <cagney@redhat.com>
3048
3049 * sparc-tdep.c (sparc_print_registers): Delete call to
3050 REGISTER_CONVERTIBLE.
3051 (sparc_gdbarch_init): Do not set register_convertible.
3052 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3053 * frv-tdep.c (frv_gdbarch_init): Ditto.
3054 * cris-tdep.c (cris_gdbarch_init): Ditto.
3055
3056 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3057
3058 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3059 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3060 (syms_from_objfile): Ditto.
3061
3062 2003-06-03 Andreas Schwab <schwab@suse.de>
3063
3064 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3065 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3066
3067 2003-06-02 Richard Henderson <rth@redhat.com>
3068
3069 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3070 a member of all_reggroup.
3071
3072 2003-06-02 Richard Henderson <rth@redhat.com>
3073
3074 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3075 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3076 (alpha_lds, alpha_sts): New.
3077 (alpha_convert_register_p): Change from _register_convertible.
3078 (alpha_register_to_value): Change from _convert_to_virtual;
3079 restructure and fail for type sizes other than 4 or 8.
3080 (alpha_value_to_register): Similarly.
3081 (alpha_extract_return_value): Use alpha_sts.
3082 (alpha_store_return_value): Use alpha_lds.
3083 (alpha_gdbarch_init): Update hooks.
3084
3085 2003-06-02 Richard Henderson <rth@redhat.com>
3086
3087 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3088 regnum identifiers.
3089 (alpha_sigtramp_register_address): Likewise.
3090
3091 2003-06-02 Richard Henderson <rth@redhat.com>
3092
3093 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3094 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3095 * alpha-tdep.h: Declare them.
3096
3097 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3098 Remove zerobuf. Don't error on UNIQUE.
3099 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3100 (ALPHA_REGSET_UNIQUE): Provide default.
3101 (supply_gregset): Use alpha_supply_int_regs.
3102 (fill_gregset): Use alpha_fill_int_regs.
3103 (supply_fpregset): Use alpha_supply_fp_regs.
3104 (fill_fpregset): Use alpha_fill_fp_regs.
3105 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3106 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3107 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3108 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3109 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3110 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3111
3112 2003-06-02 Richard Henderson <rth@redhat.com>
3113
3114 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3115
3116 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3117 (alpha_store_return_value): Likewise.
3118
3119 2003-06-02 David Carlton <carlton@math.stanford.edu>
3120
3121 * block.c (contained_in): Add 'const' to arguments.
3122 (block_function): Ditto.
3123 * block.h: Update declarations for block_function and
3124 contained_in.
3125
3126 2003-06-02 David Carlton <carlton@math.stanford.edu>
3127
3128 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3129 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3130 * p-valprint.c (pascal_val_print): Ditto.
3131 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3132
3133 2003-06-02 Richard Henderson <rth@redhat.com>
3134
3135 * alpha-tdep.c (alpha_push_dummy_call): Use
3136 builtin_type_ieee_double_little instead of builtin_type_double.
3137
3138 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3139 sign-extension of 32-bit values.
3140 (alpha_store_return_value): Similarly.
3141
3142 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3143 (alpha_extract_return_value): Likewise.
3144 (alpha_store_return_value): Likewise.
3145
3146 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3147 (alpha_store_return_value): Error on IEEE Quad floats.
3148
3149 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3150 (alpha_extract_struct_value_address): Likewise.
3151 (alpha_store_return_value): Likewise.
3152 (alpha_store_struct_return): Remove.
3153 (alpha_gdbarch_init): Update hook registration to match.
3154
3155 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3156 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3157 macros where appropriate.
3158 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3159 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3160
3161 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3162 for SP, GP; void_func_ptr for PC; non-language-specific types
3163 for all others.
3164 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3165
3166 2003-06-02 Richard Henderson <rth@redhat.com>
3167
3168 * top.h (lim_at_start): Declare.
3169 * main.c (captured_main): Set it.
3170 * top.c (lim_at_start): Define.
3171 (command_loop): Use it instead of &environ.
3172 * event-top.c (command_handler): Likewise.
3173
3174 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3175
3176 * mipsnbsd-tdep.c: Update copyright years.
3177 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3178
3179 2003-06-01 Richard Henderson <rth@redhat.com>
3180
3181 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3182 (alpha-linux-tdep.o): Update dependencies.
3183 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3184 * alpha-mdebug-tdep.c: Remove unneeded includes.
3185
3186 2003-06-01 Richard Henderson <rth@redhat.com>
3187
3188 * alpha-tdep.c (alpha_register_reggroup_p): New.
3189 (alpha_gdbarch_init): Register it.
3190
3191 2003-06-02 Andrew Cagney <cagney@redhat.com>
3192
3193 * dwarfread.c: Eliminate "register"
3194 (decode_die_type): Eliminate assignment within "if".
3195 (struct_type, decode_array_element_type): Ditto.
3196 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3197 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3198 (decode_modified_type, completedieinfo): Ditto.
3199 * block.c: Eliminate "register".
3200 (blockvector_for_pc_sect): Eliminate assignment within "if".
3201 * cp-support.h (struct symbol): Opaque declaration.
3202 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3203
3204 2003-06-01 Richard Henderson <rth@redhat.com>
3205
3206 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3207 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3208
3209 2003-06-01 Adam Fedor <fedor@gnu.org>
3210
3211 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3212 * gdbarch.[ch]: Regenerate.
3213 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3214 (hppa_gdbarch_init): Set it in the gdbarch vector.
3215 * i386-tdep.c (i386_fetch_pointer_argument): New
3216 (i386_gdbarch_init): Set it into gdbarch.
3217 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3218 (rs6000_gdbarch_init): Set it in gdbarch.
3219 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3220 (sparc_gdbarch_init): Set it in gdbarch.
3221
3222 2003-06-01 Andrew Cagney <cagney@redhat.com>
3223
3224 * defs.h (extract_address): Delete declaration.
3225 * findvar.c (extract_address): Delete function.
3226 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3227 extract_address with the inline equivalent,
3228 extract_unsigned_integer.
3229 (xstormy16_extract_struct_value_address): Ditto.
3230 (xstormy16_pointer_to_address): Ditto.
3231 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3232 * v850-tdep.c (v850_push_arguments): Ditto.
3233 (v850_extract_return_value): Ditto.
3234 (v850_extract_struct_value_address): Ditto.
3235 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3236 (sparcnbsd_get_longjmp_target_64): Ditto.
3237 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3238 (get_longjmp_target): Ditto.
3239 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3240 (sh64_extract_struct_value_address): Ditto.
3241 (sh_push_arguments): Ditto.
3242 (sh64_push_arguments): Ditto.
3243 * remote-vxsparc.c (vx_read_register): Ditto.
3244 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3245 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3246 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3247 * mipsv4-nat.c (get_longjmp_target): Ditto.
3248 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3249 * mips-nat.c (get_longjmp_target): Ditto.
3250 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3251 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3252 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3253 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3254 * irix5-nat.c (get_longjmp_target): Ditto.
3255 * irix4-nat.c (get_longjmp_target): Ditto.
3256 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3257 (ia64_push_arguments): Ditto.
3258 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3259 * h8300-tdep.c (h8300_push_arguments): Ditto.
3260 (h8300_store_return_value): Ditto.
3261 (h8300_extract_struct_value_address): Ditto.
3262 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3263 (frv_push_arguments): Ditto.
3264 * avr-tdep.c (avr_pointer_to_address): Ditto.
3265 (avr_push_arguments): Ditto.
3266 * arm-tdep.c (arm_push_dummy_call): Ditto.
3267 (arm_get_longjmp_target): Ditto.
3268 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3269 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3270 (alpha_get_longjmp_target): Ditto.
3271
3272 * solib-irix.c (extract_mips_address): Inline extract_address,
3273 replacing it with extract_signed_integer.
3274 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3275 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3276 (first_link_map_member, open_symbol_file_object): Ditto.
3277 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3278 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3279 (LM_NEXT, LM_NAME): Ditto.
3280
3281 2003-06-01 Richard Henderson <rth@redhat.com>
3282
3283 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3284 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3285 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3286 (alpha_cannot_store_register): Likewise.
3287 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3288 * alpha-nat.c (supply_gregset): Likewise.
3289 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3290
3291 2003-06-01 Andrew Cagney <cagney@redhat.com>
3292
3293 * infcall.c (call_function_by_hand): Update comment on
3294 DEPRECATED_DUMMY_WRITE_SP.
3295
3296 * mips-tdep.c (mips_gdbarch_init): Do not set
3297 deprecated_dummy_write_sp.
3298 (mips_eabi_push_dummy_call): Set the SP register.
3299 (mips_o64_push_dummy_call): Set the SP register.
3300 (mips_o32_push_dummy_call): Set the SP register.
3301 (mips_n32n64_push_dummy_call): Set the SP register.
3302
3303 2003-06-01 Richard Henderson <rth@redhat.com>
3304
3305 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3306 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3307 (supply_gregset): Likewise.
3308 * alpha-tdep.c (alpha_store_return_value): Likewise.
3309 (alpha_get_longjmp_target): Likewise.
3310 (alpha_register_name): Constify array.
3311 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3312 deprecated_register_size, deprecated_register_bytes,
3313 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3314 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3315 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3316
3317 2003-06-01 Richard Henderson <rth@redhat.com>
3318
3319 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3320 from arg_reg_buffer to regcache to avoid double conversion.
3321
3322 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3323
3324 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3325 SP_REGNUM.
3326 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3327 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3328
3329 2003-06-01 Richard Henderson <rth@redhat.com>
3330
3331 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3332 (decode_frame_entry): Set it. Skip FDE augmentation.
3333
3334 2003-06-01 Richard Henderson <rth@redhat.com>
3335
3336 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3337 not overlapping PC_REGNUM.
3338
3339 2003-06-01 Richard Henderson <rth@redhat.com>
3340
3341 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3342 alpha_push_arguments. Don't dump argument register data to
3343 the target stack. Fix float and 128-bit long double semantics.
3344 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3345 (alpha_fix_call_dummy): Remove.
3346 (alpha_call_dummy_words): Remove.
3347 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3348
3349 2003-06-01 Richard Henderson <rth@redhat.com>
3350
3351 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3352
3353 2003-06-01 Andrew Cagney <cagney@redhat.com>
3354
3355 * mips-tdep.c (is_mips16_addr): New function.
3356 (make_mips16_addr, unmake_mips16_addr): New functions.
3357 (pc_is_mips16, mips_fetch_instruction): Use.
3358 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3359 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3360 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3361 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3362 TARGET_MIPS.
3363 * config/mips/tm-mips.h: Update copyright.
3364 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3365 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3366 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3367 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3368 (TM_PRINT_INSN_MACH): Delete.
3369 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3370
3371 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3372 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3373 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3374 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3375 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3376 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3377 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3378 mips*-*-riscos* and mips*-*-sysv* onto mips.
3379 * config/mips/mips64.mt: New file.
3380 * config/mips/mips.mt: New file.
3381 * config/mips/littlemips.mt: Delete file.
3382 * config/mips/decstation.mt: Delete file.
3383 * config/mips/vr4300el.mt: Delete file.
3384 * config/mips/vr5000el.mt: Delete file.
3385 * config/mips/vr5000.mt: Delete file.
3386 * config/mips/vr4100.mt: Delete file.
3387 * config/mips/vr4xxxel.mt: Delete file.
3388 * config/mips/vr4300.mt: Delete file.
3389 * config/mips/vr4xxx.mt: Delete file.
3390 * config/mips/bigmips.mt: Delete file.
3391 * config/mips/bigmips64.mt: Delete file.
3392 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3393 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3394 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3395 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3396 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3397 "tm-bigmips.h".
3398 * config/mips/tm-irix3.h: Ditto.
3399 * config/mips/tm-mipsv4.h: Ditto.
3400 * config/mips/tm-embed.h: Ditto.
3401 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3402 "tm-bigmips64.h".
3403 * config/mips/tm-vr5000el.h: Delete file.
3404 * config/mips/tm-tx39l.h: Delete file.
3405 * config/mips/tm-vr4300el.h: Delete file.
3406 * config/mips/tm-vr4xxxel.h: Delete file.
3407 * config/mips/tm-vr4300.h: Delete file.
3408 * config/mips/tm-vr4100.h: Delete file.
3409 * config/mips/tm-vr4xxx.h: Delete file.
3410 * config/mips/tm-vr5000.h: Delete file.
3411 * config/mips/tm-embedl64.h: Delete file.
3412 * config/mips/tm-embedl.h: Delete file.
3413 * config/mips/tm-embed64.h: Delete file.
3414 * config/mips/tm-bigmips64.h: Delete file.
3415 * config/mips/tm-bigmips.h: Delete file.
3416
3417 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3418
3419 Fix gdb/1216.
3420 * shnbsd-nat.c: Include "sh-tdep.h".
3421
3422 From Richard Henderson <rth@redhat.com>:
3423 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3424
3425 2003-05-31 Andrew Cagney <cagney@redhat.com>
3426
3427 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3428 forward declaration.
3429 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3430 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3431 (mips_find_saved_regs): Use set_reg_offset.
3432 (mips_frame_init_saved_regs): Delete function.
3433 (mips_pop_frame): Call mips_find_saved_regs instead of
3434 DEPRECATED_FRAME_INIT_SAVED_REGS.
3435
3436 2003-05-31 Andrew Cagney <cagney@redhat.com>
3437
3438 * mips-tdep.c (mips_gdbarch_init): Do not set
3439 deprecated_max_register_raw_size, register_virtual_size, and
3440 deprecated_max_register_virtual_size.
3441
3442 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3443
3444 * i386-tdep.c: Include "dwarf2-frame.h".
3445 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3446 * Makefile.in (i386-tdep.o): Update dependencies.
3447
3448 * dwarf2-frame.c, dwarf2-frame.h: New files.
3449 * Makefile.in (SFILES): Add dwarf2-frame.c.
3450 (dwarf2_frame_h): Define.
3451 (COMMON_OBS): Add dwarf2-frame.o.
3452 (dwarf2-frame.o): Add dependencies.
3453
3454 2003-05-31 Andreas Jaeger <aj@suse.de>
3455
3456 * x86-64-linux-nat.c: Fix comment.
3457
3458 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3459
3460 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3461 function signature.
3462
3463 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3464 have a sigcontext_addr handler.
3465 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3466 sigcontext_addr handler.
3467
3468 2003-05-31 Andrew Cagney <cagney@redhat.com>
3469
3470 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3471 (print_fp_register_row): Replace do_fp_register_row.
3472 (mips_print_fp_register): Add "file" and "frame" parameters.
3473 (mips_print_register): Add "file" and "frame" parameters.
3474 (mips_print_registers_info): Replace mips_do_registers_info.
3475 (mips_gdbarch_init): Set print_registers_info instead of
3476 deprecated_do_registers_info.
3477 (mips_read_fp_register_single): Add "frame" parameter.
3478 (mips_read_fp_register_double): Add "frame" parameter.
3479
3480 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3481
3482 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3483 Fixes a bug where GDB would print the wrong register names for
3484 targets without SSE.
3485
3486 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3487 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3488 registers.
3489
3490 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3491 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3492 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3493 TDEP->sc_sp_offset.
3494
3495 From Michal Ludvig <mludvig@suse.cz>:
3496 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3497 and `sc_num_regs'.
3498 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3499 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3500 I386_ST0_REGNUM): Move here from...
3501 * i386-tdep.c: ... here.
3502 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3503 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3504 registers if possible.
3505 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3506 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3507 Remove variables.
3508 (i386bsd_sc_reg_offset): New variable.
3509 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3510 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3511 TDEP->sc_sp_offset.
3512 (i386fbsd_sc_reg_offset): New variable.
3513 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3514 TDEP->sc_num_regs.
3515 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3516 variables.
3517 (i386fbsd4_sc_reg_offset): New variable.
3518 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3519 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3520 TDEP->sc_sp_offset.
3521 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3522 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3523 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3524 Remove variables.
3525 (i386nbsd_sc_reg_offset): New variable.
3526 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3527 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3528 TDEP->sc_sp_offset.
3529 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3530 Remove variables.
3531 (i386obsd_sc_reg_offset): New variable.
3532 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3533 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3534 TDEP->sc_sp_offset.
3535 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3536 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
3537 for frame pointer offset in `struct sigcontext'.
3538
3539 2003-05-31 Andrew Cagney <cagney@redhat.com>
3540
3541 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3542 architecture methods call_dummy_words, sizeof_call_dummy_words,
3543 push_return_address, store_struct_return, and fix_call_dummy. Set
3544 push_dummy_call instead of deprecated_push_arguments.
3545 (mips_store_struct_return): Delete function.
3546 (mips_fix_call_dummy): Delete function.
3547 (mips_push_return_address): Delete function.
3548 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3549 RA_REGNUM and T9_REGNUM.
3550 (mips_n32n64_push_dummy_call): Ditto for
3551 mips_n32n64_push_arguments.
3552 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3553 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3554
3555 2003-05-31 Andrew Cagney <cagney@redhat.com>
3556
3557 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
3558 "dummy_addr" to "bp_addr".
3559 * infcall.c (call_function_by_hand): Pass "funaddr" to
3560 gdbarch_push_dummy_call.
3561 * gdbarch.h, gdbarch.c: Re-generate.
3562 * i386-tdep.c (i386_push_dummy_call): Update.
3563 * arm-tdep.c (arm_push_dummy_call): Update.
3564 * d10v-tdep.c (d10v_push_dummy_call): Update.
3565
3566 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3567
3568 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3569 variable declarations.
3570 (x86_64_register_number, x86_64_register_name): Remove prototypes.
3571 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3572 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3573 x86_64_init_frame_pc, x86_64_init_frame_pc,
3574 x86_64_function_has_prologue): Remove prototypes.
3575 (X86_64_NUM_GREGS): New define.
3576 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3577 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
3578 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3579 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3580 XMM1_REGNUM): Remove defines.
3581 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3582 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3583 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3584 X86_64_XMM1_REGNUM): New defines.
3585 (struct x86_64_register_info): Renamed from `struct
3586 register_info'. Remove `size' member.
3587 (x86_64_register_info_table): Remove variable.
3588 (x86_64_register_info): New variable.
3589 (X86_64_NUM_REGS): New define.
3590 (X86_64_NUM_GREGS): Remove define.
3591 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
3592 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
3593 Remove variables.
3594 (x86_54_dwarf2_reg_to_regnum): Remove function.
3595 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
3596 (x86_64_dwarf_reg_to_regnum): New function.
3597 (x86_64_register_name): Rewrite.
3598 (x86_64_register_raw_size): Remove function.
3599 (x86_64_register_byte_table): Remove variable.
3600 (x86_64_register_byte): Remove function.
3601 (x86_64_register_virtual_type): Remove function.
3602 (x86_64_register_type): New function.
3603 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
3604 x86_64_register_convert_to_raw): Remove functions.
3605 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
3606 (x86_64_use_struct_convention): Make static. Adjust for renamed
3607 defines.
3608 (x86_64_frame_init_saved_regs): Remove function.
3609 (x86_64_push_arguments): Make static. Change to accept a regcache
3610 as argument.
3611 (x86_64_store_return_value, x86_64_extract_return_value): Make
3612 static. Rewrite based on i386 counterparts.
3613 (x86_64_push_dummy_call): New function.
3614 (X86_64_NUM_SAVED_REGS): New define.
3615 (x86_64_register_number): Remove function.
3616 (x86_64_store_struct_return): Remove function.
3617 (x86_64_frameless_function_invocation,
3618 x86_64_function_has_prologue): Remove functions.
3619 (PROLOG_BUFSIZE): Remove define.
3620 (struct x86_64_frame_cache): New structure.
3621 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
3622 x86_64_frame_cache, x86_64_frame_this_id,
3623 x86_64_frame_prev_register, x86_64_frame_p,
3624 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
3625 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
3626 functions.
3627 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
3628 variables.
3629 (x86_64_skip_prologue): Rewrite in terms of
3630 x86_64_analyze_prologue.
3631 (x86_64_frame_base_address): New function.
3632 (x86_64_frame_base): New variable.
3633 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
3634 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
3635 set deprecated_fp_regnum, deprecated_register_size,
3636 deprecated_register_bytes, register_raw_size, register_byte,
3637 register_virtual_type, register_convertiable,
3638 register_convert_to_virtual, convert_to_raw,
3639 deprecated_get_saved_register, deprecated_target_read_fp,
3640 deprecated_push_arguments, deprecated_push_return_address,
3641 deprecated_pop_frame, deprecated_store_struct_return,
3642 deprecated_frame_init_saved_regs, deprecated_frame_chain,
3643 frameless_function_invocation, deprecated_frame_saved_pc,
3644 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
3645 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
3646 deprecated_init_frame_pc and virtual_frame_pointer. Call
3647 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
3648 and x86_64_frame_p. Call frame_base_set_default to register
3649 x86_64_frame_base.
3650 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
3651 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
3652 (_initialize_x86_64_tdep): Remove function.
3653 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
3654 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
3655 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
3656 define.
3657 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
3658 (x86_64_linux_sigcontext_addr): Rewrite.
3659 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
3660 x86_64_linux_frame_saved_pc): Remove functions.
3661 (x86_64_linux_pc_in_sigtramp): Renamed from
3662 x86_64_linux_in_sigtramp. Try harder to recognize a signal
3663 trampoline.
3664 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
3665 Remove_functions.
3666 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
3667 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3668 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
3669 (x86_64_regmap): Rename to regmap.
3670 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
3671 x86_64_num_gregs.
3672 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
3673 x86_64_regmap.
3674 (x86_64_fxsave_offset): Remove function.
3675 (supply_fpregset): Simply call x86_64_supply_fxsave.
3676 (fill_fpregset): Simply call x86_64_fill_fxsave.
3677 (fetch_inferior_registers, store_inferior_registers): Avoid
3678 asignment in if-statement.
3679 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
3680 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
3681 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
3682 (fetch_core_registers): Remove function.
3683 (linux_elf_core_fns): Remove.
3684 (offsetoff): Don't define.
3685 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
3686 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
3687 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
3688 add core-regset.o.
3689 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
3690 protection against multiple includes instead of NM_X86_64_h. Add
3691 various comments. Include "config/nm-linux.h". Don't include
3692 <signal.h>.
3693 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
3694 GET_THREAD_SIGNALS): Remove defines.
3695 (x86_64_register_u_addr, kernel_u_size,
3696 lin_thread_get_thread_signals): Remove prototypes.
3697 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
3698 [HAVE_LINK_H]: Don't include "solib.h".
3699 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
3700 * config/i386/tm-x86-64linux.h: Fix comments.
3701 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
3702 x86-64-tdep.o): Update dependencies.
3703
3704 2003-05-30 Andrew Cagney <cagney@redhat.com>
3705
3706 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
3707 Change parameter type to a "struct regcache *".
3708
3709 * gdbarch.sh: Regardless of the multi-arch level, always define
3710 the macro when not already defined.
3711 * gdbarch.h, gdbarch.c: Re-generate.
3712
3713 2003-05-30 Richard Henderson <rth@redhat.com>
3714
3715 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
3716 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
3717 (alpha_mdebug_frame_this_id): Likewise.
3718 (alpha_mdebug_frame_prev_register): Likewise.
3719 (alpha_mdebug_frame_base_address): Likewise.
3720 (alpha_mdebug_frame_locals_address): Likewise.
3721 (alpha_mdebug_frame_args_address): Likewise.
3722 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
3723 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
3724 (alpha_heuristic_frame_unwind_cache): Make static; add missing
3725 loop increment.
3726 (alpha_heuristic_frame_this_id): Make static.
3727 (alpha_heuristic_frame_prev_register): Likewise.
3728 (alpha_heuristic_frame_base_address): Likewise.
3729 * alpha-tdep.h: Update.
3730
3731 2003-05-30 Mark Kettenis <kettenis@gnu.org>
3732
3733 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
3734 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
3735 defenitions.
3736 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
3737 * i386-tdep.c: Mark functions that are 64-bit safe as such.
3738 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3739 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3740 I386_ST0_REGNUM): New defines.
3741 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
3742 codestream_get): Remove define.
3743 (codestream_next_addr, condestream_addr, condestream_buf,
3744 codestream_off, codestream_cnt): Remove variables.
3745 (codestream_fill, codestream_seek, codestream_read): Remove
3746 functions.
3747 (i386_follow_jump): Rewrite to avoid usage of removed codestream
3748 functionality.
3749 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
3750 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
3751 i386_frame_saved_pc, i386_saved_pc_after_call,
3752 i386_frame_num_args, i386_frame_init_saved_regs,
3753 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
3754 i386_push_arguments): Remove functions.
3755 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
3756 functionality. Use i386_analyze_prologue instead of
3757 i386_get_frame_setup.
3758 (I386_NUM_SAVED_REGS): New define.
3759 (struct i386_frame_cache): New structure.
3760 (i386_alloc_frame_cache, i386_analyze_struct_return,
3761 i386_skip_probe, i386_analyze_frame_setup,
3762 i386_analyze_register_saves, i386_analyze_prologue,
3763 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
3764 i386_frame_prev_register, i386_sigtramp_frame_cache,
3765 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
3766 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
3767 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
3768 New functions.
3769 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
3770 New variables.
3771 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
3772 I386_EAX_REGNUM and I386_EDX_REGNUM.
3773 (i386_extract_return_value, i386_store_return_value): Use
3774 I386_ST0_REGNUM where appropriate.
3775 (i386_extract_struct_value_address): Rewrite to use extract_address.
3776 (i386_svr4_pc_in_sigtramp): Add comment.
3777 (i386_svr4_sigcontext_addr): Rewrite.
3778 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
3779 TDEP->sc_sp_offset.
3780 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
3781 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
3782 of new defines. Set push_dummy_call, don't set
3783 deprecated_push_arguments, deprecated_push_return_address,
3784 deprecated_pop_frame. Don't set parm_boundary. Don't set
3785 deprecated_frame_chain, deprecated_frame_saved_pc,
3786 deprecated_saved_pc_after_call. Set unwind_dummy_id,
3787 save_dummy_frame_tos, unwind_pc. Call
3788 frame_unwind_append_predicate and frame_base_set_default. Don't
3789 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
3790 Don't set frameless_function_invocation. Don't set
3791 deprecated_register_bytes, deprecated_register_size,
3792 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
3793 * i386-linux-tdep.c: Fix formatting in some comments.
3794 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
3795 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
3796 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
3797 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
3798 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
3799 redundant parentheses.
3800 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
3801 (i386_linux_sigcontext_addr): Use it. Rewrite.
3802 (find_minsym_and_objfile): Change name of second argument.
3803 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
3804 changed. Use frame_pc_unwind instead of
3805 DEPRECATED_SAVED_PC_AFTER_CALL.
3806 (i386_linux_init_abi): Don't set deprecated_register_bytes.
3807 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
3808 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
3809 unwinder.
3810 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
3811 "dummy-frame.h".
3812 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
3813 (_initialize_i386_cygwin_tdep): New prototype.
3814 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
3815 deprecated_frame_chain_valid.
3816 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
3817 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3818 Rely on the SVR4 defaults.
3819 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
3820 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
3821
3822 2003-05-30 Andrew Cagney <cagney@redhat.com>
3823
3824 * infcall.c (call_function_by_hand): Always call
3825 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
3826
3827 2003-05-30 Richard Henderson <rth@redhat.com>
3828
3829 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
3830 increment.
3831
3832 2003-05-29 Jim Blandy <jimb@redhat.com>
3833
3834 Use gdbarch methods for solib stuff on PowerPC Linux.
3835 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
3836 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
3837 show through.
3838 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3839 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
3840 giving the same effect as the #definitions above.
3841
3842 2003-05-29 Adam Fedor <fedor@gnu.org>
3843
3844 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
3845 (find_implementation_from_class): Replace it with the standard
3846 case i.e. do nothing.
3847
3848 2003-05-29 Richard Henderson <rth@redhat.com>
3849
3850 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
3851 (alpha_linux_sigtramp_offset): Use it. Make static.
3852 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
3853 update for new frame model.
3854 * alpha-mdebug-tdep.c: New file.
3855 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
3856 (alpha_osf1_init_abi): Install it.
3857 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
3858 (linked_proc_desc_table): Remove.
3859 (alpha_frame_past_sigtramp_frame): Remove.
3860 (alpha_dynamic_sigtramp_offset): Remove.
3861 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
3862 (alpha_proc_desc_is_dyn_sigtramp): Remove.
3863 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
3864 (push_sigtramp_desc): Remove.
3865 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
3866 (alpha_cannot_store_register): Likewise.
3867 (alpha_sigcontext_addr): Remove.
3868 (alpha_find_saved_regs): Remove.
3869 (alpha_frame_init_saved_regs): Remove.
3870 (alpha_init_frame_pc_first): Remove.
3871 (read_next_frame_reg): Remove.
3872 (alpha_frame_saved_pc): Remove.
3873 (alpha_saved_pc_after_call): Remove.
3874 (temp_proc_desc, temp_saved_regs): Remove.
3875 (alpha_about_to_return): Remove.
3876 (cached_proc_desc): Remove.
3877 (alpha_frame_chain): Remove.
3878 (alpha_print_extra_frame_info): Remove.
3879 (alpha_init_extra_frame_info): Remove.
3880 (alpha_frame_locals_address): Remove.
3881 (alpha_frame_args_address): Remove.
3882 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
3883 (alpha_push_dummy_frame): Remove.
3884 (alpha_pop_frame): Remove.
3885 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
3886 (alpha_read_insn): New.
3887 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
3888 for different insn encodings.
3889 (alpha_in_lenient_prologue): Remove.
3890 (struct alpha_sigtramp_unwind_cache): New.
3891 (alpha_sigtramp_frame_unwind_cache): New.
3892 (alpha_sigtramp_register_address): New.
3893 (alpha_sigtramp_frame_this_id): New.
3894 (alpha_sigtramp_frame_prev_register): New.
3895 (alpha_sigtramp_frame_unwind): New.
3896 (alpha_sigtramp_frame_p): New.
3897 (struct alpha_heuristic_unwind_cache): New.
3898 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
3899 don't count nop insns that occur between functions.
3900 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
3901 heuristic_proc_desc, but without the mdebug wrapping.
3902 (alpha_heuristic_frame_this_id): New.
3903 (alpha_heuristic_frame_prev_register): New.
3904 (alpha_heuristic_frame_unwind): New.
3905 (alpha_heuristic_frame_p): New.
3906 (alpha_heuristic_frame_base_address): New.
3907 (alpha_heuristic_frame_base): New.
3908 (alpha_unwind_dummy_id): New.
3909 (alpha_unwind_pc): New.
3910 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
3911 frame related deprecated initializations; install replacements.
3912 (alpha_dump_tdep): Remove.
3913 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
3914 (alpha_read_insn, alpha_after_prologue,
3915 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
3916 alpha_heuristic_frame_prev_register,
3917 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
3918 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3919 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
3920 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
3921
3922 2003-05-29 Andrew Cagney <cagney@redhat.com>
3923
3924 * gdb_assert.h (gdb_assert_fail): Provide different definitions
3925 dependant on the availability of ASSERT_FUNCTION.
3926 (ASSERT_FUNCTION): Do not define when there is no function name.
3927
3928 2003-05-29 Kevin Buettner <kevinb@redhat.com>
3929
3930 From Jimi X <jimix@watson.ibm.com>:
3931 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
3932
3933 2003-05-28 Jim Blandy <jimb@redhat.com>
3934
3935 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
3936 argument to ptrace to int; the system headers should give it the
3937 right type, and pointers don't fit in ints on powerpc64-*-*.
3938
3939 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
3940
3941 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
3942 DW_TAG_catch_block.
3943
3944 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
3945
3946 * stabsread.c (dbx_lookup_type): Make static.
3947 (read_type): Ditto.
3948 (add_undefined_type): Ditto.
3949 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
3950 not export.
3951
3952 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
3953
3954 * hpread.c (hpread_has_name): Make static.
3955 (hpread_psymtab_to_symtab): Ditto.
3956 (file_exists): Ditto.
3957 (hpread_call_pxdb): Ditto.
3958 (hpread_pxdb_needed): Ditto.
3959 (hpread_quick_traverse): Ditto.
3960 (hpread_get_header): Ditto.
3961 (hpread_get_lntt): Ditto.
3962 (hpread_get_slt): Ditto.
3963 (class_of): Ditto.
3964
3965 2003-05-25 Andreas Schwab <schwab@suse.de>
3966
3967 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
3968 stack_align and deprecated_extra_stack_alignment_needed.
3969 (m68k_stack_align): Delete.
3970
3971 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
3972 (m68k_register_virtual_size): Likewise.
3973 (altos_skip_prologue): Remove obsolete function.
3974 (isi_frame_num_args): Likewise.
3975 (news_frame_num_args): Likewise.
3976 (m68k_fix_call_dummy): Make static.
3977 (m68k_push_dummy_frame): Likewise.
3978 (m68k_pop_frame): Likewise.
3979 (m68k_skip_prologue): Likewise.
3980 (m68k_frame_init_saved_regs): Likewise.
3981 (m68k_saved_pc_after_call): Likewise.
3982 (m68k_get_longjmp_target): Make multi-arch.
3983 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
3984 structure. Register m68k_get_longjmp_target if enabled.
3985 * m68k-tdep.h (struct gdbarch_tdep): Define.
3986 * config/m68k/tm-m68k.h: Don't include "regcache.h".
3987
3988 * Makefile.in (config.status): Also depend on configure.tgt
3989 and configure.host.
3990 (m68klinux-tdep.o): Update dependencies.
3991 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
3992 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
3993 (M68K_LINUX_JB_PC): Define.
3994 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
3995 and take additional parameter.
3996 (m68k_linux_sigtramp_saved_pc): Update.
3997 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
3998 m68k_linux_pc_in_sigtramp, in_plt_section,
3999 find_solib_trampoline_target.
4000 * config/m68k/tm-linux.h: Don't include any tm headers.
4001 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4002 (JB_ELEMENT_SIZE): Likewise.
4003 (JB_PC): Likewise.
4004 (GET_LONGJMP_TARGET): Likewise.
4005 (IN_SIGTRAMP): Likewise.
4006 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4007
4008 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4009
4010 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4011 (sparc32_push_arguments): Re-implement by calling
4012 sparc32_do_push_arguments.
4013
4014 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4015
4016 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4017 SPARC_O1_REGNUM): New defines.
4018 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4019 (sparc32_store_return_value): New function.
4020 (sparc_extract_struct_value_address): Rewrite to operate on a
4021 regcache.
4022 (sparc_gdbarch_init): Don't set
4023 deprecated_extract_struct_value_address. Set
4024 extract_struct_value_address instead. Don't set
4025 deprecated_extract_return_value and deprecated_store_return_value
4026 for 32-bit targets. Set extract_return_value and
4027 store_return_value instead.
4028 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4029 DEPRECTAED_EXTRACT_RETURN_VALUE,
4030 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4031 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4032 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4033 (sparc_store_return_value): Remove prototype.
4034 (sparc32_store_return_value): New prototype.
4035 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4036 Adjust prototypes.
4037
4038 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4039
4040 * sparcnbsd-tdep.c: Include "gdb_string.h".
4041
4042 2003-05-23 Andrew Cagney <cagney@redhat.com>
4043
4044 * p-valprint.c (pascal_val_print): Replace extract_address with
4045 the inline equivalent extract_unsigned_integer.
4046 * jv-valprint.c (java_value_print): Ditto.
4047 * ada-valprint.c (ada_val_print_1): Ditto.
4048 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4049
4050 2003-05-23 Theodore A. Roth <troth@openavr.org>
4051
4052 * blockframe.c (frameless_look_for_prologue): Remove unused
4053 after_prologue variable.
4054
4055 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4056
4057 * blockframe.c (get_pc_function_start): Rewrite to avoid
4058 asignments in if-statements.
4059
4060 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4061
4062 Committed by Elena Zannoni <ezannoni@redhat.com>.
4063 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4064 files, don't relocate absolute symbols (and do use mst_abs).
4065
4066 2003-05-23 Andrew Cagney <cagney@redhat.com>
4067
4068 * objc-lang.c: Include "gdb_assert.h".
4069 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4070 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4071 (gdb_check, gdb_check_fatal): Delete functions.
4072 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4073 gdb_assert.
4074 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4075 * Makefile.in (objc-lang.o): Update dependencies.
4076
4077 2003-05-22 Ian Lance Taylor <ian@airs.com>
4078
4079 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4080 with fprintf_filtered, not fprintf_unfiltered.
4081
4082 2003-05-22 Andrew Cagney <cagney@redhat.com>
4083
4084 * stack.c (frame_info): Inline extract_address, replacing it with
4085 extract_unsigned_integer.
4086 * findvar.c (unsigned_pointer_to_address): Ditto.
4087 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4088 * dwarf2expr.c (dwarf2_read_address): Ditto.
4089 * frame.c (frame_pc_unwind): Update comment.
4090 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4091
4092 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4093
4094 * infptrace.c (detach): Call print_sys_errmsg rather than
4095 perror_with_name to issue warning message when errno is non-zero
4096 after calling ptrace detach.
4097
4098 2003-05-21 J. Brobecker <brobecker@gnat.com>
4099
4100 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4101 macro definitions from here...
4102 * hppa-tdep.c: ...to there.
4103
4104 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4105
4106 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4107 register_ptrace_addr(). Fix all callers.
4108
4109 2003-05-21 Andreas Schwab <schwab@suse.de>
4110
4111 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4112 dependencies.
4113 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4114 end.
4115 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4116 (_initialize_m68k_linux_tdep): New function.
4117 (m68k_linux_frame_saved_pc): Make static.
4118 (m68k_linux_extract_return_value): Likewise.
4119 (m68k_linux_store_return_value): Likewise.
4120 (m68k_linux_extract_struct_value_address): Likewise.
4121 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4122 Remove.
4123 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4124 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4125 (DEPRECATED_FRAME_SAVED_PC): Remove.
4126
4127 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4128
4129 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4130 regset numbering rather than our own.
4131
4132 2003-05-19 David Carlton <carlton@bactrian.org>
4133
4134 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4135
4136 2003-05-19 David Carlton <carlton@bactrian.org>
4137
4138 Partial fix for PR c++/827.
4139 * cp-support.h: Include symtab.h.
4140 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4141 * cp-namespace.c: Update contributors.
4142 (cp_lookup_symbol_nonlocal): New.
4143 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4144 (lookup_symbol_file): Ditto.
4145 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4146 * block.h: Declare block_scope, block_using, block_global_block.
4147 * block.c (block_scope): New.
4148 (block_using, block_global_block): Ditto.
4149 * Makefile.in (cp_support_h): Depend on symtab_h.
4150 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4151
4152 2003-05-19 David Carlton <carlton@bactrian.org>
4153
4154 * language.h (struct language_defn): Add 'la_value_of_this'
4155 and 'la_lookup_symbol_nonlocal' members.
4156 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4157 lookup_symbol_static, lookup_symbol_global,
4158 lookup_symbol_aux_block.
4159 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4160 if we should search fields of this and how to do static/global
4161 lookup.
4162 (lookup_symbol_aux_block): Make extern.
4163 (basic_lookup_symbol_nonlocal): New.
4164 (lookup_symbol_static, lookup_symbol_global): Ditto.
4165 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4166 'la_lookup_symbol_nonlocal' members.
4167 * c-lang.c (c_language_defn, cplus_language_defn)
4168 (asm_language_defn, minimal_language_defn): Ditto.
4169 * jv-lang.c (java_language_defn): Ditto.
4170 * language.c (unknown_language_defn, auto_language_defn)
4171 (local_language_defn): Ditto.
4172 * m2-lang.c (m2_language_defn): Ditto.
4173 * objc-lang.c (objc_language_defn): Ditto.
4174 * scm-lang.c (scm_language_defn): Ditto.
4175 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4176 * p-lang.c (pascal_language_defn): Ditto for both.
4177 * Makefile.in (f-lang.o): Depend on value_h.
4178 (p-lang.o): Ditto.
4179
4180 2003-05-19 David Carlton <carlton@bactrian.org>
4181
4182 * block.h: Declare block_static_block.
4183 * block.c (block_static_block): New.
4184 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4185 lookup_symbol_aux_local, calling block_static_block instead.
4186 (lookup_symbol_aux_local): Delete 'static_block' argument.
4187
4188 2003-05-19 David Carlton <carlton@bactrian.org>
4189
4190 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4191
4192 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4193
4194 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4195 register numbers mapping.
4196
4197 2003-05-18 Adam Fedor <fedor@gnu.org>
4198
4199 * symtab.c (completion_list_objc_symbol): New function.
4200 (make_symbol_completion_list): Use it to add ObjC symbols
4201 when looking though the list.
4202 (language_search_unquoted_string): New function.
4203 (make_file_symbol_completion_list): Use it.
4204
4205 2003-05-18 Andreas Schwab <schwab@suse.de>
4206
4207 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4208 dependencies.
4209 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4210 as m68k_linux_extract_return_value.
4211 (DEPRECATED_STORE_RETURN_VALUE): Define as
4212 m68k_linux_store_return_value.
4213 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4214 m68k_linux_extract_struct_value_address.
4215 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4216 get_next_frame, get_frame_base, get_frame_pc.
4217 (m68k_linux_frame_saved_pc): Use get_frame_base.
4218 (m68k_linux_extract_return_value): New function.
4219 (m68k_linux_store_return_value): New function.
4220 (m68k_linux_extract_struct_value_address): New function.
4221 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4222
4223 * c-exp.y (typebase): Remove duplicate occurence of
4224 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4225 of lookup_signed_typename.
4226
4227 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4228
4229 * dwarf2loc.c (find_location_expression): Change type of second
4230 argument to `size_t *'.
4231 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4232 for size variable.
4233
4234 2003-05-18 David Carlton <carlton@bactrian.org>
4235
4236 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4237 'linkage_name'. Add comment.
4238 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4239 'linkage_name'.
4240 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4241 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4242 (lookup_block_symbol): Ditto.
4243
4244 2003-05-16 Andrew Cagney <cagney@redhat.com>
4245
4246 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4247 * gdbarch.h, gdbarch.c: Re-generate.
4248 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4249 * TODO (REGISTER_BYTES): Delete reference.
4250 * alpha-tdep.c (alpha_gdbarch_init): Update.
4251 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4252 * x86-64-tdep.c (x86_64_init_abi): Update.
4253 * vax-tdep.c (vax_gdbarch_init): Update.
4254 * v850-tdep.c (v850_gdbarch_init): Update.
4255 * sparc-tdep.c (sparc_gdbarch_init): Update.
4256 * sh-tdep.c (sh_gdbarch_init): Update.
4257 * s390-tdep.c (s390_gdbarch_init): Update.
4258 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4259 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4260 (ns32k_gdbarch_init_32382): Update.
4261 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4262 * mcore-tdep.c (mcore_gdbarch_init): Update.
4263 * m68k-tdep.c (m68k_gdbarch_init): Update.
4264 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4265 * ia64-tdep.c (ia64_gdbarch_init): Update.
4266 * i386-tdep.c (i386_gdbarch_init): Update.
4267 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4268 * hppa-tdep.c (hppa_gdbarch_init): Update.
4269 * h8300-tdep.c (h8300_gdbarch_init): Update.
4270 * frv-tdep.c (frv_gdbarch_init): Update.
4271 * cris-tdep.c (cris_gdbarch_init): Update.
4272 * avr-tdep.c (avr_gdbarch_init): Update.
4273 * arm-tdep.c (arm_gdbarch_init): Update.
4274 * sparc-tdep.c (sparc_pop_frame): Update.
4275 * rs6000-tdep.c (rs6000_pop_frame): Update.
4276 * remote.c (init_remote_state): Update.
4277 (remote_prepare_to_store): Update.
4278 * remote-vx.c (vx_prepare_to_store): Update.
4279 * remote-sds.c (sds_fetch_registers): Update.
4280 (sds_prepare_to_store): Update.
4281 * remote-array.c: Update.
4282 * regcache.c (init_legacy_regcache_descr): Update.
4283 (init_regcache_descr): Update.
4284 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4285 (mips_o64_extract_return_value): Update.
4286 * irix5-nat.c (fetch_core_registers): Update.
4287 * irix4-nat.c (fetch_core_registers): Update.
4288 * i386-tdep.h: Update.
4289 * hppa-tdep.c (pa_do_registers_info): Update.
4290 (pa_do_strcat_registers_info): Update.
4291 * cris-tdep.c (cris_register_bytes_ok): Update.
4292 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4293 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4294 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4295 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4296 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4297 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4298 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4299 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4300 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4301 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4302 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4303 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4304 (REGISTER_BYTES_OK): Update.
4305 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4306 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4307
4308 2003-05-16 Ian Lance Taylor <ian@airs.com>
4309
4310 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4311 (vax_print_insn, print_insn_arg): Remove static functions.
4312 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4313 print_insn_vax from opcodes library.
4314 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4315
4316 2003-05-15 Andrew Cagney <cagney@redhat.com>
4317
4318 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4319 * target.h (memory_breakpoint_from_pc): Delete declaration.
4320 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4321 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4322 * monitor.c (monitor_insert_breakpoint): Use
4323 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4324 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4325 * gdbarch.h, gdbarch.c: Re-generate.
4326 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4327 (sparc_gdbarch_init): Set breakpoint_from_pc to
4328 sparc_breakpoint_from_pc.
4329 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4330 (BREAKPOINT_FROM_PC): Define.
4331 (sparc_breakpoint_from_pc): Declare.
4332 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4333 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4334 (BREAKPOINT_FROM_PC): Define.
4335 (BREAKPOINT): Delete macro.
4336 * target.h: Update comment.
4337 * s390-tdep.c (s390_gdbarch_init): Update comments.
4338 * remote.c: Update comments.
4339 * remote-mips.c: Update comments.
4340 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4341 * mem-break.c: Update comment.
4342 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4343 (ia64_memory_insert_breakpoint): Update.
4344 * config/sparc/tm-sparc.h: Update comment.
4345 * config/pa/tm-hppa64.h: Update comment.
4346 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4347 (rs6000_breakpoint_from_pc): Update.
4348 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4349 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4350 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4351 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4352 (mips_breakpoint_from_pc): Update.
4353 (mips_dump_tdep): Update.
4354
4355 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4356 * minsyms.c (lookup_minimal_symbol): Inline
4357 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4358
4359 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4360 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4361 * p-lang.c (pascal_printstr): Ditto.
4362 * objc-lang.c (objc_printstr): Ditto.
4363 * m2-lang.c (m2_printstr): Ditto.
4364 * jv-valprint.c (java_print_value_fields): Ditto.
4365 * f-lang.c (f_printstr): Ditto.
4366 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4367 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4368 for repeat_count_threshold.
4369 * Makefile.in (cp-valprint.o): Update dependencies.
4370
4371 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
4372
4373 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4374 (examine_prologue): Support looking through leaf functions, knowing
4375 they start with mov r2,r12. Support skipping over indirect stores
4376 of the input registers. Upon hitting a non-nop branch instruction
4377 or predicated instruction, bail out by setting lim_pc to the current
4378 pc value in the loop. At the end, if the lim_pc value is still
4379 beyond our calculated value and we have trust_limit set,
4380 use the lim_pc value.
4381
4382 2003-05-15 Andrew Cagney <cagney@redhat.com>
4383
4384 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4385 generic_find_dummy_frame.
4386 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4387 (deprecated_generic_find_dummy_frame): Update.
4388 (deprecated_read_register_dummy): Update.
4389 * frame.c (deprecated_generic_get_saved_register): Update.
4390
4391 2003-05-15 Theodore A. Roth <troth@openavr.org>
4392
4393 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4394 (avr_gdbarch_init): Set breakpoint_from_pc method.
4395
4396 2003-05-15 Andrew Cagney <cagney@redhat.com>
4397
4398 * regcache.c (build_regcache): Set deprecated_register_valid
4399 directly.
4400 (deprecated_grub_regcache_for_register_valid): Delete function.
4401 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4402 declaration.
4403
4404 2003-05-15 David Carlton <carlton@bactrian.org>
4405
4406 Committed by Elena Zannoni <ezannoni@redhat.com>
4407 * symtab.c (lookup_symbol_aux): Delete calls to
4408 lookup_symbol_aux_minsyms.
4409 (lookup_symbol_aux_minsyms): Comment out function and
4410 prototype. Delete lookup by mangled name.
4411
4412 2003-05-14 Kevin Buettner <kevinb@redhat.com>
4413
4414 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4415 correctly indicate an empty stack and ``stack_allocated'' to the
4416 indicate the number of elements initially allocated.
4417 (dwarf_expr_grow_stack): Simplify method for computing new
4418 stack size. Don't loop infinitely if ``stack_len'' is zero.
4419 (execute_stack_op): Move ``ctx->in_reg'' initialization
4420 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4421 be used in conjuction with DW_OP_piece. Revise error message
4422 accordingly.
4423
4424 2003-05-14 Theodore A. Roth <troth@openavr.org>
4425
4426 * MAINTAINERS: Update my email address.
4427 * avr-tdep.c: Ditto.
4428
4429 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
4430
4431 * symtab.h (enum domain_enum): Rename from namespace_enum.
4432 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4433 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4434 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4435 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4436 TYPES_NAMESPACE, METHODS_NAMESPACE.
4437 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4438 (struct symbol, struct partial_symbol): Rename field
4439 'namespace_enum namespace' to 'domain_enum domain'.
4440 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4441 Delete old define kludge for namespace.
4442
4443 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4444 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4445 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4446 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4447 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4448 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4449 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4450 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4451 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4452 occurrences of the above.
4453
4454 2003-05-14 Ian Lance Taylor <ian@airs.com>
4455
4456 * Makefile.in (install-only): Use $(SHELL) when running
4457 mkinstalldirs.
4458
4459 2003-05-13 Ian Lance Taylor <ian@airs.com>
4460
4461 * MAINTAINERS (write after approval): Add myself.
4462
4463 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4464 second and third arguments.
4465 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4466 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4467
4468 2003-05-13 Andrew Cagney <cagney@redhat.com>
4469
4470 * defs.h (store_address): Delete declaration.
4471 findvar.c (store_address): Delete function.
4472 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4473 store_unsigned_integer.
4474 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4475 * v850-tdep.c (v850_push_arguments): Ditto.
4476 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4477 * sh-tdep.c (sh64_get_saved_register): Ditto.
4478 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4479 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4480 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4481 (mips_get_saved_register): Ditto.
4482 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4483 (find_func_descr, ia64_push_arguments): Ditto.
4484 * i386-tdep.c (i386_push_arguments): Ditto.
4485 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4486 * frv-tdep.c (frv_push_arguments): Ditto.
4487 * frame.c (legacy_saved_regs_prev_register): Ditto.
4488 (deprecated_generic_get_saved_register): Ditto.
4489 * findvar.c (unsigned_address_to_pointer): Ditto.
4490 * dwarf2read.c (dwarf2_const_value): Ditto.
4491 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4492 * alpha-tdep.c (alpha_push_arguments): Ditto.
4493
4494 2003-05-12 J. Brobecker <brobecker@gnat.com>
4495
4496 * NEWS: Mention that the hppa-hpux port has been partially
4497 multiarched (32bit ABIT only, so far).
4498
4499 2003-05-11 Andrew Cagney <cagney@redhat.com>
4500
4501 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4502 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4503 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4504 sim/testsuite/sim/arm/misaligned2.ms, and
4505 sim/testsuite/sim/arm/misaligned3.ms.
4506 * disasm.h (struct ui_file): Add opaque struct declaration.
4507 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4508 * frame.h (struct ui_file): Ditto.
4509
4510 2003-05-11 Mark Kettenis <kettenis@gnu.org>
4511
4512 * value.h: Pretty print.
4513
4514 2003-05-10 Mark Kettenis <kettenis@gnu.org>
4515
4516 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4517
4518 2003-05-08 Andrew Cagney <cagney@redhat.com>
4519
4520 * regcache.h (max_register_size): Delete declaration.
4521 * regcache.c (max_register_size): Delete function.
4522 (struct regcache_descr): Delete field "max_register_size".
4523 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4524 registers fit in MAX_REGISTER_SIZE.
4525 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4526 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4527 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4528 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4529 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4530 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4531 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4532 * dve3900-rom.c, hppa-tdep.c: Ditto.
4533
4534 2003-05-08 David Carlton <carlton@math.stanford.edu>
4535
4536 * valops.c (push_word): Fix typo.
4537
4538 2003-05-08 Andrew Cagney <cagney@redhat.com>
4539
4540 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4541 * gdbarch.h: Re-generate.
4542 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4543 (legacy_max_register_raw_size): Delete declaration.
4544 * regcache.c (legacy_max_register_raw_size): Delete function.
4545 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4546 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4547 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4548 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4549 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4550 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4551 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4552 * findvar.c, dwarf2cfi.c: Ditto.
4553
4554 2003-05-08 Andrew Cagney <cagney@redhat.com>
4555
4556 * mips-tdep.c (read_signed_register): New function, moved to here
4557 from "regcache.c".
4558 (read_signed_register_pid): Ditto.
4559 * regcache.c (read_signed_register_pid): Delete function, moved to
4560 "mips-tdep.c".
4561 (read_signed_register): Ditto.
4562 * regcache.h (read_signed_register): Delete declaration.
4563 (read_signed_register_pid): Delete declaration.
4564
4565 2003-05-08 Andrew Cagney <cagney@redhat.com>
4566
4567 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4568 * gdbarch.h: Re-generate.
4569 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4570 (legacy_max_register_virtual_size): Delete declaration.
4571 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4572 * d10v-tdep.c (d10v_print_registers_info): Ditto.
4573 * tracepoint.c (memrange_sortmerge): Ditto.
4574 * sparc-tdep.c (sparc_print_registers): Ditto.
4575 * regcache.c (legacy_max_register_virtual_size): Delete function.
4576
4577 2002-05-08 J. Brobecker <brobecker@gnat.com>
4578
4579 * fork-child.c (escape_bang_in_quoted_argument): New function.
4580 (fork_inferior): Escape '!' characters in quoted arguments
4581 only when needed.
4582
4583 2003-05-08 J. Brobecker <brobecker@gnat.com>
4584
4585 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
4586 the language of the CU is not currently supported by GDB.
4587
4588 2003-05-08 J. Brobecker <brobecker@gnat.com>
4589
4590 * defs.h (language): Add language_minimal enum value.
4591 * c-lang.c (minimal_language_defn): New language definition.
4592 (_initialize_c_language): Add the new minimal language to the list
4593 of languages known to GDB.
4594
4595 2003-05-08 Kevin Buettner <kevinb@redhat.com>
4596
4597 * frame.c (get_frame_type): Don't attempt to lazily initialize
4598 frame's unwinder for legacy frames.
4599
4600 2003-05-07 Andrew Cagney <cagney@redhat.com>
4601
4602 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
4603 and "regcache" parameters.
4604 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
4605
4606 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4607
4608 * dwarf2read.c (dwarf_decode_lines): Only use output of
4609 check_cu_functions() when calling record_line(). Do not update
4610 the current address.
4611
4612 2003-05-07 Andrew Cagney <cagney@redhat.com>
4613
4614 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
4615 code.
4616
4617 2003-05-07 Jim Blandy <jimb@redhat.com>
4618
4619 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
4620 'maint info symtabs' and 'maint info psymtabs'.
4621 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
4622 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
4623 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
4624 Declarations updated.
4625 * maint.c (maintenance_list_command): Delete.
4626 (_initialize_maint_cmds): Update calls to add_cmd.
4627 * gdbcmd.h (maintenancelistlist): Delete declaration.
4628 * cli/cli-cmds.c (maintenancelistlist): Delete.
4629 (init_cmd_lists): Don't initialize it.
4630 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
4631
4632 2003-05-07 Andrew Cagney <cagney@redhat.com>
4633
4634 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
4635 "regcache".
4636 (d10v_print_registers_info): Update.
4637 (d10v_dmap_register, d10v_imap_register): Delete functions.
4638 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
4639 and "imap_register".
4640 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
4641 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
4642 * arch-utils.c (generic_remote_translate_xfer_address): Add
4643 "regcache" and "gdbarch" parameters.
4644 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
4645 parameter. Change class to multi-arch.
4646 * gdbarch.h, gdbarch.c: Re-generate.
4647 * remote.c (remote_xfer_memory): Use
4648 gdbarch_remote_translate_xfer_address.
4649
4650 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4651
4652 * infrun.c (prev_pc): Move declaration ahead of proceed().
4653 (proceed): Refresh prev_pc value before resuming.
4654 (stop_stepping): Remove code to refresh prev_pc.
4655
4656 2003-05-06 Kris Warkentin <kewarken@qnx.com>
4657
4658 * nto-tdep.c: Removed stray comment.
4659
4660 2003-05-06 Kris Warkentin <kewarken@qnx.com>
4661
4662 * i386-nto-tdep.c: Fix old K&R function definitions.
4663 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
4664 Also change add_show_from_set() call to add_setshow_cmd().
4665 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
4666
4667 2003-05-05 Andrew Cagney <cagney@redhat.com>
4668
4669 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
4670 (fprint_dummy_frames): New function.
4671 (maintenance_print_dummy_frames): New function.
4672 (_initialize_dummy_frame): Add command "maint print dummy-frames".
4673 * frame.c (fprint_frame_id): Make global.
4674 * frame.h (fprint_frame_id): Declare.
4675 * Makefile.in (dummy-frame.o): Update dependencies.
4676
4677 2003-05-05 Andrew Cagney <cagney@redhat.com>
4678
4679 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
4680 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
4681 SIZEOF_CALL_DUMMY_WORDS.
4682 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
4683 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
4684 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
4685 CALL_DUMMY_BREAKPOINT_OFFSET.
4686 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
4687 CALL_DUMMY_START_OFFSET.
4688 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
4689 * gdbarch.h, gdbarch.c: Re-generate.
4690 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
4691 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
4692 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
4693 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
4694 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
4695 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
4696 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
4697 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
4698 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
4699 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
4700 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
4701 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
4702 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
4703 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
4704 * config/sparc/tm-sparc.h: Update.
4705
4706 2003-05-05 Kris Warkentin <kewarken@qnx.com>
4707
4708 * configure.tgt: Add i[3456]86-*-nto*.
4709 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
4710 * nto-tdep.c: New file. Neutrino target support routines.
4711 * nto-tdep.h: New file. Neutrino target header.
4712 * config/tm-qnxnto.h: New file.
4713 * config/i386/i386nto.mt: New file.
4714 * config/i386/tm-i386nto.h: New file.
4715
4716 2003-05-04 Andrew Cagney <cagney@redhat.com>
4717
4718 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
4719 (load_infrun_state): Ditto.
4720 (struct thread_info): Drop "prev_func_name" field.
4721 * thread.c (load_infrun_state): Update.
4722 (save_infrun_state): Update.
4723 * infrun.c (prev_func_name): Delete variable.
4724 (init_wait_for_inferior): Do not clear prev_func_name.
4725 (stop_stepping, keep_going, context_switch): Do not swap
4726 prev_func_name.
4727 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
4728 instead of PC_IN_SIGTRAMP.
4729
4730 2003-05-04 Andrew Cagney <cagney@redhat.com>
4731
4732 * sentinel-frame.c (sentinel_frame_prev_register): Replace
4733 REGISTER_BYTE with register_offset_hack.
4734 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
4735 that REGISTER_BYTE is consistent with the regcache.
4736 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
4737 * gdbarch.h, gdbarch.c: Regenerate.
4738
4739 2003-05-04 Mark Kettenis <kettenis@gnu.org>
4740
4741 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
4742 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
4743
4744 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
4745
4746 2003-05-03 J. Brobecker <brobecker@gnat.com>
4747
4748 From Thierry Schneider <tpschneider1@yahoo.com>
4749 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
4750 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
4751 (mi-cmd-symbol.o): Add rule.
4752
4753 2003-05-03 Andrew Cagney <cagney@redhat.com>
4754
4755 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
4756 comments noteing that it replaces the old FIX_CALL_DUMMY code.
4757 * gdbarch.h, gdbarch.c: Re-generate.
4758 * d10v-tdep.c (d10v_push_dummy_code): New function.
4759 (d10v_gdbarch_init): Set push_dummy_code.
4760 * infcall.c (legacy_push_dummy_code): New function.
4761 (generic_push_dummy_code): New function.
4762 (push_dummy_code): New function.
4763 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
4764 instead of dummy_addr, to push_dummy_call. Move call to
4765 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
4766 switch.
4767 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
4768
4769 2003-05-03 Andrew Cagney <cagney@redhat.com>
4770
4771 * disasm.h (print_insn): Declare.
4772 * disasm.c (init_gdb_disassemble_info): New function.
4773 (gdb_disassembly): Call init_gdb_disassemble_info.
4774 (gdb_print_insn): New function.
4775 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
4776 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
4777 * mcore-tdep.c: Include "disasm.h"
4778 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
4779 * d10v-tdep.c: Include "disasm.h".
4780 (display_trace): Call gdb_print_insn, instead of print_insn.
4781 (print_insn): Delete function.
4782 * printcmd.c: Include "disasm.h".
4783 (print_insn): Delete function.
4784 (print_formatted): Call gdb_print_insn, instead of print_insn.
4785 * Makefile.in (printcmd.o): Update dependencies.
4786 (mcore-tdep.o, d10v-tdep.o): Ditto.
4787
4788 2003-05-02 Andrew Cagney <cagney@redhat.com>
4789
4790 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
4791 PC_REGNUM, re-indent.
4792 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
4793 PC_REGNUM isn't set.
4794
4795 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
4796 * gdbarch.h, gdbarch.c: Re-generate.
4797 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
4798 register_virtual_size, pc_regnum, or register_bytes.
4799 (D10V_PC_REGNUM): Rename _PC_REGNUM.
4800 (d10v_register_type): Use D10V_PC_REGNUM.
4801 (d10v_print_registers_info, d10v_read_pc): Ditto.
4802 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
4803 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
4804
4805 2003-05-02 David Carlton <carlton@bactrian.org>
4806
4807 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
4808 the name with mstrsave.
4809
4810 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
4811
4812 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
4813 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
4814 (host_charset_name, target_charset_name): New vars for use by
4815 set/show commands.
4816 (host_charset_enum, target_charset_enum): New enums for set/show
4817 commands.
4818 (set_charset_sfunc, set_host_charset_sfunc,
4819 set_target_charset_sfunc): New functions.
4820 (set_host_charset, set_target_charset): Make static.
4821 (list_charsets, set_host_charset_command,
4822 set_target_charset_command): Delete functions.
4823 (show_charset_command): Rewrite as....
4824 (show_charset): Hook this up with the set/show command mechanism.
4825 (_initialize_charset): Change names of charsets to match the
4826 set/show enums. Use host_charset_name and target_charset_name.
4827 Use set/show mechanism for charset, host-charset, target-charset
4828 commands. Do not make 'show host-charset' and 'show
4829 target-charset' be aliases of 'show charset'.
4830
4831 * charset.h (set_host_charset, set_target_charset): Don't export,
4832 they are not used outside the file.
4833
4834 2003-05-01 Andrew Cagney <cagney@redhat.com>
4835
4836 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
4837 (gdb_disassembly): Make "di" non static, always initialize and
4838 cleanup. Always use dis_asm_read_memory.
4839 (gdb_dis_asm_read_memory): Delete function.
4840
4841 2003-05-01 Andrew Cagney <cagney@redhat.com>
4842
4843 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
4844 (d10v_gdbarch_init): Set frame_align instead of stack_align.
4845
4846 2003-04-30 Andrew Cagney <cagney@redhat.com>
4847
4848 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
4849 "tm_print_insn_info".
4850 (TARGET_PRINT_INSN_INFO): Delete macro.
4851 (dis_asm_read_memory): Delete function declaration.
4852 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4853 (tm_print_insn_info): Delete variable definition.
4854 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
4855 * gdbarch.h, gdbarch.c: Re-generate.
4856 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
4857 "deprecated_tm_print_insn_info".
4858 * mcore-tdep.c (mcore_dump_insn): Ditto.
4859 * mips-tdep.c (mips_gdbarch_init): Ditto.
4860 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
4861 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
4862 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
4863 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
4864 instead of TARGET_PRINT_INSN_INFO, add comment.
4865 * s390-tdep.c (s390_get_frame_info): Instead of
4866 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
4867 (s390_check_function_end, s390_is_sigreturn): Ditto.
4868 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
4869 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4870 * disasm.c: Include "gdbcore.h".
4871 (_initialize_disasm): New function, initialize
4872 "deprecated_tm_print_insn_info".
4873 (deprecated_tm_print_insn_info): New variable.
4874 (dis_asm_read_memory): Moved from "corefile.c", made static.
4875 (dis_asm_print_address, dis_asm_memory_error): Ditto.
4876 * Makefile.in (disasm.o): Update dependencies.
4877
4878 2003-04-30 Andrew Cagney <cagney@redhat.com>
4879
4880 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
4881
4882 2003-04-29 Adam Fedor <fedor@gnu.org>
4883
4884 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
4885 * infcall.c (find_function_addr): Make non-static.
4886 * infcall.h (find_function_addr): Declare.
4887 * Makefile.in (eval.o): Update dependencies.
4888
4889 2003-04-28 Adam Fedor <fedor@gnu.org>
4890
4891 * symtab.c (symbol_find_demangled_name): Check for and demangle
4892 ObjC symbols.
4893 (symbol_init_demangled_name): Init for language_objc as well.
4894
4895 2003-04-28 Andrew Cagney <cagney@redhat.com>
4896
4897 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
4898 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
4899 * gdbarch.h, gdbarch.c: Re-generate.
4900 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
4901 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
4902 * inferior.h (deprecated_read_fp): Rename read_fp.
4903 (generic_target_read_fp): Delete declaration.
4904 * regcache.c (generic_target_read_fp): Delete function.
4905 (deprecated_read_fp): Replace read_fp, use
4906 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
4907 * d10v-tdep.c (d10v_read_fp): Delete function.
4908 (d10v_gdbarch_init): Do not set deprecated_read_fp.
4909
4910 * sparc-tdep.c (sparc_gdbarch_init): Do not set
4911 deprecated_target_read_fp to generic_target_read_fp.
4912 * sh-tdep.c (sh_gdbarch_init): Ditto.
4913 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4914 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4915 * frv-tdep.c (frv_gdbarch_init): Ditto.
4916
4917 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
4918 deprecated_fp_regnum.
4919 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4920 * vax-tdep.c (vax_gdbarch_init): Ditto.
4921 * v850-tdep.c (v850_gdbarch_init): Ditto.
4922 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4923 * sh-tdep.c (sh_gdbarch_init): Ditto.
4924 * s390-tdep.c (s390_gdbarch_init): Ditto.
4925 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4926 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4927 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4928 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4929 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4930 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4931 * i386-tdep.c (i386_gdbarch_init): Ditto.
4932 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4933 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4934 * frv-tdep.c (frv_gdbarch_init): Ditto.
4935 * cris-tdep.c (cris_gdbarch_init): Ditto.
4936 * avr-tdep.c (avr_gdbarch_init): Ditto.
4937 * arm-tdep.c (arm_gdbarch_init): Ditto.
4938 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4939
4940 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
4941 * v850-tdep.c (v850_gdbarch_init): Ditto.
4942 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4943 * sh-tdep.c (sh_gdbarch_init): Ditto.
4944 * s390-tdep.c (s390_gdbarch_init): Ditto.
4945 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4946 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4947 * mips-tdep.c (mips_gdbarch_init): Ditto.
4948 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4949 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4950 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4951 * frv-tdep.c (frv_gdbarch_init): Ditto.
4952 * avr-tdep.c (avr_gdbarch_init): Ditto.
4953 * arm-tdep.c (arm_gdbarch_init): Ditto.
4954
4955 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
4956 DEPRECATED_FP_REGNUM.
4957 (vax_push_dummy_frame, vax_pop_frame): Ditto.
4958 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
4959 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
4960 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
4961 (sparc32_register_virtual_type): Ditto.
4962 * sh-tdep.c (sh64_frame_chain): Ditto.
4963 (sh64_get_saved_register, sh64_pop_frame): Ditto.
4964 (sh_nofp_frame_init_saved_regs): Ditto.
4965 (sh64_nofp_frame_init_saved_regs): Ditto.
4966 (sh_fp_frame_init_saved_regs): Ditto.
4967 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4968 * remote-e7000.c (fetch_regs_from_dump): Ditto.
4969 * procfs.c (procfs_fetch_registers): Ditto.
4970 (procfs_store_registers): Ditto.
4971 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
4972 (store_inferior_registers, fetch_core_registers): Ditto.
4973 (fetch_kcore_registers, clear_regs): Ditto.
4974 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
4975 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
4976 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
4977 * nlm/i386.c (do_status): Ditto.
4978 * mipsv4-nat.c (supply_gregset): Ditto.
4979 * mips-tdep.c: Ditto for comments.
4980 * mips-nat.c (fetch_inferior_registers): Ditto.
4981 (store_inferior_registers, fetch_core_registers): Ditto.
4982 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
4983 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
4984 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
4985 (i386_do_pop_frame, i386_register_type): Ditto.
4986 * hppa-tdep.c (hppa_frame_chain): Ditto.
4987 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
4988 (hppa_pop_frame, hppa_read_fp): Ditto.
4989 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
4990 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
4991 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
4992 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
4993 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
4994 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
4995 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
4996 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
4997 * blockframe.c: Ditto for comments.
4998 * arch-utils.h: Ditto for comments.
4999 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5000 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5001 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5002 * alpha-tdep.h: Ditto for comments.
5003 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5004 (alpha_cannot_store_register): Ditto.
5005 (alpha_push_dummy_frame): Ditto.
5006 * alpha-nat.c (supply_gregset): Ditto.
5007
5008 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5009 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5010 * config/sparc/tm-sparc.h: Update comment.
5011
5012 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5013 deprecated_read_fp instead of TARGET_READ_FP.
5014 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5015 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5016 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5017 deprecated_read_fp instead of read_fp.
5018 * s390-tdep.c (s390_push_arguments): Ditto.
5019 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5020 * frame.h: Ditto in comments.
5021 * frame.c (legacy_get_prev_frame): Ditto.
5022 * dummy-frame.c (dummy_frame_this_id): Ditto.
5023 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5024
5025 2003-04-28 Andrew Cagney <cagney@redhat.com>
5026
5027 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5028 * gdbarch.h, gdbarch.c: Re-generate.
5029 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5030 * vax-tdep.c (_initialize_vax_tdep): Update.
5031 * v850-tdep.c (_initialize_v850_tdep): Update.
5032 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5033 * s390-tdep.c (_initialize_s390_tdep): Update.
5034 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5035 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5036 * mips-tdep.c (_initialize_mips_tdep): Update.
5037 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5038 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5039 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5040 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5041 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5042 * frv-tdep.c (_initialize_frv_tdep): Update.
5043 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5044 (_initialize_cris_tdep): Update.
5045 * arch-utils.c (legacy_print_insn): Update.
5046 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5047
5048 2003-04-26 Adam Fedor <fedor@gnu.org>
5049
5050 * linespec.c (decode_objc): New function to decode ObjC calls
5051 (decode_line_1): Check for ObjC calls (using decode_objc)
5052 * Makefile (linespec.o): Update dependencies.
5053
5054 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5055
5056 * breakpoint.h (struct breakpoint_ops): New.
5057 (struct breakpoint): Add ops member.
5058
5059 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5060 (mention): Use new breakpoint ops member.
5061 (set_raw_breakpoint): Initialize ops field to NULL.
5062 (print_exception_catchpoint, print_one_exception_catchpoint)
5063 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5064 (gnu_v3_exception_catchpoint_ops): New.
5065 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5066
5067 2003-04-25 Adam Fedor <fedor@gnu.org>
5068
5069 * Makefile.in (COMMON_OBS): Add objc-lang.o
5070
5071 2003-04-25 Andrew Cagney <cagney@redhat.com>
5072
5073 * d10v-tdep.c (print_insn): Delete function.
5074 (display_trace): Use TARGET_PRINT_INSN.
5075 (_initialize_d10v_tdep): Do not set tm_print_insn.
5076 (d10v_gdbarch_init): Set print_insn.
5077
5078 2003-04-25 Andrew Cagney <cagney@redhat.com>
5079
5080 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5081 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5082 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5083 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5084 (nr_dmap_regs, a0_regnum): ... new functions.
5085 (d10v_print_registers_info): Use a0_regnum, use register_size.
5086 (d10v_register_byte): Delete function.
5087 (d10v_register_raw_size): Delete function.
5088 (d10v_register_type): Use a0_regnum.
5089 (d10v_print_registers_info): Use a0_regnum.
5090 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5091 (d10v_gdbarch_init): Do not set register_byte or
5092 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5093 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5094 extract_address.
5095 (trace_command): Use XCALLOC.
5096 (print_insn): Delete reference to tm_print_insn.
5097 (saved_regs_unwinder): Use store_unsigned_integer instead of
5098 store_address.
5099 * frame.h (FRAME_OBSTACK_CALLOC): Define
5100
5101 2003-04-25 David Carlton <carlton@bactrian.org>
5102
5103 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5104
5105 2003-04-24 Adam Fedor <fedor@gnu.org>
5106
5107 * objc-lang.c: Include "valprint.h"
5108 * Makefile.in (objc-lang.o): Update dependencies.
5109
5110 2003-04-24 Adam Fedor <fedor@gnu.org>
5111
5112 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5113 architecture dependant compilation and mark as unimplemented
5114 (until they get put in the gdbarch vector).
5115
5116 2003-04-23 David Carlton <carlton@bactrian.org>
5117
5118 * cp-support.c (cp_find_first_component): Accept 'operator' in
5119 more locations.
5120
5121 2003-04-23 Andrew Cagney <cagney@redhat.com>
5122
5123 * infcall.c (call_function_by_hand): Eliminate redundant
5124 indentation. Move "saved_async" and "old_cleanups" to where they
5125 are needed.
5126
5127 2003-04-23 Andrew Cagney <cagney@redhat.com>
5128
5129 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5130 and "buffer". Move the "name" code to where it is needed.
5131
5132 2003-04-23 Andrew Cagney <cagney@redhat.com>
5133
5134 * infcall.c (call_function_by_hand): Move variables "start_sp",
5135 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5136 code to ON_STACK switch branch.
5137
5138 2003-04-23 Andrew Cagney <cagney@redhat.com>
5139
5140 * infcall.c (call_function_by_hand): Make declaration of "i",
5141 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5142 lint.
5143
5144 2003-04-23 Andrew Cagney <cagney@redhat.com>
5145
5146 * infcall.c (call_function_by_hand): Delete variable
5147 "n_method_args". Localize "param_type"'s declaration to the loop
5148 that it is used. Reinstate code assigning to said variable -
5149 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5150 Rationalize code using "param_type".
5151
5152 2003-04-22 Andrew Cagney <cagney@redhat.com>
5153
5154 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5155 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5156 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5157 to DEPRECATED_PUSH_RETURN_ADDRESS.
5158
5159 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5160
5161 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5162 on the DWARF2 register number prior to fetching a register.
5163
5164 2003-04-22 J. Brobecker <brobecker@gnat.com>
5165
5166 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5167 Update all the tests using SOFT_FLOAT considering the fact that
5168 this macro was always set to 0.
5169 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5170 considering the fact that this macro was always set to 0.
5171 * hppa-tdep.h (hppa_store_return_value): Likewise.
5172 (hppa_extract_return_value): Likewise.
5173
5174 2003-04-22 J. Brobecker <brobecker@gnat.com>
5175
5176 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5177 the hppa-pro target only.
5178
5179 2003-04-21 J. Brobecker <brobecker@gnat.com>
5180
5181 Ongoing multi-arch conversion effort for HP/UX:
5182 * config/pa/tm-hppa.h: Move all macro that are no longer
5183 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5184 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5185
5186 2003-04-21 J. Brobecker <brobecker@gnat.com>
5187
5188 * config/pa/tm-hppa.h: Obsolete a section that was only used
5189 for hppa-pro.
5190
5191 2003-04-21 J. Brobecker <brobecker@gnat.com>
5192
5193 Ongoing multi-arch conversion for HP/UX.
5194 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5195 if already defined (allows hppa64 to stay non-multiarched for now).
5196 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5197
5198 2003-04-21 Andrew Cagney <cagney@redhat.com>
5199
5200 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5201
5202 2003-04-21 Andrew Cagney <cagney@redhat.com>
5203
5204 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5205 "i386_num_mmx_regs".
5206
5207 2003-04-21 Andrew Cagney <cagney@redhat.com>
5208
5209 * infcall.c: New file.
5210 * infcall.h: New file.
5211 * valarith.c: Include "infcall.h".
5212 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5213 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5214 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5215 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5216 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5217 (SFILES): Add "infcall.c"
5218 (COMMON_OBS): Add "infcall.o".
5219 (infcall.o): Specify dependencies.
5220 * value.h (call_function_by_hand): Delete declaration.
5221 * inferior.h (run_stack_dummy): Delete declaration.
5222 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5223 (run_stack_dummy): Move to "infcall.c", merged into
5224 call_function_by_hand.
5225 * valops.c (call_function_by_hand): Moved to "infcall.c".
5226 (find_function_addr, value_arg_coerce): Ditto.
5227 (unwindonsignal_p, coerce_float_to_double): Ditto.
5228 (_initialize_valops): Move "set/show coerce-float-to-double", and
5229 "set/show unwindonsignal" commands to "infcall.c".
5230 * v850-tdep.c, target.h: Update comments.
5231 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5232 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5233 (sh64_init_extra_frame_info): Update comments.
5234 * mn10300-tdep.c: Update comments.
5235 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5236 * config/sparc/tm-sparc.h: Update comments.
5237 * breakpoint.h: Update comments.
5238 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5239 * arm-tdep.c: Update comment.
5240
5241 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5242
5243 * i386-tdep.c (i386_num_register_names): New variable.
5244 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5245 (MM0_REGNUM): Remove redundant parentheses in define.
5246 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5247 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5248 i386_mxcsr_regnum_p): Remove redundant parentheses.
5249 (i386_register_name): Use i386_num_register_names.
5250
5251 * i386-tdep.c (i386_extract_return_value,
5252 i386_store_return_value): Correct check for availability of
5253 floating-point registers.
5254
5255 * i386-tdep.c (i386_frame_num_args): Remove function.
5256 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5257
5258 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5259 mmx_regnum_to_fp_regnum. Adjust all callers.
5260
5261 * i386-tdep.c (i386_get_longjmp_target): Use
5262 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5263 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5264 extract_address.
5265
5266 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5267
5268 * core-regset.c: Update comments to reflect reality. Re-order
5269 includes.
5270 (fetch_core_registers): Use switch instead of if. Remove
5271 redundant prototype.
5272
5273 2003-04-18 Jim Blandy <jimb@redhat.com>
5274
5275 * s390-tdep.c (s390_frame_align): New function.
5276 (s390_gdbarch_init): Register it with the gdbarch object.
5277
5278 2003-04-17 Richard Henderson <rth@redhat.com>
5279
5280 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5281
5282 2003-04-17 Michael Snyder <msnyder@redhat.com>
5283 Karen Bennet <bennet@redhat.com>
5284
5285 Committed by Elena Zannoni <ezannoni@redhat.com>
5286 * gdb_gcore.sh: New script to create a core dump of a process.
5287
5288 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5289
5290 * values.c (value_being_returned): Don't fetch the return
5291 value if the return type is void.
5292
5293 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5294
5295 * thread-db.c: Reindented.
5296
5297 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5298
5299 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5300 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5301 as types.
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5328
5329 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5330 the size of ``long double'' to 16, instead of 8.
5331
5332 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5333
5334 * i386-linux-nat.c: Add some whitespace to make things more
5335 readable.
5336 (fetch_register, store_register, fetch_inferior_registers,
5337 store_inferior_registers): Get rid of assignment in if-statement.
5338 (store_register): Fix typo in error message.
5339
5340 2003-04-16 Andrew Cagney <cagney@redhat.com>
5341
5342 * utils.c (xmmalloc): Always allocate something, matches
5343 libiberty/xmalloc's semantics.
5344 (xmrealloc, xmcalloc): Ditto.
5345
5346 2003-04-16 Andrew Cagney <cagney@redhat.com>
5347
5348 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5349 update comments.
5350 (get_frame_type): Initialize unwind and type when needed.
5351 (get_frame_id, frame_register_unwind): Ditto.
5352
5353 2003-04-16 Andrew Cagney <cagney@redhat.com>
5354
5355 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5356 obsolete.
5357 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5358 * sparcl-stub.c: Obsolete file.
5359 * config/sparc/tm-sparclet.h: Obsolete file.
5360 * sparclet-stub.c: Obsolete file.
5361 * sparclet-rom.c: Obsolete file.
5362 * sparcl-tdep.c: Obsolete file.
5363 * config/sparc/tm-sparclite.h: Obsolete file.
5364 * config/sparc/sparclite.mt: Obsolete file.
5365 * config/sparc/sparclet.mt: Obsolete file.
5366 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5367 sparc86x-*-* obsolete.
5368
5369 2003-04-15 David Carlton <carlton@math.stanford.edu>
5370
5371 * Makefile.in (SFILES): Add cp-namespace.c.
5372 (COMMON_OBS): Add cp-namespace.o.
5373 (block.o): Depend on gdb_obstack_h and cp_support_h.
5374 (buildsym.o): Depend on cp_support_h.
5375 (cp-namespace.o): New.
5376 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5377 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5378 (dwarf2read.o): Depend on cp_support_h.
5379 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5380 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5381 processing_current_namespace.
5382 (read_namespace): Update processing_current_namespace; check for
5383 anonymous namespaces.
5384 (dwarf2_name): New function.
5385 (dwarf2_extension): Ditto.
5386 * cp-support.h: Update copyright, contributors.
5387 Add inclusion guards.
5388 Add opaque declaration for structs obstack, block, symbol.
5389 (struct using_direct): New struct.
5390 Add declarations for cp_find_first_component,
5391 cp_entire_prefix_len, processing_has_namespace_info,
5392 processing_current_namespace, cp_is_anonymous,
5393 cp_add_using_directive, cp_initialize_namespace,
5394 cp_finalize_namespace, cp_set_block_scope,
5395 cp_scan_for_anonymous_namespaces.
5396 * cp-namespace.c: New file.
5397 * cp-support.c: Update copyright.
5398 Include ctype.h, gdb_assert.h, gdbcmd.h.
5399 New variable maint_cplus_cmd_list.
5400 (cp_find_first_component): New function.
5401 (cp_entire_prefix_len, maint_cplus_command)
5402 (first_component_command, _initialize_cp_support): Ditto.
5403 * buildsym.c: Include cp-support.h.
5404 New variable using_list.
5405 (add_symbol_to_list): Check for anonymous namespaces.
5406 (finish_block): Set block's scope.
5407 (start_symtab): Initialize C++ namespace support.
5408 (end_symtab): Finalize C++ namespace support.
5409 * block.h: Add opaque declarations for structs
5410 block_namespace_info, using_direct, and obstack.
5411 Add declarations for block_set_scope and block_set_using.
5412 (struct block): Add 'language_specific' member.
5413 (BLOCK_NAMESPACE): New macro.
5414 * block.c: Include gdb_obstack.h and cp-support.h.
5415 (struct block_namespace_info): New struct.
5416 (block_set_scope): New function.
5417 (block_set_using, block_initialize_namespace): Ditto.
5418
5419 2003-04-14 Kevin Buettner <kevinb@redhat.com>
5420
5421 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5422 (locate_base): Return early if there aren't any link map offsets.
5423 (svr4_solib_create_inferior_hook): Warn if shared library support
5424 is unavailable.
5425
5426 2003-04-14 David Carlton <carlton@math.stanford.edu>
5427
5428 * symtab.c (symbol_set_names): Add prefix when storing Java names
5429 in hash table. Fix for PR java/1039.
5430
5431 2003-04-14 David Carlton <carlton@math.stanford.edu>
5432
5433 * symtab.c (symbol_set_names): Rename 'name' arg to
5434 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5435 * symtab.h: Change 'name' argument in declaration of
5436 symbol_set_names to 'linkage_name'.
5437 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5438
5439 2003-04-14 Andrew Cagney <cagney@redhat.com>
5440
5441 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5442 return the fully sign-extended register value.
5443 (get_frame_pointer): Ditto.
5444 (mips_pop_frame): Initialize "proc_desc" after checking for a
5445 dummy frame.
5446
5447 2003-04-14 Andrew Cagney <cagney@redhat.com>
5448
5449 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5450 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5451 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5452 (mips_push_register): Delete function.
5453 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5454 PUSH_FP_REGNUM.
5455
5456 2003-04-14 Jim Blandy <jimb@redhat.com>
5457
5458 * symmisc.c: #include "gdb_regex.h".
5459 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5460 functions.
5461 * maint.c (maintenance_list_command): New function.
5462 (_initialize_maint_cmds): Register the above as commands.
5463 * symtab.h (maintenance_list_symtabs,
5464 maintenance_list_psymtabs): New declarations.
5465 * cli/cli-cmds.c (maintenancelistlist): New variable.
5466 (init_cmd_lists): Initialize it.
5467 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5468 * gdbcmd.h (maintenancelistlist): New declaration.
5469 * Makefile.in (symmisc.o): Update dependencies.
5470
5471 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
5472
5473 * s390-nat.c: Include asm/types.h for addr_t.
5474
5475 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
5476
5477 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5478 actually incoming type.
5479
5480 2003-04-13 Andrew Cagney <cagney@redhat.com>
5481
5482 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5483 get_next_frame and get_frame_saved_regs.
5484
5485 2003-04-13 Andrew Cagney <cagney@redhat.com>
5486
5487 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5488 of gdbarch_num_regs.
5489
5490 2003-04-13 Andrew Cagney <cagney@redhat.com>
5491
5492 * frame.h: Mention what replaced what in "struct frame_info".
5493 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5494 deprecated_update_frame_base_hack and
5495 deprecated_update_frame_pc_hack.
5496 * hppa-tdep.c: Ditto.
5497
5498 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5499
5500 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5501 to read_reg and update its comment. Remove regnum member.
5502 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5503 Don't call read_reg when setting in_reg. Call read_reg to get
5504 the frame base if it's in a register. Return the register number
5505 on the stack instead of in the context. Remove extra arguments
5506 to read_reg.
5507 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5508 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5509 the register number on the expression stack.
5510 (needs_frame_read_reg): Remove extra arguments.
5511
5512 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5513
5514 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5515 made non-static.
5516 (execute_stack_op): All callers updated.
5517 * dwarf2expr.h: Add prototype for dwarf2_read_address.
5518 * dwarf2loc.c (find_location_expression): New function.
5519 (dwarf_expr_frame_base): Call it.
5520 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5521 (dwarf2_tracepoint_var_ref): New function, broken out from
5522 locexpr_tracepoint_var_ref.
5523 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5524 Make static.
5525 (loclist_read_variable, loclist_read_needs_frame): New functions.
5526 (loclist_describe_location, loclist_tracepoint_var_ref): New
5527 functions.
5528 (dwarf2_loclist_funcs): New struct location_funcs.
5529 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5530 (struct dwarf2_locexpr_baton): Add comments.
5531 (dwarf2_loclist_funcs): New extern.
5532 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5533 base_address and base_known.
5534 (dwarf_loc_buffer): New variable.
5535 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5536 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5537 (dwarf2_has_info): Initialize dwarf_loc_offset.
5538 (dwarf2_build_psymtabs): Read in .debug_loc.
5539 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5540 DWARF_LOC_SIZE.
5541 (psymtab_to_symtab_1): Likewise. Move base address calculation
5542 here, from...
5543 (dwarf2_get_pc_bounds): ... here. Use the base address from
5544 cu_header.
5545 (dwarf2_symbol_mark_computed): Handle location lists.
5546
5547 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5548
5549 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5550 if the linkage name demangled successfully.
5551
5552 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5553
5554 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5555 disassmbly_flavour): Removed.
5556
5557 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5558
5559 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5560
5561 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5562
5563 2003-04-12 Andrew Cagney <cagney@redhat.com>
5564
5565 * frame.h (struct frame_info): Move definition from here ...
5566 * frame.c (struct frame_info): ... to here.
5567
5568 2003-04-12 Andrew Cagney <cagney@redhat.com>
5569
5570 * gdbthread.h (save_infrun_state): Delete parameter
5571 "prev_func_start".
5572 (struct thread_info): Delete field "prev_func_start".
5573 (load_infrun_state): Ditto.
5574 * thread.c (load_infrun_state, save_infrun_state): Update.
5575 * infrun.c (prev_func_start): Delete variable.
5576 (context_switch, init_wait_for_inferior): Update.
5577 (stop_stepping, keep_going): Update.
5578
5579 2003-04-12 Andrew Cagney <cagney@redhat.com>
5580
5581 * gdbarch.sh: Add missing opaque declarations.
5582 * gdbarch.h: Regnerate.
5583 * symtab.h: Add missing opaque declarations.
5584 * value.h, target.h, symfile.h, stabsread.h: Ditto.
5585 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
5586 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
5587 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
5588 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
5589 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
5590 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
5591 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
5592 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
5593 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
5594 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
5595 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
5596 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
5597
5598 2003-04-11 Andrew Cagney <cagney@redhat.com>
5599
5600 * frame.c (get_frame_id): Return this frame's "id".
5601 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
5602 function start.
5603 (legacy_saved_regs_this_id): Replace function body with
5604 internal-error.
5605 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
5606 FRAME_OBSTACK_ZALLOC.
5607 (create_new_frame): Mark the frame ID as valid.
5608
5609 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
5610
5611 * Makefile.in (libbfd_h): Added missing setting.
5612 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
5613 according to the selected ABI.
5614
5615 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
5616
5617 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
5618
5619 2003-04-11 Andrew Cagney <cagney@redhat.com>
5620
5621 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
5622 SAVED_PC_AFTER_CALL.
5623 * gdbarch.h, gdbarch.c: Regenerate.
5624 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5625 * x86-64-tdep.c (x86_64_init_abi): Update.
5626 * vax-tdep.c (vax_gdbarch_init): Update.
5627 * v850-tdep.c (v850_gdbarch_init): Update.
5628 * sparc-tdep.c (sparc_gdbarch_init): Update.
5629 * sh-tdep.c (sh_gdbarch_init): Update.
5630 * s390-tdep.c (s390_gdbarch_init): Update.
5631 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5632 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5633 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5634 * mips-tdep.c (mips_gdbarch_init): Update.
5635 * mcore-tdep.c (mcore_gdbarch_init): Update.
5636 * m68k-tdep.c (m68k_gdbarch_init): Update.
5637 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5638 * ia64-tdep.c (ia64_gdbarch_init): Update.
5639 (ia64_saved_pc_after_call): Update declaration.
5640 * i386ly-tdep.c (i386lynx_init_abi): Update.
5641 * i386-tdep.c (i386_gdbarch_init): Update.
5642 * hppa-tdep.c (hppa_gdbarch_init): Update.
5643 * h8300-tdep.c (h8300_gdbarch_init): Update.
5644 * frv-tdep.c (frv_gdbarch_init): Update.
5645 * cris-tdep.c (cris_gdbarch_init): Update.
5646 * avr-tdep.c (avr_gdbarch_init): Update.
5647 * arm-tdep.c (arm_gdbarch_init): Update.
5648 * alpha-tdep.c (alpha_gdbarch_init): Update.
5649 * ns32knbsd-nat.c (frame_num_args): Update.
5650 * ns32k-tdep.c (umax_frame_num_args): Update.
5651 * mips-tdep.c (mips_init_frame_pc_first): Update.
5652 * infrun.c (step_over_function): Update.
5653 * i386-linux-tdep.c (skip_hurd_resolver): Update.
5654 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
5655 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5656 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5657 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5658 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5659 * arm-linux-tdep.c (skip_hurd_resolver): Update.
5660 * arch-utils.c (init_frame_pc_default): Update.
5661 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5662 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
5663 declaration.
5664
5665 2003-04-11 Andrew Cagney <cagney@redhat.com>
5666
5667 * i387-tdep.c: Update copyright.
5668 (i387_to_double): Delete function.
5669 (double_to_i387): Delete function.
5670
5671 2003-04-10 Andrew Cagney <cagney@redhat.com>
5672
5673 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
5674 frame's function's address. Simplify.
5675 (d10v_frame_unwind_cache): Check that the frame's function is
5676 non-zero.
5677
5678 2003-04-10 Jim Blandy <jimb@redhat.com>
5679
5680 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
5681 call to set_gdbarch_deprecated_push_arguments.
5682
5683 2003-04-10 Andrew Cagney <cagney@redhat.com>
5684
5685 * frame.c (fprint_frame_id): New function.
5686 (fprint_frame_type, fprint_frame): New function.
5687 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
5688 (create_sentinel_frame, get_frame_id): Ditto.
5689 (frame_id_p, frame_id_eq): Ditto.
5690 (frame_id_inner, create_new_frame): Ditto.
5691 (legacy_get_prev_frame, get_prev_frame): Ditto.
5692 (deprecated_update_frame_pc_hack): Ditto.
5693 (frame_register_unwind): Ditto.
5694 (deprecated_update_frame_base_hack): Ditto.
5695
5696 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
5697
5698 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
5699 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
5700 frame_chain function.
5701 * Makefile.in: Add dependencies due to above change.
5702
5703 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
5704
5705 * blockframe.c (legacy_frame_chain_valid): Move call to
5706 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
5707 inside_entry_file.
5708
5709 2003-04-09 Andrew Cagney <cagney@redhat.com>
5710
5711 * frame.h (struct frame_id): Replace "pc" and "base" with
5712 "stack_addr" and "code_addr". Update comments.
5713 (frame_id_build): Update parameter names and comment.
5714 (struct frame_info): Replace "id_p" and "id" with "this_id".
5715 * dummy-frame.c (dummy_frame_this_id): Update.
5716 * breakpoint.c (print_one_breakpoint): Update.
5717 * frame.c (get_frame_id): Update.
5718 (get_frame_base, frame_id_build): Update.
5719 (create_sentinel_frame, legacy_get_prev_frame): Update.
5720 (deprecated_update_frame_base_hack): Update.
5721 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
5722 (frame_id_inner): Ditto.
5723
5724 2003-04-09 Andrew Cagney <cagney@redhat.com>
5725
5726 * defs.h (gdb_print_host_address): Make "addr" parameter a
5727 pointer constant.
5728 * utils.c (gdb_print_host_address): Update.
5729
5730 2003-04-09 Kevin Buettner <kevinb@redhat.com>
5731
5732 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
5733 register number for R0 is 0.
5734
5735 2003-04-09 J. Brobecker <brobecker@gnat.com>
5736
5737 * frame.h (struct gdbarch): Add opaque structure definition
5738 to avoid a compilation warning on LynxOS 4.0.
5739
5740 2003-04-09 Andrew Cagney <cagney@redhat.com>
5741
5742 * frame.h (struct frame_info): Delete field "pc". Replace
5743 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
5744 structure.
5745 * frame.c (frame_pc_unwind): Update.
5746 (create_sentinel_frame): Do not set "pc".
5747 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
5748 (get_frame_pc): Call frame_pc_unwind.
5749 (deprecated_update_frame_pc_hack): Update.
5750 (create_new_frame): Use "pc" not "->pc".
5751
5752 2003-04-09 Andrew Cagney <cagney@redhat.com>
5753
5754 * frame.c (get_frame_id): Eliminate code updating "frame".
5755 (legacy_get_prev_frame): Ditto.
5756 (get_frame_base): Return id.base directly.
5757 (deprecated_update_frame_base_hack): Update "id.base".
5758 * frame.h (struct frame_info): Delete field "frame".
5759
5760 2003-04-09 Andrew Cagney <cagney@redhat.com>
5761
5762 * NEWS: Mention that the "Sequent family" is obsolete.
5763 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
5764 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5765 * configure.host: Obsolete i[3456]86-sequent-bsd*,
5766 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5767 * config/i386/tm-ptx4.h: Obsolete file.
5768 * config/i386/tm-ptx.h: Obsolete file.
5769 * symm-tdep.c: Obsolete file.
5770 * config/i386/symmetry.mt: Obsolete file.
5771 * config/i386/tm-symmetry.h: Obsolete file.
5772 * symm-nat.c: Obsolete file.
5773 * config/i386/nm-symmetry.h: Obsolete file.
5774 * config/i386/xm-symmetry.h: Obsolete file.
5775 * config/i386/symmetry.mh: Obsolete file.
5776 * config/i386/nm-ptx4.h: Obsolete file.
5777 * config/i386/ptx4.mh: Obsolete file.
5778 * config/i386/ptx.mt: Obsolete file.
5779 * config/i386/ptx.mh: Obsolete file.
5780 * config/i386/xm-ptx4.h: Obsolete file.
5781 * config/i386/xm-ptx.h: Obsolete file.
5782
5783 2003-04-09 Andrew Cagney <cagney@redhat.com>
5784
5785 Obsolete mips*-*-mach3*.
5786 * NEWS: Mention that mips*-*-mach3* is obsolete.
5787 * m3-nat.c: Obsolete file.
5788 * config/nm-m3.h: Obsolete file.
5789 * config/mips/tm-mipsm3.h: Obsolete file.
5790 * config/mips/mipsm3.mt: Obsolete file.
5791 * config/mips/mipsm3.mh: Obsolete file.
5792 * config/mips/xm-mipsm3.h: Obsolete file.
5793 * mipsm3-nat.c: Obsolete file.
5794 * configure.host: Obsolete mips-dec-mach3*.
5795 * configure.tgt: Obsolete mips*-*-mach3*.
5796
5797 2003-04-09 Andrew Cagney <cagney@redhat.com>
5798
5799 * doublest.h: Update copyright.
5800 (deprecated_store_floating, deprecated_extract_floating): Rename
5801 store_floating and extract_floating. Update comments.
5802 * doublest.c: Update copyright.
5803 (extract_floating_by_length): Replace extract_floating.
5804 (store_floating_by_length): Replace store_floating.
5805 (deprecated_extract_floating): New function.
5806 (deprecated_store_floating): New function.
5807 (extract_typed_floating): Call extract_floating_by_length.
5808 (store_typed_floating): Call store_floating_by_length.
5809 * x86-64-tdep.c (x86_64_store_return_value): Update.
5810 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
5811 (sh64_extract_return_value): Update.
5812 (sh_sh4_register_convert_to_virtual): Update.
5813 (sh_sh64_register_convert_to_virtual): Update.
5814 (sh_sh4_register_convert_to_raw): Update.
5815 (sh_sh64_register_convert_to_raw): Update.
5816 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
5817 (rs6000_register_convert_to_raw): Update.
5818 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
5819 (ia64_register_convert_to_raw): Update.
5820 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
5821 (REGISTER_CONVERT_TO_VIRTUAL): Update.
5822 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
5823 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
5824 (alpha_register_convert_to_raw): Update.
5825
5826 2003-04-08 Andrew Cagney <cagney@redhat.com>
5827
5828 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
5829 * gdbarch.h, gdbarch.c: Re-generate.
5830 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
5831 (d10v_gdbarch_init): Do not set saved_pc_after_call.
5832 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
5833 conditionally, use frame_pc_unwind as an alternative. Add
5834 comments.
5835 * arch-utils.c (init_frame_pc_default): Only call
5836 SAVED_PC_AFTER_CALL when available.
5837
5838 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
5839
5840 * infrun.c (stop_soon): Rename from stop_soon_quietly.
5841 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
5842 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
5843 (start_remote): Ditto.
5844 (handle_inferior_event): Ditto.
5845 (save_inferior_status): Ditto.
5846 (restore_inferior_status): Ditto.
5847 * infcmd.c (attach_command): Ditto.
5848 * fork-child.c (startup_inferior): Ditto.
5849 * inferior.h (stop_soon): Rename from stop_soon_quietly.
5850 * alpha-tdep.c (heuristic_proc_start): Ditto.
5851 * mips-tdep.c (heuristic_proc_start): Ditto.
5852 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
5853 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
5854 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
5855 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
5856 * remote-vx.c (vx_create_inferior): Ditto.
5857
5858 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
5859
5860 * infrun.c (stop_soon_quietly): Make it an enum, to better
5861 override the default behavior of handle_inferior_event.
5862 (clear_proceed_status): Update uses of stop_soon_quietly to
5863 reflect that it is now an enum.
5864 (start_remote): Ditto.
5865 (handle_inferior_event): Change logic a bit if stop_soon_quietly
5866 is set to handle the new GNU/Linux kernel behavior for
5867 attach/sigstop. Update uses of stop_soon_quietly.
5868 * inferior.h (enum stop_kind): New enum.
5869 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
5870 Reset normal handle_inferior_event behavior, afterwards.
5871 * fork-child.c (startup_inferior): Update.
5872 * alpha-tdep.c (heuristic_proc_start): Update.
5873 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
5874 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
5875 * solib-osf.c (osf_solib_create_inferior_hook): Update.
5876 * solib-irix.c (irix_solib_create_inferior_hook): Update.
5877 * remote-vx.c (vx_create_inferior): Update.
5878 * mips-tdep.c (heuristic_proc_start): Update.
5879
5880 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
5881
5882 * disasm.c (dump_insns): Move variables inside loop, or they will
5883 be freed more than once, causing wild memory corruptions.
5884 (gdb_disassembly): Look for the substring "-thread",
5885 instead of "-threads" in the target name, to make sure to find
5886 the 'multi-thread' target. Also, make sure we do the right thing
5887 with the "core" target.
5888
5889 2003-04-07 Kevin Buettner <kevinb@redhat.com>
5890
5891 * mips-tdep.c (mips_print_fp_register): New function, created from
5892 do_fp_register_row(). Registers are now (also) printed as hex.
5893 Only one register is printed per row.
5894 (mips_print_register, do_fp_register_row): Print floating point
5895 registers with mips_print_fp_register().
5896
5897 2003-04-06 Andrew Cagney <cagney@redhat.com>
5898
5899 * valprint.h (inspect_it): Add extern declaration.
5900 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
5901 (selectors_info, classes_info): Ditto.
5902 (find_objc_msgcall): Fix indentation.
5903 (objc_printstr): Delete extern declarations.
5904
5905 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
5906
5907 2003-04-06 Andrew Cagney <cagney@redhat.com>
5908
5909 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
5910 Update comment.
5911 * frame.c (legacy_saved_regs_this_id): Update.
5912 (legacy_get_prev_frame): Update.
5913 * xstormy16-tdep.c: Update comment.
5914 * sparc-tdep.c (sparc_frame_chain): Update comment.
5915 * blockframe.c (legacy_frame_chain_valid): Update.
5916
5917 2003-04-06 Andrew Cagney <cagney@redhat.com>
5918
5919 * valprint.c (val_print_type_code_int): Delete #ifdef
5920 PRINT_TYPELESS_INTEGER code.
5921
5922 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
5923 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
5924 multi-arch definition.
5925 * gdbarch.h: Re-generate.
5926
5927 2003-04-05 Andrew Cagney <cagney@redhat.com>
5928
5929 Eliminate FRAME_FIND_SAVED_REGS.
5930 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5931 Change FSR parameter to a pointer.
5932 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
5933 Assume FSR parameter is a pointer.
5934 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5935 Make fsr a pointer.
5936 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
5937 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
5938 saved_regs a pointer.
5939 (hppa_frame_saved_pc): Ditto.
5940 (find_dummy_frame_regs): Make frame_saved_regs a pointer
5941 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
5942 pointer.
5943 (restore_pc_queue): Make fsr a pointer.
5944 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
5945 (hppa_frame_chain): Make saved_regs a pointer, call
5946 hppa_frame_init_saved_regs.
5947 * sparc-tdep.c: Include "gdb_assert.h".
5948 (sparc_frame_find_saved_regs): Replace internal_error with
5949 gdb_assert.
5950 * remote-vxsparc.c (vx_read_register): Delete reference to
5951 FRAME_FIND_SAVED_REGS.
5952 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
5953 * gdbarch.h: Regenerate.
5954 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
5955 (deprecated_get_frame_saved_regs): Delete declaration.
5956 (struct frame_saved_regs): Delete definition.
5957 * frame.c (deprecated_get_frame_saved_regs): Delete function.
5958 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
5959 (hppa_frame_find_saved_regs): Delete declaration.
5960 (FRAME_FIND_SAVED_REGS): Delete macro.
5961 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
5962 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
5963 FRAME_FIND_SAVED_REGS in comment.
5964
5965 2003-04-05 Andrew Cagney <cagney@redhat.com>
5966
5967 * frame.c (frame_func_unwind, get_frame_func): New functions.
5968 * frame.h (get_frame_func, frame_func_unwind): Declare.
5969 (struct frame_info): Add field "prev_func" for caching the
5970 previous frame's function address.
5971 * arm-tdep.c (arm_frameless_function_invocation): Combine
5972 get_pc_function_start and get_frame_pc into get_frame_func.
5973 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
5974 (sh64_nofp_frame_init_saved_regs): Ditto.
5975 * s390-tdep.c (s390_function_start): Ditto.
5976 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
5977 (rs6000_frameless_function_invocation): Ditto.
5978 (rs6000_frame_saved_pc): Ditto.
5979 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
5980 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
5981 * i386-tdep.c (i386_frameless_signal_p): Ditto.
5982 (i386_frame_init_saved_regs): Ditto.
5983 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
5984 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
5985 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
5986 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5987 * blockframe.c (frameless_look_for_prologue): Ditto.
5988
5989 2003-04-05 Andrew Cagney <cagney@redhat.com>
5990
5991 * frame.c (legacy_get_prev_frame): Link prev to next at the
5992 function start. Update comments.
5993
5994 2003-04-05 Andrew Cagney <cagney@redhat.com>
5995
5996 * frame.c (get_frame_id): Update comment.
5997 (legacy_get_prev_frame): Update comment.
5998 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
5999 * gdbarch.h: Regenerate.
6000 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6001 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6002
6003 2003-04-05 Andrew Cagney <cagney@redhat.com>
6004
6005 * stack.c (print_frame_info): Use get_frame_pc.
6006
6007 2003-04-04 Andrew Cagney <cagney@redhat.com>
6008
6009 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6010 the frame's type from the unwinder.
6011 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6012 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6013 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6014 (get_frame_base_address): Use get_frame_type.
6015 (get_frame_locals_address, get_frame_args_address): Ditto.
6016 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6017 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6018 (struct frame_info): Add comment explaining why the frame contains
6019 a "type" field.
6020 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6021 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6022 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6023 NORMAL_FRAME.
6024 * frame-unwind.h: Include "frame.h".
6025 (struct frame_unwind): Add "type" field.
6026 * Makefile.in (frame_unwind_h): Add $(frame_h).
6027
6028 2003-04-04 Andrew Cagney <cagney@redhat.com>
6029
6030 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6031 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6032 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6033 get_frame_base.
6034 (d10v_unwind_dummy_id): Use frame_id_build.
6035 * frame.c (find_frame_sal): Use get_frame_pc.
6036 (create_new_frame): Use deprecated_update_frame_pc_hack and
6037 deprecated_update_frame_base_hack.
6038 (create_sentinel_frame): Add comment about ->pc going away.
6039 (get_prev_frame): Add comment about ->pc going away.
6040 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6041 frame_id_build, deprecated_update_frame_pc_hack and
6042 deprecated_update_frame_base_hack.
6043 (select_frame): Use get_frame_pc.
6044 (legacy_saved_regs_this_id): Use frame_id_build.
6045
6046 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6047
6048 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6049 signed integer case.
6050 (classify_argument): Handle enumerations and references.
6051
6052 2003-04-04 Andrew Cagney <cagney@redhat.com>
6053
6054 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6055 ID to NULL.
6056
6057 2003-04-01 Adam Fedor <fedor@gnu.org>
6058
6059 * gdb/objc-lang.c (selectors_info): Replace calls to
6060 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6061 SYMBOL_NATURAL_NAME.
6062 (classes_info, find_methods): Likewise.
6063
6064 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6065
6066 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6067 ``mach'' to the value determined by bfd_default_set_arch_mach().
6068
6069 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6070
6071 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6072 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6073 (mi-cmd-file.o): Update dependencies.
6074
6075 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6076
6077 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6078 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6079
6080 2003-04-01 Adam Fedor <fedor@gnu.org>
6081
6082 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6083 * language.h (struct language_defn): Add la_demangle.
6084 (language_demangle): Declare.
6085 * language.c (language_demangle): New function.
6086 (unk_lang_demangle): Likewise.
6087 (unknown_language_defn, auto_language_defn, local_language_defn):
6088 Add ukn_lang_demangle.
6089 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6090 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6091 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6092 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6093 * jv-lang.c (java_demangle): New function
6094 (java_language_defn): Use it for la_demangle element.
6095 * objc-lang.c (objc_demangle): Add options argument
6096 (objc_language_defn): Use objc_demangle for la_demangle element.
6097 * maint.c (maintenance_demangle): Replace switch with
6098 call to language_demangle.
6099 * utils.c (fprintf_symbol_filtered): Likewise.
6100
6101 2003-04-01 Andrew Cagney <cagney@redhat.com>
6102
6103 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6104 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6105 PRINT_TYPELESS_INTEGER.
6106 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6107 PUSH_RETURN_ADDRESS.
6108
6109 2003-04-01 Andrew Cagney <cagney@redhat.com>
6110
6111 * Makefile.in (d10v-tdep.o): Update dependencies.
6112 * d10v-tdep.c: Include "frame-base.h".
6113 (d10v_frame_unwind): Make constant.
6114 (d10v_frame_base_address): New function.
6115 (d10v_frame_base): New variable.
6116 (d10v_gdbarch_init): Set frame_base default.
6117 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6118 comment for base.
6119 (d10v_frame_unwind_cache): Set and use "prev_sp".
6120 (d10v_frame_this_id): Use the previous frame's inner most stack
6121 address and this frame's func address for the frame ID. Use
6122 frame_id_build. Don't analyze beyond the current instruction.
6123
6124 2003-04-01 Andrew Cagney <cagney@redhat.com>
6125
6126 * frame.h (get_frame_locals_address, get_frame_args_address):
6127 Refer to the base address, instead of the address of the first
6128 local or parameter.
6129
6130 2003-04-01 Andrew Cagney <cagney@redhat.com>
6131
6132 Add frame debug info addresses:
6133 * frame-base.c: New file.
6134 * frame-base.h: New file.
6135 * frame.h (struct frame_base): Add opaque declaration.
6136 (get_frame_base): Update comment.
6137 (get_frame_base_address): Declare.
6138 (get_frame_locals_address): Declare.
6139 (get_frame_args_address): Declare.
6140 (struct frame_info): Add "base" and "base_cache". Update
6141 comments on the unwinder.
6142 * frame.c: Include "frame-base.h".
6143 (get_frame_locals_address): New function.
6144 (get_frame_base_address): New function.
6145 (get_frame_args_address): New function.
6146 * findvar.c (read_var_value): Use get_frame_locals_address and
6147 get_frame_args_address.
6148 * stack.c (frame_info): Use get_frame_locals_address and
6149 get_frame_args_address.
6150 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6151 moved to "frame-base.c".
6152 * printcmd.c (print_frame_nameless_args): Ditto.
6153 * symtab.h (address_class): Update comments.
6154 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6155 get_frame_base_address.
6156 * dwarf2expr.c (execute_stack_op): Ditto.
6157 * Makefile.in (frame_base_h): Define.
6158 (frame.o): Update dependencies.
6159 (frame-base.o): Add dependencies.
6160 (SFILES): Add frame-base.c.
6161 (COMMON_OBS): Add frame-base.o.
6162
6163 2003-04-01 Andrew Cagney <cagney@redhat.com>
6164
6165 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6166 CALL_DUMMY_LENGTH): Ditto.
6167 * gdbarch.c: Re-generate.
6168 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6169 (CALL_DUMMY_LENGTH): Delete macro.
6170 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6171 * arm-tdep.c (arm_gdbarch_init): Ditto.
6172 * avr-tdep.c (avr_gdbarch_init): Ditto.
6173 * cris-tdep.c (cris_gdbarch_init): Ditto.
6174 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6175 * frv-tdep.c (frv_gdbarch_init): Ditto.
6176 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6177 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6178 * i386-tdep.c (i386_gdbarch_init): Ditto.
6179 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6180 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6181 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6182 * mips-tdep.c (mips_gdbarch_init): Ditto.
6183 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6184 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6185 * s390-tdep.c (s390_gdbarch_init): Ditto.
6186 * sh-tdep.c (sh_gdbarch_init): Ditto.
6187 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6188 * v850-tdep.c (v850_gdbarch_init): Ditto.
6189 * vax-tdep.c (vax_gdbarch_init): Ditto.
6190 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6191
6192 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6193
6194 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6195
6196 2003-04-01 Andrew Cagney <cagney@redhat.com>
6197
6198 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6199 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6200 * gdbarch.h, gdbarch.c: Re-generate.
6201 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6202 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6203 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6204 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6205 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6206 * infcmd.c (run_stack_dummy): Simplify assuming
6207 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6208 * infrun.c (handle_inferior_event): Ditto.
6209 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6210 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6211 * arm-tdep.c (arm_gdbarch_init): Ditto.
6212 * avr-tdep.c (avr_gdbarch_init): Ditto.
6213 * cris-tdep.c (cris_gdbarch_init): Ditto.
6214 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6215 * frv-tdep.c (frv_gdbarch_init): Ditto.
6216 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6217 * i386-tdep.c (i386_gdbarch_init): Ditto.
6218 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6219 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6220 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6221 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6222 * mips-tdep.c (mips_gdbarch_init): Ditto.
6223 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6224 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6225 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6226 * s390-tdep.c (s390_gdbarch_init): Ditto.
6227 * sh-tdep.c (sh_gdbarch_init): Ditto.
6228 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6229 * v850-tdep.c (v850_gdbarch_init): Ditto.
6230 * vax-tdep.c (vax_gdbarch_init): Ditto.
6231 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6232
6233 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6234
6235 * symfile.c (symfile_relocate_debug_section): Update call to
6236 bfd_simple_get_relocated_section_contents.
6237
6238 2003-03-31 Andrew Cagney <cagney@redhat.com>
6239
6240 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6241 * gdbarch.h, gdbarch.c: Regenerate.
6242 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6243 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6244 available.
6245 * frame.h (generic_fix_call_dummy): Delete declaration.
6246 * dummy-frame.h: Update comment.
6247 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6248 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6249 fix_call_dummy.
6250 * sh-tdep.c (sh_gdbarch_init): Ditto.
6251 * s390-tdep.c (s390_gdbarch_init): Ditto.
6252 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6253 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6254 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6255 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6256 * i386-tdep.c (i386_gdbarch_init): Ditto.
6257 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6258 * frv-tdep.c (frv_gdbarch_init): Ditto.
6259 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6260 * cris-tdep.c (cris_gdbarch_init): Ditto.
6261 * avr-tdep.c (avr_gdbarch_init): Ditto.
6262 * arm-tdep.c (arm_gdbarch_init): Ditto.
6263
6264 2003-03-31 J. Brobecker <brobecker@gnat.com>
6265
6266 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6267 (INIT_FRAME_AP): Likewise.
6268 (EXTRA_FRAME_INFO): Likewise.
6269
6270 2003-03-31 Andrew Cagney <cagney@redhat.com>
6271
6272 * gdbarch.sh: Include "symfile.h".
6273 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6274 * gdbarch.h, gdbarch.c: Re-generate.
6275 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6276 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6277 call_dummy_address, the default is at entry_point_address.
6278 * v850-tdep.c (v850_gdbarch_init): Ditto.
6279 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6280 * sh-tdep.c (sh_gdbarch_init): Ditto.
6281 * s390-tdep.c (s390_gdbarch_init): Ditto.
6282 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6283 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6284 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6285 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6286 * i386-tdep.c (i386_gdbarch_init): Ditto.
6287 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6288 * frv-tdep.c (frv_gdbarch_init): Ditto.
6289 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6290 * cris-tdep.c (cris_gdbarch_init): Ditto.
6291 * arm-tdep.c (arm_gdbarch_init): Ditto.
6292
6293 2003-03-31 Andrew Cagney <cagney@redhat.com>
6294
6295 * gdbarch.sh (CALL_DUMMY_P): Delete.
6296 * gdbarch.h, gdbarch.c: Re-generate.
6297 * inferior.h (CALL_DUMMY_P): Delete macro.
6298 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6299 * vax-tdep.c (vax_gdbarch_init): Update.
6300 * v850-tdep.c (v850_gdbarch_init): Update.
6301 * sparc-tdep.c (sparc_gdbarch_init): Update.
6302 * sh-tdep.c (sh_gdbarch_init): Update.
6303 * s390-tdep.c (s390_gdbarch_init): Update.
6304 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6305 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6306 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6307 * mips-tdep.c (mips_gdbarch_init): Update.
6308 * mcore-tdep.c (mcore_gdbarch_init): Update.
6309 * m68k-tdep.c (m68k_gdbarch_init): Update.
6310 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6311 * ia64-tdep.c (ia64_gdbarch_init): Update.
6312 * i386-tdep.c (i386_gdbarch_init): Update.
6313 * h8300-tdep.c (h8300_gdbarch_init): Update.
6314 * frv-tdep.c (frv_gdbarch_init): Update.
6315 * d10v-tdep.c (d10v_gdbarch_init): Update.
6316 * cris-tdep.c (cris_gdbarch_init): Update.
6317 * breakpoint.c (deprecated_frame_in_dummy): Update.
6318 * avr-tdep.c (avr_gdbarch_init): Update.
6319 * alpha-tdep.c (alpha_gdbarch_init): Update.
6320 * arm-tdep.c (arm_gdbarch_init): Update.
6321 * dummy-frame.c (dummy_frame_this_id): Update comments.
6322 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6323 * frame.c (legacy_get_prev_frame): Ditto.
6324 * valops.c (call_function_by_hand): Delete function.
6325 (hand_function_call): Rename to call_function_by_hand
6326
6327 2003-03-30 Andrew Cagney <cagney@redhat.com>
6328
6329 2002-11-10 Klee Dienes <kdienes@apple.com>
6330 * value.h (struct value): Update comment.
6331
6332 2003-03-30 Andrew Cagney <cagney@redhat.com>
6333
6334 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6335 D10V_FP_REGNUM.
6336 (d10v_gdbarch_init): Do not set fp_regnum.
6337
6338 * frame.c (get_frame_base): Force ID initialization.
6339 (get_prev_frame): Move computation of the frame ID from here ...
6340 (get_frame_id): ... to here.
6341 (legacy_get_prev_frame): Mark the frame ID as valid.
6342 * frame.h (struct frame_info): Add field "id_p".
6343
6344 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6345
6346 * i386-tdep.c (i386_store_struct_return): Removed.
6347 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6348
6349 2003-03-30 Andrew Cagney <cagney@redhat.com>
6350
6351 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6352 * gdbarch.h, gdbarch.c: Regenerate.
6353 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6354 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6355 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6356 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6357 * i386-tdep.c (i386_gdbarch_init): Ditto.
6358 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6359 * cris-tdep.c (cris_gdbarch_init): Ditto.
6360 * vax-tdep.c (vax_gdbarch_init): Ditto.
6361 * s390-tdep.c (s390_gdbarch_init): Ditto.
6362 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6363 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6364 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6365 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6366 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6367 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6368 * sparc-tdep.c (sparc_gdbarch_init): Update.
6369 * sh-tdep.c (sh_gdbarch_init): Update.
6370 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6371 * mips-tdep.c (mips_gdbarch_init): Update.
6372 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6373 * ia64-tdep.c (ia64_gdbarch_init): Update.
6374 * frv-tdep.c (frv_gdbarch_init): Update.
6375 * avr-tdep.c (avr_gdbarch_init): Update.
6376 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6377 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6378 instead of when push_dummy_call is not available.
6379
6380 2003-03-30 Andrew Cagney <cagney@redhat.com>
6381
6382 * infttrace.c: Include "gdbthread.h".
6383 (parent_attach_all): Fix function signature.
6384 (call_ptrace): Update call.
6385 * Makefile.in (infttrace.o): Update dependencies.
6386
6387 2003-03-30 Andrew Cagney <cagney@redhat.com>
6388
6389 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6390 PUSH_RETURN_ADDRESS.
6391 * gdbarch.h, gdbarch.c: Regenerate.
6392 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6393 * x86-64-tdep.c (x86_64_init_abi): Update.
6394 * v850-tdep.c (v850_gdbarch_init): Update.
6395 * sparc-tdep.c (sparc_gdbarch_init): Update.
6396 * sh-tdep.c (sh_gdbarch_init): Update.
6397 * s390-tdep.c (s390_gdbarch_init): Update.
6398 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6399 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6400 * mips-tdep.c (mips_gdbarch_init): Update.
6401 * mcore-tdep.c (mcore_gdbarch_init): Update.
6402 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6403 * ia64-tdep.c (ia64_gdbarch_init): Update.
6404 * i386-tdep.c (i386_gdbarch_init): Update.
6405 * h8300-tdep.c (h8300_gdbarch_init): Update.
6406 * frv-tdep.c (frv_gdbarch_init): Update.
6407 * cris-tdep.c (cris_gdbarch_init): Update.
6408 * avr-tdep.c (avr_gdbarch_init): Update.
6409 * arm-tdep.c (arm_gdbarch_init): Update.
6410 * valops.c (hand_function_call): Update.
6411
6412 2003-03-29 Andrew Cagney <cagney@redhat.com>
6413
6414 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6415 sizeof_call_dummy_words.
6416 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6417 define.
6418 * gdbarch.h: Regenerate.
6419
6420 2003-03-29 Andrew Cagney <cagney@redhat.com>
6421
6422 * infttrace.h: New file.
6423 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6424 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6425 (hpread_read_doc_function_type): Detect an initialized type1.
6426 (hpread_quick_traverse): Initialize mod_name_string.
6427 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6428 (som_solib_get_solib_by_pc): Declare.
6429 (so_lib_thread_start_addr): Declare.
6430 (no_shared_libraries): Declare.
6431 * somread.c (init_import_symbols): Make static. Add forward
6432 declaration.
6433 * config/pa/nm-hppah.h: Include "infttrace.h" for
6434 parent_attach_all.
6435 (hppa_insert_hw_watchpoint): Declare.
6436 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6437 * hppah-nat.c: Include "gdb_string.h".
6438 (parent_attach_all): Delete extern declaration, moved to
6439 "infttrace.h".
6440 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6441 int.
6442 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6443 * Makefile.in (infttrace_h): Define.
6444 (hpread.o): Update dependencies.
6445 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6446 * hppa-hpux-tdep.c: Include "gdb_string.h".
6447 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6448 * infrun.c (handle_inferior_event): Always initialize
6449 stepped_after_stopped_by_watchpoint. Add default and remove
6450 fallthrough in switch statement.
6451 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6452 parameter to int.
6453 (hppa_remove_hw_watchpoint): Ditto.
6454
6455 2003-03-29 Andrew Cagney <cagney@redhat.com>
6456
6457 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6458 offset.
6459
6460 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
6461
6462 * arm-tdep.c (arm_push_arguments): Delete.
6463 (struct stack_item): New type.
6464 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6465 (arm_store_struct_return): Delte.
6466 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6467 arm_push_arguments or arm_store_struct_return.
6468
6469 2003-03-28 Andrew Cagney <cagney@redhat.com>
6470
6471 * Makefile.in (d10v-tdep.o): Update dependencies.
6472 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6473 * d10v-tdep.c: Include "remote.h".
6474 (target_resume_hook): Delete extern declaration.
6475 (target_wait_loop_hook): Ditto.
6476 (tdisassemble_command): Eliminate assignment in "if" conditional.
6477 (d10v_ts2_register_sim_regno): Eliminate call to
6478 legacy_register_sim_regno.
6479 (d10v_ts3_register_sim_regno): Ditto.
6480
6481 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
6482
6483 * thread.c: Reindented.
6484 * lin-lwp.c: Ditto.
6485 * linux-proc.c: Ditto.
6486
6487 2003-03-28 Bob Rossi <bob_rossi@cox.net>
6488
6489 * MAINTAINERS (write after approval): Add myself.
6490
6491 2003-03-27 Theodore A. Roth <troth@openavr.org>
6492
6493 * objc-exp.y: Add missing semi-colons.
6494
6495 2003-03-27 Andrew Cagney <cagney@redhat.com>
6496
6497 * regcache.c (write_sp): Delete function and references.
6498 * inferior.h (write_sp): Delete declaration.
6499 * valops.c (hand_function_call): Replace write_sp with
6500 TARGET_WRITE_SP.
6501 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6502 (sparc_pop_frame): Ditto.
6503
6504 2003-03-27 Andrew Cagney <cagney@redhat.com>
6505
6506 * NEWS: Mention removal of support for hppa*-*-bsd* and
6507 hppa*-*-osf* natives, and hppa*-*-pro* target.
6508 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6509 * config/pa/xm-pa.h: Obsolete file.
6510 * config/pa/xm-hppab.h: Obsolete file.
6511 * config/pa/nm-hppab.h: Obsolete file.
6512 * config/pa/tm-hppab.h: Obsolete file.
6513 * config/pa/tm-hppao.h: Obsolete file.
6514 * config/pa/nm-hppao.h: Obsolete file.
6515 * config/pa/tm-pro.h: Obsolete file.
6516 * config/pa/hppaosf.mt: Obsolete file.
6517 * config/pa/hppaosf.mh: Obsolete file.
6518 * config/pa/hppapro.mt: Obsolete file.
6519 * config/pa/hppabsd.mt: Obsolete file.
6520 * config/pa/hppabsd.mh: Obsolete file.
6521 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6522 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6523 hppa*-*-osf*.
6524
6525 2003-03-27 Andrew Cagney <cagney@redhat.com>
6526
6527 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6528 push_arguments. Don't set push_return_address or write_sp.
6529 (d10v_push_dummy_call): Replace d10v_push_arguments.
6530 (d10v_push_return_address, d10v_write_sp): Delete function,
6531 handled by push_dummy_call.
6532
6533 2003-03-26 Andrew Cagney <cagney@redhat.com>
6534
6535 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6536 (push_dummy_call): New pure multi-arch replacement with gdbarch,
6537 regcache and dummy_addr parameters.
6538 * gdbarch.h, gdbarch.c: Re-generate.
6539 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6540 available; assume it will handle stack alignment and return
6541 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
6542 legacy_push_arguments.
6543 (legacy_push_arguments): Rename default_push_arguments.
6544 * value.h (legacy_push_arguments): Rename default_push_arguments.
6545 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6546 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6547 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6548 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6549 * config/i386/tm-symmetry.h: Update.
6550 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6551 * x86-64-tdep.c (x86_64_init_abi): Update.
6552 * v850-tdep.c (v850_gdbarch_init): Update.
6553 * sparc-tdep.c (sparc_gdbarch_init): Update.
6554 * sh-tdep.c (sh_gdbarch_init): Update.
6555 * s390-tdep.c (s390_gdbarch_init): Update.
6556 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6557 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6558 * mips-tdep.c (mips_gdbarch_init): Update.
6559 * mcore-tdep.c (mcore_gdbarch_init): Update.
6560 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6561 * ia64-tdep.c (ia64_gdbarch_init): Update.
6562 * i386-tdep.c (i386_gdbarch_init): Update.
6563 * hppa-tdep.c (hppa_gdbarch_init): Update.
6564 * h8300-tdep.c (h8300_gdbarch_init): Update.
6565 * frv-tdep.c (frv_gdbarch_init): Update.
6566 * d10v-tdep.c (d10v_gdbarch_init): Update.
6567 * cris-tdep.c (cris_gdbarch_init): Update.
6568 * avr-tdep.c (avr_gdbarch_init): Update.
6569 * arm-tdep.c (arm_gdbarch_init): Update.
6570 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6571 * alpha-tdep.c (alpha_gdbarch_init): Update.
6572
6573 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6574
6575 * signals/signals.c (do_target_signal_to_host): Correct realtime
6576 signal range test.
6577
6578 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6579
6580 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6581 (struct sal_chain, map_catch_names): Remove.
6582 (catch_exception_command_1): Don't call
6583 handle_gnu_4_16_catch_command.
6584
6585 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6586
6587 From Mark Dettinger <dettinge@de.ibm.com>:
6588 * dwarf2cfi.c (read_2u): Increment pointer by two.
6589
6590 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6591
6592 * signals/signals.c: Fix typos in last change.
6593
6594 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6595
6596 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
6597 not already defined. Use __SIGRTMIN if available.
6598 (target_signal_from_host): Remove SIGRTMIN block.
6599 (do_target_signal_to_host): Remove SIGRTMIN block; check that
6600 the signal is within the realtime range.
6601
6602 2003-03-25 Adam Fedor <fedor@gnu.org>
6603
6604 * Makefile.in (infrun.o): Add $(language_h)
6605 * infrun.c (handle_inferior_event): Use skip_language_trampoline
6606 for language specific trampolines.
6607 * language.h (struct language_defn): Add skip_trampoline.
6608 (skip_language_trampoline): Declare.
6609 * language.c (unk_lang_trampoline, skip_language_trampoline):
6610 New functions.
6611 (unknown_language_defn, auto_language_defn, local_language_defn):
6612 Add ukn_lang_trampoline.
6613 * ada-lang.c (ada_language_defn): Add NULL for language
6614 specific skip_trampoline.
6615 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
6616 scm-lang.c: Likewise.
6617 * objc-lang.c (objc_skip_trampoline): New function.
6618 (objc_language_defn): Add objc_skip_trampoline.
6619
6620 2003-03-25 Andrew Cagney <cagney@redhat.com>
6621
6622 * frame.c (get_prev_frame): Delay validating a frame's ID -
6623 non-NULL, didn't go backwards - until an attempt to unwind it to
6624 the previous frame.
6625
6626 2003-03-25 Andrew Cagney <cagney@redhat.com>
6627
6628 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
6629 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
6630 * gdbarch.h, gdbarch.c: Re-generate.
6631 * config/sparc/tm-sparc.h
6632 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
6633 * sparc-tdep.c (sparc_gdbarch_init): Set
6634 deprecated_extra_stack_alignment_needed.
6635 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6636 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
6637 extra_stack_alignment_needed.
6638 * v850-tdep.c (v850_gdbarch_init): Ditto.
6639 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6640 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6641 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6642 * cris-tdep.c (cris_gdbarch_init): Ditto.
6643 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6644 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6645
6646 2003-03-25 Andrew Cagney <cagney@redhat.com>
6647
6648 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
6649 STORE_STRUCT_RETURN.
6650 * gdbarch.h, gdbarch.c: Regenerate.
6651 * d10v-tdep.c (d10v_store_struct_return): Delete function.
6652 (d10v_push_arguments): Set the struct return register.
6653 (d10v_gdbarch_init): Update.
6654 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6655 * x86-64-tdep.c (x86_64_init_abi): Update.
6656 * vax-tdep.c (vax_gdbarch_init): Update.
6657 * v850-tdep.c (v850_gdbarch_init): Update.
6658 * sparc-tdep.c (sparc_gdbarch_init): Update.
6659 * sh-tdep.c (sh_gdbarch_init): Update.
6660 * s390-tdep.c (s390_gdbarch_init): Update.
6661 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6662 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6663 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6664 * mips-tdep.c (mips_gdbarch_init): Update.
6665 * mcore-tdep.c (mcore_gdbarch_init): Update.
6666 * m68k-tdep.c (m68k_gdbarch_init): Update.
6667 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6668 * ia64-tdep.c (ia64_gdbarch_init): Update.
6669 * i386-tdep.c (i386_gdbarch_init): Update.
6670 * hppa-tdep.c (hppa_gdbarch_init): Update.
6671 * h8300-tdep.c (h8300_gdbarch_init): Update.
6672 * frv-tdep.c (frv_gdbarch_init): Update.
6673 * cris-tdep.c (cris_gdbarch_init): Update.
6674 * avr-tdep.c (avr_gdbarch_init): Update.
6675 * arm-tdep.c (arm_gdbarch_init): Update.
6676 * alpha-tdep.c (alpha_gdbarch_init): Update.
6677
6678 2003-03-25 Andrew Cagney <cagney@redhat.com>
6679
6680 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
6681 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
6682 CALL_DUMMY_STACK_ADJUST with a predicate variable.
6683 * gdbarch.h, gdbarch.c: Regenerate.
6684 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6685 call_dummy_stack_adjust_p.
6686 * vax-tdep.c (vax_gdbarch_init): Ditto.
6687 * v850-tdep.c (v850_gdbarch_init): Ditto.
6688 * sh-tdep.c (sh_gdbarch_init): Ditto.
6689 * s390-tdep.c (s390_gdbarch_init): Ditto.
6690 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6691 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6692 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6693 * mips-tdep.c (mips_gdbarch_init): Ditto.
6694 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6695 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6696 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6697 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6698 * i386-tdep.c (i386_gdbarch_init): Ditto.
6699 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6700 * frv-tdep.c (frv_gdbarch_init): Ditto.
6701 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6702 * cris-tdep.c (cris_gdbarch_init): Ditto.
6703 * avr-tdep.c (avr_gdbarch_init): Ditto.
6704 * arm-tdep.c (arm_gdbarch_init): Ditto.
6705 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6706 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6707 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
6708 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6709 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
6710 call_dummy_stack_adjust_p.
6711 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
6712 (CALL_DUMMY_STACK_ADJUST): Delete macro.
6713 * sparc-tdep.c (sparc32_push_arguments): Update.
6714 * valops.c (hand_function_call): Update.
6715
6716 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
6717
6718 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
6719 set_gdbarch_char_signed.
6720
6721 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
6722
6723 PR cli/548
6724 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
6725
6726 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
6727
6728 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
6729 (_initialize_arm_tdep): Don't set tm_print_insn.
6730
6731 2003-03-24 Adam Fedor <fedor@gnu.org>
6732
6733 * Makefile.in (YYOBJ): Add objc-exp.tab.o
6734 * objc-lang.h: Add multiple inclusion protection.
6735 (start_msglist, add_msglist, end_msglist): Additional declarations.
6736
6737 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
6738
6739 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
6740 value was renamed to ARM_FLOAT_SOFT_FPA.
6741
6742 2003-03-23 Andrew Cagney <cagney@redhat.com>
6743
6744 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
6745 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
6746 * gdbarch.h, gdbarch.c: Regenerate.
6747 * valops.c (hand_function_call): Update.
6748 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6749 * frame.c (legacy_saved_regs_this_id): Update.
6750 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
6751 * dummy-frame.h: Update.
6752 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
6753 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6754 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
6755 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
6756 * config/m68k/tm-sun3.h: Update.
6757 * blockframe.c (inside_main_func, frame_chain_valid): Update.
6758 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6759 * x86-64-tdep.c (x86_64_init_abi): Update.
6760 * vax-tdep.c (vax_gdbarch_init): Update.
6761 * v850-tdep.c (v850_gdbarch_init): Update.
6762 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
6763 * sh-tdep.c (sh_gdbarch_init): Update.
6764 * s390-tdep.c (s390_gdbarch_init): Update.
6765 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
6766 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
6767 (frame_get_saved_regs): Update.
6768 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6769 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6770 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6771 * mips-tdep.c (mips_gdbarch_init): Update.
6772 * mcore-tdep.c (mcore_gdbarch_init): Update.
6773 * m68k-tdep.c (m68k_gdbarch_init): Update.
6774 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6775 * ia64-tdep.c (ia64_gdbarch_init): Update.
6776 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
6777 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6778 (i386_interix_back_one_frame): Update.
6779 * hppa-tdep.c (hppa_gdbarch_init): Update.
6780 (hppa_init_extra_frame_info): Update.
6781 * h8300-tdep.c (h8300_gdbarch_init): Update.
6782 * frv-tdep.c (frv_gdbarch_init): Update.
6783 * cris-tdep.c (cris_gdbarch_init): Update.
6784 * avr-tdep.c (avr_gdbarch_init): Update.
6785 * arm-tdep.c (arm_gdbarch_init): Update.
6786 * alpha-tdep.c (alpha_gdbarch_init): Update.
6787
6788 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6789
6790 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
6791 (arm_get_fp_model): Declare.
6792 * arm-tdep.c (fp_model_strings): New string array.
6793 (arm_fp_model, current_fp_model): New variables.
6794 (arm_get_fp_model): New function.
6795 (arm_set_fp): New function.
6796 (set_fp_model_sfunc): New function.
6797 (show_fp_model): New function.
6798 (_initialize_arm_tdep): Add new command to set/show the FPU.
6799 (arm_extract_return_value): Use arm_get_fp_model.
6800 (arm_store_return_value): Likewise.
6801 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
6802 to initialize the floating-point data types.
6803 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
6804 model is FPA.
6805
6806 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6807
6808 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
6809 the current setting of each value.
6810 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
6811 new_set and new_show. Use add_setshow_cmd_full and
6812 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
6813 commands and add new version as subcommands of "set/show arm".
6814
6815 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6816
6817 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
6818 (set_arm_command, show_arm_command): New functions.
6819 (_initialize_arm_tdep): Add them.
6820 (num_disassembly_options): Renamed from num_flavor_options.
6821 (valid_disassembly_styles): Renamed from valid_flavors.
6822 (disassembly_style): Renamed from disassembly_flavor.
6823 (set_disassembly_style_sfunc): Renamed from
6824 set_disassembly_flavor_sfunc.
6825 (set_disassembly_style): Renamed from set_disassembly_flavor.
6826 (arm_othernames): Updated.
6827 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
6828 command. Add "set/show arm disassembly" commands. Deprecate
6829 "othernames" command.
6830
6831 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6832
6833 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
6834 (arm-tdep.o): Depend on elf_arm_h.
6835
6836 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6837
6838 * Makefile.in (coff_internal_h): Define.
6839 (arm-tdep.o): Update dependencies.
6840
6841 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6842
6843 * arm-tdep.c (prologue_cache): Delete.
6844 (check_prologue_cache, save_prologue_cache): Delete.
6845 (arm_scan_prologue): Don't check or update the prologue_cache.
6846 (arm_gdb_arch_init): Don't initialize it.
6847 (_initialize_arm_tdep): Likewise.
6848
6849 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
6850
6851 * MAINTAINERS (tui): Maintainer of tui code.
6852
6853 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
6854
6855 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
6856 (i386-cygwin-tdep.o): Add dependencies.
6857 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
6858 * i386-cygwin-tdep.c: New file.
6859 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
6860 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
6861
6862 2003-03-20 Andrew Cagney <cagney@redhat.com>
6863
6864 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
6865 (handle_inferior_event): Remove code calling
6866 DYNAMIC_TRAMPOLINE_NEXTPC.
6867
6868 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
6869 already has a full path.
6870
6871 * main.c (gdb_main): Return 1.
6872 (captured_main): Call error to report an invalid interpreter.
6873
6874 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6875 * alpha-osf1-tdep.c: Include "gdb_string.h".
6876
6877 2003-03-19 J. Brobecker <brobecker@gnat.com>
6878
6879 Continuing work to convert the hppa targets to multiarch partial.
6880
6881 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
6882 method, now that hppa_push_dummy_frame has a conformant prototype.
6883 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
6884 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
6885 for the switch to multiarch partial.
6886
6887 2003-03-19 Kevin Buettner <kevinb@redhat.com>
6888
6889 * mdebugread.c (parse_symbol): For stEnd, we're done counting
6890 when iss is issNull.
6891
6892 2003-03-18 Kevin Buettner <kevinb@redhat.com>
6893
6894 * mips-tdep.c (mips_register_name): Fix fencepost error involving
6895 NUM_REGS bounds check.
6896
6897 2003-03-18 Kevin Buettner <kevinb@redhat.com>
6898
6899 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
6900 * mips-tdep.c (gdb_assert.h): Include.
6901 (mips_generic_reg_names, mips_processor_reg_names): Make static.
6902 (mips_register_name): Handle integer registers explicitly. Add
6903 bounds checking.
6904 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
6905 (mips_lsi33k_reg_names): Don't list integer registers; they're
6906 handled by mips_register_name() now.
6907 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
6908 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
6909 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
6910 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
6911 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
6912
6913 2003-03-18 Andrew Cagney <cagney@redhat.com>
6914
6915 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
6916 a void pointer.
6917 * gdbtypes.h (print_scalar_formatted): Update declaration.
6918 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
6919
6920 2003-03-18 J. Brobecker <brobecker@gnat.com>
6921
6922 * infrun.c (observer.h): Add #include.
6923 (normal_stop): Add call to observer_notify_normal_stop.
6924 * Makefile.in (infrun.o): Add dependency on observer.h.
6925
6926 2003-03-18 J. Brobecker <brobecker@gnat.com>
6927
6928 Continuing work to convert the hppa targets to multiarch partial.
6929 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
6930 parameter. Reformat comment.
6931 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
6932 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
6933 to match new profile.
6934
6935 2003-03-18 J. Brobecker <brobecker@gnat.com>
6936
6937 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
6938 appear to be working in any case.
6939
6940 2003-03-18 J. Brobecker <brobecker@gnat.com>
6941
6942 * observer.c (observer_test_first_observer): New static variable.
6943 (observer_test_second_observer): Likewise.
6944 (observer_test_third_observer): Likewise.
6945 (observer_test_first_notification_function): New static function.
6946 (observer_test_second_notification_function): Likewise.
6947 (observer_test_third_notification_function): Likewise.
6948
6949 2003-03-17 J. Brobecker <brobecker@gnat.com>
6950
6951 * hppa-tdep.c (gdb_assert.h): Add missing #include.
6952 * somsolib.c (gdb_assert.h): Likewise.
6953 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
6954 (somsolib.o): Likewise.
6955
6956 2003-03-17 Andrew Cagney <cagney@redhat.com>
6957
6958 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
6959 BFD. Simplify setting of di.endian.
6960
6961 2003-03-17 Andrew Cagney <cagney@redhat.com>
6962
6963 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
6964 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
6965
6966 From Elena Zannoni <ezannoni@redhat.com>
6967 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
6968 vector and floating-point parameters.
6969 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
6970 convention.
6971 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
6972
6973 2003-03-17 Fernando Nasser <fnasser@redhat.com>
6974
6975 * MAINTAINERS: Remove my name from several maintainership roles.
6976
6977 2003-03-17 Andrew Cagney <cagney@redhat.com>
6978
6979 Fix frame off-by-one bug.
6980 * frame-unwind.h (frame_this_id_ftype): Replace
6981 frame_unwind_id_ftype.
6982 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
6983 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
6984 with "prev_register".
6985 * frame-unwind.c (frame_unwind_find_by_pc): Return
6986 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
6987 comment.
6988 * dummy-frame.c (cached_find_dummy_frame): Delete function.
6989 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
6990 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
6991 (dummy_frame_unwind): Update.
6992 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6993 sentinel_frame_register_unwind.
6994 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
6995 (sentinel_frame_unwinder): Update.
6996 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
6997 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
6998 * frame.c (create_sentinel_frame): Update. Initialize
6999 "prologue_cache" instead of "unwind_cache".
7000 (frame_register_unwind): Call this frame's prev_register with the
7001 next frame and this frame's prologue cache.
7002 (get_prev_frame): Simplify. Always call prev frame's this_id with
7003 this frame and prev frame's prologue cache. Document that this
7004 call is shifted one to the left when compared to the
7005 frame_register_unwind call.
7006 (legacy_saved_regs_prev_register): Replace
7007 frame_saved_regs_register_unwind.
7008 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7009 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7010 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7011 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7012 (d10v_frame_unwind): Update.
7013 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7014 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7015 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7016 "saved_regs" with "this_saved_regs".
7017
7018 2003-03-16 Andrew Cagney <cagney@redhat.com>
7019
7020 * frame.c (frame_pop): Don't call target_store_registers. Fix
7021 problem reported by Mark Kettenis.
7022
7023 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7024
7025 * i386-tdep.c (i386_register_type): Renamed from
7026 i386_register_virtual_type. Adjust function signature.
7027 (i386_gdbarch_init): Set register_type instead of
7028 deprecated_max_register_raw_size,
7029 deprecated_max_register_virtual_size and register_virtual_type.
7030
7031 2003-03-14 Andrew Cagney <cagney@redhat.com>
7032
7033 * frame.c (get_prev_frame): When a legacy frame, always call
7034 legacy_get_prev_frame. Simplify unwind code using assumption that
7035 the unwinder is new.
7036 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7037 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7038 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7039
7040 2003-03-14 Andrew Cagney <cagney@redhat.com>
7041
7042 * frame.c (get_saved_register): Delete function.
7043 * frame.h (get_saved_register): Delete declaration.
7044 * xstormy16-tdep.c: Update comment.
7045 * regcache.h: Update comments.
7046 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7047 get_saved_register and extract_address, use
7048 frame_read_unsigned_register.
7049 (sparc_frame_saved_pc): Ditto.
7050 (sparc_get_saved_register): Instead of get_saved_register, use
7051 frame_register.
7052 (sparc_pop_frame): Ditto.
7053 * findvar.c: Update comments.
7054 (value_of_register): Call frame_register instead of
7055 get_saved_register.
7056 (value_from_register): Ditto.
7057 * config/sparc/tm-sparc.h: Update comment.
7058 * breakpoint.c: Update comment.
7059
7060 2003-03-14 Andrew Cagney <cagney@redhat.com>
7061
7062 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7063 GET_SAVED_REGISTER.
7064 * gdbarch.h, gdbarch.c: Re-generate.
7065 * frame.h: Update comments.
7066 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7067 * x86-64-tdep.c (x86_64_init_abi): Update.
7068 * sparc-tdep.c (sparc_gdbarch_init): Update.
7069 * sh-tdep.c (sh_gdbarch_init): Update.
7070 * mips-tdep.c (mips_gdbarch_init): Update.
7071 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7072 * cris-tdep.c (cris_gdbarch_init): Update.
7073 * ia64-tdep.c (ia64_gdbarch_init): Update.
7074 * frame.c (frame_register): Update.
7075 (get_saved_register): Update.
7076 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7077
7078 2003-03-13 Andrew Cagney <cagney@redhat.com>
7079
7080 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7081 * gdbarch.h, gdbarch.c: Regenerate.
7082 * valops.c (hand_function_call): Update comment.
7083 * stack.c (return_command): Update comment.
7084 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7085 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7086 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7087 * x86-64-tdep.c (x86_64_init_abi): Update.
7088 * vax-tdep.c (vax_gdbarch_init): Update.
7089 * v850-tdep.c (v850_gdbarch_init): Update.
7090 * sparc-tdep.c (sparc_gdbarch_init): Update.
7091 * sh-tdep.c (sh_gdbarch_init): Update.
7092 * s390-tdep.c (s390_gdbarch_init): Update.
7093 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7094 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7095 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7096 * mips-tdep.c (mips_gdbarch_init): Update.
7097 * mcore-tdep.c (mcore_gdbarch_init): Update.
7098 * m68k-tdep.c (m68k_gdbarch_init): Update.
7099 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7100 * ia64-tdep.c (ia64_gdbarch_init): Update.
7101 * i386-tdep.c (i386_gdbarch_init): Update.
7102 * hppa-tdep.c (hppa_gdbarch_init): Update.
7103 * h8300-tdep.c (h8300_gdbarch_init): Update.
7104 * frv-tdep.c (frv_gdbarch_init): Update.
7105 * cris-tdep.c (cris_gdbarch_init): Update.
7106 * avr-tdep.c (avr_gdbarch_init): Update.
7107 * arm-tdep.c (arm_gdbarch_init): Update.
7108 * alpha-tdep.c (alpha_gdbarch_init): Update.
7109
7110 2003-03-13 Andrew Cagney <cagney@redhat.com>
7111
7112 * frame.c (legacy_frame_p): New function.
7113 (get_prev_frame): Use legacy_frame_p.
7114 * frame.h (legacy_frame_p): Declare.
7115
7116 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7117
7118 * MAINTAINERS (write after approval): Alphabetically
7119 listing corrected.
7120
7121 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7122
7123 * MAINTAINERS (write after approval): Add myself.
7124
7125 2003-03-12 Andrew Cagney <cagney@redhat.com>
7126
7127 * frame.c (get_prev_frame): Rename the frame parameter to
7128 "this_frame".
7129 (get_next_frame, legacy_get_prev_frame): Ditto.
7130
7131 2003-03-12 Andrew Cagney <cagney@redhat.com>
7132
7133 * frame.c (get_current_frame): Check target_has_registers before
7134 checking target_has_stack.
7135 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7136 instead of deprecated_selected_frame.
7137 * findvar.c (value_of_register): Pass "frame", not
7138 deprecated_selected_frame, to value_of_builtin_reg.
7139
7140 2003-03-12 Andrew Cagney <cagney@redhat.com>
7141
7142 * regcache.c (regcache_cooked_write_signed): New function.
7143 (regcache_cooked_write_unsigned): New function.
7144 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7145 (regcache_cooked_read_signed): Fix regnum in range assertion.
7146 * regcache.h (regcache_cooked_write_signed): Declare.
7147 (regcache_cooked_write_unsigned): Declare.
7148
7149 2003-03-12 Andrew Cagney <cagney@redhat.com>
7150
7151 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7152 * gdbarch.h, gdbarch.c: Re-generate.
7153 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7154 * x86-64-tdep.h: Update.
7155 * x86-64-tdep.c (x86_64_init_abi): Update.
7156 * v850-tdep.c (v850_gdbarch_init): Update.
7157 * sparc-tdep.c (sparc_gdbarch_init): Update.
7158 * sh-tdep.c (sh_gdbarch_init): Update.
7159 * s390-tdep.c (s390_gdbarch_init): Update.
7160 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7161 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7162 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7163 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7164 * mips-tdep.c (mips_gdbarch_init): Update.
7165 * mcore-tdep.c (mcore_gdbarch_init): Update.
7166 * m68k-tdep.c (m68k_gdbarch_init): Update.
7167 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7168 * ia64-tdep.c (ia64_gdbarch_init): Update.
7169 * i386-tdep.c (i386_gdbarch_init): Update.
7170 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7171 * hppa-tdep.c (hppa_gdbarch_init): Update.
7172 * h8300-tdep.c (h8300_gdbarch_init): Update.
7173 * frv-tdep.c (frv_gdbarch_init): Update.
7174 * cris-tdep.c (cris_gdbarch_init): Update.
7175 * avr-tdep.c (avr_gdbarch_init): Update.
7176 * arm-tdep.c (arm_gdbarch_init): Update.
7177 * alpha-tdep.c (alpha_gdbarch_init): Update.
7178 * sh-tdep.c (sh_init_extra_frame_info): Update.
7179 (sh64_init_extra_frame_info): Update.
7180 * ns32knbsd-nat.c (frame_num_args): Update.
7181 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7182 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7183 (xstormy16_frame_chain_valid): Update.
7184 * vax-tdep.c (vax_saved_pc_after_call): Update.
7185 * v850-tdep.c (v850_frame_chain): Update.
7186 (v850_pop_frame): Update.
7187 (v850_init_extra_frame_info): Update.
7188 * sparc-tdep.c (setup_arbitrary_frame): Update.
7189 * ns32k-tdep.c (umax_frame_num_args): Update.
7190 * s390-tdep.c (s390_pop_frame_regular): Update.
7191 * mn10300-tdep.c (mn10300_frame_chain): Update.
7192 (mn10300_pop_frame_regular): Update.
7193 (mn10300_init_extra_frame_info): Update.
7194 * mips-tdep.c (mips_init_frame_pc_first): Update.
7195 (mips_frame_chain): Update.
7196 (mips_pop_frame): Update.
7197 * mcore-tdep.c (mcore_frame_chain): Update.
7198 (mcore_pop_frame): Update.
7199 (mcore_init_extra_frame_info): Update.
7200 * arch-utils.c (init_frame_pc_default): Update.
7201 * m68k-tdep.c (isi_frame_num_args): Update.
7202 (delta68_frame_num_args): Update.
7203 (news_frame_num_args): Update.
7204 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7205 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7206 (alpha_frame_chain): Update.
7207 (alpha_pop_frame): Update.
7208 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7209 (hppa_init_extra_frame_info): Update.
7210 (hppa_frame_chain): Update.
7211 (hppa_frame_chain_valid): Update.
7212 * cris-tdep.c (cris_init_extra_frame_info): Update.
7213 * avr-tdep.c (avr_init_extra_frame_info): Update.
7214 * arm-tdep.c (arm_frame_chain_valid): Update.
7215 (arm_init_extra_frame_info): Update.
7216 (arm_pop_frame): Update.
7217 * frame.c (frame_pc_unwind): Update.
7218 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7219 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7220 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7221 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7222 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7223 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7224
7225 2003-03-12 Andrew Cagney <cagney@redhat.com>
7226
7227 Eliminate the need for POP_FRAME.
7228 * frame.c (do_frame_unwind_register): New function.
7229 (frame_pop): When no POP_FRAME, pop the frame using register
7230 unwind and a scratch regcache.
7231 (frame_saved_regs_pop): Delete function.
7232 (trad_frame_unwinder): Update.
7233 * d10v-tdep.c (d10v_frame_pop): Delete function.
7234 (d10v_frame_unwind): Update.
7235 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7236 (sentinel_frame_unwinder): Update.
7237 * dummy-frame.c (dummy_frame_pop): Delete function.
7238 (dummy_frame_unwind): Update.
7239 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7240 (struct frame_unwind): Update.
7241
7242 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7243
7244 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7245 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7246 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7247 Do range checks on register number obtained from debugging info.
7248 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7249 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7250 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7251 mapping function.
7252 (do_fp_register_row): Fix typo which caused double type to be
7253 used when attempting to unpack a float.
7254
7255 2003-03-11 J. Brobecker <brobecker@gnat.com>
7256
7257 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7258
7259 2003-03-11 Andrew Cagney <cagney@redhat.com>
7260
7261 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7262 frame. Problem found by Corinna Vinschen.
7263
7264 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7265
7266 * doublest.c (floatformat_from_length): Accept also
7267 the real size of 'long double' type.
7268
7269 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7270
7271 From Klee Dienes <kdienes@apple.com>:
7272 * breakpoint.c (bpstat_copy): Copy the command lines as well
7273 as the old value, to match what is freed in bpstat_clear.
7274
7275 2003-03-10 David Carlton <carlton@math.stanford.edu>
7276
7277 * minsyms.c (add_minsym_to_hash_table): Replace
7278 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7279 (compare_minimal_symbols, compact_minimal_symbols)
7280 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7281 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7282 of DEPRECATED_SYMBOL_MATCHES_NAME.
7283 (lookup_minimal_symbol_solib_trampoline): Ditto.
7284
7285 2003-03-10 Andrew Cagney <cagney@redhat.com>
7286
7287 * regcache.h (regcache_cooked_read_ftype): Define.
7288 (regcache_save, regcache_restore): Add a cooked_read parameter.
7289 * regcache.c (regcache_save, regcache_restore): Update.
7290 (do_cooked_read): New function.
7291 (regcache_cpy): Pass do_cooked_read to regcache_save and
7292 regcache_restore.
7293
7294 2003-03-10 Andrew Cagney <cagney@redhat.com>
7295
7296 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7297 * gdbarch.h, gdbarch.c: Re-generate.
7298 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7299 * x86-64-tdep.h: Update.
7300 * x86-64-tdep.c (x86_64_init_abi): Update.
7301 * v850-tdep.c (v850_gdbarch_init): Update.
7302 * sparc-tdep.c (sparc_gdbarch_init): Update.
7303 * sh-tdep.c (sh_gdbarch_init): Update.
7304 * s390-tdep.c (s390_gdbarch_init): Update.
7305 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7306 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7307 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7308 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7309 * mips-tdep.c (mips_gdbarch_init): Update.
7310 * mcore-tdep.c (mcore_gdbarch_init): Update.
7311 * m68k-tdep.c (m68k_gdbarch_init): Update.
7312 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7313 * ia64-tdep.c (ia64_gdbarch_init): Update.
7314 * i386-tdep.c (i386_gdbarch_init): Update.
7315 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7316 * hppa-tdep.c (hppa_gdbarch_init): Update.
7317 * h8300-tdep.c (h8300_gdbarch_init): Update.
7318 * frv-tdep.c (frv_gdbarch_init): Update.
7319 * cris-tdep.c (cris_gdbarch_init): Update.
7320 * avr-tdep.c (avr_gdbarch_init): Update.
7321 * arm-tdep.c (arm_gdbarch_init): Update.
7322 * alpha-tdep.c (alpha_gdbarch_init): Update.
7323 * sh-tdep.c (sh_init_extra_frame_info): Update.
7324 (sh64_init_extra_frame_info): Update.
7325 * ns32knbsd-nat.c (frame_num_args): Update.
7326 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7327 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7328 (xstormy16_frame_chain_valid): Update.
7329 * vax-tdep.c (vax_saved_pc_after_call): Update.
7330 * v850-tdep.c (v850_frame_chain): Update.
7331 (v850_pop_frame): Update.
7332 (v850_init_extra_frame_info): Update.
7333 * sparc-tdep.c (setup_arbitrary_frame): Update.
7334 * ns32k-tdep.c (umax_frame_num_args): Update.
7335 * s390-tdep.c (s390_pop_frame_regular): Update.
7336 * mn10300-tdep.c (mn10300_frame_chain): Update.
7337 (mn10300_pop_frame_regular): Update.
7338 (mn10300_init_extra_frame_info): Update.
7339 * mips-tdep.c (mips_init_frame_pc_first): Update.
7340 (mips_frame_chain): Update.
7341 (mips_pop_frame): Update.
7342 * mcore-tdep.c (mcore_frame_chain): Update.
7343 (mcore_pop_frame): Update.
7344 (mcore_init_extra_frame_info): Update.
7345 * arch-utils.c (init_frame_pc_default): Update.
7346 * m68k-tdep.c (isi_frame_num_args): Update.
7347 (delta68_frame_num_args): Update.
7348 (news_frame_num_args): Update.
7349 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7350 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7351 (alpha_frame_chain): Update.
7352 (alpha_pop_frame): Update.
7353 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7354 (hppa_init_extra_frame_info): Update.
7355 (hppa_frame_chain): Update.
7356 (hppa_frame_chain_valid): Update.
7357 * cris-tdep.c (cris_init_extra_frame_info): Update.
7358 * avr-tdep.c (avr_init_extra_frame_info): Update.
7359 * arm-tdep.c (arm_frame_chain_valid): Update.
7360 (arm_init_extra_frame_info): Update.
7361 (arm_pop_frame): Update.
7362 * frame.c (frame_pc_unwind): Update.
7363 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7364 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7365 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7366 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7367 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7368 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7369
7370 2003-03-10 Andrew Cagney <cagney@redhat.com>
7371
7372 * gdbarch.sh (gdbarch_unwind_pc): New method.
7373 * gdbarch.h, gdbarch.c: Regenerate.
7374 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7375 but use read_pc and FRAME_SAVED_PC as fall backs.
7376 (frame_saved_regs_pc_unwind): Delete function.
7377 (trad_frame_unwinder): Update.
7378 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7379 (struct frame_unwind): Update.
7380 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7381 (dummy_frame_unwind): Update.
7382 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7383 (sentinel_frame_unwinder): Update.
7384 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7385 (d10v_frame_unwind): Update.
7386 (d10v_unwind_pc): New function.
7387 (d10v_gdbarch_init): Set unwind_pc.
7388
7389 2003-03-10 Andrew Cagney <cagney@redhat.com>
7390
7391 * gdbarch.h: Re-generate.
7392
7393 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7394 PC.
7395 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7396 the PC register.
7397
7398 2003-03-08 Mark Kettenis <kettenis@gnu.org>
7399
7400 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7401
7402 2003-03-08 Andrew Cagney <cagney@redhat.com>
7403
7404 * cli-out.c: Update copyright.
7405 (cli_out_data): Define typedef. Use instead of ui_out_data.
7406
7407 2003-03-08 Andrew Cagney <cagney@redhat.com>
7408
7409 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7410 the result.
7411
7412 2003-03-07 Andrew Cagney <cagney@redhat.com>
7413
7414 * gdbarch.sh: Don't generate two macro definitions when an
7415 undefined macro taking no arguments.
7416 * gdbarch.h: Regenerate.
7417
7418 2002-03-07 Michal Ludvig <mludvig@suse.cz>
7419
7420 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7421 (x86_64_unwind_dummy_id): New functions.
7422 (x86_64_init_abi): Register these two new functions.
7423
7424 2003-03-07 Michal Ludvig <mludvig@suse.cz>
7425
7426 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7427 (x86_64_skip_prologue): Move prologue detection to
7428 separate function.
7429 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7430
7431 2003-03-05 Andrew Cagney <cagney@redhat.com>
7432
7433 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7434 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7435 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7436 to use unwind_dummy_id when a dummy frame.
7437 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7438 predicate.
7439 * gdbarch.h, gdbarch.c: Regneerate.
7440
7441 2003-03-05 Andrew Cagney <cagney@redhat.com>
7442
7443 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7444 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7445 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7446 values.
7447
7448 2003-03-05 Andrew Cagney <cagney@redhat.com>
7449
7450 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7451 (struct d10v_unwind_cache): Delete field "frameless". Replace
7452 "next_addr" with "sp_offset". Add "r11_offset".
7453 (d10v_frame_unwind_cache): Update.
7454 (prologue_find_regs): Update. When "mv r11, sp", save the
7455 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7456 RN was saved in r11_offset.
7457
7458 2003-03-05 Andrew Cagney <cagney@redhat.com>
7459
7460 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7461 cached PC value in the next frame.
7462
7463 2003-03-05 Andrew Cagney <cagney@redhat.com>
7464
7465 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7466 "id_unwind_cache" with "id".
7467 (frame_id_unwind): Delete declaration.
7468 * frame.c (frame_id_unwind): Delete function.
7469 (get_prev_frame): Call the frame id unwind method directly. Store
7470 the returned next frame's ID value in NEXT_FRAME. Note that there
7471 is a problem with the wrong unwind ID being called with the wrong
7472 unwind cache.
7473
7474 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7475
7476 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7477
7478 2003-03-05 James Ingham <jingham@apple.com>
7479 Daniel Jacobowitz <drow@mvista.com>
7480
7481 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7482 (auto_cp_abi): New variable.
7483 (current_cp_abi, num_cp_abis): Make static.
7484 (CP_ABI_MAX): Define.
7485 (cp_abis): Turn into an array.
7486 (value_virtual_fn_field): Fix formatting.
7487 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7488 takes a pointer.
7489 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7490 (list_cp_abis, _initialize_cp_abi): New functions.
7491 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7492 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7493 switch_to_cp_abi. Update prototype for register_cp_abi.
7494 * Makefile.in (cp-abi.o): Update dependencies.
7495 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7496 instead of switch_to_cp_abi.
7497 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7498 register_cp_abi.
7499 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7500 register_cp_abi.
7501 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7502
7503 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7504
7505 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7506 * dwarf2loc.c: Include "regcache.h".
7507 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7508 register_size.
7509 * Makefile.in (dwarf2loc.o): Update dependencies.
7510
7511 2003-03-04 Theodore A. Roth <troth@openavr.org>
7512
7513 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7514 number of io registers reported by remote target is not a multiple of
7515 step.
7516
7517 2003-03-04 David Carlton <carlton@math.stanford.edu>
7518
7519 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7520 (lookup_symbol_aux_psymtabs): Update call to
7521 lookup_partial_symbol.
7522 (lookup_transparent_type, find_main_psymtab)
7523 (make_symbol_overload_list): Ditto.
7524
7525 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
7526
7527 * MAINTAINERS (Write after approval): Update my email address.
7528
7529 2003-03-03 Andrew Cagney <cagney@redhat.com>
7530
7531 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7532 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7533 predicate. Replace MAX_REGISTER_RAW_SIZE.
7534 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7535 MAX_REGISTER_VIRTUAL_SIZE.
7536 * regcache.c (legacy_max_register_raw_size): New function.
7537 (legacy_max_register_virtual_size): New function.
7538 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7539 (MAX_REGISTER_RAW_SIZE): Define.
7540 (legacy_max_register_raw_size): Declare.
7541 (legacy_max_register_virtual_size): Declare.
7542 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7543 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7544 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7545 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7546 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7547 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7548 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7549 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7550 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7551 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7552 * vax-tdep.c (vax_gdbarch_init): Update.
7553 * v850-tdep.c (v850_gdbarch_init): Update.
7554 * sparc-tdep.c (sparc_gdbarch_init): Update.
7555 * sh-tdep.c (sh_gdbarch_init): Update.
7556 * s390-tdep.c (s390_gdbarch_init): Update.
7557 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7558 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7559 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7560 * mips-tdep.c (mips_gdbarch_init): Update.
7561 * mcore-tdep.c (mcore_gdbarch_init): Update.
7562 * m68k-tdep.c (m68k_gdbarch_init): Update.
7563 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7564 * ia64-tdep.c (ia64_gdbarch_init): Update.
7565 * i386-tdep.c (i386_gdbarch_init): Update.
7566 * hppa-tdep.c (hppa_gdbarch_init): Update.
7567 * h8300-tdep.c (h8300_gdbarch_init): Update.
7568 * frv-tdep.c (frv_gdbarch_init): Update.
7569 * cris-tdep.c (cris_gdbarch_init): Update.
7570 * avr-tdep.c (avr_gdbarch_init): Update.
7571 * arm-tdep.c (arm_gdbarch_init): Update.
7572 * alpha-tdep.c (alpha_gdbarch_init): Update.
7573 * d10v-tdep.c (d10v_gdbarch_init): Do not set
7574 max_register_raw_size or max_register_virtual_size.
7575
7576 2003-03-03 David Carlton <carlton@math.stanford.edu>
7577
7578 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7579 SYMBOL_MATCHES_NAME, add comment.
7580 (SYMBOL_MATCHES_NATURAL_NAME): New.
7581 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7582 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7583 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7584 * symtab.c (lookup_partial_symbol): Use
7585 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
7586 unhelpful comment.
7587 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
7588 SYMBOL_MATCHES_NAME.
7589 Fix for PR c++/33.
7590
7591 2003-03-03 David Carlton <carlton@math.stanford.edu>
7592
7593 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
7594 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
7595 by regexp matching against SYMBOL_NATURAL_NAME.
7596
7597 2003-03-03 David Carlton <carlton@math.stanford.edu>
7598
7599 * linespec.c (find_method): Extract code into collect_methods.
7600 (collect_methods): New.
7601
7602 2003-03-02 Mark Kettenis <kettenis@gnu.org>
7603
7604 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
7605 get_frame_base.
7606
7607 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
7608 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7609
7610 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
7611
7612 * arch-utils.c (generic_register_byte): Fix to use the loop index
7613 and not regnum when summing the size of all registers up to regnum.
7614
7615 2003-03-01 Andrew Cagney <cagney@redhat.com>
7616
7617 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
7618 FRAME_INIT_SAVED_REGS.
7619 * gdbarch.h, gdbarch.c: Regenerate.
7620 * stack.c (frame_info): Update.
7621 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
7622 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
7623 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
7624 * ns32k-tdep.c (ns32k_pop_frame): Update.
7625 * mips-tdep.c (mips_pop_frame): Update.
7626 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
7627 * ia64-tdep.c (ia64_frame_chain): Update.
7628 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
7629 (ia64_frameless_function_invocation): Update.
7630 (ia64_init_extra_frame_info): Update.
7631 (ia64_pop_frame_regular): Update.
7632 * frame.h (struct frame_info): Update comment.
7633 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
7634 * frame.c (frame_saved_regs_register_unwind): Update.
7635 (frame_saved_regs_register_unwind): Update.
7636 (deprecated_generic_get_saved_register): Update.
7637 * cris-tdep.c: Update comment.
7638 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
7639 Rename macro.
7640 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7641 * x86-64-tdep.c (x86_64_init_abi): Update.
7642 * vax-tdep.c (vax_gdbarch_init): Update.
7643 * v850-tdep.c (v850_gdbarch_init): Update.
7644 * sparc-tdep.c (sparc_gdbarch_init): Update.
7645 * sh-tdep.c (sh_gdbarch_init): Update.
7646 * s390-tdep.c (s390_gdbarch_init): Update.
7647 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7648 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7649 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7650 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7651 * mips-tdep.c (mips_gdbarch_init): Update.
7652 * mcore-tdep.c (mcore_gdbarch_init): Update.
7653 * m68k-tdep.c (m68k_gdbarch_init): Update.
7654 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7655 * ia64-tdep.c (ia64_gdbarch_init): Update.
7656 * i386-tdep.c (i386_gdbarch_init): Update.
7657 * frv-tdep.c (frv_gdbarch_init): Update.
7658 * avr-tdep.c (avr_gdbarch_init): Update.
7659 * arm-tdep.c (arm_gdbarch_init): Update.
7660 * alpha-tdep.c (alpha_gdbarch_init): Update.
7661
7662 2003-03-01 Andrew Cagney <cagney@redhat.com>
7663
7664 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
7665 option enum and switch. When no windows, set the interpreter to
7666 INTERP_CONSOLE.
7667
7668 2003-03-01 Andrew Cagney <cagney@redhat.com>
7669
7670 * main.c (captured_main): Replace magic option characters with an
7671 enum.
7672
7673 2003-03-01 Andrew Cagney <cagney@redhat.com>
7674
7675 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
7676 INIT_EXTRA_FRAME_INFO.
7677 * gdbarch.h, gdbarch.c: Regenerate.
7678 * arm-tdep.c: Update comments.
7679 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
7680 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
7681 * frame.h, avr-tdep.c: Ditto.
7682 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
7683 (create_new_frame, legacy_get_prev_frame): Ditto.
7684 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7685 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7686 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
7687 deprecated_init_extra_frame_info instead of init_extra_frame_info.
7688 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7689 * v850-tdep.c (v850_gdbarch_init): Ditto.
7690 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7691 * sh-tdep.c (sh_gdbarch_init): Ditto.
7692 * s390-tdep.c (s390_gdbarch_init): Ditto.
7693 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
7694 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7695 * mips-tdep.c (mips_gdbarch_init): Ditto.
7696 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7697 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7698 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7699 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7700 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7701 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7702 * frv-tdep.c (frv_gdbarch_init): Ditto.
7703 * cris-tdep.c (cris_gdbarch_init): Ditto.
7704 * avr-tdep.c (avr_gdbarch_init): Ditto.
7705 * arm-tdep.c (arm_gdbarch_init): Ditto.
7706 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7707 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7708
7709 2003-03-01 Andrew Cagney <cagney@redhat.com>
7710
7711 * gdbarch.sh (register_type): New function with predicate.
7712 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
7713 * gdbarch.h, gdbarch.c: Re-generate.
7714 * arch-utils.c (generic_register_byte): Use generic_register_size.
7715 (generic_register_size): When available, use
7716 gdbarch_register_type.
7717 * regcache.c (init_regcache_descr): When available, initialize the
7718 register type array using gdbarch_register_type. If the
7719 architecture supplies gdbarch_register_type, do not use the legacy
7720 regcache layout.
7721 * d10v-tdep.c (d10v_register_type): Replace
7722 d10v_register_virtual_type.
7723 (d10v_gdbarch_init): Set register_type instead of
7724 register_virtual_type.
7725
7726 2003-03-01 Andrew Cagney <cagney@redhat.com>
7727
7728 * Makefile.in (ax-gdb.o): Update dependencies.
7729 * ax-gdb.c: Include "regcache.h".
7730 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
7731 * findvar.c (value_of_register): Ditto.
7732 * infcmd.c (default_print_registers_info): Ditto.
7733
7734 2003-03-01 Mark Kettenis <kettenis@gnu.org>
7735
7736 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
7737 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7738
7739 2003-03-01 Mark Kettenis <kettenis@gnu.org>
7740
7741 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
7742 of STREQ.
7743
7744 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
7745
7746 * Makefile.in (dwarf2loc.o): Update dependencies.
7747 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
7748 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
7749 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
7750 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
7751 (locexpr_tracepoint_var_ref): New function.
7752 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
7753
7754 2003-02-28 Andrew Cagney <cagney@redhat.com>
7755
7756 * regcache.c (register_size): New function.
7757 * regcache.h (register_size): Declare
7758 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
7759 max_register_size instead of MAX_REGISTER_RAW_SIZE.
7760
7761 2003-02-28 David Carlton <carlton@math.stanford.edu>
7762
7763 * linespec.c (decode_compound): Extract code into find_method.
7764 (find_method): New.
7765
7766 2003-02-28 J. Brobecker <brobecker@gnat.com>
7767
7768 * Makefile.in: Add rules to build and link in observer.o.
7769
7770 2003-02-27 J. Brobecker <brobecker@gnat.com>
7771
7772 * observer.c: Minor comments edits.
7773
7774 2003-02-27 J. Brobecker <brobecker@gnat.com>
7775
7776 * observer.h, observer.c: New file.
7777
7778 2003-02-27 Andrew Cagney <cagney@redhat.com>
7779
7780 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
7781
7782 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
7783
7784 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
7785 (M6812_OP_STS_EXT): Likewise.
7786 (m6811_prologue): Use the above to recognize prologue.
7787 (m6812_prologue): Likewise.
7788
7789 2003-02-27 David Carlton <carlton@math.stanford.edu>
7790
7791 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
7792 SYMBOL_PRINT_NAME.
7793 (compare_psymbols): Ditto.
7794 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
7795
7796 2003-02-27 Michael Snyder <msnyder@redhat.com>
7797
7798 * f-lang.c (build_fortran_types): New function.
7799 (_initialize_f_language): Gdbarch-register built-in fortran types.
7800 * doublest.c (extract_floating): Fix warning text.
7801
7802 2003-02-27 Andrew Cagney <cagney@redhat.com>
7803
7804 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
7805 predicate. Replaces PUSH_DUMMY_FRAME.
7806 * gdbarch.h, gdbarch.c: Regnerate.
7807 * valops.c (hand_function_call): Update. Call
7808 generic_push_dummy_frame directly.
7809 * vax-tdep.c (vax_gdbarch_init): Update.
7810 * sparc-tdep.c (sparc_gdbarch_init): Update.
7811 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7812 * m68k-tdep.c (m68k_gdbarch_init): Update.
7813 * hppa-tdep.c (hppa_gdbarch_init): Update.
7814 * alpha-tdep.c (alpha_gdbarch_init): Update.
7815 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7816 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7817 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
7818 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
7819 push_dummy_frame to generic_push_dummy_frame.
7820 * v850-tdep.c (v850_gdbarch_init): Ditto.
7821 * sh-tdep.c (sh_gdbarch_init): Ditto.
7822 * s390-tdep.c (s390_gdbarch_init): Ditto.
7823 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7824 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7825 * mips-tdep.c (mips_gdbarch_init): Ditto.
7826 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7827 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7828 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7829 * i386-tdep.c (i386_gdbarch_init): Ditto.
7830 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7831 * frv-tdep.c (frv_gdbarch_init): Ditto.
7832 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7833 * cris-tdep.c (cris_gdbarch_init): Ditto.
7834 * avr-tdep.c (avr_gdbarch_init): Ditto.
7835 * arm-tdep.c (arm_gdbarch_init): Ditto.
7836
7837 2003-02-26 Kevin Buettner <kevinb@redhat.com>
7838
7839 * mips-tdep.c (show_mips_abi): New function.
7840 (_initialize_mips_tdep): Use show_mips_abi() to implement the
7841 command ``show mips abi''.
7842
7843 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
7844
7845 From Elena Zannoni <ezannoni@redhat.com>
7846 * dbxread.c (process_one_symbol): Only record line 0 if one or
7847 more sline entries have been seen for the function.
7848
7849 2003-02-26 Michael Chastain <mec@shout.net>
7850
7851 * configure: Regenerate with autoconf 000227.
7852
7853 2003-02-26 Michael Chastain <mec@shout.net>
7854
7855 Close PR build/660.
7856 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
7857 for old libc5/glibc.
7858 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
7859
7860 2003-02-26 Kris Warkentin <kewarken@qnx.com>
7861
7862 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
7863 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
7864
7865 2003-02-26 Michael Chastain <mec@shout.net>
7866
7867 * configure.in: New variable HAVE_UINTPTR_T.
7868 * configure, config.in: Regenerated.
7869
7870 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
7871
7872 Fix PR build/1097.
7873 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
7874
7875 2003-02-25 Andrew Cagney <cagney@redhat.com>
7876
7877 * frame.c (get_prev_frame): Add comment on check for
7878 inside_entry_func. Only check for inside_entry_file when not a
7879 dummy and not a sentinel. Check that the new frame is not inner
7880 to the old frame.
7881
7882 2003-02-25 Andrew Cagney <cagney@redhat.com>
7883
7884 * frame.c (frame_debug): New variable.
7885 (_initialize_frame): Add "set/show debug frame" command.
7886 (get_prev_frame): When frame_debug, print reason why unwind
7887 failed.
7888
7889 2003-02-25 Michael Chastain <mec@shout.net>
7890
7891 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
7892 to avoid uintptr_t definition problems.
7893
7894 2003-02-25 David Carlton <carlton@math.stanford.edu>
7895
7896 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
7897 (SYMBOL_LINKAGE_NAME): Ditto.
7898 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
7899 SYMBOL_LINKAGE_NAME.
7900 (struct general_symbol_info): Expand comment.
7901 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
7902 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
7903 (SYMBOL_MATCHES_REGEXP): Ditto.
7904 * symtab.c (symbol_natural_name): New function.
7905 * objfiles.h: Replace all uses of SYMBOL_NAME by
7906 DEPRECATED_SYMBOL_NAME.
7907 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
7908 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
7909 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
7910 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
7911 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
7912 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
7913 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
7914 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
7915 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
7916 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
7917 * ada-exp.y: Ditto.
7918 * ada-exp.y: Update copyright.
7919 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
7920 * cp-valprint.c: Ditto.
7921
7922 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
7923
7924 * infptrace.c (detach): Do not flag error if ptrace detach fails
7925 and errno is set to ESRCH.
7926
7927 2003-02-24 Andrew Cagney <cagney@redhat.com>
7928
7929 * infptrace.c (udot_info): Change type of udot_off to long. Use
7930 paddr when printing udot_off's value.
7931
7932 2003-02-24 David Carlton <carlton@math.stanford.edu>
7933
7934 * symtab.c (make_symbol_overload_list): Only read in partial
7935 symtabs containing a matching partial symbol.
7936
7937 2003-02-24 David Carlton <carlton@math.stanford.edu>
7938
7939 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
7940 do the comparison, not strcmp.
7941 * symfile.c (compare_psymbols): Ditto.
7942 * defs.h: Declare strcmp_iw_ordered.
7943 * utils.c (strcmp_iw_ordered): New function.
7944
7945 2003-02-24 Jim Blandy <jimb@redhat.com>
7946
7947 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
7948 support, shared libs): Remove my name from here, to better reflect
7949 reality.
7950
7951 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7952
7953 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
7954 (target_ops): Add to_have_continuable_watchpoint.
7955 * target.c (update_current_target): Add INHERIT line for
7956 to_have_continuable_watchpoint.
7957 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
7958 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
7959 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
7960 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
7961
7962 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
7963
7964 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
7965 maintainership.
7966
7967 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7968
7969 * solib.c (solib_open): Call target defined search function after
7970 failing with solib-search-path.
7971 * solist.h (target_so_ops): Add find_and_open_solib function hook and
7972 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
7973
7974 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7975
7976 * MAINTAINERS: Add myself to Write After section.
7977
7978 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
7979
7980 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
7981
7982 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
7983
7984 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
7985 (m68hc11_add_reggroups): New function.
7986 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
7987 (m68hc11_gdbarch_init): Install the reggroups.
7988 (_initialize_m68hc11_tdep): Initialize them.
7989
7990 2003-02-21 James E Wilson <wilson@tuliptree.org>
7991
7992 * MAINTAINERS: Update my email address.
7993
7994 2003-02-21 David Carlton <carlton@math.stanford.edu>
7995
7996 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
7997
7998 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
7999
8000 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8001 * symtab.h: Add opaque declarations of struct axs_value and
8002 struct agent_expr.
8003 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8004 (struct location_funcs): New type.
8005 (struct symbol): Add "loc" to aux_value.
8006 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8007 * dwarf2read.c: Include "dwarf2expr.h".
8008 (dwarf2_symbol_mark_computed): New function.
8009 (read_func_scope): Use it.
8010 (var_decode_location): New function.
8011 (new_symbol): Use it.
8012 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8013
8014 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8015 (dwarf2expr_h, dwarf2loc_h): New variables.
8016 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8017 (dwarf2expr.o, dwarf2loc.o): New rules.
8018 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8019 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8020 LOC_COMPUTED_ARG.
8021 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8022 * m2-exp.y (yylex): Likewise.
8023 * printcmd.c (address_info, print_frame_args): Likewise.
8024 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8025 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8026 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8027 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8028 * symtab.c (lookup_block_symbol): Likewise.
8029
8030 2003-02-20 Adam Fedor <fedor@gnu.org>
8031
8032 * symtab.h: Remove objc_specific struct
8033 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8034 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8035 Have language_objc use cplus_specific struct.
8036
8037 2003-02-20 Tom Tromey <tromey@redhat.com>
8038
8039 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8040 TYPE_NAME, when printing a String value. PR java/1075.
8041
8042 2003-02-20 Adam Fedor <fedor@gnu.org>
8043
8044 * objc-lang.h (find_methods): Remove declaration.
8045 * objc-lang.c (find_methods): Make static.
8046
8047 2003-02-20 Christopher Faylor <cgf@redhat.com>
8048
8049 * win32-nat.c (get_image_name): Check return value from
8050 ReadProcessMemory.
8051 (child_xfer_memory): Ditto.
8052
8053 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8054
8055 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8056 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8057 '${exec_prefix}' (in addition to the expansion thereof) as
8058 relocatable.
8059 * configure: Rebuilt.
8060
8061 2003-02-20 David Carlton <carlton@math.stanford.edu>
8062
8063 * symtab.c (search_symbols): Revert the search_symbols part of my
8064 2002-12-23 patch. Add comment.
8065
8066 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8067
8068 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8069 * dbxread.c (elfstab_build_psymtabs): Don't call
8070 install_minimal_symbols.
8071 (stabsect_build_psymtabs): Likewise.
8072 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8073 earlier.
8074 * somread.c (som_symfile_read): Call install_minimal_symbols
8075 and do_cleanups earlier.
8076 * nlmread.c (nlm_symfile_read): Likewise.
8077 * mdebugread.c (elfmdebug_build_psymtabs): Call
8078 install_minimal_symbols and make appropriate cleanups.
8079
8080 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8081
8082 * solib.c (reload_shared_libraries): New function.
8083 (_initialize_solib): Add callbacks for ``set solib-search-path''
8084 and ``set solib-absolute-prefix''.
8085
8086 2003-02-20 David Carlton <carlton@math.stanford.edu>
8087
8088 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8089 expand comment.
8090 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8091 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8092 * ada-typeprint.c (ada_typedef_print): Ditto.
8093 * ax-gdb.c (gen_var_ref): Ditto.
8094 * breakpoint.c (print_one_breakpoint): Ditto.
8095 * buildsym.c (finish_block): Ditto.
8096 * c-valprint.c (c_val_print): Ditto.
8097 * expprint.c (print_subexp): Ditto.
8098 * findvar.c (locate_var_value): Ditto.
8099 * infcmd.c (jump_command): Ditto.
8100 * linespec.c (decode_line_2, decode_compound): Ditto.
8101 * maint.c (maintenance_translate_address): Ditto.
8102 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8103 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8104 Ditto.
8105 * p-valprint.c (pascal_val_print): Ditto.
8106 * stabsread.c (define_symbol): Ditto.
8107 * stack.c (print_frame, frame_info, print_block_frame_locals)
8108 (print_frame_arg_vars, return_command): Ditto.
8109 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8110 * symmisc.c (print_symbol): Ditto.
8111 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8112 (compare_search_syms, print_symbol_info, print_msymbol_info)
8113 (rbreak_command): Ditto.
8114 * tracepoint.c (tracepoints_info): Ditto.
8115 * typeprint.c (typedef_print): Ditto.
8116 * valops.c (value_of_variable, hand_function_call): Ditto.
8117 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8118 * ada-typeprint.c: Update Copyright.
8119 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8120 * tracepoint.c, cli/cli-cmds.c: Ditto.
8121
8122 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8123
8124 * frame.c (generic_unwind_get_saved_register): Make non-static.
8125 * frame.h (generic_unwind_get_saved_register): Declare.
8126 * mips-tdep.c (read_next_frame_reg): Fetch register from
8127 current regcache when frame is NULL.
8128 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8129 that must be NULL.
8130 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8131 instead of frame_register_unwind().
8132
8133 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8134
8135 * remote-sim.c (gdbsim_insert_breakpoint)
8136 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8137 code.
8138
8139 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8140
8141 * remote.c (_initialize_remote): Add commands "set/show remote
8142 hardware-watchpoint-limit" and "set/show remote
8143 hardware-breakpoint-limit".
8144 (remote_hw_watchpoint_limit): Initialize to -1.
8145 (remote_hw_breakpoint_limit): Ditto.
8146 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8147
8148 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8149
8150 * coff-pe-read.c: New file - support reading of minimal symbols from a
8151 portable executable using the export table.
8152 * coff-pe-read.h: New file.
8153 * coffread.c: Include coff-pe-read.h.
8154 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8155 debugging symbols found.
8156 * Makefile.in (SFILES): Add coff-pe-read.o.
8157 (coff_pe_read_h): Define.
8158 (COMMON_OBS): Add coff-pe-read.o.
8159 (coffread.o): Add coff_pe_read_h dependency.
8160 (coff-pe-read.o): New target.
8161
8162 2003-02-19 David Carlton <carlton@math.stanford.edu>
8163
8164 * Makefile.in (SFILES): Add block.c.
8165 (block_h): New.
8166 (COMMON_OBS): Add block.o.
8167 (block.o): New.
8168 (x86-64-tdep.o): Add $(block_h).
8169 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8170 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8171 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8172 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8173 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8174 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8175 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8176 * value.h: Add opaque declaration for struct block.
8177 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8178 * ada-lang.h: Ditto.
8179 * x86-64-tdep.c: #include "block.h"
8180 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8181 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8182 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8183 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8184 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8185 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8186 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8187 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8188 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8189 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8190 * symtab.c (block_function): Ditto.
8191 (contained_in): Ditto.
8192 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8193 block.h. Add opaque declaration for struct block.
8194 * symtab.h: Move block_function and contained_in declarations to
8195 block.h. Add opaque declarations for struct block, struct
8196 blockvector.
8197 (struct block): Move to block.h.
8198 (struct blockvector): Ditto.
8199 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8200 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8201 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8202 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8203 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8204 Ditto.
8205 * block.c: New file.
8206 * block.h: New file.
8207
8208 2003-02-19 Theodore A. Roth <troth@openavr.org>
8209
8210 * avr-tdep.c (avr_extract_return_value): Remove function.
8211 (avr_store_return_value): Remove function.
8212 (avr_extract_struct_value_address): Remove function.
8213 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8214
8215 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8216
8217 * rs6000-tdep.c: Include "gdb_assert.h".
8218 (registers_e500): Add "acc" and "spefscr".
8219 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8220 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8221 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8222 really is "r0".
8223 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8224
8225 2003-02-18 Keith Seitz <keiths@redhat.com>
8226
8227 * Makefile.in: Add gdbtk-interps.c.
8228
8229 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8230
8231 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8232 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8233
8234 2003-02-18 Andrew Cagney <cagney@redhat.com>
8235
8236 * symtab.h (struct objfile): Add opaque declaration.
8237
8238 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8239
8240 From Jim Ingham <jingham@apple.com>:
8241 * dbxread.c (process_one_symbol): Use last_function_start rather
8242 than function_start_offset to find the real beginning of the
8243 current function. The latter is just the text section offset on
8244 some systems, the former is always the real function start.
8245
8246 2003-02-17 Andrew Cagney <cagney@redhat.com>
8247
8248 * configure.in: Revert ${target} != ${host}.
8249
8250 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8251
8252 * configure.in (Makefile): Use the test ${target} != ${host},
8253 instead of the absence of the "nm.h" file, to determine of the
8254 configuration non-native.
8255 * configure: Regenerate.
8256
8257 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8258
8259 From Brian Ford <ford@vss.fsi.com>
8260
8261 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8262 conditionalize tui_active test.
8263 (lookup_cmd_1): Ditto.
8264
8265 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8266
8267 * configure.in: Add check for _etext.
8268 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8269 available.
8270 * config.in, configure: regenerated.
8271
8272 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8273
8274 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8275
8276 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8277
8278 * main.c (tui_version): Delete variable.
8279 (captured_main): When --tui, set interpreter_p to "tui" instead of
8280 enabling tui_version.
8281 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8282 tui_version.
8283 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8284 * cli/cli-cmds.c (disassemble_command): Ditto.
8285 * defs.h (tui_version): Delete declaration.
8286 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8287 (tui-interp.o): Add rules.
8288 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8289
8290 2003-02-14 Christopher Faylor <cgf@redhat.com>
8291
8292 * win32-nat.c (register_loaded_dll): Correctly set address range for
8293 just-loaded dll.
8294
8295 2003-02-12 Jason Molenda (jmolenda@apple.com)
8296
8297 * symmisc.c (print_objfile_statistics): Include information about
8298 the number of psymtabs and symtabs in each object file.
8299
8300 2003-02-13 Keith R Seitz <keiths@redhat.com>
8301
8302 * main.h (struct captured_main_args): Add interpreter_p.
8303 * main.c (captured_main): Initialize interpreter_p from context.
8304 * gdb.c (main): Set interpreter_p argument.
8305 * Makefile.in (gdb.o): Add dependency for interps.h.
8306
8307 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8308
8309 * event-top.c (cli_command_loop): Delete declaration.
8310 (_initialize_event_loop): Delete function setting event_loop_hook.
8311 * event-top.h (cli_command_loop): Declare. Update copyright.
8312 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8313 * interps.c (current_interp_command_loop): When event_loop_p, call
8314 cli_command_loop.
8315
8316 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8317
8318 * interps.h (interp_command_loop_ftype): Change return type to
8319 void.
8320
8321 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8322
8323 * x86-64-tdep.c (x86_64_extract_return_value)
8324 (x86_64_store_return_value): Use regcache instead of regbuf.
8325 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8326 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8327
8328 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8329
8330 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8331 * aclocal.m4: Regenerate.
8332 * configure: Regenerate.
8333
8334 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8335 TCL_LD_SEARCH_FLAGS.
8336
8337 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8338
8339 * dwarf2cfi.c: Reindented.
8340
8341 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8342
8343 * interps.c (clear_interpreter_hooks): Convert function definition
8344 to ISO C.
8345
8346 2003-02-07 David Carlton <carlton@math.stanford.edu>
8347
8348 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8349
8350 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8351
8352 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8353 (struct type): ...to here.
8354 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8355 field.
8356 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8357 (replace_type): Set length on all type variants for a given type.
8358
8359 2003-02-07 Andrew Cagney <ac131313@redhat.com>
8360
8361 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8362 <sys/stat.h>.
8363 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8364
8365 2003-02-06 Andrew Cagney <ac131313@redhat.com>
8366
8367 * Makefile.in (symm-nat.o): Update dependencies.
8368 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8369 (lynx-nat.o, ia64-linux-nat.): Ditto.
8370 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8371 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8372 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8373
8374 * Makefile.in (inflow_h): Define.
8375 (procfs.o, inflow.o, procfs.o): Update dependencies.
8376 * inftarg.c (child_stop): Delete extern declaration of
8377 inferior_process_group. Include "inflow.h".
8378 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8379 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8380 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8381 (our_process_group, inferior_process_group): Extern declarations.
8382
8383 * procfs.c: Include "gdb_assert.h".
8384
8385 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8386 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8387 * jv-typeprint.c (java_type_print_base): Ditto.
8388 * typeprint.c (typedef_print): Eliminate STREQ.
8389 * cli/cli-script.c (define_command, define_command): Ditto.
8390 * main.c (captured_main): Ditto.
8391 * values.c (lookup_internalvar): Ditto.
8392 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8393 within `if' conditional.
8394 * linespec.c (decode_line_2): Ditto.
8395 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8396 (bfd_openw_with_cleanup): Ditto.
8397
8398 2003-02-07 Mark Kettenis <kettenis@gnu.org>
8399
8400 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8401 legacy_extract_return_value and store_return_value to
8402 legacy_return_value.
8403
8404 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8405
8406 * win32-nat.c (get_relocated_section_addrs): New function. Find
8407 section load addresses for symbol handling in relocated DLLs.
8408 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8409
8410 2003-02-05 Fred Fish <fnf@intrinsity.com>
8411
8412 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8413 '=' and '!='.
8414 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8415 with '&' and '=='.
8416 (angel_RDI_info): Ditto.
8417 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8418 with '&' and '!='.
8419 (threads_continue_all_with_signals): Ditto.
8420
8421 2003-02-05 Jim Ingham <jingham@apple.com>
8422 Keith Seitz <keiths@redhat.com>
8423 Elena Zannoni <ezannoni@redhat.com>
8424 Andrew Cagney <ac131313@redhat.com>
8425
8426 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8427 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8428 (SUBDIR_MI_OBS): Add "mi-interp.o".
8429 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8430 (SFILES): Add "interps.c".
8431 (COMMON_OBS): Add "interps.o".
8432 (interps_h, mi_main_h): Define.
8433 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8434 (mi-main.o, main.o, event-top.o): Update dependencies.
8435 * cli/cli-interp.c: New file.
8436 * interps.h, interps.c: New files.
8437 * top.c: (gdb_init): Don't install the default interpreter, handed
8438 by captured_main.
8439 * main.c: Include "interps.h".
8440 (interpreter_p): Note that it should malloc'ed.
8441 (captured_command_loop): Call current_interp_command_loop.
8442 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8443 xfree and xstrdup when updating interpreter_p. Install the
8444 default interpreter. Add hack to stop mi1's copyright notice
8445 being encoded.
8446 * event-top.h (gdb_setup_readline): Declare.
8447 (gdb_disable_readline): Declare.
8448 * event-top.c: Include "interps.h".
8449 (display_gdb_prompt): Call current_interp_display_prompt_p.
8450 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8451 gdb_stdlog, and gdb_stdtarg.
8452 (_initialize_event_loop): Don't call gdb_setup_readline.
8453 * cli-out.c (cli_out_set_stream): New function.
8454 * cli-out.h (cli_out_set_stream): Declare.
8455
8456 2003-02-06 Mark Kettenis <kettenis@gnu.org>
8457
8458 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8459 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8460 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8461 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8462 config/i386/i386v42mp.mt: Removed.
8463
8464 2003-02-05 Mark Kettenis <kettenis@gnu.org>
8465
8466 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8467 GDB_OSABI_SOLARIS.
8468
8469 2003-02-05 Michael Chastain <mec@shout.net>
8470
8471 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8472 2.12.1 and earlier versions.
8473
8474 2003-02-05 Andrew Cagney <ac131313@redhat.com>
8475
8476 Remove orphaned hosts, targets and files.
8477 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8478 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8479 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8480 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8481 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8482 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8483 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8484 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8485 * config/sparc/tm-sp64sim.h: Delete.
8486 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8487 hosts.
8488 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8489 mips*-dec-mach3* targets.
8490
8491 2003-02-04 Michael Chastain <mec@shout.net>
8492
8493 * NEWS: Fix typo: sepcifying -> specifying.
8494
8495 2003-02-04 Michael Chastain <mec@shout.net>
8496
8497 * dwarfread.c: Add documentation on the state of dwarf-1,
8498 looking towards obsoletion.
8499
8500 2003-02-03 Michael Chastain <mec@shout.net>
8501
8502 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8503 gdb/testsuite/gdb.c++/pr-1023.exp.
8504
8505 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8506
8507 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8508 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8509
8510 * utils.c (init_page_info): Delete reference to MPW in comments.
8511 * main.c (captured_main): Delete #ifdef MPW.
8512
8513 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8514
8515 * NEWS: Note that the m32r-*-elf* is obsolete.
8516 * monitor.c (monitor_expect): Obsolete reference to m32r.
8517 * configure.tgt: Mark m32r-*-elf* as obsolete.
8518 * MAINTAINERS: Mark m32k as obsolete.
8519 * m32r-rom.c: Obsolete file.
8520 * config/m32r/m32r.mt: Obsolete file.
8521 * config/m32r/tm-m32r.h: Obsolete file.
8522 * m32r-stub.c: Obsolete file.
8523 * m32r-tdep.c: Obsolete file.
8524
8525 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8526
8527 * NEWS: Mention that the z8k-zilog-none is obsolete.
8528 * MAINTAINERS: Mark z8k as obsolete.
8529 * configure.tgt: Obsolete the z8k-*-coff* target.
8530 * config/z8k/z8k.mt: Obsolete file.
8531 * config/z8k/tm-z8k.h: Obsolete file.
8532 * z8k-tdep.c: Obsolete file.
8533
8534 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8535
8536 * NEWS: Mention that the mn10200-elf is obsolete.
8537 * configure.tgt: Obsolete mn10200-*-* target.
8538 * breakpoint.c (update_breakpoints_after_exec): Update comment to
8539 mention that the mn10200 is obsolete.
8540 * breakpoint.h: Ditto.
8541 * MAINTAINERS: Mark the mn10200-elf as obsolete.
8542 * config/mn10200/mn10200.mt: Obsolete file.
8543 * config/mn10200/tm-mn10200.h: Obsolete file.
8544 * mn10200-tdep.c: Obsolete file.
8545
8546 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8547
8548 * MAINTAINERS: Mark h8500 as obsolete.
8549 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8550 * findvar.c (value_from_register): Ditto.
8551 * h8500-tdep.c: Mark file as obsolete.
8552 * config/h8500/h8500.mt: Ditto.
8553 * config/h8500/tm-h8500.h: Ditto.
8554 * NEWS: Mention that h8500 is obsolete.
8555
8556 2003-02-04 David Carlton <carlton@math.stanford.edu>
8557
8558 * objfiles.c (allocate_objfile): Always set name. Add comment at
8559 start of function.
8560 * jv-lang.c (get_dynamics_objfile): Add comment.
8561
8562 2003-02-04 David Carlton <carlton@math.stanford.edu>
8563
8564 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8565 * printcmd.c (build_address_symbolic): Replace uses of
8566 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8567 SYMBOL_NAME, and asm_demangle.
8568 Update copyright.
8569
8570 2003-02-04 David Carlton <carlton@math.stanford.edu>
8571
8572 * linespec.c (decode_compound): Extract code into
8573 lookup_prefix_sym.
8574 (lookup_prefix_sym): New function.
8575
8576 2003-02-04 David Carlton <carlton@math.stanford.edu>
8577
8578 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8579 FLOAT_COERCION_BADNESS.
8580 * gdbtypes.c (rank_one_type): Replace all uses of
8581 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8582
8583 2003-02-04 Jim Blandy <jimb@redhat.com>
8584
8585 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
8586 section, let dwarf_macinfo_section point to it, not
8587 dwarf_loc_section.
8588
8589 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
8590
8591 Pointed out by Anton Blanchard <anton@samba.org>.
8592 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
8593 (ppc_linux_at_sigtramp_return_path): Use it.
8594
8595 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
8596
8597 * defs.h (streq): Add prototype.
8598 * utils.c (streq): New function.
8599
8600 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
8601 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
8602 * mdebugread.c (new_symbol): Likewise.
8603 * stabsread.c (define_symbol): Likewise.
8604 * coffread.c (process_coff_symbol): Likewise.
8605 * dwarfread.c (new_symbol): Likewise.
8606
8607 * minsyms.c (prim_record_minimal_symbol_and_info): Use
8608 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
8609 here.
8610 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
8611 SYMBOL_INIT_DEMANGLED_NAME.
8612 * objfiles.c: Include "hashtab.h".
8613 (allocate_objfile): Call htab_set_functions_ex for the
8614 demangled_names_hash.
8615 (free_objfile): Call htab_delete for the demangled_names_hash.
8616 * objfiles.h (struct htab): Add declaration.
8617 (struct objfile): Add demangled_names_hash.
8618 * symfile.c: Include "hashtab.h".
8619 (reread_symbols): Call htab_delete for the demangled_names_hash.
8620 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
8621 SYMBOL_NAME in the bcache.
8622 * symtab.c: Include "hashtab.h". Update comments.
8623 (create_demangled_names_hash, symbol_set_names): New functions.
8624 (symbol_find_demangled_name): New function, broken out from
8625 symbol_init_demangled_names.
8626 (symbol_init_demangled_names): Use it.
8627 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
8628 (SYMBOL_SET_NAMES): New macro.
8629 (symbol_set_names): Add prototype.
8630
8631 2003-02-03 Jim Blandy <jimb@redhat.com>
8632
8633 Use a single, consistent representation for an empty minimal
8634 symbol table in an objfile.
8635 * objfiles.c (terminate_minimal_symbol_table): New function.
8636 (allocate_objfile): Call it.
8637 * objfiles.h (terminate_minimal_symbol_table): New declaration.
8638 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8639 non-NULL.
8640 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
8641 objfile has minimal symbols, compare minimal_symbol_count to zero,
8642 instead of comparing msymbols with NULL.
8643 * objfiles.c (have_minimal_symbols): Same.
8644 * solib-sunos.c (solib_add_common_symbols): Call
8645 terminate_minimal_symbol_table.
8646 * symfile.c (reread_symbols): Same.
8647
8648 2003-02-03 Kevin Buettner <kevinb@redhat.com>
8649
8650 * s390-tdep.c (s390_address_class_type_flags)
8651 (s390_address_class_type_flags_to_name)
8652 (s390_address_class_name_to_type_flags): New functions.
8653 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
8654 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
8655
8656 2003-02-03 Michael Snyder <msnyder@redhat.com>
8657
8658 * arm-tdep.c: Fix spell-o in comment.
8659
8660 2003-02-03 Michal Ludvig <mludvig@suse.cz>
8661
8662 * dwarf2cfi.c (pointer_encoding): Added new parameter.
8663 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8664 error messages to contain BFD filename.
8665
8666 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
8667
8668 Fix PR gdb/742 gdb/743 gdb/877
8669 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
8670 (do_mixed_source_and_assembly): Use
8671 make_cleanup_ui_out_tuple_begin_end and
8672 make_cleanup_ui_out_tuple_begin_end.
8673 (do_mixed_source_and_assembly): Ditto.
8674 * thread.c (do_captured_list_thread_ids): Ditto.
8675 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
8676 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
8677 ui_out_tuple_end): Delete prototypes.
8678 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
8679 ui_out_list_end, ui_out_tuple_end): Delete.
8680
8681 From Kevin Buettner <kevinb@redhat.com>:
8682 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
8683 * ui-out.c (make_cleanup_ui_out_table_begin_end)
8684 (do_cleanup_table_end): New functions.
8685 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
8686 Use cleanups to invoke_ui_out_tuple_end().
8687 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
8688 * cli/cli-setshow.c (cmd_show_list): Use
8689 make_cleanup_ui_out_tuple_begin_end.
8690
8691 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8692
8693 * frame.c (frame_unwind_register): New function.
8694 (frame_unwind_unsigned_register): Use.
8695 (frame_unwind_signed_register): Use.
8696 (frame_read_register): New function.
8697 * frame.h (frame_unwind_register): Declare.
8698 (frame_read_register): Declare.
8699
8700 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
8701 and frame_unwind_register instead of read_memory, write_register
8702 and deprecated_write_register_bytes.
8703
8704 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8705
8706 * frame.h: Note that namelen can be negative.
8707 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
8708 NAME's length.
8709
8710 * NEWS: Mention that the d10v's `regs' command is deprecated.
8711 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
8712 (d10v_print_registers_info): New function.
8713 (show_regs): Call d10v_print_registers_info.
8714 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
8715
8716 2003-02-02 Mark Kettenis <kettenis@gnu.org>
8717
8718 * stack.c (print_frame_info): Restore call to annotate_frame_begin
8719 lost in the previous patch.
8720
8721 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8722
8723 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
8724 * stack.c (print_frame_info_base): Output complete FRAME tuple
8725 for synthesized frames.
8726
8727 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8728
8729 * mips-nat.c (zerobuf): Delete.
8730 (fetch_inferior_registers): Alloc local zerobuf.
8731 (fetch_core_registers): Alloc local zerobuf.
8732 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
8733 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
8734 * thread-db.c (thread_db_store_registers): Ditto.
8735 * sh-tdep.c (sh_do_register): Ditto.
8736 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
8737 * remote-sim.c (gdbsim_store_register): Ditto.
8738 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8739 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8740 * monitor.c (monitor_supply_register): Ditto.
8741 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
8742 * mips-nat.c (fetch_inferior_registers): Ditto.
8743 * m68klinux-nat.c (fetch_register): Ditto.
8744 * lynx-nat.c (fetch_inferior_registers): Ditto.
8745 (fetch_inferior_registers): Ditto.
8746 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
8747 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8748 (hpux_thread_store_registers): Ditto.
8749 * hppah-nat.c (fetch_register): Ditto.
8750 * hppab-nat.c (fetch_register): Ditto.
8751 * hppa-tdep.c (pa_register_look_aside): Ditto.
8752 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
8753 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
8754
8755 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8756
8757 * gdbarch.sh: Explictly specify all method levels. When a
8758 variable with an empty level, provide a non-multi-arch default.
8759 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
8760 * gdbarch.h: Re-generate.
8761 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
8762 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
8763
8764 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8765
8766 * defs.h (host_pointer_to_address): Delete declaration.
8767 (address_to_host_pointer): Delete declaration.
8768 * utils.c (host_pointer_to_address): Delete function.
8769 (address_to_host_pointer): Delete function.
8770 * procfs.c (procfs_address_to_host_pointer): New function.
8771 * procfs.c (proc_set_watchpoint): Use.
8772 (procfs_can_use_hw_breakpoint): Update comments.
8773 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
8774 (som_solib_add): Use.
8775 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
8776 * hppa-tdep.c (unwind_command): Use.
8777
8778 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8779
8780 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
8781 strlen d_name.
8782
8783 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
8784 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
8785 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
8786 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
8787 (define_symbol): Update.
8788 * symfile.c (generic_load): Remove references to nindy.
8789 * symtab.c: Remove references to nindy.
8790
8791 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8792
8793 * infcmd.c (print_float_info): Delete code conditional on
8794 FLOAT_INFO.
8795 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
8796 * config/m68k/nm-apollo68b.h: Ditto.
8797 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
8798 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
8799 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
8800
8801 2003-02-01 Mark Kettenis <kettenis@gnu.org>
8802
8803 * config/i386/tm-i386os9k.h: Removed.
8804
8805 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
8806 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
8807 they're identical to i[3456]86-*-sysv* now.
8808 * config/i386/i386v32.mh: Removed.
8809 * config/i386/xm-i386v32.h: Removed.
8810 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
8811
8812 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
8813
8814 * config/i386/i386dgux.mh: Removed.
8815 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
8816
8817 * configure.in: Fix typo.
8818 * configure: Regenerated.
8819
8820 2003-01-31 David Carlton <carlton@math.stanford.edu>
8821
8822 * dwarf2read.c (dwarf2_locate_sections): Set
8823 dwarf_ranges_section.
8824
8825 2003-01-31 Andrew Cagney <ac131313@redhat.com>
8826
8827 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
8828 * utils.c: Update comments documenting legitimate uses of PTR.
8829
8830 * utils.c: Re-indent.
8831
8832 * config/djgpp/fnchange.lst: Delete nindy files.
8833 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
8834 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
8835 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
8836 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
8837 * nindy-share/README, nindy-share/Onindy.c: Delete files.
8838 * nindy-tdep.c, nindy-share/Makefile: Delete files.
8839 * Makefile.in (init.c): Remove nindy references.
8840 (saber_gdb): Delete rule.
8841 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
8842 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
8843 and a68v-nat.c.
8844 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
8845 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
8846 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
8847 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
8848 nindy-share/stop.h.
8849 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
8850 * saber.suppress: Delete file.
8851
8852 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
8853
8854 * dbxread.c (stabs_data): New static variable.
8855 (fill_symbuf): Support an in-memory buffer for stabs data.
8856 (stabs_seek): New function.
8857 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
8858 (read_ofile_symtab): Use stabs_seek.
8859 (elfstab_build_psymtabs): Take an asection* instead of
8860 an offset and size. Relocate the stabs data if necessary.
8861 Save the section* for dbx_psymtab_to_symtab.
8862 * dwarf2read.c: Add section variables for each debug section.
8863 (dwarf2_locate_sections): Fill them in.
8864 (dwarf2_read_section): Take an asection* argument.
8865 Relocate the section contents if necessary.
8866 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
8867 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
8868 it to dwarf2_read_section.
8869 (dwarf2_build_frame_info): Update callers.
8870 * elfread.c (elf_symfile_read): Update call to
8871 elfstab_build_psymtabs.
8872 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
8873 (DBX_STAB_SECTION): New macro.
8874 * stabsread.h (elfstab_build_psymtabs): Update prototype.
8875 * symfile.c (symfile_dummy_outputs): New function.
8876 (symfile_relocate_debug_section): New function.
8877 * symfile.h (symfile_relocate_debug_section): Add prototype.
8878
8879 2003-01-31 Richard Henderson <rth@redhat.com>
8880
8881 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
8882 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
8883 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
8884 * alpha-tdep.c (alpha_register_name): Add "unique".
8885 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
8886 (ALPHA_UNIQUE_REGNUM): New.
8887 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
8888
8889 2003-01-31 Andrew Cagney <ac131313@redhat.com>
8890
8891 * README: Remove reference to Ericsson 1800 monitor.
8892 * Makefile.in (remote-es.o): Delete rule.
8893 (ALLDEPFILES): Delete remote-es.c.
8894 * remote-es.c: Delete file.
8895 * config/m68k/es1800.mt: Delete file.
8896 * config/djgpp/fnchange.lst: Update.
8897 * configure.tgt: Delete m68*-ericsson-* target.
8898
8899 2003-01-31 Adam Fedor <fedor@gnu.org>
8900
8901 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
8902 Remove duplicate/shadowing variable of same name.
8903
8904 2003-01-30 Jim Blandy <jimb@redhat.com>
8905
8906 * symfile.c (find_separate_debug_file): Assert that the objfile's
8907 directory name we compute ends with a slash, and then assume that
8908 that's so everywhere we use it.
8909
8910 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
8911
8912 * valops.c (value_assign): Flush frame cache after stores to memory
8913 also.
8914
8915 2003-01-30 Andrew Cagney <ac131313@redhat.com>
8916
8917 * Makefile.in (mon960-rom.o): Delete rule.
8918 * mon960-rom.c: Delete file.
8919
8920 2003-01-30 Andrew Cagney <ac131313@redhat.com>
8921
8922 * d10v-tdep.c: Include "frame-unwind.h".
8923 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
8924 list.
8925 (next_addr, uses_frame): Delete.
8926 (struct d10v_unwind_cache): Define.
8927 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
8928 Use info instead of next_addr and uses_frame globals.
8929 (d10v_frame_init_saved_regs): Delete function.
8930 (d10v_init_extra_frame_info): Delete function.
8931 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
8932 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
8933 init_frame_pc or frame_saved_pc.
8934 (d10v_pop_frame): Delete function.
8935 (do_d10v_pop_frame): Delete function.
8936 (d10v_frame_chain): Delete function.
8937 (d10v_frame_chain_valid): Delete function.
8938 (d10v_frame_pc_unwind): New function.
8939 (d10v_frame_id_unwind): New function.
8940 (saved_regs_unwinder): New function.
8941 (d10v_frame_register_unwind): New function.
8942 (d10v_frame_pop): New function.
8943 (d10v_frame_unwind): New variable.
8944 (d10v_frame_p): New function.
8945 (d10v_frame_saved_pc): Delete function.
8946 * Makefile.in (d10v-tdep.o): Update dependencies.
8947
8948 2003-01-30 J. Brobecker <brobecker@gnat.com>
8949
8950 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
8951 causing some regressions due to a change in the default value
8952 for this macro.
8953
8954 2003-01-29 Richard Henderson <rth@redhat.com>
8955 Elena Zannoni <ezannoni@redhat.com>
8956 Daniel Jacobowitz <drow@mvista.com>
8957
8958 Fix PR gdb/961.
8959 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
8960 variables.
8961 (RANGES_SECTION): New.
8962 (dwarf_ranges_buffer): New variable.
8963 (struct comp_unit_head): Add member "die".
8964 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
8965 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
8966 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
8967 (dwarf2_locate_sections): Likewise.
8968 (dwarf2_build_psymtabs): Read .debug_ranges.
8969 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
8970 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
8971 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
8972 Look for DW_AT_ranges and return the bounding box.
8973
8974 2003-01-29 Brian Ford <ford@vss.fsi.com>
8975
8976 * win32-nat.c (cygwin_pid): Removed as unused.
8977 (child_attach): Try fall back to Cygwin pid.
8978
8979 2003-01-29 Jim Blandy <jimb@redhat.com>
8980
8981 * objfiles.h (struct objfile): Doc fix.
8982
8983 2003-01-29 Andrew Cagney <ac131313@redhat.com>
8984
8985 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
8986 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
8987 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
8988 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
8989 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
8990 (FRAME_SAVED_PC): Change to a function with predicate.
8991 * gdbarch.h, gdbarch.c: Re-generate.
8992
8993 2003-01-28 Andrew Cagney <ac131313@redhat.com>
8994
8995 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
8996
8997 * complaints.c (complain): Delete function.
8998 * complaints.h (struct deprecated_complaint): Delete definition.
8999 (complain): Delete declaration.
9000
9001 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9002
9003 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9004 dummy frames.
9005
9006 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9007
9008 * sentinel-frame.h, sentinel-frame.c: New files.
9009 * Makefile.in (frame.o): Update dependencies.
9010 (SFILES): Add sentinel-frame.c.
9011 (sentinel_frame_h): Define.
9012 (COMMON_OBS): Add sentinel-frame.o.
9013 (sentinel-frame.o): Specify dependencies.
9014 * frame.c: Include "sentinel-frame.h".
9015 (frame_register_unwind): Rewrite assuming that there is always a a
9016 ->next frame.
9017 (frame_register, generic_unwind_get_saved_register): Ditto.
9018 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9019 (create_sentinel_frame, unwind_to_current_frame): New functions.
9020 (get_current_frame): Rewrite using create_sentinel_frame and
9021 unwind_to_current_frame. When possible, always create a frame.
9022 (create_new_frame): Set next to the sentinel frame.
9023 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9024 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9025 ID cache when necessary.
9026 (frame_saved_regs_id_unwind): Use frame_relative_level.
9027 (deprecated_generic_get_saved_register): Use frame_relative_level,
9028 get_frame_saved_regs, get_frame_pc, get_frame_base and
9029 get_next_frame.
9030 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9031 frame_register.
9032
9033 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9034
9035 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9036
9037 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9038
9039 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9040 (maintenance_set_profile_cmd): Use error () instead of warning ().
9041
9042 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9043
9044 * configure.in: Check that -pg works if using --enable-profiling.
9045 Check for monstartup and _mcleanup regardless of --enable-profiling.
9046 * maint.c: Check for monstartup and _mcleanup before using them.
9047 * config.in: Regenerated.
9048 * configure: Regenerated.
9049
9050 2003-01-24 Nick Clifton <nickc@redhat.com>
9051
9052 * Add sh2e support:
9053
9054 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9055
9056 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9057 (sh2e_show_regs): New.
9058 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9059 * config/sh/tm-sh.h: Added sh2e to comments.
9060
9061 2003-01-23 Jim Blandy <jimb@redhat.com>
9062
9063 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9064 symbols found)" message here; we haven't checked for a separate
9065 debug info file yet, so we don't know yet.
9066 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9067 we've looked everywhere. Also, there's no need to print a special
9068 message when we're loading the separate debug info file: the one
9069 symbol_file_add prints is fine.
9070
9071 2003-01-23 Alexander Larsson <alexl@redhat.com>
9072 Jim Blandy <jimb@redhat.com>
9073
9074 Add support for executables whose debug info has been separated
9075 out into a separate file, leaving only a link behind.
9076 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9077 and separate_debug_objfile_backlink.
9078 (put_objfile_before): New declaration.
9079 * symfile.c: #include "filenames.h".
9080 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9081 debug info in a separate file, read that, too. Save the addrs
9082 argument, so we can use it again to read the separated debug info;
9083 syms_from_objfile modifies the table we pass it.
9084 (reread_symbols): After re-reading an objfile, call
9085 reread_separate_symbols to refresh its separate debug info
9086 objfile, if it has one.
9087 (reread_separate_symbols, find_separate_debug_file,
9088 get_debug_link_info, separate_debug_file_exists): New functions.
9089 (debug_file_directory): New global var.
9090 (_initialize_symfile): Initialize debug_file_directory, and
9091 provide the new `set debug-file-directory' command to let the user
9092 change it.
9093 * objfiles.c (free_objfile): If this objfile has its debug info in
9094 a separate objfile, free that one too. If this is itself a
9095 separate debug info objfile, clear our parent's backlink.
9096 (put_objfile_before): New function.
9097 * utils.c (gnu_debuglink_crc32): New function.
9098 * defs.h (gnu_debuglink_crc32): New declaration.
9099 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9100 * configure.in: Handle --with-separate-debug-dir config option.
9101 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9102 * acconfig.h (DEBUGDIR): New macro.
9103 * configure, aclocal.m4, config.in: Regenerated.
9104
9105 2003-01-22 Jim Blandy <jimb@redhat.com>
9106
9107 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9108 like the old symbol_file_add, but taking new arguments: you can
9109 now pass in either a `struct section_addr_info' list to say where
9110 each section is loaded, or a `struct section_offsets' table. Pass
9111 these new arguments through to syms_from_objfile as appropriate.
9112 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9113 with the appropriate quiescent values for the new arguments.
9114
9115 * symfile.c: #include "gdb_assert.h".
9116 (syms_from_objfile): Add the ability to pass in a section offset
9117 table directly, as an alternative to the section_addr_info table.
9118 Document arguments better.
9119 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9120 * symfile.h (syms_from_objfile): Update declaration.
9121 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9122 syms_from_objfile.
9123 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9124
9125 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9126
9127 Original patch by Tom Tromey <tromey@cygnus.com> and
9128 Jason Molenda <jmolenda@apple.com>.
9129 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9130 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9131 * NEWS: Mention profiling.
9132 * configure.in (--enable-gdbtk): Fix typo.
9133 (--enable-profiling): New. Set PROFILE_CFLAGS.
9134 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9135 Fill in function.
9136 (profiling_state): New variable.
9137 (mcleanup_wrapper): New function.
9138 (_initialize_maint): Remove NOTYET, fix call to
9139 add_setshow_boolean_cmd for "maint set profile".
9140 * configure: Regenerated.
9141
9142 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9143
9144 * Makefile.in (install-gdbtk): Install PNG images too.
9145
9146 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9147
9148 * exec.c (text_start): Delete global variable.
9149 (exec_file_attach): Make text_start local to the function.
9150 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9151 * valops.c (hand_function_call): Delete code that handles
9152 BEFORE_TEXT_END and AFTER_TEXT_END.
9153 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9154 of CALL_DUMMY_LOCATION.
9155 * gdbarch.c: Regenerate.
9156 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9157 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9158 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9159 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9160 (text_end): Delete extern declaration.
9161
9162 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9163
9164 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9165 * blockframe.c (backtrace_below_main): Move to "frame.c".
9166 (frame_chain_valid): Delete check for backtrace_below_main.
9167 (_initialize_blockframe): Delete initialization, move ``set
9168 backtrace-below-main'' command to "frame.c".
9169 (do_flush_frames_sfunc): Delete function.
9170 * frame.c: Include "command.h" and "gdbcmd.h".
9171 (frame_type_from_pc): New function.
9172 (create_new_frame): Use frame_type_from_pc.
9173 (legacy_get_prev_frame): New function.
9174 (get_prev_frame): Rewrite. When an old style frame, call
9175 legacy_get_prev_frame. Otherwize, unwind the PC first.
9176 (_initialize_frame): Add ``set backtrace-below-main'' command.
9177 * Makefile.in (frame.o): Update dependencies.
9178
9179 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9180
9181 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9182 DEPRECATED_REGISTERS_INFO.
9183
9184 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9185
9186 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9187 Maintainers'. Update `Various Maintainers'.
9188
9189 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9190
9191 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9192 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9193 Suppress actual parameters when `-'.
9194 * gdbarch.h, gdbarch.c: Regenerate.
9195
9196 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9197
9198 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9199 code handling dummy frames.
9200
9201 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9202
9203 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9204 (struct frame_unwind): Add field pop.
9205 * frame.h (frame_pop): Declare.
9206 * frame.c (frame_saved_regs_pop): New function.
9207 (trad_frame_unwinder): Add frame_saved_regs_pop.
9208 (frame_pop): New function.
9209 * dummy-frame.c (dummy_frame_pop): New function.
9210 (discard_innermost_dummy): New function.
9211 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9212 (dummy_frame_unwind): Add dummy_frame_pop.
9213 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9214 * valops.c (hand_function_call): Ditto.
9215 * stack.c (return_command): Ditto.
9216
9217 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9218
9219 * cris-tdep.c: Fix function declaration indentation.
9220 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9221 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9222 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9223 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9224 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9225 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9226
9227 2003-01-18 Michael Chastain <mec@shout.net>
9228
9229 * README (Unpacking and Installation -- quick overview):
9230 Warn against ".../gdb-5.3/gdb/configure".
9231
9232 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9233
9234 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9235 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9236 (struct frame_unwind): Declare opaque.
9237 (dummy_frame_p): Declare function.
9238 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9239 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9240 * dummy-frame.c: Include "frame-unwind.h".
9241 (dummy_frame_p): New function.
9242 (dummy_frame_unwind): New variable.
9243 * frame.c: Include "frame-unwind.h".
9244 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9245 to use the new unwind field.
9246 (set_unwind_by_pc): Delete function.
9247 (create_new_frame, get_prev_frame): Set unwind field using
9248 frame_unwind_find_by_pc.
9249 (trad_frame_unwind, trad_frame_unwinder): New variables.
9250 * frame.h (trad_frame_unwind): Declare variable.
9251 (frame_id_unwind_ftype): Delete declaration.
9252 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9253 (struct frame_unwind): Declare opaque.
9254 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9255 register_unwind with a single unwind pointer.
9256 * frame-unwind.h, frame-unwind.c: New files.
9257 * Makefile.in (SFILES): Add frame-unwind.c.
9258 (frame_unwind_h): Define.
9259 (COMMON_OBS): Add frame-unwind.o.
9260 (frame-unwind.o): Specify dependencies.
9261 (frame.o, dummy-frame.o): Update dependencies.
9262
9263 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9264
9265 * ada-valprint.c: Eliminate PTR.
9266 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9267 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9268 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9269 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9270 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9271 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9272 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9273
9274 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9275
9276 * main.c (captured_main): Don't use PTR.
9277 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9278 * gdbtypes.c (lookup_primitive_typename): Ditto.
9279 (lookup_struct_elt_type): Ditto.
9280 * f-valprint.c (info_common_command): Ditto.
9281 (list_all_visible_commons): Ditto.
9282 * jv-typeprint.c (java_type_print_base): Ditto.
9283
9284 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9285 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9286 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9287 i386-interix-nat.c and i386-interix-tdep.c. Rename
9288 m68klinux-nat.c and m68klinux-tdep.c. Rename
9289 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9290 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9291 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9292 * main.c (captured_main): Use xfree, not free.
9293
9294 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9295
9296 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9297 ID back using a parameter.
9298 * frame.c (frame_id_unwind): Update call.
9299 (frame_saved_regs_id_unwind): Update.
9300 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9301 * dummy-frame.h (struct frame_id): Add opaque declaration.
9302 (dummy_frame_id_unwind): Update declaration.
9303
9304 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9305
9306 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9307
9308 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9309
9310 * MAINTAINERS (Stephen P. Smith): Updated email address.
9311
9312 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9313
9314 Fix PR gdb/898
9315 * breakpoint.c (until_break_command): Add new argument. Use it to
9316 decide whether to stop only at the current frame or not.
9317 * breakpoint.h (until_break_command): Update prototype.
9318 * infcmd.c (until_command): Add new argument to until_break_command
9319 call.
9320 (advance_command): New function.
9321 (_initialize_infcmd): Update help string for 'until' command.
9322 Add new 'advance' command.
9323
9324 2003-01-14 David Carlton <carlton@math.stanford.edu>
9325
9326 * linespec.c (decode_line_1): Normalize comments.
9327 (set_flags): Ditto.
9328 (locate_first_half): Ditto.
9329 (decode_compound): Ditto.
9330 (symtab_from_filename): Ditto.
9331 (decode_all_digits): Ditto.
9332 (decode_dollar): Ditto.
9333 (find_methods): Ditto.
9334 (find_toplevel_char): Ditto.
9335
9336 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9337
9338 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9339 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9340 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9341 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9342 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9343 * language.c, language.h, m32r-tdep.c: Update copyright.
9344 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9345 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9346 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9347 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9348 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9349 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9350
9351 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9352
9353 * stabsread.h (process_later, resolve_cfront_continuation):
9354 Obsolete.
9355 Update copyright years.
9356 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9357 Update copyright year.
9358 * dbxread.c(struct cont_elem): Obsolete.
9359 (process_later, process_now): Obsolete functions.
9360 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9361 Update copyright year.
9362 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9363 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9364 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9365 (parse_partial_symbols): Obsolete cfront support.
9366 * stabsread.c
9367 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9368 macros.
9369 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9370 read_cfront_baseclasses, read_cfront_member_functions,
9371 resolve_cfront_continuation,read_cfront_static_fields,
9372 copy_cfront_struct_fields): Obsolete functions.
9373 (define_symbol, read_one_struct_field): Obsolete cfront support.
9374 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9375 Update Copyright year.
9376
9377 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9378
9379 * stack.c (print_frame_info, print_stack_frame_base_stub,
9380 print_stack_frame_base, show_and_print_stack_frame_stub,
9381 show_and_print_stack_frame, print_only_stack_frame_stub,
9382 print_only_stack_frame): Delete functions.
9383 (print_stack_frame_stub): Call print_frame_info instead of
9384 print_frame_info_base.
9385 (print_frame_info_base): Rename to print_frame_info.
9386 (backtrace_command_1): Call print_frame_info, instead of
9387 print_frame_info_base.
9388 (current_frame_command): Call print_stack_frame, instead of
9389 print_only_stack_frame.
9390 (frame_command): Call print_stack_frame, instead of
9391 show_and_print_stack_frame.
9392 (up_command): Ditto.
9393 (down_command): Ditto.
9394 * frame.h (print_only_stack_frame): Delete prototype.
9395 * infrun.c (normal_stop): Call print_stack_frame, instead of
9396 show_and_print_stack_frame.
9397 * thread.c (info_threads_command): Call print_stack_frame, instead
9398 of print_only_stack_frame.
9399
9400 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9401
9402 * README (Graphical interface to GDB): Update URL. Point at
9403 gdb/links/.
9404
9405 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9406 version match.
9407
9408 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9409
9410 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9411 lines.
9412
9413 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9414
9415 * thread-db.c (attach_thread): Prototype.
9416 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9417 thread information (ti), and valid flags (th_valid, ti_valid).
9418 (attach_thread): Move target_pid_to_str call to after the thread
9419 is added to GDB's list. Initialize the cache.
9420 (thread_get_info_callback, thread_db_map_id2thr)
9421 (thread_db_get_info): New functions.
9422 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9423 (thread_db_store_registers, thread_db_thread_alive)
9424 (thread_db_get_thread_local_address): Use them.
9425 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9426 of calling error() for threads in unknown state.
9427
9428 (clear_lwpid_callback): New function.
9429 (thread_db_resume): Use it to clear the cache.
9430
9431 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9432
9433 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9434 (resume_callback): Remove dead code.
9435
9436 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9437
9438 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9439 predicate.
9440 * gdbarch.h, gdbarch.c: Regenerate.
9441 * stack.c (frame_info): Only initialize the saved registers when
9442 FRAME_INIT_SAVED_REGS_P.
9443 * frame.c (frame_saved_regs_register_unwind): Assert
9444 FRAME_INIT_SAVED_REGS_P.
9445 (deprecated_generic_get_saved_register): Ditto.
9446
9447 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9448
9449 * source.c (openp): Squelch warning about "filename".
9450
9451 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9452
9453 * source.c (openp): If the file does not exist don't necessarily
9454 search the path.
9455
9456 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9457
9458 Fix PR gdb/872.
9459 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9460 (integer_types_same_name_p): New function.
9461 (rank_one_type): Use it.
9462 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9463
9464 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9465
9466 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9467 variables.
9468 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9469 * configure.in: Add --with-sysroot.
9470 * configure: Regenerated.
9471 * main.c (gdb_sysroot): New variable.
9472 (captured_main): Initialize gdb_sysroot.
9473 * defs.h (gdb_sysroot): New extern declaration.
9474 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9475
9476 2003-01-12 Michael Chastain <mec@shout.net>
9477
9478 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9479
9480 2003-01-12 Michael Chastain <mec@shout.net>
9481
9482 * top.c (print_gdb_version): Bump copyright year to 2003.
9483
9484 2003-01-12 David Carlton <carlton@bactrian.org>
9485
9486 * linespec.c (symtab_from_filename): Rename variable 's' to
9487 'file_symtab'.
9488
9489 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9490
9491 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9492 dummy frame.
9493 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9494
9495 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9496
9497 * d10v-tdep.c: Include "gdb_assert.h".
9498 (d10v_store_return_value): Rewrite to match current interface.
9499 (d10v_extract_struct_value_address): Ditto.
9500 (d10v_extract_return_value): Ditto.
9501 (d10v_gdbarch_init): Set store_restore_value,
9502 extract_struct_value_address and extract_return_value.
9503
9504 2003-01-12 J. Brobecker <brobecker@gnat.com>
9505
9506 * hpread.c (set_namestring): New procedure replacing the
9507 SET_NAMESTRING macro.
9508 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9509 by calls to set_namestring.
9510
9511 2003-01-11 J. Brobecker <brobecker@gnat.com>
9512
9513 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9514 a compilation warning.
9515 (hpread_process_one_debug_symbol): Likewise.
9516
9517 2003-01-10 David Carlton <carlton@math.stanford.edu>
9518
9519 * linespec.c (decode_line_1): Rename variable 's' to
9520 'file_symtab'.
9521 (decode_all_digits): Rename argument 's' to 'file_symtab'.
9522 (decode_dollar): Ditto.
9523 (decode_variable): Ditto.
9524 (symbol_found): Ditto.
9525
9526 2003-01-09 Michael Chastain <mec@shout.net>
9527
9528 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9529
9530 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
9531
9532 * win32-nat.c (set_process_privilege): New function.
9533 (child_attach): Call set_process_privilege() to enable the
9534 SE_DEBUG_NAME user privilege if available in process token.
9535
9536 2003-01-10 J. Brobecker <brobecker@gnat.com>
9537
9538 * hpread.c (hpread_process_one_debug_symbol): Fix a small
9539 compilation error in the previous revision.
9540
9541 2003-01-09 David Carlton <carlton@math.stanford.edu>
9542
9543 * linespec.c: Update copyright.
9544
9545 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
9546
9547 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9548 than inferior_ptid.
9549 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9550
9551 2003-01-09 Andrew Cagney <ac131313@redhat.com>
9552
9553 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9554 Update comments.
9555 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9556 (frame_saved_regs_zalloc): Update.
9557 (frame_saved_regs_register_unwind): Update.
9558 (create_new_frame): Update.
9559 (get_prev_frame): Update.
9560 (frame_extra_info_zalloc): Update.
9561 (deprecated_get_frame_saved_regs): Update.
9562 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9563 * cris-tdep.c: Update comment.
9564
9565 * somsolib.h: Fix function indentation.
9566 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9567 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9568 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9569 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9570 * somsolib.c, inftarg.c: Remove assignment in if conditional.
9571
9572 * infrun.c (follow_fork): Use ISO C definition.
9573 * expprint.c (print_subexp): Use xfree instead of free.
9574 * charset.c: Include "gdb_string.h" instead of <string.h>.
9575 (register_iconv_charsets): Use ISO C definition.
9576 (host_charset, target_charset): Ditto.
9577 * Makefile.in (charset.o): Update dependencies.
9578 (mi-cmd-env.o): Update dependencies.
9579
9580 2003-01-08 Andrew Cagney <cagney@redhat.com>
9581
9582 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9583 get_frame_base.
9584
9585 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9586
9587 * gdb_mbuild.sh: Add --keep option. When specified, keep the
9588 build directories. Save edited gdb output in Mbuild.log. If a
9589 build fails, remove any final GDB executable.
9590
9591 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9592
9593 * gdb_mbuild.sh: Edit the output of `maint print architecture'
9594 replacing hex constants with function names and stripping leading
9595 file name directory prefixes.
9596
9597 2003-01-08 Andrew Cagney <cagney@redhat.com>
9598
9599 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
9600 get_frame_base.
9601
9602 2003-01-08 David Carlton <carlton@math.stanford.edu>
9603
9604 * linespec.c (decode_line_1): Move code into decode_variable.
9605 (decode_variable): New function.
9606
9607 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9608
9609 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
9610
9611 2003-01-08 Andrew Cagney <cagney@redhat.com>
9612
9613 * cris-tdep.c (cris_frame_init_saved_regs): Use
9614 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
9615 saved_regs buffer.
9616 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9617 (sh64_nofp_frame_init_saved_regs): Ditto.
9618 (sh_fp_frame_init_saved_regs): Ditto.
9619 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
9620 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9621 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9622 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9623
9624 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
9625
9626 * minsyms.c (lookup_minimal_symbol): Update comment.
9627 (lookup_minimal_symbol_text): Update comment. Use the hash table.
9628 (lookup_minimal_symbol_solib_trampoline): Likewise.
9629
9630 2003-01-08 Andrew Cagney <cagney@redhat.com>
9631
9632 * d10v-tdep.c (d10v_init_extra_frame_info): Use
9633 frame_relative_level.
9634
9635 * alpha-tdep.c: Use get_frame_extra_info.
9636 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9637 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
9638 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9639 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
9640
9641 * alpha-tdep.c: Use get_next_frame.
9642 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9643 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9644 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
9645 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
9646 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
9647 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
9648 * xstormy16-tdep.c: Ditto.
9649
9650 2003-01-07 Andrew Cagney <cagney@redhat.com>
9651
9652 * alpha-tdep.c: Use get_frame_base.
9653 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9654 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9655 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9656 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9657 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
9658 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9659 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
9660 * config/sparc/tm-sparc.h: Ditto.
9661
9662 2003-01-07 Andrew Cagney <cagney@redhat.com>
9663
9664 * frame.c (deprecated_get_frame_context): New function.
9665 (deprecated_set_frame_context): New function.
9666 * frame.h (deprecated_get_frame_context): Declare.
9667 (deprecated_set_frame_context): Declare.
9668 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
9669 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
9670
9671 2003-01-07 Andrew Cagney <cagney@redhat.com>
9672
9673 * frame.c (deprecated_set_frame_next_hack): New function.
9674 (deprecated_set_frame_prev_hack): New function.
9675 * frame.h (deprecated_set_frame_next_hack): Declare.
9676 (deprecated_set_frame_prev_hack): Declare.
9677 * mcore-tdep.c (analyze_dummy_frame): Use
9678 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
9679 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9680
9681 2003-01-07 David Carlton <carlton@math.stanford.edu>
9682
9683 * linespec.c (decode_line_1): Move code into decode_dollar.
9684 (decode_dollar): New function.
9685
9686 2003-01-07 Andrew Cagney <cagney@redhat.com>
9687
9688 * arm-tdep.c (arm_init_extra_frame_info): Use
9689 deprecated_update_frame_base_hack.
9690 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
9691 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9692 (fix_frame_pointer): Ditto.
9693 (mn10300_analyze_prologue): Ditto.
9694
9695 2003-01-07 Andrew Cagney <cagney@redhat.com>
9696
9697 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
9698 extra_info using frame_extra_info_zalloc.
9699 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9700 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
9701 (sh64_init_extra_frame_info): Ditto.
9702 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
9703 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
9704 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9705 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
9706 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
9707 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
9708 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
9709 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
9710 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
9711 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
9712 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9713 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
9714
9715 * mn10300-tdep.c (analyze_dummy_frame): Use
9716 deprecated_set_frame_extra_info_hack.
9717 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9718
9719 2003-01-07 J. Brobecker <brobecker@gnat.com>
9720
9721 * mdebugread.c (parse_symbol): Skip stProc entries which storage
9722 class is not scText. These do not define "real" procedures.
9723 (parse_partial_symbols): Likewise.
9724
9725 2003-01-06 Michael Snyder <msnyder@redhat.com>
9726
9727 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
9728
9729 2003-01-06 Andrew Cagney <ac131313@redhat.com>
9730
9731 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
9732 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
9733 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
9734 deprecated_frame_xmalloc_with_cleanup.
9735 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
9736 deprecated_frame_xmalloc.
9737 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
9738 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
9739
9740 2003-01-06 Andrew Cagney <cagney@redhat.com>
9741
9742 * x86-64-linux-tdep.c: Include "osabi.h".
9743 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
9744
9745 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
9746
9747 2003-01-06 Andrew Cagney <cagney@redhat.com>
9748
9749 * MAINTAINERS (Target Instruction Set Architectures): Update
9750 arm-elf. Can be built with -Werror, has been multiarched.
9751
9752 * value.h (unpack_long): Make buffer parameter constant.
9753 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
9754 * scm-lang.h (scm_parse): Ditto.
9755 * defs.h (extract_typed_address, extract_address): Ditto.
9756 (extract_long_unsigned_integer): Ditto.
9757 * inferior.h (unsigned_pointer_to_address): Ditto.
9758 (signed_pointer_to_address): Ditto.
9759 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
9760 * gdbarch.h, gdbarch.c: Regenerate.
9761 * findvar.c (extract_long_unsigned_integer): Update.
9762 (extract_address): Update.
9763 (extract_typed_address): Update.
9764 (unsigned_pointer_to_address): Update.
9765 * values.c (unpack_long): Update.
9766 (unpack_double): Update.
9767 (unpack_pointer): Update.
9768 (unpack_field_as_long): Update.
9769 * d10v-tdep.c (d10v_pointer_to_address): Update.
9770 * avr-tdep.c (avr_pointer_to_address): Update.
9771 * scm-lang.c (scm_unpack): Update.
9772 * findvar.c (signed_pointer_to_address): Update.
9773
9774 2003-01-06 Michal Ludvig <mludvig@suse.cz>
9775
9776 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
9777 since it is in i386-tdep.c.
9778
9779 2003-01-06 J. Brobecker <brobecker@gnat.com>
9780
9781 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
9782 failure introduced in the previous change.
9783
9784 2003-01-05 Michael Chastain <mec@shout.net>
9785
9786 * README: Remove references to deleted remote-*.c files:
9787 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
9788 remote-nrom.c, remote-os9k.c, remote-udi.c.
9789
9790 2003-01-05 Mark Kettenis <kettenis@gnu.org>
9791
9792 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
9793 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
9794 i386_get_longjmp_target.
9795
9796 2003-01-05 Andrew Cagney <ac131313@redhat.com>
9797
9798 * arm-tdep.c (prologue_cache): Change to a pointer.
9799 (_initialize_arm_tdep): Allocate prologue_cache.
9800 (check_prologue_cache): Update.
9801 (save_prologue_cache): Update.
9802 (arm_gdbarch_init): Update.
9803
9804 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9805
9806 * stabsread.c (update_method_name_from_physname): Call complaint()
9807 instead of error.
9808
9809 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9810
9811 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
9812 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
9813 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
9814
9815 * blockframe.c: Include "gdbcmd.h" and "command.h".
9816 (backtrace_below_main): New variable.
9817 (file_frame_chain_valid, func_frame_chain_valid)
9818 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
9819 (generic_func_frame_chain_valid): Remove functions.
9820 (frame_chain_valid, do_flush_frames_sfunc): New functions.
9821 (_initialize_blockframe): New function.
9822 * Makefile.in (blockframe.o): Update dependencies.
9823 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
9824 comment. Call frame_chain_valid ().
9825 * frame.h: Remove old prototypes. Add prototype for
9826 frame_chain_valid and update comments to match.
9827 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
9828 Remove old comment.
9829 * gdbarch.h: Regenerated.
9830 * gdbarch.c: Regenerated.
9831
9832 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9833 set_gdbarch_frame_chain_valid.
9834 * avr-tdep.c (avr_gdbarch_init): Likewise.
9835 * cris-tdep.c (cris_gdbarch_init): Likewise.
9836 * frv-tdep.c (frv_gdbarch_init): Likewise.
9837 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
9838 * i386-tdep.c (i386_svr4_init_abi): Likewise.
9839 (i386_nw_init_abi): Likewise.
9840 (i386_gdbarch_init): Likewise.
9841 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
9842 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9843 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9844 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
9845 * mips-tdep.c (mips_gdbarch_init): Likewise.
9846 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9847 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
9848 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9849 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9850 * s390-tdep.c (s390_gdbarch_init): Likewise.
9851 * sh-tdep.c (sh_gdbarch_init): Likewise.
9852 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9853 * v850-tdep.c (v850_gdbarch_init): Likewise.
9854 * vax-tdep.c (vax_gdbarch_init): Likewise.
9855 * x86-64-tdep.c (x86_64_init_abi): Likewise.
9856
9857 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
9858 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
9859 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
9860 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
9861 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
9862 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
9863 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
9864 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
9865
9866 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9867
9868 * Makefile.in (acconfig_h): Remove incorrect macro.
9869 (config_h): Define.
9870 (osabi.o): Update dependencies.
9871 * configure.tgt: Set gdb_osabi based on target triplet.
9872 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
9873 * configure: Regenerated.
9874 * config.in: Regenerated.
9875 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
9876 (GDB_OSABI_DEFAULT): Define if not already defined.
9877 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
9878 (set_osabi_string): New variables.
9879 (gdbarch_register_osabi): Add new OS ABI to
9880 gdb_osabi_available_names.
9881 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
9882 (set_osabi, show_osabi): New functions.
9883 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
9884
9885 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9886
9887 * arch-utils.c (gdbarch_info_init): Set osabi to
9888 GDB_OSABI_UNINITIALIZED.
9889 * gdbarch.sh: Add osabi to struct gdbarch and to struct
9890 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
9891 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
9892 * gdbarch.c: Regenerated.
9893 * gdbarch.h: Regenerated.
9894 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
9895 there's no BFD.
9896 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
9897 * osabi.h (enum gdb_osabi): Move to defs.h.
9898 (gdbarch_init_osabi): Update prototype.
9899 * defs.h (enum gdb_osabi): Moved here.
9900 * Makefile.in: Update dependencies.
9901
9902 * alpha-tdep.h: Don't include "osabi.h".
9903 (struct gdbarch_tdep): Remove osabi member.
9904 * alpha-tdep.c: Include "osabi.h".
9905 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9906 iterate over arches. Update call to gdbarch_init_osabi.
9907 (alpha_dump_tdep): Don't dump osabi.
9908 * alpha-linux-tdep.c: Include "osabi.h".
9909 * alpha-osf1-tdep.c: Include "osabi.h".
9910 * alphafbsd-tdep.c: Include "osabi.h".
9911 * alphanbsd-tdep.c: Include "osabi.h".
9912
9913 * arm-tdep.h: Don't include "osabi.h".
9914 (struct gdbarch_tdep): Remove osabi member.
9915 * arm-tdep.c: Include "osabi.h".
9916 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9917 iterate over arches. Update call to gdbarch_init_osabi.
9918 (arm_dump_tdep): Don't dump osabi.
9919 * arm-linux-tdep.c: Include "osabi.h".
9920 * armnbsd-tdep.c: Include "osabi.h".
9921
9922 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
9923 Update call to gdbarch_init_osabi.
9924
9925 * i386-tdep.h: Don't include "osabi.h".
9926 (struct gdbarch_tdep): Remove osabi member.
9927 * i386-tdep.c: Include "osabi.h".
9928 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9929 iterate over arches. Update call to gdbarch_init_osabi.
9930 (i386_dump_tdep): Don't dump osabi.
9931 * i386-linux-tdep.c: Include "osabi.h".
9932 * i386-sol2-tdep.c: Include "osabi.h".
9933 * i386bsd-tdep.c: Include "osabi.h".
9934 * i386gnu-tdep.c: Include "osabi.h".
9935 * i386ly-tdep.c: Include "osabi.h".
9936 * i386nbsd-tdep.c: Include "osabi.h".
9937 * i386obsd-tdep.c: Include "osabi.h".
9938
9939 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
9940 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9941 check osabi when iterating over arches. Update call to
9942 gdbarch_init_osabi.
9943 (mips_dump_tdep): Don't dump osabi.
9944
9945 * ns32k-tdep.h: Don't include "osabi.h".
9946 (struct gdbarch_tdep): Remove.
9947 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
9948 gdbarch_lookup_osabi. Don't iterate over arches. Don't
9949 allocate tdep. Update call to gdbarch_init_osabi.
9950 (ns32k_dump_tdep): Remove.
9951 (_initialize_ns32k_tdep): Update call to gdbarch_register.
9952 * ns32knbsd-tdep.c: Include "osabi.h".
9953
9954 * ppc-tdep.h: Don't include "osabi.h".
9955 (struct gdbarch_tdep): Remove osabi member.
9956 * rs6000-tdep.c: Include "osabi.h".
9957 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
9958 osabi when iterating over arches. Update call to
9959 gdbarch_init_osabi.
9960 (rs6000_dump_tdep): Don't dump osabi.
9961 * ppc-linux-tdep.c: Include "osabi.h".
9962 * ppcnbsd-tdep.c: Include "osabi.h".
9963
9964 * sh-tdep.h: Don't include "osabi.h".
9965 (struct gdbarch_tdep): Remove osabi member.
9966 * sh-tdep.c: Include "osabi.h".
9967 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9968 iterate over arches. Update call to gdbarch_init_osabi.
9969 (sh_dump_tdep): Don't dump osabi.
9970 * shnbsd-tdep.c: Include "osabi.h".
9971
9972 * sparc-tdep.c: Include "osabi.h".
9973 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9974 iterate over arches. Update call to gdbarch_init_osabi.
9975 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
9976 tdep structure.
9977
9978 * vax-tdep.h: Don't include "osabi.h".
9979 (struct gdbarch_tdep): Remove.
9980 * vax-tdep.c: Include "osabi.h".
9981 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9982 iterate over arches. Don't allocate tdep. Update call
9983 to gdbarch_init_osabi.
9984 (vax_dump_tdep): Remove.
9985 (_initialize_vax_tdep): Update call to gdbarch_register.
9986
9987 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9988
9989 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
9990 entirely.
9991 (breakpoint_re_set_one): Don't fetch the value for a disabled
9992 watchpoint.
9993
9994 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9995
9996 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
9997 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
9998 (COERCE_FLOAT_TO_DOUBLE): Remove.
9999 * gdbarch.c: Regenerate.
10000 * gdbarch.h: Regenerate.
10001 * Makefile.in: Remove value_h from gdbarch_h.
10002 * valops.c (coerce_float_to_double): New variable.
10003 (default_coerce_float_to_double): Remove.
10004 (standard_coerce_float_to_double): Remove.
10005 (value_arg_coerce): Use coerce_float_to_double.
10006 (_initialize_valops): Add "set coerce-float-to-double".
10007 * value.h (default_coerce_float_to_double): Remove prototype.
10008 (standard_coerce_float_to_double): Remove prototype.
10009
10010 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10011 prototyped.
10012 * mdebugread.c (parse_symbol): Likewise.
10013 * stabsread.c (define_symbol): Mark all functions as prototyped.
10014
10015 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10016 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10017 set_gdbarch_coerce_float_to_double.
10018 * arm-tdep.c (arm_gdbarch_init): Likewise.
10019 * frv-tdep.c (frv_gdbarch_init): Likewise.
10020 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10021 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10022 * mips-tdep.c (mips_gdbarch_init): Likewise.
10023 (mips_coerce_float_to_double): Remove.
10024 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10025 (rs6000_coerce_float_to_double): Remove.
10026 * s390-tdep.c (s390_gdbarch_init): Likewise.
10027 * sh-tdep.c (sh_gdbarch_init): Likewise.
10028 (sh_coerce_float_to_double): Remove.
10029 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10030 (sparc_coerce_float_to_double): Remove.
10031 * v850-tdep.c (v850_gdbarch_init): Likewise.
10032 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10033 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10034 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10035 (hppa_coerce_float_to_double): Remove prototype.
10036 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10037
10038 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10039
10040 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10041
10042 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10043
10044 Suggested by Stewart Brown <sb24@avaya.com>:
10045 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10046 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10047 (c_type_print_varspec_suffix): Likewise.
10048
10049 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10050
10051 * configure.in: Don't set and AC_SUBST SUBDIRS.
10052 * configure: Regenerated.
10053
10054 * configure.in: Remove code dealing with shared libraries.
10055 * Makefile.in: Remove HLDFLAGS and HLDENV.
10056 * configure: Regenerated.
10057
10058 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10059
10060 * frame.c (deprecated_frame_xmalloc): New function.
10061 (deprecated_set_frame_saved_regs_hack): New function.
10062 (deprecated_set_frame_extra_info_hack): New function.
10063 * frame.h (deprecated_frame_xmalloc): Declare.
10064 (deprecated_set_frame_saved_regs_hack): Declare.
10065 (deprecated_set_frame_extra_info_hack): Declare.
10066
10067 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10068
10069 * configure.in: Move code that provides the --enable-gdbtk option
10070 right after the code that handles the --enable-tui option, and
10071 polish it somewhat.
10072 * configure: Regenerated.
10073
10074 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10075 AC_CHECK_FUNCS and remove the old check for pread64.
10076 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10077 * acconfig.h (_GNU_SOURCE): Add.
10078 (HAVE_PREAD64): Remove.
10079 * configure, aclocal.m4, config.in: Regenerated.
10080
10081 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10082
10083 * alpha-tdep.c: Use get_frame_saved_regs.
10084 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10085 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10086 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10087 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10088 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10089
10090 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10091
10092 * configure.in: Remove all use of the SUBDIRS variable; add
10093 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10094 code providing the --enable-multi-ice option, and move it right in
10095 front of the code that checks whether gdbserver is supported.
10096 Polish that too.
10097 * configure: Regenerated.
10098 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10099 @SUBDIRS@.
10100
10101 2003-01-03 Andrew Cagney <cagney@redhat.com>
10102
10103 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10104 * avr-tdep.c, cris-tdep.c: Ditto.
10105 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10106 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10107
10108 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10109
10110 * configure.in: Remove --enable-netrom option.
10111 * configure: Regenerated.
10112
10113 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10114
10115 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10116 declaration for `struct re_pattern_buffer' instead.
10117 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10118
10119 2003-01-03 J. Brobecker <brobecker@gnat.com>
10120
10121 * mdebugread.c (parse_symbol): Count until the stEnd matching
10122 the structure name.
10123
10124 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10125
10126 * configure.in: Remove --with-cpu option.
10127 subscripts. Remove evil changequotes here.
10128 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10129 * config.in, configure: Regenerated.
10130
10131 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10132 * configure.in: Cleanup section that sources GDB and BFD configure
10133 subscripts. Remove evil changequotes here.
10134 * config.in, configure: Regenerated.
10135
10136 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10137
10138 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10139 frame accessor methods.
10140 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10141 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10142 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10143 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10144 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10145 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10146 * z8k-tdep.c: Ditto.
10147
10148 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10149
10150 * configure.in: Remove UI_OUT configuration code.
10151 * ada-lang.c: Update assuming UI_OUT is always true.
10152 * Makefile.in (UIOUT_CFLAGS): Remove.
10153 * configure: Regenerated.
10154 * TODO: Remove blurb about elimination of -DUI_OUT.
10155
10156 * configure.in: Move code that provides the --enable-gdbcli,
10157 --enable-gdbmi options right before the code that handles the
10158 --enable-tui option. Polish a bit.
10159 * configure: Regenerated.
10160
10161 * configure.in: Rewrite check for GNU regex and the
10162 --without-included regex option, and move it into the "Checks for
10163 library functions" section. This makes us use the system regex
10164 again by default on systems with version 2 of the GNU C library.
10165 This was apparently broken.
10166 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10167 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10168 * config.in, configure: Regenerated.
10169
10170 * configure.in: Move code that provides the --enable-tui option
10171 before the "Checks for libraries" section. Polish the code
10172 somewhat and set need_curses to yes if we build the TUI. Rewrite
10173 code that looks for a library providing termcap functionality to
10174 match more closely what's done in the Readline library, and move
10175 it into to the "Checks for libraries" section.
10176 * configure: Regenerated.
10177 * Makefile.in (TERMCAP): Remove variable.
10178 * config/i386/go32.mh (TERMCAP): Remove variable.
10179
10180 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10181
10182 * MAINTAINERS: Mention gdb_mbuild.sh.
10183 * gdb_mbuild.sh: Rewrite.
10184
10185 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10186
10187 * configure.in: Fix typo in last change.
10188 * config.in, configure: Regenerated.
10189
10190 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10191
10192 * valarith.c (value_binop): Delete obsolete code and comments.
10193 * configure.host: Ditto.
10194 * buildsym.h (make_blockvector): Ditto.
10195 * buildsym.c (make_blockvector): Ditto.
10196 * defs.h (enum language): Ditto.
10197 (chill_demangle): Ditto.
10198 * elfread.c (elf_symtab_read): Ditto.
10199 * dwarfread.c (CHILL_PRODUCER): Ditto.
10200 (set_cu_language): Ditto.
10201 (handle_producer): Ditto.
10202 * expprint.c (print_subexp): Ditto.
10203 * gdbtypes.c (chill_varying_type): Ditto.
10204 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10205 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10206 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10207 (chill_varying_type): Ditto.
10208 * language.h (_LANG_chill): Ditto.
10209 * language.c (binop_result_type, integral_type): Ditto.
10210 (character_type, string_type, structured_type): Ditto.
10211 (lang_bool_type, binop_type_check): Ditto.
10212 * stabsread.h (os9k_stabs): Ditto.
10213 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10214 (define_symbol, read_type, read_struct_fields): Ditto.
10215 (read_array_type, read_enum_type, read_huge_number): Ditto.
10216 (read_range_type, start_stabs): Ditto.
10217 * symfile.c (init_filename_language_table): Ditto.
10218 (add_psymbol_with_dem_name_to_list): Ditto.
10219 * symtab.c (symbol_init_language_specific): Ditto.
10220 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10221 * symtab.h (struct general_symbol_info): Ditto.
10222 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10223 * typeprint.c (typedef_print): Ditto.
10224 * utils.c (fprintf_symbol_filtered): Ditto.
10225 * valops.c (value_cast, search_struct_field, value_slice): Delete
10226 obsolete code.
10227 (varying_to_slice): Delete function.
10228 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10229 (varying_to_slice): Delete declaration.
10230 * MAINTAINERS: Update.
10231
10232 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10233
10234 * configure.in: Reorganize "Checks for library functions section"
10235 a bit. Remove check for `btowc' and `isascii' functions.
10236 * configure: Regenerated.
10237
10238 * acconfig.h (_MSE_INT_H): Remove.
10239 * configure.in: Create "Checks for header files" section, and move
10240 appropriate tests there. Don't check for objlist.h, wchar.h,
10241 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10242 misdetection fix. Also add "Checks for types", "Checks for
10243 compiler characteristics" and "Checks for library functions"
10244 sections.
10245 * config.in, configure: Regenerated.
10246
10247 * configure.in: Create "Checks for programs" section, and move
10248 appropriate tests there.
10249
10250 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10251
10252 * configure.in: Create "Checks for libraries" section, and move
10253 appropriate tests there. Cleanup check for wctype in libw. Use
10254 AC_SEARCH_LIBS to see whether we need libsocket.
10255 * configure: Regenerated.
10256
10257 For older changes see ChangeLog-2002
10258 \f
10259 Local Variables:
10260 mode: change-log
10261 left-margin: 8
10262 fill-column: 74
10263 version-control: never
10264 End: