83ae7c429cdc98d0c40ba8eb35cd289a16ede942
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-08-04 Andrew Cagney <cagney@redhat.com>
2
3 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4 * cli/cli-script.c (define_command): Call query directly, instead
5 of passing it a buffer.
6 * ocd.c (ocd_error): Pass error a constant format string.
7 * remote-mips.c (mips_error): Use fputs_filtered.
8
9 * solib-svr4.c (_initialize_svr4_solib): Update
10 register_gdbarch_data call.
11 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
12
13 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
14 (register_gdbarch_data): Delete "free" parameter. Update
15 comments.
16 * gdbarch.h, gdbarch.c: Re-generate.
17 * reggroups.c (_initialize_reggroup): Update.
18 * gnu-v3-abi.c (init_gnuv3_ops): Update.
19 * frame-base.c (_initialize_frame_base): Update.
20 * frame-unwind.c (_initialize_frame_unwind): Update.
21 * user-regs.c (_initialize_user_regs): Update.
22 * remote.c (_initialize_remote): Update.
23 * regcache.c (_initialize_regcache): Update.
24
25 * regcache.c (xfree_regcache_descr): Delete function.
26 (_initialize_regcache): Update call to register_gdbarch_data.
27 (init_regcache_descr, init_legacy_regcache_descr): Use
28 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
29
30 * remote.c (free_remote_state): Delete function.
31 (_initialize_remote): Update register_gdbarch_data.
32 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
33 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
34
35 2003-08-04 Andrew Cagney <cagney@redhat.com>
36
37 * reggroups.c (struct reggroup_el): Define.
38 (struct reggroups): Delete field "nr_group". Replace array
39 "group" with a "first" to "last" linked list.
40 (reggroups_init): Update. Allocate using gdbarch's obstack.
41 (reggroups_free): Delete function.
42 (add_group): Update. Add "el" parameter.
43 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
44 (default_groups): Update.
45 (reggroup_next): Replace reggroups.
46 (reggroups_dump): Update.
47 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
48 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
49 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
50
51 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
52
53 * Makefile.in (tui-interp.o): Update dependencies.
54
55 2003-08-04 David Carlton <carlton@kealia.com>
56
57 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
58 to internal_error call.
59 * source.c (forward_search_command): Add "%s" format argument.
60 (reverse_search_command): Ditto.
61 * top.c (quit_confirm): Ditto.
62 * cli/cli-setshow.c (do_setshow_command): Ditto.
63 * cp-valprint.c (cp_print_class_method): Replace
64 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
65 (cp_print_class_member): Ditto.
66 * event-top.c (command_line_handler): Ditto.
67 * linux-proc.c (linux_info_proc_cmd): Ditto.
68 * p-typeprint.c (pascal_type_print_base): Ditto.
69 * p-valprint.c (pascal_object_print_class_method): Ditto.
70 (pascal_object_print_class_member): Ditto.
71 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
72 * remote.c (remote_cisco_section_offsets): Ditto.
73 * top.c (command_line_input): Ditto.
74 * utils.c (vwarning,error_stream,quit): Ditto.
75 * valprint.c (print_floating,print_binary_chars)
76 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
77
78 2003-08-04 Andrew Cagney <cagney@redhat.com>
79
80 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
81
82 2003-08-02 Andrew Cagney <cagney@redhat.com>
83
84 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
85 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
86 amd64fbsd-nat.c.
87
88 2003-08-02 Andrew Cagney <cagney@redhat.com>
89
90 * Makefile.in: Update all dependencies and definitions.
91
92 2003-08-02 Adam Fedor <fedor@gnu.org>
93
94 * linespec.c (is_objc_method_format): New function
95 (decode_line_1, locate_first_half): Use it.
96 Fixes PR objc/1298
97
98 2003-08-01 Andrew Cagney <cagney@redhat.com>
99
100 * NEWS: Mention that m32r is multi-arch.
101 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
102 * configure.tgt: Recognize m32r-*-*.
103 * config/m32r/tm-m32r.h: Delete file.
104 * config/m32r/m32r.mt: New file.
105 * m32r-rom.c (m32r_upload_command): Use hostent only when
106 gethostname succeeds, in order to avoid a compilation
107 warning.
108 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
109 compiler warning.
110
111 2003-08-01 Michael Snyder <msnyder@redhat.com>
112
113 * sh-tdep.c (sh_frame_align): New gdbarch method.
114 (sh_gdbarch_init): Set up frame_align method.
115
116 2003-07-31 Michael Snyder <msnyder@redhat.com>
117
118 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
119 which is already covered by the new frames infrastructure.
120
121 2003-07-31 Andrew Cagney <cagney@redhat.com>
122
123 * user-regs.c (struct user_reg): Add "next" link.
124 (struct user_regs): Replace "user" with "first" and "last" links.
125 (append_user_reg): Add pre-allocated "reg" parameter.
126 (builtin_user_regs): Provide initial value for "last".
127 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
128 (user_regs_init): Allocate memory from the gdbarch obstack.
129 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
130 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
131 linked list.
132 (usernum_to_user_reg): New function.
133 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
134 (value_of_user_reg): Use usernum_to_user_reg.
135 (user_regs_free): Delete function.
136 (_initialize_user_regs): Update register_gdbarch_data call.
137
138 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
139
140 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
141
142 2003-07-30 Michael Snyder <msnyder@redhat.com>
143
144 * value.h (value_being_returned): Add a struct_addr argument.
145 * infcall.c (call_function_by_hand): Pass struct_addr to
146 value_being_returned.
147 * infcmd.c (print_return_value): Pass zero as struct_addr.
148 * values.c (value_being_returned): If struct_addr is passed,
149 use it instead of trying to recover it from the inferior.
150
151 2003-07-30 Kevin Buettner <kevinb@redhat.com>
152
153 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
154 the prologue analyzer won't need to attempt to extract the pc
155 value from the woefully incomplete dummy frame.
156 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
157 possible. Disable code which modifies the frame.
158
159 2003-07-28 Andrew Cagney <cagney@redhat.com>
160
161 * annotate.c (annotate_breakpoints_headers): Restrict annotation
162 to level 2.
163 (annotate_breakpoints_table, annotate_record): Ditto.
164 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
165 (annotate_field_name_end, annotate_field_value): Ditto.
166 (annotate_field_end, annotate_frame_source_begin): Ditto.
167 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
168 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
169 (annotate_frame_begin, annotate_frame_function_name): Ditto.
170 (annotate_frame_address_end, annotate_frame_address): Ditto.
171 (annotate_frame_args, annotate_frame_end): Ditto.
172 (annotate_frame_where, annotate_arg_begin): Ditto.
173 (annotate_arg_name_end, annotate_arg_value): Ditto.
174 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
175 (annotate_function_call, annotate_signal_name): Ditto.
176 (annotate_signal_string, annotate_signal_name_end): Ditto.
177 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
178 (annotate_value_begin, annotate_value_history_value): Ditto.
179 (annotate_value_history_end, annotate_value_end): Ditto.
180 (annotate_display_begin, annotate_display_number_end): Ditto.
181 (annotate_display_format, annotate_display_expression): Ditto.
182 (annotate_display_expression_end, annotate_display_value): Ditto.
183 (annotate_display_end, annotate_array_section_begin): Ditto.
184 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
185 (annotate_elt, annotate_array_section_end): Ditto.
186
187 2003-07-28 Andrew Cagney <cagney@redhat.com>
188
189 * regcache.c (struct regcache_descr): Update comments on
190 nr_raw_registers.
191 (init_legacy_regcache_descr): Don't set nr_raw_registers or
192 sizeof_raw_register_valid_p.
193 (init_regcache_descr): Set nr_raw_registers and
194 sizeof_raw_register_valid_p before calling
195 init_legacy_regcache_descr.
196
197 2003-07-28 Andrew Cagney <cagney@redhat.com>
198
199 * mips-tdep.c (print_gp_register_row): Print the GPR's register
200 MOD NUM_REGS.
201
202 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
203
204 * thread.c (info_threads_command): Use get_selected_frame ().
205 Check that there is at least one non-sentinel frame.
206
207 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
208
209 * m68hc11-tdep.c (struct frame_extra_info): Remove.
210 (m68hc11_pop_frame): Remove.
211 (m68hc11_frame_saved_pc): Remove.
212 (m68hc11_frame_chain): Remove.
213 (m68hc11_frame_init_saved_regs): Remove.
214 (m68hc11_init_extra_frame_info): Remove.
215 (m68hc11_store_struct_return): Remove.
216 (m68hc11_saved_pc_after_call): Remove.
217
218 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
219
220 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
221 frame unwind information.
222 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
223 and adapted for frame unwinding.
224 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
225 (m68hc11_unwind_pc): New function.
226 (m68hc11_frame_unwind_cache): New function to analyze frames.
227 (m68hc11_frame_this_id): New function to create new frame struct.
228 (m68hc11_frame_prev_register): New function to unwind a register from
229 the frame.
230 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
231 (m68hc11_frame_p): New function for the above.
232 (m68hc11_frame_base_address): New function to return fp of frame.
233 (m68hc11_frame_args_address): Update for frame.
234 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
235 (m68hc11_unwind_sp): New function.
236 (m68hc11_unwind_dummy_id): New function.
237 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
238 calls.
239
240 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
241
242 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
243 (m68hc11_guess_from_prologue): Advance the pc and frame size only
244 when we are beyond the current pc.
245
246 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
247
248 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
249 from m68hc11_push_arguments.
250 (m68hc11_push_arguments): Remove.
251 (m68hc11_push_return_address): Remove.
252 (m68hc11_gdbarch_init): Install the above; remove above deprecated
253 handlers; remove deprecated_extra_stack_alignment_needed.
254
255 2003-07-27 Andrew Cagney <cagney@redhat.com>
256
257 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
258 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
259 REAL_PC and not the pointer.
260 * hppa-hpux-tdep.c: Include frame.h
261
262 2003-07-27 Andrew Cagney <cagney@redhat.com>
263
264 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
265 GDB_MULTI_ACH_PARTIAL.
266
267 2003-07-27 Andrew Cagney <cagney@redhat.com>
268
269 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
270 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
271 operator at start and not end of line.
272 (decode_prologue): Ditto.
273 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
274 frame_unwind_register_unsigned instead of
275 frame_unwind_unsigned_register.
276 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
277 read_register.
278 (m32r_push_dummy_call): Use register_size instead of
279 REGISTER_RAW_SIZE.
280 (m32r_frame_sniffer): Replace m32r_frame_p.
281 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
282 * m32r-rom.c (report_transfer_performance): Delete extern
283 declaration.
284 (m32r_load, m32r_upload_command): Use print_transfer_performance
285 instead of report_transfer_performance.
286 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
287 / add_show_from_set.
288
289 2003-07-26 Andrew Cagney <cagney@redhat.com>
290
291 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
292 store_return_value and extract_struct_value_address.
293
294 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
295
296 PR c++/1267
297 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
298 NULL, default to the section containing PC.
299
300 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
301
302 * NEWS: Mention "regs" deprecated for m68hc11 too.
303
304 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
305 (m68hc11_print_register): New function to print out one register.
306 (m68hc11_print_registers_info): New function to print registers.
307 (show_regs): Deprecate and use the above.
308 (m68hc11_gdbarch_init): Install the print_registers_info.
309
310 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
311
312 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
313 that we have a SIGTRAP before returning non-zero.
314
315 2003-07-23 Michal Ludvig <mludvig@suse.cz>
316 Elena Zannoni <ezannoni@redhat.com>
317
318 * linespec.c (decode_line_2): Avoid crash if
319 find_function_start_sal() returns empty record.
320
321 2003-07-23 Andreas Schwab <schwab@suse.de>
322
323 * ia64-tdep.c (ia64_print_insn): New function.
324 (ia64_gdbarch_init): Set print_insn to it.
325 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
326 deprecated_tm_print_insn_info.
327
328 2003-07-22 Michael Snyder <msnyder@redhat.com>
329
330 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
331 handle 8-bit returns (long long).
332 (h8300h_extract_return_value): Ditto.
333 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
334
335 2003-07-22 Andrew Cagney <cagney@redhat.com>
336
337 * gdbarch.c Include "gdb_obstack.h".
338 (struct gdbarch): Add an "obstack".
339 (alloc_gdbarch_data): Allocate the gdbarch data using
340 GDBARCH_OBSTACK_CALLOC.
341 (free_gdbarch_data): Delete function.
342 (gdbarch_obstack_zalloc): New function.
343 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
344 Assert that the architecture is not initialized.
345 (gdbarch_alloc): Allocate an obstack, allocate the architecture
346 vector from the obstack.
347 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
348 architecture obstack.
349 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
350 (set_gdbarch_data): Assert that the data is not initialized.
351 (struct gdbarch_data): Delete member "free".
352 (register_gdbarch_data): Do not initialize "free".
353 * gdbarch.h, gdbarch.c: Re-generate.
354
355 2003-07-22 Andrew Cagney <cagney@redhat.com>
356
357 * configure.in (build_warnings): Add -Wformat-nonliteral.
358 * configure: Re-generate.
359
360 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
361
362 * dwarf2loc.c (locexpr_describe_location): Fix typos.
363
364 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
365
366 * findvar.c (read_var_value): Remove case for thread local storage
367 variables. It is now entirely handled by the dwarf2 location
368 expression code.
369 * printcmd.c (address_info): Ditto.
370 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
371 enumeration value.
372 (struct symbol): Remove objfile field, which was used by
373 LOC_THREAD_LOCAL_STATIC only.
374 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
375 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
376 usage of objfile pointer.
377 * dwarf2loc.c (locexpr_describe_location): Add case to handle
378 thread local variables.
379 Add include of objfiles.h.
380 * dwarf2expr.c (execute_stack_op): Add comments about thread local
381 storage variables.
382 * Makefile.in (dwarf2loc.o): Update dependencies.
383
384 2003-07-22 Andrew Cagney <cagney@redhat.com>
385
386 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
387 get_frame_base.
388 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
389 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
390 (struct value): Add opaque declaration.
391 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
392
393 2003-07-21 Andrew Cagney <cagney@redhat.com>
394
395 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
396 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
397
398 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
399
400 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
401 regcache_cooked_read_unsigned instead of read_register.
402 (m68hc11_saved_pc_after_call): Likewise.
403 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
404 instead of write_register.
405 (m68hc11_register_type): New function.
406 (m68hc11_register_virtual_type): Remove.
407 (m68hc11_store_return_value): Convert to use the regcache.
408 (m68hc11_extract_struct_value_address): Likewise.
409 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
410 m68hc11_register_type; undeprecate store_return_value and
411 extract_struct_value_address.
412
413 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
414
415 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
416 and translate to use regcache.
417 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
418
419 2003-07-18 Andrew Cagney <cagney@redhat.com>
420
421 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
422 * gdbarch.h, gdbarch.c: Re-generate.
423 * i386-tdep.c (i386_gdbarch_init): Do not set
424 DWARF2_BUILD_FRAME_INFO.
425 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
426 unconditionally.
427 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
428 DWARF2_BUILD_FRAME_INFO.
429
430 2003-07-18 Andrew Cagney <cagney@redhat.com>
431
432 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
433 * disasm.c (gdb_disassemble_info): Initilize di.arch.
434
435 2003-07-18 Andrew Cagney <cagney@redhat.com>
436
437 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
438 frame_unwind_address_in_block, instead of frame_pc_unwind.
439 (dwarf2_frame_cache): Ditto.
440
441 2003-07-18 Andrew Cagney <cagney@redhat.com>
442
443 * user-regs.h (struct gdbarch): Declare opaque.
444 * ui-out.h (struct ui_file): Declare opaque.
445 * dwarf2-frame.h (struct frame_info): Declare opaque.
446
447 2003-07-18 Kris Warkentin <kewarken@qnx.com>
448
449 * nto-procfs.c: Clean ARI hits. Change #include <..> to
450 #include "...".
451 (procfs_meminfo): Change strerror to safe_strerror.
452 (procfs_can_run): Remove K&R badness.
453
454 2003-07-17 Michael Snyder <msnyder@redhat.com>
455
456 * remote-sim.c: Comment typo fix.
457
458 2003-07-17 Andrew Cagney <cagney@redhat.com>
459
460 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
461 configure.
462 * sparc-tdep.c (sparc_intreg_size): Make non-static.
463 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
464 GDB_MULTI_ARCH_PARTIAL.
465
466 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
467
468 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
469 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
470 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
471
472 2003-07-16 Theodore A. Roth <troth@openavr.org>
473
474 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
475 found.
476 (avr_frame_unwind_cache): Don't unwind FP for main.
477 Update a comment.
478 Save the computed prev_sp.
479 (avr_saved_regs_unwinder): Remove function.
480 (avr_frame_prev_register): Use PC unwind logic from
481 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
482
483 2003-07-16 Andrew Cagney <cagney@redhat.com>
484
485 * frame-base.h (frame_base_p_ftype): Delete definition.
486 (frame_base_append_predicate): Delete declaration.
487 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
488 (frame_unwind_append_predicate): Delete declaration.
489 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
490 (append_predicate): Delete parameter "p".
491 (frame_unwind_append_predicate): Delete function.
492 (frame_unwind_append_sniffer): Update call to append_predicate.
493 (frame_unwind_free): Delete function.
494 (_initialize_frame_unwind): Pass NULL as "free" to
495 register_gdbarch_data.
496 (frame_unwind_init): Append the dummy_frame_sniffer.
497 (frame_unwind_find_by_frame): Simplify.
498 * frame-base.c (struct frame_base_table): Delete field "p".
499 (append_predicate): Delete parameter "p".
500 (frame_base_append_predicate): Delete function.
501 (frame_base_append_sniffer): Update call to append_predicate.
502 (frame_base_free): Delete function.
503 (frame_base_find_by_frame): Simplify.
504 (_initialize_frame_base): Pass NULL as "free" to
505 register_gdbarch_data.
506 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
507 (x86_64_sigtramp_frame_sniffer): Replace
508 "x86_64_sigtramp_frame_p".
509 (x86_64_init_abi): Set the frame unwind sniffers.
510 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
511 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
512 (m68k_gdbarch_init): Set the frame unwind sniffers.
513 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
514 "i386_sigtramp_frame_p".
515 (i386_frame_sniffer): Replace "i386_frame_p".
516 (i386_gdbarch_init): Set the frame unwind sniffers.
517 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
518 (avr_gdbarch_init): Set the frame unwind sniffers.
519 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
520 "alpha_sigtramp_frame_p"
521 (alpha_heuristic_frame_sniffer): Replace
522 "alpha_heuristic_frame_p".
523 (alpha_gdbarch_init): Set the frame unwind sniffers.
524 (alpha_dwarf2_init_abi): Ditto.
525 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
526 "alpha_debug_frame_p".
527 (alpha_mdebug_frame_base_sniffer): Replace
528 "alpha_mdebug_frame_base_p".
529 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
530 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
531 (d10v_gdbarch_init): Set the frame unwind sniffer.
532 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
533 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
534 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
535 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
536 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
537 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
538
539 2003-07-16 Michael Snyder <msnyder@redhat.com>
540
541 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
542 should go thru sh_dsp_register_sim_regno, else the dsp regs
543 will not get the right values.
544
545 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
546
547 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
548 deprecated_store_floating by call to store_typed_floating.
549 (sh_sh4_register_convert_to_raw): Substitute call to
550 deprecated_extract_floating by call to extract_typed_floating.
551
552 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
553
554 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
555
556 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
557
558 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
559 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
560 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
561 as possible.
562 (do_pseudo_register): Remove.
563 (sh_push_dummy_code): New function.
564 (sh64_store_struct_return): Rename from sh_store_struct_return.
565 Only called for sh64 now.
566 (sh_extract_struct_value_address): Regcache'ify.
567 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
568 and accomodate new tasks.
569 (sh64_push_return_address): Rename from sh_push_return_address.
570 Only called for sh64 now.
571 (sh_default_extract_return_value): Rename from sh_extract_return_value.
572 Regcache'ify.
573 (sh3e_sh4_extract_return_value): Regcache'ify.
574 (sh_default_store_return_value): Ditto.
575 (sh3e_sh4_store_return_value): Ditto.
576 (sh_default_register_byte): Remove.
577 (sh_sh4_register_byte): Remove.
578 (sh_default_register_raw_size): Remove.
579 (sh_sh4_register_raw_size): Remove.
580 (sh_register_virtual_size): Remove.
581 (sh_sh3e_register_virtual_type): Remove.
582 (sh_sh3e_register_type): New function.
583 (sh_sh4_register_virtual_type): Remove.
584 (sh_sh4_register_type): New function.
585 (sh_default_register_virtual_type): Remove.
586 (sh_default_register_type): New function.
587 (do_fv_register_info): Add parameters to accomodate call from
588 sh_print_registers_info.
589 (do_dr_register_info): Ditto.
590 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
591 Add parameters to accomodate call from sh_print_registers_info.
592 (sh_do_fp_register): Ditto.
593 (sh64_do_pseudo_register): Call do_dr_register_info,
594 do_fv_register_info and sh_do_fp_register with default parameters.
595 (sh_do_register): Add parameters to accomodate call from
596 sh_print_registers_info.
597 (sh_print_register): Ditto.
598 (sh_print_registers_info): Rename from sh_do_registers_info.
599 Add parameters to be used as gdbarch_print_registers_info
600 implementation. Accomodate removed do_pseudo_register function
601 pointer.
602 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
603 function pointer. Call sh_print_register with default parameters.
604 (sh64_do_registers_info): Call sh_print_registers_info instead of
605 sh_do_registers_info.
606 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
607 detection of deprecated vs. non-deprecated functionality.
608 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
609 function pointer assignments by direct function calls.
610
611 2003-07-15 Andrew Cagney <cagney@redhat.com>
612
613 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
614 (frame_register_unwind, create_new_frame): Ditto.
615 (legacy_get_prev_frame, get_frame_type): Ditto.
616 (get_frame_base_address): Use frame_base_find_by_frame.
617 (get_frame_locals_address): Use frame_base_find_by_frame.
618 (get_frame_args_address): Use frame_base_find_by_frame.
619 * frame-base.h (frame_base_sniffer_ftype): Declare.
620 (frame_base_append_sniffer): Declare.
621 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
622 * frame-base.c (append_predicate): Add a "sniffer" parameter.
623 (frame_base_append_sniffer): New function.
624 (frame_base_append_predicate): Add a NULL sniffer.
625 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
626 (struct frame_base_table): Add "sniffer".
627 (frame_base_free): Free the "sniffer" table.
628 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
629 (frame_unwind_append_sniffer): Declare.
630 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
631 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
632 (struct frame_unwind_table): Add "sniffer", delete "middle".
633 (append_predicate): Add "sniffer" parameter, append the sniffer.
634 (frame_unwind_init): Update append_predicate call.
635 (frame_unwind_append_sniffer): New function.
636 (frame_unwind_append_predicate): Update append_predicate call.
637 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
638
639 2003-07-15 Andrew Cagney <cagney@redhat.com>
640
641 * frame.c (get_prev_frame): Move disabled inside_entry_func to
642 before code inhibiting repeated unwind attempts. Add to
643 commentary on that test's problems.
644 * blockframe.c (inside_main_func): Look for "main" in the minimal
645 symbol table.
646 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
647 identical.
648
649 2003-07-15 Andrew Cagney <cagney@redhat.com>
650
651 * complaints.c (struct explanation): Define.
652 (struct complaints): Change type of "explanation" to "struct
653 explanation".
654 (symfile_explanations): Convert to a "struct explanation" table.
655 (vcomplaint): Update.
656
657 2003-07-15 Michal Ludvig <mludvig@suse.cz>
658
659 * x86-64-linux-nat.c (regmap): Removed.
660 (supply_gregset, fill_gregset): Call
661 x86_64_linux_(fill,supply)_gregset functions.
662 * x86-64-linux-tdep.c (USER_*): New defines.
663 (user_to_gdb_regmap, x86_64_core_fns): New structure.
664 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
665 New functions.
666 (fetch_core_registers): Ditto.
667 (_initialize_x86_64_linux_tdep): Call add_core_fns().
668 * x86-64-linux-tdep.h: New file.
669 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
670 and core-regset.o.
671 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
672
673 2003-07-13 Mark Kettenis <kettenis@gnu.org>
674
675 * x86-64-tdep.c (x86_64_store_return_value): Use
676 regcache_cooked_write_part instead of regcache_cooked_write.
677
678 * configure.host: Add x86_64-*-freebsd*.
679 * configure.tgt: Add x86_64-*-freebsd*.
680 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
681 * amd64fbsd-nat.c: New file.
682 * amd64fbsd-tdep.c: New file.
683 * config/i386/nm-fbsd64.h: New file.
684 * config/i386/fbsd64.mh: New file.
685 * config/i386/fbsd64.mt: New file.
686
687 2003-07-11 Mark Kettenis <kettenis@gnu.org>
688
689 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
690 `sc_regs_offset' and `sc_fpregs_offset'.
691 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
692 SIGFRAME_FPREGSAVE_OFF): Remove defines.
693 (alpha_sigtramp_register_address): Rewrite to use new members of
694 `struct gdbarch_tdep'.
695 (alpha_gdbarch_init): Initialize new members of struct
696 gdbarch_tdep'.
697 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
698 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
699 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
700 (alphafbsd_pc_in_sigtramp): Implement.
701 (alphafbsd_sigtramp_offset): New function.
702 (alphafbsd_sigcontext_addr): New function.
703 (alphafbsd_init_abi): Initialize signal trampoline related members
704 of `struct gdbarch_tdep'.
705 (_initialize_alphafbsd_tdep): Add prototype.
706
707 2003-07-11 Theodore A. Roth <troth@openavr.org>
708
709 * Makefile.in (install-only): Quote sed expression when generating
710 transformed_name.
711
712 2003-07-11 Richard Henderson <rth@redhat.com>
713
714 * Makefile.in (dwarf2-frame.o): Add complaints_h.
715 * dwarf2-frame.c: Include complaints.h.
716 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
717 variable initialization; return NULL on error.
718 (decode_frame_entry): New.
719
720 2003-07-11 Andrew Cagney <cagney@redhat.com>
721
722 * frame.h (frame_address_in_block): Delete declaration.
723 * blockframe.c (frame_address_in_block): Delete function.
724 (get_frame_block): Use get_frame_address_in_block.
725 (block_innermost_frame): Ditto.
726 * stack.c (print_frame, backtrace_command_1): Ditto.
727
728 * frame.h (get_frame_address_in_block): Declare.
729 (frame_unwind_address_in_block): Declare.
730 * frame.c (frame_unwind_address_in_block): New function.
731 (get_frame_address_in_block): New function.
732
733 2003-07-10 Andrew Cagney <cagney@redhat.com>
734
735 * gdbarch.sh: Simplify predicate methods. Remove need to provide
736 pre-default. Note: re-generate has no effect.
737
738 2003-07-10 Andrew Cagney <cagney@redhat.com>
739
740 * gdbarch.sh: When a variable, but not a function, compare against
741 0. Fix problem in previous patch.
742 * gdbarch.c: Re-generate.
743
744 2003-07-10 Andrew Cagney <cagney@redhat.com>
745
746 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
747 functions against NULL, not 0.
748 * gdbarch.c: Re-generate.
749
750 2003-07-10 Fred Fish <fnf@ninemoons.com>
751
752 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
753 null string instead of a null pointer.
754 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
755
756 2003-07-09 Michael Snyder <msnyder@redhat.com>
757
758 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
759
760 2003-07-09 Mark Kettenis <kettenis@gnu.org>
761
762 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
763 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
764 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
765 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
766 * x86-64-tdep.c: ... from here.
767
768 2003-07-09 Andreas Schwab <schwab@suse.de>
769
770 * m68k-tdep.h (enum struct_return): Define.
771 (struct gdbarch_tdep): Add struct_return.
772 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
773 bytes are padded to the right, not to the left. Pass struct value
774 address in register %a1, not on stack.
775 (m68k_use_struct_convention): New function.
776 (m68k_gdbarch_init): Set use_struct_convention. Initialize
777 struct_return in tdep to pcc_struct_return.
778 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
779 reg_struct_return.
780
781 2003-07-09 Joel Brobecker <brobecker@gnat.com>
782
783 * somread.c (som_symfile_offsets): Fix compilation error.
784
785 2003-07-09 Andrew Cagney <cagney@redhat.com>
786
787 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
788 Add comments about the checks.
789
790 2003-07-08 Andrew Cagney <cagney@redhat.com>
791
792 * Makefile.in: Make dependency section headers consistent.
793 (config_h): Move to $BUILD headers section.
794 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
795 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
796 (ada-exp.tab.c): Move to YACC/LEX section.
797 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
798 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
799
800 2003-07-08 Kris Warkentin <kewarken@qnx.com>
801
802 * nto-procfs.c: Cleaned up a bunch of ARI hits.
803 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
804 of strerror with safe_strerror, use ISO C function definitions,
805 and replace instances of sprintf with snprintf.
806
807 2003-07-07 Andrew Cagney <cagney@redhat.com>
808
809 * frame.c (get_prev_frame): Enable check for identical frames.
810 Update comments. Update error messages.
811
812 2003-07-07 Joel Brobecker <brobecker@gnat.com>
813
814 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
815
816 2003-07-07 Joel Brobecker <brobecker@gnat.com>
817
818 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
819 sort_symtab_syms, no longer necessary.
820
821 2003-07-07 Joel Brobecker <brobecker@gnat.com>
822
823 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
824
825 2003-07-07 Joel Brobecker <brobecker@gnat.com>
826
827 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
828 (mips_register_byte): Likewise.
829
830 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
831
832 * Makefile.in (sparc_tdep_h): New.
833 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
834 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
835 * sparc-linux-nat.c: Include "sparc-tdep.h".
836 * sparc-nat.c: Likewise.
837 * sparc-tdep.c: Likewise.
838 * sparc64nbsd-nat.c: Likewise.
839 * sparcnbsd-nat.c: Likewise.
840 * sparcnbsd-tdep.c: Likewise.
841 * sparc-tdep.h: New file.
842 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
843 and sparc_npc_regnum.
844
845 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
846
847 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
848 (mips_linux_cannot_store_register): List supported instead of
849 unsupported registers.
850
851 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
852
853 * disasm.c (dump_insns): Separate instructions from addresses.
854
855 2003-07-07 Andreas Schwab <schwab@suse.de>
856
857 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
858 dependencies.
859 * m68k-tdep.c (NUM_FREGS): Delete.
860 (SIG_PC_FP_OFFSET): Delete.
861 (TARGET_M68K): Delete.
862 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
863 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
864 P_MOVEL_SP, P_MOVEML_SP): Define.
865 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
866 P_TRAP): Delete.
867 (m68k_register_raw_size): Delete.
868 (m68k_register_virtual_size): Delete.
869 (m68k_register_type): Renamed from m68k_register_virtual_type and
870 add gdbarch argument.
871 (m68k_store_struct_return): Delete.
872 (m68k_deprecated_extract_return_value): Delete.
873 (m68k_deprecated_extract_struct_value_address): Delete.
874 (m68k_frame_chain): Delete.
875 (m68k_frame_saved_pc): Delete.
876 (m68k_fix_call_dummy): Delete.
877 (m68k_push_dummy_frame): Delete.
878 (m68k_pop_frame): Delete.
879 (m68k_extract_return_value): New function.
880 (m68k_store_return_value): Rewrite using regcache.
881 (m68k_extract_struct_value_address): Rewrite using regcache.
882 (m68k_push_dummy_call): New function.
883 (struct m68k_frame_cache): Define.
884 (m68k_alloc_frame_cache): New function.
885 (m68k_analyze_frame_setup): New function.
886 (m68k_analyze_register_saves): New function.
887 (m68k_analyze_prologue): New function.
888 (m68k_skip_prologue): Rewrite using above functions.
889 (m68k_unwind_pc): New function.
890 (m68k_frame_cache): New function.
891 (m68k_frame_this_id): New function.
892 (m68k_frame_prev_register): New function.
893 (m68k_frame_unwind): New variable.
894 (m68k_frame_p): New function.
895 (m68k_sigtramp_frame_cache): New function.
896 (m68k_sigtramp_frame_this_id): New function.
897 (m68k_sigtramp_frame_prev_register): New function.
898 (m68k_sigtramp_frame_unwind): New variable.
899 (m68k_sigtramp_frame_p): New function.
900 (m68k_frame_base_address): New function.
901 (m68k_frame_base): New function.
902 (m68k_unwind_dummy_id): New function.
903 (fill_gregset): Use regcache_collect.
904 (fill_fpregset): Likewise.
905 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
906 defined.
907 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
908 deprecated_init_frame_pc, deprecated_store_struct_return,
909 deprecated_extract_return_value, deprecated_store_return_value,
910 deprecated_frame_chain, deprecated_frame_saved_pc,
911 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
912 deprecated_register_virtual_size,
913 deprecated_max_register_raw_size,
914 deprecated_max_register_virtual_size,
915 deprecated_register_virtual_type, deprecated_register_size,
916 deprecated_register_byte, deprecated_register_bytes,
917 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
918 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
919 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
920 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
921 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
922 deprecated_push_dummy_frame, deprecated_pop_frame,
923 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
924 only if SYSCALL_TRAP is defined. Set extract_return_value,
925 store_return_value, extract_struct_value_address, register_type,
926 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
927 predicates.
928 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
929 M68K_MAX_REGISTER_SIZE): Define.
930 (struct m68k_sigtramp_info): Define.
931 (struct gdbarch_tdep): Add get_sigtramp_info.
932 * m68klinux-nat.c (fetch_register): Use register_size instead of
933 REGISTER_RAW_SIZE. Don't put assignment in if.
934 (store_register): Likewise.
935 (fetch_inferior_registers): Likewise.
936 (store_inferior_registers): Likewise.
937 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
938 (m68k_linux_frame_saved_pc): Delete.
939 (m68k_linux_sigcontext_reg_offset,
940 m68k_linux_ucontext_reg_offset): Define.
941 (m68k_linux_get_sigtramp_info): New function.
942 (m68k_linux_extract_return_value): Rewrite using regcache.
943 (m68k_linux_store_return_value): Likewise.
944 (m68k_linux_extract_struct_value_address): Likewise.
945 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
946 Don't set deprecated_frame_saved_pc,
947 deprecated_extract_return_value, deprecated_store_return_value,
948 deprecated_extract_struct_value_address. Set
949 extract_return_value, store_return_value,
950 extract_struct_value_address.
951
952 2003-07-07 Andrew Cagney <cagney@redhat.com>
953
954 * expprint.c: Include "user-regs.h" instead of "frame.h".
955 (print_subexp): Use user_reg_map_regnum_to_name, instead of
956 frame_map_regnum_to_name.
957 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
958 (frame_map_name_to_regnum): Simplify, call
959 user_reg_map_name_to_regnum.
960 (frame_map_regnum_to_name): Simplify, call
961 user_reg_map_regnum_to_name.
962 (frame_register_unwind): Update.
963 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
964 (_initialize_frame_reg): Call user_reg_add_builtin.
965 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
966 (value_of_register): Use value_of_user_reg.
967 * eval.c (evaluate_subexp_standard): Update.
968 * parse.c (write_dollar_variable): Update.
969 * d10v-tdep.c (d10v_print_registers_info): Update.
970 * infcmd.c (registers_info): Update.
971 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
972 (builtin_regs_h): Delete macro.
973 (user_regs_h): Define.
974 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
975 (builtin-regs.o): Delete target.
976 (user-regs.o): Specify dependencies.
977 (expprint.o): Update dependencies.
978 (findvar.o): Update dependencies.
979 (frame.o): Update dependencies.
980 (std-regs.o): Update dependencies.
981
982 2003-07-06 Christopher Faylor <cgf@redhat.com>
983
984 * win32-nat.c (solib_symbols_add): Use one variable for all section
985 address stuff. Pass variable rather than address of variable to
986 safe_symbol_file_add.
987
988 2003-07-06 Andreas Schwab <schwab@suse.de>
989
990 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
991
992 2003-07-04 Joel Brobecker <brobecker@gnat.com>
993
994 * rs6000-nat.c (vmap_symtab): Fix compilation error.
995
996 2003-07-04 Kris Warkentin <kewarken@qnx.com>
997
998 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
999
1000 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1001
1002 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1003 * config/i386/nto.mh: New file.
1004 * config/i386/nm-nto.h: New file.
1005 * configure.host: Add i[3456]86-*-nto*.
1006
1007 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1008
1009 * remote-vx.c (vx_add_symbols): Fix compilation error.
1010
1011 2003-07-03 Andrew Cagney <cagney@redhat.com>
1012
1013 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1014 * gdbarch.h, gdbarch.c: Re-generate.
1015 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1016 (legacy_register_name): Declare.
1017 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1018 (REGISTER_NAME): Define.
1019 * sparc-tdep.c (legacy_register_name): New function.
1020 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1021 (REGISTER_NAME): Define.
1022 (hppa64_register_name): Declare.
1023 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1024 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1025 (hppa64_register_name): New function.
1026 (hppa_register_name): New function.
1027 * arch-utils.c (legacy_register_name): Delete.
1028 * arch-utils.h (legacy_register_name): Delete.
1029
1030 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1031
1032 * cli/cli-interp.c (cli_interpreter_resume): Update the
1033 cli_uiout's stream to gdb_stdout.
1034
1035 2003-07-03 Andrew Cagney <cagney@redhat.com>
1036
1037 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1038 predicate.
1039 * gdbarch.h, gdbarch.c: Re-generate.
1040 * regcache.c (init_regcache_descr): Use legacy code when either
1041 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1042
1043 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1044
1045 * NEWS: Move "set logging" entry into GDB 6.0 section.
1046
1047 2003-07-02 Jim Blandy <jimb@redhat.com>
1048
1049 * s390-tdep.c (struct frame_extra_info): new member:
1050 'stack_bought_valid'.
1051 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1052 initialize fextra_info->stack_bought.
1053 (s390_frameless_function_invocation): Don't trust the value of
1054 fextra_info_ptr->stack_bought unless
1055 fextra_info->stack_bought_valid is set.
1056
1057 New S390 prologue analyzer.
1058 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1059 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1060 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1061 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1062 compute_x_addr, s390_on_stack, s390_store,
1063 s390_get_signal_frame_info): New functions.
1064 (S390_NUM_SPILL_SLOTS): New macro.
1065 (s390_get_frame_info): Rewritten.
1066 (is_arg_reg): Deleted.
1067
1068 Break out the decoding of S/390 instructions into separate
1069 functions, to make it more legible, and easier to check
1070 against the spec.
1071 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1072 is_rx, is_rxe): New functions.
1073 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1074 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1075 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1076 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1077 enums for opcode values. (Is this an improvement?)
1078
1079 2003-07-02 Andrew Cagney <cagney@redhat.com>
1080
1081 * i386-tdep.c: Revert change committed as part of trad-frame code
1082 below.
1083
1084 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1085
1086 * breakpoint.c (insert_catchpoint): Make static.
1087
1088 2003-07-02 Andreas Schwab <schwab@suse.de>
1089
1090 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1091 former ia64_push_arguments and ia64_push_return_address, and use
1092 regcache functions instead of read/write_register.
1093 (ia64_gdbarch_init): Set push_dummy_call instead of
1094 deprecated_push_arguments and deprecated_push_return_address.
1095
1096 2003-07-01 Andreas Jaeger <aj@suse.de>
1097
1098 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1099 before the call.
1100 Set %rax only to number of SSE registers used.
1101
1102 2003-07-01 Andrew Cagney <cagney@redhat.com>
1103
1104 * trad-frame.h: Update comments, a -1 .addr is reserved.
1105 (trad_frame_value_p, trad_frame_addr_p): Declare.
1106 (trad_frame_reg_p): Declare.
1107 (trad_frame_set_value): Rename trad_frame_register_value.
1108 (trad_frame_set_unknown): Declare.
1109 * trad-frame.c (trad_frame_realreg_p): New function.
1110 (trad_frame_addr_p, trad_frame_value_p): New function.
1111 (trad_frame_set_unknown): New function.
1112 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1113 (trad_frame_prev_register): Use trad_frame_realreg_p,
1114 trad_frame_addr_p and trad_frame_value_p.
1115 (trad_frame_set_value): Rename trad_frame_register_value.
1116 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1117 and trad_frame_set_value.
1118
1119 2003-06-30 Jim Blandy <jimb@redhat.com>
1120
1121 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1122 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1123 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1124 for 16 registers, and then 32 more bytes.
1125 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1126 New macros.
1127 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1128 Move up in the file, since it's now used by is_simple_arg.
1129 (is_simple_arg): Don't assume registers are four bytes long.
1130 Exclude all double arguments. Extended floats are not simple
1131 args.
1132 (is_power_of_two): New function.
1133 (pass_by_copy_ref): Call is_power_of_two, and check that the
1134 length fits in a register, rather than listing all the acceptable
1135 sizes. Extended floats are not passed by reference.
1136 (s390_push_arguments): Don't assume registers are four bytes long.
1137 Reserve an argument register to point to the buffer for structures
1138 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1139 S390_STACK_FRAME_OVERHEAD.
1140
1141 2003-06-30 Andreas Schwab <schwab@suse.de>
1142
1143 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1144 format error message.
1145
1146 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1147
1148 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1149
1150 2003-06-30 David Carlton <carlton@kealia.com>
1151
1152 Band-aid for PR c++/1245.
1153 * Makefile.in (cp-support.o): Depend on complaints_h.
1154 * cp-support.c: Include complaints.h. Add declaration for
1155 find_last_component.
1156 (cp_find_first_component): Separate code into
1157 cp_find_first_component_aux.
1158 (cp_find_first_component_aux): Call demangled_name_complaint.
1159 (demangled_name_complaint): New.
1160
1161 2003-06-30 Andrew Cagney <cagney@redhat.com>
1162
1163 * remote.c (remote_write_bytes): Explicitly compute and then use
1164 the payload size. Update comments to reflect. Fixes problem of
1165 GDB not sending small packets as found by Fred Fish.
1166
1167 2003-06-30 Andrew Cagney <cagney@redhat.com>
1168
1169 * remote.c (remote_async_wait): Fix -Wformat problem.
1170
1171 2003-06-29 Andrew Cagney <cagney@redhat.com>
1172
1173 * remote.c (remote_wait): Call error, and not warning, when the
1174 packet is corrupt.
1175 (remote_async_wait): Ditto.
1176
1177 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1178
1179 * sparc-tdep.c (sparc_y_regnum): Make external again.
1180
1181 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1182
1183 * cli/cli-logging.c (pop_output_files): Add void to function
1184 definition.
1185
1186 2003-06-29 Andrew Cagney <cagney@redhat.com>
1187
1188 * frame.c (frame_register_unwind): Use unsigned char when dumping
1189 the buffer contents.
1190
1191 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1192
1193 * cli/cli-logging.c: New file.
1194 * cli-out.c (struct ui_out_data): Add original_stream.
1195 (cli_redirect): New function.
1196 (cli_ui_out_impl): Add cli_redirect.
1197 (cli_out_new): Initialize original_stream.
1198 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1199 (uo_redirect, ui_out_redirect): New.
1200 * ui-out.h (struct ui_out_impl): Add redirect member.
1201 (redirect_ftype): New.
1202 (ui_out_redirect): Add prototype.
1203 * Makefile.in: Add rules for cli-logging.c.
1204 * NEWS: Mention "set logging".
1205
1206 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1207
1208 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1209
1210 2003-06-27 Andrew Cagney <cagney@redhat.com>
1211
1212 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1213 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1214 * avr-tdep.c (avr_call_dummy_address): Delete function.
1215 (avr_gdbarch_init): Do not set call_dummy_address.
1216
1217 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1218
1219 * symfile.c (syms_from_objfile): Move variables to inner block.
1220 Move the checks for the non-mainline case a bit earlier to avoid
1221 doing some useless computations.
1222
1223 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1224
1225 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1226
1227 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1228
1229 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1230 sections.
1231
1232 2003-06-26 Michael Chastain <mec@shout.net>
1233
1234 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1235 gdb/testsuite/gdb.c++/pr-1210.exp.
1236
1237 2003-06-26 Andrew Cagney <cagney@redhat.com>
1238
1239 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1240 altivec_expression.h and altivec_registers.h.
1241
1242 2003-06-26 Andrew Cagney <cagney@redhat.com>
1243
1244 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1245 info->mach when MIPS16. Patch suggested by Fred Fish.
1246
1247 2003-06-26 Andrew Cagney <cagney@redhat.com>
1248
1249 * utils.c (internal_vproblem): Print the problem to a reason
1250 buffer and then pass to query. Make the msg variable more local.
1251
1252 2003-06-26 Andrew Cagney <cagney@redhat.com>
1253
1254 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1255 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1256 * gdbarch.h, gdbarch.c: Re-generate.
1257 * frame-base.c (default_frame_args_address): Update. Use
1258 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1259 not available.
1260 (default_frame_locals_address): Ditto for
1261 DEPRECATED_FRAME_LOCALS_ADDRESS.
1262 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1263 (vax_frame_num_args): Update.
1264 (vax_gdbarch_init): Update.
1265 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1266 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1267 * mcore-tdep.c (mcore_gdbarch_init): Update.
1268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1269 * ia64-tdep.c (ia64_gdbarch_init): Update.
1270 * symtab.h (address_class): Update comments.
1271 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1272 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1273 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1274 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1275 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1276 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1277 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1278 * alpha-mdebug-tdep.c: Update.
1279 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1280
1281 2003-06-26 Andreas Jaeger <aj@suse.de>
1282
1283 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1284 of SSE registers so that varargs functions work. Rework handling
1285 of passing arguments on the stack.
1286 (x86_64_store_return_value): Return double and float values in SSE
1287 register.
1288
1289 2003-06-24 Michael Chastain <mec@shout.net>
1290
1291 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1292 the "constructor breakpoints ignored" bug.
1293
1294 2003-06-25 David Carlton <carlton@kealia.com>
1295
1296 * MAINTAINERS: Update e-mail address.
1297
1298 2003-06-24 Jim Blandy <jimb@redhat.com>
1299
1300 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1301
1302 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1303 function.
1304 (ppc_linux_init_abi): Register it as the
1305 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1306
1307 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1308 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1309 method.
1310
1311 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1312 (ppc64_standard_linkage_target): Use it.
1313
1314 2003-06-23 Andrew Cagney <cagney@redhat.com>
1315
1316 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1317 for 0 "int0" and 4 "int32" sized registers.
1318 * gdbtypes.c (builtin_type_int0): Define.
1319 (build_gdbtypes): Initialize builtin_type_int0.
1320 * gdbtypes.h (builtin_type_int0): Declare.
1321
1322 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1323
1324 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1325 as characters are unsigned.
1326
1327 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1328
1329 PR gdb/1179
1330 * dwarfread.c (struct_type): Skip static fields without crashing.
1331
1332 2003-06-22 Andrew Cagney <cagney@redhat.com>
1333
1334 GDB 6.0 branch created.
1335 * README: Update.
1336 * PROBLEMS: Update. Empty.
1337 * NEWS: Update.
1338
1339 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1340
1341 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1342 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1343
1344 2003-06-22 Andrew Cagney <cagney@redhat.com>
1345
1346 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1347 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1348 Velikov.
1349
1350 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1351
1352 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1353 compilers.
1354
1355 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1356
1357 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1358 argument of val_print.
1359 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1360 to the address argument of baseclass_offset or target_read_memory.
1361 Do add it to the argument of cp_print_value_fields.
1362
1363 2003-06-21 Andrew Cagney <cagney@redhat.com>
1364
1365 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1366 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1367 instead of 0..NUM_REGS.
1368 (mips_register_reggroup_p): New function.
1369 (mips_pseudo_register_write): New function.
1370 (mips_pseudo_register_read): New function.
1371 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1372 based on the register's type.
1373 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1374 cooked.
1375 (mips_get_saved_register): Simplify. Assert that REGNO is a
1376 pseudo / cooked.
1377 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1378 (mips_register_type): Replace mips_register_virtual_type. Map
1379 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1380 when available.
1381 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1382 that the register is cooked / virtual.
1383 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1384 Only get the extra info when needed.
1385 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1386 (mips32_heuristic_proc_desc): Fetch the cooked register.
1387 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1388 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1389 (mips_print_register): Use gdbarch_register_type, instead of
1390 REGISTER_VIRTUAL_TYPE.
1391 (print_gp_register_row): Use gdbarch_register_type, instead of
1392 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1393 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1394 Print the pseudo / cooked registers.
1395 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1396 Print the pseudo / cooked registers.
1397 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1398 REG_NUM is pseudo / cooked.
1399 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1400 (mips_n32n64_xfer_return_value): Ditto.
1401 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1402 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1403 (mips_register_sim_regno): New function.
1404 (mips_gdbarch_init): Set deprecated_register_byte,
1405 register_group_p, pseudo_register_write, pseudo_register_read,
1406 register_sim_regno, and num_pseudo_regs. Set register_type,
1407 instead of register_virtual_type.
1408 * Makefile.in (mips-tdep.o): Update dependencies.
1409 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1410 REGISTER_VIRTUAL_TYPE.
1411 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1412 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1413 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1414 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1415 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1416
1417 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1418
1419 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1420 * cli/cli-cmds.c: Include "gdb_vfork.h".
1421 (shell_escape): Use vfork.
1422
1423 2003-06-21 Andrew Cagney <cagney@redhat.com>
1424
1425 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1426 32 bit floating-point register saves.
1427
1428 * frame.h (deprecated_unwind_get_saved_register): Delete.
1429 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1430 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1431 and deprecated_get_next_frame_hack instead of
1432 deprecated_unwind_get_saved_register.
1433
1434 * mips-tdep.c (mips_dump_tdep): Do not print
1435 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1436
1437 * frame.c (get_frame_register): New function.
1438 (frame_unwind_register_signed): New function.
1439 (get_frame_register_signed): New function.
1440 (frame_unwind_register_unsigned): New function.
1441 (get_frame_register_unsigned): New function.
1442 * frame.h: Add comments on naming schema.
1443 (get_frame_register, frame_unwind_register_signed): Declare.
1444 (get_frame_register_signed, get_frame_register_signed): Declare.
1445 (frame_unwind_register_unsigned): Declare.
1446 (get_frame_register_unsigned): Declare.
1447
1448 2003-06-20 Theodore A. Roth <troth@openavr.org>
1449
1450 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1451
1452 2003-06-20 Theodore A. Roth <troth@openavr.org>
1453
1454 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1455 (avr_read_sp): Ditto.
1456
1457 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
1458
1459 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1460 * config/arm/nm-linux.h: Likewise.
1461 * config/arm/tm-linux.h: Likewise.
1462 * config/ia64/nm-linux.h: Likewise.
1463 * config/ia64/tm-ia64.h: Likewise.
1464 * config/s390/tm-linux.h: Likewise.
1465 * config/s390/tm-s390.h: Likewise.
1466 * s390-nat.c: Likewise.
1467 * s390-tdep.c: Likewise.
1468
1469 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1470 * config/ia64/linux.mt: Likewise.
1471 * config/m68k/linux.mh: Likewise.
1472 * config/mips/linux.mt: Likewise.
1473 * config/powerpc/linux.mh: Likewise.
1474 * config/sh/linux.mt: Likewise.
1475
1476 2003-06-19 Kris Warkentin <kewarken@qnx.com>
1477
1478 * solib.c (solib_open): Change tests for whether to search
1479 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1480 comments.
1481
1482 2003-06-19 Theodore A. Roth <troth@openavr.org>
1483
1484 * avr-tdep.c (avr_frame_address): Delete function.
1485 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1486 set_gdbarch_frame_args_address.
1487
1488 2003-06-19 Andrew Cagney <cagney@redhat.com>
1489
1490 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1491 (REGISTER_CONVERT_FROM_TYPE): Delete.
1492 (mips_register_convert_to_type): Delete declaration.
1493 (mips_register_convert_from_type): Delete declaration.
1494 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1495 kernel/.
1496
1497 2003-06-19 Michael Snyder <msnyder@redhat.com>
1498
1499 * linux-nat.h: New file.
1500 * linux-nat.c: Include linux-nat.h.
1501 * lin-lwp.c: Include linux-nat.h.
1502 Move struct lwp_info def to linux-nat.h.
1503 * linux-proc.c: Include linux-nat.h.
1504 (linux_make_note_section): Iterate over lwps instead of threads.
1505 (linux_do_thread_registers): Use lwp instead of merged pid.
1506 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
1507 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
1508 Add dependency on linux_nat_h.
1509
1510 2003-06-19 Theodore A. Roth <troth@openavr.org>
1511
1512 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1513
1514 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1515
1516 * varobj.c (get_type, get_target_type): Use check_typedef.
1517
1518 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1519
1520 * breakpoint.c (insert_catchpoint): Call internal_error.
1521
1522 2003-06-19 Theodore A. Roth <troth@openavr.org>
1523
1524 * avr-tdep.c (avr_push_dummy_code): Delete function.
1525 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1526
1527 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1528
1529 * arch-utils.c (default_prepare_to_proceed): Remove.
1530 (generic_prepare_to_proceed): Remove.
1531 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1532 (generic_prepare_to_proceed): Remove prototype.
1533 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1534 * gdbarch.c: Regenerate.
1535 * gdbarch.h: Regenerate.
1536 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1537 * hppah-nat.c (hppa_switched_threads): Remove.
1538 * infrun.c (prepare_to_proceed): New static function, copied from
1539 generic_prepare_to_proceed. Remove select_it argument.
1540 (proceed): Call prepare_to_proceed.
1541 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1542 variables.
1543 (ptrace_wait): Don't set the removed variables.
1544 (hppa_switched_threads): Remove.
1545 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1546 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1547 (lin_lwp_prepare_to_proceed): Remove prototype.
1548 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1549 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1550
1551 2003-06-18 Theodore A. Roth <troth@openavr.org>
1552
1553 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1554 trad-frame.h.
1555 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1556 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1557 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1558 (AVR_PROLOGUE_*): Enumerate prologue types.
1559 (struct frame_extra_info): Remove.
1560 (struct avr_unwind_cache): Define.
1561 (avr_write_sp): Delete function.
1562 (avr_read_fp): Ditto.
1563 (avr_init_extra_frame_info): Ditto.
1564 (avr_pop_frame): Ditto.
1565 (avr_frame_saved_pc): Ditto.
1566 (avr_saved_pc_after_call): Ditto.
1567 (avr_push_return_address): Ditto.
1568 (avr_frame_chain): Ditto.
1569 (avr_store_struct_return): Ditto.
1570 (avr_push_arguments): Ditto.
1571 (avr_scan_prologue): Update comments. Changed to set up the info for
1572 cache unwinding. Now returns end of prologue PC.
1573 (avr_skip_prologue): Better handling of functions lacking a prologue
1574 by using avr_scan_prologue.
1575 (avr_scan_arg_moves): New function.
1576 (avr_saved_regs_unwinder): Ditto.
1577 (avr_frame_unwind_cache): Ditto.
1578 (avr_unwind_pc): Ditto.
1579 (avr_frame_this_id): Ditto.
1580 (avr_frame_prev_register): Ditto.
1581 (avr_frame_p): Ditto.
1582 (avr_frame_base_address ): Ditto.
1583 (avr_unwind_dummy_id): Ditto.
1584 (avr_push_dummy_code): Ditto.
1585 (push_stack_item): Ditto.
1586 (pop_stack_item): Ditto.
1587 (avr_push_dummy_call): Ditto.
1588 (struct stack_item): Define.
1589 (avr_frame_unwind): Declare structure.
1590 (avr_frame_base): Ditto.
1591 (avr_gdbarch_init): Remove calls to
1592 set_gdbarch_deprecated_init_frame_pc,
1593 set_gdbarch_deprecated_target_read_fp,
1594 set_gdbarch_deprecated_dummy_write_sp,
1595 set_gdbarch_deprecated_fp_regnum,
1596 set_gdbarch_deprecated_push_arguments,
1597 set_gdbarch_deprecated_push_return_address,
1598 set_gdbarch_deprecated_pop_frame,
1599 set_gdbarch_deprecated_store_struct_return,
1600 set_gdbarch_deprecated_frame_init_saved_regs,
1601 set_gdbarch_deprecated_init_extra_frame_info,
1602 set_gdbarch_deprecated_frame_chain,
1603 set_gdbarch_deprecated_frame_saved_pc,
1604 set_gdbarch_deprecated_saved_pc_after_call.
1605 Add calls to set_gdbarch_push_dummy_call,
1606 set_gdbarch_push_dummy_code,
1607 frame_unwind_append_predicate,
1608 frame_base_set_default,
1609 set_gdbarch_unwind_dummy_id,
1610 set_gdbarch_unwind_pc.
1611 Wrap a long line.
1612
1613 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
1614
1615 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
1616 registers for H8/300S.
1617 (h8300_print_registers_info): Ditto.
1618 (h8300_gdbarch_init): Accommodate register count for H8/300S.
1619
1620 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
1621
1622 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
1623 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1624 (lin_lwp_wait): Likewise. Update comments.
1625 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
1626 (pull_pid_from_list, linux_record_stopped_pid): New.
1627
1628 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1629
1630 * ada-lang.c (scan_discrim_bound): Name first argument.
1631 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
1632 declared by ALL_BLOCK_SYMBOLS.
1633
1634 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1635
1636 * ada-tasks.c (find_function_in_inferior): Don't declare it.
1637 ("regcache.h"): Include it.
1638 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
1639
1640 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1641
1642 * NEWS: Mention gdbserver detach change and "disconnect" command.
1643 * infcmd.c (disconnect_command): New function.
1644 (_initialize_infcmd): Add ``disconnect'' command.
1645 * remote.c (remote_async_detach): Delete.
1646 (remote_detach): Merge remote_async_detach.
1647 (remote_disconnect): New.
1648 (init_remote_ops): Set to_disconnect.
1649 (init_remote_cisco_ops): Likewise.
1650 (init_remote_async_ops): Likewise. Use remote_detach.
1651 * target.c (cleanup_target): Default to_disconnect.
1652 (update_current_target): Inherit to_disconnect.
1653 (target_disconnect, debug_to_disconnect): New functions.
1654 (setup_target_debug): Set to_disconnect.
1655 * target.h (struct target_ops): Add to_disconnect.
1656 (target_disconnect): Add prototype.
1657
1658 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1659
1660 * breakpoint.c (insert_catchpoint): New function.
1661 (insert_breakpoints): Use catch_exceptions to call
1662 insert_catchpoint. Disable catchpoints if they fail to insert.
1663
1664 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1665
1666 * symfile.c (reread_symbols): Clear sym_private.
1667
1668 2003-06-17 Andrew Cagney <cagney@redhat.com>
1669
1670 * trad-frame.h (struct frame_info): Add opaque declaration.
1671 * remote-fileio.h (struct cmd_list_element): Add opaque
1672 declaration.
1673 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
1674 comments.
1675
1676 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1677
1678 * remote.c (remote_prepare_to_store): Replace call to
1679 deprecated_read_register_bytes with multiple regcache_raw_read
1680 calls.
1681
1682 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1683
1684 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
1685 (nto_find_and_open_solib): Likewise.
1686 (nto_init_solib_absolute_prefix): Likewise.
1687 (_initialize_nto_tdep): Fix indentation.
1688
1689 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1690
1691 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
1692
1693 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1694
1695 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
1696
1697 2003-06-17 Jim Blandy <jimb@redhat.com>
1698
1699 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
1700
1701 2003-06-16 Theodore A. Roth <troth@openavr.org>
1702
1703 * avr-tdep.c (avr_extract_return_value): New function.
1704 (avr_gdbarch_init): Set extract_return_value method.
1705
1706 2003-06-16 Andrew Cagney <cagney@redhat.com>
1707
1708 * frame.h (deprecated_get_next_frame_hack): Declare.
1709 * frame.c (legacy_saved_regs_prev_register): Only require
1710 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
1711 there are always saved regs.
1712 (deprecated_generic_get_saved_register): Do not require
1713 DEPRECATED_FRAME_INIT_SAVED_REGS.
1714 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
1715 use frame ID unwind instead.
1716 (deprecated_get_next_frame_hack): New function.
1717
1718 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
1719
1720 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
1721 (h8300_push_dummy_call): ...this function. Some minor optimization.
1722 (h8300_push_return_address): Remove.
1723 (h8300_gdbarch_init): Remove calls to
1724 set_gdbarch_deprecated_dummy_write_sp,
1725 set_gdbarch_deprecated_push_arguments and
1726 set_gdbarch_deprecated_push_return_address.
1727 Add call to set_gdbarch_push_dummy_call.
1728
1729 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
1730
1731 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
1732 (E_PSEUDO_EXR_REGNUM): Ditto.
1733 (h8300_is_argument_spill): Check for instructions moving argument
1734 registers into safe registers.
1735 (h8300_skip_prologue): Check for stm instruction to push registers
1736 used for register variables onto stack.
1737 (gdb_print_insn_h8300): Remove.
1738 (h8300_examine_prologue): Add a comment.
1739 (h8300_register_name): Take pseudo registers into account.
1740 (h8300s_register_name): Ditto.
1741 (h8300sx_register_name): Ditto.
1742 (h8300_print_register): Ditto.
1743 (h8300_print_registers_info): Define "nice" printing order.
1744 (h8300_saved_pc_after_call): Take pseudo registers into account.
1745 (h8300_register_type): Ditto. Return type used for remote connection
1746 when requesting real CCR or EXR register, return actual type when
1747 requesting pseudo CCR or EXR.
1748 (h8300_pseudo_register_read): New function.
1749 (h8300_pseudo_register_write): Ditto.
1750 (h8300_dbg_reg_to_regnum): Ditto.
1751 (h8300s_dbg_reg_to_regnum): Ditto.
1752 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
1753 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
1754 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
1755 set_gdbarch_print_insn architecture dependent.
1756 Call set_gdbarch_pseudo_register_read and
1757 set_gdbarch_pseudo_register_write.
1758 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
1759
1760 2003-06-16 Andrew Cagney <cagney@redhat.com>
1761
1762 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
1763 * gdbarch.h, gdbarch.c: Re-generate.
1764 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1765 * s390-tdep.c (s390_gdbarch_init): Update.
1766 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1767 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1768 * mips-tdep.c (mips_gdbarch_init): Update.
1769 * mcore-tdep.c (mcore_gdbarch_init): Update.
1770 * cris-tdep.c (cris_gdbarch_init): Update.
1771 * infcall.c (call_function_by_hand): Update.
1772 * ia64-tdep.c (ia64_push_arguments): Update comment.
1773 * frame.c (legacy_get_prev_frame): Do not assume
1774 SAVE_DUMMY_FRAME_TOS_P.
1775 * dummy-frame.c (find_dummy_frame): Update comment.
1776
1777 2003-06-16 Andrew Cagney <cagney@redhat.com>
1778
1779 * regcache.c (do_cooked_read): Do not use register_valid_p.
1780
1781 2003-06-15 Theodore A. Roth <troth@openavr.org>
1782
1783 * avr-tdep.c (avr_register_type): Remove a blank line.
1784 (avr_scan_prologue): Correct some comments.
1785
1786 2003-06-15 Theodore A. Roth <troth@openavr.org>
1787
1788 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
1789 prologue types.
1790 Properly scan prologues generated by gcc with the -mcall-prologues
1791 option.
1792 Add code to scan -mcall-prologues for mega devices.
1793
1794 2003-06-15 Theodore A. Roth <troth@openavr.org>
1795
1796 * avr-tdep.c (avr_register_byte): Delete function.
1797 (avr_register_raw_size): Delete function.
1798 (avr_register_virtual_size): Delete function.
1799 (avr_register_virtual_type): Delete function.
1800 (avr_register_type): New function.
1801 (avr_address_to_pointer): Remove unused code.
1802 (avr_read_fp): Need to read FP as two separate bytes due to change to
1803 avr_register_type() usage.
1804 (avr_gdbarch_init): Don't set deprecated_register_size.
1805 Don't set deprecated_register_bytes.
1806 Don't set deprecated_register_byte.
1807 Don't set deprecated_register_raw_size.
1808 Don't set deprecated_max_register_raw_size.
1809 Don't set deprecated_register_virtual_size.
1810 Don't set deprecated_max_register_virtual_size.
1811 Don't set deprecated_register_virtual_type.
1812 Set register_type method.
1813
1814 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
1815
1816 * Makefile.in (linux-nat.o): Add rule.
1817 * linux-nat.c: New file.
1818 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
1819 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
1820 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
1821 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
1822 * config/arm/linux.mh (NATDEPFILES): Likewise.
1823 * config/i386/linux.mh (NATDEPFILES): Likewise.
1824 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1825 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1826 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1827 * config/mips/linux.mh (NATDEPFILES): Likewise.
1828 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1829 * config/s390/s390.mh (NATDEPFILES): Likewise.
1830 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1831
1832 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1833
1834 * i387-tdep.c: Reorder includes, fix some whitespace issues and
1835 replace out-of-date comment.
1836
1837 2003-06-15 Andrew Cagney <cagney@redhat.com>
1838
1839 * rdi-share/host.h (Fail): Change to a varargs function.
1840 * remote-rdi.c (Fail): Update.
1841
1842 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1843
1844 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
1845 (i386_convert_register_p, i386_register_to_value,
1846 i386_register_from_value): Handle types longer than 8 bytes.
1847
1848 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1849
1850 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
1851 Move floating-point code to new function in i387-tdep.c.
1852 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
1853 New functions containing code moved here from i386-tdep.c.
1854 * i387-tdep.h: Add opaque declaration for `struct type'.
1855 (i387_register_to_value, i387_value_to_register): New prototypes.
1856 * x86-64-tdep.c (x86_64_convert_register_p): New function.
1857 (x86_64_init_abi): Set convert_register_p, register_to_value and
1858 value_to_register here.
1859
1860 2003-06-14 Andrew Cagney <cagney@redhat.com>
1861
1862 * mips-tdep.c (mips_register_to_value): Make static.
1863 (mips_value_to_register): Make static.
1864 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
1865 * ia64-tdep.c (ia64_register_raw_size): Make static.
1866 (ia64_register_virtual_size): Make static.
1867 (ia64_register_byte): Make static.
1868 * i387-tdep.c: Include "i387-tdep.h".
1869 (print_387_control_word): Delete function.
1870 (print_387_status_word): Delete function.
1871 (print_387_status_bits): Delete function.
1872 (print_387_control_bits): Delete function.
1873 * Makefile.in (i387-tdep.o): Update dependencies.
1874 * rdi-share/host.h (Fail): Declare.
1875 * remote-rdi.c (Fail): Update to match declaration.
1876
1877 2003-06-14 Andrew Cagney <cagney@redhat.com>
1878
1879 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
1880 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
1881 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
1882 * config/djgpp/fnchange.lst: Delete "remote-array.c".
1883 * README: Delete reference to remote-array.
1884 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
1885 (remote-array.o): Delete target.
1886 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
1887 * remote-array.c: Delete file.
1888
1889 2003-06-14 Andrew Cagney <cagney@redhat.com>
1890 Mark Kettenis <kettenis@gnu.org>
1891
1892 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
1893 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
1894 parameter with "frame".
1895 * gdbarch.h, gdbarch.c: Re-generate.
1896 * frame.h (put_frame_register): Declare.
1897 * frame.c (put_frame_register): New function.
1898 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
1899 (legacy_register_to_value): Rewrite, use "frame" to get the
1900 register value.
1901 (legacy_value_to_register): Rewrite, use "frame" to find the
1902 register's location before storing.
1903 * arch-utils.h (legacy_convert_register_p): Update.
1904 (legacy_register_to_value, legacy_value_to_register): Update.
1905 * findvar.c (value_from_register): Rewrite, eliminate use of
1906 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
1907 "frame" to REGISTER_TO_VALUE.
1908 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
1909 lval_reg_frame_relative + lval_register branch of the switch. Do
1910 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
1911 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1912 I386_EDI_REGNUM): New defines.
1913 (i386_next_regnum, i386_convert_register_p,
1914 i386_register_to_value, i386_value_to_register): New functions.
1915 (i386_register_convertible, i386_register_convert_to_virtual,
1916 i386_convert_to_raw): Remove functions.
1917 (i386_gdbarch_init): Set convert_register_p, register_to_value and
1918 value_to_register instead of register_convertible,
1919 register_convert_to_virtual and register_convert_to_raw.
1920 * mips-tdep.c (mips_convert_register_p): New function.
1921 (mips_value_to_register): Replace mips_register_convert_from_type.
1922 (mips_register_to_value): Replace mips_register_convert_to_type.
1923 (mips_gdbarch_init): Set conver_register_p, value_to_register and
1924 register_to_value.
1925 * alpha-tdep.c (alpha_convert_register_p): Update.
1926 (alpha_value_to_register): Update, store the register.
1927 (alpha_register_to_value): Update, fetch the register.
1928
1929 2003-06-14 Theodore A. Roth <troth@openavr.org>
1930
1931 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
1932 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
1933 Don't set deprecated_call_dummy_words.
1934 Remove commented out set_gdbarch_believe_pcc_promotion() call.
1935 Don't set remote_translate_xfer_address.
1936 (avr_io_reg_read_command): Remove commented out debug printf.
1937 Wrap a long line.
1938
1939 2003-06-14 Theodore A. Roth <troth@openavr.org>
1940
1941 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
1942 causes gdb to seg fault.
1943
1944 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
1945
1946 * sparc-nat.c (fetch_inferior_registers): Correct
1947 a reference to "registers".
1948
1949 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
1950
1951 * Makefile.in (exc_request_U_h): Define
1952 (exc_request_S_h): Likewise.
1953 (msg_reply_S_h): Likewise.
1954 (msg_U_h): Likewise.
1955 (notify_S_h): Likewise.
1956 (process_reply_S_h): Likewise.
1957 (gnu-nat.o): Depend on gdb_obstack_h
1958 * gnu-nat.c: Include "gdb_obstack.h".
1959
1960 2003-06-13 Andrew Cagney <cagney@redhat.com>
1961
1962 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
1963 * gdbarch.h, gdbarch.c: Re-generate.
1964
1965 2003-06-13 Andrew Cagney <cagney@redhat.com>
1966
1967 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
1968 when deprecated REGISTER macros can be deleted.
1969 * gdbarch.h, gdbarch.c: Re-generate.
1970
1971 2003-06-13 Jim Blandy <jimb@redhat.com>
1972
1973 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
1974 Linux entry point symbols for _dl_debug_state, too.
1975
1976 2003-06-13 Andrew Cagney <cagney@redhat.com>
1977
1978 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
1979 available, do not use the FP register, and always save the TOS.
1980 * dummy-frame.c (dummy_frame_this_id): Do not assert
1981 SAVE_DUMMY_FRAME_TOS.
1982 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
1983 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
1984 (i386_push_dummy_call): Add 8 to the returned SP.
1985 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
1986 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
1987 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
1988 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
1989 (x86_64_push_dummy_call): Return "sp + 16".
1990 (x86_64_init_abi): Do not set save_dummy_frame_tos.
1991 * alpha-tdep.c (alpha_gdbarch_init): Do not set
1992 save_dummy_frame_tos.
1993
1994 2003-06-13 Jim Blandy <jimb@redhat.com>
1995
1996 * frv-tdep.c (frv_use_struct_convention): Delete static
1997 declaration for function deleted in my change of 2003-06-12.
1998
1999 2003-06-13 Theodore A. Roth <troth@openavr.org>
2000
2001 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2002 (avr_pointer_to_address): Shift code addrs left 1 bit.
2003 (avr_convert_from_func_ptr_addr): Delete function since operation is
2004 better handled by avr_address_to_pointer and avr_pointer_to_address.
2005 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2006
2007 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2008
2009 From Kelley Cook <kelleycook@wideopenwest.com>:
2010 * configure.host: Accept i[34567]86 variants.
2011 * configure.tgt: Likewise.
2012 * nlm/configure.in: Likewise.
2013 * nlm/configure: Regenerated.
2014
2015 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2016
2017 * arm-tdep.c (solib-svr4.h): Dont' include it.
2018 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2019 * arm-linux-tdep.c: ... here. Make static.
2020 (arm_linux_init_abi): Register it.
2021 (solib-svr4.h): Include it.
2022 * Makefile.in: Update dependencies.
2023 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2024 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2025
2026 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2027
2028 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2029 indicate registers used for return values.
2030 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2031 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2032 members.
2033 (h8300_init_extra_frame_info): Ditto.
2034 (h8300_frame_locals_address): Removed.
2035 (h8300_frame_args_address): Removed.
2036 (h8300_extract_return_value): Use new regcache structure. Only care
2037 for 16 bit CPUs.
2038 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2039 (h8300_store_return_value): Use new regcache structure. Only care
2040 for 16 bit CPUs.
2041 (h8300h_store_return_value): Same function for 32 bit CPUs.
2042 (h8300_store_struct_return): Removed.
2043 (h8300_extract_struct_value_address): Use new regcache structure.
2044 (h8300h_extract_struct_value_address): Removed.
2045 (h8300_push_dummy_code): New function.
2046 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2047 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2048 set_gdbarch_store_return_value architecture dependent.
2049 Call set_gdbarch_push_dummy_code and
2050 set_gdbarch_extract_struct_value_address.
2051 Remove calls to set_gdbarch_frame_args_address,
2052 set_gdbarch_frame_locals_address,
2053 set_gdbarch_deprecated_store_struct_return,
2054 set_gdbarch_deprecated_extract_return_value,
2055 set_gdbarch_deprecated_extract_struct_value_address,
2056 set_gdbarch_deprecated_call_dummy_words and
2057 set_gdbarch_deprecated_sizeof_call_dummy_words.
2058
2059 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2060
2061 * h8300-tdep.c (h8300_register_byte): Remove.
2062 (h8300h_register_byte): Remove.
2063 (h8300_register_virtual_type): Remove. Substitute by...
2064 (h8300_register_type): New function.
2065 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2066 (h8300h_extract_struct_value_address): Ditto.
2067 (h8300_gdbarch_init): Drop calls to
2068 set_gdbarch_deprecated_register_byte and
2069 set_gdbarch_deprecated_register_virtual_type.
2070 Add call to set_gdbarch_register_type.
2071
2072 2003-06-13 Andrew Cagney <cagney@redhat.com>
2073
2074 * gdbarch.sh: Update comments on registers.
2075 (deprecated_register_byte): Rename register_byte.
2076 (deprecated_register_raw_size): Rename register_raw_size.
2077 (deprecated_register_virtual_size): Rename register_virtual_size.
2078 (deprecated_register_virtual_type): Rename register_virtual_type.
2079 * gdbarch.h, gdbarch.c: Re-generate.
2080 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2081 * vax-tdep.c (vax_gdbarch_init): Update.
2082 * v850-tdep.c (v850_gdbarch_init): Update.
2083 * sparc-tdep.c (sparc_gdbarch_init): Update.
2084 * sh-tdep.c (sh_gdbarch_init): Update.
2085 * s390-tdep.c (s390_gdbarch_init): Update.
2086 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2087 * ns32k-tdep.c: Update.
2088 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2089 * mips-tdep.c (mips_gdbarch_init): Update.
2090 * mcore-tdep.c (mcore_gdbarch_init): Update.
2091 * m68k-tdep.c (m68k_gdbarch_init): Update.
2092 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2093 * ia64-tdep.c (ia64_gdbarch_init): Update.
2094 * hppa-tdep.c (hppa_gdbarch_init): Update.
2095 * h8300-tdep.c (h8300_gdbarch_init): Update.
2096 * frv-tdep.c (frv_gdbarch_init): Update.
2097 * cris-tdep.c (cris_gdbarch_init): Update.
2098 * avr-tdep.c (avr_gdbarch_init): Update.
2099 * alpha-tdep.c (alpha_gdbarch_init): Update.
2100 * arm-tdep.c (arm_gdbarch_init): Update.
2101
2102 2003-06-13 Andrew Cagney <cagney@redhat.com>
2103
2104 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2105 mips_o32_use_struct_convention with always_use_struct_convention.
2106
2107 2003-06-12 David Carlton <carlton@kealia.com>
2108
2109 * cp-namespace.c (cp_set_block_scope): Comment out
2110 processing_has_namespace_info branch.
2111
2112 2003-06-12 Jim Blandy <jimb@redhat.com>
2113
2114 Recognize and skip 64-bit PowerPC Linux linkage functions.
2115 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2116 insn_pattern, insns_match_pattern, d_field, ds_field): New
2117 functions, macros, and types for working with PPC instructions.
2118 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2119 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2120 ppc64_skip_trampoline_code): New functions, variables, and macros
2121 for recognizing and skipping linkage functions.
2122 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2123 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2124
2125 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2126 register offsets for both the 32- and 64-bit interfaces.
2127
2128 Actually finish the job started by my change of 2003-05-29.
2129 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2130 other #definition of this.
2131 (ppc_linux_skip_trampoline_code): Remove declaration.
2132 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2133 static.
2134 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2135 method for GDBARCH.
2136
2137 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2138 'long' on ppc64-*-linux*.
2139
2140 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2141 isn't #defined, assume the register doesn't exist: act as if
2142 tdep->ppc_mq_regnum were -1.
2143
2144 * configure.host, configure.tgt: Add entries for
2145 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2146 powerpc/linux.mt.
2147 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2148 New files.
2149
2150 * arch-utils.c (always_use_struct_convention): New function.
2151 * arch-utils.h (always_use_struct_convention): New prototype.
2152 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2153 (alpha_gdbarch_init): Register always_use_struct_convention,
2154 instead of alpha_use_struct_convention.
2155 * cris-tdep.c (cris_use_struct_convention): Delete.
2156 (cris_gdbarch_init): Register always_use_struct_convention,
2157 instead of cris_use_struct_convention.
2158 * frv-tdep.c (frv_use_struct_convention): Delete.
2159 (frv_gdbarch_init): Register always_use_struct_convention,
2160 instead of frv_use_struct_convention.
2161 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2162 (h8300_gdbarch_init): Register always_use_struct_convention,
2163 instead of h8300_use_struct_convention.
2164 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2165 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2166 instead of mips_o32_use_struct_convention.
2167
2168 2003-06-12 Andrew Cagney <cagney@redhat.com>
2169
2170 * wince.c: Include "mips-tdep.h".
2171 * mips-tdep.h (mips_next_pc): Declare.
2172 * mcore-tdep.c: Make more local functions static.
2173 * Makefile.in (wince.o): Update dependencies.
2174
2175 2003-06-12 David Carlton <carlton@kealia.com>
2176
2177 * symtab.c (lookup_symbol_aux_minsyms): Replace
2178 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2179 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2180 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2181 SYMBOL_NATURAL_NAME.
2182
2183 2003-06-12 Andreas Schwab <schwab@suse.de>
2184
2185 * Makefile.in (tuiDisassem.o): Update dependencies.
2186
2187 2003-06-12 David Carlton <carlton@bactrian.org>
2188
2189 * symtab.h: Delete declaration of make_symbol_overload_list.
2190 Add declaration of lookup_partial_symbol.
2191 * symtab.c (remove_params): Move to cp-support.c.
2192 (overload_list_add_symbol, make_symbol_overload_list)
2193 (sym_return_val_size, sym_return_val_index): Ditto.
2194 (lookup_partial_symbol): Make extern.
2195 * cp-support.h: Add declaration of make_symbol_overload_list.
2196 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2197 symtab.h, and block.h.
2198 (remove_params): Move here from symtab.c.
2199 (overload_list_add_symbol, make_symbol_overload_list)
2200 (sym_return_val_size, sym_return_val_index): Ditto.
2201 * valops.c: Include cp-support.h.
2202 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2203 frame_h, and block_h.
2204 (valops.o): Depend on cp_support_h.
2205
2206 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2207
2208 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2209 substitute by NUM_REGS throughout.
2210 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2211 (h8300s_register_name): New function for H8S registers.
2212 (h8300sx_register_name): Ditto for H8SX registers.
2213 (h8300_print_register): Revise register printing, avoid depending
2214 on 32 bit long.
2215 (h8300_register_byte): Only care for H8/300 registers.
2216 (h8300h_register_byte): New function for any other architecture.
2217 (h8300_register_raw_size): Remove.
2218 (h8300_register_virtual_type): Revise to return actually useful
2219 type.
2220 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2221 (h8300h_extract_struct_value_address): New function for any other
2222 architecture.
2223 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2224 set_gdbarch_register_name, set_gdbarch_register_byte,
2225 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2226 Remove calls to set_gdbarch_deprecated_register_size,
2227 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2228 set_gdbarch_deprecated_max_register_raw_size,
2229 set_gdbarch_register_virtual_size and
2230 set_gdbarch_deprecated_max_register_virtual_size entirely.
2231 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2232 set_gdbarch_long_double_bit.
2233
2234 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2235
2236 * doublest.c (convert_doublest_to_floatformat): When dealing
2237 with the implied integer bit, only alter mant_bits if we are
2238 processing a full 32 bits of mantissa.
2239
2240 2003-06-11 David Carlton <carlton@bactrian.org>
2241
2242 * dictionary.h: New.
2243 * dictionary.c: New.
2244 * block.h: Add opaque declaration for struct dictionary.
2245 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2246 'sym' members.
2247 (BLOCK_DICT): New macro.
2248 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2249 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2250 BLOCK_SHOULD_SORT.
2251 (ALL_BLOCK_SYMBOLS): Update definition.
2252 * Makefile.in (SFILES): Add dictionary.c.
2253 (dictionary_h): New.
2254 (COMMON_OBS): Add dictionary.o.
2255 (dictionary.o): New.
2256 (ada-lang.o): Depend on dictionary_h.
2257 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2258 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2259 (mi-cmd-stack.o): Ditto.
2260 (gdbtk-cmds.o): Update dependencies.
2261 (gdbtk-stack.o): Ditto.
2262 * ada-lang.c: Include dictionary.h.
2263 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2264 (fill_in_ada_prototype, debug_print_block): Ditto.
2265 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2266 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2267 'is_sorted'.
2268 * mdebugread.c: Include dictionary.h.
2269 (struct parse_stack): Delete 'maxsyms' member.
2270 (parse_symbol): Update calls to new_block. Delete calls to
2271 shrink_block. Use dictionary methods.
2272 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2273 Update calls to new_symtab. Don't maintain maxsyms data.
2274 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2275 (add_symbol): Just call dict_add_symbol.
2276 (new_symtab): Delete 'maxsyms' argument.
2277 (new_symtab): Update calls to new_block.
2278 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2279 (shrink_block): Delete function.
2280 (fixup_sigtramp): Update call to new_block. Add symbol via
2281 dict_add_symbol.
2282 * jv-lang.c: Include dictionary.h.
2283 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2284 appropriately. Set class_symtab->free_func. Make sure the
2285 blockvector is big enough to hold two blocks.
2286 (add_class_symtab_symbol): Use dictionary methods.
2287 (free_class_block): New function.
2288 (type_from_class): Replace explicit iteration by
2289 ALL_BLOCK_SYMBOLS.
2290 * symtab.h (struct symtab): Replace 'free_ptr' method by
2291 'free_func'.
2292 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2293 sort_symtab_syms.
2294 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2295 sort_symtab_syms.
2296 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2297 Include dictionary.h.
2298 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2299 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2300 sort_symtab_syms.
2301 * objfiles.c: Include dictionary.h.
2302 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2303 * buildsym.c: Include dictionary.h.
2304 (finish_block): Use dictionary methods.
2305 (end_symtab): Set free_func to NULL, not free_ptr.
2306 * tracepoint.c: Include dictionary.h.
2307 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2308 (scope_info): Ditto.
2309 * stack.c: Include dictionary.h.
2310 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2311 (print_block_frame_labels, print_frame_arg_vars)
2312 (print_frame_args): Ditto.
2313 * symmisc.c (free_symtab_block): Use dictionary methods.
2314 (dump_symtab): Ditto.
2315 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2316 Include dictionary.h.
2317 * symfile.h: Delete declarations of sort_block_syms,
2318 sort_symtab_syms.
2319 * symfile.c (sort_block_syms): Delete.
2320 (sort_symtab_syms): Delete.
2321 * symtab.c: Include dictionary.h.
2322 (lookup_block_symbol): Use dictionary iterators.
2323 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2324 (search_symbols, make_symbol_completion_list): Ditto.
2325 (make_symbol_overload_list): Ditto.
2326 * valops.c (value_of_local): Use dict_empty.
2327 Include dictionary.h.
2328
2329 2003-06-11 J. Brobecker <brobecker@gnat.com>
2330
2331 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2332
2333 2003-06-11 David Carlton <carlton@bactrian.org>
2334
2335 * block.h (BLOCK_SHOULD_SORT): Delete.
2336 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2337 blocks.
2338 * ada-lang.c (ada_add_block_symbols): Ditto.
2339 * symfile.c (sort_block_syms): Delete.
2340 (sort_symtab_syms): Ditto.
2341 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2342 declarations.
2343 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2344 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2345 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2346 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2347 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2348 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2349 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2350
2351 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2352
2353 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2354 bits to 128.
2355
2356 2003-06-11 Andrew Cagney <cagney@redhat.com>
2357
2358 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2359 REGISTER_CONVERTIBLE.
2360 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2361 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2362 * gdbarch.h, gdbarch.c: Re-generate.
2363 * arch-utils.h (deprecated_register_convertible_not): Rename
2364 generic_register_convertible_not.
2365 * arch-utils.c (deprecated_register_convertible_not): Rename
2366 generic_register_convertible.
2367 (legacy_convert_register_p, legacy_register_to_value): Update.
2368 * sh-tdep.c (sh64_push_arguments): Update.
2369 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2370 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2371 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2372 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2373 * arch-utils.c (legacy_value_to_register): Update.
2374 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2375 (rs6000_register_convert_to_raw): Make parameter "from" const.
2376 * mips-tdep.c (mips_gdbarch_init): Update.
2377 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2378 * infcmd.c (default_print_registers_info): Update.
2379 * ia64-tdep.c (ia64_gdbarch_init): Update.
2380 (ia64_register_convert_to_raw): Make parameter "from" const.
2381 * i386-tdep.c (i386_gdbarch_init): Update.
2382 (i386_register_convert_to_raw): Update.
2383
2384 2003-06-11 Andrew Cagney <cagney@redhat.com>
2385
2386 * remote-fileio.c: Include "remote-fileio.h".
2387 * Makefile.in (remote-fileio.o): Update dependencies.
2388 (remote_fileio_h): Fix typo.
2389
2390 2003-06-11 Andrew Cagney <cagney@redhat.com>
2391
2392 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2393 (xstormy16_save_dummy_frame_tos): Make static.
2394 (_initialize_xstormy16_tdep): Add declaration.
2395 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2396 * v850-tdep.c: Make local functions static.
2397 (_initialize_v850_tdep): Add declaration.
2398 * sparc-tdep.c: Make local functions static.
2399 (_initialize_sparc_tdep): Add declaration.
2400 * sh-tdep.c: Make local functions static.
2401 (_initialize_sh_tdep): Add declaration.
2402 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2403 * s390-tdep.c: Make local functions static.
2404 (_initialize_s390_tdep): Add declaration.
2405 * dbxread.c (find_stab_function_addr): Make static.
2406 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2407 * ocd.c (_initialize_remote_ocd): Add declaration.
2408 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2409 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2410 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2411 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2412 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2413 * remote-array.c (_initialize_array): Add declaration.
2414 (_initialize_remote_monitors): Add declaration.
2415 * remote-mips.c: Make local functions static.
2416 (_initialize_remote_mips): Add declaration.
2417 * mcore-tdep.c: Make all local functions static.
2418 (_initialize_mcore_tdep): Add declaration.
2419 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2420 * abug-rom.c (_initialize_abug_rom): Add declaration.
2421 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2422 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2423 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2424 * remote-est.c (_initialize_est): Add declaration.
2425 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2426 (m68hc11_call_dummy_address): Make static.
2427 * ia64-tdep.c: Make local functions static.
2428 (_initialize_ia64_tdep): Add declaration.
2429 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2430 * monitor.c (monitor_wait_filter): Make static.
2431 (_initialize_remote_monitors): Add declaration.
2432 * remote-hms.c (_initialize_remote_hms): Add declaration.
2433 * remote-e7000.c (fetch_regs_from_dump): Make static.
2434 (expect_n): Make static.
2435 (_initialize_remote_e7000): Add declaration.
2436 * ser-e7kpc.c: Always include "defs.h".
2437 (_initialize_ser_e7000pc): Add declaration.
2438 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2439 * cris-tdep.c: Make all but one function static.
2440 (_initialize_cris_tdep): Add declaration.
2441 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2442 * solib.c (update_solib_list): Make static.
2443 (_initialize_solib): Add declaration.
2444 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2445 (_initialize_avr_tdep): Add declaration.
2446 * remote-rdi.c (voiddummy): Make static.
2447 (_initialize_remote_rdi): Add declaration.
2448 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2449 * remote-rdp.c (send_rdp): Make static.
2450 (_initialize_remote_rdp): Add declaration.
2451 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2452
2453 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
2454
2455 * remote-fileio.c: Make ari happy.
2456
2457 2003-06-10 J. Brobecker <brobecker@gnat.com>
2458
2459 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2460 fetching the trailing bytes of the buffer we are about to write.
2461
2462 2003-06-10 Andrew Cagney <cagney@redhat.com>
2463
2464 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2465 * Makefile.in (remote-fileio.o): Update dependencies.
2466 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2467 include <setjmp.h>, or <sys/types.h> conditional on USG.
2468 (remote_fio_jmp_buf): Delete global variable.
2469
2470 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
2471 Martin M. Hunt <hunt@redhat.com>
2472
2473 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2474 (SFILES): Add remote-fileio.c.
2475 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2476 dependencies for building remote.o.
2477 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2478 * remote-fileio.h: New header file defining remote File-I/O interface.
2479 * remote.c (remote_write_bytes, remote_read_bytes): Remove
2480 static storage class.
2481 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2482 'F' packet.
2483 (_initialize_remote): Call initialize_remote_fileio().
2484 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
2485 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2486 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2487 (captured_main): Initialize new ui_files.
2488 * ui-file.c: Add read and fgets input functions.
2489 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2490 (null_file_read): New function.
2491 (ui_file_read): New function.
2492 (set_ui_file_read): New function.
2493 (stdio_file_read): New function.
2494 * ui-file.h: New type ui_file_read_ftype.
2495 (set_ui_file_read): Declare.
2496 (ui_file_read): Declare.
2497
2498 2003-06-09 Andrew Cagney <cagney@redhat.com>
2499
2500 * frame.h (deprecated_unwind_get_saved_register): Rename
2501 generic_unwind_get_saved_register, update comments.
2502 * mips-tdep.c (mips_get_saved_register): Update.
2503 * frame.c (deprecated_unwind_get_saved_register): Update.
2504
2505 2003-06-09 Andrew Cagney <cagney@redhat.com>
2506
2507 * vax-tdep.c (vax_frame_locals_address): Delete function.
2508 (vax_gdbarch_init): Do not set frame_locals_address.
2509 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2510 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2511 * s390-tdep.c (s390_frame_args_address): Delete function.
2512 (s390_gdbarch_init): Do not set frame_args_address or
2513 frame_locals_address.
2514 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2515 (ns32k_gdbarch_init): Do not set frame_locals_address.
2516 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2517 (hppa_frame_locals_address): Delete function.
2518 (hppa_gdbarch_init): Do not set frame_args_address, or
2519 frame_locals_address.
2520 * arm-tdep.c (arm_frame_args_address): Delete.
2521 (arm_frame_locals_address): Delete.
2522 (arm_gdbarch_init): Do not set frame_args_address, or
2523 frame_locals_address.
2524
2525 2003-06-09 Andrew Cagney <cagney@redhat.com>
2526
2527 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2528 * gdbarch.h, gdbarch.c: Re-generate.
2529 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2530 * arch-utils.c (frame_num_args_unknown): Delete function.
2531 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2532 (frame_info): Use FRAME_NUM_ARGS_P.
2533 * arm-tdep.c (arm_frame_num_args): Delete function.
2534 (arm_gdbarch_init): Do not set frame_num_args.
2535 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2536 * hppa-tdep.c (hppa_frame_num_args): Delete function.
2537 (hppa_gdbarch_init): Do not set frame_num_args.
2538 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2539 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2540 frame_num_args to default frame_num_args_unknown.
2541 * v850-tdep.c (v850_gdbarch_init): Ditto.
2542 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2543 * sh-tdep.c (sh_gdbarch_init): Ditto.
2544 * s390-tdep.c (s390_gdbarch_init): Ditto.
2545 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2546 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2547 * mips-tdep.c (mips_gdbarch_init): Ditto.
2548 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2549 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2550 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2551 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2552 * i386-tdep.c (i386_gdbarch_init): Ditto.
2553 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2554 * frv-tdep.c (frv_gdbarch_init): Ditto.
2555 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2556 * cris-tdep.c (cris_gdbarch_init): Ditto.
2557 * avr-tdep.c (avr_gdbarch_init): Ditto.
2558 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2559
2560 2003-06-09 Andrew Cagney <cagney@redhat.com>
2561
2562 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2563 (print_frame_args): Moved to "stack.c".
2564 * stack.c: Include "gdb_assert.h".
2565 (print_frame_nameless_args): Moved from "printcmd.c", made static.
2566 (print_frame_args): Moved from "printcmd.c".
2567 * frame.h (print_frame_args): Delete declaration.
2568 * Makefile.in (stack.o): Update dependencies.
2569
2570 2003-06-08 Andrew Cagney <cagney@redhat.com>
2571
2572 * frame.c (get_prev_frame): Remove reference to
2573 frame_args_address_correct in comments.
2574 * frame-base.c (default_frame_args_address): Delete code
2575 conditional on FRAME_ARGS_ADDRESS_CORRECT.
2576 * vax-tdep.c (vax_frame_args_address_correct): Delete.
2577 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2578 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2579 (vax_frame_args_address_correct): Delete declaration.
2580
2581 2003-06-08 Andrew Cagney <cagney@redhat.com>
2582
2583 * gdbarch.sh (UNWIND_SP): Add.
2584 * gdbarch.h, gdbarch.c: Re-generate.
2585 * frame.c (frame_sp_unwind): New function.
2586 (get_frame_sp): New function.
2587 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2588 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2589 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2590 value.
2591 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2592 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2593
2594 2003-06-08 Andrew Cagney <cagney@redhat.com>
2595
2596 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
2597 REMOTE_BREAKPOINT.
2598 * remote.c: Update.
2599 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
2600 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
2601 * config/m68k/tm-sun3.h: Update.
2602 * config/m68k/tm-m68klynx.h: Update.
2603 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
2604
2605 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
2606 trad_frame". Update comments.
2607 * d10v-tdep.c (struct d10v_unwind_cache): Update.
2608 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
2609 (trad_frame_register_value, trad_frame_prev_register): Update.
2610
2611 2003-06-08 Andrew Cagney <cagney@redhat.com>
2612
2613 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
2614 from GCC's acinclude.m4.
2615 * configure.in: Check for getopt's delcaration.
2616 * aclocal.m4, config.in, configure: Re-generate.
2617 * main.c (error_init): Delete declaration.
2618 * defs.h (error_init): Declare.
2619 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
2620 (rs6000_convert_from_func_ptr_addr): Make static.
2621 (_initialize_rs6000_tdep): Add declaration.
2622 * cli/cli-cmds.c (dont_repeat): Delete declaration.
2623 (show_commands, set_verbose, show_history): Delete declaration.
2624 * top.h (set_verbose): Add declaration.
2625 (show_history, set_history, show_commands): Add declaration.
2626 (do_restore_instream_cleanup): Add declaration.
2627 * objc-lang.c (specialcmp): Make static.
2628 (print_object_command): Make static.
2629 (find_objc_msgsend): Make static.
2630 (find_objc_msgcall_submethod_helper): Make static.
2631 (find_objc_msgcall_submethod): Make static.
2632 (_initialize_objc_language): Add declaration.
2633 (find_implementation_from_class): Make static.
2634 (find_implementation): Make static.
2635 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
2636 * objc-lang.h (lookup_struct_typedef): Add declaration.
2637 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2638 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
2639 (do_restore_user_call_depth): Make static.
2640 (do_restore_instream_cleanup): Delete declaration.
2641 (dont_repeat): Delete declaration.
2642 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
2643 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
2644 * reggroups.c (_initialize_reggroup): Add declaration.
2645 * cp-support.c (_initialize_cp_support): Add declaration.
2646 * cp-abi.c (_initialize_cp_abi): Add declaration.
2647 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
2648 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
2649 (_initialize_gnu_v3_abi): Add declaration.
2650 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
2651 (_initialize_gnu_v2_abi): Add declaration.
2652 * frame-base.c (_initialize_frame_base): Add declaration.
2653 * doublest.c (floatformat_from_length): Make static.
2654 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
2655 * frame.c (create_sentinel_frame): Make static.
2656 (_initialize_frame): Add declaration.
2657 * top.c (do_catch_errors): Make static.
2658 (gdb_rl_operate_and_get_next_completion): Make static.
2659 * typeprint.c: Include "typeprint.h".
2660 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
2661 (sentinel_frame_this_id): Make static.
2662 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
2663 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
2664 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
2665 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
2666 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
2667 * maint.c (maintenance_print_architecture): Make static.
2668 * signals/signals.c (_initialize_signals): Add declaration.
2669 * std-regs.c (_initialize_frame_reg): Add declaration.
2670 * jv-exp.y (push_variable): ISO C definition.
2671 (push_qualified_expression_name): Ditto.
2672 * memattr.c (_initialize_mem): Add declaration.
2673 * remote.c (remote_check_watch_resources): Make static.
2674 (remote_stopped_by_watchpoint): Make static.
2675 (remote_stopped_data_address): Make static.
2676 * d10v-tdep.c (nr_dmap_regs): Make static.
2677 (a0_regnum): Make static.
2678 (d10v_frame_unwind_cache): Make static.
2679 (d10v_frame_p): Make static.
2680 * osabi.c (show_osabi): Make static.
2681 (_initialize_gdb_osabi): Add extern declaration.
2682 * gdbtypes.c (make_qualified_type): Make static.
2683 (safe_parse_type): Make static.
2684 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
2685 * macrotab.c (macro_bcache_free): Make static.
2686 * interps.c (interp_set_quiet): Make static.
2687 (interpreter_exec_cmd): Make static.
2688 * stack.h (select_frame_command): New file.
2689 * stack.c: Include "stack.h".
2690 (select_frame_command_wrapper): Delete function.
2691 (select_frame_command): Make global.
2692 * infcall.c: Include "infcall.h".
2693 * linespec.c: Include "linespec.h".
2694 * symfile.c (sections_overlap): Make static.
2695 * cp-support.h (cp_initialize_namespace): ISO C declaration.
2696 * charset.c (_initialize_charset): Add missing prototype.
2697 * regcache.c (init_legacy_regcache_descr): Make static.
2698 (do_regcache_xfree): Make static.
2699 (regcache_xfer_part): Make static.
2700 (_initialize_regcache): Add missing prototype.
2701 * breakpoint.c (parse_breakpoint_sals): Make static.
2702 (breakpoint_sals_to_pc): Make static.
2703 * interps.h (clear_interpreter_hooks): ISO C declaration.
2704 * Makefile.in (stack_h): Define.
2705 (stack.o, typeprint.o, mi-main.o): Update dependencies.
2706 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
2707
2708 2003-06-08 Andrew Cagney <cagney@redhat.com>
2709
2710 * Makefile.in (d10v-tdep.o): Update dependencies.
2711 (SFILES): Add trad-frame.c.
2712 (trad_frame_h): Define.
2713 (COMMON_OBS): Add trad-frame.o.
2714 (trad-frame.o): Specify dependencies.
2715 * d10v-tdep.c: Include "trad-frame.h".
2716 (saved_regs_unwinder): Delete function.
2717 (d10v_frame_prev_register): Use trad_frame_prev_register.
2718 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
2719 trad_frame", delete "regs" and "prev_sp".
2720 (prologue_find_regs): Use trad-frame.
2721 * trad-frame.h, trad-frame.c: New files.
2722
2723 2003-06-08 Mark Kettenis <kettenis@gnu.org>
2724
2725 * dwarf2cfi.c, dwarf2cfi.h: Remove.
2726
2727 2003-06-07 Adam Fedor <fedor@gnu.org>
2728
2729 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
2730 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
2731 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
2732 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
2733 resolve_msgsend_super, resolve_msgsend_super_stret):
2734 Use it.
2735
2736 2003-06-07 Andrew Cagney <cagney@redhat.com>
2737
2738 * symfile.h: Re-indent, clean up comments.
2739
2740 2003-06-07 Andrew Cagney <cagney@redhat.com>
2741
2742 * inferior.h (deprecated_write_sp): Replace
2743 generic_target_write_sp.
2744 * regcache.c (deprecated_write_sp): Replace
2745 generic_target_write_sp.
2746 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2747 * vax-tdep.c (vax_gdbarch_init): Update.
2748 * v850-tdep.c (v850_gdbarch_init): Update.
2749 * sparc-tdep.c (sparc_gdbarch_init): Update.
2750 * sh-tdep.c (sh_gdbarch_init): Update.
2751 * s390-tdep.c (s390_gdbarch_init): Update.
2752 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2753 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2754 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2755 * mcore-tdep.c (mcore_gdbarch_init): Update.
2756 * m68k-tdep.c (m68k_gdbarch_init): Update.
2757 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2758 * ia64-tdep.c (ia64_gdbarch_init): Update.
2759 * h8300-tdep.c (h8300_gdbarch_init): Update.
2760 * frv-tdep.c (frv_gdbarch_init): Update.
2761 * cris-tdep.c (cris_gdbarch_init): Update.
2762 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2763
2764 2003-06-07 Andrew Cagney <cagney@redhat.com>
2765
2766 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
2767 Assert that PC_REGNUM is valid.
2768 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
2769
2770 2003-06-07 Andrew Cagney <cagney@redhat.com>
2771
2772 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
2773 * gdbarch.h, gdbarch.c: Regenerate.
2774 * mn10300-tdep.c: Include "gdb_assert.h".
2775 (mn10300_read_fp): New function.
2776 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
2777 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
2778 * ia64-tdep.c: Include "gdb_assert.h".
2779 (ia64_read_fp): New function.
2780 (ia64_gdbarch_init): Set deprecated_target_read_fp to
2781 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
2782 * regcache.c (generic_target_read_sp): Delete function.
2783 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
2784 * inferior.h (generic_target_read_sp): Delete declaration.
2785 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
2786 generic_target_read_sp.
2787 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2788 * sparc-tdep.c (sparc_gdbarch_init): Ditto
2789 * sh-tdep.c (sh_gdbarch_init): Ditto.
2790 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2791 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
2792
2793 2003-06-07 Andrew Cagney <cagney@redhat.com>
2794
2795 * gdbarch.sh: Comment each field of startup_gdbarch.
2796 * gdbarch.h, gdbarch.c: Re-generate.
2797
2798 2003-06-07 Andrew Cagney <cagney@redhat.com>
2799
2800 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
2801 * gdbarch.h, gdbarch.c: Re-generate.
2802 * regcache.c: Update comments on read_pc et.al.
2803 (generic_target_read_pc): Delete function.
2804 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
2805 * inferior.h (generic_target_read_pc): Delete declaration.
2806 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
2807 generic_target_read_pc.
2808 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2809 * sh-tdep.c (sh_gdbarch_init): Ditto.
2810 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2811 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2812
2813 2003-06-07 Andrew Cagney <cagney@redhat.com>
2814
2815 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
2816 "index" with "special_local_sect". Use strcmp instead of STREQ.
2817 Append period to coments.
2818
2819 2003-06-06 Mark Mitchell <mark@codesourcery.com>
2820
2821 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
2822 (elfstab_offset_sections): Likewise.
2823 * gdb-stabs.h (stab_section_info): Likewise.
2824 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
2825 * objfiles.c (objfile_relocate): Likewise.
2826 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
2827 * remote.c (get_offsets): Likewise.
2828 (remote_cisco_objfile_relocate): Likewise.
2829 * somread.c (som_symfile_offsets): Likewise.
2830 * symfile.c (alloc_section_addr_info): New function.
2831 (build_section_addr_info_from_section_tab): Use it.
2832 (free_section_addr_info): Adjust.
2833 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
2834 (syms_from_objfile): Allocate local_addr dynamically.
2835 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
2836 dynamically.
2837 (add_symbol_file_command): Allocate sect_opts dynamically.
2838 (reread_symbols): Avoid use of SECT_OFF_MAX.
2839 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
2840 (alloc_section_addr_info): Declare it.
2841 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
2842 * win32-nat.c (solib_symbols_add): Allocate section_addrs
2843 dynamically.
2844 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
2845
2846 2003-06-06 Andrew Cagney <cagney@redhat.com>
2847
2848 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
2849 (d10v_frame_unwind_cache): Do not set "return_pc".
2850
2851 2003-06-06 Michael Snyder <msnyder@redhat.com>
2852
2853 * h8300-tdep.c: Make tidy (long lines).
2854
2855 2003-06-06 Michal Ludvig <mludvig@suse.cz>
2856
2857 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
2858 to regcache_collect().
2859
2860 2003-06-05 J. Brobecker <brobecker@gnat.com>
2861
2862 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
2863 pc_in_sigtramp multiarch method.
2864 (hppa_hpux_som_init_abi): Use it.
2865 (hppa_hpux_elf_init_abi): Likewise.
2866 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
2867 macro has been multiarched.
2868 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
2869 macro here, as hppa64 isn't multiarched yet.
2870
2871 2003-06-05 Andrew Cagney <cagney@redhat.com>
2872
2873 * Makefile.in (value_h): Add $(frame_h).
2874 * value.h: Include "frame.h".
2875 (struct value): Replace "frame_addr" with "frame_id".
2876 (VALUE_FRAME_ID): Replace VALUE_FRAME.
2877 * values.c (allocate_value): Use VALUE_FRAME_ID.
2878 (value_copy): Use VALUE_FRAME_ID.
2879 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
2880 * valops.c (value_assign): Update. Use frame_find_by_id.
2881
2882 2003-06-05 Michal Ludvig <mludvig@suse.cz>
2883
2884 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
2885 in each pass.
2886
2887 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
2888
2889 * thread-db.c (check_event): For create/death event breakpoints,
2890 loop through all messages to ensure that we read the message
2891 corresponding to the breakpoint we are at.
2892
2893 2003-06-04 Michael Snyder <msnyder@redhat.com>
2894
2895 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
2896
2897 2003-06-04 Mark Kettenis <kettenis@gnu.org>
2898
2899 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
2900 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
2901 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
2902 when handling .eh_frame sections.
2903
2904 2003-06-04 J. Brobecker <brobecker@gnat.com>
2905
2906 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
2907 prepare_to_proceed procedure instead of the hppa-specific one.
2908 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
2909
2910 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
2911
2912 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
2913 * config.in: Regenerated.
2914 * configure.in: Add test for syscall function and check for
2915 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
2916 * configure: Regenerated.
2917 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
2918 <sys/syscall.h>.
2919 (kill_lwp): New function that uses tkill syscall or
2920 uses kill, depending on whether threading model is nptl or not.
2921 All callers of kill() changed to use kill_lwp().
2922 (lin_lwp_wait): Make special check when WIFEXITED occurs to
2923 see if all threads have already exited in the nptl model.
2924 (stop_and_resume_callback): New callback function used by the
2925 lin_lwp_wait thread exit handling code.
2926 (stop_wait_callback): Check for threads already having exited and
2927 delete such threads fromt the lwp list when discovered.
2928 (stop_callback): Don't assert retcode of kill call.
2929
2930 Roland McGrath <roland@redhat.com>
2931 * i386-linux-nat.c (ps_get_thread_area): New function needed by
2932 nptl libthread_db.
2933
2934 2003-06-03 Richard Henderson <rth@redhat.com>
2935
2936 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
2937 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
2938 (alpha_sigtramp_frame_prev_register): Likewise.
2939 (alpha_heuristic_frame_prev_register): Likewise.
2940 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
2941
2942 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
2943 alpha-specific register id names.
2944 (alpha_mdebug_frame_unwind_cache): Likewise.
2945 (alpha_mdebug_frame_prev_register): Likewise.
2946
2947 2003-06-03 Richard Henderson <rth@redhat.com>
2948
2949 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
2950 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
2951 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
2952 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
2953 unwind routines.
2954 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2955 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2956 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2957
2958 * alpha-linux-tdep.c: Remove unnecessary includes.
2959 * Makefile.in (alpha-linux-tdep.o): Update.
2960
2961 2003-06-03 Richard Henderson <rth@redhat.com>
2962
2963 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
2964 (alphabsd_fill_fpreg): Likewise.
2965
2966 2003-06-03 J. Brobecker <brobecker@gnat.com>
2967
2968 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
2969 references to struct frame_info fields by calls to the equivalent
2970 accessors. Necessary now that frame_info is opaque.
2971
2972 2003-06-03 J. Brobecker <brobecker@gnat.com>
2973
2974 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
2975 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
2976 structure, field no longer exists.
2977
2978 2003-06-03 J. Brobecker <brobecker@gnat.com>
2979
2980 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2981 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
2982
2983 2003-06-03 J. Brobecker <brobecker@gnat.com>
2984
2985 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
2986 references to struct frame_info fields by calls to the equivalent
2987 accessors. Necessary now that frame_info is opaque.
2988
2989 2003-06-03 J. Brobecker <brobecker@gnat.com>
2990
2991 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
2992 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
2993 structure, field no longer exists.
2994
2995 2003-06-03 Theodore A. Roth <troth@openavr.org>
2996
2997 * remote.c (init_remote_state): Compute sizeof_g_packet by
2998 accumulation of the size of all registers instead of blindly using
2999 DEPRECATED_REGISTER_BYTES.
3000
3001 2003-06-03 Michael Snyder <msnyder@redhat.com>
3002
3003 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3004 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3005 for h8300sx.
3006
3007 2003-06-03 J. Brobecker <brobecker@gnat.com>
3008
3009 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3010 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3011
3012 2003-06-03 Andrew Cagney <cagney@redhat.com>
3013
3014 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3015 (sparc_convert_to_raw): Delete function.
3016 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3017 register_convert_to_virtual.
3018
3019 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3020
3021 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3022 layer if not dealing with a statically-linked threaded program.
3023
3024 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3025
3026 * solib.c (solib_open): Update comment to reflect actual search order.
3027
3028 2003-06-03 Andrew Cagney <cagney@redhat.com>
3029
3030 * frame.c (get_frame_memory_signed): New function.
3031 (get_frame_memory, get_frame_memory_unsigned): New function.
3032 (get_frame_arch): New function.
3033 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3034 (get_frame_memory, get_frame_unsigned_memory): Declare.
3035 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3036 get_frame_memory_unsigned and get_frame_arch.
3037 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3038
3039 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3040
3041 * MAINTAINERS (write after approval): Add myself.
3042
3043 2003-06-03 Jim Blandy <jimb@redhat.com>
3044
3045 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3046 elements of gregset_t are 64 bits each, but access registers
3047 are still 32 bits, so they're packed two per gregset_t
3048 element. Unpack/pack them properly.
3049
3050 2003-06-02 David Carlton <carlton@bactrian.org>
3051
3052 * linespec.c (find_methods): Break out code into
3053 add_matching_methods and add_constructors.
3054 (add_matching_methods): New.
3055 (add_constructors): Ditto.
3056
3057 2003-06-02 Andrew Cagney <cagney@redhat.com>
3058
3059 * sparc-tdep.c (sparc_print_registers): Delete call to
3060 REGISTER_CONVERTIBLE.
3061 (sparc_gdbarch_init): Do not set register_convertible.
3062 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3063 * frv-tdep.c (frv_gdbarch_init): Ditto.
3064 * cris-tdep.c (cris_gdbarch_init): Ditto.
3065
3066 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3067
3068 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3069 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3070 (syms_from_objfile): Ditto.
3071
3072 2003-06-03 Andreas Schwab <schwab@suse.de>
3073
3074 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3075 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3076
3077 2003-06-02 Richard Henderson <rth@redhat.com>
3078
3079 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3080 a member of all_reggroup.
3081
3082 2003-06-02 Richard Henderson <rth@redhat.com>
3083
3084 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3085 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3086 (alpha_lds, alpha_sts): New.
3087 (alpha_convert_register_p): Change from _register_convertible.
3088 (alpha_register_to_value): Change from _convert_to_virtual;
3089 restructure and fail for type sizes other than 4 or 8.
3090 (alpha_value_to_register): Similarly.
3091 (alpha_extract_return_value): Use alpha_sts.
3092 (alpha_store_return_value): Use alpha_lds.
3093 (alpha_gdbarch_init): Update hooks.
3094
3095 2003-06-02 Richard Henderson <rth@redhat.com>
3096
3097 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3098 regnum identifiers.
3099 (alpha_sigtramp_register_address): Likewise.
3100
3101 2003-06-02 Richard Henderson <rth@redhat.com>
3102
3103 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3104 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3105 * alpha-tdep.h: Declare them.
3106
3107 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3108 Remove zerobuf. Don't error on UNIQUE.
3109 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3110 (ALPHA_REGSET_UNIQUE): Provide default.
3111 (supply_gregset): Use alpha_supply_int_regs.
3112 (fill_gregset): Use alpha_fill_int_regs.
3113 (supply_fpregset): Use alpha_supply_fp_regs.
3114 (fill_fpregset): Use alpha_fill_fp_regs.
3115 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3116 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3117 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3118 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3119 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3120 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3121
3122 2003-06-02 Richard Henderson <rth@redhat.com>
3123
3124 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3125
3126 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3127 (alpha_store_return_value): Likewise.
3128
3129 2003-06-02 David Carlton <carlton@math.stanford.edu>
3130
3131 * block.c (contained_in): Add 'const' to arguments.
3132 (block_function): Ditto.
3133 * block.h: Update declarations for block_function and
3134 contained_in.
3135
3136 2003-06-02 David Carlton <carlton@math.stanford.edu>
3137
3138 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3139 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3140 * p-valprint.c (pascal_val_print): Ditto.
3141 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3142
3143 2003-06-02 Richard Henderson <rth@redhat.com>
3144
3145 * alpha-tdep.c (alpha_push_dummy_call): Use
3146 builtin_type_ieee_double_little instead of builtin_type_double.
3147
3148 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3149 sign-extension of 32-bit values.
3150 (alpha_store_return_value): Similarly.
3151
3152 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3153 (alpha_extract_return_value): Likewise.
3154 (alpha_store_return_value): Likewise.
3155
3156 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3157 (alpha_store_return_value): Error on IEEE Quad floats.
3158
3159 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3160 (alpha_extract_struct_value_address): Likewise.
3161 (alpha_store_return_value): Likewise.
3162 (alpha_store_struct_return): Remove.
3163 (alpha_gdbarch_init): Update hook registration to match.
3164
3165 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3166 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3167 macros where appropriate.
3168 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3169 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3170
3171 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3172 for SP, GP; void_func_ptr for PC; non-language-specific types
3173 for all others.
3174 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3175
3176 2003-06-02 Richard Henderson <rth@redhat.com>
3177
3178 * top.h (lim_at_start): Declare.
3179 * main.c (captured_main): Set it.
3180 * top.c (lim_at_start): Define.
3181 (command_loop): Use it instead of &environ.
3182 * event-top.c (command_handler): Likewise.
3183
3184 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3185
3186 * mipsnbsd-tdep.c: Update copyright years.
3187 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3188
3189 2003-06-01 Richard Henderson <rth@redhat.com>
3190
3191 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3192 (alpha-linux-tdep.o): Update dependencies.
3193 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3194 * alpha-mdebug-tdep.c: Remove unneeded includes.
3195
3196 2003-06-01 Richard Henderson <rth@redhat.com>
3197
3198 * alpha-tdep.c (alpha_register_reggroup_p): New.
3199 (alpha_gdbarch_init): Register it.
3200
3201 2003-06-02 Andrew Cagney <cagney@redhat.com>
3202
3203 * dwarfread.c: Eliminate "register"
3204 (decode_die_type): Eliminate assignment within "if".
3205 (struct_type, decode_array_element_type): Ditto.
3206 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3207 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3208 (decode_modified_type, completedieinfo): Ditto.
3209 * block.c: Eliminate "register".
3210 (blockvector_for_pc_sect): Eliminate assignment within "if".
3211 * cp-support.h (struct symbol): Opaque declaration.
3212 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3213
3214 2003-06-01 Richard Henderson <rth@redhat.com>
3215
3216 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3217 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3218
3219 2003-06-01 Adam Fedor <fedor@gnu.org>
3220
3221 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3222 * gdbarch.[ch]: Regenerate.
3223 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3224 (hppa_gdbarch_init): Set it in the gdbarch vector.
3225 * i386-tdep.c (i386_fetch_pointer_argument): New
3226 (i386_gdbarch_init): Set it into gdbarch.
3227 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3228 (rs6000_gdbarch_init): Set it in gdbarch.
3229 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3230 (sparc_gdbarch_init): Set it in gdbarch.
3231
3232 2003-06-01 Andrew Cagney <cagney@redhat.com>
3233
3234 * defs.h (extract_address): Delete declaration.
3235 * findvar.c (extract_address): Delete function.
3236 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3237 extract_address with the inline equivalent,
3238 extract_unsigned_integer.
3239 (xstormy16_extract_struct_value_address): Ditto.
3240 (xstormy16_pointer_to_address): Ditto.
3241 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3242 * v850-tdep.c (v850_push_arguments): Ditto.
3243 (v850_extract_return_value): Ditto.
3244 (v850_extract_struct_value_address): Ditto.
3245 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3246 (sparcnbsd_get_longjmp_target_64): Ditto.
3247 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3248 (get_longjmp_target): Ditto.
3249 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3250 (sh64_extract_struct_value_address): Ditto.
3251 (sh_push_arguments): Ditto.
3252 (sh64_push_arguments): Ditto.
3253 * remote-vxsparc.c (vx_read_register): Ditto.
3254 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3255 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3256 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3257 * mipsv4-nat.c (get_longjmp_target): Ditto.
3258 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3259 * mips-nat.c (get_longjmp_target): Ditto.
3260 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3261 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3262 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3263 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3264 * irix5-nat.c (get_longjmp_target): Ditto.
3265 * irix4-nat.c (get_longjmp_target): Ditto.
3266 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3267 (ia64_push_arguments): Ditto.
3268 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3269 * h8300-tdep.c (h8300_push_arguments): Ditto.
3270 (h8300_store_return_value): Ditto.
3271 (h8300_extract_struct_value_address): Ditto.
3272 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3273 (frv_push_arguments): Ditto.
3274 * avr-tdep.c (avr_pointer_to_address): Ditto.
3275 (avr_push_arguments): Ditto.
3276 * arm-tdep.c (arm_push_dummy_call): Ditto.
3277 (arm_get_longjmp_target): Ditto.
3278 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3279 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3280 (alpha_get_longjmp_target): Ditto.
3281
3282 * solib-irix.c (extract_mips_address): Inline extract_address,
3283 replacing it with extract_signed_integer.
3284 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3285 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3286 (first_link_map_member, open_symbol_file_object): Ditto.
3287 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3288 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3289 (LM_NEXT, LM_NAME): Ditto.
3290
3291 2003-06-01 Richard Henderson <rth@redhat.com>
3292
3293 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3294 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3295 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3296 (alpha_cannot_store_register): Likewise.
3297 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3298 * alpha-nat.c (supply_gregset): Likewise.
3299 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3300
3301 2003-06-01 Andrew Cagney <cagney@redhat.com>
3302
3303 * infcall.c (call_function_by_hand): Update comment on
3304 DEPRECATED_DUMMY_WRITE_SP.
3305
3306 * mips-tdep.c (mips_gdbarch_init): Do not set
3307 deprecated_dummy_write_sp.
3308 (mips_eabi_push_dummy_call): Set the SP register.
3309 (mips_o64_push_dummy_call): Set the SP register.
3310 (mips_o32_push_dummy_call): Set the SP register.
3311 (mips_n32n64_push_dummy_call): Set the SP register.
3312
3313 2003-06-01 Richard Henderson <rth@redhat.com>
3314
3315 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3316 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3317 (supply_gregset): Likewise.
3318 * alpha-tdep.c (alpha_store_return_value): Likewise.
3319 (alpha_get_longjmp_target): Likewise.
3320 (alpha_register_name): Constify array.
3321 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3322 deprecated_register_size, deprecated_register_bytes,
3323 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3324 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3325 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3326
3327 2003-06-01 Richard Henderson <rth@redhat.com>
3328
3329 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3330 from arg_reg_buffer to regcache to avoid double conversion.
3331
3332 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3333
3334 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3335 SP_REGNUM.
3336 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3337 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3338
3339 2003-06-01 Richard Henderson <rth@redhat.com>
3340
3341 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3342 (decode_frame_entry): Set it. Skip FDE augmentation.
3343
3344 2003-06-01 Richard Henderson <rth@redhat.com>
3345
3346 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3347 not overlapping PC_REGNUM.
3348
3349 2003-06-01 Richard Henderson <rth@redhat.com>
3350
3351 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3352 alpha_push_arguments. Don't dump argument register data to
3353 the target stack. Fix float and 128-bit long double semantics.
3354 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3355 (alpha_fix_call_dummy): Remove.
3356 (alpha_call_dummy_words): Remove.
3357 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3358
3359 2003-06-01 Richard Henderson <rth@redhat.com>
3360
3361 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3362
3363 2003-06-01 Andrew Cagney <cagney@redhat.com>
3364
3365 * mips-tdep.c (is_mips16_addr): New function.
3366 (make_mips16_addr, unmake_mips16_addr): New functions.
3367 (pc_is_mips16, mips_fetch_instruction): Use.
3368 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3369 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3370 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3371 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3372 TARGET_MIPS.
3373 * config/mips/tm-mips.h: Update copyright.
3374 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3375 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3376 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3377 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3378 (TM_PRINT_INSN_MACH): Delete.
3379 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3380
3381 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3382 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3383 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3384 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3385 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3386 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3387 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3388 mips*-*-riscos* and mips*-*-sysv* onto mips.
3389 * config/mips/mips64.mt: New file.
3390 * config/mips/mips.mt: New file.
3391 * config/mips/littlemips.mt: Delete file.
3392 * config/mips/decstation.mt: Delete file.
3393 * config/mips/vr4300el.mt: Delete file.
3394 * config/mips/vr5000el.mt: Delete file.
3395 * config/mips/vr5000.mt: Delete file.
3396 * config/mips/vr4100.mt: Delete file.
3397 * config/mips/vr4xxxel.mt: Delete file.
3398 * config/mips/vr4300.mt: Delete file.
3399 * config/mips/vr4xxx.mt: Delete file.
3400 * config/mips/bigmips.mt: Delete file.
3401 * config/mips/bigmips64.mt: Delete file.
3402 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3403 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3404 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3405 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3406 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3407 "tm-bigmips.h".
3408 * config/mips/tm-irix3.h: Ditto.
3409 * config/mips/tm-mipsv4.h: Ditto.
3410 * config/mips/tm-embed.h: Ditto.
3411 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3412 "tm-bigmips64.h".
3413 * config/mips/tm-vr5000el.h: Delete file.
3414 * config/mips/tm-tx39l.h: Delete file.
3415 * config/mips/tm-vr4300el.h: Delete file.
3416 * config/mips/tm-vr4xxxel.h: Delete file.
3417 * config/mips/tm-vr4300.h: Delete file.
3418 * config/mips/tm-vr4100.h: Delete file.
3419 * config/mips/tm-vr4xxx.h: Delete file.
3420 * config/mips/tm-vr5000.h: Delete file.
3421 * config/mips/tm-embedl64.h: Delete file.
3422 * config/mips/tm-embedl.h: Delete file.
3423 * config/mips/tm-embed64.h: Delete file.
3424 * config/mips/tm-bigmips64.h: Delete file.
3425 * config/mips/tm-bigmips.h: Delete file.
3426
3427 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3428
3429 Fix gdb/1216.
3430 * shnbsd-nat.c: Include "sh-tdep.h".
3431
3432 From Richard Henderson <rth@redhat.com>:
3433 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3434
3435 2003-05-31 Andrew Cagney <cagney@redhat.com>
3436
3437 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3438 forward declaration.
3439 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3440 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3441 (mips_find_saved_regs): Use set_reg_offset.
3442 (mips_frame_init_saved_regs): Delete function.
3443 (mips_pop_frame): Call mips_find_saved_regs instead of
3444 DEPRECATED_FRAME_INIT_SAVED_REGS.
3445
3446 2003-05-31 Andrew Cagney <cagney@redhat.com>
3447
3448 * mips-tdep.c (mips_gdbarch_init): Do not set
3449 deprecated_max_register_raw_size, register_virtual_size, and
3450 deprecated_max_register_virtual_size.
3451
3452 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3453
3454 * i386-tdep.c: Include "dwarf2-frame.h".
3455 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3456 * Makefile.in (i386-tdep.o): Update dependencies.
3457
3458 * dwarf2-frame.c, dwarf2-frame.h: New files.
3459 * Makefile.in (SFILES): Add dwarf2-frame.c.
3460 (dwarf2_frame_h): Define.
3461 (COMMON_OBS): Add dwarf2-frame.o.
3462 (dwarf2-frame.o): Add dependencies.
3463
3464 2003-05-31 Andreas Jaeger <aj@suse.de>
3465
3466 * x86-64-linux-nat.c: Fix comment.
3467
3468 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3469
3470 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3471 function signature.
3472
3473 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3474 have a sigcontext_addr handler.
3475 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3476 sigcontext_addr handler.
3477
3478 2003-05-31 Andrew Cagney <cagney@redhat.com>
3479
3480 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3481 (print_fp_register_row): Replace do_fp_register_row.
3482 (mips_print_fp_register): Add "file" and "frame" parameters.
3483 (mips_print_register): Add "file" and "frame" parameters.
3484 (mips_print_registers_info): Replace mips_do_registers_info.
3485 (mips_gdbarch_init): Set print_registers_info instead of
3486 deprecated_do_registers_info.
3487 (mips_read_fp_register_single): Add "frame" parameter.
3488 (mips_read_fp_register_double): Add "frame" parameter.
3489
3490 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3491
3492 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3493 Fixes a bug where GDB would print the wrong register names for
3494 targets without SSE.
3495
3496 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3497 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3498 registers.
3499
3500 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3501 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3502 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3503 TDEP->sc_sp_offset.
3504
3505 From Michal Ludvig <mludvig@suse.cz>:
3506 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3507 and `sc_num_regs'.
3508 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3509 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3510 I386_ST0_REGNUM): Move here from...
3511 * i386-tdep.c: ... here.
3512 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3513 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3514 registers if possible.
3515 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3516 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3517 Remove variables.
3518 (i386bsd_sc_reg_offset): New variable.
3519 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3520 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3521 TDEP->sc_sp_offset.
3522 (i386fbsd_sc_reg_offset): New variable.
3523 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3524 TDEP->sc_num_regs.
3525 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3526 variables.
3527 (i386fbsd4_sc_reg_offset): New variable.
3528 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3529 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3530 TDEP->sc_sp_offset.
3531 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3532 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3533 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3534 Remove variables.
3535 (i386nbsd_sc_reg_offset): New variable.
3536 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3537 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3538 TDEP->sc_sp_offset.
3539 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3540 Remove variables.
3541 (i386obsd_sc_reg_offset): New variable.
3542 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3543 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3544 TDEP->sc_sp_offset.
3545 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3546 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
3547 for frame pointer offset in `struct sigcontext'.
3548
3549 2003-05-31 Andrew Cagney <cagney@redhat.com>
3550
3551 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3552 architecture methods call_dummy_words, sizeof_call_dummy_words,
3553 push_return_address, store_struct_return, and fix_call_dummy. Set
3554 push_dummy_call instead of deprecated_push_arguments.
3555 (mips_store_struct_return): Delete function.
3556 (mips_fix_call_dummy): Delete function.
3557 (mips_push_return_address): Delete function.
3558 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3559 RA_REGNUM and T9_REGNUM.
3560 (mips_n32n64_push_dummy_call): Ditto for
3561 mips_n32n64_push_arguments.
3562 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3563 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3564
3565 2003-05-31 Andrew Cagney <cagney@redhat.com>
3566
3567 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
3568 "dummy_addr" to "bp_addr".
3569 * infcall.c (call_function_by_hand): Pass "funaddr" to
3570 gdbarch_push_dummy_call.
3571 * gdbarch.h, gdbarch.c: Re-generate.
3572 * i386-tdep.c (i386_push_dummy_call): Update.
3573 * arm-tdep.c (arm_push_dummy_call): Update.
3574 * d10v-tdep.c (d10v_push_dummy_call): Update.
3575
3576 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3577
3578 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3579 variable declarations.
3580 (x86_64_register_number, x86_64_register_name): Remove prototypes.
3581 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3582 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3583 x86_64_init_frame_pc, x86_64_init_frame_pc,
3584 x86_64_function_has_prologue): Remove prototypes.
3585 (X86_64_NUM_GREGS): New define.
3586 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3587 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
3588 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3589 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3590 XMM1_REGNUM): Remove defines.
3591 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3592 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3593 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3594 X86_64_XMM1_REGNUM): New defines.
3595 (struct x86_64_register_info): Renamed from `struct
3596 register_info'. Remove `size' member.
3597 (x86_64_register_info_table): Remove variable.
3598 (x86_64_register_info): New variable.
3599 (X86_64_NUM_REGS): New define.
3600 (X86_64_NUM_GREGS): Remove define.
3601 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
3602 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
3603 Remove variables.
3604 (x86_54_dwarf2_reg_to_regnum): Remove function.
3605 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
3606 (x86_64_dwarf_reg_to_regnum): New function.
3607 (x86_64_register_name): Rewrite.
3608 (x86_64_register_raw_size): Remove function.
3609 (x86_64_register_byte_table): Remove variable.
3610 (x86_64_register_byte): Remove function.
3611 (x86_64_register_virtual_type): Remove function.
3612 (x86_64_register_type): New function.
3613 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
3614 x86_64_register_convert_to_raw): Remove functions.
3615 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
3616 (x86_64_use_struct_convention): Make static. Adjust for renamed
3617 defines.
3618 (x86_64_frame_init_saved_regs): Remove function.
3619 (x86_64_push_arguments): Make static. Change to accept a regcache
3620 as argument.
3621 (x86_64_store_return_value, x86_64_extract_return_value): Make
3622 static. Rewrite based on i386 counterparts.
3623 (x86_64_push_dummy_call): New function.
3624 (X86_64_NUM_SAVED_REGS): New define.
3625 (x86_64_register_number): Remove function.
3626 (x86_64_store_struct_return): Remove function.
3627 (x86_64_frameless_function_invocation,
3628 x86_64_function_has_prologue): Remove functions.
3629 (PROLOG_BUFSIZE): Remove define.
3630 (struct x86_64_frame_cache): New structure.
3631 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
3632 x86_64_frame_cache, x86_64_frame_this_id,
3633 x86_64_frame_prev_register, x86_64_frame_p,
3634 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
3635 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
3636 functions.
3637 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
3638 variables.
3639 (x86_64_skip_prologue): Rewrite in terms of
3640 x86_64_analyze_prologue.
3641 (x86_64_frame_base_address): New function.
3642 (x86_64_frame_base): New variable.
3643 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
3644 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
3645 set deprecated_fp_regnum, deprecated_register_size,
3646 deprecated_register_bytes, register_raw_size, register_byte,
3647 register_virtual_type, register_convertiable,
3648 register_convert_to_virtual, convert_to_raw,
3649 deprecated_get_saved_register, deprecated_target_read_fp,
3650 deprecated_push_arguments, deprecated_push_return_address,
3651 deprecated_pop_frame, deprecated_store_struct_return,
3652 deprecated_frame_init_saved_regs, deprecated_frame_chain,
3653 frameless_function_invocation, deprecated_frame_saved_pc,
3654 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
3655 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
3656 deprecated_init_frame_pc and virtual_frame_pointer. Call
3657 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
3658 and x86_64_frame_p. Call frame_base_set_default to register
3659 x86_64_frame_base.
3660 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
3661 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
3662 (_initialize_x86_64_tdep): Remove function.
3663 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
3664 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
3665 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
3666 define.
3667 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
3668 (x86_64_linux_sigcontext_addr): Rewrite.
3669 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
3670 x86_64_linux_frame_saved_pc): Remove functions.
3671 (x86_64_linux_pc_in_sigtramp): Renamed from
3672 x86_64_linux_in_sigtramp. Try harder to recognize a signal
3673 trampoline.
3674 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
3675 Remove_functions.
3676 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
3677 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3678 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
3679 (x86_64_regmap): Rename to regmap.
3680 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
3681 x86_64_num_gregs.
3682 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
3683 x86_64_regmap.
3684 (x86_64_fxsave_offset): Remove function.
3685 (supply_fpregset): Simply call x86_64_supply_fxsave.
3686 (fill_fpregset): Simply call x86_64_fill_fxsave.
3687 (fetch_inferior_registers, store_inferior_registers): Avoid
3688 asignment in if-statement.
3689 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
3690 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
3691 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
3692 (fetch_core_registers): Remove function.
3693 (linux_elf_core_fns): Remove.
3694 (offsetoff): Don't define.
3695 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
3696 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
3697 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
3698 add core-regset.o.
3699 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
3700 protection against multiple includes instead of NM_X86_64_h. Add
3701 various comments. Include "config/nm-linux.h". Don't include
3702 <signal.h>.
3703 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
3704 GET_THREAD_SIGNALS): Remove defines.
3705 (x86_64_register_u_addr, kernel_u_size,
3706 lin_thread_get_thread_signals): Remove prototypes.
3707 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
3708 [HAVE_LINK_H]: Don't include "solib.h".
3709 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
3710 * config/i386/tm-x86-64linux.h: Fix comments.
3711 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
3712 x86-64-tdep.o): Update dependencies.
3713
3714 2003-05-30 Andrew Cagney <cagney@redhat.com>
3715
3716 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
3717 Change parameter type to a "struct regcache *".
3718
3719 * gdbarch.sh: Regardless of the multi-arch level, always define
3720 the macro when not already defined.
3721 * gdbarch.h, gdbarch.c: Re-generate.
3722
3723 2003-05-30 Richard Henderson <rth@redhat.com>
3724
3725 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
3726 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
3727 (alpha_mdebug_frame_this_id): Likewise.
3728 (alpha_mdebug_frame_prev_register): Likewise.
3729 (alpha_mdebug_frame_base_address): Likewise.
3730 (alpha_mdebug_frame_locals_address): Likewise.
3731 (alpha_mdebug_frame_args_address): Likewise.
3732 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
3733 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
3734 (alpha_heuristic_frame_unwind_cache): Make static; add missing
3735 loop increment.
3736 (alpha_heuristic_frame_this_id): Make static.
3737 (alpha_heuristic_frame_prev_register): Likewise.
3738 (alpha_heuristic_frame_base_address): Likewise.
3739 * alpha-tdep.h: Update.
3740
3741 2003-05-30 Mark Kettenis <kettenis@gnu.org>
3742
3743 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
3744 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
3745 defenitions.
3746 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
3747 * i386-tdep.c: Mark functions that are 64-bit safe as such.
3748 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3749 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3750 I386_ST0_REGNUM): New defines.
3751 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
3752 codestream_get): Remove define.
3753 (codestream_next_addr, condestream_addr, condestream_buf,
3754 codestream_off, codestream_cnt): Remove variables.
3755 (codestream_fill, codestream_seek, codestream_read): Remove
3756 functions.
3757 (i386_follow_jump): Rewrite to avoid usage of removed codestream
3758 functionality.
3759 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
3760 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
3761 i386_frame_saved_pc, i386_saved_pc_after_call,
3762 i386_frame_num_args, i386_frame_init_saved_regs,
3763 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
3764 i386_push_arguments): Remove functions.
3765 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
3766 functionality. Use i386_analyze_prologue instead of
3767 i386_get_frame_setup.
3768 (I386_NUM_SAVED_REGS): New define.
3769 (struct i386_frame_cache): New structure.
3770 (i386_alloc_frame_cache, i386_analyze_struct_return,
3771 i386_skip_probe, i386_analyze_frame_setup,
3772 i386_analyze_register_saves, i386_analyze_prologue,
3773 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
3774 i386_frame_prev_register, i386_sigtramp_frame_cache,
3775 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
3776 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
3777 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
3778 New functions.
3779 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
3780 New variables.
3781 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
3782 I386_EAX_REGNUM and I386_EDX_REGNUM.
3783 (i386_extract_return_value, i386_store_return_value): Use
3784 I386_ST0_REGNUM where appropriate.
3785 (i386_extract_struct_value_address): Rewrite to use extract_address.
3786 (i386_svr4_pc_in_sigtramp): Add comment.
3787 (i386_svr4_sigcontext_addr): Rewrite.
3788 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
3789 TDEP->sc_sp_offset.
3790 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
3791 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
3792 of new defines. Set push_dummy_call, don't set
3793 deprecated_push_arguments, deprecated_push_return_address,
3794 deprecated_pop_frame. Don't set parm_boundary. Don't set
3795 deprecated_frame_chain, deprecated_frame_saved_pc,
3796 deprecated_saved_pc_after_call. Set unwind_dummy_id,
3797 save_dummy_frame_tos, unwind_pc. Call
3798 frame_unwind_append_predicate and frame_base_set_default. Don't
3799 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
3800 Don't set frameless_function_invocation. Don't set
3801 deprecated_register_bytes, deprecated_register_size,
3802 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
3803 * i386-linux-tdep.c: Fix formatting in some comments.
3804 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
3805 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
3806 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
3807 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
3808 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
3809 redundant parentheses.
3810 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
3811 (i386_linux_sigcontext_addr): Use it. Rewrite.
3812 (find_minsym_and_objfile): Change name of second argument.
3813 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
3814 changed. Use frame_pc_unwind instead of
3815 DEPRECATED_SAVED_PC_AFTER_CALL.
3816 (i386_linux_init_abi): Don't set deprecated_register_bytes.
3817 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
3818 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
3819 unwinder.
3820 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
3821 "dummy-frame.h".
3822 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
3823 (_initialize_i386_cygwin_tdep): New prototype.
3824 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
3825 deprecated_frame_chain_valid.
3826 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
3827 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3828 Rely on the SVR4 defaults.
3829 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
3830 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
3831
3832 2003-05-30 Andrew Cagney <cagney@redhat.com>
3833
3834 * infcall.c (call_function_by_hand): Always call
3835 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
3836
3837 2003-05-30 Richard Henderson <rth@redhat.com>
3838
3839 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
3840 increment.
3841
3842 2003-05-29 Jim Blandy <jimb@redhat.com>
3843
3844 Use gdbarch methods for solib stuff on PowerPC Linux.
3845 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
3846 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
3847 show through.
3848 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3849 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
3850 giving the same effect as the #definitions above.
3851
3852 2003-05-29 Adam Fedor <fedor@gnu.org>
3853
3854 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
3855 (find_implementation_from_class): Replace it with the standard
3856 case i.e. do nothing.
3857
3858 2003-05-29 Richard Henderson <rth@redhat.com>
3859
3860 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
3861 (alpha_linux_sigtramp_offset): Use it. Make static.
3862 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
3863 update for new frame model.
3864 * alpha-mdebug-tdep.c: New file.
3865 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
3866 (alpha_osf1_init_abi): Install it.
3867 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
3868 (linked_proc_desc_table): Remove.
3869 (alpha_frame_past_sigtramp_frame): Remove.
3870 (alpha_dynamic_sigtramp_offset): Remove.
3871 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
3872 (alpha_proc_desc_is_dyn_sigtramp): Remove.
3873 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
3874 (push_sigtramp_desc): Remove.
3875 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
3876 (alpha_cannot_store_register): Likewise.
3877 (alpha_sigcontext_addr): Remove.
3878 (alpha_find_saved_regs): Remove.
3879 (alpha_frame_init_saved_regs): Remove.
3880 (alpha_init_frame_pc_first): Remove.
3881 (read_next_frame_reg): Remove.
3882 (alpha_frame_saved_pc): Remove.
3883 (alpha_saved_pc_after_call): Remove.
3884 (temp_proc_desc, temp_saved_regs): Remove.
3885 (alpha_about_to_return): Remove.
3886 (cached_proc_desc): Remove.
3887 (alpha_frame_chain): Remove.
3888 (alpha_print_extra_frame_info): Remove.
3889 (alpha_init_extra_frame_info): Remove.
3890 (alpha_frame_locals_address): Remove.
3891 (alpha_frame_args_address): Remove.
3892 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
3893 (alpha_push_dummy_frame): Remove.
3894 (alpha_pop_frame): Remove.
3895 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
3896 (alpha_read_insn): New.
3897 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
3898 for different insn encodings.
3899 (alpha_in_lenient_prologue): Remove.
3900 (struct alpha_sigtramp_unwind_cache): New.
3901 (alpha_sigtramp_frame_unwind_cache): New.
3902 (alpha_sigtramp_register_address): New.
3903 (alpha_sigtramp_frame_this_id): New.
3904 (alpha_sigtramp_frame_prev_register): New.
3905 (alpha_sigtramp_frame_unwind): New.
3906 (alpha_sigtramp_frame_p): New.
3907 (struct alpha_heuristic_unwind_cache): New.
3908 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
3909 don't count nop insns that occur between functions.
3910 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
3911 heuristic_proc_desc, but without the mdebug wrapping.
3912 (alpha_heuristic_frame_this_id): New.
3913 (alpha_heuristic_frame_prev_register): New.
3914 (alpha_heuristic_frame_unwind): New.
3915 (alpha_heuristic_frame_p): New.
3916 (alpha_heuristic_frame_base_address): New.
3917 (alpha_heuristic_frame_base): New.
3918 (alpha_unwind_dummy_id): New.
3919 (alpha_unwind_pc): New.
3920 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
3921 frame related deprecated initializations; install replacements.
3922 (alpha_dump_tdep): Remove.
3923 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
3924 (alpha_read_insn, alpha_after_prologue,
3925 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
3926 alpha_heuristic_frame_prev_register,
3927 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
3928 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3929 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
3930 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
3931
3932 2003-05-29 Andrew Cagney <cagney@redhat.com>
3933
3934 * gdb_assert.h (gdb_assert_fail): Provide different definitions
3935 dependant on the availability of ASSERT_FUNCTION.
3936 (ASSERT_FUNCTION): Do not define when there is no function name.
3937
3938 2003-05-29 Kevin Buettner <kevinb@redhat.com>
3939
3940 From Jimi X <jimix@watson.ibm.com>:
3941 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
3942
3943 2003-05-28 Jim Blandy <jimb@redhat.com>
3944
3945 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
3946 argument to ptrace to int; the system headers should give it the
3947 right type, and pointers don't fit in ints on powerpc64-*-*.
3948
3949 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
3950
3951 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
3952 DW_TAG_catch_block.
3953
3954 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
3955
3956 * stabsread.c (dbx_lookup_type): Make static.
3957 (read_type): Ditto.
3958 (add_undefined_type): Ditto.
3959 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
3960 not export.
3961
3962 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
3963
3964 * hpread.c (hpread_has_name): Make static.
3965 (hpread_psymtab_to_symtab): Ditto.
3966 (file_exists): Ditto.
3967 (hpread_call_pxdb): Ditto.
3968 (hpread_pxdb_needed): Ditto.
3969 (hpread_quick_traverse): Ditto.
3970 (hpread_get_header): Ditto.
3971 (hpread_get_lntt): Ditto.
3972 (hpread_get_slt): Ditto.
3973 (class_of): Ditto.
3974
3975 2003-05-25 Andreas Schwab <schwab@suse.de>
3976
3977 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
3978 stack_align and deprecated_extra_stack_alignment_needed.
3979 (m68k_stack_align): Delete.
3980
3981 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
3982 (m68k_register_virtual_size): Likewise.
3983 (altos_skip_prologue): Remove obsolete function.
3984 (isi_frame_num_args): Likewise.
3985 (news_frame_num_args): Likewise.
3986 (m68k_fix_call_dummy): Make static.
3987 (m68k_push_dummy_frame): Likewise.
3988 (m68k_pop_frame): Likewise.
3989 (m68k_skip_prologue): Likewise.
3990 (m68k_frame_init_saved_regs): Likewise.
3991 (m68k_saved_pc_after_call): Likewise.
3992 (m68k_get_longjmp_target): Make multi-arch.
3993 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
3994 structure. Register m68k_get_longjmp_target if enabled.
3995 * m68k-tdep.h (struct gdbarch_tdep): Define.
3996 * config/m68k/tm-m68k.h: Don't include "regcache.h".
3997
3998 * Makefile.in (config.status): Also depend on configure.tgt
3999 and configure.host.
4000 (m68klinux-tdep.o): Update dependencies.
4001 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4002 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4003 (M68K_LINUX_JB_PC): Define.
4004 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4005 and take additional parameter.
4006 (m68k_linux_sigtramp_saved_pc): Update.
4007 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4008 m68k_linux_pc_in_sigtramp, in_plt_section,
4009 find_solib_trampoline_target.
4010 * config/m68k/tm-linux.h: Don't include any tm headers.
4011 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4012 (JB_ELEMENT_SIZE): Likewise.
4013 (JB_PC): Likewise.
4014 (GET_LONGJMP_TARGET): Likewise.
4015 (IN_SIGTRAMP): Likewise.
4016 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4017
4018 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4019
4020 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4021 (sparc32_push_arguments): Re-implement by calling
4022 sparc32_do_push_arguments.
4023
4024 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4025
4026 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4027 SPARC_O1_REGNUM): New defines.
4028 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4029 (sparc32_store_return_value): New function.
4030 (sparc_extract_struct_value_address): Rewrite to operate on a
4031 regcache.
4032 (sparc_gdbarch_init): Don't set
4033 deprecated_extract_struct_value_address. Set
4034 extract_struct_value_address instead. Don't set
4035 deprecated_extract_return_value and deprecated_store_return_value
4036 for 32-bit targets. Set extract_return_value and
4037 store_return_value instead.
4038 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4039 DEPRECTAED_EXTRACT_RETURN_VALUE,
4040 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4041 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4042 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4043 (sparc_store_return_value): Remove prototype.
4044 (sparc32_store_return_value): New prototype.
4045 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4046 Adjust prototypes.
4047
4048 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4049
4050 * sparcnbsd-tdep.c: Include "gdb_string.h".
4051
4052 2003-05-23 Andrew Cagney <cagney@redhat.com>
4053
4054 * p-valprint.c (pascal_val_print): Replace extract_address with
4055 the inline equivalent extract_unsigned_integer.
4056 * jv-valprint.c (java_value_print): Ditto.
4057 * ada-valprint.c (ada_val_print_1): Ditto.
4058 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4059
4060 2003-05-23 Theodore A. Roth <troth@openavr.org>
4061
4062 * blockframe.c (frameless_look_for_prologue): Remove unused
4063 after_prologue variable.
4064
4065 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4066
4067 * blockframe.c (get_pc_function_start): Rewrite to avoid
4068 asignments in if-statements.
4069
4070 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4071
4072 Committed by Elena Zannoni <ezannoni@redhat.com>.
4073 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4074 files, don't relocate absolute symbols (and do use mst_abs).
4075
4076 2003-05-23 Andrew Cagney <cagney@redhat.com>
4077
4078 * objc-lang.c: Include "gdb_assert.h".
4079 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4080 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4081 (gdb_check, gdb_check_fatal): Delete functions.
4082 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4083 gdb_assert.
4084 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4085 * Makefile.in (objc-lang.o): Update dependencies.
4086
4087 2003-05-22 Ian Lance Taylor <ian@airs.com>
4088
4089 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4090 with fprintf_filtered, not fprintf_unfiltered.
4091
4092 2003-05-22 Andrew Cagney <cagney@redhat.com>
4093
4094 * stack.c (frame_info): Inline extract_address, replacing it with
4095 extract_unsigned_integer.
4096 * findvar.c (unsigned_pointer_to_address): Ditto.
4097 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4098 * dwarf2expr.c (dwarf2_read_address): Ditto.
4099 * frame.c (frame_pc_unwind): Update comment.
4100 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4101
4102 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4103
4104 * infptrace.c (detach): Call print_sys_errmsg rather than
4105 perror_with_name to issue warning message when errno is non-zero
4106 after calling ptrace detach.
4107
4108 2003-05-21 J. Brobecker <brobecker@gnat.com>
4109
4110 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4111 macro definitions from here...
4112 * hppa-tdep.c: ...to there.
4113
4114 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4115
4116 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4117 register_ptrace_addr(). Fix all callers.
4118
4119 2003-05-21 Andreas Schwab <schwab@suse.de>
4120
4121 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4122 dependencies.
4123 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4124 end.
4125 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4126 (_initialize_m68k_linux_tdep): New function.
4127 (m68k_linux_frame_saved_pc): Make static.
4128 (m68k_linux_extract_return_value): Likewise.
4129 (m68k_linux_store_return_value): Likewise.
4130 (m68k_linux_extract_struct_value_address): Likewise.
4131 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4132 Remove.
4133 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4134 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4135 (DEPRECATED_FRAME_SAVED_PC): Remove.
4136
4137 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4138
4139 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4140 regset numbering rather than our own.
4141
4142 2003-05-19 David Carlton <carlton@bactrian.org>
4143
4144 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4145
4146 2003-05-19 David Carlton <carlton@bactrian.org>
4147
4148 Partial fix for PR c++/827.
4149 * cp-support.h: Include symtab.h.
4150 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4151 * cp-namespace.c: Update contributors.
4152 (cp_lookup_symbol_nonlocal): New.
4153 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4154 (lookup_symbol_file): Ditto.
4155 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4156 * block.h: Declare block_scope, block_using, block_global_block.
4157 * block.c (block_scope): New.
4158 (block_using, block_global_block): Ditto.
4159 * Makefile.in (cp_support_h): Depend on symtab_h.
4160 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4161
4162 2003-05-19 David Carlton <carlton@bactrian.org>
4163
4164 * language.h (struct language_defn): Add 'la_value_of_this'
4165 and 'la_lookup_symbol_nonlocal' members.
4166 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4167 lookup_symbol_static, lookup_symbol_global,
4168 lookup_symbol_aux_block.
4169 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4170 if we should search fields of this and how to do static/global
4171 lookup.
4172 (lookup_symbol_aux_block): Make extern.
4173 (basic_lookup_symbol_nonlocal): New.
4174 (lookup_symbol_static, lookup_symbol_global): Ditto.
4175 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4176 'la_lookup_symbol_nonlocal' members.
4177 * c-lang.c (c_language_defn, cplus_language_defn)
4178 (asm_language_defn, minimal_language_defn): Ditto.
4179 * jv-lang.c (java_language_defn): Ditto.
4180 * language.c (unknown_language_defn, auto_language_defn)
4181 (local_language_defn): Ditto.
4182 * m2-lang.c (m2_language_defn): Ditto.
4183 * objc-lang.c (objc_language_defn): Ditto.
4184 * scm-lang.c (scm_language_defn): Ditto.
4185 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4186 * p-lang.c (pascal_language_defn): Ditto for both.
4187 * Makefile.in (f-lang.o): Depend on value_h.
4188 (p-lang.o): Ditto.
4189
4190 2003-05-19 David Carlton <carlton@bactrian.org>
4191
4192 * block.h: Declare block_static_block.
4193 * block.c (block_static_block): New.
4194 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4195 lookup_symbol_aux_local, calling block_static_block instead.
4196 (lookup_symbol_aux_local): Delete 'static_block' argument.
4197
4198 2003-05-19 David Carlton <carlton@bactrian.org>
4199
4200 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4201
4202 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4203
4204 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4205 register numbers mapping.
4206
4207 2003-05-18 Adam Fedor <fedor@gnu.org>
4208
4209 * symtab.c (completion_list_objc_symbol): New function.
4210 (make_symbol_completion_list): Use it to add ObjC symbols
4211 when looking though the list.
4212 (language_search_unquoted_string): New function.
4213 (make_file_symbol_completion_list): Use it.
4214
4215 2003-05-18 Andreas Schwab <schwab@suse.de>
4216
4217 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4218 dependencies.
4219 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4220 as m68k_linux_extract_return_value.
4221 (DEPRECATED_STORE_RETURN_VALUE): Define as
4222 m68k_linux_store_return_value.
4223 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4224 m68k_linux_extract_struct_value_address.
4225 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4226 get_next_frame, get_frame_base, get_frame_pc.
4227 (m68k_linux_frame_saved_pc): Use get_frame_base.
4228 (m68k_linux_extract_return_value): New function.
4229 (m68k_linux_store_return_value): New function.
4230 (m68k_linux_extract_struct_value_address): New function.
4231 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4232
4233 * c-exp.y (typebase): Remove duplicate occurence of
4234 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4235 of lookup_signed_typename.
4236
4237 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4238
4239 * dwarf2loc.c (find_location_expression): Change type of second
4240 argument to `size_t *'.
4241 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4242 for size variable.
4243
4244 2003-05-18 David Carlton <carlton@bactrian.org>
4245
4246 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4247 'linkage_name'. Add comment.
4248 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4249 'linkage_name'.
4250 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4251 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4252 (lookup_block_symbol): Ditto.
4253
4254 2003-05-16 Andrew Cagney <cagney@redhat.com>
4255
4256 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4257 * gdbarch.h, gdbarch.c: Re-generate.
4258 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4259 * TODO (REGISTER_BYTES): Delete reference.
4260 * alpha-tdep.c (alpha_gdbarch_init): Update.
4261 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4262 * x86-64-tdep.c (x86_64_init_abi): Update.
4263 * vax-tdep.c (vax_gdbarch_init): Update.
4264 * v850-tdep.c (v850_gdbarch_init): Update.
4265 * sparc-tdep.c (sparc_gdbarch_init): Update.
4266 * sh-tdep.c (sh_gdbarch_init): Update.
4267 * s390-tdep.c (s390_gdbarch_init): Update.
4268 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4269 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4270 (ns32k_gdbarch_init_32382): Update.
4271 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4272 * mcore-tdep.c (mcore_gdbarch_init): Update.
4273 * m68k-tdep.c (m68k_gdbarch_init): Update.
4274 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4275 * ia64-tdep.c (ia64_gdbarch_init): Update.
4276 * i386-tdep.c (i386_gdbarch_init): Update.
4277 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4278 * hppa-tdep.c (hppa_gdbarch_init): Update.
4279 * h8300-tdep.c (h8300_gdbarch_init): Update.
4280 * frv-tdep.c (frv_gdbarch_init): Update.
4281 * cris-tdep.c (cris_gdbarch_init): Update.
4282 * avr-tdep.c (avr_gdbarch_init): Update.
4283 * arm-tdep.c (arm_gdbarch_init): Update.
4284 * sparc-tdep.c (sparc_pop_frame): Update.
4285 * rs6000-tdep.c (rs6000_pop_frame): Update.
4286 * remote.c (init_remote_state): Update.
4287 (remote_prepare_to_store): Update.
4288 * remote-vx.c (vx_prepare_to_store): Update.
4289 * remote-sds.c (sds_fetch_registers): Update.
4290 (sds_prepare_to_store): Update.
4291 * remote-array.c: Update.
4292 * regcache.c (init_legacy_regcache_descr): Update.
4293 (init_regcache_descr): Update.
4294 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4295 (mips_o64_extract_return_value): Update.
4296 * irix5-nat.c (fetch_core_registers): Update.
4297 * irix4-nat.c (fetch_core_registers): Update.
4298 * i386-tdep.h: Update.
4299 * hppa-tdep.c (pa_do_registers_info): Update.
4300 (pa_do_strcat_registers_info): Update.
4301 * cris-tdep.c (cris_register_bytes_ok): Update.
4302 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4303 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4304 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4305 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4306 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4307 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4308 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4309 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4310 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4311 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4312 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4313 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4314 (REGISTER_BYTES_OK): Update.
4315 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4316 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4317
4318 2003-05-16 Ian Lance Taylor <ian@airs.com>
4319
4320 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4321 (vax_print_insn, print_insn_arg): Remove static functions.
4322 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4323 print_insn_vax from opcodes library.
4324 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4325
4326 2003-05-15 Andrew Cagney <cagney@redhat.com>
4327
4328 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4329 * target.h (memory_breakpoint_from_pc): Delete declaration.
4330 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4331 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4332 * monitor.c (monitor_insert_breakpoint): Use
4333 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4334 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4335 * gdbarch.h, gdbarch.c: Re-generate.
4336 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4337 (sparc_gdbarch_init): Set breakpoint_from_pc to
4338 sparc_breakpoint_from_pc.
4339 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4340 (BREAKPOINT_FROM_PC): Define.
4341 (sparc_breakpoint_from_pc): Declare.
4342 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4343 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4344 (BREAKPOINT_FROM_PC): Define.
4345 (BREAKPOINT): Delete macro.
4346 * target.h: Update comment.
4347 * s390-tdep.c (s390_gdbarch_init): Update comments.
4348 * remote.c: Update comments.
4349 * remote-mips.c: Update comments.
4350 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4351 * mem-break.c: Update comment.
4352 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4353 (ia64_memory_insert_breakpoint): Update.
4354 * config/sparc/tm-sparc.h: Update comment.
4355 * config/pa/tm-hppa64.h: Update comment.
4356 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4357 (rs6000_breakpoint_from_pc): Update.
4358 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4359 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4360 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4361 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4362 (mips_breakpoint_from_pc): Update.
4363 (mips_dump_tdep): Update.
4364
4365 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4366 * minsyms.c (lookup_minimal_symbol): Inline
4367 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4368
4369 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4370 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4371 * p-lang.c (pascal_printstr): Ditto.
4372 * objc-lang.c (objc_printstr): Ditto.
4373 * m2-lang.c (m2_printstr): Ditto.
4374 * jv-valprint.c (java_print_value_fields): Ditto.
4375 * f-lang.c (f_printstr): Ditto.
4376 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4377 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4378 for repeat_count_threshold.
4379 * Makefile.in (cp-valprint.o): Update dependencies.
4380
4381 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
4382
4383 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4384 (examine_prologue): Support looking through leaf functions, knowing
4385 they start with mov r2,r12. Support skipping over indirect stores
4386 of the input registers. Upon hitting a non-nop branch instruction
4387 or predicated instruction, bail out by setting lim_pc to the current
4388 pc value in the loop. At the end, if the lim_pc value is still
4389 beyond our calculated value and we have trust_limit set,
4390 use the lim_pc value.
4391
4392 2003-05-15 Andrew Cagney <cagney@redhat.com>
4393
4394 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4395 generic_find_dummy_frame.
4396 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4397 (deprecated_generic_find_dummy_frame): Update.
4398 (deprecated_read_register_dummy): Update.
4399 * frame.c (deprecated_generic_get_saved_register): Update.
4400
4401 2003-05-15 Theodore A. Roth <troth@openavr.org>
4402
4403 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4404 (avr_gdbarch_init): Set breakpoint_from_pc method.
4405
4406 2003-05-15 Andrew Cagney <cagney@redhat.com>
4407
4408 * regcache.c (build_regcache): Set deprecated_register_valid
4409 directly.
4410 (deprecated_grub_regcache_for_register_valid): Delete function.
4411 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4412 declaration.
4413
4414 2003-05-15 David Carlton <carlton@bactrian.org>
4415
4416 Committed by Elena Zannoni <ezannoni@redhat.com>
4417 * symtab.c (lookup_symbol_aux): Delete calls to
4418 lookup_symbol_aux_minsyms.
4419 (lookup_symbol_aux_minsyms): Comment out function and
4420 prototype. Delete lookup by mangled name.
4421
4422 2003-05-14 Kevin Buettner <kevinb@redhat.com>
4423
4424 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4425 correctly indicate an empty stack and ``stack_allocated'' to the
4426 indicate the number of elements initially allocated.
4427 (dwarf_expr_grow_stack): Simplify method for computing new
4428 stack size. Don't loop infinitely if ``stack_len'' is zero.
4429 (execute_stack_op): Move ``ctx->in_reg'' initialization
4430 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4431 be used in conjuction with DW_OP_piece. Revise error message
4432 accordingly.
4433
4434 2003-05-14 Theodore A. Roth <troth@openavr.org>
4435
4436 * MAINTAINERS: Update my email address.
4437 * avr-tdep.c: Ditto.
4438
4439 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
4440
4441 * symtab.h (enum domain_enum): Rename from namespace_enum.
4442 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4443 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4444 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4445 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4446 TYPES_NAMESPACE, METHODS_NAMESPACE.
4447 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4448 (struct symbol, struct partial_symbol): Rename field
4449 'namespace_enum namespace' to 'domain_enum domain'.
4450 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4451 Delete old define kludge for namespace.
4452
4453 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4454 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4455 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4456 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4457 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4458 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4459 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4460 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4461 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4462 occurrences of the above.
4463
4464 2003-05-14 Ian Lance Taylor <ian@airs.com>
4465
4466 * Makefile.in (install-only): Use $(SHELL) when running
4467 mkinstalldirs.
4468
4469 2003-05-13 Ian Lance Taylor <ian@airs.com>
4470
4471 * MAINTAINERS (write after approval): Add myself.
4472
4473 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4474 second and third arguments.
4475 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4476 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4477
4478 2003-05-13 Andrew Cagney <cagney@redhat.com>
4479
4480 * defs.h (store_address): Delete declaration.
4481 findvar.c (store_address): Delete function.
4482 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4483 store_unsigned_integer.
4484 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4485 * v850-tdep.c (v850_push_arguments): Ditto.
4486 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4487 * sh-tdep.c (sh64_get_saved_register): Ditto.
4488 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4489 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4490 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4491 (mips_get_saved_register): Ditto.
4492 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4493 (find_func_descr, ia64_push_arguments): Ditto.
4494 * i386-tdep.c (i386_push_arguments): Ditto.
4495 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4496 * frv-tdep.c (frv_push_arguments): Ditto.
4497 * frame.c (legacy_saved_regs_prev_register): Ditto.
4498 (deprecated_generic_get_saved_register): Ditto.
4499 * findvar.c (unsigned_address_to_pointer): Ditto.
4500 * dwarf2read.c (dwarf2_const_value): Ditto.
4501 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4502 * alpha-tdep.c (alpha_push_arguments): Ditto.
4503
4504 2003-05-12 J. Brobecker <brobecker@gnat.com>
4505
4506 * NEWS: Mention that the hppa-hpux port has been partially
4507 multiarched (32bit ABIT only, so far).
4508
4509 2003-05-11 Andrew Cagney <cagney@redhat.com>
4510
4511 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4512 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4513 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4514 sim/testsuite/sim/arm/misaligned2.ms, and
4515 sim/testsuite/sim/arm/misaligned3.ms.
4516 * disasm.h (struct ui_file): Add opaque struct declaration.
4517 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4518 * frame.h (struct ui_file): Ditto.
4519
4520 2003-05-11 Mark Kettenis <kettenis@gnu.org>
4521
4522 * value.h: Pretty print.
4523
4524 2003-05-10 Mark Kettenis <kettenis@gnu.org>
4525
4526 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4527
4528 2003-05-08 Andrew Cagney <cagney@redhat.com>
4529
4530 * regcache.h (max_register_size): Delete declaration.
4531 * regcache.c (max_register_size): Delete function.
4532 (struct regcache_descr): Delete field "max_register_size".
4533 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4534 registers fit in MAX_REGISTER_SIZE.
4535 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4536 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4537 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4538 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4539 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4540 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4541 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4542 * dve3900-rom.c, hppa-tdep.c: Ditto.
4543
4544 2003-05-08 David Carlton <carlton@math.stanford.edu>
4545
4546 * valops.c (push_word): Fix typo.
4547
4548 2003-05-08 Andrew Cagney <cagney@redhat.com>
4549
4550 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4551 * gdbarch.h: Re-generate.
4552 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4553 (legacy_max_register_raw_size): Delete declaration.
4554 * regcache.c (legacy_max_register_raw_size): Delete function.
4555 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4556 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4557 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4558 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4559 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4560 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4561 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4562 * findvar.c, dwarf2cfi.c: Ditto.
4563
4564 2003-05-08 Andrew Cagney <cagney@redhat.com>
4565
4566 * mips-tdep.c (read_signed_register): New function, moved to here
4567 from "regcache.c".
4568 (read_signed_register_pid): Ditto.
4569 * regcache.c (read_signed_register_pid): Delete function, moved to
4570 "mips-tdep.c".
4571 (read_signed_register): Ditto.
4572 * regcache.h (read_signed_register): Delete declaration.
4573 (read_signed_register_pid): Delete declaration.
4574
4575 2003-05-08 Andrew Cagney <cagney@redhat.com>
4576
4577 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4578 * gdbarch.h: Re-generate.
4579 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4580 (legacy_max_register_virtual_size): Delete declaration.
4581 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4582 * d10v-tdep.c (d10v_print_registers_info): Ditto.
4583 * tracepoint.c (memrange_sortmerge): Ditto.
4584 * sparc-tdep.c (sparc_print_registers): Ditto.
4585 * regcache.c (legacy_max_register_virtual_size): Delete function.
4586
4587 2002-05-08 J. Brobecker <brobecker@gnat.com>
4588
4589 * fork-child.c (escape_bang_in_quoted_argument): New function.
4590 (fork_inferior): Escape '!' characters in quoted arguments
4591 only when needed.
4592
4593 2003-05-08 J. Brobecker <brobecker@gnat.com>
4594
4595 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
4596 the language of the CU is not currently supported by GDB.
4597
4598 2003-05-08 J. Brobecker <brobecker@gnat.com>
4599
4600 * defs.h (language): Add language_minimal enum value.
4601 * c-lang.c (minimal_language_defn): New language definition.
4602 (_initialize_c_language): Add the new minimal language to the list
4603 of languages known to GDB.
4604
4605 2003-05-08 Kevin Buettner <kevinb@redhat.com>
4606
4607 * frame.c (get_frame_type): Don't attempt to lazily initialize
4608 frame's unwinder for legacy frames.
4609
4610 2003-05-07 Andrew Cagney <cagney@redhat.com>
4611
4612 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
4613 and "regcache" parameters.
4614 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
4615
4616 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4617
4618 * dwarf2read.c (dwarf_decode_lines): Only use output of
4619 check_cu_functions() when calling record_line(). Do not update
4620 the current address.
4621
4622 2003-05-07 Andrew Cagney <cagney@redhat.com>
4623
4624 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
4625 code.
4626
4627 2003-05-07 Jim Blandy <jimb@redhat.com>
4628
4629 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
4630 'maint info symtabs' and 'maint info psymtabs'.
4631 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
4632 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
4633 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
4634 Declarations updated.
4635 * maint.c (maintenance_list_command): Delete.
4636 (_initialize_maint_cmds): Update calls to add_cmd.
4637 * gdbcmd.h (maintenancelistlist): Delete declaration.
4638 * cli/cli-cmds.c (maintenancelistlist): Delete.
4639 (init_cmd_lists): Don't initialize it.
4640 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
4641
4642 2003-05-07 Andrew Cagney <cagney@redhat.com>
4643
4644 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
4645 "regcache".
4646 (d10v_print_registers_info): Update.
4647 (d10v_dmap_register, d10v_imap_register): Delete functions.
4648 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
4649 and "imap_register".
4650 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
4651 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
4652 * arch-utils.c (generic_remote_translate_xfer_address): Add
4653 "regcache" and "gdbarch" parameters.
4654 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
4655 parameter. Change class to multi-arch.
4656 * gdbarch.h, gdbarch.c: Re-generate.
4657 * remote.c (remote_xfer_memory): Use
4658 gdbarch_remote_translate_xfer_address.
4659
4660 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4661
4662 * infrun.c (prev_pc): Move declaration ahead of proceed().
4663 (proceed): Refresh prev_pc value before resuming.
4664 (stop_stepping): Remove code to refresh prev_pc.
4665
4666 2003-05-06 Kris Warkentin <kewarken@qnx.com>
4667
4668 * nto-tdep.c: Removed stray comment.
4669
4670 2003-05-06 Kris Warkentin <kewarken@qnx.com>
4671
4672 * i386-nto-tdep.c: Fix old K&R function definitions.
4673 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
4674 Also change add_show_from_set() call to add_setshow_cmd().
4675 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
4676
4677 2003-05-05 Andrew Cagney <cagney@redhat.com>
4678
4679 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
4680 (fprint_dummy_frames): New function.
4681 (maintenance_print_dummy_frames): New function.
4682 (_initialize_dummy_frame): Add command "maint print dummy-frames".
4683 * frame.c (fprint_frame_id): Make global.
4684 * frame.h (fprint_frame_id): Declare.
4685 * Makefile.in (dummy-frame.o): Update dependencies.
4686
4687 2003-05-05 Andrew Cagney <cagney@redhat.com>
4688
4689 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
4690 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
4691 SIZEOF_CALL_DUMMY_WORDS.
4692 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
4693 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
4694 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
4695 CALL_DUMMY_BREAKPOINT_OFFSET.
4696 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
4697 CALL_DUMMY_START_OFFSET.
4698 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
4699 * gdbarch.h, gdbarch.c: Re-generate.
4700 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
4701 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
4702 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
4703 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
4704 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
4705 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
4706 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
4707 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
4708 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
4709 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
4710 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
4711 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
4712 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
4713 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
4714 * config/sparc/tm-sparc.h: Update.
4715
4716 2003-05-05 Kris Warkentin <kewarken@qnx.com>
4717
4718 * configure.tgt: Add i[3456]86-*-nto*.
4719 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
4720 * nto-tdep.c: New file. Neutrino target support routines.
4721 * nto-tdep.h: New file. Neutrino target header.
4722 * config/tm-qnxnto.h: New file.
4723 * config/i386/i386nto.mt: New file.
4724 * config/i386/tm-i386nto.h: New file.
4725
4726 2003-05-04 Andrew Cagney <cagney@redhat.com>
4727
4728 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
4729 (load_infrun_state): Ditto.
4730 (struct thread_info): Drop "prev_func_name" field.
4731 * thread.c (load_infrun_state): Update.
4732 (save_infrun_state): Update.
4733 * infrun.c (prev_func_name): Delete variable.
4734 (init_wait_for_inferior): Do not clear prev_func_name.
4735 (stop_stepping, keep_going, context_switch): Do not swap
4736 prev_func_name.
4737 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
4738 instead of PC_IN_SIGTRAMP.
4739
4740 2003-05-04 Andrew Cagney <cagney@redhat.com>
4741
4742 * sentinel-frame.c (sentinel_frame_prev_register): Replace
4743 REGISTER_BYTE with register_offset_hack.
4744 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
4745 that REGISTER_BYTE is consistent with the regcache.
4746 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
4747 * gdbarch.h, gdbarch.c: Regenerate.
4748
4749 2003-05-04 Mark Kettenis <kettenis@gnu.org>
4750
4751 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
4752 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
4753
4754 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
4755
4756 2003-05-03 J. Brobecker <brobecker@gnat.com>
4757
4758 From Thierry Schneider <tpschneider1@yahoo.com>
4759 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
4760 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
4761 (mi-cmd-symbol.o): Add rule.
4762
4763 2003-05-03 Andrew Cagney <cagney@redhat.com>
4764
4765 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
4766 comments noteing that it replaces the old FIX_CALL_DUMMY code.
4767 * gdbarch.h, gdbarch.c: Re-generate.
4768 * d10v-tdep.c (d10v_push_dummy_code): New function.
4769 (d10v_gdbarch_init): Set push_dummy_code.
4770 * infcall.c (legacy_push_dummy_code): New function.
4771 (generic_push_dummy_code): New function.
4772 (push_dummy_code): New function.
4773 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
4774 instead of dummy_addr, to push_dummy_call. Move call to
4775 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
4776 switch.
4777 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
4778
4779 2003-05-03 Andrew Cagney <cagney@redhat.com>
4780
4781 * disasm.h (print_insn): Declare.
4782 * disasm.c (init_gdb_disassemble_info): New function.
4783 (gdb_disassembly): Call init_gdb_disassemble_info.
4784 (gdb_print_insn): New function.
4785 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
4786 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
4787 * mcore-tdep.c: Include "disasm.h"
4788 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
4789 * d10v-tdep.c: Include "disasm.h".
4790 (display_trace): Call gdb_print_insn, instead of print_insn.
4791 (print_insn): Delete function.
4792 * printcmd.c: Include "disasm.h".
4793 (print_insn): Delete function.
4794 (print_formatted): Call gdb_print_insn, instead of print_insn.
4795 * Makefile.in (printcmd.o): Update dependencies.
4796 (mcore-tdep.o, d10v-tdep.o): Ditto.
4797
4798 2003-05-02 Andrew Cagney <cagney@redhat.com>
4799
4800 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
4801 PC_REGNUM, re-indent.
4802 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
4803 PC_REGNUM isn't set.
4804
4805 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
4806 * gdbarch.h, gdbarch.c: Re-generate.
4807 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
4808 register_virtual_size, pc_regnum, or register_bytes.
4809 (D10V_PC_REGNUM): Rename _PC_REGNUM.
4810 (d10v_register_type): Use D10V_PC_REGNUM.
4811 (d10v_print_registers_info, d10v_read_pc): Ditto.
4812 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
4813 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
4814
4815 2003-05-02 David Carlton <carlton@bactrian.org>
4816
4817 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
4818 the name with mstrsave.
4819
4820 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
4821
4822 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
4823 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
4824 (host_charset_name, target_charset_name): New vars for use by
4825 set/show commands.
4826 (host_charset_enum, target_charset_enum): New enums for set/show
4827 commands.
4828 (set_charset_sfunc, set_host_charset_sfunc,
4829 set_target_charset_sfunc): New functions.
4830 (set_host_charset, set_target_charset): Make static.
4831 (list_charsets, set_host_charset_command,
4832 set_target_charset_command): Delete functions.
4833 (show_charset_command): Rewrite as....
4834 (show_charset): Hook this up with the set/show command mechanism.
4835 (_initialize_charset): Change names of charsets to match the
4836 set/show enums. Use host_charset_name and target_charset_name.
4837 Use set/show mechanism for charset, host-charset, target-charset
4838 commands. Do not make 'show host-charset' and 'show
4839 target-charset' be aliases of 'show charset'.
4840
4841 * charset.h (set_host_charset, set_target_charset): Don't export,
4842 they are not used outside the file.
4843
4844 2003-05-01 Andrew Cagney <cagney@redhat.com>
4845
4846 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
4847 (gdb_disassembly): Make "di" non static, always initialize and
4848 cleanup. Always use dis_asm_read_memory.
4849 (gdb_dis_asm_read_memory): Delete function.
4850
4851 2003-05-01 Andrew Cagney <cagney@redhat.com>
4852
4853 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
4854 (d10v_gdbarch_init): Set frame_align instead of stack_align.
4855
4856 2003-04-30 Andrew Cagney <cagney@redhat.com>
4857
4858 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
4859 "tm_print_insn_info".
4860 (TARGET_PRINT_INSN_INFO): Delete macro.
4861 (dis_asm_read_memory): Delete function declaration.
4862 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4863 (tm_print_insn_info): Delete variable definition.
4864 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
4865 * gdbarch.h, gdbarch.c: Re-generate.
4866 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
4867 "deprecated_tm_print_insn_info".
4868 * mcore-tdep.c (mcore_dump_insn): Ditto.
4869 * mips-tdep.c (mips_gdbarch_init): Ditto.
4870 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
4871 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
4872 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
4873 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
4874 instead of TARGET_PRINT_INSN_INFO, add comment.
4875 * s390-tdep.c (s390_get_frame_info): Instead of
4876 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
4877 (s390_check_function_end, s390_is_sigreturn): Ditto.
4878 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
4879 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4880 * disasm.c: Include "gdbcore.h".
4881 (_initialize_disasm): New function, initialize
4882 "deprecated_tm_print_insn_info".
4883 (deprecated_tm_print_insn_info): New variable.
4884 (dis_asm_read_memory): Moved from "corefile.c", made static.
4885 (dis_asm_print_address, dis_asm_memory_error): Ditto.
4886 * Makefile.in (disasm.o): Update dependencies.
4887
4888 2003-04-30 Andrew Cagney <cagney@redhat.com>
4889
4890 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
4891
4892 2003-04-29 Adam Fedor <fedor@gnu.org>
4893
4894 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
4895 * infcall.c (find_function_addr): Make non-static.
4896 * infcall.h (find_function_addr): Declare.
4897 * Makefile.in (eval.o): Update dependencies.
4898
4899 2003-04-28 Adam Fedor <fedor@gnu.org>
4900
4901 * symtab.c (symbol_find_demangled_name): Check for and demangle
4902 ObjC symbols.
4903 (symbol_init_demangled_name): Init for language_objc as well.
4904
4905 2003-04-28 Andrew Cagney <cagney@redhat.com>
4906
4907 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
4908 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
4909 * gdbarch.h, gdbarch.c: Re-generate.
4910 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
4911 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
4912 * inferior.h (deprecated_read_fp): Rename read_fp.
4913 (generic_target_read_fp): Delete declaration.
4914 * regcache.c (generic_target_read_fp): Delete function.
4915 (deprecated_read_fp): Replace read_fp, use
4916 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
4917 * d10v-tdep.c (d10v_read_fp): Delete function.
4918 (d10v_gdbarch_init): Do not set deprecated_read_fp.
4919
4920 * sparc-tdep.c (sparc_gdbarch_init): Do not set
4921 deprecated_target_read_fp to generic_target_read_fp.
4922 * sh-tdep.c (sh_gdbarch_init): Ditto.
4923 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4924 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4925 * frv-tdep.c (frv_gdbarch_init): Ditto.
4926
4927 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
4928 deprecated_fp_regnum.
4929 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4930 * vax-tdep.c (vax_gdbarch_init): Ditto.
4931 * v850-tdep.c (v850_gdbarch_init): Ditto.
4932 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4933 * sh-tdep.c (sh_gdbarch_init): Ditto.
4934 * s390-tdep.c (s390_gdbarch_init): Ditto.
4935 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4936 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4937 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4938 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4939 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4940 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4941 * i386-tdep.c (i386_gdbarch_init): Ditto.
4942 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4943 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4944 * frv-tdep.c (frv_gdbarch_init): Ditto.
4945 * cris-tdep.c (cris_gdbarch_init): Ditto.
4946 * avr-tdep.c (avr_gdbarch_init): Ditto.
4947 * arm-tdep.c (arm_gdbarch_init): Ditto.
4948 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4949
4950 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
4951 * v850-tdep.c (v850_gdbarch_init): Ditto.
4952 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4953 * sh-tdep.c (sh_gdbarch_init): Ditto.
4954 * s390-tdep.c (s390_gdbarch_init): Ditto.
4955 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4956 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4957 * mips-tdep.c (mips_gdbarch_init): Ditto.
4958 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4959 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4960 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4961 * frv-tdep.c (frv_gdbarch_init): Ditto.
4962 * avr-tdep.c (avr_gdbarch_init): Ditto.
4963 * arm-tdep.c (arm_gdbarch_init): Ditto.
4964
4965 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
4966 DEPRECATED_FP_REGNUM.
4967 (vax_push_dummy_frame, vax_pop_frame): Ditto.
4968 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
4969 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
4970 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
4971 (sparc32_register_virtual_type): Ditto.
4972 * sh-tdep.c (sh64_frame_chain): Ditto.
4973 (sh64_get_saved_register, sh64_pop_frame): Ditto.
4974 (sh_nofp_frame_init_saved_regs): Ditto.
4975 (sh64_nofp_frame_init_saved_regs): Ditto.
4976 (sh_fp_frame_init_saved_regs): Ditto.
4977 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4978 * remote-e7000.c (fetch_regs_from_dump): Ditto.
4979 * procfs.c (procfs_fetch_registers): Ditto.
4980 (procfs_store_registers): Ditto.
4981 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
4982 (store_inferior_registers, fetch_core_registers): Ditto.
4983 (fetch_kcore_registers, clear_regs): Ditto.
4984 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
4985 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
4986 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
4987 * nlm/i386.c (do_status): Ditto.
4988 * mipsv4-nat.c (supply_gregset): Ditto.
4989 * mips-tdep.c: Ditto for comments.
4990 * mips-nat.c (fetch_inferior_registers): Ditto.
4991 (store_inferior_registers, fetch_core_registers): Ditto.
4992 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
4993 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
4994 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
4995 (i386_do_pop_frame, i386_register_type): Ditto.
4996 * hppa-tdep.c (hppa_frame_chain): Ditto.
4997 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
4998 (hppa_pop_frame, hppa_read_fp): Ditto.
4999 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5000 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5001 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5002 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5003 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5004 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5005 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5006 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5007 * blockframe.c: Ditto for comments.
5008 * arch-utils.h: Ditto for comments.
5009 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5010 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5011 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5012 * alpha-tdep.h: Ditto for comments.
5013 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5014 (alpha_cannot_store_register): Ditto.
5015 (alpha_push_dummy_frame): Ditto.
5016 * alpha-nat.c (supply_gregset): Ditto.
5017
5018 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5019 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5020 * config/sparc/tm-sparc.h: Update comment.
5021
5022 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5023 deprecated_read_fp instead of TARGET_READ_FP.
5024 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5025 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5026 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5027 deprecated_read_fp instead of read_fp.
5028 * s390-tdep.c (s390_push_arguments): Ditto.
5029 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5030 * frame.h: Ditto in comments.
5031 * frame.c (legacy_get_prev_frame): Ditto.
5032 * dummy-frame.c (dummy_frame_this_id): Ditto.
5033 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5034
5035 2003-04-28 Andrew Cagney <cagney@redhat.com>
5036
5037 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5038 * gdbarch.h, gdbarch.c: Re-generate.
5039 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5040 * vax-tdep.c (_initialize_vax_tdep): Update.
5041 * v850-tdep.c (_initialize_v850_tdep): Update.
5042 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5043 * s390-tdep.c (_initialize_s390_tdep): Update.
5044 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5045 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5046 * mips-tdep.c (_initialize_mips_tdep): Update.
5047 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5048 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5049 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5050 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5051 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5052 * frv-tdep.c (_initialize_frv_tdep): Update.
5053 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5054 (_initialize_cris_tdep): Update.
5055 * arch-utils.c (legacy_print_insn): Update.
5056 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5057
5058 2003-04-26 Adam Fedor <fedor@gnu.org>
5059
5060 * linespec.c (decode_objc): New function to decode ObjC calls
5061 (decode_line_1): Check for ObjC calls (using decode_objc)
5062 * Makefile (linespec.o): Update dependencies.
5063
5064 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5065
5066 * breakpoint.h (struct breakpoint_ops): New.
5067 (struct breakpoint): Add ops member.
5068
5069 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5070 (mention): Use new breakpoint ops member.
5071 (set_raw_breakpoint): Initialize ops field to NULL.
5072 (print_exception_catchpoint, print_one_exception_catchpoint)
5073 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5074 (gnu_v3_exception_catchpoint_ops): New.
5075 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5076
5077 2003-04-25 Adam Fedor <fedor@gnu.org>
5078
5079 * Makefile.in (COMMON_OBS): Add objc-lang.o
5080
5081 2003-04-25 Andrew Cagney <cagney@redhat.com>
5082
5083 * d10v-tdep.c (print_insn): Delete function.
5084 (display_trace): Use TARGET_PRINT_INSN.
5085 (_initialize_d10v_tdep): Do not set tm_print_insn.
5086 (d10v_gdbarch_init): Set print_insn.
5087
5088 2003-04-25 Andrew Cagney <cagney@redhat.com>
5089
5090 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5091 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5092 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5093 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5094 (nr_dmap_regs, a0_regnum): ... new functions.
5095 (d10v_print_registers_info): Use a0_regnum, use register_size.
5096 (d10v_register_byte): Delete function.
5097 (d10v_register_raw_size): Delete function.
5098 (d10v_register_type): Use a0_regnum.
5099 (d10v_print_registers_info): Use a0_regnum.
5100 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5101 (d10v_gdbarch_init): Do not set register_byte or
5102 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5103 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5104 extract_address.
5105 (trace_command): Use XCALLOC.
5106 (print_insn): Delete reference to tm_print_insn.
5107 (saved_regs_unwinder): Use store_unsigned_integer instead of
5108 store_address.
5109 * frame.h (FRAME_OBSTACK_CALLOC): Define
5110
5111 2003-04-25 David Carlton <carlton@bactrian.org>
5112
5113 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5114
5115 2003-04-24 Adam Fedor <fedor@gnu.org>
5116
5117 * objc-lang.c: Include "valprint.h"
5118 * Makefile.in (objc-lang.o): Update dependencies.
5119
5120 2003-04-24 Adam Fedor <fedor@gnu.org>
5121
5122 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5123 architecture dependant compilation and mark as unimplemented
5124 (until they get put in the gdbarch vector).
5125
5126 2003-04-23 David Carlton <carlton@bactrian.org>
5127
5128 * cp-support.c (cp_find_first_component): Accept 'operator' in
5129 more locations.
5130
5131 2003-04-23 Andrew Cagney <cagney@redhat.com>
5132
5133 * infcall.c (call_function_by_hand): Eliminate redundant
5134 indentation. Move "saved_async" and "old_cleanups" to where they
5135 are needed.
5136
5137 2003-04-23 Andrew Cagney <cagney@redhat.com>
5138
5139 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5140 and "buffer". Move the "name" code to where it is needed.
5141
5142 2003-04-23 Andrew Cagney <cagney@redhat.com>
5143
5144 * infcall.c (call_function_by_hand): Move variables "start_sp",
5145 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5146 code to ON_STACK switch branch.
5147
5148 2003-04-23 Andrew Cagney <cagney@redhat.com>
5149
5150 * infcall.c (call_function_by_hand): Make declaration of "i",
5151 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5152 lint.
5153
5154 2003-04-23 Andrew Cagney <cagney@redhat.com>
5155
5156 * infcall.c (call_function_by_hand): Delete variable
5157 "n_method_args". Localize "param_type"'s declaration to the loop
5158 that it is used. Reinstate code assigning to said variable -
5159 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5160 Rationalize code using "param_type".
5161
5162 2003-04-22 Andrew Cagney <cagney@redhat.com>
5163
5164 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5165 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5166 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5167 to DEPRECATED_PUSH_RETURN_ADDRESS.
5168
5169 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5170
5171 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5172 on the DWARF2 register number prior to fetching a register.
5173
5174 2003-04-22 J. Brobecker <brobecker@gnat.com>
5175
5176 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5177 Update all the tests using SOFT_FLOAT considering the fact that
5178 this macro was always set to 0.
5179 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5180 considering the fact that this macro was always set to 0.
5181 * hppa-tdep.h (hppa_store_return_value): Likewise.
5182 (hppa_extract_return_value): Likewise.
5183
5184 2003-04-22 J. Brobecker <brobecker@gnat.com>
5185
5186 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5187 the hppa-pro target only.
5188
5189 2003-04-21 J. Brobecker <brobecker@gnat.com>
5190
5191 Ongoing multi-arch conversion effort for HP/UX:
5192 * config/pa/tm-hppa.h: Move all macro that are no longer
5193 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5194 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5195
5196 2003-04-21 J. Brobecker <brobecker@gnat.com>
5197
5198 * config/pa/tm-hppa.h: Obsolete a section that was only used
5199 for hppa-pro.
5200
5201 2003-04-21 J. Brobecker <brobecker@gnat.com>
5202
5203 Ongoing multi-arch conversion for HP/UX.
5204 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5205 if already defined (allows hppa64 to stay non-multiarched for now).
5206 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5207
5208 2003-04-21 Andrew Cagney <cagney@redhat.com>
5209
5210 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5211
5212 2003-04-21 Andrew Cagney <cagney@redhat.com>
5213
5214 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5215 "i386_num_mmx_regs".
5216
5217 2003-04-21 Andrew Cagney <cagney@redhat.com>
5218
5219 * infcall.c: New file.
5220 * infcall.h: New file.
5221 * valarith.c: Include "infcall.h".
5222 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5223 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5224 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5225 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5226 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5227 (SFILES): Add "infcall.c"
5228 (COMMON_OBS): Add "infcall.o".
5229 (infcall.o): Specify dependencies.
5230 * value.h (call_function_by_hand): Delete declaration.
5231 * inferior.h (run_stack_dummy): Delete declaration.
5232 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5233 (run_stack_dummy): Move to "infcall.c", merged into
5234 call_function_by_hand.
5235 * valops.c (call_function_by_hand): Moved to "infcall.c".
5236 (find_function_addr, value_arg_coerce): Ditto.
5237 (unwindonsignal_p, coerce_float_to_double): Ditto.
5238 (_initialize_valops): Move "set/show coerce-float-to-double", and
5239 "set/show unwindonsignal" commands to "infcall.c".
5240 * v850-tdep.c, target.h: Update comments.
5241 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5242 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5243 (sh64_init_extra_frame_info): Update comments.
5244 * mn10300-tdep.c: Update comments.
5245 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5246 * config/sparc/tm-sparc.h: Update comments.
5247 * breakpoint.h: Update comments.
5248 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5249 * arm-tdep.c: Update comment.
5250
5251 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5252
5253 * i386-tdep.c (i386_num_register_names): New variable.
5254 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5255 (MM0_REGNUM): Remove redundant parentheses in define.
5256 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5257 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5258 i386_mxcsr_regnum_p): Remove redundant parentheses.
5259 (i386_register_name): Use i386_num_register_names.
5260
5261 * i386-tdep.c (i386_extract_return_value,
5262 i386_store_return_value): Correct check for availability of
5263 floating-point registers.
5264
5265 * i386-tdep.c (i386_frame_num_args): Remove function.
5266 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5267
5268 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5269 mmx_regnum_to_fp_regnum. Adjust all callers.
5270
5271 * i386-tdep.c (i386_get_longjmp_target): Use
5272 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5273 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5274 extract_address.
5275
5276 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5277
5278 * core-regset.c: Update comments to reflect reality. Re-order
5279 includes.
5280 (fetch_core_registers): Use switch instead of if. Remove
5281 redundant prototype.
5282
5283 2003-04-18 Jim Blandy <jimb@redhat.com>
5284
5285 * s390-tdep.c (s390_frame_align): New function.
5286 (s390_gdbarch_init): Register it with the gdbarch object.
5287
5288 2003-04-17 Richard Henderson <rth@redhat.com>
5289
5290 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5291
5292 2003-04-17 Michael Snyder <msnyder@redhat.com>
5293 Karen Bennet <bennet@redhat.com>
5294
5295 Committed by Elena Zannoni <ezannoni@redhat.com>
5296 * gdb_gcore.sh: New script to create a core dump of a process.
5297
5298 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5299
5300 * values.c (value_being_returned): Don't fetch the return
5301 value if the return type is void.
5302
5303 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5304
5305 * thread-db.c: Reindented.
5306
5307 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5308
5309 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5310 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5311 as types.
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5338
5339 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5340 the size of ``long double'' to 16, instead of 8.
5341
5342 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5343
5344 * i386-linux-nat.c: Add some whitespace to make things more
5345 readable.
5346 (fetch_register, store_register, fetch_inferior_registers,
5347 store_inferior_registers): Get rid of assignment in if-statement.
5348 (store_register): Fix typo in error message.
5349
5350 2003-04-16 Andrew Cagney <cagney@redhat.com>
5351
5352 * utils.c (xmmalloc): Always allocate something, matches
5353 libiberty/xmalloc's semantics.
5354 (xmrealloc, xmcalloc): Ditto.
5355
5356 2003-04-16 Andrew Cagney <cagney@redhat.com>
5357
5358 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5359 update comments.
5360 (get_frame_type): Initialize unwind and type when needed.
5361 (get_frame_id, frame_register_unwind): Ditto.
5362
5363 2003-04-16 Andrew Cagney <cagney@redhat.com>
5364
5365 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5366 obsolete.
5367 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5368 * sparcl-stub.c: Obsolete file.
5369 * config/sparc/tm-sparclet.h: Obsolete file.
5370 * sparclet-stub.c: Obsolete file.
5371 * sparclet-rom.c: Obsolete file.
5372 * sparcl-tdep.c: Obsolete file.
5373 * config/sparc/tm-sparclite.h: Obsolete file.
5374 * config/sparc/sparclite.mt: Obsolete file.
5375 * config/sparc/sparclet.mt: Obsolete file.
5376 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5377 sparc86x-*-* obsolete.
5378
5379 2003-04-15 David Carlton <carlton@math.stanford.edu>
5380
5381 * Makefile.in (SFILES): Add cp-namespace.c.
5382 (COMMON_OBS): Add cp-namespace.o.
5383 (block.o): Depend on gdb_obstack_h and cp_support_h.
5384 (buildsym.o): Depend on cp_support_h.
5385 (cp-namespace.o): New.
5386 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5387 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5388 (dwarf2read.o): Depend on cp_support_h.
5389 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5390 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5391 processing_current_namespace.
5392 (read_namespace): Update processing_current_namespace; check for
5393 anonymous namespaces.
5394 (dwarf2_name): New function.
5395 (dwarf2_extension): Ditto.
5396 * cp-support.h: Update copyright, contributors.
5397 Add inclusion guards.
5398 Add opaque declaration for structs obstack, block, symbol.
5399 (struct using_direct): New struct.
5400 Add declarations for cp_find_first_component,
5401 cp_entire_prefix_len, processing_has_namespace_info,
5402 processing_current_namespace, cp_is_anonymous,
5403 cp_add_using_directive, cp_initialize_namespace,
5404 cp_finalize_namespace, cp_set_block_scope,
5405 cp_scan_for_anonymous_namespaces.
5406 * cp-namespace.c: New file.
5407 * cp-support.c: Update copyright.
5408 Include ctype.h, gdb_assert.h, gdbcmd.h.
5409 New variable maint_cplus_cmd_list.
5410 (cp_find_first_component): New function.
5411 (cp_entire_prefix_len, maint_cplus_command)
5412 (first_component_command, _initialize_cp_support): Ditto.
5413 * buildsym.c: Include cp-support.h.
5414 New variable using_list.
5415 (add_symbol_to_list): Check for anonymous namespaces.
5416 (finish_block): Set block's scope.
5417 (start_symtab): Initialize C++ namespace support.
5418 (end_symtab): Finalize C++ namespace support.
5419 * block.h: Add opaque declarations for structs
5420 block_namespace_info, using_direct, and obstack.
5421 Add declarations for block_set_scope and block_set_using.
5422 (struct block): Add 'language_specific' member.
5423 (BLOCK_NAMESPACE): New macro.
5424 * block.c: Include gdb_obstack.h and cp-support.h.
5425 (struct block_namespace_info): New struct.
5426 (block_set_scope): New function.
5427 (block_set_using, block_initialize_namespace): Ditto.
5428
5429 2003-04-14 Kevin Buettner <kevinb@redhat.com>
5430
5431 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5432 (locate_base): Return early if there aren't any link map offsets.
5433 (svr4_solib_create_inferior_hook): Warn if shared library support
5434 is unavailable.
5435
5436 2003-04-14 David Carlton <carlton@math.stanford.edu>
5437
5438 * symtab.c (symbol_set_names): Add prefix when storing Java names
5439 in hash table. Fix for PR java/1039.
5440
5441 2003-04-14 David Carlton <carlton@math.stanford.edu>
5442
5443 * symtab.c (symbol_set_names): Rename 'name' arg to
5444 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5445 * symtab.h: Change 'name' argument in declaration of
5446 symbol_set_names to 'linkage_name'.
5447 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5448
5449 2003-04-14 Andrew Cagney <cagney@redhat.com>
5450
5451 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5452 return the fully sign-extended register value.
5453 (get_frame_pointer): Ditto.
5454 (mips_pop_frame): Initialize "proc_desc" after checking for a
5455 dummy frame.
5456
5457 2003-04-14 Andrew Cagney <cagney@redhat.com>
5458
5459 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5460 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5461 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5462 (mips_push_register): Delete function.
5463 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5464 PUSH_FP_REGNUM.
5465
5466 2003-04-14 Jim Blandy <jimb@redhat.com>
5467
5468 * symmisc.c: #include "gdb_regex.h".
5469 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5470 functions.
5471 * maint.c (maintenance_list_command): New function.
5472 (_initialize_maint_cmds): Register the above as commands.
5473 * symtab.h (maintenance_list_symtabs,
5474 maintenance_list_psymtabs): New declarations.
5475 * cli/cli-cmds.c (maintenancelistlist): New variable.
5476 (init_cmd_lists): Initialize it.
5477 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5478 * gdbcmd.h (maintenancelistlist): New declaration.
5479 * Makefile.in (symmisc.o): Update dependencies.
5480
5481 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
5482
5483 * s390-nat.c: Include asm/types.h for addr_t.
5484
5485 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
5486
5487 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5488 actually incoming type.
5489
5490 2003-04-13 Andrew Cagney <cagney@redhat.com>
5491
5492 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5493 get_next_frame and get_frame_saved_regs.
5494
5495 2003-04-13 Andrew Cagney <cagney@redhat.com>
5496
5497 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5498 of gdbarch_num_regs.
5499
5500 2003-04-13 Andrew Cagney <cagney@redhat.com>
5501
5502 * frame.h: Mention what replaced what in "struct frame_info".
5503 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5504 deprecated_update_frame_base_hack and
5505 deprecated_update_frame_pc_hack.
5506 * hppa-tdep.c: Ditto.
5507
5508 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5509
5510 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5511 to read_reg and update its comment. Remove regnum member.
5512 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5513 Don't call read_reg when setting in_reg. Call read_reg to get
5514 the frame base if it's in a register. Return the register number
5515 on the stack instead of in the context. Remove extra arguments
5516 to read_reg.
5517 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5518 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5519 the register number on the expression stack.
5520 (needs_frame_read_reg): Remove extra arguments.
5521
5522 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5523
5524 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5525 made non-static.
5526 (execute_stack_op): All callers updated.
5527 * dwarf2expr.h: Add prototype for dwarf2_read_address.
5528 * dwarf2loc.c (find_location_expression): New function.
5529 (dwarf_expr_frame_base): Call it.
5530 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5531 (dwarf2_tracepoint_var_ref): New function, broken out from
5532 locexpr_tracepoint_var_ref.
5533 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5534 Make static.
5535 (loclist_read_variable, loclist_read_needs_frame): New functions.
5536 (loclist_describe_location, loclist_tracepoint_var_ref): New
5537 functions.
5538 (dwarf2_loclist_funcs): New struct location_funcs.
5539 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5540 (struct dwarf2_locexpr_baton): Add comments.
5541 (dwarf2_loclist_funcs): New extern.
5542 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5543 base_address and base_known.
5544 (dwarf_loc_buffer): New variable.
5545 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5546 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5547 (dwarf2_has_info): Initialize dwarf_loc_offset.
5548 (dwarf2_build_psymtabs): Read in .debug_loc.
5549 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5550 DWARF_LOC_SIZE.
5551 (psymtab_to_symtab_1): Likewise. Move base address calculation
5552 here, from...
5553 (dwarf2_get_pc_bounds): ... here. Use the base address from
5554 cu_header.
5555 (dwarf2_symbol_mark_computed): Handle location lists.
5556
5557 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5558
5559 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5560 if the linkage name demangled successfully.
5561
5562 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5563
5564 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5565 disassmbly_flavour): Removed.
5566
5567 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5568
5569 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5570
5571 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5572
5573 2003-04-12 Andrew Cagney <cagney@redhat.com>
5574
5575 * frame.h (struct frame_info): Move definition from here ...
5576 * frame.c (struct frame_info): ... to here.
5577
5578 2003-04-12 Andrew Cagney <cagney@redhat.com>
5579
5580 * gdbthread.h (save_infrun_state): Delete parameter
5581 "prev_func_start".
5582 (struct thread_info): Delete field "prev_func_start".
5583 (load_infrun_state): Ditto.
5584 * thread.c (load_infrun_state, save_infrun_state): Update.
5585 * infrun.c (prev_func_start): Delete variable.
5586 (context_switch, init_wait_for_inferior): Update.
5587 (stop_stepping, keep_going): Update.
5588
5589 2003-04-12 Andrew Cagney <cagney@redhat.com>
5590
5591 * gdbarch.sh: Add missing opaque declarations.
5592 * gdbarch.h: Regnerate.
5593 * symtab.h: Add missing opaque declarations.
5594 * value.h, target.h, symfile.h, stabsread.h: Ditto.
5595 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
5596 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
5597 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
5598 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
5599 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
5600 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
5601 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
5602 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
5603 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
5604 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
5605 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
5606 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
5607
5608 2003-04-11 Andrew Cagney <cagney@redhat.com>
5609
5610 * frame.c (get_frame_id): Return this frame's "id".
5611 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
5612 function start.
5613 (legacy_saved_regs_this_id): Replace function body with
5614 internal-error.
5615 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
5616 FRAME_OBSTACK_ZALLOC.
5617 (create_new_frame): Mark the frame ID as valid.
5618
5619 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
5620
5621 * Makefile.in (libbfd_h): Added missing setting.
5622 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
5623 according to the selected ABI.
5624
5625 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
5626
5627 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
5628
5629 2003-04-11 Andrew Cagney <cagney@redhat.com>
5630
5631 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
5632 SAVED_PC_AFTER_CALL.
5633 * gdbarch.h, gdbarch.c: Regenerate.
5634 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5635 * x86-64-tdep.c (x86_64_init_abi): Update.
5636 * vax-tdep.c (vax_gdbarch_init): Update.
5637 * v850-tdep.c (v850_gdbarch_init): Update.
5638 * sparc-tdep.c (sparc_gdbarch_init): Update.
5639 * sh-tdep.c (sh_gdbarch_init): Update.
5640 * s390-tdep.c (s390_gdbarch_init): Update.
5641 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5642 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5643 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5644 * mips-tdep.c (mips_gdbarch_init): Update.
5645 * mcore-tdep.c (mcore_gdbarch_init): Update.
5646 * m68k-tdep.c (m68k_gdbarch_init): Update.
5647 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5648 * ia64-tdep.c (ia64_gdbarch_init): Update.
5649 (ia64_saved_pc_after_call): Update declaration.
5650 * i386ly-tdep.c (i386lynx_init_abi): Update.
5651 * i386-tdep.c (i386_gdbarch_init): Update.
5652 * hppa-tdep.c (hppa_gdbarch_init): Update.
5653 * h8300-tdep.c (h8300_gdbarch_init): Update.
5654 * frv-tdep.c (frv_gdbarch_init): Update.
5655 * cris-tdep.c (cris_gdbarch_init): Update.
5656 * avr-tdep.c (avr_gdbarch_init): Update.
5657 * arm-tdep.c (arm_gdbarch_init): Update.
5658 * alpha-tdep.c (alpha_gdbarch_init): Update.
5659 * ns32knbsd-nat.c (frame_num_args): Update.
5660 * ns32k-tdep.c (umax_frame_num_args): Update.
5661 * mips-tdep.c (mips_init_frame_pc_first): Update.
5662 * infrun.c (step_over_function): Update.
5663 * i386-linux-tdep.c (skip_hurd_resolver): Update.
5664 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
5665 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5666 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5667 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5668 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5669 * arm-linux-tdep.c (skip_hurd_resolver): Update.
5670 * arch-utils.c (init_frame_pc_default): Update.
5671 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5672 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
5673 declaration.
5674
5675 2003-04-11 Andrew Cagney <cagney@redhat.com>
5676
5677 * i387-tdep.c: Update copyright.
5678 (i387_to_double): Delete function.
5679 (double_to_i387): Delete function.
5680
5681 2003-04-10 Andrew Cagney <cagney@redhat.com>
5682
5683 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
5684 frame's function's address. Simplify.
5685 (d10v_frame_unwind_cache): Check that the frame's function is
5686 non-zero.
5687
5688 2003-04-10 Jim Blandy <jimb@redhat.com>
5689
5690 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
5691 call to set_gdbarch_deprecated_push_arguments.
5692
5693 2003-04-10 Andrew Cagney <cagney@redhat.com>
5694
5695 * frame.c (fprint_frame_id): New function.
5696 (fprint_frame_type, fprint_frame): New function.
5697 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
5698 (create_sentinel_frame, get_frame_id): Ditto.
5699 (frame_id_p, frame_id_eq): Ditto.
5700 (frame_id_inner, create_new_frame): Ditto.
5701 (legacy_get_prev_frame, get_prev_frame): Ditto.
5702 (deprecated_update_frame_pc_hack): Ditto.
5703 (frame_register_unwind): Ditto.
5704 (deprecated_update_frame_base_hack): Ditto.
5705
5706 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
5707
5708 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
5709 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
5710 frame_chain function.
5711 * Makefile.in: Add dependencies due to above change.
5712
5713 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
5714
5715 * blockframe.c (legacy_frame_chain_valid): Move call to
5716 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
5717 inside_entry_file.
5718
5719 2003-04-09 Andrew Cagney <cagney@redhat.com>
5720
5721 * frame.h (struct frame_id): Replace "pc" and "base" with
5722 "stack_addr" and "code_addr". Update comments.
5723 (frame_id_build): Update parameter names and comment.
5724 (struct frame_info): Replace "id_p" and "id" with "this_id".
5725 * dummy-frame.c (dummy_frame_this_id): Update.
5726 * breakpoint.c (print_one_breakpoint): Update.
5727 * frame.c (get_frame_id): Update.
5728 (get_frame_base, frame_id_build): Update.
5729 (create_sentinel_frame, legacy_get_prev_frame): Update.
5730 (deprecated_update_frame_base_hack): Update.
5731 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
5732 (frame_id_inner): Ditto.
5733
5734 2003-04-09 Andrew Cagney <cagney@redhat.com>
5735
5736 * defs.h (gdb_print_host_address): Make "addr" parameter a
5737 pointer constant.
5738 * utils.c (gdb_print_host_address): Update.
5739
5740 2003-04-09 Kevin Buettner <kevinb@redhat.com>
5741
5742 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
5743 register number for R0 is 0.
5744
5745 2003-04-09 J. Brobecker <brobecker@gnat.com>
5746
5747 * frame.h (struct gdbarch): Add opaque structure definition
5748 to avoid a compilation warning on LynxOS 4.0.
5749
5750 2003-04-09 Andrew Cagney <cagney@redhat.com>
5751
5752 * frame.h (struct frame_info): Delete field "pc". Replace
5753 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
5754 structure.
5755 * frame.c (frame_pc_unwind): Update.
5756 (create_sentinel_frame): Do not set "pc".
5757 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
5758 (get_frame_pc): Call frame_pc_unwind.
5759 (deprecated_update_frame_pc_hack): Update.
5760 (create_new_frame): Use "pc" not "->pc".
5761
5762 2003-04-09 Andrew Cagney <cagney@redhat.com>
5763
5764 * frame.c (get_frame_id): Eliminate code updating "frame".
5765 (legacy_get_prev_frame): Ditto.
5766 (get_frame_base): Return id.base directly.
5767 (deprecated_update_frame_base_hack): Update "id.base".
5768 * frame.h (struct frame_info): Delete field "frame".
5769
5770 2003-04-09 Andrew Cagney <cagney@redhat.com>
5771
5772 * NEWS: Mention that the "Sequent family" is obsolete.
5773 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
5774 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5775 * configure.host: Obsolete i[3456]86-sequent-bsd*,
5776 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5777 * config/i386/tm-ptx4.h: Obsolete file.
5778 * config/i386/tm-ptx.h: Obsolete file.
5779 * symm-tdep.c: Obsolete file.
5780 * config/i386/symmetry.mt: Obsolete file.
5781 * config/i386/tm-symmetry.h: Obsolete file.
5782 * symm-nat.c: Obsolete file.
5783 * config/i386/nm-symmetry.h: Obsolete file.
5784 * config/i386/xm-symmetry.h: Obsolete file.
5785 * config/i386/symmetry.mh: Obsolete file.
5786 * config/i386/nm-ptx4.h: Obsolete file.
5787 * config/i386/ptx4.mh: Obsolete file.
5788 * config/i386/ptx.mt: Obsolete file.
5789 * config/i386/ptx.mh: Obsolete file.
5790 * config/i386/xm-ptx4.h: Obsolete file.
5791 * config/i386/xm-ptx.h: Obsolete file.
5792
5793 2003-04-09 Andrew Cagney <cagney@redhat.com>
5794
5795 Obsolete mips*-*-mach3*.
5796 * NEWS: Mention that mips*-*-mach3* is obsolete.
5797 * m3-nat.c: Obsolete file.
5798 * config/nm-m3.h: Obsolete file.
5799 * config/mips/tm-mipsm3.h: Obsolete file.
5800 * config/mips/mipsm3.mt: Obsolete file.
5801 * config/mips/mipsm3.mh: Obsolete file.
5802 * config/mips/xm-mipsm3.h: Obsolete file.
5803 * mipsm3-nat.c: Obsolete file.
5804 * configure.host: Obsolete mips-dec-mach3*.
5805 * configure.tgt: Obsolete mips*-*-mach3*.
5806
5807 2003-04-09 Andrew Cagney <cagney@redhat.com>
5808
5809 * doublest.h: Update copyright.
5810 (deprecated_store_floating, deprecated_extract_floating): Rename
5811 store_floating and extract_floating. Update comments.
5812 * doublest.c: Update copyright.
5813 (extract_floating_by_length): Replace extract_floating.
5814 (store_floating_by_length): Replace store_floating.
5815 (deprecated_extract_floating): New function.
5816 (deprecated_store_floating): New function.
5817 (extract_typed_floating): Call extract_floating_by_length.
5818 (store_typed_floating): Call store_floating_by_length.
5819 * x86-64-tdep.c (x86_64_store_return_value): Update.
5820 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
5821 (sh64_extract_return_value): Update.
5822 (sh_sh4_register_convert_to_virtual): Update.
5823 (sh_sh64_register_convert_to_virtual): Update.
5824 (sh_sh4_register_convert_to_raw): Update.
5825 (sh_sh64_register_convert_to_raw): Update.
5826 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
5827 (rs6000_register_convert_to_raw): Update.
5828 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
5829 (ia64_register_convert_to_raw): Update.
5830 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
5831 (REGISTER_CONVERT_TO_VIRTUAL): Update.
5832 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
5833 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
5834 (alpha_register_convert_to_raw): Update.
5835
5836 2003-04-08 Andrew Cagney <cagney@redhat.com>
5837
5838 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
5839 * gdbarch.h, gdbarch.c: Re-generate.
5840 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
5841 (d10v_gdbarch_init): Do not set saved_pc_after_call.
5842 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
5843 conditionally, use frame_pc_unwind as an alternative. Add
5844 comments.
5845 * arch-utils.c (init_frame_pc_default): Only call
5846 SAVED_PC_AFTER_CALL when available.
5847
5848 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
5849
5850 * infrun.c (stop_soon): Rename from stop_soon_quietly.
5851 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
5852 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
5853 (start_remote): Ditto.
5854 (handle_inferior_event): Ditto.
5855 (save_inferior_status): Ditto.
5856 (restore_inferior_status): Ditto.
5857 * infcmd.c (attach_command): Ditto.
5858 * fork-child.c (startup_inferior): Ditto.
5859 * inferior.h (stop_soon): Rename from stop_soon_quietly.
5860 * alpha-tdep.c (heuristic_proc_start): Ditto.
5861 * mips-tdep.c (heuristic_proc_start): Ditto.
5862 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
5863 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
5864 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
5865 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
5866 * remote-vx.c (vx_create_inferior): Ditto.
5867
5868 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
5869
5870 * infrun.c (stop_soon_quietly): Make it an enum, to better
5871 override the default behavior of handle_inferior_event.
5872 (clear_proceed_status): Update uses of stop_soon_quietly to
5873 reflect that it is now an enum.
5874 (start_remote): Ditto.
5875 (handle_inferior_event): Change logic a bit if stop_soon_quietly
5876 is set to handle the new GNU/Linux kernel behavior for
5877 attach/sigstop. Update uses of stop_soon_quietly.
5878 * inferior.h (enum stop_kind): New enum.
5879 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
5880 Reset normal handle_inferior_event behavior, afterwards.
5881 * fork-child.c (startup_inferior): Update.
5882 * alpha-tdep.c (heuristic_proc_start): Update.
5883 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
5884 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
5885 * solib-osf.c (osf_solib_create_inferior_hook): Update.
5886 * solib-irix.c (irix_solib_create_inferior_hook): Update.
5887 * remote-vx.c (vx_create_inferior): Update.
5888 * mips-tdep.c (heuristic_proc_start): Update.
5889
5890 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
5891
5892 * disasm.c (dump_insns): Move variables inside loop, or they will
5893 be freed more than once, causing wild memory corruptions.
5894 (gdb_disassembly): Look for the substring "-thread",
5895 instead of "-threads" in the target name, to make sure to find
5896 the 'multi-thread' target. Also, make sure we do the right thing
5897 with the "core" target.
5898
5899 2003-04-07 Kevin Buettner <kevinb@redhat.com>
5900
5901 * mips-tdep.c (mips_print_fp_register): New function, created from
5902 do_fp_register_row(). Registers are now (also) printed as hex.
5903 Only one register is printed per row.
5904 (mips_print_register, do_fp_register_row): Print floating point
5905 registers with mips_print_fp_register().
5906
5907 2003-04-06 Andrew Cagney <cagney@redhat.com>
5908
5909 * valprint.h (inspect_it): Add extern declaration.
5910 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
5911 (selectors_info, classes_info): Ditto.
5912 (find_objc_msgcall): Fix indentation.
5913 (objc_printstr): Delete extern declarations.
5914
5915 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
5916
5917 2003-04-06 Andrew Cagney <cagney@redhat.com>
5918
5919 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
5920 Update comment.
5921 * frame.c (legacy_saved_regs_this_id): Update.
5922 (legacy_get_prev_frame): Update.
5923 * xstormy16-tdep.c: Update comment.
5924 * sparc-tdep.c (sparc_frame_chain): Update comment.
5925 * blockframe.c (legacy_frame_chain_valid): Update.
5926
5927 2003-04-06 Andrew Cagney <cagney@redhat.com>
5928
5929 * valprint.c (val_print_type_code_int): Delete #ifdef
5930 PRINT_TYPELESS_INTEGER code.
5931
5932 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
5933 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
5934 multi-arch definition.
5935 * gdbarch.h: Re-generate.
5936
5937 2003-04-05 Andrew Cagney <cagney@redhat.com>
5938
5939 Eliminate FRAME_FIND_SAVED_REGS.
5940 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5941 Change FSR parameter to a pointer.
5942 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
5943 Assume FSR parameter is a pointer.
5944 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5945 Make fsr a pointer.
5946 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
5947 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
5948 saved_regs a pointer.
5949 (hppa_frame_saved_pc): Ditto.
5950 (find_dummy_frame_regs): Make frame_saved_regs a pointer
5951 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
5952 pointer.
5953 (restore_pc_queue): Make fsr a pointer.
5954 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
5955 (hppa_frame_chain): Make saved_regs a pointer, call
5956 hppa_frame_init_saved_regs.
5957 * sparc-tdep.c: Include "gdb_assert.h".
5958 (sparc_frame_find_saved_regs): Replace internal_error with
5959 gdb_assert.
5960 * remote-vxsparc.c (vx_read_register): Delete reference to
5961 FRAME_FIND_SAVED_REGS.
5962 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
5963 * gdbarch.h: Regenerate.
5964 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
5965 (deprecated_get_frame_saved_regs): Delete declaration.
5966 (struct frame_saved_regs): Delete definition.
5967 * frame.c (deprecated_get_frame_saved_regs): Delete function.
5968 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
5969 (hppa_frame_find_saved_regs): Delete declaration.
5970 (FRAME_FIND_SAVED_REGS): Delete macro.
5971 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
5972 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
5973 FRAME_FIND_SAVED_REGS in comment.
5974
5975 2003-04-05 Andrew Cagney <cagney@redhat.com>
5976
5977 * frame.c (frame_func_unwind, get_frame_func): New functions.
5978 * frame.h (get_frame_func, frame_func_unwind): Declare.
5979 (struct frame_info): Add field "prev_func" for caching the
5980 previous frame's function address.
5981 * arm-tdep.c (arm_frameless_function_invocation): Combine
5982 get_pc_function_start and get_frame_pc into get_frame_func.
5983 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
5984 (sh64_nofp_frame_init_saved_regs): Ditto.
5985 * s390-tdep.c (s390_function_start): Ditto.
5986 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
5987 (rs6000_frameless_function_invocation): Ditto.
5988 (rs6000_frame_saved_pc): Ditto.
5989 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
5990 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
5991 * i386-tdep.c (i386_frameless_signal_p): Ditto.
5992 (i386_frame_init_saved_regs): Ditto.
5993 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
5994 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
5995 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
5996 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5997 * blockframe.c (frameless_look_for_prologue): Ditto.
5998
5999 2003-04-05 Andrew Cagney <cagney@redhat.com>
6000
6001 * frame.c (legacy_get_prev_frame): Link prev to next at the
6002 function start. Update comments.
6003
6004 2003-04-05 Andrew Cagney <cagney@redhat.com>
6005
6006 * frame.c (get_frame_id): Update comment.
6007 (legacy_get_prev_frame): Update comment.
6008 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6009 * gdbarch.h: Regenerate.
6010 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6011 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6012
6013 2003-04-05 Andrew Cagney <cagney@redhat.com>
6014
6015 * stack.c (print_frame_info): Use get_frame_pc.
6016
6017 2003-04-04 Andrew Cagney <cagney@redhat.com>
6018
6019 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6020 the frame's type from the unwinder.
6021 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6022 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6023 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6024 (get_frame_base_address): Use get_frame_type.
6025 (get_frame_locals_address, get_frame_args_address): Ditto.
6026 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6027 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6028 (struct frame_info): Add comment explaining why the frame contains
6029 a "type" field.
6030 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6031 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6032 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6033 NORMAL_FRAME.
6034 * frame-unwind.h: Include "frame.h".
6035 (struct frame_unwind): Add "type" field.
6036 * Makefile.in (frame_unwind_h): Add $(frame_h).
6037
6038 2003-04-04 Andrew Cagney <cagney@redhat.com>
6039
6040 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6041 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6042 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6043 get_frame_base.
6044 (d10v_unwind_dummy_id): Use frame_id_build.
6045 * frame.c (find_frame_sal): Use get_frame_pc.
6046 (create_new_frame): Use deprecated_update_frame_pc_hack and
6047 deprecated_update_frame_base_hack.
6048 (create_sentinel_frame): Add comment about ->pc going away.
6049 (get_prev_frame): Add comment about ->pc going away.
6050 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6051 frame_id_build, deprecated_update_frame_pc_hack and
6052 deprecated_update_frame_base_hack.
6053 (select_frame): Use get_frame_pc.
6054 (legacy_saved_regs_this_id): Use frame_id_build.
6055
6056 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6057
6058 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6059 signed integer case.
6060 (classify_argument): Handle enumerations and references.
6061
6062 2003-04-04 Andrew Cagney <cagney@redhat.com>
6063
6064 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6065 ID to NULL.
6066
6067 2003-04-01 Adam Fedor <fedor@gnu.org>
6068
6069 * gdb/objc-lang.c (selectors_info): Replace calls to
6070 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6071 SYMBOL_NATURAL_NAME.
6072 (classes_info, find_methods): Likewise.
6073
6074 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6075
6076 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6077 ``mach'' to the value determined by bfd_default_set_arch_mach().
6078
6079 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6080
6081 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6082 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6083 (mi-cmd-file.o): Update dependencies.
6084
6085 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6086
6087 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6088 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6089
6090 2003-04-01 Adam Fedor <fedor@gnu.org>
6091
6092 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6093 * language.h (struct language_defn): Add la_demangle.
6094 (language_demangle): Declare.
6095 * language.c (language_demangle): New function.
6096 (unk_lang_demangle): Likewise.
6097 (unknown_language_defn, auto_language_defn, local_language_defn):
6098 Add ukn_lang_demangle.
6099 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6100 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6101 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6102 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6103 * jv-lang.c (java_demangle): New function
6104 (java_language_defn): Use it for la_demangle element.
6105 * objc-lang.c (objc_demangle): Add options argument
6106 (objc_language_defn): Use objc_demangle for la_demangle element.
6107 * maint.c (maintenance_demangle): Replace switch with
6108 call to language_demangle.
6109 * utils.c (fprintf_symbol_filtered): Likewise.
6110
6111 2003-04-01 Andrew Cagney <cagney@redhat.com>
6112
6113 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6114 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6115 PRINT_TYPELESS_INTEGER.
6116 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6117 PUSH_RETURN_ADDRESS.
6118
6119 2003-04-01 Andrew Cagney <cagney@redhat.com>
6120
6121 * Makefile.in (d10v-tdep.o): Update dependencies.
6122 * d10v-tdep.c: Include "frame-base.h".
6123 (d10v_frame_unwind): Make constant.
6124 (d10v_frame_base_address): New function.
6125 (d10v_frame_base): New variable.
6126 (d10v_gdbarch_init): Set frame_base default.
6127 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6128 comment for base.
6129 (d10v_frame_unwind_cache): Set and use "prev_sp".
6130 (d10v_frame_this_id): Use the previous frame's inner most stack
6131 address and this frame's func address for the frame ID. Use
6132 frame_id_build. Don't analyze beyond the current instruction.
6133
6134 2003-04-01 Andrew Cagney <cagney@redhat.com>
6135
6136 * frame.h (get_frame_locals_address, get_frame_args_address):
6137 Refer to the base address, instead of the address of the first
6138 local or parameter.
6139
6140 2003-04-01 Andrew Cagney <cagney@redhat.com>
6141
6142 Add frame debug info addresses:
6143 * frame-base.c: New file.
6144 * frame-base.h: New file.
6145 * frame.h (struct frame_base): Add opaque declaration.
6146 (get_frame_base): Update comment.
6147 (get_frame_base_address): Declare.
6148 (get_frame_locals_address): Declare.
6149 (get_frame_args_address): Declare.
6150 (struct frame_info): Add "base" and "base_cache". Update
6151 comments on the unwinder.
6152 * frame.c: Include "frame-base.h".
6153 (get_frame_locals_address): New function.
6154 (get_frame_base_address): New function.
6155 (get_frame_args_address): New function.
6156 * findvar.c (read_var_value): Use get_frame_locals_address and
6157 get_frame_args_address.
6158 * stack.c (frame_info): Use get_frame_locals_address and
6159 get_frame_args_address.
6160 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6161 moved to "frame-base.c".
6162 * printcmd.c (print_frame_nameless_args): Ditto.
6163 * symtab.h (address_class): Update comments.
6164 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6165 get_frame_base_address.
6166 * dwarf2expr.c (execute_stack_op): Ditto.
6167 * Makefile.in (frame_base_h): Define.
6168 (frame.o): Update dependencies.
6169 (frame-base.o): Add dependencies.
6170 (SFILES): Add frame-base.c.
6171 (COMMON_OBS): Add frame-base.o.
6172
6173 2003-04-01 Andrew Cagney <cagney@redhat.com>
6174
6175 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6176 CALL_DUMMY_LENGTH): Ditto.
6177 * gdbarch.c: Re-generate.
6178 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6179 (CALL_DUMMY_LENGTH): Delete macro.
6180 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6181 * arm-tdep.c (arm_gdbarch_init): Ditto.
6182 * avr-tdep.c (avr_gdbarch_init): Ditto.
6183 * cris-tdep.c (cris_gdbarch_init): Ditto.
6184 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6185 * frv-tdep.c (frv_gdbarch_init): Ditto.
6186 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6187 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6188 * i386-tdep.c (i386_gdbarch_init): Ditto.
6189 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6191 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6192 * mips-tdep.c (mips_gdbarch_init): Ditto.
6193 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6194 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6195 * s390-tdep.c (s390_gdbarch_init): Ditto.
6196 * sh-tdep.c (sh_gdbarch_init): Ditto.
6197 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6198 * v850-tdep.c (v850_gdbarch_init): Ditto.
6199 * vax-tdep.c (vax_gdbarch_init): Ditto.
6200 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6201
6202 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6203
6204 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6205
6206 2003-04-01 Andrew Cagney <cagney@redhat.com>
6207
6208 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6209 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6210 * gdbarch.h, gdbarch.c: Re-generate.
6211 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6212 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6213 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6214 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6215 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6216 * infcmd.c (run_stack_dummy): Simplify assuming
6217 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6218 * infrun.c (handle_inferior_event): Ditto.
6219 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6220 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6221 * arm-tdep.c (arm_gdbarch_init): Ditto.
6222 * avr-tdep.c (avr_gdbarch_init): Ditto.
6223 * cris-tdep.c (cris_gdbarch_init): Ditto.
6224 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6225 * frv-tdep.c (frv_gdbarch_init): Ditto.
6226 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6227 * i386-tdep.c (i386_gdbarch_init): Ditto.
6228 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6229 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6230 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6231 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6232 * mips-tdep.c (mips_gdbarch_init): Ditto.
6233 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6234 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6235 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6236 * s390-tdep.c (s390_gdbarch_init): Ditto.
6237 * sh-tdep.c (sh_gdbarch_init): Ditto.
6238 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6239 * v850-tdep.c (v850_gdbarch_init): Ditto.
6240 * vax-tdep.c (vax_gdbarch_init): Ditto.
6241 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6242
6243 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6244
6245 * symfile.c (symfile_relocate_debug_section): Update call to
6246 bfd_simple_get_relocated_section_contents.
6247
6248 2003-03-31 Andrew Cagney <cagney@redhat.com>
6249
6250 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6251 * gdbarch.h, gdbarch.c: Regenerate.
6252 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6253 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6254 available.
6255 * frame.h (generic_fix_call_dummy): Delete declaration.
6256 * dummy-frame.h: Update comment.
6257 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6258 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6259 fix_call_dummy.
6260 * sh-tdep.c (sh_gdbarch_init): Ditto.
6261 * s390-tdep.c (s390_gdbarch_init): Ditto.
6262 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6263 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6264 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6265 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6266 * i386-tdep.c (i386_gdbarch_init): Ditto.
6267 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6268 * frv-tdep.c (frv_gdbarch_init): Ditto.
6269 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6270 * cris-tdep.c (cris_gdbarch_init): Ditto.
6271 * avr-tdep.c (avr_gdbarch_init): Ditto.
6272 * arm-tdep.c (arm_gdbarch_init): Ditto.
6273
6274 2003-03-31 J. Brobecker <brobecker@gnat.com>
6275
6276 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6277 (INIT_FRAME_AP): Likewise.
6278 (EXTRA_FRAME_INFO): Likewise.
6279
6280 2003-03-31 Andrew Cagney <cagney@redhat.com>
6281
6282 * gdbarch.sh: Include "symfile.h".
6283 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6284 * gdbarch.h, gdbarch.c: Re-generate.
6285 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6286 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6287 call_dummy_address, the default is at entry_point_address.
6288 * v850-tdep.c (v850_gdbarch_init): Ditto.
6289 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6290 * sh-tdep.c (sh_gdbarch_init): Ditto.
6291 * s390-tdep.c (s390_gdbarch_init): Ditto.
6292 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6293 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6294 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6295 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6296 * i386-tdep.c (i386_gdbarch_init): Ditto.
6297 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6298 * frv-tdep.c (frv_gdbarch_init): Ditto.
6299 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6300 * cris-tdep.c (cris_gdbarch_init): Ditto.
6301 * arm-tdep.c (arm_gdbarch_init): Ditto.
6302
6303 2003-03-31 Andrew Cagney <cagney@redhat.com>
6304
6305 * gdbarch.sh (CALL_DUMMY_P): Delete.
6306 * gdbarch.h, gdbarch.c: Re-generate.
6307 * inferior.h (CALL_DUMMY_P): Delete macro.
6308 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6309 * vax-tdep.c (vax_gdbarch_init): Update.
6310 * v850-tdep.c (v850_gdbarch_init): Update.
6311 * sparc-tdep.c (sparc_gdbarch_init): Update.
6312 * sh-tdep.c (sh_gdbarch_init): Update.
6313 * s390-tdep.c (s390_gdbarch_init): Update.
6314 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6315 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6316 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6317 * mips-tdep.c (mips_gdbarch_init): Update.
6318 * mcore-tdep.c (mcore_gdbarch_init): Update.
6319 * m68k-tdep.c (m68k_gdbarch_init): Update.
6320 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6321 * ia64-tdep.c (ia64_gdbarch_init): Update.
6322 * i386-tdep.c (i386_gdbarch_init): Update.
6323 * h8300-tdep.c (h8300_gdbarch_init): Update.
6324 * frv-tdep.c (frv_gdbarch_init): Update.
6325 * d10v-tdep.c (d10v_gdbarch_init): Update.
6326 * cris-tdep.c (cris_gdbarch_init): Update.
6327 * breakpoint.c (deprecated_frame_in_dummy): Update.
6328 * avr-tdep.c (avr_gdbarch_init): Update.
6329 * alpha-tdep.c (alpha_gdbarch_init): Update.
6330 * arm-tdep.c (arm_gdbarch_init): Update.
6331 * dummy-frame.c (dummy_frame_this_id): Update comments.
6332 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6333 * frame.c (legacy_get_prev_frame): Ditto.
6334 * valops.c (call_function_by_hand): Delete function.
6335 (hand_function_call): Rename to call_function_by_hand
6336
6337 2003-03-30 Andrew Cagney <cagney@redhat.com>
6338
6339 2002-11-10 Klee Dienes <kdienes@apple.com>
6340 * value.h (struct value): Update comment.
6341
6342 2003-03-30 Andrew Cagney <cagney@redhat.com>
6343
6344 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6345 D10V_FP_REGNUM.
6346 (d10v_gdbarch_init): Do not set fp_regnum.
6347
6348 * frame.c (get_frame_base): Force ID initialization.
6349 (get_prev_frame): Move computation of the frame ID from here ...
6350 (get_frame_id): ... to here.
6351 (legacy_get_prev_frame): Mark the frame ID as valid.
6352 * frame.h (struct frame_info): Add field "id_p".
6353
6354 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6355
6356 * i386-tdep.c (i386_store_struct_return): Removed.
6357 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6358
6359 2003-03-30 Andrew Cagney <cagney@redhat.com>
6360
6361 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6362 * gdbarch.h, gdbarch.c: Regenerate.
6363 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6364 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6365 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6366 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6367 * i386-tdep.c (i386_gdbarch_init): Ditto.
6368 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6369 * cris-tdep.c (cris_gdbarch_init): Ditto.
6370 * vax-tdep.c (vax_gdbarch_init): Ditto.
6371 * s390-tdep.c (s390_gdbarch_init): Ditto.
6372 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6373 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6374 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6375 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6376 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6377 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6378 * sparc-tdep.c (sparc_gdbarch_init): Update.
6379 * sh-tdep.c (sh_gdbarch_init): Update.
6380 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6381 * mips-tdep.c (mips_gdbarch_init): Update.
6382 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6383 * ia64-tdep.c (ia64_gdbarch_init): Update.
6384 * frv-tdep.c (frv_gdbarch_init): Update.
6385 * avr-tdep.c (avr_gdbarch_init): Update.
6386 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6387 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6388 instead of when push_dummy_call is not available.
6389
6390 2003-03-30 Andrew Cagney <cagney@redhat.com>
6391
6392 * infttrace.c: Include "gdbthread.h".
6393 (parent_attach_all): Fix function signature.
6394 (call_ptrace): Update call.
6395 * Makefile.in (infttrace.o): Update dependencies.
6396
6397 2003-03-30 Andrew Cagney <cagney@redhat.com>
6398
6399 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6400 PUSH_RETURN_ADDRESS.
6401 * gdbarch.h, gdbarch.c: Regenerate.
6402 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6403 * x86-64-tdep.c (x86_64_init_abi): Update.
6404 * v850-tdep.c (v850_gdbarch_init): Update.
6405 * sparc-tdep.c (sparc_gdbarch_init): Update.
6406 * sh-tdep.c (sh_gdbarch_init): Update.
6407 * s390-tdep.c (s390_gdbarch_init): Update.
6408 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6409 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6410 * mips-tdep.c (mips_gdbarch_init): Update.
6411 * mcore-tdep.c (mcore_gdbarch_init): Update.
6412 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6413 * ia64-tdep.c (ia64_gdbarch_init): Update.
6414 * i386-tdep.c (i386_gdbarch_init): Update.
6415 * h8300-tdep.c (h8300_gdbarch_init): Update.
6416 * frv-tdep.c (frv_gdbarch_init): Update.
6417 * cris-tdep.c (cris_gdbarch_init): Update.
6418 * avr-tdep.c (avr_gdbarch_init): Update.
6419 * arm-tdep.c (arm_gdbarch_init): Update.
6420 * valops.c (hand_function_call): Update.
6421
6422 2003-03-29 Andrew Cagney <cagney@redhat.com>
6423
6424 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6425 sizeof_call_dummy_words.
6426 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6427 define.
6428 * gdbarch.h: Regenerate.
6429
6430 2003-03-29 Andrew Cagney <cagney@redhat.com>
6431
6432 * infttrace.h: New file.
6433 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6434 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6435 (hpread_read_doc_function_type): Detect an initialized type1.
6436 (hpread_quick_traverse): Initialize mod_name_string.
6437 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6438 (som_solib_get_solib_by_pc): Declare.
6439 (so_lib_thread_start_addr): Declare.
6440 (no_shared_libraries): Declare.
6441 * somread.c (init_import_symbols): Make static. Add forward
6442 declaration.
6443 * config/pa/nm-hppah.h: Include "infttrace.h" for
6444 parent_attach_all.
6445 (hppa_insert_hw_watchpoint): Declare.
6446 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6447 * hppah-nat.c: Include "gdb_string.h".
6448 (parent_attach_all): Delete extern declaration, moved to
6449 "infttrace.h".
6450 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6451 int.
6452 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6453 * Makefile.in (infttrace_h): Define.
6454 (hpread.o): Update dependencies.
6455 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6456 * hppa-hpux-tdep.c: Include "gdb_string.h".
6457 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6458 * infrun.c (handle_inferior_event): Always initialize
6459 stepped_after_stopped_by_watchpoint. Add default and remove
6460 fallthrough in switch statement.
6461 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6462 parameter to int.
6463 (hppa_remove_hw_watchpoint): Ditto.
6464
6465 2003-03-29 Andrew Cagney <cagney@redhat.com>
6466
6467 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6468 offset.
6469
6470 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
6471
6472 * arm-tdep.c (arm_push_arguments): Delete.
6473 (struct stack_item): New type.
6474 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6475 (arm_store_struct_return): Delte.
6476 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6477 arm_push_arguments or arm_store_struct_return.
6478
6479 2003-03-28 Andrew Cagney <cagney@redhat.com>
6480
6481 * Makefile.in (d10v-tdep.o): Update dependencies.
6482 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6483 * d10v-tdep.c: Include "remote.h".
6484 (target_resume_hook): Delete extern declaration.
6485 (target_wait_loop_hook): Ditto.
6486 (tdisassemble_command): Eliminate assignment in "if" conditional.
6487 (d10v_ts2_register_sim_regno): Eliminate call to
6488 legacy_register_sim_regno.
6489 (d10v_ts3_register_sim_regno): Ditto.
6490
6491 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
6492
6493 * thread.c: Reindented.
6494 * lin-lwp.c: Ditto.
6495 * linux-proc.c: Ditto.
6496
6497 2003-03-28 Bob Rossi <bob_rossi@cox.net>
6498
6499 * MAINTAINERS (write after approval): Add myself.
6500
6501 2003-03-27 Theodore A. Roth <troth@openavr.org>
6502
6503 * objc-exp.y: Add missing semi-colons.
6504
6505 2003-03-27 Andrew Cagney <cagney@redhat.com>
6506
6507 * regcache.c (write_sp): Delete function and references.
6508 * inferior.h (write_sp): Delete declaration.
6509 * valops.c (hand_function_call): Replace write_sp with
6510 TARGET_WRITE_SP.
6511 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6512 (sparc_pop_frame): Ditto.
6513
6514 2003-03-27 Andrew Cagney <cagney@redhat.com>
6515
6516 * NEWS: Mention removal of support for hppa*-*-bsd* and
6517 hppa*-*-osf* natives, and hppa*-*-pro* target.
6518 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6519 * config/pa/xm-pa.h: Obsolete file.
6520 * config/pa/xm-hppab.h: Obsolete file.
6521 * config/pa/nm-hppab.h: Obsolete file.
6522 * config/pa/tm-hppab.h: Obsolete file.
6523 * config/pa/tm-hppao.h: Obsolete file.
6524 * config/pa/nm-hppao.h: Obsolete file.
6525 * config/pa/tm-pro.h: Obsolete file.
6526 * config/pa/hppaosf.mt: Obsolete file.
6527 * config/pa/hppaosf.mh: Obsolete file.
6528 * config/pa/hppapro.mt: Obsolete file.
6529 * config/pa/hppabsd.mt: Obsolete file.
6530 * config/pa/hppabsd.mh: Obsolete file.
6531 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6532 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6533 hppa*-*-osf*.
6534
6535 2003-03-27 Andrew Cagney <cagney@redhat.com>
6536
6537 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6538 push_arguments. Don't set push_return_address or write_sp.
6539 (d10v_push_dummy_call): Replace d10v_push_arguments.
6540 (d10v_push_return_address, d10v_write_sp): Delete function,
6541 handled by push_dummy_call.
6542
6543 2003-03-26 Andrew Cagney <cagney@redhat.com>
6544
6545 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6546 (push_dummy_call): New pure multi-arch replacement with gdbarch,
6547 regcache and dummy_addr parameters.
6548 * gdbarch.h, gdbarch.c: Re-generate.
6549 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6550 available; assume it will handle stack alignment and return
6551 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
6552 legacy_push_arguments.
6553 (legacy_push_arguments): Rename default_push_arguments.
6554 * value.h (legacy_push_arguments): Rename default_push_arguments.
6555 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6556 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6557 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6558 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6559 * config/i386/tm-symmetry.h: Update.
6560 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6561 * x86-64-tdep.c (x86_64_init_abi): Update.
6562 * v850-tdep.c (v850_gdbarch_init): Update.
6563 * sparc-tdep.c (sparc_gdbarch_init): Update.
6564 * sh-tdep.c (sh_gdbarch_init): Update.
6565 * s390-tdep.c (s390_gdbarch_init): Update.
6566 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6567 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6568 * mips-tdep.c (mips_gdbarch_init): Update.
6569 * mcore-tdep.c (mcore_gdbarch_init): Update.
6570 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6571 * ia64-tdep.c (ia64_gdbarch_init): Update.
6572 * i386-tdep.c (i386_gdbarch_init): Update.
6573 * hppa-tdep.c (hppa_gdbarch_init): Update.
6574 * h8300-tdep.c (h8300_gdbarch_init): Update.
6575 * frv-tdep.c (frv_gdbarch_init): Update.
6576 * d10v-tdep.c (d10v_gdbarch_init): Update.
6577 * cris-tdep.c (cris_gdbarch_init): Update.
6578 * avr-tdep.c (avr_gdbarch_init): Update.
6579 * arm-tdep.c (arm_gdbarch_init): Update.
6580 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6581 * alpha-tdep.c (alpha_gdbarch_init): Update.
6582
6583 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6584
6585 * signals/signals.c (do_target_signal_to_host): Correct realtime
6586 signal range test.
6587
6588 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6589
6590 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6591 (struct sal_chain, map_catch_names): Remove.
6592 (catch_exception_command_1): Don't call
6593 handle_gnu_4_16_catch_command.
6594
6595 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6596
6597 From Mark Dettinger <dettinge@de.ibm.com>:
6598 * dwarf2cfi.c (read_2u): Increment pointer by two.
6599
6600 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6601
6602 * signals/signals.c: Fix typos in last change.
6603
6604 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6605
6606 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
6607 not already defined. Use __SIGRTMIN if available.
6608 (target_signal_from_host): Remove SIGRTMIN block.
6609 (do_target_signal_to_host): Remove SIGRTMIN block; check that
6610 the signal is within the realtime range.
6611
6612 2003-03-25 Adam Fedor <fedor@gnu.org>
6613
6614 * Makefile.in (infrun.o): Add $(language_h)
6615 * infrun.c (handle_inferior_event): Use skip_language_trampoline
6616 for language specific trampolines.
6617 * language.h (struct language_defn): Add skip_trampoline.
6618 (skip_language_trampoline): Declare.
6619 * language.c (unk_lang_trampoline, skip_language_trampoline):
6620 New functions.
6621 (unknown_language_defn, auto_language_defn, local_language_defn):
6622 Add ukn_lang_trampoline.
6623 * ada-lang.c (ada_language_defn): Add NULL for language
6624 specific skip_trampoline.
6625 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
6626 scm-lang.c: Likewise.
6627 * objc-lang.c (objc_skip_trampoline): New function.
6628 (objc_language_defn): Add objc_skip_trampoline.
6629
6630 2003-03-25 Andrew Cagney <cagney@redhat.com>
6631
6632 * frame.c (get_prev_frame): Delay validating a frame's ID -
6633 non-NULL, didn't go backwards - until an attempt to unwind it to
6634 the previous frame.
6635
6636 2003-03-25 Andrew Cagney <cagney@redhat.com>
6637
6638 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
6639 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
6640 * gdbarch.h, gdbarch.c: Re-generate.
6641 * config/sparc/tm-sparc.h
6642 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
6643 * sparc-tdep.c (sparc_gdbarch_init): Set
6644 deprecated_extra_stack_alignment_needed.
6645 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6646 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
6647 extra_stack_alignment_needed.
6648 * v850-tdep.c (v850_gdbarch_init): Ditto.
6649 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6650 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6651 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6652 * cris-tdep.c (cris_gdbarch_init): Ditto.
6653 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6654 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6655
6656 2003-03-25 Andrew Cagney <cagney@redhat.com>
6657
6658 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
6659 STORE_STRUCT_RETURN.
6660 * gdbarch.h, gdbarch.c: Regenerate.
6661 * d10v-tdep.c (d10v_store_struct_return): Delete function.
6662 (d10v_push_arguments): Set the struct return register.
6663 (d10v_gdbarch_init): Update.
6664 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6665 * x86-64-tdep.c (x86_64_init_abi): Update.
6666 * vax-tdep.c (vax_gdbarch_init): Update.
6667 * v850-tdep.c (v850_gdbarch_init): Update.
6668 * sparc-tdep.c (sparc_gdbarch_init): Update.
6669 * sh-tdep.c (sh_gdbarch_init): Update.
6670 * s390-tdep.c (s390_gdbarch_init): Update.
6671 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6672 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6673 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6674 * mips-tdep.c (mips_gdbarch_init): Update.
6675 * mcore-tdep.c (mcore_gdbarch_init): Update.
6676 * m68k-tdep.c (m68k_gdbarch_init): Update.
6677 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6678 * ia64-tdep.c (ia64_gdbarch_init): Update.
6679 * i386-tdep.c (i386_gdbarch_init): Update.
6680 * hppa-tdep.c (hppa_gdbarch_init): Update.
6681 * h8300-tdep.c (h8300_gdbarch_init): Update.
6682 * frv-tdep.c (frv_gdbarch_init): Update.
6683 * cris-tdep.c (cris_gdbarch_init): Update.
6684 * avr-tdep.c (avr_gdbarch_init): Update.
6685 * arm-tdep.c (arm_gdbarch_init): Update.
6686 * alpha-tdep.c (alpha_gdbarch_init): Update.
6687
6688 2003-03-25 Andrew Cagney <cagney@redhat.com>
6689
6690 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
6691 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
6692 CALL_DUMMY_STACK_ADJUST with a predicate variable.
6693 * gdbarch.h, gdbarch.c: Regenerate.
6694 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6695 call_dummy_stack_adjust_p.
6696 * vax-tdep.c (vax_gdbarch_init): Ditto.
6697 * v850-tdep.c (v850_gdbarch_init): Ditto.
6698 * sh-tdep.c (sh_gdbarch_init): Ditto.
6699 * s390-tdep.c (s390_gdbarch_init): Ditto.
6700 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6701 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6702 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6703 * mips-tdep.c (mips_gdbarch_init): Ditto.
6704 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6705 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6707 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6708 * i386-tdep.c (i386_gdbarch_init): Ditto.
6709 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6710 * frv-tdep.c (frv_gdbarch_init): Ditto.
6711 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6712 * cris-tdep.c (cris_gdbarch_init): Ditto.
6713 * avr-tdep.c (avr_gdbarch_init): Ditto.
6714 * arm-tdep.c (arm_gdbarch_init): Ditto.
6715 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6716 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6717 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
6718 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6719 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
6720 call_dummy_stack_adjust_p.
6721 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
6722 (CALL_DUMMY_STACK_ADJUST): Delete macro.
6723 * sparc-tdep.c (sparc32_push_arguments): Update.
6724 * valops.c (hand_function_call): Update.
6725
6726 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
6727
6728 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
6729 set_gdbarch_char_signed.
6730
6731 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
6732
6733 PR cli/548
6734 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
6735
6736 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
6737
6738 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
6739 (_initialize_arm_tdep): Don't set tm_print_insn.
6740
6741 2003-03-24 Adam Fedor <fedor@gnu.org>
6742
6743 * Makefile.in (YYOBJ): Add objc-exp.tab.o
6744 * objc-lang.h: Add multiple inclusion protection.
6745 (start_msglist, add_msglist, end_msglist): Additional declarations.
6746
6747 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
6748
6749 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
6750 value was renamed to ARM_FLOAT_SOFT_FPA.
6751
6752 2003-03-23 Andrew Cagney <cagney@redhat.com>
6753
6754 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
6755 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
6756 * gdbarch.h, gdbarch.c: Regenerate.
6757 * valops.c (hand_function_call): Update.
6758 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6759 * frame.c (legacy_saved_regs_this_id): Update.
6760 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
6761 * dummy-frame.h: Update.
6762 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
6763 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6764 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
6765 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
6766 * config/m68k/tm-sun3.h: Update.
6767 * blockframe.c (inside_main_func, frame_chain_valid): Update.
6768 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6769 * x86-64-tdep.c (x86_64_init_abi): Update.
6770 * vax-tdep.c (vax_gdbarch_init): Update.
6771 * v850-tdep.c (v850_gdbarch_init): Update.
6772 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
6773 * sh-tdep.c (sh_gdbarch_init): Update.
6774 * s390-tdep.c (s390_gdbarch_init): Update.
6775 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
6776 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
6777 (frame_get_saved_regs): Update.
6778 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6779 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6780 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6781 * mips-tdep.c (mips_gdbarch_init): Update.
6782 * mcore-tdep.c (mcore_gdbarch_init): Update.
6783 * m68k-tdep.c (m68k_gdbarch_init): Update.
6784 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6785 * ia64-tdep.c (ia64_gdbarch_init): Update.
6786 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
6787 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6788 (i386_interix_back_one_frame): Update.
6789 * hppa-tdep.c (hppa_gdbarch_init): Update.
6790 (hppa_init_extra_frame_info): Update.
6791 * h8300-tdep.c (h8300_gdbarch_init): Update.
6792 * frv-tdep.c (frv_gdbarch_init): Update.
6793 * cris-tdep.c (cris_gdbarch_init): Update.
6794 * avr-tdep.c (avr_gdbarch_init): Update.
6795 * arm-tdep.c (arm_gdbarch_init): Update.
6796 * alpha-tdep.c (alpha_gdbarch_init): Update.
6797
6798 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6799
6800 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
6801 (arm_get_fp_model): Declare.
6802 * arm-tdep.c (fp_model_strings): New string array.
6803 (arm_fp_model, current_fp_model): New variables.
6804 (arm_get_fp_model): New function.
6805 (arm_set_fp): New function.
6806 (set_fp_model_sfunc): New function.
6807 (show_fp_model): New function.
6808 (_initialize_arm_tdep): Add new command to set/show the FPU.
6809 (arm_extract_return_value): Use arm_get_fp_model.
6810 (arm_store_return_value): Likewise.
6811 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
6812 to initialize the floating-point data types.
6813 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
6814 model is FPA.
6815
6816 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6817
6818 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
6819 the current setting of each value.
6820 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
6821 new_set and new_show. Use add_setshow_cmd_full and
6822 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
6823 commands and add new version as subcommands of "set/show arm".
6824
6825 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6826
6827 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
6828 (set_arm_command, show_arm_command): New functions.
6829 (_initialize_arm_tdep): Add them.
6830 (num_disassembly_options): Renamed from num_flavor_options.
6831 (valid_disassembly_styles): Renamed from valid_flavors.
6832 (disassembly_style): Renamed from disassembly_flavor.
6833 (set_disassembly_style_sfunc): Renamed from
6834 set_disassembly_flavor_sfunc.
6835 (set_disassembly_style): Renamed from set_disassembly_flavor.
6836 (arm_othernames): Updated.
6837 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
6838 command. Add "set/show arm disassembly" commands. Deprecate
6839 "othernames" command.
6840
6841 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6842
6843 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
6844 (arm-tdep.o): Depend on elf_arm_h.
6845
6846 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6847
6848 * Makefile.in (coff_internal_h): Define.
6849 (arm-tdep.o): Update dependencies.
6850
6851 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6852
6853 * arm-tdep.c (prologue_cache): Delete.
6854 (check_prologue_cache, save_prologue_cache): Delete.
6855 (arm_scan_prologue): Don't check or update the prologue_cache.
6856 (arm_gdb_arch_init): Don't initialize it.
6857 (_initialize_arm_tdep): Likewise.
6858
6859 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
6860
6861 * MAINTAINERS (tui): Maintainer of tui code.
6862
6863 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
6864
6865 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
6866 (i386-cygwin-tdep.o): Add dependencies.
6867 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
6868 * i386-cygwin-tdep.c: New file.
6869 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
6870 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
6871
6872 2003-03-20 Andrew Cagney <cagney@redhat.com>
6873
6874 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
6875 (handle_inferior_event): Remove code calling
6876 DYNAMIC_TRAMPOLINE_NEXTPC.
6877
6878 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
6879 already has a full path.
6880
6881 * main.c (gdb_main): Return 1.
6882 (captured_main): Call error to report an invalid interpreter.
6883
6884 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6885 * alpha-osf1-tdep.c: Include "gdb_string.h".
6886
6887 2003-03-19 J. Brobecker <brobecker@gnat.com>
6888
6889 Continuing work to convert the hppa targets to multiarch partial.
6890
6891 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
6892 method, now that hppa_push_dummy_frame has a conformant prototype.
6893 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
6894 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
6895 for the switch to multiarch partial.
6896
6897 2003-03-19 Kevin Buettner <kevinb@redhat.com>
6898
6899 * mdebugread.c (parse_symbol): For stEnd, we're done counting
6900 when iss is issNull.
6901
6902 2003-03-18 Kevin Buettner <kevinb@redhat.com>
6903
6904 * mips-tdep.c (mips_register_name): Fix fencepost error involving
6905 NUM_REGS bounds check.
6906
6907 2003-03-18 Kevin Buettner <kevinb@redhat.com>
6908
6909 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
6910 * mips-tdep.c (gdb_assert.h): Include.
6911 (mips_generic_reg_names, mips_processor_reg_names): Make static.
6912 (mips_register_name): Handle integer registers explicitly. Add
6913 bounds checking.
6914 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
6915 (mips_lsi33k_reg_names): Don't list integer registers; they're
6916 handled by mips_register_name() now.
6917 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
6918 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
6919 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
6920 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
6921 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
6922
6923 2003-03-18 Andrew Cagney <cagney@redhat.com>
6924
6925 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
6926 a void pointer.
6927 * gdbtypes.h (print_scalar_formatted): Update declaration.
6928 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
6929
6930 2003-03-18 J. Brobecker <brobecker@gnat.com>
6931
6932 * infrun.c (observer.h): Add #include.
6933 (normal_stop): Add call to observer_notify_normal_stop.
6934 * Makefile.in (infrun.o): Add dependency on observer.h.
6935
6936 2003-03-18 J. Brobecker <brobecker@gnat.com>
6937
6938 Continuing work to convert the hppa targets to multiarch partial.
6939 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
6940 parameter. Reformat comment.
6941 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
6942 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
6943 to match new profile.
6944
6945 2003-03-18 J. Brobecker <brobecker@gnat.com>
6946
6947 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
6948 appear to be working in any case.
6949
6950 2003-03-18 J. Brobecker <brobecker@gnat.com>
6951
6952 * observer.c (observer_test_first_observer): New static variable.
6953 (observer_test_second_observer): Likewise.
6954 (observer_test_third_observer): Likewise.
6955 (observer_test_first_notification_function): New static function.
6956 (observer_test_second_notification_function): Likewise.
6957 (observer_test_third_notification_function): Likewise.
6958
6959 2003-03-17 J. Brobecker <brobecker@gnat.com>
6960
6961 * hppa-tdep.c (gdb_assert.h): Add missing #include.
6962 * somsolib.c (gdb_assert.h): Likewise.
6963 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
6964 (somsolib.o): Likewise.
6965
6966 2003-03-17 Andrew Cagney <cagney@redhat.com>
6967
6968 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
6969 BFD. Simplify setting of di.endian.
6970
6971 2003-03-17 Andrew Cagney <cagney@redhat.com>
6972
6973 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
6974 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
6975
6976 From Elena Zannoni <ezannoni@redhat.com>
6977 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
6978 vector and floating-point parameters.
6979 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
6980 convention.
6981 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
6982
6983 2003-03-17 Fernando Nasser <fnasser@redhat.com>
6984
6985 * MAINTAINERS: Remove my name from several maintainership roles.
6986
6987 2003-03-17 Andrew Cagney <cagney@redhat.com>
6988
6989 Fix frame off-by-one bug.
6990 * frame-unwind.h (frame_this_id_ftype): Replace
6991 frame_unwind_id_ftype.
6992 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
6993 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
6994 with "prev_register".
6995 * frame-unwind.c (frame_unwind_find_by_pc): Return
6996 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
6997 comment.
6998 * dummy-frame.c (cached_find_dummy_frame): Delete function.
6999 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7000 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7001 (dummy_frame_unwind): Update.
7002 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7003 sentinel_frame_register_unwind.
7004 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7005 (sentinel_frame_unwinder): Update.
7006 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7007 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7008 * frame.c (create_sentinel_frame): Update. Initialize
7009 "prologue_cache" instead of "unwind_cache".
7010 (frame_register_unwind): Call this frame's prev_register with the
7011 next frame and this frame's prologue cache.
7012 (get_prev_frame): Simplify. Always call prev frame's this_id with
7013 this frame and prev frame's prologue cache. Document that this
7014 call is shifted one to the left when compared to the
7015 frame_register_unwind call.
7016 (legacy_saved_regs_prev_register): Replace
7017 frame_saved_regs_register_unwind.
7018 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7019 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7020 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7021 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7022 (d10v_frame_unwind): Update.
7023 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7024 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7025 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7026 "saved_regs" with "this_saved_regs".
7027
7028 2003-03-16 Andrew Cagney <cagney@redhat.com>
7029
7030 * frame.c (frame_pop): Don't call target_store_registers. Fix
7031 problem reported by Mark Kettenis.
7032
7033 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7034
7035 * i386-tdep.c (i386_register_type): Renamed from
7036 i386_register_virtual_type. Adjust function signature.
7037 (i386_gdbarch_init): Set register_type instead of
7038 deprecated_max_register_raw_size,
7039 deprecated_max_register_virtual_size and register_virtual_type.
7040
7041 2003-03-14 Andrew Cagney <cagney@redhat.com>
7042
7043 * frame.c (get_prev_frame): When a legacy frame, always call
7044 legacy_get_prev_frame. Simplify unwind code using assumption that
7045 the unwinder is new.
7046 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7047 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7048 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7049
7050 2003-03-14 Andrew Cagney <cagney@redhat.com>
7051
7052 * frame.c (get_saved_register): Delete function.
7053 * frame.h (get_saved_register): Delete declaration.
7054 * xstormy16-tdep.c: Update comment.
7055 * regcache.h: Update comments.
7056 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7057 get_saved_register and extract_address, use
7058 frame_read_unsigned_register.
7059 (sparc_frame_saved_pc): Ditto.
7060 (sparc_get_saved_register): Instead of get_saved_register, use
7061 frame_register.
7062 (sparc_pop_frame): Ditto.
7063 * findvar.c: Update comments.
7064 (value_of_register): Call frame_register instead of
7065 get_saved_register.
7066 (value_from_register): Ditto.
7067 * config/sparc/tm-sparc.h: Update comment.
7068 * breakpoint.c: Update comment.
7069
7070 2003-03-14 Andrew Cagney <cagney@redhat.com>
7071
7072 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7073 GET_SAVED_REGISTER.
7074 * gdbarch.h, gdbarch.c: Re-generate.
7075 * frame.h: Update comments.
7076 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7077 * x86-64-tdep.c (x86_64_init_abi): Update.
7078 * sparc-tdep.c (sparc_gdbarch_init): Update.
7079 * sh-tdep.c (sh_gdbarch_init): Update.
7080 * mips-tdep.c (mips_gdbarch_init): Update.
7081 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7082 * cris-tdep.c (cris_gdbarch_init): Update.
7083 * ia64-tdep.c (ia64_gdbarch_init): Update.
7084 * frame.c (frame_register): Update.
7085 (get_saved_register): Update.
7086 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7087
7088 2003-03-13 Andrew Cagney <cagney@redhat.com>
7089
7090 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7091 * gdbarch.h, gdbarch.c: Regenerate.
7092 * valops.c (hand_function_call): Update comment.
7093 * stack.c (return_command): Update comment.
7094 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7095 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7096 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7097 * x86-64-tdep.c (x86_64_init_abi): Update.
7098 * vax-tdep.c (vax_gdbarch_init): Update.
7099 * v850-tdep.c (v850_gdbarch_init): Update.
7100 * sparc-tdep.c (sparc_gdbarch_init): Update.
7101 * sh-tdep.c (sh_gdbarch_init): Update.
7102 * s390-tdep.c (s390_gdbarch_init): Update.
7103 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7104 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7105 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7106 * mips-tdep.c (mips_gdbarch_init): Update.
7107 * mcore-tdep.c (mcore_gdbarch_init): Update.
7108 * m68k-tdep.c (m68k_gdbarch_init): Update.
7109 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7110 * ia64-tdep.c (ia64_gdbarch_init): Update.
7111 * i386-tdep.c (i386_gdbarch_init): Update.
7112 * hppa-tdep.c (hppa_gdbarch_init): Update.
7113 * h8300-tdep.c (h8300_gdbarch_init): Update.
7114 * frv-tdep.c (frv_gdbarch_init): Update.
7115 * cris-tdep.c (cris_gdbarch_init): Update.
7116 * avr-tdep.c (avr_gdbarch_init): Update.
7117 * arm-tdep.c (arm_gdbarch_init): Update.
7118 * alpha-tdep.c (alpha_gdbarch_init): Update.
7119
7120 2003-03-13 Andrew Cagney <cagney@redhat.com>
7121
7122 * frame.c (legacy_frame_p): New function.
7123 (get_prev_frame): Use legacy_frame_p.
7124 * frame.h (legacy_frame_p): Declare.
7125
7126 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7127
7128 * MAINTAINERS (write after approval): Alphabetically
7129 listing corrected.
7130
7131 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7132
7133 * MAINTAINERS (write after approval): Add myself.
7134
7135 2003-03-12 Andrew Cagney <cagney@redhat.com>
7136
7137 * frame.c (get_prev_frame): Rename the frame parameter to
7138 "this_frame".
7139 (get_next_frame, legacy_get_prev_frame): Ditto.
7140
7141 2003-03-12 Andrew Cagney <cagney@redhat.com>
7142
7143 * frame.c (get_current_frame): Check target_has_registers before
7144 checking target_has_stack.
7145 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7146 instead of deprecated_selected_frame.
7147 * findvar.c (value_of_register): Pass "frame", not
7148 deprecated_selected_frame, to value_of_builtin_reg.
7149
7150 2003-03-12 Andrew Cagney <cagney@redhat.com>
7151
7152 * regcache.c (regcache_cooked_write_signed): New function.
7153 (regcache_cooked_write_unsigned): New function.
7154 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7155 (regcache_cooked_read_signed): Fix regnum in range assertion.
7156 * regcache.h (regcache_cooked_write_signed): Declare.
7157 (regcache_cooked_write_unsigned): Declare.
7158
7159 2003-03-12 Andrew Cagney <cagney@redhat.com>
7160
7161 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7162 * gdbarch.h, gdbarch.c: Re-generate.
7163 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7164 * x86-64-tdep.h: Update.
7165 * x86-64-tdep.c (x86_64_init_abi): Update.
7166 * v850-tdep.c (v850_gdbarch_init): Update.
7167 * sparc-tdep.c (sparc_gdbarch_init): Update.
7168 * sh-tdep.c (sh_gdbarch_init): Update.
7169 * s390-tdep.c (s390_gdbarch_init): Update.
7170 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7171 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7172 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7173 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7174 * mips-tdep.c (mips_gdbarch_init): Update.
7175 * mcore-tdep.c (mcore_gdbarch_init): Update.
7176 * m68k-tdep.c (m68k_gdbarch_init): Update.
7177 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7178 * ia64-tdep.c (ia64_gdbarch_init): Update.
7179 * i386-tdep.c (i386_gdbarch_init): Update.
7180 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7181 * hppa-tdep.c (hppa_gdbarch_init): Update.
7182 * h8300-tdep.c (h8300_gdbarch_init): Update.
7183 * frv-tdep.c (frv_gdbarch_init): Update.
7184 * cris-tdep.c (cris_gdbarch_init): Update.
7185 * avr-tdep.c (avr_gdbarch_init): Update.
7186 * arm-tdep.c (arm_gdbarch_init): Update.
7187 * alpha-tdep.c (alpha_gdbarch_init): Update.
7188 * sh-tdep.c (sh_init_extra_frame_info): Update.
7189 (sh64_init_extra_frame_info): Update.
7190 * ns32knbsd-nat.c (frame_num_args): Update.
7191 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7192 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7193 (xstormy16_frame_chain_valid): Update.
7194 * vax-tdep.c (vax_saved_pc_after_call): Update.
7195 * v850-tdep.c (v850_frame_chain): Update.
7196 (v850_pop_frame): Update.
7197 (v850_init_extra_frame_info): Update.
7198 * sparc-tdep.c (setup_arbitrary_frame): Update.
7199 * ns32k-tdep.c (umax_frame_num_args): Update.
7200 * s390-tdep.c (s390_pop_frame_regular): Update.
7201 * mn10300-tdep.c (mn10300_frame_chain): Update.
7202 (mn10300_pop_frame_regular): Update.
7203 (mn10300_init_extra_frame_info): Update.
7204 * mips-tdep.c (mips_init_frame_pc_first): Update.
7205 (mips_frame_chain): Update.
7206 (mips_pop_frame): Update.
7207 * mcore-tdep.c (mcore_frame_chain): Update.
7208 (mcore_pop_frame): Update.
7209 (mcore_init_extra_frame_info): Update.
7210 * arch-utils.c (init_frame_pc_default): Update.
7211 * m68k-tdep.c (isi_frame_num_args): Update.
7212 (delta68_frame_num_args): Update.
7213 (news_frame_num_args): Update.
7214 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7215 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7216 (alpha_frame_chain): Update.
7217 (alpha_pop_frame): Update.
7218 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7219 (hppa_init_extra_frame_info): Update.
7220 (hppa_frame_chain): Update.
7221 (hppa_frame_chain_valid): Update.
7222 * cris-tdep.c (cris_init_extra_frame_info): Update.
7223 * avr-tdep.c (avr_init_extra_frame_info): Update.
7224 * arm-tdep.c (arm_frame_chain_valid): Update.
7225 (arm_init_extra_frame_info): Update.
7226 (arm_pop_frame): Update.
7227 * frame.c (frame_pc_unwind): Update.
7228 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7229 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7230 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7231 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7232 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7233 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7234
7235 2003-03-12 Andrew Cagney <cagney@redhat.com>
7236
7237 Eliminate the need for POP_FRAME.
7238 * frame.c (do_frame_unwind_register): New function.
7239 (frame_pop): When no POP_FRAME, pop the frame using register
7240 unwind and a scratch regcache.
7241 (frame_saved_regs_pop): Delete function.
7242 (trad_frame_unwinder): Update.
7243 * d10v-tdep.c (d10v_frame_pop): Delete function.
7244 (d10v_frame_unwind): Update.
7245 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7246 (sentinel_frame_unwinder): Update.
7247 * dummy-frame.c (dummy_frame_pop): Delete function.
7248 (dummy_frame_unwind): Update.
7249 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7250 (struct frame_unwind): Update.
7251
7252 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7253
7254 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7255 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7256 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7257 Do range checks on register number obtained from debugging info.
7258 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7259 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7260 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7261 mapping function.
7262 (do_fp_register_row): Fix typo which caused double type to be
7263 used when attempting to unpack a float.
7264
7265 2003-03-11 J. Brobecker <brobecker@gnat.com>
7266
7267 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7268
7269 2003-03-11 Andrew Cagney <cagney@redhat.com>
7270
7271 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7272 frame. Problem found by Corinna Vinschen.
7273
7274 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7275
7276 * doublest.c (floatformat_from_length): Accept also
7277 the real size of 'long double' type.
7278
7279 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7280
7281 From Klee Dienes <kdienes@apple.com>:
7282 * breakpoint.c (bpstat_copy): Copy the command lines as well
7283 as the old value, to match what is freed in bpstat_clear.
7284
7285 2003-03-10 David Carlton <carlton@math.stanford.edu>
7286
7287 * minsyms.c (add_minsym_to_hash_table): Replace
7288 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7289 (compare_minimal_symbols, compact_minimal_symbols)
7290 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7291 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7292 of DEPRECATED_SYMBOL_MATCHES_NAME.
7293 (lookup_minimal_symbol_solib_trampoline): Ditto.
7294
7295 2003-03-10 Andrew Cagney <cagney@redhat.com>
7296
7297 * regcache.h (regcache_cooked_read_ftype): Define.
7298 (regcache_save, regcache_restore): Add a cooked_read parameter.
7299 * regcache.c (regcache_save, regcache_restore): Update.
7300 (do_cooked_read): New function.
7301 (regcache_cpy): Pass do_cooked_read to regcache_save and
7302 regcache_restore.
7303
7304 2003-03-10 Andrew Cagney <cagney@redhat.com>
7305
7306 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7307 * gdbarch.h, gdbarch.c: Re-generate.
7308 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7309 * x86-64-tdep.h: Update.
7310 * x86-64-tdep.c (x86_64_init_abi): Update.
7311 * v850-tdep.c (v850_gdbarch_init): Update.
7312 * sparc-tdep.c (sparc_gdbarch_init): Update.
7313 * sh-tdep.c (sh_gdbarch_init): Update.
7314 * s390-tdep.c (s390_gdbarch_init): Update.
7315 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7316 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7317 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7318 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7319 * mips-tdep.c (mips_gdbarch_init): Update.
7320 * mcore-tdep.c (mcore_gdbarch_init): Update.
7321 * m68k-tdep.c (m68k_gdbarch_init): Update.
7322 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7323 * ia64-tdep.c (ia64_gdbarch_init): Update.
7324 * i386-tdep.c (i386_gdbarch_init): Update.
7325 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7326 * hppa-tdep.c (hppa_gdbarch_init): Update.
7327 * h8300-tdep.c (h8300_gdbarch_init): Update.
7328 * frv-tdep.c (frv_gdbarch_init): Update.
7329 * cris-tdep.c (cris_gdbarch_init): Update.
7330 * avr-tdep.c (avr_gdbarch_init): Update.
7331 * arm-tdep.c (arm_gdbarch_init): Update.
7332 * alpha-tdep.c (alpha_gdbarch_init): Update.
7333 * sh-tdep.c (sh_init_extra_frame_info): Update.
7334 (sh64_init_extra_frame_info): Update.
7335 * ns32knbsd-nat.c (frame_num_args): Update.
7336 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7337 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7338 (xstormy16_frame_chain_valid): Update.
7339 * vax-tdep.c (vax_saved_pc_after_call): Update.
7340 * v850-tdep.c (v850_frame_chain): Update.
7341 (v850_pop_frame): Update.
7342 (v850_init_extra_frame_info): Update.
7343 * sparc-tdep.c (setup_arbitrary_frame): Update.
7344 * ns32k-tdep.c (umax_frame_num_args): Update.
7345 * s390-tdep.c (s390_pop_frame_regular): Update.
7346 * mn10300-tdep.c (mn10300_frame_chain): Update.
7347 (mn10300_pop_frame_regular): Update.
7348 (mn10300_init_extra_frame_info): Update.
7349 * mips-tdep.c (mips_init_frame_pc_first): Update.
7350 (mips_frame_chain): Update.
7351 (mips_pop_frame): Update.
7352 * mcore-tdep.c (mcore_frame_chain): Update.
7353 (mcore_pop_frame): Update.
7354 (mcore_init_extra_frame_info): Update.
7355 * arch-utils.c (init_frame_pc_default): Update.
7356 * m68k-tdep.c (isi_frame_num_args): Update.
7357 (delta68_frame_num_args): Update.
7358 (news_frame_num_args): Update.
7359 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7360 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7361 (alpha_frame_chain): Update.
7362 (alpha_pop_frame): Update.
7363 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7364 (hppa_init_extra_frame_info): Update.
7365 (hppa_frame_chain): Update.
7366 (hppa_frame_chain_valid): Update.
7367 * cris-tdep.c (cris_init_extra_frame_info): Update.
7368 * avr-tdep.c (avr_init_extra_frame_info): Update.
7369 * arm-tdep.c (arm_frame_chain_valid): Update.
7370 (arm_init_extra_frame_info): Update.
7371 (arm_pop_frame): Update.
7372 * frame.c (frame_pc_unwind): Update.
7373 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7374 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7375 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7376 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7377 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7378 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7379
7380 2003-03-10 Andrew Cagney <cagney@redhat.com>
7381
7382 * gdbarch.sh (gdbarch_unwind_pc): New method.
7383 * gdbarch.h, gdbarch.c: Regenerate.
7384 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7385 but use read_pc and FRAME_SAVED_PC as fall backs.
7386 (frame_saved_regs_pc_unwind): Delete function.
7387 (trad_frame_unwinder): Update.
7388 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7389 (struct frame_unwind): Update.
7390 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7391 (dummy_frame_unwind): Update.
7392 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7393 (sentinel_frame_unwinder): Update.
7394 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7395 (d10v_frame_unwind): Update.
7396 (d10v_unwind_pc): New function.
7397 (d10v_gdbarch_init): Set unwind_pc.
7398
7399 2003-03-10 Andrew Cagney <cagney@redhat.com>
7400
7401 * gdbarch.h: Re-generate.
7402
7403 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7404 PC.
7405 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7406 the PC register.
7407
7408 2003-03-08 Mark Kettenis <kettenis@gnu.org>
7409
7410 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7411
7412 2003-03-08 Andrew Cagney <cagney@redhat.com>
7413
7414 * cli-out.c: Update copyright.
7415 (cli_out_data): Define typedef. Use instead of ui_out_data.
7416
7417 2003-03-08 Andrew Cagney <cagney@redhat.com>
7418
7419 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7420 the result.
7421
7422 2003-03-07 Andrew Cagney <cagney@redhat.com>
7423
7424 * gdbarch.sh: Don't generate two macro definitions when an
7425 undefined macro taking no arguments.
7426 * gdbarch.h: Regenerate.
7427
7428 2002-03-07 Michal Ludvig <mludvig@suse.cz>
7429
7430 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7431 (x86_64_unwind_dummy_id): New functions.
7432 (x86_64_init_abi): Register these two new functions.
7433
7434 2003-03-07 Michal Ludvig <mludvig@suse.cz>
7435
7436 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7437 (x86_64_skip_prologue): Move prologue detection to
7438 separate function.
7439 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7440
7441 2003-03-05 Andrew Cagney <cagney@redhat.com>
7442
7443 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7444 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7445 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7446 to use unwind_dummy_id when a dummy frame.
7447 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7448 predicate.
7449 * gdbarch.h, gdbarch.c: Regneerate.
7450
7451 2003-03-05 Andrew Cagney <cagney@redhat.com>
7452
7453 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7454 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7455 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7456 values.
7457
7458 2003-03-05 Andrew Cagney <cagney@redhat.com>
7459
7460 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7461 (struct d10v_unwind_cache): Delete field "frameless". Replace
7462 "next_addr" with "sp_offset". Add "r11_offset".
7463 (d10v_frame_unwind_cache): Update.
7464 (prologue_find_regs): Update. When "mv r11, sp", save the
7465 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7466 RN was saved in r11_offset.
7467
7468 2003-03-05 Andrew Cagney <cagney@redhat.com>
7469
7470 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7471 cached PC value in the next frame.
7472
7473 2003-03-05 Andrew Cagney <cagney@redhat.com>
7474
7475 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7476 "id_unwind_cache" with "id".
7477 (frame_id_unwind): Delete declaration.
7478 * frame.c (frame_id_unwind): Delete function.
7479 (get_prev_frame): Call the frame id unwind method directly. Store
7480 the returned next frame's ID value in NEXT_FRAME. Note that there
7481 is a problem with the wrong unwind ID being called with the wrong
7482 unwind cache.
7483
7484 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7485
7486 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7487
7488 2003-03-05 James Ingham <jingham@apple.com>
7489 Daniel Jacobowitz <drow@mvista.com>
7490
7491 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7492 (auto_cp_abi): New variable.
7493 (current_cp_abi, num_cp_abis): Make static.
7494 (CP_ABI_MAX): Define.
7495 (cp_abis): Turn into an array.
7496 (value_virtual_fn_field): Fix formatting.
7497 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7498 takes a pointer.
7499 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7500 (list_cp_abis, _initialize_cp_abi): New functions.
7501 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7502 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7503 switch_to_cp_abi. Update prototype for register_cp_abi.
7504 * Makefile.in (cp-abi.o): Update dependencies.
7505 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7506 instead of switch_to_cp_abi.
7507 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7508 register_cp_abi.
7509 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7510 register_cp_abi.
7511 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7512
7513 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7514
7515 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7516 * dwarf2loc.c: Include "regcache.h".
7517 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7518 register_size.
7519 * Makefile.in (dwarf2loc.o): Update dependencies.
7520
7521 2003-03-04 Theodore A. Roth <troth@openavr.org>
7522
7523 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7524 number of io registers reported by remote target is not a multiple of
7525 step.
7526
7527 2003-03-04 David Carlton <carlton@math.stanford.edu>
7528
7529 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7530 (lookup_symbol_aux_psymtabs): Update call to
7531 lookup_partial_symbol.
7532 (lookup_transparent_type, find_main_psymtab)
7533 (make_symbol_overload_list): Ditto.
7534
7535 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
7536
7537 * MAINTAINERS (Write after approval): Update my email address.
7538
7539 2003-03-03 Andrew Cagney <cagney@redhat.com>
7540
7541 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7542 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7543 predicate. Replace MAX_REGISTER_RAW_SIZE.
7544 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7545 MAX_REGISTER_VIRTUAL_SIZE.
7546 * regcache.c (legacy_max_register_raw_size): New function.
7547 (legacy_max_register_virtual_size): New function.
7548 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7549 (MAX_REGISTER_RAW_SIZE): Define.
7550 (legacy_max_register_raw_size): Declare.
7551 (legacy_max_register_virtual_size): Declare.
7552 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7553 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7554 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7555 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7556 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7557 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7558 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7559 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7560 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7561 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7562 * vax-tdep.c (vax_gdbarch_init): Update.
7563 * v850-tdep.c (v850_gdbarch_init): Update.
7564 * sparc-tdep.c (sparc_gdbarch_init): Update.
7565 * sh-tdep.c (sh_gdbarch_init): Update.
7566 * s390-tdep.c (s390_gdbarch_init): Update.
7567 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7568 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7569 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7570 * mips-tdep.c (mips_gdbarch_init): Update.
7571 * mcore-tdep.c (mcore_gdbarch_init): Update.
7572 * m68k-tdep.c (m68k_gdbarch_init): Update.
7573 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7574 * ia64-tdep.c (ia64_gdbarch_init): Update.
7575 * i386-tdep.c (i386_gdbarch_init): Update.
7576 * hppa-tdep.c (hppa_gdbarch_init): Update.
7577 * h8300-tdep.c (h8300_gdbarch_init): Update.
7578 * frv-tdep.c (frv_gdbarch_init): Update.
7579 * cris-tdep.c (cris_gdbarch_init): Update.
7580 * avr-tdep.c (avr_gdbarch_init): Update.
7581 * arm-tdep.c (arm_gdbarch_init): Update.
7582 * alpha-tdep.c (alpha_gdbarch_init): Update.
7583 * d10v-tdep.c (d10v_gdbarch_init): Do not set
7584 max_register_raw_size or max_register_virtual_size.
7585
7586 2003-03-03 David Carlton <carlton@math.stanford.edu>
7587
7588 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7589 SYMBOL_MATCHES_NAME, add comment.
7590 (SYMBOL_MATCHES_NATURAL_NAME): New.
7591 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7592 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7593 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7594 * symtab.c (lookup_partial_symbol): Use
7595 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
7596 unhelpful comment.
7597 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
7598 SYMBOL_MATCHES_NAME.
7599 Fix for PR c++/33.
7600
7601 2003-03-03 David Carlton <carlton@math.stanford.edu>
7602
7603 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
7604 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
7605 by regexp matching against SYMBOL_NATURAL_NAME.
7606
7607 2003-03-03 David Carlton <carlton@math.stanford.edu>
7608
7609 * linespec.c (find_method): Extract code into collect_methods.
7610 (collect_methods): New.
7611
7612 2003-03-02 Mark Kettenis <kettenis@gnu.org>
7613
7614 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
7615 get_frame_base.
7616
7617 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
7618 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7619
7620 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
7621
7622 * arch-utils.c (generic_register_byte): Fix to use the loop index
7623 and not regnum when summing the size of all registers up to regnum.
7624
7625 2003-03-01 Andrew Cagney <cagney@redhat.com>
7626
7627 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
7628 FRAME_INIT_SAVED_REGS.
7629 * gdbarch.h, gdbarch.c: Regenerate.
7630 * stack.c (frame_info): Update.
7631 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
7632 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
7633 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
7634 * ns32k-tdep.c (ns32k_pop_frame): Update.
7635 * mips-tdep.c (mips_pop_frame): Update.
7636 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
7637 * ia64-tdep.c (ia64_frame_chain): Update.
7638 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
7639 (ia64_frameless_function_invocation): Update.
7640 (ia64_init_extra_frame_info): Update.
7641 (ia64_pop_frame_regular): Update.
7642 * frame.h (struct frame_info): Update comment.
7643 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
7644 * frame.c (frame_saved_regs_register_unwind): Update.
7645 (frame_saved_regs_register_unwind): Update.
7646 (deprecated_generic_get_saved_register): Update.
7647 * cris-tdep.c: Update comment.
7648 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
7649 Rename macro.
7650 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7651 * x86-64-tdep.c (x86_64_init_abi): Update.
7652 * vax-tdep.c (vax_gdbarch_init): Update.
7653 * v850-tdep.c (v850_gdbarch_init): Update.
7654 * sparc-tdep.c (sparc_gdbarch_init): Update.
7655 * sh-tdep.c (sh_gdbarch_init): Update.
7656 * s390-tdep.c (s390_gdbarch_init): Update.
7657 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7658 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7659 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7660 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7661 * mips-tdep.c (mips_gdbarch_init): Update.
7662 * mcore-tdep.c (mcore_gdbarch_init): Update.
7663 * m68k-tdep.c (m68k_gdbarch_init): Update.
7664 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7665 * ia64-tdep.c (ia64_gdbarch_init): Update.
7666 * i386-tdep.c (i386_gdbarch_init): Update.
7667 * frv-tdep.c (frv_gdbarch_init): Update.
7668 * avr-tdep.c (avr_gdbarch_init): Update.
7669 * arm-tdep.c (arm_gdbarch_init): Update.
7670 * alpha-tdep.c (alpha_gdbarch_init): Update.
7671
7672 2003-03-01 Andrew Cagney <cagney@redhat.com>
7673
7674 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
7675 option enum and switch. When no windows, set the interpreter to
7676 INTERP_CONSOLE.
7677
7678 2003-03-01 Andrew Cagney <cagney@redhat.com>
7679
7680 * main.c (captured_main): Replace magic option characters with an
7681 enum.
7682
7683 2003-03-01 Andrew Cagney <cagney@redhat.com>
7684
7685 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
7686 INIT_EXTRA_FRAME_INFO.
7687 * gdbarch.h, gdbarch.c: Regenerate.
7688 * arm-tdep.c: Update comments.
7689 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
7690 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
7691 * frame.h, avr-tdep.c: Ditto.
7692 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
7693 (create_new_frame, legacy_get_prev_frame): Ditto.
7694 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7695 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7696 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
7697 deprecated_init_extra_frame_info instead of init_extra_frame_info.
7698 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7699 * v850-tdep.c (v850_gdbarch_init): Ditto.
7700 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7701 * sh-tdep.c (sh_gdbarch_init): Ditto.
7702 * s390-tdep.c (s390_gdbarch_init): Ditto.
7703 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
7704 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7705 * mips-tdep.c (mips_gdbarch_init): Ditto.
7706 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7707 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7708 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7709 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7710 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7711 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7712 * frv-tdep.c (frv_gdbarch_init): Ditto.
7713 * cris-tdep.c (cris_gdbarch_init): Ditto.
7714 * avr-tdep.c (avr_gdbarch_init): Ditto.
7715 * arm-tdep.c (arm_gdbarch_init): Ditto.
7716 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7717 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7718
7719 2003-03-01 Andrew Cagney <cagney@redhat.com>
7720
7721 * gdbarch.sh (register_type): New function with predicate.
7722 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
7723 * gdbarch.h, gdbarch.c: Re-generate.
7724 * arch-utils.c (generic_register_byte): Use generic_register_size.
7725 (generic_register_size): When available, use
7726 gdbarch_register_type.
7727 * regcache.c (init_regcache_descr): When available, initialize the
7728 register type array using gdbarch_register_type. If the
7729 architecture supplies gdbarch_register_type, do not use the legacy
7730 regcache layout.
7731 * d10v-tdep.c (d10v_register_type): Replace
7732 d10v_register_virtual_type.
7733 (d10v_gdbarch_init): Set register_type instead of
7734 register_virtual_type.
7735
7736 2003-03-01 Andrew Cagney <cagney@redhat.com>
7737
7738 * Makefile.in (ax-gdb.o): Update dependencies.
7739 * ax-gdb.c: Include "regcache.h".
7740 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
7741 * findvar.c (value_of_register): Ditto.
7742 * infcmd.c (default_print_registers_info): Ditto.
7743
7744 2003-03-01 Mark Kettenis <kettenis@gnu.org>
7745
7746 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
7747 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7748
7749 2003-03-01 Mark Kettenis <kettenis@gnu.org>
7750
7751 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
7752 of STREQ.
7753
7754 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
7755
7756 * Makefile.in (dwarf2loc.o): Update dependencies.
7757 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
7758 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
7759 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
7760 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
7761 (locexpr_tracepoint_var_ref): New function.
7762 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
7763
7764 2003-02-28 Andrew Cagney <cagney@redhat.com>
7765
7766 * regcache.c (register_size): New function.
7767 * regcache.h (register_size): Declare
7768 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
7769 max_register_size instead of MAX_REGISTER_RAW_SIZE.
7770
7771 2003-02-28 David Carlton <carlton@math.stanford.edu>
7772
7773 * linespec.c (decode_compound): Extract code into find_method.
7774 (find_method): New.
7775
7776 2003-02-28 J. Brobecker <brobecker@gnat.com>
7777
7778 * Makefile.in: Add rules to build and link in observer.o.
7779
7780 2003-02-27 J. Brobecker <brobecker@gnat.com>
7781
7782 * observer.c: Minor comments edits.
7783
7784 2003-02-27 J. Brobecker <brobecker@gnat.com>
7785
7786 * observer.h, observer.c: New file.
7787
7788 2003-02-27 Andrew Cagney <cagney@redhat.com>
7789
7790 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
7791
7792 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
7793
7794 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
7795 (M6812_OP_STS_EXT): Likewise.
7796 (m6811_prologue): Use the above to recognize prologue.
7797 (m6812_prologue): Likewise.
7798
7799 2003-02-27 David Carlton <carlton@math.stanford.edu>
7800
7801 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
7802 SYMBOL_PRINT_NAME.
7803 (compare_psymbols): Ditto.
7804 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
7805
7806 2003-02-27 Michael Snyder <msnyder@redhat.com>
7807
7808 * f-lang.c (build_fortran_types): New function.
7809 (_initialize_f_language): Gdbarch-register built-in fortran types.
7810 * doublest.c (extract_floating): Fix warning text.
7811
7812 2003-02-27 Andrew Cagney <cagney@redhat.com>
7813
7814 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
7815 predicate. Replaces PUSH_DUMMY_FRAME.
7816 * gdbarch.h, gdbarch.c: Regnerate.
7817 * valops.c (hand_function_call): Update. Call
7818 generic_push_dummy_frame directly.
7819 * vax-tdep.c (vax_gdbarch_init): Update.
7820 * sparc-tdep.c (sparc_gdbarch_init): Update.
7821 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7822 * m68k-tdep.c (m68k_gdbarch_init): Update.
7823 * hppa-tdep.c (hppa_gdbarch_init): Update.
7824 * alpha-tdep.c (alpha_gdbarch_init): Update.
7825 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7826 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7827 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
7828 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
7829 push_dummy_frame to generic_push_dummy_frame.
7830 * v850-tdep.c (v850_gdbarch_init): Ditto.
7831 * sh-tdep.c (sh_gdbarch_init): Ditto.
7832 * s390-tdep.c (s390_gdbarch_init): Ditto.
7833 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7834 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7835 * mips-tdep.c (mips_gdbarch_init): Ditto.
7836 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7837 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7838 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7839 * i386-tdep.c (i386_gdbarch_init): Ditto.
7840 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7841 * frv-tdep.c (frv_gdbarch_init): Ditto.
7842 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7843 * cris-tdep.c (cris_gdbarch_init): Ditto.
7844 * avr-tdep.c (avr_gdbarch_init): Ditto.
7845 * arm-tdep.c (arm_gdbarch_init): Ditto.
7846
7847 2003-02-26 Kevin Buettner <kevinb@redhat.com>
7848
7849 * mips-tdep.c (show_mips_abi): New function.
7850 (_initialize_mips_tdep): Use show_mips_abi() to implement the
7851 command ``show mips abi''.
7852
7853 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
7854
7855 From Elena Zannoni <ezannoni@redhat.com>
7856 * dbxread.c (process_one_symbol): Only record line 0 if one or
7857 more sline entries have been seen for the function.
7858
7859 2003-02-26 Michael Chastain <mec@shout.net>
7860
7861 * configure: Regenerate with autoconf 000227.
7862
7863 2003-02-26 Michael Chastain <mec@shout.net>
7864
7865 Close PR build/660.
7866 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
7867 for old libc5/glibc.
7868 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
7869
7870 2003-02-26 Kris Warkentin <kewarken@qnx.com>
7871
7872 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
7873 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
7874
7875 2003-02-26 Michael Chastain <mec@shout.net>
7876
7877 * configure.in: New variable HAVE_UINTPTR_T.
7878 * configure, config.in: Regenerated.
7879
7880 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
7881
7882 Fix PR build/1097.
7883 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
7884
7885 2003-02-25 Andrew Cagney <cagney@redhat.com>
7886
7887 * frame.c (get_prev_frame): Add comment on check for
7888 inside_entry_func. Only check for inside_entry_file when not a
7889 dummy and not a sentinel. Check that the new frame is not inner
7890 to the old frame.
7891
7892 2003-02-25 Andrew Cagney <cagney@redhat.com>
7893
7894 * frame.c (frame_debug): New variable.
7895 (_initialize_frame): Add "set/show debug frame" command.
7896 (get_prev_frame): When frame_debug, print reason why unwind
7897 failed.
7898
7899 2003-02-25 Michael Chastain <mec@shout.net>
7900
7901 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
7902 to avoid uintptr_t definition problems.
7903
7904 2003-02-25 David Carlton <carlton@math.stanford.edu>
7905
7906 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
7907 (SYMBOL_LINKAGE_NAME): Ditto.
7908 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
7909 SYMBOL_LINKAGE_NAME.
7910 (struct general_symbol_info): Expand comment.
7911 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
7912 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
7913 (SYMBOL_MATCHES_REGEXP): Ditto.
7914 * symtab.c (symbol_natural_name): New function.
7915 * objfiles.h: Replace all uses of SYMBOL_NAME by
7916 DEPRECATED_SYMBOL_NAME.
7917 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
7918 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
7919 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
7920 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
7921 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
7922 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
7923 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
7924 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
7925 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
7926 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
7927 * ada-exp.y: Ditto.
7928 * ada-exp.y: Update copyright.
7929 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
7930 * cp-valprint.c: Ditto.
7931
7932 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
7933
7934 * infptrace.c (detach): Do not flag error if ptrace detach fails
7935 and errno is set to ESRCH.
7936
7937 2003-02-24 Andrew Cagney <cagney@redhat.com>
7938
7939 * infptrace.c (udot_info): Change type of udot_off to long. Use
7940 paddr when printing udot_off's value.
7941
7942 2003-02-24 David Carlton <carlton@math.stanford.edu>
7943
7944 * symtab.c (make_symbol_overload_list): Only read in partial
7945 symtabs containing a matching partial symbol.
7946
7947 2003-02-24 David Carlton <carlton@math.stanford.edu>
7948
7949 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
7950 do the comparison, not strcmp.
7951 * symfile.c (compare_psymbols): Ditto.
7952 * defs.h: Declare strcmp_iw_ordered.
7953 * utils.c (strcmp_iw_ordered): New function.
7954
7955 2003-02-24 Jim Blandy <jimb@redhat.com>
7956
7957 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
7958 support, shared libs): Remove my name from here, to better reflect
7959 reality.
7960
7961 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7962
7963 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
7964 (target_ops): Add to_have_continuable_watchpoint.
7965 * target.c (update_current_target): Add INHERIT line for
7966 to_have_continuable_watchpoint.
7967 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
7968 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
7969 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
7970 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
7971
7972 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
7973
7974 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
7975 maintainership.
7976
7977 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7978
7979 * solib.c (solib_open): Call target defined search function after
7980 failing with solib-search-path.
7981 * solist.h (target_so_ops): Add find_and_open_solib function hook and
7982 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
7983
7984 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7985
7986 * MAINTAINERS: Add myself to Write After section.
7987
7988 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
7989
7990 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
7991
7992 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
7993
7994 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
7995 (m68hc11_add_reggroups): New function.
7996 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
7997 (m68hc11_gdbarch_init): Install the reggroups.
7998 (_initialize_m68hc11_tdep): Initialize them.
7999
8000 2003-02-21 James E Wilson <wilson@tuliptree.org>
8001
8002 * MAINTAINERS: Update my email address.
8003
8004 2003-02-21 David Carlton <carlton@math.stanford.edu>
8005
8006 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8007
8008 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8009
8010 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8011 * symtab.h: Add opaque declarations of struct axs_value and
8012 struct agent_expr.
8013 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8014 (struct location_funcs): New type.
8015 (struct symbol): Add "loc" to aux_value.
8016 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8017 * dwarf2read.c: Include "dwarf2expr.h".
8018 (dwarf2_symbol_mark_computed): New function.
8019 (read_func_scope): Use it.
8020 (var_decode_location): New function.
8021 (new_symbol): Use it.
8022 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8023
8024 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8025 (dwarf2expr_h, dwarf2loc_h): New variables.
8026 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8027 (dwarf2expr.o, dwarf2loc.o): New rules.
8028 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8029 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8030 LOC_COMPUTED_ARG.
8031 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8032 * m2-exp.y (yylex): Likewise.
8033 * printcmd.c (address_info, print_frame_args): Likewise.
8034 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8035 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8036 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8037 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8038 * symtab.c (lookup_block_symbol): Likewise.
8039
8040 2003-02-20 Adam Fedor <fedor@gnu.org>
8041
8042 * symtab.h: Remove objc_specific struct
8043 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8044 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8045 Have language_objc use cplus_specific struct.
8046
8047 2003-02-20 Tom Tromey <tromey@redhat.com>
8048
8049 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8050 TYPE_NAME, when printing a String value. PR java/1075.
8051
8052 2003-02-20 Adam Fedor <fedor@gnu.org>
8053
8054 * objc-lang.h (find_methods): Remove declaration.
8055 * objc-lang.c (find_methods): Make static.
8056
8057 2003-02-20 Christopher Faylor <cgf@redhat.com>
8058
8059 * win32-nat.c (get_image_name): Check return value from
8060 ReadProcessMemory.
8061 (child_xfer_memory): Ditto.
8062
8063 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8064
8065 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8066 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8067 '${exec_prefix}' (in addition to the expansion thereof) as
8068 relocatable.
8069 * configure: Rebuilt.
8070
8071 2003-02-20 David Carlton <carlton@math.stanford.edu>
8072
8073 * symtab.c (search_symbols): Revert the search_symbols part of my
8074 2002-12-23 patch. Add comment.
8075
8076 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8077
8078 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8079 * dbxread.c (elfstab_build_psymtabs): Don't call
8080 install_minimal_symbols.
8081 (stabsect_build_psymtabs): Likewise.
8082 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8083 earlier.
8084 * somread.c (som_symfile_read): Call install_minimal_symbols
8085 and do_cleanups earlier.
8086 * nlmread.c (nlm_symfile_read): Likewise.
8087 * mdebugread.c (elfmdebug_build_psymtabs): Call
8088 install_minimal_symbols and make appropriate cleanups.
8089
8090 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8091
8092 * solib.c (reload_shared_libraries): New function.
8093 (_initialize_solib): Add callbacks for ``set solib-search-path''
8094 and ``set solib-absolute-prefix''.
8095
8096 2003-02-20 David Carlton <carlton@math.stanford.edu>
8097
8098 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8099 expand comment.
8100 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8101 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8102 * ada-typeprint.c (ada_typedef_print): Ditto.
8103 * ax-gdb.c (gen_var_ref): Ditto.
8104 * breakpoint.c (print_one_breakpoint): Ditto.
8105 * buildsym.c (finish_block): Ditto.
8106 * c-valprint.c (c_val_print): Ditto.
8107 * expprint.c (print_subexp): Ditto.
8108 * findvar.c (locate_var_value): Ditto.
8109 * infcmd.c (jump_command): Ditto.
8110 * linespec.c (decode_line_2, decode_compound): Ditto.
8111 * maint.c (maintenance_translate_address): Ditto.
8112 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8113 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8114 Ditto.
8115 * p-valprint.c (pascal_val_print): Ditto.
8116 * stabsread.c (define_symbol): Ditto.
8117 * stack.c (print_frame, frame_info, print_block_frame_locals)
8118 (print_frame_arg_vars, return_command): Ditto.
8119 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8120 * symmisc.c (print_symbol): Ditto.
8121 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8122 (compare_search_syms, print_symbol_info, print_msymbol_info)
8123 (rbreak_command): Ditto.
8124 * tracepoint.c (tracepoints_info): Ditto.
8125 * typeprint.c (typedef_print): Ditto.
8126 * valops.c (value_of_variable, hand_function_call): Ditto.
8127 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8128 * ada-typeprint.c: Update Copyright.
8129 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8130 * tracepoint.c, cli/cli-cmds.c: Ditto.
8131
8132 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8133
8134 * frame.c (generic_unwind_get_saved_register): Make non-static.
8135 * frame.h (generic_unwind_get_saved_register): Declare.
8136 * mips-tdep.c (read_next_frame_reg): Fetch register from
8137 current regcache when frame is NULL.
8138 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8139 that must be NULL.
8140 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8141 instead of frame_register_unwind().
8142
8143 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8144
8145 * remote-sim.c (gdbsim_insert_breakpoint)
8146 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8147 code.
8148
8149 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8150
8151 * remote.c (_initialize_remote): Add commands "set/show remote
8152 hardware-watchpoint-limit" and "set/show remote
8153 hardware-breakpoint-limit".
8154 (remote_hw_watchpoint_limit): Initialize to -1.
8155 (remote_hw_breakpoint_limit): Ditto.
8156 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8157
8158 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8159
8160 * coff-pe-read.c: New file - support reading of minimal symbols from a
8161 portable executable using the export table.
8162 * coff-pe-read.h: New file.
8163 * coffread.c: Include coff-pe-read.h.
8164 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8165 debugging symbols found.
8166 * Makefile.in (SFILES): Add coff-pe-read.o.
8167 (coff_pe_read_h): Define.
8168 (COMMON_OBS): Add coff-pe-read.o.
8169 (coffread.o): Add coff_pe_read_h dependency.
8170 (coff-pe-read.o): New target.
8171
8172 2003-02-19 David Carlton <carlton@math.stanford.edu>
8173
8174 * Makefile.in (SFILES): Add block.c.
8175 (block_h): New.
8176 (COMMON_OBS): Add block.o.
8177 (block.o): New.
8178 (x86-64-tdep.o): Add $(block_h).
8179 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8180 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8181 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8182 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8183 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8184 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8185 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8186 * value.h: Add opaque declaration for struct block.
8187 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8188 * ada-lang.h: Ditto.
8189 * x86-64-tdep.c: #include "block.h"
8190 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8191 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8192 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8193 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8194 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8195 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8196 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8197 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8198 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8199 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8200 * symtab.c (block_function): Ditto.
8201 (contained_in): Ditto.
8202 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8203 block.h. Add opaque declaration for struct block.
8204 * symtab.h: Move block_function and contained_in declarations to
8205 block.h. Add opaque declarations for struct block, struct
8206 blockvector.
8207 (struct block): Move to block.h.
8208 (struct blockvector): Ditto.
8209 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8210 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8211 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8212 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8213 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8214 Ditto.
8215 * block.c: New file.
8216 * block.h: New file.
8217
8218 2003-02-19 Theodore A. Roth <troth@openavr.org>
8219
8220 * avr-tdep.c (avr_extract_return_value): Remove function.
8221 (avr_store_return_value): Remove function.
8222 (avr_extract_struct_value_address): Remove function.
8223 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8224
8225 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8226
8227 * rs6000-tdep.c: Include "gdb_assert.h".
8228 (registers_e500): Add "acc" and "spefscr".
8229 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8230 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8231 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8232 really is "r0".
8233 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8234
8235 2003-02-18 Keith Seitz <keiths@redhat.com>
8236
8237 * Makefile.in: Add gdbtk-interps.c.
8238
8239 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8240
8241 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8242 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8243
8244 2003-02-18 Andrew Cagney <cagney@redhat.com>
8245
8246 * symtab.h (struct objfile): Add opaque declaration.
8247
8248 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8249
8250 From Jim Ingham <jingham@apple.com>:
8251 * dbxread.c (process_one_symbol): Use last_function_start rather
8252 than function_start_offset to find the real beginning of the
8253 current function. The latter is just the text section offset on
8254 some systems, the former is always the real function start.
8255
8256 2003-02-17 Andrew Cagney <cagney@redhat.com>
8257
8258 * configure.in: Revert ${target} != ${host}.
8259
8260 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8261
8262 * configure.in (Makefile): Use the test ${target} != ${host},
8263 instead of the absence of the "nm.h" file, to determine of the
8264 configuration non-native.
8265 * configure: Regenerate.
8266
8267 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8268
8269 From Brian Ford <ford@vss.fsi.com>
8270
8271 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8272 conditionalize tui_active test.
8273 (lookup_cmd_1): Ditto.
8274
8275 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8276
8277 * configure.in: Add check for _etext.
8278 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8279 available.
8280 * config.in, configure: regenerated.
8281
8282 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8283
8284 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8285
8286 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8287
8288 * main.c (tui_version): Delete variable.
8289 (captured_main): When --tui, set interpreter_p to "tui" instead of
8290 enabling tui_version.
8291 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8292 tui_version.
8293 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8294 * cli/cli-cmds.c (disassemble_command): Ditto.
8295 * defs.h (tui_version): Delete declaration.
8296 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8297 (tui-interp.o): Add rules.
8298 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8299
8300 2003-02-14 Christopher Faylor <cgf@redhat.com>
8301
8302 * win32-nat.c (register_loaded_dll): Correctly set address range for
8303 just-loaded dll.
8304
8305 2003-02-12 Jason Molenda (jmolenda@apple.com)
8306
8307 * symmisc.c (print_objfile_statistics): Include information about
8308 the number of psymtabs and symtabs in each object file.
8309
8310 2003-02-13 Keith R Seitz <keiths@redhat.com>
8311
8312 * main.h (struct captured_main_args): Add interpreter_p.
8313 * main.c (captured_main): Initialize interpreter_p from context.
8314 * gdb.c (main): Set interpreter_p argument.
8315 * Makefile.in (gdb.o): Add dependency for interps.h.
8316
8317 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8318
8319 * event-top.c (cli_command_loop): Delete declaration.
8320 (_initialize_event_loop): Delete function setting event_loop_hook.
8321 * event-top.h (cli_command_loop): Declare. Update copyright.
8322 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8323 * interps.c (current_interp_command_loop): When event_loop_p, call
8324 cli_command_loop.
8325
8326 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8327
8328 * interps.h (interp_command_loop_ftype): Change return type to
8329 void.
8330
8331 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8332
8333 * x86-64-tdep.c (x86_64_extract_return_value)
8334 (x86_64_store_return_value): Use regcache instead of regbuf.
8335 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8336 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8337
8338 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8339
8340 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8341 * aclocal.m4: Regenerate.
8342 * configure: Regenerate.
8343
8344 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8345 TCL_LD_SEARCH_FLAGS.
8346
8347 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8348
8349 * dwarf2cfi.c: Reindented.
8350
8351 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8352
8353 * interps.c (clear_interpreter_hooks): Convert function definition
8354 to ISO C.
8355
8356 2003-02-07 David Carlton <carlton@math.stanford.edu>
8357
8358 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8359
8360 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8361
8362 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8363 (struct type): ...to here.
8364 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8365 field.
8366 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8367 (replace_type): Set length on all type variants for a given type.
8368
8369 2003-02-07 Andrew Cagney <ac131313@redhat.com>
8370
8371 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8372 <sys/stat.h>.
8373 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8374
8375 2003-02-06 Andrew Cagney <ac131313@redhat.com>
8376
8377 * Makefile.in (symm-nat.o): Update dependencies.
8378 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8379 (lynx-nat.o, ia64-linux-nat.): Ditto.
8380 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8381 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8382 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8383
8384 * Makefile.in (inflow_h): Define.
8385 (procfs.o, inflow.o, procfs.o): Update dependencies.
8386 * inftarg.c (child_stop): Delete extern declaration of
8387 inferior_process_group. Include "inflow.h".
8388 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8389 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8390 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8391 (our_process_group, inferior_process_group): Extern declarations.
8392
8393 * procfs.c: Include "gdb_assert.h".
8394
8395 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8396 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8397 * jv-typeprint.c (java_type_print_base): Ditto.
8398 * typeprint.c (typedef_print): Eliminate STREQ.
8399 * cli/cli-script.c (define_command, define_command): Ditto.
8400 * main.c (captured_main): Ditto.
8401 * values.c (lookup_internalvar): Ditto.
8402 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8403 within `if' conditional.
8404 * linespec.c (decode_line_2): Ditto.
8405 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8406 (bfd_openw_with_cleanup): Ditto.
8407
8408 2003-02-07 Mark Kettenis <kettenis@gnu.org>
8409
8410 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8411 legacy_extract_return_value and store_return_value to
8412 legacy_return_value.
8413
8414 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8415
8416 * win32-nat.c (get_relocated_section_addrs): New function. Find
8417 section load addresses for symbol handling in relocated DLLs.
8418 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8419
8420 2003-02-05 Fred Fish <fnf@intrinsity.com>
8421
8422 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8423 '=' and '!='.
8424 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8425 with '&' and '=='.
8426 (angel_RDI_info): Ditto.
8427 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8428 with '&' and '!='.
8429 (threads_continue_all_with_signals): Ditto.
8430
8431 2003-02-05 Jim Ingham <jingham@apple.com>
8432 Keith Seitz <keiths@redhat.com>
8433 Elena Zannoni <ezannoni@redhat.com>
8434 Andrew Cagney <ac131313@redhat.com>
8435
8436 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8437 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8438 (SUBDIR_MI_OBS): Add "mi-interp.o".
8439 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8440 (SFILES): Add "interps.c".
8441 (COMMON_OBS): Add "interps.o".
8442 (interps_h, mi_main_h): Define.
8443 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8444 (mi-main.o, main.o, event-top.o): Update dependencies.
8445 * cli/cli-interp.c: New file.
8446 * interps.h, interps.c: New files.
8447 * top.c: (gdb_init): Don't install the default interpreter, handed
8448 by captured_main.
8449 * main.c: Include "interps.h".
8450 (interpreter_p): Note that it should malloc'ed.
8451 (captured_command_loop): Call current_interp_command_loop.
8452 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8453 xfree and xstrdup when updating interpreter_p. Install the
8454 default interpreter. Add hack to stop mi1's copyright notice
8455 being encoded.
8456 * event-top.h (gdb_setup_readline): Declare.
8457 (gdb_disable_readline): Declare.
8458 * event-top.c: Include "interps.h".
8459 (display_gdb_prompt): Call current_interp_display_prompt_p.
8460 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8461 gdb_stdlog, and gdb_stdtarg.
8462 (_initialize_event_loop): Don't call gdb_setup_readline.
8463 * cli-out.c (cli_out_set_stream): New function.
8464 * cli-out.h (cli_out_set_stream): Declare.
8465
8466 2003-02-06 Mark Kettenis <kettenis@gnu.org>
8467
8468 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8469 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8470 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8471 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8472 config/i386/i386v42mp.mt: Removed.
8473
8474 2003-02-05 Mark Kettenis <kettenis@gnu.org>
8475
8476 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8477 GDB_OSABI_SOLARIS.
8478
8479 2003-02-05 Michael Chastain <mec@shout.net>
8480
8481 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8482 2.12.1 and earlier versions.
8483
8484 2003-02-05 Andrew Cagney <ac131313@redhat.com>
8485
8486 Remove orphaned hosts, targets and files.
8487 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8488 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8489 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8490 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8491 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8492 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8493 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8494 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8495 * config/sparc/tm-sp64sim.h: Delete.
8496 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8497 hosts.
8498 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8499 mips*-dec-mach3* targets.
8500
8501 2003-02-04 Michael Chastain <mec@shout.net>
8502
8503 * NEWS: Fix typo: sepcifying -> specifying.
8504
8505 2003-02-04 Michael Chastain <mec@shout.net>
8506
8507 * dwarfread.c: Add documentation on the state of dwarf-1,
8508 looking towards obsoletion.
8509
8510 2003-02-03 Michael Chastain <mec@shout.net>
8511
8512 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8513 gdb/testsuite/gdb.c++/pr-1023.exp.
8514
8515 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8516
8517 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8518 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8519
8520 * utils.c (init_page_info): Delete reference to MPW in comments.
8521 * main.c (captured_main): Delete #ifdef MPW.
8522
8523 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8524
8525 * NEWS: Note that the m32r-*-elf* is obsolete.
8526 * monitor.c (monitor_expect): Obsolete reference to m32r.
8527 * configure.tgt: Mark m32r-*-elf* as obsolete.
8528 * MAINTAINERS: Mark m32k as obsolete.
8529 * m32r-rom.c: Obsolete file.
8530 * config/m32r/m32r.mt: Obsolete file.
8531 * config/m32r/tm-m32r.h: Obsolete file.
8532 * m32r-stub.c: Obsolete file.
8533 * m32r-tdep.c: Obsolete file.
8534
8535 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8536
8537 * NEWS: Mention that the z8k-zilog-none is obsolete.
8538 * MAINTAINERS: Mark z8k as obsolete.
8539 * configure.tgt: Obsolete the z8k-*-coff* target.
8540 * config/z8k/z8k.mt: Obsolete file.
8541 * config/z8k/tm-z8k.h: Obsolete file.
8542 * z8k-tdep.c: Obsolete file.
8543
8544 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8545
8546 * NEWS: Mention that the mn10200-elf is obsolete.
8547 * configure.tgt: Obsolete mn10200-*-* target.
8548 * breakpoint.c (update_breakpoints_after_exec): Update comment to
8549 mention that the mn10200 is obsolete.
8550 * breakpoint.h: Ditto.
8551 * MAINTAINERS: Mark the mn10200-elf as obsolete.
8552 * config/mn10200/mn10200.mt: Obsolete file.
8553 * config/mn10200/tm-mn10200.h: Obsolete file.
8554 * mn10200-tdep.c: Obsolete file.
8555
8556 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8557
8558 * MAINTAINERS: Mark h8500 as obsolete.
8559 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8560 * findvar.c (value_from_register): Ditto.
8561 * h8500-tdep.c: Mark file as obsolete.
8562 * config/h8500/h8500.mt: Ditto.
8563 * config/h8500/tm-h8500.h: Ditto.
8564 * NEWS: Mention that h8500 is obsolete.
8565
8566 2003-02-04 David Carlton <carlton@math.stanford.edu>
8567
8568 * objfiles.c (allocate_objfile): Always set name. Add comment at
8569 start of function.
8570 * jv-lang.c (get_dynamics_objfile): Add comment.
8571
8572 2003-02-04 David Carlton <carlton@math.stanford.edu>
8573
8574 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8575 * printcmd.c (build_address_symbolic): Replace uses of
8576 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8577 SYMBOL_NAME, and asm_demangle.
8578 Update copyright.
8579
8580 2003-02-04 David Carlton <carlton@math.stanford.edu>
8581
8582 * linespec.c (decode_compound): Extract code into
8583 lookup_prefix_sym.
8584 (lookup_prefix_sym): New function.
8585
8586 2003-02-04 David Carlton <carlton@math.stanford.edu>
8587
8588 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8589 FLOAT_COERCION_BADNESS.
8590 * gdbtypes.c (rank_one_type): Replace all uses of
8591 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8592
8593 2003-02-04 Jim Blandy <jimb@redhat.com>
8594
8595 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
8596 section, let dwarf_macinfo_section point to it, not
8597 dwarf_loc_section.
8598
8599 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
8600
8601 Pointed out by Anton Blanchard <anton@samba.org>.
8602 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
8603 (ppc_linux_at_sigtramp_return_path): Use it.
8604
8605 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
8606
8607 * defs.h (streq): Add prototype.
8608 * utils.c (streq): New function.
8609
8610 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
8611 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
8612 * mdebugread.c (new_symbol): Likewise.
8613 * stabsread.c (define_symbol): Likewise.
8614 * coffread.c (process_coff_symbol): Likewise.
8615 * dwarfread.c (new_symbol): Likewise.
8616
8617 * minsyms.c (prim_record_minimal_symbol_and_info): Use
8618 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
8619 here.
8620 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
8621 SYMBOL_INIT_DEMANGLED_NAME.
8622 * objfiles.c: Include "hashtab.h".
8623 (allocate_objfile): Call htab_set_functions_ex for the
8624 demangled_names_hash.
8625 (free_objfile): Call htab_delete for the demangled_names_hash.
8626 * objfiles.h (struct htab): Add declaration.
8627 (struct objfile): Add demangled_names_hash.
8628 * symfile.c: Include "hashtab.h".
8629 (reread_symbols): Call htab_delete for the demangled_names_hash.
8630 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
8631 SYMBOL_NAME in the bcache.
8632 * symtab.c: Include "hashtab.h". Update comments.
8633 (create_demangled_names_hash, symbol_set_names): New functions.
8634 (symbol_find_demangled_name): New function, broken out from
8635 symbol_init_demangled_names.
8636 (symbol_init_demangled_names): Use it.
8637 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
8638 (SYMBOL_SET_NAMES): New macro.
8639 (symbol_set_names): Add prototype.
8640
8641 2003-02-03 Jim Blandy <jimb@redhat.com>
8642
8643 Use a single, consistent representation for an empty minimal
8644 symbol table in an objfile.
8645 * objfiles.c (terminate_minimal_symbol_table): New function.
8646 (allocate_objfile): Call it.
8647 * objfiles.h (terminate_minimal_symbol_table): New declaration.
8648 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8649 non-NULL.
8650 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
8651 objfile has minimal symbols, compare minimal_symbol_count to zero,
8652 instead of comparing msymbols with NULL.
8653 * objfiles.c (have_minimal_symbols): Same.
8654 * solib-sunos.c (solib_add_common_symbols): Call
8655 terminate_minimal_symbol_table.
8656 * symfile.c (reread_symbols): Same.
8657
8658 2003-02-03 Kevin Buettner <kevinb@redhat.com>
8659
8660 * s390-tdep.c (s390_address_class_type_flags)
8661 (s390_address_class_type_flags_to_name)
8662 (s390_address_class_name_to_type_flags): New functions.
8663 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
8664 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
8665
8666 2003-02-03 Michael Snyder <msnyder@redhat.com>
8667
8668 * arm-tdep.c: Fix spell-o in comment.
8669
8670 2003-02-03 Michal Ludvig <mludvig@suse.cz>
8671
8672 * dwarf2cfi.c (pointer_encoding): Added new parameter.
8673 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8674 error messages to contain BFD filename.
8675
8676 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
8677
8678 Fix PR gdb/742 gdb/743 gdb/877
8679 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
8680 (do_mixed_source_and_assembly): Use
8681 make_cleanup_ui_out_tuple_begin_end and
8682 make_cleanup_ui_out_tuple_begin_end.
8683 (do_mixed_source_and_assembly): Ditto.
8684 * thread.c (do_captured_list_thread_ids): Ditto.
8685 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
8686 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
8687 ui_out_tuple_end): Delete prototypes.
8688 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
8689 ui_out_list_end, ui_out_tuple_end): Delete.
8690
8691 From Kevin Buettner <kevinb@redhat.com>:
8692 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
8693 * ui-out.c (make_cleanup_ui_out_table_begin_end)
8694 (do_cleanup_table_end): New functions.
8695 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
8696 Use cleanups to invoke_ui_out_tuple_end().
8697 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
8698 * cli/cli-setshow.c (cmd_show_list): Use
8699 make_cleanup_ui_out_tuple_begin_end.
8700
8701 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8702
8703 * frame.c (frame_unwind_register): New function.
8704 (frame_unwind_unsigned_register): Use.
8705 (frame_unwind_signed_register): Use.
8706 (frame_read_register): New function.
8707 * frame.h (frame_unwind_register): Declare.
8708 (frame_read_register): Declare.
8709
8710 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
8711 and frame_unwind_register instead of read_memory, write_register
8712 and deprecated_write_register_bytes.
8713
8714 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8715
8716 * frame.h: Note that namelen can be negative.
8717 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
8718 NAME's length.
8719
8720 * NEWS: Mention that the d10v's `regs' command is deprecated.
8721 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
8722 (d10v_print_registers_info): New function.
8723 (show_regs): Call d10v_print_registers_info.
8724 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
8725
8726 2003-02-02 Mark Kettenis <kettenis@gnu.org>
8727
8728 * stack.c (print_frame_info): Restore call to annotate_frame_begin
8729 lost in the previous patch.
8730
8731 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8732
8733 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
8734 * stack.c (print_frame_info_base): Output complete FRAME tuple
8735 for synthesized frames.
8736
8737 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8738
8739 * mips-nat.c (zerobuf): Delete.
8740 (fetch_inferior_registers): Alloc local zerobuf.
8741 (fetch_core_registers): Alloc local zerobuf.
8742 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
8743 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
8744 * thread-db.c (thread_db_store_registers): Ditto.
8745 * sh-tdep.c (sh_do_register): Ditto.
8746 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
8747 * remote-sim.c (gdbsim_store_register): Ditto.
8748 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8749 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8750 * monitor.c (monitor_supply_register): Ditto.
8751 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
8752 * mips-nat.c (fetch_inferior_registers): Ditto.
8753 * m68klinux-nat.c (fetch_register): Ditto.
8754 * lynx-nat.c (fetch_inferior_registers): Ditto.
8755 (fetch_inferior_registers): Ditto.
8756 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
8757 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8758 (hpux_thread_store_registers): Ditto.
8759 * hppah-nat.c (fetch_register): Ditto.
8760 * hppab-nat.c (fetch_register): Ditto.
8761 * hppa-tdep.c (pa_register_look_aside): Ditto.
8762 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
8763 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
8764
8765 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8766
8767 * gdbarch.sh: Explictly specify all method levels. When a
8768 variable with an empty level, provide a non-multi-arch default.
8769 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
8770 * gdbarch.h: Re-generate.
8771 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
8772 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
8773
8774 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8775
8776 * defs.h (host_pointer_to_address): Delete declaration.
8777 (address_to_host_pointer): Delete declaration.
8778 * utils.c (host_pointer_to_address): Delete function.
8779 (address_to_host_pointer): Delete function.
8780 * procfs.c (procfs_address_to_host_pointer): New function.
8781 * procfs.c (proc_set_watchpoint): Use.
8782 (procfs_can_use_hw_breakpoint): Update comments.
8783 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
8784 (som_solib_add): Use.
8785 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
8786 * hppa-tdep.c (unwind_command): Use.
8787
8788 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8789
8790 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
8791 strlen d_name.
8792
8793 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
8794 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
8795 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
8796 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
8797 (define_symbol): Update.
8798 * symfile.c (generic_load): Remove references to nindy.
8799 * symtab.c: Remove references to nindy.
8800
8801 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8802
8803 * infcmd.c (print_float_info): Delete code conditional on
8804 FLOAT_INFO.
8805 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
8806 * config/m68k/nm-apollo68b.h: Ditto.
8807 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
8808 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
8809 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
8810
8811 2003-02-01 Mark Kettenis <kettenis@gnu.org>
8812
8813 * config/i386/tm-i386os9k.h: Removed.
8814
8815 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
8816 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
8817 they're identical to i[3456]86-*-sysv* now.
8818 * config/i386/i386v32.mh: Removed.
8819 * config/i386/xm-i386v32.h: Removed.
8820 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
8821
8822 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
8823
8824 * config/i386/i386dgux.mh: Removed.
8825 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
8826
8827 * configure.in: Fix typo.
8828 * configure: Regenerated.
8829
8830 2003-01-31 David Carlton <carlton@math.stanford.edu>
8831
8832 * dwarf2read.c (dwarf2_locate_sections): Set
8833 dwarf_ranges_section.
8834
8835 2003-01-31 Andrew Cagney <ac131313@redhat.com>
8836
8837 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
8838 * utils.c: Update comments documenting legitimate uses of PTR.
8839
8840 * utils.c: Re-indent.
8841
8842 * config/djgpp/fnchange.lst: Delete nindy files.
8843 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
8844 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
8845 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
8846 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
8847 * nindy-share/README, nindy-share/Onindy.c: Delete files.
8848 * nindy-tdep.c, nindy-share/Makefile: Delete files.
8849 * Makefile.in (init.c): Remove nindy references.
8850 (saber_gdb): Delete rule.
8851 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
8852 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
8853 and a68v-nat.c.
8854 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
8855 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
8856 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
8857 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
8858 nindy-share/stop.h.
8859 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
8860 * saber.suppress: Delete file.
8861
8862 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
8863
8864 * dbxread.c (stabs_data): New static variable.
8865 (fill_symbuf): Support an in-memory buffer for stabs data.
8866 (stabs_seek): New function.
8867 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
8868 (read_ofile_symtab): Use stabs_seek.
8869 (elfstab_build_psymtabs): Take an asection* instead of
8870 an offset and size. Relocate the stabs data if necessary.
8871 Save the section* for dbx_psymtab_to_symtab.
8872 * dwarf2read.c: Add section variables for each debug section.
8873 (dwarf2_locate_sections): Fill them in.
8874 (dwarf2_read_section): Take an asection* argument.
8875 Relocate the section contents if necessary.
8876 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
8877 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
8878 it to dwarf2_read_section.
8879 (dwarf2_build_frame_info): Update callers.
8880 * elfread.c (elf_symfile_read): Update call to
8881 elfstab_build_psymtabs.
8882 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
8883 (DBX_STAB_SECTION): New macro.
8884 * stabsread.h (elfstab_build_psymtabs): Update prototype.
8885 * symfile.c (symfile_dummy_outputs): New function.
8886 (symfile_relocate_debug_section): New function.
8887 * symfile.h (symfile_relocate_debug_section): Add prototype.
8888
8889 2003-01-31 Richard Henderson <rth@redhat.com>
8890
8891 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
8892 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
8893 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
8894 * alpha-tdep.c (alpha_register_name): Add "unique".
8895 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
8896 (ALPHA_UNIQUE_REGNUM): New.
8897 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
8898
8899 2003-01-31 Andrew Cagney <ac131313@redhat.com>
8900
8901 * README: Remove reference to Ericsson 1800 monitor.
8902 * Makefile.in (remote-es.o): Delete rule.
8903 (ALLDEPFILES): Delete remote-es.c.
8904 * remote-es.c: Delete file.
8905 * config/m68k/es1800.mt: Delete file.
8906 * config/djgpp/fnchange.lst: Update.
8907 * configure.tgt: Delete m68*-ericsson-* target.
8908
8909 2003-01-31 Adam Fedor <fedor@gnu.org>
8910
8911 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
8912 Remove duplicate/shadowing variable of same name.
8913
8914 2003-01-30 Jim Blandy <jimb@redhat.com>
8915
8916 * symfile.c (find_separate_debug_file): Assert that the objfile's
8917 directory name we compute ends with a slash, and then assume that
8918 that's so everywhere we use it.
8919
8920 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
8921
8922 * valops.c (value_assign): Flush frame cache after stores to memory
8923 also.
8924
8925 2003-01-30 Andrew Cagney <ac131313@redhat.com>
8926
8927 * Makefile.in (mon960-rom.o): Delete rule.
8928 * mon960-rom.c: Delete file.
8929
8930 2003-01-30 Andrew Cagney <ac131313@redhat.com>
8931
8932 * d10v-tdep.c: Include "frame-unwind.h".
8933 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
8934 list.
8935 (next_addr, uses_frame): Delete.
8936 (struct d10v_unwind_cache): Define.
8937 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
8938 Use info instead of next_addr and uses_frame globals.
8939 (d10v_frame_init_saved_regs): Delete function.
8940 (d10v_init_extra_frame_info): Delete function.
8941 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
8942 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
8943 init_frame_pc or frame_saved_pc.
8944 (d10v_pop_frame): Delete function.
8945 (do_d10v_pop_frame): Delete function.
8946 (d10v_frame_chain): Delete function.
8947 (d10v_frame_chain_valid): Delete function.
8948 (d10v_frame_pc_unwind): New function.
8949 (d10v_frame_id_unwind): New function.
8950 (saved_regs_unwinder): New function.
8951 (d10v_frame_register_unwind): New function.
8952 (d10v_frame_pop): New function.
8953 (d10v_frame_unwind): New variable.
8954 (d10v_frame_p): New function.
8955 (d10v_frame_saved_pc): Delete function.
8956 * Makefile.in (d10v-tdep.o): Update dependencies.
8957
8958 2003-01-30 J. Brobecker <brobecker@gnat.com>
8959
8960 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
8961 causing some regressions due to a change in the default value
8962 for this macro.
8963
8964 2003-01-29 Richard Henderson <rth@redhat.com>
8965 Elena Zannoni <ezannoni@redhat.com>
8966 Daniel Jacobowitz <drow@mvista.com>
8967
8968 Fix PR gdb/961.
8969 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
8970 variables.
8971 (RANGES_SECTION): New.
8972 (dwarf_ranges_buffer): New variable.
8973 (struct comp_unit_head): Add member "die".
8974 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
8975 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
8976 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
8977 (dwarf2_locate_sections): Likewise.
8978 (dwarf2_build_psymtabs): Read .debug_ranges.
8979 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
8980 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
8981 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
8982 Look for DW_AT_ranges and return the bounding box.
8983
8984 2003-01-29 Brian Ford <ford@vss.fsi.com>
8985
8986 * win32-nat.c (cygwin_pid): Removed as unused.
8987 (child_attach): Try fall back to Cygwin pid.
8988
8989 2003-01-29 Jim Blandy <jimb@redhat.com>
8990
8991 * objfiles.h (struct objfile): Doc fix.
8992
8993 2003-01-29 Andrew Cagney <ac131313@redhat.com>
8994
8995 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
8996 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
8997 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
8998 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
8999 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9000 (FRAME_SAVED_PC): Change to a function with predicate.
9001 * gdbarch.h, gdbarch.c: Re-generate.
9002
9003 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9004
9005 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9006
9007 * complaints.c (complain): Delete function.
9008 * complaints.h (struct deprecated_complaint): Delete definition.
9009 (complain): Delete declaration.
9010
9011 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9012
9013 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9014 dummy frames.
9015
9016 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9017
9018 * sentinel-frame.h, sentinel-frame.c: New files.
9019 * Makefile.in (frame.o): Update dependencies.
9020 (SFILES): Add sentinel-frame.c.
9021 (sentinel_frame_h): Define.
9022 (COMMON_OBS): Add sentinel-frame.o.
9023 (sentinel-frame.o): Specify dependencies.
9024 * frame.c: Include "sentinel-frame.h".
9025 (frame_register_unwind): Rewrite assuming that there is always a a
9026 ->next frame.
9027 (frame_register, generic_unwind_get_saved_register): Ditto.
9028 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9029 (create_sentinel_frame, unwind_to_current_frame): New functions.
9030 (get_current_frame): Rewrite using create_sentinel_frame and
9031 unwind_to_current_frame. When possible, always create a frame.
9032 (create_new_frame): Set next to the sentinel frame.
9033 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9034 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9035 ID cache when necessary.
9036 (frame_saved_regs_id_unwind): Use frame_relative_level.
9037 (deprecated_generic_get_saved_register): Use frame_relative_level,
9038 get_frame_saved_regs, get_frame_pc, get_frame_base and
9039 get_next_frame.
9040 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9041 frame_register.
9042
9043 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9044
9045 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9046
9047 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9048
9049 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9050 (maintenance_set_profile_cmd): Use error () instead of warning ().
9051
9052 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9053
9054 * configure.in: Check that -pg works if using --enable-profiling.
9055 Check for monstartup and _mcleanup regardless of --enable-profiling.
9056 * maint.c: Check for monstartup and _mcleanup before using them.
9057 * config.in: Regenerated.
9058 * configure: Regenerated.
9059
9060 2003-01-24 Nick Clifton <nickc@redhat.com>
9061
9062 * Add sh2e support:
9063
9064 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9065
9066 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9067 (sh2e_show_regs): New.
9068 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9069 * config/sh/tm-sh.h: Added sh2e to comments.
9070
9071 2003-01-23 Jim Blandy <jimb@redhat.com>
9072
9073 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9074 symbols found)" message here; we haven't checked for a separate
9075 debug info file yet, so we don't know yet.
9076 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9077 we've looked everywhere. Also, there's no need to print a special
9078 message when we're loading the separate debug info file: the one
9079 symbol_file_add prints is fine.
9080
9081 2003-01-23 Alexander Larsson <alexl@redhat.com>
9082 Jim Blandy <jimb@redhat.com>
9083
9084 Add support for executables whose debug info has been separated
9085 out into a separate file, leaving only a link behind.
9086 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9087 and separate_debug_objfile_backlink.
9088 (put_objfile_before): New declaration.
9089 * symfile.c: #include "filenames.h".
9090 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9091 debug info in a separate file, read that, too. Save the addrs
9092 argument, so we can use it again to read the separated debug info;
9093 syms_from_objfile modifies the table we pass it.
9094 (reread_symbols): After re-reading an objfile, call
9095 reread_separate_symbols to refresh its separate debug info
9096 objfile, if it has one.
9097 (reread_separate_symbols, find_separate_debug_file,
9098 get_debug_link_info, separate_debug_file_exists): New functions.
9099 (debug_file_directory): New global var.
9100 (_initialize_symfile): Initialize debug_file_directory, and
9101 provide the new `set debug-file-directory' command to let the user
9102 change it.
9103 * objfiles.c (free_objfile): If this objfile has its debug info in
9104 a separate objfile, free that one too. If this is itself a
9105 separate debug info objfile, clear our parent's backlink.
9106 (put_objfile_before): New function.
9107 * utils.c (gnu_debuglink_crc32): New function.
9108 * defs.h (gnu_debuglink_crc32): New declaration.
9109 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9110 * configure.in: Handle --with-separate-debug-dir config option.
9111 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9112 * acconfig.h (DEBUGDIR): New macro.
9113 * configure, aclocal.m4, config.in: Regenerated.
9114
9115 2003-01-22 Jim Blandy <jimb@redhat.com>
9116
9117 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9118 like the old symbol_file_add, but taking new arguments: you can
9119 now pass in either a `struct section_addr_info' list to say where
9120 each section is loaded, or a `struct section_offsets' table. Pass
9121 these new arguments through to syms_from_objfile as appropriate.
9122 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9123 with the appropriate quiescent values for the new arguments.
9124
9125 * symfile.c: #include "gdb_assert.h".
9126 (syms_from_objfile): Add the ability to pass in a section offset
9127 table directly, as an alternative to the section_addr_info table.
9128 Document arguments better.
9129 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9130 * symfile.h (syms_from_objfile): Update declaration.
9131 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9132 syms_from_objfile.
9133 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9134
9135 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9136
9137 Original patch by Tom Tromey <tromey@cygnus.com> and
9138 Jason Molenda <jmolenda@apple.com>.
9139 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9140 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9141 * NEWS: Mention profiling.
9142 * configure.in (--enable-gdbtk): Fix typo.
9143 (--enable-profiling): New. Set PROFILE_CFLAGS.
9144 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9145 Fill in function.
9146 (profiling_state): New variable.
9147 (mcleanup_wrapper): New function.
9148 (_initialize_maint): Remove NOTYET, fix call to
9149 add_setshow_boolean_cmd for "maint set profile".
9150 * configure: Regenerated.
9151
9152 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9153
9154 * Makefile.in (install-gdbtk): Install PNG images too.
9155
9156 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9157
9158 * exec.c (text_start): Delete global variable.
9159 (exec_file_attach): Make text_start local to the function.
9160 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9161 * valops.c (hand_function_call): Delete code that handles
9162 BEFORE_TEXT_END and AFTER_TEXT_END.
9163 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9164 of CALL_DUMMY_LOCATION.
9165 * gdbarch.c: Regenerate.
9166 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9167 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9168 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9169 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9170 (text_end): Delete extern declaration.
9171
9172 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9173
9174 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9175 * blockframe.c (backtrace_below_main): Move to "frame.c".
9176 (frame_chain_valid): Delete check for backtrace_below_main.
9177 (_initialize_blockframe): Delete initialization, move ``set
9178 backtrace-below-main'' command to "frame.c".
9179 (do_flush_frames_sfunc): Delete function.
9180 * frame.c: Include "command.h" and "gdbcmd.h".
9181 (frame_type_from_pc): New function.
9182 (create_new_frame): Use frame_type_from_pc.
9183 (legacy_get_prev_frame): New function.
9184 (get_prev_frame): Rewrite. When an old style frame, call
9185 legacy_get_prev_frame. Otherwize, unwind the PC first.
9186 (_initialize_frame): Add ``set backtrace-below-main'' command.
9187 * Makefile.in (frame.o): Update dependencies.
9188
9189 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9190
9191 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9192 DEPRECATED_REGISTERS_INFO.
9193
9194 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9195
9196 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9197 Maintainers'. Update `Various Maintainers'.
9198
9199 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9200
9201 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9202 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9203 Suppress actual parameters when `-'.
9204 * gdbarch.h, gdbarch.c: Regenerate.
9205
9206 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9207
9208 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9209 code handling dummy frames.
9210
9211 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9212
9213 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9214 (struct frame_unwind): Add field pop.
9215 * frame.h (frame_pop): Declare.
9216 * frame.c (frame_saved_regs_pop): New function.
9217 (trad_frame_unwinder): Add frame_saved_regs_pop.
9218 (frame_pop): New function.
9219 * dummy-frame.c (dummy_frame_pop): New function.
9220 (discard_innermost_dummy): New function.
9221 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9222 (dummy_frame_unwind): Add dummy_frame_pop.
9223 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9224 * valops.c (hand_function_call): Ditto.
9225 * stack.c (return_command): Ditto.
9226
9227 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9228
9229 * cris-tdep.c: Fix function declaration indentation.
9230 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9231 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9232 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9233 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9234 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9235 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9236
9237 2003-01-18 Michael Chastain <mec@shout.net>
9238
9239 * README (Unpacking and Installation -- quick overview):
9240 Warn against ".../gdb-5.3/gdb/configure".
9241
9242 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9243
9244 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9245 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9246 (struct frame_unwind): Declare opaque.
9247 (dummy_frame_p): Declare function.
9248 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9249 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9250 * dummy-frame.c: Include "frame-unwind.h".
9251 (dummy_frame_p): New function.
9252 (dummy_frame_unwind): New variable.
9253 * frame.c: Include "frame-unwind.h".
9254 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9255 to use the new unwind field.
9256 (set_unwind_by_pc): Delete function.
9257 (create_new_frame, get_prev_frame): Set unwind field using
9258 frame_unwind_find_by_pc.
9259 (trad_frame_unwind, trad_frame_unwinder): New variables.
9260 * frame.h (trad_frame_unwind): Declare variable.
9261 (frame_id_unwind_ftype): Delete declaration.
9262 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9263 (struct frame_unwind): Declare opaque.
9264 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9265 register_unwind with a single unwind pointer.
9266 * frame-unwind.h, frame-unwind.c: New files.
9267 * Makefile.in (SFILES): Add frame-unwind.c.
9268 (frame_unwind_h): Define.
9269 (COMMON_OBS): Add frame-unwind.o.
9270 (frame-unwind.o): Specify dependencies.
9271 (frame.o, dummy-frame.o): Update dependencies.
9272
9273 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9274
9275 * ada-valprint.c: Eliminate PTR.
9276 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9277 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9278 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9279 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9280 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9281 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9282 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9283
9284 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9285
9286 * main.c (captured_main): Don't use PTR.
9287 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9288 * gdbtypes.c (lookup_primitive_typename): Ditto.
9289 (lookup_struct_elt_type): Ditto.
9290 * f-valprint.c (info_common_command): Ditto.
9291 (list_all_visible_commons): Ditto.
9292 * jv-typeprint.c (java_type_print_base): Ditto.
9293
9294 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9295 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9296 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9297 i386-interix-nat.c and i386-interix-tdep.c. Rename
9298 m68klinux-nat.c and m68klinux-tdep.c. Rename
9299 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9300 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9301 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9302 * main.c (captured_main): Use xfree, not free.
9303
9304 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9305
9306 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9307 ID back using a parameter.
9308 * frame.c (frame_id_unwind): Update call.
9309 (frame_saved_regs_id_unwind): Update.
9310 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9311 * dummy-frame.h (struct frame_id): Add opaque declaration.
9312 (dummy_frame_id_unwind): Update declaration.
9313
9314 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9315
9316 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9317
9318 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9319
9320 * MAINTAINERS (Stephen P. Smith): Updated email address.
9321
9322 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9323
9324 Fix PR gdb/898
9325 * breakpoint.c (until_break_command): Add new argument. Use it to
9326 decide whether to stop only at the current frame or not.
9327 * breakpoint.h (until_break_command): Update prototype.
9328 * infcmd.c (until_command): Add new argument to until_break_command
9329 call.
9330 (advance_command): New function.
9331 (_initialize_infcmd): Update help string for 'until' command.
9332 Add new 'advance' command.
9333
9334 2003-01-14 David Carlton <carlton@math.stanford.edu>
9335
9336 * linespec.c (decode_line_1): Normalize comments.
9337 (set_flags): Ditto.
9338 (locate_first_half): Ditto.
9339 (decode_compound): Ditto.
9340 (symtab_from_filename): Ditto.
9341 (decode_all_digits): Ditto.
9342 (decode_dollar): Ditto.
9343 (find_methods): Ditto.
9344 (find_toplevel_char): Ditto.
9345
9346 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9347
9348 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9349 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9350 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9351 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9352 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9353 * language.c, language.h, m32r-tdep.c: Update copyright.
9354 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9355 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9356 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9357 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9358 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9359 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9360
9361 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9362
9363 * stabsread.h (process_later, resolve_cfront_continuation):
9364 Obsolete.
9365 Update copyright years.
9366 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9367 Update copyright year.
9368 * dbxread.c(struct cont_elem): Obsolete.
9369 (process_later, process_now): Obsolete functions.
9370 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9371 Update copyright year.
9372 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9373 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9374 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9375 (parse_partial_symbols): Obsolete cfront support.
9376 * stabsread.c
9377 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9378 macros.
9379 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9380 read_cfront_baseclasses, read_cfront_member_functions,
9381 resolve_cfront_continuation,read_cfront_static_fields,
9382 copy_cfront_struct_fields): Obsolete functions.
9383 (define_symbol, read_one_struct_field): Obsolete cfront support.
9384 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9385 Update Copyright year.
9386
9387 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9388
9389 * stack.c (print_frame_info, print_stack_frame_base_stub,
9390 print_stack_frame_base, show_and_print_stack_frame_stub,
9391 show_and_print_stack_frame, print_only_stack_frame_stub,
9392 print_only_stack_frame): Delete functions.
9393 (print_stack_frame_stub): Call print_frame_info instead of
9394 print_frame_info_base.
9395 (print_frame_info_base): Rename to print_frame_info.
9396 (backtrace_command_1): Call print_frame_info, instead of
9397 print_frame_info_base.
9398 (current_frame_command): Call print_stack_frame, instead of
9399 print_only_stack_frame.
9400 (frame_command): Call print_stack_frame, instead of
9401 show_and_print_stack_frame.
9402 (up_command): Ditto.
9403 (down_command): Ditto.
9404 * frame.h (print_only_stack_frame): Delete prototype.
9405 * infrun.c (normal_stop): Call print_stack_frame, instead of
9406 show_and_print_stack_frame.
9407 * thread.c (info_threads_command): Call print_stack_frame, instead
9408 of print_only_stack_frame.
9409
9410 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9411
9412 * README (Graphical interface to GDB): Update URL. Point at
9413 gdb/links/.
9414
9415 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9416 version match.
9417
9418 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9419
9420 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9421 lines.
9422
9423 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9424
9425 * thread-db.c (attach_thread): Prototype.
9426 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9427 thread information (ti), and valid flags (th_valid, ti_valid).
9428 (attach_thread): Move target_pid_to_str call to after the thread
9429 is added to GDB's list. Initialize the cache.
9430 (thread_get_info_callback, thread_db_map_id2thr)
9431 (thread_db_get_info): New functions.
9432 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9433 (thread_db_store_registers, thread_db_thread_alive)
9434 (thread_db_get_thread_local_address): Use them.
9435 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9436 of calling error() for threads in unknown state.
9437
9438 (clear_lwpid_callback): New function.
9439 (thread_db_resume): Use it to clear the cache.
9440
9441 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9442
9443 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9444 (resume_callback): Remove dead code.
9445
9446 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9447
9448 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9449 predicate.
9450 * gdbarch.h, gdbarch.c: Regenerate.
9451 * stack.c (frame_info): Only initialize the saved registers when
9452 FRAME_INIT_SAVED_REGS_P.
9453 * frame.c (frame_saved_regs_register_unwind): Assert
9454 FRAME_INIT_SAVED_REGS_P.
9455 (deprecated_generic_get_saved_register): Ditto.
9456
9457 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9458
9459 * source.c (openp): Squelch warning about "filename".
9460
9461 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9462
9463 * source.c (openp): If the file does not exist don't necessarily
9464 search the path.
9465
9466 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9467
9468 Fix PR gdb/872.
9469 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9470 (integer_types_same_name_p): New function.
9471 (rank_one_type): Use it.
9472 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9473
9474 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9475
9476 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9477 variables.
9478 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9479 * configure.in: Add --with-sysroot.
9480 * configure: Regenerated.
9481 * main.c (gdb_sysroot): New variable.
9482 (captured_main): Initialize gdb_sysroot.
9483 * defs.h (gdb_sysroot): New extern declaration.
9484 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9485
9486 2003-01-12 Michael Chastain <mec@shout.net>
9487
9488 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9489
9490 2003-01-12 Michael Chastain <mec@shout.net>
9491
9492 * top.c (print_gdb_version): Bump copyright year to 2003.
9493
9494 2003-01-12 David Carlton <carlton@bactrian.org>
9495
9496 * linespec.c (symtab_from_filename): Rename variable 's' to
9497 'file_symtab'.
9498
9499 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9500
9501 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9502 dummy frame.
9503 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9504
9505 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9506
9507 * d10v-tdep.c: Include "gdb_assert.h".
9508 (d10v_store_return_value): Rewrite to match current interface.
9509 (d10v_extract_struct_value_address): Ditto.
9510 (d10v_extract_return_value): Ditto.
9511 (d10v_gdbarch_init): Set store_restore_value,
9512 extract_struct_value_address and extract_return_value.
9513
9514 2003-01-12 J. Brobecker <brobecker@gnat.com>
9515
9516 * hpread.c (set_namestring): New procedure replacing the
9517 SET_NAMESTRING macro.
9518 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9519 by calls to set_namestring.
9520
9521 2003-01-11 J. Brobecker <brobecker@gnat.com>
9522
9523 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9524 a compilation warning.
9525 (hpread_process_one_debug_symbol): Likewise.
9526
9527 2003-01-10 David Carlton <carlton@math.stanford.edu>
9528
9529 * linespec.c (decode_line_1): Rename variable 's' to
9530 'file_symtab'.
9531 (decode_all_digits): Rename argument 's' to 'file_symtab'.
9532 (decode_dollar): Ditto.
9533 (decode_variable): Ditto.
9534 (symbol_found): Ditto.
9535
9536 2003-01-09 Michael Chastain <mec@shout.net>
9537
9538 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9539
9540 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
9541
9542 * win32-nat.c (set_process_privilege): New function.
9543 (child_attach): Call set_process_privilege() to enable the
9544 SE_DEBUG_NAME user privilege if available in process token.
9545
9546 2003-01-10 J. Brobecker <brobecker@gnat.com>
9547
9548 * hpread.c (hpread_process_one_debug_symbol): Fix a small
9549 compilation error in the previous revision.
9550
9551 2003-01-09 David Carlton <carlton@math.stanford.edu>
9552
9553 * linespec.c: Update copyright.
9554
9555 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
9556
9557 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9558 than inferior_ptid.
9559 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9560
9561 2003-01-09 Andrew Cagney <ac131313@redhat.com>
9562
9563 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9564 Update comments.
9565 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9566 (frame_saved_regs_zalloc): Update.
9567 (frame_saved_regs_register_unwind): Update.
9568 (create_new_frame): Update.
9569 (get_prev_frame): Update.
9570 (frame_extra_info_zalloc): Update.
9571 (deprecated_get_frame_saved_regs): Update.
9572 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9573 * cris-tdep.c: Update comment.
9574
9575 * somsolib.h: Fix function indentation.
9576 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9577 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9578 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9579 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9580 * somsolib.c, inftarg.c: Remove assignment in if conditional.
9581
9582 * infrun.c (follow_fork): Use ISO C definition.
9583 * expprint.c (print_subexp): Use xfree instead of free.
9584 * charset.c: Include "gdb_string.h" instead of <string.h>.
9585 (register_iconv_charsets): Use ISO C definition.
9586 (host_charset, target_charset): Ditto.
9587 * Makefile.in (charset.o): Update dependencies.
9588 (mi-cmd-env.o): Update dependencies.
9589
9590 2003-01-08 Andrew Cagney <cagney@redhat.com>
9591
9592 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9593 get_frame_base.
9594
9595 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9596
9597 * gdb_mbuild.sh: Add --keep option. When specified, keep the
9598 build directories. Save edited gdb output in Mbuild.log. If a
9599 build fails, remove any final GDB executable.
9600
9601 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9602
9603 * gdb_mbuild.sh: Edit the output of `maint print architecture'
9604 replacing hex constants with function names and stripping leading
9605 file name directory prefixes.
9606
9607 2003-01-08 Andrew Cagney <cagney@redhat.com>
9608
9609 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
9610 get_frame_base.
9611
9612 2003-01-08 David Carlton <carlton@math.stanford.edu>
9613
9614 * linespec.c (decode_line_1): Move code into decode_variable.
9615 (decode_variable): New function.
9616
9617 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9618
9619 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
9620
9621 2003-01-08 Andrew Cagney <cagney@redhat.com>
9622
9623 * cris-tdep.c (cris_frame_init_saved_regs): Use
9624 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
9625 saved_regs buffer.
9626 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9627 (sh64_nofp_frame_init_saved_regs): Ditto.
9628 (sh_fp_frame_init_saved_regs): Ditto.
9629 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
9630 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9631 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9632 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9633
9634 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
9635
9636 * minsyms.c (lookup_minimal_symbol): Update comment.
9637 (lookup_minimal_symbol_text): Update comment. Use the hash table.
9638 (lookup_minimal_symbol_solib_trampoline): Likewise.
9639
9640 2003-01-08 Andrew Cagney <cagney@redhat.com>
9641
9642 * d10v-tdep.c (d10v_init_extra_frame_info): Use
9643 frame_relative_level.
9644
9645 * alpha-tdep.c: Use get_frame_extra_info.
9646 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9647 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
9648 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9649 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
9650
9651 * alpha-tdep.c: Use get_next_frame.
9652 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9653 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9654 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
9655 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
9656 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
9657 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
9658 * xstormy16-tdep.c: Ditto.
9659
9660 2003-01-07 Andrew Cagney <cagney@redhat.com>
9661
9662 * alpha-tdep.c: Use get_frame_base.
9663 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9664 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9665 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9666 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9667 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
9668 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9669 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
9670 * config/sparc/tm-sparc.h: Ditto.
9671
9672 2003-01-07 Andrew Cagney <cagney@redhat.com>
9673
9674 * frame.c (deprecated_get_frame_context): New function.
9675 (deprecated_set_frame_context): New function.
9676 * frame.h (deprecated_get_frame_context): Declare.
9677 (deprecated_set_frame_context): Declare.
9678 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
9679 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
9680
9681 2003-01-07 Andrew Cagney <cagney@redhat.com>
9682
9683 * frame.c (deprecated_set_frame_next_hack): New function.
9684 (deprecated_set_frame_prev_hack): New function.
9685 * frame.h (deprecated_set_frame_next_hack): Declare.
9686 (deprecated_set_frame_prev_hack): Declare.
9687 * mcore-tdep.c (analyze_dummy_frame): Use
9688 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
9689 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9690
9691 2003-01-07 David Carlton <carlton@math.stanford.edu>
9692
9693 * linespec.c (decode_line_1): Move code into decode_dollar.
9694 (decode_dollar): New function.
9695
9696 2003-01-07 Andrew Cagney <cagney@redhat.com>
9697
9698 * arm-tdep.c (arm_init_extra_frame_info): Use
9699 deprecated_update_frame_base_hack.
9700 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
9701 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9702 (fix_frame_pointer): Ditto.
9703 (mn10300_analyze_prologue): Ditto.
9704
9705 2003-01-07 Andrew Cagney <cagney@redhat.com>
9706
9707 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
9708 extra_info using frame_extra_info_zalloc.
9709 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9710 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
9711 (sh64_init_extra_frame_info): Ditto.
9712 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
9713 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
9714 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9715 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
9716 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
9717 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
9718 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
9719 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
9720 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
9721 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
9722 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9723 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
9724
9725 * mn10300-tdep.c (analyze_dummy_frame): Use
9726 deprecated_set_frame_extra_info_hack.
9727 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9728
9729 2003-01-07 J. Brobecker <brobecker@gnat.com>
9730
9731 * mdebugread.c (parse_symbol): Skip stProc entries which storage
9732 class is not scText. These do not define "real" procedures.
9733 (parse_partial_symbols): Likewise.
9734
9735 2003-01-06 Michael Snyder <msnyder@redhat.com>
9736
9737 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
9738
9739 2003-01-06 Andrew Cagney <ac131313@redhat.com>
9740
9741 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
9742 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
9743 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
9744 deprecated_frame_xmalloc_with_cleanup.
9745 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
9746 deprecated_frame_xmalloc.
9747 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
9748 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
9749
9750 2003-01-06 Andrew Cagney <cagney@redhat.com>
9751
9752 * x86-64-linux-tdep.c: Include "osabi.h".
9753 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
9754
9755 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
9756
9757 2003-01-06 Andrew Cagney <cagney@redhat.com>
9758
9759 * MAINTAINERS (Target Instruction Set Architectures): Update
9760 arm-elf. Can be built with -Werror, has been multiarched.
9761
9762 * value.h (unpack_long): Make buffer parameter constant.
9763 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
9764 * scm-lang.h (scm_parse): Ditto.
9765 * defs.h (extract_typed_address, extract_address): Ditto.
9766 (extract_long_unsigned_integer): Ditto.
9767 * inferior.h (unsigned_pointer_to_address): Ditto.
9768 (signed_pointer_to_address): Ditto.
9769 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
9770 * gdbarch.h, gdbarch.c: Regenerate.
9771 * findvar.c (extract_long_unsigned_integer): Update.
9772 (extract_address): Update.
9773 (extract_typed_address): Update.
9774 (unsigned_pointer_to_address): Update.
9775 * values.c (unpack_long): Update.
9776 (unpack_double): Update.
9777 (unpack_pointer): Update.
9778 (unpack_field_as_long): Update.
9779 * d10v-tdep.c (d10v_pointer_to_address): Update.
9780 * avr-tdep.c (avr_pointer_to_address): Update.
9781 * scm-lang.c (scm_unpack): Update.
9782 * findvar.c (signed_pointer_to_address): Update.
9783
9784 2003-01-06 Michal Ludvig <mludvig@suse.cz>
9785
9786 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
9787 since it is in i386-tdep.c.
9788
9789 2003-01-06 J. Brobecker <brobecker@gnat.com>
9790
9791 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
9792 failure introduced in the previous change.
9793
9794 2003-01-05 Michael Chastain <mec@shout.net>
9795
9796 * README: Remove references to deleted remote-*.c files:
9797 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
9798 remote-nrom.c, remote-os9k.c, remote-udi.c.
9799
9800 2003-01-05 Mark Kettenis <kettenis@gnu.org>
9801
9802 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
9803 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
9804 i386_get_longjmp_target.
9805
9806 2003-01-05 Andrew Cagney <ac131313@redhat.com>
9807
9808 * arm-tdep.c (prologue_cache): Change to a pointer.
9809 (_initialize_arm_tdep): Allocate prologue_cache.
9810 (check_prologue_cache): Update.
9811 (save_prologue_cache): Update.
9812 (arm_gdbarch_init): Update.
9813
9814 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9815
9816 * stabsread.c (update_method_name_from_physname): Call complaint()
9817 instead of error.
9818
9819 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9820
9821 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
9822 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
9823 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
9824
9825 * blockframe.c: Include "gdbcmd.h" and "command.h".
9826 (backtrace_below_main): New variable.
9827 (file_frame_chain_valid, func_frame_chain_valid)
9828 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
9829 (generic_func_frame_chain_valid): Remove functions.
9830 (frame_chain_valid, do_flush_frames_sfunc): New functions.
9831 (_initialize_blockframe): New function.
9832 * Makefile.in (blockframe.o): Update dependencies.
9833 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
9834 comment. Call frame_chain_valid ().
9835 * frame.h: Remove old prototypes. Add prototype for
9836 frame_chain_valid and update comments to match.
9837 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
9838 Remove old comment.
9839 * gdbarch.h: Regenerated.
9840 * gdbarch.c: Regenerated.
9841
9842 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9843 set_gdbarch_frame_chain_valid.
9844 * avr-tdep.c (avr_gdbarch_init): Likewise.
9845 * cris-tdep.c (cris_gdbarch_init): Likewise.
9846 * frv-tdep.c (frv_gdbarch_init): Likewise.
9847 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
9848 * i386-tdep.c (i386_svr4_init_abi): Likewise.
9849 (i386_nw_init_abi): Likewise.
9850 (i386_gdbarch_init): Likewise.
9851 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
9852 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9853 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9854 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
9855 * mips-tdep.c (mips_gdbarch_init): Likewise.
9856 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9857 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
9858 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9859 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9860 * s390-tdep.c (s390_gdbarch_init): Likewise.
9861 * sh-tdep.c (sh_gdbarch_init): Likewise.
9862 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9863 * v850-tdep.c (v850_gdbarch_init): Likewise.
9864 * vax-tdep.c (vax_gdbarch_init): Likewise.
9865 * x86-64-tdep.c (x86_64_init_abi): Likewise.
9866
9867 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
9868 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
9869 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
9870 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
9871 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
9872 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
9873 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
9874 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
9875
9876 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9877
9878 * Makefile.in (acconfig_h): Remove incorrect macro.
9879 (config_h): Define.
9880 (osabi.o): Update dependencies.
9881 * configure.tgt: Set gdb_osabi based on target triplet.
9882 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
9883 * configure: Regenerated.
9884 * config.in: Regenerated.
9885 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
9886 (GDB_OSABI_DEFAULT): Define if not already defined.
9887 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
9888 (set_osabi_string): New variables.
9889 (gdbarch_register_osabi): Add new OS ABI to
9890 gdb_osabi_available_names.
9891 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
9892 (set_osabi, show_osabi): New functions.
9893 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
9894
9895 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9896
9897 * arch-utils.c (gdbarch_info_init): Set osabi to
9898 GDB_OSABI_UNINITIALIZED.
9899 * gdbarch.sh: Add osabi to struct gdbarch and to struct
9900 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
9901 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
9902 * gdbarch.c: Regenerated.
9903 * gdbarch.h: Regenerated.
9904 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
9905 there's no BFD.
9906 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
9907 * osabi.h (enum gdb_osabi): Move to defs.h.
9908 (gdbarch_init_osabi): Update prototype.
9909 * defs.h (enum gdb_osabi): Moved here.
9910 * Makefile.in: Update dependencies.
9911
9912 * alpha-tdep.h: Don't include "osabi.h".
9913 (struct gdbarch_tdep): Remove osabi member.
9914 * alpha-tdep.c: Include "osabi.h".
9915 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9916 iterate over arches. Update call to gdbarch_init_osabi.
9917 (alpha_dump_tdep): Don't dump osabi.
9918 * alpha-linux-tdep.c: Include "osabi.h".
9919 * alpha-osf1-tdep.c: Include "osabi.h".
9920 * alphafbsd-tdep.c: Include "osabi.h".
9921 * alphanbsd-tdep.c: Include "osabi.h".
9922
9923 * arm-tdep.h: Don't include "osabi.h".
9924 (struct gdbarch_tdep): Remove osabi member.
9925 * arm-tdep.c: Include "osabi.h".
9926 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9927 iterate over arches. Update call to gdbarch_init_osabi.
9928 (arm_dump_tdep): Don't dump osabi.
9929 * arm-linux-tdep.c: Include "osabi.h".
9930 * armnbsd-tdep.c: Include "osabi.h".
9931
9932 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
9933 Update call to gdbarch_init_osabi.
9934
9935 * i386-tdep.h: Don't include "osabi.h".
9936 (struct gdbarch_tdep): Remove osabi member.
9937 * i386-tdep.c: Include "osabi.h".
9938 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9939 iterate over arches. Update call to gdbarch_init_osabi.
9940 (i386_dump_tdep): Don't dump osabi.
9941 * i386-linux-tdep.c: Include "osabi.h".
9942 * i386-sol2-tdep.c: Include "osabi.h".
9943 * i386bsd-tdep.c: Include "osabi.h".
9944 * i386gnu-tdep.c: Include "osabi.h".
9945 * i386ly-tdep.c: Include "osabi.h".
9946 * i386nbsd-tdep.c: Include "osabi.h".
9947 * i386obsd-tdep.c: Include "osabi.h".
9948
9949 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
9950 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9951 check osabi when iterating over arches. Update call to
9952 gdbarch_init_osabi.
9953 (mips_dump_tdep): Don't dump osabi.
9954
9955 * ns32k-tdep.h: Don't include "osabi.h".
9956 (struct gdbarch_tdep): Remove.
9957 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
9958 gdbarch_lookup_osabi. Don't iterate over arches. Don't
9959 allocate tdep. Update call to gdbarch_init_osabi.
9960 (ns32k_dump_tdep): Remove.
9961 (_initialize_ns32k_tdep): Update call to gdbarch_register.
9962 * ns32knbsd-tdep.c: Include "osabi.h".
9963
9964 * ppc-tdep.h: Don't include "osabi.h".
9965 (struct gdbarch_tdep): Remove osabi member.
9966 * rs6000-tdep.c: Include "osabi.h".
9967 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
9968 osabi when iterating over arches. Update call to
9969 gdbarch_init_osabi.
9970 (rs6000_dump_tdep): Don't dump osabi.
9971 * ppc-linux-tdep.c: Include "osabi.h".
9972 * ppcnbsd-tdep.c: Include "osabi.h".
9973
9974 * sh-tdep.h: Don't include "osabi.h".
9975 (struct gdbarch_tdep): Remove osabi member.
9976 * sh-tdep.c: Include "osabi.h".
9977 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9978 iterate over arches. Update call to gdbarch_init_osabi.
9979 (sh_dump_tdep): Don't dump osabi.
9980 * shnbsd-tdep.c: Include "osabi.h".
9981
9982 * sparc-tdep.c: Include "osabi.h".
9983 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9984 iterate over arches. Update call to gdbarch_init_osabi.
9985 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
9986 tdep structure.
9987
9988 * vax-tdep.h: Don't include "osabi.h".
9989 (struct gdbarch_tdep): Remove.
9990 * vax-tdep.c: Include "osabi.h".
9991 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9992 iterate over arches. Don't allocate tdep. Update call
9993 to gdbarch_init_osabi.
9994 (vax_dump_tdep): Remove.
9995 (_initialize_vax_tdep): Update call to gdbarch_register.
9996
9997 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9998
9999 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10000 entirely.
10001 (breakpoint_re_set_one): Don't fetch the value for a disabled
10002 watchpoint.
10003
10004 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10005
10006 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10007 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10008 (COERCE_FLOAT_TO_DOUBLE): Remove.
10009 * gdbarch.c: Regenerate.
10010 * gdbarch.h: Regenerate.
10011 * Makefile.in: Remove value_h from gdbarch_h.
10012 * valops.c (coerce_float_to_double): New variable.
10013 (default_coerce_float_to_double): Remove.
10014 (standard_coerce_float_to_double): Remove.
10015 (value_arg_coerce): Use coerce_float_to_double.
10016 (_initialize_valops): Add "set coerce-float-to-double".
10017 * value.h (default_coerce_float_to_double): Remove prototype.
10018 (standard_coerce_float_to_double): Remove prototype.
10019
10020 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10021 prototyped.
10022 * mdebugread.c (parse_symbol): Likewise.
10023 * stabsread.c (define_symbol): Mark all functions as prototyped.
10024
10025 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10026 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10027 set_gdbarch_coerce_float_to_double.
10028 * arm-tdep.c (arm_gdbarch_init): Likewise.
10029 * frv-tdep.c (frv_gdbarch_init): Likewise.
10030 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10031 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10032 * mips-tdep.c (mips_gdbarch_init): Likewise.
10033 (mips_coerce_float_to_double): Remove.
10034 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10035 (rs6000_coerce_float_to_double): Remove.
10036 * s390-tdep.c (s390_gdbarch_init): Likewise.
10037 * sh-tdep.c (sh_gdbarch_init): Likewise.
10038 (sh_coerce_float_to_double): Remove.
10039 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10040 (sparc_coerce_float_to_double): Remove.
10041 * v850-tdep.c (v850_gdbarch_init): Likewise.
10042 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10043 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10044 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10045 (hppa_coerce_float_to_double): Remove prototype.
10046 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10047
10048 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10049
10050 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10051
10052 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10053
10054 Suggested by Stewart Brown <sb24@avaya.com>:
10055 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10056 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10057 (c_type_print_varspec_suffix): Likewise.
10058
10059 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10060
10061 * configure.in: Don't set and AC_SUBST SUBDIRS.
10062 * configure: Regenerated.
10063
10064 * configure.in: Remove code dealing with shared libraries.
10065 * Makefile.in: Remove HLDFLAGS and HLDENV.
10066 * configure: Regenerated.
10067
10068 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10069
10070 * frame.c (deprecated_frame_xmalloc): New function.
10071 (deprecated_set_frame_saved_regs_hack): New function.
10072 (deprecated_set_frame_extra_info_hack): New function.
10073 * frame.h (deprecated_frame_xmalloc): Declare.
10074 (deprecated_set_frame_saved_regs_hack): Declare.
10075 (deprecated_set_frame_extra_info_hack): Declare.
10076
10077 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10078
10079 * configure.in: Move code that provides the --enable-gdbtk option
10080 right after the code that handles the --enable-tui option, and
10081 polish it somewhat.
10082 * configure: Regenerated.
10083
10084 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10085 AC_CHECK_FUNCS and remove the old check for pread64.
10086 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10087 * acconfig.h (_GNU_SOURCE): Add.
10088 (HAVE_PREAD64): Remove.
10089 * configure, aclocal.m4, config.in: Regenerated.
10090
10091 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10092
10093 * alpha-tdep.c: Use get_frame_saved_regs.
10094 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10095 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10096 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10097 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10098 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10099
10100 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10101
10102 * configure.in: Remove all use of the SUBDIRS variable; add
10103 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10104 code providing the --enable-multi-ice option, and move it right in
10105 front of the code that checks whether gdbserver is supported.
10106 Polish that too.
10107 * configure: Regenerated.
10108 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10109 @SUBDIRS@.
10110
10111 2003-01-03 Andrew Cagney <cagney@redhat.com>
10112
10113 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10114 * avr-tdep.c, cris-tdep.c: Ditto.
10115 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10116 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10117
10118 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10119
10120 * configure.in: Remove --enable-netrom option.
10121 * configure: Regenerated.
10122
10123 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10124
10125 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10126 declaration for `struct re_pattern_buffer' instead.
10127 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10128
10129 2003-01-03 J. Brobecker <brobecker@gnat.com>
10130
10131 * mdebugread.c (parse_symbol): Count until the stEnd matching
10132 the structure name.
10133
10134 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10135
10136 * configure.in: Remove --with-cpu option.
10137 subscripts. Remove evil changequotes here.
10138 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10139 * config.in, configure: Regenerated.
10140
10141 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10142 * configure.in: Cleanup section that sources GDB and BFD configure
10143 subscripts. Remove evil changequotes here.
10144 * config.in, configure: Regenerated.
10145
10146 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10147
10148 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10149 frame accessor methods.
10150 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10151 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10152 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10153 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10154 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10155 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10156 * z8k-tdep.c: Ditto.
10157
10158 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10159
10160 * configure.in: Remove UI_OUT configuration code.
10161 * ada-lang.c: Update assuming UI_OUT is always true.
10162 * Makefile.in (UIOUT_CFLAGS): Remove.
10163 * configure: Regenerated.
10164 * TODO: Remove blurb about elimination of -DUI_OUT.
10165
10166 * configure.in: Move code that provides the --enable-gdbcli,
10167 --enable-gdbmi options right before the code that handles the
10168 --enable-tui option. Polish a bit.
10169 * configure: Regenerated.
10170
10171 * configure.in: Rewrite check for GNU regex and the
10172 --without-included regex option, and move it into the "Checks for
10173 library functions" section. This makes us use the system regex
10174 again by default on systems with version 2 of the GNU C library.
10175 This was apparently broken.
10176 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10177 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10178 * config.in, configure: Regenerated.
10179
10180 * configure.in: Move code that provides the --enable-tui option
10181 before the "Checks for libraries" section. Polish the code
10182 somewhat and set need_curses to yes if we build the TUI. Rewrite
10183 code that looks for a library providing termcap functionality to
10184 match more closely what's done in the Readline library, and move
10185 it into to the "Checks for libraries" section.
10186 * configure: Regenerated.
10187 * Makefile.in (TERMCAP): Remove variable.
10188 * config/i386/go32.mh (TERMCAP): Remove variable.
10189
10190 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10191
10192 * MAINTAINERS: Mention gdb_mbuild.sh.
10193 * gdb_mbuild.sh: Rewrite.
10194
10195 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10196
10197 * configure.in: Fix typo in last change.
10198 * config.in, configure: Regenerated.
10199
10200 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10201
10202 * valarith.c (value_binop): Delete obsolete code and comments.
10203 * configure.host: Ditto.
10204 * buildsym.h (make_blockvector): Ditto.
10205 * buildsym.c (make_blockvector): Ditto.
10206 * defs.h (enum language): Ditto.
10207 (chill_demangle): Ditto.
10208 * elfread.c (elf_symtab_read): Ditto.
10209 * dwarfread.c (CHILL_PRODUCER): Ditto.
10210 (set_cu_language): Ditto.
10211 (handle_producer): Ditto.
10212 * expprint.c (print_subexp): Ditto.
10213 * gdbtypes.c (chill_varying_type): Ditto.
10214 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10215 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10216 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10217 (chill_varying_type): Ditto.
10218 * language.h (_LANG_chill): Ditto.
10219 * language.c (binop_result_type, integral_type): Ditto.
10220 (character_type, string_type, structured_type): Ditto.
10221 (lang_bool_type, binop_type_check): Ditto.
10222 * stabsread.h (os9k_stabs): Ditto.
10223 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10224 (define_symbol, read_type, read_struct_fields): Ditto.
10225 (read_array_type, read_enum_type, read_huge_number): Ditto.
10226 (read_range_type, start_stabs): Ditto.
10227 * symfile.c (init_filename_language_table): Ditto.
10228 (add_psymbol_with_dem_name_to_list): Ditto.
10229 * symtab.c (symbol_init_language_specific): Ditto.
10230 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10231 * symtab.h (struct general_symbol_info): Ditto.
10232 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10233 * typeprint.c (typedef_print): Ditto.
10234 * utils.c (fprintf_symbol_filtered): Ditto.
10235 * valops.c (value_cast, search_struct_field, value_slice): Delete
10236 obsolete code.
10237 (varying_to_slice): Delete function.
10238 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10239 (varying_to_slice): Delete declaration.
10240 * MAINTAINERS: Update.
10241
10242 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10243
10244 * configure.in: Reorganize "Checks for library functions section"
10245 a bit. Remove check for `btowc' and `isascii' functions.
10246 * configure: Regenerated.
10247
10248 * acconfig.h (_MSE_INT_H): Remove.
10249 * configure.in: Create "Checks for header files" section, and move
10250 appropriate tests there. Don't check for objlist.h, wchar.h,
10251 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10252 misdetection fix. Also add "Checks for types", "Checks for
10253 compiler characteristics" and "Checks for library functions"
10254 sections.
10255 * config.in, configure: Regenerated.
10256
10257 * configure.in: Create "Checks for programs" section, and move
10258 appropriate tests there.
10259
10260 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10261
10262 * configure.in: Create "Checks for libraries" section, and move
10263 appropriate tests there. Cleanup check for wctype in libw. Use
10264 AC_SEARCH_LIBS to see whether we need libsocket.
10265 * configure: Regenerated.
10266
10267 For older changes see ChangeLog-2002
10268 \f
10269 Local Variables:
10270 mode: change-log
10271 left-margin: 8
10272 fill-column: 74
10273 version-control: never
10274 End:
This page took 0.26099 seconds and 3 git commands to generate.