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