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