49365595565015e5448b2eb18c9936326abb199d
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-08-07  Andrew Cagney  <cagney@redhat.com>
2
3         * interps.h (INTERP_MI2, INTERP_MI3): Define.
4
5 2003-08-07  Michal Ludvig  <mludvig@suse.cz>
6
7         * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
8         (x86_64_push_arguments): Skip the red zone.
9
10 2003-08-05  Andrew Cagney  <cagney@redhat.com>
11
12         * reggroups.c (reggroup_next): Check for the final entry.
13
14 2003-08-04  Andrew Cagney  <cagney@redhat.com>
15
16         * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
17         * cli/cli-script.c (define_command): Call query directly, instead
18         of passing it a buffer.
19         * ocd.c (ocd_error): Pass error a constant format string.
20         * remote-mips.c (mips_error): Use fputs_filtered.
21
22         * solib-svr4.c (_initialize_svr4_solib): Update
23         register_gdbarch_data call.
24         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
25
26         * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
27         (register_gdbarch_data): Delete "free" parameter.  Update
28         comments.
29         * gdbarch.h, gdbarch.c: Re-generate.
30         * reggroups.c (_initialize_reggroup): Update.
31         * gnu-v3-abi.c (init_gnuv3_ops): Update.
32         * frame-base.c (_initialize_frame_base): Update.
33         * frame-unwind.c (_initialize_frame_unwind): Update.
34         * user-regs.c (_initialize_user_regs): Update.
35         * remote.c (_initialize_remote): Update.
36         * regcache.c (_initialize_regcache): Update.
37
38         * regcache.c (xfree_regcache_descr): Delete function.
39         (_initialize_regcache): Update call to register_gdbarch_data.
40         (init_regcache_descr, init_legacy_regcache_descr): Use
41         GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
42
43         * remote.c (free_remote_state): Delete function.
44         (_initialize_remote): Update register_gdbarch_data.
45         (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
46         GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
47
48 2003-08-04  Andrew Cagney  <cagney@redhat.com>
49
50         * reggroups.c (struct reggroup_el): Define.
51         (struct reggroups): Delete field "nr_group".  Replace array
52         "group" with a "first" to "last" linked list.
53         (reggroups_init): Update.  Allocate using gdbarch's obstack.
54         (reggroups_free): Delete function.
55         (add_group): Update.  Add "el" parameter.
56         (reggroup_add): Pass gdbarch obstack allocated space to add_group.
57         (default_groups): Update.
58         (reggroup_next): Replace reggroups.
59         (reggroups_dump): Update.
60         (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
61         * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
62         * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
63
64 2003-08-04  Daniel Jacobowitz  <drow@mvista.com>
65
66         * Makefile.in (tui-interp.o): Update dependencies.
67
68 2003-08-04  David Carlton  <carlton@kealia.com>
69
70         * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
71         to internal_error call.
72         * source.c (forward_search_command): Add "%s" format argument.
73         (reverse_search_command): Ditto.
74         * top.c (quit_confirm): Ditto.
75         * cli/cli-setshow.c (do_setshow_command): Ditto.
76         * cp-valprint.c (cp_print_class_method): Replace
77         {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
78         (cp_print_class_member): Ditto.
79         * event-top.c (command_line_handler): Ditto.
80         * linux-proc.c (linux_info_proc_cmd): Ditto.
81         * p-typeprint.c (pascal_type_print_base): Ditto.
82         * p-valprint.c (pascal_object_print_class_method): Ditto.
83         (pascal_object_print_class_member): Ditto.
84         * printcmd.c (print_scalar_formatted,printf_command): Ditto.
85         * remote.c (remote_cisco_section_offsets): Ditto.
86         * top.c (command_line_input): Ditto.
87         * utils.c (vwarning,error_stream,quit): Ditto.
88         * valprint.c (print_floating,print_binary_chars)
89         (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
90
91 2003-08-04  Andrew Cagney  <cagney@redhat.com>
92
93         * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
94
95 2003-08-02  Andrew Cagney  <cagney@redhat.com>
96
97         * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
98         gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
99         amd64fbsd-nat.c.
100
101 2003-08-02  Andrew Cagney  <cagney@redhat.com>
102
103         * Makefile.in: Update all dependencies and definitions.
104
105 2003-08-02  Adam Fedor  <fedor@gnu.org>
106
107         * linespec.c (is_objc_method_format): New function
108         (decode_line_1, locate_first_half): Use it.
109         Fixes PR objc/1298
110
111 2003-08-01  Andrew Cagney  <cagney@redhat.com>
112
113         * NEWS: Mention that m32r is multi-arch.
114         From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
115         * configure.tgt: Recognize m32r-*-*.
116         * config/m32r/tm-m32r.h: Delete file.
117         * config/m32r/m32r.mt: New file.
118         * m32r-rom.c (m32r_upload_command): Use hostent only when 
119         gethostname succeeds, in order to avoid a compilation
120         warning.
121         * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
122         compiler warning.
123
124 2003-08-01  Michael Snyder  <msnyder@redhat.com>
125
126         * sh-tdep.c (sh_frame_align): New gdbarch method.
127         (sh_gdbarch_init): Set up frame_align method.
128
129 2003-07-31  Michael Snyder  <msnyder@redhat.com>
130
131         * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
132         which is already covered by the new frames infrastructure.
133
134 2003-07-31  Andrew Cagney  <cagney@redhat.com>
135
136         * user-regs.c (struct user_reg): Add "next" link.
137         (struct user_regs): Replace "user" with "first" and "last" links.
138         (append_user_reg): Add pre-allocated "reg" parameter.
139         (builtin_user_regs): Provide initial value for "last".
140         (user_reg_add_builtin): XMALLOC memory for append_user_reg.
141         (user_regs_init): Allocate memory from the gdbarch obstack.
142         (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
143         (user_reg_map_name_to_regnum): Rewrite to search the user_reg
144         linked list.
145         (usernum_to_user_reg): New function.
146         (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
147         (value_of_user_reg): Use usernum_to_user_reg.
148         (user_regs_free): Delete function.
149         (_initialize_user_regs): Update register_gdbarch_data call.
150
151 2003-07-31  Daniel Jacobowitz  <drow@mvista.com>
152
153         * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
154
155 2003-07-30  Michael Snyder  <msnyder@redhat.com>
156
157         * value.h (value_being_returned): Add a struct_addr argument.
158         * infcall.c (call_function_by_hand): Pass struct_addr to 
159         value_being_returned.
160         * infcmd.c (print_return_value): Pass zero as struct_addr.
161         * values.c (value_being_returned): If struct_addr is passed,
162         use it instead of trying to recover it from the inferior.
163
164 2003-07-30  Kevin Buettner  <kevinb@redhat.com>
165
166         * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
167         the prologue analyzer won't need to attempt to extract the pc
168         value from the woefully incomplete dummy frame.
169         (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
170         possible.  Disable code which modifies the frame.
171
172 2003-07-28  Andrew Cagney  <cagney@redhat.com>
173
174         * annotate.c (annotate_breakpoints_headers): Restrict annotation
175         to level 2.
176         (annotate_breakpoints_table, annotate_record): Ditto.
177         (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
178         (annotate_field_name_end, annotate_field_value): Ditto.
179         (annotate_field_end, annotate_frame_source_begin): Ditto.
180         (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
181         (annotate_frame_source_line, annotate_frame_source_end): Ditto.
182         (annotate_frame_begin, annotate_frame_function_name): Ditto.
183         (annotate_frame_address_end, annotate_frame_address): Ditto.
184         (annotate_frame_args, annotate_frame_end): Ditto.
185         (annotate_frame_where, annotate_arg_begin): Ditto.
186         (annotate_arg_name_end, annotate_arg_value): Ditto.
187         (annotate_arg_end, annotate_signal_handler_caller): Ditto.
188         (annotate_function_call, annotate_signal_name): Ditto.
189         (annotate_signal_string, annotate_signal_name_end): Ditto.
190         (annotate_signal_string_end, annotate_value_history_begin): Ditto.
191         (annotate_value_begin, annotate_value_history_value): Ditto.
192         (annotate_value_history_end, annotate_value_end): Ditto.
193         (annotate_display_begin, annotate_display_number_end): Ditto.
194         (annotate_display_format, annotate_display_expression): Ditto.
195         (annotate_display_expression_end, annotate_display_value): Ditto.
196         (annotate_display_end, annotate_array_section_begin): Ditto.
197         (annotate_elt_rep, annotate_elt_rep_end): Ditto.
198         (annotate_elt, annotate_array_section_end): Ditto.
199
200 2003-07-28  Andrew Cagney  <cagney@redhat.com>
201
202         * regcache.c (struct regcache_descr): Update comments on
203         nr_raw_registers.
204         (init_legacy_regcache_descr): Don't set nr_raw_registers or
205         sizeof_raw_register_valid_p.
206         (init_regcache_descr): Set nr_raw_registers and
207         sizeof_raw_register_valid_p before calling
208         init_legacy_regcache_descr.
209
210 2003-07-28  Andrew Cagney  <cagney@redhat.com>
211
212         * mips-tdep.c (print_gp_register_row): Print the GPR's register
213         MOD NUM_REGS.
214
215 2003-07-28  Daniel Jacobowitz  <drow@mvista.com>
216
217         * thread.c (info_threads_command): Use get_selected_frame ().
218         Check that there is at least one non-sentinel frame.
219
220 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
221
222         * m68hc11-tdep.c (struct frame_extra_info): Remove.
223         (m68hc11_pop_frame): Remove.
224         (m68hc11_frame_saved_pc): Remove.
225         (m68hc11_frame_chain): Remove.
226         (m68hc11_frame_init_saved_regs): Remove.
227         (m68hc11_init_extra_frame_info): Remove.
228         (m68hc11_store_struct_return): Remove.
229         (m68hc11_saved_pc_after_call): Remove.
230
231 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
232
233         * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
234         frame unwind information.
235         (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
236         and adapted for frame unwinding.
237         (m68hc11_skip_prologue): Update to scan prologue in temporary object.
238         (m68hc11_unwind_pc): New function.
239         (m68hc11_frame_unwind_cache): New function to analyze frames.
240         (m68hc11_frame_this_id): New function to create new frame struct.
241         (m68hc11_frame_prev_register): New function to unwind a register from
242         the frame.
243         (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
244         (m68hc11_frame_p): New function for the above.
245         (m68hc11_frame_base_address): New function to return fp of frame.
246         (m68hc11_frame_args_address): Update for frame.
247         (m68hc11_frame_base): Default 68hc11/68hc12 frame.
248         (m68hc11_unwind_sp): New function.
249         (m68hc11_unwind_dummy_id): New function.
250         (m68hc11_gdbarch_init): Install the above frames; remove deprecated
251         calls.
252
253 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
254
255         * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
256         (m68hc11_guess_from_prologue): Advance the pc and frame size only
257         when we are beyond the current pc.
258
259 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
260
261         * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
262         from m68hc11_push_arguments.
263         (m68hc11_push_arguments): Remove.
264         (m68hc11_push_return_address): Remove.
265         (m68hc11_gdbarch_init): Install the above; remove above deprecated
266         handlers; remove deprecated_extra_stack_alignment_needed.
267
268 2003-07-27  Andrew Cagney  <cagney@redhat.com>
269
270         * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
271         * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
272         REAL_PC and not the pointer.
273         * hppa-hpux-tdep.c: Include frame.h
274
275 2003-07-27  Andrew Cagney  <cagney@redhat.com>
276
277         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
278         GDB_MULTI_ACH_PARTIAL.
279
280 2003-07-27  Andrew Cagney  <cagney@redhat.com>
281
282         Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
283         * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
284         operator at start and not end of line.
285         (decode_prologue): Ditto.
286         (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
287         frame_unwind_register_unsigned instead of
288         frame_unwind_unsigned_register.
289         (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
290         read_register.
291         (m32r_push_dummy_call): Use register_size instead of
292         REGISTER_RAW_SIZE.
293         (m32r_frame_sniffer): Replace m32r_frame_p.
294         (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
295         * m32r-rom.c (report_transfer_performance): Delete extern
296         declaration.
297         (m32r_load, m32r_upload_command): Use print_transfer_performance
298         instead of report_transfer_performance.
299         (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
300         / add_show_from_set.
301
302 2003-07-26  Andrew Cagney  <cagney@redhat.com>
303
304         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
305         store_return_value and extract_struct_value_address.
306
307 2003-07-26  Daniel Jacobowitz  <drow@mvista.com>
308
309         PR c++/1267
310         * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
311         NULL, default to the section containing PC.
312
313 2003-07-24  Stephane Carrez  <stcarrez@nerim.fr>
314
315         * NEWS: Mention "regs" deprecated for m68hc11 too.
316
317         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
318         (m68hc11_print_register): New function to print out one register.
319         (m68hc11_print_registers_info): New function to print registers.
320         (show_regs): Deprecate and use the above.
321         (m68hc11_gdbarch_init): Install the print_registers_info.
322
323 2003-07-24  Jeff Johnston  <jjohnstn@redhat.com>
324
325         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
326         that we have a SIGTRAP before returning non-zero.
327
328 2003-07-23  Michal Ludvig  <mludvig@suse.cz>
329             Elena Zannoni  <ezannoni@redhat.com>
330
331         * linespec.c (decode_line_2): Avoid crash if 
332         find_function_start_sal() returns empty record.
333
334 2003-07-23  Andreas Schwab  <schwab@suse.de>
335
336         * ia64-tdep.c (ia64_print_insn): New function.
337         (ia64_gdbarch_init): Set print_insn to it.
338         (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
339         deprecated_tm_print_insn_info.
340
341 2003-07-22  Michael Snyder  <msnyder@redhat.com>
342
343         * h8300-tdep.c (h8300_extract_return_value): Teach it how to
344         handle 8-bit returns (long long).
345         (h8300h_extract_return_value): Ditto.
346         (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
347
348 2003-07-22  Andrew Cagney  <cagney@redhat.com>
349
350         * gdbarch.c Include "gdb_obstack.h".
351         (struct gdbarch): Add an "obstack".
352         (alloc_gdbarch_data): Allocate the gdbarch data using
353         GDBARCH_OBSTACK_CALLOC.
354         (free_gdbarch_data): Delete function.
355         (gdbarch_obstack_zalloc): New function.
356         (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
357         Assert that the architecture is not initialized.
358         (gdbarch_alloc): Allocate an obstack, allocate the architecture
359         vector from the obstack.
360         (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
361         architecture obstack.
362         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
363         (set_gdbarch_data): Assert that the data is not initialized.
364         (struct gdbarch_data): Delete member "free".
365         (register_gdbarch_data): Do not initialize "free".
366         * gdbarch.h, gdbarch.c: Re-generate.
367         
368 2003-07-22  Andrew Cagney  <cagney@redhat.com>
369
370         * configure.in (build_warnings): Add -Wformat-nonliteral.
371         * configure: Re-generate.
372
373 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
374
375         * dwarf2loc.c (locexpr_describe_location): Fix typos.
376
377 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
378
379         * findvar.c (read_var_value): Remove case for thread local storage
380         variables.  It is now entirely handled by the dwarf2 location
381         expression code.
382         * printcmd.c (address_info): Ditto.
383         * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
384         enumeration value.
385         (struct symbol): Remove objfile field, which was used by
386         LOC_THREAD_LOCAL_STATIC only.
387         * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
388         * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
389         usage of objfile pointer.
390         * dwarf2loc.c (locexpr_describe_location): Add case to handle
391         thread local variables.
392         Add include of objfiles.h.
393         * dwarf2expr.c (execute_stack_op): Add comments about thread local
394         storage variables.
395         * Makefile.in (dwarf2loc.o): Update dependencies.
396
397 2003-07-22  Andrew Cagney  <cagney@redhat.com>
398
399         * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
400         get_frame_base.
401         (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
402         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
403         (struct value): Add opaque declaration.
404         (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
405
406 2003-07-21  Andrew Cagney  <cagney@redhat.com>
407
408         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
409         * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
410
411 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
412
413         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use 
414         regcache_cooked_read_unsigned instead of read_register.
415         (m68hc11_saved_pc_after_call): Likewise.
416         (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
417         instead of write_register.
418         (m68hc11_register_type): New function.
419         (m68hc11_register_virtual_type): Remove.
420         (m68hc11_store_return_value): Convert to use the regcache.
421         (m68hc11_extract_struct_value_address): Likewise.
422         (m68hc11_gdbarch_init): Remove deprecated ops for register to use
423         m68hc11_register_type; undeprecate store_return_value and
424         extract_struct_value_address.
425
426 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
427
428         * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
429         and translate to use regcache.
430         (m68hc11_gdbarch_init): Undeprecate extract_return_value.
431
432 2003-07-18  Andrew Cagney  <cagney@redhat.com>
433
434         * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
435         * gdbarch.h, gdbarch.c: Re-generate.
436         * i386-tdep.c (i386_gdbarch_init): Do not set
437         DWARF2_BUILD_FRAME_INFO.
438         * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
439         unconditionally.
440         * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
441         DWARF2_BUILD_FRAME_INFO.
442
443 2003-07-18  Andrew Cagney  <cagney@redhat.com>
444
445         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
446         * disasm.c (gdb_disassemble_info): Initilize di.arch.
447
448 2003-07-18  Andrew Cagney  <cagney@redhat.com>
449
450         * dwarf2-frame.c (dwarf2_frame_sniffer): Use
451         frame_unwind_address_in_block, instead of frame_pc_unwind.
452         (dwarf2_frame_cache): Ditto.
453
454 2003-07-18  Andrew Cagney  <cagney@redhat.com>
455
456         * user-regs.h (struct gdbarch): Declare opaque.
457         * ui-out.h (struct ui_file): Declare opaque.
458         * dwarf2-frame.h (struct frame_info): Declare opaque.
459
460 2003-07-18  Kris Warkentin  <kewarken@qnx.com>
461
462         * nto-procfs.c: Clean ARI hits.  Change #include <..> to
463         #include "...".
464         (procfs_meminfo): Change strerror to safe_strerror.
465         (procfs_can_run): Remove K&R badness.
466
467 2003-07-17  Michael Snyder  <msnyder@redhat.com>
468
469         * remote-sim.c: Comment typo fix.
470
471 2003-07-17  Andrew Cagney  <cagney@redhat.com>
472
473         * defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
474         configure.
475         * sparc-tdep.c (sparc_intreg_size): Make non-static.
476         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
477         GDB_MULTI_ARCH_PARTIAL.
478
479 2003-07-17  Elena Zannoni  <ezannoni@redhat.com>
480
481         * Makefile.in (x86-64-linux-nat.o): Update dependencies.
482         * x86-64-linux-nat.c (ps_get_thread_area): New function.  Add
483         include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
484
485 2003-07-16  Theodore A. Roth  <troth@openavr.org>
486
487         * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
488         found.
489         (avr_frame_unwind_cache): Don't unwind FP for main.
490         Update a comment.
491         Save the computed prev_sp.
492         (avr_saved_regs_unwinder): Remove function.
493         (avr_frame_prev_register): Use PC unwind logic from 
494         avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
495
496 2003-07-16  Andrew Cagney  <cagney@redhat.com>
497
498         * frame-base.h (frame_base_p_ftype): Delete definition.
499         (frame_base_append_predicate): Delete declaration.
500         * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
501         (frame_unwind_append_predicate): Delete declaration.
502         * frame-unwind.c (struct frame_unwind_table): Delete field "p".
503         (append_predicate): Delete parameter "p".
504         (frame_unwind_append_predicate): Delete function.
505         (frame_unwind_append_sniffer): Update call to append_predicate.
506         (frame_unwind_free): Delete function.
507         (_initialize_frame_unwind): Pass NULL as "free" to
508         register_gdbarch_data.
509         (frame_unwind_init): Append the dummy_frame_sniffer.
510         (frame_unwind_find_by_frame): Simplify.
511         * frame-base.c (struct frame_base_table): Delete field "p".
512         (append_predicate): Delete parameter "p".
513         (frame_base_append_predicate): Delete function.
514         (frame_base_append_sniffer): Update call to append_predicate.
515         (frame_base_free): Delete function.
516         (frame_base_find_by_frame): Simplify.
517         (_initialize_frame_base): Pass NULL as "free" to
518         register_gdbarch_data.
519         * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
520         (x86_64_sigtramp_frame_sniffer): Replace
521         "x86_64_sigtramp_frame_p".
522         (x86_64_init_abi): Set the frame unwind sniffers.
523         * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
524         (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
525         (m68k_gdbarch_init): Set the frame unwind sniffers.
526         * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
527         "i386_sigtramp_frame_p".
528         (i386_frame_sniffer): Replace "i386_frame_p".
529         (i386_gdbarch_init): Set the frame unwind sniffers.
530         * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
531         (avr_gdbarch_init): Set the frame unwind sniffers.
532         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
533         "alpha_sigtramp_frame_p"
534         (alpha_heuristic_frame_sniffer): Replace
535         "alpha_heuristic_frame_p".
536         (alpha_gdbarch_init): Set the frame unwind sniffers.
537         (alpha_dwarf2_init_abi): Ditto.
538         * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
539         "alpha_debug_frame_p".
540         (alpha_mdebug_frame_base_sniffer): Replace
541         "alpha_mdebug_frame_base_p".
542         (alpha_mdebug_init_abi): Set the frame unwind sniffers.
543         * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
544         (d10v_gdbarch_init): Set the frame unwind sniffer.
545         * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
546         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
547         * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
548         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
549         * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
550         * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
551
552 2003-07-16  Michael Snyder  <msnyder@redhat.com>
553
554         * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
555         should go thru sh_dsp_register_sim_regno, else the dsp regs
556         will not get the right values.
557
558 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
559
560         * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
561         deprecated_store_floating by call to store_typed_floating.
562         (sh_sh4_register_convert_to_raw): Substitute call to
563         deprecated_extract_floating by call to extract_typed_floating.
564
565 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
566
567         * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
568
569 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
570
571         * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
572         register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
573         gdbarch_register_type in 32 bit code throughout.  Avoid current_gdbarch
574         as possible.
575         (do_pseudo_register): Remove.
576         (sh_push_dummy_code): New function.
577         (sh64_store_struct_return): Rename from sh_store_struct_return.
578         Only called for sh64 now.
579         (sh_extract_struct_value_address): Regcache'ify.
580         (sh_push_dummy_call): Rename from sh_push_arguments.  Regcache'ify
581         and accomodate new tasks.
582         (sh64_push_return_address): Rename from sh_push_return_address.
583         Only called for sh64 now.
584         (sh_default_extract_return_value): Rename from sh_extract_return_value.
585         Regcache'ify.
586         (sh3e_sh4_extract_return_value): Regcache'ify.
587         (sh_default_store_return_value): Ditto.
588         (sh3e_sh4_store_return_value): Ditto.
589         (sh_default_register_byte): Remove.
590         (sh_sh4_register_byte): Remove.
591         (sh_default_register_raw_size): Remove.
592         (sh_sh4_register_raw_size): Remove.
593         (sh_register_virtual_size): Remove.
594         (sh_sh3e_register_virtual_type): Remove.
595         (sh_sh3e_register_type): New function.
596         (sh_sh4_register_virtual_type): Remove.
597         (sh_sh4_register_type): New function.
598         (sh_default_register_virtual_type): Remove.
599         (sh_default_register_type): New function.
600         (do_fv_register_info): Add parameters to accomodate call from
601         sh_print_registers_info.
602         (do_dr_register_info): Ditto.
603         (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
604         Add parameters to accomodate call from sh_print_registers_info.
605         (sh_do_fp_register): Ditto.
606         (sh64_do_pseudo_register): Call do_dr_register_info,
607         do_fv_register_info and sh_do_fp_register with default parameters.
608         (sh_do_register): Add parameters to accomodate call from
609         sh_print_registers_info.
610         (sh_print_register): Ditto.
611         (sh_print_registers_info): Rename from sh_do_registers_info.
612         Add parameters to be used as gdbarch_print_registers_info
613         implementation.  Accomodate removed do_pseudo_register function
614         pointer.
615         (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
616         function pointer. Call sh_print_register with default parameters.
617         (sh64_do_registers_info): Call sh_print_registers_info instead of
618         sh_do_registers_info.
619         (sh_gdbarch_init): Rearrange to cleanup and to allow easier
620         detection of deprecated vs. non-deprecated functionality.
621         Rename sh_call_dummy_words to sh64_call_dummy_words.  Remove
622         function pointer assignments by direct function calls.
623
624 2003-07-15  Andrew Cagney  <cagney@redhat.com>
625
626         * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
627         (frame_register_unwind, create_new_frame): Ditto.
628         (legacy_get_prev_frame, get_frame_type): Ditto.
629         (get_frame_base_address): Use frame_base_find_by_frame.
630         (get_frame_locals_address): Use frame_base_find_by_frame.
631         (get_frame_args_address): Use frame_base_find_by_frame.
632         * frame-base.h (frame_base_sniffer_ftype): Declare.
633         (frame_base_append_sniffer): Declare.
634         (frame_base_find_by_frame): Replace frame_base_find_by_pc.
635         * frame-base.c (append_predicate): Add a "sniffer" parameter.
636         (frame_base_append_sniffer): New function.
637         (frame_base_append_predicate): Add a NULL sniffer.
638         (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
639         (struct frame_base_table): Add "sniffer".
640         (frame_base_free): Free the "sniffer" table.
641         * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
642         (frame_unwind_append_sniffer): Declare.
643         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
644         * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
645         (struct frame_unwind_table): Add "sniffer", delete "middle".
646         (append_predicate): Add "sniffer" parameter, append the sniffer.
647         (frame_unwind_init): Update append_predicate call.
648         (frame_unwind_append_sniffer): New function.
649         (frame_unwind_append_predicate): Update append_predicate call.
650         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
651
652 2003-07-15  Andrew Cagney  <cagney@redhat.com>
653
654         * frame.c (get_prev_frame): Move disabled inside_entry_func to
655         before code inhibiting repeated unwind attempts.  Add to
656         commentary on that test's problems.
657         * blockframe.c (inside_main_func): Look for "main" in the minimal
658         symbol table.
659         * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
660         identical.
661
662 2003-07-15  Andrew Cagney  <cagney@redhat.com>
663
664         * complaints.c (struct explanation): Define.
665         (struct complaints): Change type of "explanation" to "struct
666         explanation".
667         (symfile_explanations): Convert to a "struct explanation" table.
668         (vcomplaint): Update.
669
670 2003-07-15  Michal Ludvig  <mludvig@suse.cz>
671
672         * x86-64-linux-nat.c (regmap): Removed.
673         (supply_gregset, fill_gregset): Call 
674         x86_64_linux_(fill,supply)_gregset functions.
675         * x86-64-linux-tdep.c (USER_*): New defines.
676         (user_to_gdb_regmap, x86_64_core_fns): New structure.
677         (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
678         New functions.
679         (fetch_core_registers): Ditto.
680         (_initialize_x86_64_linux_tdep): Call add_core_fns().
681         * x86-64-linux-tdep.h: New file.
682         * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
683         and core-regset.o.
684         * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
685
686 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
687
688         * x86-64-tdep.c (x86_64_store_return_value): Use
689         regcache_cooked_write_part instead of regcache_cooked_write.
690
691         * configure.host: Add x86_64-*-freebsd*.
692         * configure.tgt: Add x86_64-*-freebsd*.
693         * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
694         * amd64fbsd-nat.c: New file.
695         * amd64fbsd-tdep.c: New file.
696         * config/i386/nm-fbsd64.h: New file.
697         * config/i386/fbsd64.mh: New file.
698         * config/i386/fbsd64.mt: New file.
699
700 2003-07-11  Mark Kettenis  <kettenis@gnu.org>
701
702         * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
703         `sc_regs_offset' and `sc_fpregs_offset'.
704         * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
705         SIGFRAME_FPREGSAVE_OFF): Remove defines.
706         (alpha_sigtramp_register_address): Rewrite to use new members of
707         `struct gdbarch_tdep'.
708         (alpha_gdbarch_init): Initialize new members of struct
709         gdbarch_tdep'.
710         * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
711         ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
712         (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
713         (alphafbsd_pc_in_sigtramp): Implement.
714         (alphafbsd_sigtramp_offset): New function.
715         (alphafbsd_sigcontext_addr): New function.
716         (alphafbsd_init_abi): Initialize signal trampoline related members
717         of `struct gdbarch_tdep'.
718         (_initialize_alphafbsd_tdep): Add prototype.
719
720 2003-07-11  Theodore A. Roth  <troth@openavr.org>
721
722         * Makefile.in (install-only): Quote sed expression when generating
723         transformed_name.
724
725 2003-07-11  Richard Henderson  <rth@redhat.com>
726
727         * Makefile.in (dwarf2-frame.o): Add complaints_h.
728         * dwarf2-frame.c: Include complaints.h.
729         (decode_frame_entry_1): Rename from decode_frame_entry; tidy
730         variable initialization; return NULL on error.
731         (decode_frame_entry): New.
732
733 2003-07-11  Andrew Cagney  <cagney@redhat.com>
734
735         * frame.h (frame_address_in_block): Delete declaration.
736         * blockframe.c (frame_address_in_block): Delete function.
737         (get_frame_block): Use get_frame_address_in_block.
738         (block_innermost_frame): Ditto.
739         * stack.c (print_frame, backtrace_command_1): Ditto.
740
741         * frame.h (get_frame_address_in_block): Declare.
742         (frame_unwind_address_in_block): Declare.
743         * frame.c (frame_unwind_address_in_block): New function.
744         (get_frame_address_in_block): New function.
745
746 2003-07-10  Andrew Cagney  <cagney@redhat.com>
747
748         * gdbarch.sh: Simplify predicate methods.  Remove need to provide
749         pre-default.   Note: re-generate has no effect.
750         
751 2003-07-10  Andrew Cagney  <cagney@redhat.com>
752
753         * gdbarch.sh: When a variable, but not a function, compare against
754         0.  Fix problem in previous patch.
755         * gdbarch.c: Re-generate.
756         
757 2003-07-10  Andrew Cagney  <cagney@redhat.com>
758
759         * gdbarch.sh: Use gdb_assert instead of internal_error.  Compare
760         functions against NULL, not 0.
761         * gdbarch.c: Re-generate.
762         
763 2003-07-10  Fred Fish  <fnf@ninemoons.com>
764
765         * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
766         null string instead of a null pointer.
767         * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
768
769 2003-07-09  Michael Snyder  <msnyder@redhat.com>
770
771         * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
772
773 2003-07-09  Mark Kettenis  <kettenis@gnu.org>
774
775         * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
776         X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
777         X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
778         X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
779         * x86-64-tdep.c: ... from here.
780
781 2003-07-09  Andreas Schwab  <schwab@suse.de>
782
783         * m68k-tdep.h (enum struct_return): Define.
784         (struct gdbarch_tdep): Add struct_return.
785         * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
786         bytes are padded to the right, not to the left.  Pass struct value
787         address in register %a1, not on stack.
788         (m68k_use_struct_convention): New function.
789         (m68k_gdbarch_init): Set use_struct_convention.  Initialize
790         struct_return in tdep to pcc_struct_return.
791         * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
792         reg_struct_return.
793
794 2003-07-09  Joel Brobecker  <brobecker@gnat.com>      
795
796         * somread.c (som_symfile_offsets): Fix compilation error.   
797
798 2003-07-09  Andrew Cagney  <cagney@redhat.com>
799
800         * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
801         Add comments about the checks.
802
803 2003-07-08  Andrew Cagney  <cagney@redhat.com>
804
805         * Makefile.in: Make dependency section headers consistent.
806         (config_h): Move to $BUILD headers section.
807         (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
808         (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
809         (ada-exp.tab.c): Move to YACC/LEX section.
810         (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
811         (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
812
813 2003-07-08  Kris Warkentin  <kewarken@qnx.com>
814
815         * nto-procfs.c: Cleaned up a bunch of ARI hits.
816         Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
817         of strerror with safe_strerror, use ISO C function definitions,
818         and replace instances of sprintf with snprintf.
819
820 2003-07-07  Andrew Cagney  <cagney@redhat.com>
821
822         * frame.c (get_prev_frame): Enable check for identical frames.
823         Update comments.  Update error messages.
824
825 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
826
827         * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
828
829 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
830
831         * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
832         sort_symtab_syms, no longer necessary.
833
834 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
835
836         * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
837
838 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
839
840         * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
841         (mips_register_byte): Likewise.
842
843 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
844
845         * Makefile.in (sparc_tdep_h): New.
846         (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
847         (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
848         * sparc-linux-nat.c: Include "sparc-tdep.h".
849         * sparc-nat.c: Likewise.
850         * sparc-tdep.c: Likewise.
851         * sparc64nbsd-nat.c: Likewise.
852         * sparcnbsd-nat.c: Likewise.
853         * sparcnbsd-tdep.c: Likewise.
854         * sparc-tdep.h: New file.
855         * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
856         and sparc_npc_regnum.
857
858 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
859
860         * mips-linux-nat.c (mips_linux_cannot_fetch_register)
861         (mips_linux_cannot_store_register): List supported instead of
862         unsupported registers.
863
864 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
865
866         * disasm.c (dump_insns): Separate instructions from addresses.
867
868 2003-07-07  Andreas Schwab  <schwab@suse.de>
869
870         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
871         dependencies.
872         * m68k-tdep.c (NUM_FREGS): Delete.
873         (SIG_PC_FP_OFFSET): Delete.
874         (TARGET_M68K): Delete.
875         (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
876         P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
877         P_MOVEL_SP, P_MOVEML_SP): Define.
878         (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
879         P_TRAP): Delete.
880         (m68k_register_raw_size): Delete.
881         (m68k_register_virtual_size): Delete.
882         (m68k_register_type): Renamed from m68k_register_virtual_type and
883         add gdbarch argument.
884         (m68k_store_struct_return): Delete.
885         (m68k_deprecated_extract_return_value): Delete.
886         (m68k_deprecated_extract_struct_value_address): Delete.
887         (m68k_frame_chain): Delete.
888         (m68k_frame_saved_pc): Delete.
889         (m68k_fix_call_dummy): Delete.
890         (m68k_push_dummy_frame): Delete.
891         (m68k_pop_frame): Delete.
892         (m68k_extract_return_value): New function.
893         (m68k_store_return_value): Rewrite using regcache.
894         (m68k_extract_struct_value_address): Rewrite using regcache.
895         (m68k_push_dummy_call): New function.
896         (struct m68k_frame_cache): Define.
897         (m68k_alloc_frame_cache): New function.
898         (m68k_analyze_frame_setup): New function.
899         (m68k_analyze_register_saves): New function.
900         (m68k_analyze_prologue): New function.
901         (m68k_skip_prologue): Rewrite using above functions.
902         (m68k_unwind_pc): New function.
903         (m68k_frame_cache): New function.
904         (m68k_frame_this_id): New function.
905         (m68k_frame_prev_register): New function.
906         (m68k_frame_unwind): New variable.
907         (m68k_frame_p): New function.
908         (m68k_sigtramp_frame_cache): New function.
909         (m68k_sigtramp_frame_this_id): New function.
910         (m68k_sigtramp_frame_prev_register): New function.
911         (m68k_sigtramp_frame_unwind): New variable.
912         (m68k_sigtramp_frame_p): New function.
913         (m68k_frame_base_address): New function.
914         (m68k_frame_base): New function.
915         (m68k_unwind_dummy_id): New function.
916         (fill_gregset): Use regcache_collect.
917         (fill_fpregset): Likewise.
918         (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
919         defined.
920         (m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
921         deprecated_init_frame_pc, deprecated_store_struct_return,
922         deprecated_extract_return_value, deprecated_store_return_value,
923         deprecated_frame_chain, deprecated_frame_saved_pc,
924         deprecated_frame_init_saved_regs, deprecated_register_raw_size,
925         deprecated_register_virtual_size,
926         deprecated_max_register_raw_size,
927         deprecated_max_register_virtual_size,
928         deprecated_register_virtual_type, deprecated_register_size,
929         deprecated_register_byte, deprecated_register_bytes,
930         deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
931         call_dummy_location, deprecated_call_dummy_breakpoint_offset,
932         deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
933         deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
934         deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
935         deprecated_push_dummy_frame, deprecated_pop_frame,
936         deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
937         only if SYSCALL_TRAP is defined.  Set extract_return_value,
938         store_return_value, extract_struct_value_address, register_type,
939         push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
940         predicates.
941         * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
942         M68K_MAX_REGISTER_SIZE): Define.
943         (struct m68k_sigtramp_info): Define.
944         (struct gdbarch_tdep): Add get_sigtramp_info.
945         * m68klinux-nat.c (fetch_register): Use register_size instead of
946         REGISTER_RAW_SIZE.  Don't put assignment in if.
947         (store_register): Likewise.
948         (fetch_inferior_registers): Likewise.
949         (store_inferior_registers): Likewise.
950         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
951         (m68k_linux_frame_saved_pc): Delete.
952         (m68k_linux_sigcontext_reg_offset,
953         m68k_linux_ucontext_reg_offset): Define.
954         (m68k_linux_get_sigtramp_info): New function.
955         (m68k_linux_extract_return_value): Rewrite using regcache.
956         (m68k_linux_store_return_value): Likewise.
957         (m68k_linux_extract_struct_value_address): Likewise.
958         (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
959         Don't set deprecated_frame_saved_pc,
960         deprecated_extract_return_value, deprecated_store_return_value,
961         deprecated_extract_struct_value_address.  Set
962         extract_return_value, store_return_value,
963         extract_struct_value_address.
964
965 2003-07-07  Andrew Cagney  <cagney@redhat.com>
966
967         * expprint.c: Include "user-regs.h" instead of "frame.h".
968         (print_subexp): Use user_reg_map_regnum_to_name, instead of
969         frame_map_regnum_to_name.
970         * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
971         (frame_map_name_to_regnum): Simplify, call
972         user_reg_map_name_to_regnum.
973         (frame_map_regnum_to_name): Simplify, call
974         user_reg_map_regnum_to_name.
975         (frame_register_unwind): Update.
976         * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
977         (_initialize_frame_reg): Call user_reg_add_builtin.
978         * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
979         (value_of_register): Use value_of_user_reg.
980         * eval.c (evaluate_subexp_standard): Update.
981         * parse.c (write_dollar_variable): Update.
982         * d10v-tdep.c (d10v_print_registers_info): Update.
983         * infcmd.c (registers_info): Update.
984         * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
985         (builtin_regs_h): Delete macro.
986         (user_regs_h): Define.
987         (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
988         (builtin-regs.o): Delete target.
989         (user-regs.o): Specify dependencies.
990         (expprint.o): Update dependencies.
991         (findvar.o): Update dependencies.
992         (frame.o): Update dependencies.
993         (std-regs.o): Update dependencies.
994
995 2003-07-06  Christopher Faylor  <cgf@redhat.com>
996
997         * win32-nat.c (solib_symbols_add): Use one variable for all section
998         address stuff.  Pass variable rather than address of variable to
999         safe_symbol_file_add.
1000
1001 2003-07-06  Andreas Schwab  <schwab@suse.de>
1002
1003         * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1004
1005 2003-07-04  Joel Brobecker  <brobecker@gnat.com>
1006
1007         * rs6000-nat.c (vmap_symtab): Fix compilation error.
1008
1009 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
1010
1011         * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1012
1013 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
1014
1015         * nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
1016         * config/i386/nto.mh: New file.
1017         * config/i386/nm-nto.h: New file.
1018         * configure.host: Add i[3456]86-*-nto*.
1019
1020 2003-07-03  Joel Brobecker  <brobecker@gnat.com>
1021
1022         * remote-vx.c (vx_add_symbols): Fix compilation error.
1023
1024 2003-07-03  Andrew Cagney  <cagney@redhat.com>
1025
1026         * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1027         * gdbarch.h, gdbarch.c: Re-generate.
1028         * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1029         (legacy_register_name): Declare.
1030         * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1031         (REGISTER_NAME): Define.
1032         * sparc-tdep.c (legacy_register_name): New function.
1033         * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1034         (REGISTER_NAME): Define.
1035         (hppa64_register_name): Declare.
1036         * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1037         * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1038         (hppa64_register_name): New function.
1039         (hppa_register_name): New function.
1040         * arch-utils.c (legacy_register_name): Delete.
1041         * arch-utils.h (legacy_register_name): Delete.
1042
1043 2003-07-03  Daniel Jacobowitz  <drow@mvista.com>
1044
1045         * cli/cli-interp.c (cli_interpreter_resume): Update the
1046         cli_uiout's stream to gdb_stdout.
1047
1048 2003-07-03  Andrew Cagney  <cagney@redhat.com>
1049
1050         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1051         predicate.
1052         * gdbarch.h, gdbarch.c: Re-generate.
1053         * regcache.c (init_regcache_descr): Use legacy code when either
1054         REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1055
1056 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
1057
1058         * NEWS: Move "set logging" entry into GDB 6.0 section.
1059
1060 2003-07-02  Jim Blandy  <jimb@redhat.com>
1061
1062         * s390-tdep.c (struct frame_extra_info): new member:
1063         'stack_bought_valid'.
1064         (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1065         initialize fextra_info->stack_bought.
1066         (s390_frameless_function_invocation): Don't trust the value of
1067         fextra_info_ptr->stack_bought unless
1068         fextra_info->stack_bought_valid is set.
1069
1070         New S390 prologue analyzer.
1071         * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1072         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1073         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1074         pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1075         compute_x_addr, s390_on_stack, s390_store,
1076         s390_get_signal_frame_info): New functions.
1077         (S390_NUM_SPILL_SLOTS): New macro.
1078         (s390_get_frame_info): Rewritten.
1079         (is_arg_reg): Deleted.
1080
1081         Break out the decoding of S/390 instructions into separate
1082         functions, to make it more legible, and easier to check
1083         against the spec.
1084         * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1085         is_rx, is_rxe): New functions.
1086         (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1087         op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1088         op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1089         op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1090         enums for opcode values.  (Is this an improvement?)
1091
1092 2003-07-02  Andrew Cagney  <cagney@redhat.com>
1093
1094         * i386-tdep.c: Revert change committed as part of trad-frame code
1095         below.
1096
1097 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
1098
1099         * breakpoint.c (insert_catchpoint): Make static.
1100
1101 2003-07-02  Andreas Schwab  <schwab@suse.de>
1102
1103         * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1104         former ia64_push_arguments and ia64_push_return_address, and use
1105         regcache functions instead of read/write_register.
1106         (ia64_gdbarch_init): Set push_dummy_call instead of
1107         deprecated_push_arguments and deprecated_push_return_address.
1108
1109 2003-07-01  Andreas Jaeger  <aj@suse.de>
1110
1111         * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1112         before the call.
1113         Set %rax only to number of SSE registers used.
1114
1115 2003-07-01  Andrew Cagney  <cagney@redhat.com>
1116
1117         * trad-frame.h: Update comments, a -1 .addr is reserved.
1118         (trad_frame_value_p, trad_frame_addr_p): Declare.
1119         (trad_frame_reg_p): Declare.
1120         (trad_frame_set_value): Rename trad_frame_register_value.
1121         (trad_frame_set_unknown): Declare.
1122         * trad-frame.c (trad_frame_realreg_p): New function.
1123         (trad_frame_addr_p, trad_frame_value_p): New function.
1124         (trad_frame_set_unknown): New function.
1125         (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1126         (trad_frame_prev_register): Use trad_frame_realreg_p,
1127         trad_frame_addr_p and trad_frame_value_p.
1128         (trad_frame_set_value): Rename trad_frame_register_value.
1129         * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1130         and trad_frame_set_value.
1131
1132 2003-06-30  Jim Blandy  <jimb@redhat.com>
1133
1134         Patch from IBM (authors unspecified, probably Ulrich Weigand and
1135         Gerhard Tonn) for argument passing on the S/390 and S/390x:
1136         * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1137         for 16 registers, and then 32 more bytes.
1138         (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1139         New macros.
1140         (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1141         Move up in the file, since it's now used by is_simple_arg.
1142         (is_simple_arg): Don't assume registers are four bytes long.
1143         Exclude all double arguments.  Extended floats are not simple
1144         args.
1145         (is_power_of_two): New function.
1146         (pass_by_copy_ref): Call is_power_of_two, and check that the
1147         length fits in a register, rather than listing all the acceptable
1148         sizes.  Extended floats are not passed by reference.
1149         (s390_push_arguments): Don't assume registers are four bytes long.
1150         Reserve an argument register to point to the buffer for structures
1151         returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
1152         S390_STACK_FRAME_OVERHEAD.
1153
1154 2003-06-30  Andreas Schwab  <schwab@suse.de>
1155
1156         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1157         format error message.
1158
1159 2003-06-30  Joel Brobecker  <brobecker@gnat.com>
1160
1161         * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1162
1163 2003-06-30  David Carlton  <carlton@kealia.com>
1164
1165         Band-aid for PR c++/1245.
1166         * Makefile.in (cp-support.o): Depend on complaints_h.
1167         * cp-support.c: Include complaints.h.  Add declaration for
1168         find_last_component.
1169         (cp_find_first_component): Separate code into
1170         cp_find_first_component_aux.
1171         (cp_find_first_component_aux): Call demangled_name_complaint.
1172         (demangled_name_complaint): New.
1173
1174 2003-06-30  Andrew Cagney  <cagney@redhat.com>
1175
1176         * remote.c (remote_write_bytes): Explicitly compute and then use
1177         the payload size.  Update comments to reflect.  Fixes problem of
1178         GDB not sending small packets as found by Fred Fish.
1179
1180 2003-06-30  Andrew Cagney  <cagney@redhat.com>
1181
1182         * remote.c (remote_async_wait): Fix -Wformat problem.
1183
1184 2003-06-29  Andrew Cagney  <cagney@redhat.com>
1185
1186         * remote.c (remote_wait): Call error, and not warning, when the
1187         packet is corrupt.
1188         (remote_async_wait): Ditto.
1189
1190 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
1191
1192         * sparc-tdep.c (sparc_y_regnum): Make external again.
1193
1194 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
1195
1196         * cli/cli-logging.c (pop_output_files): Add void to function
1197         definition.
1198
1199 2003-06-29  Andrew Cagney  <cagney@redhat.com>
1200
1201         * frame.c (frame_register_unwind): Use unsigned char when dumping
1202         the buffer contents.
1203
1204 2003-06-28  Daniel Jacobowitz  <drow@mvista.com>
1205
1206         * cli/cli-logging.c: New file.
1207         * cli-out.c (struct ui_out_data): Add original_stream.
1208         (cli_redirect): New function.
1209         (cli_ui_out_impl): Add cli_redirect.
1210         (cli_out_new): Initialize original_stream.
1211         * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1212         (uo_redirect, ui_out_redirect): New.
1213         * ui-out.h (struct ui_out_impl): Add redirect member.
1214         (redirect_ftype): New.
1215         (ui_out_redirect): Add prototype.
1216         * Makefile.in: Add rules for cli-logging.c.
1217         * NEWS: Mention "set logging".
1218
1219 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
1220
1221         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1222
1223 2003-06-27  Andrew Cagney  <cagney@redhat.com>
1224
1225         * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1226         (m68hc11_gdbarch_init): Do not set call_dummy_address.
1227         * avr-tdep.c (avr_call_dummy_address): Delete function.
1228         (avr_gdbarch_init): Do not set call_dummy_address.
1229
1230 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
1231
1232         * symfile.c (syms_from_objfile): Move variables to inner block.
1233         Move the checks for the non-mainline case a bit earlier to avoid
1234         doing some useless computations.
1235
1236 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
1237
1238         * dwarfread.c (decode_modified_type): Gag new compiler warning.
1239
1240 2003-06-26  Elena Zannoni  <ezannoni@redhat.com>
1241
1242         * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1243         sections.
1244
1245 2003-06-26  Michael Chastain  <mec@shout.net>
1246
1247         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1248         gdb/testsuite/gdb.c++/pr-1210.exp.
1249
1250 2003-06-26  Andrew Cagney  <cagney@redhat.com>
1251
1252         * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1253         altivec_expression.h and altivec_registers.h.
1254
1255 2003-06-26  Andrew Cagney  <cagney@redhat.com>
1256
1257         * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1258         info->mach when MIPS16.  Patch suggested by Fred Fish.
1259
1260 2003-06-26  Andrew Cagney  <cagney@redhat.com>
1261
1262         * utils.c (internal_vproblem): Print the problem to a reason
1263         buffer and then pass to query.  Make the msg variable more local.
1264
1265 2003-06-26  Andrew Cagney  <cagney@redhat.com>
1266
1267         * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
1268         (FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
1269         * gdbarch.h, gdbarch.c: Re-generate.
1270         * frame-base.c (default_frame_args_address): Update.  Use
1271         default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1272         not available.
1273         (default_frame_locals_address): Ditto for
1274         DEPRECATED_FRAME_LOCALS_ADDRESS.
1275         * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1276         (vax_frame_num_args): Update.
1277         (vax_gdbarch_init): Update.
1278         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1279         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1280         * mcore-tdep.c (mcore_gdbarch_init): Update.
1281         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1282         * ia64-tdep.c (ia64_gdbarch_init): Update.
1283         * symtab.h (address_class): Update comments.
1284         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1285         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1286         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1287         * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1288         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1289         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1290         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1291         * alpha-mdebug-tdep.c: Update.
1292         * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1293
1294 2003-06-26  Andreas Jaeger  <aj@suse.de>
1295
1296         * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1297         of SSE registers so that varargs functions work.  Rework handling
1298         of passing arguments on the stack.
1299         (x86_64_store_return_value): Return double and float values in SSE
1300         register.
1301
1302 2003-06-24  Michael Chastain  <mec@shout.net>
1303
1304         * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1305         the "constructor breakpoints ignored" bug.
1306
1307 2003-06-25  David Carlton  <carlton@kealia.com>
1308
1309         * MAINTAINERS: Update e-mail address.
1310
1311 2003-06-24  Jim Blandy  <jimb@redhat.com>
1312
1313         * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1314
1315         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1316         function.
1317         (ppc_linux_init_abi): Register it as the
1318         CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1319
1320         * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1321         (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1322         method.
1323
1324         * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1325         (ppc64_standard_linkage_target): Use it.
1326
1327 2003-06-23  Andrew Cagney  <cagney@redhat.com>
1328
1329         * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1330         for 0 "int0" and 4 "int32" sized registers.
1331         * gdbtypes.c (builtin_type_int0): Define.
1332         (build_gdbtypes): Initialize builtin_type_int0.
1333         * gdbtypes.h (builtin_type_int0): Declare.
1334
1335 2003-06-23  Stephane Carrez  <stcarrez@nerim.fr>
1336
1337         * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1338         as characters are unsigned.
1339
1340 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
1341
1342         PR gdb/1179
1343         * dwarfread.c (struct_type): Skip static fields without crashing.
1344
1345 2003-06-22  Andrew Cagney  <cagney@redhat.com>
1346
1347         GDB 6.0 branch created.
1348         * README: Update.
1349         * PROBLEMS: Update.  Empty.
1350         * NEWS: Update.
1351
1352 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
1353
1354         * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1355         Suggested by Nick Hibma <n_hibma@webweaving.org>.
1356
1357 2003-06-22  Andrew Cagney  <cagney@redhat.com>
1358
1359         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1360         GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
1361         Velikov.
1362
1363 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
1364
1365         * cli/cli-cmds.c (shell_escape): Silence warnings from old
1366         compilers.
1367
1368 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
1369
1370         * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1371         argument of val_print.
1372         * cp-valprint.c (cp_print_value): Don't add the offset parameter
1373         to the address argument of baseclass_offset or target_read_memory.
1374         Do add it to the argument of cp_print_value_fields.
1375
1376 2003-06-21  Andrew Cagney  <cagney@redhat.com>
1377
1378         * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1379         (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1380         instead of 0..NUM_REGS.
1381         (mips_register_reggroup_p): New function.
1382         (mips_pseudo_register_write): New function.
1383         (mips_pseudo_register_read): New function.
1384         (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1385         based on the register's type.
1386         (read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
1387         cooked.
1388         (mips_get_saved_register): Simplify.  Assert that REGNO is a
1389         pseudo / cooked.
1390         (mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
1391         (mips_register_type): Replace mips_register_virtual_type.  Map
1392         NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
1393         when available.
1394         (read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
1395         that the register is cooked / virtual.
1396         (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1397         Only get the extra info when needed.
1398         (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1399         (mips32_heuristic_proc_desc): Fetch the cooked register.
1400         (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1401         (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1402         (mips_print_register): Use gdbarch_register_type, instead of
1403         REGISTER_VIRTUAL_TYPE.
1404         (print_gp_register_row): Use gdbarch_register_type, instead of
1405         REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
1406         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1407         Print the pseudo / cooked registers.
1408         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1409         Print the pseudo / cooked registers.
1410         (mips_xfer_register): Use regcache_cooked_read_part.  Assert that
1411         REG_NUM is pseudo / cooked.
1412         (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1413         (mips_n32n64_xfer_return_value): Ditto.
1414         (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1415         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1416         (mips_register_sim_regno): New function.
1417         (mips_gdbarch_init): Set deprecated_register_byte,
1418         register_group_p, pseudo_register_write, pseudo_register_read,
1419         register_sim_regno, and num_pseudo_regs.  Set register_type,
1420         instead of register_virtual_type.
1421         * Makefile.in (mips-tdep.o): Update dependencies.
1422         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1423         REGISTER_VIRTUAL_TYPE.
1424         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1425         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1426         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1427         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1428         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1429
1430 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
1431
1432         * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1433         * cli/cli-cmds.c: Include "gdb_vfork.h".
1434         (shell_escape): Use vfork.
1435
1436 2003-06-21  Andrew Cagney  <cagney@redhat.com>
1437
1438         * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1439         32 bit floating-point register saves.
1440
1441         * frame.h (deprecated_unwind_get_saved_register): Delete.
1442         * frame.c (deprecated_unwind_get_saved_register): Delete function.
1443         * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1444         and deprecated_get_next_frame_hack instead of
1445         deprecated_unwind_get_saved_register.
1446
1447         * mips-tdep.c (mips_dump_tdep): Do not print
1448         REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1449
1450         * frame.c (get_frame_register): New function.
1451         (frame_unwind_register_signed): New function.
1452         (get_frame_register_signed): New function.
1453         (frame_unwind_register_unsigned): New function.
1454         (get_frame_register_unsigned): New function.
1455         * frame.h: Add comments on naming schema.
1456         (get_frame_register, frame_unwind_register_signed): Declare.
1457         (get_frame_register_signed, get_frame_register_signed): Declare.
1458         (frame_unwind_register_unsigned): Declare.
1459         (get_frame_register_unsigned): Declare.
1460
1461 2003-06-20  Theodore A. Roth  <troth@openavr.org>
1462
1463         * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1464
1465 2003-06-20  Theodore A. Roth  <troth@openavr.org>
1466
1467         * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1468         (avr_read_sp): Ditto.
1469
1470 2003-06-20  Daniel Jacobowitz  <drow@mvista.com>
1471
1472         * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1473         * config/arm/nm-linux.h: Likewise.
1474         * config/arm/tm-linux.h: Likewise.
1475         * config/ia64/nm-linux.h: Likewise.
1476         * config/ia64/tm-ia64.h: Likewise.
1477         * config/s390/tm-linux.h: Likewise.
1478         * config/s390/tm-s390.h: Likewise.
1479         * s390-nat.c: Likewise.
1480         * s390-tdep.c: Likewise.
1481
1482         * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1483         * config/ia64/linux.mt: Likewise.
1484         * config/m68k/linux.mh: Likewise.
1485         * config/mips/linux.mt: Likewise.
1486         * config/powerpc/linux.mh: Likewise.
1487         * config/sh/linux.mt: Likewise.
1488
1489 2003-06-19  Kris Warkentin  <kewarken@qnx.com>
1490
1491         * solib.c (solib_open): Change tests for whether to search
1492         LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
1493         comments.
1494
1495 2003-06-19  Theodore A. Roth  <troth@openavr.org>
1496
1497         * avr-tdep.c (avr_frame_address): Delete function.
1498         (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1499         set_gdbarch_frame_args_address.
1500
1501 2003-06-19  Andrew Cagney  <cagney@redhat.com>
1502
1503         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1504         (REGISTER_CONVERT_FROM_TYPE): Delete.
1505         (mips_register_convert_to_type): Delete declaration.
1506         (mips_register_convert_from_type): Delete declaration.
1507         * linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
1508         kernel/.
1509
1510 2003-06-19  Michael Snyder  <msnyder@redhat.com>
1511
1512         * linux-nat.h: New file.
1513         * linux-nat.c: Include linux-nat.h.
1514         * lin-lwp.c: Include linux-nat.h.
1515         Move struct lwp_info def to linux-nat.h.
1516         * linux-proc.c: Include linux-nat.h.
1517         (linux_make_note_section): Iterate over lwps instead of threads.
1518         (linux_do_thread_registers): Use lwp instead of merged pid.
1519         * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
1520         * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
1521         Add dependency on linux_nat_h.
1522
1523 2003-06-19  Theodore A. Roth  <troth@openavr.org>
1524
1525         * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1526
1527 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
1528
1529         * varobj.c (get_type, get_target_type): Use check_typedef.
1530
1531 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
1532
1533         * breakpoint.c (insert_catchpoint): Call internal_error.
1534
1535 2003-06-19  Theodore A. Roth  <troth@openavr.org>
1536
1537         * avr-tdep.c (avr_push_dummy_code): Delete function.
1538         (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1539
1540 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
1541
1542         * arch-utils.c (default_prepare_to_proceed): Remove.
1543         (generic_prepare_to_proceed): Remove.
1544         * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1545         (generic_prepare_to_proceed): Remove prototype.
1546         * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1547         * gdbarch.c: Regenerate.
1548         * gdbarch.h: Regenerate.
1549         * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1550         * hppah-nat.c (hppa_switched_threads): Remove.
1551         * infrun.c (prepare_to_proceed): New static function, copied from
1552         generic_prepare_to_proceed.  Remove select_it argument.
1553         (proceed): Call prepare_to_proceed.
1554         * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1555         variables.
1556         (ptrace_wait): Don't set the removed variables.
1557         (hppa_switched_threads): Remove.
1558         * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1559         * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1560         (lin_lwp_prepare_to_proceed): Remove prototype.
1561         * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1562         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1563
1564 2003-06-18  Theodore A. Roth  <troth@openavr.org>
1565
1566         * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1567         trad-frame.h.
1568         (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1569         (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1570         (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1571         (AVR_PROLOGUE_*): Enumerate prologue types.
1572         (struct frame_extra_info): Remove.
1573         (struct avr_unwind_cache): Define.
1574         (avr_write_sp): Delete function.
1575         (avr_read_fp): Ditto.
1576         (avr_init_extra_frame_info): Ditto.
1577         (avr_pop_frame): Ditto.
1578         (avr_frame_saved_pc): Ditto.
1579         (avr_saved_pc_after_call): Ditto.
1580         (avr_push_return_address): Ditto.
1581         (avr_frame_chain): Ditto.
1582         (avr_store_struct_return): Ditto.
1583         (avr_push_arguments): Ditto.
1584         (avr_scan_prologue): Update comments. Changed to set up the info for
1585         cache unwinding. Now returns end of prologue PC.
1586         (avr_skip_prologue): Better handling of functions lacking a prologue
1587         by using avr_scan_prologue.
1588         (avr_scan_arg_moves): New function.
1589         (avr_saved_regs_unwinder): Ditto.
1590         (avr_frame_unwind_cache): Ditto.
1591         (avr_unwind_pc): Ditto.
1592         (avr_frame_this_id): Ditto.
1593         (avr_frame_prev_register): Ditto.
1594         (avr_frame_p): Ditto.
1595         (avr_frame_base_address ): Ditto.
1596         (avr_unwind_dummy_id): Ditto.
1597         (avr_push_dummy_code): Ditto.
1598         (push_stack_item): Ditto.
1599         (pop_stack_item): Ditto.
1600         (avr_push_dummy_call): Ditto.
1601         (struct stack_item): Define.
1602         (avr_frame_unwind): Declare structure.
1603         (avr_frame_base): Ditto.
1604         (avr_gdbarch_init): Remove calls to
1605         set_gdbarch_deprecated_init_frame_pc,
1606         set_gdbarch_deprecated_target_read_fp,
1607         set_gdbarch_deprecated_dummy_write_sp,
1608         set_gdbarch_deprecated_fp_regnum,
1609         set_gdbarch_deprecated_push_arguments,
1610         set_gdbarch_deprecated_push_return_address,
1611         set_gdbarch_deprecated_pop_frame,
1612         set_gdbarch_deprecated_store_struct_return,
1613         set_gdbarch_deprecated_frame_init_saved_regs,
1614         set_gdbarch_deprecated_init_extra_frame_info,
1615         set_gdbarch_deprecated_frame_chain,
1616         set_gdbarch_deprecated_frame_saved_pc,
1617         set_gdbarch_deprecated_saved_pc_after_call.
1618         Add calls to set_gdbarch_push_dummy_call,
1619         set_gdbarch_push_dummy_code,
1620         frame_unwind_append_predicate,
1621         frame_base_set_default,
1622         set_gdbarch_unwind_dummy_id,
1623         set_gdbarch_unwind_pc.
1624         Wrap a long line.
1625
1626 2003-06-18  Corinna Vinschen  <vinschen@redhat.com>
1627
1628         * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
1629         registers for H8/300S.
1630         (h8300_print_registers_info): Ditto.
1631         (h8300_gdbarch_init): Accommodate register count for H8/300S.
1632
1633 2003-06-18  Daniel Jacobowitz  <drow@mvista.com>
1634
1635         * config/nm-linux.h (linux_record_stopped_pid): New prototype.
1636         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1637         (lin_lwp_wait): Likewise.  Update comments.
1638         * linux-nat.c (struct simple_pid_list, add_to_pid_list)
1639         (pull_pid_from_list, linux_record_stopped_pid): New.
1640
1641 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
1642
1643         * ada-lang.c (scan_discrim_bound): Name first argument.
1644         (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
1645         declared by ALL_BLOCK_SYMBOLS.
1646
1647 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
1648
1649         * ada-tasks.c (find_function_in_inferior): Don't declare it.
1650         ("regcache.h"): Include it.
1651         * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
1652
1653 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
1654
1655         * NEWS: Mention gdbserver detach change and "disconnect" command.
1656         * infcmd.c (disconnect_command): New function.
1657         (_initialize_infcmd): Add ``disconnect'' command.
1658         * remote.c (remote_async_detach): Delete.
1659         (remote_detach): Merge remote_async_detach.
1660         (remote_disconnect): New.
1661         (init_remote_ops): Set to_disconnect.
1662         (init_remote_cisco_ops): Likewise.
1663         (init_remote_async_ops): Likewise.  Use remote_detach.
1664         * target.c (cleanup_target): Default to_disconnect.
1665         (update_current_target): Inherit to_disconnect.
1666         (target_disconnect, debug_to_disconnect): New functions.
1667         (setup_target_debug): Set to_disconnect.
1668         * target.h (struct target_ops): Add to_disconnect.
1669         (target_disconnect): Add prototype.
1670
1671 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
1672
1673         * breakpoint.c (insert_catchpoint): New function.
1674         (insert_breakpoints): Use catch_exceptions to call
1675         insert_catchpoint.  Disable catchpoints if they fail to insert.
1676
1677 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
1678
1679         * symfile.c (reread_symbols): Clear sym_private.
1680
1681 2003-06-17  Andrew Cagney  <cagney@redhat.com>
1682
1683         * trad-frame.h (struct frame_info): Add opaque declaration.
1684         * remote-fileio.h (struct cmd_list_element): Add opaque
1685         declaration.
1686         * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
1687         comments.
1688
1689 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
1690
1691         * remote.c (remote_prepare_to_store): Replace call to
1692         deprecated_read_register_bytes with multiple regcache_raw_read
1693         calls.
1694
1695 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
1696
1697         * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
1698         (nto_find_and_open_solib): Likewise.
1699         (nto_init_solib_absolute_prefix): Likewise.
1700         (_initialize_nto_tdep): Fix indentation.
1701
1702 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
1703
1704         * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
1705
1706 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
1707
1708         * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
1709
1710 2003-06-17  Jim Blandy  <jimb@redhat.com>
1711
1712         * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
1713
1714 2003-06-16  Theodore A. Roth  <troth@openavr.org>
1715
1716         * avr-tdep.c (avr_extract_return_value): New function.
1717         (avr_gdbarch_init): Set extract_return_value method.
1718
1719 2003-06-16  Andrew Cagney  <cagney@redhat.com>
1720
1721         * frame.h (deprecated_get_next_frame_hack): Declare.
1722         * frame.c (legacy_saved_regs_prev_register): Only require
1723         DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
1724         there are always saved regs.
1725         (deprecated_generic_get_saved_register): Do not require
1726         DEPRECATED_FRAME_INIT_SAVED_REGS.
1727         (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
1728         use frame ID unwind instead.
1729         (deprecated_get_next_frame_hack): New function.
1730
1731 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
1732
1733         * h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
1734         (h8300_push_dummy_call): ...this function.  Some minor optimization.
1735         (h8300_push_return_address): Remove.
1736         (h8300_gdbarch_init): Remove calls to
1737         set_gdbarch_deprecated_dummy_write_sp,
1738         set_gdbarch_deprecated_push_arguments and
1739         set_gdbarch_deprecated_push_return_address.
1740         Add call to set_gdbarch_push_dummy_call.
1741
1742 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
1743
1744         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
1745         (E_PSEUDO_EXR_REGNUM): Ditto.
1746         (h8300_is_argument_spill): Check for instructions moving argument
1747         registers into safe registers.
1748         (h8300_skip_prologue): Check for stm instruction to push registers
1749         used for register variables onto stack.
1750         (gdb_print_insn_h8300): Remove.
1751         (h8300_examine_prologue): Add a comment.
1752         (h8300_register_name): Take pseudo registers into account.
1753         (h8300s_register_name): Ditto.
1754         (h8300sx_register_name): Ditto.
1755         (h8300_print_register): Ditto.
1756         (h8300_print_registers_info): Define "nice" printing order.
1757         (h8300_saved_pc_after_call): Take pseudo registers into account.
1758         (h8300_register_type): Ditto.  Return type used for remote connection
1759         when requesting real CCR or EXR register, return actual type when
1760         requesting pseudo CCR or EXR.
1761         (h8300_pseudo_register_read): New function.
1762         (h8300_pseudo_register_write): Ditto.
1763         (h8300_dbg_reg_to_regnum): Ditto.
1764         (h8300s_dbg_reg_to_regnum): Ditto.
1765         (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
1766         set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
1767         set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
1768         set_gdbarch_print_insn architecture dependent.
1769         Call set_gdbarch_pseudo_register_read and
1770         set_gdbarch_pseudo_register_write.
1771         (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
1772
1773 2003-06-16  Andrew Cagney  <cagney@redhat.com>
1774
1775         * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
1776         * gdbarch.h, gdbarch.c: Re-generate.
1777         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1778         * s390-tdep.c (s390_gdbarch_init): Update.
1779         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1780         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1781         * mips-tdep.c (mips_gdbarch_init): Update.
1782         * mcore-tdep.c (mcore_gdbarch_init): Update.
1783         * cris-tdep.c (cris_gdbarch_init): Update.
1784         * infcall.c (call_function_by_hand): Update.
1785         * ia64-tdep.c (ia64_push_arguments): Update comment.
1786         * frame.c (legacy_get_prev_frame): Do not assume
1787         SAVE_DUMMY_FRAME_TOS_P.
1788         * dummy-frame.c (find_dummy_frame): Update comment.
1789
1790 2003-06-16  Andrew Cagney  <cagney@redhat.com>
1791
1792         * regcache.c (do_cooked_read): Do not use register_valid_p.
1793
1794 2003-06-15  Theodore A. Roth  <troth@openavr.org>
1795
1796         * avr-tdep.c (avr_register_type): Remove a blank line.
1797         (avr_scan_prologue): Correct some comments.
1798
1799 2003-06-15  Theodore A. Roth  <troth@openavr.org>
1800
1801         * avr-tdep.c (avr_scan_prologue): Update comment describing the various
1802         prologue types.
1803         Properly scan prologues generated by gcc with the -mcall-prologues
1804         option.
1805         Add code to scan -mcall-prologues for mega devices.
1806
1807 2003-06-15  Theodore A. Roth  <troth@openavr.org>
1808
1809         * avr-tdep.c (avr_register_byte): Delete function.
1810         (avr_register_raw_size): Delete function.
1811         (avr_register_virtual_size): Delete function.
1812         (avr_register_virtual_type): Delete function.
1813         (avr_register_type): New function.
1814         (avr_address_to_pointer): Remove unused code.
1815         (avr_read_fp): Need to read FP as two separate bytes due to change to
1816         avr_register_type() usage.
1817         (avr_gdbarch_init): Don't set deprecated_register_size.
1818         Don't set deprecated_register_bytes.
1819         Don't set deprecated_register_byte.
1820         Don't set deprecated_register_raw_size.
1821         Don't set deprecated_max_register_raw_size.
1822         Don't set deprecated_register_virtual_size.
1823         Don't set deprecated_max_register_virtual_size.
1824         Don't set deprecated_register_virtual_type.
1825         Set register_type method.
1826
1827 2003-06-15  Daniel Jacobowitz  <drow@mvista.com>
1828
1829         * Makefile.in (linux-nat.o): Add rule.
1830         * linux-nat.c: New file.
1831         * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
1832         (CHILD_INSERT_VFORK_CATCHPOINT): Define.
1833         (CHILD_INSERT_EXEC_CATCHPOINT): Define.
1834         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
1835         * config/arm/linux.mh (NATDEPFILES): Likewise.
1836         * config/i386/linux.mh (NATDEPFILES): Likewise.
1837         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1838         * config/ia64/linux.mh (NATDEPFILES): Likewise.
1839         * config/m68k/linux.mh (NATDEPFILES): Likewise.
1840         * config/mips/linux.mh (NATDEPFILES): Likewise.
1841         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1842         * config/s390/s390.mh (NATDEPFILES): Likewise.
1843         * config/sparc/linux.mh (NATDEPFILES): Likewise.
1844
1845 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
1846
1847         * i387-tdep.c: Reorder includes, fix some whitespace issues and
1848         replace out-of-date comment.
1849
1850 2003-06-15  Andrew Cagney  <cagney@redhat.com>
1851
1852         * rdi-share/host.h (Fail): Change to a varargs function.
1853         * remote-rdi.c (Fail): Update.
1854
1855 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
1856
1857         * i386-tdep.c (i386_next_regnum): Fix bounds checking.
1858         (i386_convert_register_p, i386_register_to_value,
1859         i386_register_from_value): Handle types longer than 8 bytes.
1860
1861 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
1862
1863         * i386-tdep.c (i386_register_to_value, i386_value_to_register):
1864         Move floating-point code to new function in i387-tdep.c.
1865         * i387-tdep.c (i387_register_to_value, i387_value_to_register):
1866         New functions containing code moved here from i386-tdep.c.
1867         * i387-tdep.h: Add opaque declaration for `struct type'.
1868         (i387_register_to_value, i387_value_to_register): New prototypes.
1869         * x86-64-tdep.c (x86_64_convert_register_p): New function.
1870         (x86_64_init_abi): Set convert_register_p, register_to_value and
1871         value_to_register here.
1872
1873 2003-06-14  Andrew Cagney  <cagney@redhat.com>
1874
1875         * mips-tdep.c (mips_register_to_value): Make static.
1876         (mips_value_to_register): Make static.
1877         * i386-tdep.c (i386_fetch_pointer_argument): Make static.
1878         * ia64-tdep.c (ia64_register_raw_size): Make static.
1879         (ia64_register_virtual_size): Make static.
1880         (ia64_register_byte): Make static.
1881         * i387-tdep.c: Include "i387-tdep.h".
1882         (print_387_control_word): Delete function.
1883         (print_387_status_word): Delete function.
1884         (print_387_status_bits): Delete function.
1885         (print_387_control_bits): Delete function.
1886         * Makefile.in (i387-tdep.o): Update dependencies.
1887         * rdi-share/host.h (Fail): Declare.
1888         * remote-rdi.c (Fail): Update to match declaration.
1889
1890 2003-06-14  Andrew Cagney  <cagney@redhat.com>
1891
1892         * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
1893         * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
1894         * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
1895         * config/djgpp/fnchange.lst: Delete "remote-array.c".
1896         * README: Delete reference to remote-array.
1897         * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
1898         (remote-array.o): Delete target.
1899         * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
1900         * remote-array.c: Delete file.
1901
1902 2003-06-14  Andrew Cagney  <cagney@redhat.com>
1903             Mark Kettenis  <kettenis@gnu.org>
1904
1905         * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
1906         (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
1907         parameter with "frame".
1908         * gdbarch.h, gdbarch.c: Re-generate.
1909         * frame.h (put_frame_register): Declare.
1910         * frame.c (put_frame_register): New function.
1911         * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
1912         (legacy_register_to_value): Rewrite, use "frame" to get the
1913         register value.
1914         (legacy_value_to_register): Rewrite, use "frame" to find the
1915         register's location before storing.
1916         * arch-utils.h (legacy_convert_register_p): Update.
1917         (legacy_register_to_value, legacy_value_to_register): Update.
1918         * findvar.c (value_from_register): Rewrite, eliminate use of
1919         REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
1920         "frame" to REGISTER_TO_VALUE.
1921         * valops.c (value_assign): Move the CONVERT_REGISTER code to the
1922         lval_reg_frame_relative + lval_register branch of the switch.  Do
1923         not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
1924         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1925         I386_EDI_REGNUM): New defines.
1926         (i386_next_regnum, i386_convert_register_p,
1927         i386_register_to_value, i386_value_to_register): New functions.
1928         (i386_register_convertible, i386_register_convert_to_virtual,
1929         i386_convert_to_raw): Remove functions.
1930         (i386_gdbarch_init): Set convert_register_p, register_to_value and
1931         value_to_register instead of register_convertible,
1932         register_convert_to_virtual and register_convert_to_raw.
1933         * mips-tdep.c (mips_convert_register_p): New function.
1934         (mips_value_to_register): Replace mips_register_convert_from_type.
1935         (mips_register_to_value): Replace mips_register_convert_to_type.
1936         (mips_gdbarch_init): Set conver_register_p, value_to_register and
1937         register_to_value.
1938         * alpha-tdep.c (alpha_convert_register_p): Update.
1939         (alpha_value_to_register): Update, store the register.
1940         (alpha_register_to_value): Update, fetch the register.
1941
1942 2003-06-14  Theodore A. Roth  <troth@openavr.org>
1943
1944         * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
1945         (avr_gdbarch_init): Remove avr_call_dummy_words variable.
1946         Don't set deprecated_call_dummy_words.
1947         Remove commented out set_gdbarch_believe_pcc_promotion() call.
1948         Don't set remote_translate_xfer_address.
1949         (avr_io_reg_read_command): Remove commented out debug printf.
1950         Wrap a long line.
1951
1952 2003-06-14  Theodore A. Roth  <troth@openavr.org>
1953
1954         * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
1955         causes gdb to seg fault.
1956
1957 2003-06-14  Daniel Jacobowitz  <drow@mvista.com>
1958
1959         * sparc-nat.c (fetch_inferior_registers): Correct
1960         a reference to "registers".
1961
1962 2003-06-14  Jeroen Dekkers  <jeroen@dekkers.cx>
1963
1964         * Makefile.in (exc_request_U_h): Define
1965         (exc_request_S_h): Likewise.
1966         (msg_reply_S_h): Likewise.
1967         (msg_U_h): Likewise.
1968         (notify_S_h): Likewise.
1969         (process_reply_S_h): Likewise.
1970         (gnu-nat.o): Depend on gdb_obstack_h
1971         * gnu-nat.c: Include "gdb_obstack.h".
1972
1973 2003-06-13  Andrew Cagney  <cagney@redhat.com>
1974
1975         * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
1976         * gdbarch.h, gdbarch.c: Re-generate.
1977
1978 2003-06-13  Andrew Cagney  <cagney@redhat.com>
1979
1980         * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
1981         when deprecated REGISTER macros can be deleted.
1982         * gdbarch.h, gdbarch.c: Re-generate.
1983
1984 2003-06-13  Jim Blandy  <jimb@redhat.com>
1985
1986         * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
1987         Linux entry point symbols for _dl_debug_state, too.
1988
1989 2003-06-13  Andrew Cagney  <cagney@redhat.com>
1990
1991         * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
1992         available, do not use the FP register, and always save the TOS.
1993         * dummy-frame.c (dummy_frame_this_id): Do not assert
1994         SAVE_DUMMY_FRAME_TOS.
1995         * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
1996         (i386_gdbarch_init): Do not set save_dummy_frame_tos.
1997         (i386_push_dummy_call): Add 8 to the returned SP.
1998         * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
1999         * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2000         (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2001         * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2002         (x86_64_push_dummy_call): Return "sp + 16".
2003         (x86_64_init_abi): Do not set save_dummy_frame_tos.
2004         * alpha-tdep.c (alpha_gdbarch_init): Do not set
2005         save_dummy_frame_tos.
2006
2007 2003-06-13  Jim Blandy  <jimb@redhat.com>
2008
2009         * frv-tdep.c (frv_use_struct_convention): Delete static
2010         declaration for function deleted in my change of 2003-06-12.
2011
2012 2003-06-13  Theodore A. Roth  <troth@openavr.org>
2013
2014         * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2015         (avr_pointer_to_address): Shift code addrs left 1 bit.
2016         (avr_convert_from_func_ptr_addr): Delete function since operation is
2017         better handled by avr_address_to_pointer and avr_pointer_to_address.
2018         (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2019
2020 2003-06-13  Mark Kettenis  <kettenis@gnu.org>
2021
2022         From Kelley Cook  <kelleycook@wideopenwest.com>:
2023         * configure.host: Accept i[34567]86 variants.
2024         * configure.tgt: Likewise.
2025         * nlm/configure.in: Likewise.
2026         * nlm/configure: Regenerated.
2027
2028 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
2029
2030         * arm-tdep.c (solib-svr4.h): Dont' include it.
2031         (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2032         * arm-linux-tdep.c: ... here.  Make static.
2033         (arm_linux_init_abi): Register it.
2034         (solib-svr4.h): Include it.
2035         * Makefile.in: Update dependencies.
2036         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2037         (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2038
2039 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
2040
2041         * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2042         indicate registers used for return values.
2043         (struct frame_extra_info): Drop args_pointer and locals_pointer.
2044         (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2045         members.
2046         (h8300_init_extra_frame_info): Ditto.
2047         (h8300_frame_locals_address): Removed.
2048         (h8300_frame_args_address): Removed.
2049         (h8300_extract_return_value): Use new regcache structure. Only care
2050         for 16 bit CPUs.
2051         (h8300h_extract_return_value): Same function for 32 bit CPUs.
2052         (h8300_store_return_value): Use new regcache structure. Only care
2053         for 16 bit CPUs.
2054         (h8300h_store_return_value): Same function for 32 bit CPUs.
2055         (h8300_store_struct_return): Removed.
2056         (h8300_extract_struct_value_address): Use new regcache structure.
2057         (h8300h_extract_struct_value_address): Removed.
2058         (h8300_push_dummy_code): New function.
2059         (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2060         Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
2061         set_gdbarch_store_return_value architecture dependent.
2062         Call set_gdbarch_push_dummy_code and
2063         set_gdbarch_extract_struct_value_address.
2064         Remove calls to set_gdbarch_frame_args_address,
2065         set_gdbarch_frame_locals_address,
2066         set_gdbarch_deprecated_store_struct_return,
2067         set_gdbarch_deprecated_extract_return_value,
2068         set_gdbarch_deprecated_extract_struct_value_address,
2069         set_gdbarch_deprecated_call_dummy_words and
2070         set_gdbarch_deprecated_sizeof_call_dummy_words.
2071
2072 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
2073
2074         * h8300-tdep.c (h8300_register_byte): Remove.
2075         (h8300h_register_byte): Remove.
2076         (h8300_register_virtual_type): Remove.  Substitute by...
2077         (h8300_register_type): New function.
2078         (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2079         (h8300h_extract_struct_value_address): Ditto.
2080         (h8300_gdbarch_init): Drop calls to
2081         set_gdbarch_deprecated_register_byte and
2082         set_gdbarch_deprecated_register_virtual_type.
2083         Add call to set_gdbarch_register_type.
2084
2085 2003-06-13  Andrew Cagney  <cagney@redhat.com>
2086
2087         * gdbarch.sh: Update comments on registers.
2088         (deprecated_register_byte): Rename register_byte.
2089         (deprecated_register_raw_size): Rename register_raw_size.
2090         (deprecated_register_virtual_size): Rename register_virtual_size.
2091         (deprecated_register_virtual_type): Rename register_virtual_type.
2092         * gdbarch.h, gdbarch.c: Re-generate.
2093         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2094         * vax-tdep.c (vax_gdbarch_init): Update.
2095         * v850-tdep.c (v850_gdbarch_init): Update.
2096         * sparc-tdep.c (sparc_gdbarch_init): Update.
2097         * sh-tdep.c (sh_gdbarch_init): Update.
2098         * s390-tdep.c (s390_gdbarch_init): Update.
2099         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2100         * ns32k-tdep.c: Update.
2101         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2102         * mips-tdep.c (mips_gdbarch_init): Update.
2103         * mcore-tdep.c (mcore_gdbarch_init): Update.
2104         * m68k-tdep.c (m68k_gdbarch_init): Update.
2105         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2106         * ia64-tdep.c (ia64_gdbarch_init): Update.
2107         * hppa-tdep.c (hppa_gdbarch_init): Update.
2108         * h8300-tdep.c (h8300_gdbarch_init): Update.
2109         * frv-tdep.c (frv_gdbarch_init): Update.
2110         * cris-tdep.c (cris_gdbarch_init): Update.
2111         * avr-tdep.c (avr_gdbarch_init): Update.
2112         * alpha-tdep.c (alpha_gdbarch_init): Update.
2113         * arm-tdep.c (arm_gdbarch_init): Update.
2114
2115 2003-06-13  Andrew Cagney  <cagney@redhat.com>
2116
2117         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2118         mips_o32_use_struct_convention with always_use_struct_convention.
2119
2120 2003-06-12  David Carlton  <carlton@kealia.com>
2121
2122         * cp-namespace.c (cp_set_block_scope): Comment out
2123         processing_has_namespace_info branch.
2124
2125 2003-06-12  Jim Blandy  <jimb@redhat.com>
2126
2127         Recognize and skip 64-bit PowerPC Linux linkage functions.
2128         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2129         insn_pattern, insns_match_pattern, d_field, ds_field): New
2130         functions, macros, and types for working with PPC instructions.
2131         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2132         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2133         ppc64_skip_trampoline_code): New functions, variables, and macros
2134         for recognizing and skipping linkage functions.
2135         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2136         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2137
2138         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2139         register offsets for both the 32- and 64-bit interfaces.
2140
2141         Actually finish the job started by my change of 2003-05-29.
2142         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2143         other #definition of this.
2144         (ppc_linux_skip_trampoline_code): Remove declaration.
2145         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2146         static.
2147         (ppc_linux_init_abi): Register it as the skip_trampoline_code
2148         method for GDBARCH.
2149
2150         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2151         'long' on ppc64-*-linux*.
2152
2153         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2154         isn't #defined, assume the register doesn't exist: act as if
2155         tdep->ppc_mq_regnum were -1.
2156
2157         * configure.host, configure.tgt: Add entries for
2158         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2159         powerpc/linux.mt.
2160         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2161         New files.
2162
2163         * arch-utils.c (always_use_struct_convention): New function.
2164         * arch-utils.h (always_use_struct_convention): New prototype.
2165         * alpha-tdep.c (alpha_use_struct_convention): Delete.
2166         (alpha_gdbarch_init): Register always_use_struct_convention,
2167         instead of alpha_use_struct_convention.
2168         * cris-tdep.c (cris_use_struct_convention): Delete.
2169         (cris_gdbarch_init): Register always_use_struct_convention,
2170         instead of cris_use_struct_convention.
2171         * frv-tdep.c (frv_use_struct_convention): Delete.
2172         (frv_gdbarch_init): Register always_use_struct_convention,
2173         instead of frv_use_struct_convention.
2174         * h8300-tdep.c (h8300_use_struct_convention): Delete.
2175         (h8300_gdbarch_init): Register always_use_struct_convention,
2176         instead of h8300_use_struct_convention.
2177         * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2178         (mips_o32_gdbarch_init): Register always_use_struct_convention,
2179         instead of mips_o32_use_struct_convention.
2180
2181 2003-06-12  Andrew Cagney  <cagney@redhat.com>
2182
2183         * wince.c: Include "mips-tdep.h".
2184         * mips-tdep.h (mips_next_pc): Declare.
2185         * mcore-tdep.c: Make more local functions static.
2186         * Makefile.in (wince.o): Update dependencies.
2187
2188 2003-06-12  David Carlton  <carlton@kealia.com>
2189
2190         * symtab.c (lookup_symbol_aux_minsyms): Replace
2191         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2192         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2193         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2194         SYMBOL_NATURAL_NAME.
2195
2196 2003-06-12  Andreas Schwab  <schwab@suse.de>
2197
2198         * Makefile.in (tuiDisassem.o): Update dependencies.
2199
2200 2003-06-12  David Carlton  <carlton@bactrian.org>
2201
2202         * symtab.h: Delete declaration of make_symbol_overload_list.
2203         Add declaration of lookup_partial_symbol.
2204         * symtab.c (remove_params): Move to cp-support.c.
2205         (overload_list_add_symbol, make_symbol_overload_list)
2206         (sym_return_val_size, sym_return_val_index): Ditto.
2207         (lookup_partial_symbol): Make extern.
2208         * cp-support.h: Add declaration of make_symbol_overload_list.
2209         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2210         symtab.h, and block.h.
2211         (remove_params): Move here from symtab.c.
2212         (overload_list_add_symbol, make_symbol_overload_list)
2213         (sym_return_val_size, sym_return_val_index): Ditto.
2214         * valops.c: Include cp-support.h.
2215         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2216         frame_h, and block_h.
2217         (valops.o): Depend on cp_support_h.
2218
2219 2003-06-12  Corinna Vinschen  <vinschen@redhat.com>
2220
2221         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2222         substitute by NUM_REGS throughout.
2223         (h8300_register_name): Only care for H8/300 and H8/300H registers.
2224         (h8300s_register_name): New function for H8S registers.
2225         (h8300sx_register_name): Ditto for H8SX registers.
2226         (h8300_print_register): Revise register printing, avoid depending
2227         on 32 bit long.
2228         (h8300_register_byte): Only care for H8/300 registers.
2229         (h8300h_register_byte): New function for any other architecture.
2230         (h8300_register_raw_size): Remove.
2231         (h8300_register_virtual_type): Revise to return actually useful
2232         type.
2233         (h8300_extract_struct_value_address): Only care for H8/300 registers.
2234         (h8300h_extract_struct_value_address): New function for any other
2235         architecture.
2236         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
2237         set_gdbarch_register_name, set_gdbarch_register_byte,
2238         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2239         Remove calls to set_gdbarch_deprecated_register_size,
2240         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2241         set_gdbarch_deprecated_max_register_raw_size,
2242         set_gdbarch_register_virtual_size and
2243         set_gdbarch_deprecated_max_register_virtual_size entirely.
2244         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2245         set_gdbarch_long_double_bit.
2246
2247 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
2248
2249         * doublest.c (convert_doublest_to_floatformat): When dealing
2250         with the implied integer bit, only alter mant_bits if we are
2251         processing a full 32 bits of mantissa.
2252
2253 2003-06-11  David Carlton  <carlton@bactrian.org>
2254
2255         * dictionary.h: New.
2256         * dictionary.c: New.
2257         * block.h: Add opaque declaration for struct dictionary.
2258         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2259         'sym' members.
2260         (BLOCK_DICT): New macro.
2261         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2262         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2263         BLOCK_SHOULD_SORT.
2264         (ALL_BLOCK_SYMBOLS): Update definition.
2265         * Makefile.in (SFILES): Add dictionary.c.
2266         (dictionary_h): New.
2267         (COMMON_OBS): Add dictionary.o.
2268         (dictionary.o): New.
2269         (ada-lang.o): Depend on dictionary_h.
2270         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2271         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2272         (mi-cmd-stack.o): Ditto.
2273         (gdbtk-cmds.o): Update dependencies.
2274         (gdbtk-stack.o): Ditto.
2275         * ada-lang.c: Include dictionary.h.
2276         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2277         (fill_in_ada_prototype, debug_print_block): Ditto.
2278         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2279         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
2280         'is_sorted'.
2281         * mdebugread.c: Include dictionary.h.
2282         (struct parse_stack): Delete 'maxsyms' member.
2283         (parse_symbol): Update calls to new_block.  Delete calls to
2284         shrink_block.  Use dictionary methods.
2285         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2286         Update calls to new_symtab.  Don't maintain maxsyms data.
2287         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2288         (add_symbol): Just call dict_add_symbol.
2289         (new_symtab): Delete 'maxsyms' argument.
2290         (new_symtab): Update calls to new_block.
2291         (new_block): Delete 'maxsyms' argument; add 'function' argument.
2292         (shrink_block): Delete function.
2293         (fixup_sigtramp): Update call to new_block.  Add symbol via
2294         dict_add_symbol.
2295         * jv-lang.c: Include dictionary.h.
2296         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2297         appropriately.  Set class_symtab->free_func.  Make sure the
2298         blockvector is big enough to hold two blocks.
2299         (add_class_symtab_symbol): Use dictionary methods.
2300         (free_class_block): New function.
2301         (type_from_class): Replace explicit iteration by
2302         ALL_BLOCK_SYMBOLS.
2303         * symtab.h (struct symtab): Replace 'free_ptr' method by
2304         'free_func'.
2305         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2306         sort_symtab_syms.
2307         * dwarfread.c (psymtab_to_symtab_1): Delete call to
2308         sort_symtab_syms.
2309         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2310         Include dictionary.h.
2311         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2312         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2313         sort_symtab_syms.
2314         * objfiles.c: Include dictionary.h.
2315         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2316         * buildsym.c: Include dictionary.h.
2317         (finish_block): Use dictionary methods.
2318         (end_symtab): Set free_func to NULL, not free_ptr.
2319         * tracepoint.c: Include dictionary.h.
2320         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2321         (scope_info): Ditto.
2322         * stack.c: Include dictionary.h.
2323         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2324         (print_block_frame_labels, print_frame_arg_vars)
2325         (print_frame_args): Ditto.
2326         * symmisc.c (free_symtab_block): Use dictionary methods.
2327         (dump_symtab): Ditto.
2328         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2329         Include dictionary.h.
2330         * symfile.h: Delete declarations of sort_block_syms,
2331         sort_symtab_syms.
2332         * symfile.c (sort_block_syms): Delete.
2333         (sort_symtab_syms): Delete.
2334         * symtab.c: Include dictionary.h.
2335         (lookup_block_symbol): Use dictionary iterators.
2336         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2337         (search_symbols, make_symbol_completion_list): Ditto.
2338         (make_symbol_overload_list): Ditto.
2339         * valops.c (value_of_local): Use dict_empty.
2340         Include dictionary.h.
2341
2342 2003-06-11  J. Brobecker  <brobecker@gnat.com>
2343
2344         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2345
2346 2003-06-11  David Carlton  <carlton@bactrian.org>
2347
2348         * block.h (BLOCK_SHOULD_SORT): Delete.
2349         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2350         blocks.
2351         * ada-lang.c (ada_add_block_symbols): Ditto.
2352         * symfile.c (sort_block_syms): Delete.
2353         (sort_symtab_syms): Ditto.
2354         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2355         declarations.
2356         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2357         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2358         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2359         * dwarfread.c (psymtab_to_symtab_1): Ditto.
2360         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2361         * mdebugread.c (psymtab_to_symtab_1): Ditto.
2362         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2363
2364 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
2365
2366         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2367         bits to 128.
2368
2369 2003-06-11  Andrew Cagney  <cagney@redhat.com>
2370
2371         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2372         REGISTER_CONVERTIBLE.
2373         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2374         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2375         * gdbarch.h, gdbarch.c: Re-generate.
2376         * arch-utils.h (deprecated_register_convertible_not): Rename
2377         generic_register_convertible_not.
2378         * arch-utils.c (deprecated_register_convertible_not): Rename
2379         generic_register_convertible.
2380         (legacy_convert_register_p, legacy_register_to_value): Update.
2381         * sh-tdep.c (sh64_push_arguments): Update.
2382         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2383         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2384         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2385         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2386         * arch-utils.c (legacy_value_to_register): Update.
2387         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2388         (rs6000_register_convert_to_raw): Make parameter "from" const.
2389         * mips-tdep.c (mips_gdbarch_init): Update.
2390         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
2391         * infcmd.c (default_print_registers_info): Update.
2392         * ia64-tdep.c (ia64_gdbarch_init): Update.
2393         (ia64_register_convert_to_raw): Make parameter "from" const.
2394         * i386-tdep.c (i386_gdbarch_init): Update.
2395         (i386_register_convert_to_raw): Update.
2396
2397 2003-06-11  Andrew Cagney  <cagney@redhat.com>
2398
2399         * remote-fileio.c: Include "remote-fileio.h".
2400         * Makefile.in (remote-fileio.o): Update dependencies.
2401         (remote_fileio_h): Fix typo.
2402
2403 2003-06-11  Andrew Cagney  <cagney@redhat.com>
2404
2405         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2406         (xstormy16_save_dummy_frame_tos): Make static.
2407         (_initialize_xstormy16_tdep): Add declaration.
2408         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2409         * v850-tdep.c: Make local functions static.
2410         (_initialize_v850_tdep): Add declaration.
2411         * sparc-tdep.c: Make local functions static.
2412         (_initialize_sparc_tdep): Add declaration.
2413         * sh-tdep.c: Make local functions static.
2414         (_initialize_sh_tdep): Add declaration.
2415         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2416         * s390-tdep.c: Make local functions static.
2417         (_initialize_s390_tdep): Add declaration.
2418         * dbxread.c (find_stab_function_addr): Make static.
2419         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2420         * ocd.c (_initialize_remote_ocd): Add declaration.
2421         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2422         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2423         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2424         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2425         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2426         * remote-array.c (_initialize_array): Add declaration.
2427         (_initialize_remote_monitors): Add declaration.
2428         * remote-mips.c: Make local functions static.
2429         (_initialize_remote_mips): Add declaration.
2430         * mcore-tdep.c: Make all local functions static.
2431         (_initialize_mcore_tdep): Add declaration.
2432         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2433         * abug-rom.c (_initialize_abug_rom): Add declaration.
2434         * rom68k-rom.c (_initialize_rom68k): Add declaration.
2435         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2436         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2437         * remote-est.c (_initialize_est): Add declaration.
2438         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2439         (m68hc11_call_dummy_address): Make static.
2440         * ia64-tdep.c: Make local functions static.
2441         (_initialize_ia64_tdep): Add declaration.
2442         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2443         * monitor.c (monitor_wait_filter): Make static.
2444         (_initialize_remote_monitors): Add declaration.
2445         * remote-hms.c (_initialize_remote_hms): Add declaration.
2446         * remote-e7000.c (fetch_regs_from_dump): Make static.
2447         (expect_n): Make static.
2448         (_initialize_remote_e7000): Add declaration.
2449         * ser-e7kpc.c: Always include "defs.h".
2450         (_initialize_ser_e7000pc): Add declaration.
2451         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2452         * cris-tdep.c: Make all but one function static.
2453         (_initialize_cris_tdep): Add declaration.
2454         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2455         * solib.c (update_solib_list): Make static.
2456         (_initialize_solib): Add declaration.
2457         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2458         (_initialize_avr_tdep): Add declaration.
2459         * remote-rdi.c (voiddummy): Make static.
2460         (_initialize_remote_rdi): Add declaration.
2461         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2462         * remote-rdp.c (send_rdp): Make static.
2463         (_initialize_remote_rdp): Add declaration.
2464         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2465
2466 2003-06-11  Corinna Vinschen  <vinschen@redhat.com>
2467
2468         * remote-fileio.c: Make ari happy.
2469
2470 2003-06-10  J. Brobecker  <brobecker@gnat.com>
2471
2472         * rs6000-nat.c (child_xfer_memory): Compute the right address when
2473         fetching the trailing bytes of the buffer we are about to write.
2474
2475 2003-06-10  Andrew Cagney  <cagney@redhat.com>
2476
2477         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2478         * Makefile.in (remote-fileio.o): Update dependencies.
2479         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
2480         include <setjmp.h>, or <sys/types.h> conditional on USG.
2481         (remote_fio_jmp_buf): Delete global variable.
2482
2483 2003-06-10  Corinna Vinschen  <vinschen@redhat.com>
2484             Martin M. Hunt  <hunt@redhat.com>
2485
2486         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2487         (SFILES): Add remote-fileio.c.
2488         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
2489         dependencies for building remote.o.
2490         * remote-fileio.c: New file implementing the remote File-I/O protocol.
2491         * remote-fileio.h: New header file defining remote File-I/O interface.
2492         * remote.c (remote_write_bytes, remote_read_bytes): Remove
2493         static storage class.
2494         (remote_wait, remote_async_wait): Call remote_fileio_request() on
2495         'F' packet.
2496         (_initialize_remote): Call initialize_remote_fileio().
2497         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
2498         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2499         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2500         (captured_main): Initialize new ui_files.
2501         * ui-file.c: Add read and fgets input functions.
2502         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2503         (null_file_read): New function.
2504         (ui_file_read): New function.
2505         (set_ui_file_read): New function.
2506         (stdio_file_read): New function.
2507         * ui-file.h: New type ui_file_read_ftype.
2508         (set_ui_file_read): Declare.
2509         (ui_file_read): Declare.
2510
2511 2003-06-09  Andrew Cagney  <cagney@redhat.com>
2512
2513         * frame.h (deprecated_unwind_get_saved_register): Rename
2514         generic_unwind_get_saved_register, update comments.
2515         * mips-tdep.c (mips_get_saved_register): Update.
2516         * frame.c (deprecated_unwind_get_saved_register): Update.
2517
2518 2003-06-09  Andrew Cagney  <cagney@redhat.com>
2519
2520         * vax-tdep.c (vax_frame_locals_address): Delete function.
2521         (vax_gdbarch_init): Do not set frame_locals_address.
2522         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2523         (m68hc11_gdbarch_init): Do not set frame_locals_address.
2524         * s390-tdep.c (s390_frame_args_address): Delete function.
2525         (s390_gdbarch_init): Do not set frame_args_address or
2526         frame_locals_address.
2527         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2528         (ns32k_gdbarch_init): Do not set frame_locals_address.
2529         * hppa-tdep.c (hppa_frame_args_address): Delete function.
2530         (hppa_frame_locals_address): Delete function.
2531         (hppa_gdbarch_init): Do not set frame_args_address, or
2532         frame_locals_address.
2533         * arm-tdep.c (arm_frame_args_address): Delete.
2534         (arm_frame_locals_address): Delete.
2535         (arm_gdbarch_init): Do not set frame_args_address, or
2536         frame_locals_address.
2537
2538 2003-06-09  Andrew Cagney  <cagney@redhat.com>
2539
2540         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2541         * gdbarch.h, gdbarch.c: Re-generate.
2542         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2543         * arch-utils.c (frame_num_args_unknown): Delete function.
2544         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2545         (frame_info): Use FRAME_NUM_ARGS_P.
2546         * arm-tdep.c (arm_frame_num_args): Delete function.
2547         (arm_gdbarch_init): Do not set frame_num_args.
2548         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2549         * hppa-tdep.c (hppa_frame_num_args): Delete function.
2550         (hppa_gdbarch_init): Do not set frame_num_args.
2551         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2552         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2553         frame_num_args to default frame_num_args_unknown.
2554         * v850-tdep.c (v850_gdbarch_init): Ditto.
2555         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2556         * sh-tdep.c (sh_gdbarch_init): Ditto.
2557         * s390-tdep.c (s390_gdbarch_init): Ditto.
2558         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2559         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2560         * mips-tdep.c (mips_gdbarch_init): Ditto.
2561         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2562         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2563         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2564         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2565         * i386-tdep.c (i386_gdbarch_init): Ditto.
2566         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2567         * frv-tdep.c (frv_gdbarch_init): Ditto.
2568         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2569         * cris-tdep.c (cris_gdbarch_init): Ditto.
2570         * avr-tdep.c (avr_gdbarch_init): Ditto.
2571         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2572
2573 2003-06-09  Andrew Cagney  <cagney@redhat.com>
2574
2575         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2576         (print_frame_args): Moved to "stack.c".
2577         * stack.c: Include "gdb_assert.h".
2578         (print_frame_nameless_args): Moved from "printcmd.c", made static.
2579         (print_frame_args): Moved from "printcmd.c".
2580         * frame.h (print_frame_args): Delete declaration.
2581         * Makefile.in (stack.o): Update dependencies.
2582
2583 2003-06-08  Andrew Cagney  <cagney@redhat.com>
2584
2585         * frame.c (get_prev_frame): Remove reference to
2586         frame_args_address_correct in comments.
2587         * frame-base.c (default_frame_args_address): Delete code
2588         conditional on FRAME_ARGS_ADDRESS_CORRECT.
2589         * vax-tdep.c (vax_frame_args_address_correct): Delete.
2590         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2591         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2592         (vax_frame_args_address_correct): Delete declaration.
2593
2594 2003-06-08  Andrew Cagney  <cagney@redhat.com>
2595
2596         * gdbarch.sh (UNWIND_SP): Add.
2597         * gdbarch.h, gdbarch.c: Re-generate.
2598         * frame.c (frame_sp_unwind): New function.
2599         (get_frame_sp): New function.
2600         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2601         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2602         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2603         value.
2604         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2605         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2606
2607 2003-06-08  Andrew Cagney  <cagney@redhat.com>
2608
2609         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
2610         REMOTE_BREAKPOINT.
2611         * remote.c: Update.
2612         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
2613         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
2614         * config/m68k/tm-sun3.h: Update.
2615         * config/m68k/tm-m68klynx.h: Update.
2616         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
2617
2618         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
2619         trad_frame".  Update comments.
2620         * d10v-tdep.c (struct d10v_unwind_cache): Update.
2621         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
2622         (trad_frame_register_value, trad_frame_prev_register): Update.
2623
2624 2003-06-08  Andrew Cagney  <cagney@redhat.com>
2625
2626         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
2627         from GCC's acinclude.m4.
2628         * configure.in: Check for getopt's delcaration.
2629         * aclocal.m4, config.in, configure: Re-generate.
2630         * main.c (error_init): Delete declaration.
2631         * defs.h (error_init): Declare.
2632         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
2633         (rs6000_convert_from_func_ptr_addr): Make static.
2634         (_initialize_rs6000_tdep): Add declaration.
2635         * cli/cli-cmds.c (dont_repeat): Delete declaration.
2636         (show_commands, set_verbose, show_history): Delete declaration.
2637         * top.h (set_verbose): Add declaration.
2638         (show_history, set_history, show_commands): Add declaration.
2639         (do_restore_instream_cleanup): Add declaration.
2640         * objc-lang.c (specialcmp): Make static.
2641         (print_object_command): Make static.
2642         (find_objc_msgsend): Make static.
2643         (find_objc_msgcall_submethod_helper): Make static.
2644         (find_objc_msgcall_submethod): Make static.
2645         (_initialize_objc_language): Add declaration.
2646         (find_implementation_from_class): Make static.
2647         (find_implementation): Make static.
2648         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
2649         * objc-lang.h (lookup_struct_typedef): Add declaration.
2650         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2651         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
2652         (do_restore_user_call_depth): Make static.
2653         (do_restore_instream_cleanup): Delete declaration.
2654         (dont_repeat): Delete declaration.
2655         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
2656         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
2657         * reggroups.c (_initialize_reggroup): Add declaration.
2658         * cp-support.c (_initialize_cp_support): Add declaration.
2659         * cp-abi.c (_initialize_cp_abi): Add declaration.
2660         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
2661         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
2662         (_initialize_gnu_v3_abi): Add declaration.
2663         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
2664         (_initialize_gnu_v2_abi): Add declaration.
2665         * frame-base.c (_initialize_frame_base): Add declaration.
2666         * doublest.c (floatformat_from_length): Make static.
2667         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
2668         * frame.c (create_sentinel_frame): Make static.
2669         (_initialize_frame): Add declaration.
2670         * top.c (do_catch_errors): Make static.
2671         (gdb_rl_operate_and_get_next_completion): Make static.
2672         * typeprint.c: Include "typeprint.h".
2673         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
2674         (sentinel_frame_this_id): Make static.
2675         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
2676         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
2677         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
2678         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
2679         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
2680         * maint.c (maintenance_print_architecture): Make static.
2681         * signals/signals.c (_initialize_signals): Add declaration.
2682         * std-regs.c (_initialize_frame_reg): Add declaration.
2683         * jv-exp.y (push_variable): ISO C definition.
2684         (push_qualified_expression_name): Ditto.
2685         * memattr.c (_initialize_mem): Add declaration.
2686         * remote.c (remote_check_watch_resources): Make static.
2687         (remote_stopped_by_watchpoint): Make static.
2688         (remote_stopped_data_address): Make static.
2689         * d10v-tdep.c (nr_dmap_regs): Make static.
2690         (a0_regnum): Make static.
2691         (d10v_frame_unwind_cache): Make static.
2692         (d10v_frame_p): Make static.
2693         * osabi.c (show_osabi): Make static.
2694         (_initialize_gdb_osabi): Add extern declaration.
2695         * gdbtypes.c (make_qualified_type): Make static.
2696         (safe_parse_type): Make static.
2697         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
2698         * macrotab.c (macro_bcache_free): Make static.
2699         * interps.c (interp_set_quiet): Make static.
2700         (interpreter_exec_cmd): Make static.
2701         * stack.h (select_frame_command): New file.
2702         * stack.c: Include "stack.h".
2703         (select_frame_command_wrapper): Delete function.
2704         (select_frame_command): Make global.
2705         * infcall.c: Include "infcall.h".
2706         * linespec.c: Include "linespec.h".
2707         * symfile.c (sections_overlap): Make static.
2708         * cp-support.h (cp_initialize_namespace): ISO C declaration.
2709         * charset.c (_initialize_charset): Add missing prototype.
2710         * regcache.c (init_legacy_regcache_descr): Make static.
2711         (do_regcache_xfree): Make static.
2712         (regcache_xfer_part): Make static.
2713         (_initialize_regcache): Add missing prototype.
2714         * breakpoint.c (parse_breakpoint_sals): Make static.
2715         (breakpoint_sals_to_pc): Make static.
2716         * interps.h (clear_interpreter_hooks): ISO C declaration.
2717         * Makefile.in (stack_h): Define.
2718         (stack.o, typeprint.o, mi-main.o): Update dependencies.
2719         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
2720
2721 2003-06-08  Andrew Cagney  <cagney@redhat.com>
2722
2723         * Makefile.in (d10v-tdep.o): Update dependencies.
2724         (SFILES): Add trad-frame.c.
2725         (trad_frame_h): Define.
2726         (COMMON_OBS): Add trad-frame.o.
2727         (trad-frame.o): Specify dependencies.
2728         * d10v-tdep.c: Include "trad-frame.h".
2729         (saved_regs_unwinder): Delete function.
2730         (d10v_frame_prev_register): Use trad_frame_prev_register.
2731         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
2732         trad_frame", delete "regs" and "prev_sp".
2733         (prologue_find_regs): Use trad-frame.
2734         * trad-frame.h, trad-frame.c: New files.
2735
2736 2003-06-08  Mark Kettenis  <kettenis@gnu.org>
2737
2738         * dwarf2cfi.c, dwarf2cfi.h: Remove.
2739
2740 2003-06-07  Adam Fedor  <fedor@gnu.org>
2741
2742         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
2743         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
2744         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
2745         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
2746         resolve_msgsend_super, resolve_msgsend_super_stret):
2747         Use it.
2748
2749 2003-06-07  Andrew Cagney  <cagney@redhat.com>
2750
2751         * symfile.h: Re-indent, clean up comments.
2752
2753 2003-06-07  Andrew Cagney  <cagney@redhat.com>
2754
2755         * inferior.h (deprecated_write_sp): Replace
2756         generic_target_write_sp.
2757         * regcache.c (deprecated_write_sp): Replace
2758         generic_target_write_sp.
2759         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2760         * vax-tdep.c (vax_gdbarch_init): Update.
2761         * v850-tdep.c (v850_gdbarch_init): Update.
2762         * sparc-tdep.c (sparc_gdbarch_init): Update.
2763         * sh-tdep.c (sh_gdbarch_init): Update.
2764         * s390-tdep.c (s390_gdbarch_init): Update.
2765         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2766         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2767         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2768         * mcore-tdep.c (mcore_gdbarch_init): Update.
2769         * m68k-tdep.c (m68k_gdbarch_init): Update.
2770         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2771         * ia64-tdep.c (ia64_gdbarch_init): Update.
2772         * h8300-tdep.c (h8300_gdbarch_init): Update.
2773         * frv-tdep.c (frv_gdbarch_init): Update.
2774         * cris-tdep.c (cris_gdbarch_init): Update.
2775         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2776
2777 2003-06-07  Andrew Cagney  <cagney@redhat.com>
2778
2779         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
2780         Assert that PC_REGNUM is valid.
2781         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
2782
2783 2003-06-07  Andrew Cagney  <cagney@redhat.com>
2784
2785         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
2786         * gdbarch.h, gdbarch.c: Regenerate.
2787         * mn10300-tdep.c: Include "gdb_assert.h".
2788         (mn10300_read_fp): New function.
2789         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
2790         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
2791         * ia64-tdep.c: Include "gdb_assert.h".
2792         (ia64_read_fp): New function.
2793         (ia64_gdbarch_init): Set deprecated_target_read_fp to
2794         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
2795         * regcache.c (generic_target_read_sp): Delete function.
2796         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
2797         * inferior.h (generic_target_read_sp): Delete declaration.
2798         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
2799         generic_target_read_sp.
2800         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2801         * sparc-tdep.c (sparc_gdbarch_init): Ditto
2802         * sh-tdep.c (sh_gdbarch_init): Ditto.
2803         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2804         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
2805
2806 2003-06-07  Andrew Cagney  <cagney@redhat.com>
2807
2808         * gdbarch.sh: Comment each field of startup_gdbarch.
2809         * gdbarch.h, gdbarch.c: Re-generate.
2810
2811 2003-06-07  Andrew Cagney  <cagney@redhat.com>
2812
2813         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
2814         * gdbarch.h, gdbarch.c: Re-generate.
2815         * regcache.c: Update comments on read_pc et.al.
2816         (generic_target_read_pc): Delete function.
2817         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
2818         * inferior.h (generic_target_read_pc): Delete declaration.
2819         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
2820         generic_target_read_pc.
2821         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2822         * sh-tdep.c (sh_gdbarch_init): Ditto.
2823         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2824         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2825
2826 2003-06-07  Andrew Cagney  <cagney@redhat.com>
2827
2828         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
2829         "index" with "special_local_sect".  Use strcmp instead of STREQ.
2830         Append period to coments.
2831
2832 2003-06-06  Mark Mitchell  <mark@codesourcery.com>
2833
2834         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
2835         (elfstab_offset_sections): Likewise.
2836         * gdb-stabs.h (stab_section_info): Likewise.
2837         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
2838         * objfiles.c (objfile_relocate): Likewise.
2839         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
2840         * remote.c (get_offsets): Likewise.
2841         (remote_cisco_objfile_relocate): Likewise.
2842         * somread.c (som_symfile_offsets): Likewise.
2843         * symfile.c (alloc_section_addr_info): New function.
2844         (build_section_addr_info_from_section_tab): Use it.
2845         (free_section_addr_info): Adjust.
2846         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
2847         (syms_from_objfile): Allocate local_addr dynamically.
2848         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
2849         dynamically.
2850         (add_symbol_file_command): Allocate sect_opts dynamically.
2851         (reread_symbols): Avoid use of SECT_OFF_MAX.
2852         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
2853         (alloc_section_addr_info): Declare it.
2854         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
2855         * win32-nat.c (solib_symbols_add): Allocate section_addrs
2856         dynamically.
2857         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
2858
2859 2003-06-06  Andrew Cagney  <cagney@redhat.com>
2860
2861         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
2862         (d10v_frame_unwind_cache): Do not set "return_pc".
2863
2864 2003-06-06  Michael Snyder  <msnyder@redhat.com>
2865
2866         * h8300-tdep.c: Make tidy (long lines).
2867
2868 2003-06-06  Michal Ludvig  <mludvig@suse.cz>
2869
2870         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
2871         to regcache_collect().
2872
2873 2003-06-05  J. Brobecker  <brobecker@gnat.com>
2874
2875         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
2876         pc_in_sigtramp multiarch method.
2877         (hppa_hpux_som_init_abi): Use it.
2878         (hppa_hpux_elf_init_abi): Likewise.
2879         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
2880         macro has been multiarched.
2881         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
2882         macro here, as hppa64 isn't multiarched yet.
2883
2884 2003-06-05  Andrew Cagney  <cagney@redhat.com>
2885
2886         * Makefile.in (value_h): Add $(frame_h).
2887         * value.h: Include "frame.h".
2888         (struct value): Replace "frame_addr" with "frame_id".
2889         (VALUE_FRAME_ID): Replace VALUE_FRAME.
2890         * values.c (allocate_value): Use VALUE_FRAME_ID.
2891         (value_copy): Use VALUE_FRAME_ID.
2892         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
2893         * valops.c (value_assign): Update.  Use frame_find_by_id.
2894
2895 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
2896
2897         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
2898         in each pass.
2899
2900 2003-06-05  Jeff Johnston  <jjohnstn@redhat.com>
2901
2902         * thread-db.c (check_event): For create/death event breakpoints,
2903         loop through all messages to ensure that we read the message
2904         corresponding to the breakpoint we are at.
2905
2906 2003-06-04  Michael Snyder  <msnyder@redhat.com>
2907
2908         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
2909
2910 2003-06-04  Mark Kettenis  <kettenis@gnu.org>
2911
2912         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
2913         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
2914         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
2915         when handling .eh_frame sections.
2916
2917 2003-06-04  J. Brobecker  <brobecker@gnat.com>
2918
2919         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
2920         prepare_to_proceed procedure instead of the hppa-specific one.
2921         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
2922
2923 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
2924
2925         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
2926         * config.in: Regenerated.
2927         * configure.in: Add test for syscall function and check for
2928         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
2929         * configure: Regenerated.
2930         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
2931         <sys/syscall.h>.
2932         (kill_lwp): New function that uses tkill syscall or
2933         uses kill, depending on whether threading model is nptl or not.
2934         All callers of kill() changed to use kill_lwp().
2935         (lin_lwp_wait): Make special check when WIFEXITED occurs to
2936         see if all threads have already exited in the nptl model.
2937         (stop_and_resume_callback): New callback function used by the
2938         lin_lwp_wait thread exit handling code.
2939         (stop_wait_callback): Check for threads already having exited and
2940         delete such threads fromt the lwp list when discovered.
2941         (stop_callback): Don't assert retcode of kill call.
2942
2943         Roland McGrath  <roland@redhat.com>
2944         * i386-linux-nat.c (ps_get_thread_area): New function needed by
2945         nptl libthread_db.
2946
2947 2003-06-03  Richard Henderson  <rth@redhat.com>
2948
2949         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
2950         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
2951         (alpha_sigtramp_frame_prev_register): Likewise.
2952         (alpha_heuristic_frame_prev_register): Likewise.
2953         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
2954
2955         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
2956         alpha-specific register id names.
2957         (alpha_mdebug_frame_unwind_cache): Likewise.
2958         (alpha_mdebug_frame_prev_register): Likewise.
2959
2960 2003-06-03  Richard Henderson  <rth@redhat.com>
2961
2962         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
2963         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
2964         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
2965         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
2966         unwind routines.
2967         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2968         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2969         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2970
2971         * alpha-linux-tdep.c: Remove unnecessary includes.
2972         * Makefile.in (alpha-linux-tdep.o): Update.
2973
2974 2003-06-03  Richard Henderson  <rth@redhat.com>
2975
2976         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
2977         (alphabsd_fill_fpreg): Likewise.
2978
2979 2003-06-03  J. Brobecker  <brobecker@gnat.com>
2980
2981         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
2982         references to struct frame_info fields by calls to the equivalent
2983         accessors. Necessary now that frame_info is opaque.
2984
2985 2003-06-03  J. Brobecker  <brobecker@gnat.com>
2986
2987         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
2988         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
2989         structure, field no longer exists.
2990
2991 2003-06-03  J. Brobecker  <brobecker@gnat.com>
2992
2993         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2994         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
2995
2996 2003-06-03  J. Brobecker  <brobecker@gnat.com>
2997
2998         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
2999         references to struct frame_info fields by calls to the equivalent
3000         accessors. Necessary now that frame_info is opaque.
3001
3002 2003-06-03  J. Brobecker  <brobecker@gnat.com>
3003
3004         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3005         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3006         structure, field no longer exists.
3007
3008 2003-06-03  Theodore A. Roth  <troth@openavr.org>
3009
3010         * remote.c (init_remote_state): Compute sizeof_g_packet by
3011         accumulation of the size of all registers instead of blindly using
3012         DEPRECATED_REGISTER_BYTES.
3013
3014 2003-06-03  Michael Snyder  <msnyder@redhat.com>
3015
3016         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3017         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3018         for h8300sx.
3019
3020 2003-06-03  J. Brobecker  <brobecker@gnat.com>
3021
3022         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3023         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3024
3025 2003-06-03  Andrew Cagney  <cagney@redhat.com>
3026
3027         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3028         (sparc_convert_to_raw): Delete function.
3029         (sparc_gdbarch_init): Do not set register_convert_to_raw or
3030         register_convert_to_virtual.
3031
3032 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
3033
3034         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3035         layer if not dealing with a statically-linked threaded program.
3036
3037 2003-06-03  Kris Warkentin  <kewarken@qnx.com>
3038
3039         * solib.c (solib_open): Update comment to reflect actual search order.
3040
3041 2003-06-03  Andrew Cagney  <cagney@redhat.com>
3042
3043         * frame.c (get_frame_memory_signed): New function.
3044         (get_frame_memory, get_frame_memory_unsigned): New function.
3045         (get_frame_arch): New function.
3046         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3047         (get_frame_memory, get_frame_unsigned_memory): Declare.
3048         * d10v-tdep.c (d10v_frame_unwind_cache): Use
3049         get_frame_memory_unsigned and get_frame_arch.
3050         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3051
3052 2003-06-03  Raoul Gough  <RaoulGough@yahoo.co.uk>
3053
3054         * MAINTAINERS (write after approval): Add myself.
3055
3056 2003-06-03  Jim Blandy  <jimb@redhat.com>
3057
3058         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3059         elements of gregset_t are 64 bits each, but access registers
3060         are still 32 bits, so they're packed two per gregset_t
3061         element.  Unpack/pack them properly.
3062
3063 2003-06-02  David Carlton  <carlton@bactrian.org>
3064
3065         * linespec.c (find_methods): Break out code into
3066         add_matching_methods and add_constructors.
3067         (add_matching_methods): New.
3068         (add_constructors): Ditto.
3069
3070 2003-06-02  Andrew Cagney  <cagney@redhat.com>
3071
3072         * sparc-tdep.c (sparc_print_registers): Delete call to
3073         REGISTER_CONVERTIBLE.
3074         (sparc_gdbarch_init): Do not set register_convertible.
3075         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3076         * frv-tdep.c (frv_gdbarch_init): Ditto.
3077         * cris-tdep.c (cris_gdbarch_init): Ditto.
3078
3079 2003-06-02  Elena Zannoni  <ezannoni@redhat.com>
3080
3081         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3082         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3083         (syms_from_objfile): Ditto.
3084
3085 2003-06-03  Andreas Schwab  <schwab@suse.de>
3086
3087         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3088         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3089
3090 2003-06-02  Richard Henderson  <rth@redhat.com>
3091
3092         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3093         a member of all_reggroup.
3094
3095 2003-06-02  Richard Henderson  <rth@redhat.com>
3096
3097         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3098         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3099         (alpha_lds, alpha_sts): New.
3100         (alpha_convert_register_p): Change from _register_convertible.
3101         (alpha_register_to_value): Change from _convert_to_virtual;
3102         restructure and fail for type sizes other than 4 or 8.
3103         (alpha_value_to_register): Similarly.
3104         (alpha_extract_return_value): Use alpha_sts.
3105         (alpha_store_return_value): Use alpha_lds.
3106         (alpha_gdbarch_init): Update hooks.
3107
3108 2003-06-02  Richard Henderson  <rth@redhat.com>
3109
3110         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3111         regnum identifiers.
3112         (alpha_sigtramp_register_address): Likewise.
3113
3114 2003-06-02  Richard Henderson  <rth@redhat.com>
3115
3116         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3117         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3118         * alpha-tdep.h: Declare them.
3119
3120         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3121         Remove zerobuf.  Don't error on UNIQUE.
3122         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3123         (ALPHA_REGSET_UNIQUE): Provide default.
3124         (supply_gregset): Use alpha_supply_int_regs.
3125         (fill_gregset): Use alpha_fill_int_regs.
3126         (supply_fpregset): Use alpha_supply_fp_regs.
3127         (fill_fpregset): Use alpha_fill_fp_regs.
3128         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3129         (alphabsd_supply_reg): Use alpha_supply_int_regs.
3130         (alphabsd_fill_reg): Use alpha_fill_int_regs.
3131         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3132         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3133         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3134
3135 2003-06-02  Richard Henderson  <rth@redhat.com>
3136
3137         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3138
3139         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3140         (alpha_store_return_value): Likewise.
3141
3142 2003-06-02  David Carlton  <carlton@math.stanford.edu>
3143
3144         * block.c (contained_in): Add 'const' to arguments.
3145         (block_function): Ditto.
3146         * block.h: Update declarations for block_function and
3147         contained_in.
3148
3149 2003-06-02  David Carlton  <carlton@math.stanford.edu>
3150
3151         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3152         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3153         * p-valprint.c (pascal_val_print): Ditto.
3154         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3155
3156 2003-06-02  Richard Henderson  <rth@redhat.com>
3157
3158         * alpha-tdep.c (alpha_push_dummy_call): Use
3159         builtin_type_ieee_double_little instead of builtin_type_double.
3160
3161         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3162         sign-extension of 32-bit values.
3163         (alpha_store_return_value): Similarly.
3164
3165         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3166         (alpha_extract_return_value): Likewise.
3167         (alpha_store_return_value): Likewise.
3168
3169         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3170         (alpha_store_return_value): Error on IEEE Quad floats.
3171
3172         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3173         (alpha_extract_struct_value_address): Likewise.
3174         (alpha_store_return_value): Likewise.
3175         (alpha_store_struct_return): Remove.
3176         (alpha_gdbarch_init): Update hook registration to match.
3177
3178         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3179         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3180         macros where appropriate.
3181         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
3182         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3183
3184         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3185         for SP, GP; void_func_ptr for PC; non-language-specific types
3186         for all others.
3187         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3188
3189 2003-06-02  Richard Henderson  <rth@redhat.com>
3190
3191         * top.h (lim_at_start): Declare.
3192         * main.c (captured_main): Set it.
3193         * top.c (lim_at_start): Define.
3194         (command_loop): Use it instead of &environ.
3195         * event-top.c (command_handler): Likewise.
3196
3197 2003-06-01  Jason Thorpe  <thorpej@wasabisystems.com>
3198
3199         * mipsnbsd-tdep.c: Update copyright years.
3200         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3201
3202 2003-06-01  Richard Henderson  <rth@redhat.com>
3203
3204         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3205         (alpha-linux-tdep.o): Update dependencies.
3206         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3207         * alpha-mdebug-tdep.c: Remove unneeded includes.
3208
3209 2003-06-01  Richard Henderson  <rth@redhat.com>
3210
3211         * alpha-tdep.c (alpha_register_reggroup_p): New.
3212         (alpha_gdbarch_init): Register it.
3213
3214 2003-06-02  Andrew Cagney  <cagney@redhat.com>
3215
3216         * dwarfread.c: Eliminate "register"
3217         (decode_die_type): Eliminate assignment within "if".
3218         (struct_type, decode_array_element_type): Ditto.
3219         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3220         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3221         (decode_modified_type, completedieinfo): Ditto.
3222         * block.c: Eliminate "register".
3223         (blockvector_for_pc_sect): Eliminate assignment within "if".
3224         * cp-support.h (struct symbol): Opaque declaration.
3225         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3226
3227 2003-06-01  Richard Henderson  <rth@redhat.com>
3228
3229         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3230         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3231
3232 2003-06-01  Adam Fedor  <fedor@gnu.org>
3233
3234         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3235         * gdbarch.[ch]: Regenerate.
3236         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3237         (hppa_gdbarch_init): Set it in the gdbarch vector.
3238         * i386-tdep.c (i386_fetch_pointer_argument): New
3239         (i386_gdbarch_init): Set it into gdbarch.
3240         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3241         (rs6000_gdbarch_init): Set it in gdbarch.
3242         * sparc-tdep.c (sparc_fetch_pointer_argument): New
3243         (sparc_gdbarch_init): Set it in gdbarch.
3244
3245 2003-06-01  Andrew Cagney  <cagney@redhat.com>
3246
3247         * defs.h (extract_address): Delete declaration.
3248         * findvar.c (extract_address): Delete function.
3249         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3250         extract_address with the inline equivalent,
3251         extract_unsigned_integer.
3252         (xstormy16_extract_struct_value_address): Ditto.
3253         (xstormy16_pointer_to_address): Ditto.
3254         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3255         * v850-tdep.c (v850_push_arguments): Ditto.
3256         (v850_extract_return_value): Ditto.
3257         (v850_extract_struct_value_address): Ditto.
3258         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3259         (sparcnbsd_get_longjmp_target_64): Ditto.
3260         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3261         (get_longjmp_target): Ditto.
3262         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3263         (sh64_extract_struct_value_address): Ditto.
3264         (sh_push_arguments): Ditto.
3265         (sh64_push_arguments): Ditto.
3266         * remote-vxsparc.c (vx_read_register): Ditto.
3267         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3268         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3269         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3270         * mipsv4-nat.c (get_longjmp_target): Ditto.
3271         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3272         * mips-nat.c (get_longjmp_target): Ditto.
3273         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3274         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3275         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3276         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3277         * irix5-nat.c (get_longjmp_target): Ditto.
3278         * irix4-nat.c (get_longjmp_target): Ditto.
3279         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3280         (ia64_push_arguments): Ditto.
3281         * hpux-thread.c (hpux_thread_store_registers): Ditto.
3282         * h8300-tdep.c (h8300_push_arguments): Ditto.
3283         (h8300_store_return_value): Ditto.
3284         (h8300_extract_struct_value_address): Ditto.
3285         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3286         (frv_push_arguments): Ditto.
3287         * avr-tdep.c (avr_pointer_to_address): Ditto.
3288         (avr_push_arguments): Ditto.
3289         * arm-tdep.c (arm_push_dummy_call): Ditto.
3290         (arm_get_longjmp_target): Ditto.
3291         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3292         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3293         (alpha_get_longjmp_target): Ditto.
3294
3295         * solib-irix.c (extract_mips_address): Inline extract_address,
3296         replacing it with extract_signed_integer.
3297         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3298         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3299         (first_link_map_member, open_symbol_file_object): Ditto.
3300         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3301         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3302         (LM_NEXT, LM_NAME): Ditto.
3303
3304 2003-06-01  Richard Henderson  <rth@redhat.com>
3305
3306         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3307         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3308         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3309         (alpha_cannot_store_register): Likewise.
3310         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3311         * alpha-nat.c (supply_gregset): Likewise.
3312         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3313
3314 2003-06-01  Andrew Cagney  <cagney@redhat.com>
3315
3316         * infcall.c (call_function_by_hand): Update comment on
3317         DEPRECATED_DUMMY_WRITE_SP.
3318
3319         * mips-tdep.c (mips_gdbarch_init): Do not set
3320         deprecated_dummy_write_sp.
3321         (mips_eabi_push_dummy_call): Set the SP register.
3322         (mips_o64_push_dummy_call): Set the SP register.
3323         (mips_o32_push_dummy_call): Set the SP register.
3324         (mips_n32n64_push_dummy_call): Set the SP register.
3325
3326 2003-06-01  Richard Henderson  <rth@redhat.com>
3327
3328         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3329         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3330         (supply_gregset): Likewise.
3331         * alpha-tdep.c (alpha_store_return_value): Likewise.
3332         (alpha_get_longjmp_target): Likewise.
3333         (alpha_register_name): Constify array.
3334         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3335         deprecated_register_size, deprecated_register_bytes,
3336         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3337         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3338         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3339
3340 2003-06-01  Richard Henderson  <rth@redhat.com>
3341
3342         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
3343         from arg_reg_buffer to regcache to avoid double conversion.
3344
3345 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
3346
3347         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3348         SP_REGNUM.
3349         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3350         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3351
3352 2003-06-01  Richard Henderson  <rth@redhat.com>
3353
3354         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3355         (decode_frame_entry): Set it.  Skip FDE augmentation.
3356
3357 2003-06-01  Richard Henderson  <rth@redhat.com>
3358
3359         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3360         not overlapping PC_REGNUM.
3361
3362 2003-06-01  Richard Henderson  <rth@redhat.com>
3363
3364         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3365         alpha_push_arguments.  Don't dump argument register data to
3366         the target stack.  Fix float and 128-bit long double semantics.
3367         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
3368         (alpha_fix_call_dummy): Remove.
3369         (alpha_call_dummy_words): Remove.
3370         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3371
3372 2003-06-01  Richard Henderson  <rth@redhat.com>
3373
3374         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3375
3376 2003-06-01  Andrew Cagney  <cagney@redhat.com>
3377
3378         * mips-tdep.c (is_mips16_addr): New function.
3379         (make_mips16_addr, unmake_mips16_addr): New functions.
3380         (pc_is_mips16, mips_fetch_instruction): Use.
3381         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3382         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3383         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3384         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3385         TARGET_MIPS.
3386         * config/mips/tm-mips.h: Update copyright.
3387         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3388         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3389         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3390         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3391         (TM_PRINT_INSN_MACH): Delete.
3392         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3393
3394         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3395         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3396         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3397         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3398         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
3399         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
3400         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
3401         mips*-*-riscos* and mips*-*-sysv* onto mips.
3402         * config/mips/mips64.mt: New file.
3403         * config/mips/mips.mt: New file.
3404         * config/mips/littlemips.mt: Delete file.
3405         * config/mips/decstation.mt: Delete file.
3406         * config/mips/vr4300el.mt: Delete file.
3407         * config/mips/vr5000el.mt: Delete file.
3408         * config/mips/vr5000.mt: Delete file.
3409         * config/mips/vr4100.mt: Delete file.
3410         * config/mips/vr4xxxel.mt: Delete file.
3411         * config/mips/vr4300.mt: Delete file.
3412         * config/mips/vr4xxx.mt: Delete file.
3413         * config/mips/bigmips.mt: Delete file.
3414         * config/mips/bigmips64.mt: Delete file.
3415         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3416         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3417         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3418         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3419         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3420         "tm-bigmips.h".
3421         * config/mips/tm-irix3.h: Ditto.
3422         * config/mips/tm-mipsv4.h: Ditto.
3423         * config/mips/tm-embed.h: Ditto.
3424         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3425         "tm-bigmips64.h".
3426         * config/mips/tm-vr5000el.h: Delete file.
3427         * config/mips/tm-tx39l.h: Delete file.
3428         * config/mips/tm-vr4300el.h: Delete file.
3429         * config/mips/tm-vr4xxxel.h: Delete file.
3430         * config/mips/tm-vr4300.h: Delete file.
3431         * config/mips/tm-vr4100.h: Delete file.
3432         * config/mips/tm-vr4xxx.h: Delete file.
3433         * config/mips/tm-vr5000.h: Delete file.
3434         * config/mips/tm-embedl64.h: Delete file.
3435         * config/mips/tm-embedl.h: Delete file.
3436         * config/mips/tm-embed64.h: Delete file.
3437         * config/mips/tm-bigmips64.h: Delete file.
3438         * config/mips/tm-bigmips.h: Delete file.
3439
3440 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
3441
3442         Fix gdb/1216.
3443         * shnbsd-nat.c: Include "sh-tdep.h".
3444
3445         From Richard Henderson  <rth@redhat.com>:
3446         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3447
3448 2003-05-31  Andrew Cagney  <cagney@redhat.com>
3449
3450         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
3451         forward declaration.
3452         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3453         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3454         (mips_find_saved_regs): Use set_reg_offset.
3455         (mips_frame_init_saved_regs): Delete function.
3456         (mips_pop_frame): Call mips_find_saved_regs instead of
3457         DEPRECATED_FRAME_INIT_SAVED_REGS.
3458
3459 2003-05-31  Andrew Cagney  <cagney@redhat.com>
3460
3461         * mips-tdep.c (mips_gdbarch_init): Do not set
3462         deprecated_max_register_raw_size, register_virtual_size, and
3463         deprecated_max_register_virtual_size.
3464
3465 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
3466
3467         * i386-tdep.c: Include "dwarf2-frame.h".
3468         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3469         * Makefile.in (i386-tdep.o): Update dependencies.
3470
3471         * dwarf2-frame.c, dwarf2-frame.h: New files.
3472         * Makefile.in (SFILES): Add dwarf2-frame.c.
3473         (dwarf2_frame_h): Define.
3474         (COMMON_OBS): Add dwarf2-frame.o.
3475         (dwarf2-frame.o): Add dependencies.
3476
3477 2003-05-31  Andreas Jaeger  <aj@suse.de>
3478
3479         * x86-64-linux-nat.c: Fix comment.
3480
3481 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
3482
3483         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3484         function signature.
3485
3486         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3487         have a sigcontext_addr handler.
3488         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3489         sigcontext_addr handler.
3490
3491 2003-05-31  Andrew Cagney  <cagney@redhat.com>
3492
3493         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3494         (print_fp_register_row): Replace do_fp_register_row.
3495         (mips_print_fp_register): Add "file" and "frame" parameters.
3496         (mips_print_register): Add "file" and "frame" parameters.
3497         (mips_print_registers_info): Replace mips_do_registers_info.
3498         (mips_gdbarch_init): Set print_registers_info instead of
3499         deprecated_do_registers_info.
3500         (mips_read_fp_register_single): Add "frame" parameter.
3501         (mips_read_fp_register_double): Add "frame" parameter.
3502
3503 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
3504
3505         * i386-tdep.c (i386_register_name): Check for MMX registers first.
3506         Fixes a bug where GDB would print the wrong register names for
3507         targets without SSE.
3508
3509         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3510         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3511         registers.
3512
3513         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3514         (x86_64_linux_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
3518         From Michal Ludvig  <mludvig@suse.cz>:
3519         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3520         and `sc_num_regs'.
3521         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3522         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3523         I386_ST0_REGNUM): Move here from...
3524         * i386-tdep.c: ... here.
3525         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3526         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3527         registers if possible.
3528         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3529         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3530         Remove variables.
3531         (i386bsd_sc_reg_offset): New variable.
3532         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3533         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3534         TDEP->sc_sp_offset.
3535         (i386fbsd_sc_reg_offset): New variable.
3536         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3537         TDEP->sc_num_regs.
3538         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3539         variables.
3540         (i386fbsd4_sc_reg_offset): New variable.
3541         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3542         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3543         TDEP->sc_sp_offset.
3544         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3545         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3546         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3547         Remove variables.
3548         (i386nbsd_sc_reg_offset): New variable.
3549         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3550         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3551         TDEP->sc_sp_offset.
3552         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3553         Remove variables.
3554         (i386obsd_sc_reg_offset): New variable.
3555         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3556         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3557         TDEP->sc_sp_offset.
3558         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3559         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
3560         for frame pointer offset in `struct sigcontext'.
3561
3562 2003-05-31  Andrew Cagney  <cagney@redhat.com>
3563
3564         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3565         architecture methods call_dummy_words, sizeof_call_dummy_words,
3566         push_return_address, store_struct_return, and fix_call_dummy.  Set
3567         push_dummy_call instead of deprecated_push_arguments.
3568         (mips_store_struct_return): Delete function.
3569         (mips_fix_call_dummy): Delete function.
3570         (mips_push_return_address): Delete function.
3571         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3572         RA_REGNUM and T9_REGNUM.
3573         (mips_n32n64_push_dummy_call): Ditto for
3574         mips_n32n64_push_arguments.
3575         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3576         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3577
3578 2003-05-31  Andrew Cagney  <cagney@redhat.com>
3579
3580         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
3581         "dummy_addr" to "bp_addr".
3582         * infcall.c (call_function_by_hand): Pass "funaddr" to
3583         gdbarch_push_dummy_call.
3584         * gdbarch.h, gdbarch.c: Re-generate.
3585         * i386-tdep.c (i386_push_dummy_call): Update.
3586         * arm-tdep.c (arm_push_dummy_call): Update.
3587         * d10v-tdep.c (d10v_push_dummy_call): Update.
3588
3589 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
3590
3591         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3592         variable declarations.
3593         (x86_64_register_number, x86_64_register_name): Remove prototypes.
3594         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3595         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3596         x86_64_init_frame_pc, x86_64_init_frame_pc,
3597         x86_64_function_has_prologue): Remove prototypes.
3598         (X86_64_NUM_GREGS): New define.
3599         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3600         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
3601         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3602         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3603         XMM1_REGNUM): Remove defines.
3604         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3605         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3606         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3607         X86_64_XMM1_REGNUM): New defines.
3608         (struct x86_64_register_info): Renamed from `struct
3609         register_info'.  Remove `size' member.
3610         (x86_64_register_info_table): Remove variable.
3611         (x86_64_register_info): New variable.
3612         (X86_64_NUM_REGS): New define.
3613         (X86_64_NUM_GREGS): Remove define.
3614         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
3615         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
3616         Remove variables.
3617         (x86_54_dwarf2_reg_to_regnum): Remove function.
3618         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
3619         (x86_64_dwarf_reg_to_regnum): New function.
3620         (x86_64_register_name): Rewrite.
3621         (x86_64_register_raw_size): Remove function.
3622         (x86_64_register_byte_table): Remove variable.
3623         (x86_64_register_byte): Remove function.
3624         (x86_64_register_virtual_type): Remove function.
3625         (x86_64_register_type): New function.
3626         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
3627         x86_64_register_convert_to_raw): Remove functions.
3628         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
3629         (x86_64_use_struct_convention): Make static.  Adjust for renamed
3630         defines.
3631         (x86_64_frame_init_saved_regs): Remove function.
3632         (x86_64_push_arguments): Make static.  Change to accept a regcache
3633         as argument.
3634         (x86_64_store_return_value, x86_64_extract_return_value): Make
3635         static.  Rewrite based on i386 counterparts.
3636         (x86_64_push_dummy_call): New function.
3637         (X86_64_NUM_SAVED_REGS): New define.
3638         (x86_64_register_number): Remove function.
3639         (x86_64_store_struct_return): Remove function.
3640         (x86_64_frameless_function_invocation,
3641         x86_64_function_has_prologue): Remove functions.
3642         (PROLOG_BUFSIZE): Remove define.
3643         (struct x86_64_frame_cache): New structure.
3644         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
3645         x86_64_frame_cache, x86_64_frame_this_id,
3646         x86_64_frame_prev_register, x86_64_frame_p,
3647         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
3648         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
3649         functions.
3650         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
3651         variables.
3652         (x86_64_skip_prologue): Rewrite in terms of
3653         x86_64_analyze_prologue.
3654         (x86_64_frame_base_address): New function.
3655         (x86_64_frame_base): New variable.
3656         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
3657         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
3658         set deprecated_fp_regnum, deprecated_register_size,
3659         deprecated_register_bytes, register_raw_size, register_byte,
3660         register_virtual_type, register_convertiable,
3661         register_convert_to_virtual, convert_to_raw,
3662         deprecated_get_saved_register, deprecated_target_read_fp,
3663         deprecated_push_arguments, deprecated_push_return_address,
3664         deprecated_pop_frame, deprecated_store_struct_return,
3665         deprecated_frame_init_saved_regs, deprecated_frame_chain,
3666         frameless_function_invocation, deprecated_frame_saved_pc,
3667         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
3668         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
3669         deprecated_init_frame_pc and virtual_frame_pointer.  Call
3670         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
3671         and x86_64_frame_p.  Call frame_base_set_default to register
3672         x86_64_frame_base.
3673         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
3674         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
3675         (_initialize_x86_64_tdep): Remove function.
3676         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
3677         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
3678         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
3679         define.
3680         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
3681         (x86_64_linux_sigcontext_addr): Rewrite.
3682         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
3683         x86_64_linux_frame_saved_pc): Remove functions.
3684         (x86_64_linux_pc_in_sigtramp): Renamed from
3685         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
3686         trampoline.
3687         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
3688         Remove_functions.
3689         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
3690         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3691         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
3692         (x86_64_regmap): Rename to regmap.
3693         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
3694         x86_64_num_gregs.
3695         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
3696         x86_64_regmap.
3697         (x86_64_fxsave_offset): Remove function.
3698         (supply_fpregset): Simply call x86_64_supply_fxsave.
3699         (fill_fpregset): Simply call x86_64_fill_fxsave.
3700         (fetch_inferior_registers, store_inferior_registers): Avoid
3701         asignment in if-statement.
3702         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
3703         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
3704         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
3705         (fetch_core_registers): Remove function.
3706         (linux_elf_core_fns): Remove.
3707         (offsetoff): Don't define.
3708         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
3709         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
3710         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
3711         add core-regset.o.
3712         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
3713         protection against multiple includes instead of NM_X86_64_h.  Add
3714         various comments.  Include "config/nm-linux.h".  Don't include
3715         <signal.h>.
3716         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
3717         GET_THREAD_SIGNALS): Remove defines.
3718         (x86_64_register_u_addr, kernel_u_size,
3719         lin_thread_get_thread_signals): Remove prototypes.
3720         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
3721         [HAVE_LINK_H]: Don't include "solib.h".
3722         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
3723         * config/i386/tm-x86-64linux.h: Fix comments.
3724         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
3725         x86-64-tdep.o): Update dependencies.
3726
3727 2003-05-30  Andrew Cagney  <cagney@redhat.com>
3728
3729         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
3730         Change parameter type to a "struct regcache *".
3731
3732         * gdbarch.sh: Regardless of the multi-arch level, always define
3733         the macro when not already defined.
3734         * gdbarch.h, gdbarch.c: Re-generate.
3735
3736 2003-05-30  Richard Henderson  <rth@redhat.com>
3737
3738         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
3739         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
3740         (alpha_mdebug_frame_this_id): Likewise.
3741         (alpha_mdebug_frame_prev_register): Likewise.
3742         (alpha_mdebug_frame_base_address): Likewise.
3743         (alpha_mdebug_frame_locals_address): Likewise.
3744         (alpha_mdebug_frame_args_address): Likewise.
3745         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
3746         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
3747         (alpha_heuristic_frame_unwind_cache): Make static; add missing
3748         loop increment.
3749         (alpha_heuristic_frame_this_id): Make static.
3750         (alpha_heuristic_frame_prev_register): Likewise.
3751         (alpha_heuristic_frame_base_address): Likewise.
3752         * alpha-tdep.h: Update.
3753
3754 2003-05-30  Mark Kettenis  <kettenis@gnu.org>
3755
3756         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
3757         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
3758         defenitions.
3759         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
3760         * i386-tdep.c: Mark functions that are 64-bit safe as such.
3761         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3762         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3763         I386_ST0_REGNUM): New defines.
3764         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
3765         codestream_get): Remove define.
3766         (codestream_next_addr, condestream_addr, condestream_buf,
3767         codestream_off, codestream_cnt): Remove variables.
3768         (codestream_fill, codestream_seek, codestream_read): Remove
3769         functions.
3770         (i386_follow_jump): Rewrite to avoid usage of removed codestream
3771         functionality.
3772         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
3773         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
3774         i386_frame_saved_pc, i386_saved_pc_after_call,
3775         i386_frame_num_args, i386_frame_init_saved_regs,
3776         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
3777         i386_push_arguments): Remove functions.
3778         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
3779         functionality.  Use i386_analyze_prologue instead of
3780         i386_get_frame_setup.
3781         (I386_NUM_SAVED_REGS): New define.
3782         (struct i386_frame_cache): New structure.
3783         (i386_alloc_frame_cache, i386_analyze_struct_return,
3784         i386_skip_probe, i386_analyze_frame_setup,
3785         i386_analyze_register_saves, i386_analyze_prologue,
3786         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
3787         i386_frame_prev_register, i386_sigtramp_frame_cache,
3788         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
3789         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
3790         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
3791         New functions.
3792         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
3793         New variables.
3794         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
3795         I386_EAX_REGNUM and I386_EDX_REGNUM.
3796         (i386_extract_return_value, i386_store_return_value): Use
3797         I386_ST0_REGNUM where appropriate.
3798         (i386_extract_struct_value_address): Rewrite to use extract_address.
3799         (i386_svr4_pc_in_sigtramp): Add comment.
3800         (i386_svr4_sigcontext_addr): Rewrite.
3801         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
3802         TDEP->sc_sp_offset.
3803         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
3804         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
3805         of new defines.  Set push_dummy_call, don't set
3806         deprecated_push_arguments, deprecated_push_return_address,
3807         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
3808         deprecated_frame_chain, deprecated_frame_saved_pc,
3809         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
3810         save_dummy_frame_tos, unwind_pc.  Call
3811         frame_unwind_append_predicate and frame_base_set_default.  Don't
3812         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
3813         Don't set frameless_function_invocation.  Don't set
3814         deprecated_register_bytes, deprecated_register_size,
3815         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
3816         * i386-linux-tdep.c: Fix formatting in some comments.
3817         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
3818         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
3819         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
3820         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
3821         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
3822         redundant parentheses.
3823         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
3824         (i386_linux_sigcontext_addr): Use it.  Rewrite.
3825         (find_minsym_and_objfile): Change name of second argument.
3826         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
3827         changed.  Use frame_pc_unwind instead of
3828         DEPRECATED_SAVED_PC_AFTER_CALL.
3829         (i386_linux_init_abi): Don't set deprecated_register_bytes.
3830         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
3831         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
3832         unwinder.
3833         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
3834         "dummy-frame.h".
3835         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
3836         (_initialize_i386_cygwin_tdep): New prototype.
3837         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
3838         deprecated_frame_chain_valid.
3839         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
3840         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3841         Rely on the SVR4 defaults.
3842         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
3843         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
3844
3845 2003-05-30  Andrew Cagney  <cagney@redhat.com>
3846
3847         * infcall.c (call_function_by_hand): Always call
3848         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
3849
3850 2003-05-30  Richard Henderson  <rth@redhat.com>
3851
3852         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
3853         increment.
3854
3855 2003-05-29  Jim Blandy  <jimb@redhat.com>
3856
3857         Use gdbarch methods for solib stuff on PowerPC Linux.
3858         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
3859         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
3860         show through.
3861         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3862         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
3863         giving the same effect as the #definitions above.
3864
3865 2003-05-29  Adam Fedor  <fedor@gnu.org>
3866
3867         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
3868         (find_implementation_from_class): Replace it with the standard
3869         case i.e. do nothing.
3870
3871 2003-05-29  Richard Henderson  <rth@redhat.com>
3872
3873         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
3874         (alpha_linux_sigtramp_offset): Use it.  Make static.
3875         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
3876         update for new frame model.
3877         * alpha-mdebug-tdep.c: New file.
3878         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
3879         (alpha_osf1_init_abi): Install it.
3880         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
3881         (linked_proc_desc_table): Remove.
3882         (alpha_frame_past_sigtramp_frame): Remove.
3883         (alpha_dynamic_sigtramp_offset): Remove.
3884         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
3885         (alpha_proc_desc_is_dyn_sigtramp): Remove.
3886         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
3887         (push_sigtramp_desc): Remove.
3888         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
3889         (alpha_cannot_store_register): Likewise.
3890         (alpha_sigcontext_addr): Remove.
3891         (alpha_find_saved_regs): Remove.
3892         (alpha_frame_init_saved_regs): Remove.
3893         (alpha_init_frame_pc_first): Remove.
3894         (read_next_frame_reg): Remove.
3895         (alpha_frame_saved_pc): Remove.
3896         (alpha_saved_pc_after_call): Remove.
3897         (temp_proc_desc, temp_saved_regs): Remove.
3898         (alpha_about_to_return): Remove.
3899         (cached_proc_desc): Remove.
3900         (alpha_frame_chain): Remove.
3901         (alpha_print_extra_frame_info): Remove.
3902         (alpha_init_extra_frame_info): Remove.
3903         (alpha_frame_locals_address): Remove.
3904         (alpha_frame_args_address): Remove.
3905         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
3906         (alpha_push_dummy_frame): Remove.
3907         (alpha_pop_frame): Remove.
3908         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
3909         (alpha_read_insn): New.
3910         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
3911         for different insn encodings.
3912         (alpha_in_lenient_prologue): Remove.
3913         (struct alpha_sigtramp_unwind_cache): New.
3914         (alpha_sigtramp_frame_unwind_cache): New.
3915         (alpha_sigtramp_register_address): New.
3916         (alpha_sigtramp_frame_this_id): New.
3917         (alpha_sigtramp_frame_prev_register): New.
3918         (alpha_sigtramp_frame_unwind): New.
3919         (alpha_sigtramp_frame_p): New.
3920         (struct alpha_heuristic_unwind_cache): New.
3921         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
3922         don't count nop insns that occur between functions.
3923         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
3924         heuristic_proc_desc, but without the mdebug wrapping.
3925         (alpha_heuristic_frame_this_id): New.
3926         (alpha_heuristic_frame_prev_register): New.
3927         (alpha_heuristic_frame_unwind): New.
3928         (alpha_heuristic_frame_p): New.
3929         (alpha_heuristic_frame_base_address): New.
3930         (alpha_heuristic_frame_base): New.
3931         (alpha_unwind_dummy_id): New.
3932         (alpha_unwind_pc): New.
3933         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
3934         frame related deprecated initializations; install replacements.
3935         (alpha_dump_tdep): Remove.
3936         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
3937         (alpha_read_insn, alpha_after_prologue,
3938         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
3939         alpha_heuristic_frame_prev_register,
3940         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
3941         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3942         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
3943         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
3944
3945 2003-05-29  Andrew Cagney  <cagney@redhat.com>
3946
3947         * gdb_assert.h (gdb_assert_fail): Provide different definitions
3948         dependant on the availability of ASSERT_FUNCTION.
3949         (ASSERT_FUNCTION): Do not define when there is no function name.
3950
3951 2003-05-29  Kevin Buettner  <kevinb@redhat.com>
3952
3953         From Jimi X <jimix@watson.ibm.com>:
3954         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
3955
3956 2003-05-28  Jim Blandy  <jimb@redhat.com>
3957
3958         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
3959         argument to ptrace to int; the system headers should give it the
3960         right type, and pointers don't fit in ints on powerpc64-*-*.
3961
3962 2003-05-28  H.J. Lu <hongjiu.lu@intel.com>
3963
3964         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
3965         DW_TAG_catch_block.
3966
3967 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
3968
3969         * stabsread.c (dbx_lookup_type): Make static.
3970         (read_type): Ditto.
3971         (add_undefined_type): Ditto.
3972         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
3973         not export.
3974
3975 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
3976
3977         * hpread.c (hpread_has_name): Make static.
3978         (hpread_psymtab_to_symtab): Ditto.
3979         (file_exists): Ditto.
3980         (hpread_call_pxdb): Ditto.
3981         (hpread_pxdb_needed): Ditto.
3982         (hpread_quick_traverse): Ditto.
3983         (hpread_get_header): Ditto.
3984         (hpread_get_lntt): Ditto.
3985         (hpread_get_slt): Ditto.
3986         (class_of): Ditto.
3987
3988 2003-05-25  Andreas Schwab  <schwab@suse.de>
3989
3990         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
3991         stack_align and deprecated_extra_stack_alignment_needed.
3992         (m68k_stack_align): Delete.
3993
3994         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
3995         (m68k_register_virtual_size): Likewise.
3996         (altos_skip_prologue): Remove obsolete function.
3997         (isi_frame_num_args): Likewise.
3998         (news_frame_num_args): Likewise.
3999         (m68k_fix_call_dummy): Make static.
4000         (m68k_push_dummy_frame): Likewise.
4001         (m68k_pop_frame): Likewise.
4002         (m68k_skip_prologue): Likewise.
4003         (m68k_frame_init_saved_regs): Likewise.
4004         (m68k_saved_pc_after_call): Likewise.
4005         (m68k_get_longjmp_target): Make multi-arch.
4006         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4007         structure.  Register m68k_get_longjmp_target if enabled.
4008         * m68k-tdep.h (struct gdbarch_tdep): Define.
4009         * config/m68k/tm-m68k.h: Don't include "regcache.h".
4010
4011         * Makefile.in (config.status): Also depend on configure.tgt
4012         and configure.host.
4013         (m68klinux-tdep.o): Update dependencies.
4014         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4015         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4016         (M68K_LINUX_JB_PC): Define.
4017         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4018         and take additional parameter.
4019         (m68k_linux_sigtramp_saved_pc): Update.
4020         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
4021         m68k_linux_pc_in_sigtramp, in_plt_section,
4022         find_solib_trampoline_target.
4023         * config/m68k/tm-linux.h: Don't include any tm headers.
4024         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4025         (JB_ELEMENT_SIZE): Likewise.
4026         (JB_PC): Likewise.
4027         (GET_LONGJMP_TARGET): Likewise.
4028         (IN_SIGTRAMP): Likewise.
4029         (SVR4_SHARED_LIBS): Define this and include "solib.h".
4030
4031 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
4032
4033         * sparc-tdep.c (sparc32_do_push_arguments): New function.
4034         (sparc32_push_arguments): Re-implement by calling
4035         sparc32_do_push_arguments.
4036
4037 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
4038
4039         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4040         SPARC_O1_REGNUM): New defines.
4041         (sparc32_extract_return_value): Rewrite to operate on a regcache.
4042         (sparc32_store_return_value): New function.
4043         (sparc_extract_struct_value_address): Rewrite to operate on a
4044         regcache.
4045         (sparc_gdbarch_init): Don't set
4046         deprecated_extract_struct_value_address.  Set
4047         extract_struct_value_address instead. Don't set
4048         deprecated_extract_return_value and deprecated_store_return_value
4049         for 32-bit targets.  Set extract_return_value and
4050         store_return_value instead.
4051         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4052         DEPRECTAED_EXTRACT_RETURN_VALUE,
4053         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4054         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4055         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4056         (sparc_store_return_value): Remove prototype.
4057         (sparc32_store_return_value): New prototype.
4058         (sparc32_extract_return_value, sparc_extract_struct_value_address):
4059         Adjust prototypes.
4060
4061 2003-05-24  Mark Kettenis  <kettenis@gnu.org>
4062
4063         * sparcnbsd-tdep.c: Include "gdb_string.h".
4064
4065 2003-05-23  Andrew Cagney  <cagney@redhat.com>
4066
4067         * p-valprint.c (pascal_val_print): Replace extract_address with
4068         the inline equivalent extract_unsigned_integer.
4069         * jv-valprint.c (java_value_print): Ditto.
4070         * ada-valprint.c (ada_val_print_1): Ditto.
4071         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4072
4073 2003-05-23  Theodore A. Roth  <troth@openavr.org>
4074
4075         * blockframe.c (frameless_look_for_prologue): Remove unused
4076         after_prologue variable.
4077
4078 2003-05-23  Mark Kettenis  <kettenis@gnu.org>
4079
4080         * blockframe.c (get_pc_function_start): Rewrite to avoid
4081         asignments in if-statements.
4082
4083 2003-05-23  Raoul Gough  <RaoulGough@yahoo.co.uk>
4084
4085         Committed by Elena Zannoni  <ezannoni@redhat.com>.
4086         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4087         files, don't relocate absolute symbols (and do use mst_abs).
4088
4089 2003-05-23  Andrew Cagney  <cagney@redhat.com>
4090
4091         * objc-lang.c: Include "gdb_assert.h".
4092         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4093         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4094         (gdb_check, gdb_check_fatal): Delete functions.
4095         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4096         gdb_assert.
4097         (parse_selector, parse_method, find_methods, find_imps): Ditto.
4098         * Makefile.in (objc-lang.o): Update dependencies.
4099
4100 2003-05-22  Ian Lance Taylor  <ian@airs.com>
4101
4102         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4103         with fprintf_filtered, not fprintf_unfiltered.
4104
4105 2003-05-22  Andrew Cagney  <cagney@redhat.com>
4106
4107         * stack.c (frame_info): Inline extract_address, replacing it with
4108         extract_unsigned_integer.
4109         * findvar.c (unsigned_pointer_to_address): Ditto.
4110         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4111         * dwarf2expr.c (dwarf2_read_address): Ditto.
4112         * frame.c (frame_pc_unwind): Update comment.
4113         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4114
4115 2003-05-22  Jeff Johnston  <jjohnstn@redhat.com>
4116
4117         * infptrace.c (detach): Call print_sys_errmsg rather than
4118         perror_with_name to issue warning message when errno is non-zero
4119         after calling ptrace detach.
4120
4121 2003-05-21  J. Brobecker  <brobecker@gnat.com>
4122
4123         * config/pa/tm-hppa.h: Delete some unused macros. Move some
4124         macro definitions from here...
4125         * hppa-tdep.c: ...to there.
4126
4127 2003-05-20  Kevin Buettner  <kevinb@redhat.com>
4128
4129         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4130         register_ptrace_addr().  Fix all callers.
4131
4132 2003-05-21  Andreas Schwab  <schwab@suse.de>
4133
4134         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4135         dependencies.
4136         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4137         end.
4138         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4139         (_initialize_m68k_linux_tdep): New function.
4140         (m68k_linux_frame_saved_pc): Make static.
4141         (m68k_linux_extract_return_value): Likewise.
4142         (m68k_linux_store_return_value): Likewise.
4143         (m68k_linux_extract_struct_value_address): Likewise.
4144         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4145         Remove.
4146         (DEPRECATED_STORE_RETURN_VALUE): Remove.
4147         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4148         (DEPRECATED_FRAME_SAVED_PC): Remove.
4149
4150 2003-05-20  Kris Warkentin  <kewarken@qnx.com>
4151
4152         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4153         regset numbering rather than our own.
4154
4155 2003-05-19  David Carlton  <carlton@bactrian.org>
4156
4157         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4158
4159 2003-05-19  David Carlton  <carlton@bactrian.org>
4160
4161         Partial fix for PR c++/827.
4162         * cp-support.h: Include symtab.h.
4163         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4164         * cp-namespace.c: Update contributors.
4165         (cp_lookup_symbol_nonlocal): New.
4166         (lookup_namespace_scope, cp_lookup_symbol_namespace)
4167         (lookup_symbol_file): Ditto.
4168         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4169         * block.h: Declare block_scope, block_using, block_global_block.
4170         * block.c (block_scope): New.
4171         (block_using, block_global_block): Ditto.
4172         * Makefile.in (cp_support_h): Depend on symtab_h.
4173         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4174
4175 2003-05-19  David Carlton  <carlton@bactrian.org>
4176
4177         * language.h (struct language_defn): Add 'la_value_of_this'
4178         and 'la_lookup_symbol_nonlocal' members.
4179         * symtab.h: Declare basic_lookup_symbol_nonlocal,
4180         lookup_symbol_static, lookup_symbol_global,
4181         lookup_symbol_aux_block.
4182         * symtab.c (lookup_symbol_aux): Call language hooks to determine
4183         if we should search fields of this and how to do static/global
4184         lookup.
4185         (lookup_symbol_aux_block): Make extern.
4186         (basic_lookup_symbol_nonlocal): New.
4187         (lookup_symbol_static, lookup_symbol_global): Ditto.
4188         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4189         'la_lookup_symbol_nonlocal' members.
4190         * c-lang.c (c_language_defn, cplus_language_defn)
4191         (asm_language_defn, minimal_language_defn): Ditto.
4192         * jv-lang.c (java_language_defn): Ditto.
4193         * language.c (unknown_language_defn, auto_language_defn)
4194         (local_language_defn): Ditto.
4195         * m2-lang.c (m2_language_defn): Ditto.
4196         * objc-lang.c (objc_language_defn): Ditto.
4197         * scm-lang.c (scm_language_defn): Ditto.
4198         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4199         * p-lang.c (pascal_language_defn): Ditto for both.
4200         * Makefile.in (f-lang.o): Depend on value_h.
4201         (p-lang.o): Ditto.
4202
4203 2003-05-19  David Carlton  <carlton@bactrian.org>
4204
4205         * block.h: Declare block_static_block.
4206         * block.c (block_static_block): New.
4207         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4208         lookup_symbol_aux_local, calling block_static_block instead.
4209         (lookup_symbol_aux_local): Delete 'static_block' argument.
4210
4211 2003-05-19  David Carlton  <carlton@bactrian.org>
4212
4213         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4214
4215 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
4216
4217         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4218         register numbers mapping.
4219
4220 2003-05-18  Adam Fedor  <fedor@gnu.org>
4221
4222         * symtab.c (completion_list_objc_symbol): New function.
4223         (make_symbol_completion_list): Use it to add ObjC symbols
4224         when looking though the list.
4225         (language_search_unquoted_string): New function.
4226         (make_file_symbol_completion_list): Use it.
4227
4228 2003-05-18  Andreas Schwab  <schwab@suse.de>
4229
4230         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4231         dependencies.
4232         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4233         as m68k_linux_extract_return_value.
4234         (DEPRECATED_STORE_RETURN_VALUE): Define as
4235         m68k_linux_store_return_value.
4236         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4237         m68k_linux_extract_struct_value_address.
4238         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4239         get_next_frame, get_frame_base, get_frame_pc.
4240         (m68k_linux_frame_saved_pc): Use get_frame_base.
4241         (m68k_linux_extract_return_value): New function.
4242         (m68k_linux_store_return_value): New function.
4243         (m68k_linux_extract_struct_value_address): New function.
4244         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4245
4246         * c-exp.y (typebase): Remove duplicate occurence of
4247         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
4248         of lookup_signed_typename.
4249
4250 2003-05-18  Mark Kettenis  <kettenis@gnu.org>
4251
4252         * dwarf2loc.c (find_location_expression): Change type of second
4253         argument to `size_t *'.
4254         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4255         for size variable.
4256
4257 2003-05-18  David Carlton  <carlton@bactrian.org>
4258
4259         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4260         'linkage_name'.  Add comment.
4261         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4262         'linkage_name'.
4263         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4264         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4265         (lookup_block_symbol): Ditto.
4266
4267 2003-05-16  Andrew Cagney  <cagney@redhat.com>
4268
4269         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4270         * gdbarch.h, gdbarch.c: Re-generate.
4271         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4272         * TODO (REGISTER_BYTES): Delete reference.
4273         * alpha-tdep.c (alpha_gdbarch_init): Update.
4274         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4275         * x86-64-tdep.c (x86_64_init_abi): Update.
4276         * vax-tdep.c (vax_gdbarch_init): Update.
4277         * v850-tdep.c (v850_gdbarch_init): Update.
4278         * sparc-tdep.c (sparc_gdbarch_init): Update.
4279         * sh-tdep.c (sh_gdbarch_init): Update.
4280         * s390-tdep.c (s390_gdbarch_init): Update.
4281         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4282         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4283         (ns32k_gdbarch_init_32382): Update.
4284         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4285         * mcore-tdep.c (mcore_gdbarch_init): Update.
4286         * m68k-tdep.c (m68k_gdbarch_init): Update.
4287         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4288         * ia64-tdep.c (ia64_gdbarch_init): Update.
4289         * i386-tdep.c (i386_gdbarch_init): Update.
4290         * i386-linux-tdep.c (i386_linux_init_abi): Update.
4291         * hppa-tdep.c (hppa_gdbarch_init): Update.
4292         * h8300-tdep.c (h8300_gdbarch_init): Update.
4293         * frv-tdep.c (frv_gdbarch_init): Update.
4294         * cris-tdep.c (cris_gdbarch_init): Update.
4295         * avr-tdep.c (avr_gdbarch_init): Update.
4296         * arm-tdep.c (arm_gdbarch_init): Update.
4297         * sparc-tdep.c (sparc_pop_frame): Update.
4298         * rs6000-tdep.c (rs6000_pop_frame): Update.
4299         * remote.c (init_remote_state): Update.
4300         (remote_prepare_to_store): Update.
4301         * remote-vx.c (vx_prepare_to_store): Update.
4302         * remote-sds.c (sds_fetch_registers): Update.
4303         (sds_prepare_to_store): Update.
4304         * remote-array.c: Update.
4305         * regcache.c (init_legacy_regcache_descr): Update.
4306         (init_regcache_descr): Update.
4307         * mips-tdep.c (mips_eabi_extract_return_value): Update.
4308         (mips_o64_extract_return_value): Update.
4309         * irix5-nat.c (fetch_core_registers): Update.
4310         * irix4-nat.c (fetch_core_registers): Update.
4311         * i386-tdep.h: Update.
4312         * hppa-tdep.c (pa_do_registers_info): Update.
4313         (pa_do_strcat_registers_info): Update.
4314         * cris-tdep.c (cris_register_bytes_ok): Update.
4315         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4316         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4317         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4318         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4319         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4320         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4321         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4322         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4323         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4324         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4325         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4326         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4327         (REGISTER_BYTES_OK): Update.
4328         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4329         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4330
4331 2003-05-16  Ian Lance Taylor  <ian@airs.com>
4332
4333         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4334         (vax_print_insn, print_insn_arg): Remove static functions.
4335         (vax_gdbarch_init): Call set_gdbarch_print_insn with
4336         print_insn_vax from opcodes library.
4337         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4338
4339 2003-05-15  Andrew Cagney  <cagney@redhat.com>
4340
4341         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4342         * target.h (memory_breakpoint_from_pc): Delete declaration.
4343         * mem-break.c (memory_breakpoint_from_pc): Delete function.
4344         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4345         * monitor.c (monitor_insert_breakpoint): Use
4346         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4347         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4348         * gdbarch.h, gdbarch.c: Re-generate.
4349         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4350         (sparc_gdbarch_init): Set breakpoint_from_pc to
4351         sparc_breakpoint_from_pc.
4352         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4353         (BREAKPOINT_FROM_PC): Define.
4354         (sparc_breakpoint_from_pc): Declare.
4355         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4356         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4357         (BREAKPOINT_FROM_PC): Define.
4358         (BREAKPOINT): Delete macro.
4359         * target.h: Update comment.
4360         * s390-tdep.c (s390_gdbarch_init): Update comments.
4361         * remote.c: Update comments.
4362         * remote-mips.c: Update comments.
4363         * proc-api.c (write_with_trace): Do not check for a breakpoint.
4364         * mem-break.c: Update comment.
4365         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4366         (ia64_memory_insert_breakpoint): Update.
4367         * config/sparc/tm-sparc.h: Update comment.
4368         * config/pa/tm-hppa64.h: Update comment.
4369         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4370         (rs6000_breakpoint_from_pc): Update.
4371         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4372         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4373         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4374         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4375         (mips_breakpoint_from_pc): Update.
4376         (mips_dump_tdep): Update.
4377
4378         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4379         * minsyms.c (lookup_minimal_symbol): Inline
4380         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
4381
4382         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4383         * p-valprint.c (pascal_object_print_value_fields): Ditto.
4384         * p-lang.c (pascal_printstr): Ditto.
4385         * objc-lang.c (objc_printstr): Ditto.
4386         * m2-lang.c (m2_printstr): Ditto.
4387         * jv-valprint.c (java_print_value_fields): Ditto.
4388         * f-lang.c (f_printstr): Ditto.
4389         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
4390         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4391         for repeat_count_threshold.
4392         * Makefile.in (cp-valprint.o): Update dependencies.
4393
4394 2003-05-15  Jeff Johnston  <jjohnstn@redhat.com>
4395
4396         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4397         (examine_prologue): Support looking through leaf functions, knowing
4398         they start with mov r2,r12.  Support skipping over indirect stores
4399         of the input registers.  Upon hitting a non-nop branch instruction
4400         or predicated instruction, bail out by setting lim_pc to the current
4401         pc value in the loop.  At the end, if the lim_pc value is still
4402         beyond our calculated value and we have trust_limit set,
4403         use the lim_pc value.
4404
4405 2003-05-15  Andrew Cagney  <cagney@redhat.com>
4406
4407         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4408         generic_find_dummy_frame.
4409         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4410         (deprecated_generic_find_dummy_frame): Update.
4411         (deprecated_read_register_dummy): Update.
4412         * frame.c (deprecated_generic_get_saved_register): Update.
4413
4414 2003-05-15  Theodore A. Roth  <troth@openavr.org>
4415
4416         * avr-tdep.c (avr_breakpoint_from_pc): New function.
4417         (avr_gdbarch_init): Set breakpoint_from_pc method.
4418
4419 2003-05-15  Andrew Cagney  <cagney@redhat.com>
4420
4421         * regcache.c (build_regcache): Set deprecated_register_valid
4422         directly.
4423         (deprecated_grub_regcache_for_register_valid): Delete function.
4424         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4425         declaration.
4426
4427 2003-05-15  David Carlton  <carlton@bactrian.org>
4428
4429         Committed by Elena Zannoni <ezannoni@redhat.com>
4430         * symtab.c (lookup_symbol_aux): Delete calls to
4431         lookup_symbol_aux_minsyms.
4432         (lookup_symbol_aux_minsyms): Comment out function and
4433         prototype. Delete lookup by mangled name.
4434
4435 2003-05-14  Kevin Buettner  <kevinb@redhat.com>
4436
4437         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4438         correctly indicate an empty stack and ``stack_allocated'' to the
4439         indicate the number of elements initially allocated.
4440         (dwarf_expr_grow_stack): Simplify method for computing new
4441         stack size.  Don't loop infinitely if ``stack_len'' is zero.
4442         (execute_stack_op): Move ``ctx->in_reg'' initialization
4443         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4444         be used in conjuction with DW_OP_piece.  Revise error message
4445         accordingly.
4446
4447 2003-05-14  Theodore A. Roth  <troth@openavr.org>
4448
4449         * MAINTAINERS: Update my email address.
4450         * avr-tdep.c: Ditto.
4451
4452 2003-05-14  Elena Zannoni  <ezannoni@redhat.com>
4453
4454         * symtab.h (enum domain_enum): Rename from namespace_enum.
4455         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4456         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4457         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4458         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4459         TYPES_NAMESPACE, METHODS_NAMESPACE.
4460         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4461         (struct symbol, struct partial_symbol): Rename field
4462         'namespace_enum namespace' to 'domain_enum domain'.
4463         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4464         Delete old define kludge for namespace.
4465
4466         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4467         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4468         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4469         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4470         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4471         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4472         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4473         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4474         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4475         occurrences of the above.
4476
4477 2003-05-14  Ian Lance Taylor  <ian@airs.com>
4478
4479         * Makefile.in (install-only): Use $(SHELL) when running
4480         mkinstalldirs.
4481
4482 2003-05-13  Ian Lance Taylor  <ian@airs.com>
4483
4484         * MAINTAINERS (write after approval): Add myself.
4485
4486         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4487         second and third arguments.
4488         * ser-tcp.c (_initialize_ser_tcp): Likewise.
4489         * ser-unix.c (_initialize_ser_hardwire): Likewise.
4490
4491 2003-05-13  Andrew Cagney  <cagney@redhat.com>
4492
4493         * defs.h (store_address): Delete declaration.
4494         findvar.c (store_address): Delete function.
4495         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4496         store_unsigned_integer.
4497         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4498         * v850-tdep.c (v850_push_arguments): Ditto.
4499         * sparc-tdep.c (sparc_get_saved_register): Ditto.
4500         * sh-tdep.c (sh64_get_saved_register): Ditto.
4501         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4502         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4503         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4504         (mips_get_saved_register): Ditto.
4505         * ia64-tdep.c (ia64_get_saved_register): Ditto.
4506         (find_func_descr, ia64_push_arguments): Ditto.
4507         * i386-tdep.c (i386_push_arguments): Ditto.
4508         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4509         * frv-tdep.c (frv_push_arguments): Ditto.
4510         * frame.c (legacy_saved_regs_prev_register): Ditto.
4511         (deprecated_generic_get_saved_register): Ditto.
4512         * findvar.c (unsigned_address_to_pointer): Ditto.
4513         * dwarf2read.c (dwarf2_const_value): Ditto.
4514         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4515         * alpha-tdep.c (alpha_push_arguments): Ditto.
4516
4517 2003-05-12  J. Brobecker  <brobecker@gnat.com>
4518
4519         * NEWS: Mention that the hppa-hpux port has been partially
4520         multiarched (32bit ABIT only, so far).
4521
4522 2003-05-11  Andrew Cagney  <cagney@redhat.com>
4523
4524         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4525         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4526         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4527         sim/testsuite/sim/arm/misaligned2.ms, and
4528         sim/testsuite/sim/arm/misaligned3.ms.
4529         * disasm.h (struct ui_file): Add opaque struct declaration.
4530         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4531         * frame.h (struct ui_file): Ditto.
4532
4533 2003-05-11  Mark Kettenis  <kettenis@gnu.org>
4534
4535         * value.h: Pretty print.
4536
4537 2003-05-10  Mark Kettenis  <kettenis@gnu.org>
4538
4539         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4540
4541 2003-05-08  Andrew Cagney  <cagney@redhat.com>
4542
4543         * regcache.h (max_register_size): Delete declaration.
4544         * regcache.c (max_register_size): Delete function.
4545         (struct regcache_descr): Delete field "max_register_size".
4546         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4547         registers fit in MAX_REGISTER_SIZE.
4548         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4549         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4550         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4551         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4552         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4553         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4554         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4555         * dve3900-rom.c, hppa-tdep.c: Ditto.
4556
4557 2003-05-08  David Carlton  <carlton@math.stanford.edu>
4558
4559         * valops.c (push_word): Fix typo.
4560
4561 2003-05-08  Andrew Cagney  <cagney@redhat.com>
4562
4563         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4564         * gdbarch.h: Re-generate.
4565         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4566         (legacy_max_register_raw_size): Delete declaration.
4567         * regcache.c (legacy_max_register_raw_size): Delete function.
4568         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4569         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4570         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4571         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4572         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4573         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4574         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4575         * findvar.c, dwarf2cfi.c: Ditto.
4576
4577 2003-05-08  Andrew Cagney  <cagney@redhat.com>
4578
4579         * mips-tdep.c (read_signed_register): New function, moved to here
4580         from "regcache.c".
4581         (read_signed_register_pid): Ditto.
4582         * regcache.c (read_signed_register_pid): Delete function, moved to
4583         "mips-tdep.c".
4584         (read_signed_register): Ditto.
4585         * regcache.h (read_signed_register): Delete declaration.
4586         (read_signed_register_pid): Delete declaration.
4587
4588 2003-05-08  Andrew Cagney  <cagney@redhat.com>
4589
4590         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4591         * gdbarch.h: Re-generate.
4592         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4593         (legacy_max_register_virtual_size): Delete declaration.
4594         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4595         * d10v-tdep.c (d10v_print_registers_info): Ditto.
4596         * tracepoint.c (memrange_sortmerge): Ditto.
4597         * sparc-tdep.c (sparc_print_registers): Ditto.
4598         * regcache.c (legacy_max_register_virtual_size): Delete function.
4599
4600 2002-05-08  J. Brobecker  <brobecker@gnat.com>
4601
4602         * fork-child.c (escape_bang_in_quoted_argument): New function.
4603         (fork_inferior): Escape '!' characters in quoted arguments
4604         only when needed.
4605
4606 2003-05-08  J. Brobecker  <brobecker@gnat.com>
4607
4608         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
4609         the language of the CU is not currently supported by GDB.
4610
4611 2003-05-08  J. Brobecker  <brobecker@gnat.com>
4612
4613         * defs.h (language): Add language_minimal enum value.
4614         * c-lang.c (minimal_language_defn): New language definition.
4615         (_initialize_c_language): Add the new minimal language to the list
4616         of languages known to GDB.
4617
4618 2003-05-08  Kevin Buettner  <kevinb@redhat.com>
4619
4620         * frame.c (get_frame_type): Don't attempt to lazily initialize
4621         frame's unwinder for legacy frames.
4622
4623 2003-05-07  Andrew Cagney  <cagney@redhat.com>
4624
4625         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
4626         and "regcache" parameters.
4627         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
4628
4629 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
4630
4631         * dwarf2read.c (dwarf_decode_lines): Only use output of
4632         check_cu_functions() when calling record_line().  Do not update
4633         the current address.
4634
4635 2003-05-07  Andrew Cagney  <cagney@redhat.com>
4636
4637         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
4638         code.
4639
4640 2003-05-07  Jim Blandy  <jimb@redhat.com>
4641
4642         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
4643         'maint info symtabs' and 'maint info psymtabs'.
4644         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
4645         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
4646         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
4647         Declarations updated.
4648         * maint.c (maintenance_list_command): Delete.
4649         (_initialize_maint_cmds): Update calls to add_cmd.
4650         * gdbcmd.h (maintenancelistlist): Delete declaration.
4651         * cli/cli-cmds.c (maintenancelistlist): Delete.
4652         (init_cmd_lists): Don't initialize it.
4653         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
4654
4655 2003-05-07  Andrew Cagney  <cagney@redhat.com>
4656
4657         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
4658         "regcache".
4659         (d10v_print_registers_info): Update.
4660         (d10v_dmap_register, d10v_imap_register): Delete functions.
4661         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
4662         and "imap_register".
4663         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
4664         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
4665         * arch-utils.c (generic_remote_translate_xfer_address): Add
4666         "regcache" and "gdbarch" parameters.
4667         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
4668         parameter.  Change class to multi-arch.
4669         * gdbarch.h, gdbarch.c: Re-generate.
4670         * remote.c (remote_xfer_memory): Use
4671         gdbarch_remote_translate_xfer_address.
4672
4673 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
4674
4675         * infrun.c (prev_pc): Move declaration ahead of proceed().
4676         (proceed): Refresh prev_pc value before resuming.
4677         (stop_stepping): Remove code to refresh prev_pc.
4678
4679 2003-05-06  Kris Warkentin <kewarken@qnx.com>
4680
4681         * nto-tdep.c: Removed stray comment.
4682
4683 2003-05-06  Kris Warkentin <kewarken@qnx.com>
4684
4685         * i386-nto-tdep.c: Fix old K&R function definitions.
4686         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
4687         Also change add_show_from_set() call to add_setshow_cmd().
4688         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
4689
4690 2003-05-05  Andrew Cagney  <cagney@redhat.com>
4691
4692         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
4693         (fprint_dummy_frames): New function.
4694         (maintenance_print_dummy_frames): New function.
4695         (_initialize_dummy_frame): Add command "maint print dummy-frames".
4696         * frame.c (fprint_frame_id): Make global.
4697         * frame.h (fprint_frame_id): Declare.
4698         * Makefile.in (dummy-frame.o): Update dependencies.
4699
4700 2003-05-05  Andrew Cagney  <cagney@redhat.com>
4701
4702         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
4703         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
4704         SIZEOF_CALL_DUMMY_WORDS.
4705         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
4706         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
4707         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
4708         CALL_DUMMY_BREAKPOINT_OFFSET.
4709         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
4710         CALL_DUMMY_START_OFFSET.
4711         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
4712         * gdbarch.h, gdbarch.c: Re-generate.
4713         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
4714         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
4715         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
4716         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
4717         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
4718         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
4719         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
4720         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
4721         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
4722         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
4723         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
4724         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
4725         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
4726         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
4727         * config/sparc/tm-sparc.h: Update.
4728
4729 2003-05-05  Kris Warkentin <kewarken@qnx.com>
4730
4731         * configure.tgt: Add i[3456]86-*-nto*.
4732         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
4733         * nto-tdep.c: New file. Neutrino target support routines.
4734         * nto-tdep.h: New file. Neutrino target header.
4735         * config/tm-qnxnto.h: New file.
4736         * config/i386/i386nto.mt: New file.
4737         * config/i386/tm-i386nto.h: New file.
4738
4739 2003-05-04  Andrew Cagney  <cagney@redhat.com>
4740
4741         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
4742         (load_infrun_state): Ditto.
4743         (struct thread_info): Drop "prev_func_name" field.
4744         * thread.c (load_infrun_state): Update.
4745         (save_infrun_state): Update.
4746         * infrun.c (prev_func_name): Delete variable.
4747         (init_wait_for_inferior): Do not clear prev_func_name.
4748         (stop_stepping, keep_going, context_switch): Do not swap
4749         prev_func_name.
4750         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
4751         instead of PC_IN_SIGTRAMP.
4752
4753 2003-05-04  Andrew Cagney  <cagney@redhat.com>
4754
4755         * sentinel-frame.c (sentinel_frame_prev_register): Replace
4756         REGISTER_BYTE with register_offset_hack.
4757         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
4758         that REGISTER_BYTE is consistent with the regcache.
4759         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
4760         * gdbarch.h, gdbarch.c: Regenerate.
4761
4762 2003-05-04  Mark Kettenis  <kettenis@gnu.org>
4763
4764         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
4765         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
4766
4767         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
4768
4769 2003-05-03  J. Brobecker  <brobecker@gnat.com>
4770
4771         From Thierry Schneider <tpschneider1@yahoo.com>
4772         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
4773         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
4774         (mi-cmd-symbol.o): Add rule.
4775
4776 2003-05-03  Andrew Cagney  <cagney@redhat.com>
4777
4778         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
4779         comments noteing that it replaces the old FIX_CALL_DUMMY code.
4780         * gdbarch.h, gdbarch.c: Re-generate.
4781         * d10v-tdep.c (d10v_push_dummy_code): New function.
4782         (d10v_gdbarch_init): Set push_dummy_code.
4783         * infcall.c (legacy_push_dummy_code): New function.
4784         (generic_push_dummy_code): New function.
4785         (push_dummy_code): New function.
4786         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
4787         instead of dummy_addr, to push_dummy_call.  Move call to
4788         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
4789         switch.
4790         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
4791
4792 2003-05-03  Andrew Cagney  <cagney@redhat.com>
4793
4794         * disasm.h (print_insn): Declare.
4795         * disasm.c (init_gdb_disassemble_info): New function.
4796         (gdb_disassembly): Call init_gdb_disassemble_info.
4797         (gdb_print_insn): New function.
4798         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
4799         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
4800         * mcore-tdep.c: Include "disasm.h"
4801         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
4802         * d10v-tdep.c: Include "disasm.h".
4803         (display_trace): Call gdb_print_insn, instead of print_insn.
4804         (print_insn): Delete function.
4805         * printcmd.c: Include "disasm.h".
4806         (print_insn): Delete function.
4807         (print_formatted): Call gdb_print_insn, instead of print_insn.
4808         * Makefile.in (printcmd.o): Update dependencies.
4809         (mcore-tdep.o, d10v-tdep.o): Ditto.
4810
4811 2003-05-02  Andrew Cagney  <cagney@redhat.com>
4812
4813         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
4814         PC_REGNUM, re-indent.
4815         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
4816         PC_REGNUM isn't set.
4817
4818         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
4819         * gdbarch.h, gdbarch.c: Re-generate.
4820         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
4821         register_virtual_size, pc_regnum, or register_bytes.
4822         (D10V_PC_REGNUM): Rename _PC_REGNUM.
4823         (d10v_register_type): Use D10V_PC_REGNUM.
4824         (d10v_print_registers_info, d10v_read_pc): Ditto.
4825         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
4826         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
4827
4828 2003-05-02  David Carlton  <carlton@bactrian.org>
4829
4830         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
4831         the name with mstrsave.
4832
4833 2003-05-02  Elena Zannoni  <ezannoni@redhat.com>
4834
4835         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
4836         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
4837         (host_charset_name, target_charset_name): New vars for use by
4838         set/show commands.
4839         (host_charset_enum, target_charset_enum): New enums for set/show
4840         commands.
4841         (set_charset_sfunc, set_host_charset_sfunc,
4842         set_target_charset_sfunc): New functions.
4843         (set_host_charset, set_target_charset): Make static.
4844         (list_charsets, set_host_charset_command,
4845         set_target_charset_command): Delete functions.
4846         (show_charset_command): Rewrite as....
4847         (show_charset): Hook this up with the set/show command mechanism.
4848         (_initialize_charset): Change names of charsets to match the
4849         set/show enums. Use host_charset_name and target_charset_name.
4850         Use set/show mechanism for charset, host-charset, target-charset
4851         commands. Do not make 'show host-charset' and 'show
4852         target-charset' be aliases of 'show charset'.
4853
4854         * charset.h (set_host_charset, set_target_charset): Don't export,
4855         they are not used outside the file.
4856
4857 2003-05-01  Andrew Cagney  <cagney@redhat.com>
4858
4859         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
4860         (gdb_disassembly): Make "di" non static, always initialize and
4861         cleanup.  Always use dis_asm_read_memory.
4862         (gdb_dis_asm_read_memory): Delete function.
4863
4864 2003-05-01  Andrew Cagney  <cagney@redhat.com>
4865
4866         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
4867         (d10v_gdbarch_init): Set frame_align instead of stack_align.
4868
4869 2003-04-30  Andrew Cagney  <cagney@redhat.com>
4870
4871         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
4872         "tm_print_insn_info".
4873         (TARGET_PRINT_INSN_INFO): Delete macro.
4874         (dis_asm_read_memory): Delete function declaration.
4875         (dis_asm_memory_error, dis_asm_print_address): Ditto.
4876         (tm_print_insn_info): Delete variable definition.
4877         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
4878         * gdbarch.h, gdbarch.c: Re-generate.
4879         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
4880         "deprecated_tm_print_insn_info".
4881         * mcore-tdep.c (mcore_dump_insn): Ditto.
4882         * mips-tdep.c (mips_gdbarch_init): Ditto.
4883         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
4884         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
4885         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
4886         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
4887         instead of TARGET_PRINT_INSN_INFO, add comment.
4888         * s390-tdep.c (s390_get_frame_info): Instead of
4889         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
4890         (s390_check_function_end, s390_is_sigreturn): Ditto.
4891         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
4892         (dis_asm_memory_error, dis_asm_print_address): Ditto.
4893         * disasm.c: Include "gdbcore.h".
4894         (_initialize_disasm): New function, initialize
4895         "deprecated_tm_print_insn_info".
4896         (deprecated_tm_print_insn_info): New variable.
4897         (dis_asm_read_memory): Moved from "corefile.c", made static.
4898         (dis_asm_print_address, dis_asm_memory_error): Ditto.
4899         * Makefile.in (disasm.o): Update dependencies.
4900
4901 2003-04-30  Andrew Cagney  <cagney@redhat.com>
4902
4903         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
4904
4905 2003-04-29  Adam Fedor  <fedor@gnu.org>
4906
4907         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
4908         * infcall.c (find_function_addr): Make non-static.
4909         * infcall.h (find_function_addr): Declare.
4910         * Makefile.in (eval.o): Update dependencies.
4911
4912 2003-04-28  Adam Fedor  <fedor@gnu.org>
4913
4914         * symtab.c (symbol_find_demangled_name): Check for and demangle
4915         ObjC symbols.
4916         (symbol_init_demangled_name): Init for language_objc as well.
4917
4918 2003-04-28  Andrew Cagney  <cagney@redhat.com>
4919
4920         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
4921         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
4922         * gdbarch.h, gdbarch.c: Re-generate.
4923         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
4924         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
4925         * inferior.h (deprecated_read_fp): Rename read_fp.
4926         (generic_target_read_fp): Delete declaration.
4927         * regcache.c (generic_target_read_fp): Delete function.
4928         (deprecated_read_fp): Replace read_fp, use
4929         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
4930         * d10v-tdep.c (d10v_read_fp): Delete function.
4931         (d10v_gdbarch_init): Do not set deprecated_read_fp.
4932
4933         * sparc-tdep.c (sparc_gdbarch_init): Do not set
4934         deprecated_target_read_fp to generic_target_read_fp.
4935         * sh-tdep.c (sh_gdbarch_init): Ditto.
4936         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4937         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4938         * frv-tdep.c (frv_gdbarch_init): Ditto.
4939
4940         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
4941         deprecated_fp_regnum.
4942         * x86-64-tdep.c (x86_64_init_abi): Ditto.
4943         * vax-tdep.c (vax_gdbarch_init): Ditto.
4944         * v850-tdep.c (v850_gdbarch_init): Ditto.
4945         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4946         * sh-tdep.c (sh_gdbarch_init): Ditto.
4947         * s390-tdep.c (s390_gdbarch_init): Ditto.
4948         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4949         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4950         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4951         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4952         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4953         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4954         * i386-tdep.c (i386_gdbarch_init): Ditto.
4955         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4956         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4957         * frv-tdep.c (frv_gdbarch_init): Ditto.
4958         * cris-tdep.c (cris_gdbarch_init): Ditto.
4959         * avr-tdep.c (avr_gdbarch_init): Ditto.
4960         * arm-tdep.c (arm_gdbarch_init): Ditto.
4961         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4962
4963         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
4964         * v850-tdep.c (v850_gdbarch_init): Ditto.
4965         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4966         * sh-tdep.c (sh_gdbarch_init): Ditto.
4967         * s390-tdep.c (s390_gdbarch_init): Ditto.
4968         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4969         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4970         * mips-tdep.c (mips_gdbarch_init): Ditto.
4971         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4972         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4973         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4974         * frv-tdep.c (frv_gdbarch_init): Ditto.
4975         * avr-tdep.c (avr_gdbarch_init): Ditto.
4976         * arm-tdep.c (arm_gdbarch_init): Ditto.
4977
4978         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
4979         DEPRECATED_FP_REGNUM.
4980         (vax_push_dummy_frame, vax_pop_frame): Ditto.
4981         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
4982         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
4983         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
4984         (sparc32_register_virtual_type): Ditto.
4985         * sh-tdep.c (sh64_frame_chain): Ditto.
4986         (sh64_get_saved_register, sh64_pop_frame): Ditto.
4987         (sh_nofp_frame_init_saved_regs): Ditto.
4988         (sh64_nofp_frame_init_saved_regs): Ditto.
4989         (sh_fp_frame_init_saved_regs): Ditto.
4990         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4991         * remote-e7000.c (fetch_regs_from_dump): Ditto.
4992         * procfs.c (procfs_fetch_registers): Ditto.
4993         (procfs_store_registers): Ditto.
4994         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
4995         (store_inferior_registers, fetch_core_registers): Ditto.
4996         (fetch_kcore_registers, clear_regs): Ditto.
4997         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
4998         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
4999         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5000         * nlm/i386.c (do_status): Ditto.
5001         * mipsv4-nat.c (supply_gregset): Ditto.
5002         * mips-tdep.c: Ditto for comments.
5003         * mips-nat.c (fetch_inferior_registers): Ditto.
5004         (store_inferior_registers, fetch_core_registers): Ditto.
5005         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5006         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5007         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5008         (i386_do_pop_frame, i386_register_type): Ditto.
5009         * hppa-tdep.c (hppa_frame_chain): Ditto.
5010         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5011         (hppa_pop_frame, hppa_read_fp): Ditto.
5012         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5013         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5014         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5015         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5016         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5017         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5018         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5019         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5020         * blockframe.c: Ditto for comments.
5021         * arch-utils.h: Ditto for comments.
5022         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5023         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5024         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5025         * alpha-tdep.h: Ditto for comments.
5026         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5027         (alpha_cannot_store_register): Ditto.
5028         (alpha_push_dummy_frame): Ditto.
5029         * alpha-nat.c (supply_gregset): Ditto.
5030
5031         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5032         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5033         * config/sparc/tm-sparc.h: Update comment.
5034
5035         * hppa-tdep.c (hppa_init_extra_frame_info): Use
5036         deprecated_read_fp instead of TARGET_READ_FP.
5037         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5038         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5039         * sparc-tdep.c (sparc_init_extra_frame_info): Use
5040         deprecated_read_fp instead of read_fp.
5041         * s390-tdep.c (s390_push_arguments): Ditto.
5042         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5043         * frame.h: Ditto in comments.
5044         * frame.c (legacy_get_prev_frame): Ditto.
5045         * dummy-frame.c (dummy_frame_this_id): Ditto.
5046         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5047
5048 2003-04-28  Andrew Cagney  <cagney@redhat.com>
5049
5050         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5051         * gdbarch.h, gdbarch.c: Re-generate.
5052         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5053         * vax-tdep.c (_initialize_vax_tdep): Update.
5054         * v850-tdep.c (_initialize_v850_tdep): Update.
5055         * sparc-tdep.c (_initialize_sparc_tdep): Update.
5056         * s390-tdep.c (_initialize_s390_tdep): Update.
5057         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5058         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5059         * mips-tdep.c (_initialize_mips_tdep): Update.
5060         * mcore-tdep.c (_initialize_mcore_tdep): Update.
5061         * m68k-tdep.c (_initialize_m68k_tdep): Update.
5062         * ia64-tdep.c (_initialize_ia64_tdep): Update.
5063         * hppa-tdep.c (_initialize_hppa_tdep): Update.
5064         * h8300-tdep.c (_initialize_h8300_tdep): Update.
5065         * frv-tdep.c (_initialize_frv_tdep): Update.
5066         * cris-tdep.c (cris_delayed_get_disassembler): Update.
5067         (_initialize_cris_tdep): Update.
5068         * arch-utils.c (legacy_print_insn): Update.
5069         * alpha-tdep.c (_initialize_alpha_tdep): Update.
5070
5071 2003-04-26  Adam Fedor  <fedor@gnu.org>
5072
5073         * linespec.c (decode_objc): New function to decode ObjC calls
5074         (decode_line_1): Check for ObjC calls (using decode_objc)
5075         * Makefile (linespec.o): Update dependencies.
5076
5077 2003-04-26  Daniel Jacobowitz  <drow@mvista.com>
5078
5079         * breakpoint.h (struct breakpoint_ops): New.
5080         (struct breakpoint): Add ops member.
5081
5082         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5083         (mention): Use new breakpoint ops member.
5084         (set_raw_breakpoint): Initialize ops field to NULL.
5085         (print_exception_catchpoint, print_one_exception_catchpoint)
5086         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5087         (gnu_v3_exception_catchpoint_ops): New.
5088         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5089
5090 2003-04-25  Adam Fedor  <fedor@gnu.org>
5091
5092         * Makefile.in (COMMON_OBS): Add objc-lang.o
5093
5094 2003-04-25  Andrew Cagney  <cagney@redhat.com>
5095
5096         * d10v-tdep.c (print_insn): Delete function.
5097         (display_trace): Use TARGET_PRINT_INSN.
5098         (_initialize_d10v_tdep): Do not set tm_print_insn.
5099         (d10v_gdbarch_init): Set print_insn.
5100
5101 2003-04-25  Andrew Cagney  <cagney@redhat.com>
5102
5103         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5104         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5105         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5106         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5107         (nr_dmap_regs, a0_regnum): ... new functions.
5108         (d10v_print_registers_info): Use a0_regnum, use register_size.
5109         (d10v_register_byte): Delete function.
5110         (d10v_register_raw_size): Delete function.
5111         (d10v_register_type): Use a0_regnum.
5112         (d10v_print_registers_info): Use a0_regnum.
5113         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5114         (d10v_gdbarch_init): Do not set register_byte or
5115         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5116         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5117         extract_address.
5118         (trace_command): Use XCALLOC.
5119         (print_insn): Delete reference to tm_print_insn.
5120         (saved_regs_unwinder): Use store_unsigned_integer instead of
5121         store_address.
5122         * frame.h (FRAME_OBSTACK_CALLOC): Define
5123
5124 2003-04-25  David Carlton  <carlton@bactrian.org>
5125
5126         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5127
5128 2003-04-24  Adam Fedor  <fedor@gnu.org>
5129
5130         * objc-lang.c: Include "valprint.h"
5131         * Makefile.in (objc-lang.o): Update dependencies.
5132
5133 2003-04-24  Adam Fedor  <fedor@gnu.org>
5134
5135         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5136         architecture dependant compilation and mark as unimplemented
5137         (until they get put in the gdbarch vector).
5138
5139 2003-04-23  David Carlton  <carlton@bactrian.org>
5140
5141         * cp-support.c (cp_find_first_component): Accept 'operator' in
5142         more locations.
5143
5144 2003-04-23  Andrew Cagney  <cagney@redhat.com>
5145
5146         * infcall.c (call_function_by_hand): Eliminate redundant
5147         indentation.  Move "saved_async" and "old_cleanups" to where they
5148         are needed.
5149
5150 2003-04-23  Andrew Cagney  <cagney@redhat.com>
5151
5152         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5153         and "buffer".  Move the "name" code to where it is needed.
5154
5155 2003-04-23  Andrew Cagney  <cagney@redhat.com>
5156
5157         * infcall.c (call_function_by_hand): Move variables "start_sp",
5158         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5159         code to ON_STACK switch branch.
5160
5161 2003-04-23  Andrew Cagney  <cagney@redhat.com>
5162
5163         * infcall.c (call_function_by_hand): Make declaration of "i",
5164         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
5165         lint.
5166
5167 2003-04-23  Andrew Cagney  <cagney@redhat.com>
5168
5169         * infcall.c (call_function_by_hand): Delete variable
5170         "n_method_args".  Localize "param_type"'s declaration to the loop
5171         that it is used.  Reinstate code assigning to said variable -
5172         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
5173         Rationalize code using "param_type".
5174
5175 2003-04-22  Andrew Cagney  <cagney@redhat.com>
5176
5177         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5178         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
5179         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
5180         to DEPRECATED_PUSH_RETURN_ADDRESS.
5181
5182 2003-04-22  Kevin Buettner  <kevinb@redhat.com>
5183
5184         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5185         on the DWARF2 register number prior to fetching a register.
5186
5187 2003-04-22  J. Brobecker  <brobecker@gnat.com>
5188
5189         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5190         Update all the tests using SOFT_FLOAT considering the fact that
5191         this macro was always set to 0.
5192         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5193         considering the fact that this macro was always set to 0.
5194         * hppa-tdep.h (hppa_store_return_value): Likewise.
5195         (hppa_extract_return_value): Likewise.
5196
5197 2003-04-22  J. Brobecker  <brobecker@gnat.com>
5198
5199         * config/pa/tm-hppa.h: Remove obsolete code, was used by
5200         the hppa-pro target only.
5201
5202 2003-04-21  J. Brobecker  <brobecker@gnat.com>
5203
5204         Ongoing multi-arch conversion effort for HP/UX:
5205         * config/pa/tm-hppa.h: Move all macro that are no longer
5206         defined now that GDB_MULTI_ARCH is now set to 1 from here...
5207         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5208
5209 2003-04-21  J. Brobecker  <brobecker@gnat.com>
5210
5211         * config/pa/tm-hppa.h: Obsolete a section that was only used
5212         for hppa-pro.
5213
5214 2003-04-21  J. Brobecker  <brobecker@gnat.com>
5215
5216         Ongoing multi-arch conversion for HP/UX.
5217         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5218         if already defined (allows hppa64 to stay non-multiarched for now).
5219         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5220
5221 2003-04-21  Andrew Cagney  <cagney@redhat.com>
5222
5223         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5224
5225 2003-04-21  Andrew Cagney  <cagney@redhat.com>
5226
5227         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5228         "i386_num_mmx_regs".
5229
5230 2003-04-21  Andrew Cagney  <cagney@redhat.com>
5231
5232         * infcall.c: New file.
5233         * infcall.h: New file.
5234         * valarith.c: Include "infcall.h".
5235         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5236         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5237         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5238         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5239         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5240         (SFILES): Add "infcall.c"
5241         (COMMON_OBS): Add "infcall.o".
5242         (infcall.o): Specify dependencies.
5243         * value.h (call_function_by_hand): Delete declaration.
5244         * inferior.h (run_stack_dummy): Delete declaration.
5245         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5246         (run_stack_dummy): Move to "infcall.c", merged into
5247         call_function_by_hand.
5248         * valops.c (call_function_by_hand): Moved to "infcall.c".
5249         (find_function_addr, value_arg_coerce): Ditto.
5250         (unwindonsignal_p, coerce_float_to_double): Ditto.
5251         (_initialize_valops): Move "set/show coerce-float-to-double", and
5252         "set/show unwindonsignal" commands to "infcall.c".
5253         * v850-tdep.c, target.h: Update comments.
5254         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5255         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5256         (sh64_init_extra_frame_info): Update comments.
5257         * mn10300-tdep.c: Update comments.
5258         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5259         * config/sparc/tm-sparc.h: Update comments.
5260         * breakpoint.h: Update comments.
5261         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5262         * arm-tdep.c: Update comment.
5263
5264 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
5265
5266         * i386-tdep.c (i386_num_register_names): New variable.
5267         (i386_num_mmx_regs): Renamed from mmx_num_regs.
5268         (MM0_REGNUM): Remove redundant parentheses in define.
5269         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5270         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5271         i386_mxcsr_regnum_p): Remove redundant parentheses.
5272         (i386_register_name): Use i386_num_register_names.
5273
5274         * i386-tdep.c (i386_extract_return_value,
5275         i386_store_return_value): Correct check for availability of
5276         floating-point registers.
5277
5278         * i386-tdep.c (i386_frame_num_args): Remove function.
5279         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5280
5281         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5282         mmx_regnum_to_fp_regnum.  Adjust all callers.
5283
5284         * i386-tdep.c (i386_get_longjmp_target): Use
5285         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5286         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
5287         extract_address.
5288
5289 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
5290
5291         * core-regset.c: Update comments to reflect reality.  Re-order
5292         includes.
5293         (fetch_core_registers): Use switch instead of if.  Remove
5294         redundant prototype.
5295
5296 2003-04-18  Jim Blandy  <jimb@redhat.com>
5297
5298         * s390-tdep.c (s390_frame_align): New function.
5299         (s390_gdbarch_init): Register it with the gdbarch object.
5300
5301 2003-04-17  Richard Henderson  <rth@redhat.com>
5302
5303         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5304
5305 2003-04-17  Michael Snyder  <msnyder@redhat.com>
5306             Karen Bennet  <bennet@redhat.com>
5307
5308         Committed by Elena Zannoni  <ezannoni@redhat.com>
5309         * gdb_gcore.sh: New script to create a core dump of a process.
5310
5311 2003-04-17  Elena Zannoni  <ezannoni@redhat.com>
5312
5313         * values.c (value_being_returned): Don't fetch the return
5314         value if the return type is void.
5315
5316 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
5317
5318         * thread-db.c: Reindented.
5319
5320 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
5321
5322         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5323         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5324         as types.
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350 2003-04-16  Kevin Buettner  <kevinb@redhat.com>
5351
5352         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5353         the size of ``long double'' to 16, instead of 8.
5354
5355 2003-04-16  Mark Kettenis  <kettenis@gnu.org>
5356
5357         * i386-linux-nat.c: Add some whitespace to make things more
5358         readable.
5359         (fetch_register, store_register, fetch_inferior_registers,
5360         store_inferior_registers): Get rid of assignment in if-statement.
5361         (store_register): Fix typo in error message.
5362
5363 2003-04-16  Andrew Cagney  <cagney@redhat.com>
5364
5365         * utils.c (xmmalloc): Always allocate something, matches
5366         libiberty/xmalloc's semantics.
5367         (xmrealloc, xmcalloc): Ditto.
5368
5369 2003-04-16  Andrew Cagney  <cagney@redhat.com>
5370
5371         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5372         update comments.
5373         (get_frame_type): Initialize unwind and type when needed.
5374         (get_frame_id, frame_register_unwind): Ditto.
5375
5376 2003-04-16  Andrew Cagney  <cagney@redhat.com>
5377
5378         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5379         obsolete.
5380         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5381         * sparcl-stub.c: Obsolete file.
5382         * config/sparc/tm-sparclet.h: Obsolete file.
5383         * sparclet-stub.c: Obsolete file.
5384         * sparclet-rom.c: Obsolete file.
5385         * sparcl-tdep.c: Obsolete file.
5386         * config/sparc/tm-sparclite.h: Obsolete file.
5387         * config/sparc/sparclite.mt: Obsolete file.
5388         * config/sparc/sparclet.mt: Obsolete file.
5389         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5390         sparc86x-*-* obsolete.
5391
5392 2003-04-15  David Carlton  <carlton@math.stanford.edu>
5393
5394         * Makefile.in (SFILES): Add cp-namespace.c.
5395         (COMMON_OBS): Add cp-namespace.o.
5396         (block.o): Depend on gdb_obstack_h and cp_support_h.
5397         (buildsym.o): Depend on cp_support_h.
5398         (cp-namespace.o): New.
5399         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5400         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5401         (dwarf2read.o): Depend on cp_support_h.
5402         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5403         * dwarf2read.c (process_die): Set processing_has_namespace_info,
5404         processing_current_namespace.
5405         (read_namespace): Update processing_current_namespace; check for
5406         anonymous namespaces.
5407         (dwarf2_name): New function.
5408         (dwarf2_extension): Ditto.
5409         * cp-support.h: Update copyright, contributors.
5410         Add inclusion guards.
5411         Add opaque declaration for structs obstack, block, symbol.
5412         (struct using_direct): New struct.
5413         Add declarations for cp_find_first_component,
5414         cp_entire_prefix_len, processing_has_namespace_info,
5415         processing_current_namespace, cp_is_anonymous,
5416         cp_add_using_directive, cp_initialize_namespace,
5417         cp_finalize_namespace, cp_set_block_scope,
5418         cp_scan_for_anonymous_namespaces.
5419         * cp-namespace.c: New file.
5420         * cp-support.c: Update copyright.
5421         Include ctype.h, gdb_assert.h, gdbcmd.h.
5422         New variable maint_cplus_cmd_list.
5423         (cp_find_first_component): New function.
5424         (cp_entire_prefix_len, maint_cplus_command)
5425         (first_component_command, _initialize_cp_support): Ditto.
5426         * buildsym.c: Include cp-support.h.
5427         New variable using_list.
5428         (add_symbol_to_list): Check for anonymous namespaces.
5429         (finish_block): Set block's scope.
5430         (start_symtab): Initialize C++ namespace support.
5431         (end_symtab): Finalize C++ namespace support.
5432         * block.h: Add opaque declarations for structs
5433         block_namespace_info, using_direct, and obstack.
5434         Add declarations for block_set_scope and block_set_using.
5435         (struct block): Add 'language_specific' member.
5436         (BLOCK_NAMESPACE): New macro.
5437         * block.c: Include gdb_obstack.h and cp-support.h.
5438         (struct block_namespace_info): New struct.
5439         (block_set_scope): New function.
5440         (block_set_using, block_initialize_namespace): Ditto.
5441
5442 2003-04-14  Kevin Buettner  <kevinb@redhat.com>
5443
5444         * solib-svr4.c (svr4_have_link_map_offsets): New function.
5445         (locate_base): Return early if there aren't any link map offsets.
5446         (svr4_solib_create_inferior_hook): Warn if shared library support
5447         is unavailable.
5448
5449 2003-04-14  David Carlton  <carlton@math.stanford.edu>
5450
5451         * symtab.c (symbol_set_names): Add prefix when storing Java names
5452         in hash table.  Fix for PR java/1039.
5453
5454 2003-04-14  David Carlton  <carlton@math.stanford.edu>
5455
5456         * symtab.c (symbol_set_names): Rename 'name' arg to
5457         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5458         * symtab.h: Change 'name' argument in declaration of
5459         symbol_set_names to 'linkage_name'.
5460         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5461
5462 2003-04-14  Andrew Cagney  <cagney@redhat.com>
5463
5464         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5465         return the fully sign-extended register value.
5466         (get_frame_pointer): Ditto.
5467         (mips_pop_frame): Initialize "proc_desc" after checking for a
5468         dummy frame.
5469
5470 2003-04-14  Andrew Cagney  <cagney@redhat.com>
5471
5472         * mips-tdep.c (mips_push_dummy_frame): Delete function.
5473         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5474         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5475         (mips_push_register): Delete function.
5476         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5477         PUSH_FP_REGNUM.
5478
5479 2003-04-14  Jim Blandy  <jimb@redhat.com>
5480
5481         * symmisc.c: #include "gdb_regex.h".
5482         (maintenance_list_symtabs, maintenance_list_psymtabs): New
5483         functions.
5484         * maint.c (maintenance_list_command): New function.
5485         (_initialize_maint_cmds): Register the above as commands.
5486         * symtab.h (maintenance_list_symtabs,
5487         maintenance_list_psymtabs): New declarations.
5488         * cli/cli-cmds.c (maintenancelistlist): New variable.
5489         (init_cmd_lists): Initialize it.
5490         * cli/cli-cmds.h (maintenancelistlist): New declaration.
5491         * gdbcmd.h (maintenancelistlist): New declaration.
5492         * Makefile.in (symmisc.o): Update dependencies.
5493
5494 2003-04-14  Elena Zannoni  <ezannoni@redhat.com>
5495
5496         * s390-nat.c: Include asm/types.h for addr_t.
5497
5498 2003-04-14  Corinna Vinschen  <vinschen@redhat.com>
5499
5500         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5501         actually incoming type.
5502
5503 2003-04-13  Andrew Cagney  <cagney@redhat.com>
5504
5505         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5506         get_next_frame and get_frame_saved_regs.
5507
5508 2003-04-13  Andrew Cagney  <cagney@redhat.com>
5509
5510         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5511         of gdbarch_num_regs.
5512
5513 2003-04-13  Andrew Cagney  <cagney@redhat.com>
5514
5515         * frame.h: Mention what replaced what in "struct frame_info".
5516         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5517         deprecated_update_frame_base_hack and
5518         deprecated_update_frame_pc_hack.
5519         * hppa-tdep.c: Ditto.
5520
5521 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
5522
5523         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5524         to read_reg and update its comment.  Remove regnum member.
5525         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5526         Don't call read_reg when setting in_reg.  Call read_reg to get
5527         the frame base if it's in a register.  Return the register number
5528         on the stack instead of in the context.  Remove extra arguments
5529         to read_reg.
5530         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5531         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
5532         the register number on the expression stack.
5533         (needs_frame_read_reg): Remove extra arguments.
5534
5535 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
5536
5537         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5538         made non-static.
5539         (execute_stack_op): All callers updated.
5540         * dwarf2expr.h: Add prototype for dwarf2_read_address.
5541         * dwarf2loc.c (find_location_expression): New function.
5542         (dwarf_expr_frame_base): Call it.
5543         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5544         (dwarf2_tracepoint_var_ref): New function, broken out from
5545         locexpr_tracepoint_var_ref.
5546         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5547         Make static.
5548         (loclist_read_variable, loclist_read_needs_frame): New functions.
5549         (loclist_describe_location, loclist_tracepoint_var_ref): New
5550         functions.
5551         (dwarf2_loclist_funcs): New struct location_funcs.
5552         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5553         (struct dwarf2_locexpr_baton): Add comments.
5554         (dwarf2_loclist_funcs): New extern.
5555         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5556         base_address and base_known.
5557         (dwarf_loc_buffer): New variable.
5558         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5559         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5560         (dwarf2_has_info): Initialize dwarf_loc_offset.
5561         (dwarf2_build_psymtabs): Read in .debug_loc.
5562         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5563         DWARF_LOC_SIZE.
5564         (psymtab_to_symtab_1): Likewise.  Move base address calculation
5565         here, from...
5566         (dwarf2_get_pc_bounds): ... here.  Use the base address from
5567         cu_header.
5568         (dwarf2_symbol_mark_computed): Handle location lists.
5569
5570 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
5571
5572         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5573         if the linkage name demangled successfully.
5574
5575 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
5576
5577         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5578         disassmbly_flavour): Removed.
5579
5580         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5581
5582 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
5583
5584         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5585
5586 2003-04-12  Andrew Cagney  <cagney@redhat.com>
5587
5588         * frame.h (struct frame_info): Move definition from here ...
5589         * frame.c (struct frame_info): ... to here.
5590
5591 2003-04-12  Andrew Cagney  <cagney@redhat.com>
5592
5593         * gdbthread.h (save_infrun_state): Delete parameter
5594         "prev_func_start".
5595         (struct thread_info): Delete field "prev_func_start".
5596         (load_infrun_state): Ditto.
5597         * thread.c (load_infrun_state, save_infrun_state): Update.
5598         * infrun.c (prev_func_start): Delete variable.
5599         (context_switch, init_wait_for_inferior): Update.
5600         (stop_stepping, keep_going): Update.
5601
5602 2003-04-12  Andrew Cagney  <cagney@redhat.com>
5603
5604         * gdbarch.sh: Add missing opaque declarations.
5605         * gdbarch.h: Regnerate.
5606         * symtab.h: Add missing opaque declarations.
5607         * value.h, target.h, symfile.h, stabsread.h: Ditto.
5608         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
5609         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
5610         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
5611         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
5612         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
5613         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
5614         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
5615         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
5616         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
5617         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
5618         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
5619         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
5620
5621 2003-04-11  Andrew Cagney  <cagney@redhat.com>
5622
5623         * frame.c (get_frame_id): Return this frame's "id".
5624         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
5625         function start.
5626         (legacy_saved_regs_this_id): Replace function body with
5627         internal-error.
5628         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
5629         FRAME_OBSTACK_ZALLOC.
5630         (create_new_frame): Mark the frame ID as valid.
5631
5632 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
5633
5634         * Makefile.in (libbfd_h): Added missing setting.
5635         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
5636         according to the selected ABI.
5637
5638 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
5639
5640         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
5641
5642 2003-04-11  Andrew Cagney  <cagney@redhat.com>
5643
5644         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
5645         SAVED_PC_AFTER_CALL.
5646         * gdbarch.h, gdbarch.c: Regenerate.
5647         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5648         * x86-64-tdep.c (x86_64_init_abi): Update.
5649         * vax-tdep.c (vax_gdbarch_init): Update.
5650         * v850-tdep.c (v850_gdbarch_init): Update.
5651         * sparc-tdep.c (sparc_gdbarch_init): Update.
5652         * sh-tdep.c (sh_gdbarch_init): Update.
5653         * s390-tdep.c (s390_gdbarch_init): Update.
5654         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5655         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5656         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5657         * mips-tdep.c (mips_gdbarch_init): Update.
5658         * mcore-tdep.c (mcore_gdbarch_init): Update.
5659         * m68k-tdep.c (m68k_gdbarch_init): Update.
5660         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5661         * ia64-tdep.c (ia64_gdbarch_init): Update.
5662         (ia64_saved_pc_after_call): Update declaration.
5663         * i386ly-tdep.c (i386lynx_init_abi): Update.
5664         * i386-tdep.c (i386_gdbarch_init): Update.
5665         * hppa-tdep.c (hppa_gdbarch_init): Update.
5666         * h8300-tdep.c (h8300_gdbarch_init): Update.
5667         * frv-tdep.c (frv_gdbarch_init): Update.
5668         * cris-tdep.c (cris_gdbarch_init): Update.
5669         * avr-tdep.c (avr_gdbarch_init): Update.
5670         * arm-tdep.c (arm_gdbarch_init): Update.
5671         * alpha-tdep.c (alpha_gdbarch_init): Update.
5672         * ns32knbsd-nat.c (frame_num_args): Update.
5673         * ns32k-tdep.c (umax_frame_num_args): Update.
5674         * mips-tdep.c (mips_init_frame_pc_first): Update.
5675         * infrun.c (step_over_function): Update.
5676         * i386-linux-tdep.c (skip_hurd_resolver): Update.
5677         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
5678         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5679         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5680         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5681         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5682         * arm-linux-tdep.c (skip_hurd_resolver): Update.
5683         * arch-utils.c (init_frame_pc_default): Update.
5684         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5685         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
5686         declaration.
5687
5688 2003-04-11  Andrew Cagney  <cagney@redhat.com>
5689
5690         * i387-tdep.c: Update copyright.
5691         (i387_to_double): Delete function.
5692         (double_to_i387): Delete function.
5693
5694 2003-04-10  Andrew Cagney  <cagney@redhat.com>
5695
5696         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
5697         frame's function's address.  Simplify.
5698         (d10v_frame_unwind_cache): Check that the frame's function is
5699         non-zero.
5700
5701 2003-04-10  Jim Blandy  <jimb@redhat.com>
5702
5703         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
5704         call to set_gdbarch_deprecated_push_arguments.
5705
5706 2003-04-10  Andrew Cagney  <cagney@redhat.com>
5707
5708         * frame.c (fprint_frame_id): New function.
5709         (fprint_frame_type, fprint_frame): New function.
5710         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
5711         (create_sentinel_frame, get_frame_id): Ditto.
5712         (frame_id_p, frame_id_eq): Ditto.
5713         (frame_id_inner, create_new_frame): Ditto.
5714         (legacy_get_prev_frame, get_prev_frame): Ditto.
5715         (deprecated_update_frame_pc_hack): Ditto.
5716         (frame_register_unwind): Ditto.
5717         (deprecated_update_frame_base_hack): Ditto.
5718
5719 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
5720
5721         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
5722         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
5723         frame_chain function.
5724         * Makefile.in: Add dependencies due to above change.
5725
5726 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
5727
5728         * blockframe.c (legacy_frame_chain_valid): Move call to
5729         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
5730         inside_entry_file.
5731
5732 2003-04-09  Andrew Cagney  <cagney@redhat.com>
5733
5734         * frame.h (struct frame_id): Replace "pc" and "base" with
5735         "stack_addr" and "code_addr".  Update comments.
5736         (frame_id_build): Update parameter names and comment.
5737         (struct frame_info): Replace "id_p" and "id" with "this_id".
5738         * dummy-frame.c (dummy_frame_this_id): Update.
5739         * breakpoint.c (print_one_breakpoint): Update.
5740         * frame.c (get_frame_id): Update.
5741         (get_frame_base, frame_id_build): Update.
5742         (create_sentinel_frame, legacy_get_prev_frame): Update.
5743         (deprecated_update_frame_base_hack): Update.
5744         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
5745         (frame_id_inner): Ditto.
5746
5747 2003-04-09  Andrew Cagney  <cagney@redhat.com>
5748
5749         * defs.h (gdb_print_host_address): Make "addr" parameter a
5750         pointer constant.
5751         * utils.c (gdb_print_host_address): Update.
5752
5753 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
5754
5755         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
5756         register number for R0 is 0.
5757
5758 2003-04-09  J. Brobecker  <brobecker@gnat.com>
5759
5760         * frame.h (struct gdbarch): Add opaque structure definition
5761         to avoid a compilation warning on LynxOS 4.0.
5762
5763 2003-04-09  Andrew Cagney  <cagney@redhat.com>
5764
5765         * frame.h (struct frame_info): Delete field "pc".  Replace
5766         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
5767         structure.
5768         * frame.c (frame_pc_unwind): Update.
5769         (create_sentinel_frame): Do not set "pc".
5770         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
5771         (get_frame_pc): Call frame_pc_unwind.
5772         (deprecated_update_frame_pc_hack): Update.
5773         (create_new_frame): Use "pc" not "->pc".
5774
5775 2003-04-09  Andrew Cagney  <cagney@redhat.com>
5776
5777         * frame.c (get_frame_id): Eliminate code updating "frame".
5778         (legacy_get_prev_frame): Ditto.
5779         (get_frame_base): Return id.base directly.
5780         (deprecated_update_frame_base_hack): Update "id.base".
5781         * frame.h (struct frame_info): Delete field "frame".
5782
5783 2003-04-09  Andrew Cagney  <cagney@redhat.com>
5784
5785         * NEWS: Mention that the "Sequent family" is obsolete.
5786         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
5787         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5788         * configure.host: Obsolete i[3456]86-sequent-bsd*,
5789         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5790         * config/i386/tm-ptx4.h: Obsolete file.
5791         * config/i386/tm-ptx.h: Obsolete file.
5792         * symm-tdep.c: Obsolete file.
5793         * config/i386/symmetry.mt: Obsolete file.
5794         * config/i386/tm-symmetry.h: Obsolete file.
5795         * symm-nat.c: Obsolete file.
5796         * config/i386/nm-symmetry.h: Obsolete file.
5797         * config/i386/xm-symmetry.h: Obsolete file.
5798         * config/i386/symmetry.mh: Obsolete file.
5799         * config/i386/nm-ptx4.h: Obsolete file.
5800         * config/i386/ptx4.mh: Obsolete file.
5801         * config/i386/ptx.mt: Obsolete file.
5802         * config/i386/ptx.mh: Obsolete file.
5803         * config/i386/xm-ptx4.h: Obsolete file.
5804         * config/i386/xm-ptx.h: Obsolete file.
5805
5806 2003-04-09  Andrew Cagney  <cagney@redhat.com>
5807
5808         Obsolete mips*-*-mach3*.
5809         * NEWS: Mention that mips*-*-mach3* is obsolete.
5810         * m3-nat.c: Obsolete file.
5811         * config/nm-m3.h: Obsolete file.
5812         * config/mips/tm-mipsm3.h: Obsolete file.
5813         * config/mips/mipsm3.mt: Obsolete file.
5814         * config/mips/mipsm3.mh: Obsolete file.
5815         * config/mips/xm-mipsm3.h: Obsolete file.
5816         * mipsm3-nat.c: Obsolete file.
5817         * configure.host: Obsolete mips-dec-mach3*.
5818         * configure.tgt: Obsolete mips*-*-mach3*.
5819
5820 2003-04-09  Andrew Cagney  <cagney@redhat.com>
5821
5822         * doublest.h: Update copyright.
5823         (deprecated_store_floating, deprecated_extract_floating): Rename
5824         store_floating and extract_floating.  Update comments.
5825         * doublest.c: Update copyright.
5826         (extract_floating_by_length): Replace extract_floating.
5827         (store_floating_by_length): Replace store_floating.
5828         (deprecated_extract_floating): New function.
5829         (deprecated_store_floating): New function.
5830         (extract_typed_floating): Call extract_floating_by_length.
5831         (store_typed_floating): Call store_floating_by_length.
5832         * x86-64-tdep.c (x86_64_store_return_value): Update.
5833         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
5834         (sh64_extract_return_value): Update.
5835         (sh_sh4_register_convert_to_virtual): Update.
5836         (sh_sh64_register_convert_to_virtual): Update.
5837         (sh_sh4_register_convert_to_raw): Update.
5838         (sh_sh64_register_convert_to_raw): Update.
5839         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
5840         (rs6000_register_convert_to_raw): Update.
5841         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
5842         (ia64_register_convert_to_raw): Update.
5843         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
5844         (REGISTER_CONVERT_TO_VIRTUAL): Update.
5845         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
5846         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
5847         (alpha_register_convert_to_raw): Update.
5848
5849 2003-04-08  Andrew Cagney  <cagney@redhat.com>
5850
5851         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
5852         * gdbarch.h, gdbarch.c: Re-generate.
5853         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
5854         (d10v_gdbarch_init): Do not set saved_pc_after_call.
5855         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
5856         conditionally, use frame_pc_unwind as an alternative.  Add
5857         comments.
5858         * arch-utils.c (init_frame_pc_default): Only call
5859         SAVED_PC_AFTER_CALL when available.
5860
5861 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
5862
5863         * infrun.c (stop_soon): Rename from stop_soon_quietly.
5864         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
5865         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
5866         (start_remote): Ditto.
5867         (handle_inferior_event): Ditto.
5868         (save_inferior_status): Ditto.
5869         (restore_inferior_status): Ditto.
5870         * infcmd.c (attach_command): Ditto.
5871         * fork-child.c (startup_inferior): Ditto.
5872         * inferior.h (stop_soon): Rename from stop_soon_quietly.
5873         * alpha-tdep.c (heuristic_proc_start): Ditto.
5874         * mips-tdep.c (heuristic_proc_start): Ditto.
5875         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
5876         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
5877         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
5878         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
5879         * remote-vx.c (vx_create_inferior): Ditto.
5880
5881 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
5882
5883         * infrun.c (stop_soon_quietly): Make it an enum, to better
5884         override the default behavior of handle_inferior_event.
5885         (clear_proceed_status): Update uses of stop_soon_quietly to
5886         reflect that it is now an enum.
5887         (start_remote): Ditto.
5888         (handle_inferior_event): Change logic a bit if stop_soon_quietly
5889         is set to handle the new GNU/Linux kernel behavior for
5890         attach/sigstop.  Update uses of stop_soon_quietly.
5891         * inferior.h (enum stop_kind): New enum.
5892         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
5893         Reset normal handle_inferior_event behavior, afterwards.
5894         * fork-child.c (startup_inferior): Update.
5895         * alpha-tdep.c (heuristic_proc_start): Update.
5896         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
5897         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
5898         * solib-osf.c (osf_solib_create_inferior_hook): Update.
5899         * solib-irix.c (irix_solib_create_inferior_hook): Update.
5900         * remote-vx.c (vx_create_inferior): Update.
5901         * mips-tdep.c (heuristic_proc_start): Update.
5902
5903 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
5904
5905         * disasm.c (dump_insns):  Move variables inside loop, or they will
5906         be freed more than once, causing wild memory corruptions.
5907         (gdb_disassembly): Look for the substring "-thread",
5908         instead of "-threads" in the target name, to make sure to find
5909         the 'multi-thread' target.  Also, make sure we do the right thing
5910         with the "core" target.
5911
5912 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
5913
5914         * mips-tdep.c (mips_print_fp_register): New function, created from
5915         do_fp_register_row().  Registers are now (also) printed as hex.
5916         Only one register is printed per row.
5917         (mips_print_register, do_fp_register_row): Print floating point
5918         registers with mips_print_fp_register().
5919
5920 2003-04-06  Andrew Cagney  <cagney@redhat.com>
5921
5922         * valprint.h (inspect_it): Add extern declaration.
5923         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
5924         (selectors_info, classes_info): Ditto.
5925         (find_objc_msgcall): Fix indentation.
5926         (objc_printstr): Delete extern declarations.
5927
5928         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
5929
5930 2003-04-06  Andrew Cagney  <cagney@redhat.com>
5931
5932         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
5933         Update comment.
5934         * frame.c (legacy_saved_regs_this_id): Update.
5935         (legacy_get_prev_frame): Update.
5936         * xstormy16-tdep.c: Update comment.
5937         * sparc-tdep.c (sparc_frame_chain): Update comment.
5938         * blockframe.c (legacy_frame_chain_valid): Update.
5939
5940 2003-04-06  Andrew Cagney  <cagney@redhat.com>
5941
5942         * valprint.c (val_print_type_code_int): Delete #ifdef
5943         PRINT_TYPELESS_INTEGER code.
5944
5945         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
5946         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
5947         multi-arch definition.
5948         * gdbarch.h: Re-generate.
5949
5950 2003-04-05  Andrew Cagney  <cagney@redhat.com>
5951
5952         Eliminate FRAME_FIND_SAVED_REGS.
5953         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5954         Change FSR parameter to a pointer.
5955         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
5956         Assume FSR parameter is a pointer.
5957         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5958         Make fsr a pointer.
5959         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
5960         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
5961         saved_regs a pointer.
5962         (hppa_frame_saved_pc): Ditto.
5963         (find_dummy_frame_regs): Make frame_saved_regs a pointer
5964         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
5965         pointer.
5966         (restore_pc_queue): Make fsr a pointer.
5967         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
5968         (hppa_frame_chain): Make saved_regs a pointer, call
5969         hppa_frame_init_saved_regs.
5970         * sparc-tdep.c: Include "gdb_assert.h".
5971         (sparc_frame_find_saved_regs): Replace internal_error with
5972         gdb_assert.
5973         * remote-vxsparc.c (vx_read_register): Delete reference to
5974         FRAME_FIND_SAVED_REGS.
5975         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
5976         * gdbarch.h: Regenerate.
5977         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
5978         (deprecated_get_frame_saved_regs): Delete declaration.
5979         (struct frame_saved_regs): Delete definition.
5980         * frame.c (deprecated_get_frame_saved_regs): Delete function.
5981         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
5982         (hppa_frame_find_saved_regs): Delete declaration.
5983         (FRAME_FIND_SAVED_REGS): Delete macro.
5984         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
5985         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
5986         FRAME_FIND_SAVED_REGS in comment.
5987
5988 2003-04-05  Andrew Cagney  <cagney@redhat.com>
5989
5990         * frame.c (frame_func_unwind, get_frame_func): New functions.
5991         * frame.h (get_frame_func, frame_func_unwind): Declare.
5992         (struct frame_info): Add field "prev_func" for caching the
5993         previous frame's function address.
5994         * arm-tdep.c (arm_frameless_function_invocation): Combine
5995         get_pc_function_start and get_frame_pc into get_frame_func.
5996         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
5997         (sh64_nofp_frame_init_saved_regs): Ditto.
5998         * s390-tdep.c (s390_function_start): Ditto.
5999         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6000         (rs6000_frameless_function_invocation): Ditto.
6001         (rs6000_frame_saved_pc): Ditto.
6002         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6003         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6004         * i386-tdep.c (i386_frameless_signal_p): Ditto.
6005         (i386_frame_init_saved_regs): Ditto.
6006         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6007         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6008         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6009         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6010         * blockframe.c (frameless_look_for_prologue): Ditto.
6011
6012 2003-04-05  Andrew Cagney  <cagney@redhat.com>
6013
6014         * frame.c (legacy_get_prev_frame): Link prev to next at the
6015         function start.  Update comments.
6016
6017 2003-04-05  Andrew Cagney  <cagney@redhat.com>
6018
6019         * frame.c (get_frame_id): Update comment.
6020         (legacy_get_prev_frame): Update comment.
6021         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6022         * gdbarch.h: Regenerate.
6023         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6024         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6025
6026 2003-04-05  Andrew Cagney  <cagney@redhat.com>
6027
6028         * stack.c (print_frame_info): Use get_frame_pc.
6029
6030 2003-04-04  Andrew Cagney  <cagney@redhat.com>
6031
6032         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
6033         the frame's type from the unwinder.
6034         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6035         (create_new_frame, legacy_get_prev_frame): When the unwinder's
6036         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6037         (get_frame_base_address): Use get_frame_type.
6038         (get_frame_locals_address, get_frame_args_address): Ditto.
6039         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6040         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6041         (struct frame_info): Add comment explaining why the frame contains
6042         a "type" field.
6043         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6044         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6045         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6046         NORMAL_FRAME.
6047         * frame-unwind.h: Include "frame.h".
6048         (struct frame_unwind): Add "type" field.
6049         * Makefile.in (frame_unwind_h): Add $(frame_h).
6050
6051 2003-04-04  Andrew Cagney  <cagney@redhat.com>
6052
6053         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6054         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6055         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6056         get_frame_base.
6057         (d10v_unwind_dummy_id): Use frame_id_build.
6058         * frame.c (find_frame_sal): Use get_frame_pc.
6059         (create_new_frame): Use deprecated_update_frame_pc_hack and
6060         deprecated_update_frame_base_hack.
6061         (create_sentinel_frame): Add comment about ->pc going away.
6062         (get_prev_frame): Add comment about ->pc going away.
6063         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6064         frame_id_build, deprecated_update_frame_pc_hack and
6065         deprecated_update_frame_base_hack.
6066         (select_frame): Use get_frame_pc.
6067         (legacy_saved_regs_this_id): Use frame_id_build.
6068
6069 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
6070
6071         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6072         signed integer case.
6073         (classify_argument): Handle enumerations and references.
6074
6075 2003-04-04  Andrew Cagney  <cagney@redhat.com>
6076
6077         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6078         ID to NULL.
6079
6080 2003-04-01  Adam Fedor  <fedor@gnu.org>
6081
6082         * gdb/objc-lang.c (selectors_info): Replace calls to
6083         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6084         SYMBOL_NATURAL_NAME.
6085         (classes_info, find_methods): Likewise.
6086
6087 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
6088
6089         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6090         ``mach'' to the value determined by bfd_default_set_arch_mach().
6091
6092 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
6093
6094         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6095         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6096         (mi-cmd-file.o): Update dependencies.
6097
6098 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
6099
6100         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6101         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6102
6103 2003-04-01  Adam Fedor  <fedor@gnu.org>
6104
6105         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6106         * language.h (struct language_defn): Add la_demangle.
6107         (language_demangle): Declare.
6108         * language.c (language_demangle): New function.
6109         (unk_lang_demangle): Likewise.
6110         (unknown_language_defn, auto_language_defn, local_language_defn):
6111         Add ukn_lang_demangle.
6112         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6113         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6114         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6115         (cplus_language_defn): Add cplus_demangle for la_demangle element.
6116         * jv-lang.c (java_demangle): New function
6117         (java_language_defn): Use it for la_demangle element.
6118         * objc-lang.c (objc_demangle): Add options argument
6119         (objc_language_defn): Use objc_demangle for la_demangle element.
6120         * maint.c (maintenance_demangle): Replace switch with
6121         call to language_demangle.
6122         * utils.c (fprintf_symbol_filtered): Likewise.
6123
6124 2003-04-01  Andrew Cagney  <cagney@redhat.com>
6125
6126         * printcmd.c (print_frame_nameless_args): Delete #ifdef
6127         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6128         PRINT_TYPELESS_INTEGER.
6129         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6130         PUSH_RETURN_ADDRESS.
6131
6132 2003-04-01  Andrew Cagney  <cagney@redhat.com>
6133
6134         * Makefile.in (d10v-tdep.o): Update dependencies.
6135         * d10v-tdep.c: Include "frame-base.h".
6136         (d10v_frame_unwind): Make constant.
6137         (d10v_frame_base_address): New function.
6138         (d10v_frame_base): New variable.
6139         (d10v_gdbarch_init): Set frame_base default.
6140         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
6141         comment for base.
6142         (d10v_frame_unwind_cache): Set and use "prev_sp".
6143         (d10v_frame_this_id): Use the previous frame's inner most stack
6144         address and this frame's func address for the frame ID.  Use
6145         frame_id_build.  Don't analyze beyond the current instruction.
6146
6147 2003-04-01  Andrew Cagney  <cagney@redhat.com>
6148
6149         * frame.h (get_frame_locals_address, get_frame_args_address):
6150         Refer to the base address, instead of the address of the first
6151         local or parameter.
6152
6153 2003-04-01  Andrew Cagney  <cagney@redhat.com>
6154
6155         Add frame debug info addresses:
6156         * frame-base.c: New file.
6157         * frame-base.h: New file.
6158         * frame.h (struct frame_base): Add opaque declaration.
6159         (get_frame_base): Update comment.
6160         (get_frame_base_address): Declare.
6161         (get_frame_locals_address): Declare.
6162         (get_frame_args_address): Declare.
6163         (struct frame_info): Add "base" and "base_cache".  Update
6164         comments on the unwinder.
6165         * frame.c: Include "frame-base.h".
6166         (get_frame_locals_address): New function.
6167         (get_frame_base_address): New function.
6168         (get_frame_args_address): New function.
6169         * findvar.c (read_var_value): Use get_frame_locals_address and
6170         get_frame_args_address.
6171         * stack.c (frame_info): Use get_frame_locals_address and
6172         get_frame_args_address.
6173         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6174         moved to "frame-base.c".
6175         * printcmd.c (print_frame_nameless_args): Ditto.
6176         * symtab.h (address_class): Update comments.
6177         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6178         get_frame_base_address.
6179         * dwarf2expr.c (execute_stack_op): Ditto.
6180         * Makefile.in (frame_base_h): Define.
6181         (frame.o): Update dependencies.
6182         (frame-base.o): Add dependencies.
6183         (SFILES): Add frame-base.c.
6184         (COMMON_OBS): Add frame-base.o.
6185
6186 2003-04-01  Andrew Cagney  <cagney@redhat.com>
6187
6188         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6189         CALL_DUMMY_LENGTH): Ditto.
6190         * gdbarch.c: Re-generate.
6191         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6192         (CALL_DUMMY_LENGTH): Delete macro.
6193         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6194         * arm-tdep.c (arm_gdbarch_init): Ditto.
6195         * avr-tdep.c (avr_gdbarch_init): Ditto.
6196         * cris-tdep.c (cris_gdbarch_init): Ditto.
6197         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6198         * frv-tdep.c (frv_gdbarch_init): Ditto.
6199         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6200         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6201         * i386-tdep.c (i386_gdbarch_init): Ditto.
6202         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6203         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6204         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6205         * mips-tdep.c (mips_gdbarch_init): Ditto.
6206         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6207         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6208         * s390-tdep.c (s390_gdbarch_init): Ditto.
6209         * sh-tdep.c (sh_gdbarch_init): Ditto.
6210         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6211         * v850-tdep.c (v850_gdbarch_init): Ditto.
6212         * vax-tdep.c (vax_gdbarch_init): Ditto.
6213         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6214
6215 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
6216
6217         * frame.c (get_prev_frame): Disable call to inside_entry_file().
6218
6219 2003-04-01  Andrew Cagney  <cagney@redhat.com>
6220
6221         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6222         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6223         * gdbarch.h, gdbarch.c: Re-generate.
6224         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6225         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6226         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6227         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6228         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6229         * infcmd.c (run_stack_dummy): Simplify assuming
6230         CALL_DUMMY_BREAKPOINT_OFFSET_P.
6231         * infrun.c (handle_inferior_event): Ditto.
6232         * alpha-tdep.c (alpha_gdbarch_init): Do not set
6233         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6234         * arm-tdep.c (arm_gdbarch_init): Ditto.
6235         * avr-tdep.c (avr_gdbarch_init): Ditto.
6236         * cris-tdep.c (cris_gdbarch_init): Ditto.
6237         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6238         * frv-tdep.c (frv_gdbarch_init): Ditto.
6239         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6240         * i386-tdep.c (i386_gdbarch_init): Ditto.
6241         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6242         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6243         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6244         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6245         * mips-tdep.c (mips_gdbarch_init): Ditto.
6246         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6247         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6248         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6249         * s390-tdep.c (s390_gdbarch_init): Ditto.
6250         * sh-tdep.c (sh_gdbarch_init): Ditto.
6251         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6252         * v850-tdep.c (v850_gdbarch_init): Ditto.
6253         * vax-tdep.c (vax_gdbarch_init): Ditto.
6254         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6255
6256 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
6257
6258         * symfile.c (symfile_relocate_debug_section): Update call to
6259         bfd_simple_get_relocated_section_contents.
6260
6261 2003-03-31  Andrew Cagney  <cagney@redhat.com>
6262
6263         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6264         * gdbarch.h, gdbarch.c: Regenerate.
6265         * inferior.h (FIX_CALL_DUMMY): Delete macro.
6266         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6267         available.
6268         * frame.h (generic_fix_call_dummy): Delete declaration.
6269         * dummy-frame.h: Update comment.
6270         * dummy-frame.c (generic_fix_call_dummy): Delete function.
6271         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6272         fix_call_dummy.
6273         * sh-tdep.c (sh_gdbarch_init): Ditto.
6274         * s390-tdep.c (s390_gdbarch_init): Ditto.
6275         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6276         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6277         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6278         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6279         * i386-tdep.c (i386_gdbarch_init): Ditto.
6280         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6281         * frv-tdep.c (frv_gdbarch_init): Ditto.
6282         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6283         * cris-tdep.c (cris_gdbarch_init): Ditto.
6284         * avr-tdep.c (avr_gdbarch_init): Ditto.
6285         * arm-tdep.c (arm_gdbarch_init): Ditto.
6286
6287 2003-03-31  J. Brobecker  <brobecker@gnat.com>
6288
6289         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6290         (INIT_FRAME_AP): Likewise.
6291         (EXTRA_FRAME_INFO): Likewise.
6292
6293 2003-03-31  Andrew Cagney  <cagney@redhat.com>
6294
6295         * gdbarch.sh: Include "symfile.h".
6296         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6297         * gdbarch.h, gdbarch.c: Re-generate.
6298         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6299         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6300         call_dummy_address, the default is at entry_point_address.
6301         * v850-tdep.c (v850_gdbarch_init): Ditto.
6302         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6303         * sh-tdep.c (sh_gdbarch_init): Ditto.
6304         * s390-tdep.c (s390_gdbarch_init): Ditto.
6305         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6306         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6307         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6308         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6309         * i386-tdep.c (i386_gdbarch_init): Ditto.
6310         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6311         * frv-tdep.c (frv_gdbarch_init): Ditto.
6312         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6313         * cris-tdep.c (cris_gdbarch_init): Ditto.
6314         * arm-tdep.c (arm_gdbarch_init): Ditto.
6315
6316 2003-03-31  Andrew Cagney  <cagney@redhat.com>
6317
6318         * gdbarch.sh (CALL_DUMMY_P): Delete.
6319         * gdbarch.h, gdbarch.c: Re-generate.
6320         * inferior.h (CALL_DUMMY_P): Delete macro.
6321         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6322         * vax-tdep.c (vax_gdbarch_init): Update.
6323         * v850-tdep.c (v850_gdbarch_init): Update.
6324         * sparc-tdep.c (sparc_gdbarch_init): Update.
6325         * sh-tdep.c (sh_gdbarch_init): Update.
6326         * s390-tdep.c (s390_gdbarch_init): Update.
6327         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6328         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6329         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6330         * mips-tdep.c (mips_gdbarch_init): Update.
6331         * mcore-tdep.c (mcore_gdbarch_init): Update.
6332         * m68k-tdep.c (m68k_gdbarch_init): Update.
6333         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6334         * ia64-tdep.c (ia64_gdbarch_init): Update.
6335         * i386-tdep.c (i386_gdbarch_init): Update.
6336         * h8300-tdep.c (h8300_gdbarch_init): Update.
6337         * frv-tdep.c (frv_gdbarch_init): Update.
6338         * d10v-tdep.c (d10v_gdbarch_init): Update.
6339         * cris-tdep.c (cris_gdbarch_init): Update.
6340         * breakpoint.c (deprecated_frame_in_dummy): Update.
6341         * avr-tdep.c (avr_gdbarch_init): Update.
6342         * alpha-tdep.c (alpha_gdbarch_init): Update.
6343         * arm-tdep.c (arm_gdbarch_init): Update.
6344         * dummy-frame.c (dummy_frame_this_id): Update comments.
6345         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6346         * frame.c (legacy_get_prev_frame): Ditto.
6347         * valops.c (call_function_by_hand): Delete function.
6348         (hand_function_call): Rename to call_function_by_hand
6349
6350 2003-03-30  Andrew Cagney  <cagney@redhat.com>
6351
6352         2002-11-10 Klee Dienes <kdienes@apple.com>
6353         * value.h (struct value): Update comment.
6354
6355 2003-03-30  Andrew Cagney  <cagney@redhat.com>
6356
6357         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6358         D10V_FP_REGNUM.
6359         (d10v_gdbarch_init): Do not set fp_regnum.
6360
6361         * frame.c (get_frame_base): Force ID initialization.
6362         (get_prev_frame): Move computation of the frame ID from here ...
6363         (get_frame_id): ... to here.
6364         (legacy_get_prev_frame): Mark the frame ID as valid.
6365         * frame.h (struct frame_info): Add field "id_p".
6366
6367 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
6368
6369         * i386-tdep.c (i386_store_struct_return): Removed.
6370         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6371
6372 2003-03-30  Andrew Cagney  <cagney@redhat.com>
6373
6374         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6375         * gdbarch.h, gdbarch.c: Regenerate.
6376         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6377         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6378         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6379         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6380         * i386-tdep.c (i386_gdbarch_init): Ditto.
6381         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6382         * cris-tdep.c (cris_gdbarch_init): Ditto.
6383         * vax-tdep.c (vax_gdbarch_init): Ditto.
6384         * s390-tdep.c (s390_gdbarch_init): Ditto.
6385         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6386         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6387         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6388         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6389         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6390         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6391         * sparc-tdep.c (sparc_gdbarch_init): Update.
6392         * sh-tdep.c (sh_gdbarch_init): Update.
6393         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6394         * mips-tdep.c (mips_gdbarch_init): Update.
6395         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6396         * ia64-tdep.c (ia64_gdbarch_init): Update.
6397         * frv-tdep.c (frv_gdbarch_init): Update.
6398         * avr-tdep.c (avr_gdbarch_init): Update.
6399         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6400         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
6401         instead of when push_dummy_call is not available.
6402
6403 2003-03-30  Andrew Cagney  <cagney@redhat.com>
6404
6405         * infttrace.c: Include "gdbthread.h".
6406         (parent_attach_all): Fix function signature.
6407         (call_ptrace): Update call.
6408         * Makefile.in (infttrace.o): Update dependencies.
6409
6410 2003-03-30  Andrew Cagney  <cagney@redhat.com>
6411
6412         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6413         PUSH_RETURN_ADDRESS.
6414         * gdbarch.h, gdbarch.c: Regenerate.
6415         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6416         * x86-64-tdep.c (x86_64_init_abi): Update.
6417         * v850-tdep.c (v850_gdbarch_init): Update.
6418         * sparc-tdep.c (sparc_gdbarch_init): Update.
6419         * sh-tdep.c (sh_gdbarch_init): Update.
6420         * s390-tdep.c (s390_gdbarch_init): Update.
6421         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6422         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6423         * mips-tdep.c (mips_gdbarch_init): Update.
6424         * mcore-tdep.c (mcore_gdbarch_init): Update.
6425         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6426         * ia64-tdep.c (ia64_gdbarch_init): Update.
6427         * i386-tdep.c (i386_gdbarch_init): Update.
6428         * h8300-tdep.c (h8300_gdbarch_init): Update.
6429         * frv-tdep.c (frv_gdbarch_init): Update.
6430         * cris-tdep.c (cris_gdbarch_init): Update.
6431         * avr-tdep.c (avr_gdbarch_init): Update.
6432         * arm-tdep.c (arm_gdbarch_init): Update.
6433         * valops.c (hand_function_call): Update.
6434
6435 2003-03-29  Andrew Cagney  <cagney@redhat.com>
6436
6437         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6438         sizeof_call_dummy_words.
6439         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6440         define.
6441         * gdbarch.h: Regenerate.
6442
6443 2003-03-29  Andrew Cagney  <cagney@redhat.com>
6444
6445         * infttrace.h: New file.
6446         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6447         (hpread_get_textlow): Detect an uninitialized dn_bufp.
6448         (hpread_read_doc_function_type): Detect an initialized type1.
6449         (hpread_quick_traverse): Initialize mod_name_string.
6450         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6451         (som_solib_get_solib_by_pc): Declare.
6452         (so_lib_thread_start_addr): Declare.
6453         (no_shared_libraries): Declare.
6454         * somread.c (init_import_symbols): Make static.  Add forward
6455         declaration.
6456         * config/pa/nm-hppah.h: Include "infttrace.h" for
6457         parent_attach_all.
6458         (hppa_insert_hw_watchpoint): Declare.
6459         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6460         * hppah-nat.c: Include "gdb_string.h".
6461         (parent_attach_all): Delete extern declaration, moved to
6462         "infttrace.h".
6463         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6464         int.
6465         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6466         * Makefile.in (infttrace_h): Define.
6467         (hpread.o): Update dependencies.
6468         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6469         * hppa-hpux-tdep.c: Include "gdb_string.h".
6470         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6471         * infrun.c (handle_inferior_event): Always initialize
6472         stepped_after_stopped_by_watchpoint.  Add default and remove
6473         fallthrough in switch statement.
6474         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6475         parameter to int.
6476         (hppa_remove_hw_watchpoint): Ditto.
6477
6478 2003-03-29  Andrew Cagney  <cagney@redhat.com>
6479
6480         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6481         offset.
6482
6483 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
6484
6485         * arm-tdep.c (arm_push_arguments): Delete.
6486         (struct stack_item): New type.
6487         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6488         (arm_store_struct_return): Delte.
6489         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
6490         arm_push_arguments or arm_store_struct_return.
6491
6492 2003-03-28  Andrew Cagney  <cagney@redhat.com>
6493
6494         * Makefile.in (d10v-tdep.o): Update dependencies.
6495         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6496         * d10v-tdep.c: Include "remote.h".
6497         (target_resume_hook): Delete extern declaration.
6498         (target_wait_loop_hook): Ditto.
6499         (tdisassemble_command): Eliminate assignment in "if" conditional.
6500         (d10v_ts2_register_sim_regno): Eliminate call to
6501         legacy_register_sim_regno.
6502         (d10v_ts3_register_sim_regno): Ditto.
6503
6504 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
6505
6506         * thread.c: Reindented.
6507         * lin-lwp.c: Ditto.
6508         * linux-proc.c: Ditto.
6509
6510 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
6511
6512         * MAINTAINERS (write after approval): Add myself.
6513
6514 2003-03-27  Theodore A. Roth  <troth@openavr.org>
6515
6516         * objc-exp.y: Add missing semi-colons.
6517
6518 2003-03-27  Andrew Cagney  <cagney@redhat.com>
6519
6520         * regcache.c (write_sp): Delete function and references.
6521         * inferior.h (write_sp): Delete declaration.
6522         * valops.c (hand_function_call): Replace write_sp with
6523         TARGET_WRITE_SP.
6524         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6525         (sparc_pop_frame): Ditto.
6526
6527 2003-03-27  Andrew Cagney  <cagney@redhat.com>
6528
6529         * NEWS: Mention removal of support for hppa*-*-bsd* and
6530         hppa*-*-osf* natives, and hppa*-*-pro* target.
6531         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6532         * config/pa/xm-pa.h: Obsolete file.
6533         * config/pa/xm-hppab.h: Obsolete file.
6534         * config/pa/nm-hppab.h: Obsolete file.
6535         * config/pa/tm-hppab.h: Obsolete file.
6536         * config/pa/tm-hppao.h: Obsolete file.
6537         * config/pa/nm-hppao.h: Obsolete file.
6538         * config/pa/tm-pro.h: Obsolete file.
6539         * config/pa/hppaosf.mt: Obsolete file.
6540         * config/pa/hppaosf.mh: Obsolete file.
6541         * config/pa/hppapro.mt: Obsolete file.
6542         * config/pa/hppabsd.mt: Obsolete file.
6543         * config/pa/hppabsd.mh: Obsolete file.
6544         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6545         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6546         hppa*-*-osf*.
6547
6548 2003-03-27  Andrew Cagney  <cagney@redhat.com>
6549
6550         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6551         push_arguments.  Don't set push_return_address or write_sp.
6552         (d10v_push_dummy_call): Replace d10v_push_arguments.
6553         (d10v_push_return_address, d10v_write_sp): Delete function,
6554         handled by push_dummy_call.
6555
6556 2003-03-26  Andrew Cagney  <cagney@redhat.com>
6557
6558         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6559         (push_dummy_call): New pure multi-arch replacement with gdbarch,
6560         regcache and dummy_addr parameters.
6561         * gdbarch.h, gdbarch.c: Re-generate.
6562         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6563         available; assume it will handle stack alignment and return
6564         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
6565         legacy_push_arguments.
6566         (legacy_push_arguments): Rename default_push_arguments.
6567         * value.h (legacy_push_arguments): Rename default_push_arguments.
6568         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6569         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6570         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6571         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6572         * config/i386/tm-symmetry.h: Update.
6573         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6574         * x86-64-tdep.c (x86_64_init_abi): Update.
6575         * v850-tdep.c (v850_gdbarch_init): Update.
6576         * sparc-tdep.c (sparc_gdbarch_init): Update.
6577         * sh-tdep.c (sh_gdbarch_init): Update.
6578         * s390-tdep.c (s390_gdbarch_init): Update.
6579         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6580         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6581         * mips-tdep.c (mips_gdbarch_init): Update.
6582         * mcore-tdep.c (mcore_gdbarch_init): Update.
6583         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6584         * ia64-tdep.c (ia64_gdbarch_init): Update.
6585         * i386-tdep.c (i386_gdbarch_init): Update.
6586         * hppa-tdep.c (hppa_gdbarch_init): Update.
6587         * h8300-tdep.c (h8300_gdbarch_init): Update.
6588         * frv-tdep.c (frv_gdbarch_init): Update.
6589         * d10v-tdep.c (d10v_gdbarch_init): Update.
6590         * cris-tdep.c (cris_gdbarch_init): Update.
6591         * avr-tdep.c (avr_gdbarch_init): Update.
6592         * arm-tdep.c (arm_gdbarch_init): Update.
6593         * arm-linux-tdep.c (arm_linux_init_abi): Update.
6594         * alpha-tdep.c (alpha_gdbarch_init): Update.
6595
6596 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
6597
6598         * signals/signals.c (do_target_signal_to_host): Correct realtime
6599         signal range test.
6600
6601 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
6602
6603         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6604         (struct sal_chain, map_catch_names): Remove.
6605         (catch_exception_command_1): Don't call
6606         handle_gnu_4_16_catch_command.
6607
6608 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
6609
6610         From Mark Dettinger <dettinge@de.ibm.com>:
6611         * dwarf2cfi.c (read_2u): Increment pointer by two.
6612
6613 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
6614
6615         * signals/signals.c: Fix typos in last change.
6616
6617 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
6618
6619         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
6620         not already defined.  Use __SIGRTMIN if available.
6621         (target_signal_from_host): Remove SIGRTMIN block.
6622         (do_target_signal_to_host): Remove SIGRTMIN block; check that
6623         the signal is within the realtime range.
6624
6625 2003-03-25  Adam Fedor  <fedor@gnu.org>
6626
6627         * Makefile.in (infrun.o): Add $(language_h)
6628         * infrun.c (handle_inferior_event): Use skip_language_trampoline
6629         for language specific trampolines.
6630         * language.h (struct language_defn): Add skip_trampoline.
6631         (skip_language_trampoline): Declare.
6632         * language.c (unk_lang_trampoline, skip_language_trampoline):
6633         New functions.
6634         (unknown_language_defn, auto_language_defn, local_language_defn):
6635         Add ukn_lang_trampoline.
6636         * ada-lang.c (ada_language_defn): Add NULL for language
6637         specific skip_trampoline.
6638         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
6639         scm-lang.c: Likewise.
6640         * objc-lang.c (objc_skip_trampoline): New function.
6641         (objc_language_defn): Add objc_skip_trampoline.
6642
6643 2003-03-25  Andrew Cagney  <cagney@redhat.com>
6644
6645         * frame.c (get_prev_frame): Delay validating a frame's ID -
6646         non-NULL, didn't go backwards - until an attempt to unwind it to
6647         the previous frame.
6648
6649 2003-03-25  Andrew Cagney  <cagney@redhat.com>
6650
6651         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
6652         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
6653         * gdbarch.h, gdbarch.c: Re-generate.
6654         * config/sparc/tm-sparc.h
6655         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
6656         * sparc-tdep.c (sparc_gdbarch_init): Set
6657         deprecated_extra_stack_alignment_needed.
6658         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6659         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
6660         extra_stack_alignment_needed.
6661         * v850-tdep.c (v850_gdbarch_init): Ditto.
6662         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6663         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6664         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6665         * cris-tdep.c (cris_gdbarch_init): Ditto.
6666         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6667         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6668
6669 2003-03-25  Andrew Cagney  <cagney@redhat.com>
6670
6671         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
6672         STORE_STRUCT_RETURN.
6673         * gdbarch.h, gdbarch.c: Regenerate.
6674         * d10v-tdep.c (d10v_store_struct_return): Delete function.
6675         (d10v_push_arguments): Set the struct return register.
6676         (d10v_gdbarch_init): Update.
6677         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6678         * x86-64-tdep.c (x86_64_init_abi): Update.
6679         * vax-tdep.c (vax_gdbarch_init): Update.
6680         * v850-tdep.c (v850_gdbarch_init): Update.
6681         * sparc-tdep.c (sparc_gdbarch_init): Update.
6682         * sh-tdep.c (sh_gdbarch_init): Update.
6683         * s390-tdep.c (s390_gdbarch_init): Update.
6684         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6685         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6686         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6687         * mips-tdep.c (mips_gdbarch_init): Update.
6688         * mcore-tdep.c (mcore_gdbarch_init): Update.
6689         * m68k-tdep.c (m68k_gdbarch_init): Update.
6690         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6691         * ia64-tdep.c (ia64_gdbarch_init): Update.
6692         * i386-tdep.c (i386_gdbarch_init): Update.
6693         * hppa-tdep.c (hppa_gdbarch_init): Update.
6694         * h8300-tdep.c (h8300_gdbarch_init): Update.
6695         * frv-tdep.c (frv_gdbarch_init): Update.
6696         * cris-tdep.c (cris_gdbarch_init): Update.
6697         * avr-tdep.c (avr_gdbarch_init): Update.
6698         * arm-tdep.c (arm_gdbarch_init): Update.
6699         * alpha-tdep.c (alpha_gdbarch_init): Update.
6700
6701 2003-03-25  Andrew Cagney  <cagney@redhat.com>
6702
6703         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
6704         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
6705         CALL_DUMMY_STACK_ADJUST with a predicate variable.
6706         * gdbarch.h, gdbarch.c: Regenerate.
6707         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6708         call_dummy_stack_adjust_p.
6709         * vax-tdep.c (vax_gdbarch_init): Ditto.
6710         * v850-tdep.c (v850_gdbarch_init): Ditto.
6711         * sh-tdep.c (sh_gdbarch_init): Ditto.
6712         * s390-tdep.c (s390_gdbarch_init): Ditto.
6713         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6714         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6715         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6716         * mips-tdep.c (mips_gdbarch_init): Ditto.
6717         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6718         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6719         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6720         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6721         * i386-tdep.c (i386_gdbarch_init): Ditto.
6722         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6723         * frv-tdep.c (frv_gdbarch_init): Ditto.
6724         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6725         * cris-tdep.c (cris_gdbarch_init): Ditto.
6726         * avr-tdep.c (avr_gdbarch_init): Ditto.
6727         * arm-tdep.c (arm_gdbarch_init): Ditto.
6728         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6729         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6730         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
6731         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6732         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
6733         call_dummy_stack_adjust_p.
6734         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
6735         (CALL_DUMMY_STACK_ADJUST): Delete macro.
6736         * sparc-tdep.c (sparc32_push_arguments): Update.
6737         * valops.c (hand_function_call): Update.
6738
6739 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
6740
6741         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
6742         set_gdbarch_char_signed.
6743
6744 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
6745
6746         PR cli/548
6747         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
6748
6749 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
6750
6751         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
6752         (_initialize_arm_tdep): Don't set tm_print_insn.
6753
6754 2003-03-24  Adam Fedor  <fedor@gnu.org>
6755
6756         * Makefile.in (YYOBJ): Add objc-exp.tab.o
6757         * objc-lang.h: Add multiple inclusion protection.
6758         (start_msglist, add_msglist, end_msglist): Additional declarations.
6759
6760 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
6761
6762         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
6763         value was renamed to ARM_FLOAT_SOFT_FPA.
6764
6765 2003-03-23  Andrew Cagney  <cagney@redhat.com>
6766
6767         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
6768         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
6769         * gdbarch.h, gdbarch.c: Regenerate.
6770         * valops.c (hand_function_call): Update.
6771         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6772         * frame.c (legacy_saved_regs_this_id): Update.
6773         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
6774         * dummy-frame.h: Update.
6775         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
6776         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6777         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
6778         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
6779         * config/m68k/tm-sun3.h: Update.
6780         * blockframe.c (inside_main_func, frame_chain_valid): Update.
6781         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6782         * x86-64-tdep.c (x86_64_init_abi): Update.
6783         * vax-tdep.c (vax_gdbarch_init): Update.
6784         * v850-tdep.c (v850_gdbarch_init): Update.
6785         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
6786         * sh-tdep.c (sh_gdbarch_init): Update.
6787         * s390-tdep.c (s390_gdbarch_init): Update.
6788         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
6789         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
6790         (frame_get_saved_regs): Update.
6791         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6792         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6793         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6794         * mips-tdep.c (mips_gdbarch_init): Update.
6795         * mcore-tdep.c (mcore_gdbarch_init): Update.
6796         * m68k-tdep.c (m68k_gdbarch_init): Update.
6797         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6798         * ia64-tdep.c (ia64_gdbarch_init): Update.
6799         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
6800         * i386-interix-tdep.c (i386_interix_init_abi): Update.
6801         (i386_interix_back_one_frame): Update.
6802         * hppa-tdep.c (hppa_gdbarch_init): Update.
6803         (hppa_init_extra_frame_info): Update.
6804         * h8300-tdep.c (h8300_gdbarch_init): Update.
6805         * frv-tdep.c (frv_gdbarch_init): Update.
6806         * cris-tdep.c (cris_gdbarch_init): Update.
6807         * avr-tdep.c (avr_gdbarch_init): Update.
6808         * arm-tdep.c (arm_gdbarch_init): Update.
6809         * alpha-tdep.c (alpha_gdbarch_init): Update.
6810
6811 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
6812
6813         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
6814         (arm_get_fp_model): Declare.
6815         * arm-tdep.c (fp_model_strings): New string array.
6816         (arm_fp_model, current_fp_model): New variables.
6817         (arm_get_fp_model): New function.
6818         (arm_set_fp): New function.
6819         (set_fp_model_sfunc): New function.
6820         (show_fp_model): New function.
6821         (_initialize_arm_tdep): Add new command to set/show the FPU.
6822         (arm_extract_return_value): Use arm_get_fp_model.
6823         (arm_store_return_value): Likewise.
6824         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
6825         to initialize the floating-point data types.
6826         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
6827         model is FPA.
6828
6829 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
6830
6831         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
6832         the current setting of each value.
6833         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
6834         new_set and new_show.  Use add_setshow_cmd_full and
6835         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
6836         commands and add new version as subcommands of "set/show arm".
6837
6838 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
6839
6840         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
6841         (set_arm_command, show_arm_command): New functions.
6842         (_initialize_arm_tdep): Add them.
6843         (num_disassembly_options): Renamed from num_flavor_options.
6844         (valid_disassembly_styles): Renamed from valid_flavors.
6845         (disassembly_style): Renamed from disassembly_flavor.
6846         (set_disassembly_style_sfunc): Renamed from
6847         set_disassembly_flavor_sfunc.
6848         (set_disassembly_style): Renamed from set_disassembly_flavor.
6849         (arm_othernames): Updated.
6850         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
6851         command.  Add "set/show arm disassembly" commands.  Deprecate
6852         "othernames" command.
6853
6854 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
6855
6856         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
6857         (arm-tdep.o): Depend on elf_arm_h.
6858
6859 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
6860
6861         * Makefile.in (coff_internal_h): Define.
6862         (arm-tdep.o): Update dependencies.
6863
6864 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
6865
6866         * arm-tdep.c (prologue_cache): Delete.
6867         (check_prologue_cache, save_prologue_cache): Delete.
6868         (arm_scan_prologue): Don't check or update the prologue_cache.
6869         (arm_gdb_arch_init): Don't initialize it.
6870         (_initialize_arm_tdep): Likewise.
6871
6872 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
6873
6874         * MAINTAINERS (tui): Maintainer of tui code.
6875
6876 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
6877
6878         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
6879         (i386-cygwin-tdep.o): Add dependencies.
6880         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
6881         * i386-cygwin-tdep.c: New file.
6882         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
6883         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
6884
6885 2003-03-20  Andrew Cagney  <cagney@redhat.com>
6886
6887         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
6888         (handle_inferior_event): Remove code calling
6889         DYNAMIC_TRAMPOLINE_NEXTPC.
6890
6891         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
6892         already has a full path.
6893
6894         * main.c (gdb_main): Return 1.
6895         (captured_main): Call error to report an invalid interpreter.
6896
6897         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6898         * alpha-osf1-tdep.c: Include "gdb_string.h".
6899
6900 2003-03-19  J. Brobecker  <brobecker@gnat.com>
6901
6902         Continuing work to convert the hppa targets to multiarch partial.
6903
6904         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
6905         method, now that hppa_push_dummy_frame has a conformant prototype.
6906         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
6907         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
6908         for the switch to multiarch partial.
6909
6910 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
6911
6912         * mdebugread.c (parse_symbol): For stEnd, we're done counting
6913         when iss is issNull.
6914
6915 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
6916
6917         * mips-tdep.c (mips_register_name): Fix fencepost error involving
6918         NUM_REGS bounds check.
6919
6920 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
6921
6922         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
6923         * mips-tdep.c (gdb_assert.h): Include.
6924         (mips_generic_reg_names, mips_processor_reg_names): Make static.
6925         (mips_register_name): Handle integer registers explicitly.  Add
6926         bounds checking.
6927         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
6928         (mips_lsi33k_reg_names): Don't list integer registers; they're
6929         handled by mips_register_name() now.
6930         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
6931         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
6932         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
6933         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
6934         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
6935
6936 2003-03-18  Andrew Cagney  <cagney@redhat.com>
6937
6938         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
6939         a void pointer.
6940         * gdbtypes.h (print_scalar_formatted): Update declaration.
6941         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
6942
6943 2003-03-18  J. Brobecker  <brobecker@gnat.com>
6944
6945         * infrun.c (observer.h): Add #include.
6946         (normal_stop): Add call to observer_notify_normal_stop.
6947         * Makefile.in (infrun.o): Add dependency on observer.h.
6948
6949 2003-03-18  J. Brobecker  <brobecker@gnat.com>
6950
6951         Continuing work to convert the hppa targets to multiarch partial.
6952         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
6953         parameter. Reformat comment.
6954         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
6955         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
6956         to match new profile.
6957
6958 2003-03-18  J. Brobecker  <brobecker@gnat.com>
6959
6960         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
6961         appear to be working in any case.
6962
6963 2003-03-18  J. Brobecker  <brobecker@gnat.com>
6964
6965         * observer.c (observer_test_first_observer): New static variable.
6966         (observer_test_second_observer): Likewise.
6967         (observer_test_third_observer): Likewise.
6968         (observer_test_first_notification_function): New static function.
6969         (observer_test_second_notification_function): Likewise.
6970         (observer_test_third_notification_function): Likewise.
6971
6972 2003-03-17  J. Brobecker  <brobecker@gnat.com>
6973
6974         * hppa-tdep.c (gdb_assert.h): Add missing #include.
6975         * somsolib.c (gdb_assert.h): Likewise.
6976         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
6977         (somsolib.o): Likewise.
6978
6979 2003-03-17  Andrew Cagney  <cagney@redhat.com>
6980
6981         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
6982         BFD.  Simplify setting of di.endian.
6983
6984 2003-03-17  Andrew Cagney  <cagney@redhat.com>
6985
6986         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
6987         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
6988
6989         From Elena Zannoni  <ezannoni@redhat.com>
6990         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
6991         vector and floating-point parameters.
6992         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
6993         convention.
6994         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
6995
6996 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
6997
6998         * MAINTAINERS: Remove my name from several maintainership roles.
6999
7000 2003-03-17  Andrew Cagney  <cagney@redhat.com>
7001
7002         Fix frame off-by-one bug.
7003         * frame-unwind.h (frame_this_id_ftype): Replace
7004         frame_unwind_id_ftype.
7005         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7006         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
7007         with "prev_register".
7008         * frame-unwind.c (frame_unwind_find_by_pc): Return
7009         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
7010         comment.
7011         * dummy-frame.c (cached_find_dummy_frame): Delete function.
7012         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7013         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7014         (dummy_frame_unwind): Update.
7015         * sentinel-frame.c (sentinel_frame_prev_register): Replace
7016         sentinel_frame_register_unwind.
7017         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7018         (sentinel_frame_unwinder): Update.
7019         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7020         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7021         * frame.c (create_sentinel_frame): Update. Initialize
7022         "prologue_cache" instead of "unwind_cache".
7023         (frame_register_unwind): Call this frame's prev_register with the
7024         next frame and this frame's prologue cache.
7025         (get_prev_frame): Simplify.  Always call prev frame's this_id with
7026         this frame and prev frame's prologue cache.  Document that this
7027         call is shifted one to the left when compared to the
7028         frame_register_unwind call.
7029         (legacy_saved_regs_prev_register): Replace
7030         frame_saved_regs_register_unwind.
7031         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7032         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7033         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7034         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7035         (d10v_frame_unwind): Update.
7036         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7037         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7038         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7039         "saved_regs" with "this_saved_regs".
7040
7041 2003-03-16  Andrew Cagney  <cagney@redhat.com>
7042
7043         * frame.c (frame_pop): Don't call target_store_registers.  Fix
7044         problem reported by Mark Kettenis.
7045
7046 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
7047
7048         * i386-tdep.c (i386_register_type): Renamed from
7049         i386_register_virtual_type.  Adjust function signature.
7050         (i386_gdbarch_init): Set register_type instead of
7051         deprecated_max_register_raw_size,
7052         deprecated_max_register_virtual_size and register_virtual_type.
7053
7054 2003-03-14  Andrew Cagney  <cagney@redhat.com>
7055
7056         * frame.c (get_prev_frame): When a legacy frame, always call
7057         legacy_get_prev_frame.  Simplify unwind code using assumption that
7058         the unwinder is new.
7059         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7060         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7061         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7062
7063 2003-03-14  Andrew Cagney  <cagney@redhat.com>
7064
7065         * frame.c (get_saved_register): Delete function.
7066         * frame.h (get_saved_register): Delete declaration.
7067         * xstormy16-tdep.c: Update comment.
7068         * regcache.h: Update comments.
7069         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7070         get_saved_register and extract_address, use
7071         frame_read_unsigned_register.
7072         (sparc_frame_saved_pc): Ditto.
7073         (sparc_get_saved_register): Instead of get_saved_register, use
7074         frame_register.
7075         (sparc_pop_frame): Ditto.
7076         * findvar.c: Update comments.
7077         (value_of_register): Call frame_register instead of
7078         get_saved_register.
7079         (value_from_register): Ditto.
7080         * config/sparc/tm-sparc.h: Update comment.
7081         * breakpoint.c: Update comment.
7082
7083 2003-03-14  Andrew Cagney  <cagney@redhat.com>
7084
7085         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7086         GET_SAVED_REGISTER.
7087         * gdbarch.h, gdbarch.c: Re-generate.
7088         * frame.h: Update comments.
7089         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7090         * x86-64-tdep.c (x86_64_init_abi): Update.
7091         * sparc-tdep.c (sparc_gdbarch_init): Update.
7092         * sh-tdep.c (sh_gdbarch_init): Update.
7093         * mips-tdep.c (mips_gdbarch_init): Update.
7094         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7095         * cris-tdep.c (cris_gdbarch_init): Update.
7096         * ia64-tdep.c (ia64_gdbarch_init): Update.
7097         * frame.c (frame_register): Update.
7098         (get_saved_register): Update.
7099         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7100
7101 2003-03-13  Andrew Cagney  <cagney@redhat.com>
7102
7103         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7104         * gdbarch.h, gdbarch.c: Regenerate.
7105         * valops.c (hand_function_call): Update comment.
7106         * stack.c (return_command): Update comment.
7107         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7108         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7109         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7110         * x86-64-tdep.c (x86_64_init_abi): Update.
7111         * vax-tdep.c (vax_gdbarch_init): Update.
7112         * v850-tdep.c (v850_gdbarch_init): Update.
7113         * sparc-tdep.c (sparc_gdbarch_init): Update.
7114         * sh-tdep.c (sh_gdbarch_init): Update.
7115         * s390-tdep.c (s390_gdbarch_init): Update.
7116         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7117         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7118         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7119         * mips-tdep.c (mips_gdbarch_init): Update.
7120         * mcore-tdep.c (mcore_gdbarch_init): Update.
7121         * m68k-tdep.c (m68k_gdbarch_init): Update.
7122         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7123         * ia64-tdep.c (ia64_gdbarch_init): Update.
7124         * i386-tdep.c (i386_gdbarch_init): Update.
7125         * hppa-tdep.c (hppa_gdbarch_init): Update.
7126         * h8300-tdep.c (h8300_gdbarch_init): Update.
7127         * frv-tdep.c (frv_gdbarch_init): Update.
7128         * cris-tdep.c (cris_gdbarch_init): Update.
7129         * avr-tdep.c (avr_gdbarch_init): Update.
7130         * arm-tdep.c (arm_gdbarch_init): Update.
7131         * alpha-tdep.c (alpha_gdbarch_init): Update.
7132
7133 2003-03-13  Andrew Cagney  <cagney@redhat.com>
7134
7135         * frame.c (legacy_frame_p): New function.
7136         (get_prev_frame): Use legacy_frame_p.
7137         * frame.h (legacy_frame_p): Declare.
7138
7139 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7140
7141         * MAINTAINERS (write after approval): Alphabetically
7142         listing corrected.
7143
7144 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7145
7146         * MAINTAINERS (write after approval): Add myself.
7147
7148 2003-03-12  Andrew Cagney  <cagney@redhat.com>
7149
7150         * frame.c (get_prev_frame): Rename the frame parameter to
7151         "this_frame".
7152         (get_next_frame, legacy_get_prev_frame): Ditto.
7153
7154 2003-03-12  Andrew Cagney  <cagney@redhat.com>
7155
7156         * frame.c (get_current_frame): Check target_has_registers before
7157         checking target_has_stack.
7158         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7159         instead of deprecated_selected_frame.
7160         * findvar.c (value_of_register): Pass "frame", not
7161         deprecated_selected_frame, to value_of_builtin_reg.
7162
7163 2003-03-12  Andrew Cagney  <cagney@redhat.com>
7164
7165         * regcache.c (regcache_cooked_write_signed): New function.
7166         (regcache_cooked_write_unsigned): New function.
7167         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7168         (regcache_cooked_read_signed): Fix regnum in range assertion.
7169         * regcache.h (regcache_cooked_write_signed): Declare.
7170         (regcache_cooked_write_unsigned): Declare.
7171
7172 2003-03-12  Andrew Cagney  <cagney@redhat.com>
7173
7174         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7175         * gdbarch.h, gdbarch.c: Re-generate.
7176         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7177         * x86-64-tdep.h: Update.
7178         * x86-64-tdep.c (x86_64_init_abi): Update.
7179         * v850-tdep.c (v850_gdbarch_init): Update.
7180         * sparc-tdep.c (sparc_gdbarch_init): Update.
7181         * sh-tdep.c (sh_gdbarch_init): Update.
7182         * s390-tdep.c (s390_gdbarch_init): Update.
7183         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7184         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7185         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7186         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7187         * mips-tdep.c (mips_gdbarch_init): Update.
7188         * mcore-tdep.c (mcore_gdbarch_init): Update.
7189         * m68k-tdep.c (m68k_gdbarch_init): Update.
7190         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7191         * ia64-tdep.c (ia64_gdbarch_init): Update.
7192         * i386-tdep.c (i386_gdbarch_init): Update.
7193         * i386-interix-tdep.c (i386_interix_init_abi): Update.
7194         * hppa-tdep.c (hppa_gdbarch_init): Update.
7195         * h8300-tdep.c (h8300_gdbarch_init): Update.
7196         * frv-tdep.c (frv_gdbarch_init): Update.
7197         * cris-tdep.c (cris_gdbarch_init): Update.
7198         * avr-tdep.c (avr_gdbarch_init): Update.
7199         * arm-tdep.c (arm_gdbarch_init): Update.
7200         * alpha-tdep.c (alpha_gdbarch_init): Update.
7201         * sh-tdep.c (sh_init_extra_frame_info): Update.
7202         (sh64_init_extra_frame_info): Update.
7203         * ns32knbsd-nat.c (frame_num_args): Update.
7204         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7205         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7206         (xstormy16_frame_chain_valid): Update.
7207         * vax-tdep.c (vax_saved_pc_after_call): Update.
7208         * v850-tdep.c (v850_frame_chain): Update.
7209         (v850_pop_frame): Update.
7210         (v850_init_extra_frame_info): Update.
7211         * sparc-tdep.c (setup_arbitrary_frame): Update.
7212         * ns32k-tdep.c (umax_frame_num_args): Update.
7213         * s390-tdep.c (s390_pop_frame_regular): Update.
7214         * mn10300-tdep.c (mn10300_frame_chain): Update.
7215         (mn10300_pop_frame_regular): Update.
7216         (mn10300_init_extra_frame_info): Update.
7217         * mips-tdep.c (mips_init_frame_pc_first): Update.
7218         (mips_frame_chain): Update.
7219         (mips_pop_frame): Update.
7220         * mcore-tdep.c (mcore_frame_chain): Update.
7221         (mcore_pop_frame): Update.
7222         (mcore_init_extra_frame_info): Update.
7223         * arch-utils.c (init_frame_pc_default): Update.
7224         * m68k-tdep.c (isi_frame_num_args): Update.
7225         (delta68_frame_num_args): Update.
7226         (news_frame_num_args): Update.
7227         * ia64-tdep.c (ia64_pop_frame_regular): Update.
7228         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7229         (alpha_frame_chain): Update.
7230         (alpha_pop_frame): Update.
7231         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7232         (hppa_init_extra_frame_info): Update.
7233         (hppa_frame_chain): Update.
7234         (hppa_frame_chain_valid): Update.
7235         * cris-tdep.c (cris_init_extra_frame_info): Update.
7236         * avr-tdep.c (avr_init_extra_frame_info): Update.
7237         * arm-tdep.c (arm_frame_chain_valid): Update.
7238         (arm_init_extra_frame_info): Update.
7239         (arm_pop_frame): Update.
7240         * frame.c (frame_pc_unwind): Update.
7241         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7242         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7243         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7244         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7245         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7246         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7247
7248 2003-03-12  Andrew Cagney  <cagney@redhat.com>
7249
7250         Eliminate the need for POP_FRAME.
7251         * frame.c (do_frame_unwind_register): New function.
7252         (frame_pop): When no POP_FRAME, pop the frame using register
7253         unwind and a scratch regcache.
7254         (frame_saved_regs_pop): Delete function.
7255         (trad_frame_unwinder): Update.
7256         * d10v-tdep.c (d10v_frame_pop): Delete function.
7257         (d10v_frame_unwind): Update.
7258         * sentinel-frame.c (sentinel_frame_pop): Delete function.
7259         (sentinel_frame_unwinder): Update.
7260         * dummy-frame.c (dummy_frame_pop): Delete function.
7261         (dummy_frame_unwind): Update.
7262         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7263         (struct frame_unwind): Update.
7264
7265 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
7266
7267         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7268         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7269         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7270         Do range checks on register number obtained from debugging info.
7271         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7272         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
7273         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7274         mapping function.
7275         (do_fp_register_row): Fix typo which caused double type to be
7276         used when attempting to unpack a float.
7277
7278 2003-03-11  J. Brobecker  <brobecker@gnat.com>
7279
7280         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7281
7282 2003-03-11  Andrew Cagney  <cagney@redhat.com>
7283
7284         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7285         frame.  Problem found by Corinna Vinschen.
7286
7287 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
7288
7289         * doublest.c (floatformat_from_length): Accept also
7290         the real size of 'long double' type.
7291
7292 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
7293
7294         From Klee Dienes <kdienes@apple.com>:
7295         * breakpoint.c (bpstat_copy): Copy the command lines as well
7296         as the old value, to match what is freed in bpstat_clear.
7297
7298 2003-03-10  David Carlton  <carlton@math.stanford.edu>
7299
7300         * minsyms.c (add_minsym_to_hash_table): Replace
7301         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7302         (compare_minimal_symbols, compact_minimal_symbols)
7303         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7304         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7305         of DEPRECATED_SYMBOL_MATCHES_NAME.
7306         (lookup_minimal_symbol_solib_trampoline): Ditto.
7307
7308 2003-03-10  Andrew Cagney  <cagney@redhat.com>
7309
7310         * regcache.h (regcache_cooked_read_ftype): Define.
7311         (regcache_save, regcache_restore): Add a cooked_read parameter.
7312         * regcache.c (regcache_save, regcache_restore): Update.
7313         (do_cooked_read): New function.
7314         (regcache_cpy): Pass do_cooked_read to regcache_save and
7315         regcache_restore.
7316
7317 2003-03-10  Andrew Cagney  <cagney@redhat.com>
7318
7319         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7320         * gdbarch.h, gdbarch.c: Re-generate.
7321         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7322         * x86-64-tdep.h: Update.
7323         * x86-64-tdep.c (x86_64_init_abi): Update.
7324         * v850-tdep.c (v850_gdbarch_init): Update.
7325         * sparc-tdep.c (sparc_gdbarch_init): Update.
7326         * sh-tdep.c (sh_gdbarch_init): Update.
7327         * s390-tdep.c (s390_gdbarch_init): Update.
7328         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7329         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7330         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7331         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7332         * mips-tdep.c (mips_gdbarch_init): Update.
7333         * mcore-tdep.c (mcore_gdbarch_init): Update.
7334         * m68k-tdep.c (m68k_gdbarch_init): Update.
7335         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7336         * ia64-tdep.c (ia64_gdbarch_init): Update.
7337         * i386-tdep.c (i386_gdbarch_init): Update.
7338         * i386-interix-tdep.c (i386_interix_init_abi): Update.
7339         * hppa-tdep.c (hppa_gdbarch_init): Update.
7340         * h8300-tdep.c (h8300_gdbarch_init): Update.
7341         * frv-tdep.c (frv_gdbarch_init): Update.
7342         * cris-tdep.c (cris_gdbarch_init): Update.
7343         * avr-tdep.c (avr_gdbarch_init): Update.
7344         * arm-tdep.c (arm_gdbarch_init): Update.
7345         * alpha-tdep.c (alpha_gdbarch_init): Update.
7346         * sh-tdep.c (sh_init_extra_frame_info): Update.
7347         (sh64_init_extra_frame_info): Update.
7348         * ns32knbsd-nat.c (frame_num_args): Update.
7349         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7350         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7351         (xstormy16_frame_chain_valid): Update.
7352         * vax-tdep.c (vax_saved_pc_after_call): Update.
7353         * v850-tdep.c (v850_frame_chain): Update.
7354         (v850_pop_frame): Update.
7355         (v850_init_extra_frame_info): Update.
7356         * sparc-tdep.c (setup_arbitrary_frame): Update.
7357         * ns32k-tdep.c (umax_frame_num_args): Update.
7358         * s390-tdep.c (s390_pop_frame_regular): Update.
7359         * mn10300-tdep.c (mn10300_frame_chain): Update.
7360         (mn10300_pop_frame_regular): Update.
7361         (mn10300_init_extra_frame_info): Update.
7362         * mips-tdep.c (mips_init_frame_pc_first): Update.
7363         (mips_frame_chain): Update.
7364         (mips_pop_frame): Update.
7365         * mcore-tdep.c (mcore_frame_chain): Update.
7366         (mcore_pop_frame): Update.
7367         (mcore_init_extra_frame_info): Update.
7368         * arch-utils.c (init_frame_pc_default): Update.
7369         * m68k-tdep.c (isi_frame_num_args): Update.
7370         (delta68_frame_num_args): Update.
7371         (news_frame_num_args): Update.
7372         * ia64-tdep.c (ia64_pop_frame_regular): Update.
7373         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7374         (alpha_frame_chain): Update.
7375         (alpha_pop_frame): Update.
7376         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7377         (hppa_init_extra_frame_info): Update.
7378         (hppa_frame_chain): Update.
7379         (hppa_frame_chain_valid): Update.
7380         * cris-tdep.c (cris_init_extra_frame_info): Update.
7381         * avr-tdep.c (avr_init_extra_frame_info): Update.
7382         * arm-tdep.c (arm_frame_chain_valid): Update.
7383         (arm_init_extra_frame_info): Update.
7384         (arm_pop_frame): Update.
7385         * frame.c (frame_pc_unwind): Update.
7386         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7387         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7388         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7389         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7390         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7391         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7392
7393 2003-03-10  Andrew Cagney  <cagney@redhat.com>
7394
7395         * gdbarch.sh (gdbarch_unwind_pc): New method.
7396         * gdbarch.h, gdbarch.c: Regenerate.
7397         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
7398         but use read_pc and FRAME_SAVED_PC as fall backs.
7399         (frame_saved_regs_pc_unwind): Delete function.
7400         (trad_frame_unwinder): Update.
7401         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7402         (struct frame_unwind): Update.
7403         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7404         (dummy_frame_unwind): Update.
7405         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7406         (sentinel_frame_unwinder): Update.
7407         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7408         (d10v_frame_unwind): Update.
7409         (d10v_unwind_pc): New function.
7410         (d10v_gdbarch_init): Set unwind_pc.
7411
7412 2003-03-10  Andrew Cagney  <cagney@redhat.com>
7413
7414         * gdbarch.h: Re-generate.
7415
7416         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7417         PC.
7418         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7419         the PC register.
7420
7421 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
7422
7423         * gdbarch.sh (save_dummy_frame_tos): Add comment.
7424
7425 2003-03-08  Andrew Cagney  <cagney@redhat.com>
7426
7427         * cli-out.c: Update copyright.
7428         (cli_out_data): Define typedef.  Use instead of ui_out_data.
7429
7430 2003-03-08  Andrew Cagney  <cagney@redhat.com>
7431
7432         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7433         the result.
7434
7435 2003-03-07  Andrew Cagney  <cagney@redhat.com>
7436
7437         * gdbarch.sh: Don't generate two macro definitions when an
7438         undefined macro taking no arguments.
7439         * gdbarch.h: Regenerate.
7440
7441 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
7442
7443         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7444         (x86_64_unwind_dummy_id): New functions.
7445         (x86_64_init_abi): Register these two new functions.
7446
7447 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
7448
7449         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7450         (x86_64_skip_prologue): Move prologue detection to
7451         separate function.
7452         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7453
7454 2003-03-05  Andrew Cagney  <cagney@redhat.com>
7455
7456         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7457         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7458         * frame.c (get_prev_frame): Restructure the frame ID unwind code
7459         to use unwind_dummy_id when a dummy frame.
7460         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7461         predicate.
7462         * gdbarch.h, gdbarch.c: Regneerate.
7463
7464 2003-03-05  Andrew Cagney  <cagney@redhat.com>
7465
7466         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7467         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7468         Do not use d10v_read_sp or d10v_read_fp when obtaining register
7469         values.
7470
7471 2003-03-05  Andrew Cagney  <cagney@redhat.com>
7472
7473         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7474         (struct d10v_unwind_cache): Delete field "frameless".  Replace
7475         "next_addr" with "sp_offset".  Add "r11_offset".
7476         (d10v_frame_unwind_cache): Update.
7477         (prologue_find_regs): Update.  When "mv r11, sp", save the
7478         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
7479         RN was saved in r11_offset.
7480
7481 2003-03-05  Andrew Cagney  <cagney@redhat.com>
7482
7483         * frame.c (deprecated_update_frame_pc_hack): Also update the the
7484         cached PC value in the next frame.
7485
7486 2003-03-05  Andrew Cagney  <cagney@redhat.com>
7487
7488         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7489         "id_unwind_cache" with "id".
7490         (frame_id_unwind): Delete declaration.
7491         * frame.c (frame_id_unwind): Delete function.
7492         (get_prev_frame): Call the frame id unwind method directly.  Store
7493         the returned next frame's ID value in NEXT_FRAME.  Note that there
7494         is a problem with the wrong unwind ID being called with the wrong
7495         unwind cache.
7496
7497 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
7498
7499         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7500
7501 2003-03-05  James Ingham <jingham@apple.com>
7502             Daniel Jacobowitz  <drow@mvista.com>
7503
7504         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7505         (auto_cp_abi): New variable.
7506         (current_cp_abi, num_cp_abis): Make static.
7507         (CP_ABI_MAX): Define.
7508         (cp_abis): Turn into an array.
7509         (value_virtual_fn_field): Fix formatting.
7510         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
7511         takes a pointer.
7512         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7513         (list_cp_abis, _initialize_cp_abi): New functions.
7514         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
7515         declarations for cp_abis, num_cp_abis, current_cp_abi, and
7516         switch_to_cp_abi.  Update prototype for register_cp_abi.
7517         * Makefile.in (cp-abi.o): Update dependencies.
7518         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7519         instead of switch_to_cp_abi.
7520         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
7521         register_cp_abi.
7522         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7523         register_cp_abi.
7524         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7525
7526 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
7527
7528         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7529         * dwarf2loc.c: Include "regcache.h".
7530         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
7531         register_size.
7532         * Makefile.in (dwarf2loc.o): Update dependencies.
7533
7534 2003-03-04  Theodore A. Roth  <troth@openavr.org>
7535
7536         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7537         number of io registers reported by remote target is not a multiple of
7538         step.
7539
7540 2003-03-04  David Carlton  <carlton@math.stanford.edu>
7541
7542         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7543         (lookup_symbol_aux_psymtabs): Update call to
7544         lookup_partial_symbol.
7545         (lookup_transparent_type, find_main_psymtab)
7546         (make_symbol_overload_list): Ditto.
7547
7548 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
7549
7550         * MAINTAINERS (Write after approval): Update my email address.
7551
7552 2003-03-03  Andrew Cagney  <cagney@redhat.com>
7553
7554         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7555         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7556         predicate.  Replace MAX_REGISTER_RAW_SIZE.
7557         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7558         MAX_REGISTER_VIRTUAL_SIZE.
7559         * regcache.c (legacy_max_register_raw_size): New function.
7560         (legacy_max_register_virtual_size): New function.
7561         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7562         (MAX_REGISTER_RAW_SIZE): Define.
7563         (legacy_max_register_raw_size): Declare.
7564         (legacy_max_register_virtual_size): Declare.
7565         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7566         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7567         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7568         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7569         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7570         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7571         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7572         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7573         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7574         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7575         * vax-tdep.c (vax_gdbarch_init): Update.
7576         * v850-tdep.c (v850_gdbarch_init): Update.
7577         * sparc-tdep.c (sparc_gdbarch_init): Update.
7578         * sh-tdep.c (sh_gdbarch_init): Update.
7579         * s390-tdep.c (s390_gdbarch_init): Update.
7580         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7581         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7582         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7583         * mips-tdep.c (mips_gdbarch_init): Update.
7584         * mcore-tdep.c (mcore_gdbarch_init): Update.
7585         * m68k-tdep.c (m68k_gdbarch_init): Update.
7586         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7587         * ia64-tdep.c (ia64_gdbarch_init): Update.
7588         * i386-tdep.c (i386_gdbarch_init): Update.
7589         * hppa-tdep.c (hppa_gdbarch_init): Update.
7590         * h8300-tdep.c (h8300_gdbarch_init): Update.
7591         * frv-tdep.c (frv_gdbarch_init): Update.
7592         * cris-tdep.c (cris_gdbarch_init): Update.
7593         * avr-tdep.c (avr_gdbarch_init): Update.
7594         * arm-tdep.c (arm_gdbarch_init): Update.
7595         * alpha-tdep.c (alpha_gdbarch_init): Update.
7596         * d10v-tdep.c (d10v_gdbarch_init): Do not set
7597         max_register_raw_size or max_register_virtual_size.
7598
7599 2003-03-03  David Carlton  <carlton@math.stanford.edu>
7600
7601         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7602         SYMBOL_MATCHES_NAME, add comment.
7603         (SYMBOL_MATCHES_NATURAL_NAME): New.
7604         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7605         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7606         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7607         * symtab.c (lookup_partial_symbol): Use
7608         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
7609         unhelpful comment.
7610         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
7611         SYMBOL_MATCHES_NAME.
7612         Fix for PR c++/33.
7613
7614 2003-03-03  David Carlton  <carlton@math.stanford.edu>
7615
7616         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
7617         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
7618         by regexp matching against SYMBOL_NATURAL_NAME.
7619
7620 2003-03-03  David Carlton  <carlton@math.stanford.edu>
7621
7622         * linespec.c (find_method): Extract code into collect_methods.
7623         (collect_methods): New.
7624
7625 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
7626
7627         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
7628         get_frame_base.
7629
7630         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
7631         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7632
7633 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
7634
7635         * arch-utils.c (generic_register_byte): Fix to use the loop index
7636         and not regnum when summing the size of all registers up to regnum.
7637
7638 2003-03-01  Andrew Cagney  <cagney@redhat.com>
7639
7640         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
7641         FRAME_INIT_SAVED_REGS.
7642         * gdbarch.h, gdbarch.c: Regenerate.
7643         * stack.c (frame_info): Update.
7644         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
7645         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
7646         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
7647         * ns32k-tdep.c (ns32k_pop_frame): Update.
7648         * mips-tdep.c (mips_pop_frame): Update.
7649         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
7650         * ia64-tdep.c (ia64_frame_chain): Update.
7651         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
7652         (ia64_frameless_function_invocation): Update.
7653         (ia64_init_extra_frame_info): Update.
7654         (ia64_pop_frame_regular): Update.
7655         * frame.h (struct frame_info): Update comment.
7656         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
7657         * frame.c (frame_saved_regs_register_unwind): Update.
7658         (frame_saved_regs_register_unwind): Update.
7659         (deprecated_generic_get_saved_register): Update.
7660         * cris-tdep.c: Update comment.
7661         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
7662         Rename macro.
7663         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7664         * x86-64-tdep.c (x86_64_init_abi): Update.
7665         * vax-tdep.c (vax_gdbarch_init): Update.
7666         * v850-tdep.c (v850_gdbarch_init): Update.
7667         * sparc-tdep.c (sparc_gdbarch_init): Update.
7668         * sh-tdep.c (sh_gdbarch_init): Update.
7669         * s390-tdep.c (s390_gdbarch_init): Update.
7670         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7671         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7672         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7673         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7674         * mips-tdep.c (mips_gdbarch_init): Update.
7675         * mcore-tdep.c (mcore_gdbarch_init): Update.
7676         * m68k-tdep.c (m68k_gdbarch_init): Update.
7677         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7678         * ia64-tdep.c (ia64_gdbarch_init): Update.
7679         * i386-tdep.c (i386_gdbarch_init): Update.
7680         * frv-tdep.c (frv_gdbarch_init): Update.
7681         * avr-tdep.c (avr_gdbarch_init): Update.
7682         * arm-tdep.c (arm_gdbarch_init): Update.
7683         * alpha-tdep.c (alpha_gdbarch_init): Update.
7684
7685 2003-03-01  Andrew Cagney  <cagney@redhat.com>
7686
7687         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
7688         option enum and switch.  When no windows, set the interpreter to
7689         INTERP_CONSOLE.
7690
7691 2003-03-01  Andrew Cagney  <cagney@redhat.com>
7692
7693         * main.c (captured_main): Replace magic option characters with an
7694         enum.
7695
7696 2003-03-01  Andrew Cagney  <cagney@redhat.com>
7697
7698         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
7699         INIT_EXTRA_FRAME_INFO.
7700         * gdbarch.h, gdbarch.c: Regenerate.
7701         * arm-tdep.c: Update comments.
7702         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
7703         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
7704         * frame.h, avr-tdep.c: Ditto.
7705         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
7706         (create_new_frame, legacy_get_prev_frame): Ditto.
7707         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7708         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7709         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
7710         deprecated_init_extra_frame_info instead of init_extra_frame_info.
7711         * x86-64-tdep.c (x86_64_init_abi): Ditto.
7712         * v850-tdep.c (v850_gdbarch_init): Ditto.
7713         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7714         * sh-tdep.c (sh_gdbarch_init): Ditto.
7715         * s390-tdep.c (s390_gdbarch_init): Ditto.
7716         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
7717         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7718         * mips-tdep.c (mips_gdbarch_init): Ditto.
7719         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7720         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7721         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7722         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7723         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7724         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7725         * frv-tdep.c (frv_gdbarch_init): Ditto.
7726         * cris-tdep.c (cris_gdbarch_init): Ditto.
7727         * avr-tdep.c (avr_gdbarch_init): Ditto.
7728         * arm-tdep.c (arm_gdbarch_init): Ditto.
7729         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7730         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7731
7732 2003-03-01  Andrew Cagney  <cagney@redhat.com>
7733
7734         * gdbarch.sh (register_type): New function with predicate.
7735         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
7736         * gdbarch.h, gdbarch.c: Re-generate.
7737         * arch-utils.c (generic_register_byte): Use generic_register_size.
7738         (generic_register_size): When available, use
7739         gdbarch_register_type.
7740         * regcache.c (init_regcache_descr): When available, initialize the
7741         register type array using gdbarch_register_type.  If the
7742         architecture supplies gdbarch_register_type, do not use the legacy
7743         regcache layout.
7744         * d10v-tdep.c (d10v_register_type): Replace
7745         d10v_register_virtual_type.
7746         (d10v_gdbarch_init): Set register_type instead of
7747         register_virtual_type.
7748
7749 2003-03-01  Andrew Cagney  <cagney@redhat.com>
7750
7751         * Makefile.in (ax-gdb.o): Update dependencies.
7752         * ax-gdb.c: Include "regcache.h".
7753         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
7754         * findvar.c (value_of_register): Ditto.
7755         * infcmd.c (default_print_registers_info): Ditto.
7756
7757 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
7758
7759         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
7760         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7761
7762 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
7763
7764         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
7765         of STREQ.
7766
7767 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
7768
7769         * Makefile.in (dwarf2loc.o): Update dependencies.
7770         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
7771         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
7772         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
7773         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
7774         (locexpr_tracepoint_var_ref): New function.
7775         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
7776
7777 2003-02-28  Andrew Cagney  <cagney@redhat.com>
7778
7779         * regcache.c (register_size): New function.
7780         * regcache.h (register_size): Declare
7781         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
7782         max_register_size instead of MAX_REGISTER_RAW_SIZE.
7783
7784 2003-02-28  David Carlton  <carlton@math.stanford.edu>
7785
7786         * linespec.c (decode_compound): Extract code into find_method.
7787         (find_method): New.
7788
7789 2003-02-28  J. Brobecker  <brobecker@gnat.com>
7790
7791         * Makefile.in: Add rules to build and link in observer.o.
7792
7793 2003-02-27  J. Brobecker  <brobecker@gnat.com>
7794
7795         * observer.c: Minor comments edits.
7796
7797 2003-02-27  J. Brobecker  <brobecker@gnat.com>
7798
7799         * observer.h, observer.c: New file.
7800
7801 2003-02-27  Andrew Cagney  <cagney@redhat.com>
7802
7803         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
7804
7805 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
7806
7807         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
7808         (M6812_OP_STS_EXT): Likewise.
7809         (m6811_prologue): Use the above to recognize prologue.
7810         (m6812_prologue): Likewise.
7811
7812 2003-02-27  David Carlton  <carlton@math.stanford.edu>
7813
7814         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
7815         SYMBOL_PRINT_NAME.
7816         (compare_psymbols): Ditto.
7817         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
7818
7819 2003-02-27  Michael Snyder  <msnyder@redhat.com>
7820
7821         * f-lang.c (build_fortran_types): New function.
7822         (_initialize_f_language): Gdbarch-register built-in fortran types.
7823         * doublest.c (extract_floating): Fix warning text.
7824
7825 2003-02-27  Andrew Cagney  <cagney@redhat.com>
7826
7827         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
7828         predicate.  Replaces PUSH_DUMMY_FRAME.
7829         * gdbarch.h, gdbarch.c: Regnerate.
7830         * valops.c (hand_function_call): Update.  Call
7831         generic_push_dummy_frame directly.
7832         * vax-tdep.c (vax_gdbarch_init): Update.
7833         * sparc-tdep.c (sparc_gdbarch_init): Update.
7834         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7835         * m68k-tdep.c (m68k_gdbarch_init): Update.
7836         * hppa-tdep.c (hppa_gdbarch_init): Update.
7837         * alpha-tdep.c (alpha_gdbarch_init): Update.
7838         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7839         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7840         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
7841         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
7842         push_dummy_frame to generic_push_dummy_frame.
7843         * v850-tdep.c (v850_gdbarch_init): Ditto.
7844         * sh-tdep.c (sh_gdbarch_init): Ditto.
7845         * s390-tdep.c (s390_gdbarch_init): Ditto.
7846         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7847         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7848         * mips-tdep.c (mips_gdbarch_init): Ditto.
7849         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7850         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7851         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7852         * i386-tdep.c (i386_gdbarch_init): Ditto.
7853         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7854         * frv-tdep.c (frv_gdbarch_init): Ditto.
7855         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7856         * cris-tdep.c (cris_gdbarch_init): Ditto.
7857         * avr-tdep.c (avr_gdbarch_init): Ditto.
7858         * arm-tdep.c (arm_gdbarch_init): Ditto.
7859
7860 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
7861
7862         * mips-tdep.c (show_mips_abi): New function.
7863         (_initialize_mips_tdep): Use show_mips_abi() to implement the
7864         command ``show mips abi''.
7865
7866 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
7867
7868         From Elena Zannoni  <ezannoni@redhat.com>
7869         * dbxread.c (process_one_symbol): Only record line 0 if one or
7870         more sline entries have been seen for the function.
7871
7872 2003-02-26  Michael Chastain  <mec@shout.net>
7873
7874         * configure: Regenerate with autoconf 000227.
7875
7876 2003-02-26  Michael Chastain  <mec@shout.net>
7877
7878         Close PR build/660.
7879         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
7880         for old libc5/glibc.
7881         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
7882
7883 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
7884
7885         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
7886         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
7887
7888 2003-02-26  Michael Chastain  <mec@shout.net>
7889
7890         * configure.in: New variable HAVE_UINTPTR_T.
7891         * configure, config.in: Regenerated.
7892
7893 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
7894
7895         Fix PR build/1097.
7896         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
7897
7898 2003-02-25  Andrew Cagney  <cagney@redhat.com>
7899
7900         * frame.c (get_prev_frame): Add comment on check for
7901         inside_entry_func. Only check for inside_entry_file when not a
7902         dummy and not a sentinel.  Check that the new frame is not inner
7903         to the old frame.
7904
7905 2003-02-25  Andrew Cagney  <cagney@redhat.com>
7906
7907         * frame.c (frame_debug): New variable.
7908         (_initialize_frame): Add "set/show debug frame" command.
7909         (get_prev_frame): When frame_debug, print reason why unwind
7910         failed.
7911
7912 2003-02-25  Michael Chastain  <mec@shout.net>
7913
7914         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
7915         to avoid uintptr_t definition problems.
7916
7917 2003-02-25  David Carlton  <carlton@math.stanford.edu>
7918
7919         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
7920         (SYMBOL_LINKAGE_NAME): Ditto.
7921         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
7922         SYMBOL_LINKAGE_NAME.
7923         (struct general_symbol_info): Expand comment.
7924         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
7925         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
7926         (SYMBOL_MATCHES_REGEXP): Ditto.
7927         * symtab.c (symbol_natural_name): New function.
7928         * objfiles.h: Replace all uses of SYMBOL_NAME by
7929         DEPRECATED_SYMBOL_NAME.
7930         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
7931         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
7932         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
7933         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
7934         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
7935         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
7936         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
7937         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
7938         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
7939         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
7940         * ada-exp.y: Ditto.
7941         * ada-exp.y: Update copyright.
7942         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
7943         * cp-valprint.c: Ditto.
7944
7945 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
7946
7947         * infptrace.c (detach): Do not flag error if ptrace detach fails
7948         and errno is set to ESRCH.
7949
7950 2003-02-24  Andrew Cagney  <cagney@redhat.com>
7951
7952         * infptrace.c (udot_info): Change type of udot_off to long.  Use
7953         paddr when printing udot_off's value.
7954
7955 2003-02-24  David Carlton  <carlton@math.stanford.edu>
7956
7957         * symtab.c (make_symbol_overload_list): Only read in partial
7958         symtabs containing a matching partial symbol.
7959
7960 2003-02-24  David Carlton  <carlton@math.stanford.edu>
7961
7962         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
7963         do the comparison, not strcmp.
7964         * symfile.c (compare_psymbols): Ditto.
7965         * defs.h: Declare strcmp_iw_ordered.
7966         * utils.c (strcmp_iw_ordered): New function.
7967
7968 2003-02-24  Jim Blandy  <jimb@redhat.com>
7969
7970         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
7971         support, shared libs): Remove my name from here, to better reflect
7972         reality.
7973
7974 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
7975
7976         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
7977         (target_ops): Add to_have_continuable_watchpoint.
7978         * target.c (update_current_target): Add INHERIT line for
7979         to_have_continuable_watchpoint.
7980         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
7981         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
7982         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
7983         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
7984
7985 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
7986
7987         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
7988         maintainership.
7989
7990 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
7991
7992         * solib.c (solib_open): Call target defined search function after
7993         failing with solib-search-path.
7994         * solist.h (target_so_ops): Add find_and_open_solib function hook and
7995         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
7996
7997 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
7998
7999         * MAINTAINERS: Add myself to Write After section.
8000
8001 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
8002
8003         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8004
8005 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
8006
8007         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8008         (m68hc11_add_reggroups): New function.
8009         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8010         (m68hc11_gdbarch_init): Install the reggroups.
8011         (_initialize_m68hc11_tdep): Initialize them.
8012
8013 2003-02-21  James E Wilson  <wilson@tuliptree.org>
8014
8015         * MAINTAINERS: Update my email address.
8016
8017 2003-02-21  David Carlton  <carlton@math.stanford.edu>
8018
8019         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8020
8021 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
8022
8023         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8024         * symtab.h: Add opaque declarations of struct axs_value and
8025         struct agent_expr.
8026         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8027         (struct location_funcs): New type.
8028         (struct symbol): Add "loc" to aux_value.
8029         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8030         * dwarf2read.c: Include "dwarf2expr.h".
8031         (dwarf2_symbol_mark_computed): New function.
8032         (read_func_scope): Use it.
8033         (var_decode_location): New function.
8034         (new_symbol): Use it.
8035         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8036
8037         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8038         (dwarf2expr_h, dwarf2loc_h): New variables.
8039         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8040         (dwarf2expr.o, dwarf2loc.o): New rules.
8041         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8042         * buildsym.c (finish_block): Handle LOC_COMPUTED and
8043         LOC_COMPUTED_ARG.
8044         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8045         * m2-exp.y (yylex): Likewise.
8046         * printcmd.c (address_info, print_frame_args): Likewise.
8047         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8048         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8049         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8050         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8051         * symtab.c (lookup_block_symbol): Likewise.
8052
8053 2003-02-20  Adam Fedor  <fedor@gnu.org>
8054
8055         * symtab.h: Remove objc_specific struct
8056         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8057         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8058         Have language_objc use cplus_specific struct.
8059
8060 2003-02-20  Tom Tromey  <tromey@redhat.com>
8061
8062         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8063         TYPE_NAME, when printing a String value.  PR java/1075.
8064
8065 2003-02-20  Adam Fedor  <fedor@gnu.org>
8066
8067         * objc-lang.h (find_methods): Remove declaration.
8068         * objc-lang.c (find_methods): Make static.
8069
8070 2003-02-20  Christopher Faylor  <cgf@redhat.com>
8071
8072         * win32-nat.c (get_image_name): Check return value from
8073         ReadProcessMemory.
8074         (child_xfer_memory): Ditto.
8075
8076 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
8077
8078         * configure.in (TARGET_SYSTEM_ROOT): Set default to
8079         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
8080         '${exec_prefix}' (in addition to the expansion thereof) as
8081         relocatable.
8082         * configure: Rebuilt.
8083
8084 2003-02-20  David Carlton  <carlton@math.stanford.edu>
8085
8086         * symtab.c (search_symbols): Revert the search_symbols part of my
8087         2002-12-23 patch.  Add comment.
8088
8089 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8090
8091         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8092         * dbxread.c (elfstab_build_psymtabs): Don't call
8093         install_minimal_symbols.
8094         (stabsect_build_psymtabs): Likewise.
8095         * elfread.c (elf_symfile_read): Call install_minimal_symbols
8096         earlier.
8097         * somread.c (som_symfile_read): Call install_minimal_symbols
8098         and do_cleanups earlier.
8099         * nlmread.c (nlm_symfile_read): Likewise.
8100         * mdebugread.c (elfmdebug_build_psymtabs): Call
8101         install_minimal_symbols and make appropriate cleanups.
8102
8103 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
8104
8105         * solib.c (reload_shared_libraries): New function.
8106         (_initialize_solib): Add callbacks for ``set solib-search-path''
8107         and ``set solib-absolute-prefix''.
8108
8109 2003-02-20  David Carlton  <carlton@math.stanford.edu>
8110
8111         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8112         expand comment.
8113         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8114         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8115         * ada-typeprint.c (ada_typedef_print): Ditto.
8116         * ax-gdb.c (gen_var_ref): Ditto.
8117         * breakpoint.c (print_one_breakpoint): Ditto.
8118         * buildsym.c (finish_block): Ditto.
8119         * c-valprint.c (c_val_print): Ditto.
8120         * expprint.c (print_subexp): Ditto.
8121         * findvar.c (locate_var_value): Ditto.
8122         * infcmd.c (jump_command): Ditto.
8123         * linespec.c (decode_line_2, decode_compound): Ditto.
8124         * maint.c (maintenance_translate_address): Ditto.
8125         * objc-lang.c (compare_selectors, compare_classes): Ditto.
8126         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8127         Ditto.
8128         * p-valprint.c (pascal_val_print): Ditto.
8129         * stabsread.c (define_symbol): Ditto.
8130         * stack.c (print_frame, frame_info, print_block_frame_locals)
8131         (print_frame_arg_vars, return_command): Ditto.
8132         * symfile.c (compare_symbols, compare_psymbols): Ditto.
8133         * symmisc.c (print_symbol): Ditto.
8134         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8135         (compare_search_syms, print_symbol_info, print_msymbol_info)
8136         (rbreak_command): Ditto.
8137         * tracepoint.c (tracepoints_info): Ditto.
8138         * typeprint.c (typedef_print): Ditto.
8139         * valops.c (value_of_variable, hand_function_call): Ditto.
8140         * cli/cli-cmds.c (edit_command, list_command): Ditto.
8141         * ada-typeprint.c: Update Copyright.
8142         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8143         * tracepoint.c, cli/cli-cmds.c: Ditto.
8144
8145 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
8146
8147         * frame.c (generic_unwind_get_saved_register): Make non-static.
8148         * frame.h (generic_unwind_get_saved_register): Declare.
8149         * mips-tdep.c (read_next_frame_reg): Fetch register from
8150         current regcache when frame is NULL.
8151         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8152         that must be NULL.
8153         (mips_get_saved_register): Call generic_unwind_get_saved_register()
8154         instead of frame_register_unwind().
8155
8156 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
8157
8158         * remote-sim.c (gdbsim_insert_breakpoint)
8159         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8160         code.
8161
8162 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
8163
8164         * remote.c (_initialize_remote): Add commands "set/show remote
8165         hardware-watchpoint-limit" and "set/show remote
8166         hardware-breakpoint-limit".
8167         (remote_hw_watchpoint_limit): Initialize to -1.
8168         (remote_hw_breakpoint_limit): Ditto.
8169         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8170
8171 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
8172
8173         * coff-pe-read.c: New file - support reading of minimal symbols from a
8174         portable executable using the export table.
8175         * coff-pe-read.h: New file.
8176         * coffread.c: Include coff-pe-read.h.
8177         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8178         debugging symbols found.
8179         * Makefile.in (SFILES): Add coff-pe-read.o.
8180         (coff_pe_read_h): Define.
8181         (COMMON_OBS): Add coff-pe-read.o.
8182         (coffread.o): Add coff_pe_read_h dependency.
8183         (coff-pe-read.o): New target.
8184
8185 2003-02-19  David Carlton  <carlton@math.stanford.edu>
8186
8187         * Makefile.in (SFILES): Add block.c.
8188         (block_h): New.
8189         (COMMON_OBS): Add block.o.
8190         (block.o): New.
8191         (x86-64-tdep.o): Add $(block_h).
8192         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8193         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8194         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8195         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8196         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8197         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8198         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8199         * value.h: Add opaque declaration for struct block.
8200         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8201         * ada-lang.h: Ditto.
8202         * x86-64-tdep.c: #include "block.h"
8203         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8204         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8205         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8206         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8207         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8208         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8209         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8210         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8211         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8212         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8213         * symtab.c (block_function): Ditto.
8214         (contained_in): Ditto.
8215         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8216         block.h.  Add opaque declaration for struct block.
8217         * symtab.h: Move block_function and contained_in declarations to
8218         block.h.  Add opaque declarations for struct block, struct
8219         blockvector.
8220         (struct block): Move to block.h.
8221         (struct blockvector): Ditto.
8222         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8223         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8224         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8225         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8226         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8227         Ditto.
8228         * block.c: New file.
8229         * block.h: New file.
8230
8231 2003-02-19  Theodore A. Roth  <troth@openavr.org>
8232
8233         * avr-tdep.c (avr_extract_return_value): Remove function.
8234         (avr_store_return_value): Remove function.
8235         (avr_extract_struct_value_address): Remove function.
8236         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8237
8238 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
8239
8240         * rs6000-tdep.c: Include "gdb_assert.h".
8241         (registers_e500): Add "acc" and "spefscr".
8242         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8243         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8244         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
8245         really is "r0".
8246         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8247
8248 2003-02-18  Keith Seitz  <keiths@redhat.com>
8249
8250         * Makefile.in: Add gdbtk-interps.c.
8251
8252 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
8253
8254         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8255         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8256
8257 2003-02-18  Andrew Cagney  <cagney@redhat.com>
8258
8259         * symtab.h (struct objfile): Add opaque declaration.
8260
8261 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
8262
8263         From Jim Ingham   <jingham@apple.com>:
8264         * dbxread.c (process_one_symbol): Use last_function_start rather
8265         than function_start_offset to find the real beginning of the
8266         current function.  The latter is just the text section offset on
8267         some systems, the former is always the real function start.
8268
8269 2003-02-17  Andrew Cagney  <cagney@redhat.com>
8270
8271         * configure.in: Revert ${target} != ${host}.
8272
8273 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
8274
8275         * configure.in (Makefile): Use the test ${target} != ${host},
8276         instead of the absence of the "nm.h" file, to determine of the
8277         configuration non-native.
8278         * configure: Regenerate.
8279
8280 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
8281
8282         From Brian Ford  <ford@vss.fsi.com>
8283
8284         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8285         conditionalize tui_active test.
8286         (lookup_cmd_1): Ditto.
8287
8288 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
8289
8290         * configure.in: Add check for _etext.
8291         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8292         available.
8293         * config.in, configure: regenerated.
8294
8295 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
8296
8297         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8298
8299 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
8300
8301         * main.c (tui_version): Delete variable.
8302         (captured_main): When --tui, set interpreter_p to "tui" instead of
8303         enabling tui_version.
8304         * printcmd.c (display_command) [TUI]: Test tui_active instead of
8305         tui_version.
8306         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8307         * cli/cli-cmds.c (disassemble_command): Ditto.
8308         * defs.h (tui_version): Delete declaration.
8309         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8310         (tui-interp.o): Add rules.
8311         (SUBDIR_TUI_OBS): Add "tui-interp.o".
8312
8313 2003-02-14  Christopher Faylor  <cgf@redhat.com>
8314
8315         * win32-nat.c (register_loaded_dll): Correctly set address range for
8316         just-loaded dll.
8317
8318 2003-02-12  Jason Molenda  (jmolenda@apple.com)
8319
8320         * symmisc.c (print_objfile_statistics): Include information about
8321         the number of psymtabs and symtabs in each object file.
8322
8323 2003-02-13  Keith R Seitz  <keiths@redhat.com>
8324
8325         * main.h (struct captured_main_args): Add interpreter_p.
8326         * main.c (captured_main): Initialize interpreter_p from context.
8327         * gdb.c (main): Set interpreter_p argument.
8328         * Makefile.in (gdb.o): Add dependency for interps.h.
8329
8330 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
8331
8332         * event-top.c (cli_command_loop): Delete declaration.
8333         (_initialize_event_loop): Delete function setting event_loop_hook.
8334         * event-top.h (cli_command_loop): Declare.  Update copyright.
8335         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
8336         * interps.c (current_interp_command_loop): When event_loop_p, call
8337         cli_command_loop.
8338
8339 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
8340
8341         * interps.h (interp_command_loop_ftype): Change return type to
8342         void.
8343
8344 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
8345
8346         * x86-64-tdep.c (x86_64_extract_return_value)
8347         (x86_64_store_return_value): Use regcache instead of regbuf.
8348         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8349         * x86-64-linux-nat.c (fill_gregset): Use regcache.
8350
8351 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
8352
8353         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8354         * aclocal.m4: Regenerate.
8355         * configure: Regenerate.
8356
8357         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8358         TCL_LD_SEARCH_FLAGS.
8359
8360 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
8361
8362         * dwarf2cfi.c: Reindented.
8363
8364 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
8365
8366         * interps.c (clear_interpreter_hooks): Convert function definition
8367         to ISO C.
8368
8369 2003-02-07  David Carlton  <carlton@math.stanford.edu>
8370
8371         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8372
8373 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
8374
8375         * gdbtypes.h (struct main_type): Move ``length'' field from here...
8376         (struct type): ...to here.
8377         (TYPE_LENGTH): Adjust to reflect different location of ``length''
8378         field.
8379         * gdbtypes.c (make_qualified_type): Set length on newly created type.
8380         (replace_type): Set length on all type variants for a given type.
8381
8382 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
8383
8384         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8385         <sys/stat.h>.
8386         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8387
8388 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
8389
8390         * Makefile.in (symm-nat.o): Update dependencies.
8391         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8392         (lynx-nat.o, ia64-linux-nat.): Ditto.
8393         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8394         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8395         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8396
8397         * Makefile.in (inflow_h): Define.
8398         (procfs.o, inflow.o, procfs.o): Update dependencies.
8399         * inftarg.c (child_stop): Delete extern declaration of
8400         inferior_process_group.  Include "inflow.h".
8401         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
8402         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8403         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
8404         (our_process_group, inferior_process_group): Extern declarations.
8405
8406         * procfs.c: Include "gdb_assert.h".
8407
8408         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8409         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8410         * jv-typeprint.c (java_type_print_base): Ditto.
8411         * typeprint.c (typedef_print): Eliminate STREQ.
8412         * cli/cli-script.c (define_command, define_command): Ditto.
8413         * main.c (captured_main): Ditto.
8414         * values.c (lookup_internalvar): Ditto.
8415         * utils.c (safe_strerror, parse_escape): Eliminate assignment
8416         within `if' conditional.
8417         * linespec.c (decode_line_2): Ditto.
8418         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8419         (bfd_openw_with_cleanup): Ditto.
8420
8421 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
8422
8423         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8424         legacy_extract_return_value and store_return_value to
8425         legacy_return_value.
8426
8427 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
8428
8429         * win32-nat.c (get_relocated_section_addrs): New function.  Find
8430         section load addresses for symbol handling in relocated DLLs.
8431         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8432
8433 2003-02-05  Fred Fish  <fnf@intrinsity.com>
8434
8435         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8436         '=' and '!='.
8437         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8438         with '&' and '=='.
8439         (angel_RDI_info): Ditto.
8440         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8441         with '&' and '!='.
8442         (threads_continue_all_with_signals): Ditto.
8443
8444 2003-02-05  Jim Ingham <jingham@apple.com>
8445             Keith Seitz  <keiths@redhat.com>
8446             Elena Zannoni  <ezannoni@redhat.com>
8447             Andrew Cagney  <ac131313@redhat.com>
8448
8449         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8450         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8451         (SUBDIR_MI_OBS): Add "mi-interp.o".
8452         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8453         (SFILES): Add "interps.c".
8454         (COMMON_OBS): Add "interps.o".
8455         (interps_h, mi_main_h): Define.
8456         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8457         (mi-main.o, main.o, event-top.o): Update dependencies.
8458         * cli/cli-interp.c: New file.
8459         * interps.h, interps.c: New files.
8460         * top.c: (gdb_init): Don't install the default interpreter, handed
8461         by captured_main.
8462         * main.c: Include "interps.h".
8463         (interpreter_p): Note that it should malloc'ed.
8464         (captured_command_loop): Call current_interp_command_loop.
8465         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
8466         xfree and xstrdup when updating interpreter_p.  Install the
8467         default interpreter.  Add hack to stop mi1's copyright notice
8468         being encoded.
8469         * event-top.h (gdb_setup_readline): Declare.
8470         (gdb_disable_readline): Declare.
8471         * event-top.c: Include "interps.h".
8472         (display_gdb_prompt): Call current_interp_display_prompt_p.
8473         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8474         gdb_stdlog, and gdb_stdtarg.
8475         (_initialize_event_loop): Don't call gdb_setup_readline.
8476         * cli-out.c (cli_out_set_stream): New function.
8477         * cli-out.h (cli_out_set_stream): Declare.
8478
8479 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
8480
8481         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8482         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
8483         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8484         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8485         config/i386/i386v42mp.mt: Removed.
8486
8487 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
8488
8489         * configure.tgt (*-*-solaris*): Set gdb_osabi to
8490         GDB_OSABI_SOLARIS.
8491
8492 2003-02-05  Michael Chastain  <mec@shout.net>
8493
8494         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8495         2.12.1 and earlier versions.
8496
8497 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
8498
8499         Remove orphaned hosts, targets and files.
8500         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8501         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8502         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8503         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8504         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8505         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8506         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8507         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8508         * config/sparc/tm-sp64sim.h: Delete.
8509         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8510         hosts.
8511         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8512         mips*-dec-mach3* targets.
8513
8514 2003-02-04  Michael Chastain  <mec@shout.net>
8515
8516         * NEWS: Fix typo: sepcifying -> specifying.
8517
8518 2003-02-04  Michael Chastain  <mec@shout.net>
8519
8520         * dwarfread.c: Add documentation on the state of dwarf-1,
8521         looking towards obsoletion.
8522
8523 2003-02-03  Michael Chastain  <mec@shout.net>
8524
8525         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8526         gdb/testsuite/gdb.c++/pr-1023.exp.
8527
8528 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
8529
8530         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8531         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8532
8533         * utils.c (init_page_info): Delete reference to MPW in comments.
8534         * main.c (captured_main): Delete #ifdef MPW.
8535
8536 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
8537
8538         * NEWS: Note that the m32r-*-elf* is obsolete.
8539         * monitor.c (monitor_expect): Obsolete reference to m32r.
8540         * configure.tgt: Mark m32r-*-elf* as obsolete.
8541         * MAINTAINERS: Mark m32k as obsolete.
8542         * m32r-rom.c: Obsolete file.
8543         * config/m32r/m32r.mt: Obsolete file.
8544         * config/m32r/tm-m32r.h: Obsolete file.
8545         * m32r-stub.c: Obsolete file.
8546         * m32r-tdep.c: Obsolete file.
8547
8548 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
8549
8550         * NEWS: Mention that the z8k-zilog-none is obsolete.
8551         * MAINTAINERS: Mark z8k as obsolete.
8552         * configure.tgt: Obsolete the z8k-*-coff* target.
8553         * config/z8k/z8k.mt: Obsolete file.
8554         * config/z8k/tm-z8k.h: Obsolete file.
8555         * z8k-tdep.c: Obsolete file.
8556
8557 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
8558
8559         * NEWS: Mention that the mn10200-elf is obsolete.
8560         * configure.tgt: Obsolete mn10200-*-* target.
8561         * breakpoint.c (update_breakpoints_after_exec): Update comment to
8562         mention that the mn10200 is obsolete.
8563         * breakpoint.h: Ditto.
8564         * MAINTAINERS: Mark the mn10200-elf as obsolete.
8565         * config/mn10200/mn10200.mt: Obsolete file.
8566         * config/mn10200/tm-mn10200.h: Obsolete file.
8567         * mn10200-tdep.c: Obsolete file.
8568
8569 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
8570
8571         * MAINTAINERS: Mark h8500 as obsolete.
8572         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8573         * findvar.c (value_from_register): Ditto.
8574         * h8500-tdep.c: Mark file as obsolete.
8575         * config/h8500/h8500.mt: Ditto.
8576         * config/h8500/tm-h8500.h: Ditto.
8577         * NEWS: Mention that h8500 is obsolete.
8578
8579 2003-02-04  David Carlton  <carlton@math.stanford.edu>
8580
8581         * objfiles.c (allocate_objfile): Always set name.  Add comment at
8582         start of function.
8583         * jv-lang.c (get_dynamics_objfile): Add comment.
8584
8585 2003-02-04  David Carlton  <carlton@math.stanford.edu>
8586
8587         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8588         * printcmd.c (build_address_symbolic): Replace uses of
8589         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8590         SYMBOL_NAME, and asm_demangle.
8591         Update copyright.
8592
8593 2003-02-04  David Carlton  <carlton@math.stanford.edu>
8594
8595         * linespec.c (decode_compound): Extract code into
8596         lookup_prefix_sym.
8597         (lookup_prefix_sym): New function.
8598
8599 2003-02-04  David Carlton  <carlton@math.stanford.edu>
8600
8601         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8602         FLOAT_COERCION_BADNESS.
8603         * gdbtypes.c (rank_one_type): Replace all uses of
8604         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8605
8606 2003-02-04  Jim Blandy  <jimb@redhat.com>
8607
8608         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
8609         section, let dwarf_macinfo_section point to it, not
8610         dwarf_loc_section.
8611
8612 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
8613
8614         Pointed out by Anton Blanchard <anton@samba.org>.
8615         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
8616         (ppc_linux_at_sigtramp_return_path): Use it.
8617
8618 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
8619
8620         * defs.h (streq): Add prototype.
8621         * utils.c (streq): New function.
8622
8623         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
8624         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
8625         * mdebugread.c (new_symbol): Likewise.
8626         * stabsread.c (define_symbol): Likewise.
8627         * coffread.c (process_coff_symbol): Likewise.
8628         * dwarfread.c (new_symbol): Likewise.
8629
8630         * minsyms.c (prim_record_minimal_symbol_and_info): Use
8631         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
8632         here.
8633         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
8634         SYMBOL_INIT_DEMANGLED_NAME.
8635         * objfiles.c: Include "hashtab.h".
8636         (allocate_objfile): Call htab_set_functions_ex for the
8637         demangled_names_hash.
8638         (free_objfile): Call htab_delete for the demangled_names_hash.
8639         * objfiles.h (struct htab): Add declaration.
8640         (struct objfile): Add demangled_names_hash.
8641         * symfile.c: Include "hashtab.h".
8642         (reread_symbols): Call htab_delete for the demangled_names_hash.
8643         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
8644         SYMBOL_NAME in the bcache.
8645         * symtab.c: Include "hashtab.h".  Update comments.
8646         (create_demangled_names_hash, symbol_set_names): New functions.
8647         (symbol_find_demangled_name): New function, broken out from
8648         symbol_init_demangled_names.
8649         (symbol_init_demangled_names): Use it.
8650         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
8651         (SYMBOL_SET_NAMES): New macro.
8652         (symbol_set_names): Add prototype.
8653
8654 2003-02-03  Jim Blandy  <jimb@redhat.com>
8655
8656         Use a single, consistent representation for an empty minimal
8657         symbol table in an objfile.
8658         * objfiles.c (terminate_minimal_symbol_table): New function.
8659         (allocate_objfile): Call it.
8660         * objfiles.h (terminate_minimal_symbol_table): New declaration.
8661         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8662         non-NULL.
8663         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
8664         objfile has minimal symbols, compare minimal_symbol_count to zero,
8665         instead of comparing msymbols with NULL.
8666         * objfiles.c (have_minimal_symbols): Same.
8667         * solib-sunos.c (solib_add_common_symbols): Call
8668         terminate_minimal_symbol_table.
8669         * symfile.c (reread_symbols): Same.
8670
8671 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
8672
8673         * s390-tdep.c (s390_address_class_type_flags)
8674         (s390_address_class_type_flags_to_name)
8675         (s390_address_class_name_to_type_flags): New functions.
8676         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
8677         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
8678
8679 2003-02-03  Michael Snyder  <msnyder@redhat.com>
8680
8681         * arm-tdep.c: Fix spell-o in comment.
8682
8683 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
8684
8685         * dwarf2cfi.c (pointer_encoding): Added new parameter.
8686         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8687         error messages to contain BFD filename.
8688
8689 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
8690
8691         Fix PR gdb/742 gdb/743 gdb/877
8692         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
8693         (do_mixed_source_and_assembly): Use
8694         make_cleanup_ui_out_tuple_begin_end and
8695         make_cleanup_ui_out_tuple_begin_end.
8696         (do_mixed_source_and_assembly): Ditto.
8697         * thread.c (do_captured_list_thread_ids): Ditto.
8698         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
8699         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
8700         ui_out_tuple_end): Delete prototypes.
8701         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
8702         ui_out_list_end, ui_out_tuple_end): Delete.
8703
8704         From Kevin Buettner  <kevinb@redhat.com>:
8705         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
8706         * ui-out.c (make_cleanup_ui_out_table_begin_end)
8707         (do_cleanup_table_end):  New functions.
8708         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
8709         Use cleanups to invoke_ui_out_tuple_end().
8710         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
8711         * cli/cli-setshow.c (cmd_show_list): Use
8712         make_cleanup_ui_out_tuple_begin_end.
8713
8714 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
8715
8716         * frame.c (frame_unwind_register): New function.
8717         (frame_unwind_unsigned_register): Use.
8718         (frame_unwind_signed_register): Use.
8719         (frame_read_register): New function.
8720         * frame.h (frame_unwind_register): Declare.
8721         (frame_read_register): Declare.
8722
8723         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
8724         and frame_unwind_register instead of read_memory, write_register
8725         and deprecated_write_register_bytes.
8726
8727 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
8728
8729         * frame.h: Note that namelen can be negative.
8730         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
8731         NAME's length.
8732
8733         * NEWS: Mention that the d10v's `regs' command is deprecated.
8734         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
8735         (d10v_print_registers_info): New function.
8736         (show_regs): Call d10v_print_registers_info.
8737         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
8738
8739 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
8740
8741         * stack.c (print_frame_info): Restore call to annotate_frame_begin
8742         lost in the previous patch.
8743
8744 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
8745
8746         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
8747         * stack.c (print_frame_info_base): Output complete FRAME tuple
8748         for synthesized frames.
8749
8750 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
8751
8752         * mips-nat.c (zerobuf): Delete.
8753         (fetch_inferior_registers): Alloc local zerobuf.
8754         (fetch_core_registers): Alloc local zerobuf.
8755         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
8756         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
8757         * thread-db.c (thread_db_store_registers): Ditto.
8758         * sh-tdep.c (sh_do_register): Ditto.
8759         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
8760         * remote-sim.c (gdbsim_store_register): Ditto.
8761         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8762         * remote-e7000.c (fetch_regs_from_dump): Ditto.
8763         * monitor.c (monitor_supply_register): Ditto.
8764         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
8765         * mips-nat.c (fetch_inferior_registers): Ditto.
8766         * m68klinux-nat.c (fetch_register): Ditto.
8767         * lynx-nat.c (fetch_inferior_registers): Ditto.
8768         (fetch_inferior_registers): Ditto.
8769         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
8770         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8771         (hpux_thread_store_registers): Ditto.
8772         * hppah-nat.c (fetch_register): Ditto.
8773         * hppab-nat.c (fetch_register): Ditto.
8774         * hppa-tdep.c (pa_register_look_aside): Ditto.
8775         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
8776         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
8777
8778 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
8779
8780         * gdbarch.sh: Explictly specify all method levels.  When a
8781         variable with an empty level, provide a non-multi-arch default.
8782         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
8783         * gdbarch.h: Re-generate.
8784         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
8785         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
8786
8787 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
8788
8789         * defs.h (host_pointer_to_address): Delete declaration.
8790         (address_to_host_pointer): Delete declaration.
8791         * utils.c (host_pointer_to_address): Delete function.
8792         (address_to_host_pointer): Delete function.
8793         * procfs.c (procfs_address_to_host_pointer): New function.
8794         * procfs.c (proc_set_watchpoint): Use.
8795         (procfs_can_use_hw_breakpoint): Update comments.
8796         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
8797         (som_solib_add): Use.
8798         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
8799         * hppa-tdep.c (unwind_command): Use.
8800
8801 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
8802
8803         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
8804         strlen d_name.
8805
8806         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
8807         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
8808         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
8809         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
8810         (define_symbol): Update.
8811         * symfile.c (generic_load): Remove references to nindy.
8812         * symtab.c: Remove references to nindy.
8813
8814 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
8815
8816         * infcmd.c (print_float_info): Delete code conditional on
8817         FLOAT_INFO.
8818         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
8819         * config/m68k/nm-apollo68b.h: Ditto.
8820         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
8821         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
8822         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
8823
8824 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
8825
8826         * config/i386/tm-i386os9k.h: Removed.
8827
8828         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
8829         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
8830         they're identical to i[3456]86-*-sysv* now.
8831         * config/i386/i386v32.mh: Removed.
8832         * config/i386/xm-i386v32.h: Removed.
8833         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
8834
8835         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
8836
8837         * config/i386/i386dgux.mh: Removed.
8838         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
8839
8840         * configure.in: Fix typo.
8841         * configure: Regenerated.
8842
8843 2003-01-31  David Carlton  <carlton@math.stanford.edu>
8844
8845         * dwarf2read.c (dwarf2_locate_sections): Set
8846         dwarf_ranges_section.
8847
8848 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
8849
8850         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
8851         * utils.c: Update comments documenting legitimate uses of PTR.
8852
8853         * utils.c: Re-indent.
8854
8855         * config/djgpp/fnchange.lst: Delete nindy files.
8856         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
8857         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
8858         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
8859         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
8860         * nindy-share/README, nindy-share/Onindy.c: Delete files.
8861         * nindy-tdep.c, nindy-share/Makefile: Delete files.
8862         * Makefile.in (init.c): Remove nindy references.
8863         (saber_gdb): Delete rule.
8864         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
8865         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
8866         and a68v-nat.c.
8867         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
8868         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
8869         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
8870         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
8871         nindy-share/stop.h.
8872         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
8873         * saber.suppress: Delete file.
8874
8875 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
8876
8877         * dbxread.c (stabs_data): New static variable.
8878         (fill_symbuf): Support an in-memory buffer for stabs data.
8879         (stabs_seek): New function.
8880         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
8881         (read_ofile_symtab): Use stabs_seek.
8882         (elfstab_build_psymtabs): Take an asection* instead of
8883         an offset and size.  Relocate the stabs data if necessary.
8884         Save the section* for dbx_psymtab_to_symtab.
8885         * dwarf2read.c: Add section variables for each debug section.
8886         (dwarf2_locate_sections): Fill them in.
8887         (dwarf2_read_section): Take an asection* argument.
8888         Relocate the section contents if necessary.
8889         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
8890         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
8891         it to dwarf2_read_section.
8892         (dwarf2_build_frame_info): Update callers.
8893         * elfread.c (elf_symfile_read): Update call to
8894         elfstab_build_psymtabs.
8895         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
8896         (DBX_STAB_SECTION): New macro.
8897         * stabsread.h (elfstab_build_psymtabs): Update prototype.
8898         * symfile.c (symfile_dummy_outputs): New function.
8899         (symfile_relocate_debug_section): New function.
8900         * symfile.h (symfile_relocate_debug_section): Add prototype.
8901
8902 2003-01-31  Richard Henderson  <rth@redhat.com>
8903
8904         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
8905         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
8906         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
8907         * alpha-tdep.c (alpha_register_name): Add "unique".
8908         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
8909         (ALPHA_UNIQUE_REGNUM): New.
8910         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
8911
8912 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
8913
8914         * README: Remove reference to Ericsson 1800 monitor.
8915         * Makefile.in (remote-es.o): Delete rule.
8916         (ALLDEPFILES): Delete remote-es.c.
8917         * remote-es.c: Delete file.
8918         * config/m68k/es1800.mt: Delete file.
8919         * config/djgpp/fnchange.lst: Update.
8920         * configure.tgt: Delete m68*-ericsson-* target.
8921
8922 2003-01-31  Adam Fedor  <fedor@gnu.org>
8923
8924         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
8925         Remove duplicate/shadowing variable of same name.
8926
8927 2003-01-30  Jim Blandy  <jimb@redhat.com>
8928
8929         * symfile.c (find_separate_debug_file): Assert that the objfile's
8930         directory name we compute ends with a slash, and then assume that
8931         that's so everywhere we use it.
8932
8933 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
8934
8935         * valops.c (value_assign): Flush frame cache after stores to memory
8936         also.
8937
8938 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
8939
8940         * Makefile.in (mon960-rom.o): Delete rule.
8941         * mon960-rom.c: Delete file.
8942
8943 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
8944
8945         * d10v-tdep.c: Include "frame-unwind.h".
8946         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
8947         list.
8948         (next_addr, uses_frame): Delete.
8949         (struct d10v_unwind_cache): Define.
8950         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
8951         Use info instead of next_addr and uses_frame globals.
8952         (d10v_frame_init_saved_regs): Delete function.
8953         (d10v_init_extra_frame_info): Delete function.
8954         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
8955         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
8956         init_frame_pc or frame_saved_pc.
8957         (d10v_pop_frame): Delete function.
8958         (do_d10v_pop_frame): Delete function.
8959         (d10v_frame_chain): Delete function.
8960         (d10v_frame_chain_valid): Delete function.
8961         (d10v_frame_pc_unwind): New function.
8962         (d10v_frame_id_unwind): New function.
8963         (saved_regs_unwinder): New function.
8964         (d10v_frame_register_unwind): New function.
8965         (d10v_frame_pop): New function.
8966         (d10v_frame_unwind): New variable.
8967         (d10v_frame_p): New function.
8968         (d10v_frame_saved_pc): Delete function.
8969         * Makefile.in (d10v-tdep.o): Update dependencies.
8970
8971 2003-01-30  J. Brobecker  <brobecker@gnat.com>
8972
8973         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
8974         causing some regressions due to a change in the default value
8975         for this macro.
8976
8977 2003-01-29  Richard Henderson  <rth@redhat.com>
8978             Elena Zannoni  <ezannoni@redhat.com>
8979             Daniel Jacobowitz  <drow@mvista.com>
8980
8981         Fix PR gdb/961.
8982         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
8983         variables.
8984         (RANGES_SECTION): New.
8985         (dwarf_ranges_buffer): New variable.
8986         (struct comp_unit_head): Add member "die".
8987         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
8988         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
8989         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
8990         (dwarf2_locate_sections): Likewise.
8991         (dwarf2_build_psymtabs): Read .debug_ranges.
8992         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
8993         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
8994         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
8995         Look for DW_AT_ranges and return the bounding box.
8996
8997 2003-01-29  Brian Ford <ford@vss.fsi.com>
8998
8999         * win32-nat.c (cygwin_pid): Removed as unused.
9000         (child_attach): Try fall back to Cygwin pid.
9001
9002 2003-01-29  Jim Blandy  <jimb@redhat.com>
9003
9004         * objfiles.h (struct objfile): Doc fix.
9005
9006 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
9007
9008         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9009         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9010         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9011         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9012         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9013         (FRAME_SAVED_PC): Change to a function with predicate.
9014         * gdbarch.h, gdbarch.c: Re-generate.
9015
9016 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
9017
9018         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9019
9020         * complaints.c (complain): Delete function.
9021         * complaints.h (struct deprecated_complaint): Delete definition.
9022         (complain): Delete declaration.
9023
9024 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
9025
9026         * mips-tdep.c (mips_init_extra_frame_info): Return early for
9027         dummy frames.
9028
9029 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
9030
9031         * sentinel-frame.h, sentinel-frame.c: New files.
9032         * Makefile.in (frame.o): Update dependencies.
9033         (SFILES): Add sentinel-frame.c.
9034         (sentinel_frame_h): Define.
9035         (COMMON_OBS): Add sentinel-frame.o.
9036         (sentinel-frame.o): Specify dependencies.
9037         * frame.c: Include "sentinel-frame.h".
9038         (frame_register_unwind): Rewrite assuming that there is always a a
9039         ->next frame.
9040         (frame_register, generic_unwind_get_saved_register): Ditto.
9041         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9042         (create_sentinel_frame, unwind_to_current_frame): New functions.
9043         (get_current_frame): Rewrite using create_sentinel_frame and
9044         unwind_to_current_frame.  When possible, always create a frame.
9045         (create_new_frame): Set next to the sentinel frame.
9046         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
9047         (deprecated_update_frame_pc_hack): Update the next frame's PC and
9048         ID cache when necessary.
9049         (frame_saved_regs_id_unwind): Use frame_relative_level.
9050         (deprecated_generic_get_saved_register): Use frame_relative_level,
9051         get_frame_saved_regs, get_frame_pc, get_frame_base and
9052         get_next_frame.
9053         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9054         frame_register.
9055
9056 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
9057
9058         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9059
9060 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
9061
9062         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9063         (maintenance_set_profile_cmd): Use error () instead of warning ().
9064
9065 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
9066
9067         * configure.in: Check that -pg works if using --enable-profiling.
9068         Check for monstartup and _mcleanup regardless of --enable-profiling.
9069         * maint.c: Check for monstartup and _mcleanup before using them.
9070         * config.in: Regenerated.
9071         * configure: Regenerated.
9072
9073 2003-01-24  Nick Clifton  <nickc@redhat.com>
9074
9075         * Add sh2e support:
9076
9077         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
9078
9079                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9080                 (sh2e_show_regs): New.
9081                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9082                 * config/sh/tm-sh.h: Added sh2e to comments.
9083
9084 2003-01-23  Jim Blandy  <jimb@redhat.com>
9085
9086         * symfile.c (syms_from_objfile): Don't print the "(no debugging
9087         symbols found)" message here; we haven't checked for a separate
9088         debug info file yet, so we don't know yet.
9089         (symbol_file_add_with_addrs_or_offsets): Print it here, after
9090         we've looked everywhere.  Also, there's no need to print a special
9091         message when we're loading the separate debug info file: the one
9092         symbol_file_add prints is fine.
9093
9094 2003-01-23  Alexander Larsson <alexl@redhat.com>
9095             Jim Blandy  <jimb@redhat.com>
9096
9097         Add support for executables whose debug info has been separated
9098         out into a separate file, leaving only a link behind.
9099         * objfiles.h (struct objfile): New fields: separate_debug_objfile
9100         and separate_debug_objfile_backlink.
9101         (put_objfile_before): New declaration.
9102         * symfile.c: #include "filenames.h".
9103         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9104         debug info in a separate file, read that, too. Save the addrs
9105         argument, so we can use it again to read the separated debug info;
9106         syms_from_objfile modifies the table we pass it.
9107         (reread_symbols): After re-reading an objfile, call
9108         reread_separate_symbols to refresh its separate debug info
9109         objfile, if it has one.
9110         (reread_separate_symbols, find_separate_debug_file,
9111         get_debug_link_info, separate_debug_file_exists): New functions.
9112         (debug_file_directory): New global var.
9113         (_initialize_symfile): Initialize debug_file_directory, and
9114         provide the new `set debug-file-directory' command to let the user
9115         change it.
9116         * objfiles.c (free_objfile): If this objfile has its debug info in
9117         a separate objfile, free that one too.  If this is itself a
9118         separate debug info objfile, clear our parent's backlink.
9119         (put_objfile_before): New function.
9120         * utils.c (gnu_debuglink_crc32): New function.
9121         * defs.h (gnu_debuglink_crc32): New declaration.
9122         * Makefile.in (symfile.o): Note dependency on "filenames.h".
9123         * configure.in: Handle --with-separate-debug-dir config option.
9124         * acinclude.m4 (AC_DEFINE_DIR): New macro.
9125         * acconfig.h (DEBUGDIR): New macro.
9126         * configure, aclocal.m4, config.in: Regenerated.
9127
9128 2003-01-22  Jim Blandy  <jimb@redhat.com>
9129
9130         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9131         like the old symbol_file_add, but taking new arguments: you can
9132         now pass in either a `struct section_addr_info' list to say where
9133         each section is loaded, or a `struct section_offsets' table.  Pass
9134         these new arguments through to syms_from_objfile as appropriate.
9135         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9136         with the appropriate quiescent values for the new arguments.
9137
9138         * symfile.c: #include "gdb_assert.h".
9139         (syms_from_objfile): Add the ability to pass in a section offset
9140         table directly, as an alternative to the section_addr_info table.
9141         Document arguments better.
9142         (symbol_file_add): Pass extra arguments to syms_from_objfile.
9143         * symfile.h (syms_from_objfile): Update declaration.
9144         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9145         syms_from_objfile.
9146         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9147
9148 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
9149
9150         Original patch by Tom Tromey <tromey@cygnus.com> and
9151         Jason Molenda <jmolenda@apple.com>.
9152         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9153         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9154         * NEWS: Mention profiling.
9155         * configure.in (--enable-gdbtk): Fix typo.
9156         (--enable-profiling): New.  Set PROFILE_CFLAGS.
9157         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9158         Fill in function.
9159         (profiling_state): New variable.
9160         (mcleanup_wrapper): New function.
9161         (_initialize_maint): Remove NOTYET, fix call to
9162         add_setshow_boolean_cmd for "maint set profile".
9163         * configure: Regenerated.
9164
9165 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
9166
9167         * Makefile.in (install-gdbtk): Install PNG images too.
9168
9169 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
9170
9171         * exec.c (text_start): Delete global variable.
9172         (exec_file_attach): Make text_start local to the function.
9173         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9174         * valops.c (hand_function_call): Delete code that handles
9175         BEFORE_TEXT_END and AFTER_TEXT_END.
9176         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9177         of CALL_DUMMY_LOCATION.
9178         * gdbarch.c: Regenerate.
9179         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9180         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9181         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9182         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9183         (text_end): Delete extern declaration.
9184
9185 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
9186
9187         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9188         * blockframe.c (backtrace_below_main): Move to "frame.c".
9189         (frame_chain_valid): Delete check for backtrace_below_main.
9190         (_initialize_blockframe): Delete initialization, move ``set
9191         backtrace-below-main'' command to "frame.c".
9192         (do_flush_frames_sfunc): Delete function.
9193         * frame.c: Include "command.h" and "gdbcmd.h".
9194         (frame_type_from_pc): New function.
9195         (create_new_frame): Use frame_type_from_pc.
9196         (legacy_get_prev_frame): New function.
9197         (get_prev_frame): Rewrite.  When an old style frame, call
9198         legacy_get_prev_frame.  Otherwize, unwind the PC first.
9199         (_initialize_frame): Add ``set backtrace-below-main'' command.
9200         * Makefile.in (frame.o): Update dependencies.
9201
9202 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
9203
9204         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9205         DEPRECATED_REGISTERS_INFO.
9206
9207 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
9208
9209         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9210         Maintainers'.  Update `Various Maintainers'.
9211
9212 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
9213
9214         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9215         * gdbarch.sh (POP_FRAME): Change to function with predicate.
9216         Suppress actual parameters when `-'.
9217         * gdbarch.h, gdbarch.c: Regenerate.
9218
9219 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
9220
9221         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9222         code handling dummy frames.
9223
9224 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
9225
9226         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9227         (struct frame_unwind): Add field pop.
9228         * frame.h (frame_pop): Declare.
9229         * frame.c (frame_saved_regs_pop): New function.
9230         (trad_frame_unwinder): Add frame_saved_regs_pop.
9231         (frame_pop): New function.
9232         * dummy-frame.c (dummy_frame_pop): New function.
9233         (discard_innermost_dummy): New function.
9234         (generic_pop_dummy_frame): Use discard_innermost_dummy.
9235         (dummy_frame_unwind): Add dummy_frame_pop.
9236         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9237         * valops.c (hand_function_call): Ditto.
9238         * stack.c (return_command): Ditto.
9239
9240 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
9241
9242         * cris-tdep.c: Fix function declaration indentation.
9243         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9244         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9245         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9246         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9247         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9248         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9249
9250 2003-01-18  Michael Chastain  <mec@shout.net>
9251
9252         * README (Unpacking and Installation -- quick overview):
9253         Warn against ".../gdb-5.3/gdb/configure".
9254
9255 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
9256
9257         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9258         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9259         (struct frame_unwind): Declare opaque.
9260         (dummy_frame_p): Declare function.
9261         * dummy-frame.c (dummy_frame_id_unwind): Make static.
9262         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9263         * dummy-frame.c: Include "frame-unwind.h".
9264         (dummy_frame_p): New function.
9265         (dummy_frame_unwind): New variable.
9266         * frame.c: Include "frame-unwind.h".
9267         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9268         to use the new unwind field.
9269         (set_unwind_by_pc): Delete function.
9270         (create_new_frame, get_prev_frame): Set unwind field using
9271         frame_unwind_find_by_pc.
9272         (trad_frame_unwind, trad_frame_unwinder): New variables.
9273         * frame.h (trad_frame_unwind): Declare variable.
9274         (frame_id_unwind_ftype): Delete declaration.
9275         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9276         (struct frame_unwind): Declare opaque.
9277         (struct frame_info): Replace the fields id_unwind, pc_unwind and
9278         register_unwind with a single unwind pointer.
9279         * frame-unwind.h, frame-unwind.c: New files.
9280         * Makefile.in (SFILES): Add frame-unwind.c.
9281         (frame_unwind_h): Define.
9282         (COMMON_OBS): Add frame-unwind.o.
9283         (frame-unwind.o): Specify dependencies.
9284         (frame.o, dummy-frame.o): Update dependencies.
9285
9286 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
9287
9288         * ada-valprint.c: Eliminate PTR.
9289         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9290         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9291         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9292         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9293         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9294         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9295         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9296
9297 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
9298
9299         * main.c (captured_main): Don't use PTR.
9300         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9301         * gdbtypes.c (lookup_primitive_typename): Ditto.
9302         (lookup_struct_elt_type): Ditto.
9303         * f-valprint.c (info_common_command): Ditto.
9304         (list_all_visible_commons): Ditto.
9305         * jv-typeprint.c (java_type_print_base): Ditto.
9306
9307         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9308         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9309         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
9310         i386-interix-nat.c and i386-interix-tdep.c.  Rename
9311         m68klinux-nat.c and m68klinux-tdep.c.  Rename
9312         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
9313         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
9314         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9315         * main.c (captured_main): Use xfree, not free.
9316
9317 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
9318
9319         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9320         ID back using a parameter.
9321         * frame.c (frame_id_unwind): Update call.
9322         (frame_saved_regs_id_unwind): Update.
9323         * dummy-frame.c (dummy_frame_id_unwind): Update function.
9324         * dummy-frame.h (struct frame_id): Add opaque declaration.
9325         (dummy_frame_id_unwind): Update declaration.
9326
9327 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
9328
9329         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9330
9331 2003-01-15  Stephen P. Smith <ischis2@cox.net>
9332
9333         * MAINTAINERS (Stephen P. Smith): Updated email address.
9334
9335 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
9336
9337         Fix PR gdb/898
9338         * breakpoint.c (until_break_command): Add new argument.  Use it to
9339         decide whether to stop only at the current frame or not.
9340         * breakpoint.h (until_break_command): Update prototype.
9341         * infcmd.c (until_command): Add new argument to until_break_command
9342         call.
9343         (advance_command): New function.
9344         (_initialize_infcmd): Update help string for 'until' command.
9345         Add new 'advance' command.
9346
9347 2003-01-14  David Carlton  <carlton@math.stanford.edu>
9348
9349         * linespec.c (decode_line_1): Normalize comments.
9350         (set_flags): Ditto.
9351         (locate_first_half): Ditto.
9352         (decode_compound): Ditto.
9353         (symtab_from_filename): Ditto.
9354         (decode_all_digits): Ditto.
9355         (decode_dollar): Ditto.
9356         (find_methods): Ditto.
9357         (find_toplevel_char): Ditto.
9358
9359 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
9360
9361         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9362         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9363         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9364         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9365         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9366         * language.c, language.h, m32r-tdep.c: Update copyright.
9367         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9368         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9369         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9370         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9371         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9372         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9373
9374 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
9375
9376         * stabsread.h (process_later, resolve_cfront_continuation):
9377         Obsolete.
9378         Update copyright years.
9379         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9380         Update copyright year.
9381         * dbxread.c(struct cont_elem): Obsolete.
9382         (process_later, process_now): Obsolete functions.
9383         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9384         Update copyright year.
9385         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9386         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9387         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9388         (parse_partial_symbols): Obsolete cfront support.
9389         * stabsread.c
9390         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9391         macros.
9392         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9393         read_cfront_baseclasses, read_cfront_member_functions,
9394         resolve_cfront_continuation,read_cfront_static_fields,
9395         copy_cfront_struct_fields): Obsolete functions.
9396         (define_symbol, read_one_struct_field): Obsolete cfront support.
9397         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9398         Update Copyright year.
9399
9400 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
9401
9402         * stack.c (print_frame_info, print_stack_frame_base_stub,
9403         print_stack_frame_base, show_and_print_stack_frame_stub,
9404         show_and_print_stack_frame, print_only_stack_frame_stub,
9405         print_only_stack_frame): Delete functions.
9406         (print_stack_frame_stub): Call print_frame_info instead of
9407         print_frame_info_base.
9408         (print_frame_info_base): Rename to print_frame_info.
9409         (backtrace_command_1): Call print_frame_info, instead of
9410         print_frame_info_base.
9411         (current_frame_command): Call print_stack_frame, instead of
9412         print_only_stack_frame.
9413         (frame_command): Call print_stack_frame, instead of
9414         show_and_print_stack_frame.
9415         (up_command): Ditto.
9416         (down_command): Ditto.
9417         * frame.h (print_only_stack_frame): Delete prototype.
9418         * infrun.c (normal_stop): Call print_stack_frame, instead of
9419         show_and_print_stack_frame.
9420         * thread.c (info_threads_command): Call print_stack_frame, instead
9421         of print_only_stack_frame.
9422
9423 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
9424
9425         * README (Graphical interface to GDB): Update URL.  Point at
9426         gdb/links/.
9427
9428         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
9429         version match.
9430
9431 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9432
9433         * symtab.c (find_pc_sect_line): Don't consider end-of-function
9434         lines.
9435
9436 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9437
9438         * thread-db.c (attach_thread): Prototype.
9439         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
9440         thread information (ti), and valid flags (th_valid, ti_valid).
9441         (attach_thread): Move target_pid_to_str call to after the thread
9442         is added to GDB's list.  Initialize the cache.
9443         (thread_get_info_callback, thread_db_map_id2thr)
9444         (thread_db_get_info): New functions.
9445         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9446         (thread_db_store_registers, thread_db_thread_alive)
9447         (thread_db_get_thread_local_address): Use them.
9448         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
9449         of calling error() for threads in unknown state.
9450
9451         (clear_lwpid_callback): New function.
9452         (thread_db_resume): Use it to clear the cache.
9453
9454 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9455
9456         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9457         (resume_callback): Remove dead code.
9458
9459 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
9460
9461         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9462         predicate.
9463         * gdbarch.h, gdbarch.c: Regenerate.
9464         * stack.c (frame_info): Only initialize the saved registers when
9465         FRAME_INIT_SAVED_REGS_P.
9466         * frame.c (frame_saved_regs_register_unwind): Assert
9467         FRAME_INIT_SAVED_REGS_P.
9468         (deprecated_generic_get_saved_register): Ditto.
9469
9470 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9471
9472         * source.c (openp): Squelch warning about "filename".
9473
9474 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9475
9476         * source.c (openp): If the file does not exist don't necessarily
9477         search the path.
9478
9479 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9480
9481         Fix PR gdb/872.
9482         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9483         (integer_types_same_name_p): New function.
9484         (rank_one_type): Use it.
9485         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9486
9487 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9488
9489         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9490         variables.
9491         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9492         * configure.in: Add --with-sysroot.
9493         * configure: Regenerated.
9494         * main.c (gdb_sysroot): New variable.
9495         (captured_main): Initialize gdb_sysroot.
9496         * defs.h (gdb_sysroot): New extern declaration.
9497         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9498
9499 2003-01-12  Michael Chastain  <mec@shout.net>
9500
9501         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9502
9503 2003-01-12  Michael Chastain  <mec@shout.net>
9504
9505         * top.c (print_gdb_version): Bump copyright year to 2003.
9506
9507 2003-01-12  David Carlton  <carlton@bactrian.org>
9508
9509         * linespec.c (symtab_from_filename): Rename variable 's' to
9510         'file_symtab'.
9511
9512 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
9513
9514         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9515         dummy frame.
9516         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9517
9518 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
9519
9520         * d10v-tdep.c: Include "gdb_assert.h".
9521         (d10v_store_return_value): Rewrite to match current interface.
9522         (d10v_extract_struct_value_address): Ditto.
9523         (d10v_extract_return_value): Ditto.
9524         (d10v_gdbarch_init): Set store_restore_value,
9525         extract_struct_value_address and extract_return_value.
9526
9527 2003-01-12  J. Brobecker  <brobecker@gnat.com>
9528
9529         * hpread.c (set_namestring): New procedure replacing the
9530         SET_NAMESTRING macro.
9531         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9532         by calls to set_namestring.
9533
9534 2003-01-11  J. Brobecker  <brobecker@gnat.com>
9535
9536         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9537         a compilation warning.
9538         (hpread_process_one_debug_symbol): Likewise.
9539
9540 2003-01-10  David Carlton  <carlton@math.stanford.edu>
9541
9542         * linespec.c (decode_line_1): Rename variable 's' to
9543         'file_symtab'.
9544         (decode_all_digits): Rename argument 's' to 'file_symtab'.
9545         (decode_dollar): Ditto.
9546         (decode_variable): Ditto.
9547         (symbol_found): Ditto.
9548
9549 2003-01-09  Michael Chastain  <mec@shout.net>
9550
9551         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9552
9553 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
9554
9555         * win32-nat.c (set_process_privilege): New function.
9556         (child_attach): Call set_process_privilege() to enable the
9557         SE_DEBUG_NAME user privilege if available in process token.
9558
9559 2003-01-10  J. Brobecker  <brobecker@gnat.com>
9560
9561         * hpread.c (hpread_process_one_debug_symbol): Fix a small
9562         compilation error in the previous revision.
9563
9564 2003-01-09  David Carlton  <carlton@math.stanford.edu>
9565
9566         * linespec.c: Update copyright.
9567
9568 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
9569
9570         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9571         than inferior_ptid.
9572         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9573
9574 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
9575
9576         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9577         Update comments.
9578         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9579         (frame_saved_regs_zalloc): Update.
9580         (frame_saved_regs_register_unwind): Update.
9581         (create_new_frame): Update.
9582         (get_prev_frame): Update.
9583         (frame_extra_info_zalloc): Update.
9584         (deprecated_get_frame_saved_regs): Update.
9585         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9586         * cris-tdep.c: Update comment.
9587
9588         * somsolib.h: Fix function indentation.
9589         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9590         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9591         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9592         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9593         * somsolib.c, inftarg.c: Remove assignment in if conditional.
9594
9595         * infrun.c (follow_fork): Use ISO C definition.
9596         * expprint.c (print_subexp): Use xfree instead of free.
9597         * charset.c: Include "gdb_string.h" instead of <string.h>.
9598         (register_iconv_charsets): Use ISO C definition.
9599         (host_charset, target_charset): Ditto.
9600         * Makefile.in (charset.o): Update dependencies.
9601         (mi-cmd-env.o): Update dependencies.
9602
9603 2003-01-08  Andrew Cagney  <cagney@redhat.com>
9604
9605         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9606         get_frame_base.
9607
9608 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
9609
9610         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
9611         build directories.  Save edited gdb output in Mbuild.log.  If a
9612         build fails, remove any final GDB executable.
9613
9614 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
9615
9616         * gdb_mbuild.sh: Edit the output of `maint print architecture'
9617         replacing hex constants with function names and stripping leading
9618         file name directory prefixes.
9619
9620 2003-01-08  Andrew Cagney  <cagney@redhat.com>
9621
9622         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
9623         get_frame_base.
9624
9625 2003-01-08  David Carlton  <carlton@math.stanford.edu>
9626
9627         * linespec.c (decode_line_1): Move code into decode_variable.
9628         (decode_variable): New function.
9629
9630 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
9631
9632         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
9633
9634 2003-01-08  Andrew Cagney  <cagney@redhat.com>
9635
9636         * cris-tdep.c (cris_frame_init_saved_regs): Use
9637         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
9638         saved_regs buffer.
9639         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9640         (sh64_nofp_frame_init_saved_regs): Ditto.
9641         (sh_fp_frame_init_saved_regs): Ditto.
9642         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
9643         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9644         * mcore-tdep.c (analyze_dummy_frame): Ditto.
9645         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9646
9647 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
9648
9649         * minsyms.c (lookup_minimal_symbol): Update comment.
9650         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
9651         (lookup_minimal_symbol_solib_trampoline): Likewise.
9652
9653 2003-01-08  Andrew Cagney  <cagney@redhat.com>
9654
9655         * d10v-tdep.c (d10v_init_extra_frame_info): Use
9656         frame_relative_level.
9657
9658         * alpha-tdep.c: Use get_frame_extra_info.
9659         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9660         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
9661         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9662         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
9663
9664         * alpha-tdep.c: Use get_next_frame.
9665         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9666         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9667         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
9668         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
9669         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
9670         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
9671         * xstormy16-tdep.c: Ditto.
9672
9673 2003-01-07  Andrew Cagney  <cagney@redhat.com>
9674
9675         * alpha-tdep.c: Use get_frame_base.
9676         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9677         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9678         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9679         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9680         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
9681         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9682         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
9683         * config/sparc/tm-sparc.h: Ditto.
9684
9685 2003-01-07  Andrew Cagney  <cagney@redhat.com>
9686
9687         * frame.c (deprecated_get_frame_context): New function.
9688         (deprecated_set_frame_context): New function.
9689         * frame.h (deprecated_get_frame_context): Declare.
9690         (deprecated_set_frame_context): Declare.
9691         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
9692         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
9693
9694 2003-01-07  Andrew Cagney  <cagney@redhat.com>
9695
9696         * frame.c (deprecated_set_frame_next_hack): New function.
9697         (deprecated_set_frame_prev_hack): New function.
9698         * frame.h (deprecated_set_frame_next_hack): Declare.
9699         (deprecated_set_frame_prev_hack): Declare.
9700         * mcore-tdep.c (analyze_dummy_frame): Use
9701         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
9702         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9703
9704 2003-01-07  David Carlton  <carlton@math.stanford.edu>
9705
9706         * linespec.c (decode_line_1): Move code into decode_dollar.
9707         (decode_dollar): New function.
9708
9709 2003-01-07  Andrew Cagney  <cagney@redhat.com>
9710
9711         * arm-tdep.c (arm_init_extra_frame_info): Use
9712         deprecated_update_frame_base_hack.
9713         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
9714         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9715         (fix_frame_pointer): Ditto.
9716         (mn10300_analyze_prologue): Ditto.
9717
9718 2003-01-07  Andrew Cagney  <cagney@redhat.com>
9719
9720         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
9721         extra_info using frame_extra_info_zalloc.
9722         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9723         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
9724         (sh64_init_extra_frame_info): Ditto.
9725         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
9726         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
9727         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9728         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
9729         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
9730         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
9731         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
9732         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
9733         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
9734         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
9735         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9736         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
9737
9738         * mn10300-tdep.c (analyze_dummy_frame): Use
9739         deprecated_set_frame_extra_info_hack.
9740         * mcore-tdep.c (analyze_dummy_frame): Ditto.
9741
9742 2003-01-07  J. Brobecker  <brobecker@gnat.com>
9743
9744         * mdebugread.c (parse_symbol): Skip stProc entries which storage
9745         class is not scText. These do not define "real" procedures.
9746         (parse_partial_symbols): Likewise.
9747
9748 2003-01-06  Michael Snyder  <msnyder@redhat.com>
9749
9750         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
9751
9752 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
9753
9754         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
9755         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
9756         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
9757         deprecated_frame_xmalloc_with_cleanup.
9758         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
9759         deprecated_frame_xmalloc.
9760         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
9761         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
9762
9763 2003-01-06  Andrew Cagney  <cagney@redhat.com>
9764
9765         * x86-64-linux-tdep.c: Include "osabi.h".
9766         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
9767
9768         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
9769
9770 2003-01-06  Andrew Cagney  <cagney@redhat.com>
9771
9772         * MAINTAINERS (Target Instruction Set Architectures): Update
9773         arm-elf.  Can be built with -Werror, has been multiarched.
9774
9775         * value.h (unpack_long): Make buffer parameter constant.
9776         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
9777         * scm-lang.h (scm_parse): Ditto.
9778         * defs.h (extract_typed_address, extract_address): Ditto.
9779         (extract_long_unsigned_integer): Ditto.
9780         * inferior.h (unsigned_pointer_to_address): Ditto.
9781         (signed_pointer_to_address): Ditto.
9782         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
9783         * gdbarch.h, gdbarch.c: Regenerate.
9784         * findvar.c (extract_long_unsigned_integer): Update.
9785         (extract_address): Update.
9786         (extract_typed_address): Update.
9787         (unsigned_pointer_to_address): Update.
9788         * values.c (unpack_long): Update.
9789         (unpack_double): Update.
9790         (unpack_pointer): Update.
9791         (unpack_field_as_long): Update.
9792         * d10v-tdep.c (d10v_pointer_to_address): Update.
9793         * avr-tdep.c (avr_pointer_to_address): Update.
9794         * scm-lang.c (scm_unpack): Update.
9795         * findvar.c (signed_pointer_to_address): Update.
9796
9797 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
9798
9799         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
9800         since it is in i386-tdep.c.
9801
9802 2003-01-06  J. Brobecker  <brobecker@gnat.com>
9803
9804         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
9805         failure introduced in the previous change.
9806
9807 2003-01-05  Michael Chastain  <mec@shout.net>
9808
9809         * README: Remove references to deleted remote-*.c files:
9810         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
9811         remote-nrom.c, remote-os9k.c, remote-udi.c.
9812
9813 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
9814
9815         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
9816         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
9817         i386_get_longjmp_target.
9818
9819 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
9820
9821         * arm-tdep.c (prologue_cache): Change to a pointer.
9822         (_initialize_arm_tdep): Allocate prologue_cache.
9823         (check_prologue_cache): Update.
9824         (save_prologue_cache): Update.
9825         (arm_gdbarch_init): Update.
9826
9827 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
9828
9829         * stabsread.c (update_method_name_from_physname): Call complaint()
9830         instead of error.
9831
9832 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
9833
9834         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
9835         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
9836         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
9837
9838         * blockframe.c: Include "gdbcmd.h" and "command.h".
9839         (backtrace_below_main): New variable.
9840         (file_frame_chain_valid, func_frame_chain_valid)
9841         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
9842         (generic_func_frame_chain_valid): Remove functions.
9843         (frame_chain_valid, do_flush_frames_sfunc): New functions.
9844         (_initialize_blockframe): New function.
9845         * Makefile.in (blockframe.o): Update dependencies.
9846         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
9847         comment.  Call frame_chain_valid ().
9848         * frame.h: Remove old prototypes.  Add prototype for
9849         frame_chain_valid and update comments to match.
9850         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
9851         Remove old comment.
9852         * gdbarch.h: Regenerated.
9853         * gdbarch.c: Regenerated.
9854
9855         * alpha-tdep.c (alpha_gdbarch_init): Don't call
9856         set_gdbarch_frame_chain_valid.
9857         * avr-tdep.c (avr_gdbarch_init): Likewise.
9858         * cris-tdep.c (cris_gdbarch_init): Likewise.
9859         * frv-tdep.c (frv_gdbarch_init): Likewise.
9860         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
9861         * i386-tdep.c (i386_svr4_init_abi): Likewise.
9862         (i386_nw_init_abi): Likewise.
9863         (i386_gdbarch_init): Likewise.
9864         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
9865         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9866         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9867         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
9868         * mips-tdep.c (mips_gdbarch_init): Likewise.
9869         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9870         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
9871         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9872         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9873         * s390-tdep.c (s390_gdbarch_init): Likewise.
9874         * sh-tdep.c (sh_gdbarch_init): Likewise.
9875         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9876         * v850-tdep.c (v850_gdbarch_init): Likewise.
9877         * vax-tdep.c (vax_gdbarch_init): Likewise.
9878         * x86-64-tdep.c (x86_64_init_abi): Likewise.
9879
9880         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
9881         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
9882         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
9883         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
9884         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
9885         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
9886         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
9887         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
9888
9889 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
9890
9891         * Makefile.in (acconfig_h): Remove incorrect macro.
9892         (config_h): Define.
9893         (osabi.o): Update dependencies.
9894         * configure.tgt: Set gdb_osabi based on target triplet.
9895         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
9896         * configure: Regenerated.
9897         * config.in: Regenerated.
9898         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
9899         (GDB_OSABI_DEFAULT): Define if not already defined.
9900         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
9901         (set_osabi_string): New variables.
9902         (gdbarch_register_osabi): Add new OS ABI to
9903         gdb_osabi_available_names.
9904         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
9905         (set_osabi, show_osabi): New functions.
9906         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
9907
9908 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
9909
9910         * arch-utils.c (gdbarch_info_init): Set osabi to
9911         GDB_OSABI_UNINITIALIZED.
9912         * gdbarch.sh: Add osabi to struct gdbarch and to struct
9913         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
9914         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
9915         * gdbarch.c: Regenerated.
9916         * gdbarch.h: Regenerated.
9917         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
9918         there's no BFD.
9919         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
9920         * osabi.h (enum gdb_osabi): Move to defs.h.
9921         (gdbarch_init_osabi): Update prototype.
9922         * defs.h (enum gdb_osabi): Moved here.
9923         * Makefile.in: Update dependencies.
9924
9925         * alpha-tdep.h: Don't include "osabi.h".
9926         (struct gdbarch_tdep): Remove osabi member.
9927         * alpha-tdep.c: Include "osabi.h".
9928         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
9929         iterate over arches.  Update call to gdbarch_init_osabi.
9930         (alpha_dump_tdep): Don't dump osabi.
9931         * alpha-linux-tdep.c: Include "osabi.h".
9932         * alpha-osf1-tdep.c: Include "osabi.h".
9933         * alphafbsd-tdep.c: Include "osabi.h".
9934         * alphanbsd-tdep.c: Include "osabi.h".
9935
9936         * arm-tdep.h: Don't include "osabi.h".
9937         (struct gdbarch_tdep): Remove osabi member.
9938         * arm-tdep.c: Include "osabi.h".
9939         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
9940         iterate over arches.  Update call to gdbarch_init_osabi.
9941         (arm_dump_tdep): Don't dump osabi.
9942         * arm-linux-tdep.c: Include "osabi.h".
9943         * armnbsd-tdep.c: Include "osabi.h".
9944
9945         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
9946         Update call to gdbarch_init_osabi.
9947
9948         * i386-tdep.h: Don't include "osabi.h".
9949         (struct gdbarch_tdep): Remove osabi member.
9950         * i386-tdep.c: Include "osabi.h".
9951         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
9952         iterate over arches.  Update call to gdbarch_init_osabi.
9953         (i386_dump_tdep): Don't dump osabi.
9954         * i386-linux-tdep.c: Include "osabi.h".
9955         * i386-sol2-tdep.c: Include "osabi.h".
9956         * i386bsd-tdep.c: Include "osabi.h".
9957         * i386gnu-tdep.c: Include "osabi.h".
9958         * i386ly-tdep.c: Include "osabi.h".
9959         * i386nbsd-tdep.c: Include "osabi.h".
9960         * i386obsd-tdep.c: Include "osabi.h".
9961
9962         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
9963         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
9964         check osabi when iterating over arches.  Update call to
9965         gdbarch_init_osabi.
9966         (mips_dump_tdep): Don't dump osabi.
9967
9968         * ns32k-tdep.h: Don't include "osabi.h".
9969         (struct gdbarch_tdep): Remove.
9970         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
9971         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
9972         allocate tdep.  Update call to gdbarch_init_osabi.
9973         (ns32k_dump_tdep): Remove.
9974         (_initialize_ns32k_tdep): Update call to gdbarch_register.
9975         * ns32knbsd-tdep.c: Include "osabi.h".
9976
9977         * ppc-tdep.h: Don't include "osabi.h".
9978         (struct gdbarch_tdep): Remove osabi member.
9979         * rs6000-tdep.c: Include "osabi.h".
9980         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
9981         osabi when iterating over arches.  Update call to
9982         gdbarch_init_osabi.
9983         (rs6000_dump_tdep): Don't dump osabi.
9984         * ppc-linux-tdep.c: Include "osabi.h".
9985         * ppcnbsd-tdep.c: Include "osabi.h".
9986
9987         * sh-tdep.h: Don't include "osabi.h".
9988         (struct gdbarch_tdep): Remove osabi member.
9989         * sh-tdep.c: Include "osabi.h".
9990         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
9991         iterate over arches.  Update call to gdbarch_init_osabi.
9992         (sh_dump_tdep): Don't dump osabi.
9993         * shnbsd-tdep.c: Include "osabi.h".
9994
9995         * sparc-tdep.c: Include "osabi.h".
9996         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
9997         iterate over arches.  Update call to gdbarch_init_osabi.
9998         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
9999         tdep structure.
10000
10001         * vax-tdep.h: Don't include "osabi.h".
10002         (struct gdbarch_tdep): Remove.
10003         * vax-tdep.c: Include "osabi.h".
10004         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
10005         iterate over arches.  Don't allocate tdep.  Update call
10006         to gdbarch_init_osabi.
10007         (vax_dump_tdep): Remove.
10008         (_initialize_vax_tdep): Update call to gdbarch_register.
10009
10010 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
10011
10012         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10013         entirely.
10014         (breakpoint_re_set_one): Don't fetch the value for a disabled
10015         watchpoint.
10016
10017 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
10018
10019         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10020         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10021         (COERCE_FLOAT_TO_DOUBLE): Remove.
10022         * gdbarch.c: Regenerate.
10023         * gdbarch.h: Regenerate.
10024         * Makefile.in: Remove value_h from gdbarch_h.
10025         * valops.c (coerce_float_to_double): New variable.
10026         (default_coerce_float_to_double): Remove.
10027         (standard_coerce_float_to_double): Remove.
10028         (value_arg_coerce): Use coerce_float_to_double.
10029         (_initialize_valops): Add "set coerce-float-to-double".
10030         * value.h (default_coerce_float_to_double): Remove prototype.
10031         (standard_coerce_float_to_double): Remove prototype.
10032
10033         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10034         prototyped.
10035         * mdebugread.c (parse_symbol): Likewise.
10036         * stabsread.c (define_symbol): Mark all functions as prototyped.
10037
10038         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10039         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10040         set_gdbarch_coerce_float_to_double.
10041         * arm-tdep.c (arm_gdbarch_init): Likewise.
10042         * frv-tdep.c (frv_gdbarch_init): Likewise.
10043         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10044         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10045         * mips-tdep.c (mips_gdbarch_init): Likewise.
10046         (mips_coerce_float_to_double): Remove.
10047         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10048         (rs6000_coerce_float_to_double): Remove.
10049         * s390-tdep.c (s390_gdbarch_init): Likewise.
10050         * sh-tdep.c (sh_gdbarch_init): Likewise.
10051         (sh_coerce_float_to_double): Remove.
10052         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10053         (sparc_coerce_float_to_double): Remove.
10054         * v850-tdep.c (v850_gdbarch_init): Likewise.
10055         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10056         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10057         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10058         (hppa_coerce_float_to_double): Remove prototype.
10059         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10060
10061 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
10062
10063         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10064
10065 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
10066
10067         Suggested by Stewart Brown <sb24@avaya.com>:
10068         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10069         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
10070         (c_type_print_varspec_suffix): Likewise.
10071
10072 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
10073
10074         * configure.in: Don't set and AC_SUBST SUBDIRS.
10075         * configure: Regenerated.
10076
10077         * configure.in: Remove code dealing with shared libraries.
10078         * Makefile.in: Remove HLDFLAGS and HLDENV.
10079         * configure: Regenerated.
10080
10081 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
10082
10083         * frame.c (deprecated_frame_xmalloc): New function.
10084         (deprecated_set_frame_saved_regs_hack): New function.
10085         (deprecated_set_frame_extra_info_hack): New function.
10086         * frame.h (deprecated_frame_xmalloc): Declare.
10087         (deprecated_set_frame_saved_regs_hack): Declare.
10088         (deprecated_set_frame_extra_info_hack): Declare.
10089
10090 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
10091
10092         * configure.in: Move code that provides the --enable-gdbtk option
10093         right after the code that handles the --enable-tui option, and
10094         polish it somewhat.
10095         * configure: Regenerated.
10096
10097         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
10098         AC_CHECK_FUNCS and remove the old check for pread64.
10099         * acinclude.m4 (AC_GNU_SOURCE): New macro.
10100         * acconfig.h (_GNU_SOURCE): Add.
10101         (HAVE_PREAD64): Remove.
10102         * configure, aclocal.m4, config.in: Regenerated.
10103
10104 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
10105
10106         * alpha-tdep.c: Use get_frame_saved_regs.
10107         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10108         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10109         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10110         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10111         * vax-tdep.c, xstormy16-tdep.c: Ditto.
10112
10113 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
10114
10115         * configure.in: Remove all use of the SUBDIRS variable; add
10116         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
10117         code providing the --enable-multi-ice option, and move it right in
10118         front of the code that checks whether gdbserver is supported.
10119         Polish that too.
10120         * configure: Regenerated.
10121         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10122         @SUBDIRS@.
10123
10124 2003-01-03  Andrew Cagney  <cagney@redhat.com>
10125
10126         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10127         * avr-tdep.c, cris-tdep.c: Ditto.
10128         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10129         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10130
10131 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
10132
10133         * configure.in: Remove --enable-netrom option.
10134         * configure: Regenerated.
10135
10136 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
10137
10138         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10139         declaration for `struct re_pattern_buffer' instead.
10140         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10141
10142 2003-01-03  J. Brobecker  <brobecker@gnat.com>
10143
10144         * mdebugread.c (parse_symbol): Count until the stEnd matching
10145         the structure name.
10146
10147 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
10148
10149         * configure.in: Remove --with-cpu option.
10150         subscripts.  Remove evil changequotes here.
10151         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10152         * config.in, configure: Regenerated.
10153
10154         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10155         * configure.in: Cleanup section that sources GDB and BFD configure
10156         subscripts.  Remove evil changequotes here.
10157         * config.in, configure: Regenerated.
10158
10159 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
10160
10161         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10162         frame accessor methods.
10163         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10164         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10165         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10166         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10167         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10168         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10169         * z8k-tdep.c: Ditto.
10170
10171 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
10172
10173         * configure.in: Remove UI_OUT configuration code.
10174         * ada-lang.c: Update assuming UI_OUT is always true.
10175         * Makefile.in (UIOUT_CFLAGS): Remove.
10176         * configure: Regenerated.
10177         * TODO: Remove blurb about elimination of -DUI_OUT.
10178
10179         * configure.in: Move code that provides the --enable-gdbcli,
10180         --enable-gdbmi options right before the code that handles the
10181         --enable-tui option.  Polish a bit.
10182         * configure: Regenerated.
10183
10184         * configure.in: Rewrite check for GNU regex and the
10185         --without-included regex option, and move it into the "Checks for
10186         library functions" section.  This makes us use the system regex
10187         again by default on systems with version 2 of the GNU C library.
10188         This was apparently broken.
10189         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10190         * acconfig.h (USE_INCLUDED_REGEX): Remove.
10191         * config.in, configure: Regenerated.
10192
10193         * configure.in: Move code that provides the --enable-tui option
10194         before the "Checks for libraries" section.  Polish the code
10195         somewhat and set need_curses to yes if we build the TUI.  Rewrite
10196         code that looks for a library providing termcap functionality to
10197         match more closely what's done in the Readline library, and move
10198         it into to the "Checks for libraries" section.
10199         * configure: Regenerated.
10200         * Makefile.in (TERMCAP): Remove variable.
10201         * config/i386/go32.mh (TERMCAP): Remove variable.
10202
10203 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
10204
10205         * MAINTAINERS: Mention gdb_mbuild.sh.
10206         * gdb_mbuild.sh: Rewrite.
10207
10208 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
10209
10210         * configure.in: Fix typo in last change.
10211         * config.in, configure: Regenerated.
10212
10213 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
10214
10215         * valarith.c (value_binop): Delete obsolete code and comments.
10216         * configure.host: Ditto.
10217         * buildsym.h (make_blockvector): Ditto.
10218         * buildsym.c (make_blockvector): Ditto.
10219         * defs.h (enum language): Ditto.
10220         (chill_demangle): Ditto.
10221         * elfread.c (elf_symtab_read): Ditto.
10222         * dwarfread.c (CHILL_PRODUCER): Ditto.
10223         (set_cu_language): Ditto.
10224         (handle_producer): Ditto.
10225         * expprint.c (print_subexp): Ditto.
10226         * gdbtypes.c (chill_varying_type): Ditto.
10227         * gdbtypes.h (builtin_type_chill_bool): Ditto.
10228         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10229         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10230         (chill_varying_type): Ditto.
10231         * language.h (_LANG_chill): Ditto.
10232         * language.c (binop_result_type, integral_type): Ditto.
10233         (character_type, string_type, structured_type): Ditto.
10234         (lang_bool_type, binop_type_check): Ditto.
10235         * stabsread.h (os9k_stabs): Ditto.
10236         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10237         (define_symbol, read_type, read_struct_fields): Ditto.
10238         (read_array_type, read_enum_type, read_huge_number): Ditto.
10239         (read_range_type, start_stabs): Ditto.
10240         * symfile.c (init_filename_language_table): Ditto.
10241         (add_psymbol_with_dem_name_to_list): Ditto.
10242         * symtab.c (symbol_init_language_specific): Ditto.
10243         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10244         * symtab.h (struct general_symbol_info): Ditto.
10245         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10246         * typeprint.c (typedef_print): Ditto.
10247         * utils.c (fprintf_symbol_filtered): Ditto.
10248         * valops.c (value_cast, search_struct_field, value_slice): Delete
10249         obsolete code.
10250         (varying_to_slice): Delete function.
10251         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10252         (varying_to_slice): Delete declaration.
10253         * MAINTAINERS: Update.
10254
10255 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
10256
10257         * configure.in: Reorganize "Checks for library functions section"
10258         a bit.  Remove check for `btowc' and `isascii' functions.
10259         * configure: Regenerated.
10260
10261         * acconfig.h (_MSE_INT_H): Remove.
10262         * configure.in: Create "Checks for header files" section, and move
10263         appropriate tests there.  Don't check for objlist.h, wchar.h,
10264         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
10265         misdetection fix.  Also add "Checks for types", "Checks for
10266         compiler characteristics" and "Checks for library functions"
10267         sections.
10268         * config.in, configure: Regenerated.
10269
10270         * configure.in: Create "Checks for programs" section, and move
10271         appropriate tests there.
10272
10273 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
10274
10275         * configure.in: Create "Checks for libraries" section, and move
10276         appropriate tests there.  Cleanup check for wctype in libw.  Use
10277         AC_SEARCH_LIBS to see whether we need libsocket.
10278         * configure: Regenerated.
10279
10280 For older changes see ChangeLog-2002
10281 \f
10282 Local Variables:
10283 mode: change-log
10284 left-margin: 8
10285 fill-column: 74
10286 version-control: never
10287 End: