45c139799cae6f9cfda03940a022067998255990
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-08-04 Andrew Cagney <cagney@redhat.com>
2
3 * regcache.c (xfree_regcache_descr): Delete function.
4 (_initialize_regcache): Update call to register_gdbarch_data.
5 (init_regcache_descr, init_legacy_regcache_descr): Use
6 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
7
8 * remote.c (free_remote_state): Delete function.
9 (_initialize_remote): Update register_gdbarch_data.
10 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
11 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
12
13 2003-08-04 Andrew Cagney <cagney@redhat.com>
14
15 * reggroups.c (struct reggroup_el): Define.
16 (struct reggroups): Delete field "nr_group". Replace array
17 "group" with a "first" to "last" linked list.
18 (reggroups_init): Update. Allocate using gdbarch's obstack.
19 (reggroups_free): Delete function.
20 (add_group): Update. Add "el" parameter.
21 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
22 (default_groups): Update.
23 (reggroup_next): Replace reggroups.
24 (reggroups_dump): Update.
25 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
26 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
27 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
28
29 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
30
31 * Makefile.in (tui-interp.o): Update dependencies.
32
33 2003-08-04 David Carlton <carlton@kealia.com>
34
35 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
36 to internal_error call.
37 * source.c (forward_search_command): Add "%s" format argument.
38 (reverse_search_command): Ditto.
39 * top.c (quit_confirm): Ditto.
40 * cli/cli-setshow.c (do_setshow_command): Ditto.
41 * cp-valprint.c (cp_print_class_method): Replace
42 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
43 (cp_print_class_member): Ditto.
44 * event-top.c (command_line_handler): Ditto.
45 * linux-proc.c (linux_info_proc_cmd): Ditto.
46 * p-typeprint.c (pascal_type_print_base): Ditto.
47 * p-valprint.c (pascal_object_print_class_method): Ditto.
48 (pascal_object_print_class_member): Ditto.
49 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
50 * remote.c (remote_cisco_section_offsets): Ditto.
51 * top.c (command_line_input): Ditto.
52 * utils.c (vwarning,error_stream,quit): Ditto.
53 * valprint.c (print_floating,print_binary_chars)
54 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
55
56 2003-08-04 Andrew Cagney <cagney@redhat.com>
57
58 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
59
60 2003-08-02 Andrew Cagney <cagney@redhat.com>
61
62 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
63 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
64 amd64fbsd-nat.c.
65
66 2003-08-02 Andrew Cagney <cagney@redhat.com>
67
68 * Makefile.in: Update all dependencies and definitions.
69
70 2003-08-02 Adam Fedor <fedor@gnu.org>
71
72 * linespec.c (is_objc_method_format): New function
73 (decode_line_1, locate_first_half): Use it.
74 Fixes PR objc/1298
75
76 2003-08-01 Andrew Cagney <cagney@redhat.com>
77
78 * NEWS: Mention that m32r is multi-arch.
79 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
80 * configure.tgt: Recognize m32r-*-*.
81 * config/m32r/tm-m32r.h: Delete file.
82 * config/m32r/m32r.mt: New file.
83 * m32r-rom.c (m32r_upload_command): Use hostent only when
84 gethostname succeeds, in order to avoid a compilation
85 warning.
86 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
87 compiler warning.
88
89 2003-08-01 Michael Snyder <msnyder@redhat.com>
90
91 * sh-tdep.c (sh_frame_align): New gdbarch method.
92 (sh_gdbarch_init): Set up frame_align method.
93
94 2003-07-31 Michael Snyder <msnyder@redhat.com>
95
96 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
97 which is already covered by the new frames infrastructure.
98
99 2003-07-31 Andrew Cagney <cagney@redhat.com>
100
101 * user-regs.c (struct user_reg): Add "next" link.
102 (struct user_regs): Replace "user" with "first" and "last" links.
103 (append_user_reg): Add pre-allocated "reg" parameter.
104 (builtin_user_regs): Provide initial value for "last".
105 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
106 (user_regs_init): Allocate memory from the gdbarch obstack.
107 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
108 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
109 linked list.
110 (usernum_to_user_reg): New function.
111 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
112 (value_of_user_reg): Use usernum_to_user_reg.
113 (user_regs_free): Delete function.
114 (_initialize_user_regs): Update register_gdbarch_data call.
115
116 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
117
118 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
119
120 2003-07-30 Michael Snyder <msnyder@redhat.com>
121
122 * value.h (value_being_returned): Add a struct_addr argument.
123 * infcall.c (call_function_by_hand): Pass struct_addr to
124 value_being_returned.
125 * infcmd.c (print_return_value): Pass zero as struct_addr.
126 * values.c (value_being_returned): If struct_addr is passed,
127 use it instead of trying to recover it from the inferior.
128
129 2003-07-30 Kevin Buettner <kevinb@redhat.com>
130
131 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
132 the prologue analyzer won't need to attempt to extract the pc
133 value from the woefully incomplete dummy frame.
134 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
135 possible. Disable code which modifies the frame.
136
137 2003-07-28 Andrew Cagney <cagney@redhat.com>
138
139 * annotate.c (annotate_breakpoints_headers): Restrict annotation
140 to level 2.
141 (annotate_breakpoints_table, annotate_record): Ditto.
142 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
143 (annotate_field_name_end, annotate_field_value): Ditto.
144 (annotate_field_end, annotate_frame_source_begin): Ditto.
145 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
146 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
147 (annotate_frame_begin, annotate_frame_function_name): Ditto.
148 (annotate_frame_address_end, annotate_frame_address): Ditto.
149 (annotate_frame_args, annotate_frame_end): Ditto.
150 (annotate_frame_where, annotate_arg_begin): Ditto.
151 (annotate_arg_name_end, annotate_arg_value): Ditto.
152 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
153 (annotate_function_call, annotate_signal_name): Ditto.
154 (annotate_signal_string, annotate_signal_name_end): Ditto.
155 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
156 (annotate_value_begin, annotate_value_history_value): Ditto.
157 (annotate_value_history_end, annotate_value_end): Ditto.
158 (annotate_display_begin, annotate_display_number_end): Ditto.
159 (annotate_display_format, annotate_display_expression): Ditto.
160 (annotate_display_expression_end, annotate_display_value): Ditto.
161 (annotate_display_end, annotate_array_section_begin): Ditto.
162 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
163 (annotate_elt, annotate_array_section_end): Ditto.
164
165 2003-07-28 Andrew Cagney <cagney@redhat.com>
166
167 * regcache.c (struct regcache_descr): Update comments on
168 nr_raw_registers.
169 (init_legacy_regcache_descr): Don't set nr_raw_registers or
170 sizeof_raw_register_valid_p.
171 (init_regcache_descr): Set nr_raw_registers and
172 sizeof_raw_register_valid_p before calling
173 init_legacy_regcache_descr.
174
175 2003-07-28 Andrew Cagney <cagney@redhat.com>
176
177 * mips-tdep.c (print_gp_register_row): Print the GPR's register
178 MOD NUM_REGS.
179
180 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
181
182 * thread.c (info_threads_command): Use get_selected_frame ().
183 Check that there is at least one non-sentinel frame.
184
185 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
186
187 * m68hc11-tdep.c (struct frame_extra_info): Remove.
188 (m68hc11_pop_frame): Remove.
189 (m68hc11_frame_saved_pc): Remove.
190 (m68hc11_frame_chain): Remove.
191 (m68hc11_frame_init_saved_regs): Remove.
192 (m68hc11_init_extra_frame_info): Remove.
193 (m68hc11_store_struct_return): Remove.
194 (m68hc11_saved_pc_after_call): Remove.
195
196 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
197
198 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
199 frame unwind information.
200 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
201 and adapted for frame unwinding.
202 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
203 (m68hc11_unwind_pc): New function.
204 (m68hc11_frame_unwind_cache): New function to analyze frames.
205 (m68hc11_frame_this_id): New function to create new frame struct.
206 (m68hc11_frame_prev_register): New function to unwind a register from
207 the frame.
208 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
209 (m68hc11_frame_p): New function for the above.
210 (m68hc11_frame_base_address): New function to return fp of frame.
211 (m68hc11_frame_args_address): Update for frame.
212 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
213 (m68hc11_unwind_sp): New function.
214 (m68hc11_unwind_dummy_id): New function.
215 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
216 calls.
217
218 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
219
220 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
221 (m68hc11_guess_from_prologue): Advance the pc and frame size only
222 when we are beyond the current pc.
223
224 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
225
226 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
227 from m68hc11_push_arguments.
228 (m68hc11_push_arguments): Remove.
229 (m68hc11_push_return_address): Remove.
230 (m68hc11_gdbarch_init): Install the above; remove above deprecated
231 handlers; remove deprecated_extra_stack_alignment_needed.
232
233 2003-07-27 Andrew Cagney <cagney@redhat.com>
234
235 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
236 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
237 REAL_PC and not the pointer.
238 * hppa-hpux-tdep.c: Include frame.h
239
240 2003-07-27 Andrew Cagney <cagney@redhat.com>
241
242 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
243 GDB_MULTI_ACH_PARTIAL.
244
245 2003-07-27 Andrew Cagney <cagney@redhat.com>
246
247 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
248 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
249 operator at start and not end of line.
250 (decode_prologue): Ditto.
251 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
252 frame_unwind_register_unsigned instead of
253 frame_unwind_unsigned_register.
254 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
255 read_register.
256 (m32r_push_dummy_call): Use register_size instead of
257 REGISTER_RAW_SIZE.
258 (m32r_frame_sniffer): Replace m32r_frame_p.
259 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
260 * m32r-rom.c (report_transfer_performance): Delete extern
261 declaration.
262 (m32r_load, m32r_upload_command): Use print_transfer_performance
263 instead of report_transfer_performance.
264 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
265 / add_show_from_set.
266
267 2003-07-26 Andrew Cagney <cagney@redhat.com>
268
269 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
270 store_return_value and extract_struct_value_address.
271
272 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
273
274 PR c++/1267
275 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
276 NULL, default to the section containing PC.
277
278 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
279
280 * NEWS: Mention "regs" deprecated for m68hc11 too.
281
282 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
283 (m68hc11_print_register): New function to print out one register.
284 (m68hc11_print_registers_info): New function to print registers.
285 (show_regs): Deprecate and use the above.
286 (m68hc11_gdbarch_init): Install the print_registers_info.
287
288 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
289
290 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
291 that we have a SIGTRAP before returning non-zero.
292
293 2003-07-23 Michal Ludvig <mludvig@suse.cz>
294 Elena Zannoni <ezannoni@redhat.com>
295
296 * linespec.c (decode_line_2): Avoid crash if
297 find_function_start_sal() returns empty record.
298
299 2003-07-23 Andreas Schwab <schwab@suse.de>
300
301 * ia64-tdep.c (ia64_print_insn): New function.
302 (ia64_gdbarch_init): Set print_insn to it.
303 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
304 deprecated_tm_print_insn_info.
305
306 2003-07-22 Michael Snyder <msnyder@redhat.com>
307
308 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
309 handle 8-bit returns (long long).
310 (h8300h_extract_return_value): Ditto.
311 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
312
313 2003-07-22 Andrew Cagney <cagney@redhat.com>
314
315 * gdbarch.c Include "gdb_obstack.h".
316 (struct gdbarch): Add an "obstack".
317 (alloc_gdbarch_data): Allocate the gdbarch data using
318 GDBARCH_OBSTACK_CALLOC.
319 (free_gdbarch_data): Delete function.
320 (gdbarch_obstack_zalloc): New function.
321 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
322 Assert that the architecture is not initialized.
323 (gdbarch_alloc): Allocate an obstack, allocate the architecture
324 vector from the obstack.
325 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
326 architecture obstack.
327 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
328 (set_gdbarch_data): Assert that the data is not initialized.
329 (struct gdbarch_data): Delete member "free".
330 (register_gdbarch_data): Do not initialize "free".
331 * gdbarch.h, gdbarch.c: Re-generate.
332
333 2003-07-22 Andrew Cagney <cagney@redhat.com>
334
335 * configure.in (build_warnings): Add -Wformat-nonliteral.
336 * configure: Re-generate.
337
338 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
339
340 * dwarf2loc.c (locexpr_describe_location): Fix typos.
341
342 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
343
344 * findvar.c (read_var_value): Remove case for thread local storage
345 variables. It is now entirely handled by the dwarf2 location
346 expression code.
347 * printcmd.c (address_info): Ditto.
348 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
349 enumeration value.
350 (struct symbol): Remove objfile field, which was used by
351 LOC_THREAD_LOCAL_STATIC only.
352 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
353 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
354 usage of objfile pointer.
355 * dwarf2loc.c (locexpr_describe_location): Add case to handle
356 thread local variables.
357 Add include of objfiles.h.
358 * dwarf2expr.c (execute_stack_op): Add comments about thread local
359 storage variables.
360 * Makefile.in (dwarf2loc.o): Update dependencies.
361
362 2003-07-22 Andrew Cagney <cagney@redhat.com>
363
364 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
365 get_frame_base.
366 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
367 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
368 (struct value): Add opaque declaration.
369 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
370
371 2003-07-21 Andrew Cagney <cagney@redhat.com>
372
373 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
374 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
375
376 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
377
378 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
379 regcache_cooked_read_unsigned instead of read_register.
380 (m68hc11_saved_pc_after_call): Likewise.
381 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
382 instead of write_register.
383 (m68hc11_register_type): New function.
384 (m68hc11_register_virtual_type): Remove.
385 (m68hc11_store_return_value): Convert to use the regcache.
386 (m68hc11_extract_struct_value_address): Likewise.
387 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
388 m68hc11_register_type; undeprecate store_return_value and
389 extract_struct_value_address.
390
391 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
392
393 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
394 and translate to use regcache.
395 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
396
397 2003-07-18 Andrew Cagney <cagney@redhat.com>
398
399 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
400 * gdbarch.h, gdbarch.c: Re-generate.
401 * i386-tdep.c (i386_gdbarch_init): Do not set
402 DWARF2_BUILD_FRAME_INFO.
403 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
404 unconditionally.
405 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
406 DWARF2_BUILD_FRAME_INFO.
407
408 2003-07-18 Andrew Cagney <cagney@redhat.com>
409
410 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
411 * disasm.c (gdb_disassemble_info): Initilize di.arch.
412
413 2003-07-18 Andrew Cagney <cagney@redhat.com>
414
415 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
416 frame_unwind_address_in_block, instead of frame_pc_unwind.
417 (dwarf2_frame_cache): Ditto.
418
419 2003-07-18 Andrew Cagney <cagney@redhat.com>
420
421 * user-regs.h (struct gdbarch): Declare opaque.
422 * ui-out.h (struct ui_file): Declare opaque.
423 * dwarf2-frame.h (struct frame_info): Declare opaque.
424
425 2003-07-18 Kris Warkentin <kewarken@qnx.com>
426
427 * nto-procfs.c: Clean ARI hits. Change #include <..> to
428 #include "...".
429 (procfs_meminfo): Change strerror to safe_strerror.
430 (procfs_can_run): Remove K&R badness.
431
432 2003-07-17 Michael Snyder <msnyder@redhat.com>
433
434 * remote-sim.c: Comment typo fix.
435
436 2003-07-17 Andrew Cagney <cagney@redhat.com>
437
438 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
439 configure.
440 * sparc-tdep.c (sparc_intreg_size): Make non-static.
441 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
442 GDB_MULTI_ARCH_PARTIAL.
443
444 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
445
446 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
447 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
448 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
449
450 2003-07-16 Theodore A. Roth <troth@openavr.org>
451
452 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
453 found.
454 (avr_frame_unwind_cache): Don't unwind FP for main.
455 Update a comment.
456 Save the computed prev_sp.
457 (avr_saved_regs_unwinder): Remove function.
458 (avr_frame_prev_register): Use PC unwind logic from
459 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
460
461 2003-07-16 Andrew Cagney <cagney@redhat.com>
462
463 * frame-base.h (frame_base_p_ftype): Delete definition.
464 (frame_base_append_predicate): Delete declaration.
465 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
466 (frame_unwind_append_predicate): Delete declaration.
467 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
468 (append_predicate): Delete parameter "p".
469 (frame_unwind_append_predicate): Delete function.
470 (frame_unwind_append_sniffer): Update call to append_predicate.
471 (frame_unwind_free): Delete function.
472 (_initialize_frame_unwind): Pass NULL as "free" to
473 register_gdbarch_data.
474 (frame_unwind_init): Append the dummy_frame_sniffer.
475 (frame_unwind_find_by_frame): Simplify.
476 * frame-base.c (struct frame_base_table): Delete field "p".
477 (append_predicate): Delete parameter "p".
478 (frame_base_append_predicate): Delete function.
479 (frame_base_append_sniffer): Update call to append_predicate.
480 (frame_base_free): Delete function.
481 (frame_base_find_by_frame): Simplify.
482 (_initialize_frame_base): Pass NULL as "free" to
483 register_gdbarch_data.
484 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
485 (x86_64_sigtramp_frame_sniffer): Replace
486 "x86_64_sigtramp_frame_p".
487 (x86_64_init_abi): Set the frame unwind sniffers.
488 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
489 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
490 (m68k_gdbarch_init): Set the frame unwind sniffers.
491 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
492 "i386_sigtramp_frame_p".
493 (i386_frame_sniffer): Replace "i386_frame_p".
494 (i386_gdbarch_init): Set the frame unwind sniffers.
495 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
496 (avr_gdbarch_init): Set the frame unwind sniffers.
497 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
498 "alpha_sigtramp_frame_p"
499 (alpha_heuristic_frame_sniffer): Replace
500 "alpha_heuristic_frame_p".
501 (alpha_gdbarch_init): Set the frame unwind sniffers.
502 (alpha_dwarf2_init_abi): Ditto.
503 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
504 "alpha_debug_frame_p".
505 (alpha_mdebug_frame_base_sniffer): Replace
506 "alpha_mdebug_frame_base_p".
507 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
508 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
509 (d10v_gdbarch_init): Set the frame unwind sniffer.
510 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
511 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
512 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
513 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
514 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
515 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
516
517 2003-07-16 Michael Snyder <msnyder@redhat.com>
518
519 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
520 should go thru sh_dsp_register_sim_regno, else the dsp regs
521 will not get the right values.
522
523 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
524
525 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
526 deprecated_store_floating by call to store_typed_floating.
527 (sh_sh4_register_convert_to_raw): Substitute call to
528 deprecated_extract_floating by call to extract_typed_floating.
529
530 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
531
532 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
533
534 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
535
536 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
537 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
538 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
539 as possible.
540 (do_pseudo_register): Remove.
541 (sh_push_dummy_code): New function.
542 (sh64_store_struct_return): Rename from sh_store_struct_return.
543 Only called for sh64 now.
544 (sh_extract_struct_value_address): Regcache'ify.
545 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
546 and accomodate new tasks.
547 (sh64_push_return_address): Rename from sh_push_return_address.
548 Only called for sh64 now.
549 (sh_default_extract_return_value): Rename from sh_extract_return_value.
550 Regcache'ify.
551 (sh3e_sh4_extract_return_value): Regcache'ify.
552 (sh_default_store_return_value): Ditto.
553 (sh3e_sh4_store_return_value): Ditto.
554 (sh_default_register_byte): Remove.
555 (sh_sh4_register_byte): Remove.
556 (sh_default_register_raw_size): Remove.
557 (sh_sh4_register_raw_size): Remove.
558 (sh_register_virtual_size): Remove.
559 (sh_sh3e_register_virtual_type): Remove.
560 (sh_sh3e_register_type): New function.
561 (sh_sh4_register_virtual_type): Remove.
562 (sh_sh4_register_type): New function.
563 (sh_default_register_virtual_type): Remove.
564 (sh_default_register_type): New function.
565 (do_fv_register_info): Add parameters to accomodate call from
566 sh_print_registers_info.
567 (do_dr_register_info): Ditto.
568 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
569 Add parameters to accomodate call from sh_print_registers_info.
570 (sh_do_fp_register): Ditto.
571 (sh64_do_pseudo_register): Call do_dr_register_info,
572 do_fv_register_info and sh_do_fp_register with default parameters.
573 (sh_do_register): Add parameters to accomodate call from
574 sh_print_registers_info.
575 (sh_print_register): Ditto.
576 (sh_print_registers_info): Rename from sh_do_registers_info.
577 Add parameters to be used as gdbarch_print_registers_info
578 implementation. Accomodate removed do_pseudo_register function
579 pointer.
580 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
581 function pointer. Call sh_print_register with default parameters.
582 (sh64_do_registers_info): Call sh_print_registers_info instead of
583 sh_do_registers_info.
584 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
585 detection of deprecated vs. non-deprecated functionality.
586 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
587 function pointer assignments by direct function calls.
588
589 2003-07-15 Andrew Cagney <cagney@redhat.com>
590
591 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
592 (frame_register_unwind, create_new_frame): Ditto.
593 (legacy_get_prev_frame, get_frame_type): Ditto.
594 (get_frame_base_address): Use frame_base_find_by_frame.
595 (get_frame_locals_address): Use frame_base_find_by_frame.
596 (get_frame_args_address): Use frame_base_find_by_frame.
597 * frame-base.h (frame_base_sniffer_ftype): Declare.
598 (frame_base_append_sniffer): Declare.
599 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
600 * frame-base.c (append_predicate): Add a "sniffer" parameter.
601 (frame_base_append_sniffer): New function.
602 (frame_base_append_predicate): Add a NULL sniffer.
603 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
604 (struct frame_base_table): Add "sniffer".
605 (frame_base_free): Free the "sniffer" table.
606 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
607 (frame_unwind_append_sniffer): Declare.
608 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
609 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
610 (struct frame_unwind_table): Add "sniffer", delete "middle".
611 (append_predicate): Add "sniffer" parameter, append the sniffer.
612 (frame_unwind_init): Update append_predicate call.
613 (frame_unwind_append_sniffer): New function.
614 (frame_unwind_append_predicate): Update append_predicate call.
615 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
616
617 2003-07-15 Andrew Cagney <cagney@redhat.com>
618
619 * frame.c (get_prev_frame): Move disabled inside_entry_func to
620 before code inhibiting repeated unwind attempts. Add to
621 commentary on that test's problems.
622 * blockframe.c (inside_main_func): Look for "main" in the minimal
623 symbol table.
624 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
625 identical.
626
627 2003-07-15 Andrew Cagney <cagney@redhat.com>
628
629 * complaints.c (struct explanation): Define.
630 (struct complaints): Change type of "explanation" to "struct
631 explanation".
632 (symfile_explanations): Convert to a "struct explanation" table.
633 (vcomplaint): Update.
634
635 2003-07-15 Michal Ludvig <mludvig@suse.cz>
636
637 * x86-64-linux-nat.c (regmap): Removed.
638 (supply_gregset, fill_gregset): Call
639 x86_64_linux_(fill,supply)_gregset functions.
640 * x86-64-linux-tdep.c (USER_*): New defines.
641 (user_to_gdb_regmap, x86_64_core_fns): New structure.
642 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
643 New functions.
644 (fetch_core_registers): Ditto.
645 (_initialize_x86_64_linux_tdep): Call add_core_fns().
646 * x86-64-linux-tdep.h: New file.
647 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
648 and core-regset.o.
649 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
650
651 2003-07-13 Mark Kettenis <kettenis@gnu.org>
652
653 * x86-64-tdep.c (x86_64_store_return_value): Use
654 regcache_cooked_write_part instead of regcache_cooked_write.
655
656 * configure.host: Add x86_64-*-freebsd*.
657 * configure.tgt: Add x86_64-*-freebsd*.
658 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
659 * amd64fbsd-nat.c: New file.
660 * amd64fbsd-tdep.c: New file.
661 * config/i386/nm-fbsd64.h: New file.
662 * config/i386/fbsd64.mh: New file.
663 * config/i386/fbsd64.mt: New file.
664
665 2003-07-11 Mark Kettenis <kettenis@gnu.org>
666
667 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
668 `sc_regs_offset' and `sc_fpregs_offset'.
669 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
670 SIGFRAME_FPREGSAVE_OFF): Remove defines.
671 (alpha_sigtramp_register_address): Rewrite to use new members of
672 `struct gdbarch_tdep'.
673 (alpha_gdbarch_init): Initialize new members of struct
674 gdbarch_tdep'.
675 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
676 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
677 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
678 (alphafbsd_pc_in_sigtramp): Implement.
679 (alphafbsd_sigtramp_offset): New function.
680 (alphafbsd_sigcontext_addr): New function.
681 (alphafbsd_init_abi): Initialize signal trampoline related members
682 of `struct gdbarch_tdep'.
683 (_initialize_alphafbsd_tdep): Add prototype.
684
685 2003-07-11 Theodore A. Roth <troth@openavr.org>
686
687 * Makefile.in (install-only): Quote sed expression when generating
688 transformed_name.
689
690 2003-07-11 Richard Henderson <rth@redhat.com>
691
692 * Makefile.in (dwarf2-frame.o): Add complaints_h.
693 * dwarf2-frame.c: Include complaints.h.
694 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
695 variable initialization; return NULL on error.
696 (decode_frame_entry): New.
697
698 2003-07-11 Andrew Cagney <cagney@redhat.com>
699
700 * frame.h (frame_address_in_block): Delete declaration.
701 * blockframe.c (frame_address_in_block): Delete function.
702 (get_frame_block): Use get_frame_address_in_block.
703 (block_innermost_frame): Ditto.
704 * stack.c (print_frame, backtrace_command_1): Ditto.
705
706 * frame.h (get_frame_address_in_block): Declare.
707 (frame_unwind_address_in_block): Declare.
708 * frame.c (frame_unwind_address_in_block): New function.
709 (get_frame_address_in_block): New function.
710
711 2003-07-10 Andrew Cagney <cagney@redhat.com>
712
713 * gdbarch.sh: Simplify predicate methods. Remove need to provide
714 pre-default. Note: re-generate has no effect.
715
716 2003-07-10 Andrew Cagney <cagney@redhat.com>
717
718 * gdbarch.sh: When a variable, but not a function, compare against
719 0. Fix problem in previous patch.
720 * gdbarch.c: Re-generate.
721
722 2003-07-10 Andrew Cagney <cagney@redhat.com>
723
724 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
725 functions against NULL, not 0.
726 * gdbarch.c: Re-generate.
727
728 2003-07-10 Fred Fish <fnf@ninemoons.com>
729
730 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
731 null string instead of a null pointer.
732 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
733
734 2003-07-09 Michael Snyder <msnyder@redhat.com>
735
736 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
737
738 2003-07-09 Mark Kettenis <kettenis@gnu.org>
739
740 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
741 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
742 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
743 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
744 * x86-64-tdep.c: ... from here.
745
746 2003-07-09 Andreas Schwab <schwab@suse.de>
747
748 * m68k-tdep.h (enum struct_return): Define.
749 (struct gdbarch_tdep): Add struct_return.
750 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
751 bytes are padded to the right, not to the left. Pass struct value
752 address in register %a1, not on stack.
753 (m68k_use_struct_convention): New function.
754 (m68k_gdbarch_init): Set use_struct_convention. Initialize
755 struct_return in tdep to pcc_struct_return.
756 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
757 reg_struct_return.
758
759 2003-07-09 Joel Brobecker <brobecker@gnat.com>
760
761 * somread.c (som_symfile_offsets): Fix compilation error.
762
763 2003-07-09 Andrew Cagney <cagney@redhat.com>
764
765 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
766 Add comments about the checks.
767
768 2003-07-08 Andrew Cagney <cagney@redhat.com>
769
770 * Makefile.in: Make dependency section headers consistent.
771 (config_h): Move to $BUILD headers section.
772 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
773 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
774 (ada-exp.tab.c): Move to YACC/LEX section.
775 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
776 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
777
778 2003-07-08 Kris Warkentin <kewarken@qnx.com>
779
780 * nto-procfs.c: Cleaned up a bunch of ARI hits.
781 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
782 of strerror with safe_strerror, use ISO C function definitions,
783 and replace instances of sprintf with snprintf.
784
785 2003-07-07 Andrew Cagney <cagney@redhat.com>
786
787 * frame.c (get_prev_frame): Enable check for identical frames.
788 Update comments. Update error messages.
789
790 2003-07-07 Joel Brobecker <brobecker@gnat.com>
791
792 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
793
794 2003-07-07 Joel Brobecker <brobecker@gnat.com>
795
796 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
797 sort_symtab_syms, no longer necessary.
798
799 2003-07-07 Joel Brobecker <brobecker@gnat.com>
800
801 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
802
803 2003-07-07 Joel Brobecker <brobecker@gnat.com>
804
805 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
806 (mips_register_byte): Likewise.
807
808 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
809
810 * Makefile.in (sparc_tdep_h): New.
811 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
812 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
813 * sparc-linux-nat.c: Include "sparc-tdep.h".
814 * sparc-nat.c: Likewise.
815 * sparc-tdep.c: Likewise.
816 * sparc64nbsd-nat.c: Likewise.
817 * sparcnbsd-nat.c: Likewise.
818 * sparcnbsd-tdep.c: Likewise.
819 * sparc-tdep.h: New file.
820 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
821 and sparc_npc_regnum.
822
823 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
824
825 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
826 (mips_linux_cannot_store_register): List supported instead of
827 unsupported registers.
828
829 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
830
831 * disasm.c (dump_insns): Separate instructions from addresses.
832
833 2003-07-07 Andreas Schwab <schwab@suse.de>
834
835 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
836 dependencies.
837 * m68k-tdep.c (NUM_FREGS): Delete.
838 (SIG_PC_FP_OFFSET): Delete.
839 (TARGET_M68K): Delete.
840 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
841 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
842 P_MOVEL_SP, P_MOVEML_SP): Define.
843 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
844 P_TRAP): Delete.
845 (m68k_register_raw_size): Delete.
846 (m68k_register_virtual_size): Delete.
847 (m68k_register_type): Renamed from m68k_register_virtual_type and
848 add gdbarch argument.
849 (m68k_store_struct_return): Delete.
850 (m68k_deprecated_extract_return_value): Delete.
851 (m68k_deprecated_extract_struct_value_address): Delete.
852 (m68k_frame_chain): Delete.
853 (m68k_frame_saved_pc): Delete.
854 (m68k_fix_call_dummy): Delete.
855 (m68k_push_dummy_frame): Delete.
856 (m68k_pop_frame): Delete.
857 (m68k_extract_return_value): New function.
858 (m68k_store_return_value): Rewrite using regcache.
859 (m68k_extract_struct_value_address): Rewrite using regcache.
860 (m68k_push_dummy_call): New function.
861 (struct m68k_frame_cache): Define.
862 (m68k_alloc_frame_cache): New function.
863 (m68k_analyze_frame_setup): New function.
864 (m68k_analyze_register_saves): New function.
865 (m68k_analyze_prologue): New function.
866 (m68k_skip_prologue): Rewrite using above functions.
867 (m68k_unwind_pc): New function.
868 (m68k_frame_cache): New function.
869 (m68k_frame_this_id): New function.
870 (m68k_frame_prev_register): New function.
871 (m68k_frame_unwind): New variable.
872 (m68k_frame_p): New function.
873 (m68k_sigtramp_frame_cache): New function.
874 (m68k_sigtramp_frame_this_id): New function.
875 (m68k_sigtramp_frame_prev_register): New function.
876 (m68k_sigtramp_frame_unwind): New variable.
877 (m68k_sigtramp_frame_p): New function.
878 (m68k_frame_base_address): New function.
879 (m68k_frame_base): New function.
880 (m68k_unwind_dummy_id): New function.
881 (fill_gregset): Use regcache_collect.
882 (fill_fpregset): Likewise.
883 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
884 defined.
885 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
886 deprecated_init_frame_pc, deprecated_store_struct_return,
887 deprecated_extract_return_value, deprecated_store_return_value,
888 deprecated_frame_chain, deprecated_frame_saved_pc,
889 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
890 deprecated_register_virtual_size,
891 deprecated_max_register_raw_size,
892 deprecated_max_register_virtual_size,
893 deprecated_register_virtual_type, deprecated_register_size,
894 deprecated_register_byte, deprecated_register_bytes,
895 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
896 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
897 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
898 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
899 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
900 deprecated_push_dummy_frame, deprecated_pop_frame,
901 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
902 only if SYSCALL_TRAP is defined. Set extract_return_value,
903 store_return_value, extract_struct_value_address, register_type,
904 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
905 predicates.
906 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
907 M68K_MAX_REGISTER_SIZE): Define.
908 (struct m68k_sigtramp_info): Define.
909 (struct gdbarch_tdep): Add get_sigtramp_info.
910 * m68klinux-nat.c (fetch_register): Use register_size instead of
911 REGISTER_RAW_SIZE. Don't put assignment in if.
912 (store_register): Likewise.
913 (fetch_inferior_registers): Likewise.
914 (store_inferior_registers): Likewise.
915 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
916 (m68k_linux_frame_saved_pc): Delete.
917 (m68k_linux_sigcontext_reg_offset,
918 m68k_linux_ucontext_reg_offset): Define.
919 (m68k_linux_get_sigtramp_info): New function.
920 (m68k_linux_extract_return_value): Rewrite using regcache.
921 (m68k_linux_store_return_value): Likewise.
922 (m68k_linux_extract_struct_value_address): Likewise.
923 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
924 Don't set deprecated_frame_saved_pc,
925 deprecated_extract_return_value, deprecated_store_return_value,
926 deprecated_extract_struct_value_address. Set
927 extract_return_value, store_return_value,
928 extract_struct_value_address.
929
930 2003-07-07 Andrew Cagney <cagney@redhat.com>
931
932 * expprint.c: Include "user-regs.h" instead of "frame.h".
933 (print_subexp): Use user_reg_map_regnum_to_name, instead of
934 frame_map_regnum_to_name.
935 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
936 (frame_map_name_to_regnum): Simplify, call
937 user_reg_map_name_to_regnum.
938 (frame_map_regnum_to_name): Simplify, call
939 user_reg_map_regnum_to_name.
940 (frame_register_unwind): Update.
941 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
942 (_initialize_frame_reg): Call user_reg_add_builtin.
943 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
944 (value_of_register): Use value_of_user_reg.
945 * eval.c (evaluate_subexp_standard): Update.
946 * parse.c (write_dollar_variable): Update.
947 * d10v-tdep.c (d10v_print_registers_info): Update.
948 * infcmd.c (registers_info): Update.
949 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
950 (builtin_regs_h): Delete macro.
951 (user_regs_h): Define.
952 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
953 (builtin-regs.o): Delete target.
954 (user-regs.o): Specify dependencies.
955 (expprint.o): Update dependencies.
956 (findvar.o): Update dependencies.
957 (frame.o): Update dependencies.
958 (std-regs.o): Update dependencies.
959
960 2003-07-06 Christopher Faylor <cgf@redhat.com>
961
962 * win32-nat.c (solib_symbols_add): Use one variable for all section
963 address stuff. Pass variable rather than address of variable to
964 safe_symbol_file_add.
965
966 2003-07-06 Andreas Schwab <schwab@suse.de>
967
968 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
969
970 2003-07-04 Joel Brobecker <brobecker@gnat.com>
971
972 * rs6000-nat.c (vmap_symtab): Fix compilation error.
973
974 2003-07-04 Kris Warkentin <kewarken@qnx.com>
975
976 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
977
978 2003-07-04 Kris Warkentin <kewarken@qnx.com>
979
980 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
981 * config/i386/nto.mh: New file.
982 * config/i386/nm-nto.h: New file.
983 * configure.host: Add i[3456]86-*-nto*.
984
985 2003-07-03 Joel Brobecker <brobecker@gnat.com>
986
987 * remote-vx.c (vx_add_symbols): Fix compilation error.
988
989 2003-07-03 Andrew Cagney <cagney@redhat.com>
990
991 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
992 * gdbarch.h, gdbarch.c: Re-generate.
993 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
994 (legacy_register_name): Declare.
995 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
996 (REGISTER_NAME): Define.
997 * sparc-tdep.c (legacy_register_name): New function.
998 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
999 (REGISTER_NAME): Define.
1000 (hppa64_register_name): Declare.
1001 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1002 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1003 (hppa64_register_name): New function.
1004 (hppa_register_name): New function.
1005 * arch-utils.c (legacy_register_name): Delete.
1006 * arch-utils.h (legacy_register_name): Delete.
1007
1008 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1009
1010 * cli/cli-interp.c (cli_interpreter_resume): Update the
1011 cli_uiout's stream to gdb_stdout.
1012
1013 2003-07-03 Andrew Cagney <cagney@redhat.com>
1014
1015 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1016 predicate.
1017 * gdbarch.h, gdbarch.c: Re-generate.
1018 * regcache.c (init_regcache_descr): Use legacy code when either
1019 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1020
1021 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1022
1023 * NEWS: Move "set logging" entry into GDB 6.0 section.
1024
1025 2003-07-02 Jim Blandy <jimb@redhat.com>
1026
1027 * s390-tdep.c (struct frame_extra_info): new member:
1028 'stack_bought_valid'.
1029 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1030 initialize fextra_info->stack_bought.
1031 (s390_frameless_function_invocation): Don't trust the value of
1032 fextra_info_ptr->stack_bought unless
1033 fextra_info->stack_bought_valid is set.
1034
1035 New S390 prologue analyzer.
1036 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1037 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1038 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1039 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1040 compute_x_addr, s390_on_stack, s390_store,
1041 s390_get_signal_frame_info): New functions.
1042 (S390_NUM_SPILL_SLOTS): New macro.
1043 (s390_get_frame_info): Rewritten.
1044 (is_arg_reg): Deleted.
1045
1046 Break out the decoding of S/390 instructions into separate
1047 functions, to make it more legible, and easier to check
1048 against the spec.
1049 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1050 is_rx, is_rxe): New functions.
1051 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1052 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1053 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1054 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1055 enums for opcode values. (Is this an improvement?)
1056
1057 2003-07-02 Andrew Cagney <cagney@redhat.com>
1058
1059 * i386-tdep.c: Revert change committed as part of trad-frame code
1060 below.
1061
1062 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1063
1064 * breakpoint.c (insert_catchpoint): Make static.
1065
1066 2003-07-02 Andreas Schwab <schwab@suse.de>
1067
1068 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1069 former ia64_push_arguments and ia64_push_return_address, and use
1070 regcache functions instead of read/write_register.
1071 (ia64_gdbarch_init): Set push_dummy_call instead of
1072 deprecated_push_arguments and deprecated_push_return_address.
1073
1074 2003-07-01 Andreas Jaeger <aj@suse.de>
1075
1076 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1077 before the call.
1078 Set %rax only to number of SSE registers used.
1079
1080 2003-07-01 Andrew Cagney <cagney@redhat.com>
1081
1082 * trad-frame.h: Update comments, a -1 .addr is reserved.
1083 (trad_frame_value_p, trad_frame_addr_p): Declare.
1084 (trad_frame_reg_p): Declare.
1085 (trad_frame_set_value): Rename trad_frame_register_value.
1086 (trad_frame_set_unknown): Declare.
1087 * trad-frame.c (trad_frame_realreg_p): New function.
1088 (trad_frame_addr_p, trad_frame_value_p): New function.
1089 (trad_frame_set_unknown): New function.
1090 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1091 (trad_frame_prev_register): Use trad_frame_realreg_p,
1092 trad_frame_addr_p and trad_frame_value_p.
1093 (trad_frame_set_value): Rename trad_frame_register_value.
1094 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1095 and trad_frame_set_value.
1096
1097 2003-06-30 Jim Blandy <jimb@redhat.com>
1098
1099 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1100 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1101 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1102 for 16 registers, and then 32 more bytes.
1103 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1104 New macros.
1105 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1106 Move up in the file, since it's now used by is_simple_arg.
1107 (is_simple_arg): Don't assume registers are four bytes long.
1108 Exclude all double arguments. Extended floats are not simple
1109 args.
1110 (is_power_of_two): New function.
1111 (pass_by_copy_ref): Call is_power_of_two, and check that the
1112 length fits in a register, rather than listing all the acceptable
1113 sizes. Extended floats are not passed by reference.
1114 (s390_push_arguments): Don't assume registers are four bytes long.
1115 Reserve an argument register to point to the buffer for structures
1116 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1117 S390_STACK_FRAME_OVERHEAD.
1118
1119 2003-06-30 Andreas Schwab <schwab@suse.de>
1120
1121 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1122 format error message.
1123
1124 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1125
1126 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1127
1128 2003-06-30 David Carlton <carlton@kealia.com>
1129
1130 Band-aid for PR c++/1245.
1131 * Makefile.in (cp-support.o): Depend on complaints_h.
1132 * cp-support.c: Include complaints.h. Add declaration for
1133 find_last_component.
1134 (cp_find_first_component): Separate code into
1135 cp_find_first_component_aux.
1136 (cp_find_first_component_aux): Call demangled_name_complaint.
1137 (demangled_name_complaint): New.
1138
1139 2003-06-30 Andrew Cagney <cagney@redhat.com>
1140
1141 * remote.c (remote_write_bytes): Explicitly compute and then use
1142 the payload size. Update comments to reflect. Fixes problem of
1143 GDB not sending small packets as found by Fred Fish.
1144
1145 2003-06-30 Andrew Cagney <cagney@redhat.com>
1146
1147 * remote.c (remote_async_wait): Fix -Wformat problem.
1148
1149 2003-06-29 Andrew Cagney <cagney@redhat.com>
1150
1151 * remote.c (remote_wait): Call error, and not warning, when the
1152 packet is corrupt.
1153 (remote_async_wait): Ditto.
1154
1155 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1156
1157 * sparc-tdep.c (sparc_y_regnum): Make external again.
1158
1159 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1160
1161 * cli/cli-logging.c (pop_output_files): Add void to function
1162 definition.
1163
1164 2003-06-29 Andrew Cagney <cagney@redhat.com>
1165
1166 * frame.c (frame_register_unwind): Use unsigned char when dumping
1167 the buffer contents.
1168
1169 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1170
1171 * cli/cli-logging.c: New file.
1172 * cli-out.c (struct ui_out_data): Add original_stream.
1173 (cli_redirect): New function.
1174 (cli_ui_out_impl): Add cli_redirect.
1175 (cli_out_new): Initialize original_stream.
1176 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1177 (uo_redirect, ui_out_redirect): New.
1178 * ui-out.h (struct ui_out_impl): Add redirect member.
1179 (redirect_ftype): New.
1180 (ui_out_redirect): Add prototype.
1181 * Makefile.in: Add rules for cli-logging.c.
1182 * NEWS: Mention "set logging".
1183
1184 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1185
1186 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1187
1188 2003-06-27 Andrew Cagney <cagney@redhat.com>
1189
1190 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1191 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1192 * avr-tdep.c (avr_call_dummy_address): Delete function.
1193 (avr_gdbarch_init): Do not set call_dummy_address.
1194
1195 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1196
1197 * symfile.c (syms_from_objfile): Move variables to inner block.
1198 Move the checks for the non-mainline case a bit earlier to avoid
1199 doing some useless computations.
1200
1201 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1202
1203 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1204
1205 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1206
1207 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1208 sections.
1209
1210 2003-06-26 Michael Chastain <mec@shout.net>
1211
1212 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1213 gdb/testsuite/gdb.c++/pr-1210.exp.
1214
1215 2003-06-26 Andrew Cagney <cagney@redhat.com>
1216
1217 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1218 altivec_expression.h and altivec_registers.h.
1219
1220 2003-06-26 Andrew Cagney <cagney@redhat.com>
1221
1222 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1223 info->mach when MIPS16. Patch suggested by Fred Fish.
1224
1225 2003-06-26 Andrew Cagney <cagney@redhat.com>
1226
1227 * utils.c (internal_vproblem): Print the problem to a reason
1228 buffer and then pass to query. Make the msg variable more local.
1229
1230 2003-06-26 Andrew Cagney <cagney@redhat.com>
1231
1232 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1233 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1234 * gdbarch.h, gdbarch.c: Re-generate.
1235 * frame-base.c (default_frame_args_address): Update. Use
1236 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1237 not available.
1238 (default_frame_locals_address): Ditto for
1239 DEPRECATED_FRAME_LOCALS_ADDRESS.
1240 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1241 (vax_frame_num_args): Update.
1242 (vax_gdbarch_init): Update.
1243 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1244 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1245 * mcore-tdep.c (mcore_gdbarch_init): Update.
1246 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1247 * ia64-tdep.c (ia64_gdbarch_init): Update.
1248 * symtab.h (address_class): Update comments.
1249 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1250 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1251 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1252 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1253 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1254 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1255 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1256 * alpha-mdebug-tdep.c: Update.
1257 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1258
1259 2003-06-26 Andreas Jaeger <aj@suse.de>
1260
1261 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1262 of SSE registers so that varargs functions work. Rework handling
1263 of passing arguments on the stack.
1264 (x86_64_store_return_value): Return double and float values in SSE
1265 register.
1266
1267 2003-06-24 Michael Chastain <mec@shout.net>
1268
1269 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1270 the "constructor breakpoints ignored" bug.
1271
1272 2003-06-25 David Carlton <carlton@kealia.com>
1273
1274 * MAINTAINERS: Update e-mail address.
1275
1276 2003-06-24 Jim Blandy <jimb@redhat.com>
1277
1278 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1279
1280 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1281 function.
1282 (ppc_linux_init_abi): Register it as the
1283 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1284
1285 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1286 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1287 method.
1288
1289 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1290 (ppc64_standard_linkage_target): Use it.
1291
1292 2003-06-23 Andrew Cagney <cagney@redhat.com>
1293
1294 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1295 for 0 "int0" and 4 "int32" sized registers.
1296 * gdbtypes.c (builtin_type_int0): Define.
1297 (build_gdbtypes): Initialize builtin_type_int0.
1298 * gdbtypes.h (builtin_type_int0): Declare.
1299
1300 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1301
1302 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1303 as characters are unsigned.
1304
1305 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1306
1307 PR gdb/1179
1308 * dwarfread.c (struct_type): Skip static fields without crashing.
1309
1310 2003-06-22 Andrew Cagney <cagney@redhat.com>
1311
1312 GDB 6.0 branch created.
1313 * README: Update.
1314 * PROBLEMS: Update. Empty.
1315 * NEWS: Update.
1316
1317 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1318
1319 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1320 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1321
1322 2003-06-22 Andrew Cagney <cagney@redhat.com>
1323
1324 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1325 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1326 Velikov.
1327
1328 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1329
1330 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1331 compilers.
1332
1333 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1334
1335 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1336 argument of val_print.
1337 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1338 to the address argument of baseclass_offset or target_read_memory.
1339 Do add it to the argument of cp_print_value_fields.
1340
1341 2003-06-21 Andrew Cagney <cagney@redhat.com>
1342
1343 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1344 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1345 instead of 0..NUM_REGS.
1346 (mips_register_reggroup_p): New function.
1347 (mips_pseudo_register_write): New function.
1348 (mips_pseudo_register_read): New function.
1349 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1350 based on the register's type.
1351 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1352 cooked.
1353 (mips_get_saved_register): Simplify. Assert that REGNO is a
1354 pseudo / cooked.
1355 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1356 (mips_register_type): Replace mips_register_virtual_type. Map
1357 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1358 when available.
1359 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1360 that the register is cooked / virtual.
1361 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1362 Only get the extra info when needed.
1363 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1364 (mips32_heuristic_proc_desc): Fetch the cooked register.
1365 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1366 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1367 (mips_print_register): Use gdbarch_register_type, instead of
1368 REGISTER_VIRTUAL_TYPE.
1369 (print_gp_register_row): Use gdbarch_register_type, instead of
1370 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1371 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1372 Print the pseudo / cooked registers.
1373 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1374 Print the pseudo / cooked registers.
1375 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1376 REG_NUM is pseudo / cooked.
1377 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1378 (mips_n32n64_xfer_return_value): Ditto.
1379 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1380 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1381 (mips_register_sim_regno): New function.
1382 (mips_gdbarch_init): Set deprecated_register_byte,
1383 register_group_p, pseudo_register_write, pseudo_register_read,
1384 register_sim_regno, and num_pseudo_regs. Set register_type,
1385 instead of register_virtual_type.
1386 * Makefile.in (mips-tdep.o): Update dependencies.
1387 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1388 REGISTER_VIRTUAL_TYPE.
1389 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1390 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1391 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1392 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1393 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1394
1395 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1396
1397 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1398 * cli/cli-cmds.c: Include "gdb_vfork.h".
1399 (shell_escape): Use vfork.
1400
1401 2003-06-21 Andrew Cagney <cagney@redhat.com>
1402
1403 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1404 32 bit floating-point register saves.
1405
1406 * frame.h (deprecated_unwind_get_saved_register): Delete.
1407 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1408 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1409 and deprecated_get_next_frame_hack instead of
1410 deprecated_unwind_get_saved_register.
1411
1412 * mips-tdep.c (mips_dump_tdep): Do not print
1413 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1414
1415 * frame.c (get_frame_register): New function.
1416 (frame_unwind_register_signed): New function.
1417 (get_frame_register_signed): New function.
1418 (frame_unwind_register_unsigned): New function.
1419 (get_frame_register_unsigned): New function.
1420 * frame.h: Add comments on naming schema.
1421 (get_frame_register, frame_unwind_register_signed): Declare.
1422 (get_frame_register_signed, get_frame_register_signed): Declare.
1423 (frame_unwind_register_unsigned): Declare.
1424 (get_frame_register_unsigned): Declare.
1425
1426 2003-06-20 Theodore A. Roth <troth@openavr.org>
1427
1428 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1429
1430 2003-06-20 Theodore A. Roth <troth@openavr.org>
1431
1432 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1433 (avr_read_sp): Ditto.
1434
1435 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
1436
1437 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1438 * config/arm/nm-linux.h: Likewise.
1439 * config/arm/tm-linux.h: Likewise.
1440 * config/ia64/nm-linux.h: Likewise.
1441 * config/ia64/tm-ia64.h: Likewise.
1442 * config/s390/tm-linux.h: Likewise.
1443 * config/s390/tm-s390.h: Likewise.
1444 * s390-nat.c: Likewise.
1445 * s390-tdep.c: Likewise.
1446
1447 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1448 * config/ia64/linux.mt: Likewise.
1449 * config/m68k/linux.mh: Likewise.
1450 * config/mips/linux.mt: Likewise.
1451 * config/powerpc/linux.mh: Likewise.
1452 * config/sh/linux.mt: Likewise.
1453
1454 2003-06-19 Kris Warkentin <kewarken@qnx.com>
1455
1456 * solib.c (solib_open): Change tests for whether to search
1457 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1458 comments.
1459
1460 2003-06-19 Theodore A. Roth <troth@openavr.org>
1461
1462 * avr-tdep.c (avr_frame_address): Delete function.
1463 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1464 set_gdbarch_frame_args_address.
1465
1466 2003-06-19 Andrew Cagney <cagney@redhat.com>
1467
1468 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1469 (REGISTER_CONVERT_FROM_TYPE): Delete.
1470 (mips_register_convert_to_type): Delete declaration.
1471 (mips_register_convert_from_type): Delete declaration.
1472 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1473 kernel/.
1474
1475 2003-06-19 Michael Snyder <msnyder@redhat.com>
1476
1477 * linux-nat.h: New file.
1478 * linux-nat.c: Include linux-nat.h.
1479 * lin-lwp.c: Include linux-nat.h.
1480 Move struct lwp_info def to linux-nat.h.
1481 * linux-proc.c: Include linux-nat.h.
1482 (linux_make_note_section): Iterate over lwps instead of threads.
1483 (linux_do_thread_registers): Use lwp instead of merged pid.
1484 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
1485 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
1486 Add dependency on linux_nat_h.
1487
1488 2003-06-19 Theodore A. Roth <troth@openavr.org>
1489
1490 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1491
1492 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1493
1494 * varobj.c (get_type, get_target_type): Use check_typedef.
1495
1496 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1497
1498 * breakpoint.c (insert_catchpoint): Call internal_error.
1499
1500 2003-06-19 Theodore A. Roth <troth@openavr.org>
1501
1502 * avr-tdep.c (avr_push_dummy_code): Delete function.
1503 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1504
1505 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1506
1507 * arch-utils.c (default_prepare_to_proceed): Remove.
1508 (generic_prepare_to_proceed): Remove.
1509 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1510 (generic_prepare_to_proceed): Remove prototype.
1511 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1512 * gdbarch.c: Regenerate.
1513 * gdbarch.h: Regenerate.
1514 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1515 * hppah-nat.c (hppa_switched_threads): Remove.
1516 * infrun.c (prepare_to_proceed): New static function, copied from
1517 generic_prepare_to_proceed. Remove select_it argument.
1518 (proceed): Call prepare_to_proceed.
1519 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1520 variables.
1521 (ptrace_wait): Don't set the removed variables.
1522 (hppa_switched_threads): Remove.
1523 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1524 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1525 (lin_lwp_prepare_to_proceed): Remove prototype.
1526 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1527 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1528
1529 2003-06-18 Theodore A. Roth <troth@openavr.org>
1530
1531 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1532 trad-frame.h.
1533 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1534 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1535 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1536 (AVR_PROLOGUE_*): Enumerate prologue types.
1537 (struct frame_extra_info): Remove.
1538 (struct avr_unwind_cache): Define.
1539 (avr_write_sp): Delete function.
1540 (avr_read_fp): Ditto.
1541 (avr_init_extra_frame_info): Ditto.
1542 (avr_pop_frame): Ditto.
1543 (avr_frame_saved_pc): Ditto.
1544 (avr_saved_pc_after_call): Ditto.
1545 (avr_push_return_address): Ditto.
1546 (avr_frame_chain): Ditto.
1547 (avr_store_struct_return): Ditto.
1548 (avr_push_arguments): Ditto.
1549 (avr_scan_prologue): Update comments. Changed to set up the info for
1550 cache unwinding. Now returns end of prologue PC.
1551 (avr_skip_prologue): Better handling of functions lacking a prologue
1552 by using avr_scan_prologue.
1553 (avr_scan_arg_moves): New function.
1554 (avr_saved_regs_unwinder): Ditto.
1555 (avr_frame_unwind_cache): Ditto.
1556 (avr_unwind_pc): Ditto.
1557 (avr_frame_this_id): Ditto.
1558 (avr_frame_prev_register): Ditto.
1559 (avr_frame_p): Ditto.
1560 (avr_frame_base_address ): Ditto.
1561 (avr_unwind_dummy_id): Ditto.
1562 (avr_push_dummy_code): Ditto.
1563 (push_stack_item): Ditto.
1564 (pop_stack_item): Ditto.
1565 (avr_push_dummy_call): Ditto.
1566 (struct stack_item): Define.
1567 (avr_frame_unwind): Declare structure.
1568 (avr_frame_base): Ditto.
1569 (avr_gdbarch_init): Remove calls to
1570 set_gdbarch_deprecated_init_frame_pc,
1571 set_gdbarch_deprecated_target_read_fp,
1572 set_gdbarch_deprecated_dummy_write_sp,
1573 set_gdbarch_deprecated_fp_regnum,
1574 set_gdbarch_deprecated_push_arguments,
1575 set_gdbarch_deprecated_push_return_address,
1576 set_gdbarch_deprecated_pop_frame,
1577 set_gdbarch_deprecated_store_struct_return,
1578 set_gdbarch_deprecated_frame_init_saved_regs,
1579 set_gdbarch_deprecated_init_extra_frame_info,
1580 set_gdbarch_deprecated_frame_chain,
1581 set_gdbarch_deprecated_frame_saved_pc,
1582 set_gdbarch_deprecated_saved_pc_after_call.
1583 Add calls to set_gdbarch_push_dummy_call,
1584 set_gdbarch_push_dummy_code,
1585 frame_unwind_append_predicate,
1586 frame_base_set_default,
1587 set_gdbarch_unwind_dummy_id,
1588 set_gdbarch_unwind_pc.
1589 Wrap a long line.
1590
1591 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
1592
1593 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
1594 registers for H8/300S.
1595 (h8300_print_registers_info): Ditto.
1596 (h8300_gdbarch_init): Accommodate register count for H8/300S.
1597
1598 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
1599
1600 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
1601 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1602 (lin_lwp_wait): Likewise. Update comments.
1603 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
1604 (pull_pid_from_list, linux_record_stopped_pid): New.
1605
1606 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1607
1608 * ada-lang.c (scan_discrim_bound): Name first argument.
1609 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
1610 declared by ALL_BLOCK_SYMBOLS.
1611
1612 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1613
1614 * ada-tasks.c (find_function_in_inferior): Don't declare it.
1615 ("regcache.h"): Include it.
1616 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
1617
1618 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1619
1620 * NEWS: Mention gdbserver detach change and "disconnect" command.
1621 * infcmd.c (disconnect_command): New function.
1622 (_initialize_infcmd): Add ``disconnect'' command.
1623 * remote.c (remote_async_detach): Delete.
1624 (remote_detach): Merge remote_async_detach.
1625 (remote_disconnect): New.
1626 (init_remote_ops): Set to_disconnect.
1627 (init_remote_cisco_ops): Likewise.
1628 (init_remote_async_ops): Likewise. Use remote_detach.
1629 * target.c (cleanup_target): Default to_disconnect.
1630 (update_current_target): Inherit to_disconnect.
1631 (target_disconnect, debug_to_disconnect): New functions.
1632 (setup_target_debug): Set to_disconnect.
1633 * target.h (struct target_ops): Add to_disconnect.
1634 (target_disconnect): Add prototype.
1635
1636 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1637
1638 * breakpoint.c (insert_catchpoint): New function.
1639 (insert_breakpoints): Use catch_exceptions to call
1640 insert_catchpoint. Disable catchpoints if they fail to insert.
1641
1642 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1643
1644 * symfile.c (reread_symbols): Clear sym_private.
1645
1646 2003-06-17 Andrew Cagney <cagney@redhat.com>
1647
1648 * trad-frame.h (struct frame_info): Add opaque declaration.
1649 * remote-fileio.h (struct cmd_list_element): Add opaque
1650 declaration.
1651 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
1652 comments.
1653
1654 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1655
1656 * remote.c (remote_prepare_to_store): Replace call to
1657 deprecated_read_register_bytes with multiple regcache_raw_read
1658 calls.
1659
1660 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1661
1662 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
1663 (nto_find_and_open_solib): Likewise.
1664 (nto_init_solib_absolute_prefix): Likewise.
1665 (_initialize_nto_tdep): Fix indentation.
1666
1667 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1668
1669 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
1670
1671 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1672
1673 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
1674
1675 2003-06-17 Jim Blandy <jimb@redhat.com>
1676
1677 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
1678
1679 2003-06-16 Theodore A. Roth <troth@openavr.org>
1680
1681 * avr-tdep.c (avr_extract_return_value): New function.
1682 (avr_gdbarch_init): Set extract_return_value method.
1683
1684 2003-06-16 Andrew Cagney <cagney@redhat.com>
1685
1686 * frame.h (deprecated_get_next_frame_hack): Declare.
1687 * frame.c (legacy_saved_regs_prev_register): Only require
1688 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
1689 there are always saved regs.
1690 (deprecated_generic_get_saved_register): Do not require
1691 DEPRECATED_FRAME_INIT_SAVED_REGS.
1692 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
1693 use frame ID unwind instead.
1694 (deprecated_get_next_frame_hack): New function.
1695
1696 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
1697
1698 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
1699 (h8300_push_dummy_call): ...this function. Some minor optimization.
1700 (h8300_push_return_address): Remove.
1701 (h8300_gdbarch_init): Remove calls to
1702 set_gdbarch_deprecated_dummy_write_sp,
1703 set_gdbarch_deprecated_push_arguments and
1704 set_gdbarch_deprecated_push_return_address.
1705 Add call to set_gdbarch_push_dummy_call.
1706
1707 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
1708
1709 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
1710 (E_PSEUDO_EXR_REGNUM): Ditto.
1711 (h8300_is_argument_spill): Check for instructions moving argument
1712 registers into safe registers.
1713 (h8300_skip_prologue): Check for stm instruction to push registers
1714 used for register variables onto stack.
1715 (gdb_print_insn_h8300): Remove.
1716 (h8300_examine_prologue): Add a comment.
1717 (h8300_register_name): Take pseudo registers into account.
1718 (h8300s_register_name): Ditto.
1719 (h8300sx_register_name): Ditto.
1720 (h8300_print_register): Ditto.
1721 (h8300_print_registers_info): Define "nice" printing order.
1722 (h8300_saved_pc_after_call): Take pseudo registers into account.
1723 (h8300_register_type): Ditto. Return type used for remote connection
1724 when requesting real CCR or EXR register, return actual type when
1725 requesting pseudo CCR or EXR.
1726 (h8300_pseudo_register_read): New function.
1727 (h8300_pseudo_register_write): Ditto.
1728 (h8300_dbg_reg_to_regnum): Ditto.
1729 (h8300s_dbg_reg_to_regnum): Ditto.
1730 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
1731 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
1732 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
1733 set_gdbarch_print_insn architecture dependent.
1734 Call set_gdbarch_pseudo_register_read and
1735 set_gdbarch_pseudo_register_write.
1736 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
1737
1738 2003-06-16 Andrew Cagney <cagney@redhat.com>
1739
1740 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
1741 * gdbarch.h, gdbarch.c: Re-generate.
1742 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1743 * s390-tdep.c (s390_gdbarch_init): Update.
1744 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1745 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1746 * mips-tdep.c (mips_gdbarch_init): Update.
1747 * mcore-tdep.c (mcore_gdbarch_init): Update.
1748 * cris-tdep.c (cris_gdbarch_init): Update.
1749 * infcall.c (call_function_by_hand): Update.
1750 * ia64-tdep.c (ia64_push_arguments): Update comment.
1751 * frame.c (legacy_get_prev_frame): Do not assume
1752 SAVE_DUMMY_FRAME_TOS_P.
1753 * dummy-frame.c (find_dummy_frame): Update comment.
1754
1755 2003-06-16 Andrew Cagney <cagney@redhat.com>
1756
1757 * regcache.c (do_cooked_read): Do not use register_valid_p.
1758
1759 2003-06-15 Theodore A. Roth <troth@openavr.org>
1760
1761 * avr-tdep.c (avr_register_type): Remove a blank line.
1762 (avr_scan_prologue): Correct some comments.
1763
1764 2003-06-15 Theodore A. Roth <troth@openavr.org>
1765
1766 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
1767 prologue types.
1768 Properly scan prologues generated by gcc with the -mcall-prologues
1769 option.
1770 Add code to scan -mcall-prologues for mega devices.
1771
1772 2003-06-15 Theodore A. Roth <troth@openavr.org>
1773
1774 * avr-tdep.c (avr_register_byte): Delete function.
1775 (avr_register_raw_size): Delete function.
1776 (avr_register_virtual_size): Delete function.
1777 (avr_register_virtual_type): Delete function.
1778 (avr_register_type): New function.
1779 (avr_address_to_pointer): Remove unused code.
1780 (avr_read_fp): Need to read FP as two separate bytes due to change to
1781 avr_register_type() usage.
1782 (avr_gdbarch_init): Don't set deprecated_register_size.
1783 Don't set deprecated_register_bytes.
1784 Don't set deprecated_register_byte.
1785 Don't set deprecated_register_raw_size.
1786 Don't set deprecated_max_register_raw_size.
1787 Don't set deprecated_register_virtual_size.
1788 Don't set deprecated_max_register_virtual_size.
1789 Don't set deprecated_register_virtual_type.
1790 Set register_type method.
1791
1792 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
1793
1794 * Makefile.in (linux-nat.o): Add rule.
1795 * linux-nat.c: New file.
1796 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
1797 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
1798 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
1799 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
1800 * config/arm/linux.mh (NATDEPFILES): Likewise.
1801 * config/i386/linux.mh (NATDEPFILES): Likewise.
1802 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1803 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1804 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1805 * config/mips/linux.mh (NATDEPFILES): Likewise.
1806 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1807 * config/s390/s390.mh (NATDEPFILES): Likewise.
1808 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1809
1810 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1811
1812 * i387-tdep.c: Reorder includes, fix some whitespace issues and
1813 replace out-of-date comment.
1814
1815 2003-06-15 Andrew Cagney <cagney@redhat.com>
1816
1817 * rdi-share/host.h (Fail): Change to a varargs function.
1818 * remote-rdi.c (Fail): Update.
1819
1820 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1821
1822 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
1823 (i386_convert_register_p, i386_register_to_value,
1824 i386_register_from_value): Handle types longer than 8 bytes.
1825
1826 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1827
1828 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
1829 Move floating-point code to new function in i387-tdep.c.
1830 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
1831 New functions containing code moved here from i386-tdep.c.
1832 * i387-tdep.h: Add opaque declaration for `struct type'.
1833 (i387_register_to_value, i387_value_to_register): New prototypes.
1834 * x86-64-tdep.c (x86_64_convert_register_p): New function.
1835 (x86_64_init_abi): Set convert_register_p, register_to_value and
1836 value_to_register here.
1837
1838 2003-06-14 Andrew Cagney <cagney@redhat.com>
1839
1840 * mips-tdep.c (mips_register_to_value): Make static.
1841 (mips_value_to_register): Make static.
1842 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
1843 * ia64-tdep.c (ia64_register_raw_size): Make static.
1844 (ia64_register_virtual_size): Make static.
1845 (ia64_register_byte): Make static.
1846 * i387-tdep.c: Include "i387-tdep.h".
1847 (print_387_control_word): Delete function.
1848 (print_387_status_word): Delete function.
1849 (print_387_status_bits): Delete function.
1850 (print_387_control_bits): Delete function.
1851 * Makefile.in (i387-tdep.o): Update dependencies.
1852 * rdi-share/host.h (Fail): Declare.
1853 * remote-rdi.c (Fail): Update to match declaration.
1854
1855 2003-06-14 Andrew Cagney <cagney@redhat.com>
1856
1857 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
1858 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
1859 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
1860 * config/djgpp/fnchange.lst: Delete "remote-array.c".
1861 * README: Delete reference to remote-array.
1862 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
1863 (remote-array.o): Delete target.
1864 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
1865 * remote-array.c: Delete file.
1866
1867 2003-06-14 Andrew Cagney <cagney@redhat.com>
1868 Mark Kettenis <kettenis@gnu.org>
1869
1870 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
1871 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
1872 parameter with "frame".
1873 * gdbarch.h, gdbarch.c: Re-generate.
1874 * frame.h (put_frame_register): Declare.
1875 * frame.c (put_frame_register): New function.
1876 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
1877 (legacy_register_to_value): Rewrite, use "frame" to get the
1878 register value.
1879 (legacy_value_to_register): Rewrite, use "frame" to find the
1880 register's location before storing.
1881 * arch-utils.h (legacy_convert_register_p): Update.
1882 (legacy_register_to_value, legacy_value_to_register): Update.
1883 * findvar.c (value_from_register): Rewrite, eliminate use of
1884 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
1885 "frame" to REGISTER_TO_VALUE.
1886 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
1887 lval_reg_frame_relative + lval_register branch of the switch. Do
1888 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
1889 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1890 I386_EDI_REGNUM): New defines.
1891 (i386_next_regnum, i386_convert_register_p,
1892 i386_register_to_value, i386_value_to_register): New functions.
1893 (i386_register_convertible, i386_register_convert_to_virtual,
1894 i386_convert_to_raw): Remove functions.
1895 (i386_gdbarch_init): Set convert_register_p, register_to_value and
1896 value_to_register instead of register_convertible,
1897 register_convert_to_virtual and register_convert_to_raw.
1898 * mips-tdep.c (mips_convert_register_p): New function.
1899 (mips_value_to_register): Replace mips_register_convert_from_type.
1900 (mips_register_to_value): Replace mips_register_convert_to_type.
1901 (mips_gdbarch_init): Set conver_register_p, value_to_register and
1902 register_to_value.
1903 * alpha-tdep.c (alpha_convert_register_p): Update.
1904 (alpha_value_to_register): Update, store the register.
1905 (alpha_register_to_value): Update, fetch the register.
1906
1907 2003-06-14 Theodore A. Roth <troth@openavr.org>
1908
1909 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
1910 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
1911 Don't set deprecated_call_dummy_words.
1912 Remove commented out set_gdbarch_believe_pcc_promotion() call.
1913 Don't set remote_translate_xfer_address.
1914 (avr_io_reg_read_command): Remove commented out debug printf.
1915 Wrap a long line.
1916
1917 2003-06-14 Theodore A. Roth <troth@openavr.org>
1918
1919 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
1920 causes gdb to seg fault.
1921
1922 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
1923
1924 * sparc-nat.c (fetch_inferior_registers): Correct
1925 a reference to "registers".
1926
1927 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
1928
1929 * Makefile.in (exc_request_U_h): Define
1930 (exc_request_S_h): Likewise.
1931 (msg_reply_S_h): Likewise.
1932 (msg_U_h): Likewise.
1933 (notify_S_h): Likewise.
1934 (process_reply_S_h): Likewise.
1935 (gnu-nat.o): Depend on gdb_obstack_h
1936 * gnu-nat.c: Include "gdb_obstack.h".
1937
1938 2003-06-13 Andrew Cagney <cagney@redhat.com>
1939
1940 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
1941 * gdbarch.h, gdbarch.c: Re-generate.
1942
1943 2003-06-13 Andrew Cagney <cagney@redhat.com>
1944
1945 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
1946 when deprecated REGISTER macros can be deleted.
1947 * gdbarch.h, gdbarch.c: Re-generate.
1948
1949 2003-06-13 Jim Blandy <jimb@redhat.com>
1950
1951 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
1952 Linux entry point symbols for _dl_debug_state, too.
1953
1954 2003-06-13 Andrew Cagney <cagney@redhat.com>
1955
1956 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
1957 available, do not use the FP register, and always save the TOS.
1958 * dummy-frame.c (dummy_frame_this_id): Do not assert
1959 SAVE_DUMMY_FRAME_TOS.
1960 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
1961 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
1962 (i386_push_dummy_call): Add 8 to the returned SP.
1963 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
1964 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
1965 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
1966 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
1967 (x86_64_push_dummy_call): Return "sp + 16".
1968 (x86_64_init_abi): Do not set save_dummy_frame_tos.
1969 * alpha-tdep.c (alpha_gdbarch_init): Do not set
1970 save_dummy_frame_tos.
1971
1972 2003-06-13 Jim Blandy <jimb@redhat.com>
1973
1974 * frv-tdep.c (frv_use_struct_convention): Delete static
1975 declaration for function deleted in my change of 2003-06-12.
1976
1977 2003-06-13 Theodore A. Roth <troth@openavr.org>
1978
1979 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
1980 (avr_pointer_to_address): Shift code addrs left 1 bit.
1981 (avr_convert_from_func_ptr_addr): Delete function since operation is
1982 better handled by avr_address_to_pointer and avr_pointer_to_address.
1983 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
1984
1985 2003-06-13 Mark Kettenis <kettenis@gnu.org>
1986
1987 From Kelley Cook <kelleycook@wideopenwest.com>:
1988 * configure.host: Accept i[34567]86 variants.
1989 * configure.tgt: Likewise.
1990 * nlm/configure.in: Likewise.
1991 * nlm/configure: Regenerated.
1992
1993 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
1994
1995 * arm-tdep.c (solib-svr4.h): Dont' include it.
1996 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
1997 * arm-linux-tdep.c: ... here. Make static.
1998 (arm_linux_init_abi): Register it.
1999 (solib-svr4.h): Include it.
2000 * Makefile.in: Update dependencies.
2001 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2002 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2003
2004 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2005
2006 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2007 indicate registers used for return values.
2008 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2009 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2010 members.
2011 (h8300_init_extra_frame_info): Ditto.
2012 (h8300_frame_locals_address): Removed.
2013 (h8300_frame_args_address): Removed.
2014 (h8300_extract_return_value): Use new regcache structure. Only care
2015 for 16 bit CPUs.
2016 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2017 (h8300_store_return_value): Use new regcache structure. Only care
2018 for 16 bit CPUs.
2019 (h8300h_store_return_value): Same function for 32 bit CPUs.
2020 (h8300_store_struct_return): Removed.
2021 (h8300_extract_struct_value_address): Use new regcache structure.
2022 (h8300h_extract_struct_value_address): Removed.
2023 (h8300_push_dummy_code): New function.
2024 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2025 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2026 set_gdbarch_store_return_value architecture dependent.
2027 Call set_gdbarch_push_dummy_code and
2028 set_gdbarch_extract_struct_value_address.
2029 Remove calls to set_gdbarch_frame_args_address,
2030 set_gdbarch_frame_locals_address,
2031 set_gdbarch_deprecated_store_struct_return,
2032 set_gdbarch_deprecated_extract_return_value,
2033 set_gdbarch_deprecated_extract_struct_value_address,
2034 set_gdbarch_deprecated_call_dummy_words and
2035 set_gdbarch_deprecated_sizeof_call_dummy_words.
2036
2037 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2038
2039 * h8300-tdep.c (h8300_register_byte): Remove.
2040 (h8300h_register_byte): Remove.
2041 (h8300_register_virtual_type): Remove. Substitute by...
2042 (h8300_register_type): New function.
2043 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2044 (h8300h_extract_struct_value_address): Ditto.
2045 (h8300_gdbarch_init): Drop calls to
2046 set_gdbarch_deprecated_register_byte and
2047 set_gdbarch_deprecated_register_virtual_type.
2048 Add call to set_gdbarch_register_type.
2049
2050 2003-06-13 Andrew Cagney <cagney@redhat.com>
2051
2052 * gdbarch.sh: Update comments on registers.
2053 (deprecated_register_byte): Rename register_byte.
2054 (deprecated_register_raw_size): Rename register_raw_size.
2055 (deprecated_register_virtual_size): Rename register_virtual_size.
2056 (deprecated_register_virtual_type): Rename register_virtual_type.
2057 * gdbarch.h, gdbarch.c: Re-generate.
2058 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2059 * vax-tdep.c (vax_gdbarch_init): Update.
2060 * v850-tdep.c (v850_gdbarch_init): Update.
2061 * sparc-tdep.c (sparc_gdbarch_init): Update.
2062 * sh-tdep.c (sh_gdbarch_init): Update.
2063 * s390-tdep.c (s390_gdbarch_init): Update.
2064 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2065 * ns32k-tdep.c: Update.
2066 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2067 * mips-tdep.c (mips_gdbarch_init): Update.
2068 * mcore-tdep.c (mcore_gdbarch_init): Update.
2069 * m68k-tdep.c (m68k_gdbarch_init): Update.
2070 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2071 * ia64-tdep.c (ia64_gdbarch_init): Update.
2072 * hppa-tdep.c (hppa_gdbarch_init): Update.
2073 * h8300-tdep.c (h8300_gdbarch_init): Update.
2074 * frv-tdep.c (frv_gdbarch_init): Update.
2075 * cris-tdep.c (cris_gdbarch_init): Update.
2076 * avr-tdep.c (avr_gdbarch_init): Update.
2077 * alpha-tdep.c (alpha_gdbarch_init): Update.
2078 * arm-tdep.c (arm_gdbarch_init): Update.
2079
2080 2003-06-13 Andrew Cagney <cagney@redhat.com>
2081
2082 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2083 mips_o32_use_struct_convention with always_use_struct_convention.
2084
2085 2003-06-12 David Carlton <carlton@kealia.com>
2086
2087 * cp-namespace.c (cp_set_block_scope): Comment out
2088 processing_has_namespace_info branch.
2089
2090 2003-06-12 Jim Blandy <jimb@redhat.com>
2091
2092 Recognize and skip 64-bit PowerPC Linux linkage functions.
2093 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2094 insn_pattern, insns_match_pattern, d_field, ds_field): New
2095 functions, macros, and types for working with PPC instructions.
2096 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2097 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2098 ppc64_skip_trampoline_code): New functions, variables, and macros
2099 for recognizing and skipping linkage functions.
2100 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2101 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2102
2103 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2104 register offsets for both the 32- and 64-bit interfaces.
2105
2106 Actually finish the job started by my change of 2003-05-29.
2107 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2108 other #definition of this.
2109 (ppc_linux_skip_trampoline_code): Remove declaration.
2110 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2111 static.
2112 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2113 method for GDBARCH.
2114
2115 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2116 'long' on ppc64-*-linux*.
2117
2118 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2119 isn't #defined, assume the register doesn't exist: act as if
2120 tdep->ppc_mq_regnum were -1.
2121
2122 * configure.host, configure.tgt: Add entries for
2123 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2124 powerpc/linux.mt.
2125 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2126 New files.
2127
2128 * arch-utils.c (always_use_struct_convention): New function.
2129 * arch-utils.h (always_use_struct_convention): New prototype.
2130 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2131 (alpha_gdbarch_init): Register always_use_struct_convention,
2132 instead of alpha_use_struct_convention.
2133 * cris-tdep.c (cris_use_struct_convention): Delete.
2134 (cris_gdbarch_init): Register always_use_struct_convention,
2135 instead of cris_use_struct_convention.
2136 * frv-tdep.c (frv_use_struct_convention): Delete.
2137 (frv_gdbarch_init): Register always_use_struct_convention,
2138 instead of frv_use_struct_convention.
2139 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2140 (h8300_gdbarch_init): Register always_use_struct_convention,
2141 instead of h8300_use_struct_convention.
2142 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2143 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2144 instead of mips_o32_use_struct_convention.
2145
2146 2003-06-12 Andrew Cagney <cagney@redhat.com>
2147
2148 * wince.c: Include "mips-tdep.h".
2149 * mips-tdep.h (mips_next_pc): Declare.
2150 * mcore-tdep.c: Make more local functions static.
2151 * Makefile.in (wince.o): Update dependencies.
2152
2153 2003-06-12 David Carlton <carlton@kealia.com>
2154
2155 * symtab.c (lookup_symbol_aux_minsyms): Replace
2156 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2157 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2158 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2159 SYMBOL_NATURAL_NAME.
2160
2161 2003-06-12 Andreas Schwab <schwab@suse.de>
2162
2163 * Makefile.in (tuiDisassem.o): Update dependencies.
2164
2165 2003-06-12 David Carlton <carlton@bactrian.org>
2166
2167 * symtab.h: Delete declaration of make_symbol_overload_list.
2168 Add declaration of lookup_partial_symbol.
2169 * symtab.c (remove_params): Move to cp-support.c.
2170 (overload_list_add_symbol, make_symbol_overload_list)
2171 (sym_return_val_size, sym_return_val_index): Ditto.
2172 (lookup_partial_symbol): Make extern.
2173 * cp-support.h: Add declaration of make_symbol_overload_list.
2174 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2175 symtab.h, and block.h.
2176 (remove_params): Move here from symtab.c.
2177 (overload_list_add_symbol, make_symbol_overload_list)
2178 (sym_return_val_size, sym_return_val_index): Ditto.
2179 * valops.c: Include cp-support.h.
2180 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2181 frame_h, and block_h.
2182 (valops.o): Depend on cp_support_h.
2183
2184 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2185
2186 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2187 substitute by NUM_REGS throughout.
2188 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2189 (h8300s_register_name): New function for H8S registers.
2190 (h8300sx_register_name): Ditto for H8SX registers.
2191 (h8300_print_register): Revise register printing, avoid depending
2192 on 32 bit long.
2193 (h8300_register_byte): Only care for H8/300 registers.
2194 (h8300h_register_byte): New function for any other architecture.
2195 (h8300_register_raw_size): Remove.
2196 (h8300_register_virtual_type): Revise to return actually useful
2197 type.
2198 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2199 (h8300h_extract_struct_value_address): New function for any other
2200 architecture.
2201 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2202 set_gdbarch_register_name, set_gdbarch_register_byte,
2203 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2204 Remove calls to set_gdbarch_deprecated_register_size,
2205 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2206 set_gdbarch_deprecated_max_register_raw_size,
2207 set_gdbarch_register_virtual_size and
2208 set_gdbarch_deprecated_max_register_virtual_size entirely.
2209 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2210 set_gdbarch_long_double_bit.
2211
2212 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2213
2214 * doublest.c (convert_doublest_to_floatformat): When dealing
2215 with the implied integer bit, only alter mant_bits if we are
2216 processing a full 32 bits of mantissa.
2217
2218 2003-06-11 David Carlton <carlton@bactrian.org>
2219
2220 * dictionary.h: New.
2221 * dictionary.c: New.
2222 * block.h: Add opaque declaration for struct dictionary.
2223 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2224 'sym' members.
2225 (BLOCK_DICT): New macro.
2226 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2227 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2228 BLOCK_SHOULD_SORT.
2229 (ALL_BLOCK_SYMBOLS): Update definition.
2230 * Makefile.in (SFILES): Add dictionary.c.
2231 (dictionary_h): New.
2232 (COMMON_OBS): Add dictionary.o.
2233 (dictionary.o): New.
2234 (ada-lang.o): Depend on dictionary_h.
2235 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2236 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2237 (mi-cmd-stack.o): Ditto.
2238 (gdbtk-cmds.o): Update dependencies.
2239 (gdbtk-stack.o): Ditto.
2240 * ada-lang.c: Include dictionary.h.
2241 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2242 (fill_in_ada_prototype, debug_print_block): Ditto.
2243 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2244 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2245 'is_sorted'.
2246 * mdebugread.c: Include dictionary.h.
2247 (struct parse_stack): Delete 'maxsyms' member.
2248 (parse_symbol): Update calls to new_block. Delete calls to
2249 shrink_block. Use dictionary methods.
2250 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2251 Update calls to new_symtab. Don't maintain maxsyms data.
2252 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2253 (add_symbol): Just call dict_add_symbol.
2254 (new_symtab): Delete 'maxsyms' argument.
2255 (new_symtab): Update calls to new_block.
2256 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2257 (shrink_block): Delete function.
2258 (fixup_sigtramp): Update call to new_block. Add symbol via
2259 dict_add_symbol.
2260 * jv-lang.c: Include dictionary.h.
2261 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2262 appropriately. Set class_symtab->free_func. Make sure the
2263 blockvector is big enough to hold two blocks.
2264 (add_class_symtab_symbol): Use dictionary methods.
2265 (free_class_block): New function.
2266 (type_from_class): Replace explicit iteration by
2267 ALL_BLOCK_SYMBOLS.
2268 * symtab.h (struct symtab): Replace 'free_ptr' method by
2269 'free_func'.
2270 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2271 sort_symtab_syms.
2272 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2273 sort_symtab_syms.
2274 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2275 Include dictionary.h.
2276 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2277 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2278 sort_symtab_syms.
2279 * objfiles.c: Include dictionary.h.
2280 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2281 * buildsym.c: Include dictionary.h.
2282 (finish_block): Use dictionary methods.
2283 (end_symtab): Set free_func to NULL, not free_ptr.
2284 * tracepoint.c: Include dictionary.h.
2285 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2286 (scope_info): Ditto.
2287 * stack.c: Include dictionary.h.
2288 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2289 (print_block_frame_labels, print_frame_arg_vars)
2290 (print_frame_args): Ditto.
2291 * symmisc.c (free_symtab_block): Use dictionary methods.
2292 (dump_symtab): Ditto.
2293 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2294 Include dictionary.h.
2295 * symfile.h: Delete declarations of sort_block_syms,
2296 sort_symtab_syms.
2297 * symfile.c (sort_block_syms): Delete.
2298 (sort_symtab_syms): Delete.
2299 * symtab.c: Include dictionary.h.
2300 (lookup_block_symbol): Use dictionary iterators.
2301 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2302 (search_symbols, make_symbol_completion_list): Ditto.
2303 (make_symbol_overload_list): Ditto.
2304 * valops.c (value_of_local): Use dict_empty.
2305 Include dictionary.h.
2306
2307 2003-06-11 J. Brobecker <brobecker@gnat.com>
2308
2309 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2310
2311 2003-06-11 David Carlton <carlton@bactrian.org>
2312
2313 * block.h (BLOCK_SHOULD_SORT): Delete.
2314 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2315 blocks.
2316 * ada-lang.c (ada_add_block_symbols): Ditto.
2317 * symfile.c (sort_block_syms): Delete.
2318 (sort_symtab_syms): Ditto.
2319 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2320 declarations.
2321 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2322 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2323 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2324 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2325 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2326 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2327 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2328
2329 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2330
2331 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2332 bits to 128.
2333
2334 2003-06-11 Andrew Cagney <cagney@redhat.com>
2335
2336 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2337 REGISTER_CONVERTIBLE.
2338 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2339 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2340 * gdbarch.h, gdbarch.c: Re-generate.
2341 * arch-utils.h (deprecated_register_convertible_not): Rename
2342 generic_register_convertible_not.
2343 * arch-utils.c (deprecated_register_convertible_not): Rename
2344 generic_register_convertible.
2345 (legacy_convert_register_p, legacy_register_to_value): Update.
2346 * sh-tdep.c (sh64_push_arguments): Update.
2347 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2348 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2349 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2350 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2351 * arch-utils.c (legacy_value_to_register): Update.
2352 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2353 (rs6000_register_convert_to_raw): Make parameter "from" const.
2354 * mips-tdep.c (mips_gdbarch_init): Update.
2355 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2356 * infcmd.c (default_print_registers_info): Update.
2357 * ia64-tdep.c (ia64_gdbarch_init): Update.
2358 (ia64_register_convert_to_raw): Make parameter "from" const.
2359 * i386-tdep.c (i386_gdbarch_init): Update.
2360 (i386_register_convert_to_raw): Update.
2361
2362 2003-06-11 Andrew Cagney <cagney@redhat.com>
2363
2364 * remote-fileio.c: Include "remote-fileio.h".
2365 * Makefile.in (remote-fileio.o): Update dependencies.
2366 (remote_fileio_h): Fix typo.
2367
2368 2003-06-11 Andrew Cagney <cagney@redhat.com>
2369
2370 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2371 (xstormy16_save_dummy_frame_tos): Make static.
2372 (_initialize_xstormy16_tdep): Add declaration.
2373 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2374 * v850-tdep.c: Make local functions static.
2375 (_initialize_v850_tdep): Add declaration.
2376 * sparc-tdep.c: Make local functions static.
2377 (_initialize_sparc_tdep): Add declaration.
2378 * sh-tdep.c: Make local functions static.
2379 (_initialize_sh_tdep): Add declaration.
2380 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2381 * s390-tdep.c: Make local functions static.
2382 (_initialize_s390_tdep): Add declaration.
2383 * dbxread.c (find_stab_function_addr): Make static.
2384 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2385 * ocd.c (_initialize_remote_ocd): Add declaration.
2386 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2387 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2388 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2389 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2390 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2391 * remote-array.c (_initialize_array): Add declaration.
2392 (_initialize_remote_monitors): Add declaration.
2393 * remote-mips.c: Make local functions static.
2394 (_initialize_remote_mips): Add declaration.
2395 * mcore-tdep.c: Make all local functions static.
2396 (_initialize_mcore_tdep): Add declaration.
2397 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2398 * abug-rom.c (_initialize_abug_rom): Add declaration.
2399 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2400 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2401 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2402 * remote-est.c (_initialize_est): Add declaration.
2403 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2404 (m68hc11_call_dummy_address): Make static.
2405 * ia64-tdep.c: Make local functions static.
2406 (_initialize_ia64_tdep): Add declaration.
2407 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2408 * monitor.c (monitor_wait_filter): Make static.
2409 (_initialize_remote_monitors): Add declaration.
2410 * remote-hms.c (_initialize_remote_hms): Add declaration.
2411 * remote-e7000.c (fetch_regs_from_dump): Make static.
2412 (expect_n): Make static.
2413 (_initialize_remote_e7000): Add declaration.
2414 * ser-e7kpc.c: Always include "defs.h".
2415 (_initialize_ser_e7000pc): Add declaration.
2416 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2417 * cris-tdep.c: Make all but one function static.
2418 (_initialize_cris_tdep): Add declaration.
2419 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2420 * solib.c (update_solib_list): Make static.
2421 (_initialize_solib): Add declaration.
2422 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2423 (_initialize_avr_tdep): Add declaration.
2424 * remote-rdi.c (voiddummy): Make static.
2425 (_initialize_remote_rdi): Add declaration.
2426 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2427 * remote-rdp.c (send_rdp): Make static.
2428 (_initialize_remote_rdp): Add declaration.
2429 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2430
2431 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
2432
2433 * remote-fileio.c: Make ari happy.
2434
2435 2003-06-10 J. Brobecker <brobecker@gnat.com>
2436
2437 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2438 fetching the trailing bytes of the buffer we are about to write.
2439
2440 2003-06-10 Andrew Cagney <cagney@redhat.com>
2441
2442 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2443 * Makefile.in (remote-fileio.o): Update dependencies.
2444 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2445 include <setjmp.h>, or <sys/types.h> conditional on USG.
2446 (remote_fio_jmp_buf): Delete global variable.
2447
2448 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
2449 Martin M. Hunt <hunt@redhat.com>
2450
2451 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2452 (SFILES): Add remote-fileio.c.
2453 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2454 dependencies for building remote.o.
2455 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2456 * remote-fileio.h: New header file defining remote File-I/O interface.
2457 * remote.c (remote_write_bytes, remote_read_bytes): Remove
2458 static storage class.
2459 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2460 'F' packet.
2461 (_initialize_remote): Call initialize_remote_fileio().
2462 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
2463 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2464 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2465 (captured_main): Initialize new ui_files.
2466 * ui-file.c: Add read and fgets input functions.
2467 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2468 (null_file_read): New function.
2469 (ui_file_read): New function.
2470 (set_ui_file_read): New function.
2471 (stdio_file_read): New function.
2472 * ui-file.h: New type ui_file_read_ftype.
2473 (set_ui_file_read): Declare.
2474 (ui_file_read): Declare.
2475
2476 2003-06-09 Andrew Cagney <cagney@redhat.com>
2477
2478 * frame.h (deprecated_unwind_get_saved_register): Rename
2479 generic_unwind_get_saved_register, update comments.
2480 * mips-tdep.c (mips_get_saved_register): Update.
2481 * frame.c (deprecated_unwind_get_saved_register): Update.
2482
2483 2003-06-09 Andrew Cagney <cagney@redhat.com>
2484
2485 * vax-tdep.c (vax_frame_locals_address): Delete function.
2486 (vax_gdbarch_init): Do not set frame_locals_address.
2487 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2488 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2489 * s390-tdep.c (s390_frame_args_address): Delete function.
2490 (s390_gdbarch_init): Do not set frame_args_address or
2491 frame_locals_address.
2492 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2493 (ns32k_gdbarch_init): Do not set frame_locals_address.
2494 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2495 (hppa_frame_locals_address): Delete function.
2496 (hppa_gdbarch_init): Do not set frame_args_address, or
2497 frame_locals_address.
2498 * arm-tdep.c (arm_frame_args_address): Delete.
2499 (arm_frame_locals_address): Delete.
2500 (arm_gdbarch_init): Do not set frame_args_address, or
2501 frame_locals_address.
2502
2503 2003-06-09 Andrew Cagney <cagney@redhat.com>
2504
2505 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2506 * gdbarch.h, gdbarch.c: Re-generate.
2507 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2508 * arch-utils.c (frame_num_args_unknown): Delete function.
2509 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2510 (frame_info): Use FRAME_NUM_ARGS_P.
2511 * arm-tdep.c (arm_frame_num_args): Delete function.
2512 (arm_gdbarch_init): Do not set frame_num_args.
2513 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2514 * hppa-tdep.c (hppa_frame_num_args): Delete function.
2515 (hppa_gdbarch_init): Do not set frame_num_args.
2516 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2517 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2518 frame_num_args to default frame_num_args_unknown.
2519 * v850-tdep.c (v850_gdbarch_init): Ditto.
2520 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2521 * sh-tdep.c (sh_gdbarch_init): Ditto.
2522 * s390-tdep.c (s390_gdbarch_init): Ditto.
2523 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2524 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2525 * mips-tdep.c (mips_gdbarch_init): Ditto.
2526 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2527 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2528 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2529 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2530 * i386-tdep.c (i386_gdbarch_init): Ditto.
2531 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2532 * frv-tdep.c (frv_gdbarch_init): Ditto.
2533 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2534 * cris-tdep.c (cris_gdbarch_init): Ditto.
2535 * avr-tdep.c (avr_gdbarch_init): Ditto.
2536 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2537
2538 2003-06-09 Andrew Cagney <cagney@redhat.com>
2539
2540 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2541 (print_frame_args): Moved to "stack.c".
2542 * stack.c: Include "gdb_assert.h".
2543 (print_frame_nameless_args): Moved from "printcmd.c", made static.
2544 (print_frame_args): Moved from "printcmd.c".
2545 * frame.h (print_frame_args): Delete declaration.
2546 * Makefile.in (stack.o): Update dependencies.
2547
2548 2003-06-08 Andrew Cagney <cagney@redhat.com>
2549
2550 * frame.c (get_prev_frame): Remove reference to
2551 frame_args_address_correct in comments.
2552 * frame-base.c (default_frame_args_address): Delete code
2553 conditional on FRAME_ARGS_ADDRESS_CORRECT.
2554 * vax-tdep.c (vax_frame_args_address_correct): Delete.
2555 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2556 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2557 (vax_frame_args_address_correct): Delete declaration.
2558
2559 2003-06-08 Andrew Cagney <cagney@redhat.com>
2560
2561 * gdbarch.sh (UNWIND_SP): Add.
2562 * gdbarch.h, gdbarch.c: Re-generate.
2563 * frame.c (frame_sp_unwind): New function.
2564 (get_frame_sp): New function.
2565 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2566 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2567 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2568 value.
2569 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2570 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2571
2572 2003-06-08 Andrew Cagney <cagney@redhat.com>
2573
2574 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
2575 REMOTE_BREAKPOINT.
2576 * remote.c: Update.
2577 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
2578 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
2579 * config/m68k/tm-sun3.h: Update.
2580 * config/m68k/tm-m68klynx.h: Update.
2581 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
2582
2583 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
2584 trad_frame". Update comments.
2585 * d10v-tdep.c (struct d10v_unwind_cache): Update.
2586 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
2587 (trad_frame_register_value, trad_frame_prev_register): Update.
2588
2589 2003-06-08 Andrew Cagney <cagney@redhat.com>
2590
2591 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
2592 from GCC's acinclude.m4.
2593 * configure.in: Check for getopt's delcaration.
2594 * aclocal.m4, config.in, configure: Re-generate.
2595 * main.c (error_init): Delete declaration.
2596 * defs.h (error_init): Declare.
2597 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
2598 (rs6000_convert_from_func_ptr_addr): Make static.
2599 (_initialize_rs6000_tdep): Add declaration.
2600 * cli/cli-cmds.c (dont_repeat): Delete declaration.
2601 (show_commands, set_verbose, show_history): Delete declaration.
2602 * top.h (set_verbose): Add declaration.
2603 (show_history, set_history, show_commands): Add declaration.
2604 (do_restore_instream_cleanup): Add declaration.
2605 * objc-lang.c (specialcmp): Make static.
2606 (print_object_command): Make static.
2607 (find_objc_msgsend): Make static.
2608 (find_objc_msgcall_submethod_helper): Make static.
2609 (find_objc_msgcall_submethod): Make static.
2610 (_initialize_objc_language): Add declaration.
2611 (find_implementation_from_class): Make static.
2612 (find_implementation): Make static.
2613 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
2614 * objc-lang.h (lookup_struct_typedef): Add declaration.
2615 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2616 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
2617 (do_restore_user_call_depth): Make static.
2618 (do_restore_instream_cleanup): Delete declaration.
2619 (dont_repeat): Delete declaration.
2620 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
2621 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
2622 * reggroups.c (_initialize_reggroup): Add declaration.
2623 * cp-support.c (_initialize_cp_support): Add declaration.
2624 * cp-abi.c (_initialize_cp_abi): Add declaration.
2625 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
2626 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
2627 (_initialize_gnu_v3_abi): Add declaration.
2628 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
2629 (_initialize_gnu_v2_abi): Add declaration.
2630 * frame-base.c (_initialize_frame_base): Add declaration.
2631 * doublest.c (floatformat_from_length): Make static.
2632 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
2633 * frame.c (create_sentinel_frame): Make static.
2634 (_initialize_frame): Add declaration.
2635 * top.c (do_catch_errors): Make static.
2636 (gdb_rl_operate_and_get_next_completion): Make static.
2637 * typeprint.c: Include "typeprint.h".
2638 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
2639 (sentinel_frame_this_id): Make static.
2640 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
2641 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
2642 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
2643 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
2644 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
2645 * maint.c (maintenance_print_architecture): Make static.
2646 * signals/signals.c (_initialize_signals): Add declaration.
2647 * std-regs.c (_initialize_frame_reg): Add declaration.
2648 * jv-exp.y (push_variable): ISO C definition.
2649 (push_qualified_expression_name): Ditto.
2650 * memattr.c (_initialize_mem): Add declaration.
2651 * remote.c (remote_check_watch_resources): Make static.
2652 (remote_stopped_by_watchpoint): Make static.
2653 (remote_stopped_data_address): Make static.
2654 * d10v-tdep.c (nr_dmap_regs): Make static.
2655 (a0_regnum): Make static.
2656 (d10v_frame_unwind_cache): Make static.
2657 (d10v_frame_p): Make static.
2658 * osabi.c (show_osabi): Make static.
2659 (_initialize_gdb_osabi): Add extern declaration.
2660 * gdbtypes.c (make_qualified_type): Make static.
2661 (safe_parse_type): Make static.
2662 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
2663 * macrotab.c (macro_bcache_free): Make static.
2664 * interps.c (interp_set_quiet): Make static.
2665 (interpreter_exec_cmd): Make static.
2666 * stack.h (select_frame_command): New file.
2667 * stack.c: Include "stack.h".
2668 (select_frame_command_wrapper): Delete function.
2669 (select_frame_command): Make global.
2670 * infcall.c: Include "infcall.h".
2671 * linespec.c: Include "linespec.h".
2672 * symfile.c (sections_overlap): Make static.
2673 * cp-support.h (cp_initialize_namespace): ISO C declaration.
2674 * charset.c (_initialize_charset): Add missing prototype.
2675 * regcache.c (init_legacy_regcache_descr): Make static.
2676 (do_regcache_xfree): Make static.
2677 (regcache_xfer_part): Make static.
2678 (_initialize_regcache): Add missing prototype.
2679 * breakpoint.c (parse_breakpoint_sals): Make static.
2680 (breakpoint_sals_to_pc): Make static.
2681 * interps.h (clear_interpreter_hooks): ISO C declaration.
2682 * Makefile.in (stack_h): Define.
2683 (stack.o, typeprint.o, mi-main.o): Update dependencies.
2684 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
2685
2686 2003-06-08 Andrew Cagney <cagney@redhat.com>
2687
2688 * Makefile.in (d10v-tdep.o): Update dependencies.
2689 (SFILES): Add trad-frame.c.
2690 (trad_frame_h): Define.
2691 (COMMON_OBS): Add trad-frame.o.
2692 (trad-frame.o): Specify dependencies.
2693 * d10v-tdep.c: Include "trad-frame.h".
2694 (saved_regs_unwinder): Delete function.
2695 (d10v_frame_prev_register): Use trad_frame_prev_register.
2696 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
2697 trad_frame", delete "regs" and "prev_sp".
2698 (prologue_find_regs): Use trad-frame.
2699 * trad-frame.h, trad-frame.c: New files.
2700
2701 2003-06-08 Mark Kettenis <kettenis@gnu.org>
2702
2703 * dwarf2cfi.c, dwarf2cfi.h: Remove.
2704
2705 2003-06-07 Adam Fedor <fedor@gnu.org>
2706
2707 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
2708 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
2709 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
2710 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
2711 resolve_msgsend_super, resolve_msgsend_super_stret):
2712 Use it.
2713
2714 2003-06-07 Andrew Cagney <cagney@redhat.com>
2715
2716 * symfile.h: Re-indent, clean up comments.
2717
2718 2003-06-07 Andrew Cagney <cagney@redhat.com>
2719
2720 * inferior.h (deprecated_write_sp): Replace
2721 generic_target_write_sp.
2722 * regcache.c (deprecated_write_sp): Replace
2723 generic_target_write_sp.
2724 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2725 * vax-tdep.c (vax_gdbarch_init): Update.
2726 * v850-tdep.c (v850_gdbarch_init): Update.
2727 * sparc-tdep.c (sparc_gdbarch_init): Update.
2728 * sh-tdep.c (sh_gdbarch_init): Update.
2729 * s390-tdep.c (s390_gdbarch_init): Update.
2730 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2731 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2732 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2733 * mcore-tdep.c (mcore_gdbarch_init): Update.
2734 * m68k-tdep.c (m68k_gdbarch_init): Update.
2735 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2736 * ia64-tdep.c (ia64_gdbarch_init): Update.
2737 * h8300-tdep.c (h8300_gdbarch_init): Update.
2738 * frv-tdep.c (frv_gdbarch_init): Update.
2739 * cris-tdep.c (cris_gdbarch_init): Update.
2740 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2741
2742 2003-06-07 Andrew Cagney <cagney@redhat.com>
2743
2744 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
2745 Assert that PC_REGNUM is valid.
2746 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
2747
2748 2003-06-07 Andrew Cagney <cagney@redhat.com>
2749
2750 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
2751 * gdbarch.h, gdbarch.c: Regenerate.
2752 * mn10300-tdep.c: Include "gdb_assert.h".
2753 (mn10300_read_fp): New function.
2754 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
2755 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
2756 * ia64-tdep.c: Include "gdb_assert.h".
2757 (ia64_read_fp): New function.
2758 (ia64_gdbarch_init): Set deprecated_target_read_fp to
2759 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
2760 * regcache.c (generic_target_read_sp): Delete function.
2761 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
2762 * inferior.h (generic_target_read_sp): Delete declaration.
2763 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
2764 generic_target_read_sp.
2765 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2766 * sparc-tdep.c (sparc_gdbarch_init): Ditto
2767 * sh-tdep.c (sh_gdbarch_init): Ditto.
2768 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2769 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
2770
2771 2003-06-07 Andrew Cagney <cagney@redhat.com>
2772
2773 * gdbarch.sh: Comment each field of startup_gdbarch.
2774 * gdbarch.h, gdbarch.c: Re-generate.
2775
2776 2003-06-07 Andrew Cagney <cagney@redhat.com>
2777
2778 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
2779 * gdbarch.h, gdbarch.c: Re-generate.
2780 * regcache.c: Update comments on read_pc et.al.
2781 (generic_target_read_pc): Delete function.
2782 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
2783 * inferior.h (generic_target_read_pc): Delete declaration.
2784 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
2785 generic_target_read_pc.
2786 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2787 * sh-tdep.c (sh_gdbarch_init): Ditto.
2788 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2789 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2790
2791 2003-06-07 Andrew Cagney <cagney@redhat.com>
2792
2793 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
2794 "index" with "special_local_sect". Use strcmp instead of STREQ.
2795 Append period to coments.
2796
2797 2003-06-06 Mark Mitchell <mark@codesourcery.com>
2798
2799 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
2800 (elfstab_offset_sections): Likewise.
2801 * gdb-stabs.h (stab_section_info): Likewise.
2802 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
2803 * objfiles.c (objfile_relocate): Likewise.
2804 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
2805 * remote.c (get_offsets): Likewise.
2806 (remote_cisco_objfile_relocate): Likewise.
2807 * somread.c (som_symfile_offsets): Likewise.
2808 * symfile.c (alloc_section_addr_info): New function.
2809 (build_section_addr_info_from_section_tab): Use it.
2810 (free_section_addr_info): Adjust.
2811 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
2812 (syms_from_objfile): Allocate local_addr dynamically.
2813 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
2814 dynamically.
2815 (add_symbol_file_command): Allocate sect_opts dynamically.
2816 (reread_symbols): Avoid use of SECT_OFF_MAX.
2817 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
2818 (alloc_section_addr_info): Declare it.
2819 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
2820 * win32-nat.c (solib_symbols_add): Allocate section_addrs
2821 dynamically.
2822 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
2823
2824 2003-06-06 Andrew Cagney <cagney@redhat.com>
2825
2826 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
2827 (d10v_frame_unwind_cache): Do not set "return_pc".
2828
2829 2003-06-06 Michael Snyder <msnyder@redhat.com>
2830
2831 * h8300-tdep.c: Make tidy (long lines).
2832
2833 2003-06-06 Michal Ludvig <mludvig@suse.cz>
2834
2835 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
2836 to regcache_collect().
2837
2838 2003-06-05 J. Brobecker <brobecker@gnat.com>
2839
2840 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
2841 pc_in_sigtramp multiarch method.
2842 (hppa_hpux_som_init_abi): Use it.
2843 (hppa_hpux_elf_init_abi): Likewise.
2844 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
2845 macro has been multiarched.
2846 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
2847 macro here, as hppa64 isn't multiarched yet.
2848
2849 2003-06-05 Andrew Cagney <cagney@redhat.com>
2850
2851 * Makefile.in (value_h): Add $(frame_h).
2852 * value.h: Include "frame.h".
2853 (struct value): Replace "frame_addr" with "frame_id".
2854 (VALUE_FRAME_ID): Replace VALUE_FRAME.
2855 * values.c (allocate_value): Use VALUE_FRAME_ID.
2856 (value_copy): Use VALUE_FRAME_ID.
2857 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
2858 * valops.c (value_assign): Update. Use frame_find_by_id.
2859
2860 2003-06-05 Michal Ludvig <mludvig@suse.cz>
2861
2862 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
2863 in each pass.
2864
2865 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
2866
2867 * thread-db.c (check_event): For create/death event breakpoints,
2868 loop through all messages to ensure that we read the message
2869 corresponding to the breakpoint we are at.
2870
2871 2003-06-04 Michael Snyder <msnyder@redhat.com>
2872
2873 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
2874
2875 2003-06-04 Mark Kettenis <kettenis@gnu.org>
2876
2877 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
2878 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
2879 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
2880 when handling .eh_frame sections.
2881
2882 2003-06-04 J. Brobecker <brobecker@gnat.com>
2883
2884 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
2885 prepare_to_proceed procedure instead of the hppa-specific one.
2886 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
2887
2888 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
2889
2890 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
2891 * config.in: Regenerated.
2892 * configure.in: Add test for syscall function and check for
2893 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
2894 * configure: Regenerated.
2895 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
2896 <sys/syscall.h>.
2897 (kill_lwp): New function that uses tkill syscall or
2898 uses kill, depending on whether threading model is nptl or not.
2899 All callers of kill() changed to use kill_lwp().
2900 (lin_lwp_wait): Make special check when WIFEXITED occurs to
2901 see if all threads have already exited in the nptl model.
2902 (stop_and_resume_callback): New callback function used by the
2903 lin_lwp_wait thread exit handling code.
2904 (stop_wait_callback): Check for threads already having exited and
2905 delete such threads fromt the lwp list when discovered.
2906 (stop_callback): Don't assert retcode of kill call.
2907
2908 Roland McGrath <roland@redhat.com>
2909 * i386-linux-nat.c (ps_get_thread_area): New function needed by
2910 nptl libthread_db.
2911
2912 2003-06-03 Richard Henderson <rth@redhat.com>
2913
2914 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
2915 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
2916 (alpha_sigtramp_frame_prev_register): Likewise.
2917 (alpha_heuristic_frame_prev_register): Likewise.
2918 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
2919
2920 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
2921 alpha-specific register id names.
2922 (alpha_mdebug_frame_unwind_cache): Likewise.
2923 (alpha_mdebug_frame_prev_register): Likewise.
2924
2925 2003-06-03 Richard Henderson <rth@redhat.com>
2926
2927 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
2928 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
2929 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
2930 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
2931 unwind routines.
2932 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2933 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2934 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2935
2936 * alpha-linux-tdep.c: Remove unnecessary includes.
2937 * Makefile.in (alpha-linux-tdep.o): Update.
2938
2939 2003-06-03 Richard Henderson <rth@redhat.com>
2940
2941 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
2942 (alphabsd_fill_fpreg): Likewise.
2943
2944 2003-06-03 J. Brobecker <brobecker@gnat.com>
2945
2946 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
2947 references to struct frame_info fields by calls to the equivalent
2948 accessors. Necessary now that frame_info is opaque.
2949
2950 2003-06-03 J. Brobecker <brobecker@gnat.com>
2951
2952 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
2953 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
2954 structure, field no longer exists.
2955
2956 2003-06-03 J. Brobecker <brobecker@gnat.com>
2957
2958 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2959 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
2960
2961 2003-06-03 J. Brobecker <brobecker@gnat.com>
2962
2963 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
2964 references to struct frame_info fields by calls to the equivalent
2965 accessors. Necessary now that frame_info is opaque.
2966
2967 2003-06-03 J. Brobecker <brobecker@gnat.com>
2968
2969 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
2970 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
2971 structure, field no longer exists.
2972
2973 2003-06-03 Theodore A. Roth <troth@openavr.org>
2974
2975 * remote.c (init_remote_state): Compute sizeof_g_packet by
2976 accumulation of the size of all registers instead of blindly using
2977 DEPRECATED_REGISTER_BYTES.
2978
2979 2003-06-03 Michael Snyder <msnyder@redhat.com>
2980
2981 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
2982 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
2983 for h8300sx.
2984
2985 2003-06-03 J. Brobecker <brobecker@gnat.com>
2986
2987 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
2988 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
2989
2990 2003-06-03 Andrew Cagney <cagney@redhat.com>
2991
2992 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
2993 (sparc_convert_to_raw): Delete function.
2994 (sparc_gdbarch_init): Do not set register_convert_to_raw or
2995 register_convert_to_virtual.
2996
2997 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
2998
2999 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3000 layer if not dealing with a statically-linked threaded program.
3001
3002 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3003
3004 * solib.c (solib_open): Update comment to reflect actual search order.
3005
3006 2003-06-03 Andrew Cagney <cagney@redhat.com>
3007
3008 * frame.c (get_frame_memory_signed): New function.
3009 (get_frame_memory, get_frame_memory_unsigned): New function.
3010 (get_frame_arch): New function.
3011 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3012 (get_frame_memory, get_frame_unsigned_memory): Declare.
3013 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3014 get_frame_memory_unsigned and get_frame_arch.
3015 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3016
3017 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3018
3019 * MAINTAINERS (write after approval): Add myself.
3020
3021 2003-06-03 Jim Blandy <jimb@redhat.com>
3022
3023 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3024 elements of gregset_t are 64 bits each, but access registers
3025 are still 32 bits, so they're packed two per gregset_t
3026 element. Unpack/pack them properly.
3027
3028 2003-06-02 David Carlton <carlton@bactrian.org>
3029
3030 * linespec.c (find_methods): Break out code into
3031 add_matching_methods and add_constructors.
3032 (add_matching_methods): New.
3033 (add_constructors): Ditto.
3034
3035 2003-06-02 Andrew Cagney <cagney@redhat.com>
3036
3037 * sparc-tdep.c (sparc_print_registers): Delete call to
3038 REGISTER_CONVERTIBLE.
3039 (sparc_gdbarch_init): Do not set register_convertible.
3040 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3041 * frv-tdep.c (frv_gdbarch_init): Ditto.
3042 * cris-tdep.c (cris_gdbarch_init): Ditto.
3043
3044 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3045
3046 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3047 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3048 (syms_from_objfile): Ditto.
3049
3050 2003-06-03 Andreas Schwab <schwab@suse.de>
3051
3052 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3053 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3054
3055 2003-06-02 Richard Henderson <rth@redhat.com>
3056
3057 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3058 a member of all_reggroup.
3059
3060 2003-06-02 Richard Henderson <rth@redhat.com>
3061
3062 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3063 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3064 (alpha_lds, alpha_sts): New.
3065 (alpha_convert_register_p): Change from _register_convertible.
3066 (alpha_register_to_value): Change from _convert_to_virtual;
3067 restructure and fail for type sizes other than 4 or 8.
3068 (alpha_value_to_register): Similarly.
3069 (alpha_extract_return_value): Use alpha_sts.
3070 (alpha_store_return_value): Use alpha_lds.
3071 (alpha_gdbarch_init): Update hooks.
3072
3073 2003-06-02 Richard Henderson <rth@redhat.com>
3074
3075 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3076 regnum identifiers.
3077 (alpha_sigtramp_register_address): Likewise.
3078
3079 2003-06-02 Richard Henderson <rth@redhat.com>
3080
3081 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3082 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3083 * alpha-tdep.h: Declare them.
3084
3085 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3086 Remove zerobuf. Don't error on UNIQUE.
3087 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3088 (ALPHA_REGSET_UNIQUE): Provide default.
3089 (supply_gregset): Use alpha_supply_int_regs.
3090 (fill_gregset): Use alpha_fill_int_regs.
3091 (supply_fpregset): Use alpha_supply_fp_regs.
3092 (fill_fpregset): Use alpha_fill_fp_regs.
3093 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3094 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3095 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3096 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3097 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3098 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3099
3100 2003-06-02 Richard Henderson <rth@redhat.com>
3101
3102 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3103
3104 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3105 (alpha_store_return_value): Likewise.
3106
3107 2003-06-02 David Carlton <carlton@math.stanford.edu>
3108
3109 * block.c (contained_in): Add 'const' to arguments.
3110 (block_function): Ditto.
3111 * block.h: Update declarations for block_function and
3112 contained_in.
3113
3114 2003-06-02 David Carlton <carlton@math.stanford.edu>
3115
3116 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3117 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3118 * p-valprint.c (pascal_val_print): Ditto.
3119 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3120
3121 2003-06-02 Richard Henderson <rth@redhat.com>
3122
3123 * alpha-tdep.c (alpha_push_dummy_call): Use
3124 builtin_type_ieee_double_little instead of builtin_type_double.
3125
3126 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3127 sign-extension of 32-bit values.
3128 (alpha_store_return_value): Similarly.
3129
3130 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3131 (alpha_extract_return_value): Likewise.
3132 (alpha_store_return_value): Likewise.
3133
3134 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3135 (alpha_store_return_value): Error on IEEE Quad floats.
3136
3137 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3138 (alpha_extract_struct_value_address): Likewise.
3139 (alpha_store_return_value): Likewise.
3140 (alpha_store_struct_return): Remove.
3141 (alpha_gdbarch_init): Update hook registration to match.
3142
3143 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3144 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3145 macros where appropriate.
3146 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3147 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3148
3149 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3150 for SP, GP; void_func_ptr for PC; non-language-specific types
3151 for all others.
3152 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3153
3154 2003-06-02 Richard Henderson <rth@redhat.com>
3155
3156 * top.h (lim_at_start): Declare.
3157 * main.c (captured_main): Set it.
3158 * top.c (lim_at_start): Define.
3159 (command_loop): Use it instead of &environ.
3160 * event-top.c (command_handler): Likewise.
3161
3162 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3163
3164 * mipsnbsd-tdep.c: Update copyright years.
3165 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3166
3167 2003-06-01 Richard Henderson <rth@redhat.com>
3168
3169 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3170 (alpha-linux-tdep.o): Update dependencies.
3171 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3172 * alpha-mdebug-tdep.c: Remove unneeded includes.
3173
3174 2003-06-01 Richard Henderson <rth@redhat.com>
3175
3176 * alpha-tdep.c (alpha_register_reggroup_p): New.
3177 (alpha_gdbarch_init): Register it.
3178
3179 2003-06-02 Andrew Cagney <cagney@redhat.com>
3180
3181 * dwarfread.c: Eliminate "register"
3182 (decode_die_type): Eliminate assignment within "if".
3183 (struct_type, decode_array_element_type): Ditto.
3184 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3185 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3186 (decode_modified_type, completedieinfo): Ditto.
3187 * block.c: Eliminate "register".
3188 (blockvector_for_pc_sect): Eliminate assignment within "if".
3189 * cp-support.h (struct symbol): Opaque declaration.
3190 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3191
3192 2003-06-01 Richard Henderson <rth@redhat.com>
3193
3194 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3195 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3196
3197 2003-06-01 Adam Fedor <fedor@gnu.org>
3198
3199 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3200 * gdbarch.[ch]: Regenerate.
3201 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3202 (hppa_gdbarch_init): Set it in the gdbarch vector.
3203 * i386-tdep.c (i386_fetch_pointer_argument): New
3204 (i386_gdbarch_init): Set it into gdbarch.
3205 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3206 (rs6000_gdbarch_init): Set it in gdbarch.
3207 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3208 (sparc_gdbarch_init): Set it in gdbarch.
3209
3210 2003-06-01 Andrew Cagney <cagney@redhat.com>
3211
3212 * defs.h (extract_address): Delete declaration.
3213 * findvar.c (extract_address): Delete function.
3214 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3215 extract_address with the inline equivalent,
3216 extract_unsigned_integer.
3217 (xstormy16_extract_struct_value_address): Ditto.
3218 (xstormy16_pointer_to_address): Ditto.
3219 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3220 * v850-tdep.c (v850_push_arguments): Ditto.
3221 (v850_extract_return_value): Ditto.
3222 (v850_extract_struct_value_address): Ditto.
3223 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3224 (sparcnbsd_get_longjmp_target_64): Ditto.
3225 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3226 (get_longjmp_target): Ditto.
3227 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3228 (sh64_extract_struct_value_address): Ditto.
3229 (sh_push_arguments): Ditto.
3230 (sh64_push_arguments): Ditto.
3231 * remote-vxsparc.c (vx_read_register): Ditto.
3232 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3233 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3234 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3235 * mipsv4-nat.c (get_longjmp_target): Ditto.
3236 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3237 * mips-nat.c (get_longjmp_target): Ditto.
3238 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3239 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3240 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3241 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3242 * irix5-nat.c (get_longjmp_target): Ditto.
3243 * irix4-nat.c (get_longjmp_target): Ditto.
3244 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3245 (ia64_push_arguments): Ditto.
3246 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3247 * h8300-tdep.c (h8300_push_arguments): Ditto.
3248 (h8300_store_return_value): Ditto.
3249 (h8300_extract_struct_value_address): Ditto.
3250 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3251 (frv_push_arguments): Ditto.
3252 * avr-tdep.c (avr_pointer_to_address): Ditto.
3253 (avr_push_arguments): Ditto.
3254 * arm-tdep.c (arm_push_dummy_call): Ditto.
3255 (arm_get_longjmp_target): Ditto.
3256 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3257 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3258 (alpha_get_longjmp_target): Ditto.
3259
3260 * solib-irix.c (extract_mips_address): Inline extract_address,
3261 replacing it with extract_signed_integer.
3262 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3263 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3264 (first_link_map_member, open_symbol_file_object): Ditto.
3265 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3266 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3267 (LM_NEXT, LM_NAME): Ditto.
3268
3269 2003-06-01 Richard Henderson <rth@redhat.com>
3270
3271 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3272 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3273 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3274 (alpha_cannot_store_register): Likewise.
3275 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3276 * alpha-nat.c (supply_gregset): Likewise.
3277 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3278
3279 2003-06-01 Andrew Cagney <cagney@redhat.com>
3280
3281 * infcall.c (call_function_by_hand): Update comment on
3282 DEPRECATED_DUMMY_WRITE_SP.
3283
3284 * mips-tdep.c (mips_gdbarch_init): Do not set
3285 deprecated_dummy_write_sp.
3286 (mips_eabi_push_dummy_call): Set the SP register.
3287 (mips_o64_push_dummy_call): Set the SP register.
3288 (mips_o32_push_dummy_call): Set the SP register.
3289 (mips_n32n64_push_dummy_call): Set the SP register.
3290
3291 2003-06-01 Richard Henderson <rth@redhat.com>
3292
3293 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3294 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3295 (supply_gregset): Likewise.
3296 * alpha-tdep.c (alpha_store_return_value): Likewise.
3297 (alpha_get_longjmp_target): Likewise.
3298 (alpha_register_name): Constify array.
3299 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3300 deprecated_register_size, deprecated_register_bytes,
3301 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3302 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3303 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3304
3305 2003-06-01 Richard Henderson <rth@redhat.com>
3306
3307 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3308 from arg_reg_buffer to regcache to avoid double conversion.
3309
3310 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3311
3312 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3313 SP_REGNUM.
3314 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3315 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3316
3317 2003-06-01 Richard Henderson <rth@redhat.com>
3318
3319 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3320 (decode_frame_entry): Set it. Skip FDE augmentation.
3321
3322 2003-06-01 Richard Henderson <rth@redhat.com>
3323
3324 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3325 not overlapping PC_REGNUM.
3326
3327 2003-06-01 Richard Henderson <rth@redhat.com>
3328
3329 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3330 alpha_push_arguments. Don't dump argument register data to
3331 the target stack. Fix float and 128-bit long double semantics.
3332 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3333 (alpha_fix_call_dummy): Remove.
3334 (alpha_call_dummy_words): Remove.
3335 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3336
3337 2003-06-01 Richard Henderson <rth@redhat.com>
3338
3339 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3340
3341 2003-06-01 Andrew Cagney <cagney@redhat.com>
3342
3343 * mips-tdep.c (is_mips16_addr): New function.
3344 (make_mips16_addr, unmake_mips16_addr): New functions.
3345 (pc_is_mips16, mips_fetch_instruction): Use.
3346 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3347 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3348 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3349 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3350 TARGET_MIPS.
3351 * config/mips/tm-mips.h: Update copyright.
3352 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3353 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3354 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3355 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3356 (TM_PRINT_INSN_MACH): Delete.
3357 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3358
3359 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3360 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3361 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3362 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3363 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3364 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3365 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3366 mips*-*-riscos* and mips*-*-sysv* onto mips.
3367 * config/mips/mips64.mt: New file.
3368 * config/mips/mips.mt: New file.
3369 * config/mips/littlemips.mt: Delete file.
3370 * config/mips/decstation.mt: Delete file.
3371 * config/mips/vr4300el.mt: Delete file.
3372 * config/mips/vr5000el.mt: Delete file.
3373 * config/mips/vr5000.mt: Delete file.
3374 * config/mips/vr4100.mt: Delete file.
3375 * config/mips/vr4xxxel.mt: Delete file.
3376 * config/mips/vr4300.mt: Delete file.
3377 * config/mips/vr4xxx.mt: Delete file.
3378 * config/mips/bigmips.mt: Delete file.
3379 * config/mips/bigmips64.mt: Delete file.
3380 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3381 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3382 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3383 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3384 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3385 "tm-bigmips.h".
3386 * config/mips/tm-irix3.h: Ditto.
3387 * config/mips/tm-mipsv4.h: Ditto.
3388 * config/mips/tm-embed.h: Ditto.
3389 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3390 "tm-bigmips64.h".
3391 * config/mips/tm-vr5000el.h: Delete file.
3392 * config/mips/tm-tx39l.h: Delete file.
3393 * config/mips/tm-vr4300el.h: Delete file.
3394 * config/mips/tm-vr4xxxel.h: Delete file.
3395 * config/mips/tm-vr4300.h: Delete file.
3396 * config/mips/tm-vr4100.h: Delete file.
3397 * config/mips/tm-vr4xxx.h: Delete file.
3398 * config/mips/tm-vr5000.h: Delete file.
3399 * config/mips/tm-embedl64.h: Delete file.
3400 * config/mips/tm-embedl.h: Delete file.
3401 * config/mips/tm-embed64.h: Delete file.
3402 * config/mips/tm-bigmips64.h: Delete file.
3403 * config/mips/tm-bigmips.h: Delete file.
3404
3405 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3406
3407 Fix gdb/1216.
3408 * shnbsd-nat.c: Include "sh-tdep.h".
3409
3410 From Richard Henderson <rth@redhat.com>:
3411 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3412
3413 2003-05-31 Andrew Cagney <cagney@redhat.com>
3414
3415 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3416 forward declaration.
3417 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3418 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3419 (mips_find_saved_regs): Use set_reg_offset.
3420 (mips_frame_init_saved_regs): Delete function.
3421 (mips_pop_frame): Call mips_find_saved_regs instead of
3422 DEPRECATED_FRAME_INIT_SAVED_REGS.
3423
3424 2003-05-31 Andrew Cagney <cagney@redhat.com>
3425
3426 * mips-tdep.c (mips_gdbarch_init): Do not set
3427 deprecated_max_register_raw_size, register_virtual_size, and
3428 deprecated_max_register_virtual_size.
3429
3430 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3431
3432 * i386-tdep.c: Include "dwarf2-frame.h".
3433 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3434 * Makefile.in (i386-tdep.o): Update dependencies.
3435
3436 * dwarf2-frame.c, dwarf2-frame.h: New files.
3437 * Makefile.in (SFILES): Add dwarf2-frame.c.
3438 (dwarf2_frame_h): Define.
3439 (COMMON_OBS): Add dwarf2-frame.o.
3440 (dwarf2-frame.o): Add dependencies.
3441
3442 2003-05-31 Andreas Jaeger <aj@suse.de>
3443
3444 * x86-64-linux-nat.c: Fix comment.
3445
3446 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3447
3448 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3449 function signature.
3450
3451 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3452 have a sigcontext_addr handler.
3453 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3454 sigcontext_addr handler.
3455
3456 2003-05-31 Andrew Cagney <cagney@redhat.com>
3457
3458 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3459 (print_fp_register_row): Replace do_fp_register_row.
3460 (mips_print_fp_register): Add "file" and "frame" parameters.
3461 (mips_print_register): Add "file" and "frame" parameters.
3462 (mips_print_registers_info): Replace mips_do_registers_info.
3463 (mips_gdbarch_init): Set print_registers_info instead of
3464 deprecated_do_registers_info.
3465 (mips_read_fp_register_single): Add "frame" parameter.
3466 (mips_read_fp_register_double): Add "frame" parameter.
3467
3468 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3469
3470 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3471 Fixes a bug where GDB would print the wrong register names for
3472 targets without SSE.
3473
3474 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3475 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3476 registers.
3477
3478 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3479 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3480 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3481 TDEP->sc_sp_offset.
3482
3483 From Michal Ludvig <mludvig@suse.cz>:
3484 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3485 and `sc_num_regs'.
3486 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3487 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3488 I386_ST0_REGNUM): Move here from...
3489 * i386-tdep.c: ... here.
3490 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3491 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3492 registers if possible.
3493 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3494 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3495 Remove variables.
3496 (i386bsd_sc_reg_offset): New variable.
3497 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3498 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3499 TDEP->sc_sp_offset.
3500 (i386fbsd_sc_reg_offset): New variable.
3501 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3502 TDEP->sc_num_regs.
3503 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3504 variables.
3505 (i386fbsd4_sc_reg_offset): New variable.
3506 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3507 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3508 TDEP->sc_sp_offset.
3509 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3510 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3511 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3512 Remove variables.
3513 (i386nbsd_sc_reg_offset): New variable.
3514 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3515 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3516 TDEP->sc_sp_offset.
3517 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3518 Remove variables.
3519 (i386obsd_sc_reg_offset): New variable.
3520 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3521 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3522 TDEP->sc_sp_offset.
3523 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3524 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
3525 for frame pointer offset in `struct sigcontext'.
3526
3527 2003-05-31 Andrew Cagney <cagney@redhat.com>
3528
3529 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3530 architecture methods call_dummy_words, sizeof_call_dummy_words,
3531 push_return_address, store_struct_return, and fix_call_dummy. Set
3532 push_dummy_call instead of deprecated_push_arguments.
3533 (mips_store_struct_return): Delete function.
3534 (mips_fix_call_dummy): Delete function.
3535 (mips_push_return_address): Delete function.
3536 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3537 RA_REGNUM and T9_REGNUM.
3538 (mips_n32n64_push_dummy_call): Ditto for
3539 mips_n32n64_push_arguments.
3540 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3541 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3542
3543 2003-05-31 Andrew Cagney <cagney@redhat.com>
3544
3545 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
3546 "dummy_addr" to "bp_addr".
3547 * infcall.c (call_function_by_hand): Pass "funaddr" to
3548 gdbarch_push_dummy_call.
3549 * gdbarch.h, gdbarch.c: Re-generate.
3550 * i386-tdep.c (i386_push_dummy_call): Update.
3551 * arm-tdep.c (arm_push_dummy_call): Update.
3552 * d10v-tdep.c (d10v_push_dummy_call): Update.
3553
3554 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3555
3556 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3557 variable declarations.
3558 (x86_64_register_number, x86_64_register_name): Remove prototypes.
3559 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3560 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3561 x86_64_init_frame_pc, x86_64_init_frame_pc,
3562 x86_64_function_has_prologue): Remove prototypes.
3563 (X86_64_NUM_GREGS): New define.
3564 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3565 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
3566 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3567 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3568 XMM1_REGNUM): Remove defines.
3569 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3570 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3571 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3572 X86_64_XMM1_REGNUM): New defines.
3573 (struct x86_64_register_info): Renamed from `struct
3574 register_info'. Remove `size' member.
3575 (x86_64_register_info_table): Remove variable.
3576 (x86_64_register_info): New variable.
3577 (X86_64_NUM_REGS): New define.
3578 (X86_64_NUM_GREGS): Remove define.
3579 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
3580 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
3581 Remove variables.
3582 (x86_54_dwarf2_reg_to_regnum): Remove function.
3583 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
3584 (x86_64_dwarf_reg_to_regnum): New function.
3585 (x86_64_register_name): Rewrite.
3586 (x86_64_register_raw_size): Remove function.
3587 (x86_64_register_byte_table): Remove variable.
3588 (x86_64_register_byte): Remove function.
3589 (x86_64_register_virtual_type): Remove function.
3590 (x86_64_register_type): New function.
3591 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
3592 x86_64_register_convert_to_raw): Remove functions.
3593 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
3594 (x86_64_use_struct_convention): Make static. Adjust for renamed
3595 defines.
3596 (x86_64_frame_init_saved_regs): Remove function.
3597 (x86_64_push_arguments): Make static. Change to accept a regcache
3598 as argument.
3599 (x86_64_store_return_value, x86_64_extract_return_value): Make
3600 static. Rewrite based on i386 counterparts.
3601 (x86_64_push_dummy_call): New function.
3602 (X86_64_NUM_SAVED_REGS): New define.
3603 (x86_64_register_number): Remove function.
3604 (x86_64_store_struct_return): Remove function.
3605 (x86_64_frameless_function_invocation,
3606 x86_64_function_has_prologue): Remove functions.
3607 (PROLOG_BUFSIZE): Remove define.
3608 (struct x86_64_frame_cache): New structure.
3609 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
3610 x86_64_frame_cache, x86_64_frame_this_id,
3611 x86_64_frame_prev_register, x86_64_frame_p,
3612 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
3613 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
3614 functions.
3615 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
3616 variables.
3617 (x86_64_skip_prologue): Rewrite in terms of
3618 x86_64_analyze_prologue.
3619 (x86_64_frame_base_address): New function.
3620 (x86_64_frame_base): New variable.
3621 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
3622 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
3623 set deprecated_fp_regnum, deprecated_register_size,
3624 deprecated_register_bytes, register_raw_size, register_byte,
3625 register_virtual_type, register_convertiable,
3626 register_convert_to_virtual, convert_to_raw,
3627 deprecated_get_saved_register, deprecated_target_read_fp,
3628 deprecated_push_arguments, deprecated_push_return_address,
3629 deprecated_pop_frame, deprecated_store_struct_return,
3630 deprecated_frame_init_saved_regs, deprecated_frame_chain,
3631 frameless_function_invocation, deprecated_frame_saved_pc,
3632 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
3633 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
3634 deprecated_init_frame_pc and virtual_frame_pointer. Call
3635 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
3636 and x86_64_frame_p. Call frame_base_set_default to register
3637 x86_64_frame_base.
3638 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
3639 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
3640 (_initialize_x86_64_tdep): Remove function.
3641 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
3642 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
3643 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
3644 define.
3645 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
3646 (x86_64_linux_sigcontext_addr): Rewrite.
3647 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
3648 x86_64_linux_frame_saved_pc): Remove functions.
3649 (x86_64_linux_pc_in_sigtramp): Renamed from
3650 x86_64_linux_in_sigtramp. Try harder to recognize a signal
3651 trampoline.
3652 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
3653 Remove_functions.
3654 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
3655 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3656 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
3657 (x86_64_regmap): Rename to regmap.
3658 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
3659 x86_64_num_gregs.
3660 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
3661 x86_64_regmap.
3662 (x86_64_fxsave_offset): Remove function.
3663 (supply_fpregset): Simply call x86_64_supply_fxsave.
3664 (fill_fpregset): Simply call x86_64_fill_fxsave.
3665 (fetch_inferior_registers, store_inferior_registers): Avoid
3666 asignment in if-statement.
3667 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
3668 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
3669 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
3670 (fetch_core_registers): Remove function.
3671 (linux_elf_core_fns): Remove.
3672 (offsetoff): Don't define.
3673 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
3674 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
3675 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
3676 add core-regset.o.
3677 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
3678 protection against multiple includes instead of NM_X86_64_h. Add
3679 various comments. Include "config/nm-linux.h". Don't include
3680 <signal.h>.
3681 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
3682 GET_THREAD_SIGNALS): Remove defines.
3683 (x86_64_register_u_addr, kernel_u_size,
3684 lin_thread_get_thread_signals): Remove prototypes.
3685 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
3686 [HAVE_LINK_H]: Don't include "solib.h".
3687 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
3688 * config/i386/tm-x86-64linux.h: Fix comments.
3689 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
3690 x86-64-tdep.o): Update dependencies.
3691
3692 2003-05-30 Andrew Cagney <cagney@redhat.com>
3693
3694 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
3695 Change parameter type to a "struct regcache *".
3696
3697 * gdbarch.sh: Regardless of the multi-arch level, always define
3698 the macro when not already defined.
3699 * gdbarch.h, gdbarch.c: Re-generate.
3700
3701 2003-05-30 Richard Henderson <rth@redhat.com>
3702
3703 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
3704 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
3705 (alpha_mdebug_frame_this_id): Likewise.
3706 (alpha_mdebug_frame_prev_register): Likewise.
3707 (alpha_mdebug_frame_base_address): Likewise.
3708 (alpha_mdebug_frame_locals_address): Likewise.
3709 (alpha_mdebug_frame_args_address): Likewise.
3710 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
3711 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
3712 (alpha_heuristic_frame_unwind_cache): Make static; add missing
3713 loop increment.
3714 (alpha_heuristic_frame_this_id): Make static.
3715 (alpha_heuristic_frame_prev_register): Likewise.
3716 (alpha_heuristic_frame_base_address): Likewise.
3717 * alpha-tdep.h: Update.
3718
3719 2003-05-30 Mark Kettenis <kettenis@gnu.org>
3720
3721 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
3722 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
3723 defenitions.
3724 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
3725 * i386-tdep.c: Mark functions that are 64-bit safe as such.
3726 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3727 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3728 I386_ST0_REGNUM): New defines.
3729 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
3730 codestream_get): Remove define.
3731 (codestream_next_addr, condestream_addr, condestream_buf,
3732 codestream_off, codestream_cnt): Remove variables.
3733 (codestream_fill, codestream_seek, codestream_read): Remove
3734 functions.
3735 (i386_follow_jump): Rewrite to avoid usage of removed codestream
3736 functionality.
3737 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
3738 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
3739 i386_frame_saved_pc, i386_saved_pc_after_call,
3740 i386_frame_num_args, i386_frame_init_saved_regs,
3741 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
3742 i386_push_arguments): Remove functions.
3743 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
3744 functionality. Use i386_analyze_prologue instead of
3745 i386_get_frame_setup.
3746 (I386_NUM_SAVED_REGS): New define.
3747 (struct i386_frame_cache): New structure.
3748 (i386_alloc_frame_cache, i386_analyze_struct_return,
3749 i386_skip_probe, i386_analyze_frame_setup,
3750 i386_analyze_register_saves, i386_analyze_prologue,
3751 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
3752 i386_frame_prev_register, i386_sigtramp_frame_cache,
3753 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
3754 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
3755 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
3756 New functions.
3757 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
3758 New variables.
3759 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
3760 I386_EAX_REGNUM and I386_EDX_REGNUM.
3761 (i386_extract_return_value, i386_store_return_value): Use
3762 I386_ST0_REGNUM where appropriate.
3763 (i386_extract_struct_value_address): Rewrite to use extract_address.
3764 (i386_svr4_pc_in_sigtramp): Add comment.
3765 (i386_svr4_sigcontext_addr): Rewrite.
3766 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
3767 TDEP->sc_sp_offset.
3768 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
3769 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
3770 of new defines. Set push_dummy_call, don't set
3771 deprecated_push_arguments, deprecated_push_return_address,
3772 deprecated_pop_frame. Don't set parm_boundary. Don't set
3773 deprecated_frame_chain, deprecated_frame_saved_pc,
3774 deprecated_saved_pc_after_call. Set unwind_dummy_id,
3775 save_dummy_frame_tos, unwind_pc. Call
3776 frame_unwind_append_predicate and frame_base_set_default. Don't
3777 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
3778 Don't set frameless_function_invocation. Don't set
3779 deprecated_register_bytes, deprecated_register_size,
3780 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
3781 * i386-linux-tdep.c: Fix formatting in some comments.
3782 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
3783 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
3784 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
3785 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
3786 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
3787 redundant parentheses.
3788 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
3789 (i386_linux_sigcontext_addr): Use it. Rewrite.
3790 (find_minsym_and_objfile): Change name of second argument.
3791 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
3792 changed. Use frame_pc_unwind instead of
3793 DEPRECATED_SAVED_PC_AFTER_CALL.
3794 (i386_linux_init_abi): Don't set deprecated_register_bytes.
3795 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
3796 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
3797 unwinder.
3798 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
3799 "dummy-frame.h".
3800 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
3801 (_initialize_i386_cygwin_tdep): New prototype.
3802 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
3803 deprecated_frame_chain_valid.
3804 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
3805 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3806 Rely on the SVR4 defaults.
3807 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
3808 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
3809
3810 2003-05-30 Andrew Cagney <cagney@redhat.com>
3811
3812 * infcall.c (call_function_by_hand): Always call
3813 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
3814
3815 2003-05-30 Richard Henderson <rth@redhat.com>
3816
3817 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
3818 increment.
3819
3820 2003-05-29 Jim Blandy <jimb@redhat.com>
3821
3822 Use gdbarch methods for solib stuff on PowerPC Linux.
3823 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
3824 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
3825 show through.
3826 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3827 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
3828 giving the same effect as the #definitions above.
3829
3830 2003-05-29 Adam Fedor <fedor@gnu.org>
3831
3832 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
3833 (find_implementation_from_class): Replace it with the standard
3834 case i.e. do nothing.
3835
3836 2003-05-29 Richard Henderson <rth@redhat.com>
3837
3838 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
3839 (alpha_linux_sigtramp_offset): Use it. Make static.
3840 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
3841 update for new frame model.
3842 * alpha-mdebug-tdep.c: New file.
3843 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
3844 (alpha_osf1_init_abi): Install it.
3845 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
3846 (linked_proc_desc_table): Remove.
3847 (alpha_frame_past_sigtramp_frame): Remove.
3848 (alpha_dynamic_sigtramp_offset): Remove.
3849 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
3850 (alpha_proc_desc_is_dyn_sigtramp): Remove.
3851 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
3852 (push_sigtramp_desc): Remove.
3853 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
3854 (alpha_cannot_store_register): Likewise.
3855 (alpha_sigcontext_addr): Remove.
3856 (alpha_find_saved_regs): Remove.
3857 (alpha_frame_init_saved_regs): Remove.
3858 (alpha_init_frame_pc_first): Remove.
3859 (read_next_frame_reg): Remove.
3860 (alpha_frame_saved_pc): Remove.
3861 (alpha_saved_pc_after_call): Remove.
3862 (temp_proc_desc, temp_saved_regs): Remove.
3863 (alpha_about_to_return): Remove.
3864 (cached_proc_desc): Remove.
3865 (alpha_frame_chain): Remove.
3866 (alpha_print_extra_frame_info): Remove.
3867 (alpha_init_extra_frame_info): Remove.
3868 (alpha_frame_locals_address): Remove.
3869 (alpha_frame_args_address): Remove.
3870 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
3871 (alpha_push_dummy_frame): Remove.
3872 (alpha_pop_frame): Remove.
3873 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
3874 (alpha_read_insn): New.
3875 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
3876 for different insn encodings.
3877 (alpha_in_lenient_prologue): Remove.
3878 (struct alpha_sigtramp_unwind_cache): New.
3879 (alpha_sigtramp_frame_unwind_cache): New.
3880 (alpha_sigtramp_register_address): New.
3881 (alpha_sigtramp_frame_this_id): New.
3882 (alpha_sigtramp_frame_prev_register): New.
3883 (alpha_sigtramp_frame_unwind): New.
3884 (alpha_sigtramp_frame_p): New.
3885 (struct alpha_heuristic_unwind_cache): New.
3886 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
3887 don't count nop insns that occur between functions.
3888 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
3889 heuristic_proc_desc, but without the mdebug wrapping.
3890 (alpha_heuristic_frame_this_id): New.
3891 (alpha_heuristic_frame_prev_register): New.
3892 (alpha_heuristic_frame_unwind): New.
3893 (alpha_heuristic_frame_p): New.
3894 (alpha_heuristic_frame_base_address): New.
3895 (alpha_heuristic_frame_base): New.
3896 (alpha_unwind_dummy_id): New.
3897 (alpha_unwind_pc): New.
3898 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
3899 frame related deprecated initializations; install replacements.
3900 (alpha_dump_tdep): Remove.
3901 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
3902 (alpha_read_insn, alpha_after_prologue,
3903 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
3904 alpha_heuristic_frame_prev_register,
3905 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
3906 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3907 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
3908 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
3909
3910 2003-05-29 Andrew Cagney <cagney@redhat.com>
3911
3912 * gdb_assert.h (gdb_assert_fail): Provide different definitions
3913 dependant on the availability of ASSERT_FUNCTION.
3914 (ASSERT_FUNCTION): Do not define when there is no function name.
3915
3916 2003-05-29 Kevin Buettner <kevinb@redhat.com>
3917
3918 From Jimi X <jimix@watson.ibm.com>:
3919 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
3920
3921 2003-05-28 Jim Blandy <jimb@redhat.com>
3922
3923 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
3924 argument to ptrace to int; the system headers should give it the
3925 right type, and pointers don't fit in ints on powerpc64-*-*.
3926
3927 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
3928
3929 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
3930 DW_TAG_catch_block.
3931
3932 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
3933
3934 * stabsread.c (dbx_lookup_type): Make static.
3935 (read_type): Ditto.
3936 (add_undefined_type): Ditto.
3937 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
3938 not export.
3939
3940 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
3941
3942 * hpread.c (hpread_has_name): Make static.
3943 (hpread_psymtab_to_symtab): Ditto.
3944 (file_exists): Ditto.
3945 (hpread_call_pxdb): Ditto.
3946 (hpread_pxdb_needed): Ditto.
3947 (hpread_quick_traverse): Ditto.
3948 (hpread_get_header): Ditto.
3949 (hpread_get_lntt): Ditto.
3950 (hpread_get_slt): Ditto.
3951 (class_of): Ditto.
3952
3953 2003-05-25 Andreas Schwab <schwab@suse.de>
3954
3955 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
3956 stack_align and deprecated_extra_stack_alignment_needed.
3957 (m68k_stack_align): Delete.
3958
3959 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
3960 (m68k_register_virtual_size): Likewise.
3961 (altos_skip_prologue): Remove obsolete function.
3962 (isi_frame_num_args): Likewise.
3963 (news_frame_num_args): Likewise.
3964 (m68k_fix_call_dummy): Make static.
3965 (m68k_push_dummy_frame): Likewise.
3966 (m68k_pop_frame): Likewise.
3967 (m68k_skip_prologue): Likewise.
3968 (m68k_frame_init_saved_regs): Likewise.
3969 (m68k_saved_pc_after_call): Likewise.
3970 (m68k_get_longjmp_target): Make multi-arch.
3971 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
3972 structure. Register m68k_get_longjmp_target if enabled.
3973 * m68k-tdep.h (struct gdbarch_tdep): Define.
3974 * config/m68k/tm-m68k.h: Don't include "regcache.h".
3975
3976 * Makefile.in (config.status): Also depend on configure.tgt
3977 and configure.host.
3978 (m68klinux-tdep.o): Update dependencies.
3979 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
3980 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
3981 (M68K_LINUX_JB_PC): Define.
3982 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
3983 and take additional parameter.
3984 (m68k_linux_sigtramp_saved_pc): Update.
3985 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
3986 m68k_linux_pc_in_sigtramp, in_plt_section,
3987 find_solib_trampoline_target.
3988 * config/m68k/tm-linux.h: Don't include any tm headers.
3989 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
3990 (JB_ELEMENT_SIZE): Likewise.
3991 (JB_PC): Likewise.
3992 (GET_LONGJMP_TARGET): Likewise.
3993 (IN_SIGTRAMP): Likewise.
3994 (SVR4_SHARED_LIBS): Define this and include "solib.h".
3995
3996 2003-05-25 Mark Kettenis <kettenis@gnu.org>
3997
3998 * sparc-tdep.c (sparc32_do_push_arguments): New function.
3999 (sparc32_push_arguments): Re-implement by calling
4000 sparc32_do_push_arguments.
4001
4002 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4003
4004 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4005 SPARC_O1_REGNUM): New defines.
4006 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4007 (sparc32_store_return_value): New function.
4008 (sparc_extract_struct_value_address): Rewrite to operate on a
4009 regcache.
4010 (sparc_gdbarch_init): Don't set
4011 deprecated_extract_struct_value_address. Set
4012 extract_struct_value_address instead. Don't set
4013 deprecated_extract_return_value and deprecated_store_return_value
4014 for 32-bit targets. Set extract_return_value and
4015 store_return_value instead.
4016 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4017 DEPRECTAED_EXTRACT_RETURN_VALUE,
4018 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4019 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4020 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4021 (sparc_store_return_value): Remove prototype.
4022 (sparc32_store_return_value): New prototype.
4023 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4024 Adjust prototypes.
4025
4026 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4027
4028 * sparcnbsd-tdep.c: Include "gdb_string.h".
4029
4030 2003-05-23 Andrew Cagney <cagney@redhat.com>
4031
4032 * p-valprint.c (pascal_val_print): Replace extract_address with
4033 the inline equivalent extract_unsigned_integer.
4034 * jv-valprint.c (java_value_print): Ditto.
4035 * ada-valprint.c (ada_val_print_1): Ditto.
4036 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4037
4038 2003-05-23 Theodore A. Roth <troth@openavr.org>
4039
4040 * blockframe.c (frameless_look_for_prologue): Remove unused
4041 after_prologue variable.
4042
4043 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4044
4045 * blockframe.c (get_pc_function_start): Rewrite to avoid
4046 asignments in if-statements.
4047
4048 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4049
4050 Committed by Elena Zannoni <ezannoni@redhat.com>.
4051 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4052 files, don't relocate absolute symbols (and do use mst_abs).
4053
4054 2003-05-23 Andrew Cagney <cagney@redhat.com>
4055
4056 * objc-lang.c: Include "gdb_assert.h".
4057 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4058 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4059 (gdb_check, gdb_check_fatal): Delete functions.
4060 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4061 gdb_assert.
4062 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4063 * Makefile.in (objc-lang.o): Update dependencies.
4064
4065 2003-05-22 Ian Lance Taylor <ian@airs.com>
4066
4067 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4068 with fprintf_filtered, not fprintf_unfiltered.
4069
4070 2003-05-22 Andrew Cagney <cagney@redhat.com>
4071
4072 * stack.c (frame_info): Inline extract_address, replacing it with
4073 extract_unsigned_integer.
4074 * findvar.c (unsigned_pointer_to_address): Ditto.
4075 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4076 * dwarf2expr.c (dwarf2_read_address): Ditto.
4077 * frame.c (frame_pc_unwind): Update comment.
4078 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4079
4080 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4081
4082 * infptrace.c (detach): Call print_sys_errmsg rather than
4083 perror_with_name to issue warning message when errno is non-zero
4084 after calling ptrace detach.
4085
4086 2003-05-21 J. Brobecker <brobecker@gnat.com>
4087
4088 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4089 macro definitions from here...
4090 * hppa-tdep.c: ...to there.
4091
4092 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4093
4094 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4095 register_ptrace_addr(). Fix all callers.
4096
4097 2003-05-21 Andreas Schwab <schwab@suse.de>
4098
4099 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4100 dependencies.
4101 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4102 end.
4103 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4104 (_initialize_m68k_linux_tdep): New function.
4105 (m68k_linux_frame_saved_pc): Make static.
4106 (m68k_linux_extract_return_value): Likewise.
4107 (m68k_linux_store_return_value): Likewise.
4108 (m68k_linux_extract_struct_value_address): Likewise.
4109 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4110 Remove.
4111 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4112 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4113 (DEPRECATED_FRAME_SAVED_PC): Remove.
4114
4115 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4116
4117 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4118 regset numbering rather than our own.
4119
4120 2003-05-19 David Carlton <carlton@bactrian.org>
4121
4122 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4123
4124 2003-05-19 David Carlton <carlton@bactrian.org>
4125
4126 Partial fix for PR c++/827.
4127 * cp-support.h: Include symtab.h.
4128 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4129 * cp-namespace.c: Update contributors.
4130 (cp_lookup_symbol_nonlocal): New.
4131 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4132 (lookup_symbol_file): Ditto.
4133 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4134 * block.h: Declare block_scope, block_using, block_global_block.
4135 * block.c (block_scope): New.
4136 (block_using, block_global_block): Ditto.
4137 * Makefile.in (cp_support_h): Depend on symtab_h.
4138 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4139
4140 2003-05-19 David Carlton <carlton@bactrian.org>
4141
4142 * language.h (struct language_defn): Add 'la_value_of_this'
4143 and 'la_lookup_symbol_nonlocal' members.
4144 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4145 lookup_symbol_static, lookup_symbol_global,
4146 lookup_symbol_aux_block.
4147 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4148 if we should search fields of this and how to do static/global
4149 lookup.
4150 (lookup_symbol_aux_block): Make extern.
4151 (basic_lookup_symbol_nonlocal): New.
4152 (lookup_symbol_static, lookup_symbol_global): Ditto.
4153 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4154 'la_lookup_symbol_nonlocal' members.
4155 * c-lang.c (c_language_defn, cplus_language_defn)
4156 (asm_language_defn, minimal_language_defn): Ditto.
4157 * jv-lang.c (java_language_defn): Ditto.
4158 * language.c (unknown_language_defn, auto_language_defn)
4159 (local_language_defn): Ditto.
4160 * m2-lang.c (m2_language_defn): Ditto.
4161 * objc-lang.c (objc_language_defn): Ditto.
4162 * scm-lang.c (scm_language_defn): Ditto.
4163 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4164 * p-lang.c (pascal_language_defn): Ditto for both.
4165 * Makefile.in (f-lang.o): Depend on value_h.
4166 (p-lang.o): Ditto.
4167
4168 2003-05-19 David Carlton <carlton@bactrian.org>
4169
4170 * block.h: Declare block_static_block.
4171 * block.c (block_static_block): New.
4172 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4173 lookup_symbol_aux_local, calling block_static_block instead.
4174 (lookup_symbol_aux_local): Delete 'static_block' argument.
4175
4176 2003-05-19 David Carlton <carlton@bactrian.org>
4177
4178 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4179
4180 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4181
4182 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4183 register numbers mapping.
4184
4185 2003-05-18 Adam Fedor <fedor@gnu.org>
4186
4187 * symtab.c (completion_list_objc_symbol): New function.
4188 (make_symbol_completion_list): Use it to add ObjC symbols
4189 when looking though the list.
4190 (language_search_unquoted_string): New function.
4191 (make_file_symbol_completion_list): Use it.
4192
4193 2003-05-18 Andreas Schwab <schwab@suse.de>
4194
4195 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4196 dependencies.
4197 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4198 as m68k_linux_extract_return_value.
4199 (DEPRECATED_STORE_RETURN_VALUE): Define as
4200 m68k_linux_store_return_value.
4201 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4202 m68k_linux_extract_struct_value_address.
4203 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4204 get_next_frame, get_frame_base, get_frame_pc.
4205 (m68k_linux_frame_saved_pc): Use get_frame_base.
4206 (m68k_linux_extract_return_value): New function.
4207 (m68k_linux_store_return_value): New function.
4208 (m68k_linux_extract_struct_value_address): New function.
4209 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4210
4211 * c-exp.y (typebase): Remove duplicate occurence of
4212 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4213 of lookup_signed_typename.
4214
4215 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4216
4217 * dwarf2loc.c (find_location_expression): Change type of second
4218 argument to `size_t *'.
4219 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4220 for size variable.
4221
4222 2003-05-18 David Carlton <carlton@bactrian.org>
4223
4224 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4225 'linkage_name'. Add comment.
4226 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4227 'linkage_name'.
4228 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4229 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4230 (lookup_block_symbol): Ditto.
4231
4232 2003-05-16 Andrew Cagney <cagney@redhat.com>
4233
4234 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4235 * gdbarch.h, gdbarch.c: Re-generate.
4236 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4237 * TODO (REGISTER_BYTES): Delete reference.
4238 * alpha-tdep.c (alpha_gdbarch_init): Update.
4239 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4240 * x86-64-tdep.c (x86_64_init_abi): Update.
4241 * vax-tdep.c (vax_gdbarch_init): Update.
4242 * v850-tdep.c (v850_gdbarch_init): Update.
4243 * sparc-tdep.c (sparc_gdbarch_init): Update.
4244 * sh-tdep.c (sh_gdbarch_init): Update.
4245 * s390-tdep.c (s390_gdbarch_init): Update.
4246 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4247 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4248 (ns32k_gdbarch_init_32382): Update.
4249 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4250 * mcore-tdep.c (mcore_gdbarch_init): Update.
4251 * m68k-tdep.c (m68k_gdbarch_init): Update.
4252 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4253 * ia64-tdep.c (ia64_gdbarch_init): Update.
4254 * i386-tdep.c (i386_gdbarch_init): Update.
4255 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4256 * hppa-tdep.c (hppa_gdbarch_init): Update.
4257 * h8300-tdep.c (h8300_gdbarch_init): Update.
4258 * frv-tdep.c (frv_gdbarch_init): Update.
4259 * cris-tdep.c (cris_gdbarch_init): Update.
4260 * avr-tdep.c (avr_gdbarch_init): Update.
4261 * arm-tdep.c (arm_gdbarch_init): Update.
4262 * sparc-tdep.c (sparc_pop_frame): Update.
4263 * rs6000-tdep.c (rs6000_pop_frame): Update.
4264 * remote.c (init_remote_state): Update.
4265 (remote_prepare_to_store): Update.
4266 * remote-vx.c (vx_prepare_to_store): Update.
4267 * remote-sds.c (sds_fetch_registers): Update.
4268 (sds_prepare_to_store): Update.
4269 * remote-array.c: Update.
4270 * regcache.c (init_legacy_regcache_descr): Update.
4271 (init_regcache_descr): Update.
4272 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4273 (mips_o64_extract_return_value): Update.
4274 * irix5-nat.c (fetch_core_registers): Update.
4275 * irix4-nat.c (fetch_core_registers): Update.
4276 * i386-tdep.h: Update.
4277 * hppa-tdep.c (pa_do_registers_info): Update.
4278 (pa_do_strcat_registers_info): Update.
4279 * cris-tdep.c (cris_register_bytes_ok): Update.
4280 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4281 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4282 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4283 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4284 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4285 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4286 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4287 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4288 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4289 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4290 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4291 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4292 (REGISTER_BYTES_OK): Update.
4293 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4294 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4295
4296 2003-05-16 Ian Lance Taylor <ian@airs.com>
4297
4298 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4299 (vax_print_insn, print_insn_arg): Remove static functions.
4300 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4301 print_insn_vax from opcodes library.
4302 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4303
4304 2003-05-15 Andrew Cagney <cagney@redhat.com>
4305
4306 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4307 * target.h (memory_breakpoint_from_pc): Delete declaration.
4308 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4309 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4310 * monitor.c (monitor_insert_breakpoint): Use
4311 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4312 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4313 * gdbarch.h, gdbarch.c: Re-generate.
4314 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4315 (sparc_gdbarch_init): Set breakpoint_from_pc to
4316 sparc_breakpoint_from_pc.
4317 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4318 (BREAKPOINT_FROM_PC): Define.
4319 (sparc_breakpoint_from_pc): Declare.
4320 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4321 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4322 (BREAKPOINT_FROM_PC): Define.
4323 (BREAKPOINT): Delete macro.
4324 * target.h: Update comment.
4325 * s390-tdep.c (s390_gdbarch_init): Update comments.
4326 * remote.c: Update comments.
4327 * remote-mips.c: Update comments.
4328 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4329 * mem-break.c: Update comment.
4330 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4331 (ia64_memory_insert_breakpoint): Update.
4332 * config/sparc/tm-sparc.h: Update comment.
4333 * config/pa/tm-hppa64.h: Update comment.
4334 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4335 (rs6000_breakpoint_from_pc): Update.
4336 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4337 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4338 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4339 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4340 (mips_breakpoint_from_pc): Update.
4341 (mips_dump_tdep): Update.
4342
4343 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4344 * minsyms.c (lookup_minimal_symbol): Inline
4345 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4346
4347 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4348 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4349 * p-lang.c (pascal_printstr): Ditto.
4350 * objc-lang.c (objc_printstr): Ditto.
4351 * m2-lang.c (m2_printstr): Ditto.
4352 * jv-valprint.c (java_print_value_fields): Ditto.
4353 * f-lang.c (f_printstr): Ditto.
4354 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4355 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4356 for repeat_count_threshold.
4357 * Makefile.in (cp-valprint.o): Update dependencies.
4358
4359 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
4360
4361 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4362 (examine_prologue): Support looking through leaf functions, knowing
4363 they start with mov r2,r12. Support skipping over indirect stores
4364 of the input registers. Upon hitting a non-nop branch instruction
4365 or predicated instruction, bail out by setting lim_pc to the current
4366 pc value in the loop. At the end, if the lim_pc value is still
4367 beyond our calculated value and we have trust_limit set,
4368 use the lim_pc value.
4369
4370 2003-05-15 Andrew Cagney <cagney@redhat.com>
4371
4372 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4373 generic_find_dummy_frame.
4374 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4375 (deprecated_generic_find_dummy_frame): Update.
4376 (deprecated_read_register_dummy): Update.
4377 * frame.c (deprecated_generic_get_saved_register): Update.
4378
4379 2003-05-15 Theodore A. Roth <troth@openavr.org>
4380
4381 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4382 (avr_gdbarch_init): Set breakpoint_from_pc method.
4383
4384 2003-05-15 Andrew Cagney <cagney@redhat.com>
4385
4386 * regcache.c (build_regcache): Set deprecated_register_valid
4387 directly.
4388 (deprecated_grub_regcache_for_register_valid): Delete function.
4389 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4390 declaration.
4391
4392 2003-05-15 David Carlton <carlton@bactrian.org>
4393
4394 Committed by Elena Zannoni <ezannoni@redhat.com>
4395 * symtab.c (lookup_symbol_aux): Delete calls to
4396 lookup_symbol_aux_minsyms.
4397 (lookup_symbol_aux_minsyms): Comment out function and
4398 prototype. Delete lookup by mangled name.
4399
4400 2003-05-14 Kevin Buettner <kevinb@redhat.com>
4401
4402 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4403 correctly indicate an empty stack and ``stack_allocated'' to the
4404 indicate the number of elements initially allocated.
4405 (dwarf_expr_grow_stack): Simplify method for computing new
4406 stack size. Don't loop infinitely if ``stack_len'' is zero.
4407 (execute_stack_op): Move ``ctx->in_reg'' initialization
4408 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4409 be used in conjuction with DW_OP_piece. Revise error message
4410 accordingly.
4411
4412 2003-05-14 Theodore A. Roth <troth@openavr.org>
4413
4414 * MAINTAINERS: Update my email address.
4415 * avr-tdep.c: Ditto.
4416
4417 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
4418
4419 * symtab.h (enum domain_enum): Rename from namespace_enum.
4420 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4421 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4422 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4423 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4424 TYPES_NAMESPACE, METHODS_NAMESPACE.
4425 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4426 (struct symbol, struct partial_symbol): Rename field
4427 'namespace_enum namespace' to 'domain_enum domain'.
4428 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4429 Delete old define kludge for namespace.
4430
4431 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4432 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4433 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4434 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4435 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4436 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4437 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4438 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4439 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4440 occurrences of the above.
4441
4442 2003-05-14 Ian Lance Taylor <ian@airs.com>
4443
4444 * Makefile.in (install-only): Use $(SHELL) when running
4445 mkinstalldirs.
4446
4447 2003-05-13 Ian Lance Taylor <ian@airs.com>
4448
4449 * MAINTAINERS (write after approval): Add myself.
4450
4451 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4452 second and third arguments.
4453 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4454 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4455
4456 2003-05-13 Andrew Cagney <cagney@redhat.com>
4457
4458 * defs.h (store_address): Delete declaration.
4459 findvar.c (store_address): Delete function.
4460 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4461 store_unsigned_integer.
4462 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4463 * v850-tdep.c (v850_push_arguments): Ditto.
4464 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4465 * sh-tdep.c (sh64_get_saved_register): Ditto.
4466 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4467 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4468 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4469 (mips_get_saved_register): Ditto.
4470 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4471 (find_func_descr, ia64_push_arguments): Ditto.
4472 * i386-tdep.c (i386_push_arguments): Ditto.
4473 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4474 * frv-tdep.c (frv_push_arguments): Ditto.
4475 * frame.c (legacy_saved_regs_prev_register): Ditto.
4476 (deprecated_generic_get_saved_register): Ditto.
4477 * findvar.c (unsigned_address_to_pointer): Ditto.
4478 * dwarf2read.c (dwarf2_const_value): Ditto.
4479 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4480 * alpha-tdep.c (alpha_push_arguments): Ditto.
4481
4482 2003-05-12 J. Brobecker <brobecker@gnat.com>
4483
4484 * NEWS: Mention that the hppa-hpux port has been partially
4485 multiarched (32bit ABIT only, so far).
4486
4487 2003-05-11 Andrew Cagney <cagney@redhat.com>
4488
4489 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4490 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4491 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4492 sim/testsuite/sim/arm/misaligned2.ms, and
4493 sim/testsuite/sim/arm/misaligned3.ms.
4494 * disasm.h (struct ui_file): Add opaque struct declaration.
4495 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4496 * frame.h (struct ui_file): Ditto.
4497
4498 2003-05-11 Mark Kettenis <kettenis@gnu.org>
4499
4500 * value.h: Pretty print.
4501
4502 2003-05-10 Mark Kettenis <kettenis@gnu.org>
4503
4504 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4505
4506 2003-05-08 Andrew Cagney <cagney@redhat.com>
4507
4508 * regcache.h (max_register_size): Delete declaration.
4509 * regcache.c (max_register_size): Delete function.
4510 (struct regcache_descr): Delete field "max_register_size".
4511 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4512 registers fit in MAX_REGISTER_SIZE.
4513 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4514 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4515 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4516 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4517 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4518 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4519 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4520 * dve3900-rom.c, hppa-tdep.c: Ditto.
4521
4522 2003-05-08 David Carlton <carlton@math.stanford.edu>
4523
4524 * valops.c (push_word): Fix typo.
4525
4526 2003-05-08 Andrew Cagney <cagney@redhat.com>
4527
4528 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4529 * gdbarch.h: Re-generate.
4530 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4531 (legacy_max_register_raw_size): Delete declaration.
4532 * regcache.c (legacy_max_register_raw_size): Delete function.
4533 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4534 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4535 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4536 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4537 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4538 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4539 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4540 * findvar.c, dwarf2cfi.c: Ditto.
4541
4542 2003-05-08 Andrew Cagney <cagney@redhat.com>
4543
4544 * mips-tdep.c (read_signed_register): New function, moved to here
4545 from "regcache.c".
4546 (read_signed_register_pid): Ditto.
4547 * regcache.c (read_signed_register_pid): Delete function, moved to
4548 "mips-tdep.c".
4549 (read_signed_register): Ditto.
4550 * regcache.h (read_signed_register): Delete declaration.
4551 (read_signed_register_pid): Delete declaration.
4552
4553 2003-05-08 Andrew Cagney <cagney@redhat.com>
4554
4555 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4556 * gdbarch.h: Re-generate.
4557 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4558 (legacy_max_register_virtual_size): Delete declaration.
4559 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4560 * d10v-tdep.c (d10v_print_registers_info): Ditto.
4561 * tracepoint.c (memrange_sortmerge): Ditto.
4562 * sparc-tdep.c (sparc_print_registers): Ditto.
4563 * regcache.c (legacy_max_register_virtual_size): Delete function.
4564
4565 2002-05-08 J. Brobecker <brobecker@gnat.com>
4566
4567 * fork-child.c (escape_bang_in_quoted_argument): New function.
4568 (fork_inferior): Escape '!' characters in quoted arguments
4569 only when needed.
4570
4571 2003-05-08 J. Brobecker <brobecker@gnat.com>
4572
4573 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
4574 the language of the CU is not currently supported by GDB.
4575
4576 2003-05-08 J. Brobecker <brobecker@gnat.com>
4577
4578 * defs.h (language): Add language_minimal enum value.
4579 * c-lang.c (minimal_language_defn): New language definition.
4580 (_initialize_c_language): Add the new minimal language to the list
4581 of languages known to GDB.
4582
4583 2003-05-08 Kevin Buettner <kevinb@redhat.com>
4584
4585 * frame.c (get_frame_type): Don't attempt to lazily initialize
4586 frame's unwinder for legacy frames.
4587
4588 2003-05-07 Andrew Cagney <cagney@redhat.com>
4589
4590 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
4591 and "regcache" parameters.
4592 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
4593
4594 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4595
4596 * dwarf2read.c (dwarf_decode_lines): Only use output of
4597 check_cu_functions() when calling record_line(). Do not update
4598 the current address.
4599
4600 2003-05-07 Andrew Cagney <cagney@redhat.com>
4601
4602 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
4603 code.
4604
4605 2003-05-07 Jim Blandy <jimb@redhat.com>
4606
4607 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
4608 'maint info symtabs' and 'maint info psymtabs'.
4609 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
4610 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
4611 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
4612 Declarations updated.
4613 * maint.c (maintenance_list_command): Delete.
4614 (_initialize_maint_cmds): Update calls to add_cmd.
4615 * gdbcmd.h (maintenancelistlist): Delete declaration.
4616 * cli/cli-cmds.c (maintenancelistlist): Delete.
4617 (init_cmd_lists): Don't initialize it.
4618 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
4619
4620 2003-05-07 Andrew Cagney <cagney@redhat.com>
4621
4622 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
4623 "regcache".
4624 (d10v_print_registers_info): Update.
4625 (d10v_dmap_register, d10v_imap_register): Delete functions.
4626 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
4627 and "imap_register".
4628 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
4629 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
4630 * arch-utils.c (generic_remote_translate_xfer_address): Add
4631 "regcache" and "gdbarch" parameters.
4632 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
4633 parameter. Change class to multi-arch.
4634 * gdbarch.h, gdbarch.c: Re-generate.
4635 * remote.c (remote_xfer_memory): Use
4636 gdbarch_remote_translate_xfer_address.
4637
4638 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4639
4640 * infrun.c (prev_pc): Move declaration ahead of proceed().
4641 (proceed): Refresh prev_pc value before resuming.
4642 (stop_stepping): Remove code to refresh prev_pc.
4643
4644 2003-05-06 Kris Warkentin <kewarken@qnx.com>
4645
4646 * nto-tdep.c: Removed stray comment.
4647
4648 2003-05-06 Kris Warkentin <kewarken@qnx.com>
4649
4650 * i386-nto-tdep.c: Fix old K&R function definitions.
4651 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
4652 Also change add_show_from_set() call to add_setshow_cmd().
4653 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
4654
4655 2003-05-05 Andrew Cagney <cagney@redhat.com>
4656
4657 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
4658 (fprint_dummy_frames): New function.
4659 (maintenance_print_dummy_frames): New function.
4660 (_initialize_dummy_frame): Add command "maint print dummy-frames".
4661 * frame.c (fprint_frame_id): Make global.
4662 * frame.h (fprint_frame_id): Declare.
4663 * Makefile.in (dummy-frame.o): Update dependencies.
4664
4665 2003-05-05 Andrew Cagney <cagney@redhat.com>
4666
4667 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
4668 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
4669 SIZEOF_CALL_DUMMY_WORDS.
4670 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
4671 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
4672 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
4673 CALL_DUMMY_BREAKPOINT_OFFSET.
4674 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
4675 CALL_DUMMY_START_OFFSET.
4676 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
4677 * gdbarch.h, gdbarch.c: Re-generate.
4678 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
4679 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
4680 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
4681 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
4682 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
4683 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
4684 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
4685 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
4686 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
4687 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
4688 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
4689 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
4690 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
4691 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
4692 * config/sparc/tm-sparc.h: Update.
4693
4694 2003-05-05 Kris Warkentin <kewarken@qnx.com>
4695
4696 * configure.tgt: Add i[3456]86-*-nto*.
4697 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
4698 * nto-tdep.c: New file. Neutrino target support routines.
4699 * nto-tdep.h: New file. Neutrino target header.
4700 * config/tm-qnxnto.h: New file.
4701 * config/i386/i386nto.mt: New file.
4702 * config/i386/tm-i386nto.h: New file.
4703
4704 2003-05-04 Andrew Cagney <cagney@redhat.com>
4705
4706 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
4707 (load_infrun_state): Ditto.
4708 (struct thread_info): Drop "prev_func_name" field.
4709 * thread.c (load_infrun_state): Update.
4710 (save_infrun_state): Update.
4711 * infrun.c (prev_func_name): Delete variable.
4712 (init_wait_for_inferior): Do not clear prev_func_name.
4713 (stop_stepping, keep_going, context_switch): Do not swap
4714 prev_func_name.
4715 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
4716 instead of PC_IN_SIGTRAMP.
4717
4718 2003-05-04 Andrew Cagney <cagney@redhat.com>
4719
4720 * sentinel-frame.c (sentinel_frame_prev_register): Replace
4721 REGISTER_BYTE with register_offset_hack.
4722 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
4723 that REGISTER_BYTE is consistent with the regcache.
4724 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
4725 * gdbarch.h, gdbarch.c: Regenerate.
4726
4727 2003-05-04 Mark Kettenis <kettenis@gnu.org>
4728
4729 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
4730 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
4731
4732 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
4733
4734 2003-05-03 J. Brobecker <brobecker@gnat.com>
4735
4736 From Thierry Schneider <tpschneider1@yahoo.com>
4737 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
4738 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
4739 (mi-cmd-symbol.o): Add rule.
4740
4741 2003-05-03 Andrew Cagney <cagney@redhat.com>
4742
4743 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
4744 comments noteing that it replaces the old FIX_CALL_DUMMY code.
4745 * gdbarch.h, gdbarch.c: Re-generate.
4746 * d10v-tdep.c (d10v_push_dummy_code): New function.
4747 (d10v_gdbarch_init): Set push_dummy_code.
4748 * infcall.c (legacy_push_dummy_code): New function.
4749 (generic_push_dummy_code): New function.
4750 (push_dummy_code): New function.
4751 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
4752 instead of dummy_addr, to push_dummy_call. Move call to
4753 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
4754 switch.
4755 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
4756
4757 2003-05-03 Andrew Cagney <cagney@redhat.com>
4758
4759 * disasm.h (print_insn): Declare.
4760 * disasm.c (init_gdb_disassemble_info): New function.
4761 (gdb_disassembly): Call init_gdb_disassemble_info.
4762 (gdb_print_insn): New function.
4763 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
4764 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
4765 * mcore-tdep.c: Include "disasm.h"
4766 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
4767 * d10v-tdep.c: Include "disasm.h".
4768 (display_trace): Call gdb_print_insn, instead of print_insn.
4769 (print_insn): Delete function.
4770 * printcmd.c: Include "disasm.h".
4771 (print_insn): Delete function.
4772 (print_formatted): Call gdb_print_insn, instead of print_insn.
4773 * Makefile.in (printcmd.o): Update dependencies.
4774 (mcore-tdep.o, d10v-tdep.o): Ditto.
4775
4776 2003-05-02 Andrew Cagney <cagney@redhat.com>
4777
4778 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
4779 PC_REGNUM, re-indent.
4780 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
4781 PC_REGNUM isn't set.
4782
4783 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
4784 * gdbarch.h, gdbarch.c: Re-generate.
4785 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
4786 register_virtual_size, pc_regnum, or register_bytes.
4787 (D10V_PC_REGNUM): Rename _PC_REGNUM.
4788 (d10v_register_type): Use D10V_PC_REGNUM.
4789 (d10v_print_registers_info, d10v_read_pc): Ditto.
4790 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
4791 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
4792
4793 2003-05-02 David Carlton <carlton@bactrian.org>
4794
4795 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
4796 the name with mstrsave.
4797
4798 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
4799
4800 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
4801 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
4802 (host_charset_name, target_charset_name): New vars for use by
4803 set/show commands.
4804 (host_charset_enum, target_charset_enum): New enums for set/show
4805 commands.
4806 (set_charset_sfunc, set_host_charset_sfunc,
4807 set_target_charset_sfunc): New functions.
4808 (set_host_charset, set_target_charset): Make static.
4809 (list_charsets, set_host_charset_command,
4810 set_target_charset_command): Delete functions.
4811 (show_charset_command): Rewrite as....
4812 (show_charset): Hook this up with the set/show command mechanism.
4813 (_initialize_charset): Change names of charsets to match the
4814 set/show enums. Use host_charset_name and target_charset_name.
4815 Use set/show mechanism for charset, host-charset, target-charset
4816 commands. Do not make 'show host-charset' and 'show
4817 target-charset' be aliases of 'show charset'.
4818
4819 * charset.h (set_host_charset, set_target_charset): Don't export,
4820 they are not used outside the file.
4821
4822 2003-05-01 Andrew Cagney <cagney@redhat.com>
4823
4824 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
4825 (gdb_disassembly): Make "di" non static, always initialize and
4826 cleanup. Always use dis_asm_read_memory.
4827 (gdb_dis_asm_read_memory): Delete function.
4828
4829 2003-05-01 Andrew Cagney <cagney@redhat.com>
4830
4831 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
4832 (d10v_gdbarch_init): Set frame_align instead of stack_align.
4833
4834 2003-04-30 Andrew Cagney <cagney@redhat.com>
4835
4836 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
4837 "tm_print_insn_info".
4838 (TARGET_PRINT_INSN_INFO): Delete macro.
4839 (dis_asm_read_memory): Delete function declaration.
4840 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4841 (tm_print_insn_info): Delete variable definition.
4842 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
4843 * gdbarch.h, gdbarch.c: Re-generate.
4844 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
4845 "deprecated_tm_print_insn_info".
4846 * mcore-tdep.c (mcore_dump_insn): Ditto.
4847 * mips-tdep.c (mips_gdbarch_init): Ditto.
4848 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
4849 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
4850 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
4851 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
4852 instead of TARGET_PRINT_INSN_INFO, add comment.
4853 * s390-tdep.c (s390_get_frame_info): Instead of
4854 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
4855 (s390_check_function_end, s390_is_sigreturn): Ditto.
4856 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
4857 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4858 * disasm.c: Include "gdbcore.h".
4859 (_initialize_disasm): New function, initialize
4860 "deprecated_tm_print_insn_info".
4861 (deprecated_tm_print_insn_info): New variable.
4862 (dis_asm_read_memory): Moved from "corefile.c", made static.
4863 (dis_asm_print_address, dis_asm_memory_error): Ditto.
4864 * Makefile.in (disasm.o): Update dependencies.
4865
4866 2003-04-30 Andrew Cagney <cagney@redhat.com>
4867
4868 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
4869
4870 2003-04-29 Adam Fedor <fedor@gnu.org>
4871
4872 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
4873 * infcall.c (find_function_addr): Make non-static.
4874 * infcall.h (find_function_addr): Declare.
4875 * Makefile.in (eval.o): Update dependencies.
4876
4877 2003-04-28 Adam Fedor <fedor@gnu.org>
4878
4879 * symtab.c (symbol_find_demangled_name): Check for and demangle
4880 ObjC symbols.
4881 (symbol_init_demangled_name): Init for language_objc as well.
4882
4883 2003-04-28 Andrew Cagney <cagney@redhat.com>
4884
4885 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
4886 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
4887 * gdbarch.h, gdbarch.c: Re-generate.
4888 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
4889 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
4890 * inferior.h (deprecated_read_fp): Rename read_fp.
4891 (generic_target_read_fp): Delete declaration.
4892 * regcache.c (generic_target_read_fp): Delete function.
4893 (deprecated_read_fp): Replace read_fp, use
4894 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
4895 * d10v-tdep.c (d10v_read_fp): Delete function.
4896 (d10v_gdbarch_init): Do not set deprecated_read_fp.
4897
4898 * sparc-tdep.c (sparc_gdbarch_init): Do not set
4899 deprecated_target_read_fp to generic_target_read_fp.
4900 * sh-tdep.c (sh_gdbarch_init): Ditto.
4901 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4902 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4903 * frv-tdep.c (frv_gdbarch_init): Ditto.
4904
4905 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
4906 deprecated_fp_regnum.
4907 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4908 * vax-tdep.c (vax_gdbarch_init): Ditto.
4909 * v850-tdep.c (v850_gdbarch_init): Ditto.
4910 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4911 * sh-tdep.c (sh_gdbarch_init): Ditto.
4912 * s390-tdep.c (s390_gdbarch_init): Ditto.
4913 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4914 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4915 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4916 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4917 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4918 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4919 * i386-tdep.c (i386_gdbarch_init): Ditto.
4920 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4921 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4922 * frv-tdep.c (frv_gdbarch_init): Ditto.
4923 * cris-tdep.c (cris_gdbarch_init): Ditto.
4924 * avr-tdep.c (avr_gdbarch_init): Ditto.
4925 * arm-tdep.c (arm_gdbarch_init): Ditto.
4926 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4927
4928 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
4929 * v850-tdep.c (v850_gdbarch_init): Ditto.
4930 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4931 * sh-tdep.c (sh_gdbarch_init): Ditto.
4932 * s390-tdep.c (s390_gdbarch_init): Ditto.
4933 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4934 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4935 * mips-tdep.c (mips_gdbarch_init): Ditto.
4936 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4937 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4938 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4939 * frv-tdep.c (frv_gdbarch_init): Ditto.
4940 * avr-tdep.c (avr_gdbarch_init): Ditto.
4941 * arm-tdep.c (arm_gdbarch_init): Ditto.
4942
4943 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
4944 DEPRECATED_FP_REGNUM.
4945 (vax_push_dummy_frame, vax_pop_frame): Ditto.
4946 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
4947 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
4948 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
4949 (sparc32_register_virtual_type): Ditto.
4950 * sh-tdep.c (sh64_frame_chain): Ditto.
4951 (sh64_get_saved_register, sh64_pop_frame): Ditto.
4952 (sh_nofp_frame_init_saved_regs): Ditto.
4953 (sh64_nofp_frame_init_saved_regs): Ditto.
4954 (sh_fp_frame_init_saved_regs): Ditto.
4955 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4956 * remote-e7000.c (fetch_regs_from_dump): Ditto.
4957 * procfs.c (procfs_fetch_registers): Ditto.
4958 (procfs_store_registers): Ditto.
4959 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
4960 (store_inferior_registers, fetch_core_registers): Ditto.
4961 (fetch_kcore_registers, clear_regs): Ditto.
4962 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
4963 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
4964 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
4965 * nlm/i386.c (do_status): Ditto.
4966 * mipsv4-nat.c (supply_gregset): Ditto.
4967 * mips-tdep.c: Ditto for comments.
4968 * mips-nat.c (fetch_inferior_registers): Ditto.
4969 (store_inferior_registers, fetch_core_registers): Ditto.
4970 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
4971 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
4972 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
4973 (i386_do_pop_frame, i386_register_type): Ditto.
4974 * hppa-tdep.c (hppa_frame_chain): Ditto.
4975 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
4976 (hppa_pop_frame, hppa_read_fp): Ditto.
4977 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
4978 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
4979 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
4980 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
4981 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
4982 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
4983 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
4984 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
4985 * blockframe.c: Ditto for comments.
4986 * arch-utils.h: Ditto for comments.
4987 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
4988 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
4989 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
4990 * alpha-tdep.h: Ditto for comments.
4991 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
4992 (alpha_cannot_store_register): Ditto.
4993 (alpha_push_dummy_frame): Ditto.
4994 * alpha-nat.c (supply_gregset): Ditto.
4995
4996 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
4997 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
4998 * config/sparc/tm-sparc.h: Update comment.
4999
5000 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5001 deprecated_read_fp instead of TARGET_READ_FP.
5002 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5003 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5004 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5005 deprecated_read_fp instead of read_fp.
5006 * s390-tdep.c (s390_push_arguments): Ditto.
5007 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5008 * frame.h: Ditto in comments.
5009 * frame.c (legacy_get_prev_frame): Ditto.
5010 * dummy-frame.c (dummy_frame_this_id): Ditto.
5011 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5012
5013 2003-04-28 Andrew Cagney <cagney@redhat.com>
5014
5015 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5016 * gdbarch.h, gdbarch.c: Re-generate.
5017 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5018 * vax-tdep.c (_initialize_vax_tdep): Update.
5019 * v850-tdep.c (_initialize_v850_tdep): Update.
5020 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5021 * s390-tdep.c (_initialize_s390_tdep): Update.
5022 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5023 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5024 * mips-tdep.c (_initialize_mips_tdep): Update.
5025 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5026 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5027 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5028 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5029 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5030 * frv-tdep.c (_initialize_frv_tdep): Update.
5031 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5032 (_initialize_cris_tdep): Update.
5033 * arch-utils.c (legacy_print_insn): Update.
5034 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5035
5036 2003-04-26 Adam Fedor <fedor@gnu.org>
5037
5038 * linespec.c (decode_objc): New function to decode ObjC calls
5039 (decode_line_1): Check for ObjC calls (using decode_objc)
5040 * Makefile (linespec.o): Update dependencies.
5041
5042 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5043
5044 * breakpoint.h (struct breakpoint_ops): New.
5045 (struct breakpoint): Add ops member.
5046
5047 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5048 (mention): Use new breakpoint ops member.
5049 (set_raw_breakpoint): Initialize ops field to NULL.
5050 (print_exception_catchpoint, print_one_exception_catchpoint)
5051 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5052 (gnu_v3_exception_catchpoint_ops): New.
5053 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5054
5055 2003-04-25 Adam Fedor <fedor@gnu.org>
5056
5057 * Makefile.in (COMMON_OBS): Add objc-lang.o
5058
5059 2003-04-25 Andrew Cagney <cagney@redhat.com>
5060
5061 * d10v-tdep.c (print_insn): Delete function.
5062 (display_trace): Use TARGET_PRINT_INSN.
5063 (_initialize_d10v_tdep): Do not set tm_print_insn.
5064 (d10v_gdbarch_init): Set print_insn.
5065
5066 2003-04-25 Andrew Cagney <cagney@redhat.com>
5067
5068 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5069 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5070 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5071 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5072 (nr_dmap_regs, a0_regnum): ... new functions.
5073 (d10v_print_registers_info): Use a0_regnum, use register_size.
5074 (d10v_register_byte): Delete function.
5075 (d10v_register_raw_size): Delete function.
5076 (d10v_register_type): Use a0_regnum.
5077 (d10v_print_registers_info): Use a0_regnum.
5078 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5079 (d10v_gdbarch_init): Do not set register_byte or
5080 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5081 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5082 extract_address.
5083 (trace_command): Use XCALLOC.
5084 (print_insn): Delete reference to tm_print_insn.
5085 (saved_regs_unwinder): Use store_unsigned_integer instead of
5086 store_address.
5087 * frame.h (FRAME_OBSTACK_CALLOC): Define
5088
5089 2003-04-25 David Carlton <carlton@bactrian.org>
5090
5091 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5092
5093 2003-04-24 Adam Fedor <fedor@gnu.org>
5094
5095 * objc-lang.c: Include "valprint.h"
5096 * Makefile.in (objc-lang.o): Update dependencies.
5097
5098 2003-04-24 Adam Fedor <fedor@gnu.org>
5099
5100 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5101 architecture dependant compilation and mark as unimplemented
5102 (until they get put in the gdbarch vector).
5103
5104 2003-04-23 David Carlton <carlton@bactrian.org>
5105
5106 * cp-support.c (cp_find_first_component): Accept 'operator' in
5107 more locations.
5108
5109 2003-04-23 Andrew Cagney <cagney@redhat.com>
5110
5111 * infcall.c (call_function_by_hand): Eliminate redundant
5112 indentation. Move "saved_async" and "old_cleanups" to where they
5113 are needed.
5114
5115 2003-04-23 Andrew Cagney <cagney@redhat.com>
5116
5117 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5118 and "buffer". Move the "name" code to where it is needed.
5119
5120 2003-04-23 Andrew Cagney <cagney@redhat.com>
5121
5122 * infcall.c (call_function_by_hand): Move variables "start_sp",
5123 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5124 code to ON_STACK switch branch.
5125
5126 2003-04-23 Andrew Cagney <cagney@redhat.com>
5127
5128 * infcall.c (call_function_by_hand): Make declaration of "i",
5129 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5130 lint.
5131
5132 2003-04-23 Andrew Cagney <cagney@redhat.com>
5133
5134 * infcall.c (call_function_by_hand): Delete variable
5135 "n_method_args". Localize "param_type"'s declaration to the loop
5136 that it is used. Reinstate code assigning to said variable -
5137 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5138 Rationalize code using "param_type".
5139
5140 2003-04-22 Andrew Cagney <cagney@redhat.com>
5141
5142 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5143 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5144 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5145 to DEPRECATED_PUSH_RETURN_ADDRESS.
5146
5147 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5148
5149 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5150 on the DWARF2 register number prior to fetching a register.
5151
5152 2003-04-22 J. Brobecker <brobecker@gnat.com>
5153
5154 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5155 Update all the tests using SOFT_FLOAT considering the fact that
5156 this macro was always set to 0.
5157 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5158 considering the fact that this macro was always set to 0.
5159 * hppa-tdep.h (hppa_store_return_value): Likewise.
5160 (hppa_extract_return_value): Likewise.
5161
5162 2003-04-22 J. Brobecker <brobecker@gnat.com>
5163
5164 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5165 the hppa-pro target only.
5166
5167 2003-04-21 J. Brobecker <brobecker@gnat.com>
5168
5169 Ongoing multi-arch conversion effort for HP/UX:
5170 * config/pa/tm-hppa.h: Move all macro that are no longer
5171 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5172 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5173
5174 2003-04-21 J. Brobecker <brobecker@gnat.com>
5175
5176 * config/pa/tm-hppa.h: Obsolete a section that was only used
5177 for hppa-pro.
5178
5179 2003-04-21 J. Brobecker <brobecker@gnat.com>
5180
5181 Ongoing multi-arch conversion for HP/UX.
5182 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5183 if already defined (allows hppa64 to stay non-multiarched for now).
5184 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5185
5186 2003-04-21 Andrew Cagney <cagney@redhat.com>
5187
5188 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5189
5190 2003-04-21 Andrew Cagney <cagney@redhat.com>
5191
5192 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5193 "i386_num_mmx_regs".
5194
5195 2003-04-21 Andrew Cagney <cagney@redhat.com>
5196
5197 * infcall.c: New file.
5198 * infcall.h: New file.
5199 * valarith.c: Include "infcall.h".
5200 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5201 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5202 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5203 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5204 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5205 (SFILES): Add "infcall.c"
5206 (COMMON_OBS): Add "infcall.o".
5207 (infcall.o): Specify dependencies.
5208 * value.h (call_function_by_hand): Delete declaration.
5209 * inferior.h (run_stack_dummy): Delete declaration.
5210 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5211 (run_stack_dummy): Move to "infcall.c", merged into
5212 call_function_by_hand.
5213 * valops.c (call_function_by_hand): Moved to "infcall.c".
5214 (find_function_addr, value_arg_coerce): Ditto.
5215 (unwindonsignal_p, coerce_float_to_double): Ditto.
5216 (_initialize_valops): Move "set/show coerce-float-to-double", and
5217 "set/show unwindonsignal" commands to "infcall.c".
5218 * v850-tdep.c, target.h: Update comments.
5219 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5220 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5221 (sh64_init_extra_frame_info): Update comments.
5222 * mn10300-tdep.c: Update comments.
5223 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5224 * config/sparc/tm-sparc.h: Update comments.
5225 * breakpoint.h: Update comments.
5226 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5227 * arm-tdep.c: Update comment.
5228
5229 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5230
5231 * i386-tdep.c (i386_num_register_names): New variable.
5232 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5233 (MM0_REGNUM): Remove redundant parentheses in define.
5234 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5235 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5236 i386_mxcsr_regnum_p): Remove redundant parentheses.
5237 (i386_register_name): Use i386_num_register_names.
5238
5239 * i386-tdep.c (i386_extract_return_value,
5240 i386_store_return_value): Correct check for availability of
5241 floating-point registers.
5242
5243 * i386-tdep.c (i386_frame_num_args): Remove function.
5244 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5245
5246 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5247 mmx_regnum_to_fp_regnum. Adjust all callers.
5248
5249 * i386-tdep.c (i386_get_longjmp_target): Use
5250 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5251 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5252 extract_address.
5253
5254 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5255
5256 * core-regset.c: Update comments to reflect reality. Re-order
5257 includes.
5258 (fetch_core_registers): Use switch instead of if. Remove
5259 redundant prototype.
5260
5261 2003-04-18 Jim Blandy <jimb@redhat.com>
5262
5263 * s390-tdep.c (s390_frame_align): New function.
5264 (s390_gdbarch_init): Register it with the gdbarch object.
5265
5266 2003-04-17 Richard Henderson <rth@redhat.com>
5267
5268 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5269
5270 2003-04-17 Michael Snyder <msnyder@redhat.com>
5271 Karen Bennet <bennet@redhat.com>
5272
5273 Committed by Elena Zannoni <ezannoni@redhat.com>
5274 * gdb_gcore.sh: New script to create a core dump of a process.
5275
5276 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5277
5278 * values.c (value_being_returned): Don't fetch the return
5279 value if the return type is void.
5280
5281 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5282
5283 * thread-db.c: Reindented.
5284
5285 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5286
5287 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5288 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5289 as types.
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5316
5317 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5318 the size of ``long double'' to 16, instead of 8.
5319
5320 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5321
5322 * i386-linux-nat.c: Add some whitespace to make things more
5323 readable.
5324 (fetch_register, store_register, fetch_inferior_registers,
5325 store_inferior_registers): Get rid of assignment in if-statement.
5326 (store_register): Fix typo in error message.
5327
5328 2003-04-16 Andrew Cagney <cagney@redhat.com>
5329
5330 * utils.c (xmmalloc): Always allocate something, matches
5331 libiberty/xmalloc's semantics.
5332 (xmrealloc, xmcalloc): Ditto.
5333
5334 2003-04-16 Andrew Cagney <cagney@redhat.com>
5335
5336 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5337 update comments.
5338 (get_frame_type): Initialize unwind and type when needed.
5339 (get_frame_id, frame_register_unwind): Ditto.
5340
5341 2003-04-16 Andrew Cagney <cagney@redhat.com>
5342
5343 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5344 obsolete.
5345 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5346 * sparcl-stub.c: Obsolete file.
5347 * config/sparc/tm-sparclet.h: Obsolete file.
5348 * sparclet-stub.c: Obsolete file.
5349 * sparclet-rom.c: Obsolete file.
5350 * sparcl-tdep.c: Obsolete file.
5351 * config/sparc/tm-sparclite.h: Obsolete file.
5352 * config/sparc/sparclite.mt: Obsolete file.
5353 * config/sparc/sparclet.mt: Obsolete file.
5354 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5355 sparc86x-*-* obsolete.
5356
5357 2003-04-15 David Carlton <carlton@math.stanford.edu>
5358
5359 * Makefile.in (SFILES): Add cp-namespace.c.
5360 (COMMON_OBS): Add cp-namespace.o.
5361 (block.o): Depend on gdb_obstack_h and cp_support_h.
5362 (buildsym.o): Depend on cp_support_h.
5363 (cp-namespace.o): New.
5364 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5365 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5366 (dwarf2read.o): Depend on cp_support_h.
5367 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5368 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5369 processing_current_namespace.
5370 (read_namespace): Update processing_current_namespace; check for
5371 anonymous namespaces.
5372 (dwarf2_name): New function.
5373 (dwarf2_extension): Ditto.
5374 * cp-support.h: Update copyright, contributors.
5375 Add inclusion guards.
5376 Add opaque declaration for structs obstack, block, symbol.
5377 (struct using_direct): New struct.
5378 Add declarations for cp_find_first_component,
5379 cp_entire_prefix_len, processing_has_namespace_info,
5380 processing_current_namespace, cp_is_anonymous,
5381 cp_add_using_directive, cp_initialize_namespace,
5382 cp_finalize_namespace, cp_set_block_scope,
5383 cp_scan_for_anonymous_namespaces.
5384 * cp-namespace.c: New file.
5385 * cp-support.c: Update copyright.
5386 Include ctype.h, gdb_assert.h, gdbcmd.h.
5387 New variable maint_cplus_cmd_list.
5388 (cp_find_first_component): New function.
5389 (cp_entire_prefix_len, maint_cplus_command)
5390 (first_component_command, _initialize_cp_support): Ditto.
5391 * buildsym.c: Include cp-support.h.
5392 New variable using_list.
5393 (add_symbol_to_list): Check for anonymous namespaces.
5394 (finish_block): Set block's scope.
5395 (start_symtab): Initialize C++ namespace support.
5396 (end_symtab): Finalize C++ namespace support.
5397 * block.h: Add opaque declarations for structs
5398 block_namespace_info, using_direct, and obstack.
5399 Add declarations for block_set_scope and block_set_using.
5400 (struct block): Add 'language_specific' member.
5401 (BLOCK_NAMESPACE): New macro.
5402 * block.c: Include gdb_obstack.h and cp-support.h.
5403 (struct block_namespace_info): New struct.
5404 (block_set_scope): New function.
5405 (block_set_using, block_initialize_namespace): Ditto.
5406
5407 2003-04-14 Kevin Buettner <kevinb@redhat.com>
5408
5409 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5410 (locate_base): Return early if there aren't any link map offsets.
5411 (svr4_solib_create_inferior_hook): Warn if shared library support
5412 is unavailable.
5413
5414 2003-04-14 David Carlton <carlton@math.stanford.edu>
5415
5416 * symtab.c (symbol_set_names): Add prefix when storing Java names
5417 in hash table. Fix for PR java/1039.
5418
5419 2003-04-14 David Carlton <carlton@math.stanford.edu>
5420
5421 * symtab.c (symbol_set_names): Rename 'name' arg to
5422 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5423 * symtab.h: Change 'name' argument in declaration of
5424 symbol_set_names to 'linkage_name'.
5425 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5426
5427 2003-04-14 Andrew Cagney <cagney@redhat.com>
5428
5429 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5430 return the fully sign-extended register value.
5431 (get_frame_pointer): Ditto.
5432 (mips_pop_frame): Initialize "proc_desc" after checking for a
5433 dummy frame.
5434
5435 2003-04-14 Andrew Cagney <cagney@redhat.com>
5436
5437 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5438 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5439 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5440 (mips_push_register): Delete function.
5441 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5442 PUSH_FP_REGNUM.
5443
5444 2003-04-14 Jim Blandy <jimb@redhat.com>
5445
5446 * symmisc.c: #include "gdb_regex.h".
5447 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5448 functions.
5449 * maint.c (maintenance_list_command): New function.
5450 (_initialize_maint_cmds): Register the above as commands.
5451 * symtab.h (maintenance_list_symtabs,
5452 maintenance_list_psymtabs): New declarations.
5453 * cli/cli-cmds.c (maintenancelistlist): New variable.
5454 (init_cmd_lists): Initialize it.
5455 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5456 * gdbcmd.h (maintenancelistlist): New declaration.
5457 * Makefile.in (symmisc.o): Update dependencies.
5458
5459 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
5460
5461 * s390-nat.c: Include asm/types.h for addr_t.
5462
5463 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
5464
5465 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5466 actually incoming type.
5467
5468 2003-04-13 Andrew Cagney <cagney@redhat.com>
5469
5470 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5471 get_next_frame and get_frame_saved_regs.
5472
5473 2003-04-13 Andrew Cagney <cagney@redhat.com>
5474
5475 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5476 of gdbarch_num_regs.
5477
5478 2003-04-13 Andrew Cagney <cagney@redhat.com>
5479
5480 * frame.h: Mention what replaced what in "struct frame_info".
5481 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5482 deprecated_update_frame_base_hack and
5483 deprecated_update_frame_pc_hack.
5484 * hppa-tdep.c: Ditto.
5485
5486 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5487
5488 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5489 to read_reg and update its comment. Remove regnum member.
5490 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5491 Don't call read_reg when setting in_reg. Call read_reg to get
5492 the frame base if it's in a register. Return the register number
5493 on the stack instead of in the context. Remove extra arguments
5494 to read_reg.
5495 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5496 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5497 the register number on the expression stack.
5498 (needs_frame_read_reg): Remove extra arguments.
5499
5500 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5501
5502 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5503 made non-static.
5504 (execute_stack_op): All callers updated.
5505 * dwarf2expr.h: Add prototype for dwarf2_read_address.
5506 * dwarf2loc.c (find_location_expression): New function.
5507 (dwarf_expr_frame_base): Call it.
5508 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5509 (dwarf2_tracepoint_var_ref): New function, broken out from
5510 locexpr_tracepoint_var_ref.
5511 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5512 Make static.
5513 (loclist_read_variable, loclist_read_needs_frame): New functions.
5514 (loclist_describe_location, loclist_tracepoint_var_ref): New
5515 functions.
5516 (dwarf2_loclist_funcs): New struct location_funcs.
5517 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5518 (struct dwarf2_locexpr_baton): Add comments.
5519 (dwarf2_loclist_funcs): New extern.
5520 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5521 base_address and base_known.
5522 (dwarf_loc_buffer): New variable.
5523 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5524 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5525 (dwarf2_has_info): Initialize dwarf_loc_offset.
5526 (dwarf2_build_psymtabs): Read in .debug_loc.
5527 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5528 DWARF_LOC_SIZE.
5529 (psymtab_to_symtab_1): Likewise. Move base address calculation
5530 here, from...
5531 (dwarf2_get_pc_bounds): ... here. Use the base address from
5532 cu_header.
5533 (dwarf2_symbol_mark_computed): Handle location lists.
5534
5535 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5536
5537 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5538 if the linkage name demangled successfully.
5539
5540 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5541
5542 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5543 disassmbly_flavour): Removed.
5544
5545 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5546
5547 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5548
5549 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5550
5551 2003-04-12 Andrew Cagney <cagney@redhat.com>
5552
5553 * frame.h (struct frame_info): Move definition from here ...
5554 * frame.c (struct frame_info): ... to here.
5555
5556 2003-04-12 Andrew Cagney <cagney@redhat.com>
5557
5558 * gdbthread.h (save_infrun_state): Delete parameter
5559 "prev_func_start".
5560 (struct thread_info): Delete field "prev_func_start".
5561 (load_infrun_state): Ditto.
5562 * thread.c (load_infrun_state, save_infrun_state): Update.
5563 * infrun.c (prev_func_start): Delete variable.
5564 (context_switch, init_wait_for_inferior): Update.
5565 (stop_stepping, keep_going): Update.
5566
5567 2003-04-12 Andrew Cagney <cagney@redhat.com>
5568
5569 * gdbarch.sh: Add missing opaque declarations.
5570 * gdbarch.h: Regnerate.
5571 * symtab.h: Add missing opaque declarations.
5572 * value.h, target.h, symfile.h, stabsread.h: Ditto.
5573 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
5574 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
5575 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
5576 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
5577 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
5578 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
5579 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
5580 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
5581 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
5582 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
5583 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
5584 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
5585
5586 2003-04-11 Andrew Cagney <cagney@redhat.com>
5587
5588 * frame.c (get_frame_id): Return this frame's "id".
5589 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
5590 function start.
5591 (legacy_saved_regs_this_id): Replace function body with
5592 internal-error.
5593 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
5594 FRAME_OBSTACK_ZALLOC.
5595 (create_new_frame): Mark the frame ID as valid.
5596
5597 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
5598
5599 * Makefile.in (libbfd_h): Added missing setting.
5600 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
5601 according to the selected ABI.
5602
5603 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
5604
5605 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
5606
5607 2003-04-11 Andrew Cagney <cagney@redhat.com>
5608
5609 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
5610 SAVED_PC_AFTER_CALL.
5611 * gdbarch.h, gdbarch.c: Regenerate.
5612 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5613 * x86-64-tdep.c (x86_64_init_abi): Update.
5614 * vax-tdep.c (vax_gdbarch_init): Update.
5615 * v850-tdep.c (v850_gdbarch_init): Update.
5616 * sparc-tdep.c (sparc_gdbarch_init): Update.
5617 * sh-tdep.c (sh_gdbarch_init): Update.
5618 * s390-tdep.c (s390_gdbarch_init): Update.
5619 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5620 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5621 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5622 * mips-tdep.c (mips_gdbarch_init): Update.
5623 * mcore-tdep.c (mcore_gdbarch_init): Update.
5624 * m68k-tdep.c (m68k_gdbarch_init): Update.
5625 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5626 * ia64-tdep.c (ia64_gdbarch_init): Update.
5627 (ia64_saved_pc_after_call): Update declaration.
5628 * i386ly-tdep.c (i386lynx_init_abi): Update.
5629 * i386-tdep.c (i386_gdbarch_init): Update.
5630 * hppa-tdep.c (hppa_gdbarch_init): Update.
5631 * h8300-tdep.c (h8300_gdbarch_init): Update.
5632 * frv-tdep.c (frv_gdbarch_init): Update.
5633 * cris-tdep.c (cris_gdbarch_init): Update.
5634 * avr-tdep.c (avr_gdbarch_init): Update.
5635 * arm-tdep.c (arm_gdbarch_init): Update.
5636 * alpha-tdep.c (alpha_gdbarch_init): Update.
5637 * ns32knbsd-nat.c (frame_num_args): Update.
5638 * ns32k-tdep.c (umax_frame_num_args): Update.
5639 * mips-tdep.c (mips_init_frame_pc_first): Update.
5640 * infrun.c (step_over_function): Update.
5641 * i386-linux-tdep.c (skip_hurd_resolver): Update.
5642 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
5643 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5644 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5645 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5646 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5647 * arm-linux-tdep.c (skip_hurd_resolver): Update.
5648 * arch-utils.c (init_frame_pc_default): Update.
5649 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5650 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
5651 declaration.
5652
5653 2003-04-11 Andrew Cagney <cagney@redhat.com>
5654
5655 * i387-tdep.c: Update copyright.
5656 (i387_to_double): Delete function.
5657 (double_to_i387): Delete function.
5658
5659 2003-04-10 Andrew Cagney <cagney@redhat.com>
5660
5661 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
5662 frame's function's address. Simplify.
5663 (d10v_frame_unwind_cache): Check that the frame's function is
5664 non-zero.
5665
5666 2003-04-10 Jim Blandy <jimb@redhat.com>
5667
5668 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
5669 call to set_gdbarch_deprecated_push_arguments.
5670
5671 2003-04-10 Andrew Cagney <cagney@redhat.com>
5672
5673 * frame.c (fprint_frame_id): New function.
5674 (fprint_frame_type, fprint_frame): New function.
5675 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
5676 (create_sentinel_frame, get_frame_id): Ditto.
5677 (frame_id_p, frame_id_eq): Ditto.
5678 (frame_id_inner, create_new_frame): Ditto.
5679 (legacy_get_prev_frame, get_prev_frame): Ditto.
5680 (deprecated_update_frame_pc_hack): Ditto.
5681 (frame_register_unwind): Ditto.
5682 (deprecated_update_frame_base_hack): Ditto.
5683
5684 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
5685
5686 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
5687 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
5688 frame_chain function.
5689 * Makefile.in: Add dependencies due to above change.
5690
5691 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
5692
5693 * blockframe.c (legacy_frame_chain_valid): Move call to
5694 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
5695 inside_entry_file.
5696
5697 2003-04-09 Andrew Cagney <cagney@redhat.com>
5698
5699 * frame.h (struct frame_id): Replace "pc" and "base" with
5700 "stack_addr" and "code_addr". Update comments.
5701 (frame_id_build): Update parameter names and comment.
5702 (struct frame_info): Replace "id_p" and "id" with "this_id".
5703 * dummy-frame.c (dummy_frame_this_id): Update.
5704 * breakpoint.c (print_one_breakpoint): Update.
5705 * frame.c (get_frame_id): Update.
5706 (get_frame_base, frame_id_build): Update.
5707 (create_sentinel_frame, legacy_get_prev_frame): Update.
5708 (deprecated_update_frame_base_hack): Update.
5709 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
5710 (frame_id_inner): Ditto.
5711
5712 2003-04-09 Andrew Cagney <cagney@redhat.com>
5713
5714 * defs.h (gdb_print_host_address): Make "addr" parameter a
5715 pointer constant.
5716 * utils.c (gdb_print_host_address): Update.
5717
5718 2003-04-09 Kevin Buettner <kevinb@redhat.com>
5719
5720 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
5721 register number for R0 is 0.
5722
5723 2003-04-09 J. Brobecker <brobecker@gnat.com>
5724
5725 * frame.h (struct gdbarch): Add opaque structure definition
5726 to avoid a compilation warning on LynxOS 4.0.
5727
5728 2003-04-09 Andrew Cagney <cagney@redhat.com>
5729
5730 * frame.h (struct frame_info): Delete field "pc". Replace
5731 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
5732 structure.
5733 * frame.c (frame_pc_unwind): Update.
5734 (create_sentinel_frame): Do not set "pc".
5735 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
5736 (get_frame_pc): Call frame_pc_unwind.
5737 (deprecated_update_frame_pc_hack): Update.
5738 (create_new_frame): Use "pc" not "->pc".
5739
5740 2003-04-09 Andrew Cagney <cagney@redhat.com>
5741
5742 * frame.c (get_frame_id): Eliminate code updating "frame".
5743 (legacy_get_prev_frame): Ditto.
5744 (get_frame_base): Return id.base directly.
5745 (deprecated_update_frame_base_hack): Update "id.base".
5746 * frame.h (struct frame_info): Delete field "frame".
5747
5748 2003-04-09 Andrew Cagney <cagney@redhat.com>
5749
5750 * NEWS: Mention that the "Sequent family" is obsolete.
5751 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
5752 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5753 * configure.host: Obsolete i[3456]86-sequent-bsd*,
5754 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5755 * config/i386/tm-ptx4.h: Obsolete file.
5756 * config/i386/tm-ptx.h: Obsolete file.
5757 * symm-tdep.c: Obsolete file.
5758 * config/i386/symmetry.mt: Obsolete file.
5759 * config/i386/tm-symmetry.h: Obsolete file.
5760 * symm-nat.c: Obsolete file.
5761 * config/i386/nm-symmetry.h: Obsolete file.
5762 * config/i386/xm-symmetry.h: Obsolete file.
5763 * config/i386/symmetry.mh: Obsolete file.
5764 * config/i386/nm-ptx4.h: Obsolete file.
5765 * config/i386/ptx4.mh: Obsolete file.
5766 * config/i386/ptx.mt: Obsolete file.
5767 * config/i386/ptx.mh: Obsolete file.
5768 * config/i386/xm-ptx4.h: Obsolete file.
5769 * config/i386/xm-ptx.h: Obsolete file.
5770
5771 2003-04-09 Andrew Cagney <cagney@redhat.com>
5772
5773 Obsolete mips*-*-mach3*.
5774 * NEWS: Mention that mips*-*-mach3* is obsolete.
5775 * m3-nat.c: Obsolete file.
5776 * config/nm-m3.h: Obsolete file.
5777 * config/mips/tm-mipsm3.h: Obsolete file.
5778 * config/mips/mipsm3.mt: Obsolete file.
5779 * config/mips/mipsm3.mh: Obsolete file.
5780 * config/mips/xm-mipsm3.h: Obsolete file.
5781 * mipsm3-nat.c: Obsolete file.
5782 * configure.host: Obsolete mips-dec-mach3*.
5783 * configure.tgt: Obsolete mips*-*-mach3*.
5784
5785 2003-04-09 Andrew Cagney <cagney@redhat.com>
5786
5787 * doublest.h: Update copyright.
5788 (deprecated_store_floating, deprecated_extract_floating): Rename
5789 store_floating and extract_floating. Update comments.
5790 * doublest.c: Update copyright.
5791 (extract_floating_by_length): Replace extract_floating.
5792 (store_floating_by_length): Replace store_floating.
5793 (deprecated_extract_floating): New function.
5794 (deprecated_store_floating): New function.
5795 (extract_typed_floating): Call extract_floating_by_length.
5796 (store_typed_floating): Call store_floating_by_length.
5797 * x86-64-tdep.c (x86_64_store_return_value): Update.
5798 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
5799 (sh64_extract_return_value): Update.
5800 (sh_sh4_register_convert_to_virtual): Update.
5801 (sh_sh64_register_convert_to_virtual): Update.
5802 (sh_sh4_register_convert_to_raw): Update.
5803 (sh_sh64_register_convert_to_raw): Update.
5804 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
5805 (rs6000_register_convert_to_raw): Update.
5806 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
5807 (ia64_register_convert_to_raw): Update.
5808 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
5809 (REGISTER_CONVERT_TO_VIRTUAL): Update.
5810 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
5811 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
5812 (alpha_register_convert_to_raw): Update.
5813
5814 2003-04-08 Andrew Cagney <cagney@redhat.com>
5815
5816 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
5817 * gdbarch.h, gdbarch.c: Re-generate.
5818 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
5819 (d10v_gdbarch_init): Do not set saved_pc_after_call.
5820 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
5821 conditionally, use frame_pc_unwind as an alternative. Add
5822 comments.
5823 * arch-utils.c (init_frame_pc_default): Only call
5824 SAVED_PC_AFTER_CALL when available.
5825
5826 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
5827
5828 * infrun.c (stop_soon): Rename from stop_soon_quietly.
5829 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
5830 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
5831 (start_remote): Ditto.
5832 (handle_inferior_event): Ditto.
5833 (save_inferior_status): Ditto.
5834 (restore_inferior_status): Ditto.
5835 * infcmd.c (attach_command): Ditto.
5836 * fork-child.c (startup_inferior): Ditto.
5837 * inferior.h (stop_soon): Rename from stop_soon_quietly.
5838 * alpha-tdep.c (heuristic_proc_start): Ditto.
5839 * mips-tdep.c (heuristic_proc_start): Ditto.
5840 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
5841 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
5842 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
5843 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
5844 * remote-vx.c (vx_create_inferior): Ditto.
5845
5846 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
5847
5848 * infrun.c (stop_soon_quietly): Make it an enum, to better
5849 override the default behavior of handle_inferior_event.
5850 (clear_proceed_status): Update uses of stop_soon_quietly to
5851 reflect that it is now an enum.
5852 (start_remote): Ditto.
5853 (handle_inferior_event): Change logic a bit if stop_soon_quietly
5854 is set to handle the new GNU/Linux kernel behavior for
5855 attach/sigstop. Update uses of stop_soon_quietly.
5856 * inferior.h (enum stop_kind): New enum.
5857 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
5858 Reset normal handle_inferior_event behavior, afterwards.
5859 * fork-child.c (startup_inferior): Update.
5860 * alpha-tdep.c (heuristic_proc_start): Update.
5861 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
5862 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
5863 * solib-osf.c (osf_solib_create_inferior_hook): Update.
5864 * solib-irix.c (irix_solib_create_inferior_hook): Update.
5865 * remote-vx.c (vx_create_inferior): Update.
5866 * mips-tdep.c (heuristic_proc_start): Update.
5867
5868 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
5869
5870 * disasm.c (dump_insns): Move variables inside loop, or they will
5871 be freed more than once, causing wild memory corruptions.
5872 (gdb_disassembly): Look for the substring "-thread",
5873 instead of "-threads" in the target name, to make sure to find
5874 the 'multi-thread' target. Also, make sure we do the right thing
5875 with the "core" target.
5876
5877 2003-04-07 Kevin Buettner <kevinb@redhat.com>
5878
5879 * mips-tdep.c (mips_print_fp_register): New function, created from
5880 do_fp_register_row(). Registers are now (also) printed as hex.
5881 Only one register is printed per row.
5882 (mips_print_register, do_fp_register_row): Print floating point
5883 registers with mips_print_fp_register().
5884
5885 2003-04-06 Andrew Cagney <cagney@redhat.com>
5886
5887 * valprint.h (inspect_it): Add extern declaration.
5888 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
5889 (selectors_info, classes_info): Ditto.
5890 (find_objc_msgcall): Fix indentation.
5891 (objc_printstr): Delete extern declarations.
5892
5893 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
5894
5895 2003-04-06 Andrew Cagney <cagney@redhat.com>
5896
5897 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
5898 Update comment.
5899 * frame.c (legacy_saved_regs_this_id): Update.
5900 (legacy_get_prev_frame): Update.
5901 * xstormy16-tdep.c: Update comment.
5902 * sparc-tdep.c (sparc_frame_chain): Update comment.
5903 * blockframe.c (legacy_frame_chain_valid): Update.
5904
5905 2003-04-06 Andrew Cagney <cagney@redhat.com>
5906
5907 * valprint.c (val_print_type_code_int): Delete #ifdef
5908 PRINT_TYPELESS_INTEGER code.
5909
5910 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
5911 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
5912 multi-arch definition.
5913 * gdbarch.h: Re-generate.
5914
5915 2003-04-05 Andrew Cagney <cagney@redhat.com>
5916
5917 Eliminate FRAME_FIND_SAVED_REGS.
5918 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5919 Change FSR parameter to a pointer.
5920 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
5921 Assume FSR parameter is a pointer.
5922 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5923 Make fsr a pointer.
5924 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
5925 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
5926 saved_regs a pointer.
5927 (hppa_frame_saved_pc): Ditto.
5928 (find_dummy_frame_regs): Make frame_saved_regs a pointer
5929 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
5930 pointer.
5931 (restore_pc_queue): Make fsr a pointer.
5932 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
5933 (hppa_frame_chain): Make saved_regs a pointer, call
5934 hppa_frame_init_saved_regs.
5935 * sparc-tdep.c: Include "gdb_assert.h".
5936 (sparc_frame_find_saved_regs): Replace internal_error with
5937 gdb_assert.
5938 * remote-vxsparc.c (vx_read_register): Delete reference to
5939 FRAME_FIND_SAVED_REGS.
5940 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
5941 * gdbarch.h: Regenerate.
5942 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
5943 (deprecated_get_frame_saved_regs): Delete declaration.
5944 (struct frame_saved_regs): Delete definition.
5945 * frame.c (deprecated_get_frame_saved_regs): Delete function.
5946 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
5947 (hppa_frame_find_saved_regs): Delete declaration.
5948 (FRAME_FIND_SAVED_REGS): Delete macro.
5949 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
5950 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
5951 FRAME_FIND_SAVED_REGS in comment.
5952
5953 2003-04-05 Andrew Cagney <cagney@redhat.com>
5954
5955 * frame.c (frame_func_unwind, get_frame_func): New functions.
5956 * frame.h (get_frame_func, frame_func_unwind): Declare.
5957 (struct frame_info): Add field "prev_func" for caching the
5958 previous frame's function address.
5959 * arm-tdep.c (arm_frameless_function_invocation): Combine
5960 get_pc_function_start and get_frame_pc into get_frame_func.
5961 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
5962 (sh64_nofp_frame_init_saved_regs): Ditto.
5963 * s390-tdep.c (s390_function_start): Ditto.
5964 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
5965 (rs6000_frameless_function_invocation): Ditto.
5966 (rs6000_frame_saved_pc): Ditto.
5967 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
5968 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
5969 * i386-tdep.c (i386_frameless_signal_p): Ditto.
5970 (i386_frame_init_saved_regs): Ditto.
5971 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
5972 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
5973 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
5974 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5975 * blockframe.c (frameless_look_for_prologue): Ditto.
5976
5977 2003-04-05 Andrew Cagney <cagney@redhat.com>
5978
5979 * frame.c (legacy_get_prev_frame): Link prev to next at the
5980 function start. Update comments.
5981
5982 2003-04-05 Andrew Cagney <cagney@redhat.com>
5983
5984 * frame.c (get_frame_id): Update comment.
5985 (legacy_get_prev_frame): Update comment.
5986 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
5987 * gdbarch.h: Regenerate.
5988 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
5989 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
5990
5991 2003-04-05 Andrew Cagney <cagney@redhat.com>
5992
5993 * stack.c (print_frame_info): Use get_frame_pc.
5994
5995 2003-04-04 Andrew Cagney <cagney@redhat.com>
5996
5997 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
5998 the frame's type from the unwinder.
5999 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6000 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6001 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6002 (get_frame_base_address): Use get_frame_type.
6003 (get_frame_locals_address, get_frame_args_address): Ditto.
6004 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6005 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6006 (struct frame_info): Add comment explaining why the frame contains
6007 a "type" field.
6008 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6009 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6010 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6011 NORMAL_FRAME.
6012 * frame-unwind.h: Include "frame.h".
6013 (struct frame_unwind): Add "type" field.
6014 * Makefile.in (frame_unwind_h): Add $(frame_h).
6015
6016 2003-04-04 Andrew Cagney <cagney@redhat.com>
6017
6018 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6019 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6020 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6021 get_frame_base.
6022 (d10v_unwind_dummy_id): Use frame_id_build.
6023 * frame.c (find_frame_sal): Use get_frame_pc.
6024 (create_new_frame): Use deprecated_update_frame_pc_hack and
6025 deprecated_update_frame_base_hack.
6026 (create_sentinel_frame): Add comment about ->pc going away.
6027 (get_prev_frame): Add comment about ->pc going away.
6028 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6029 frame_id_build, deprecated_update_frame_pc_hack and
6030 deprecated_update_frame_base_hack.
6031 (select_frame): Use get_frame_pc.
6032 (legacy_saved_regs_this_id): Use frame_id_build.
6033
6034 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6035
6036 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6037 signed integer case.
6038 (classify_argument): Handle enumerations and references.
6039
6040 2003-04-04 Andrew Cagney <cagney@redhat.com>
6041
6042 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6043 ID to NULL.
6044
6045 2003-04-01 Adam Fedor <fedor@gnu.org>
6046
6047 * gdb/objc-lang.c (selectors_info): Replace calls to
6048 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6049 SYMBOL_NATURAL_NAME.
6050 (classes_info, find_methods): Likewise.
6051
6052 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6053
6054 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6055 ``mach'' to the value determined by bfd_default_set_arch_mach().
6056
6057 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6058
6059 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6060 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6061 (mi-cmd-file.o): Update dependencies.
6062
6063 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6064
6065 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6066 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6067
6068 2003-04-01 Adam Fedor <fedor@gnu.org>
6069
6070 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6071 * language.h (struct language_defn): Add la_demangle.
6072 (language_demangle): Declare.
6073 * language.c (language_demangle): New function.
6074 (unk_lang_demangle): Likewise.
6075 (unknown_language_defn, auto_language_defn, local_language_defn):
6076 Add ukn_lang_demangle.
6077 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6078 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6079 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6080 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6081 * jv-lang.c (java_demangle): New function
6082 (java_language_defn): Use it for la_demangle element.
6083 * objc-lang.c (objc_demangle): Add options argument
6084 (objc_language_defn): Use objc_demangle for la_demangle element.
6085 * maint.c (maintenance_demangle): Replace switch with
6086 call to language_demangle.
6087 * utils.c (fprintf_symbol_filtered): Likewise.
6088
6089 2003-04-01 Andrew Cagney <cagney@redhat.com>
6090
6091 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6092 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6093 PRINT_TYPELESS_INTEGER.
6094 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6095 PUSH_RETURN_ADDRESS.
6096
6097 2003-04-01 Andrew Cagney <cagney@redhat.com>
6098
6099 * Makefile.in (d10v-tdep.o): Update dependencies.
6100 * d10v-tdep.c: Include "frame-base.h".
6101 (d10v_frame_unwind): Make constant.
6102 (d10v_frame_base_address): New function.
6103 (d10v_frame_base): New variable.
6104 (d10v_gdbarch_init): Set frame_base default.
6105 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6106 comment for base.
6107 (d10v_frame_unwind_cache): Set and use "prev_sp".
6108 (d10v_frame_this_id): Use the previous frame's inner most stack
6109 address and this frame's func address for the frame ID. Use
6110 frame_id_build. Don't analyze beyond the current instruction.
6111
6112 2003-04-01 Andrew Cagney <cagney@redhat.com>
6113
6114 * frame.h (get_frame_locals_address, get_frame_args_address):
6115 Refer to the base address, instead of the address of the first
6116 local or parameter.
6117
6118 2003-04-01 Andrew Cagney <cagney@redhat.com>
6119
6120 Add frame debug info addresses:
6121 * frame-base.c: New file.
6122 * frame-base.h: New file.
6123 * frame.h (struct frame_base): Add opaque declaration.
6124 (get_frame_base): Update comment.
6125 (get_frame_base_address): Declare.
6126 (get_frame_locals_address): Declare.
6127 (get_frame_args_address): Declare.
6128 (struct frame_info): Add "base" and "base_cache". Update
6129 comments on the unwinder.
6130 * frame.c: Include "frame-base.h".
6131 (get_frame_locals_address): New function.
6132 (get_frame_base_address): New function.
6133 (get_frame_args_address): New function.
6134 * findvar.c (read_var_value): Use get_frame_locals_address and
6135 get_frame_args_address.
6136 * stack.c (frame_info): Use get_frame_locals_address and
6137 get_frame_args_address.
6138 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6139 moved to "frame-base.c".
6140 * printcmd.c (print_frame_nameless_args): Ditto.
6141 * symtab.h (address_class): Update comments.
6142 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6143 get_frame_base_address.
6144 * dwarf2expr.c (execute_stack_op): Ditto.
6145 * Makefile.in (frame_base_h): Define.
6146 (frame.o): Update dependencies.
6147 (frame-base.o): Add dependencies.
6148 (SFILES): Add frame-base.c.
6149 (COMMON_OBS): Add frame-base.o.
6150
6151 2003-04-01 Andrew Cagney <cagney@redhat.com>
6152
6153 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6154 CALL_DUMMY_LENGTH): Ditto.
6155 * gdbarch.c: Re-generate.
6156 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6157 (CALL_DUMMY_LENGTH): Delete macro.
6158 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6159 * arm-tdep.c (arm_gdbarch_init): Ditto.
6160 * avr-tdep.c (avr_gdbarch_init): Ditto.
6161 * cris-tdep.c (cris_gdbarch_init): Ditto.
6162 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6163 * frv-tdep.c (frv_gdbarch_init): Ditto.
6164 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6165 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6166 * i386-tdep.c (i386_gdbarch_init): Ditto.
6167 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6168 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6169 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6170 * mips-tdep.c (mips_gdbarch_init): Ditto.
6171 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6172 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6173 * s390-tdep.c (s390_gdbarch_init): Ditto.
6174 * sh-tdep.c (sh_gdbarch_init): Ditto.
6175 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6176 * v850-tdep.c (v850_gdbarch_init): Ditto.
6177 * vax-tdep.c (vax_gdbarch_init): Ditto.
6178 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6179
6180 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6181
6182 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6183
6184 2003-04-01 Andrew Cagney <cagney@redhat.com>
6185
6186 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6187 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6188 * gdbarch.h, gdbarch.c: Re-generate.
6189 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6190 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6191 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6192 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6193 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6194 * infcmd.c (run_stack_dummy): Simplify assuming
6195 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6196 * infrun.c (handle_inferior_event): Ditto.
6197 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6198 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6199 * arm-tdep.c (arm_gdbarch_init): Ditto.
6200 * avr-tdep.c (avr_gdbarch_init): Ditto.
6201 * cris-tdep.c (cris_gdbarch_init): Ditto.
6202 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6203 * frv-tdep.c (frv_gdbarch_init): Ditto.
6204 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6205 * i386-tdep.c (i386_gdbarch_init): Ditto.
6206 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6207 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6208 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6209 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6210 * mips-tdep.c (mips_gdbarch_init): Ditto.
6211 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6212 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6213 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6214 * s390-tdep.c (s390_gdbarch_init): Ditto.
6215 * sh-tdep.c (sh_gdbarch_init): Ditto.
6216 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6217 * v850-tdep.c (v850_gdbarch_init): Ditto.
6218 * vax-tdep.c (vax_gdbarch_init): Ditto.
6219 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6220
6221 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6222
6223 * symfile.c (symfile_relocate_debug_section): Update call to
6224 bfd_simple_get_relocated_section_contents.
6225
6226 2003-03-31 Andrew Cagney <cagney@redhat.com>
6227
6228 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6229 * gdbarch.h, gdbarch.c: Regenerate.
6230 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6231 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6232 available.
6233 * frame.h (generic_fix_call_dummy): Delete declaration.
6234 * dummy-frame.h: Update comment.
6235 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6236 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6237 fix_call_dummy.
6238 * sh-tdep.c (sh_gdbarch_init): Ditto.
6239 * s390-tdep.c (s390_gdbarch_init): Ditto.
6240 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6241 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6242 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6243 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6244 * i386-tdep.c (i386_gdbarch_init): Ditto.
6245 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6246 * frv-tdep.c (frv_gdbarch_init): Ditto.
6247 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6248 * cris-tdep.c (cris_gdbarch_init): Ditto.
6249 * avr-tdep.c (avr_gdbarch_init): Ditto.
6250 * arm-tdep.c (arm_gdbarch_init): Ditto.
6251
6252 2003-03-31 J. Brobecker <brobecker@gnat.com>
6253
6254 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6255 (INIT_FRAME_AP): Likewise.
6256 (EXTRA_FRAME_INFO): Likewise.
6257
6258 2003-03-31 Andrew Cagney <cagney@redhat.com>
6259
6260 * gdbarch.sh: Include "symfile.h".
6261 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6262 * gdbarch.h, gdbarch.c: Re-generate.
6263 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6264 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6265 call_dummy_address, the default is at entry_point_address.
6266 * v850-tdep.c (v850_gdbarch_init): Ditto.
6267 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6268 * sh-tdep.c (sh_gdbarch_init): Ditto.
6269 * s390-tdep.c (s390_gdbarch_init): Ditto.
6270 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6271 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6272 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6273 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6274 * i386-tdep.c (i386_gdbarch_init): Ditto.
6275 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6276 * frv-tdep.c (frv_gdbarch_init): Ditto.
6277 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6278 * cris-tdep.c (cris_gdbarch_init): Ditto.
6279 * arm-tdep.c (arm_gdbarch_init): Ditto.
6280
6281 2003-03-31 Andrew Cagney <cagney@redhat.com>
6282
6283 * gdbarch.sh (CALL_DUMMY_P): Delete.
6284 * gdbarch.h, gdbarch.c: Re-generate.
6285 * inferior.h (CALL_DUMMY_P): Delete macro.
6286 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6287 * vax-tdep.c (vax_gdbarch_init): Update.
6288 * v850-tdep.c (v850_gdbarch_init): Update.
6289 * sparc-tdep.c (sparc_gdbarch_init): Update.
6290 * sh-tdep.c (sh_gdbarch_init): Update.
6291 * s390-tdep.c (s390_gdbarch_init): Update.
6292 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6293 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6294 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6295 * mips-tdep.c (mips_gdbarch_init): Update.
6296 * mcore-tdep.c (mcore_gdbarch_init): Update.
6297 * m68k-tdep.c (m68k_gdbarch_init): Update.
6298 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6299 * ia64-tdep.c (ia64_gdbarch_init): Update.
6300 * i386-tdep.c (i386_gdbarch_init): Update.
6301 * h8300-tdep.c (h8300_gdbarch_init): Update.
6302 * frv-tdep.c (frv_gdbarch_init): Update.
6303 * d10v-tdep.c (d10v_gdbarch_init): Update.
6304 * cris-tdep.c (cris_gdbarch_init): Update.
6305 * breakpoint.c (deprecated_frame_in_dummy): Update.
6306 * avr-tdep.c (avr_gdbarch_init): Update.
6307 * alpha-tdep.c (alpha_gdbarch_init): Update.
6308 * arm-tdep.c (arm_gdbarch_init): Update.
6309 * dummy-frame.c (dummy_frame_this_id): Update comments.
6310 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6311 * frame.c (legacy_get_prev_frame): Ditto.
6312 * valops.c (call_function_by_hand): Delete function.
6313 (hand_function_call): Rename to call_function_by_hand
6314
6315 2003-03-30 Andrew Cagney <cagney@redhat.com>
6316
6317 2002-11-10 Klee Dienes <kdienes@apple.com>
6318 * value.h (struct value): Update comment.
6319
6320 2003-03-30 Andrew Cagney <cagney@redhat.com>
6321
6322 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6323 D10V_FP_REGNUM.
6324 (d10v_gdbarch_init): Do not set fp_regnum.
6325
6326 * frame.c (get_frame_base): Force ID initialization.
6327 (get_prev_frame): Move computation of the frame ID from here ...
6328 (get_frame_id): ... to here.
6329 (legacy_get_prev_frame): Mark the frame ID as valid.
6330 * frame.h (struct frame_info): Add field "id_p".
6331
6332 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6333
6334 * i386-tdep.c (i386_store_struct_return): Removed.
6335 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6336
6337 2003-03-30 Andrew Cagney <cagney@redhat.com>
6338
6339 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6340 * gdbarch.h, gdbarch.c: Regenerate.
6341 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6342 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6343 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6344 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6345 * i386-tdep.c (i386_gdbarch_init): Ditto.
6346 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6347 * cris-tdep.c (cris_gdbarch_init): Ditto.
6348 * vax-tdep.c (vax_gdbarch_init): Ditto.
6349 * s390-tdep.c (s390_gdbarch_init): Ditto.
6350 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6351 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6352 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6353 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6354 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6355 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6356 * sparc-tdep.c (sparc_gdbarch_init): Update.
6357 * sh-tdep.c (sh_gdbarch_init): Update.
6358 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6359 * mips-tdep.c (mips_gdbarch_init): Update.
6360 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6361 * ia64-tdep.c (ia64_gdbarch_init): Update.
6362 * frv-tdep.c (frv_gdbarch_init): Update.
6363 * avr-tdep.c (avr_gdbarch_init): Update.
6364 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6365 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6366 instead of when push_dummy_call is not available.
6367
6368 2003-03-30 Andrew Cagney <cagney@redhat.com>
6369
6370 * infttrace.c: Include "gdbthread.h".
6371 (parent_attach_all): Fix function signature.
6372 (call_ptrace): Update call.
6373 * Makefile.in (infttrace.o): Update dependencies.
6374
6375 2003-03-30 Andrew Cagney <cagney@redhat.com>
6376
6377 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6378 PUSH_RETURN_ADDRESS.
6379 * gdbarch.h, gdbarch.c: Regenerate.
6380 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6381 * x86-64-tdep.c (x86_64_init_abi): Update.
6382 * v850-tdep.c (v850_gdbarch_init): Update.
6383 * sparc-tdep.c (sparc_gdbarch_init): Update.
6384 * sh-tdep.c (sh_gdbarch_init): Update.
6385 * s390-tdep.c (s390_gdbarch_init): Update.
6386 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6387 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6388 * mips-tdep.c (mips_gdbarch_init): Update.
6389 * mcore-tdep.c (mcore_gdbarch_init): Update.
6390 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6391 * ia64-tdep.c (ia64_gdbarch_init): Update.
6392 * i386-tdep.c (i386_gdbarch_init): Update.
6393 * h8300-tdep.c (h8300_gdbarch_init): Update.
6394 * frv-tdep.c (frv_gdbarch_init): Update.
6395 * cris-tdep.c (cris_gdbarch_init): Update.
6396 * avr-tdep.c (avr_gdbarch_init): Update.
6397 * arm-tdep.c (arm_gdbarch_init): Update.
6398 * valops.c (hand_function_call): Update.
6399
6400 2003-03-29 Andrew Cagney <cagney@redhat.com>
6401
6402 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6403 sizeof_call_dummy_words.
6404 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6405 define.
6406 * gdbarch.h: Regenerate.
6407
6408 2003-03-29 Andrew Cagney <cagney@redhat.com>
6409
6410 * infttrace.h: New file.
6411 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6412 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6413 (hpread_read_doc_function_type): Detect an initialized type1.
6414 (hpread_quick_traverse): Initialize mod_name_string.
6415 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6416 (som_solib_get_solib_by_pc): Declare.
6417 (so_lib_thread_start_addr): Declare.
6418 (no_shared_libraries): Declare.
6419 * somread.c (init_import_symbols): Make static. Add forward
6420 declaration.
6421 * config/pa/nm-hppah.h: Include "infttrace.h" for
6422 parent_attach_all.
6423 (hppa_insert_hw_watchpoint): Declare.
6424 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6425 * hppah-nat.c: Include "gdb_string.h".
6426 (parent_attach_all): Delete extern declaration, moved to
6427 "infttrace.h".
6428 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6429 int.
6430 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6431 * Makefile.in (infttrace_h): Define.
6432 (hpread.o): Update dependencies.
6433 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6434 * hppa-hpux-tdep.c: Include "gdb_string.h".
6435 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6436 * infrun.c (handle_inferior_event): Always initialize
6437 stepped_after_stopped_by_watchpoint. Add default and remove
6438 fallthrough in switch statement.
6439 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6440 parameter to int.
6441 (hppa_remove_hw_watchpoint): Ditto.
6442
6443 2003-03-29 Andrew Cagney <cagney@redhat.com>
6444
6445 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6446 offset.
6447
6448 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
6449
6450 * arm-tdep.c (arm_push_arguments): Delete.
6451 (struct stack_item): New type.
6452 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6453 (arm_store_struct_return): Delte.
6454 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6455 arm_push_arguments or arm_store_struct_return.
6456
6457 2003-03-28 Andrew Cagney <cagney@redhat.com>
6458
6459 * Makefile.in (d10v-tdep.o): Update dependencies.
6460 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6461 * d10v-tdep.c: Include "remote.h".
6462 (target_resume_hook): Delete extern declaration.
6463 (target_wait_loop_hook): Ditto.
6464 (tdisassemble_command): Eliminate assignment in "if" conditional.
6465 (d10v_ts2_register_sim_regno): Eliminate call to
6466 legacy_register_sim_regno.
6467 (d10v_ts3_register_sim_regno): Ditto.
6468
6469 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
6470
6471 * thread.c: Reindented.
6472 * lin-lwp.c: Ditto.
6473 * linux-proc.c: Ditto.
6474
6475 2003-03-28 Bob Rossi <bob_rossi@cox.net>
6476
6477 * MAINTAINERS (write after approval): Add myself.
6478
6479 2003-03-27 Theodore A. Roth <troth@openavr.org>
6480
6481 * objc-exp.y: Add missing semi-colons.
6482
6483 2003-03-27 Andrew Cagney <cagney@redhat.com>
6484
6485 * regcache.c (write_sp): Delete function and references.
6486 * inferior.h (write_sp): Delete declaration.
6487 * valops.c (hand_function_call): Replace write_sp with
6488 TARGET_WRITE_SP.
6489 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6490 (sparc_pop_frame): Ditto.
6491
6492 2003-03-27 Andrew Cagney <cagney@redhat.com>
6493
6494 * NEWS: Mention removal of support for hppa*-*-bsd* and
6495 hppa*-*-osf* natives, and hppa*-*-pro* target.
6496 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6497 * config/pa/xm-pa.h: Obsolete file.
6498 * config/pa/xm-hppab.h: Obsolete file.
6499 * config/pa/nm-hppab.h: Obsolete file.
6500 * config/pa/tm-hppab.h: Obsolete file.
6501 * config/pa/tm-hppao.h: Obsolete file.
6502 * config/pa/nm-hppao.h: Obsolete file.
6503 * config/pa/tm-pro.h: Obsolete file.
6504 * config/pa/hppaosf.mt: Obsolete file.
6505 * config/pa/hppaosf.mh: Obsolete file.
6506 * config/pa/hppapro.mt: Obsolete file.
6507 * config/pa/hppabsd.mt: Obsolete file.
6508 * config/pa/hppabsd.mh: Obsolete file.
6509 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6510 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6511 hppa*-*-osf*.
6512
6513 2003-03-27 Andrew Cagney <cagney@redhat.com>
6514
6515 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6516 push_arguments. Don't set push_return_address or write_sp.
6517 (d10v_push_dummy_call): Replace d10v_push_arguments.
6518 (d10v_push_return_address, d10v_write_sp): Delete function,
6519 handled by push_dummy_call.
6520
6521 2003-03-26 Andrew Cagney <cagney@redhat.com>
6522
6523 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6524 (push_dummy_call): New pure multi-arch replacement with gdbarch,
6525 regcache and dummy_addr parameters.
6526 * gdbarch.h, gdbarch.c: Re-generate.
6527 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6528 available; assume it will handle stack alignment and return
6529 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
6530 legacy_push_arguments.
6531 (legacy_push_arguments): Rename default_push_arguments.
6532 * value.h (legacy_push_arguments): Rename default_push_arguments.
6533 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6534 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6535 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6536 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6537 * config/i386/tm-symmetry.h: Update.
6538 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6539 * x86-64-tdep.c (x86_64_init_abi): Update.
6540 * v850-tdep.c (v850_gdbarch_init): Update.
6541 * sparc-tdep.c (sparc_gdbarch_init): Update.
6542 * sh-tdep.c (sh_gdbarch_init): Update.
6543 * s390-tdep.c (s390_gdbarch_init): Update.
6544 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6545 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6546 * mips-tdep.c (mips_gdbarch_init): Update.
6547 * mcore-tdep.c (mcore_gdbarch_init): Update.
6548 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6549 * ia64-tdep.c (ia64_gdbarch_init): Update.
6550 * i386-tdep.c (i386_gdbarch_init): Update.
6551 * hppa-tdep.c (hppa_gdbarch_init): Update.
6552 * h8300-tdep.c (h8300_gdbarch_init): Update.
6553 * frv-tdep.c (frv_gdbarch_init): Update.
6554 * d10v-tdep.c (d10v_gdbarch_init): Update.
6555 * cris-tdep.c (cris_gdbarch_init): Update.
6556 * avr-tdep.c (avr_gdbarch_init): Update.
6557 * arm-tdep.c (arm_gdbarch_init): Update.
6558 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6559 * alpha-tdep.c (alpha_gdbarch_init): Update.
6560
6561 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6562
6563 * signals/signals.c (do_target_signal_to_host): Correct realtime
6564 signal range test.
6565
6566 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6567
6568 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6569 (struct sal_chain, map_catch_names): Remove.
6570 (catch_exception_command_1): Don't call
6571 handle_gnu_4_16_catch_command.
6572
6573 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6574
6575 From Mark Dettinger <dettinge@de.ibm.com>:
6576 * dwarf2cfi.c (read_2u): Increment pointer by two.
6577
6578 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6579
6580 * signals/signals.c: Fix typos in last change.
6581
6582 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6583
6584 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
6585 not already defined. Use __SIGRTMIN if available.
6586 (target_signal_from_host): Remove SIGRTMIN block.
6587 (do_target_signal_to_host): Remove SIGRTMIN block; check that
6588 the signal is within the realtime range.
6589
6590 2003-03-25 Adam Fedor <fedor@gnu.org>
6591
6592 * Makefile.in (infrun.o): Add $(language_h)
6593 * infrun.c (handle_inferior_event): Use skip_language_trampoline
6594 for language specific trampolines.
6595 * language.h (struct language_defn): Add skip_trampoline.
6596 (skip_language_trampoline): Declare.
6597 * language.c (unk_lang_trampoline, skip_language_trampoline):
6598 New functions.
6599 (unknown_language_defn, auto_language_defn, local_language_defn):
6600 Add ukn_lang_trampoline.
6601 * ada-lang.c (ada_language_defn): Add NULL for language
6602 specific skip_trampoline.
6603 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
6604 scm-lang.c: Likewise.
6605 * objc-lang.c (objc_skip_trampoline): New function.
6606 (objc_language_defn): Add objc_skip_trampoline.
6607
6608 2003-03-25 Andrew Cagney <cagney@redhat.com>
6609
6610 * frame.c (get_prev_frame): Delay validating a frame's ID -
6611 non-NULL, didn't go backwards - until an attempt to unwind it to
6612 the previous frame.
6613
6614 2003-03-25 Andrew Cagney <cagney@redhat.com>
6615
6616 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
6617 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
6618 * gdbarch.h, gdbarch.c: Re-generate.
6619 * config/sparc/tm-sparc.h
6620 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
6621 * sparc-tdep.c (sparc_gdbarch_init): Set
6622 deprecated_extra_stack_alignment_needed.
6623 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6624 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
6625 extra_stack_alignment_needed.
6626 * v850-tdep.c (v850_gdbarch_init): Ditto.
6627 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6628 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6629 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6630 * cris-tdep.c (cris_gdbarch_init): Ditto.
6631 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6632 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6633
6634 2003-03-25 Andrew Cagney <cagney@redhat.com>
6635
6636 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
6637 STORE_STRUCT_RETURN.
6638 * gdbarch.h, gdbarch.c: Regenerate.
6639 * d10v-tdep.c (d10v_store_struct_return): Delete function.
6640 (d10v_push_arguments): Set the struct return register.
6641 (d10v_gdbarch_init): Update.
6642 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6643 * x86-64-tdep.c (x86_64_init_abi): Update.
6644 * vax-tdep.c (vax_gdbarch_init): Update.
6645 * v850-tdep.c (v850_gdbarch_init): Update.
6646 * sparc-tdep.c (sparc_gdbarch_init): Update.
6647 * sh-tdep.c (sh_gdbarch_init): Update.
6648 * s390-tdep.c (s390_gdbarch_init): Update.
6649 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6650 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6651 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6652 * mips-tdep.c (mips_gdbarch_init): Update.
6653 * mcore-tdep.c (mcore_gdbarch_init): Update.
6654 * m68k-tdep.c (m68k_gdbarch_init): Update.
6655 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6656 * ia64-tdep.c (ia64_gdbarch_init): Update.
6657 * i386-tdep.c (i386_gdbarch_init): Update.
6658 * hppa-tdep.c (hppa_gdbarch_init): Update.
6659 * h8300-tdep.c (h8300_gdbarch_init): Update.
6660 * frv-tdep.c (frv_gdbarch_init): Update.
6661 * cris-tdep.c (cris_gdbarch_init): Update.
6662 * avr-tdep.c (avr_gdbarch_init): Update.
6663 * arm-tdep.c (arm_gdbarch_init): Update.
6664 * alpha-tdep.c (alpha_gdbarch_init): Update.
6665
6666 2003-03-25 Andrew Cagney <cagney@redhat.com>
6667
6668 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
6669 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
6670 CALL_DUMMY_STACK_ADJUST with a predicate variable.
6671 * gdbarch.h, gdbarch.c: Regenerate.
6672 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6673 call_dummy_stack_adjust_p.
6674 * vax-tdep.c (vax_gdbarch_init): Ditto.
6675 * v850-tdep.c (v850_gdbarch_init): Ditto.
6676 * sh-tdep.c (sh_gdbarch_init): Ditto.
6677 * s390-tdep.c (s390_gdbarch_init): Ditto.
6678 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6679 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6680 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6681 * mips-tdep.c (mips_gdbarch_init): Ditto.
6682 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6683 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6684 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6685 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6686 * i386-tdep.c (i386_gdbarch_init): Ditto.
6687 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6688 * frv-tdep.c (frv_gdbarch_init): Ditto.
6689 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6690 * cris-tdep.c (cris_gdbarch_init): Ditto.
6691 * avr-tdep.c (avr_gdbarch_init): Ditto.
6692 * arm-tdep.c (arm_gdbarch_init): Ditto.
6693 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6694 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6695 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
6696 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6697 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
6698 call_dummy_stack_adjust_p.
6699 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
6700 (CALL_DUMMY_STACK_ADJUST): Delete macro.
6701 * sparc-tdep.c (sparc32_push_arguments): Update.
6702 * valops.c (hand_function_call): Update.
6703
6704 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
6705
6706 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
6707 set_gdbarch_char_signed.
6708
6709 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
6710
6711 PR cli/548
6712 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
6713
6714 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
6715
6716 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
6717 (_initialize_arm_tdep): Don't set tm_print_insn.
6718
6719 2003-03-24 Adam Fedor <fedor@gnu.org>
6720
6721 * Makefile.in (YYOBJ): Add objc-exp.tab.o
6722 * objc-lang.h: Add multiple inclusion protection.
6723 (start_msglist, add_msglist, end_msglist): Additional declarations.
6724
6725 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
6726
6727 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
6728 value was renamed to ARM_FLOAT_SOFT_FPA.
6729
6730 2003-03-23 Andrew Cagney <cagney@redhat.com>
6731
6732 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
6733 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
6734 * gdbarch.h, gdbarch.c: Regenerate.
6735 * valops.c (hand_function_call): Update.
6736 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6737 * frame.c (legacy_saved_regs_this_id): Update.
6738 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
6739 * dummy-frame.h: Update.
6740 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
6741 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6742 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
6743 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
6744 * config/m68k/tm-sun3.h: Update.
6745 * blockframe.c (inside_main_func, frame_chain_valid): Update.
6746 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6747 * x86-64-tdep.c (x86_64_init_abi): Update.
6748 * vax-tdep.c (vax_gdbarch_init): Update.
6749 * v850-tdep.c (v850_gdbarch_init): Update.
6750 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
6751 * sh-tdep.c (sh_gdbarch_init): Update.
6752 * s390-tdep.c (s390_gdbarch_init): Update.
6753 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
6754 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
6755 (frame_get_saved_regs): Update.
6756 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6757 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6758 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6759 * mips-tdep.c (mips_gdbarch_init): Update.
6760 * mcore-tdep.c (mcore_gdbarch_init): Update.
6761 * m68k-tdep.c (m68k_gdbarch_init): Update.
6762 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6763 * ia64-tdep.c (ia64_gdbarch_init): Update.
6764 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
6765 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6766 (i386_interix_back_one_frame): Update.
6767 * hppa-tdep.c (hppa_gdbarch_init): Update.
6768 (hppa_init_extra_frame_info): Update.
6769 * h8300-tdep.c (h8300_gdbarch_init): Update.
6770 * frv-tdep.c (frv_gdbarch_init): Update.
6771 * cris-tdep.c (cris_gdbarch_init): Update.
6772 * avr-tdep.c (avr_gdbarch_init): Update.
6773 * arm-tdep.c (arm_gdbarch_init): Update.
6774 * alpha-tdep.c (alpha_gdbarch_init): Update.
6775
6776 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6777
6778 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
6779 (arm_get_fp_model): Declare.
6780 * arm-tdep.c (fp_model_strings): New string array.
6781 (arm_fp_model, current_fp_model): New variables.
6782 (arm_get_fp_model): New function.
6783 (arm_set_fp): New function.
6784 (set_fp_model_sfunc): New function.
6785 (show_fp_model): New function.
6786 (_initialize_arm_tdep): Add new command to set/show the FPU.
6787 (arm_extract_return_value): Use arm_get_fp_model.
6788 (arm_store_return_value): Likewise.
6789 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
6790 to initialize the floating-point data types.
6791 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
6792 model is FPA.
6793
6794 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6795
6796 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
6797 the current setting of each value.
6798 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
6799 new_set and new_show. Use add_setshow_cmd_full and
6800 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
6801 commands and add new version as subcommands of "set/show arm".
6802
6803 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6804
6805 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
6806 (set_arm_command, show_arm_command): New functions.
6807 (_initialize_arm_tdep): Add them.
6808 (num_disassembly_options): Renamed from num_flavor_options.
6809 (valid_disassembly_styles): Renamed from valid_flavors.
6810 (disassembly_style): Renamed from disassembly_flavor.
6811 (set_disassembly_style_sfunc): Renamed from
6812 set_disassembly_flavor_sfunc.
6813 (set_disassembly_style): Renamed from set_disassembly_flavor.
6814 (arm_othernames): Updated.
6815 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
6816 command. Add "set/show arm disassembly" commands. Deprecate
6817 "othernames" command.
6818
6819 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6820
6821 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
6822 (arm-tdep.o): Depend on elf_arm_h.
6823
6824 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6825
6826 * Makefile.in (coff_internal_h): Define.
6827 (arm-tdep.o): Update dependencies.
6828
6829 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6830
6831 * arm-tdep.c (prologue_cache): Delete.
6832 (check_prologue_cache, save_prologue_cache): Delete.
6833 (arm_scan_prologue): Don't check or update the prologue_cache.
6834 (arm_gdb_arch_init): Don't initialize it.
6835 (_initialize_arm_tdep): Likewise.
6836
6837 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
6838
6839 * MAINTAINERS (tui): Maintainer of tui code.
6840
6841 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
6842
6843 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
6844 (i386-cygwin-tdep.o): Add dependencies.
6845 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
6846 * i386-cygwin-tdep.c: New file.
6847 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
6848 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
6849
6850 2003-03-20 Andrew Cagney <cagney@redhat.com>
6851
6852 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
6853 (handle_inferior_event): Remove code calling
6854 DYNAMIC_TRAMPOLINE_NEXTPC.
6855
6856 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
6857 already has a full path.
6858
6859 * main.c (gdb_main): Return 1.
6860 (captured_main): Call error to report an invalid interpreter.
6861
6862 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6863 * alpha-osf1-tdep.c: Include "gdb_string.h".
6864
6865 2003-03-19 J. Brobecker <brobecker@gnat.com>
6866
6867 Continuing work to convert the hppa targets to multiarch partial.
6868
6869 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
6870 method, now that hppa_push_dummy_frame has a conformant prototype.
6871 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
6872 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
6873 for the switch to multiarch partial.
6874
6875 2003-03-19 Kevin Buettner <kevinb@redhat.com>
6876
6877 * mdebugread.c (parse_symbol): For stEnd, we're done counting
6878 when iss is issNull.
6879
6880 2003-03-18 Kevin Buettner <kevinb@redhat.com>
6881
6882 * mips-tdep.c (mips_register_name): Fix fencepost error involving
6883 NUM_REGS bounds check.
6884
6885 2003-03-18 Kevin Buettner <kevinb@redhat.com>
6886
6887 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
6888 * mips-tdep.c (gdb_assert.h): Include.
6889 (mips_generic_reg_names, mips_processor_reg_names): Make static.
6890 (mips_register_name): Handle integer registers explicitly. Add
6891 bounds checking.
6892 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
6893 (mips_lsi33k_reg_names): Don't list integer registers; they're
6894 handled by mips_register_name() now.
6895 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
6896 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
6897 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
6898 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
6899 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
6900
6901 2003-03-18 Andrew Cagney <cagney@redhat.com>
6902
6903 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
6904 a void pointer.
6905 * gdbtypes.h (print_scalar_formatted): Update declaration.
6906 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
6907
6908 2003-03-18 J. Brobecker <brobecker@gnat.com>
6909
6910 * infrun.c (observer.h): Add #include.
6911 (normal_stop): Add call to observer_notify_normal_stop.
6912 * Makefile.in (infrun.o): Add dependency on observer.h.
6913
6914 2003-03-18 J. Brobecker <brobecker@gnat.com>
6915
6916 Continuing work to convert the hppa targets to multiarch partial.
6917 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
6918 parameter. Reformat comment.
6919 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
6920 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
6921 to match new profile.
6922
6923 2003-03-18 J. Brobecker <brobecker@gnat.com>
6924
6925 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
6926 appear to be working in any case.
6927
6928 2003-03-18 J. Brobecker <brobecker@gnat.com>
6929
6930 * observer.c (observer_test_first_observer): New static variable.
6931 (observer_test_second_observer): Likewise.
6932 (observer_test_third_observer): Likewise.
6933 (observer_test_first_notification_function): New static function.
6934 (observer_test_second_notification_function): Likewise.
6935 (observer_test_third_notification_function): Likewise.
6936
6937 2003-03-17 J. Brobecker <brobecker@gnat.com>
6938
6939 * hppa-tdep.c (gdb_assert.h): Add missing #include.
6940 * somsolib.c (gdb_assert.h): Likewise.
6941 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
6942 (somsolib.o): Likewise.
6943
6944 2003-03-17 Andrew Cagney <cagney@redhat.com>
6945
6946 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
6947 BFD. Simplify setting of di.endian.
6948
6949 2003-03-17 Andrew Cagney <cagney@redhat.com>
6950
6951 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
6952 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
6953
6954 From Elena Zannoni <ezannoni@redhat.com>
6955 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
6956 vector and floating-point parameters.
6957 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
6958 convention.
6959 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
6960
6961 2003-03-17 Fernando Nasser <fnasser@redhat.com>
6962
6963 * MAINTAINERS: Remove my name from several maintainership roles.
6964
6965 2003-03-17 Andrew Cagney <cagney@redhat.com>
6966
6967 Fix frame off-by-one bug.
6968 * frame-unwind.h (frame_this_id_ftype): Replace
6969 frame_unwind_id_ftype.
6970 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
6971 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
6972 with "prev_register".
6973 * frame-unwind.c (frame_unwind_find_by_pc): Return
6974 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
6975 comment.
6976 * dummy-frame.c (cached_find_dummy_frame): Delete function.
6977 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
6978 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
6979 (dummy_frame_unwind): Update.
6980 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6981 sentinel_frame_register_unwind.
6982 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
6983 (sentinel_frame_unwinder): Update.
6984 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
6985 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
6986 * frame.c (create_sentinel_frame): Update. Initialize
6987 "prologue_cache" instead of "unwind_cache".
6988 (frame_register_unwind): Call this frame's prev_register with the
6989 next frame and this frame's prologue cache.
6990 (get_prev_frame): Simplify. Always call prev frame's this_id with
6991 this frame and prev frame's prologue cache. Document that this
6992 call is shifted one to the left when compared to the
6993 frame_register_unwind call.
6994 (legacy_saved_regs_prev_register): Replace
6995 frame_saved_regs_register_unwind.
6996 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
6997 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
6998 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
6999 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7000 (d10v_frame_unwind): Update.
7001 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7002 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7003 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7004 "saved_regs" with "this_saved_regs".
7005
7006 2003-03-16 Andrew Cagney <cagney@redhat.com>
7007
7008 * frame.c (frame_pop): Don't call target_store_registers. Fix
7009 problem reported by Mark Kettenis.
7010
7011 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7012
7013 * i386-tdep.c (i386_register_type): Renamed from
7014 i386_register_virtual_type. Adjust function signature.
7015 (i386_gdbarch_init): Set register_type instead of
7016 deprecated_max_register_raw_size,
7017 deprecated_max_register_virtual_size and register_virtual_type.
7018
7019 2003-03-14 Andrew Cagney <cagney@redhat.com>
7020
7021 * frame.c (get_prev_frame): When a legacy frame, always call
7022 legacy_get_prev_frame. Simplify unwind code using assumption that
7023 the unwinder is new.
7024 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7025 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7026 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7027
7028 2003-03-14 Andrew Cagney <cagney@redhat.com>
7029
7030 * frame.c (get_saved_register): Delete function.
7031 * frame.h (get_saved_register): Delete declaration.
7032 * xstormy16-tdep.c: Update comment.
7033 * regcache.h: Update comments.
7034 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7035 get_saved_register and extract_address, use
7036 frame_read_unsigned_register.
7037 (sparc_frame_saved_pc): Ditto.
7038 (sparc_get_saved_register): Instead of get_saved_register, use
7039 frame_register.
7040 (sparc_pop_frame): Ditto.
7041 * findvar.c: Update comments.
7042 (value_of_register): Call frame_register instead of
7043 get_saved_register.
7044 (value_from_register): Ditto.
7045 * config/sparc/tm-sparc.h: Update comment.
7046 * breakpoint.c: Update comment.
7047
7048 2003-03-14 Andrew Cagney <cagney@redhat.com>
7049
7050 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7051 GET_SAVED_REGISTER.
7052 * gdbarch.h, gdbarch.c: Re-generate.
7053 * frame.h: Update comments.
7054 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7055 * x86-64-tdep.c (x86_64_init_abi): Update.
7056 * sparc-tdep.c (sparc_gdbarch_init): Update.
7057 * sh-tdep.c (sh_gdbarch_init): Update.
7058 * mips-tdep.c (mips_gdbarch_init): Update.
7059 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7060 * cris-tdep.c (cris_gdbarch_init): Update.
7061 * ia64-tdep.c (ia64_gdbarch_init): Update.
7062 * frame.c (frame_register): Update.
7063 (get_saved_register): Update.
7064 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7065
7066 2003-03-13 Andrew Cagney <cagney@redhat.com>
7067
7068 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7069 * gdbarch.h, gdbarch.c: Regenerate.
7070 * valops.c (hand_function_call): Update comment.
7071 * stack.c (return_command): Update comment.
7072 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7073 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7074 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7075 * x86-64-tdep.c (x86_64_init_abi): Update.
7076 * vax-tdep.c (vax_gdbarch_init): Update.
7077 * v850-tdep.c (v850_gdbarch_init): Update.
7078 * sparc-tdep.c (sparc_gdbarch_init): Update.
7079 * sh-tdep.c (sh_gdbarch_init): Update.
7080 * s390-tdep.c (s390_gdbarch_init): Update.
7081 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7082 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7083 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7084 * mips-tdep.c (mips_gdbarch_init): Update.
7085 * mcore-tdep.c (mcore_gdbarch_init): Update.
7086 * m68k-tdep.c (m68k_gdbarch_init): Update.
7087 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7088 * ia64-tdep.c (ia64_gdbarch_init): Update.
7089 * i386-tdep.c (i386_gdbarch_init): Update.
7090 * hppa-tdep.c (hppa_gdbarch_init): Update.
7091 * h8300-tdep.c (h8300_gdbarch_init): Update.
7092 * frv-tdep.c (frv_gdbarch_init): Update.
7093 * cris-tdep.c (cris_gdbarch_init): Update.
7094 * avr-tdep.c (avr_gdbarch_init): Update.
7095 * arm-tdep.c (arm_gdbarch_init): Update.
7096 * alpha-tdep.c (alpha_gdbarch_init): Update.
7097
7098 2003-03-13 Andrew Cagney <cagney@redhat.com>
7099
7100 * frame.c (legacy_frame_p): New function.
7101 (get_prev_frame): Use legacy_frame_p.
7102 * frame.h (legacy_frame_p): Declare.
7103
7104 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7105
7106 * MAINTAINERS (write after approval): Alphabetically
7107 listing corrected.
7108
7109 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7110
7111 * MAINTAINERS (write after approval): Add myself.
7112
7113 2003-03-12 Andrew Cagney <cagney@redhat.com>
7114
7115 * frame.c (get_prev_frame): Rename the frame parameter to
7116 "this_frame".
7117 (get_next_frame, legacy_get_prev_frame): Ditto.
7118
7119 2003-03-12 Andrew Cagney <cagney@redhat.com>
7120
7121 * frame.c (get_current_frame): Check target_has_registers before
7122 checking target_has_stack.
7123 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7124 instead of deprecated_selected_frame.
7125 * findvar.c (value_of_register): Pass "frame", not
7126 deprecated_selected_frame, to value_of_builtin_reg.
7127
7128 2003-03-12 Andrew Cagney <cagney@redhat.com>
7129
7130 * regcache.c (regcache_cooked_write_signed): New function.
7131 (regcache_cooked_write_unsigned): New function.
7132 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7133 (regcache_cooked_read_signed): Fix regnum in range assertion.
7134 * regcache.h (regcache_cooked_write_signed): Declare.
7135 (regcache_cooked_write_unsigned): Declare.
7136
7137 2003-03-12 Andrew Cagney <cagney@redhat.com>
7138
7139 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7140 * gdbarch.h, gdbarch.c: Re-generate.
7141 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7142 * x86-64-tdep.h: Update.
7143 * x86-64-tdep.c (x86_64_init_abi): Update.
7144 * v850-tdep.c (v850_gdbarch_init): Update.
7145 * sparc-tdep.c (sparc_gdbarch_init): Update.
7146 * sh-tdep.c (sh_gdbarch_init): Update.
7147 * s390-tdep.c (s390_gdbarch_init): Update.
7148 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7149 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7150 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7151 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7152 * mips-tdep.c (mips_gdbarch_init): Update.
7153 * mcore-tdep.c (mcore_gdbarch_init): Update.
7154 * m68k-tdep.c (m68k_gdbarch_init): Update.
7155 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7156 * ia64-tdep.c (ia64_gdbarch_init): Update.
7157 * i386-tdep.c (i386_gdbarch_init): Update.
7158 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7159 * hppa-tdep.c (hppa_gdbarch_init): Update.
7160 * h8300-tdep.c (h8300_gdbarch_init): Update.
7161 * frv-tdep.c (frv_gdbarch_init): Update.
7162 * cris-tdep.c (cris_gdbarch_init): Update.
7163 * avr-tdep.c (avr_gdbarch_init): Update.
7164 * arm-tdep.c (arm_gdbarch_init): Update.
7165 * alpha-tdep.c (alpha_gdbarch_init): Update.
7166 * sh-tdep.c (sh_init_extra_frame_info): Update.
7167 (sh64_init_extra_frame_info): Update.
7168 * ns32knbsd-nat.c (frame_num_args): Update.
7169 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7170 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7171 (xstormy16_frame_chain_valid): Update.
7172 * vax-tdep.c (vax_saved_pc_after_call): Update.
7173 * v850-tdep.c (v850_frame_chain): Update.
7174 (v850_pop_frame): Update.
7175 (v850_init_extra_frame_info): Update.
7176 * sparc-tdep.c (setup_arbitrary_frame): Update.
7177 * ns32k-tdep.c (umax_frame_num_args): Update.
7178 * s390-tdep.c (s390_pop_frame_regular): Update.
7179 * mn10300-tdep.c (mn10300_frame_chain): Update.
7180 (mn10300_pop_frame_regular): Update.
7181 (mn10300_init_extra_frame_info): Update.
7182 * mips-tdep.c (mips_init_frame_pc_first): Update.
7183 (mips_frame_chain): Update.
7184 (mips_pop_frame): Update.
7185 * mcore-tdep.c (mcore_frame_chain): Update.
7186 (mcore_pop_frame): Update.
7187 (mcore_init_extra_frame_info): Update.
7188 * arch-utils.c (init_frame_pc_default): Update.
7189 * m68k-tdep.c (isi_frame_num_args): Update.
7190 (delta68_frame_num_args): Update.
7191 (news_frame_num_args): Update.
7192 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7193 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7194 (alpha_frame_chain): Update.
7195 (alpha_pop_frame): Update.
7196 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7197 (hppa_init_extra_frame_info): Update.
7198 (hppa_frame_chain): Update.
7199 (hppa_frame_chain_valid): Update.
7200 * cris-tdep.c (cris_init_extra_frame_info): Update.
7201 * avr-tdep.c (avr_init_extra_frame_info): Update.
7202 * arm-tdep.c (arm_frame_chain_valid): Update.
7203 (arm_init_extra_frame_info): Update.
7204 (arm_pop_frame): Update.
7205 * frame.c (frame_pc_unwind): Update.
7206 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7207 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7208 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7209 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7210 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7211 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7212
7213 2003-03-12 Andrew Cagney <cagney@redhat.com>
7214
7215 Eliminate the need for POP_FRAME.
7216 * frame.c (do_frame_unwind_register): New function.
7217 (frame_pop): When no POP_FRAME, pop the frame using register
7218 unwind and a scratch regcache.
7219 (frame_saved_regs_pop): Delete function.
7220 (trad_frame_unwinder): Update.
7221 * d10v-tdep.c (d10v_frame_pop): Delete function.
7222 (d10v_frame_unwind): Update.
7223 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7224 (sentinel_frame_unwinder): Update.
7225 * dummy-frame.c (dummy_frame_pop): Delete function.
7226 (dummy_frame_unwind): Update.
7227 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7228 (struct frame_unwind): Update.
7229
7230 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7231
7232 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7233 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7234 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7235 Do range checks on register number obtained from debugging info.
7236 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7237 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7238 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7239 mapping function.
7240 (do_fp_register_row): Fix typo which caused double type to be
7241 used when attempting to unpack a float.
7242
7243 2003-03-11 J. Brobecker <brobecker@gnat.com>
7244
7245 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7246
7247 2003-03-11 Andrew Cagney <cagney@redhat.com>
7248
7249 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7250 frame. Problem found by Corinna Vinschen.
7251
7252 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7253
7254 * doublest.c (floatformat_from_length): Accept also
7255 the real size of 'long double' type.
7256
7257 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7258
7259 From Klee Dienes <kdienes@apple.com>:
7260 * breakpoint.c (bpstat_copy): Copy the command lines as well
7261 as the old value, to match what is freed in bpstat_clear.
7262
7263 2003-03-10 David Carlton <carlton@math.stanford.edu>
7264
7265 * minsyms.c (add_minsym_to_hash_table): Replace
7266 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7267 (compare_minimal_symbols, compact_minimal_symbols)
7268 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7269 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7270 of DEPRECATED_SYMBOL_MATCHES_NAME.
7271 (lookup_minimal_symbol_solib_trampoline): Ditto.
7272
7273 2003-03-10 Andrew Cagney <cagney@redhat.com>
7274
7275 * regcache.h (regcache_cooked_read_ftype): Define.
7276 (regcache_save, regcache_restore): Add a cooked_read parameter.
7277 * regcache.c (regcache_save, regcache_restore): Update.
7278 (do_cooked_read): New function.
7279 (regcache_cpy): Pass do_cooked_read to regcache_save and
7280 regcache_restore.
7281
7282 2003-03-10 Andrew Cagney <cagney@redhat.com>
7283
7284 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7285 * gdbarch.h, gdbarch.c: Re-generate.
7286 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7287 * x86-64-tdep.h: Update.
7288 * x86-64-tdep.c (x86_64_init_abi): Update.
7289 * v850-tdep.c (v850_gdbarch_init): Update.
7290 * sparc-tdep.c (sparc_gdbarch_init): Update.
7291 * sh-tdep.c (sh_gdbarch_init): Update.
7292 * s390-tdep.c (s390_gdbarch_init): Update.
7293 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7294 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7295 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7296 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7297 * mips-tdep.c (mips_gdbarch_init): Update.
7298 * mcore-tdep.c (mcore_gdbarch_init): Update.
7299 * m68k-tdep.c (m68k_gdbarch_init): Update.
7300 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7301 * ia64-tdep.c (ia64_gdbarch_init): Update.
7302 * i386-tdep.c (i386_gdbarch_init): Update.
7303 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7304 * hppa-tdep.c (hppa_gdbarch_init): Update.
7305 * h8300-tdep.c (h8300_gdbarch_init): Update.
7306 * frv-tdep.c (frv_gdbarch_init): Update.
7307 * cris-tdep.c (cris_gdbarch_init): Update.
7308 * avr-tdep.c (avr_gdbarch_init): Update.
7309 * arm-tdep.c (arm_gdbarch_init): Update.
7310 * alpha-tdep.c (alpha_gdbarch_init): Update.
7311 * sh-tdep.c (sh_init_extra_frame_info): Update.
7312 (sh64_init_extra_frame_info): Update.
7313 * ns32knbsd-nat.c (frame_num_args): Update.
7314 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7315 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7316 (xstormy16_frame_chain_valid): Update.
7317 * vax-tdep.c (vax_saved_pc_after_call): Update.
7318 * v850-tdep.c (v850_frame_chain): Update.
7319 (v850_pop_frame): Update.
7320 (v850_init_extra_frame_info): Update.
7321 * sparc-tdep.c (setup_arbitrary_frame): Update.
7322 * ns32k-tdep.c (umax_frame_num_args): Update.
7323 * s390-tdep.c (s390_pop_frame_regular): Update.
7324 * mn10300-tdep.c (mn10300_frame_chain): Update.
7325 (mn10300_pop_frame_regular): Update.
7326 (mn10300_init_extra_frame_info): Update.
7327 * mips-tdep.c (mips_init_frame_pc_first): Update.
7328 (mips_frame_chain): Update.
7329 (mips_pop_frame): Update.
7330 * mcore-tdep.c (mcore_frame_chain): Update.
7331 (mcore_pop_frame): Update.
7332 (mcore_init_extra_frame_info): Update.
7333 * arch-utils.c (init_frame_pc_default): Update.
7334 * m68k-tdep.c (isi_frame_num_args): Update.
7335 (delta68_frame_num_args): Update.
7336 (news_frame_num_args): Update.
7337 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7338 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7339 (alpha_frame_chain): Update.
7340 (alpha_pop_frame): Update.
7341 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7342 (hppa_init_extra_frame_info): Update.
7343 (hppa_frame_chain): Update.
7344 (hppa_frame_chain_valid): Update.
7345 * cris-tdep.c (cris_init_extra_frame_info): Update.
7346 * avr-tdep.c (avr_init_extra_frame_info): Update.
7347 * arm-tdep.c (arm_frame_chain_valid): Update.
7348 (arm_init_extra_frame_info): Update.
7349 (arm_pop_frame): Update.
7350 * frame.c (frame_pc_unwind): Update.
7351 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7352 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7353 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7354 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7355 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7356 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7357
7358 2003-03-10 Andrew Cagney <cagney@redhat.com>
7359
7360 * gdbarch.sh (gdbarch_unwind_pc): New method.
7361 * gdbarch.h, gdbarch.c: Regenerate.
7362 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7363 but use read_pc and FRAME_SAVED_PC as fall backs.
7364 (frame_saved_regs_pc_unwind): Delete function.
7365 (trad_frame_unwinder): Update.
7366 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7367 (struct frame_unwind): Update.
7368 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7369 (dummy_frame_unwind): Update.
7370 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7371 (sentinel_frame_unwinder): Update.
7372 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7373 (d10v_frame_unwind): Update.
7374 (d10v_unwind_pc): New function.
7375 (d10v_gdbarch_init): Set unwind_pc.
7376
7377 2003-03-10 Andrew Cagney <cagney@redhat.com>
7378
7379 * gdbarch.h: Re-generate.
7380
7381 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7382 PC.
7383 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7384 the PC register.
7385
7386 2003-03-08 Mark Kettenis <kettenis@gnu.org>
7387
7388 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7389
7390 2003-03-08 Andrew Cagney <cagney@redhat.com>
7391
7392 * cli-out.c: Update copyright.
7393 (cli_out_data): Define typedef. Use instead of ui_out_data.
7394
7395 2003-03-08 Andrew Cagney <cagney@redhat.com>
7396
7397 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7398 the result.
7399
7400 2003-03-07 Andrew Cagney <cagney@redhat.com>
7401
7402 * gdbarch.sh: Don't generate two macro definitions when an
7403 undefined macro taking no arguments.
7404 * gdbarch.h: Regenerate.
7405
7406 2002-03-07 Michal Ludvig <mludvig@suse.cz>
7407
7408 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7409 (x86_64_unwind_dummy_id): New functions.
7410 (x86_64_init_abi): Register these two new functions.
7411
7412 2003-03-07 Michal Ludvig <mludvig@suse.cz>
7413
7414 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7415 (x86_64_skip_prologue): Move prologue detection to
7416 separate function.
7417 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7418
7419 2003-03-05 Andrew Cagney <cagney@redhat.com>
7420
7421 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7422 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7423 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7424 to use unwind_dummy_id when a dummy frame.
7425 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7426 predicate.
7427 * gdbarch.h, gdbarch.c: Regneerate.
7428
7429 2003-03-05 Andrew Cagney <cagney@redhat.com>
7430
7431 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7432 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7433 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7434 values.
7435
7436 2003-03-05 Andrew Cagney <cagney@redhat.com>
7437
7438 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7439 (struct d10v_unwind_cache): Delete field "frameless". Replace
7440 "next_addr" with "sp_offset". Add "r11_offset".
7441 (d10v_frame_unwind_cache): Update.
7442 (prologue_find_regs): Update. When "mv r11, sp", save the
7443 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7444 RN was saved in r11_offset.
7445
7446 2003-03-05 Andrew Cagney <cagney@redhat.com>
7447
7448 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7449 cached PC value in the next frame.
7450
7451 2003-03-05 Andrew Cagney <cagney@redhat.com>
7452
7453 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7454 "id_unwind_cache" with "id".
7455 (frame_id_unwind): Delete declaration.
7456 * frame.c (frame_id_unwind): Delete function.
7457 (get_prev_frame): Call the frame id unwind method directly. Store
7458 the returned next frame's ID value in NEXT_FRAME. Note that there
7459 is a problem with the wrong unwind ID being called with the wrong
7460 unwind cache.
7461
7462 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7463
7464 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7465
7466 2003-03-05 James Ingham <jingham@apple.com>
7467 Daniel Jacobowitz <drow@mvista.com>
7468
7469 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7470 (auto_cp_abi): New variable.
7471 (current_cp_abi, num_cp_abis): Make static.
7472 (CP_ABI_MAX): Define.
7473 (cp_abis): Turn into an array.
7474 (value_virtual_fn_field): Fix formatting.
7475 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7476 takes a pointer.
7477 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7478 (list_cp_abis, _initialize_cp_abi): New functions.
7479 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7480 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7481 switch_to_cp_abi. Update prototype for register_cp_abi.
7482 * Makefile.in (cp-abi.o): Update dependencies.
7483 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7484 instead of switch_to_cp_abi.
7485 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7486 register_cp_abi.
7487 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7488 register_cp_abi.
7489 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7490
7491 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7492
7493 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7494 * dwarf2loc.c: Include "regcache.h".
7495 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7496 register_size.
7497 * Makefile.in (dwarf2loc.o): Update dependencies.
7498
7499 2003-03-04 Theodore A. Roth <troth@openavr.org>
7500
7501 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7502 number of io registers reported by remote target is not a multiple of
7503 step.
7504
7505 2003-03-04 David Carlton <carlton@math.stanford.edu>
7506
7507 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7508 (lookup_symbol_aux_psymtabs): Update call to
7509 lookup_partial_symbol.
7510 (lookup_transparent_type, find_main_psymtab)
7511 (make_symbol_overload_list): Ditto.
7512
7513 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
7514
7515 * MAINTAINERS (Write after approval): Update my email address.
7516
7517 2003-03-03 Andrew Cagney <cagney@redhat.com>
7518
7519 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7520 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7521 predicate. Replace MAX_REGISTER_RAW_SIZE.
7522 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7523 MAX_REGISTER_VIRTUAL_SIZE.
7524 * regcache.c (legacy_max_register_raw_size): New function.
7525 (legacy_max_register_virtual_size): New function.
7526 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7527 (MAX_REGISTER_RAW_SIZE): Define.
7528 (legacy_max_register_raw_size): Declare.
7529 (legacy_max_register_virtual_size): Declare.
7530 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7531 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7532 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7533 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7534 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7535 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7536 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7537 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7538 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7539 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7540 * vax-tdep.c (vax_gdbarch_init): Update.
7541 * v850-tdep.c (v850_gdbarch_init): Update.
7542 * sparc-tdep.c (sparc_gdbarch_init): Update.
7543 * sh-tdep.c (sh_gdbarch_init): Update.
7544 * s390-tdep.c (s390_gdbarch_init): Update.
7545 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7546 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7547 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7548 * mips-tdep.c (mips_gdbarch_init): Update.
7549 * mcore-tdep.c (mcore_gdbarch_init): Update.
7550 * m68k-tdep.c (m68k_gdbarch_init): Update.
7551 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7552 * ia64-tdep.c (ia64_gdbarch_init): Update.
7553 * i386-tdep.c (i386_gdbarch_init): Update.
7554 * hppa-tdep.c (hppa_gdbarch_init): Update.
7555 * h8300-tdep.c (h8300_gdbarch_init): Update.
7556 * frv-tdep.c (frv_gdbarch_init): Update.
7557 * cris-tdep.c (cris_gdbarch_init): Update.
7558 * avr-tdep.c (avr_gdbarch_init): Update.
7559 * arm-tdep.c (arm_gdbarch_init): Update.
7560 * alpha-tdep.c (alpha_gdbarch_init): Update.
7561 * d10v-tdep.c (d10v_gdbarch_init): Do not set
7562 max_register_raw_size or max_register_virtual_size.
7563
7564 2003-03-03 David Carlton <carlton@math.stanford.edu>
7565
7566 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7567 SYMBOL_MATCHES_NAME, add comment.
7568 (SYMBOL_MATCHES_NATURAL_NAME): New.
7569 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7570 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7571 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7572 * symtab.c (lookup_partial_symbol): Use
7573 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
7574 unhelpful comment.
7575 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
7576 SYMBOL_MATCHES_NAME.
7577 Fix for PR c++/33.
7578
7579 2003-03-03 David Carlton <carlton@math.stanford.edu>
7580
7581 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
7582 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
7583 by regexp matching against SYMBOL_NATURAL_NAME.
7584
7585 2003-03-03 David Carlton <carlton@math.stanford.edu>
7586
7587 * linespec.c (find_method): Extract code into collect_methods.
7588 (collect_methods): New.
7589
7590 2003-03-02 Mark Kettenis <kettenis@gnu.org>
7591
7592 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
7593 get_frame_base.
7594
7595 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
7596 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7597
7598 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
7599
7600 * arch-utils.c (generic_register_byte): Fix to use the loop index
7601 and not regnum when summing the size of all registers up to regnum.
7602
7603 2003-03-01 Andrew Cagney <cagney@redhat.com>
7604
7605 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
7606 FRAME_INIT_SAVED_REGS.
7607 * gdbarch.h, gdbarch.c: Regenerate.
7608 * stack.c (frame_info): Update.
7609 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
7610 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
7611 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
7612 * ns32k-tdep.c (ns32k_pop_frame): Update.
7613 * mips-tdep.c (mips_pop_frame): Update.
7614 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
7615 * ia64-tdep.c (ia64_frame_chain): Update.
7616 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
7617 (ia64_frameless_function_invocation): Update.
7618 (ia64_init_extra_frame_info): Update.
7619 (ia64_pop_frame_regular): Update.
7620 * frame.h (struct frame_info): Update comment.
7621 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
7622 * frame.c (frame_saved_regs_register_unwind): Update.
7623 (frame_saved_regs_register_unwind): Update.
7624 (deprecated_generic_get_saved_register): Update.
7625 * cris-tdep.c: Update comment.
7626 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
7627 Rename macro.
7628 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7629 * x86-64-tdep.c (x86_64_init_abi): Update.
7630 * vax-tdep.c (vax_gdbarch_init): Update.
7631 * v850-tdep.c (v850_gdbarch_init): Update.
7632 * sparc-tdep.c (sparc_gdbarch_init): Update.
7633 * sh-tdep.c (sh_gdbarch_init): Update.
7634 * s390-tdep.c (s390_gdbarch_init): Update.
7635 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7636 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7637 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7638 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7639 * mips-tdep.c (mips_gdbarch_init): Update.
7640 * mcore-tdep.c (mcore_gdbarch_init): Update.
7641 * m68k-tdep.c (m68k_gdbarch_init): Update.
7642 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7643 * ia64-tdep.c (ia64_gdbarch_init): Update.
7644 * i386-tdep.c (i386_gdbarch_init): Update.
7645 * frv-tdep.c (frv_gdbarch_init): Update.
7646 * avr-tdep.c (avr_gdbarch_init): Update.
7647 * arm-tdep.c (arm_gdbarch_init): Update.
7648 * alpha-tdep.c (alpha_gdbarch_init): Update.
7649
7650 2003-03-01 Andrew Cagney <cagney@redhat.com>
7651
7652 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
7653 option enum and switch. When no windows, set the interpreter to
7654 INTERP_CONSOLE.
7655
7656 2003-03-01 Andrew Cagney <cagney@redhat.com>
7657
7658 * main.c (captured_main): Replace magic option characters with an
7659 enum.
7660
7661 2003-03-01 Andrew Cagney <cagney@redhat.com>
7662
7663 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
7664 INIT_EXTRA_FRAME_INFO.
7665 * gdbarch.h, gdbarch.c: Regenerate.
7666 * arm-tdep.c: Update comments.
7667 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
7668 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
7669 * frame.h, avr-tdep.c: Ditto.
7670 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
7671 (create_new_frame, legacy_get_prev_frame): Ditto.
7672 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7673 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7674 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
7675 deprecated_init_extra_frame_info instead of init_extra_frame_info.
7676 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7677 * v850-tdep.c (v850_gdbarch_init): Ditto.
7678 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7679 * sh-tdep.c (sh_gdbarch_init): Ditto.
7680 * s390-tdep.c (s390_gdbarch_init): Ditto.
7681 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
7682 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7683 * mips-tdep.c (mips_gdbarch_init): Ditto.
7684 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7685 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7686 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7687 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7688 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7689 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7690 * frv-tdep.c (frv_gdbarch_init): Ditto.
7691 * cris-tdep.c (cris_gdbarch_init): Ditto.
7692 * avr-tdep.c (avr_gdbarch_init): Ditto.
7693 * arm-tdep.c (arm_gdbarch_init): Ditto.
7694 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7695 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7696
7697 2003-03-01 Andrew Cagney <cagney@redhat.com>
7698
7699 * gdbarch.sh (register_type): New function with predicate.
7700 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
7701 * gdbarch.h, gdbarch.c: Re-generate.
7702 * arch-utils.c (generic_register_byte): Use generic_register_size.
7703 (generic_register_size): When available, use
7704 gdbarch_register_type.
7705 * regcache.c (init_regcache_descr): When available, initialize the
7706 register type array using gdbarch_register_type. If the
7707 architecture supplies gdbarch_register_type, do not use the legacy
7708 regcache layout.
7709 * d10v-tdep.c (d10v_register_type): Replace
7710 d10v_register_virtual_type.
7711 (d10v_gdbarch_init): Set register_type instead of
7712 register_virtual_type.
7713
7714 2003-03-01 Andrew Cagney <cagney@redhat.com>
7715
7716 * Makefile.in (ax-gdb.o): Update dependencies.
7717 * ax-gdb.c: Include "regcache.h".
7718 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
7719 * findvar.c (value_of_register): Ditto.
7720 * infcmd.c (default_print_registers_info): Ditto.
7721
7722 2003-03-01 Mark Kettenis <kettenis@gnu.org>
7723
7724 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
7725 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7726
7727 2003-03-01 Mark Kettenis <kettenis@gnu.org>
7728
7729 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
7730 of STREQ.
7731
7732 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
7733
7734 * Makefile.in (dwarf2loc.o): Update dependencies.
7735 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
7736 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
7737 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
7738 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
7739 (locexpr_tracepoint_var_ref): New function.
7740 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
7741
7742 2003-02-28 Andrew Cagney <cagney@redhat.com>
7743
7744 * regcache.c (register_size): New function.
7745 * regcache.h (register_size): Declare
7746 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
7747 max_register_size instead of MAX_REGISTER_RAW_SIZE.
7748
7749 2003-02-28 David Carlton <carlton@math.stanford.edu>
7750
7751 * linespec.c (decode_compound): Extract code into find_method.
7752 (find_method): New.
7753
7754 2003-02-28 J. Brobecker <brobecker@gnat.com>
7755
7756 * Makefile.in: Add rules to build and link in observer.o.
7757
7758 2003-02-27 J. Brobecker <brobecker@gnat.com>
7759
7760 * observer.c: Minor comments edits.
7761
7762 2003-02-27 J. Brobecker <brobecker@gnat.com>
7763
7764 * observer.h, observer.c: New file.
7765
7766 2003-02-27 Andrew Cagney <cagney@redhat.com>
7767
7768 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
7769
7770 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
7771
7772 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
7773 (M6812_OP_STS_EXT): Likewise.
7774 (m6811_prologue): Use the above to recognize prologue.
7775 (m6812_prologue): Likewise.
7776
7777 2003-02-27 David Carlton <carlton@math.stanford.edu>
7778
7779 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
7780 SYMBOL_PRINT_NAME.
7781 (compare_psymbols): Ditto.
7782 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
7783
7784 2003-02-27 Michael Snyder <msnyder@redhat.com>
7785
7786 * f-lang.c (build_fortran_types): New function.
7787 (_initialize_f_language): Gdbarch-register built-in fortran types.
7788 * doublest.c (extract_floating): Fix warning text.
7789
7790 2003-02-27 Andrew Cagney <cagney@redhat.com>
7791
7792 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
7793 predicate. Replaces PUSH_DUMMY_FRAME.
7794 * gdbarch.h, gdbarch.c: Regnerate.
7795 * valops.c (hand_function_call): Update. Call
7796 generic_push_dummy_frame directly.
7797 * vax-tdep.c (vax_gdbarch_init): Update.
7798 * sparc-tdep.c (sparc_gdbarch_init): Update.
7799 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7800 * m68k-tdep.c (m68k_gdbarch_init): Update.
7801 * hppa-tdep.c (hppa_gdbarch_init): Update.
7802 * alpha-tdep.c (alpha_gdbarch_init): Update.
7803 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7804 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7805 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
7806 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
7807 push_dummy_frame to generic_push_dummy_frame.
7808 * v850-tdep.c (v850_gdbarch_init): Ditto.
7809 * sh-tdep.c (sh_gdbarch_init): Ditto.
7810 * s390-tdep.c (s390_gdbarch_init): Ditto.
7811 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7812 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7813 * mips-tdep.c (mips_gdbarch_init): Ditto.
7814 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7815 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7816 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7817 * i386-tdep.c (i386_gdbarch_init): Ditto.
7818 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7819 * frv-tdep.c (frv_gdbarch_init): Ditto.
7820 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7821 * cris-tdep.c (cris_gdbarch_init): Ditto.
7822 * avr-tdep.c (avr_gdbarch_init): Ditto.
7823 * arm-tdep.c (arm_gdbarch_init): Ditto.
7824
7825 2003-02-26 Kevin Buettner <kevinb@redhat.com>
7826
7827 * mips-tdep.c (show_mips_abi): New function.
7828 (_initialize_mips_tdep): Use show_mips_abi() to implement the
7829 command ``show mips abi''.
7830
7831 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
7832
7833 From Elena Zannoni <ezannoni@redhat.com>
7834 * dbxread.c (process_one_symbol): Only record line 0 if one or
7835 more sline entries have been seen for the function.
7836
7837 2003-02-26 Michael Chastain <mec@shout.net>
7838
7839 * configure: Regenerate with autoconf 000227.
7840
7841 2003-02-26 Michael Chastain <mec@shout.net>
7842
7843 Close PR build/660.
7844 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
7845 for old libc5/glibc.
7846 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
7847
7848 2003-02-26 Kris Warkentin <kewarken@qnx.com>
7849
7850 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
7851 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
7852
7853 2003-02-26 Michael Chastain <mec@shout.net>
7854
7855 * configure.in: New variable HAVE_UINTPTR_T.
7856 * configure, config.in: Regenerated.
7857
7858 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
7859
7860 Fix PR build/1097.
7861 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
7862
7863 2003-02-25 Andrew Cagney <cagney@redhat.com>
7864
7865 * frame.c (get_prev_frame): Add comment on check for
7866 inside_entry_func. Only check for inside_entry_file when not a
7867 dummy and not a sentinel. Check that the new frame is not inner
7868 to the old frame.
7869
7870 2003-02-25 Andrew Cagney <cagney@redhat.com>
7871
7872 * frame.c (frame_debug): New variable.
7873 (_initialize_frame): Add "set/show debug frame" command.
7874 (get_prev_frame): When frame_debug, print reason why unwind
7875 failed.
7876
7877 2003-02-25 Michael Chastain <mec@shout.net>
7878
7879 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
7880 to avoid uintptr_t definition problems.
7881
7882 2003-02-25 David Carlton <carlton@math.stanford.edu>
7883
7884 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
7885 (SYMBOL_LINKAGE_NAME): Ditto.
7886 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
7887 SYMBOL_LINKAGE_NAME.
7888 (struct general_symbol_info): Expand comment.
7889 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
7890 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
7891 (SYMBOL_MATCHES_REGEXP): Ditto.
7892 * symtab.c (symbol_natural_name): New function.
7893 * objfiles.h: Replace all uses of SYMBOL_NAME by
7894 DEPRECATED_SYMBOL_NAME.
7895 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
7896 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
7897 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
7898 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
7899 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
7900 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
7901 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
7902 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
7903 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
7904 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
7905 * ada-exp.y: Ditto.
7906 * ada-exp.y: Update copyright.
7907 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
7908 * cp-valprint.c: Ditto.
7909
7910 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
7911
7912 * infptrace.c (detach): Do not flag error if ptrace detach fails
7913 and errno is set to ESRCH.
7914
7915 2003-02-24 Andrew Cagney <cagney@redhat.com>
7916
7917 * infptrace.c (udot_info): Change type of udot_off to long. Use
7918 paddr when printing udot_off's value.
7919
7920 2003-02-24 David Carlton <carlton@math.stanford.edu>
7921
7922 * symtab.c (make_symbol_overload_list): Only read in partial
7923 symtabs containing a matching partial symbol.
7924
7925 2003-02-24 David Carlton <carlton@math.stanford.edu>
7926
7927 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
7928 do the comparison, not strcmp.
7929 * symfile.c (compare_psymbols): Ditto.
7930 * defs.h: Declare strcmp_iw_ordered.
7931 * utils.c (strcmp_iw_ordered): New function.
7932
7933 2003-02-24 Jim Blandy <jimb@redhat.com>
7934
7935 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
7936 support, shared libs): Remove my name from here, to better reflect
7937 reality.
7938
7939 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7940
7941 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
7942 (target_ops): Add to_have_continuable_watchpoint.
7943 * target.c (update_current_target): Add INHERIT line for
7944 to_have_continuable_watchpoint.
7945 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
7946 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
7947 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
7948 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
7949
7950 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
7951
7952 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
7953 maintainership.
7954
7955 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7956
7957 * solib.c (solib_open): Call target defined search function after
7958 failing with solib-search-path.
7959 * solist.h (target_so_ops): Add find_and_open_solib function hook and
7960 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
7961
7962 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7963
7964 * MAINTAINERS: Add myself to Write After section.
7965
7966 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
7967
7968 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
7969
7970 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
7971
7972 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
7973 (m68hc11_add_reggroups): New function.
7974 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
7975 (m68hc11_gdbarch_init): Install the reggroups.
7976 (_initialize_m68hc11_tdep): Initialize them.
7977
7978 2003-02-21 James E Wilson <wilson@tuliptree.org>
7979
7980 * MAINTAINERS: Update my email address.
7981
7982 2003-02-21 David Carlton <carlton@math.stanford.edu>
7983
7984 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
7985
7986 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
7987
7988 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
7989 * symtab.h: Add opaque declarations of struct axs_value and
7990 struct agent_expr.
7991 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
7992 (struct location_funcs): New type.
7993 (struct symbol): Add "loc" to aux_value.
7994 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
7995 * dwarf2read.c: Include "dwarf2expr.h".
7996 (dwarf2_symbol_mark_computed): New function.
7997 (read_func_scope): Use it.
7998 (var_decode_location): New function.
7999 (new_symbol): Use it.
8000 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8001
8002 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8003 (dwarf2expr_h, dwarf2loc_h): New variables.
8004 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8005 (dwarf2expr.o, dwarf2loc.o): New rules.
8006 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8007 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8008 LOC_COMPUTED_ARG.
8009 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8010 * m2-exp.y (yylex): Likewise.
8011 * printcmd.c (address_info, print_frame_args): Likewise.
8012 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8013 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8014 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8015 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8016 * symtab.c (lookup_block_symbol): Likewise.
8017
8018 2003-02-20 Adam Fedor <fedor@gnu.org>
8019
8020 * symtab.h: Remove objc_specific struct
8021 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8022 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8023 Have language_objc use cplus_specific struct.
8024
8025 2003-02-20 Tom Tromey <tromey@redhat.com>
8026
8027 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8028 TYPE_NAME, when printing a String value. PR java/1075.
8029
8030 2003-02-20 Adam Fedor <fedor@gnu.org>
8031
8032 * objc-lang.h (find_methods): Remove declaration.
8033 * objc-lang.c (find_methods): Make static.
8034
8035 2003-02-20 Christopher Faylor <cgf@redhat.com>
8036
8037 * win32-nat.c (get_image_name): Check return value from
8038 ReadProcessMemory.
8039 (child_xfer_memory): Ditto.
8040
8041 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8042
8043 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8044 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8045 '${exec_prefix}' (in addition to the expansion thereof) as
8046 relocatable.
8047 * configure: Rebuilt.
8048
8049 2003-02-20 David Carlton <carlton@math.stanford.edu>
8050
8051 * symtab.c (search_symbols): Revert the search_symbols part of my
8052 2002-12-23 patch. Add comment.
8053
8054 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8055
8056 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8057 * dbxread.c (elfstab_build_psymtabs): Don't call
8058 install_minimal_symbols.
8059 (stabsect_build_psymtabs): Likewise.
8060 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8061 earlier.
8062 * somread.c (som_symfile_read): Call install_minimal_symbols
8063 and do_cleanups earlier.
8064 * nlmread.c (nlm_symfile_read): Likewise.
8065 * mdebugread.c (elfmdebug_build_psymtabs): Call
8066 install_minimal_symbols and make appropriate cleanups.
8067
8068 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8069
8070 * solib.c (reload_shared_libraries): New function.
8071 (_initialize_solib): Add callbacks for ``set solib-search-path''
8072 and ``set solib-absolute-prefix''.
8073
8074 2003-02-20 David Carlton <carlton@math.stanford.edu>
8075
8076 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8077 expand comment.
8078 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8079 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8080 * ada-typeprint.c (ada_typedef_print): Ditto.
8081 * ax-gdb.c (gen_var_ref): Ditto.
8082 * breakpoint.c (print_one_breakpoint): Ditto.
8083 * buildsym.c (finish_block): Ditto.
8084 * c-valprint.c (c_val_print): Ditto.
8085 * expprint.c (print_subexp): Ditto.
8086 * findvar.c (locate_var_value): Ditto.
8087 * infcmd.c (jump_command): Ditto.
8088 * linespec.c (decode_line_2, decode_compound): Ditto.
8089 * maint.c (maintenance_translate_address): Ditto.
8090 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8091 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8092 Ditto.
8093 * p-valprint.c (pascal_val_print): Ditto.
8094 * stabsread.c (define_symbol): Ditto.
8095 * stack.c (print_frame, frame_info, print_block_frame_locals)
8096 (print_frame_arg_vars, return_command): Ditto.
8097 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8098 * symmisc.c (print_symbol): Ditto.
8099 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8100 (compare_search_syms, print_symbol_info, print_msymbol_info)
8101 (rbreak_command): Ditto.
8102 * tracepoint.c (tracepoints_info): Ditto.
8103 * typeprint.c (typedef_print): Ditto.
8104 * valops.c (value_of_variable, hand_function_call): Ditto.
8105 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8106 * ada-typeprint.c: Update Copyright.
8107 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8108 * tracepoint.c, cli/cli-cmds.c: Ditto.
8109
8110 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8111
8112 * frame.c (generic_unwind_get_saved_register): Make non-static.
8113 * frame.h (generic_unwind_get_saved_register): Declare.
8114 * mips-tdep.c (read_next_frame_reg): Fetch register from
8115 current regcache when frame is NULL.
8116 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8117 that must be NULL.
8118 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8119 instead of frame_register_unwind().
8120
8121 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8122
8123 * remote-sim.c (gdbsim_insert_breakpoint)
8124 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8125 code.
8126
8127 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8128
8129 * remote.c (_initialize_remote): Add commands "set/show remote
8130 hardware-watchpoint-limit" and "set/show remote
8131 hardware-breakpoint-limit".
8132 (remote_hw_watchpoint_limit): Initialize to -1.
8133 (remote_hw_breakpoint_limit): Ditto.
8134 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8135
8136 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8137
8138 * coff-pe-read.c: New file - support reading of minimal symbols from a
8139 portable executable using the export table.
8140 * coff-pe-read.h: New file.
8141 * coffread.c: Include coff-pe-read.h.
8142 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8143 debugging symbols found.
8144 * Makefile.in (SFILES): Add coff-pe-read.o.
8145 (coff_pe_read_h): Define.
8146 (COMMON_OBS): Add coff-pe-read.o.
8147 (coffread.o): Add coff_pe_read_h dependency.
8148 (coff-pe-read.o): New target.
8149
8150 2003-02-19 David Carlton <carlton@math.stanford.edu>
8151
8152 * Makefile.in (SFILES): Add block.c.
8153 (block_h): New.
8154 (COMMON_OBS): Add block.o.
8155 (block.o): New.
8156 (x86-64-tdep.o): Add $(block_h).
8157 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8158 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8159 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8160 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8161 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8162 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8163 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8164 * value.h: Add opaque declaration for struct block.
8165 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8166 * ada-lang.h: Ditto.
8167 * x86-64-tdep.c: #include "block.h"
8168 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8169 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8170 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8171 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8172 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8173 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8174 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8175 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8176 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8177 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8178 * symtab.c (block_function): Ditto.
8179 (contained_in): Ditto.
8180 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8181 block.h. Add opaque declaration for struct block.
8182 * symtab.h: Move block_function and contained_in declarations to
8183 block.h. Add opaque declarations for struct block, struct
8184 blockvector.
8185 (struct block): Move to block.h.
8186 (struct blockvector): Ditto.
8187 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8188 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8189 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8190 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8191 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8192 Ditto.
8193 * block.c: New file.
8194 * block.h: New file.
8195
8196 2003-02-19 Theodore A. Roth <troth@openavr.org>
8197
8198 * avr-tdep.c (avr_extract_return_value): Remove function.
8199 (avr_store_return_value): Remove function.
8200 (avr_extract_struct_value_address): Remove function.
8201 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8202
8203 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8204
8205 * rs6000-tdep.c: Include "gdb_assert.h".
8206 (registers_e500): Add "acc" and "spefscr".
8207 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8208 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8209 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8210 really is "r0".
8211 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8212
8213 2003-02-18 Keith Seitz <keiths@redhat.com>
8214
8215 * Makefile.in: Add gdbtk-interps.c.
8216
8217 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8218
8219 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8220 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8221
8222 2003-02-18 Andrew Cagney <cagney@redhat.com>
8223
8224 * symtab.h (struct objfile): Add opaque declaration.
8225
8226 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8227
8228 From Jim Ingham <jingham@apple.com>:
8229 * dbxread.c (process_one_symbol): Use last_function_start rather
8230 than function_start_offset to find the real beginning of the
8231 current function. The latter is just the text section offset on
8232 some systems, the former is always the real function start.
8233
8234 2003-02-17 Andrew Cagney <cagney@redhat.com>
8235
8236 * configure.in: Revert ${target} != ${host}.
8237
8238 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8239
8240 * configure.in (Makefile): Use the test ${target} != ${host},
8241 instead of the absence of the "nm.h" file, to determine of the
8242 configuration non-native.
8243 * configure: Regenerate.
8244
8245 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8246
8247 From Brian Ford <ford@vss.fsi.com>
8248
8249 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8250 conditionalize tui_active test.
8251 (lookup_cmd_1): Ditto.
8252
8253 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8254
8255 * configure.in: Add check for _etext.
8256 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8257 available.
8258 * config.in, configure: regenerated.
8259
8260 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8261
8262 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8263
8264 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8265
8266 * main.c (tui_version): Delete variable.
8267 (captured_main): When --tui, set interpreter_p to "tui" instead of
8268 enabling tui_version.
8269 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8270 tui_version.
8271 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8272 * cli/cli-cmds.c (disassemble_command): Ditto.
8273 * defs.h (tui_version): Delete declaration.
8274 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8275 (tui-interp.o): Add rules.
8276 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8277
8278 2003-02-14 Christopher Faylor <cgf@redhat.com>
8279
8280 * win32-nat.c (register_loaded_dll): Correctly set address range for
8281 just-loaded dll.
8282
8283 2003-02-12 Jason Molenda (jmolenda@apple.com)
8284
8285 * symmisc.c (print_objfile_statistics): Include information about
8286 the number of psymtabs and symtabs in each object file.
8287
8288 2003-02-13 Keith R Seitz <keiths@redhat.com>
8289
8290 * main.h (struct captured_main_args): Add interpreter_p.
8291 * main.c (captured_main): Initialize interpreter_p from context.
8292 * gdb.c (main): Set interpreter_p argument.
8293 * Makefile.in (gdb.o): Add dependency for interps.h.
8294
8295 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8296
8297 * event-top.c (cli_command_loop): Delete declaration.
8298 (_initialize_event_loop): Delete function setting event_loop_hook.
8299 * event-top.h (cli_command_loop): Declare. Update copyright.
8300 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8301 * interps.c (current_interp_command_loop): When event_loop_p, call
8302 cli_command_loop.
8303
8304 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8305
8306 * interps.h (interp_command_loop_ftype): Change return type to
8307 void.
8308
8309 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8310
8311 * x86-64-tdep.c (x86_64_extract_return_value)
8312 (x86_64_store_return_value): Use regcache instead of regbuf.
8313 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8314 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8315
8316 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8317
8318 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8319 * aclocal.m4: Regenerate.
8320 * configure: Regenerate.
8321
8322 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8323 TCL_LD_SEARCH_FLAGS.
8324
8325 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8326
8327 * dwarf2cfi.c: Reindented.
8328
8329 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8330
8331 * interps.c (clear_interpreter_hooks): Convert function definition
8332 to ISO C.
8333
8334 2003-02-07 David Carlton <carlton@math.stanford.edu>
8335
8336 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8337
8338 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8339
8340 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8341 (struct type): ...to here.
8342 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8343 field.
8344 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8345 (replace_type): Set length on all type variants for a given type.
8346
8347 2003-02-07 Andrew Cagney <ac131313@redhat.com>
8348
8349 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8350 <sys/stat.h>.
8351 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8352
8353 2003-02-06 Andrew Cagney <ac131313@redhat.com>
8354
8355 * Makefile.in (symm-nat.o): Update dependencies.
8356 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8357 (lynx-nat.o, ia64-linux-nat.): Ditto.
8358 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8359 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8360 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8361
8362 * Makefile.in (inflow_h): Define.
8363 (procfs.o, inflow.o, procfs.o): Update dependencies.
8364 * inftarg.c (child_stop): Delete extern declaration of
8365 inferior_process_group. Include "inflow.h".
8366 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8367 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8368 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8369 (our_process_group, inferior_process_group): Extern declarations.
8370
8371 * procfs.c: Include "gdb_assert.h".
8372
8373 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8374 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8375 * jv-typeprint.c (java_type_print_base): Ditto.
8376 * typeprint.c (typedef_print): Eliminate STREQ.
8377 * cli/cli-script.c (define_command, define_command): Ditto.
8378 * main.c (captured_main): Ditto.
8379 * values.c (lookup_internalvar): Ditto.
8380 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8381 within `if' conditional.
8382 * linespec.c (decode_line_2): Ditto.
8383 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8384 (bfd_openw_with_cleanup): Ditto.
8385
8386 2003-02-07 Mark Kettenis <kettenis@gnu.org>
8387
8388 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8389 legacy_extract_return_value and store_return_value to
8390 legacy_return_value.
8391
8392 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8393
8394 * win32-nat.c (get_relocated_section_addrs): New function. Find
8395 section load addresses for symbol handling in relocated DLLs.
8396 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8397
8398 2003-02-05 Fred Fish <fnf@intrinsity.com>
8399
8400 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8401 '=' and '!='.
8402 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8403 with '&' and '=='.
8404 (angel_RDI_info): Ditto.
8405 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8406 with '&' and '!='.
8407 (threads_continue_all_with_signals): Ditto.
8408
8409 2003-02-05 Jim Ingham <jingham@apple.com>
8410 Keith Seitz <keiths@redhat.com>
8411 Elena Zannoni <ezannoni@redhat.com>
8412 Andrew Cagney <ac131313@redhat.com>
8413
8414 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8415 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8416 (SUBDIR_MI_OBS): Add "mi-interp.o".
8417 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8418 (SFILES): Add "interps.c".
8419 (COMMON_OBS): Add "interps.o".
8420 (interps_h, mi_main_h): Define.
8421 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8422 (mi-main.o, main.o, event-top.o): Update dependencies.
8423 * cli/cli-interp.c: New file.
8424 * interps.h, interps.c: New files.
8425 * top.c: (gdb_init): Don't install the default interpreter, handed
8426 by captured_main.
8427 * main.c: Include "interps.h".
8428 (interpreter_p): Note that it should malloc'ed.
8429 (captured_command_loop): Call current_interp_command_loop.
8430 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8431 xfree and xstrdup when updating interpreter_p. Install the
8432 default interpreter. Add hack to stop mi1's copyright notice
8433 being encoded.
8434 * event-top.h (gdb_setup_readline): Declare.
8435 (gdb_disable_readline): Declare.
8436 * event-top.c: Include "interps.h".
8437 (display_gdb_prompt): Call current_interp_display_prompt_p.
8438 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8439 gdb_stdlog, and gdb_stdtarg.
8440 (_initialize_event_loop): Don't call gdb_setup_readline.
8441 * cli-out.c (cli_out_set_stream): New function.
8442 * cli-out.h (cli_out_set_stream): Declare.
8443
8444 2003-02-06 Mark Kettenis <kettenis@gnu.org>
8445
8446 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8447 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8448 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8449 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8450 config/i386/i386v42mp.mt: Removed.
8451
8452 2003-02-05 Mark Kettenis <kettenis@gnu.org>
8453
8454 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8455 GDB_OSABI_SOLARIS.
8456
8457 2003-02-05 Michael Chastain <mec@shout.net>
8458
8459 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8460 2.12.1 and earlier versions.
8461
8462 2003-02-05 Andrew Cagney <ac131313@redhat.com>
8463
8464 Remove orphaned hosts, targets and files.
8465 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8466 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8467 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8468 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8469 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8470 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8471 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8472 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8473 * config/sparc/tm-sp64sim.h: Delete.
8474 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8475 hosts.
8476 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8477 mips*-dec-mach3* targets.
8478
8479 2003-02-04 Michael Chastain <mec@shout.net>
8480
8481 * NEWS: Fix typo: sepcifying -> specifying.
8482
8483 2003-02-04 Michael Chastain <mec@shout.net>
8484
8485 * dwarfread.c: Add documentation on the state of dwarf-1,
8486 looking towards obsoletion.
8487
8488 2003-02-03 Michael Chastain <mec@shout.net>
8489
8490 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8491 gdb/testsuite/gdb.c++/pr-1023.exp.
8492
8493 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8494
8495 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8496 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8497
8498 * utils.c (init_page_info): Delete reference to MPW in comments.
8499 * main.c (captured_main): Delete #ifdef MPW.
8500
8501 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8502
8503 * NEWS: Note that the m32r-*-elf* is obsolete.
8504 * monitor.c (monitor_expect): Obsolete reference to m32r.
8505 * configure.tgt: Mark m32r-*-elf* as obsolete.
8506 * MAINTAINERS: Mark m32k as obsolete.
8507 * m32r-rom.c: Obsolete file.
8508 * config/m32r/m32r.mt: Obsolete file.
8509 * config/m32r/tm-m32r.h: Obsolete file.
8510 * m32r-stub.c: Obsolete file.
8511 * m32r-tdep.c: Obsolete file.
8512
8513 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8514
8515 * NEWS: Mention that the z8k-zilog-none is obsolete.
8516 * MAINTAINERS: Mark z8k as obsolete.
8517 * configure.tgt: Obsolete the z8k-*-coff* target.
8518 * config/z8k/z8k.mt: Obsolete file.
8519 * config/z8k/tm-z8k.h: Obsolete file.
8520 * z8k-tdep.c: Obsolete file.
8521
8522 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8523
8524 * NEWS: Mention that the mn10200-elf is obsolete.
8525 * configure.tgt: Obsolete mn10200-*-* target.
8526 * breakpoint.c (update_breakpoints_after_exec): Update comment to
8527 mention that the mn10200 is obsolete.
8528 * breakpoint.h: Ditto.
8529 * MAINTAINERS: Mark the mn10200-elf as obsolete.
8530 * config/mn10200/mn10200.mt: Obsolete file.
8531 * config/mn10200/tm-mn10200.h: Obsolete file.
8532 * mn10200-tdep.c: Obsolete file.
8533
8534 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8535
8536 * MAINTAINERS: Mark h8500 as obsolete.
8537 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8538 * findvar.c (value_from_register): Ditto.
8539 * h8500-tdep.c: Mark file as obsolete.
8540 * config/h8500/h8500.mt: Ditto.
8541 * config/h8500/tm-h8500.h: Ditto.
8542 * NEWS: Mention that h8500 is obsolete.
8543
8544 2003-02-04 David Carlton <carlton@math.stanford.edu>
8545
8546 * objfiles.c (allocate_objfile): Always set name. Add comment at
8547 start of function.
8548 * jv-lang.c (get_dynamics_objfile): Add comment.
8549
8550 2003-02-04 David Carlton <carlton@math.stanford.edu>
8551
8552 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8553 * printcmd.c (build_address_symbolic): Replace uses of
8554 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8555 SYMBOL_NAME, and asm_demangle.
8556 Update copyright.
8557
8558 2003-02-04 David Carlton <carlton@math.stanford.edu>
8559
8560 * linespec.c (decode_compound): Extract code into
8561 lookup_prefix_sym.
8562 (lookup_prefix_sym): New function.
8563
8564 2003-02-04 David Carlton <carlton@math.stanford.edu>
8565
8566 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8567 FLOAT_COERCION_BADNESS.
8568 * gdbtypes.c (rank_one_type): Replace all uses of
8569 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8570
8571 2003-02-04 Jim Blandy <jimb@redhat.com>
8572
8573 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
8574 section, let dwarf_macinfo_section point to it, not
8575 dwarf_loc_section.
8576
8577 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
8578
8579 Pointed out by Anton Blanchard <anton@samba.org>.
8580 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
8581 (ppc_linux_at_sigtramp_return_path): Use it.
8582
8583 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
8584
8585 * defs.h (streq): Add prototype.
8586 * utils.c (streq): New function.
8587
8588 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
8589 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
8590 * mdebugread.c (new_symbol): Likewise.
8591 * stabsread.c (define_symbol): Likewise.
8592 * coffread.c (process_coff_symbol): Likewise.
8593 * dwarfread.c (new_symbol): Likewise.
8594
8595 * minsyms.c (prim_record_minimal_symbol_and_info): Use
8596 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
8597 here.
8598 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
8599 SYMBOL_INIT_DEMANGLED_NAME.
8600 * objfiles.c: Include "hashtab.h".
8601 (allocate_objfile): Call htab_set_functions_ex for the
8602 demangled_names_hash.
8603 (free_objfile): Call htab_delete for the demangled_names_hash.
8604 * objfiles.h (struct htab): Add declaration.
8605 (struct objfile): Add demangled_names_hash.
8606 * symfile.c: Include "hashtab.h".
8607 (reread_symbols): Call htab_delete for the demangled_names_hash.
8608 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
8609 SYMBOL_NAME in the bcache.
8610 * symtab.c: Include "hashtab.h". Update comments.
8611 (create_demangled_names_hash, symbol_set_names): New functions.
8612 (symbol_find_demangled_name): New function, broken out from
8613 symbol_init_demangled_names.
8614 (symbol_init_demangled_names): Use it.
8615 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
8616 (SYMBOL_SET_NAMES): New macro.
8617 (symbol_set_names): Add prototype.
8618
8619 2003-02-03 Jim Blandy <jimb@redhat.com>
8620
8621 Use a single, consistent representation for an empty minimal
8622 symbol table in an objfile.
8623 * objfiles.c (terminate_minimal_symbol_table): New function.
8624 (allocate_objfile): Call it.
8625 * objfiles.h (terminate_minimal_symbol_table): New declaration.
8626 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8627 non-NULL.
8628 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
8629 objfile has minimal symbols, compare minimal_symbol_count to zero,
8630 instead of comparing msymbols with NULL.
8631 * objfiles.c (have_minimal_symbols): Same.
8632 * solib-sunos.c (solib_add_common_symbols): Call
8633 terminate_minimal_symbol_table.
8634 * symfile.c (reread_symbols): Same.
8635
8636 2003-02-03 Kevin Buettner <kevinb@redhat.com>
8637
8638 * s390-tdep.c (s390_address_class_type_flags)
8639 (s390_address_class_type_flags_to_name)
8640 (s390_address_class_name_to_type_flags): New functions.
8641 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
8642 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
8643
8644 2003-02-03 Michael Snyder <msnyder@redhat.com>
8645
8646 * arm-tdep.c: Fix spell-o in comment.
8647
8648 2003-02-03 Michal Ludvig <mludvig@suse.cz>
8649
8650 * dwarf2cfi.c (pointer_encoding): Added new parameter.
8651 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8652 error messages to contain BFD filename.
8653
8654 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
8655
8656 Fix PR gdb/742 gdb/743 gdb/877
8657 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
8658 (do_mixed_source_and_assembly): Use
8659 make_cleanup_ui_out_tuple_begin_end and
8660 make_cleanup_ui_out_tuple_begin_end.
8661 (do_mixed_source_and_assembly): Ditto.
8662 * thread.c (do_captured_list_thread_ids): Ditto.
8663 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
8664 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
8665 ui_out_tuple_end): Delete prototypes.
8666 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
8667 ui_out_list_end, ui_out_tuple_end): Delete.
8668
8669 From Kevin Buettner <kevinb@redhat.com>:
8670 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
8671 * ui-out.c (make_cleanup_ui_out_table_begin_end)
8672 (do_cleanup_table_end): New functions.
8673 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
8674 Use cleanups to invoke_ui_out_tuple_end().
8675 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
8676 * cli/cli-setshow.c (cmd_show_list): Use
8677 make_cleanup_ui_out_tuple_begin_end.
8678
8679 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8680
8681 * frame.c (frame_unwind_register): New function.
8682 (frame_unwind_unsigned_register): Use.
8683 (frame_unwind_signed_register): Use.
8684 (frame_read_register): New function.
8685 * frame.h (frame_unwind_register): Declare.
8686 (frame_read_register): Declare.
8687
8688 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
8689 and frame_unwind_register instead of read_memory, write_register
8690 and deprecated_write_register_bytes.
8691
8692 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8693
8694 * frame.h: Note that namelen can be negative.
8695 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
8696 NAME's length.
8697
8698 * NEWS: Mention that the d10v's `regs' command is deprecated.
8699 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
8700 (d10v_print_registers_info): New function.
8701 (show_regs): Call d10v_print_registers_info.
8702 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
8703
8704 2003-02-02 Mark Kettenis <kettenis@gnu.org>
8705
8706 * stack.c (print_frame_info): Restore call to annotate_frame_begin
8707 lost in the previous patch.
8708
8709 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8710
8711 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
8712 * stack.c (print_frame_info_base): Output complete FRAME tuple
8713 for synthesized frames.
8714
8715 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8716
8717 * mips-nat.c (zerobuf): Delete.
8718 (fetch_inferior_registers): Alloc local zerobuf.
8719 (fetch_core_registers): Alloc local zerobuf.
8720 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
8721 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
8722 * thread-db.c (thread_db_store_registers): Ditto.
8723 * sh-tdep.c (sh_do_register): Ditto.
8724 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
8725 * remote-sim.c (gdbsim_store_register): Ditto.
8726 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8727 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8728 * monitor.c (monitor_supply_register): Ditto.
8729 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
8730 * mips-nat.c (fetch_inferior_registers): Ditto.
8731 * m68klinux-nat.c (fetch_register): Ditto.
8732 * lynx-nat.c (fetch_inferior_registers): Ditto.
8733 (fetch_inferior_registers): Ditto.
8734 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
8735 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8736 (hpux_thread_store_registers): Ditto.
8737 * hppah-nat.c (fetch_register): Ditto.
8738 * hppab-nat.c (fetch_register): Ditto.
8739 * hppa-tdep.c (pa_register_look_aside): Ditto.
8740 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
8741 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
8742
8743 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8744
8745 * gdbarch.sh: Explictly specify all method levels. When a
8746 variable with an empty level, provide a non-multi-arch default.
8747 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
8748 * gdbarch.h: Re-generate.
8749 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
8750 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
8751
8752 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8753
8754 * defs.h (host_pointer_to_address): Delete declaration.
8755 (address_to_host_pointer): Delete declaration.
8756 * utils.c (host_pointer_to_address): Delete function.
8757 (address_to_host_pointer): Delete function.
8758 * procfs.c (procfs_address_to_host_pointer): New function.
8759 * procfs.c (proc_set_watchpoint): Use.
8760 (procfs_can_use_hw_breakpoint): Update comments.
8761 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
8762 (som_solib_add): Use.
8763 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
8764 * hppa-tdep.c (unwind_command): Use.
8765
8766 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8767
8768 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
8769 strlen d_name.
8770
8771 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
8772 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
8773 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
8774 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
8775 (define_symbol): Update.
8776 * symfile.c (generic_load): Remove references to nindy.
8777 * symtab.c: Remove references to nindy.
8778
8779 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8780
8781 * infcmd.c (print_float_info): Delete code conditional on
8782 FLOAT_INFO.
8783 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
8784 * config/m68k/nm-apollo68b.h: Ditto.
8785 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
8786 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
8787 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
8788
8789 2003-02-01 Mark Kettenis <kettenis@gnu.org>
8790
8791 * config/i386/tm-i386os9k.h: Removed.
8792
8793 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
8794 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
8795 they're identical to i[3456]86-*-sysv* now.
8796 * config/i386/i386v32.mh: Removed.
8797 * config/i386/xm-i386v32.h: Removed.
8798 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
8799
8800 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
8801
8802 * config/i386/i386dgux.mh: Removed.
8803 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
8804
8805 * configure.in: Fix typo.
8806 * configure: Regenerated.
8807
8808 2003-01-31 David Carlton <carlton@math.stanford.edu>
8809
8810 * dwarf2read.c (dwarf2_locate_sections): Set
8811 dwarf_ranges_section.
8812
8813 2003-01-31 Andrew Cagney <ac131313@redhat.com>
8814
8815 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
8816 * utils.c: Update comments documenting legitimate uses of PTR.
8817
8818 * utils.c: Re-indent.
8819
8820 * config/djgpp/fnchange.lst: Delete nindy files.
8821 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
8822 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
8823 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
8824 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
8825 * nindy-share/README, nindy-share/Onindy.c: Delete files.
8826 * nindy-tdep.c, nindy-share/Makefile: Delete files.
8827 * Makefile.in (init.c): Remove nindy references.
8828 (saber_gdb): Delete rule.
8829 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
8830 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
8831 and a68v-nat.c.
8832 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
8833 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
8834 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
8835 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
8836 nindy-share/stop.h.
8837 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
8838 * saber.suppress: Delete file.
8839
8840 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
8841
8842 * dbxread.c (stabs_data): New static variable.
8843 (fill_symbuf): Support an in-memory buffer for stabs data.
8844 (stabs_seek): New function.
8845 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
8846 (read_ofile_symtab): Use stabs_seek.
8847 (elfstab_build_psymtabs): Take an asection* instead of
8848 an offset and size. Relocate the stabs data if necessary.
8849 Save the section* for dbx_psymtab_to_symtab.
8850 * dwarf2read.c: Add section variables for each debug section.
8851 (dwarf2_locate_sections): Fill them in.
8852 (dwarf2_read_section): Take an asection* argument.
8853 Relocate the section contents if necessary.
8854 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
8855 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
8856 it to dwarf2_read_section.
8857 (dwarf2_build_frame_info): Update callers.
8858 * elfread.c (elf_symfile_read): Update call to
8859 elfstab_build_psymtabs.
8860 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
8861 (DBX_STAB_SECTION): New macro.
8862 * stabsread.h (elfstab_build_psymtabs): Update prototype.
8863 * symfile.c (symfile_dummy_outputs): New function.
8864 (symfile_relocate_debug_section): New function.
8865 * symfile.h (symfile_relocate_debug_section): Add prototype.
8866
8867 2003-01-31 Richard Henderson <rth@redhat.com>
8868
8869 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
8870 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
8871 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
8872 * alpha-tdep.c (alpha_register_name): Add "unique".
8873 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
8874 (ALPHA_UNIQUE_REGNUM): New.
8875 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
8876
8877 2003-01-31 Andrew Cagney <ac131313@redhat.com>
8878
8879 * README: Remove reference to Ericsson 1800 monitor.
8880 * Makefile.in (remote-es.o): Delete rule.
8881 (ALLDEPFILES): Delete remote-es.c.
8882 * remote-es.c: Delete file.
8883 * config/m68k/es1800.mt: Delete file.
8884 * config/djgpp/fnchange.lst: Update.
8885 * configure.tgt: Delete m68*-ericsson-* target.
8886
8887 2003-01-31 Adam Fedor <fedor@gnu.org>
8888
8889 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
8890 Remove duplicate/shadowing variable of same name.
8891
8892 2003-01-30 Jim Blandy <jimb@redhat.com>
8893
8894 * symfile.c (find_separate_debug_file): Assert that the objfile's
8895 directory name we compute ends with a slash, and then assume that
8896 that's so everywhere we use it.
8897
8898 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
8899
8900 * valops.c (value_assign): Flush frame cache after stores to memory
8901 also.
8902
8903 2003-01-30 Andrew Cagney <ac131313@redhat.com>
8904
8905 * Makefile.in (mon960-rom.o): Delete rule.
8906 * mon960-rom.c: Delete file.
8907
8908 2003-01-30 Andrew Cagney <ac131313@redhat.com>
8909
8910 * d10v-tdep.c: Include "frame-unwind.h".
8911 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
8912 list.
8913 (next_addr, uses_frame): Delete.
8914 (struct d10v_unwind_cache): Define.
8915 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
8916 Use info instead of next_addr and uses_frame globals.
8917 (d10v_frame_init_saved_regs): Delete function.
8918 (d10v_init_extra_frame_info): Delete function.
8919 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
8920 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
8921 init_frame_pc or frame_saved_pc.
8922 (d10v_pop_frame): Delete function.
8923 (do_d10v_pop_frame): Delete function.
8924 (d10v_frame_chain): Delete function.
8925 (d10v_frame_chain_valid): Delete function.
8926 (d10v_frame_pc_unwind): New function.
8927 (d10v_frame_id_unwind): New function.
8928 (saved_regs_unwinder): New function.
8929 (d10v_frame_register_unwind): New function.
8930 (d10v_frame_pop): New function.
8931 (d10v_frame_unwind): New variable.
8932 (d10v_frame_p): New function.
8933 (d10v_frame_saved_pc): Delete function.
8934 * Makefile.in (d10v-tdep.o): Update dependencies.
8935
8936 2003-01-30 J. Brobecker <brobecker@gnat.com>
8937
8938 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
8939 causing some regressions due to a change in the default value
8940 for this macro.
8941
8942 2003-01-29 Richard Henderson <rth@redhat.com>
8943 Elena Zannoni <ezannoni@redhat.com>
8944 Daniel Jacobowitz <drow@mvista.com>
8945
8946 Fix PR gdb/961.
8947 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
8948 variables.
8949 (RANGES_SECTION): New.
8950 (dwarf_ranges_buffer): New variable.
8951 (struct comp_unit_head): Add member "die".
8952 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
8953 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
8954 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
8955 (dwarf2_locate_sections): Likewise.
8956 (dwarf2_build_psymtabs): Read .debug_ranges.
8957 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
8958 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
8959 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
8960 Look for DW_AT_ranges and return the bounding box.
8961
8962 2003-01-29 Brian Ford <ford@vss.fsi.com>
8963
8964 * win32-nat.c (cygwin_pid): Removed as unused.
8965 (child_attach): Try fall back to Cygwin pid.
8966
8967 2003-01-29 Jim Blandy <jimb@redhat.com>
8968
8969 * objfiles.h (struct objfile): Doc fix.
8970
8971 2003-01-29 Andrew Cagney <ac131313@redhat.com>
8972
8973 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
8974 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
8975 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
8976 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
8977 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
8978 (FRAME_SAVED_PC): Change to a function with predicate.
8979 * gdbarch.h, gdbarch.c: Re-generate.
8980
8981 2003-01-28 Andrew Cagney <ac131313@redhat.com>
8982
8983 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
8984
8985 * complaints.c (complain): Delete function.
8986 * complaints.h (struct deprecated_complaint): Delete definition.
8987 (complain): Delete declaration.
8988
8989 2003-01-28 Kevin Buettner <kevinb@redhat.com>
8990
8991 * mips-tdep.c (mips_init_extra_frame_info): Return early for
8992 dummy frames.
8993
8994 2003-01-27 Andrew Cagney <ac131313@redhat.com>
8995
8996 * sentinel-frame.h, sentinel-frame.c: New files.
8997 * Makefile.in (frame.o): Update dependencies.
8998 (SFILES): Add sentinel-frame.c.
8999 (sentinel_frame_h): Define.
9000 (COMMON_OBS): Add sentinel-frame.o.
9001 (sentinel-frame.o): Specify dependencies.
9002 * frame.c: Include "sentinel-frame.h".
9003 (frame_register_unwind): Rewrite assuming that there is always a a
9004 ->next frame.
9005 (frame_register, generic_unwind_get_saved_register): Ditto.
9006 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9007 (create_sentinel_frame, unwind_to_current_frame): New functions.
9008 (get_current_frame): Rewrite using create_sentinel_frame and
9009 unwind_to_current_frame. When possible, always create a frame.
9010 (create_new_frame): Set next to the sentinel frame.
9011 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9012 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9013 ID cache when necessary.
9014 (frame_saved_regs_id_unwind): Use frame_relative_level.
9015 (deprecated_generic_get_saved_register): Use frame_relative_level,
9016 get_frame_saved_regs, get_frame_pc, get_frame_base and
9017 get_next_frame.
9018 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9019 frame_register.
9020
9021 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9022
9023 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9024
9025 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9026
9027 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9028 (maintenance_set_profile_cmd): Use error () instead of warning ().
9029
9030 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9031
9032 * configure.in: Check that -pg works if using --enable-profiling.
9033 Check for monstartup and _mcleanup regardless of --enable-profiling.
9034 * maint.c: Check for monstartup and _mcleanup before using them.
9035 * config.in: Regenerated.
9036 * configure: Regenerated.
9037
9038 2003-01-24 Nick Clifton <nickc@redhat.com>
9039
9040 * Add sh2e support:
9041
9042 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9043
9044 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9045 (sh2e_show_regs): New.
9046 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9047 * config/sh/tm-sh.h: Added sh2e to comments.
9048
9049 2003-01-23 Jim Blandy <jimb@redhat.com>
9050
9051 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9052 symbols found)" message here; we haven't checked for a separate
9053 debug info file yet, so we don't know yet.
9054 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9055 we've looked everywhere. Also, there's no need to print a special
9056 message when we're loading the separate debug info file: the one
9057 symbol_file_add prints is fine.
9058
9059 2003-01-23 Alexander Larsson <alexl@redhat.com>
9060 Jim Blandy <jimb@redhat.com>
9061
9062 Add support for executables whose debug info has been separated
9063 out into a separate file, leaving only a link behind.
9064 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9065 and separate_debug_objfile_backlink.
9066 (put_objfile_before): New declaration.
9067 * symfile.c: #include "filenames.h".
9068 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9069 debug info in a separate file, read that, too. Save the addrs
9070 argument, so we can use it again to read the separated debug info;
9071 syms_from_objfile modifies the table we pass it.
9072 (reread_symbols): After re-reading an objfile, call
9073 reread_separate_symbols to refresh its separate debug info
9074 objfile, if it has one.
9075 (reread_separate_symbols, find_separate_debug_file,
9076 get_debug_link_info, separate_debug_file_exists): New functions.
9077 (debug_file_directory): New global var.
9078 (_initialize_symfile): Initialize debug_file_directory, and
9079 provide the new `set debug-file-directory' command to let the user
9080 change it.
9081 * objfiles.c (free_objfile): If this objfile has its debug info in
9082 a separate objfile, free that one too. If this is itself a
9083 separate debug info objfile, clear our parent's backlink.
9084 (put_objfile_before): New function.
9085 * utils.c (gnu_debuglink_crc32): New function.
9086 * defs.h (gnu_debuglink_crc32): New declaration.
9087 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9088 * configure.in: Handle --with-separate-debug-dir config option.
9089 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9090 * acconfig.h (DEBUGDIR): New macro.
9091 * configure, aclocal.m4, config.in: Regenerated.
9092
9093 2003-01-22 Jim Blandy <jimb@redhat.com>
9094
9095 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9096 like the old symbol_file_add, but taking new arguments: you can
9097 now pass in either a `struct section_addr_info' list to say where
9098 each section is loaded, or a `struct section_offsets' table. Pass
9099 these new arguments through to syms_from_objfile as appropriate.
9100 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9101 with the appropriate quiescent values for the new arguments.
9102
9103 * symfile.c: #include "gdb_assert.h".
9104 (syms_from_objfile): Add the ability to pass in a section offset
9105 table directly, as an alternative to the section_addr_info table.
9106 Document arguments better.
9107 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9108 * symfile.h (syms_from_objfile): Update declaration.
9109 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9110 syms_from_objfile.
9111 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9112
9113 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9114
9115 Original patch by Tom Tromey <tromey@cygnus.com> and
9116 Jason Molenda <jmolenda@apple.com>.
9117 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9118 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9119 * NEWS: Mention profiling.
9120 * configure.in (--enable-gdbtk): Fix typo.
9121 (--enable-profiling): New. Set PROFILE_CFLAGS.
9122 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9123 Fill in function.
9124 (profiling_state): New variable.
9125 (mcleanup_wrapper): New function.
9126 (_initialize_maint): Remove NOTYET, fix call to
9127 add_setshow_boolean_cmd for "maint set profile".
9128 * configure: Regenerated.
9129
9130 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9131
9132 * Makefile.in (install-gdbtk): Install PNG images too.
9133
9134 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9135
9136 * exec.c (text_start): Delete global variable.
9137 (exec_file_attach): Make text_start local to the function.
9138 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9139 * valops.c (hand_function_call): Delete code that handles
9140 BEFORE_TEXT_END and AFTER_TEXT_END.
9141 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9142 of CALL_DUMMY_LOCATION.
9143 * gdbarch.c: Regenerate.
9144 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9145 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9146 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9147 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9148 (text_end): Delete extern declaration.
9149
9150 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9151
9152 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9153 * blockframe.c (backtrace_below_main): Move to "frame.c".
9154 (frame_chain_valid): Delete check for backtrace_below_main.
9155 (_initialize_blockframe): Delete initialization, move ``set
9156 backtrace-below-main'' command to "frame.c".
9157 (do_flush_frames_sfunc): Delete function.
9158 * frame.c: Include "command.h" and "gdbcmd.h".
9159 (frame_type_from_pc): New function.
9160 (create_new_frame): Use frame_type_from_pc.
9161 (legacy_get_prev_frame): New function.
9162 (get_prev_frame): Rewrite. When an old style frame, call
9163 legacy_get_prev_frame. Otherwize, unwind the PC first.
9164 (_initialize_frame): Add ``set backtrace-below-main'' command.
9165 * Makefile.in (frame.o): Update dependencies.
9166
9167 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9168
9169 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9170 DEPRECATED_REGISTERS_INFO.
9171
9172 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9173
9174 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9175 Maintainers'. Update `Various Maintainers'.
9176
9177 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9178
9179 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9180 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9181 Suppress actual parameters when `-'.
9182 * gdbarch.h, gdbarch.c: Regenerate.
9183
9184 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9185
9186 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9187 code handling dummy frames.
9188
9189 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9190
9191 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9192 (struct frame_unwind): Add field pop.
9193 * frame.h (frame_pop): Declare.
9194 * frame.c (frame_saved_regs_pop): New function.
9195 (trad_frame_unwinder): Add frame_saved_regs_pop.
9196 (frame_pop): New function.
9197 * dummy-frame.c (dummy_frame_pop): New function.
9198 (discard_innermost_dummy): New function.
9199 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9200 (dummy_frame_unwind): Add dummy_frame_pop.
9201 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9202 * valops.c (hand_function_call): Ditto.
9203 * stack.c (return_command): Ditto.
9204
9205 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9206
9207 * cris-tdep.c: Fix function declaration indentation.
9208 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9209 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9210 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9211 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9212 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9213 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9214
9215 2003-01-18 Michael Chastain <mec@shout.net>
9216
9217 * README (Unpacking and Installation -- quick overview):
9218 Warn against ".../gdb-5.3/gdb/configure".
9219
9220 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9221
9222 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9223 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9224 (struct frame_unwind): Declare opaque.
9225 (dummy_frame_p): Declare function.
9226 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9227 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9228 * dummy-frame.c: Include "frame-unwind.h".
9229 (dummy_frame_p): New function.
9230 (dummy_frame_unwind): New variable.
9231 * frame.c: Include "frame-unwind.h".
9232 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9233 to use the new unwind field.
9234 (set_unwind_by_pc): Delete function.
9235 (create_new_frame, get_prev_frame): Set unwind field using
9236 frame_unwind_find_by_pc.
9237 (trad_frame_unwind, trad_frame_unwinder): New variables.
9238 * frame.h (trad_frame_unwind): Declare variable.
9239 (frame_id_unwind_ftype): Delete declaration.
9240 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9241 (struct frame_unwind): Declare opaque.
9242 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9243 register_unwind with a single unwind pointer.
9244 * frame-unwind.h, frame-unwind.c: New files.
9245 * Makefile.in (SFILES): Add frame-unwind.c.
9246 (frame_unwind_h): Define.
9247 (COMMON_OBS): Add frame-unwind.o.
9248 (frame-unwind.o): Specify dependencies.
9249 (frame.o, dummy-frame.o): Update dependencies.
9250
9251 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9252
9253 * ada-valprint.c: Eliminate PTR.
9254 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9255 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9256 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9257 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9258 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9259 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9260 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9261
9262 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9263
9264 * main.c (captured_main): Don't use PTR.
9265 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9266 * gdbtypes.c (lookup_primitive_typename): Ditto.
9267 (lookup_struct_elt_type): Ditto.
9268 * f-valprint.c (info_common_command): Ditto.
9269 (list_all_visible_commons): Ditto.
9270 * jv-typeprint.c (java_type_print_base): Ditto.
9271
9272 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9273 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9274 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9275 i386-interix-nat.c and i386-interix-tdep.c. Rename
9276 m68klinux-nat.c and m68klinux-tdep.c. Rename
9277 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9278 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9279 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9280 * main.c (captured_main): Use xfree, not free.
9281
9282 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9283
9284 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9285 ID back using a parameter.
9286 * frame.c (frame_id_unwind): Update call.
9287 (frame_saved_regs_id_unwind): Update.
9288 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9289 * dummy-frame.h (struct frame_id): Add opaque declaration.
9290 (dummy_frame_id_unwind): Update declaration.
9291
9292 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9293
9294 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9295
9296 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9297
9298 * MAINTAINERS (Stephen P. Smith): Updated email address.
9299
9300 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9301
9302 Fix PR gdb/898
9303 * breakpoint.c (until_break_command): Add new argument. Use it to
9304 decide whether to stop only at the current frame or not.
9305 * breakpoint.h (until_break_command): Update prototype.
9306 * infcmd.c (until_command): Add new argument to until_break_command
9307 call.
9308 (advance_command): New function.
9309 (_initialize_infcmd): Update help string for 'until' command.
9310 Add new 'advance' command.
9311
9312 2003-01-14 David Carlton <carlton@math.stanford.edu>
9313
9314 * linespec.c (decode_line_1): Normalize comments.
9315 (set_flags): Ditto.
9316 (locate_first_half): Ditto.
9317 (decode_compound): Ditto.
9318 (symtab_from_filename): Ditto.
9319 (decode_all_digits): Ditto.
9320 (decode_dollar): Ditto.
9321 (find_methods): Ditto.
9322 (find_toplevel_char): Ditto.
9323
9324 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9325
9326 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9327 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9328 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9329 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9330 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9331 * language.c, language.h, m32r-tdep.c: Update copyright.
9332 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9333 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9334 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9335 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9336 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9337 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9338
9339 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9340
9341 * stabsread.h (process_later, resolve_cfront_continuation):
9342 Obsolete.
9343 Update copyright years.
9344 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9345 Update copyright year.
9346 * dbxread.c(struct cont_elem): Obsolete.
9347 (process_later, process_now): Obsolete functions.
9348 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9349 Update copyright year.
9350 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9351 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9352 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9353 (parse_partial_symbols): Obsolete cfront support.
9354 * stabsread.c
9355 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9356 macros.
9357 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9358 read_cfront_baseclasses, read_cfront_member_functions,
9359 resolve_cfront_continuation,read_cfront_static_fields,
9360 copy_cfront_struct_fields): Obsolete functions.
9361 (define_symbol, read_one_struct_field): Obsolete cfront support.
9362 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9363 Update Copyright year.
9364
9365 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9366
9367 * stack.c (print_frame_info, print_stack_frame_base_stub,
9368 print_stack_frame_base, show_and_print_stack_frame_stub,
9369 show_and_print_stack_frame, print_only_stack_frame_stub,
9370 print_only_stack_frame): Delete functions.
9371 (print_stack_frame_stub): Call print_frame_info instead of
9372 print_frame_info_base.
9373 (print_frame_info_base): Rename to print_frame_info.
9374 (backtrace_command_1): Call print_frame_info, instead of
9375 print_frame_info_base.
9376 (current_frame_command): Call print_stack_frame, instead of
9377 print_only_stack_frame.
9378 (frame_command): Call print_stack_frame, instead of
9379 show_and_print_stack_frame.
9380 (up_command): Ditto.
9381 (down_command): Ditto.
9382 * frame.h (print_only_stack_frame): Delete prototype.
9383 * infrun.c (normal_stop): Call print_stack_frame, instead of
9384 show_and_print_stack_frame.
9385 * thread.c (info_threads_command): Call print_stack_frame, instead
9386 of print_only_stack_frame.
9387
9388 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9389
9390 * README (Graphical interface to GDB): Update URL. Point at
9391 gdb/links/.
9392
9393 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9394 version match.
9395
9396 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9397
9398 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9399 lines.
9400
9401 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9402
9403 * thread-db.c (attach_thread): Prototype.
9404 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9405 thread information (ti), and valid flags (th_valid, ti_valid).
9406 (attach_thread): Move target_pid_to_str call to after the thread
9407 is added to GDB's list. Initialize the cache.
9408 (thread_get_info_callback, thread_db_map_id2thr)
9409 (thread_db_get_info): New functions.
9410 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9411 (thread_db_store_registers, thread_db_thread_alive)
9412 (thread_db_get_thread_local_address): Use them.
9413 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9414 of calling error() for threads in unknown state.
9415
9416 (clear_lwpid_callback): New function.
9417 (thread_db_resume): Use it to clear the cache.
9418
9419 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9420
9421 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9422 (resume_callback): Remove dead code.
9423
9424 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9425
9426 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9427 predicate.
9428 * gdbarch.h, gdbarch.c: Regenerate.
9429 * stack.c (frame_info): Only initialize the saved registers when
9430 FRAME_INIT_SAVED_REGS_P.
9431 * frame.c (frame_saved_regs_register_unwind): Assert
9432 FRAME_INIT_SAVED_REGS_P.
9433 (deprecated_generic_get_saved_register): Ditto.
9434
9435 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9436
9437 * source.c (openp): Squelch warning about "filename".
9438
9439 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9440
9441 * source.c (openp): If the file does not exist don't necessarily
9442 search the path.
9443
9444 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9445
9446 Fix PR gdb/872.
9447 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9448 (integer_types_same_name_p): New function.
9449 (rank_one_type): Use it.
9450 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9451
9452 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9453
9454 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9455 variables.
9456 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9457 * configure.in: Add --with-sysroot.
9458 * configure: Regenerated.
9459 * main.c (gdb_sysroot): New variable.
9460 (captured_main): Initialize gdb_sysroot.
9461 * defs.h (gdb_sysroot): New extern declaration.
9462 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9463
9464 2003-01-12 Michael Chastain <mec@shout.net>
9465
9466 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9467
9468 2003-01-12 Michael Chastain <mec@shout.net>
9469
9470 * top.c (print_gdb_version): Bump copyright year to 2003.
9471
9472 2003-01-12 David Carlton <carlton@bactrian.org>
9473
9474 * linespec.c (symtab_from_filename): Rename variable 's' to
9475 'file_symtab'.
9476
9477 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9478
9479 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9480 dummy frame.
9481 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9482
9483 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9484
9485 * d10v-tdep.c: Include "gdb_assert.h".
9486 (d10v_store_return_value): Rewrite to match current interface.
9487 (d10v_extract_struct_value_address): Ditto.
9488 (d10v_extract_return_value): Ditto.
9489 (d10v_gdbarch_init): Set store_restore_value,
9490 extract_struct_value_address and extract_return_value.
9491
9492 2003-01-12 J. Brobecker <brobecker@gnat.com>
9493
9494 * hpread.c (set_namestring): New procedure replacing the
9495 SET_NAMESTRING macro.
9496 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9497 by calls to set_namestring.
9498
9499 2003-01-11 J. Brobecker <brobecker@gnat.com>
9500
9501 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9502 a compilation warning.
9503 (hpread_process_one_debug_symbol): Likewise.
9504
9505 2003-01-10 David Carlton <carlton@math.stanford.edu>
9506
9507 * linespec.c (decode_line_1): Rename variable 's' to
9508 'file_symtab'.
9509 (decode_all_digits): Rename argument 's' to 'file_symtab'.
9510 (decode_dollar): Ditto.
9511 (decode_variable): Ditto.
9512 (symbol_found): Ditto.
9513
9514 2003-01-09 Michael Chastain <mec@shout.net>
9515
9516 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9517
9518 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
9519
9520 * win32-nat.c (set_process_privilege): New function.
9521 (child_attach): Call set_process_privilege() to enable the
9522 SE_DEBUG_NAME user privilege if available in process token.
9523
9524 2003-01-10 J. Brobecker <brobecker@gnat.com>
9525
9526 * hpread.c (hpread_process_one_debug_symbol): Fix a small
9527 compilation error in the previous revision.
9528
9529 2003-01-09 David Carlton <carlton@math.stanford.edu>
9530
9531 * linespec.c: Update copyright.
9532
9533 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
9534
9535 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9536 than inferior_ptid.
9537 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9538
9539 2003-01-09 Andrew Cagney <ac131313@redhat.com>
9540
9541 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9542 Update comments.
9543 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9544 (frame_saved_regs_zalloc): Update.
9545 (frame_saved_regs_register_unwind): Update.
9546 (create_new_frame): Update.
9547 (get_prev_frame): Update.
9548 (frame_extra_info_zalloc): Update.
9549 (deprecated_get_frame_saved_regs): Update.
9550 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9551 * cris-tdep.c: Update comment.
9552
9553 * somsolib.h: Fix function indentation.
9554 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9555 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9556 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9557 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9558 * somsolib.c, inftarg.c: Remove assignment in if conditional.
9559
9560 * infrun.c (follow_fork): Use ISO C definition.
9561 * expprint.c (print_subexp): Use xfree instead of free.
9562 * charset.c: Include "gdb_string.h" instead of <string.h>.
9563 (register_iconv_charsets): Use ISO C definition.
9564 (host_charset, target_charset): Ditto.
9565 * Makefile.in (charset.o): Update dependencies.
9566 (mi-cmd-env.o): Update dependencies.
9567
9568 2003-01-08 Andrew Cagney <cagney@redhat.com>
9569
9570 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9571 get_frame_base.
9572
9573 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9574
9575 * gdb_mbuild.sh: Add --keep option. When specified, keep the
9576 build directories. Save edited gdb output in Mbuild.log. If a
9577 build fails, remove any final GDB executable.
9578
9579 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9580
9581 * gdb_mbuild.sh: Edit the output of `maint print architecture'
9582 replacing hex constants with function names and stripping leading
9583 file name directory prefixes.
9584
9585 2003-01-08 Andrew Cagney <cagney@redhat.com>
9586
9587 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
9588 get_frame_base.
9589
9590 2003-01-08 David Carlton <carlton@math.stanford.edu>
9591
9592 * linespec.c (decode_line_1): Move code into decode_variable.
9593 (decode_variable): New function.
9594
9595 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9596
9597 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
9598
9599 2003-01-08 Andrew Cagney <cagney@redhat.com>
9600
9601 * cris-tdep.c (cris_frame_init_saved_regs): Use
9602 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
9603 saved_regs buffer.
9604 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9605 (sh64_nofp_frame_init_saved_regs): Ditto.
9606 (sh_fp_frame_init_saved_regs): Ditto.
9607 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
9608 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9609 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9610 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9611
9612 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
9613
9614 * minsyms.c (lookup_minimal_symbol): Update comment.
9615 (lookup_minimal_symbol_text): Update comment. Use the hash table.
9616 (lookup_minimal_symbol_solib_trampoline): Likewise.
9617
9618 2003-01-08 Andrew Cagney <cagney@redhat.com>
9619
9620 * d10v-tdep.c (d10v_init_extra_frame_info): Use
9621 frame_relative_level.
9622
9623 * alpha-tdep.c: Use get_frame_extra_info.
9624 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9625 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
9626 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9627 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
9628
9629 * alpha-tdep.c: Use get_next_frame.
9630 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9631 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9632 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
9633 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
9634 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
9635 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
9636 * xstormy16-tdep.c: Ditto.
9637
9638 2003-01-07 Andrew Cagney <cagney@redhat.com>
9639
9640 * alpha-tdep.c: Use get_frame_base.
9641 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9642 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9643 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9644 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9645 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
9646 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9647 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
9648 * config/sparc/tm-sparc.h: Ditto.
9649
9650 2003-01-07 Andrew Cagney <cagney@redhat.com>
9651
9652 * frame.c (deprecated_get_frame_context): New function.
9653 (deprecated_set_frame_context): New function.
9654 * frame.h (deprecated_get_frame_context): Declare.
9655 (deprecated_set_frame_context): Declare.
9656 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
9657 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
9658
9659 2003-01-07 Andrew Cagney <cagney@redhat.com>
9660
9661 * frame.c (deprecated_set_frame_next_hack): New function.
9662 (deprecated_set_frame_prev_hack): New function.
9663 * frame.h (deprecated_set_frame_next_hack): Declare.
9664 (deprecated_set_frame_prev_hack): Declare.
9665 * mcore-tdep.c (analyze_dummy_frame): Use
9666 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
9667 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9668
9669 2003-01-07 David Carlton <carlton@math.stanford.edu>
9670
9671 * linespec.c (decode_line_1): Move code into decode_dollar.
9672 (decode_dollar): New function.
9673
9674 2003-01-07 Andrew Cagney <cagney@redhat.com>
9675
9676 * arm-tdep.c (arm_init_extra_frame_info): Use
9677 deprecated_update_frame_base_hack.
9678 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
9679 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9680 (fix_frame_pointer): Ditto.
9681 (mn10300_analyze_prologue): Ditto.
9682
9683 2003-01-07 Andrew Cagney <cagney@redhat.com>
9684
9685 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
9686 extra_info using frame_extra_info_zalloc.
9687 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9688 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
9689 (sh64_init_extra_frame_info): Ditto.
9690 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
9691 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
9692 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9693 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
9694 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
9695 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
9696 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
9697 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
9698 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
9699 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
9700 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9701 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
9702
9703 * mn10300-tdep.c (analyze_dummy_frame): Use
9704 deprecated_set_frame_extra_info_hack.
9705 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9706
9707 2003-01-07 J. Brobecker <brobecker@gnat.com>
9708
9709 * mdebugread.c (parse_symbol): Skip stProc entries which storage
9710 class is not scText. These do not define "real" procedures.
9711 (parse_partial_symbols): Likewise.
9712
9713 2003-01-06 Michael Snyder <msnyder@redhat.com>
9714
9715 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
9716
9717 2003-01-06 Andrew Cagney <ac131313@redhat.com>
9718
9719 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
9720 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
9721 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
9722 deprecated_frame_xmalloc_with_cleanup.
9723 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
9724 deprecated_frame_xmalloc.
9725 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
9726 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
9727
9728 2003-01-06 Andrew Cagney <cagney@redhat.com>
9729
9730 * x86-64-linux-tdep.c: Include "osabi.h".
9731 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
9732
9733 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
9734
9735 2003-01-06 Andrew Cagney <cagney@redhat.com>
9736
9737 * MAINTAINERS (Target Instruction Set Architectures): Update
9738 arm-elf. Can be built with -Werror, has been multiarched.
9739
9740 * value.h (unpack_long): Make buffer parameter constant.
9741 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
9742 * scm-lang.h (scm_parse): Ditto.
9743 * defs.h (extract_typed_address, extract_address): Ditto.
9744 (extract_long_unsigned_integer): Ditto.
9745 * inferior.h (unsigned_pointer_to_address): Ditto.
9746 (signed_pointer_to_address): Ditto.
9747 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
9748 * gdbarch.h, gdbarch.c: Regenerate.
9749 * findvar.c (extract_long_unsigned_integer): Update.
9750 (extract_address): Update.
9751 (extract_typed_address): Update.
9752 (unsigned_pointer_to_address): Update.
9753 * values.c (unpack_long): Update.
9754 (unpack_double): Update.
9755 (unpack_pointer): Update.
9756 (unpack_field_as_long): Update.
9757 * d10v-tdep.c (d10v_pointer_to_address): Update.
9758 * avr-tdep.c (avr_pointer_to_address): Update.
9759 * scm-lang.c (scm_unpack): Update.
9760 * findvar.c (signed_pointer_to_address): Update.
9761
9762 2003-01-06 Michal Ludvig <mludvig@suse.cz>
9763
9764 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
9765 since it is in i386-tdep.c.
9766
9767 2003-01-06 J. Brobecker <brobecker@gnat.com>
9768
9769 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
9770 failure introduced in the previous change.
9771
9772 2003-01-05 Michael Chastain <mec@shout.net>
9773
9774 * README: Remove references to deleted remote-*.c files:
9775 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
9776 remote-nrom.c, remote-os9k.c, remote-udi.c.
9777
9778 2003-01-05 Mark Kettenis <kettenis@gnu.org>
9779
9780 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
9781 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
9782 i386_get_longjmp_target.
9783
9784 2003-01-05 Andrew Cagney <ac131313@redhat.com>
9785
9786 * arm-tdep.c (prologue_cache): Change to a pointer.
9787 (_initialize_arm_tdep): Allocate prologue_cache.
9788 (check_prologue_cache): Update.
9789 (save_prologue_cache): Update.
9790 (arm_gdbarch_init): Update.
9791
9792 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9793
9794 * stabsread.c (update_method_name_from_physname): Call complaint()
9795 instead of error.
9796
9797 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9798
9799 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
9800 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
9801 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
9802
9803 * blockframe.c: Include "gdbcmd.h" and "command.h".
9804 (backtrace_below_main): New variable.
9805 (file_frame_chain_valid, func_frame_chain_valid)
9806 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
9807 (generic_func_frame_chain_valid): Remove functions.
9808 (frame_chain_valid, do_flush_frames_sfunc): New functions.
9809 (_initialize_blockframe): New function.
9810 * Makefile.in (blockframe.o): Update dependencies.
9811 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
9812 comment. Call frame_chain_valid ().
9813 * frame.h: Remove old prototypes. Add prototype for
9814 frame_chain_valid and update comments to match.
9815 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
9816 Remove old comment.
9817 * gdbarch.h: Regenerated.
9818 * gdbarch.c: Regenerated.
9819
9820 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9821 set_gdbarch_frame_chain_valid.
9822 * avr-tdep.c (avr_gdbarch_init): Likewise.
9823 * cris-tdep.c (cris_gdbarch_init): Likewise.
9824 * frv-tdep.c (frv_gdbarch_init): Likewise.
9825 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
9826 * i386-tdep.c (i386_svr4_init_abi): Likewise.
9827 (i386_nw_init_abi): Likewise.
9828 (i386_gdbarch_init): Likewise.
9829 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
9830 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9831 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9832 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
9833 * mips-tdep.c (mips_gdbarch_init): Likewise.
9834 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9835 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
9836 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9837 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9838 * s390-tdep.c (s390_gdbarch_init): Likewise.
9839 * sh-tdep.c (sh_gdbarch_init): Likewise.
9840 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9841 * v850-tdep.c (v850_gdbarch_init): Likewise.
9842 * vax-tdep.c (vax_gdbarch_init): Likewise.
9843 * x86-64-tdep.c (x86_64_init_abi): Likewise.
9844
9845 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
9846 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
9847 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
9848 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
9849 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
9850 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
9851 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
9852 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
9853
9854 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9855
9856 * Makefile.in (acconfig_h): Remove incorrect macro.
9857 (config_h): Define.
9858 (osabi.o): Update dependencies.
9859 * configure.tgt: Set gdb_osabi based on target triplet.
9860 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
9861 * configure: Regenerated.
9862 * config.in: Regenerated.
9863 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
9864 (GDB_OSABI_DEFAULT): Define if not already defined.
9865 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
9866 (set_osabi_string): New variables.
9867 (gdbarch_register_osabi): Add new OS ABI to
9868 gdb_osabi_available_names.
9869 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
9870 (set_osabi, show_osabi): New functions.
9871 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
9872
9873 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9874
9875 * arch-utils.c (gdbarch_info_init): Set osabi to
9876 GDB_OSABI_UNINITIALIZED.
9877 * gdbarch.sh: Add osabi to struct gdbarch and to struct
9878 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
9879 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
9880 * gdbarch.c: Regenerated.
9881 * gdbarch.h: Regenerated.
9882 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
9883 there's no BFD.
9884 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
9885 * osabi.h (enum gdb_osabi): Move to defs.h.
9886 (gdbarch_init_osabi): Update prototype.
9887 * defs.h (enum gdb_osabi): Moved here.
9888 * Makefile.in: Update dependencies.
9889
9890 * alpha-tdep.h: Don't include "osabi.h".
9891 (struct gdbarch_tdep): Remove osabi member.
9892 * alpha-tdep.c: Include "osabi.h".
9893 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9894 iterate over arches. Update call to gdbarch_init_osabi.
9895 (alpha_dump_tdep): Don't dump osabi.
9896 * alpha-linux-tdep.c: Include "osabi.h".
9897 * alpha-osf1-tdep.c: Include "osabi.h".
9898 * alphafbsd-tdep.c: Include "osabi.h".
9899 * alphanbsd-tdep.c: Include "osabi.h".
9900
9901 * arm-tdep.h: Don't include "osabi.h".
9902 (struct gdbarch_tdep): Remove osabi member.
9903 * arm-tdep.c: Include "osabi.h".
9904 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9905 iterate over arches. Update call to gdbarch_init_osabi.
9906 (arm_dump_tdep): Don't dump osabi.
9907 * arm-linux-tdep.c: Include "osabi.h".
9908 * armnbsd-tdep.c: Include "osabi.h".
9909
9910 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
9911 Update call to gdbarch_init_osabi.
9912
9913 * i386-tdep.h: Don't include "osabi.h".
9914 (struct gdbarch_tdep): Remove osabi member.
9915 * i386-tdep.c: Include "osabi.h".
9916 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9917 iterate over arches. Update call to gdbarch_init_osabi.
9918 (i386_dump_tdep): Don't dump osabi.
9919 * i386-linux-tdep.c: Include "osabi.h".
9920 * i386-sol2-tdep.c: Include "osabi.h".
9921 * i386bsd-tdep.c: Include "osabi.h".
9922 * i386gnu-tdep.c: Include "osabi.h".
9923 * i386ly-tdep.c: Include "osabi.h".
9924 * i386nbsd-tdep.c: Include "osabi.h".
9925 * i386obsd-tdep.c: Include "osabi.h".
9926
9927 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
9928 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9929 check osabi when iterating over arches. Update call to
9930 gdbarch_init_osabi.
9931 (mips_dump_tdep): Don't dump osabi.
9932
9933 * ns32k-tdep.h: Don't include "osabi.h".
9934 (struct gdbarch_tdep): Remove.
9935 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
9936 gdbarch_lookup_osabi. Don't iterate over arches. Don't
9937 allocate tdep. Update call to gdbarch_init_osabi.
9938 (ns32k_dump_tdep): Remove.
9939 (_initialize_ns32k_tdep): Update call to gdbarch_register.
9940 * ns32knbsd-tdep.c: Include "osabi.h".
9941
9942 * ppc-tdep.h: Don't include "osabi.h".
9943 (struct gdbarch_tdep): Remove osabi member.
9944 * rs6000-tdep.c: Include "osabi.h".
9945 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
9946 osabi when iterating over arches. Update call to
9947 gdbarch_init_osabi.
9948 (rs6000_dump_tdep): Don't dump osabi.
9949 * ppc-linux-tdep.c: Include "osabi.h".
9950 * ppcnbsd-tdep.c: Include "osabi.h".
9951
9952 * sh-tdep.h: Don't include "osabi.h".
9953 (struct gdbarch_tdep): Remove osabi member.
9954 * sh-tdep.c: Include "osabi.h".
9955 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9956 iterate over arches. Update call to gdbarch_init_osabi.
9957 (sh_dump_tdep): Don't dump osabi.
9958 * shnbsd-tdep.c: Include "osabi.h".
9959
9960 * sparc-tdep.c: Include "osabi.h".
9961 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9962 iterate over arches. Update call to gdbarch_init_osabi.
9963 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
9964 tdep structure.
9965
9966 * vax-tdep.h: Don't include "osabi.h".
9967 (struct gdbarch_tdep): Remove.
9968 * vax-tdep.c: Include "osabi.h".
9969 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9970 iterate over arches. Don't allocate tdep. Update call
9971 to gdbarch_init_osabi.
9972 (vax_dump_tdep): Remove.
9973 (_initialize_vax_tdep): Update call to gdbarch_register.
9974
9975 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9976
9977 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
9978 entirely.
9979 (breakpoint_re_set_one): Don't fetch the value for a disabled
9980 watchpoint.
9981
9982 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9983
9984 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
9985 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
9986 (COERCE_FLOAT_TO_DOUBLE): Remove.
9987 * gdbarch.c: Regenerate.
9988 * gdbarch.h: Regenerate.
9989 * Makefile.in: Remove value_h from gdbarch_h.
9990 * valops.c (coerce_float_to_double): New variable.
9991 (default_coerce_float_to_double): Remove.
9992 (standard_coerce_float_to_double): Remove.
9993 (value_arg_coerce): Use coerce_float_to_double.
9994 (_initialize_valops): Add "set coerce-float-to-double".
9995 * value.h (default_coerce_float_to_double): Remove prototype.
9996 (standard_coerce_float_to_double): Remove prototype.
9997
9998 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
9999 prototyped.
10000 * mdebugread.c (parse_symbol): Likewise.
10001 * stabsread.c (define_symbol): Mark all functions as prototyped.
10002
10003 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10004 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10005 set_gdbarch_coerce_float_to_double.
10006 * arm-tdep.c (arm_gdbarch_init): Likewise.
10007 * frv-tdep.c (frv_gdbarch_init): Likewise.
10008 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10009 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10010 * mips-tdep.c (mips_gdbarch_init): Likewise.
10011 (mips_coerce_float_to_double): Remove.
10012 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10013 (rs6000_coerce_float_to_double): Remove.
10014 * s390-tdep.c (s390_gdbarch_init): Likewise.
10015 * sh-tdep.c (sh_gdbarch_init): Likewise.
10016 (sh_coerce_float_to_double): Remove.
10017 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10018 (sparc_coerce_float_to_double): Remove.
10019 * v850-tdep.c (v850_gdbarch_init): Likewise.
10020 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10021 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10022 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10023 (hppa_coerce_float_to_double): Remove prototype.
10024 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10025
10026 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10027
10028 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10029
10030 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10031
10032 Suggested by Stewart Brown <sb24@avaya.com>:
10033 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10034 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10035 (c_type_print_varspec_suffix): Likewise.
10036
10037 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10038
10039 * configure.in: Don't set and AC_SUBST SUBDIRS.
10040 * configure: Regenerated.
10041
10042 * configure.in: Remove code dealing with shared libraries.
10043 * Makefile.in: Remove HLDFLAGS and HLDENV.
10044 * configure: Regenerated.
10045
10046 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10047
10048 * frame.c (deprecated_frame_xmalloc): New function.
10049 (deprecated_set_frame_saved_regs_hack): New function.
10050 (deprecated_set_frame_extra_info_hack): New function.
10051 * frame.h (deprecated_frame_xmalloc): Declare.
10052 (deprecated_set_frame_saved_regs_hack): Declare.
10053 (deprecated_set_frame_extra_info_hack): Declare.
10054
10055 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10056
10057 * configure.in: Move code that provides the --enable-gdbtk option
10058 right after the code that handles the --enable-tui option, and
10059 polish it somewhat.
10060 * configure: Regenerated.
10061
10062 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10063 AC_CHECK_FUNCS and remove the old check for pread64.
10064 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10065 * acconfig.h (_GNU_SOURCE): Add.
10066 (HAVE_PREAD64): Remove.
10067 * configure, aclocal.m4, config.in: Regenerated.
10068
10069 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10070
10071 * alpha-tdep.c: Use get_frame_saved_regs.
10072 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10073 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10074 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10075 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10076 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10077
10078 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10079
10080 * configure.in: Remove all use of the SUBDIRS variable; add
10081 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10082 code providing the --enable-multi-ice option, and move it right in
10083 front of the code that checks whether gdbserver is supported.
10084 Polish that too.
10085 * configure: Regenerated.
10086 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10087 @SUBDIRS@.
10088
10089 2003-01-03 Andrew Cagney <cagney@redhat.com>
10090
10091 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10092 * avr-tdep.c, cris-tdep.c: Ditto.
10093 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10094 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10095
10096 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10097
10098 * configure.in: Remove --enable-netrom option.
10099 * configure: Regenerated.
10100
10101 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10102
10103 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10104 declaration for `struct re_pattern_buffer' instead.
10105 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10106
10107 2003-01-03 J. Brobecker <brobecker@gnat.com>
10108
10109 * mdebugread.c (parse_symbol): Count until the stEnd matching
10110 the structure name.
10111
10112 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10113
10114 * configure.in: Remove --with-cpu option.
10115 subscripts. Remove evil changequotes here.
10116 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10117 * config.in, configure: Regenerated.
10118
10119 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10120 * configure.in: Cleanup section that sources GDB and BFD configure
10121 subscripts. Remove evil changequotes here.
10122 * config.in, configure: Regenerated.
10123
10124 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10125
10126 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10127 frame accessor methods.
10128 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10129 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10130 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10131 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10132 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10133 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10134 * z8k-tdep.c: Ditto.
10135
10136 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10137
10138 * configure.in: Remove UI_OUT configuration code.
10139 * ada-lang.c: Update assuming UI_OUT is always true.
10140 * Makefile.in (UIOUT_CFLAGS): Remove.
10141 * configure: Regenerated.
10142 * TODO: Remove blurb about elimination of -DUI_OUT.
10143
10144 * configure.in: Move code that provides the --enable-gdbcli,
10145 --enable-gdbmi options right before the code that handles the
10146 --enable-tui option. Polish a bit.
10147 * configure: Regenerated.
10148
10149 * configure.in: Rewrite check for GNU regex and the
10150 --without-included regex option, and move it into the "Checks for
10151 library functions" section. This makes us use the system regex
10152 again by default on systems with version 2 of the GNU C library.
10153 This was apparently broken.
10154 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10155 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10156 * config.in, configure: Regenerated.
10157
10158 * configure.in: Move code that provides the --enable-tui option
10159 before the "Checks for libraries" section. Polish the code
10160 somewhat and set need_curses to yes if we build the TUI. Rewrite
10161 code that looks for a library providing termcap functionality to
10162 match more closely what's done in the Readline library, and move
10163 it into to the "Checks for libraries" section.
10164 * configure: Regenerated.
10165 * Makefile.in (TERMCAP): Remove variable.
10166 * config/i386/go32.mh (TERMCAP): Remove variable.
10167
10168 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10169
10170 * MAINTAINERS: Mention gdb_mbuild.sh.
10171 * gdb_mbuild.sh: Rewrite.
10172
10173 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10174
10175 * configure.in: Fix typo in last change.
10176 * config.in, configure: Regenerated.
10177
10178 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10179
10180 * valarith.c (value_binop): Delete obsolete code and comments.
10181 * configure.host: Ditto.
10182 * buildsym.h (make_blockvector): Ditto.
10183 * buildsym.c (make_blockvector): Ditto.
10184 * defs.h (enum language): Ditto.
10185 (chill_demangle): Ditto.
10186 * elfread.c (elf_symtab_read): Ditto.
10187 * dwarfread.c (CHILL_PRODUCER): Ditto.
10188 (set_cu_language): Ditto.
10189 (handle_producer): Ditto.
10190 * expprint.c (print_subexp): Ditto.
10191 * gdbtypes.c (chill_varying_type): Ditto.
10192 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10193 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10194 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10195 (chill_varying_type): Ditto.
10196 * language.h (_LANG_chill): Ditto.
10197 * language.c (binop_result_type, integral_type): Ditto.
10198 (character_type, string_type, structured_type): Ditto.
10199 (lang_bool_type, binop_type_check): Ditto.
10200 * stabsread.h (os9k_stabs): Ditto.
10201 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10202 (define_symbol, read_type, read_struct_fields): Ditto.
10203 (read_array_type, read_enum_type, read_huge_number): Ditto.
10204 (read_range_type, start_stabs): Ditto.
10205 * symfile.c (init_filename_language_table): Ditto.
10206 (add_psymbol_with_dem_name_to_list): Ditto.
10207 * symtab.c (symbol_init_language_specific): Ditto.
10208 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10209 * symtab.h (struct general_symbol_info): Ditto.
10210 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10211 * typeprint.c (typedef_print): Ditto.
10212 * utils.c (fprintf_symbol_filtered): Ditto.
10213 * valops.c (value_cast, search_struct_field, value_slice): Delete
10214 obsolete code.
10215 (varying_to_slice): Delete function.
10216 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10217 (varying_to_slice): Delete declaration.
10218 * MAINTAINERS: Update.
10219
10220 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10221
10222 * configure.in: Reorganize "Checks for library functions section"
10223 a bit. Remove check for `btowc' and `isascii' functions.
10224 * configure: Regenerated.
10225
10226 * acconfig.h (_MSE_INT_H): Remove.
10227 * configure.in: Create "Checks for header files" section, and move
10228 appropriate tests there. Don't check for objlist.h, wchar.h,
10229 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10230 misdetection fix. Also add "Checks for types", "Checks for
10231 compiler characteristics" and "Checks for library functions"
10232 sections.
10233 * config.in, configure: Regenerated.
10234
10235 * configure.in: Create "Checks for programs" section, and move
10236 appropriate tests there.
10237
10238 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10239
10240 * configure.in: Create "Checks for libraries" section, and move
10241 appropriate tests there. Cleanup check for wctype in libw. Use
10242 AC_SEARCH_LIBS to see whether we need libsocket.
10243 * configure: Regenerated.
10244
10245 For older changes see ChangeLog-2002
10246 \f
10247 Local Variables:
10248 mode: change-log
10249 left-margin: 8
10250 fill-column: 74
10251 version-control: never
10252 End:
This page took 0.284373 seconds and 4 git commands to generate.