2003-11-09 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-11-09 Andrew Cagney <cagney@redhat.com>
2
3 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
4 * config/mips/nm-irix6.h: Delete file.
5 * config/mips/nm-linux.h: Update copyright.
6 (MIPS_GNULINUX_TARGET): Delete macro.
7 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
8 * config/mips/xm-irix6.h: Delete file.
9 * config/mips/linux.mh (XM_FILE): Delete definition.
10 * config/mips/xm-linux.h: Delete file.
11
12 2003-11-09 Andrew Cagney <cagney@redhat.com>
13
14 * d10v-tdep.c (d10v_return_value): New function.
15 (d10v_use_struct_convention): Delete function.
16 (d10v_store_return_value): Delete function.
17 (d10v_extract_struct_value_address): Delete function.
18 (d10v_gdbarch_init): Set "return_value" instead of
19 "extract_return_value", "store_return_value",
20 "extract_struct_value_address", and "use_struct_convention".
21 (RET1_REGNUM): Delete const.
22
23 2003-11-09 Mark Kettenis <kettenis@gnu.org>
24
25 From David S. Miller <davem@redhat.com>:
26 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
27 * gdbarch.c, gdbarch.h: Regenerated.
28 * arch-utils.c (generic_skip_solib_resolver): New function.
29 * arch-utils.h (generic_skip_solib_resolver): New prototype.
30 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
31
32 2003-11-07 Andrew Cagney <cagney@redhat.com>
33
34 * top.c (print_gdb_version): Replace STREQ with strcmp.
35 * valops.c (value_struct_elt_for_reference): Ditto.
36 (value_struct_elt_for_reference): Ditto.
37 * symtab.c (gdb_mangle_name): Ditto.
38 (find_line_symtab): Ditto.
39 * symmisc.c (maintenance_print_symbols): Ditto.
40 * symfile.c (symbol_file_command): Ditto.
41 * stabsread.c (define_symbol, read_type): Ditto.
42 (cleanup_undefined_types, scan_file_globals): Ditto.
43 * solib.c (solib_map_sections): Ditto.
44 * solib-svr4.c (bfd_lookup_symbol): Ditto.
45 * rs6000-tdep.c (skip_prologue): Ditto.
46 * p-valprint.c (pascal_value_print): Ditto.
47 (pascal_object_is_vtbl_ptr_type): Ditto.
48 * objfiles.c (in_plt_section): Ditto.
49 * minsyms.c (lookup_minimal_symbol): Ditto.
50 (compact_minimal_symbols): Ditto.
51 (find_solib_trampoline_target): Ditto.
52 * mdebugread.c (parse_type): Ditto.
53 * language.c (set_language_command): Ditto.
54 (set_type_command, set_range_command): Ditto.
55 * f-lang.c (add_common_block): Ditto.
56 (add_common_block): Ditto.
57 (find_first_common_named): Ditto.
58 (patch_all_commons_by_name): Ditto.
59 * elfread.c (elf_locate_sections): Ditto.
60 (elf_locate_sections): Ditto.
61 (elfstab_offset_sections): Ditto.
62 * dwarf2read.c (dwarf2_locate_sections): Ditto.
63 * dbxread.c (add_old_header_file): Ditto.
64 (find_corresponding_bincl_psymtab): Ditto.
65 (read_dbx_symtab, process_one_symbol): Ditto.
66 * coffread.c (patch_opaque_types): Ditto.
67 * cli/cli-decode.c (delete_cmd): Ditto.
68 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
69 * c-typeprint.c (c_type_print_base): Ditto.
70 * breakpoint.c (bpstat_stop_status): Ditto.
71 (clear_command, breakpoint_re_set_one): Ditto.
72
73 2003-11-07 Andrew Cagney <cagney@redhat.com>
74
75 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
76 * bcache.c (struct bstring): Make "length" an unsigned short, add
77 "half_hash".
78 (struct bcache): Add "half_hash_error_count".
79 (bcache): Compute and save the "half_hash". Compare the
80 "half_hash" before comparing the length. Update
81 half_hash_error_count.
82
83 2003-11-07 Andrew Cagney <cagney@redhat.com>
84
85 * inftarg.c (child_xfer_partial): New function
86 (init_child_ops): Set "to_xfer_partial".
87
88 2003-11-07 Andrew Cagney <cagney@redhat.com>
89
90 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
91 set "return_value" instead of "use_struct_convention".
92 (ppc_linux_use_struct_convention): Delete function.
93 (ppc_linux_return_value): New function.
94 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
95 (ppc_sysv_abi_broken_return_value): New function.
96 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
97 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
98 static.
99 (ppc_sysv_abi_extract_return_value): Delete function.
100 (ppc_sysv_abi_broken_extract_return_value): Delete function.
101 (ppc_sysv_abi_store_return_value): Delete function.
102 (ppc_sysv_abi_broken_store_return_value): Delete function.
103 (ppc_sysv_abi_use_struct_convention): Delete function.
104 (ppc64_sysv_abi_use_struct_convention): Delete function.
105 (ppc64_sysv_abi_extract_return_value): Delete function.
106 (ppc64_sysv_abi_store_return_value): Delete function.
107 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
108 (ppcnbsd_init_abi): Set "return_value", instead of
109 "use_struct_convention", "extract_return_value", and
110 "store_return_value".
111 (ppcnbsd_use_struct_convention): Delete function.
112 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
113 (ppc_sysv_abi_return_value): Declare.
114 (ppc_sysv_abi_broken_return_value): Declare.
115 (ppc_sysv_abi_use_struct_convention): Delete.
116 (ppc_sysv_abi_store_return_value): Delete.
117 (ppc_sysv_abi_extract_return_value): Delete.
118 (ppc_sysv_abi_broken_store_return_value): Delete.
119 (ppc_sysv_abi_broken_extract_return_value): Delete.
120 (ppc64_sysv_abi_use_struct_convention): Delete.
121 (ppc64_sysv_abi_extract_return_value): Delete.
122 (ppc64_sysv_abi_store_return_value): Delete.
123 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
124 set "return_value" instead of "extract_return_value",
125 "store_return_value", and "use_struct_convention".
126
127 2003-11-07 Mark Kettenis <kettenis@gnu.org>
128
129 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
130
131 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
132 fscanf.
133
134 2003-11-07 Mark Kettenis <kettenis@gnu.org>
135
136 * fbsd-proc.c: Fix formatting.
137
138 2003-11-06 Kevin Buettner <kevinb@redhat.com>
139
140 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
141 Define.
142 (new_variant): Set name for iacc0_regnum.
143 (frv_register_name): Accommodate pseudo-registers.
144 (frv_register_type): Add case for iacc0_regnum.
145 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
146 (frv_gdbarch_init): Set number of pseudo registers. Establish
147 pseudo-register read/write methods.
148
149 2003-11-06 Andrew Cagney <cagney@redhat.com>
150
151 * valops.c (destructor_name_p): Replace STREQN with strncmp.
152 * top.c (command_line_input): Ditto.
153 * objc-exp.y (yylex): Ditto.
154 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
155 * jv-exp.y (yylex): Ditto.
156 * f-exp.y (yylex): Ditto.
157 * event-top.c (command_line_handler): Ditto.
158 * environ.c (get_in_environ): Ditto.
159 (set_in_environ): Ditto.
160 * dwarfread.c (handle_producer): Ditto.
161 * dbxread.c (process_one_symbol): Ditto.
162 * c-typeprint.c (c_type_print_base): Ditto.
163 * c-exp.y (yylex): Ditto.
164
165 2003-11-06 Andrew Cagney <cagney@redhat.com>
166 Jeff Johnston <jjohnstn@redhat.com>
167
168 * target.c (add_target): Only set "to_xfer_partial" when NULL.
169 (init_dummy_target): Set "to_xfer_partial".
170
171 2003-11-06 Andrew Cagney <cagney@redhat.com>
172
173 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
174 REGISTER_CONVENTION.
175
176 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
177
178 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
179 static.
180
181 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
182
183 * breakpoint.c (remove_breakpoint): Take an bp_location
184 instead of a breakpoint argument. Check the bp_location's type.
185 Fix a reversed condition for hardware breakpoints.
186
187 (insert_bp_location): Update call to remove_breakpoint.
188 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
189 (remove_hw_watchpoints): Likewise.
190 (reattach_breakpoints): Likewise.
191 (detach_breakpoints): Likewise.
192 (delete_breakpoint): Likewise.
193
194 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
195
196 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
197 (beakpoint_init_inferior): Likewise.
198 (breakpoint_here_p): Likewise. Only check addresses for software
199 or hardware breakpoints.
200 (breakpoint_inserted_here_p): Likewise.
201 (breakpoint_thread_match): Likewise. Correct comment.
202 (bpstat_have_active_hw_watchpoints): Likewise.
203 (check_duplicates): Likewise.
204
205 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
206
207 * breakpoints.c (insert_bp_location): New function, broken out
208 from insert_breakpoints. Work on an bp_location instead of a
209 breakpoint.
210 (insert_breakpoints): Use it.
211
212 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
213
214 * breakpoint.h (struct bp_location): Add section.
215 (struct breakpoint): Remove section.
216 * breakpoint.c (insert_breakpoints, remove_breakpoint)
217 (breakpoint_here_p, breakpoint_inserted_here_p)
218 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
219 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
220 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
221 section through loc.
222
223 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
224
225 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
226 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
227
228 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
229
230 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
231 arguments. Initialize owner and type for the new breakpoint
232 location item.
233 (set_raw_breakpoint): Update call to allocate_bp_location.
234
235 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
236
237 * breakpoint.h (struct bp_location): Add a chain pointer.
238 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
239 macros.
240 (bp_location_chain): New variable.
241 (allocate_bp_location): New function.
242 (set_raw_breakpoint): Use it.
243 (delete_breakpoint): Remove ->loc from the bp_location_chain.
244
245 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
246
247 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
248 (struct breakpoint): Remove address, shadow_contents, inserted,
249 requested_address, and duplicate. Add a struct bp_location.
250 * breakpoint.c (condition_command, read_memory_nobpt)
251 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
252 (reattach_breakpoints, update_breakpoints_after_exec)
253 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
254 (breakpoint_init_inferior, breakpoint_here_p)
255 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
256 (breakpoint_thread_match, bpstat_stop_status)
257 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
258 (describe_other_breakpoints, check_duplicates)
259 (make_breakpoint_permanent, create_thread_event_breakpoint)
260 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
261 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
262 (watch_command_1, print_one_exception_catchpoint)
263 (clear_command, breakpoint_re_set_one): Adjust member accesses to
264 use the breakpoint's ->loc.
265 (set_raw_breakpoint): Likewise. Initialize ->loc.
266 (delete_breakpoint): Likewise. Free ->loc.
267
268 2003-11-05 Andrew Cagney <cagney@redhat.com>
269
270 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
271 macro.
272 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
273 * config/i386/tm-cygwin.h
274 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
275 * config/powerpc/tm-linux.h
276 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
277 (at_subroutine_call_instruction_target): Delete declaration.
278 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
279 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
280 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
281
282 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
283 "struct bfd_section" and "struct bfd".
284 * target.h (struct section_table): Ditto.
285 * rs6000-nat.c (xcoff_relocate_core): Ditto.
286 * solib-svr4.c (elf_locate_base): Ditto.
287 * pa64solib.c (dld_cache_t): Ditto.
288 * objfiles.h (struct obj_section): Ditto.
289 * objfiles.c (add_to_objfile_sections): Ditto.
290 * exec.c (bfdsec_to_vmap): Ditto.
291 (add_to_section_table): Ditto.
292 (build_section_table): Ditto.
293 * corelow.c (get_core_register_section): Ditto.
294 * coffread.c (find_linenos): Ditto.
295 * elfread.c (elf_interpreter): Delete #if0'd function.
296
297 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
298 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
299 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
300 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
301
302 * arch-utils.h (generic_cannot_extract_struct_value_address):
303 Delete declaration.
304 * wince.c (_initialize_wince): Fix multi-line string.
305 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
306
307 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
308
309 * top.c (execute_command): Fix broken logic for command execution
310 while inferior is running in async mode.
311
312 2003-11-06 Mark Kettenis <kettenis@gnu.org>
313
314 * dwarf2-frame.c (execute_cfa_program): Mark register as
315 REG_SAVED_REG for DW_CFA_register opcode.
316
317 2003-11-05 Mark Kettenis <kettenis@gnu.org>
318
319 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
320 %rsp, %rip and %eflags to match ABI-change.
321
322 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
323
324 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
325 (ia64_gdbarch_init): Don't bother calculating the os.
326 Instead use the gdbarch_info struct and look at the osabi field.
327 Also use gdbarch_list_lookup_by_info() to look for a
328 candidate gdbarch.
329
330 2003-11-05 Kevin Buettner <kevinb@redhat.com>
331
332 * frv-tdep.c (frv_register_byte): Delete.
333 (frv_extract_return_value, frv_store_return_value)
334 (frv_extract_struct_value_address): Don't call frv_register_byte().
335 Convert to non-deprecated form.
336 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
337 Convert calls to set_gdbarch_deprecated_extract_return_value(),
338 set_gdbarch_deprecated_store_return_value(), and
339 set_gdbarch_deprecated_extract_struct_value_address() into
340 non-deprecated forms.
341
342 2003-11-05 Andrew Cagney <cagney@redhat.com>
343
344 * mips-tdep.c (mips_dump_tdep): Do not print
345 PRINT_EXTRA_FRAME_INFO.
346 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
347 Rename PRINT_EXTRA_FRAME_INFO.
348 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
349 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
350 (mips_print_extra_frame_info): Delete declaration.
351 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
352
353 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
354
355 * coffread.c (coff_symtab_read): Remove passing of info parameter
356 to prim_record_minimal_symbol_and_info.
357
358 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
359
360 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
361 (decode_base_type): Delete ifdeffed out code.
362
363 2003-11-04 Andrew Cagney <cagney@redhat.com>
364
365 * symtab.c (find_active_alias): Delete function.
366 (lookup_block_symbol): Delete alias code.
367 * stabsread.c (resolve_live_range): Delete function.
368 (add_live_range): Delete function.
369 (resolve_symbol_reference): Delete function.
370 (define_symbol): Delete live range and alias code.
371 (scan_file_globals): Delete alias code.
372 * symtab.h (SYMBOL_RANGES): Delete macro.
373 (struct range_list): Delete structure.
374 (struct symbol): Delete field "ranges".
375 (SYMBOL_ALIASES): Delete macro.
376 (struct alias_list): Delete structure.
377 (struct symbol): Delete field "aliases".
378
379 2003-11-04 Michael Snyder <msnyder@redhat.com>
380
381 * MAINTAINERS: Remove myself as owner of breakpoints and
382 of sparc/solaris.
383
384 2003-11-03 Corinna Vinschen <vinschen@redhat.com>
385
386 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
387 (sh_sh4al_dsp_register_name): Ditto.
388 (sh4_nofpu_show_regs): Ditto.
389 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
390 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
391
392 2003-11-03 Andrew Cagney <cagney@redhat.com>
393
394 * bcache.c: Include "gdb_assert.h".
395 (struct bcache): Add fields "expand_count" and
396 "expand_hash_count".
397 (expand_hash_table): Update the expand counts.
398 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
399 on object sizes and hashes.
400 * Makefile.in (bcache.o): Update dependencies.
401
402 2003-11-03 Andrew Cagney <cagney@redhat.com>
403
404 * exec.c (xfer_memory): Eliminate xfer_fn.
405
406 2003-10-31 Kevin Buettner <kevinb@redhat.com>
407
408 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
409 (opcodes/frv-desc.h): Include.
410 (iacc0h_regnum, iacc0l_regnum): Define.
411 (last_spr_regnum, frv_num_regs): Update.
412 (new_variant): Don't supply default names for holes in the SPRs.
413 Supply names for iacc0h_regnum and iacc0l_regnum.
414 (frv_register_type): Use symbolic constants first_fpr_regnum and
415 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
416 builtin_type_int instead of builtin_type_int32.
417 (frv_register_sim_regno): New function.
418 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
419 * Makefile.in (gdb_sim_frv_h): Define.
420 (frv-tdep.o): Update dependencies.
421
422 2003-10-31 Andrew Cagney <cagney@redhat.com>
423
424 * avr-tdep.c (avr_frame_this_id): Do not call
425 deprecated_inside_entry_file.
426 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
427 * m32r-tdep.c (m32r_frame_this_id): Ditto.
428 * d10v-tdep.c (d10v_frame_this_id): Ditto.
429 * arm-tdep.c (arm_prologue_this_id): Ditto.
430 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
431
432 2003-10-31 Jim Blandy <jimb@redhat.com>
433
434 * elfread.c (elf_symtab_read): Allocate correct number of tail
435 elements to sectinfo structure. (Fix from Woody LaRue.)
436
437 2003-10-31 Andrew Cagney <cagney@redhat.com>
438
439 * stack.c (return_command): Use get_frame_type, instead of
440 CALL_DUMMY_HAS_COMPLETED.
441 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
442 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
443
444 2003-10-31 Mark Kettenis <kettenis@gnu.org>
445
446 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
447 explicitly specify size of array.
448 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
449 TDEP->sc_num_regs.
450
451 2003-10-31 Andrew Cagney <cagney@redhat.com>
452
453 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
454 function.
455 (s390_gdbarch_init): Set extract_struct_value_address.
456 * arch-utils.c (generic_cannot_extract_struct_value_address):
457 Delete function.
458 * arch-utils.h (generic_cannot_extract_struct_value_address):
459 Delete definition.
460
461 2003-10-31 Mark Kettenis <kettenis@gnu.org>
462
463 * i386-linux-nat.c (fetch_core_registers): Remove.
464 (linux_elf_core_fns): Remove.
465 (_initialize_i386_linux_nat): Remove.
466
467 2003-10-31 Andrew Cagney <cagney@redhat.com>
468
469 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
470 "exec.h".
471 (exec_entry_point): New function.
472 (enable_break): Create a "tmp_bfd_target", use that and
473 entry_point_address when computing the relocation offset.
474 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
475 * Makefile.in (solib-svr4.o): Update dependencies.
476
477 2003-10-31 Andrew Cagney <cagney@redhat.com>
478
479 * defs.h (XZALLOC): Define.
480 * target.h (struct target_ops): Add "to_data";
481 * bfd-target.h, bfd-target.c: New files.
482 * Makefile.in (SFILES): Add "bfd-target.c".
483 (COMMON_OBS): Add "bfd-target.o".
484 (bfd-target.o): Specify dependencies.
485 (bfd_target_h): Define.
486 * defs.h (XZALLOC): Define.
487
488 2003-10-31 Andrew Cagney <cagney@redhat.com>
489
490 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
491 adjust_breakpoint_address.
492 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
493 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
494 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
495 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
496
497 2003-10-31 Andrew Cagney <cagney@redhat.com>
498
499 * target.h (struct target_ops): Replace "to_read_partial" and
500 "to_write_partial" with "to_xfer_partial". Update comments.
501 * target.c (debug_to_write_partial): Delete function.
502 (debug_to_xfer_partial): Replace debug_to_read_partial.
503 (add_target, update_current_target, setup_target_debug): Set
504 "to_xfer_partial" instead of "to_read_partial" and
505 "to_write_partial".
506 (default_xfer_partial): Replace "default_write_partial".
507 (default_read_partial): Delete.
508 (target_read_partial, target_write_partial): Call
509 "to_xfer_partial".
510 * remote.c (init_remote_ops): Set "to_xfer_partial".
511 (init_remote_async_ops): Ditto.
512 (remote_xfer_partial): Replace "remote_read_partial".
513
514 2003-10-31 Mark Kettenis <kettenis@gnu.org>
515
516 * i386-tdep.c (i386_supply_fpregset): Support floating-point
517 registers in `fxsave' format.
518 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
519
520 2003-10-30 Mark Kettenis <kettenis@gnu.org>
521
522 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
523 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
524 TDEP->gregset_num_regs and tdep->sizeof_gregset.
525
526 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
527 specify size of array.
528 (i386_linux_init_abi): Remove initialization of
529 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
530 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
531
532 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
533 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
534 core-regset.o.
535
536 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
537 the ELF header.
538
539 2003-10-29 Mark Kettenis <kettenis@gnu.org>
540
541 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
542 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
543 core-regset.o.
544
545 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
546
547 * corelow.c: Include "arch-utils.h", "regset.h" and
548 "gdb_assert.h".
549 (core_gdbarch): New variable.
550 (sniff_core_bfd): Don't sniff if we have support for register sets
551 in CORE_GDBARCH.
552 (core_close): Reset CORE_GDBARCH.
553 (core_open): Initialize CORE_GDBARCH.
554 (get_core_register_section): Use register sets if they are
555 supported by CORE_GDBARCH.
556 (get_core_registers): Don't print error message if we have support
557 for register sets in CORE_GDBARCH.
558
559 2003-10-29 Andrew Cagney <cagney@redhat.com>
560
561 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
562 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
563
564 2003-10-29 Mark Kettenis <kettenis@gnu.org>
565
566 * objfiles.h (clear_objfile_data): New prototype.
567 * objfiles.c (clear_objfile_data): New function.
568 * symfile.c (reread_symbols): Clear per-objfile data.
569
570 2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
571
572 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
573 printf_unfiltered instead of printf_filtered for output messages.
574 (add_symbol_file_command): Ditto.
575 (reread_symbols): Ditto.
576 (overlay_auto_command): Ditto.
577 (overlay_manual_command): Ditto.
578 (overlay_off_command): Ditto.
579
580 2003-10-27 Mark Kettenis <kettenis@gnu.org>
581
582 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
583 (gdbarch_from_bfd): New function.
584 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
585 deprecated_select_gdbarch_hack.
586 * arch-utils.h (gdbarch_from_bfd): New prototype.
587
588 2003-10-27 Andrew Cagney <cagney@redhat.com>
589
590 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
591 arch_info. Use warning instead of fprintf_filtered. Do not use
592 deprecated bfd_printable_arch_mach.
593
594 2003-10-26 Kevin Buettner <kevinb@redhat.com>
595
596 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
597 Delete.
598 (frv_register_type): Rename from frv_register_virtual_type. Add
599 ``struct gdbarch *'' parameter.
600 (frv_gdbarch_init): Delete calls to the following functions:
601 set_gdbarch_deprecated_size(),
602 set_gdbarch_deprecated_register_bytes(),
603 set_gdbarch_deprecated_register_raw_size(),
604 set_gdbarch_deprecated_max_register_raw_size(),
605 set_gdbarch_deprecated_register_virtual_size(),
606 set_gdbarch_deprecated_max_register_virtual_size(),
607 set_gdbarch_deprecated_register_virtual_size(),
608 set_gdbarch_deprecated_register_virtual_type().
609 Add call to function set_gdbarch_register_type().
610
611 2003-10-26 Mark Kettenis <kettenis@gnu.org>
612
613 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
614 FDOFF_REGNUM): Remove defines.
615 * win32-nat.c (do_child_fetch_inferior_registers): Include
616 "i387-tdep.h".
617 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
618 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
619 undefine I387_ST0_REGNUM.
620
621 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
622 * x86-64-tdep.c (x86_64_store_return_value): Use
623 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
624
625 Change register numbers to enumartion values.
626 * i386-tdep.h (enum i386_regnum): New.
627 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
628 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
629 I386_ST0_REGNUM): Remove defines.
630 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
631 I386_EDI_REGNUM): Remove defines.
632
633 2003-10-24 Andrew Cagney <cagney@redhat.com>
634
635 * target.c: Include "gdbcore.h".
636 (get_target_memory, get_target_memory_unsigned): New functions.
637 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
638 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
639 Use get_target_memory_unsigned.
640 * Makefile.in (target.o): Update dependencies.
641
642 2003-10-24 Andrew Cagney <cagney@redhat.com>
643
644 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
645 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
646 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
647 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
648 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
649
650 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
651 (can_run_code_for): Use the OO term "singleton".
652
653 2003-10-23 Andrew Cagney <cagney@redhat.com>
654
655 * Makefile.in (stack.o): Add $(regcache_h).
656 * stack.c: Include "regcache.h"
657 (return_command): Rewrite. Use get_frame_id and
658 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
659 about unhandled return-values.
660 * value.h (set_return_value): Delete declaration.
661 * values.c (set_return_value): Delete function.
662
663 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
664
665 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
666 (pseudo_regs): Add comment regarding register stack registers.
667 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
668 (floatformat_valid): New static routine.
669 (floatformat_ia64_ext): Add name field and set up is_valid routine
670 to floatformat_valid().
671 (examine_prologue): For the previous cfm, use
672 frame_unwind_register()
673 if the cfm is not stored in a register-stack register. Save the
674 previous cfm value in the prev_cfm field. Add debug output.
675 (ia64_frame_this_id): Use frame_id_build_special() to also register
676 the bsp. Add debug output.
677 (ia64_sigtramp_frame_this_id): Ditto.
678 (ia64_frame_prev_register): Look at cache saved_regs for a few more
679 registers and also add some checks for framelessness before accepting
680 current register values for fields such as return address. For cfm,
681 use the cached prev_cfm field if available. Add comment to explain
682 PSR logic. Add debug output.
683 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
684 as part of initialization.
685 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
686 calculated. Cache the bsp and cfm values.
687 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
688 instead of using ia64_frame_prev_register() which doesn't expect most
689 registers to be saved. The saved values for bsp and sp
690 can be taken from the cache. Add debug output.
691 (ia64_push_dummy_call): Use frame_id_build_special() to also register
692 the bsp.
693
694 2003-10-23 Jim Blandy <jimb@redhat.com>
695
696 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
697 architecture the current arch can run code for --- but not if it's
698 a superset.
699 (can_run_code_for): New function.
700
701 2003-10-22 James E Wilson <wilson@specifixinc.com>
702
703 * MAINTAINERS: Move myself from paper trail section back to write
704 after approval section.
705
706 2003-10-22 Andrew Cagney <cagney@redhat.com>
707
708 * exec.h: New file.
709 * win32-nat.c: Include "exec.h".
710 * solib.c: Include "exec.h".
711 * target.h (build_section_table): Delete declaration.
712 * somsolib.c: Include "exec.h".
713 (exec_ops): Delete extern declaration.
714 * rs6000-nat.c: Update copyright. Include "exec.h".
715 (exec_ops): Delete extern declaration.
716 * pa64solib.c: Update copyright. Include "exec.h".
717 (exec_ops): Delete extern declaration.
718 * exec.c: Update copyright. Include "exec.h".
719 * corelow.c: Update dependencies. Include "exec.h".
720 * Makefile.in (exec_h): Define.
721 (exec.o, somsolib.o): Update dependencies.
722 (pa64solib.o, corelow.o): Update dependencies.
723
724 2003-10-22 Andrew Cagney <cagney@redhat.com>
725
726 * target.c: Include "gdb_assert.h" (target_read): Call
727 "target_read_partial", not "target_write_partial".
728 (default_read_partial, default_write_partial): New function.
729 (target_read_partial, target_write_partial): Simplify, assume that
730 there is always a read/write method.
731 (update_current_target, add_target): Always set "to_read_partial"
732 and "to_write_partial".
733 (target_write, target_read): Fail on a zero byte transfer.
734 * Makefile.in (target.o): Update dependencies.
735 * target.h: Update copyright date.
736 (target_object): Fix typo.
737
738 2003-10-22 Andrew Cagney <cagney@redhat.com>
739
740 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
741 multi-arch method, add "targ" parameter.
742 (struct target_ops): Declare.
743 * gdbarch.h, gdbarch.c: Re-generate.
744 * Makefile.in (c-valprint.o): Update dependencies.
745 * arch-utils.h: Update copyright.
746 (convert_from_func_ptr_addr_identity): Declare.
747 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
748 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
749 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
750 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
751 * infcall.c (find_function_addr, call_function_by_hand): Update.
752 * c-valprint.c: Include "target.h".
753 (print_function_pointer_address): Update.
754
755 2003-10-22 Andrew Cagney <cagney@redhat.com>
756
757 * target.c (target_close): New function.
758 (debug_to_close): Use "target_close".
759 (push_target): Use "target_close".
760 (unpush_target): Use "target_close".
761 (pop_target): Use "target_close".
762 * target.h (struct target_ops): Add "to_xclose".
763 (target_open): Delete macro. Move comment to "to_open".
764 (target_close): Replace macro with function that takes a target.
765 * top.c (quit_target): Pass "current_target" to "target_close".
766
767 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
768
769 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
770 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
771 * symtab.h (lookup_minimal_symbol_text): Update.
772 * breakpoint.c (create_overlay_event_breakpoint,
773 create_longjmp_breakpoint): Update callers.
774 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
775 * symtab.c (find_pc_sect_line): Ditto.
776
777 2003-10-21 Andrew Cagney <cagney@redhat.com>
778
779 * target.c (errno): Delete extern declaration.
780
781 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
782
783 * ia64-tdep.c: Change all occurrences of
784 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
785 (ia64_frame_prev_register): Minor whitespace change.
786
787 2003-10-20 Michael Chastain <mec@shout.net>
788
789 * config/djgpp/fnchange.lst: Add lines for:
790 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
791 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
792 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
793 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
794 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
795 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
796 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
797
798 2003-10-20 Andrew Cagney <cagney@redhat.com>
799
800 * values.c (register_value_being_returned): Update comments. Use
801 "gdbarch_return_value" when available.
802 (using_struct_return): Ditto.
803 (set_return_value): Ditto. Use "gdbarch_return_value" when
804 available.. Print a warning, and not an error, when an unhandled
805 return type is encountered.
806 * infcmd.c: Include "gdb_assert.h".
807 (print_return_value): When gdbarch_return_value_p, and using
808 struct return, assume that the value is not available.
809 * defs.h (return_value_convention): Define.
810 * gdbarch.sh (gdbarch_return_value): New predicate method.
811 * gdbarch.h, gdbarch.c: Re-generate
812 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
813
814 2003-10-20 Andrew Cagney <cagney@redhat.com>
815
816 * symtab.c: Replace "struct sec" with "struct bfd_section".
817 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
818
819 2003-10-19 Michael Chastain <mec@shout.net>
820
821 * config/djgpp/fnchange.lst: Add lines for:
822 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
823 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
824 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
825
826 2003-10-19 Mark Kettenis <kettenis@gnu.org>
827
828 * amd64fbsd-nat.c (fetch_inferior_registers,
829 store_inferior_registers): Remove functions.
830 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
831
832 2003-10-18 Mark Kettenis <kettenis@gnu.org>
833
834 Add NetBSD/amd64 native configuration:
835 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
836 * amd64nbsd-tdep.c: New file.
837 * amd64nbsd-nat.c: New file.
838 * amd64bsd-nat.c: New file.
839 * config/i386/nbsd64.mh: New file.
840 * config/i386/nbsd64.mt: New file.
841 * configure.host: Add x86_64-*-netbsd*.
842 * configure.tgt: Add x86_64-*-netbsd*.
843 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
844 New targets.
845 * NEWS (New native configurations): Mention NetBSD/amd64.
846
847 2003-10-17 Michael Chastain <mec@shout.net>
848
849 * config/djgpp/fnchange.lst: Remove dead lines for:
850 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
851 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
852 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
853 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
854 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
855 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
856 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
857 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
858 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
859 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
860 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
861 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
862 gdb/config/sparc/tm-sparclite.h,
863 gdb/gdbtk/generic/ChangeLog-2001,
864 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
865 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
866 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
867 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
868 gdb/testsuite/gdb.mi/mi0-var-block.exp,
869 gdb/testsuite/gdb.mi/mi0-var-child.exp,
870 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
871 gdb/testsuite/gdb.mi/mi0-var-display.exp,
872 itcl/iwidgets3.0.0/demos/extfileselectionbox,
873 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
874 itcl/iwidgets3.0.0/demos/fileselectionbox,
875 itcl/iwidgets3.0.0/demos/fileselectiondialog,
876 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
877 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
878 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
879 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
880 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
881 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
882 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
883 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
884 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
885 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
886 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
887 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
888 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
889 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
890 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
891 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
892 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
893 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
894 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
895 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
896 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
897 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
898 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
899 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
900 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
901 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
902 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
903 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
904 itcl/iwidgets3.0.0/demos/html/shell.n.html,
905 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
906 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
907 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
908 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
909 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
910 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
911 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
912 itcl/iwidgets3.0.0/demos/scrolledcanvas,
913 itcl/iwidgets3.0.0/demos/scrolledframe,
914 itcl/iwidgets3.0.0/demos/scrolledhtml,
915 itcl/iwidgets3.0.0/demos/scrolledlistbox,
916 itcl/iwidgets3.0.0/demos/scrolledtext,
917 itcl/iwidgets3.0.0/demos/selectionbox,
918 itcl/iwidgets3.0.0/demos/selectiondialog,
919 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
920 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
921 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
922 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
923 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
924 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
925 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
926 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
927 itcl/iwidgets3.0.0/doc/scrolledframe.n,
928 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
929 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
930 itcl/iwidgets3.0.0/doc/scrolledtext.n,
931 itcl/iwidgets3.0.0/doc/selectionbox.n,
932 itcl/iwidgets3.0.0/doc/selectiondialog.n,
933 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
934 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
935 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
936 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
937 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
938 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
939 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
940 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
941 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
942 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
943 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
944 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
945 itcl/iwidgets3.0.0/generic/selectionbox.itk,
946 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
947 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
948 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
949 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
950 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
951 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
952 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
953 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
954 itcl/iwidgets3.0.0/tests/scrolledframe.test,
955 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
956 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
957 itcl/iwidgets3.0.0/tests/scrolledtext.test,
958 itcl/iwidgets3.0.0/tests/selectionbox.test,
959 itcl/iwidgets3.0.0/tests/selectiondialog.test,
960 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
961 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
962 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
963 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
964 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
965 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
966 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
967 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
968 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
969 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
970 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
971 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
972 tk/mac/tkMacProjects.sit.hqx.
973
974 2003-10-17 Andrew Cagney <cagney@redhat.com>
975
976 * target.c (target_section_by_addr): New function.
977 (do_xfer_memory): Use "target_section_by_addr".
978 * target.h (target_section_by_addr): Declare.
979
980 * target.h (struct target_ops): Add "to_read_partial" and
981 "to_write_partial", delete "to_query".
982 (target_read_partial, target_write_partial): Declare.
983 (target_read, target_write): Declare.
984 (target_query): Delete macro.
985 * target.c (target_read_partial): New function.
986 (target_write_partial, target_read, target_write): New function.
987 (update_current_target): Delete inheritance of "to_query". Add
988 comments about "to_read_partial" and "to_write_partial".
989 (debug_to_partial_read, debug_to_partial_write): New functions.
990 (debug_to_query): Delete function.
991 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
992 instead of "to_query".
993 * remote.c (remote_read_partial): Replace "remote_query".
994 (init_remote_ops): Set "to_read_partial" instead of "to_query".
995 (init_remote_async_ops): Ditto.
996 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
997 "target_read_partial" instead of "target_query".
998 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
999 Use "target_read_partial" instead of "target_query".
1000
1001 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1002
1003 * frame.h (struct frame_id): Add new field: special_addr.
1004 (frame_id_build_special): New prototype.
1005 * frame.c (frame_id_build_special): New function.
1006 (frame_id_build): Change to call frame_id_build_special().
1007 (frame_id_eq): Change to also test special_addr field.
1008 (frame_id_inner): Update comment.
1009
1010 2003-10-17 Andrew Cagney <cagney@redhat.com>
1011
1012 * target.c (update_current_target): Perform the target cleanup.
1013 Put the target stack beneath the squashed "current_target".
1014 (add_target): Delete disabled call to "cleanup_target".
1015 (cleanup_target): Delete function.
1016 (push_target, unpush_target): Do not call "cleanup_target".
1017
1018 2003-10-17 Andrew Cagney <cagney@redhat.com>
1019
1020 * target.c (target_stack): Change to a static target_ops.
1021 (update_current_target): Walk the "struct target_ops" stack.
1022 (pop_target, do_xfer_memory, target_info): Ditto.
1023 (find_target_beneath): Ditto.
1024 (push_target): Rewrite to use the "struct target_ops" stack.
1025 (unpush_target): Ditto.
1026 * target.h (struct target_stack_item): Delete definition.
1027 (target_stack): Delete declaration.
1028 (struct target_ops): Add field "beneath".
1029
1030 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
1031
1032 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1033 declaration.
1034 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1035 (h8300_examine_prologue): Use h8300_normal_mode flag
1036 (h8300_gdbarch_init): Set architecture info for normal mode
1037
1038 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
1039
1040 * remote.c (remote_protocol_vcont): New variable.
1041 (set_remote_protocol_vcont_packet_cmd): New function.
1042 (show_remote_protocol_vcont_packet_cmd): New function.
1043 (init_all_packet_configs): Handle remote_protocol_vcont.
1044 (remote_vcont_probe): New function.
1045 (remote_vcont_resume): New function.
1046 (remote_resume): Use it.
1047 (remote_async_resume): Call remote_resume.
1048 (_initialize_remote): Add verbose-resume packet commands.
1049
1050 2003-10-16 Andrew Cagney <cagney@redhat.com>
1051
1052 * infrun.c (handle_inferior_event): Add comment about
1053 "frame_id_inner" being too weak.
1054
1055 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
1056
1057 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1058 second parameter, which is always null. Remove
1059 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1060 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1061 accordingly.
1062 * somsolib.c (som_solib_create_inferior_hook,
1063 som_solib_desire_dynamic_linker_symbols): Update callers.
1064 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
1065
1066 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1067
1068 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1069 debug interface, SDI (Scalable Debug Interface).
1070 * NEWS: Mention m32r SDI protocol was supported.
1071 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1072 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1073
1074 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1075
1076 * ia64-linux-tdep.c: Include gdbcore.h.
1077 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1078 (ia64_linux_sigcontext_register_addr): Find the address of the
1079 sigcontext area stored in the sigframe instead of using
1080 a magic offset constant.
1081
1082 2003-10-15 Andrew Cagney <cagney@redhat.com>
1083
1084 * remote.c (remote_search): Delete function.
1085 * target.h (target_search): Delete disabled macro.
1086 (struct target_ops): Delete disabled field "to_search".
1087
1088 2003-10-14 Kevin Buettner <kevinb@redhat.com>
1089
1090 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1091 instead of deprecated_inside_entry_file().
1092
1093 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
1094
1095 * sh-tdep.c: Fix copy/paste hangover in comment.
1096 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1097 mode.
1098 (sh3e_sh4_extract_return_value): Ditto.
1099
1100 2003-10-13 Richard Henderson <rth@redhat.com>
1101
1102 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1103 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1104 match c_val_print a bit closer.
1105
1106 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1107
1108 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1109 (frv_gdbarch_adjust_breakpoint_address): New function.
1110 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1111 method.
1112
1113 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1114
1115 * breakpoint.h (struct breakpoint): Add new member
1116 ``requested_address''.
1117 * breakpoint.c (breakpoint_adjustment_warning)
1118 (adjust_breakpoint_address): New static functions.
1119 (print_it_typical): Issue warning if breakpoint's address is different
1120 from its requested address.
1121 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1122 (breakpoint_re_set_one): Set breakpoint's
1123 ``requested_address'' field. Set ``address'' field to the
1124 result of calling adjust_breakpoint_address() on the requested
1125 address.
1126
1127 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1128
1129 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1130 * gdbarch.h, gdbarch.c: Regenerate.
1131
1132 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1133
1134 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1135 TDEP->sc_num_regs.
1136
1137 * i386fbsd-tdep.c: New file.
1138 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1139 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1140 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1141 i386bsd-tdep.c.
1142 (_initialize_i386fbsd_tdep): New function.
1143 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1144 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1145 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1146 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1147 TDEP->sc_num_regs.
1148 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1149 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1150 to initialize TDEP->sc_num_regs.
1151 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1152 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1153 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1154 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1155 FreeBSD ELF OS/ABI's here.
1156 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1157 (i386fbsd-tdep.o): New target.
1158 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1159 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1160
1161 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1162 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1163 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1164 in initialization of TDEP->sc_num_regs.
1165
1166 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1167 (x86_64_init_abi): Initialize regset_from_core_section if
1168 appropriate.
1169
1170 * i386-tdep.c (i386_regset_from_core_section): New function.
1171 (i386_gdbarch_init): Initialize regset_from_core_section if
1172 appropriate.
1173 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1174
1175 * i386-tdep.h (struct regset): Declare opaque.
1176
1177 * gdbarch.sh (regset_from_core_section): New method.
1178 (struct regset): Declare opaque.
1179 * gdbarch.c, gdbarch.h: Regenerated.
1180
1181 2003-10-11 Alan Modra <amodra@bigpond.net.au>
1182
1183 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1184 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1185 Correct test for pc within section.
1186
1187 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1188
1189 * gdbarch.sh: Remove trailing whitepsace from comments.
1190
1191 2003-10-08 Roland McGrath <roland@redhat.com>
1192
1193 * gcore.c (make_mem_sec): Function removed, folded into ...
1194 (gcore_create_callback): ... here. To omit a section, clear its
1195 SEC_LOAD bit rather than zeroing its size.
1196 Omit read-only sections only if they correspond to a known disk file.
1197 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1198
1199 2003-10-10 Michael Snyder <msnyder@redhat.com>
1200
1201 * d10v-tdep.c: Fix typo in comment.
1202
1203 2003-10-10 Andrew Cagney <cagney@redhat.com>
1204
1205 * rs6000-tdep.c (e500_store_return_value): Delete function.
1206 (e500_extract_return_value): Delete function.
1207 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1208 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1209 "ppc_sysv_abi_restore_return_value" where applicable.
1210 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1211 (ppc_sysv_abi_extract_return_value): Declare.
1212 (ppc_sysv_abi_broken_store_return_value): Declare.
1213 (ppc_sysv_abi_broken_extract_return_value): Declare.
1214 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1215 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1216 start of file.
1217 (do_ppc_sysv_return_value): New function.
1218 (ppc_sysv_abi_extract_return_value): New function.
1219 (ppc_sysv_abi_store_return_value): New function.
1220 (ppc_sysv_abi_broken_extract_return_value): New function.
1221 (ppc_sysv_abi_broken_store_return_value): New function.
1222 (ppc_sysv_abi_use_struct_convention): Call
1223 do_ppc_sysv_return_value.
1224
1225 2003-10-10 J. Brobecker <brobecker@gnat.com>
1226
1227 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1228 to lookup the main function symbol.
1229
1230 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1231
1232 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1233 types correctly.
1234 (sh_push_dummy_call_fpu): Fix argument passing rules.
1235 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1236 float types.
1237 (sh3e_sh4_store_return_value): Ditto.
1238
1239 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
1240
1241 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1242 comment.
1243
1244 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1245
1246 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1247 more readable code. Accomodate passing of bitfields.
1248
1249 2003-10-10 Andrew Cagney <cagney@redhat.com>
1250
1251 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1252 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1253 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1254 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1255 (ppc64_sysv_abi_push_dummy_call): New function.
1256 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1257 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1258 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1259
1260 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1261
1262 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1263 * README: Ditto.
1264 * d10v-tdep.c: Ditto.
1265 * h8300-tdep.c: Ditto.
1266 * remote-e7000.c: Ditto.
1267 * remote-hms.c: Ditto.
1268 * ser-e7kpc.c: Ditto.
1269 * sh-stub.c: Ditto.
1270 * sh-tdep.c: Ditto.
1271 * sh-tdep.h: Ditto.
1272 * sh3-rom.c: Ditto.
1273 * sh64-tdep.c: Ditto.
1274 * top.c: Ditto.
1275 * wince.c: Ditto.
1276 * config/d10v/d10v.mt: Ditto.
1277 * config/sh/embed.mt: Ditto.
1278 * config/sh/linux.mt: Ditto.
1279 * config/sh/tm-linux.h: Ditto.
1280 * config/sh/tm-sh.h: Ditto.
1281 * config/sh/wince.mt: Ditto.
1282
1283 2003-10-09 Andrew Cagney <cagney@redhat.com>
1284
1285 * ppc-tdep.h (struct type): Declare opaque.
1286 * x86-64-tdep.h (struct regcache): Declare opaque.
1287 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1288 coding style.
1289
1290 2003-10-09 Andrew Cagney <cagney@redhat.com>
1291
1292 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1293 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1294 (SOFTWARE_SINGLE_STEP_P): Ditto.
1295 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1296 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1297 (SOFTWARE_SINGLE_STEP_P): Ditto.
1298 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1299 software_single_step to rs6000_software_single_step.
1300
1301 2003-10-09 Andrew Cagney <cagney@redhat.com>
1302
1303 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1304
1305 2003-10-09 Michael Snyder <msnyder@redhat.com>
1306
1307 * frame.h: Fix typo in comment.
1308 * dummy-frame.c: Fix typo in comment.
1309 * d10v-tdep.c: Random whitespace/comment tweaks.
1310
1311 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
1312
1313 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1314 (sh_push_dummy_code): Delete function, it's only used for dummy calls
1315 on stack.
1316
1317 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1318 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1319 in detail.
1320
1321 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1322
1323 * remote-mips.c (mips_initialize): Remove unneeded call to
1324 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1325
1326 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1327
1328 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1329 a memory pointer.
1330
1331 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1332
1333 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1334 for any lwp we resume.
1335 (running_callback): Add lwps that have pending status events
1336 against them to be considered running.
1337
1338 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1339
1340 * m32r-tdep.c : Include "dis-asm.h".
1341 * Makefile.in (m32r-tdep.o): Update dependencies.
1342
1343 2003-10-06 J. Brobecker <brobecker@gnat.com>
1344
1345 * completer.h (get_gdb_completer_word_break_characters): Delete.
1346 * completer.c: include language.h.
1347 (gdb_completer_word_break_characters): Delete.
1348 (get_gdb_completer_word_break_characters): Delete.
1349 (location_completer): Use the word break characters of the current
1350 language.
1351 (complete_line): Likewise.
1352 (line_completion_function): Likewise.
1353 (skip_quoted_chars): Likewise.
1354 * Makefile.in (completer.o): Add dependency on language.h.
1355 * top.c (init_main): Set the readline word break characters
1356 to GDB's default word break characters.
1357
1358 2003-10-06 J. Brobecker <brobecker@gnat.com>
1359
1360 * language.h (language_defn): new field, la_word_break_characters.
1361 * language.c (unknown_language_defn): Set new field to
1362 default_word_break_characters.
1363 (auto_language_defn): Likewise.
1364 (local_language_defn): Likewise.
1365 * ada-lang.c (ada_language_defn): Likewise.
1366 * c-lang.c (c_language_defn): Likewise.
1367 (cplus_language_defn): Likewise.
1368 (asm_language_defn): Likewise.
1369 (minimal_language_defn): Likewise.
1370 * f-lang.c (f_language_defn): Likewise.
1371 * jv-lang.c (java_language_defn): Likewise.
1372 * m2-lang.c (m2_language_defn): Likewise.
1373 * objc-lang.c (objc_language_defn): Likewise.
1374 * p-lang.c (pascal_language_defn): Likewise.
1375 * scm-lang.c (scm_language_defn): Likewise.
1376
1377 2003-10-06 Andrew Cagney <cagney@redhat.com>
1378
1379 * ppc-sysv-tdep.c: Re-indent.
1380
1381 2003-10-06 J. Brobecker <brobecker@gnat.com>
1382
1383 * language.h (default_word_break_characters): Add prototype.
1384 * language.c (default_word_break_characters): New function.
1385
1386 2003-10-06 Andreas Schwab <schwab@suse.de>
1387
1388 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1389 with %eax.
1390
1391 2003-10-06 Andrew Cagney <cagney@redhat.com>
1392
1393 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1394 "h8500-tdep.c".
1395 (z8k-tdep.o): Delete custom build rule.
1396
1397 2003-10-06 Andrew Cagney <cagney@redhat.com>
1398
1399 * Makefile.in: Update all dependencies.
1400
1401 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1402 No longer list PA as as obsolete candidate. List m32r as
1403 broken instead of obsolete.
1404
1405 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1406 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1407 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1408 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1409 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1410 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1411 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1412 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1413 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1414 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1415 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1416 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1417 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1418 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1419 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1420 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1421 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1422 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1423 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1424 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1425 * config/z8k/z8k.mt: Ditto.
1426
1427 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1428 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1429 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1430 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1431 sparclite were removed.
1432 * configure.host, configure.tgt: Remove corresponding tuples.
1433
1434 * breakpoint.c, breakpoint.h: Remove obsolete code.
1435 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1436 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1437 * stabsread.h, xcoffread.c: Ditto.
1438
1439 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1440 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1441 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1442 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1443
1444 2003-10-06 David Lecomber <dsl@sources.redhat.com>
1445
1446 * f-valprint.c: Reformatting
1447
1448 2003-10-06 Mark Kettenis <kettenis@gnu.org>
1449
1450 * x86-64-tdep.c: Remove duplicate comment.
1451
1452 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1453 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1454 names for return values. This fixes a bug since we looked at %rbx
1455 instead of %rdx.
1456
1457 2003-10-05 Mark Kettenis <kettenis@gnu.org>
1458
1459 * x86-64-tdep.c: Include "regset.h".
1460
1461 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1462 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1463 sizeof_fpregset.
1464 * i386-tdep.c: Include "regset.h".
1465 (i386_supply_gregset): New function.
1466 (i386_supply_fpregset): New function.
1467 (i386_gdbarch_init): Initialze register set-related members of
1468 TDEP.
1469 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1470 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1471
1472 2003-10-03 Andrew Cagney <cagney@redhat.com>
1473
1474 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1475 set extract_return_value, store_return_value and
1476 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1477 ppc64_sysv_abi_store_return_value and
1478 ppc64_sysv_abi_use_struct_convention.
1479 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1480 (ppc64_sysv_abi_store_return_value): Declare.
1481 (ppc64_sysv_abi_use_struct_convention): Declare.
1482 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1483 (ppc64_sysv_abi_extract_return_value): New function.
1484 (ppc64_sysv_abi_store_return_value): New function.
1485 (ppc64_sysv_abi_use_struct_convention): New function.
1486 (ppc64_sysv_abi_return_value): New function.
1487
1488 2003-10-03 Andrew Cagney <cagney@redhat.com>
1489
1490 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1491 convert a descriptor to a function when it's in the ".opd"
1492 section.
1493
1494 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1495
1496 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1497 reg_size to keep GCC silent.
1498
1499 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1500
1501 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1502 base for DW_EH_PE_textrel encodings.
1503 (read_encoded_value): Add a DW_EH_PE_textrel case.
1504 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1505 section.
1506
1507 2003-10-03 Mark Kettenis <kettenis@gnu.org>
1508
1509 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1510
1511 2003-10-02 Andrew Cagney <cagney@redhat.com>
1512
1513 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1514 REGISTER_RAW_SIZE.
1515 * gdbarch.h, gdbarch.c: Re-generate.
1516 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1517 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1518 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1519 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1520 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1521 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1522 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1523 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1524 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1525 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1526 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1527 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1528 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1529 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1530 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1531 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
1532
1533 2003-10-02 Jim Blandy <jimb@redhat.com>
1534
1535 * dwarf2read.c (struct die_info): Doc fix.
1536
1537 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1538
1539 * sh-tdep.c: Running thru gdb_indent.sh.
1540
1541 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1542
1543 * sh-tdep.c (sh_justify_value_in_reg): New function.
1544 (sh_stack_allocsize): Ditto.
1545 (flt_argreg_array): New array used for floating point argument
1546 passing.
1547 (sh_init_flt_argreg): New function.
1548 (sh_next_flt_argreg): Ditto.
1549 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1550 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1551 Fix argument passing strategy.
1552 (sh_push_dummy_call_nofpu): Ditto.
1553
1554 2003-10-01 Andrew Cagney <cagney@redhat.com>
1555
1556 * value.h (register_value_being_returned): Declare. Replace
1557 "value_being_returned".
1558 * infcall.c (call_function_by_hand): Use
1559 register_value_being_returned.
1560 * infcmd.c (print_return_value): Call
1561 "register_value_being_returned", handle struct return locally.
1562 * values.c (register_value_being_returned): New function. Replace
1563 "value_being_returned".
1564
1565 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
1566
1567 * linux-proc.c (linux_do_registers): New function.
1568 (linux_make_note_section): Use linux_do_registers in case of
1569 single threaded inferior programs.
1570
1571 2003-10-01 Andrew Cagney <cagney@redhat.com>
1572
1573 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1574 use STRUCT_ADDR. When not using "struct return convention", pass
1575 "0" to "value_being_returned". Add FIXMEs.
1576 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1577 value_being_returned. Add comments.
1578 * values.c (value_being_returned): Add fixme.
1579 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1580 (hppa_value_returned_from_stack): Add FIXME.
1581
1582 2003-09-30 David Carlton <carlton@kealia.com>
1583
1584 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1585 'has_children' and 'next' by 'child' and 'sibling'.
1586 (read_comp_unit): Rework algorithm, breaking body into
1587 read_die_and_children and read_die_and_siblings.
1588 (read_die_and_children, read_die_and_siblings): New.
1589 (read_full_die): Add 'has_children' argument; set it instead of
1590 the die's 'has_children' field. Minor formatting cleanup.
1591 (free_die_list): Use die->child and die->sibling instead of
1592 die->next.
1593 (dump_die_list): Ditto.
1594 (sibling_die): Use die->sibling.
1595 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1596 'has_children' and 'next' fields.
1597 (process_die, read_file_scope, read_func_scope)
1598 (read_lexical_block_scope, read_structure_scope)
1599 (read_enumeration, read_array_type, read_common_block)
1600 (read_namespace, read_subroutine_type, dump_die): Ditto.
1601
1602 2003-09-30 Andrew Cagney <cagney@redhat.com>
1603
1604 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1605 to 224, not 220.
1606
1607 2003-09-30 Andrew Cagney <cagney@redhat.com>
1608
1609 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1610 REGISTER_VIRTUAL_SIZE.
1611 * gdbarch.h, gdbarch.c: Regenerate.
1612 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1613 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1614 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1615
1616 2003-09-29 Andrew Cagney <cagney@redhat.com>
1617
1618 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1619 DEPRECATED_REGISTER_VIRTUAL_TYPE.
1620 * gdbarch.h, gdbarch.c: Regenerate.
1621 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1622 * sh64-tdep.c, sparc-tdep.c: Update.
1623
1624 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1625 * remote-vxmips.c (vx_read_register): Ditto.
1626 * remote-vx68.c (vx_read_register): Ditto.
1627 * gnu-nat.c (inf_validate_procs): Ditto.
1628
1629 2003-09-29 J. Brobecker <brobecker@gnat.com>
1630
1631 * infcall.c (call_function_by_hand): Fix build failure
1632 introduced in the previous change to this file.
1633
1634 2003-09-29 Andrew Cagney <cagney@redhat.com>
1635
1636 * NEWS: Mention Objective-C.
1637
1638 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
1639
1640 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1641 test if the register has been saved on the stack.
1642 (arm_scan_prologue_cache): When analysing the instruction
1643 "str lr, [sp, #-4]", save the address where lr has been stored.
1644
1645 2003-09-28 Andrew Cagney <cagney@redhat.com>
1646
1647 * frame.c (frame_read_unsigned_register): Delete function.
1648 * frame.h (frame_read_unsigned_register): Delete declaration.
1649 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1650 get_frame_register_unsigned.
1651 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1652 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1653 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1654
1655 * frame.h (frame_read_register): Delete declaration.
1656 * frame.c (frame_read_register): Delete function.
1657 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1658 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1659 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1660 * mips-tdep.c (mips_register_to_value): Ditto.
1661 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1662 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1663
1664 * frame.c (frame_read_signed_register): Delete function.
1665 (frame_read_unsigned_register): Update comments.
1666 * frame.h (frame_read_signed_register): Delete declaration.
1667 * h8300-tdep.c (h8300_print_register): Use
1668 get_frame_register_signed.
1669 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1670
1671 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1672 Rename VALUE_RETURNED_FROM_STACK.
1673 * infcmd.c (print_return_value): Update.
1674 * infcall.c (call_function_by_hand): Update.
1675
1676 2003-09-28 Mark Kettenis <kettenis@gnu.org>
1677
1678 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1679 regcache argument and reverse the order of the other two
1680 arguments. Remove local regcache variable. Determine
1681 architecture from REGCACHE. Update comments.
1682 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1683 reverse the order of the other two arguments. Remove local
1684 regcache variable. Determine architecture from REGCACHE. Update
1685 comments.
1686 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1687 prototypes. Update comments.
1688 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1689 comment.
1690 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1691 Update.
1692 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1693 * i386-interix-nat.c (supply_fpregset): Update.
1694 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1695 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1696 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1697 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1698 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1699 Update.
1700 * i386obsd-tdep.c (fetch_core_registers): Update.
1701 * i386v4-nat.c (supply_fpregset): Update.
1702 * x86-64-linux-nat.c (supply_fpregset): Update.
1703 * x86-64-linux-tdep.c (fetch_core_registers): Update.
1704
1705 2003-09-27 Mark Kettenis <kettenis@gnu.org>
1706
1707 * i386-tdep.h: Put opaque declarations in alphabetical
1708 order. Remove spurious whitespace.
1709 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1710 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1711 * i386-tdep.c (MM0_REGNUM): Remove define.
1712 (i386_mmx_regnum_p): Add gdbarch argument.
1713 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1714 Rewrite using new macro definitions for FPU/SSE registers.
1715 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1716 definitions from i387-tdep.h.
1717 (i386_register_name): Update.
1718 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1719 new macro definitions for FPU/SSE registers.
1720 (i386_extract_return_value): Determine whether floating-point
1721 registers are present by examining REGCACHE's architecture.
1722 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1723 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1724 FPU/SSE registers.
1725 (i386_register_type): Update.
1726 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1727 definitions for FPU registers. Use REGCACHE's architecture to
1728 determine the appropriate register numbers.
1729 (i386_pseudo_register_read, i386_pseudo_register_write,
1730 i386_register_reggroup_p): Update.
1731 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1732 TDEP->mm0_regnum.
1733 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1734 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1735 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1736 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1737 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1738 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1739 *' to `void *'.
1740 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1741 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1742 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1743 definitions for FPU/SSE registers.
1744 (FXSAVE_MXCSR_ADDR): New define.
1745 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1746 TDEP->mm0_regnum.
1747 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1748 (I387_ST0_REGNUM): Define.
1749
1750 * regcache.h (get_regcache_arch): New prototype.
1751 * regcache.c (get_regcache_arch): New function.
1752
1753 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1754 whitespace.
1755
1756 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1757 Initialize using ARRAY_SIZE.
1758
1759 2003-09-27 Andrew Cagney <cagney@redhat.com>
1760
1761 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1762 "init_frame_pc_default".
1763 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1764 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1765 * vax-tdep.c (vax_gdbarch_init): Update.
1766 * v850-tdep.c (v850_gdbarch_init): Update.
1767 * sh64-tdep.c (sh64_gdbarch_init): Update.
1768 * s390-tdep.c (s390_gdbarch_init): Update.
1769 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1770 * mcore-tdep.c (mcore_gdbarch_init): Update.
1771 * h8300-tdep.c (h8300_gdbarch_init): Update.
1772 * cris-tdep.c (cris_gdbarch_init): Update.
1773 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1774
1775 2003-09-26 Mark Kettenis <kettenis@gnu.org>
1776
1777 * regset.h: New file.
1778 * Makefile.in (regset_h): Add.
1779
1780 2003-09-25 Andrew Cagney <cagney@redhat.com>
1781
1782 * frame.h (deprecated_frame_saved_regs): Rename
1783 get_frame_saved_regs.
1784 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1785 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1786 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1787 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1788 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1789
1790 2003-09-25 Andrew Cagney <cagney@redhat.com>
1791
1792 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1793 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1794 and Java.
1795 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1796 arm*-*-* do not use the new frame code.
1797
1798 2003-09-25 David Carlton <carlton@kealia.com>
1799
1800 * c-exp.y: Remove 'register' declarations.
1801 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1802
1803 2003-09-25 David Carlton <carlton@kealia.com>
1804
1805 * c-exp.y: Include cp-support.h. Add qualified_type.
1806 (yylex): Delete nested type hack; add comments.
1807 * cp-namespace.c (cp_lookup_nested_type): New function.
1808 * cp-support.h: Declare cp_lookup_nested_type.
1809 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1810 instead of value_struct_elt_for_reference.
1811 * valops.c: Include cp-support.h.
1812 (value_aggregate_elt): New function.
1813 (value_namespace_elt): Ditto.
1814 (value_struct_elt_for_reference): Make static.
1815 * value.h: Delete declaration of value_struct_elt_for_reference;
1816 add declaration for value_aggregate_elt.
1817 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1818 (valops.o): Ditto.
1819
1820 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
1821
1822 * stack.c: Include "reggroups.h".
1823 (frame_info): Only display registers in all_reggroup.
1824 * Makefile.in (stack.o): Update dependencies.
1825
1826 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1827
1828 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1829 "add ip, sp #n" in the prologue.
1830 (arm_scan_prologue): Ditto.
1831
1832 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1833
1834 * MAINTAINERS (write after approval): Add myself.
1835
1836 2003-09-25 Andreas Schwab <schwab@suse.de>
1837
1838 * m68k-tdep.c: Include "dwarf2-frame.h".
1839 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1840 * Makefile.in (m68k-tdep.o): Update dependencies.
1841
1842 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
1843
1844 * sh-tdep.c (struct frame_extra_info): Remove.
1845 (struct sh_frame_cache): New structure.
1846 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1847 (GET_TARGET_REG): Ditto but target register.
1848 (GET_PUSHED_REG): Remove.
1849 (IS_MOV_ARG_TO_REG): New macro.
1850 (IS_MOV_ARG_TO_IND_R14): New macro.
1851 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1852 (IS_MOVW_PCREL_TO_REG): New macro.
1853 (IS_MOVL_PCREL_TO_REG): New macro.
1854 (IS_SUB_REG_FROM_SP): New macro.
1855 (IS_ARG_MOV): Remove.
1856 (IS_MOV_TO_R14): Remove.
1857 (IS_RESTORE_FP): New macro.
1858 (IS_RTS): New macro.
1859 (IS_LDS): New macro.
1860 (IS_MOV_FP_SP): New macro.
1861 (IS_ADD_REG_TO_FP): New macro.
1862 (IS_ADD_IMM_FP): New macro.
1863 (sh_skip_prologue_hard_way): Remove.
1864 (sh_saved_pc_after_call): Remove.
1865 (sh_frame_chain): Remove.
1866 (sh_find_callers_reg): Remove.
1867 (sh_nofp_frame_init_saved_regs): Remove.
1868 (sh_fp_frame_init_saved_regs): Remove.
1869 (sh_init_extra_frame_info): Remove.
1870 (sh_analyze_prologue): New function.
1871 (sh_skip_prologue): Remove deprecated code. Rely on new function
1872 sh_analyze_prologue when after_prologue fails.
1873 (sh_frame_saved_pc): Remove.
1874 (sh_alloc_frame_cache): New function.
1875 (sh_frame_cache): Ditto.
1876 (sh_frame_prev_register): Ditto.
1877 (sh_frame_this_id): Ditto.
1878 (sh_frame_unwind): New structure defining the heuristic frame
1879 sniffer interface.
1880 (sh_frame_sniffer): New function.
1881 (sh_unwind_sp): Ditto.
1882 (sh_unwind_pc): Ditto.
1883 (sh_unwind_dummy_id): Ditto.
1884 (sh_frame_base_address): Ditto.
1885 (sh_frame_base): New structure defining new frame base code.
1886 (sh_in_function_epilogue_p): New function.
1887 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1888 code and to call all new code instead. Initialize dwarf2 and
1889 heuristic frame sniffer.
1890
1891 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1892
1893 * parser-defs.h (struct exp_descriptor): New definition, containing
1894 language-specific info for printing, prefixifying, dumping, and
1895 evaluating expressions.
1896 (exp_descriptor_standard): Declare new variable.
1897 (print_subexp): Make global and declare here (from expprint.c).
1898 (dump_subexp): Ditto.
1899 (dump_subexp_body_standard): Declare.
1900 (operator_length_standard): Declare.
1901 (op_name_standard): Declare.
1902 (print_subexp): Declare.
1903 (print_subexp_standard): Declare.
1904
1905 * language.h (struct language_defn): Add la_exp_desc field to hold
1906 pointer to table for language-specific operators.
1907 Remove evaluate_exp field, which is now in struct exp_descriptor.
1908
1909 * parse.c (operator_length): Move most code to new
1910 operator_length_standard function. Use language-specific information.
1911 (operator_length_standard): New function taking most code from
1912 operator_length.
1913 (exp_descriptor_standard): New constant.
1914
1915 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
1916 and OP_EXTENDED_LAST.
1917
1918 * expprint.c (print_subexp): Use language-specific print_subexp.
1919 Make global; remove static declaration.
1920 Move most code to print_subexp_standard.
1921 (print_subexp_standard): New function, containing code formerly in
1922 print_subexp.
1923 (op_name): Add expression to argument signature.
1924 Use langauge-specific op_name.
1925 Move most code to op_name_standard.
1926 (op_name_standard): New function, containing code formerly in op_name.
1927 (dump_subexp): Use new version of op_name function.
1928 Use language-specific dump_subexp_body, and move most existing code to
1929 dump_subexp_body_standard.
1930 (dump_raw_expression): Use new op_name interface.
1931 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1932 (dump_subexp_body_standard): New function, containing code formerly
1933 in dump_subexp_body.
1934
1935 * language.c (unknown_language): Add default la_exp_desc field and
1936 remove evaluate_exp field.
1937 (auto_language): Ditto.
1938 (local_language): Ditto.
1939 * f-lang.c (f_language_defn): Ditto.
1940 * c-lang.c (c_language_defn): Ditto.
1941 (cplus_language_defn): Ditto.
1942 (asm_language_defn): Ditto.
1943 (minimal_language_defn): Ditto.
1944 * p-lang.c (pascal_language_defn): Ditto.
1945 * m2-lang.c (m2_language_defn): Ditto.
1946 * objc-lang.c (objc_language_defn): Ditto.
1947
1948 * jv-lang.c (exp_descriptor_java): New variable, containing
1949 Java-specific expression evaluator.
1950 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1951 field.
1952 * scm-lang.c (exp_descriptor_scm): New variable, containing
1953 Scheme-specific expression evaluator.
1954 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1955 field.
1956 * objc-lang.c (print_object_command): Take evaluate_exp from the
1957 la_exp_desc field.
1958
1959 * Makefile.in (eval.o): Add dependency on parser-defs.h.
1960
1961 * eval.c: Include parser-defs.h for the full declaration of
1962 la_exp_desc's type.
1963 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
1964
1965 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1966
1967 * parser-defs.h (operator_length): Declare.
1968
1969 * parse.c (length_of_subexp): Use operator_length to get operator
1970 lengths and arities for operators.
1971 Move most code to new operator_length function.
1972 (operator_length): New function absorbing most code from
1973 length_of_subexp.
1974 (prefixify_subexp): Remove large case and use operator_length instead.
1975 (parse_exp_1): Use renamings:
1976 dump_prefix_expression => dump_raw_expression and
1977 dump_postfix_expression => dump_prefix_expression.
1978
1979 * expression.h (dump_prefix_expression): Rename to ...
1980 (dump_raw_expression): New name.
1981 (dump_postfix_expression): Rename to ...
1982 (dump_prefix_expression): New name.
1983
1984 * expprint.c (dump_subexp): Make global. Add comment.
1985 Move most existing code to dump_subexp_body.
1986 (dump_subexp_body): New function.
1987 (dump_prefix_expression): Rename to dump_raw_expression.
1988 Remove attempt to print the expression via print_expression: it can't
1989 work before the expression is prefixified.
1990 (dump_raw_expression): Renamed from dump_prefix_expression.
1991 (dump_postfix_expression): Rename to dump_prefix_expression, since
1992 that's what it does.
1993 Remove 'note' parameter, since this routine must be used on
1994 prefixified expression.
1995 (dump_prefix_expression): Renamed from dump_postfix_expression.
1996
1997 2003-09-22 Jim Blandy <jimb@redhat.com>
1998
1999 * dwarf2read.c (read_array_type): When building the type for an
2000 array of unspecified length, make sure to choose the upper bound
2001 so that the array's total length comes out to be zero --- that's
2002 how we represent such arrays.
2003
2004 2003-09-22 Michael Chastain <mec@shout.net>
2005
2006 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2007
2008 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2009
2010 * top.c (quit_force): Fix indirect call to quit_target so
2011 a struct qt_args pointer is passed.
2012
2013 2003-09-22 Andrew Cagney <cagney@redhat.com>
2014
2015 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2016 * arch-utils.c (init_frame_pc_noop): Delete function.
2017 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2018 "init_frame_pc".
2019 * mips-tdep.c (mips_gdbarch_init): Ditto.
2020 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2021 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2022 declaration.
2023 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2024 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2025 declaration.
2026 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2027
2028 2003-09-22 Anthony Green <green@redhat.com>
2029
2030 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2031 declaration.
2032
2033 2003-09-20 Andrew Cagney <cagney@redhat.com>
2034
2035 * breakpoint.c: Eliminate ARGSUSED.
2036 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2037 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2038 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2039 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2040 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2041 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2042 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2043 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2044 * wince.c, remote-vx.c: Ditto.
2045
2046 * cli/cli-script.c: Remove "register" attributes.
2047 * config/pa/tm-hppa.h: Ditto.
2048 * cli/cli-decode.c: Ditto.
2049 * cli/cli-cmds.c: Ditto.
2050
2051 2003-09-19 Andrew Cagney <cagney@redhat.com>
2052
2053 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2054 DEPRECATED_NPC_REGNUM.
2055 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2056
2057 2003-09-19 Christopher Faylor <cgf@redhat.com>
2058
2059 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2060
2061 2003-09-19 Jim Blandy <jimb@redhat.com>
2062
2063 * macrotab.c (macro_include): Use the correct comparison to find
2064 the appropriate place for this inclusion in the list.
2065
2066 2003-09-19 Andrew Cagney <cagney@redhat.com>
2067
2068 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2069 (DEPRECATED_HPUX_TEXT_END): Define.
2070 (deprecated_hpux_text_end): Declare.
2071 (struct target_ops): Declare opaque.
2072 * hppah-nat.c (text_end): Make static.
2073 (deprecated_hpux_text_end): New function.
2074 * exec.c (text_end): Delete global variable.
2075 (NEED_TEXT_START_END): Do not define.
2076 (exec_file_attach): Replace code computing "text_end" code with
2077 call to DEPRECATED_HPUX_TEXT_END.
2078
2079 2003-09-19 Andrew Cagney <cagney@redhat.com>
2080
2081 * utils.c (align_up, align_down): New functions.
2082 * defs.h (align_up, align_down): Declare.
2083 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2084 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2085 and "align_down".
2086 (round_up, round_down): Delete functions.
2087 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2088 "align_down".
2089 (ROUND_DOWN, ROUND_UP): Delete macros.
2090 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2091 * h8300-tdep.c: Replace "round_up" and "round_down" with
2092 "align_up" and "align_down".
2093 (round_up, round_down): Delete macros.
2094 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2095 "align_down".
2096 (ROUND_UP, ROUND_DOWN): Delete macros.
2097
2098 2003-09-18 J. Brobecker <brobecker@gnat.com>
2099
2100 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2101 hard-coded constant. Use the proper machine name instead.
2102
2103 2003-09-17 Andrew Cagney <cagney@redhat.com>
2104
2105 * sparc-tdep.c (legacy_register_name): Delete function.
2106 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2107 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2108 * infcmd.c (gdb_register_name): Delete variable.
2109 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2110 REGISTER_NAME and "tm.h".
2111 * gdbarch.h, gdbarch.c: Regenerate.
2112 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2113 REGISTER_NAMES in comments.
2114 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2115 * m68klinux-nat.c (regmap): Ditto.
2116
2117 2003-09-17 Jim Blandy <jimb@redhat.com>
2118
2119 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2120
2121 2003-09-17 Andrew Cagney <cagney@redhat.com>
2122
2123 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2124 (ppcnbsd_init_abi): Set "use_struct_convention" to
2125 "ppcnbsd_use_struct_convention".
2126
2127 2003-09-17 Mark Kettenis <kettenis@gnu.org>
2128
2129 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2130 * gdbarch.h, gdbarch.c: Regenerate.
2131 (stabs_argument_has_addr): New architecture method.
2132 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2133 * arch-utils.c: Include "buildsym.h".
2134 (default_stabs_argument_has_addr): New function.
2135 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2136 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2137
2138 2003-09-17 Andrew Cagney <cagney@redhat.com>
2139
2140 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2141 * gdbarch.h, gdbarch.c: Regenerate.
2142 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2143 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2144 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2145 * sparcnbsd-tdep.c: Update.
2146
2147 2003-09-17 Andrew Cagney <cagney@redhat.com>
2148
2149 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2150 * gdbarch.h, gdbarch.c: Regenerate.
2151 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2152 * d10v-tdep.c, frame.c: Update.
2153 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2154 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2155 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2156 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2157 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2158 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2159 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2160 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2161 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2162 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2163 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2164 * config/pa/nm-hppah.h: Update.
2165
2166 2003-09-16 Andrew Cagney <cagney@redhat.com>
2167
2168 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2169 "use_struct_convention" to "ppc_linux_use_struct_convention".
2170 (ppc_linux_use_struct_convention): New function.
2171 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2172 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2173 "rs6000_use_struct_convention".
2174 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2175 declaration.
2176 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2177 Delete function.
2178
2179 2003-09-16 Andrew Cagney <cagney@redhat.com>
2180
2181 * buildsym.c: Remove more occurances of "register".
2182 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2183 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2184 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2185 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2186 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2187 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2188 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2189 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2190
2191 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
2192
2193 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2194 numbers to enumeration values.
2195 * sh-tdep.c: Accomodate above change.
2196 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2197 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2198 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2199 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2200 (IS_FPUSH): Rename from IS_FMOV.
2201 (sh_extract_struct_value_address): Remove useless comment.
2202 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2203 instead of own local values.
2204 (sh_dump_tdep): Remove.
2205 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2206 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2207
2208 2003-09-15 Andrew Cagney <cagney@redhat.com>
2209
2210 * doublest.c (convert_floatformat_to_doublest): No longer need to
2211 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2212
2213 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
2214
2215 * values.c (unpack_double): Call floatformat_is_valid.
2216
2217 2003-09-15 Mark Kettenis <kettenis@gnu.org>
2218
2219 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2220 ps_strings into a long.
2221
2222 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2223 _initialize_am64fbsd_nat.
2224
2225 2003-09-15 Kevin Buettner <kevinb@redhat.com>
2226
2227 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2228 associated with DW_AT_ranges attribute is out of bounds.
2229
2230 2003-09-15 David Lecomber <dsl@sources.redhat.com>
2231
2232 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2233
2234 2003-09-14 Michael Chastain <mec@shout.net>
2235
2236 * config/m68k/nm-apollo68v.h: Delete.
2237 * config/m68k/xm-apollo68v.h: Delete.
2238
2239 2003-09-14 Andrew Cagney <cagney@redhat.com>
2240
2241 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2242 * dcache.c: Update copyrights and descriptions.
2243 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2244
2245 2003-09-14 Andrew Cagney <cagney@redhat.com>
2246
2247 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2248 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2249
2250 2003-09-14 Andrew Cagney <cagney@redhat.com>
2251
2252 * alpha-nat.c: Remove some occurances of "register".
2253 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2254 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2255 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2256 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2257 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2258 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2259 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2260 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2261 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2262 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2263 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2264 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2265 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2266 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2267 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2268 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2269 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2270 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2271 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2272 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2273 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2274 * values.c, vax-tdep.c, xcoffread.c: Ditto.
2275
2276 2003-09-13 Andrew Cagney <cagney@redhat.com>
2277
2278 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2279 * ppc-tdep.h (struct regcache): Declare opaque.
2280 * objfiles.h (struct objfile_data): Declare opaque.
2281 * cp-support.h (struct objfile): Declare opaque.
2282 * linux-nat.h (target_waitstatus): Declare opaque.
2283
2284 2003-09-14 Mark Kettenis <kettenis@gnu.org>
2285
2286 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2287 (stabs_argument_has_addr): New architecture method.
2288 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2289 * arch-utils.c: Include "buildsym.h".
2290 (default_stabs_argument_has_addr): New function.
2291 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2292 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2293
2294 * cris-tdep.c (cris_gdbarch_init): Set
2295 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2296 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2297 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2298 * mips-tdep.c (mips_gdbarch_init): Likewise.
2299 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2300 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2301
2302 2003-09-13 Andrew Cagney <cagney@redhat.com>
2303
2304 * values.c (using_struct_return): Delete "function" and "funcaddr"
2305 parameters.
2306 * value.h (using_struct_return): Update declaration.
2307 * infcmd.c (finish_command_continuation): Update.
2308 (finish_command): Update.
2309 * infcall.c (call_function_by_hand): Update.
2310 * eval.c (evaluate_subexp_standard): Update.
2311
2312 2003-09-13 Christopher Faylor <cgf@redhat.com>
2313
2314 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2315 SSE registers since gdb will not operate correctly without this.
2316 Restore include file ordering munged in previous change.
2317 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2318
2319 2003-09-13 Mark Kettenis <kettenis@gnu.org>
2320
2321 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2322 REG_STRUCT_HAS_ADDR.
2323 * gdbarch.c, gdbarch.h: Updated.
2324 * infcall.c (call_function_by_hand): Update.
2325 * stabsread.c (define_symbol): Updated.
2326
2327 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2328
2329 2003-09-12 Christopher Faylor <cgf@redhat.com>
2330
2331 * win32-nat.c: Reorganize so that defines used by target headers are
2332 actually defined by the system headers.
2333 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2334 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2335
2336 2003-09-12 Jim Blandy <jimb@redhat.com>
2337
2338 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2339 the file has no .data, .bss, or .rodata sections. Instead wait
2340 until we see a variable alleged to live in one of those sections.
2341
2342 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2343 .bss section, presume that any variables we find live in the
2344 .rodata section.
2345
2346 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2347 offsets for global and static variables.
2348
2349 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2350 symbol types are, by definition, in the .data section, so it is
2351 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2352 If there is no .data section, there should be no N_DATA or N_DATA
2353 | N_EXT symbols.
2354
2355 2003-09-12 Mark Kettenis <kettenis@gnu.org>
2356
2357 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2358 (amd64fbsd_sigcontext_addr): Rewrite.
2359 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2360 with correct values.
2361 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2362 (amd64fbsd_init_abi): Fix typo.
2363
2364 2003-09-12 Andrew Cagney <cagney@redhat.com>
2365
2366 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2367 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2368
2369 2003-09-12 Andrew Cagney <cagney@redhat.com>
2370
2371 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2372 "entry_file_highpc". Update comments.
2373 * defs.h (deprecated_inside_entry_file): Rename
2374 "inside_entry_file".
2375 * blockframe.c (deprecated_inside_entry_file): Rename
2376 "inside_entry_file".
2377 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2378 * vax-tdep.c (vax_frame_chain): Update.
2379 * sh64-tdep.c (sh64_frame_chain): Update.
2380 * sh-tdep.c (sh_frame_chain): Update.
2381 * rs6000-tdep.c (rs6000_frame_chain): Update.
2382 * ns32k-tdep.c (ns32k_frame_chain): Update.
2383 * mips-tdep.c (mips_frame_chain): Update.
2384 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2385 * m32r-tdep.c (m32r_frame_this_id): Update.
2386 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2387 * frv-tdep.c (frv_frame_this_id): Update.
2388 * d10v-tdep.c (d10v_frame_this_id): Update.
2389 * cris-tdep.c (cris_frame_chain): Update.
2390 * blockframe.c (legacy_frame_chain_valid): Update.
2391 * avr-tdep.c (avr_frame_this_id): Update.
2392 * arm-tdep.c (arm_prologue_this_id): Update.
2393 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2394 * objfiles.c (objfile_relocate): Update.
2395 * mipsread.c (mipscoff_symfile_read): Update.
2396 (mipscoff_symfile_read): Update.
2397 * mdebugread.c (parse_partial_symbols): Update.
2398 * dwarfread.c (read_file_scope): Update.
2399 * dwarf2read.c (read_file_scope): Update.
2400 * dbxread.c (read_dbx_symtab): Update.
2401 (read_dbx_symtab): Update.
2402 * coffread.c (complete_symtab): Update.
2403
2404 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2405
2406 * top.c (quit_target): New static helper function.
2407 (quit_force): Moved code to quit_target(). Call quit_target()
2408 via catch_errors() to catch errors during quit.
2409
2410 2003-09-11 David Carlton <carlton@kealia.com>
2411
2412 * buildsym.c (finish_block): Use allocate_block to allocate the
2413 block.
2414 * mdebugread.c (new_block): Add FIXME.
2415
2416 2003-09-11 David Carlton <carlton@kealia.com>
2417
2418 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2419 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2420 (recursive_dump_type): Ditto.
2421 * printcmd.c (print_formatted): Ditto.
2422 * typeprint.c (print_type_scalar): Ditto.
2423 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2424 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2425 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2426 maint_cplus_cmd_list.
2427 * cp-support.c: Make maint_cplus_cmd_list extern.
2428 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2429 command.h.
2430 (lookup_symbol_file): Look in possible namespace blocks when
2431 appropriate.
2432 (initialize_namespace_symtab): New.
2433 (get_possible_namespace_block, free_namespace_block)
2434 (check_possible_namespace_symbols)
2435 (check_possible_namespace_symbols_loop)
2436 (check_one_possible_namespace_symbol)
2437 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2438 (_initialize_cp_namespace): Ditto.
2439 * block.h: Declare allocate_block.
2440 * block.c (allocate_block): New.
2441 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2442 allocate_block.
2443 * symfile.h: Update declaration of add_psymbol_to_list.
2444 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2445 question.
2446 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2447 scan_partial_symbols_call.
2448 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2449 helper functions.
2450 (add_partial_symbol): If necessary, scan mangled names for names
2451 of namespaces.
2452 (add_partial_namespace): Add NAMESPACE argument; generate partial
2453 symbols associated to namespaces.
2454 (add_partial_enumeration): Add NAMESPACE argument.
2455 (new_symbol): Allow namespace syms.
2456 (read_namespace): Generate namespace syms.
2457 * objfiles.h: Add opaque declaration of struct symtab.
2458 (struct objfile): Add cp_namespace_symtab member.
2459 * objfiles.c (allocate_objfile): Set
2460 objfile->cp_namespace_symtab.
2461 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2462 dictionary_h, command_h.
2463
2464 2003-09-11 Andrew Cagney <cagney@redhat.com>
2465
2466 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2467 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2468 near the function's end.
2469 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2470 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2471 regcache_raw_write_signed to set SP_REGNUM.
2472
2473 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
2474
2475 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2476 orig_addrs is set up properly.
2477
2478 2003-09-11 Andrew Cagney <cagney@redhat.com>
2479
2480 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2481 * gdbarch.h, gdbarch.c: Re-generate.
2482 * infcall.c (call_function_by_hand): Update.
2483 * hppa-tdep.c (hppa_push_arguments): Update.
2484 * ada-lang.c (place_on_stack): Update.
2485 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2486 * sparc-tdep.c (sparc_gdbarch_init): Update.
2487 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2488 * hppa-tdep.c (hppa_gdbarch_init): Update.
2489 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2490 stack_align.
2491
2492 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
2493
2494 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2495 register do need a frame.
2496
2497 2003-09-11 Andrew Cagney <cagney@redhat.com>
2498
2499 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2500 buildable since GDB 5.0.
2501 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2502 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2503 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2504 * irix4-nat.c: Delete file.
2505 * config/mips/irix4.mh: Delete file.
2506 * config/mips/irix3.mh: Delete file.
2507 * config/mips/irix3.mt: Delete file.
2508 * config/mips/tm-irix3.h: Delete file.
2509 * config/mips/nm-irix3.h: Delete file.
2510 * config/mips/xm-irix3.h: Delete file.
2511 * config/mips/nm-irix4.h: Delete file.
2512 * config/mips/xm-irix4.h: Delete file.
2513 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2514
2515 2003-09-10 J. Brobecker <brobecker@gnat.com>
2516
2517 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2518 * Makefile.in (hppa-tdep.o): Update dependencies.
2519
2520 2003-09-10 James E Wilson <wilson@specifixinc.com>
2521
2522 * MAINTAINERS: Change my e-mail address. Move to paper trail
2523 section.
2524
2525 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2526
2527 * MAINTAINERS (frv): New ISA entry.
2528
2529 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2530
2531 * frv-tdep.c (dis-asm.h): Include.
2532 * Makefile.in (frv-tdep.o): Update dependencies.
2533
2534 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2535
2536 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2537 Fix typo for high range of floating registers.
2538
2539 2003-09-09 David Carlton <carlton@kealia.com>
2540
2541 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2542 highpc initialization here out of scan_partial_symbols.
2543 (scan_partial_symbols): Restructure into a recursive version,
2544 calling add_partial_namespace and add_partial_enumeration when
2545 appropriate.
2546 (add_partial_namespace): New.
2547 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2548
2549 2003-09-09 Andrew Cagney <cagney@redhat.com>
2550
2551 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2552 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2553 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2554 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2555
2556 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2557 (rs6000_push_dummy_call): Set the "TOC" register.
2558
2559 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2560 methods "max_register_raw_size", "max_register_virtual_size" or
2561 "register_virtual_size".
2562
2563 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2564
2565 * MAINTAINERS: Update my e-mail address.
2566
2567 2003-09-09 Andrew Cagney <cagney@redhat.com>
2568
2569 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2570 (rs6000_push_dummy_call): Store the struct return address.
2571 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2572
2573 2003-09-09 Andrew Cagney <cagney@redhat.com>
2574
2575 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2576 "ppc_sysv_abi_push_arguments".
2577 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2578 "ppc_sysv_abi_push_arguments".
2579 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2580 instead of "push_arguments".
2581 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2582
2583 2003-09-09 Andrew Cagney <cagney@redhat.com>
2584
2585 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2586 instead of CALL_DUMMY_ADDRESS.
2587
2588 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2589
2590 * p-lang.c: Eliminate "register".
2591 * c-lang.c: Ditto.
2592 * expprint.c: Ditto.
2593 * f-lang.c: Ditto.
2594 * jv-lang.c: Ditto.
2595 * language.c: Ditto.
2596 * m2-lang.c: Ditto.
2597 * parse.c: Ditto.
2598 * scm-lang.c: Ditto.
2599 * objc-lang.c: Ditto.
2600
2601 2003-09-09 Nick Clifton <nickc@redhat.com>
2602
2603 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2604
2605 2003-09-04 Andrew Cagney <cagney@redhat.com>
2606
2607 * avr-tdep.c: Include "dis-asm.h".
2608 * cris-tdep.c: Include "dis-asm.h".
2609 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2610 instead of corresponding typedef.
2611 * h8300-tdep.c: Include "dis-asm.h".
2612 * ia64-tdep.c: Include "dis-asm.h".
2613 * i386-tdep.c: Include "dis-asm.h".
2614 (i386_print_insn): Use "struct disassemble_info" instead of
2615 corresponding typedef.
2616 * m68k-tdep.c: Include "dis-asm.h".
2617 * mcore-tdep.c: Include "dis-asm.h".
2618 * mips-tdep.c: Include "dis-asm.h".
2619 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2620 instead of corresponding typedef.
2621 * ns32k-tdep.c: Include "dis-asm.h".
2622 * s390-tdep.c: Include "dis-asm.h".
2623 * sparc-tdep.c: Include "dis-asm.h".
2624 * vax-tdep.c: Include "dis-asm.h".
2625 * v850-tdep.c: Include "dis-asm.h".
2626 * mn10300-tdep.c: Include "dis-asm.h".
2627 * rs6000-tdep.c: Include "dis-asm.h".
2628 * xstormy16-tdep.c: Include "dis-asm.h".
2629 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2630 print_insn_xstormy16.
2631 * Makefile.in (v850-tdep.o): Update dependencies.
2632 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2633 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2634 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2635 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2636 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2637 (gdbarch_h): Remove $(dis_asm_h).
2638 * disasm.c: Include "dis-asm.h".
2639 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2640 corresponding typedef.
2641 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2642 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2643 * gdbarch.sh: Do not include "dis-asm.h".
2644 (struct disassemble_info): Declare opaque.
2645 (TARGET_PRINT_INSN): Update declaration.
2646 * gdbarch.h, gdbarch.c: Re-generate.
2647
2648 2003-09-08 Andrew Cagney <cagney@redhat.com>
2649
2650 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2651 CALL_DUMMY_ADDRESS, change to a predicate.
2652 * gdbarch.h, gdbarch.c: Re-generate.
2653 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2654 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2655 * infcall.c (call_function_by_hand): Ditto.
2656 * sparc-tdep.c (sparc_push_return_address): Ditto.
2657 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2658 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2659 CALL_DUMMY_ADDRESS with entry_point_address.
2660 * v850-tdep.c (v850_push_return_address): Ditto.
2661 * s390-tdep.c (s390_push_return_address): Ditto.
2662 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2663 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2664 * mcore-tdep.c (mcore_push_return_address): Ditto.
2665 * cris-tdep.c (cris_push_return_address): Ditto.
2666 * arm-tdep.c (arm_push_return_address): Ditto.
2667
2668 2003-09-08 Andrew Cagney <cagney@redhat.com>
2669
2670 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2671 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2672 and REG_UNMODIFIED to REG_SAME_VALUE.
2673 (execute_cfa_program): Update.
2674 (dwarf2_frame_cache): Update. Initialize table to
2675 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2676 location.
2677 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2678
2679 2003-09-08 Andrew Cagney <cagney@redhat.com>
2680
2681 * gnu-nat.c: Remove "inline" function attribute.
2682 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2683
2684 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2685
2686 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2687 target.
2688
2689 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2690
2691 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2692 (frame_extra_info): Rename this struct to frv_unwind_cache.
2693 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2694 Add fields ``prev_sp'' and ``base''.
2695 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2696 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2697 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2698 Delete.
2699 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2700 Revise all callers. Fill in the unwind cache argument and make
2701 other adjustments to account for new frame mechanisms.
2702 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2703 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2704 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2705 (frv_frame_unwind, frv_frame_base): New structs.
2706 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2707 additional arguments expected by this method and adjust function
2708 body accordingly.
2709 (frv_gdbarch_init): Remove calls to the following functions:
2710 set_gdbarch_deprecated_init_frame_pc(),
2711 set_gdbarch_deprecated_saved_pc_after_call(),
2712 set_gdbarch_deprecated_frame_chain(),
2713 set_gdbarch_deprecated_frame_saved_pc(),
2714 set_gdbarch_deprecated_frame_init_saved_regs(),
2715 set_gdbarch_deprecated_push_arguments(),
2716 set_gdbarch_deprecated_push_return_address(),
2717 set_gdbarch_deprecated_pop_frame(),
2718 set_gdbarch_deprecated_call_dummy_words(),
2719 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2720 set_gdbarch_deprecated_init_extra_frame_info(),
2721 set_gdbarch_deprecated_dummy_write_sp(), and
2722 set_gdbarch_deprecated_pc_in_call_dummy().
2723 Add calls to the following functions:
2724 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2725 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2726 frame_base_set_default().
2727 * Makefile.in (frv-tdep.o): Update dependencies.
2728
2729 2003-09-09 Mark Kettenis <kettenis@gnu.org>
2730
2731 * dwarf2-frame.c (read_encoded_value): Add support for
2732 DW_EH_PE_aligned encoding.
2733
2734 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2735
2736 * infrun.c (normal_stop): Don't print a message if the inferior
2737 has exited.
2738
2739 2003-09-08 Jim Blandy <jimb@redhat.com>
2740
2741 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2742 * dbxread.c: #include "gdb_assert.h".
2743 (read_dbx_symtab): If the objfile has no .data section, use the
2744 section index for the .bss section instead.
2745
2746 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2747
2748 * frame.c (deprecated_safe_get_selected_frame): New function.
2749 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2750 * findvar.c (read_var_value): Call it.
2751
2752 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
2753
2754 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2755 (sh64-tdep.o): Add dependencies.
2756 * configure.tgt: Add FIXME to sh-*-linux*.
2757 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2758 (sh_gdbarch_init): Always set correct sh_show_regs function
2759 pointer. Call sh64_gdbarch_init() if machine type is sh5.
2760 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2761 * sh64-tdep.c: New file, containing all sh64 related code from
2762 sh-tdep.c.
2763 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2764 * config/sh/linux.mt (TDEPFILES): Ditto.
2765 * config/sh/nbsd.mt (TDEPFILES): Ditto.
2766 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2767 * config/sh/wince.mt (TDEPFILES): Ditto.
2768
2769 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2770
2771 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2772 (stop_wait_callback): Handle !lp->signalled also.
2773 (lin_lwp_has_pending, flush_callback): New functions.
2774 (lin_lwp_wait): Call flush_callback.
2775 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2776 (linux_proc_pending_signals): New function.
2777 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2778
2779 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2780
2781 From Nick Kelsey <nickk@ubicom.com>:
2782 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2783 when the stop PC is at the beginning of a function also.
2784
2785 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
2786
2787 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2788 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2789
2790 2003-09-06 Mark Kettenis <kettenis@gnu.org>
2791
2792 * sol-thread.c: Include "gdb_string.h".
2793
2794 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2795
2796 * gcore.c: Reorder include files in alphabetical order. Include
2797 "gdb_assert.h". Various coding style fixes.
2798 (derive_stack_segment, derive_heap_segment): Replace check for
2799 non-null BOTTOM and TOP with gdb_assert.
2800 (derive_heap_segment): Replace check for successful creation of
2801 ZERO with gdb_assert.
2802 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2803
2804 2003-09-04 Andrew Cagney <cagney@redhat.com>
2805
2806 * thread-db.c (verbose_dlsym): New function.
2807 (thread_db_load): Use verbose_dlsym
2808 (thread_db_new_objfile): Print that libthread_db was loaded, and
2809 that thread debugging was enabled.
2810
2811 2003-09-04 Andrew Cagney <cagney@redhat.com>
2812
2813 * configure.tgt: Add "mips64*-*-*" target. Delete
2814 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2815 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2816 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2817 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2818 mips*-sony-*, and mips64*-*-elf* targets.
2819 * config/mips/embedl.mt: Delete file.
2820 * config/mips/embedl64.mt: Delete file.
2821 * config/mips/mips.mt: Delete file.
2822 * config/mips/mips64.mt: Delete file.
2823 * config/mips/tm-embed.h: Delete file.
2824 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2825 * config/mips/embed64.mt: Delete out-of-date comment.
2826
2827 2003-09-04 Andrew Cagney <cagney@redhat.com>
2828
2829 * hppa-tdep.c (hppa_gdbarch_init): Set
2830 "have_nonsteppable_watchpoint".
2831 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2832 * mips-tdep.c (mips_dump_tdep): Do not print
2833 HAVE_NONSTEPPABLE_WATCHPOINT.
2834 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2835 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2836 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2837 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2838
2839 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2840
2841 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2842 unused code. Add comment.
2843
2844 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2845
2846 * breakpoint.c (watchpoint_check): Check for pc being in an
2847 epilogue if watchpoint frame couldn't be found.
2848
2849 2003-09-04 Andrew Cagney <cagney@redhat.com>
2850
2851 * Makefile.in: Re-generate all dependencies.
2852
2853 2003-09-03 Andrew Cagney <cagney@redhat.com>
2854
2855 * arch-utils.h (legacy_print_insn): Delete declaration.
2856 * arch-utils.c (legacy_print_insn): Delete function.
2857 * disasm.c (deprecated_tm_print_insn_info): Delete.
2858 (_initialize_disasm): Delete function, contained code initializing
2859 deprecated_tm_print_insn_info.
2860 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2861 (deprecated_tm_print_insn_info): Delete.
2862 (TARGET_PRINT_INSN): Do not provide a default.
2863 * gdbarch.h, gdbarch.c: Re-generate.
2864
2865 2003-09-03 Andrew Cagney <cagney@redhat.com>
2866
2867 * disasm.c (fprintf_disasm): New function.
2868 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2869 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2870 reverts 2003-08-14 change.
2871 (_initialize_disasm): Call "init_disassemble_info", instead of
2872 INIT_DISASSEMBLE_INFO_NO_ARCH.
2873
2874 2003-09-03 Michael Snyder <msnyder@redhat.com>
2875
2876 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2877
2878 2003-09-03 Andrew Cagney <cagney@redhat.com>
2879
2880 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2881 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2882 * symfile.c (syms_from_objfile): Update.
2883 (reread_symbols): `Update
2884 * exec.c (exec_file_attach): Update.
2885 (exec_file_attach): Update.
2886 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2887 2003-08-29 change.
2888 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2889
2890 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2891
2892 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2893 trad-frame.h.
2894 (arm_get_cache): Delete macro.
2895 (struct arm_prologue_cache): Update comments. Make saved_regs into
2896 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2897 to prev_sp.
2898 (thumb_scan_prologue): Update for cache changes. Don't call
2899 DEPRECATED_PC_IN_CALL_DUMMY.
2900 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2901 argument and use it in desperation search for our prologue. Do not
2902 search past the specified PC.
2903 (arm_make_prologue_cache): Simplify.
2904
2905 (arm_prologue_this_id, arm_prologue_prev_register)
2906 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2907 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2908 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2909 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2910 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2911
2912 (arm_frame_chain_valid, arm_find_callers_reg)
2913 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2914 (arm_pop_frame): Delete obsolete methods.
2915 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2916
2917 (arm_gdbarch_init): Update for new frame methods. Register prologue
2918 and sigtramp unwinders. Set the default frame base method.
2919
2920 * Makefile.in (arm-tdep.o): Update dependencies.
2921 * varobj.c (find_frame_addr_in_frame_chain): Call
2922 get_frame_base_address.
2923 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2924
2925 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2926
2927 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2928 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2929 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2930 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2931 Take NEXT_FRAME and CACHE arguments. Call
2932 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2933 Set unwound_pc in CACHE instead of modifying the frame argument.
2934 Don't bother checking the frame type when looking for sigtramp
2935 frames.
2936 (arm_make_prologue_cache, arm_frame_chain)
2937 (arm_init_extra_frame_info): New functions.
2938
2939 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2940
2941 * arm-tdep.c (arm_get_cache): Define.
2942 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2943 unwound_sp, unwound_pc, and saved_regs.
2944 (thumb_scan_prologue): Take a cache instead of the frame.
2945 (arm_scan_prologue): Likewise.
2946 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2947 instead of a temporary frame.
2948 (arm_init_extra_frame_info): Allocate and use a cache.
2949 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2950
2951 2003-09-03 Andrew Cagney <cagney@redhat.com>
2952
2953 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2954 * config/mips/wince.mt (TM_CLIBS): Ditto.
2955 * config/sh/wince.mt (TM_CLIBS): Ditto.
2956 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2957 * config/sparc/sp64.mt (CC): Delete.
2958
2959 2003-09-03 Andrew Cagney <cagney@redhat.com>
2960
2961 * defs.h: Do not include "arch-utils.h".
2962 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2963 GDB_MULTI_ARCH_PURE.
2964 * configure.in (GDB_MULTI_ARCH): Do not define.
2965 * configure, config.in: Regenerate.
2966 * configure.tgt: Do not set variable "gdb_multi_arch".
2967 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2968 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2969 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2970 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2971 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2972 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2973 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2974 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2975 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2976 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2977 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2978 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2979 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2980 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2981 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2982 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2983 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2984 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
2985
2986 2003-08-30 Michael Chastain <mec@shout.net>
2987
2988 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2989 * config/m68k/nm-hp300hpux.h: Delete.
2990 * config/m68k/tm-hp300hpux.h: Delete.
2991 * config/m68k/xm-hp300hpux.h: Delete.
2992 * config/m68k/xm-hp300bsd.h: Delete.
2993 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2994 tm-hp300hpux.h, xm-hp300hpux.h.
2995 * somsolib.c: Remove comment about hp300 shared libraries.
2996
2997 2003-08-31 Mark Kettenis <kettenis@gnu.org>
2998
2999 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3000 Only define PTRACE_GET_THREAD_AREA is not already defined.
3001 Various style fixes in code and comments and some additional
3002 spelling fixes in comments. Move after functions dealing with
3003 debug registers.
3004 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3005 Fix coding-style.
3006
3007 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3008 frame_unwind_register_unsigned instead of
3009 frame_unwind_unsigned_register.
3010
3011 2003-08-30 Mark Kettenis <kettenis@gnu.org>
3012
3013 * configure.in: Search for gethostbyname in libnsl.
3014 * configure: Regenerated.
3015
3016 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3017
3018 * configure.in: Remove redundant AC_MSG_RESULT in check for
3019 uintptr_t in stdint.h.
3020 * configure: Regenerated.
3021
3022 * amd64-nat.h (struct regcache): Add opaque declaration.
3023
3024 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3025 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3026 Change "register array" to "register cache" in comments.
3027 (x86_64_linux_gregset64_reg_offset): New variable.
3028 (GETREGS_SUPPLIES): Remove macro.
3029 (supply_gregset): Call amd64_supply_native_gregset instead of
3030 x86_64_linux_supply_gregset.
3031 (fill_gregset): Rename `regno' to `regnum'. Call
3032 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3033 (store_regs): Rename `regno' to `regnum'.
3034 (store_fpregs): Rename `regno' to `regnum'.
3035 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3036 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3037 Reorganize function a bit.
3038 (store_inferior_registers): Rename `regno' to `regnum'. Use
3039 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3040 Reorganize function a bit.
3041 (_initialize_x86_64_linux_nat): New function.
3042 * config/i386/x86-64linux.mh.
3043
3044 2003-08-29 Andrew Cagney <cagney@redhat.com>
3045
3046 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3047 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3048 (target_remove_watchpoint): Delete macro.
3049 (target_insert_watchpoint): Delete macro.
3050 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3051 (remote_mips_stopped_by_watchpoint): Delete declaration.
3052 (remote_mips_remove_watchpoint): Delete declaration.
3053 (remote_mips_set_watchpoint): Delete declaration.
3054 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3055 * remote-mips.c (_initialize_remote_mips): Set
3056 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3057 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3058 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3059 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3060 (mips_stopped_by_watchpoint): Rename
3061 remote_mips_stopped_by_watchpoint.
3062 (mips_can_hardware_watchpoint): Rename
3063 remote_mips_can_use_hardware_watchpoint, update function
3064 signature.
3065
3066 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3067
3068 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3069 USER_DS. We haven't given them a register number yet.
3070
3071 * amd64-nat.h: New file.
3072 * amd64-nat.c: New file.
3073 * amd64fbsd-nat.c: Include "amd64-nat.h".
3074 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3075 (amd64fbsd32_r_reg_offset): New variable.
3076 (supply_gregset): Simply call amd64_supply_native_gregset.
3077 (fill_gregset): Rename `regno' to `regnum'. Simply call
3078 amd64_collect_native_gregset.
3079 (fill_fpregset): Rename `regno' to `regnum'.
3080 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3081 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3082 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3083 `fpregset_t'. Call amd64_supply_native_gregset instead of
3084 supply_gregset. Call x86_64_supply_fxsave instead of
3085 supply_fpregset.
3086 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3087 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3088 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3089 `fpregset_t'. Call amd64_collect_native_gregset instead of
3090 fill_gregset. Call x86_64_collect_fxsave instead of
3091 fill_fpregset.
3092 (_initialize_am64fbsd_nat): Initialize
3093 amd64_native_gregset32_reg_offset and
3094 amd64_native_gregset64_reg_offset.
3095 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3096
3097 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3098 null pointer. Fix typo in comment.
3099
3100 * regcache.c (supply_register): Reimplement to call
3101 regcache_raw_supply.
3102 (regcache_collect): Reimplement by calling regcache_raw_collect.
3103
3104 2003-08-28 Mark Kettenis <kettenis@gnu.org>
3105
3106 * regcache.c (register_buffer): Consitify first argument.
3107 (regcache_raw_supply, regcache_raw_collect): New
3108 functions.
3109
3110 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3111
3112 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3113 by Nathan J. Williams.
3114
3115 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3116
3117 * lin-lwp.c (wait_lwp): New function, copied from
3118 stop_wait_callback. Clean up.
3119 (stop_wait_callback): Use wait_lwp.
3120
3121 2003-08-28 Andrew Cagney <cagney@redhat.com>
3122
3123 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3124 flavour and disassembler options.
3125 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3126 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3127 deprecated_tm_print_insn_info.
3128
3129 2003-08-27 Andrew Cagney <cagney@redhat.com>
3130
3131 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3132 Use target_read_memory.
3133 (s390_get_frame_info): Update. Do not reference
3134 deprecated_tm_print_insn_info.
3135 (s390_check_function_end, s390_is_sigreturn): Ditto.
3136
3137 2003-08-27 Andrew Cagney <cagney@redhat.com>
3138
3139 * Makefile.in (cris-tdep.o): Update dependencies.
3140 * cris-tdep.c: Include "gdb_assert.h".
3141 (cris_gdbarch_init): Set print_insn.
3142 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3143 (cris_delayed_get_disassembler): Simplify, directly call the
3144 disassembler returned by cris_get_disassembler.
3145 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3146 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3147 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3148 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3149 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3150 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3151 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3152 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3153 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3154 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3155 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3156 (gdb_print_insn_sparc): Delete function.
3157 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3158 deprecated_tm_print_insn_info.
3159 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3160 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3161 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3162 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3163 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3164 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3165 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3166 (s390_gdbarch_init): Set print_insn.
3167
3168 2003-08-27 Andrew Cagney <cagney@redhat.com>
3169
3170 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3171 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3172 * infcall.c (call_function_by_hand): Convert the entry point
3173 address into a code address.
3174
3175 2003-08-27 Andrew Cagney <cagney@redhat.com>
3176
3177 * dsrec.c: Include "gdb_string.h".
3178 * Makefile.in (dsrec.o): Update dependencies.
3179
3180 2003-08-27 Michael Chastain <mec@shout.net>
3181
3182 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3183
3184 2003-08-27 Andrew Cagney <cagney@redhat.com>
3185
3186 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3187 (alpha_osf1_init_abi): Do not set call_dummy_address.
3188
3189 2003-08-27 David Carlton <carlton@kealia.com>
3190
3191 From Randolph Chung <tausq@debian.org>:
3192 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3193 compiles with -Wformat-nonliteral -Werror.
3194
3195 2003-08-26 Jim Blandy <jimb@redhat.com>
3196
3197 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3198 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3199 bfd_lookup_symbol, since we only want symbols in code sections.
3200 (look_for_base): Pass zero as the SECT_FLAGS argument to
3201 bfd_lookup_symbol, since we're not concerned about which section
3202 the symbol is in.
3203
3204 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3205
3206 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3207 we are frameless or the return address register is already known.
3208
3209 2003-08-26 Andrew Cagney <cagney@redhat.com>
3210
3211 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3212 in size. Add comments.
3213
3214 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3215
3216 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3217 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3218
3219 2003-08-26 Jason Merrill <jason@redhat.com>
3220
3221 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3222 case out of #ifdef MIPS block.
3223
3224 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
3225
3226 PR java/1322
3227 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3228 available before calling SECT_OFF_TEXT.
3229 * PROBLEMS: Remove description of java/1322.
3230
3231 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3232
3233 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3234 bof, and nat0-nat127 as pseudo-registers.
3235 (ia64_frame_cache): New struct used to cache frame info.
3236 (ia64_register_reggroup_p): New routine used to override default
3237 register grouping so registers without names are still saved and
3238 restored.
3239 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3240 pseudo values.
3241 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3242 (ia64_pseudo_register_write): New routine to write pseudo-registers.
3243 (ia64_alloc_frame_cache): New routine to create a new
3244 ia64_frame_cache.
3245 (examine_prologue): Change prototype to add next_frame pointer.
3246 Assume frameless until otherwise proven. Verify that the cfm for
3247 current frame matches the cfm that should occur for the prologues
3248 alloc insn and if equal, mark as not frameless. At end of routine,
3249 if not frameless, calculate registers for the previous frame and store
3250 in the cache, if a cache is provided.
3251 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3252 and pass 0 for next_frame.
3253 (ia64_store_return_value): Change to use convert_typed_floating()
3254 instead of calling ia64_convert_to_raw().
3255 (ia64_extract_return_value): Change to use convert_typed_floating()
3256 instead of calling ia64_convert_to_virtual().
3257 (ia64_frame_cache): New routine to support new frame model.
3258 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3259 (ia64_frame_sniffer): Ditto.
3260 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3261 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3262 (ia64_sigtramp_frame_prev_register): Ditto.
3263 (ia64_sigtramp_frame_sniffer): Ditto.
3264 (ia64_frame_base_address): Ditto.
3265 (ia64_extract_struct_value_address): Change to issue error message.
3266 (ia64_frame_align): New routine to align sp.
3267 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3268 (ia64_push_arguments): Removed. Logic moved to
3269 ia64_push_dummy_call().
3270 (ia64_push_return_address): Ditto.
3271 (ia64_unwind_dummy_id): New function.
3272 (ia64_unwind_pc): Ditto.
3273 (ia64_convert_register_p): Ditto.
3274 (ia64_register_to_value): Ditto.
3275 (ia64_value_to_register): Ditto.
3276 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3277 (ia64_register_byte, ia64_register_raw_size): Ditto.
3278 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3279 (ia64_saved_pc_after_call): Ditto.
3280 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3281 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3282 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3283 (ia64_register_convert_to_raw): Ditto.
3284 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3285 (ia64_init_extra_frame_info): Ditto.
3286 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3287 (ia64_gdbarch_init): Remove registering of deprecated functions that
3288 are no longer used. Add registration of new gdbarch functions.
3289 Remove registering deprecated_write_sp. Replace
3290 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3291 Delete set_gdbarch_deprecated_register_convertible(),
3292 set_gdbarch_deprecated_register_convert_to_virtual(), and
3293 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3294 set_gdbarch_deprecated_register_size(),
3295 set_gdbarch_deprecated_register_bytes(),
3296 set_gdbarch_pcregnum(),
3297 set_gdbarch_deprecated_register_byte(),
3298 set_gdbarch_deprecated_register_raw_size(),
3299 set_gdbarch_deprecated_max_register_raw_size(),
3300 set_gdbarch_deprecated_register_virtual_size(),
3301 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3302 Replace set_gdbarch_deprecated_extract_return_value() with
3303 set_gdbarch_extract_return_value(). Remove calls to:
3304 set_gdbarch_deprecated_saved_pc_after_call();
3305 set_gdbarch_deprecated_frame_chain(),
3306 set_gdbarch_deprecated_frame_saved_pc(),
3307 set_gdbarch_deprecated_frame_init_saved_regs(),
3308 set_gdbarch_deprecated_get_saved_register(),
3309 set_gdbarch_deprecated_call_dummy_words(),
3310 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3311 set_gdbarch_deprecated_init_extra_frame_info(),
3312 set_gdbarch_deprecated_frame_args_address(),
3313 set_gdbarch_deprecated_frame_locals_address(),
3314 and set_gdbarch_deprecated_dummy_write_sp().
3315 Add set_gdbarch_convert_register_p(),
3316 set_gdbarch_register_to_value(),
3317 set_gdbarch_value_to_register(),
3318 set_gdbarch_push_dummy_call(),
3319 set_gdbarch_frame_align(),
3320 set_gdbarch_unwind_dummy_id(),
3321 set_gdbarch_unwind_pc(),
3322 frame_unwind_append_sniffer(),
3323 frame_unwind_append_sniffer(),
3324 and frame_base_set_default().
3325
3326 2003-08-25 Chris Demetriou <cgd@broadcom.com>
3327
3328 * configure.tgt: Document need for special "mipsisa64" handling.
3329 (mipsisa64*-*-linux64): Handle as target linux64.
3330 (mipsisa64*-*-*): Handle as target embed64.
3331
3332 2003-08-18 Michael Chastain <mec@shout.net>
3333
3334 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3335 objfile bug.
3336
3337 2003-08-24 Mark Kettenis <kettenis@gnu.org>
3338
3339 * i387-tdep.h: Update copyright date.
3340 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3341
3342 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3343 CFLAGS games to reflect reality.
3344
3345 2003-08-24 Andrew Cagney <cagney@redhat.com>
3346
3347 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3348 GDB_MULTI_ARCH is always non-zero.
3349 * osabi.c (_initialize_gdb_osabi): Ditto.
3350 (gdbarch_init_osabi): Ditto.
3351 * sparc-tdep.c: Ditto for #if code.
3352
3353 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3354
3355 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3356 Update comments.
3357 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3358 comments.
3359 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3360 x86_64_supply_fxsave.
3361 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3362 x86_64_supply_fxsave.
3363 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3364 x86_64_supply_fxsave.
3365
3366 2003-08-23 Andreas Jaeger <aj@suse.de>
3367
3368 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3369 i387_supply_fxsave.
3370
3371 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3372
3373 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3374 i387_supply_register.
3375 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3376 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3377 i387_supply_fsave.
3378 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3379 i387_supply_fxsave.
3380 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3381 i387_supply_fsave.
3382 * i386bsd-nat.c (supply_fpregset): Adjust call to
3383 i387_supply_fsave.
3384 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3385 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3386 supply_fpregset.
3387 (store_inferior_registers): Remove extraneous whitespace. Call
3388 i387_fill_fsave instead of fill_fpregset.
3389 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3390 (supply_fpregset): Likewise.
3391 * i386v4-nat.c (supply_fpregset): Adjust call to
3392 i387_supply_fsave.
3393 * i386-interix-nat.c (supply_fpregset): Adjust call to
3394 i387_supply_fsave.
3395 * i386-linux-nat.c (supply_fpregset): Adjust call to
3396 i387_supply_fsave.
3397 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3398 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3399 i387supply_fsave and i387_supply_fxsave.
3400 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3401 Incorporate code from `i387_supply_register.
3402 (i387_supply_register): Remove.
3403 (i387_supply_fxsave): Add `regnum' argument.
3404 Update comments.
3405 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3406 prototype.
3407 (i387_supply_register): remove prototype.
3408 Update comments.
3409
3410 2003-08-22 Michael Chastain <mec@shout.net>
3411
3412 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3413 Add lines for files in gdb/testsuite/gdb.cp/* that are
3414 still not 8.3 unique.
3415
3416 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
3417
3418 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3419 TYPE_VPTR_FIELDNO is valid.
3420
3421 2003-08-19 Mark Kettenis <kettenis@gnu.org>
3422
3423 * utils.c (set_width_command): Remove prototypes.
3424 (set_screen_size): New prototype.
3425 (init_page_info): Simplify by fetching the screen size from
3426 Readline. Call set_screen_size.
3427 (set_screen_size): New function.
3428 (set_width): Add missing whitespace in comment.
3429 (set_width_command): Call set_screen_size.
3430 (set_height_command): New function.
3431 (initialize_utils): Fix formatting. Make "set height" command
3432 call set_height_command. Remove redundant code that turns off
3433 pagination if output isn't a terminal. Remove redundant call to
3434 set_width_command.
3435
3436 2003-08-22 Mark Kettenis <kettenis@gnu.org>
3437
3438 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3439 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3440 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3441 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3442 `case' keyword.
3443 (sparc64_register_info): Give the reister with number
3444 SPARC64_STATE_REGNUM a name.
3445 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3446 %asi and %ccr.
3447 (sparc64_push_dummy_call): Take BIAS into account when checking
3448 stcak alignment.
3449 (sparc_software_single_step): Remove assertions that check whether
3450 NPC and NNPC were zero.
3451 (sparc_supply_rwindow): Make public. Merge functionality with
3452 sparc64_supply_rwindow.
3453 (sparc_fill_rwindow): Make public. Merge functionality with
3454 sparc64_fill_rwindow.
3455 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3456 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3457 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3458 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3459 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3460
3461 * reggroups.c: Add whitespace after declarations of local
3462 variables in functions.
3463
3464 2003-08-21 Michael Chastain <mec@shout.net>
3465
3466 * gdbtypes.h: Change array bound type from an int to enum.
3467
3468 2003-08-21 Andrew Cagney <cagney@redhat.com>
3469
3470 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3471 * config/sparc/tm-sparc.h: Ditto.
3472 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3473 unconditionally.
3474 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3475
3476 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3477
3478 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3479 (register_objfile_data, set_objfile_data, objfile_data): New
3480 prototypes.
3481 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3482 prototypes.
3483 (allocate_objfile): Call objfile_alloc_data.
3484 (free_objfile): Call objfile_free_data.
3485 (struct objfile_data): New.
3486 (struct objfile_data_registration): New.
3487 (struct objfile_data_registry): New.
3488 (objfile_data_registry): New variable.
3489 (register_objfile_data): New function.
3490 (objfile_alloc_data, objfile_free_data): New functions.
3491 (set_objfile_data, objfile_data): New functions.
3492 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3493 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3494 (_initialize_dwarf2_frame): New function and prototype.
3495
3496 2003-08-21 Andrew Cagney <cagney@redhat.com>
3497
3498 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3499 a specific architecture.
3500 * arch-utils.h (set_architecture_from_arch_mach): Delete
3501 declaration.
3502 (target_architecture_hook): Delete declaration.
3503 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3504 (default_float_format): Assume GDB_MULTI_ARCH.
3505 (default_double_format): Assume GDB_MULTI_ARCH.
3506 (set_endian_from_file): Delete function.
3507 (arch_ok): Delete function.
3508 (set_arch): Delete function.
3509 (set_architecture_from_arch_mach): Delete function.
3510 (set_architecture_from_file): Delete function.
3511 (set_architecture): Assume GDB_MULTI_ARCH.
3512 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3513
3514 2003-08-21 Mark Kettenis <kettenis@gnu.org>
3515
3516 Rewrite FreeBSD/sparc64 native configuration.
3517 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3518 * sparc64fbsd-nat.c: New file.
3519 * sparc64fbsd-tdep.c: New file.
3520 * sparc64-tdep.c sparc64-tdep.h: New files.
3521 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3522 sparc64fbsd-tdep.o): New dependencies.
3523 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3524 and sparc64fbsd-tdep.c.
3525 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3526 * config/sparc/fbsd.mh: Remove copyright notice.
3527 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3528 sparcbsd-nat.o.
3529 * config/sparc/fbsd.mt: Remove copyright notice.
3530 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3531 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3532 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3533 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3534 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3535 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3536 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3537 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3538 "sparc/tm-sp64.h".
3539 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3540 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3541
3542 2003-08-21 Michael Chastain <mec@shout.net>
3543
3544 * symtab.h: Add doco on the space critical structures and
3545 some measurements of space usage.
3546
3547 2003-08-21 Michael Snyder <msnyder@redhat.com>
3548
3549 * tracepoint.c (trace_dump_command): Trace break address
3550 is subject to DECR_PC_AFTER_BREAK.
3551 (set_traceframe_context): Make "trace_line" an int.
3552 Fixes suggested by Mark Newman <mark.newman@lmco.com>
3553
3554 2003-08-20 Michael Snyder <msnyder@redhat.com>
3555
3556 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
3557 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3558 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
3559 argument passing.
3560 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
3561 functions, replace sh_push_dummy_call.
3562 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3563
3564 2003-08-20 Michael Chastain <mec@shout.net>
3565
3566 * gdbtypes.h (struct main_type): Rearrange to save space.
3567
3568 2003-08-20 Michael Snyder <msnyder@redhat.com>
3569
3570 * trad-frame.c: Comment typo fix.
3571
3572 2003-08-20 Michael Snyder <msnyder@redhat.com>
3573 Kevin Buettner <kevinb@redhat.com>
3574
3575 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3576 (frv_frame_init_saved_regs): Add declaration.
3577 (frame_extra_info): Add new field ``saved_regs''.
3578 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3579 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3580 Update frame related code.
3581 (frv_extract_struct_value_address): Adjust formatting.
3582 * Makefile.in (frv-tdep.o): Update dependencies.
3583 * config/frv/tm-frv.h (target_insert_watchpoint)
3584 (target_remove_watchpoint, target_insert_hw_breakpoint)
3585 (target_remove_hw_breakpoint): Delete these macros.
3586 (remote_insert_watchpoint, remote_remove_watchpoint)
3587 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3588 these declarations.
3589
3590 2003-08-20 Michael Chastain <mec@shout.net>
3591
3592 * defs.h (ENUM_BITFIELD): New macro.
3593 * symtab.h (ENUM_BITFIELD): Use it.
3594 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3595
3596 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3597
3598 * MAINTAINERS (write after approval): Add myself.
3599
3600 2003-08-18 Andrew Cagney <cagney@redhat.com>
3601
3602 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3603 * gdbarch.h, gdbarch.c: Re-generate.
3604 * infcall.c (call_function_by_hand): Adjust the SP by
3605 frame_red_zone_size before allocating any stack space.
3606 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3607 * x86-64-tdep.c (x86_64_frame_align): New function.
3608 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3609
3610 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3611 Remove code adjusting SP so that it skips over the Red Zone.
3612
3613 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3614
3615 * NEWS (New native configurations): Mention FreeBSD/amd64.
3616
3617 2003-08-18 Andrew Cagney <cagney@redhat.com>
3618
3619 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3620 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3621 "m68k_frame_p".
3622 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3623
3624 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3625
3626 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3627
3628 2003-08-18 Michal Ludvig <mludvig@suse.cz>
3629
3630 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3631 Define.
3632 * i386-linux-nat.c: Include "linux-nat.h".
3633 (child_post_startup_inferior): New function.
3634
3635 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3636
3637 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3638 at the start of a frameless function. This probably fixes PR
3639 backtrace/1338.
3640
3641 2003-08-17 Michael Chastain <mec@shout.net>
3642
3643 * symfile.c (find_sym_fns): Remove special case for apollo target.
3644
3645 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3646
3647 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3648 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3649 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3650 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3651 (linux_supports_tracevforkdone): New function.
3652 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3653 TRACEVFORKDONE.
3654 (child_follow_fork): Handle vfork.
3655 (linux_handle_extended_wait): Likewise. Also handle exec.
3656 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3657 * NEWS: Mention fork tracing.
3658
3659 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3660
3661 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3662
3663 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3664
3665 * Makefile.in (i386-linux-nat.o): Update dependencies.
3666 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3667 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3668 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3669 * i386-linux-nat.c: Include "linux-nat.h".
3670 (child_post_startup_inferior): New function.
3671 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3672 * infptrace.c (kill_inferior): Wrap in #ifdef.
3673 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3674 attaching to each LWP.
3675 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3676 (init_lin_lwp_ops): Fill in some more operations.
3677 * linux-nat.h (linux_enable_event_reporting)
3678 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3679 prototypes.
3680 * linux-nat.c (linux_enable_event_reporting): New function.
3681 (child_post_attach, linux_child_post_startup_inferior)
3682 (child_post_startup_inferior, child_follow_fork)
3683 (linux_handle_extended_wait, kill_inferior): New functions.
3684
3685 2003-08-16 Andrew Cagney <cagney@redhat.com>
3686
3687 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3688 * gdbarch.h, gdbarch.c: Re-generate.
3689
3690 2003-08-16 Mark Kettenis <kettenis@gnu.org>
3691
3692 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3693
3694 2003-08-16 Andrew Cagney <cagney@redhat.com>
3695
3696 * NEWS: Mention that "set prompt-escape-char" was deleted.
3697 * top.c (get_prompt_1): Delete function.
3698 (gdb_prompt_escape):
3699 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3700 prompt-escape-char" command.
3701 (MAX_PROMPT_SIZE): Delete macro.
3702 (get_prompt): Simplify, do not call get_prompt_1.
3703
3704 2003-08-16 Andrew Cagney <cagney@redhat.com>
3705
3706 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3707 -Werror. -Wformat-nonliteral problems.
3708
3709 2003-08-15 J. Brobecker <brobecker@gnat.com>
3710
3711 Further multiarching work mostly for hppa64-*-hpux11:
3712 * hppa-tdep.h: New file.
3713 * hppa-tdep.c: #include hppa-tdep.c.
3714 (hppa32_num_regs): Renamed from hppa_num_regs.
3715 (hppa64_num_regs): New constant.
3716 (hppa64_call_dummy_breakpoint_offset): New constant.
3717 (hppa32_call_dummy_length): New constant.
3718 (hppa64_call_dummy_length): New constant.
3719 (hppa32_stack_align): Make name 32bit explicit.
3720 (hppa32_register_virtual_type): Likewise.
3721 (hppa32_extract_return_value): Likewise.
3722 (hppa32_use_struct_convention): Likewise.
3723 (hppa32_store_return_value): Likewise.
3724 (hppa64_register_virtual_type): New function.
3725 (hppa64_extract_return_value): New function.
3726 (hppa64_use_struct_convention): New function.
3727 (hppa64_store_return_value): New function.
3728 (hppa_frame_locals_address): Remove declaration, function does
3729 not exist anymore.
3730 (hppa_register_byte): Add support for PA64 ABI.
3731 (hppa_gdbarch_init): Add support for PA64 ABI.
3732 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3733 Make name 32bit explicit.
3734 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3735 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3736 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3737 (hppa64_hpux_frame_base_before_sigtramp): New function.
3738 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3739 * config/pa/tm-hppa64.h: Remove macros that are no longer
3740 necessary now that the gdbarch vector is properly setup.
3741 Transform some macros into function calls. Some minor cleanup.
3742 * config/pa/tm-hppah.h: Update function calls in macros
3743 following the function renaming in hppa-hpux-tdep.c.
3744 * Makefile.in (hppa_tdep_h): New variable.
3745 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3746
3747 2003-08-14 Michael Snyder <msnyder@redhat.com>
3748
3749 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3750
3751 2003-08-13 J. Brobecker <brobecker@gnat.com>
3752
3753 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3754 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3755 routine.
3756
3757 2003-08-13 Michael Snyder <msnyder@redhat.com>
3758
3759 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3760 (frv_saved_pc_after_call): Use deprecated ftype.
3761 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3762 (frv_remote_translate_xfer_address): Remove.
3763 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3764
3765 2003-08-13 J. Brobecker <brobecker@gnat.com>
3766
3767 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3768 initialization after the common gdbarch initialization, not before.
3769
3770 2003-08-13 J. Brobecker <brobecker@gnat.com>
3771
3772 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3773 (ADDR_BITS_REMOVE): Remove, redundant.
3774
3775 2003-08-13 J. Brobecker <brobecker@gnat.com>
3776
3777 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3778 gdbarch method to clear the 2 low bits of text addresses.
3779
3780 2003-08-12 Andrew Cagney <cagney@redhat.com>
3781
3782 * Makefile.in (dsrec.o): Update dependencies.
3783 * dsrec.c: Include "gdb_assert.h".
3784 (make_srec): Use snprintf instead of sprintf, use a literal format
3785 string.
3786
3787 2003-08-12 Andrew Cagney <cagney@redhat.com>
3788
3789 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3790 FRAME_OBSTACK_ZALLOC.
3791
3792 2003-08-12 Kevin Buettner <kevinb@redhat.com>
3793
3794 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3795 SSE registers.
3796
3797 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3798
3799 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3800 amd64fbsd_sc_reg_offset): Add extern declarations.
3801 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3802 declarations.
3803
3804 2003-08-11 Ben Elliston <bje@wasabisystems.com>
3805
3806 * MAINTAINERS (write after approval): Update my mail address.
3807
3808 2003-08-10 Andrew Cagney <cagney@redhat.com>
3809
3810 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3811
3812 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3813
3814 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3815 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3816 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3817 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3818 i386bsd_sc_reg_offset): Add extern declarations.
3819 * i386obsd-nat.c: Include "i386-tdep.h"
3820 (_initialize_i386obsd_nat): Remove extern declarations.
3821 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3822 declarations.
3823 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3824 declarations.
3825
3826 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3827 instead of frame_read_register.
3828 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3829 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3830 SP_REGNUM.
3831 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3832 instead of frame_unwind_unsigned_register. Use
3833 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3834 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3835 instead of read_register. Use builtin_type_void_data_ptr instead
3836 of builtin_type_void_func_ptr when extracting the address of the
3837 jmp_buf.
3838 (i386_extract_return_value, i386_store_return_value,
3839 i386_pseudo_register_read, i386_pseudo_register_write): Use
3840 register_size instead REGISTER_RAW_SIZE.
3841
3842 2003-08-10 Andrew Cagney <cagney@redhat.com>
3843
3844 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3845 sprintf. Make "name" constant.
3846
3847 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3848
3849 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3850 instead of frame_read_register.
3851 (i387_print_float_info): Use get_frame_register and
3852 get_frame_register_unsigned instead of frame_register_read.
3853
3854 * i386fbsd-nat.c: Include "i386-tdep.h".
3855 (child_resume): Make `eflags' an ULONGEST. Use
3856 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3857 instead of register_read and register_write.
3858
3859 * i386bsd-nat.c (fetch_inferior_registers,
3860 store_inferior_registers): Don't use && at the end of a line.
3861 (_initialize_i386bsd_nat): Fix typo.
3862
3863 * frame.c (_initialize_frame): Add missing backslash.
3864
3865 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3866 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3867 and supply_register instead of manipulating the register buffer
3868 directly.
3869
3870 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3871 * config/i386/nm-i386sol2.h
3872 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3873
3874 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3875 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3876 instructions that GCC likes to mingle into the prologue. Fixes
3877 gdb/1253 and gdb/1255.
3878
3879 2003-08-09 Andrew Cagney <cagney@redhat.com>
3880
3881 Fix GDB PR cli/926.
3882 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3883 * command.h (add_setshow_uinteger_cmd): Declare.
3884 * frame.c (set_backtrace_cmd): New function.
3885 (show_backtrace_cmd): New function.
3886 * frame.c (_initialize_frame): Replace "set/show
3887 backtrace-below-main" with "set/show backtrace past-main". Add
3888 command "set/show backtrace limit".
3889 (backtrace_past_main): Rename "backtrace_below_main".
3890 (backtrace_limit): New variable.
3891 (get_prev_frame): Update. Check the backtrace_limit.
3892
3893 2003-08-09 Andrew Cagney <cagney@redhat.com>
3894
3895 * defs.h (xstrprintf): Declare.
3896 * utils.c (xstrprintf): New function.
3897 * breakpoint.c (insert_breakpoints): Replace sprintf and
3898 non-literal format strings, with xstrprintf and cleanups.
3899 (delete_breakpoint,breakpoint_re_set): Ditto.
3900 (commands_command, insert_breakpoints): Ditto.
3901 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3902 (break_at_finish_command_1): Ditto.
3903
3904 2003-08-09 Andrew Cagney <cagney@redhat.com>
3905
3906 * MAINTAINERS (language support): List Adam Fedor as Objective C
3907 maintainer.
3908
3909 2003-08-08 J. Brobecker <brobecker@gnat.com>
3910
3911 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3912 are now multiarched.
3913
3914 2003-08-08 J. Brobecker <brobecker@gnat.com>
3915
3916 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3917 longer necessary now that hppa64 is partially multiarch'ed.
3918
3919 2003-08-08 Andrew Cagney <cagney@redhat.com>
3920
3921 * interps.c (interp_set): Check for a NULL "old_interp".
3922
3923 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3924
3925 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3926 (install-only): Support DESTDIR.
3927 (uninstall): Likewise.
3928 (install-gdbtk): Likewise.
3929
3930 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
3931
3932 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3933 contains something meaningful at all times.
3934
3935 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
3936
3937 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
3938
3939 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3940
3941 * MAINTAINERS (write after approval): Added self.
3942
3943 2003-08-07 Andrew Cagney <cagney@redhat.com>
3944
3945 * inferior.h (AT_SYMBOL): Define.
3946 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3947 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3948 * mips-tdep.c (mips_call_dummy_address): Delete function.
3949 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3950 set call_dummy_address.
3951
3952 2003-08-07 Andrew Cagney <cagney@redhat.com>
3953
3954 * language.c (op_error): Delete function.
3955 (binop_type_check): Delete function.
3956 * language.h (type_op_error, range_op_error): Delete macros.
3957 (op_error): Delete declaration.
3958
3959 2003-08-07 Andrew Cagney <cagney@redhat.com>
3960
3961 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3962
3963 2003-08-07 Michal Ludvig <mludvig@suse.cz>
3964
3965 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
3966 (x86_64_push_arguments): Skip the red zone.
3967
3968 2003-08-05 Andrew Cagney <cagney@redhat.com>
3969
3970 * reggroups.c (reggroup_next): Check for the final entry.
3971
3972 2003-08-04 Andrew Cagney <cagney@redhat.com>
3973
3974 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3975 * cli/cli-script.c (define_command): Call query directly, instead
3976 of passing it a buffer.
3977 * ocd.c (ocd_error): Pass error a constant format string.
3978 * remote-mips.c (mips_error): Use fputs_filtered.
3979
3980 * solib-svr4.c (_initialize_svr4_solib): Update
3981 register_gdbarch_data call.
3982 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3983
3984 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3985 (register_gdbarch_data): Delete "free" parameter. Update
3986 comments.
3987 * gdbarch.h, gdbarch.c: Re-generate.
3988 * reggroups.c (_initialize_reggroup): Update.
3989 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3990 * frame-base.c (_initialize_frame_base): Update.
3991 * frame-unwind.c (_initialize_frame_unwind): Update.
3992 * user-regs.c (_initialize_user_regs): Update.
3993 * remote.c (_initialize_remote): Update.
3994 * regcache.c (_initialize_regcache): Update.
3995
3996 * regcache.c (xfree_regcache_descr): Delete function.
3997 (_initialize_regcache): Update call to register_gdbarch_data.
3998 (init_regcache_descr, init_legacy_regcache_descr): Use
3999 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4000
4001 * remote.c (free_remote_state): Delete function.
4002 (_initialize_remote): Update register_gdbarch_data.
4003 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4004 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4005
4006 2003-08-04 Andrew Cagney <cagney@redhat.com>
4007
4008 * reggroups.c (struct reggroup_el): Define.
4009 (struct reggroups): Delete field "nr_group". Replace array
4010 "group" with a "first" to "last" linked list.
4011 (reggroups_init): Update. Allocate using gdbarch's obstack.
4012 (reggroups_free): Delete function.
4013 (add_group): Update. Add "el" parameter.
4014 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4015 (default_groups): Update.
4016 (reggroup_next): Replace reggroups.
4017 (reggroups_dump): Update.
4018 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4019 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4020 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4021
4022 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
4023
4024 * Makefile.in (tui-interp.o): Update dependencies.
4025
4026 2003-08-04 David Carlton <carlton@kealia.com>
4027
4028 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4029 to internal_error call.
4030 * source.c (forward_search_command): Add "%s" format argument.
4031 (reverse_search_command): Ditto.
4032 * top.c (quit_confirm): Ditto.
4033 * cli/cli-setshow.c (do_setshow_command): Ditto.
4034 * cp-valprint.c (cp_print_class_method): Replace
4035 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4036 (cp_print_class_member): Ditto.
4037 * event-top.c (command_line_handler): Ditto.
4038 * linux-proc.c (linux_info_proc_cmd): Ditto.
4039 * p-typeprint.c (pascal_type_print_base): Ditto.
4040 * p-valprint.c (pascal_object_print_class_method): Ditto.
4041 (pascal_object_print_class_member): Ditto.
4042 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4043 * remote.c (remote_cisco_section_offsets): Ditto.
4044 * top.c (command_line_input): Ditto.
4045 * utils.c (vwarning,error_stream,quit): Ditto.
4046 * valprint.c (print_floating,print_binary_chars)
4047 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4048
4049 2003-08-04 Andrew Cagney <cagney@redhat.com>
4050
4051 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4052
4053 2003-08-02 Andrew Cagney <cagney@redhat.com>
4054
4055 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4056 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4057 amd64fbsd-nat.c.
4058
4059 2003-08-02 Andrew Cagney <cagney@redhat.com>
4060
4061 * Makefile.in: Update all dependencies and definitions.
4062
4063 2003-08-02 Adam Fedor <fedor@gnu.org>
4064
4065 * linespec.c (is_objc_method_format): New function
4066 (decode_line_1, locate_first_half): Use it.
4067 Fixes PR objc/1298
4068
4069 2003-08-01 Andrew Cagney <cagney@redhat.com>
4070
4071 * NEWS: Mention that m32r is multi-arch.
4072 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4073 * configure.tgt: Recognize m32r-*-*.
4074 * config/m32r/tm-m32r.h: Delete file.
4075 * config/m32r/m32r.mt: New file.
4076 * m32r-rom.c (m32r_upload_command): Use hostent only when
4077 gethostname succeeds, in order to avoid a compilation
4078 warning.
4079 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4080 compiler warning.
4081
4082 2003-08-01 Michael Snyder <msnyder@redhat.com>
4083
4084 * sh-tdep.c (sh_frame_align): New gdbarch method.
4085 (sh_gdbarch_init): Set up frame_align method.
4086
4087 2003-07-31 Michael Snyder <msnyder@redhat.com>
4088
4089 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4090 which is already covered by the new frames infrastructure.
4091
4092 2003-07-31 Andrew Cagney <cagney@redhat.com>
4093
4094 * user-regs.c (struct user_reg): Add "next" link.
4095 (struct user_regs): Replace "user" with "first" and "last" links.
4096 (append_user_reg): Add pre-allocated "reg" parameter.
4097 (builtin_user_regs): Provide initial value for "last".
4098 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4099 (user_regs_init): Allocate memory from the gdbarch obstack.
4100 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4101 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4102 linked list.
4103 (usernum_to_user_reg): New function.
4104 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4105 (value_of_user_reg): Use usernum_to_user_reg.
4106 (user_regs_free): Delete function.
4107 (_initialize_user_regs): Update register_gdbarch_data call.
4108
4109 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
4110
4111 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4112
4113 2003-07-30 Michael Snyder <msnyder@redhat.com>
4114
4115 * value.h (value_being_returned): Add a struct_addr argument.
4116 * infcall.c (call_function_by_hand): Pass struct_addr to
4117 value_being_returned.
4118 * infcmd.c (print_return_value): Pass zero as struct_addr.
4119 * values.c (value_being_returned): If struct_addr is passed,
4120 use it instead of trying to recover it from the inferior.
4121
4122 2003-07-30 Kevin Buettner <kevinb@redhat.com>
4123
4124 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4125 the prologue analyzer won't need to attempt to extract the pc
4126 value from the woefully incomplete dummy frame.
4127 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4128 possible. Disable code which modifies the frame.
4129
4130 2003-07-28 Andrew Cagney <cagney@redhat.com>
4131
4132 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4133 to level 2.
4134 (annotate_breakpoints_table, annotate_record): Ditto.
4135 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4136 (annotate_field_name_end, annotate_field_value): Ditto.
4137 (annotate_field_end, annotate_frame_source_begin): Ditto.
4138 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4139 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4140 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4141 (annotate_frame_address_end, annotate_frame_address): Ditto.
4142 (annotate_frame_args, annotate_frame_end): Ditto.
4143 (annotate_frame_where, annotate_arg_begin): Ditto.
4144 (annotate_arg_name_end, annotate_arg_value): Ditto.
4145 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4146 (annotate_function_call, annotate_signal_name): Ditto.
4147 (annotate_signal_string, annotate_signal_name_end): Ditto.
4148 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4149 (annotate_value_begin, annotate_value_history_value): Ditto.
4150 (annotate_value_history_end, annotate_value_end): Ditto.
4151 (annotate_display_begin, annotate_display_number_end): Ditto.
4152 (annotate_display_format, annotate_display_expression): Ditto.
4153 (annotate_display_expression_end, annotate_display_value): Ditto.
4154 (annotate_display_end, annotate_array_section_begin): Ditto.
4155 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4156 (annotate_elt, annotate_array_section_end): Ditto.
4157
4158 2003-07-28 Andrew Cagney <cagney@redhat.com>
4159
4160 * regcache.c (struct regcache_descr): Update comments on
4161 nr_raw_registers.
4162 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4163 sizeof_raw_register_valid_p.
4164 (init_regcache_descr): Set nr_raw_registers and
4165 sizeof_raw_register_valid_p before calling
4166 init_legacy_regcache_descr.
4167
4168 2003-07-28 Andrew Cagney <cagney@redhat.com>
4169
4170 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4171 MOD NUM_REGS.
4172
4173 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
4174
4175 * thread.c (info_threads_command): Use get_selected_frame ().
4176 Check that there is at least one non-sentinel frame.
4177
4178 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4179
4180 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4181 (m68hc11_pop_frame): Remove.
4182 (m68hc11_frame_saved_pc): Remove.
4183 (m68hc11_frame_chain): Remove.
4184 (m68hc11_frame_init_saved_regs): Remove.
4185 (m68hc11_init_extra_frame_info): Remove.
4186 (m68hc11_store_struct_return): Remove.
4187 (m68hc11_saved_pc_after_call): Remove.
4188
4189 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4190
4191 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4192 frame unwind information.
4193 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4194 and adapted for frame unwinding.
4195 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4196 (m68hc11_unwind_pc): New function.
4197 (m68hc11_frame_unwind_cache): New function to analyze frames.
4198 (m68hc11_frame_this_id): New function to create new frame struct.
4199 (m68hc11_frame_prev_register): New function to unwind a register from
4200 the frame.
4201 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4202 (m68hc11_frame_p): New function for the above.
4203 (m68hc11_frame_base_address): New function to return fp of frame.
4204 (m68hc11_frame_args_address): Update for frame.
4205 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4206 (m68hc11_unwind_sp): New function.
4207 (m68hc11_unwind_dummy_id): New function.
4208 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4209 calls.
4210
4211 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4212
4213 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4214 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4215 when we are beyond the current pc.
4216
4217 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4218
4219 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4220 from m68hc11_push_arguments.
4221 (m68hc11_push_arguments): Remove.
4222 (m68hc11_push_return_address): Remove.
4223 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4224 handlers; remove deprecated_extra_stack_alignment_needed.
4225
4226 2003-07-27 Andrew Cagney <cagney@redhat.com>
4227
4228 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4229 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4230 REAL_PC and not the pointer.
4231 * hppa-hpux-tdep.c: Include frame.h
4232
4233 2003-07-27 Andrew Cagney <cagney@redhat.com>
4234
4235 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4236 GDB_MULTI_ACH_PARTIAL.
4237
4238 2003-07-27 Andrew Cagney <cagney@redhat.com>
4239
4240 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4241 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4242 operator at start and not end of line.
4243 (decode_prologue): Ditto.
4244 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4245 frame_unwind_register_unsigned instead of
4246 frame_unwind_unsigned_register.
4247 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4248 read_register.
4249 (m32r_push_dummy_call): Use register_size instead of
4250 REGISTER_RAW_SIZE.
4251 (m32r_frame_sniffer): Replace m32r_frame_p.
4252 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4253 * m32r-rom.c (report_transfer_performance): Delete extern
4254 declaration.
4255 (m32r_load, m32r_upload_command): Use print_transfer_performance
4256 instead of report_transfer_performance.
4257 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4258 / add_show_from_set.
4259
4260 2003-07-26 Andrew Cagney <cagney@redhat.com>
4261
4262 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4263 store_return_value and extract_struct_value_address.
4264
4265 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
4266
4267 PR c++/1267
4268 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4269 NULL, default to the section containing PC.
4270
4271 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4272
4273 * NEWS: Mention "regs" deprecated for m68hc11 too.
4274
4275 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4276 (m68hc11_print_register): New function to print out one register.
4277 (m68hc11_print_registers_info): New function to print registers.
4278 (show_regs): Deprecate and use the above.
4279 (m68hc11_gdbarch_init): Install the print_registers_info.
4280
4281 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4282
4283 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4284 that we have a SIGTRAP before returning non-zero.
4285
4286 2003-07-23 Michal Ludvig <mludvig@suse.cz>
4287 Elena Zannoni <ezannoni@redhat.com>
4288
4289 * linespec.c (decode_line_2): Avoid crash if
4290 find_function_start_sal() returns empty record.
4291
4292 2003-07-23 Andreas Schwab <schwab@suse.de>
4293
4294 * ia64-tdep.c (ia64_print_insn): New function.
4295 (ia64_gdbarch_init): Set print_insn to it.
4296 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4297 deprecated_tm_print_insn_info.
4298
4299 2003-07-22 Michael Snyder <msnyder@redhat.com>
4300
4301 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4302 handle 8-bit returns (long long).
4303 (h8300h_extract_return_value): Ditto.
4304 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4305
4306 2003-07-22 Andrew Cagney <cagney@redhat.com>
4307
4308 * gdbarch.c Include "gdb_obstack.h".
4309 (struct gdbarch): Add an "obstack".
4310 (alloc_gdbarch_data): Allocate the gdbarch data using
4311 GDBARCH_OBSTACK_CALLOC.
4312 (free_gdbarch_data): Delete function.
4313 (gdbarch_obstack_zalloc): New function.
4314 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4315 Assert that the architecture is not initialized.
4316 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4317 vector from the obstack.
4318 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4319 architecture obstack.
4320 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4321 (set_gdbarch_data): Assert that the data is not initialized.
4322 (struct gdbarch_data): Delete member "free".
4323 (register_gdbarch_data): Do not initialize "free".
4324 * gdbarch.h, gdbarch.c: Re-generate.
4325
4326 2003-07-22 Andrew Cagney <cagney@redhat.com>
4327
4328 * configure.in (build_warnings): Add -Wformat-nonliteral.
4329 * configure: Re-generate.
4330
4331 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4332
4333 * dwarf2loc.c (locexpr_describe_location): Fix typos.
4334
4335 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4336
4337 * findvar.c (read_var_value): Remove case for thread local storage
4338 variables. It is now entirely handled by the dwarf2 location
4339 expression code.
4340 * printcmd.c (address_info): Ditto.
4341 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4342 enumeration value.
4343 (struct symbol): Remove objfile field, which was used by
4344 LOC_THREAD_LOCAL_STATIC only.
4345 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4346 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4347 usage of objfile pointer.
4348 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4349 thread local variables.
4350 Add include of objfiles.h.
4351 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4352 storage variables.
4353 * Makefile.in (dwarf2loc.o): Update dependencies.
4354
4355 2003-07-22 Andrew Cagney <cagney@redhat.com>
4356
4357 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4358 get_frame_base.
4359 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4360 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4361 (struct value): Add opaque declaration.
4362 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4363
4364 2003-07-21 Andrew Cagney <cagney@redhat.com>
4365
4366 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4367 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4368
4369 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4370
4371 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4372 regcache_cooked_read_unsigned instead of read_register.
4373 (m68hc11_saved_pc_after_call): Likewise.
4374 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4375 instead of write_register.
4376 (m68hc11_register_type): New function.
4377 (m68hc11_register_virtual_type): Remove.
4378 (m68hc11_store_return_value): Convert to use the regcache.
4379 (m68hc11_extract_struct_value_address): Likewise.
4380 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4381 m68hc11_register_type; undeprecate store_return_value and
4382 extract_struct_value_address.
4383
4384 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4385
4386 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4387 and translate to use regcache.
4388 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4389
4390 2003-07-18 Andrew Cagney <cagney@redhat.com>
4391
4392 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4393 * gdbarch.h, gdbarch.c: Re-generate.
4394 * i386-tdep.c (i386_gdbarch_init): Do not set
4395 DWARF2_BUILD_FRAME_INFO.
4396 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4397 unconditionally.
4398 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4399 DWARF2_BUILD_FRAME_INFO.
4400
4401 2003-07-18 Andrew Cagney <cagney@redhat.com>
4402
4403 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4404 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4405
4406 2003-07-18 Andrew Cagney <cagney@redhat.com>
4407
4408 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4409 frame_unwind_address_in_block, instead of frame_pc_unwind.
4410 (dwarf2_frame_cache): Ditto.
4411
4412 2003-07-18 Andrew Cagney <cagney@redhat.com>
4413
4414 * user-regs.h (struct gdbarch): Declare opaque.
4415 * ui-out.h (struct ui_file): Declare opaque.
4416 * dwarf2-frame.h (struct frame_info): Declare opaque.
4417
4418 2003-07-18 Kris Warkentin <kewarken@qnx.com>
4419
4420 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4421 #include "...".
4422 (procfs_meminfo): Change strerror to safe_strerror.
4423 (procfs_can_run): Remove K&R badness.
4424
4425 2003-07-17 Michael Snyder <msnyder@redhat.com>
4426
4427 * remote-sim.c: Comment typo fix.
4428
4429 2003-07-17 Andrew Cagney <cagney@redhat.com>
4430
4431 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4432 configure.
4433 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4434 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4435 GDB_MULTI_ARCH_PARTIAL.
4436
4437 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
4438
4439 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4440 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4441 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4442
4443 2003-07-16 Theodore A. Roth <troth@openavr.org>
4444
4445 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4446 found.
4447 (avr_frame_unwind_cache): Don't unwind FP for main.
4448 Update a comment.
4449 Save the computed prev_sp.
4450 (avr_saved_regs_unwinder): Remove function.
4451 (avr_frame_prev_register): Use PC unwind logic from
4452 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4453
4454 2003-07-16 Andrew Cagney <cagney@redhat.com>
4455
4456 * frame-base.h (frame_base_p_ftype): Delete definition.
4457 (frame_base_append_predicate): Delete declaration.
4458 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4459 (frame_unwind_append_predicate): Delete declaration.
4460 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4461 (append_predicate): Delete parameter "p".
4462 (frame_unwind_append_predicate): Delete function.
4463 (frame_unwind_append_sniffer): Update call to append_predicate.
4464 (frame_unwind_free): Delete function.
4465 (_initialize_frame_unwind): Pass NULL as "free" to
4466 register_gdbarch_data.
4467 (frame_unwind_init): Append the dummy_frame_sniffer.
4468 (frame_unwind_find_by_frame): Simplify.
4469 * frame-base.c (struct frame_base_table): Delete field "p".
4470 (append_predicate): Delete parameter "p".
4471 (frame_base_append_predicate): Delete function.
4472 (frame_base_append_sniffer): Update call to append_predicate.
4473 (frame_base_free): Delete function.
4474 (frame_base_find_by_frame): Simplify.
4475 (_initialize_frame_base): Pass NULL as "free" to
4476 register_gdbarch_data.
4477 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4478 (x86_64_sigtramp_frame_sniffer): Replace
4479 "x86_64_sigtramp_frame_p".
4480 (x86_64_init_abi): Set the frame unwind sniffers.
4481 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4482 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4483 (m68k_gdbarch_init): Set the frame unwind sniffers.
4484 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4485 "i386_sigtramp_frame_p".
4486 (i386_frame_sniffer): Replace "i386_frame_p".
4487 (i386_gdbarch_init): Set the frame unwind sniffers.
4488 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4489 (avr_gdbarch_init): Set the frame unwind sniffers.
4490 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4491 "alpha_sigtramp_frame_p"
4492 (alpha_heuristic_frame_sniffer): Replace
4493 "alpha_heuristic_frame_p".
4494 (alpha_gdbarch_init): Set the frame unwind sniffers.
4495 (alpha_dwarf2_init_abi): Ditto.
4496 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4497 "alpha_debug_frame_p".
4498 (alpha_mdebug_frame_base_sniffer): Replace
4499 "alpha_mdebug_frame_base_p".
4500 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4501 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4502 (d10v_gdbarch_init): Set the frame unwind sniffer.
4503 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4504 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4505 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4506 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4507 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4508 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4509
4510 2003-07-16 Michael Snyder <msnyder@redhat.com>
4511
4512 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4513 should go thru sh_dsp_register_sim_regno, else the dsp regs
4514 will not get the right values.
4515
4516 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4517
4518 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4519 deprecated_store_floating by call to store_typed_floating.
4520 (sh_sh4_register_convert_to_raw): Substitute call to
4521 deprecated_extract_floating by call to extract_typed_floating.
4522
4523 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4524
4525 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4526
4527 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4528
4529 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4530 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4531 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4532 as possible.
4533 (do_pseudo_register): Remove.
4534 (sh_push_dummy_code): New function.
4535 (sh64_store_struct_return): Rename from sh_store_struct_return.
4536 Only called for sh64 now.
4537 (sh_extract_struct_value_address): Regcache'ify.
4538 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4539 and accomodate new tasks.
4540 (sh64_push_return_address): Rename from sh_push_return_address.
4541 Only called for sh64 now.
4542 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4543 Regcache'ify.
4544 (sh3e_sh4_extract_return_value): Regcache'ify.
4545 (sh_default_store_return_value): Ditto.
4546 (sh3e_sh4_store_return_value): Ditto.
4547 (sh_default_register_byte): Remove.
4548 (sh_sh4_register_byte): Remove.
4549 (sh_default_register_raw_size): Remove.
4550 (sh_sh4_register_raw_size): Remove.
4551 (sh_register_virtual_size): Remove.
4552 (sh_sh3e_register_virtual_type): Remove.
4553 (sh_sh3e_register_type): New function.
4554 (sh_sh4_register_virtual_type): Remove.
4555 (sh_sh4_register_type): New function.
4556 (sh_default_register_virtual_type): Remove.
4557 (sh_default_register_type): New function.
4558 (do_fv_register_info): Add parameters to accomodate call from
4559 sh_print_registers_info.
4560 (do_dr_register_info): Ditto.
4561 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4562 Add parameters to accomodate call from sh_print_registers_info.
4563 (sh_do_fp_register): Ditto.
4564 (sh64_do_pseudo_register): Call do_dr_register_info,
4565 do_fv_register_info and sh_do_fp_register with default parameters.
4566 (sh_do_register): Add parameters to accomodate call from
4567 sh_print_registers_info.
4568 (sh_print_register): Ditto.
4569 (sh_print_registers_info): Rename from sh_do_registers_info.
4570 Add parameters to be used as gdbarch_print_registers_info
4571 implementation. Accomodate removed do_pseudo_register function
4572 pointer.
4573 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4574 function pointer. Call sh_print_register with default parameters.
4575 (sh64_do_registers_info): Call sh_print_registers_info instead of
4576 sh_do_registers_info.
4577 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4578 detection of deprecated vs. non-deprecated functionality.
4579 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4580 function pointer assignments by direct function calls.
4581
4582 2003-07-15 Andrew Cagney <cagney@redhat.com>
4583
4584 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4585 (frame_register_unwind, create_new_frame): Ditto.
4586 (legacy_get_prev_frame, get_frame_type): Ditto.
4587 (get_frame_base_address): Use frame_base_find_by_frame.
4588 (get_frame_locals_address): Use frame_base_find_by_frame.
4589 (get_frame_args_address): Use frame_base_find_by_frame.
4590 * frame-base.h (frame_base_sniffer_ftype): Declare.
4591 (frame_base_append_sniffer): Declare.
4592 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4593 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4594 (frame_base_append_sniffer): New function.
4595 (frame_base_append_predicate): Add a NULL sniffer.
4596 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4597 (struct frame_base_table): Add "sniffer".
4598 (frame_base_free): Free the "sniffer" table.
4599 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4600 (frame_unwind_append_sniffer): Declare.
4601 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4602 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4603 (struct frame_unwind_table): Add "sniffer", delete "middle".
4604 (append_predicate): Add "sniffer" parameter, append the sniffer.
4605 (frame_unwind_init): Update append_predicate call.
4606 (frame_unwind_append_sniffer): New function.
4607 (frame_unwind_append_predicate): Update append_predicate call.
4608 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4609
4610 2003-07-15 Andrew Cagney <cagney@redhat.com>
4611
4612 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4613 before code inhibiting repeated unwind attempts. Add to
4614 commentary on that test's problems.
4615 * blockframe.c (inside_main_func): Look for "main" in the minimal
4616 symbol table.
4617 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4618 identical.
4619
4620 2003-07-15 Andrew Cagney <cagney@redhat.com>
4621
4622 * complaints.c (struct explanation): Define.
4623 (struct complaints): Change type of "explanation" to "struct
4624 explanation".
4625 (symfile_explanations): Convert to a "struct explanation" table.
4626 (vcomplaint): Update.
4627
4628 2003-07-15 Michal Ludvig <mludvig@suse.cz>
4629
4630 * x86-64-linux-nat.c (regmap): Removed.
4631 (supply_gregset, fill_gregset): Call
4632 x86_64_linux_(fill,supply)_gregset functions.
4633 * x86-64-linux-tdep.c (USER_*): New defines.
4634 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4635 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4636 New functions.
4637 (fetch_core_registers): Ditto.
4638 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4639 * x86-64-linux-tdep.h: New file.
4640 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4641 and core-regset.o.
4642 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4643
4644 2003-07-13 Mark Kettenis <kettenis@gnu.org>
4645
4646 * x86-64-tdep.c (x86_64_store_return_value): Use
4647 regcache_cooked_write_part instead of regcache_cooked_write.
4648
4649 * configure.host: Add x86_64-*-freebsd*.
4650 * configure.tgt: Add x86_64-*-freebsd*.
4651 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4652 * amd64fbsd-nat.c: New file.
4653 * amd64fbsd-tdep.c: New file.
4654 * config/i386/nm-fbsd64.h: New file.
4655 * config/i386/fbsd64.mh: New file.
4656 * config/i386/fbsd64.mt: New file.
4657
4658 2003-07-11 Mark Kettenis <kettenis@gnu.org>
4659
4660 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4661 `sc_regs_offset' and `sc_fpregs_offset'.
4662 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4663 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4664 (alpha_sigtramp_register_address): Rewrite to use new members of
4665 `struct gdbarch_tdep'.
4666 (alpha_gdbarch_init): Initialize new members of struct
4667 gdbarch_tdep'.
4668 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4669 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4670 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4671 (alphafbsd_pc_in_sigtramp): Implement.
4672 (alphafbsd_sigtramp_offset): New function.
4673 (alphafbsd_sigcontext_addr): New function.
4674 (alphafbsd_init_abi): Initialize signal trampoline related members
4675 of `struct gdbarch_tdep'.
4676 (_initialize_alphafbsd_tdep): Add prototype.
4677
4678 2003-07-11 Theodore A. Roth <troth@openavr.org>
4679
4680 * Makefile.in (install-only): Quote sed expression when generating
4681 transformed_name.
4682
4683 2003-07-11 Richard Henderson <rth@redhat.com>
4684
4685 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4686 * dwarf2-frame.c: Include complaints.h.
4687 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4688 variable initialization; return NULL on error.
4689 (decode_frame_entry): New.
4690
4691 2003-07-11 Andrew Cagney <cagney@redhat.com>
4692
4693 * frame.h (frame_address_in_block): Delete declaration.
4694 * blockframe.c (frame_address_in_block): Delete function.
4695 (get_frame_block): Use get_frame_address_in_block.
4696 (block_innermost_frame): Ditto.
4697 * stack.c (print_frame, backtrace_command_1): Ditto.
4698
4699 * frame.h (get_frame_address_in_block): Declare.
4700 (frame_unwind_address_in_block): Declare.
4701 * frame.c (frame_unwind_address_in_block): New function.
4702 (get_frame_address_in_block): New function.
4703
4704 2003-07-10 Andrew Cagney <cagney@redhat.com>
4705
4706 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4707 pre-default. Note: re-generate has no effect.
4708
4709 2003-07-10 Andrew Cagney <cagney@redhat.com>
4710
4711 * gdbarch.sh: When a variable, but not a function, compare against
4712 0. Fix problem in previous patch.
4713 * gdbarch.c: Re-generate.
4714
4715 2003-07-10 Andrew Cagney <cagney@redhat.com>
4716
4717 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4718 functions against NULL, not 0.
4719 * gdbarch.c: Re-generate.
4720
4721 2003-07-10 Fred Fish <fnf@ninemoons.com>
4722
4723 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4724 null string instead of a null pointer.
4725 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4726
4727 2003-07-09 Michael Snyder <msnyder@redhat.com>
4728
4729 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4730
4731 2003-07-09 Mark Kettenis <kettenis@gnu.org>
4732
4733 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4734 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4735 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4736 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4737 * x86-64-tdep.c: ... from here.
4738
4739 2003-07-09 Andreas Schwab <schwab@suse.de>
4740
4741 * m68k-tdep.h (enum struct_return): Define.
4742 (struct gdbarch_tdep): Add struct_return.
4743 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4744 bytes are padded to the right, not to the left. Pass struct value
4745 address in register %a1, not on stack.
4746 (m68k_use_struct_convention): New function.
4747 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4748 struct_return in tdep to pcc_struct_return.
4749 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4750 reg_struct_return.
4751
4752 2003-07-09 Joel Brobecker <brobecker@gnat.com>
4753
4754 * somread.c (som_symfile_offsets): Fix compilation error.
4755
4756 2003-07-09 Andrew Cagney <cagney@redhat.com>
4757
4758 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4759 Add comments about the checks.
4760
4761 2003-07-08 Andrew Cagney <cagney@redhat.com>
4762
4763 * Makefile.in: Make dependency section headers consistent.
4764 (config_h): Move to $BUILD headers section.
4765 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4766 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4767 (ada-exp.tab.c): Move to YACC/LEX section.
4768 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4769 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4770
4771 2003-07-08 Kris Warkentin <kewarken@qnx.com>
4772
4773 * nto-procfs.c: Cleaned up a bunch of ARI hits.
4774 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4775 of strerror with safe_strerror, use ISO C function definitions,
4776 and replace instances of sprintf with snprintf.
4777
4778 2003-07-07 Andrew Cagney <cagney@redhat.com>
4779
4780 * frame.c (get_prev_frame): Enable check for identical frames.
4781 Update comments. Update error messages.
4782
4783 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4784
4785 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4786
4787 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4788
4789 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4790 sort_symtab_syms, no longer necessary.
4791
4792 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4793
4794 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4795
4796 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4797
4798 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4799 (mips_register_byte): Likewise.
4800
4801 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4802
4803 * Makefile.in (sparc_tdep_h): New.
4804 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4805 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4806 * sparc-linux-nat.c: Include "sparc-tdep.h".
4807 * sparc-nat.c: Likewise.
4808 * sparc-tdep.c: Likewise.
4809 * sparc64nbsd-nat.c: Likewise.
4810 * sparcnbsd-nat.c: Likewise.
4811 * sparcnbsd-tdep.c: Likewise.
4812 * sparc-tdep.h: New file.
4813 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4814 and sparc_npc_regnum.
4815
4816 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4817
4818 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4819 (mips_linux_cannot_store_register): List supported instead of
4820 unsupported registers.
4821
4822 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4823
4824 * disasm.c (dump_insns): Separate instructions from addresses.
4825
4826 2003-07-07 Andreas Schwab <schwab@suse.de>
4827
4828 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4829 dependencies.
4830 * m68k-tdep.c (NUM_FREGS): Delete.
4831 (SIG_PC_FP_OFFSET): Delete.
4832 (TARGET_M68K): Delete.
4833 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4834 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4835 P_MOVEL_SP, P_MOVEML_SP): Define.
4836 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4837 P_TRAP): Delete.
4838 (m68k_register_raw_size): Delete.
4839 (m68k_register_virtual_size): Delete.
4840 (m68k_register_type): Renamed from m68k_register_virtual_type and
4841 add gdbarch argument.
4842 (m68k_store_struct_return): Delete.
4843 (m68k_deprecated_extract_return_value): Delete.
4844 (m68k_deprecated_extract_struct_value_address): Delete.
4845 (m68k_frame_chain): Delete.
4846 (m68k_frame_saved_pc): Delete.
4847 (m68k_fix_call_dummy): Delete.
4848 (m68k_push_dummy_frame): Delete.
4849 (m68k_pop_frame): Delete.
4850 (m68k_extract_return_value): New function.
4851 (m68k_store_return_value): Rewrite using regcache.
4852 (m68k_extract_struct_value_address): Rewrite using regcache.
4853 (m68k_push_dummy_call): New function.
4854 (struct m68k_frame_cache): Define.
4855 (m68k_alloc_frame_cache): New function.
4856 (m68k_analyze_frame_setup): New function.
4857 (m68k_analyze_register_saves): New function.
4858 (m68k_analyze_prologue): New function.
4859 (m68k_skip_prologue): Rewrite using above functions.
4860 (m68k_unwind_pc): New function.
4861 (m68k_frame_cache): New function.
4862 (m68k_frame_this_id): New function.
4863 (m68k_frame_prev_register): New function.
4864 (m68k_frame_unwind): New variable.
4865 (m68k_frame_p): New function.
4866 (m68k_sigtramp_frame_cache): New function.
4867 (m68k_sigtramp_frame_this_id): New function.
4868 (m68k_sigtramp_frame_prev_register): New function.
4869 (m68k_sigtramp_frame_unwind): New variable.
4870 (m68k_sigtramp_frame_p): New function.
4871 (m68k_frame_base_address): New function.
4872 (m68k_frame_base): New function.
4873 (m68k_unwind_dummy_id): New function.
4874 (fill_gregset): Use regcache_collect.
4875 (fill_fpregset): Likewise.
4876 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4877 defined.
4878 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4879 deprecated_init_frame_pc, deprecated_store_struct_return,
4880 deprecated_extract_return_value, deprecated_store_return_value,
4881 deprecated_frame_chain, deprecated_frame_saved_pc,
4882 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4883 deprecated_register_virtual_size,
4884 deprecated_max_register_raw_size,
4885 deprecated_max_register_virtual_size,
4886 deprecated_register_virtual_type, deprecated_register_size,
4887 deprecated_register_byte, deprecated_register_bytes,
4888 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4889 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4890 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4891 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4892 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4893 deprecated_push_dummy_frame, deprecated_pop_frame,
4894 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4895 only if SYSCALL_TRAP is defined. Set extract_return_value,
4896 store_return_value, extract_struct_value_address, register_type,
4897 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4898 predicates.
4899 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4900 M68K_MAX_REGISTER_SIZE): Define.
4901 (struct m68k_sigtramp_info): Define.
4902 (struct gdbarch_tdep): Add get_sigtramp_info.
4903 * m68klinux-nat.c (fetch_register): Use register_size instead of
4904 REGISTER_RAW_SIZE. Don't put assignment in if.
4905 (store_register): Likewise.
4906 (fetch_inferior_registers): Likewise.
4907 (store_inferior_registers): Likewise.
4908 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4909 (m68k_linux_frame_saved_pc): Delete.
4910 (m68k_linux_sigcontext_reg_offset,
4911 m68k_linux_ucontext_reg_offset): Define.
4912 (m68k_linux_get_sigtramp_info): New function.
4913 (m68k_linux_extract_return_value): Rewrite using regcache.
4914 (m68k_linux_store_return_value): Likewise.
4915 (m68k_linux_extract_struct_value_address): Likewise.
4916 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4917 Don't set deprecated_frame_saved_pc,
4918 deprecated_extract_return_value, deprecated_store_return_value,
4919 deprecated_extract_struct_value_address. Set
4920 extract_return_value, store_return_value,
4921 extract_struct_value_address.
4922
4923 2003-07-07 Andrew Cagney <cagney@redhat.com>
4924
4925 * expprint.c: Include "user-regs.h" instead of "frame.h".
4926 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4927 frame_map_regnum_to_name.
4928 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4929 (frame_map_name_to_regnum): Simplify, call
4930 user_reg_map_name_to_regnum.
4931 (frame_map_regnum_to_name): Simplify, call
4932 user_reg_map_regnum_to_name.
4933 (frame_register_unwind): Update.
4934 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4935 (_initialize_frame_reg): Call user_reg_add_builtin.
4936 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4937 (value_of_register): Use value_of_user_reg.
4938 * eval.c (evaluate_subexp_standard): Update.
4939 * parse.c (write_dollar_variable): Update.
4940 * d10v-tdep.c (d10v_print_registers_info): Update.
4941 * infcmd.c (registers_info): Update.
4942 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4943 (builtin_regs_h): Delete macro.
4944 (user_regs_h): Define.
4945 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4946 (builtin-regs.o): Delete target.
4947 (user-regs.o): Specify dependencies.
4948 (expprint.o): Update dependencies.
4949 (findvar.o): Update dependencies.
4950 (frame.o): Update dependencies.
4951 (std-regs.o): Update dependencies.
4952
4953 2003-07-06 Christopher Faylor <cgf@redhat.com>
4954
4955 * win32-nat.c (solib_symbols_add): Use one variable for all section
4956 address stuff. Pass variable rather than address of variable to
4957 safe_symbol_file_add.
4958
4959 2003-07-06 Andreas Schwab <schwab@suse.de>
4960
4961 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4962
4963 2003-07-04 Joel Brobecker <brobecker@gnat.com>
4964
4965 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4966
4967 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4968
4969 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4970
4971 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4972
4973 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4974 * config/i386/nto.mh: New file.
4975 * config/i386/nm-nto.h: New file.
4976 * configure.host: Add i[3456]86-*-nto*.
4977
4978 2003-07-03 Joel Brobecker <brobecker@gnat.com>
4979
4980 * remote-vx.c (vx_add_symbols): Fix compilation error.
4981
4982 2003-07-03 Andrew Cagney <cagney@redhat.com>
4983
4984 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4985 * gdbarch.h, gdbarch.c: Re-generate.
4986 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4987 (legacy_register_name): Declare.
4988 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4989 (REGISTER_NAME): Define.
4990 * sparc-tdep.c (legacy_register_name): New function.
4991 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4992 (REGISTER_NAME): Define.
4993 (hppa64_register_name): Declare.
4994 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4995 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4996 (hppa64_register_name): New function.
4997 (hppa_register_name): New function.
4998 * arch-utils.c (legacy_register_name): Delete.
4999 * arch-utils.h (legacy_register_name): Delete.
5000
5001 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
5002
5003 * cli/cli-interp.c (cli_interpreter_resume): Update the
5004 cli_uiout's stream to gdb_stdout.
5005
5006 2003-07-03 Andrew Cagney <cagney@redhat.com>
5007
5008 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5009 predicate.
5010 * gdbarch.h, gdbarch.c: Re-generate.
5011 * regcache.c (init_regcache_descr): Use legacy code when either
5012 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5013
5014 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5015
5016 * NEWS: Move "set logging" entry into GDB 6.0 section.
5017
5018 2003-07-02 Jim Blandy <jimb@redhat.com>
5019
5020 * s390-tdep.c (struct frame_extra_info): new member:
5021 'stack_bought_valid'.
5022 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5023 initialize fextra_info->stack_bought.
5024 (s390_frameless_function_invocation): Don't trust the value of
5025 fextra_info_ptr->stack_bought unless
5026 fextra_info->stack_bought_valid is set.
5027
5028 New S390 prologue analyzer.
5029 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5030 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5031 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5032 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5033 compute_x_addr, s390_on_stack, s390_store,
5034 s390_get_signal_frame_info): New functions.
5035 (S390_NUM_SPILL_SLOTS): New macro.
5036 (s390_get_frame_info): Rewritten.
5037 (is_arg_reg): Deleted.
5038
5039 Break out the decoding of S/390 instructions into separate
5040 functions, to make it more legible, and easier to check
5041 against the spec.
5042 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5043 is_rx, is_rxe): New functions.
5044 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5045 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5046 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5047 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5048 enums for opcode values. (Is this an improvement?)
5049
5050 2003-07-02 Andrew Cagney <cagney@redhat.com>
5051
5052 * i386-tdep.c: Revert change committed as part of trad-frame code
5053 below.
5054
5055 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5056
5057 * breakpoint.c (insert_catchpoint): Make static.
5058
5059 2003-07-02 Andreas Schwab <schwab@suse.de>
5060
5061 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5062 former ia64_push_arguments and ia64_push_return_address, and use
5063 regcache functions instead of read/write_register.
5064 (ia64_gdbarch_init): Set push_dummy_call instead of
5065 deprecated_push_arguments and deprecated_push_return_address.
5066
5067 2003-07-01 Andreas Jaeger <aj@suse.de>
5068
5069 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5070 before the call.
5071 Set %rax only to number of SSE registers used.
5072
5073 2003-07-01 Andrew Cagney <cagney@redhat.com>
5074
5075 * trad-frame.h: Update comments, a -1 .addr is reserved.
5076 (trad_frame_value_p, trad_frame_addr_p): Declare.
5077 (trad_frame_reg_p): Declare.
5078 (trad_frame_set_value): Rename trad_frame_register_value.
5079 (trad_frame_set_unknown): Declare.
5080 * trad-frame.c (trad_frame_realreg_p): New function.
5081 (trad_frame_addr_p, trad_frame_value_p): New function.
5082 (trad_frame_set_unknown): New function.
5083 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5084 (trad_frame_prev_register): Use trad_frame_realreg_p,
5085 trad_frame_addr_p and trad_frame_value_p.
5086 (trad_frame_set_value): Rename trad_frame_register_value.
5087 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5088 and trad_frame_set_value.
5089
5090 2003-06-30 Jim Blandy <jimb@redhat.com>
5091
5092 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5093 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5094 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5095 for 16 registers, and then 32 more bytes.
5096 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5097 New macros.
5098 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5099 Move up in the file, since it's now used by is_simple_arg.
5100 (is_simple_arg): Don't assume registers are four bytes long.
5101 Exclude all double arguments. Extended floats are not simple
5102 args.
5103 (is_power_of_two): New function.
5104 (pass_by_copy_ref): Call is_power_of_two, and check that the
5105 length fits in a register, rather than listing all the acceptable
5106 sizes. Extended floats are not passed by reference.
5107 (s390_push_arguments): Don't assume registers are four bytes long.
5108 Reserve an argument register to point to the buffer for structures
5109 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5110 S390_STACK_FRAME_OVERHEAD.
5111
5112 2003-06-30 Andreas Schwab <schwab@suse.de>
5113
5114 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5115 format error message.
5116
5117 2003-06-30 Joel Brobecker <brobecker@gnat.com>
5118
5119 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5120
5121 2003-06-30 David Carlton <carlton@kealia.com>
5122
5123 Band-aid for PR c++/1245.
5124 * Makefile.in (cp-support.o): Depend on complaints_h.
5125 * cp-support.c: Include complaints.h. Add declaration for
5126 find_last_component.
5127 (cp_find_first_component): Separate code into
5128 cp_find_first_component_aux.
5129 (cp_find_first_component_aux): Call demangled_name_complaint.
5130 (demangled_name_complaint): New.
5131
5132 2003-06-30 Andrew Cagney <cagney@redhat.com>
5133
5134 * remote.c (remote_write_bytes): Explicitly compute and then use
5135 the payload size. Update comments to reflect. Fixes problem of
5136 GDB not sending small packets as found by Fred Fish.
5137
5138 2003-06-30 Andrew Cagney <cagney@redhat.com>
5139
5140 * remote.c (remote_async_wait): Fix -Wformat problem.
5141
5142 2003-06-29 Andrew Cagney <cagney@redhat.com>
5143
5144 * remote.c (remote_wait): Call error, and not warning, when the
5145 packet is corrupt.
5146 (remote_async_wait): Ditto.
5147
5148 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5149
5150 * sparc-tdep.c (sparc_y_regnum): Make external again.
5151
5152 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5153
5154 * cli/cli-logging.c (pop_output_files): Add void to function
5155 definition.
5156
5157 2003-06-29 Andrew Cagney <cagney@redhat.com>
5158
5159 * frame.c (frame_register_unwind): Use unsigned char when dumping
5160 the buffer contents.
5161
5162 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
5163
5164 * cli/cli-logging.c: New file.
5165 * cli-out.c (struct ui_out_data): Add original_stream.
5166 (cli_redirect): New function.
5167 (cli_ui_out_impl): Add cli_redirect.
5168 (cli_out_new): Initialize original_stream.
5169 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5170 (uo_redirect, ui_out_redirect): New.
5171 * ui-out.h (struct ui_out_impl): Add redirect member.
5172 (redirect_ftype): New.
5173 (ui_out_redirect): Add prototype.
5174 * Makefile.in: Add rules for cli-logging.c.
5175 * NEWS: Mention "set logging".
5176
5177 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5178
5179 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5180
5181 2003-06-27 Andrew Cagney <cagney@redhat.com>
5182
5183 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5184 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5185 * avr-tdep.c (avr_call_dummy_address): Delete function.
5186 (avr_gdbarch_init): Do not set call_dummy_address.
5187
5188 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5189
5190 * symfile.c (syms_from_objfile): Move variables to inner block.
5191 Move the checks for the non-mainline case a bit earlier to avoid
5192 doing some useless computations.
5193
5194 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5195
5196 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5197
5198 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
5199
5200 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5201 sections.
5202
5203 2003-06-26 Michael Chastain <mec@shout.net>
5204
5205 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5206 gdb/testsuite/gdb.c++/pr-1210.exp.
5207
5208 2003-06-26 Andrew Cagney <cagney@redhat.com>
5209
5210 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5211 altivec_expression.h and altivec_registers.h.
5212
5213 2003-06-26 Andrew Cagney <cagney@redhat.com>
5214
5215 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5216 info->mach when MIPS16. Patch suggested by Fred Fish.
5217
5218 2003-06-26 Andrew Cagney <cagney@redhat.com>
5219
5220 * utils.c (internal_vproblem): Print the problem to a reason
5221 buffer and then pass to query. Make the msg variable more local.
5222
5223 2003-06-26 Andrew Cagney <cagney@redhat.com>
5224
5225 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5226 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5227 * gdbarch.h, gdbarch.c: Re-generate.
5228 * frame-base.c (default_frame_args_address): Update. Use
5229 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5230 not available.
5231 (default_frame_locals_address): Ditto for
5232 DEPRECATED_FRAME_LOCALS_ADDRESS.
5233 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5234 (vax_frame_num_args): Update.
5235 (vax_gdbarch_init): Update.
5236 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5237 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5238 * mcore-tdep.c (mcore_gdbarch_init): Update.
5239 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5240 * ia64-tdep.c (ia64_gdbarch_init): Update.
5241 * symtab.h (address_class): Update comments.
5242 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5243 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5244 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5245 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5246 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5247 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5248 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5249 * alpha-mdebug-tdep.c: Update.
5250 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5251
5252 2003-06-26 Andreas Jaeger <aj@suse.de>
5253
5254 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5255 of SSE registers so that varargs functions work. Rework handling
5256 of passing arguments on the stack.
5257 (x86_64_store_return_value): Return double and float values in SSE
5258 register.
5259
5260 2003-06-24 Michael Chastain <mec@shout.net>
5261
5262 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5263 the "constructor breakpoints ignored" bug.
5264
5265 2003-06-25 David Carlton <carlton@kealia.com>
5266
5267 * MAINTAINERS: Update e-mail address.
5268
5269 2003-06-24 Jim Blandy <jimb@redhat.com>
5270
5271 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5272
5273 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5274 function.
5275 (ppc_linux_init_abi): Register it as the
5276 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5277
5278 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5279 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5280 method.
5281
5282 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5283 (ppc64_standard_linkage_target): Use it.
5284
5285 2003-06-23 Andrew Cagney <cagney@redhat.com>
5286
5287 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5288 for 0 "int0" and 4 "int32" sized registers.
5289 * gdbtypes.c (builtin_type_int0): Define.
5290 (build_gdbtypes): Initialize builtin_type_int0.
5291 * gdbtypes.h (builtin_type_int0): Declare.
5292
5293 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5294
5295 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5296 as characters are unsigned.
5297
5298 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5299
5300 PR gdb/1179
5301 * dwarfread.c (struct_type): Skip static fields without crashing.
5302
5303 2003-06-22 Andrew Cagney <cagney@redhat.com>
5304
5305 GDB 6.0 branch created.
5306 * README: Update.
5307 * PROBLEMS: Update. Empty.
5308 * NEWS: Update.
5309
5310 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5311
5312 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5313 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5314
5315 2003-06-22 Andrew Cagney <cagney@redhat.com>
5316
5317 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5318 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5319 Velikov.
5320
5321 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5322
5323 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5324 compilers.
5325
5326 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5327
5328 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5329 argument of val_print.
5330 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5331 to the address argument of baseclass_offset or target_read_memory.
5332 Do add it to the argument of cp_print_value_fields.
5333
5334 2003-06-21 Andrew Cagney <cagney@redhat.com>
5335
5336 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5337 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5338 instead of 0..NUM_REGS.
5339 (mips_register_reggroup_p): New function.
5340 (mips_pseudo_register_write): New function.
5341 (mips_pseudo_register_read): New function.
5342 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5343 based on the register's type.
5344 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5345 cooked.
5346 (mips_get_saved_register): Simplify. Assert that REGNO is a
5347 pseudo / cooked.
5348 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5349 (mips_register_type): Replace mips_register_virtual_type. Map
5350 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5351 when available.
5352 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5353 that the register is cooked / virtual.
5354 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5355 Only get the extra info when needed.
5356 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5357 (mips32_heuristic_proc_desc): Fetch the cooked register.
5358 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5359 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5360 (mips_print_register): Use gdbarch_register_type, instead of
5361 REGISTER_VIRTUAL_TYPE.
5362 (print_gp_register_row): Use gdbarch_register_type, instead of
5363 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5364 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5365 Print the pseudo / cooked registers.
5366 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5367 Print the pseudo / cooked registers.
5368 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5369 REG_NUM is pseudo / cooked.
5370 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5371 (mips_n32n64_xfer_return_value): Ditto.
5372 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5373 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5374 (mips_register_sim_regno): New function.
5375 (mips_gdbarch_init): Set deprecated_register_byte,
5376 register_group_p, pseudo_register_write, pseudo_register_read,
5377 register_sim_regno, and num_pseudo_regs. Set register_type,
5378 instead of register_virtual_type.
5379 * Makefile.in (mips-tdep.o): Update dependencies.
5380 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5381 REGISTER_VIRTUAL_TYPE.
5382 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5383 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5384 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5385 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5386 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5387
5388 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5389
5390 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5391 * cli/cli-cmds.c: Include "gdb_vfork.h".
5392 (shell_escape): Use vfork.
5393
5394 2003-06-21 Andrew Cagney <cagney@redhat.com>
5395
5396 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5397 32 bit floating-point register saves.
5398
5399 * frame.h (deprecated_unwind_get_saved_register): Delete.
5400 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5401 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5402 and deprecated_get_next_frame_hack instead of
5403 deprecated_unwind_get_saved_register.
5404
5405 * mips-tdep.c (mips_dump_tdep): Do not print
5406 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5407
5408 * frame.c (get_frame_register): New function.
5409 (frame_unwind_register_signed): New function.
5410 (get_frame_register_signed): New function.
5411 (frame_unwind_register_unsigned): New function.
5412 (get_frame_register_unsigned): New function.
5413 * frame.h: Add comments on naming schema.
5414 (get_frame_register, frame_unwind_register_signed): Declare.
5415 (get_frame_register_signed, get_frame_register_signed): Declare.
5416 (frame_unwind_register_unsigned): Declare.
5417 (get_frame_register_unsigned): Declare.
5418
5419 2003-06-20 Theodore A. Roth <troth@openavr.org>
5420
5421 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5422
5423 2003-06-20 Theodore A. Roth <troth@openavr.org>
5424
5425 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5426 (avr_read_sp): Ditto.
5427
5428 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
5429
5430 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5431 * config/arm/nm-linux.h: Likewise.
5432 * config/arm/tm-linux.h: Likewise.
5433 * config/ia64/nm-linux.h: Likewise.
5434 * config/ia64/tm-ia64.h: Likewise.
5435 * config/s390/tm-linux.h: Likewise.
5436 * config/s390/tm-s390.h: Likewise.
5437 * s390-nat.c: Likewise.
5438 * s390-tdep.c: Likewise.
5439
5440 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5441 * config/ia64/linux.mt: Likewise.
5442 * config/m68k/linux.mh: Likewise.
5443 * config/mips/linux.mt: Likewise.
5444 * config/powerpc/linux.mh: Likewise.
5445 * config/sh/linux.mt: Likewise.
5446
5447 2003-06-19 Kris Warkentin <kewarken@qnx.com>
5448
5449 * solib.c (solib_open): Change tests for whether to search
5450 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5451 comments.
5452
5453 2003-06-19 Theodore A. Roth <troth@openavr.org>
5454
5455 * avr-tdep.c (avr_frame_address): Delete function.
5456 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5457 set_gdbarch_frame_args_address.
5458
5459 2003-06-19 Andrew Cagney <cagney@redhat.com>
5460
5461 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5462 (REGISTER_CONVERT_FROM_TYPE): Delete.
5463 (mips_register_convert_to_type): Delete declaration.
5464 (mips_register_convert_from_type): Delete declaration.
5465 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5466 kernel/.
5467
5468 2003-06-19 Michael Snyder <msnyder@redhat.com>
5469
5470 * linux-nat.h: New file.
5471 * linux-nat.c: Include linux-nat.h.
5472 * lin-lwp.c: Include linux-nat.h.
5473 Move struct lwp_info def to linux-nat.h.
5474 * linux-proc.c: Include linux-nat.h.
5475 (linux_make_note_section): Iterate over lwps instead of threads.
5476 (linux_do_thread_registers): Use lwp instead of merged pid.
5477 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
5478 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
5479 Add dependency on linux_nat_h.
5480
5481 2003-06-19 Theodore A. Roth <troth@openavr.org>
5482
5483 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5484
5485 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5486
5487 * varobj.c (get_type, get_target_type): Use check_typedef.
5488
5489 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5490
5491 * breakpoint.c (insert_catchpoint): Call internal_error.
5492
5493 2003-06-19 Theodore A. Roth <troth@openavr.org>
5494
5495 * avr-tdep.c (avr_push_dummy_code): Delete function.
5496 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5497
5498 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5499
5500 * arch-utils.c (default_prepare_to_proceed): Remove.
5501 (generic_prepare_to_proceed): Remove.
5502 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5503 (generic_prepare_to_proceed): Remove prototype.
5504 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5505 * gdbarch.c: Regenerate.
5506 * gdbarch.h: Regenerate.
5507 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5508 * hppah-nat.c (hppa_switched_threads): Remove.
5509 * infrun.c (prepare_to_proceed): New static function, copied from
5510 generic_prepare_to_proceed. Remove select_it argument.
5511 (proceed): Call prepare_to_proceed.
5512 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5513 variables.
5514 (ptrace_wait): Don't set the removed variables.
5515 (hppa_switched_threads): Remove.
5516 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5517 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5518 (lin_lwp_prepare_to_proceed): Remove prototype.
5519 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5520 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5521
5522 2003-06-18 Theodore A. Roth <troth@openavr.org>
5523
5524 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5525 trad-frame.h.
5526 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5527 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5528 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5529 (AVR_PROLOGUE_*): Enumerate prologue types.
5530 (struct frame_extra_info): Remove.
5531 (struct avr_unwind_cache): Define.
5532 (avr_write_sp): Delete function.
5533 (avr_read_fp): Ditto.
5534 (avr_init_extra_frame_info): Ditto.
5535 (avr_pop_frame): Ditto.
5536 (avr_frame_saved_pc): Ditto.
5537 (avr_saved_pc_after_call): Ditto.
5538 (avr_push_return_address): Ditto.
5539 (avr_frame_chain): Ditto.
5540 (avr_store_struct_return): Ditto.
5541 (avr_push_arguments): Ditto.
5542 (avr_scan_prologue): Update comments. Changed to set up the info for
5543 cache unwinding. Now returns end of prologue PC.
5544 (avr_skip_prologue): Better handling of functions lacking a prologue
5545 by using avr_scan_prologue.
5546 (avr_scan_arg_moves): New function.
5547 (avr_saved_regs_unwinder): Ditto.
5548 (avr_frame_unwind_cache): Ditto.
5549 (avr_unwind_pc): Ditto.
5550 (avr_frame_this_id): Ditto.
5551 (avr_frame_prev_register): Ditto.
5552 (avr_frame_p): Ditto.
5553 (avr_frame_base_address ): Ditto.
5554 (avr_unwind_dummy_id): Ditto.
5555 (avr_push_dummy_code): Ditto.
5556 (push_stack_item): Ditto.
5557 (pop_stack_item): Ditto.
5558 (avr_push_dummy_call): Ditto.
5559 (struct stack_item): Define.
5560 (avr_frame_unwind): Declare structure.
5561 (avr_frame_base): Ditto.
5562 (avr_gdbarch_init): Remove calls to
5563 set_gdbarch_deprecated_init_frame_pc,
5564 set_gdbarch_deprecated_target_read_fp,
5565 set_gdbarch_deprecated_dummy_write_sp,
5566 set_gdbarch_deprecated_fp_regnum,
5567 set_gdbarch_deprecated_push_arguments,
5568 set_gdbarch_deprecated_push_return_address,
5569 set_gdbarch_deprecated_pop_frame,
5570 set_gdbarch_deprecated_store_struct_return,
5571 set_gdbarch_deprecated_frame_init_saved_regs,
5572 set_gdbarch_deprecated_init_extra_frame_info,
5573 set_gdbarch_deprecated_frame_chain,
5574 set_gdbarch_deprecated_frame_saved_pc,
5575 set_gdbarch_deprecated_saved_pc_after_call.
5576 Add calls to set_gdbarch_push_dummy_call,
5577 set_gdbarch_push_dummy_code,
5578 frame_unwind_append_predicate,
5579 frame_base_set_default,
5580 set_gdbarch_unwind_dummy_id,
5581 set_gdbarch_unwind_pc.
5582 Wrap a long line.
5583
5584 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
5585
5586 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5587 registers for H8/300S.
5588 (h8300_print_registers_info): Ditto.
5589 (h8300_gdbarch_init): Accommodate register count for H8/300S.
5590
5591 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
5592
5593 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5594 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5595 (lin_lwp_wait): Likewise. Update comments.
5596 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5597 (pull_pid_from_list, linux_record_stopped_pid): New.
5598
5599 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5600
5601 * ada-lang.c (scan_discrim_bound): Name first argument.
5602 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5603 declared by ALL_BLOCK_SYMBOLS.
5604
5605 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5606
5607 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5608 ("regcache.h"): Include it.
5609 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5610
5611 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5612
5613 * NEWS: Mention gdbserver detach change and "disconnect" command.
5614 * infcmd.c (disconnect_command): New function.
5615 (_initialize_infcmd): Add ``disconnect'' command.
5616 * remote.c (remote_async_detach): Delete.
5617 (remote_detach): Merge remote_async_detach.
5618 (remote_disconnect): New.
5619 (init_remote_ops): Set to_disconnect.
5620 (init_remote_cisco_ops): Likewise.
5621 (init_remote_async_ops): Likewise. Use remote_detach.
5622 * target.c (cleanup_target): Default to_disconnect.
5623 (update_current_target): Inherit to_disconnect.
5624 (target_disconnect, debug_to_disconnect): New functions.
5625 (setup_target_debug): Set to_disconnect.
5626 * target.h (struct target_ops): Add to_disconnect.
5627 (target_disconnect): Add prototype.
5628
5629 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5630
5631 * breakpoint.c (insert_catchpoint): New function.
5632 (insert_breakpoints): Use catch_exceptions to call
5633 insert_catchpoint. Disable catchpoints if they fail to insert.
5634
5635 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5636
5637 * symfile.c (reread_symbols): Clear sym_private.
5638
5639 2003-06-17 Andrew Cagney <cagney@redhat.com>
5640
5641 * trad-frame.h (struct frame_info): Add opaque declaration.
5642 * remote-fileio.h (struct cmd_list_element): Add opaque
5643 declaration.
5644 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5645 comments.
5646
5647 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5648
5649 * remote.c (remote_prepare_to_store): Replace call to
5650 deprecated_read_register_bytes with multiple regcache_raw_read
5651 calls.
5652
5653 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5654
5655 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5656 (nto_find_and_open_solib): Likewise.
5657 (nto_init_solib_absolute_prefix): Likewise.
5658 (_initialize_nto_tdep): Fix indentation.
5659
5660 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5661
5662 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5663
5664 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5665
5666 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5667
5668 2003-06-17 Jim Blandy <jimb@redhat.com>
5669
5670 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5671
5672 2003-06-16 Theodore A. Roth <troth@openavr.org>
5673
5674 * avr-tdep.c (avr_extract_return_value): New function.
5675 (avr_gdbarch_init): Set extract_return_value method.
5676
5677 2003-06-16 Andrew Cagney <cagney@redhat.com>
5678
5679 * frame.h (deprecated_get_next_frame_hack): Declare.
5680 * frame.c (legacy_saved_regs_prev_register): Only require
5681 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5682 there are always saved regs.
5683 (deprecated_generic_get_saved_register): Do not require
5684 DEPRECATED_FRAME_INIT_SAVED_REGS.
5685 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5686 use frame ID unwind instead.
5687 (deprecated_get_next_frame_hack): New function.
5688
5689 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5690
5691 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5692 (h8300_push_dummy_call): ...this function. Some minor optimization.
5693 (h8300_push_return_address): Remove.
5694 (h8300_gdbarch_init): Remove calls to
5695 set_gdbarch_deprecated_dummy_write_sp,
5696 set_gdbarch_deprecated_push_arguments and
5697 set_gdbarch_deprecated_push_return_address.
5698 Add call to set_gdbarch_push_dummy_call.
5699
5700 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5701
5702 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5703 (E_PSEUDO_EXR_REGNUM): Ditto.
5704 (h8300_is_argument_spill): Check for instructions moving argument
5705 registers into safe registers.
5706 (h8300_skip_prologue): Check for stm instruction to push registers
5707 used for register variables onto stack.
5708 (gdb_print_insn_h8300): Remove.
5709 (h8300_examine_prologue): Add a comment.
5710 (h8300_register_name): Take pseudo registers into account.
5711 (h8300s_register_name): Ditto.
5712 (h8300sx_register_name): Ditto.
5713 (h8300_print_register): Ditto.
5714 (h8300_print_registers_info): Define "nice" printing order.
5715 (h8300_saved_pc_after_call): Take pseudo registers into account.
5716 (h8300_register_type): Ditto. Return type used for remote connection
5717 when requesting real CCR or EXR register, return actual type when
5718 requesting pseudo CCR or EXR.
5719 (h8300_pseudo_register_read): New function.
5720 (h8300_pseudo_register_write): Ditto.
5721 (h8300_dbg_reg_to_regnum): Ditto.
5722 (h8300s_dbg_reg_to_regnum): Ditto.
5723 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5724 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5725 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5726 set_gdbarch_print_insn architecture dependent.
5727 Call set_gdbarch_pseudo_register_read and
5728 set_gdbarch_pseudo_register_write.
5729 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5730
5731 2003-06-16 Andrew Cagney <cagney@redhat.com>
5732
5733 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5734 * gdbarch.h, gdbarch.c: Re-generate.
5735 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5736 * s390-tdep.c (s390_gdbarch_init): Update.
5737 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5738 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5739 * mips-tdep.c (mips_gdbarch_init): Update.
5740 * mcore-tdep.c (mcore_gdbarch_init): Update.
5741 * cris-tdep.c (cris_gdbarch_init): Update.
5742 * infcall.c (call_function_by_hand): Update.
5743 * ia64-tdep.c (ia64_push_arguments): Update comment.
5744 * frame.c (legacy_get_prev_frame): Do not assume
5745 SAVE_DUMMY_FRAME_TOS_P.
5746 * dummy-frame.c (find_dummy_frame): Update comment.
5747
5748 2003-06-16 Andrew Cagney <cagney@redhat.com>
5749
5750 * regcache.c (do_cooked_read): Do not use register_valid_p.
5751
5752 2003-06-15 Theodore A. Roth <troth@openavr.org>
5753
5754 * avr-tdep.c (avr_register_type): Remove a blank line.
5755 (avr_scan_prologue): Correct some comments.
5756
5757 2003-06-15 Theodore A. Roth <troth@openavr.org>
5758
5759 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5760 prologue types.
5761 Properly scan prologues generated by gcc with the -mcall-prologues
5762 option.
5763 Add code to scan -mcall-prologues for mega devices.
5764
5765 2003-06-15 Theodore A. Roth <troth@openavr.org>
5766
5767 * avr-tdep.c (avr_register_byte): Delete function.
5768 (avr_register_raw_size): Delete function.
5769 (avr_register_virtual_size): Delete function.
5770 (avr_register_virtual_type): Delete function.
5771 (avr_register_type): New function.
5772 (avr_address_to_pointer): Remove unused code.
5773 (avr_read_fp): Need to read FP as two separate bytes due to change to
5774 avr_register_type() usage.
5775 (avr_gdbarch_init): Don't set deprecated_register_size.
5776 Don't set deprecated_register_bytes.
5777 Don't set deprecated_register_byte.
5778 Don't set deprecated_register_raw_size.
5779 Don't set deprecated_max_register_raw_size.
5780 Don't set deprecated_register_virtual_size.
5781 Don't set deprecated_max_register_virtual_size.
5782 Don't set deprecated_register_virtual_type.
5783 Set register_type method.
5784
5785 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
5786
5787 * Makefile.in (linux-nat.o): Add rule.
5788 * linux-nat.c: New file.
5789 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5790 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5791 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5792 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5793 * config/arm/linux.mh (NATDEPFILES): Likewise.
5794 * config/i386/linux.mh (NATDEPFILES): Likewise.
5795 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5796 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5797 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5798 * config/mips/linux.mh (NATDEPFILES): Likewise.
5799 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5800 * config/s390/s390.mh (NATDEPFILES): Likewise.
5801 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5802
5803 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5804
5805 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5806 replace out-of-date comment.
5807
5808 2003-06-15 Andrew Cagney <cagney@redhat.com>
5809
5810 * rdi-share/host.h (Fail): Change to a varargs function.
5811 * remote-rdi.c (Fail): Update.
5812
5813 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5814
5815 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5816 (i386_convert_register_p, i386_register_to_value,
5817 i386_register_from_value): Handle types longer than 8 bytes.
5818
5819 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5820
5821 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5822 Move floating-point code to new function in i387-tdep.c.
5823 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5824 New functions containing code moved here from i386-tdep.c.
5825 * i387-tdep.h: Add opaque declaration for `struct type'.
5826 (i387_register_to_value, i387_value_to_register): New prototypes.
5827 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5828 (x86_64_init_abi): Set convert_register_p, register_to_value and
5829 value_to_register here.
5830
5831 2003-06-14 Andrew Cagney <cagney@redhat.com>
5832
5833 * mips-tdep.c (mips_register_to_value): Make static.
5834 (mips_value_to_register): Make static.
5835 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5836 * ia64-tdep.c (ia64_register_raw_size): Make static.
5837 (ia64_register_virtual_size): Make static.
5838 (ia64_register_byte): Make static.
5839 * i387-tdep.c: Include "i387-tdep.h".
5840 (print_387_control_word): Delete function.
5841 (print_387_status_word): Delete function.
5842 (print_387_status_bits): Delete function.
5843 (print_387_control_bits): Delete function.
5844 * Makefile.in (i387-tdep.o): Update dependencies.
5845 * rdi-share/host.h (Fail): Declare.
5846 * remote-rdi.c (Fail): Update to match declaration.
5847
5848 2003-06-14 Andrew Cagney <cagney@redhat.com>
5849
5850 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5851 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5852 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5853 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5854 * README: Delete reference to remote-array.
5855 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5856 (remote-array.o): Delete target.
5857 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5858 * remote-array.c: Delete file.
5859
5860 2003-06-14 Andrew Cagney <cagney@redhat.com>
5861 Mark Kettenis <kettenis@gnu.org>
5862
5863 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5864 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5865 parameter with "frame".
5866 * gdbarch.h, gdbarch.c: Re-generate.
5867 * frame.h (put_frame_register): Declare.
5868 * frame.c (put_frame_register): New function.
5869 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5870 (legacy_register_to_value): Rewrite, use "frame" to get the
5871 register value.
5872 (legacy_value_to_register): Rewrite, use "frame" to find the
5873 register's location before storing.
5874 * arch-utils.h (legacy_convert_register_p): Update.
5875 (legacy_register_to_value, legacy_value_to_register): Update.
5876 * findvar.c (value_from_register): Rewrite, eliminate use of
5877 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5878 "frame" to REGISTER_TO_VALUE.
5879 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5880 lval_reg_frame_relative + lval_register branch of the switch. Do
5881 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5882 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5883 I386_EDI_REGNUM): New defines.
5884 (i386_next_regnum, i386_convert_register_p,
5885 i386_register_to_value, i386_value_to_register): New functions.
5886 (i386_register_convertible, i386_register_convert_to_virtual,
5887 i386_convert_to_raw): Remove functions.
5888 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5889 value_to_register instead of register_convertible,
5890 register_convert_to_virtual and register_convert_to_raw.
5891 * mips-tdep.c (mips_convert_register_p): New function.
5892 (mips_value_to_register): Replace mips_register_convert_from_type.
5893 (mips_register_to_value): Replace mips_register_convert_to_type.
5894 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5895 register_to_value.
5896 * alpha-tdep.c (alpha_convert_register_p): Update.
5897 (alpha_value_to_register): Update, store the register.
5898 (alpha_register_to_value): Update, fetch the register.
5899
5900 2003-06-14 Theodore A. Roth <troth@openavr.org>
5901
5902 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5903 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5904 Don't set deprecated_call_dummy_words.
5905 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5906 Don't set remote_translate_xfer_address.
5907 (avr_io_reg_read_command): Remove commented out debug printf.
5908 Wrap a long line.
5909
5910 2003-06-14 Theodore A. Roth <troth@openavr.org>
5911
5912 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5913 causes gdb to seg fault.
5914
5915 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
5916
5917 * sparc-nat.c (fetch_inferior_registers): Correct
5918 a reference to "registers".
5919
5920 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5921
5922 * Makefile.in (exc_request_U_h): Define
5923 (exc_request_S_h): Likewise.
5924 (msg_reply_S_h): Likewise.
5925 (msg_U_h): Likewise.
5926 (notify_S_h): Likewise.
5927 (process_reply_S_h): Likewise.
5928 (gnu-nat.o): Depend on gdb_obstack_h
5929 * gnu-nat.c: Include "gdb_obstack.h".
5930
5931 2003-06-13 Andrew Cagney <cagney@redhat.com>
5932
5933 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5934 * gdbarch.h, gdbarch.c: Re-generate.
5935
5936 2003-06-13 Andrew Cagney <cagney@redhat.com>
5937
5938 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5939 when deprecated REGISTER macros can be deleted.
5940 * gdbarch.h, gdbarch.c: Re-generate.
5941
5942 2003-06-13 Jim Blandy <jimb@redhat.com>
5943
5944 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5945 Linux entry point symbols for _dl_debug_state, too.
5946
5947 2003-06-13 Andrew Cagney <cagney@redhat.com>
5948
5949 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5950 available, do not use the FP register, and always save the TOS.
5951 * dummy-frame.c (dummy_frame_this_id): Do not assert
5952 SAVE_DUMMY_FRAME_TOS.
5953 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5954 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5955 (i386_push_dummy_call): Add 8 to the returned SP.
5956 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5957 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5958 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5959 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5960 (x86_64_push_dummy_call): Return "sp + 16".
5961 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5962 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5963 save_dummy_frame_tos.
5964
5965 2003-06-13 Jim Blandy <jimb@redhat.com>
5966
5967 * frv-tdep.c (frv_use_struct_convention): Delete static
5968 declaration for function deleted in my change of 2003-06-12.
5969
5970 2003-06-13 Theodore A. Roth <troth@openavr.org>
5971
5972 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5973 (avr_pointer_to_address): Shift code addrs left 1 bit.
5974 (avr_convert_from_func_ptr_addr): Delete function since operation is
5975 better handled by avr_address_to_pointer and avr_pointer_to_address.
5976 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5977
5978 2003-06-13 Mark Kettenis <kettenis@gnu.org>
5979
5980 From Kelley Cook <kelleycook@wideopenwest.com>:
5981 * configure.host: Accept i[34567]86 variants.
5982 * configure.tgt: Likewise.
5983 * nlm/configure.in: Likewise.
5984 * nlm/configure: Regenerated.
5985
5986 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
5987
5988 * arm-tdep.c (solib-svr4.h): Dont' include it.
5989 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5990 * arm-linux-tdep.c: ... here. Make static.
5991 (arm_linux_init_abi): Register it.
5992 (solib-svr4.h): Include it.
5993 * Makefile.in: Update dependencies.
5994 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5995 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5996
5997 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5998
5999 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6000 indicate registers used for return values.
6001 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6002 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6003 members.
6004 (h8300_init_extra_frame_info): Ditto.
6005 (h8300_frame_locals_address): Removed.
6006 (h8300_frame_args_address): Removed.
6007 (h8300_extract_return_value): Use new regcache structure. Only care
6008 for 16 bit CPUs.
6009 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6010 (h8300_store_return_value): Use new regcache structure. Only care
6011 for 16 bit CPUs.
6012 (h8300h_store_return_value): Same function for 32 bit CPUs.
6013 (h8300_store_struct_return): Removed.
6014 (h8300_extract_struct_value_address): Use new regcache structure.
6015 (h8300h_extract_struct_value_address): Removed.
6016 (h8300_push_dummy_code): New function.
6017 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6018 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6019 set_gdbarch_store_return_value architecture dependent.
6020 Call set_gdbarch_push_dummy_code and
6021 set_gdbarch_extract_struct_value_address.
6022 Remove calls to set_gdbarch_frame_args_address,
6023 set_gdbarch_frame_locals_address,
6024 set_gdbarch_deprecated_store_struct_return,
6025 set_gdbarch_deprecated_extract_return_value,
6026 set_gdbarch_deprecated_extract_struct_value_address,
6027 set_gdbarch_deprecated_call_dummy_words and
6028 set_gdbarch_deprecated_sizeof_call_dummy_words.
6029
6030 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6031
6032 * h8300-tdep.c (h8300_register_byte): Remove.
6033 (h8300h_register_byte): Remove.
6034 (h8300_register_virtual_type): Remove. Substitute by...
6035 (h8300_register_type): New function.
6036 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6037 (h8300h_extract_struct_value_address): Ditto.
6038 (h8300_gdbarch_init): Drop calls to
6039 set_gdbarch_deprecated_register_byte and
6040 set_gdbarch_deprecated_register_virtual_type.
6041 Add call to set_gdbarch_register_type.
6042
6043 2003-06-13 Andrew Cagney <cagney@redhat.com>
6044
6045 * gdbarch.sh: Update comments on registers.
6046 (deprecated_register_byte): Rename register_byte.
6047 (deprecated_register_raw_size): Rename register_raw_size.
6048 (deprecated_register_virtual_size): Rename register_virtual_size.
6049 (deprecated_register_virtual_type): Rename register_virtual_type.
6050 * gdbarch.h, gdbarch.c: Re-generate.
6051 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6052 * vax-tdep.c (vax_gdbarch_init): Update.
6053 * v850-tdep.c (v850_gdbarch_init): Update.
6054 * sparc-tdep.c (sparc_gdbarch_init): Update.
6055 * sh-tdep.c (sh_gdbarch_init): Update.
6056 * s390-tdep.c (s390_gdbarch_init): Update.
6057 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6058 * ns32k-tdep.c: Update.
6059 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6060 * mips-tdep.c (mips_gdbarch_init): Update.
6061 * mcore-tdep.c (mcore_gdbarch_init): Update.
6062 * m68k-tdep.c (m68k_gdbarch_init): Update.
6063 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6064 * ia64-tdep.c (ia64_gdbarch_init): Update.
6065 * hppa-tdep.c (hppa_gdbarch_init): Update.
6066 * h8300-tdep.c (h8300_gdbarch_init): Update.
6067 * frv-tdep.c (frv_gdbarch_init): Update.
6068 * cris-tdep.c (cris_gdbarch_init): Update.
6069 * avr-tdep.c (avr_gdbarch_init): Update.
6070 * alpha-tdep.c (alpha_gdbarch_init): Update.
6071 * arm-tdep.c (arm_gdbarch_init): Update.
6072
6073 2003-06-13 Andrew Cagney <cagney@redhat.com>
6074
6075 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6076 mips_o32_use_struct_convention with always_use_struct_convention.
6077
6078 2003-06-12 David Carlton <carlton@kealia.com>
6079
6080 * cp-namespace.c (cp_set_block_scope): Comment out
6081 processing_has_namespace_info branch.
6082
6083 2003-06-12 Jim Blandy <jimb@redhat.com>
6084
6085 Recognize and skip 64-bit PowerPC Linux linkage functions.
6086 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6087 insn_pattern, insns_match_pattern, d_field, ds_field): New
6088 functions, macros, and types for working with PPC instructions.
6089 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6090 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6091 ppc64_skip_trampoline_code): New functions, variables, and macros
6092 for recognizing and skipping linkage functions.
6093 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6094 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6095
6096 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6097 register offsets for both the 32- and 64-bit interfaces.
6098
6099 Actually finish the job started by my change of 2003-05-29.
6100 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6101 other #definition of this.
6102 (ppc_linux_skip_trampoline_code): Remove declaration.
6103 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6104 static.
6105 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6106 method for GDBARCH.
6107
6108 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6109 'long' on ppc64-*-linux*.
6110
6111 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6112 isn't #defined, assume the register doesn't exist: act as if
6113 tdep->ppc_mq_regnum were -1.
6114
6115 * configure.host, configure.tgt: Add entries for
6116 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6117 powerpc/linux.mt.
6118 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6119 New files.
6120
6121 * arch-utils.c (always_use_struct_convention): New function.
6122 * arch-utils.h (always_use_struct_convention): New prototype.
6123 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6124 (alpha_gdbarch_init): Register always_use_struct_convention,
6125 instead of alpha_use_struct_convention.
6126 * cris-tdep.c (cris_use_struct_convention): Delete.
6127 (cris_gdbarch_init): Register always_use_struct_convention,
6128 instead of cris_use_struct_convention.
6129 * frv-tdep.c (frv_use_struct_convention): Delete.
6130 (frv_gdbarch_init): Register always_use_struct_convention,
6131 instead of frv_use_struct_convention.
6132 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6133 (h8300_gdbarch_init): Register always_use_struct_convention,
6134 instead of h8300_use_struct_convention.
6135 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6136 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6137 instead of mips_o32_use_struct_convention.
6138
6139 2003-06-12 Andrew Cagney <cagney@redhat.com>
6140
6141 * wince.c: Include "mips-tdep.h".
6142 * mips-tdep.h (mips_next_pc): Declare.
6143 * mcore-tdep.c: Make more local functions static.
6144 * Makefile.in (wince.o): Update dependencies.
6145
6146 2003-06-12 David Carlton <carlton@kealia.com>
6147
6148 * symtab.c (lookup_symbol_aux_minsyms): Replace
6149 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6150 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6151 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6152 SYMBOL_NATURAL_NAME.
6153
6154 2003-06-12 Andreas Schwab <schwab@suse.de>
6155
6156 * Makefile.in (tuiDisassem.o): Update dependencies.
6157
6158 2003-06-12 David Carlton <carlton@bactrian.org>
6159
6160 * symtab.h: Delete declaration of make_symbol_overload_list.
6161 Add declaration of lookup_partial_symbol.
6162 * symtab.c (remove_params): Move to cp-support.c.
6163 (overload_list_add_symbol, make_symbol_overload_list)
6164 (sym_return_val_size, sym_return_val_index): Ditto.
6165 (lookup_partial_symbol): Make extern.
6166 * cp-support.h: Add declaration of make_symbol_overload_list.
6167 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6168 symtab.h, and block.h.
6169 (remove_params): Move here from symtab.c.
6170 (overload_list_add_symbol, make_symbol_overload_list)
6171 (sym_return_val_size, sym_return_val_index): Ditto.
6172 * valops.c: Include cp-support.h.
6173 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6174 frame_h, and block_h.
6175 (valops.o): Depend on cp_support_h.
6176
6177 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
6178
6179 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6180 substitute by NUM_REGS throughout.
6181 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6182 (h8300s_register_name): New function for H8S registers.
6183 (h8300sx_register_name): Ditto for H8SX registers.
6184 (h8300_print_register): Revise register printing, avoid depending
6185 on 32 bit long.
6186 (h8300_register_byte): Only care for H8/300 registers.
6187 (h8300h_register_byte): New function for any other architecture.
6188 (h8300_register_raw_size): Remove.
6189 (h8300_register_virtual_type): Revise to return actually useful
6190 type.
6191 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6192 (h8300h_extract_struct_value_address): New function for any other
6193 architecture.
6194 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6195 set_gdbarch_register_name, set_gdbarch_register_byte,
6196 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6197 Remove calls to set_gdbarch_deprecated_register_size,
6198 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6199 set_gdbarch_deprecated_max_register_raw_size,
6200 set_gdbarch_register_virtual_size and
6201 set_gdbarch_deprecated_max_register_virtual_size entirely.
6202 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6203 set_gdbarch_long_double_bit.
6204
6205 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6206
6207 * doublest.c (convert_doublest_to_floatformat): When dealing
6208 with the implied integer bit, only alter mant_bits if we are
6209 processing a full 32 bits of mantissa.
6210
6211 2003-06-11 David Carlton <carlton@bactrian.org>
6212
6213 * dictionary.h: New.
6214 * dictionary.c: New.
6215 * block.h: Add opaque declaration for struct dictionary.
6216 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6217 'sym' members.
6218 (BLOCK_DICT): New macro.
6219 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6220 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6221 BLOCK_SHOULD_SORT.
6222 (ALL_BLOCK_SYMBOLS): Update definition.
6223 * Makefile.in (SFILES): Add dictionary.c.
6224 (dictionary_h): New.
6225 (COMMON_OBS): Add dictionary.o.
6226 (dictionary.o): New.
6227 (ada-lang.o): Depend on dictionary_h.
6228 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6229 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6230 (mi-cmd-stack.o): Ditto.
6231 (gdbtk-cmds.o): Update dependencies.
6232 (gdbtk-stack.o): Ditto.
6233 * ada-lang.c: Include dictionary.h.
6234 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6235 (fill_in_ada_prototype, debug_print_block): Ditto.
6236 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6237 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6238 'is_sorted'.
6239 * mdebugread.c: Include dictionary.h.
6240 (struct parse_stack): Delete 'maxsyms' member.
6241 (parse_symbol): Update calls to new_block. Delete calls to
6242 shrink_block. Use dictionary methods.
6243 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6244 Update calls to new_symtab. Don't maintain maxsyms data.
6245 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6246 (add_symbol): Just call dict_add_symbol.
6247 (new_symtab): Delete 'maxsyms' argument.
6248 (new_symtab): Update calls to new_block.
6249 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6250 (shrink_block): Delete function.
6251 (fixup_sigtramp): Update call to new_block. Add symbol via
6252 dict_add_symbol.
6253 * jv-lang.c: Include dictionary.h.
6254 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6255 appropriately. Set class_symtab->free_func. Make sure the
6256 blockvector is big enough to hold two blocks.
6257 (add_class_symtab_symbol): Use dictionary methods.
6258 (free_class_block): New function.
6259 (type_from_class): Replace explicit iteration by
6260 ALL_BLOCK_SYMBOLS.
6261 * symtab.h (struct symtab): Replace 'free_ptr' method by
6262 'free_func'.
6263 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6264 sort_symtab_syms.
6265 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6266 sort_symtab_syms.
6267 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6268 Include dictionary.h.
6269 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6270 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6271 sort_symtab_syms.
6272 * objfiles.c: Include dictionary.h.
6273 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6274 * buildsym.c: Include dictionary.h.
6275 (finish_block): Use dictionary methods.
6276 (end_symtab): Set free_func to NULL, not free_ptr.
6277 * tracepoint.c: Include dictionary.h.
6278 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6279 (scope_info): Ditto.
6280 * stack.c: Include dictionary.h.
6281 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6282 (print_block_frame_labels, print_frame_arg_vars)
6283 (print_frame_args): Ditto.
6284 * symmisc.c (free_symtab_block): Use dictionary methods.
6285 (dump_symtab): Ditto.
6286 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6287 Include dictionary.h.
6288 * symfile.h: Delete declarations of sort_block_syms,
6289 sort_symtab_syms.
6290 * symfile.c (sort_block_syms): Delete.
6291 (sort_symtab_syms): Delete.
6292 * symtab.c: Include dictionary.h.
6293 (lookup_block_symbol): Use dictionary iterators.
6294 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6295 (search_symbols, make_symbol_completion_list): Ditto.
6296 (make_symbol_overload_list): Ditto.
6297 * valops.c (value_of_local): Use dict_empty.
6298 Include dictionary.h.
6299
6300 2003-06-11 J. Brobecker <brobecker@gnat.com>
6301
6302 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6303
6304 2003-06-11 David Carlton <carlton@bactrian.org>
6305
6306 * block.h (BLOCK_SHOULD_SORT): Delete.
6307 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6308 blocks.
6309 * ada-lang.c (ada_add_block_symbols): Ditto.
6310 * symfile.c (sort_block_syms): Delete.
6311 (sort_symtab_syms): Ditto.
6312 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6313 declarations.
6314 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6315 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6316 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6317 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6318 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6319 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6320 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6321
6322 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6323
6324 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6325 bits to 128.
6326
6327 2003-06-11 Andrew Cagney <cagney@redhat.com>
6328
6329 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6330 REGISTER_CONVERTIBLE.
6331 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6332 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6333 * gdbarch.h, gdbarch.c: Re-generate.
6334 * arch-utils.h (deprecated_register_convertible_not): Rename
6335 generic_register_convertible_not.
6336 * arch-utils.c (deprecated_register_convertible_not): Rename
6337 generic_register_convertible.
6338 (legacy_convert_register_p, legacy_register_to_value): Update.
6339 * sh-tdep.c (sh64_push_arguments): Update.
6340 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6341 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6342 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6343 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6344 * arch-utils.c (legacy_value_to_register): Update.
6345 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6346 (rs6000_register_convert_to_raw): Make parameter "from" const.
6347 * mips-tdep.c (mips_gdbarch_init): Update.
6348 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6349 * infcmd.c (default_print_registers_info): Update.
6350 * ia64-tdep.c (ia64_gdbarch_init): Update.
6351 (ia64_register_convert_to_raw): Make parameter "from" const.
6352 * i386-tdep.c (i386_gdbarch_init): Update.
6353 (i386_register_convert_to_raw): Update.
6354
6355 2003-06-11 Andrew Cagney <cagney@redhat.com>
6356
6357 * remote-fileio.c: Include "remote-fileio.h".
6358 * Makefile.in (remote-fileio.o): Update dependencies.
6359 (remote_fileio_h): Fix typo.
6360
6361 2003-06-11 Andrew Cagney <cagney@redhat.com>
6362
6363 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6364 (xstormy16_save_dummy_frame_tos): Make static.
6365 (_initialize_xstormy16_tdep): Add declaration.
6366 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6367 * v850-tdep.c: Make local functions static.
6368 (_initialize_v850_tdep): Add declaration.
6369 * sparc-tdep.c: Make local functions static.
6370 (_initialize_sparc_tdep): Add declaration.
6371 * sh-tdep.c: Make local functions static.
6372 (_initialize_sh_tdep): Add declaration.
6373 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6374 * s390-tdep.c: Make local functions static.
6375 (_initialize_s390_tdep): Add declaration.
6376 * dbxread.c (find_stab_function_addr): Make static.
6377 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6378 * ocd.c (_initialize_remote_ocd): Add declaration.
6379 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6380 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6381 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6382 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6383 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6384 * remote-array.c (_initialize_array): Add declaration.
6385 (_initialize_remote_monitors): Add declaration.
6386 * remote-mips.c: Make local functions static.
6387 (_initialize_remote_mips): Add declaration.
6388 * mcore-tdep.c: Make all local functions static.
6389 (_initialize_mcore_tdep): Add declaration.
6390 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6391 * abug-rom.c (_initialize_abug_rom): Add declaration.
6392 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6393 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6394 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6395 * remote-est.c (_initialize_est): Add declaration.
6396 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6397 (m68hc11_call_dummy_address): Make static.
6398 * ia64-tdep.c: Make local functions static.
6399 (_initialize_ia64_tdep): Add declaration.
6400 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6401 * monitor.c (monitor_wait_filter): Make static.
6402 (_initialize_remote_monitors): Add declaration.
6403 * remote-hms.c (_initialize_remote_hms): Add declaration.
6404 * remote-e7000.c (fetch_regs_from_dump): Make static.
6405 (expect_n): Make static.
6406 (_initialize_remote_e7000): Add declaration.
6407 * ser-e7kpc.c: Always include "defs.h".
6408 (_initialize_ser_e7000pc): Add declaration.
6409 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6410 * cris-tdep.c: Make all but one function static.
6411 (_initialize_cris_tdep): Add declaration.
6412 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6413 * solib.c (update_solib_list): Make static.
6414 (_initialize_solib): Add declaration.
6415 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6416 (_initialize_avr_tdep): Add declaration.
6417 * remote-rdi.c (voiddummy): Make static.
6418 (_initialize_remote_rdi): Add declaration.
6419 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6420 * remote-rdp.c (send_rdp): Make static.
6421 (_initialize_remote_rdp): Add declaration.
6422 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6423
6424 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
6425
6426 * remote-fileio.c: Make ari happy.
6427
6428 2003-06-10 J. Brobecker <brobecker@gnat.com>
6429
6430 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6431 fetching the trailing bytes of the buffer we are about to write.
6432
6433 2003-06-10 Andrew Cagney <cagney@redhat.com>
6434
6435 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6436 * Makefile.in (remote-fileio.o): Update dependencies.
6437 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6438 include <setjmp.h>, or <sys/types.h> conditional on USG.
6439 (remote_fio_jmp_buf): Delete global variable.
6440
6441 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
6442 Martin M. Hunt <hunt@redhat.com>
6443
6444 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6445 (SFILES): Add remote-fileio.c.
6446 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6447 dependencies for building remote.o.
6448 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6449 * remote-fileio.h: New header file defining remote File-I/O interface.
6450 * remote.c (remote_write_bytes, remote_read_bytes): Remove
6451 static storage class.
6452 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6453 'F' packet.
6454 (_initialize_remote): Call initialize_remote_fileio().
6455 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
6456 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6457 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6458 (captured_main): Initialize new ui_files.
6459 * ui-file.c: Add read and fgets input functions.
6460 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6461 (null_file_read): New function.
6462 (ui_file_read): New function.
6463 (set_ui_file_read): New function.
6464 (stdio_file_read): New function.
6465 * ui-file.h: New type ui_file_read_ftype.
6466 (set_ui_file_read): Declare.
6467 (ui_file_read): Declare.
6468
6469 2003-06-09 Andrew Cagney <cagney@redhat.com>
6470
6471 * frame.h (deprecated_unwind_get_saved_register): Rename
6472 generic_unwind_get_saved_register, update comments.
6473 * mips-tdep.c (mips_get_saved_register): Update.
6474 * frame.c (deprecated_unwind_get_saved_register): Update.
6475
6476 2003-06-09 Andrew Cagney <cagney@redhat.com>
6477
6478 * vax-tdep.c (vax_frame_locals_address): Delete function.
6479 (vax_gdbarch_init): Do not set frame_locals_address.
6480 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6481 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6482 * s390-tdep.c (s390_frame_args_address): Delete function.
6483 (s390_gdbarch_init): Do not set frame_args_address or
6484 frame_locals_address.
6485 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6486 (ns32k_gdbarch_init): Do not set frame_locals_address.
6487 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6488 (hppa_frame_locals_address): Delete function.
6489 (hppa_gdbarch_init): Do not set frame_args_address, or
6490 frame_locals_address.
6491 * arm-tdep.c (arm_frame_args_address): Delete.
6492 (arm_frame_locals_address): Delete.
6493 (arm_gdbarch_init): Do not set frame_args_address, or
6494 frame_locals_address.
6495
6496 2003-06-09 Andrew Cagney <cagney@redhat.com>
6497
6498 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6499 * gdbarch.h, gdbarch.c: Re-generate.
6500 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6501 * arch-utils.c (frame_num_args_unknown): Delete function.
6502 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6503 (frame_info): Use FRAME_NUM_ARGS_P.
6504 * arm-tdep.c (arm_frame_num_args): Delete function.
6505 (arm_gdbarch_init): Do not set frame_num_args.
6506 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6507 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6508 (hppa_gdbarch_init): Do not set frame_num_args.
6509 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6510 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6511 frame_num_args to default frame_num_args_unknown.
6512 * v850-tdep.c (v850_gdbarch_init): Ditto.
6513 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6514 * sh-tdep.c (sh_gdbarch_init): Ditto.
6515 * s390-tdep.c (s390_gdbarch_init): Ditto.
6516 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6517 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6518 * mips-tdep.c (mips_gdbarch_init): Ditto.
6519 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6520 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6521 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6522 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6523 * i386-tdep.c (i386_gdbarch_init): Ditto.
6524 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6525 * frv-tdep.c (frv_gdbarch_init): Ditto.
6526 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6527 * cris-tdep.c (cris_gdbarch_init): Ditto.
6528 * avr-tdep.c (avr_gdbarch_init): Ditto.
6529 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6530
6531 2003-06-09 Andrew Cagney <cagney@redhat.com>
6532
6533 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6534 (print_frame_args): Moved to "stack.c".
6535 * stack.c: Include "gdb_assert.h".
6536 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6537 (print_frame_args): Moved from "printcmd.c".
6538 * frame.h (print_frame_args): Delete declaration.
6539 * Makefile.in (stack.o): Update dependencies.
6540
6541 2003-06-08 Andrew Cagney <cagney@redhat.com>
6542
6543 * frame.c (get_prev_frame): Remove reference to
6544 frame_args_address_correct in comments.
6545 * frame-base.c (default_frame_args_address): Delete code
6546 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6547 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6548 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6549 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6550 (vax_frame_args_address_correct): Delete declaration.
6551
6552 2003-06-08 Andrew Cagney <cagney@redhat.com>
6553
6554 * gdbarch.sh (UNWIND_SP): Add.
6555 * gdbarch.h, gdbarch.c: Re-generate.
6556 * frame.c (frame_sp_unwind): New function.
6557 (get_frame_sp): New function.
6558 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6559 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6560 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6561 value.
6562 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6563 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6564
6565 2003-06-08 Andrew Cagney <cagney@redhat.com>
6566
6567 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6568 REMOTE_BREAKPOINT.
6569 * remote.c: Update.
6570 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6571 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6572 * config/m68k/tm-sun3.h: Update.
6573 * config/m68k/tm-m68klynx.h: Update.
6574 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6575
6576 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6577 trad_frame". Update comments.
6578 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6579 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6580 (trad_frame_register_value, trad_frame_prev_register): Update.
6581
6582 2003-06-08 Andrew Cagney <cagney@redhat.com>
6583
6584 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6585 from GCC's acinclude.m4.
6586 * configure.in: Check for getopt's delcaration.
6587 * aclocal.m4, config.in, configure: Re-generate.
6588 * main.c (error_init): Delete declaration.
6589 * defs.h (error_init): Declare.
6590 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6591 (rs6000_convert_from_func_ptr_addr): Make static.
6592 (_initialize_rs6000_tdep): Add declaration.
6593 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6594 (show_commands, set_verbose, show_history): Delete declaration.
6595 * top.h (set_verbose): Add declaration.
6596 (show_history, set_history, show_commands): Add declaration.
6597 (do_restore_instream_cleanup): Add declaration.
6598 * objc-lang.c (specialcmp): Make static.
6599 (print_object_command): Make static.
6600 (find_objc_msgsend): Make static.
6601 (find_objc_msgcall_submethod_helper): Make static.
6602 (find_objc_msgcall_submethod): Make static.
6603 (_initialize_objc_language): Add declaration.
6604 (find_implementation_from_class): Make static.
6605 (find_implementation): Make static.
6606 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6607 * objc-lang.h (lookup_struct_typedef): Add declaration.
6608 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6609 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6610 (do_restore_user_call_depth): Make static.
6611 (do_restore_instream_cleanup): Delete declaration.
6612 (dont_repeat): Delete declaration.
6613 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6614 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6615 * reggroups.c (_initialize_reggroup): Add declaration.
6616 * cp-support.c (_initialize_cp_support): Add declaration.
6617 * cp-abi.c (_initialize_cp_abi): Add declaration.
6618 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6619 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6620 (_initialize_gnu_v3_abi): Add declaration.
6621 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6622 (_initialize_gnu_v2_abi): Add declaration.
6623 * frame-base.c (_initialize_frame_base): Add declaration.
6624 * doublest.c (floatformat_from_length): Make static.
6625 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6626 * frame.c (create_sentinel_frame): Make static.
6627 (_initialize_frame): Add declaration.
6628 * top.c (do_catch_errors): Make static.
6629 (gdb_rl_operate_and_get_next_completion): Make static.
6630 * typeprint.c: Include "typeprint.h".
6631 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6632 (sentinel_frame_this_id): Make static.
6633 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6634 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6635 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6636 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6637 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6638 * maint.c (maintenance_print_architecture): Make static.
6639 * signals/signals.c (_initialize_signals): Add declaration.
6640 * std-regs.c (_initialize_frame_reg): Add declaration.
6641 * jv-exp.y (push_variable): ISO C definition.
6642 (push_qualified_expression_name): Ditto.
6643 * memattr.c (_initialize_mem): Add declaration.
6644 * remote.c (remote_check_watch_resources): Make static.
6645 (remote_stopped_by_watchpoint): Make static.
6646 (remote_stopped_data_address): Make static.
6647 * d10v-tdep.c (nr_dmap_regs): Make static.
6648 (a0_regnum): Make static.
6649 (d10v_frame_unwind_cache): Make static.
6650 (d10v_frame_p): Make static.
6651 * osabi.c (show_osabi): Make static.
6652 (_initialize_gdb_osabi): Add extern declaration.
6653 * gdbtypes.c (make_qualified_type): Make static.
6654 (safe_parse_type): Make static.
6655 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6656 * macrotab.c (macro_bcache_free): Make static.
6657 * interps.c (interp_set_quiet): Make static.
6658 (interpreter_exec_cmd): Make static.
6659 * stack.h (select_frame_command): New file.
6660 * stack.c: Include "stack.h".
6661 (select_frame_command_wrapper): Delete function.
6662 (select_frame_command): Make global.
6663 * infcall.c: Include "infcall.h".
6664 * linespec.c: Include "linespec.h".
6665 * symfile.c (sections_overlap): Make static.
6666 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6667 * charset.c (_initialize_charset): Add missing prototype.
6668 * regcache.c (init_legacy_regcache_descr): Make static.
6669 (do_regcache_xfree): Make static.
6670 (regcache_xfer_part): Make static.
6671 (_initialize_regcache): Add missing prototype.
6672 * breakpoint.c (parse_breakpoint_sals): Make static.
6673 (breakpoint_sals_to_pc): Make static.
6674 * interps.h (clear_interpreter_hooks): ISO C declaration.
6675 * Makefile.in (stack_h): Define.
6676 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6677 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6678
6679 2003-06-08 Andrew Cagney <cagney@redhat.com>
6680
6681 * Makefile.in (d10v-tdep.o): Update dependencies.
6682 (SFILES): Add trad-frame.c.
6683 (trad_frame_h): Define.
6684 (COMMON_OBS): Add trad-frame.o.
6685 (trad-frame.o): Specify dependencies.
6686 * d10v-tdep.c: Include "trad-frame.h".
6687 (saved_regs_unwinder): Delete function.
6688 (d10v_frame_prev_register): Use trad_frame_prev_register.
6689 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6690 trad_frame", delete "regs" and "prev_sp".
6691 (prologue_find_regs): Use trad-frame.
6692 * trad-frame.h, trad-frame.c: New files.
6693
6694 2003-06-08 Mark Kettenis <kettenis@gnu.org>
6695
6696 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6697
6698 2003-06-07 Adam Fedor <fedor@gnu.org>
6699
6700 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6701 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6702 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6703 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
6704 resolve_msgsend_super, resolve_msgsend_super_stret):
6705 Use it.
6706
6707 2003-06-07 Andrew Cagney <cagney@redhat.com>
6708
6709 * symfile.h: Re-indent, clean up comments.
6710
6711 2003-06-07 Andrew Cagney <cagney@redhat.com>
6712
6713 * inferior.h (deprecated_write_sp): Replace
6714 generic_target_write_sp.
6715 * regcache.c (deprecated_write_sp): Replace
6716 generic_target_write_sp.
6717 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6718 * vax-tdep.c (vax_gdbarch_init): Update.
6719 * v850-tdep.c (v850_gdbarch_init): Update.
6720 * sparc-tdep.c (sparc_gdbarch_init): Update.
6721 * sh-tdep.c (sh_gdbarch_init): Update.
6722 * s390-tdep.c (s390_gdbarch_init): Update.
6723 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6724 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6725 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6726 * mcore-tdep.c (mcore_gdbarch_init): Update.
6727 * m68k-tdep.c (m68k_gdbarch_init): Update.
6728 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6729 * ia64-tdep.c (ia64_gdbarch_init): Update.
6730 * h8300-tdep.c (h8300_gdbarch_init): Update.
6731 * frv-tdep.c (frv_gdbarch_init): Update.
6732 * cris-tdep.c (cris_gdbarch_init): Update.
6733 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6734
6735 2003-06-07 Andrew Cagney <cagney@redhat.com>
6736
6737 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6738 Assert that PC_REGNUM is valid.
6739 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6740
6741 2003-06-07 Andrew Cagney <cagney@redhat.com>
6742
6743 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6744 * gdbarch.h, gdbarch.c: Regenerate.
6745 * mn10300-tdep.c: Include "gdb_assert.h".
6746 (mn10300_read_fp): New function.
6747 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6748 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6749 * ia64-tdep.c: Include "gdb_assert.h".
6750 (ia64_read_fp): New function.
6751 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6752 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6753 * regcache.c (generic_target_read_sp): Delete function.
6754 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6755 * inferior.h (generic_target_read_sp): Delete declaration.
6756 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6757 generic_target_read_sp.
6758 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6759 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6760 * sh-tdep.c (sh_gdbarch_init): Ditto.
6761 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6762 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6763
6764 2003-06-07 Andrew Cagney <cagney@redhat.com>
6765
6766 * gdbarch.sh: Comment each field of startup_gdbarch.
6767 * gdbarch.h, gdbarch.c: Re-generate.
6768
6769 2003-06-07 Andrew Cagney <cagney@redhat.com>
6770
6771 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6772 * gdbarch.h, gdbarch.c: Re-generate.
6773 * regcache.c: Update comments on read_pc et.al.
6774 (generic_target_read_pc): Delete function.
6775 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6776 * inferior.h (generic_target_read_pc): Delete declaration.
6777 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6778 generic_target_read_pc.
6779 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6780 * sh-tdep.c (sh_gdbarch_init): Ditto.
6781 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6782 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6783
6784 2003-06-07 Andrew Cagney <cagney@redhat.com>
6785
6786 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6787 "index" with "special_local_sect". Use strcmp instead of STREQ.
6788 Append period to coments.
6789
6790 2003-06-06 Mark Mitchell <mark@codesourcery.com>
6791
6792 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6793 (elfstab_offset_sections): Likewise.
6794 * gdb-stabs.h (stab_section_info): Likewise.
6795 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6796 * objfiles.c (objfile_relocate): Likewise.
6797 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6798 * remote.c (get_offsets): Likewise.
6799 (remote_cisco_objfile_relocate): Likewise.
6800 * somread.c (som_symfile_offsets): Likewise.
6801 * symfile.c (alloc_section_addr_info): New function.
6802 (build_section_addr_info_from_section_tab): Use it.
6803 (free_section_addr_info): Adjust.
6804 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6805 (syms_from_objfile): Allocate local_addr dynamically.
6806 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6807 dynamically.
6808 (add_symbol_file_command): Allocate sect_opts dynamically.
6809 (reread_symbols): Avoid use of SECT_OFF_MAX.
6810 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6811 (alloc_section_addr_info): Declare it.
6812 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6813 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6814 dynamically.
6815 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
6816
6817 2003-06-06 Andrew Cagney <cagney@redhat.com>
6818
6819 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6820 (d10v_frame_unwind_cache): Do not set "return_pc".
6821
6822 2003-06-06 Michael Snyder <msnyder@redhat.com>
6823
6824 * h8300-tdep.c: Make tidy (long lines).
6825
6826 2003-06-06 Michal Ludvig <mludvig@suse.cz>
6827
6828 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
6829 to regcache_collect().
6830
6831 2003-06-05 J. Brobecker <brobecker@gnat.com>
6832
6833 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6834 pc_in_sigtramp multiarch method.
6835 (hppa_hpux_som_init_abi): Use it.
6836 (hppa_hpux_elf_init_abi): Likewise.
6837 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6838 macro has been multiarched.
6839 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6840 macro here, as hppa64 isn't multiarched yet.
6841
6842 2003-06-05 Andrew Cagney <cagney@redhat.com>
6843
6844 * Makefile.in (value_h): Add $(frame_h).
6845 * value.h: Include "frame.h".
6846 (struct value): Replace "frame_addr" with "frame_id".
6847 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6848 * values.c (allocate_value): Use VALUE_FRAME_ID.
6849 (value_copy): Use VALUE_FRAME_ID.
6850 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6851 * valops.c (value_assign): Update. Use frame_find_by_id.
6852
6853 2003-06-05 Michal Ludvig <mludvig@suse.cz>
6854
6855 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6856 in each pass.
6857
6858 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6859
6860 * thread-db.c (check_event): For create/death event breakpoints,
6861 loop through all messages to ensure that we read the message
6862 corresponding to the breakpoint we are at.
6863
6864 2003-06-04 Michael Snyder <msnyder@redhat.com>
6865
6866 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6867
6868 2003-06-04 Mark Kettenis <kettenis@gnu.org>
6869
6870 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6871 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6872 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6873 when handling .eh_frame sections.
6874
6875 2003-06-04 J. Brobecker <brobecker@gnat.com>
6876
6877 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6878 prepare_to_proceed procedure instead of the hppa-specific one.
6879 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6880
6881 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
6882
6883 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6884 * config.in: Regenerated.
6885 * configure.in: Add test for syscall function and check for
6886 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6887 * configure: Regenerated.
6888 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6889 <sys/syscall.h>.
6890 (kill_lwp): New function that uses tkill syscall or
6891 uses kill, depending on whether threading model is nptl or not.
6892 All callers of kill() changed to use kill_lwp().
6893 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6894 see if all threads have already exited in the nptl model.
6895 (stop_and_resume_callback): New callback function used by the
6896 lin_lwp_wait thread exit handling code.
6897 (stop_wait_callback): Check for threads already having exited and
6898 delete such threads fromt the lwp list when discovered.
6899 (stop_callback): Don't assert retcode of kill call.
6900
6901 Roland McGrath <roland@redhat.com>
6902 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6903 nptl libthread_db.
6904
6905 2003-06-03 Richard Henderson <rth@redhat.com>
6906
6907 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6908 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6909 (alpha_sigtramp_frame_prev_register): Likewise.
6910 (alpha_heuristic_frame_prev_register): Likewise.
6911 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6912
6913 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
6914 alpha-specific register id names.
6915 (alpha_mdebug_frame_unwind_cache): Likewise.
6916 (alpha_mdebug_frame_prev_register): Likewise.
6917
6918 2003-06-03 Richard Henderson <rth@redhat.com>
6919
6920 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6921 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6922 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6923 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6924 unwind routines.
6925 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6926 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6927 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6928
6929 * alpha-linux-tdep.c: Remove unnecessary includes.
6930 * Makefile.in (alpha-linux-tdep.o): Update.
6931
6932 2003-06-03 Richard Henderson <rth@redhat.com>
6933
6934 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6935 (alphabsd_fill_fpreg): Likewise.
6936
6937 2003-06-03 J. Brobecker <brobecker@gnat.com>
6938
6939 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6940 references to struct frame_info fields by calls to the equivalent
6941 accessors. Necessary now that frame_info is opaque.
6942
6943 2003-06-03 J. Brobecker <brobecker@gnat.com>
6944
6945 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6946 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6947 structure, field no longer exists.
6948
6949 2003-06-03 J. Brobecker <brobecker@gnat.com>
6950
6951 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6952 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6953
6954 2003-06-03 J. Brobecker <brobecker@gnat.com>
6955
6956 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6957 references to struct frame_info fields by calls to the equivalent
6958 accessors. Necessary now that frame_info is opaque.
6959
6960 2003-06-03 J. Brobecker <brobecker@gnat.com>
6961
6962 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6963 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6964 structure, field no longer exists.
6965
6966 2003-06-03 Theodore A. Roth <troth@openavr.org>
6967
6968 * remote.c (init_remote_state): Compute sizeof_g_packet by
6969 accumulation of the size of all registers instead of blindly using
6970 DEPRECATED_REGISTER_BYTES.
6971
6972 2003-06-03 Michael Snyder <msnyder@redhat.com>
6973
6974 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6975 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6976 for h8300sx.
6977
6978 2003-06-03 J. Brobecker <brobecker@gnat.com>
6979
6980 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6981 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6982
6983 2003-06-03 Andrew Cagney <cagney@redhat.com>
6984
6985 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6986 (sparc_convert_to_raw): Delete function.
6987 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6988 register_convert_to_virtual.
6989
6990 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6991
6992 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6993 layer if not dealing with a statically-linked threaded program.
6994
6995 2003-06-03 Kris Warkentin <kewarken@qnx.com>
6996
6997 * solib.c (solib_open): Update comment to reflect actual search order.
6998
6999 2003-06-03 Andrew Cagney <cagney@redhat.com>
7000
7001 * frame.c (get_frame_memory_signed): New function.
7002 (get_frame_memory, get_frame_memory_unsigned): New function.
7003 (get_frame_arch): New function.
7004 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7005 (get_frame_memory, get_frame_unsigned_memory): Declare.
7006 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7007 get_frame_memory_unsigned and get_frame_arch.
7008 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7009
7010 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7011
7012 * MAINTAINERS (write after approval): Add myself.
7013
7014 2003-06-03 Jim Blandy <jimb@redhat.com>
7015
7016 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7017 elements of gregset_t are 64 bits each, but access registers
7018 are still 32 bits, so they're packed two per gregset_t
7019 element. Unpack/pack them properly.
7020
7021 2003-06-02 David Carlton <carlton@bactrian.org>
7022
7023 * linespec.c (find_methods): Break out code into
7024 add_matching_methods and add_constructors.
7025 (add_matching_methods): New.
7026 (add_constructors): Ditto.
7027
7028 2003-06-02 Andrew Cagney <cagney@redhat.com>
7029
7030 * sparc-tdep.c (sparc_print_registers): Delete call to
7031 REGISTER_CONVERTIBLE.
7032 (sparc_gdbarch_init): Do not set register_convertible.
7033 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7034 * frv-tdep.c (frv_gdbarch_init): Ditto.
7035 * cris-tdep.c (cris_gdbarch_init): Ditto.
7036
7037 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
7038
7039 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7040 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7041 (syms_from_objfile): Ditto.
7042
7043 2003-06-03 Andreas Schwab <schwab@suse.de>
7044
7045 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7046 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7047
7048 2003-06-02 Richard Henderson <rth@redhat.com>
7049
7050 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7051 a member of all_reggroup.
7052
7053 2003-06-02 Richard Henderson <rth@redhat.com>
7054
7055 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7056 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7057 (alpha_lds, alpha_sts): New.
7058 (alpha_convert_register_p): Change from _register_convertible.
7059 (alpha_register_to_value): Change from _convert_to_virtual;
7060 restructure and fail for type sizes other than 4 or 8.
7061 (alpha_value_to_register): Similarly.
7062 (alpha_extract_return_value): Use alpha_sts.
7063 (alpha_store_return_value): Use alpha_lds.
7064 (alpha_gdbarch_init): Update hooks.
7065
7066 2003-06-02 Richard Henderson <rth@redhat.com>
7067
7068 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7069 regnum identifiers.
7070 (alpha_sigtramp_register_address): Likewise.
7071
7072 2003-06-02 Richard Henderson <rth@redhat.com>
7073
7074 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7075 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7076 * alpha-tdep.h: Declare them.
7077
7078 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7079 Remove zerobuf. Don't error on UNIQUE.
7080 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7081 (ALPHA_REGSET_UNIQUE): Provide default.
7082 (supply_gregset): Use alpha_supply_int_regs.
7083 (fill_gregset): Use alpha_fill_int_regs.
7084 (supply_fpregset): Use alpha_supply_fp_regs.
7085 (fill_fpregset): Use alpha_fill_fp_regs.
7086 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7087 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7088 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7089 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7090 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7091 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7092
7093 2003-06-02 Richard Henderson <rth@redhat.com>
7094
7095 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7096
7097 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7098 (alpha_store_return_value): Likewise.
7099
7100 2003-06-02 David Carlton <carlton@math.stanford.edu>
7101
7102 * block.c (contained_in): Add 'const' to arguments.
7103 (block_function): Ditto.
7104 * block.h: Update declarations for block_function and
7105 contained_in.
7106
7107 2003-06-02 David Carlton <carlton@math.stanford.edu>
7108
7109 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7110 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7111 * p-valprint.c (pascal_val_print): Ditto.
7112 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7113
7114 2003-06-02 Richard Henderson <rth@redhat.com>
7115
7116 * alpha-tdep.c (alpha_push_dummy_call): Use
7117 builtin_type_ieee_double_little instead of builtin_type_double.
7118
7119 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7120 sign-extension of 32-bit values.
7121 (alpha_store_return_value): Similarly.
7122
7123 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7124 (alpha_extract_return_value): Likewise.
7125 (alpha_store_return_value): Likewise.
7126
7127 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7128 (alpha_store_return_value): Error on IEEE Quad floats.
7129
7130 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7131 (alpha_extract_struct_value_address): Likewise.
7132 (alpha_store_return_value): Likewise.
7133 (alpha_store_struct_return): Remove.
7134 (alpha_gdbarch_init): Update hook registration to match.
7135
7136 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7137 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7138 macros where appropriate.
7139 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7140 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7141
7142 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7143 for SP, GP; void_func_ptr for PC; non-language-specific types
7144 for all others.
7145 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7146
7147 2003-06-02 Richard Henderson <rth@redhat.com>
7148
7149 * top.h (lim_at_start): Declare.
7150 * main.c (captured_main): Set it.
7151 * top.c (lim_at_start): Define.
7152 (command_loop): Use it instead of &environ.
7153 * event-top.c (command_handler): Likewise.
7154
7155 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7156
7157 * mipsnbsd-tdep.c: Update copyright years.
7158 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7159
7160 2003-06-01 Richard Henderson <rth@redhat.com>
7161
7162 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7163 (alpha-linux-tdep.o): Update dependencies.
7164 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7165 * alpha-mdebug-tdep.c: Remove unneeded includes.
7166
7167 2003-06-01 Richard Henderson <rth@redhat.com>
7168
7169 * alpha-tdep.c (alpha_register_reggroup_p): New.
7170 (alpha_gdbarch_init): Register it.
7171
7172 2003-06-02 Andrew Cagney <cagney@redhat.com>
7173
7174 * dwarfread.c: Eliminate "register"
7175 (decode_die_type): Eliminate assignment within "if".
7176 (struct_type, decode_array_element_type): Ditto.
7177 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7178 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7179 (decode_modified_type, completedieinfo): Ditto.
7180 * block.c: Eliminate "register".
7181 (blockvector_for_pc_sect): Eliminate assignment within "if".
7182 * cp-support.h (struct symbol): Opaque declaration.
7183 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7184
7185 2003-06-01 Richard Henderson <rth@redhat.com>
7186
7187 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7188 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7189
7190 2003-06-01 Adam Fedor <fedor@gnu.org>
7191
7192 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7193 * gdbarch.[ch]: Regenerate.
7194 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7195 (hppa_gdbarch_init): Set it in the gdbarch vector.
7196 * i386-tdep.c (i386_fetch_pointer_argument): New
7197 (i386_gdbarch_init): Set it into gdbarch.
7198 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7199 (rs6000_gdbarch_init): Set it in gdbarch.
7200 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7201 (sparc_gdbarch_init): Set it in gdbarch.
7202
7203 2003-06-01 Andrew Cagney <cagney@redhat.com>
7204
7205 * defs.h (extract_address): Delete declaration.
7206 * findvar.c (extract_address): Delete function.
7207 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7208 extract_address with the inline equivalent,
7209 extract_unsigned_integer.
7210 (xstormy16_extract_struct_value_address): Ditto.
7211 (xstormy16_pointer_to_address): Ditto.
7212 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7213 * v850-tdep.c (v850_push_arguments): Ditto.
7214 (v850_extract_return_value): Ditto.
7215 (v850_extract_struct_value_address): Ditto.
7216 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7217 (sparcnbsd_get_longjmp_target_64): Ditto.
7218 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7219 (get_longjmp_target): Ditto.
7220 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7221 (sh64_extract_struct_value_address): Ditto.
7222 (sh_push_arguments): Ditto.
7223 (sh64_push_arguments): Ditto.
7224 * remote-vxsparc.c (vx_read_register): Ditto.
7225 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7226 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7227 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7228 * mipsv4-nat.c (get_longjmp_target): Ditto.
7229 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7230 * mips-nat.c (get_longjmp_target): Ditto.
7231 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7232 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7233 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7234 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7235 * irix5-nat.c (get_longjmp_target): Ditto.
7236 * irix4-nat.c (get_longjmp_target): Ditto.
7237 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7238 (ia64_push_arguments): Ditto.
7239 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7240 * h8300-tdep.c (h8300_push_arguments): Ditto.
7241 (h8300_store_return_value): Ditto.
7242 (h8300_extract_struct_value_address): Ditto.
7243 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7244 (frv_push_arguments): Ditto.
7245 * avr-tdep.c (avr_pointer_to_address): Ditto.
7246 (avr_push_arguments): Ditto.
7247 * arm-tdep.c (arm_push_dummy_call): Ditto.
7248 (arm_get_longjmp_target): Ditto.
7249 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7250 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7251 (alpha_get_longjmp_target): Ditto.
7252
7253 * solib-irix.c (extract_mips_address): Inline extract_address,
7254 replacing it with extract_signed_integer.
7255 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7256 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7257 (first_link_map_member, open_symbol_file_object): Ditto.
7258 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7259 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7260 (LM_NEXT, LM_NAME): Ditto.
7261
7262 2003-06-01 Richard Henderson <rth@redhat.com>
7263
7264 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7265 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7266 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7267 (alpha_cannot_store_register): Likewise.
7268 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7269 * alpha-nat.c (supply_gregset): Likewise.
7270 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7271
7272 2003-06-01 Andrew Cagney <cagney@redhat.com>
7273
7274 * infcall.c (call_function_by_hand): Update comment on
7275 DEPRECATED_DUMMY_WRITE_SP.
7276
7277 * mips-tdep.c (mips_gdbarch_init): Do not set
7278 deprecated_dummy_write_sp.
7279 (mips_eabi_push_dummy_call): Set the SP register.
7280 (mips_o64_push_dummy_call): Set the SP register.
7281 (mips_o32_push_dummy_call): Set the SP register.
7282 (mips_n32n64_push_dummy_call): Set the SP register.
7283
7284 2003-06-01 Richard Henderson <rth@redhat.com>
7285
7286 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7287 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7288 (supply_gregset): Likewise.
7289 * alpha-tdep.c (alpha_store_return_value): Likewise.
7290 (alpha_get_longjmp_target): Likewise.
7291 (alpha_register_name): Constify array.
7292 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7293 deprecated_register_size, deprecated_register_bytes,
7294 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7295 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7296 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7297
7298 2003-06-01 Richard Henderson <rth@redhat.com>
7299
7300 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7301 from arg_reg_buffer to regcache to avoid double conversion.
7302
7303 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7304
7305 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7306 SP_REGNUM.
7307 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7308 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7309
7310 2003-06-01 Richard Henderson <rth@redhat.com>
7311
7312 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7313 (decode_frame_entry): Set it. Skip FDE augmentation.
7314
7315 2003-06-01 Richard Henderson <rth@redhat.com>
7316
7317 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7318 not overlapping PC_REGNUM.
7319
7320 2003-06-01 Richard Henderson <rth@redhat.com>
7321
7322 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7323 alpha_push_arguments. Don't dump argument register data to
7324 the target stack. Fix float and 128-bit long double semantics.
7325 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7326 (alpha_fix_call_dummy): Remove.
7327 (alpha_call_dummy_words): Remove.
7328 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7329
7330 2003-06-01 Richard Henderson <rth@redhat.com>
7331
7332 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7333
7334 2003-06-01 Andrew Cagney <cagney@redhat.com>
7335
7336 * mips-tdep.c (is_mips16_addr): New function.
7337 (make_mips16_addr, unmake_mips16_addr): New functions.
7338 (pc_is_mips16, mips_fetch_instruction): Use.
7339 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7340 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7341 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7342 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7343 TARGET_MIPS.
7344 * config/mips/tm-mips.h: Update copyright.
7345 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7346 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7347 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7348 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7349 (TM_PRINT_INSN_MACH): Delete.
7350 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7351
7352 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7353 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7354 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7355 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7356 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7357 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7358 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7359 mips*-*-riscos* and mips*-*-sysv* onto mips.
7360 * config/mips/mips64.mt: New file.
7361 * config/mips/mips.mt: New file.
7362 * config/mips/littlemips.mt: Delete file.
7363 * config/mips/decstation.mt: Delete file.
7364 * config/mips/vr4300el.mt: Delete file.
7365 * config/mips/vr5000el.mt: Delete file.
7366 * config/mips/vr5000.mt: Delete file.
7367 * config/mips/vr4100.mt: Delete file.
7368 * config/mips/vr4xxxel.mt: Delete file.
7369 * config/mips/vr4300.mt: Delete file.
7370 * config/mips/vr4xxx.mt: Delete file.
7371 * config/mips/bigmips.mt: Delete file.
7372 * config/mips/bigmips64.mt: Delete file.
7373 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7374 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7375 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7376 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7377 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7378 "tm-bigmips.h".
7379 * config/mips/tm-irix3.h: Ditto.
7380 * config/mips/tm-mipsv4.h: Ditto.
7381 * config/mips/tm-embed.h: Ditto.
7382 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7383 "tm-bigmips64.h".
7384 * config/mips/tm-vr5000el.h: Delete file.
7385 * config/mips/tm-tx39l.h: Delete file.
7386 * config/mips/tm-vr4300el.h: Delete file.
7387 * config/mips/tm-vr4xxxel.h: Delete file.
7388 * config/mips/tm-vr4300.h: Delete file.
7389 * config/mips/tm-vr4100.h: Delete file.
7390 * config/mips/tm-vr4xxx.h: Delete file.
7391 * config/mips/tm-vr5000.h: Delete file.
7392 * config/mips/tm-embedl64.h: Delete file.
7393 * config/mips/tm-embedl.h: Delete file.
7394 * config/mips/tm-embed64.h: Delete file.
7395 * config/mips/tm-bigmips64.h: Delete file.
7396 * config/mips/tm-bigmips.h: Delete file.
7397
7398 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7399
7400 Fix gdb/1216.
7401 * shnbsd-nat.c: Include "sh-tdep.h".
7402
7403 From Richard Henderson <rth@redhat.com>:
7404 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7405
7406 2003-05-31 Andrew Cagney <cagney@redhat.com>
7407
7408 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7409 forward declaration.
7410 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7411 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7412 (mips_find_saved_regs): Use set_reg_offset.
7413 (mips_frame_init_saved_regs): Delete function.
7414 (mips_pop_frame): Call mips_find_saved_regs instead of
7415 DEPRECATED_FRAME_INIT_SAVED_REGS.
7416
7417 2003-05-31 Andrew Cagney <cagney@redhat.com>
7418
7419 * mips-tdep.c (mips_gdbarch_init): Do not set
7420 deprecated_max_register_raw_size, register_virtual_size, and
7421 deprecated_max_register_virtual_size.
7422
7423 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7424
7425 * i386-tdep.c: Include "dwarf2-frame.h".
7426 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7427 * Makefile.in (i386-tdep.o): Update dependencies.
7428
7429 * dwarf2-frame.c, dwarf2-frame.h: New files.
7430 * Makefile.in (SFILES): Add dwarf2-frame.c.
7431 (dwarf2_frame_h): Define.
7432 (COMMON_OBS): Add dwarf2-frame.o.
7433 (dwarf2-frame.o): Add dependencies.
7434
7435 2003-05-31 Andreas Jaeger <aj@suse.de>
7436
7437 * x86-64-linux-nat.c: Fix comment.
7438
7439 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7440
7441 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7442 function signature.
7443
7444 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7445 have a sigcontext_addr handler.
7446 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7447 sigcontext_addr handler.
7448
7449 2003-05-31 Andrew Cagney <cagney@redhat.com>
7450
7451 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7452 (print_fp_register_row): Replace do_fp_register_row.
7453 (mips_print_fp_register): Add "file" and "frame" parameters.
7454 (mips_print_register): Add "file" and "frame" parameters.
7455 (mips_print_registers_info): Replace mips_do_registers_info.
7456 (mips_gdbarch_init): Set print_registers_info instead of
7457 deprecated_do_registers_info.
7458 (mips_read_fp_register_single): Add "frame" parameter.
7459 (mips_read_fp_register_double): Add "frame" parameter.
7460
7461 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7462
7463 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7464 Fixes a bug where GDB would print the wrong register names for
7465 targets without SSE.
7466
7467 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7468 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7469 registers.
7470
7471 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7472 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7473 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7474 TDEP->sc_sp_offset.
7475
7476 From Michal Ludvig <mludvig@suse.cz>:
7477 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7478 and `sc_num_regs'.
7479 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7480 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7481 I386_ST0_REGNUM): Move here from...
7482 * i386-tdep.c: ... here.
7483 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7484 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7485 registers if possible.
7486 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7487 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7488 Remove variables.
7489 (i386bsd_sc_reg_offset): New variable.
7490 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7491 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7492 TDEP->sc_sp_offset.
7493 (i386fbsd_sc_reg_offset): New variable.
7494 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7495 TDEP->sc_num_regs.
7496 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7497 variables.
7498 (i386fbsd4_sc_reg_offset): New variable.
7499 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7500 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7501 TDEP->sc_sp_offset.
7502 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7503 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7504 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7505 Remove variables.
7506 (i386nbsd_sc_reg_offset): New variable.
7507 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7508 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7509 TDEP->sc_sp_offset.
7510 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7511 Remove variables.
7512 (i386obsd_sc_reg_offset): New variable.
7513 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7514 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7515 TDEP->sc_sp_offset.
7516 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7517 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7518 for frame pointer offset in `struct sigcontext'.
7519
7520 2003-05-31 Andrew Cagney <cagney@redhat.com>
7521
7522 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7523 architecture methods call_dummy_words, sizeof_call_dummy_words,
7524 push_return_address, store_struct_return, and fix_call_dummy. Set
7525 push_dummy_call instead of deprecated_push_arguments.
7526 (mips_store_struct_return): Delete function.
7527 (mips_fix_call_dummy): Delete function.
7528 (mips_push_return_address): Delete function.
7529 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7530 RA_REGNUM and T9_REGNUM.
7531 (mips_n32n64_push_dummy_call): Ditto for
7532 mips_n32n64_push_arguments.
7533 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7534 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7535
7536 2003-05-31 Andrew Cagney <cagney@redhat.com>
7537
7538 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7539 "dummy_addr" to "bp_addr".
7540 * infcall.c (call_function_by_hand): Pass "funaddr" to
7541 gdbarch_push_dummy_call.
7542 * gdbarch.h, gdbarch.c: Re-generate.
7543 * i386-tdep.c (i386_push_dummy_call): Update.
7544 * arm-tdep.c (arm_push_dummy_call): Update.
7545 * d10v-tdep.c (d10v_push_dummy_call): Update.
7546
7547 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7548
7549 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7550 variable declarations.
7551 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7552 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7553 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7554 x86_64_init_frame_pc, x86_64_init_frame_pc,
7555 x86_64_function_has_prologue): Remove prototypes.
7556 (X86_64_NUM_GREGS): New define.
7557 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7558 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7559 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7560 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7561 XMM1_REGNUM): Remove defines.
7562 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7563 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7564 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7565 X86_64_XMM1_REGNUM): New defines.
7566 (struct x86_64_register_info): Renamed from `struct
7567 register_info'. Remove `size' member.
7568 (x86_64_register_info_table): Remove variable.
7569 (x86_64_register_info): New variable.
7570 (X86_64_NUM_REGS): New define.
7571 (X86_64_NUM_GREGS): Remove define.
7572 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7573 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7574 Remove variables.
7575 (x86_54_dwarf2_reg_to_regnum): Remove function.
7576 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7577 (x86_64_dwarf_reg_to_regnum): New function.
7578 (x86_64_register_name): Rewrite.
7579 (x86_64_register_raw_size): Remove function.
7580 (x86_64_register_byte_table): Remove variable.
7581 (x86_64_register_byte): Remove function.
7582 (x86_64_register_virtual_type): Remove function.
7583 (x86_64_register_type): New function.
7584 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7585 x86_64_register_convert_to_raw): Remove functions.
7586 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7587 (x86_64_use_struct_convention): Make static. Adjust for renamed
7588 defines.
7589 (x86_64_frame_init_saved_regs): Remove function.
7590 (x86_64_push_arguments): Make static. Change to accept a regcache
7591 as argument.
7592 (x86_64_store_return_value, x86_64_extract_return_value): Make
7593 static. Rewrite based on i386 counterparts.
7594 (x86_64_push_dummy_call): New function.
7595 (X86_64_NUM_SAVED_REGS): New define.
7596 (x86_64_register_number): Remove function.
7597 (x86_64_store_struct_return): Remove function.
7598 (x86_64_frameless_function_invocation,
7599 x86_64_function_has_prologue): Remove functions.
7600 (PROLOG_BUFSIZE): Remove define.
7601 (struct x86_64_frame_cache): New structure.
7602 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7603 x86_64_frame_cache, x86_64_frame_this_id,
7604 x86_64_frame_prev_register, x86_64_frame_p,
7605 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7606 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7607 functions.
7608 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7609 variables.
7610 (x86_64_skip_prologue): Rewrite in terms of
7611 x86_64_analyze_prologue.
7612 (x86_64_frame_base_address): New function.
7613 (x86_64_frame_base): New variable.
7614 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7615 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7616 set deprecated_fp_regnum, deprecated_register_size,
7617 deprecated_register_bytes, register_raw_size, register_byte,
7618 register_virtual_type, register_convertiable,
7619 register_convert_to_virtual, convert_to_raw,
7620 deprecated_get_saved_register, deprecated_target_read_fp,
7621 deprecated_push_arguments, deprecated_push_return_address,
7622 deprecated_pop_frame, deprecated_store_struct_return,
7623 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7624 frameless_function_invocation, deprecated_frame_saved_pc,
7625 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7626 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7627 deprecated_init_frame_pc and virtual_frame_pointer. Call
7628 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7629 and x86_64_frame_p. Call frame_base_set_default to register
7630 x86_64_frame_base.
7631 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7632 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7633 (_initialize_x86_64_tdep): Remove function.
7634 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7635 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7636 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7637 define.
7638 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7639 (x86_64_linux_sigcontext_addr): Rewrite.
7640 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7641 x86_64_linux_frame_saved_pc): Remove functions.
7642 (x86_64_linux_pc_in_sigtramp): Renamed from
7643 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7644 trampoline.
7645 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7646 Remove_functions.
7647 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7648 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7649 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7650 (x86_64_regmap): Rename to regmap.
7651 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7652 x86_64_num_gregs.
7653 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7654 x86_64_regmap.
7655 (x86_64_fxsave_offset): Remove function.
7656 (supply_fpregset): Simply call x86_64_supply_fxsave.
7657 (fill_fpregset): Simply call x86_64_fill_fxsave.
7658 (fetch_inferior_registers, store_inferior_registers): Avoid
7659 asignment in if-statement.
7660 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7661 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7662 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7663 (fetch_core_registers): Remove function.
7664 (linux_elf_core_fns): Remove.
7665 (offsetoff): Don't define.
7666 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7667 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7668 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7669 add core-regset.o.
7670 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7671 protection against multiple includes instead of NM_X86_64_h. Add
7672 various comments. Include "config/nm-linux.h". Don't include
7673 <signal.h>.
7674 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7675 GET_THREAD_SIGNALS): Remove defines.
7676 (x86_64_register_u_addr, kernel_u_size,
7677 lin_thread_get_thread_signals): Remove prototypes.
7678 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7679 [HAVE_LINK_H]: Don't include "solib.h".
7680 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7681 * config/i386/tm-x86-64linux.h: Fix comments.
7682 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7683 x86-64-tdep.o): Update dependencies.
7684
7685 2003-05-30 Andrew Cagney <cagney@redhat.com>
7686
7687 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7688 Change parameter type to a "struct regcache *".
7689
7690 * gdbarch.sh: Regardless of the multi-arch level, always define
7691 the macro when not already defined.
7692 * gdbarch.h, gdbarch.c: Re-generate.
7693
7694 2003-05-30 Richard Henderson <rth@redhat.com>
7695
7696 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7697 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7698 (alpha_mdebug_frame_this_id): Likewise.
7699 (alpha_mdebug_frame_prev_register): Likewise.
7700 (alpha_mdebug_frame_base_address): Likewise.
7701 (alpha_mdebug_frame_locals_address): Likewise.
7702 (alpha_mdebug_frame_args_address): Likewise.
7703 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7704 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7705 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7706 loop increment.
7707 (alpha_heuristic_frame_this_id): Make static.
7708 (alpha_heuristic_frame_prev_register): Likewise.
7709 (alpha_heuristic_frame_base_address): Likewise.
7710 * alpha-tdep.h: Update.
7711
7712 2003-05-30 Mark Kettenis <kettenis@gnu.org>
7713
7714 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7715 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7716 defenitions.
7717 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7718 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7719 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7720 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7721 I386_ST0_REGNUM): New defines.
7722 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7723 codestream_get): Remove define.
7724 (codestream_next_addr, condestream_addr, condestream_buf,
7725 codestream_off, codestream_cnt): Remove variables.
7726 (codestream_fill, codestream_seek, codestream_read): Remove
7727 functions.
7728 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7729 functionality.
7730 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7731 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7732 i386_frame_saved_pc, i386_saved_pc_after_call,
7733 i386_frame_num_args, i386_frame_init_saved_regs,
7734 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7735 i386_push_arguments): Remove functions.
7736 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7737 functionality. Use i386_analyze_prologue instead of
7738 i386_get_frame_setup.
7739 (I386_NUM_SAVED_REGS): New define.
7740 (struct i386_frame_cache): New structure.
7741 (i386_alloc_frame_cache, i386_analyze_struct_return,
7742 i386_skip_probe, i386_analyze_frame_setup,
7743 i386_analyze_register_saves, i386_analyze_prologue,
7744 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7745 i386_frame_prev_register, i386_sigtramp_frame_cache,
7746 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7747 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7748 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7749 New functions.
7750 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7751 New variables.
7752 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7753 I386_EAX_REGNUM and I386_EDX_REGNUM.
7754 (i386_extract_return_value, i386_store_return_value): Use
7755 I386_ST0_REGNUM where appropriate.
7756 (i386_extract_struct_value_address): Rewrite to use extract_address.
7757 (i386_svr4_pc_in_sigtramp): Add comment.
7758 (i386_svr4_sigcontext_addr): Rewrite.
7759 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7760 TDEP->sc_sp_offset.
7761 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7762 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7763 of new defines. Set push_dummy_call, don't set
7764 deprecated_push_arguments, deprecated_push_return_address,
7765 deprecated_pop_frame. Don't set parm_boundary. Don't set
7766 deprecated_frame_chain, deprecated_frame_saved_pc,
7767 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7768 save_dummy_frame_tos, unwind_pc. Call
7769 frame_unwind_append_predicate and frame_base_set_default. Don't
7770 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7771 Don't set frameless_function_invocation. Don't set
7772 deprecated_register_bytes, deprecated_register_size,
7773 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7774 * i386-linux-tdep.c: Fix formatting in some comments.
7775 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7776 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7777 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7778 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7779 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7780 redundant parentheses.
7781 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7782 (i386_linux_sigcontext_addr): Use it. Rewrite.
7783 (find_minsym_and_objfile): Change name of second argument.
7784 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7785 changed. Use frame_pc_unwind instead of
7786 DEPRECATED_SAVED_PC_AFTER_CALL.
7787 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7788 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7789 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7790 unwinder.
7791 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7792 "dummy-frame.h".
7793 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7794 (_initialize_i386_cygwin_tdep): New prototype.
7795 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7796 deprecated_frame_chain_valid.
7797 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7798 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7799 Rely on the SVR4 defaults.
7800 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7801 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7802
7803 2003-05-30 Andrew Cagney <cagney@redhat.com>
7804
7805 * infcall.c (call_function_by_hand): Always call
7806 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7807
7808 2003-05-30 Richard Henderson <rth@redhat.com>
7809
7810 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7811 increment.
7812
7813 2003-05-29 Jim Blandy <jimb@redhat.com>
7814
7815 Use gdbarch methods for solib stuff on PowerPC Linux.
7816 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7817 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7818 show through.
7819 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7820 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7821 giving the same effect as the #definitions above.
7822
7823 2003-05-29 Adam Fedor <fedor@gnu.org>
7824
7825 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7826 (find_implementation_from_class): Replace it with the standard
7827 case i.e. do nothing.
7828
7829 2003-05-29 Richard Henderson <rth@redhat.com>
7830
7831 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7832 (alpha_linux_sigtramp_offset): Use it. Make static.
7833 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7834 update for new frame model.
7835 * alpha-mdebug-tdep.c: New file.
7836 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7837 (alpha_osf1_init_abi): Install it.
7838 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7839 (linked_proc_desc_table): Remove.
7840 (alpha_frame_past_sigtramp_frame): Remove.
7841 (alpha_dynamic_sigtramp_offset): Remove.
7842 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7843 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7844 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7845 (push_sigtramp_desc): Remove.
7846 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7847 (alpha_cannot_store_register): Likewise.
7848 (alpha_sigcontext_addr): Remove.
7849 (alpha_find_saved_regs): Remove.
7850 (alpha_frame_init_saved_regs): Remove.
7851 (alpha_init_frame_pc_first): Remove.
7852 (read_next_frame_reg): Remove.
7853 (alpha_frame_saved_pc): Remove.
7854 (alpha_saved_pc_after_call): Remove.
7855 (temp_proc_desc, temp_saved_regs): Remove.
7856 (alpha_about_to_return): Remove.
7857 (cached_proc_desc): Remove.
7858 (alpha_frame_chain): Remove.
7859 (alpha_print_extra_frame_info): Remove.
7860 (alpha_init_extra_frame_info): Remove.
7861 (alpha_frame_locals_address): Remove.
7862 (alpha_frame_args_address): Remove.
7863 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7864 (alpha_push_dummy_frame): Remove.
7865 (alpha_pop_frame): Remove.
7866 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7867 (alpha_read_insn): New.
7868 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7869 for different insn encodings.
7870 (alpha_in_lenient_prologue): Remove.
7871 (struct alpha_sigtramp_unwind_cache): New.
7872 (alpha_sigtramp_frame_unwind_cache): New.
7873 (alpha_sigtramp_register_address): New.
7874 (alpha_sigtramp_frame_this_id): New.
7875 (alpha_sigtramp_frame_prev_register): New.
7876 (alpha_sigtramp_frame_unwind): New.
7877 (alpha_sigtramp_frame_p): New.
7878 (struct alpha_heuristic_unwind_cache): New.
7879 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7880 don't count nop insns that occur between functions.
7881 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7882 heuristic_proc_desc, but without the mdebug wrapping.
7883 (alpha_heuristic_frame_this_id): New.
7884 (alpha_heuristic_frame_prev_register): New.
7885 (alpha_heuristic_frame_unwind): New.
7886 (alpha_heuristic_frame_p): New.
7887 (alpha_heuristic_frame_base_address): New.
7888 (alpha_heuristic_frame_base): New.
7889 (alpha_unwind_dummy_id): New.
7890 (alpha_unwind_pc): New.
7891 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7892 frame related deprecated initializations; install replacements.
7893 (alpha_dump_tdep): Remove.
7894 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7895 (alpha_read_insn, alpha_after_prologue,
7896 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7897 alpha_heuristic_frame_prev_register,
7898 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7899 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7900 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7901 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7902
7903 2003-05-29 Andrew Cagney <cagney@redhat.com>
7904
7905 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7906 dependant on the availability of ASSERT_FUNCTION.
7907 (ASSERT_FUNCTION): Do not define when there is no function name.
7908
7909 2003-05-29 Kevin Buettner <kevinb@redhat.com>
7910
7911 From Jimi X <jimix@watson.ibm.com>:
7912 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7913
7914 2003-05-28 Jim Blandy <jimb@redhat.com>
7915
7916 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7917 argument to ptrace to int; the system headers should give it the
7918 right type, and pointers don't fit in ints on powerpc64-*-*.
7919
7920 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7921
7922 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7923 DW_TAG_catch_block.
7924
7925 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7926
7927 * stabsread.c (dbx_lookup_type): Make static.
7928 (read_type): Ditto.
7929 (add_undefined_type): Ditto.
7930 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7931 not export.
7932
7933 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7934
7935 * hpread.c (hpread_has_name): Make static.
7936 (hpread_psymtab_to_symtab): Ditto.
7937 (file_exists): Ditto.
7938 (hpread_call_pxdb): Ditto.
7939 (hpread_pxdb_needed): Ditto.
7940 (hpread_quick_traverse): Ditto.
7941 (hpread_get_header): Ditto.
7942 (hpread_get_lntt): Ditto.
7943 (hpread_get_slt): Ditto.
7944 (class_of): Ditto.
7945
7946 2003-05-25 Andreas Schwab <schwab@suse.de>
7947
7948 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7949 stack_align and deprecated_extra_stack_alignment_needed.
7950 (m68k_stack_align): Delete.
7951
7952 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7953 (m68k_register_virtual_size): Likewise.
7954 (altos_skip_prologue): Remove obsolete function.
7955 (isi_frame_num_args): Likewise.
7956 (news_frame_num_args): Likewise.
7957 (m68k_fix_call_dummy): Make static.
7958 (m68k_push_dummy_frame): Likewise.
7959 (m68k_pop_frame): Likewise.
7960 (m68k_skip_prologue): Likewise.
7961 (m68k_frame_init_saved_regs): Likewise.
7962 (m68k_saved_pc_after_call): Likewise.
7963 (m68k_get_longjmp_target): Make multi-arch.
7964 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7965 structure. Register m68k_get_longjmp_target if enabled.
7966 * m68k-tdep.h (struct gdbarch_tdep): Define.
7967 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7968
7969 * Makefile.in (config.status): Also depend on configure.tgt
7970 and configure.host.
7971 (m68klinux-tdep.o): Update dependencies.
7972 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7973 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7974 (M68K_LINUX_JB_PC): Define.
7975 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7976 and take additional parameter.
7977 (m68k_linux_sigtramp_saved_pc): Update.
7978 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7979 m68k_linux_pc_in_sigtramp, in_plt_section,
7980 find_solib_trampoline_target.
7981 * config/m68k/tm-linux.h: Don't include any tm headers.
7982 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7983 (JB_ELEMENT_SIZE): Likewise.
7984 (JB_PC): Likewise.
7985 (GET_LONGJMP_TARGET): Likewise.
7986 (IN_SIGTRAMP): Likewise.
7987 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7988
7989 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7990
7991 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7992 (sparc32_push_arguments): Re-implement by calling
7993 sparc32_do_push_arguments.
7994
7995 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7996
7997 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7998 SPARC_O1_REGNUM): New defines.
7999 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8000 (sparc32_store_return_value): New function.
8001 (sparc_extract_struct_value_address): Rewrite to operate on a
8002 regcache.
8003 (sparc_gdbarch_init): Don't set
8004 deprecated_extract_struct_value_address. Set
8005 extract_struct_value_address instead. Don't set
8006 deprecated_extract_return_value and deprecated_store_return_value
8007 for 32-bit targets. Set extract_return_value and
8008 store_return_value instead.
8009 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
8010 DEPRECTAED_EXTRACT_RETURN_VALUE,
8011 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8012 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8013 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8014 (sparc_store_return_value): Remove prototype.
8015 (sparc32_store_return_value): New prototype.
8016 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8017 Adjust prototypes.
8018
8019 2003-05-24 Mark Kettenis <kettenis@gnu.org>
8020
8021 * sparcnbsd-tdep.c: Include "gdb_string.h".
8022
8023 2003-05-23 Andrew Cagney <cagney@redhat.com>
8024
8025 * p-valprint.c (pascal_val_print): Replace extract_address with
8026 the inline equivalent extract_unsigned_integer.
8027 * jv-valprint.c (java_value_print): Ditto.
8028 * ada-valprint.c (ada_val_print_1): Ditto.
8029 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8030
8031 2003-05-23 Theodore A. Roth <troth@openavr.org>
8032
8033 * blockframe.c (frameless_look_for_prologue): Remove unused
8034 after_prologue variable.
8035
8036 2003-05-23 Mark Kettenis <kettenis@gnu.org>
8037
8038 * blockframe.c (get_pc_function_start): Rewrite to avoid
8039 asignments in if-statements.
8040
8041 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8042
8043 Committed by Elena Zannoni <ezannoni@redhat.com>.
8044 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8045 files, don't relocate absolute symbols (and do use mst_abs).
8046
8047 2003-05-23 Andrew Cagney <cagney@redhat.com>
8048
8049 * objc-lang.c: Include "gdb_assert.h".
8050 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8051 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8052 (gdb_check, gdb_check_fatal): Delete functions.
8053 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8054 gdb_assert.
8055 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8056 * Makefile.in (objc-lang.o): Update dependencies.
8057
8058 2003-05-22 Ian Lance Taylor <ian@airs.com>
8059
8060 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8061 with fprintf_filtered, not fprintf_unfiltered.
8062
8063 2003-05-22 Andrew Cagney <cagney@redhat.com>
8064
8065 * stack.c (frame_info): Inline extract_address, replacing it with
8066 extract_unsigned_integer.
8067 * findvar.c (unsigned_pointer_to_address): Ditto.
8068 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8069 * dwarf2expr.c (dwarf2_read_address): Ditto.
8070 * frame.c (frame_pc_unwind): Update comment.
8071 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8072
8073 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8074
8075 * infptrace.c (detach): Call print_sys_errmsg rather than
8076 perror_with_name to issue warning message when errno is non-zero
8077 after calling ptrace detach.
8078
8079 2003-05-21 J. Brobecker <brobecker@gnat.com>
8080
8081 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8082 macro definitions from here...
8083 * hppa-tdep.c: ...to there.
8084
8085 2003-05-20 Kevin Buettner <kevinb@redhat.com>
8086
8087 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8088 register_ptrace_addr(). Fix all callers.
8089
8090 2003-05-21 Andreas Schwab <schwab@suse.de>
8091
8092 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8093 dependencies.
8094 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8095 end.
8096 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8097 (_initialize_m68k_linux_tdep): New function.
8098 (m68k_linux_frame_saved_pc): Make static.
8099 (m68k_linux_extract_return_value): Likewise.
8100 (m68k_linux_store_return_value): Likewise.
8101 (m68k_linux_extract_struct_value_address): Likewise.
8102 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8103 Remove.
8104 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8105 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8106 (DEPRECATED_FRAME_SAVED_PC): Remove.
8107
8108 2003-05-20 Kris Warkentin <kewarken@qnx.com>
8109
8110 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8111 regset numbering rather than our own.
8112
8113 2003-05-19 David Carlton <carlton@bactrian.org>
8114
8115 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8116
8117 2003-05-19 David Carlton <carlton@bactrian.org>
8118
8119 Partial fix for PR c++/827.
8120 * cp-support.h: Include symtab.h.
8121 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8122 * cp-namespace.c: Update contributors.
8123 (cp_lookup_symbol_nonlocal): New.
8124 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8125 (lookup_symbol_file): Ditto.
8126 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8127 * block.h: Declare block_scope, block_using, block_global_block.
8128 * block.c (block_scope): New.
8129 (block_using, block_global_block): Ditto.
8130 * Makefile.in (cp_support_h): Depend on symtab_h.
8131 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8132
8133 2003-05-19 David Carlton <carlton@bactrian.org>
8134
8135 * language.h (struct language_defn): Add 'la_value_of_this'
8136 and 'la_lookup_symbol_nonlocal' members.
8137 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8138 lookup_symbol_static, lookup_symbol_global,
8139 lookup_symbol_aux_block.
8140 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8141 if we should search fields of this and how to do static/global
8142 lookup.
8143 (lookup_symbol_aux_block): Make extern.
8144 (basic_lookup_symbol_nonlocal): New.
8145 (lookup_symbol_static, lookup_symbol_global): Ditto.
8146 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8147 'la_lookup_symbol_nonlocal' members.
8148 * c-lang.c (c_language_defn, cplus_language_defn)
8149 (asm_language_defn, minimal_language_defn): Ditto.
8150 * jv-lang.c (java_language_defn): Ditto.
8151 * language.c (unknown_language_defn, auto_language_defn)
8152 (local_language_defn): Ditto.
8153 * m2-lang.c (m2_language_defn): Ditto.
8154 * objc-lang.c (objc_language_defn): Ditto.
8155 * scm-lang.c (scm_language_defn): Ditto.
8156 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8157 * p-lang.c (pascal_language_defn): Ditto for both.
8158 * Makefile.in (f-lang.o): Depend on value_h.
8159 (p-lang.o): Ditto.
8160
8161 2003-05-19 David Carlton <carlton@bactrian.org>
8162
8163 * block.h: Declare block_static_block.
8164 * block.c (block_static_block): New.
8165 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8166 lookup_symbol_aux_local, calling block_static_block instead.
8167 (lookup_symbol_aux_local): Delete 'static_block' argument.
8168
8169 2003-05-19 David Carlton <carlton@bactrian.org>
8170
8171 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8172
8173 2003-05-19 Michal Ludvig <mludvig@suse.cz>
8174
8175 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8176 register numbers mapping.
8177
8178 2003-05-18 Adam Fedor <fedor@gnu.org>
8179
8180 * symtab.c (completion_list_objc_symbol): New function.
8181 (make_symbol_completion_list): Use it to add ObjC symbols
8182 when looking though the list.
8183 (language_search_unquoted_string): New function.
8184 (make_file_symbol_completion_list): Use it.
8185
8186 2003-05-18 Andreas Schwab <schwab@suse.de>
8187
8188 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8189 dependencies.
8190 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8191 as m68k_linux_extract_return_value.
8192 (DEPRECATED_STORE_RETURN_VALUE): Define as
8193 m68k_linux_store_return_value.
8194 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8195 m68k_linux_extract_struct_value_address.
8196 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8197 get_next_frame, get_frame_base, get_frame_pc.
8198 (m68k_linux_frame_saved_pc): Use get_frame_base.
8199 (m68k_linux_extract_return_value): New function.
8200 (m68k_linux_store_return_value): New function.
8201 (m68k_linux_extract_struct_value_address): New function.
8202 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8203
8204 * c-exp.y (typebase): Remove duplicate occurence of
8205 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8206 of lookup_signed_typename.
8207
8208 2003-05-18 Mark Kettenis <kettenis@gnu.org>
8209
8210 * dwarf2loc.c (find_location_expression): Change type of second
8211 argument to `size_t *'.
8212 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8213 for size variable.
8214
8215 2003-05-18 David Carlton <carlton@bactrian.org>
8216
8217 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8218 'linkage_name'. Add comment.
8219 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8220 'linkage_name'.
8221 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8222 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8223 (lookup_block_symbol): Ditto.
8224
8225 2003-05-16 Andrew Cagney <cagney@redhat.com>
8226
8227 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8228 * gdbarch.h, gdbarch.c: Re-generate.
8229 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8230 * TODO (REGISTER_BYTES): Delete reference.
8231 * alpha-tdep.c (alpha_gdbarch_init): Update.
8232 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8233 * x86-64-tdep.c (x86_64_init_abi): Update.
8234 * vax-tdep.c (vax_gdbarch_init): Update.
8235 * v850-tdep.c (v850_gdbarch_init): Update.
8236 * sparc-tdep.c (sparc_gdbarch_init): Update.
8237 * sh-tdep.c (sh_gdbarch_init): Update.
8238 * s390-tdep.c (s390_gdbarch_init): Update.
8239 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8240 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8241 (ns32k_gdbarch_init_32382): Update.
8242 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8243 * mcore-tdep.c (mcore_gdbarch_init): Update.
8244 * m68k-tdep.c (m68k_gdbarch_init): Update.
8245 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8246 * ia64-tdep.c (ia64_gdbarch_init): Update.
8247 * i386-tdep.c (i386_gdbarch_init): Update.
8248 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8249 * hppa-tdep.c (hppa_gdbarch_init): Update.
8250 * h8300-tdep.c (h8300_gdbarch_init): Update.
8251 * frv-tdep.c (frv_gdbarch_init): Update.
8252 * cris-tdep.c (cris_gdbarch_init): Update.
8253 * avr-tdep.c (avr_gdbarch_init): Update.
8254 * arm-tdep.c (arm_gdbarch_init): Update.
8255 * sparc-tdep.c (sparc_pop_frame): Update.
8256 * rs6000-tdep.c (rs6000_pop_frame): Update.
8257 * remote.c (init_remote_state): Update.
8258 (remote_prepare_to_store): Update.
8259 * remote-vx.c (vx_prepare_to_store): Update.
8260 * remote-sds.c (sds_fetch_registers): Update.
8261 (sds_prepare_to_store): Update.
8262 * remote-array.c: Update.
8263 * regcache.c (init_legacy_regcache_descr): Update.
8264 (init_regcache_descr): Update.
8265 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8266 (mips_o64_extract_return_value): Update.
8267 * irix5-nat.c (fetch_core_registers): Update.
8268 * irix4-nat.c (fetch_core_registers): Update.
8269 * i386-tdep.h: Update.
8270 * hppa-tdep.c (pa_do_registers_info): Update.
8271 (pa_do_strcat_registers_info): Update.
8272 * cris-tdep.c (cris_register_bytes_ok): Update.
8273 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8274 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8275 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8276 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8277 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8278 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8279 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8280 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8281 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8282 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8283 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8284 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8285 (REGISTER_BYTES_OK): Update.
8286 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8287 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8288
8289 2003-05-16 Ian Lance Taylor <ian@airs.com>
8290
8291 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8292 (vax_print_insn, print_insn_arg): Remove static functions.
8293 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8294 print_insn_vax from opcodes library.
8295 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8296
8297 2003-05-15 Andrew Cagney <cagney@redhat.com>
8298
8299 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8300 * target.h (memory_breakpoint_from_pc): Delete declaration.
8301 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8302 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8303 * monitor.c (monitor_insert_breakpoint): Use
8304 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8305 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8306 * gdbarch.h, gdbarch.c: Re-generate.
8307 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8308 (sparc_gdbarch_init): Set breakpoint_from_pc to
8309 sparc_breakpoint_from_pc.
8310 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8311 (BREAKPOINT_FROM_PC): Define.
8312 (sparc_breakpoint_from_pc): Declare.
8313 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8314 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8315 (BREAKPOINT_FROM_PC): Define.
8316 (BREAKPOINT): Delete macro.
8317 * target.h: Update comment.
8318 * s390-tdep.c (s390_gdbarch_init): Update comments.
8319 * remote.c: Update comments.
8320 * remote-mips.c: Update comments.
8321 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8322 * mem-break.c: Update comment.
8323 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8324 (ia64_memory_insert_breakpoint): Update.
8325 * config/sparc/tm-sparc.h: Update comment.
8326 * config/pa/tm-hppa64.h: Update comment.
8327 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8328 (rs6000_breakpoint_from_pc): Update.
8329 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8330 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8331 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8332 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8333 (mips_breakpoint_from_pc): Update.
8334 (mips_dump_tdep): Update.
8335
8336 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8337 * minsyms.c (lookup_minimal_symbol): Inline
8338 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8339
8340 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8341 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8342 * p-lang.c (pascal_printstr): Ditto.
8343 * objc-lang.c (objc_printstr): Ditto.
8344 * m2-lang.c (m2_printstr): Ditto.
8345 * jv-valprint.c (java_print_value_fields): Ditto.
8346 * f-lang.c (f_printstr): Ditto.
8347 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8348 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8349 for repeat_count_threshold.
8350 * Makefile.in (cp-valprint.o): Update dependencies.
8351
8352 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8353
8354 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8355 (examine_prologue): Support looking through leaf functions, knowing
8356 they start with mov r2,r12. Support skipping over indirect stores
8357 of the input registers. Upon hitting a non-nop branch instruction
8358 or predicated instruction, bail out by setting lim_pc to the current
8359 pc value in the loop. At the end, if the lim_pc value is still
8360 beyond our calculated value and we have trust_limit set,
8361 use the lim_pc value.
8362
8363 2003-05-15 Andrew Cagney <cagney@redhat.com>
8364
8365 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8366 generic_find_dummy_frame.
8367 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8368 (deprecated_generic_find_dummy_frame): Update.
8369 (deprecated_read_register_dummy): Update.
8370 * frame.c (deprecated_generic_get_saved_register): Update.
8371
8372 2003-05-15 Theodore A. Roth <troth@openavr.org>
8373
8374 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8375 (avr_gdbarch_init): Set breakpoint_from_pc method.
8376
8377 2003-05-15 Andrew Cagney <cagney@redhat.com>
8378
8379 * regcache.c (build_regcache): Set deprecated_register_valid
8380 directly.
8381 (deprecated_grub_regcache_for_register_valid): Delete function.
8382 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8383 declaration.
8384
8385 2003-05-15 David Carlton <carlton@bactrian.org>
8386
8387 Committed by Elena Zannoni <ezannoni@redhat.com>
8388 * symtab.c (lookup_symbol_aux): Delete calls to
8389 lookup_symbol_aux_minsyms.
8390 (lookup_symbol_aux_minsyms): Comment out function and
8391 prototype. Delete lookup by mangled name.
8392
8393 2003-05-14 Kevin Buettner <kevinb@redhat.com>
8394
8395 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8396 correctly indicate an empty stack and ``stack_allocated'' to the
8397 indicate the number of elements initially allocated.
8398 (dwarf_expr_grow_stack): Simplify method for computing new
8399 stack size. Don't loop infinitely if ``stack_len'' is zero.
8400 (execute_stack_op): Move ``ctx->in_reg'' initialization
8401 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8402 be used in conjuction with DW_OP_piece. Revise error message
8403 accordingly.
8404
8405 2003-05-14 Theodore A. Roth <troth@openavr.org>
8406
8407 * MAINTAINERS: Update my email address.
8408 * avr-tdep.c: Ditto.
8409
8410 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
8411
8412 * symtab.h (enum domain_enum): Rename from namespace_enum.
8413 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8414 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8415 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8416 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8417 TYPES_NAMESPACE, METHODS_NAMESPACE.
8418 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8419 (struct symbol, struct partial_symbol): Rename field
8420 'namespace_enum namespace' to 'domain_enum domain'.
8421 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8422 Delete old define kludge for namespace.
8423
8424 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8425 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8426 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8427 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8428 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8429 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8430 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8431 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8432 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8433 occurrences of the above.
8434
8435 2003-05-14 Ian Lance Taylor <ian@airs.com>
8436
8437 * Makefile.in (install-only): Use $(SHELL) when running
8438 mkinstalldirs.
8439
8440 2003-05-13 Ian Lance Taylor <ian@airs.com>
8441
8442 * MAINTAINERS (write after approval): Add myself.
8443
8444 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8445 second and third arguments.
8446 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8447 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8448
8449 2003-05-13 Andrew Cagney <cagney@redhat.com>
8450
8451 * defs.h (store_address): Delete declaration.
8452 findvar.c (store_address): Delete function.
8453 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8454 store_unsigned_integer.
8455 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8456 * v850-tdep.c (v850_push_arguments): Ditto.
8457 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8458 * sh-tdep.c (sh64_get_saved_register): Ditto.
8459 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8460 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8461 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8462 (mips_get_saved_register): Ditto.
8463 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8464 (find_func_descr, ia64_push_arguments): Ditto.
8465 * i386-tdep.c (i386_push_arguments): Ditto.
8466 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8467 * frv-tdep.c (frv_push_arguments): Ditto.
8468 * frame.c (legacy_saved_regs_prev_register): Ditto.
8469 (deprecated_generic_get_saved_register): Ditto.
8470 * findvar.c (unsigned_address_to_pointer): Ditto.
8471 * dwarf2read.c (dwarf2_const_value): Ditto.
8472 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8473 * alpha-tdep.c (alpha_push_arguments): Ditto.
8474
8475 2003-05-12 J. Brobecker <brobecker@gnat.com>
8476
8477 * NEWS: Mention that the hppa-hpux port has been partially
8478 multiarched (32bit ABIT only, so far).
8479
8480 2003-05-11 Andrew Cagney <cagney@redhat.com>
8481
8482 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8483 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8484 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8485 sim/testsuite/sim/arm/misaligned2.ms, and
8486 sim/testsuite/sim/arm/misaligned3.ms.
8487 * disasm.h (struct ui_file): Add opaque struct declaration.
8488 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8489 * frame.h (struct ui_file): Ditto.
8490
8491 2003-05-11 Mark Kettenis <kettenis@gnu.org>
8492
8493 * value.h: Pretty print.
8494
8495 2003-05-10 Mark Kettenis <kettenis@gnu.org>
8496
8497 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8498
8499 2003-05-08 Andrew Cagney <cagney@redhat.com>
8500
8501 * regcache.h (max_register_size): Delete declaration.
8502 * regcache.c (max_register_size): Delete function.
8503 (struct regcache_descr): Delete field "max_register_size".
8504 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8505 registers fit in MAX_REGISTER_SIZE.
8506 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8507 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8508 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8509 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8510 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8511 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8512 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8513 * dve3900-rom.c, hppa-tdep.c: Ditto.
8514
8515 2003-05-08 David Carlton <carlton@math.stanford.edu>
8516
8517 * valops.c (push_word): Fix typo.
8518
8519 2003-05-08 Andrew Cagney <cagney@redhat.com>
8520
8521 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8522 * gdbarch.h: Re-generate.
8523 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8524 (legacy_max_register_raw_size): Delete declaration.
8525 * regcache.c (legacy_max_register_raw_size): Delete function.
8526 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8527 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8528 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8529 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8530 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8531 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8532 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8533 * findvar.c, dwarf2cfi.c: Ditto.
8534
8535 2003-05-08 Andrew Cagney <cagney@redhat.com>
8536
8537 * mips-tdep.c (read_signed_register): New function, moved to here
8538 from "regcache.c".
8539 (read_signed_register_pid): Ditto.
8540 * regcache.c (read_signed_register_pid): Delete function, moved to
8541 "mips-tdep.c".
8542 (read_signed_register): Ditto.
8543 * regcache.h (read_signed_register): Delete declaration.
8544 (read_signed_register_pid): Delete declaration.
8545
8546 2003-05-08 Andrew Cagney <cagney@redhat.com>
8547
8548 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8549 * gdbarch.h: Re-generate.
8550 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8551 (legacy_max_register_virtual_size): Delete declaration.
8552 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8553 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8554 * tracepoint.c (memrange_sortmerge): Ditto.
8555 * sparc-tdep.c (sparc_print_registers): Ditto.
8556 * regcache.c (legacy_max_register_virtual_size): Delete function.
8557
8558 2002-05-08 J. Brobecker <brobecker@gnat.com>
8559
8560 * fork-child.c (escape_bang_in_quoted_argument): New function.
8561 (fork_inferior): Escape '!' characters in quoted arguments
8562 only when needed.
8563
8564 2003-05-08 J. Brobecker <brobecker@gnat.com>
8565
8566 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8567 the language of the CU is not currently supported by GDB.
8568
8569 2003-05-08 J. Brobecker <brobecker@gnat.com>
8570
8571 * defs.h (language): Add language_minimal enum value.
8572 * c-lang.c (minimal_language_defn): New language definition.
8573 (_initialize_c_language): Add the new minimal language to the list
8574 of languages known to GDB.
8575
8576 2003-05-08 Kevin Buettner <kevinb@redhat.com>
8577
8578 * frame.c (get_frame_type): Don't attempt to lazily initialize
8579 frame's unwinder for legacy frames.
8580
8581 2003-05-07 Andrew Cagney <cagney@redhat.com>
8582
8583 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8584 and "regcache" parameters.
8585 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8586
8587 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8588
8589 * dwarf2read.c (dwarf_decode_lines): Only use output of
8590 check_cu_functions() when calling record_line(). Do not update
8591 the current address.
8592
8593 2003-05-07 Andrew Cagney <cagney@redhat.com>
8594
8595 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8596 code.
8597
8598 2003-05-07 Jim Blandy <jimb@redhat.com>
8599
8600 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8601 'maint info symtabs' and 'maint info psymtabs'.
8602 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8603 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8604 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8605 Declarations updated.
8606 * maint.c (maintenance_list_command): Delete.
8607 (_initialize_maint_cmds): Update calls to add_cmd.
8608 * gdbcmd.h (maintenancelistlist): Delete declaration.
8609 * cli/cli-cmds.c (maintenancelistlist): Delete.
8610 (init_cmd_lists): Don't initialize it.
8611 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8612
8613 2003-05-07 Andrew Cagney <cagney@redhat.com>
8614
8615 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8616 "regcache".
8617 (d10v_print_registers_info): Update.
8618 (d10v_dmap_register, d10v_imap_register): Delete functions.
8619 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8620 and "imap_register".
8621 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8622 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8623 * arch-utils.c (generic_remote_translate_xfer_address): Add
8624 "regcache" and "gdbarch" parameters.
8625 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8626 parameter. Change class to multi-arch.
8627 * gdbarch.h, gdbarch.c: Re-generate.
8628 * remote.c (remote_xfer_memory): Use
8629 gdbarch_remote_translate_xfer_address.
8630
8631 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8632
8633 * infrun.c (prev_pc): Move declaration ahead of proceed().
8634 (proceed): Refresh prev_pc value before resuming.
8635 (stop_stepping): Remove code to refresh prev_pc.
8636
8637 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8638
8639 * nto-tdep.c: Removed stray comment.
8640
8641 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8642
8643 * i386-nto-tdep.c: Fix old K&R function definitions.
8644 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8645 Also change add_show_from_set() call to add_setshow_cmd().
8646 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8647
8648 2003-05-05 Andrew Cagney <cagney@redhat.com>
8649
8650 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8651 (fprint_dummy_frames): New function.
8652 (maintenance_print_dummy_frames): New function.
8653 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8654 * frame.c (fprint_frame_id): Make global.
8655 * frame.h (fprint_frame_id): Declare.
8656 * Makefile.in (dummy-frame.o): Update dependencies.
8657
8658 2003-05-05 Andrew Cagney <cagney@redhat.com>
8659
8660 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8661 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8662 SIZEOF_CALL_DUMMY_WORDS.
8663 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8664 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8665 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8666 CALL_DUMMY_BREAKPOINT_OFFSET.
8667 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8668 CALL_DUMMY_START_OFFSET.
8669 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8670 * gdbarch.h, gdbarch.c: Re-generate.
8671 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8672 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8673 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8674 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8675 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8676 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8677 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8678 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8679 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8680 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8681 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8682 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8683 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8684 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8685 * config/sparc/tm-sparc.h: Update.
8686
8687 2003-05-05 Kris Warkentin <kewarken@qnx.com>
8688
8689 * configure.tgt: Add i[3456]86-*-nto*.
8690 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8691 * nto-tdep.c: New file. Neutrino target support routines.
8692 * nto-tdep.h: New file. Neutrino target header.
8693 * config/tm-qnxnto.h: New file.
8694 * config/i386/i386nto.mt: New file.
8695 * config/i386/tm-i386nto.h: New file.
8696
8697 2003-05-04 Andrew Cagney <cagney@redhat.com>
8698
8699 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8700 (load_infrun_state): Ditto.
8701 (struct thread_info): Drop "prev_func_name" field.
8702 * thread.c (load_infrun_state): Update.
8703 (save_infrun_state): Update.
8704 * infrun.c (prev_func_name): Delete variable.
8705 (init_wait_for_inferior): Do not clear prev_func_name.
8706 (stop_stepping, keep_going, context_switch): Do not swap
8707 prev_func_name.
8708 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8709 instead of PC_IN_SIGTRAMP.
8710
8711 2003-05-04 Andrew Cagney <cagney@redhat.com>
8712
8713 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8714 REGISTER_BYTE with register_offset_hack.
8715 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8716 that REGISTER_BYTE is consistent with the regcache.
8717 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8718 * gdbarch.h, gdbarch.c: Regenerate.
8719
8720 2003-05-04 Mark Kettenis <kettenis@gnu.org>
8721
8722 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8723 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8724
8725 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8726
8727 2003-05-03 J. Brobecker <brobecker@gnat.com>
8728
8729 From Thierry Schneider <tpschneider1@yahoo.com>
8730 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8731 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8732 (mi-cmd-symbol.o): Add rule.
8733
8734 2003-05-03 Andrew Cagney <cagney@redhat.com>
8735
8736 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8737 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8738 * gdbarch.h, gdbarch.c: Re-generate.
8739 * d10v-tdep.c (d10v_push_dummy_code): New function.
8740 (d10v_gdbarch_init): Set push_dummy_code.
8741 * infcall.c (legacy_push_dummy_code): New function.
8742 (generic_push_dummy_code): New function.
8743 (push_dummy_code): New function.
8744 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8745 instead of dummy_addr, to push_dummy_call. Move call to
8746 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8747 switch.
8748 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8749
8750 2003-05-03 Andrew Cagney <cagney@redhat.com>
8751
8752 * disasm.h (print_insn): Declare.
8753 * disasm.c (init_gdb_disassemble_info): New function.
8754 (gdb_disassembly): Call init_gdb_disassemble_info.
8755 (gdb_print_insn): New function.
8756 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8757 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8758 * mcore-tdep.c: Include "disasm.h"
8759 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8760 * d10v-tdep.c: Include "disasm.h".
8761 (display_trace): Call gdb_print_insn, instead of print_insn.
8762 (print_insn): Delete function.
8763 * printcmd.c: Include "disasm.h".
8764 (print_insn): Delete function.
8765 (print_formatted): Call gdb_print_insn, instead of print_insn.
8766 * Makefile.in (printcmd.o): Update dependencies.
8767 (mcore-tdep.o, d10v-tdep.o): Ditto.
8768
8769 2003-05-02 Andrew Cagney <cagney@redhat.com>
8770
8771 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8772 PC_REGNUM, re-indent.
8773 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8774 PC_REGNUM isn't set.
8775
8776 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8777 * gdbarch.h, gdbarch.c: Re-generate.
8778 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8779 register_virtual_size, pc_regnum, or register_bytes.
8780 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8781 (d10v_register_type): Use D10V_PC_REGNUM.
8782 (d10v_print_registers_info, d10v_read_pc): Ditto.
8783 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8784 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8785
8786 2003-05-02 David Carlton <carlton@bactrian.org>
8787
8788 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8789 the name with mstrsave.
8790
8791 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
8792
8793 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8794 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8795 (host_charset_name, target_charset_name): New vars for use by
8796 set/show commands.
8797 (host_charset_enum, target_charset_enum): New enums for set/show
8798 commands.
8799 (set_charset_sfunc, set_host_charset_sfunc,
8800 set_target_charset_sfunc): New functions.
8801 (set_host_charset, set_target_charset): Make static.
8802 (list_charsets, set_host_charset_command,
8803 set_target_charset_command): Delete functions.
8804 (show_charset_command): Rewrite as....
8805 (show_charset): Hook this up with the set/show command mechanism.
8806 (_initialize_charset): Change names of charsets to match the
8807 set/show enums. Use host_charset_name and target_charset_name.
8808 Use set/show mechanism for charset, host-charset, target-charset
8809 commands. Do not make 'show host-charset' and 'show
8810 target-charset' be aliases of 'show charset'.
8811
8812 * charset.h (set_host_charset, set_target_charset): Don't export,
8813 they are not used outside the file.
8814
8815 2003-05-01 Andrew Cagney <cagney@redhat.com>
8816
8817 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8818 (gdb_disassembly): Make "di" non static, always initialize and
8819 cleanup. Always use dis_asm_read_memory.
8820 (gdb_dis_asm_read_memory): Delete function.
8821
8822 2003-05-01 Andrew Cagney <cagney@redhat.com>
8823
8824 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8825 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8826
8827 2003-04-30 Andrew Cagney <cagney@redhat.com>
8828
8829 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8830 "tm_print_insn_info".
8831 (TARGET_PRINT_INSN_INFO): Delete macro.
8832 (dis_asm_read_memory): Delete function declaration.
8833 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8834 (tm_print_insn_info): Delete variable definition.
8835 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8836 * gdbarch.h, gdbarch.c: Re-generate.
8837 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8838 "deprecated_tm_print_insn_info".
8839 * mcore-tdep.c (mcore_dump_insn): Ditto.
8840 * mips-tdep.c (mips_gdbarch_init): Ditto.
8841 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8842 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8843 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8844 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8845 instead of TARGET_PRINT_INSN_INFO, add comment.
8846 * s390-tdep.c (s390_get_frame_info): Instead of
8847 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8848 (s390_check_function_end, s390_is_sigreturn): Ditto.
8849 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8850 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8851 * disasm.c: Include "gdbcore.h".
8852 (_initialize_disasm): New function, initialize
8853 "deprecated_tm_print_insn_info".
8854 (deprecated_tm_print_insn_info): New variable.
8855 (dis_asm_read_memory): Moved from "corefile.c", made static.
8856 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8857 * Makefile.in (disasm.o): Update dependencies.
8858
8859 2003-04-30 Andrew Cagney <cagney@redhat.com>
8860
8861 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8862
8863 2003-04-29 Adam Fedor <fedor@gnu.org>
8864
8865 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8866 * infcall.c (find_function_addr): Make non-static.
8867 * infcall.h (find_function_addr): Declare.
8868 * Makefile.in (eval.o): Update dependencies.
8869
8870 2003-04-28 Adam Fedor <fedor@gnu.org>
8871
8872 * symtab.c (symbol_find_demangled_name): Check for and demangle
8873 ObjC symbols.
8874 (symbol_init_demangled_name): Init for language_objc as well.
8875
8876 2003-04-28 Andrew Cagney <cagney@redhat.com>
8877
8878 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8879 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8880 * gdbarch.h, gdbarch.c: Re-generate.
8881 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8882 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8883 * inferior.h (deprecated_read_fp): Rename read_fp.
8884 (generic_target_read_fp): Delete declaration.
8885 * regcache.c (generic_target_read_fp): Delete function.
8886 (deprecated_read_fp): Replace read_fp, use
8887 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8888 * d10v-tdep.c (d10v_read_fp): Delete function.
8889 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8890
8891 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8892 deprecated_target_read_fp to generic_target_read_fp.
8893 * sh-tdep.c (sh_gdbarch_init): Ditto.
8894 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8895 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8896 * frv-tdep.c (frv_gdbarch_init): Ditto.
8897
8898 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8899 deprecated_fp_regnum.
8900 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8901 * vax-tdep.c (vax_gdbarch_init): Ditto.
8902 * v850-tdep.c (v850_gdbarch_init): Ditto.
8903 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8904 * sh-tdep.c (sh_gdbarch_init): Ditto.
8905 * s390-tdep.c (s390_gdbarch_init): Ditto.
8906 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8907 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8908 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8909 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8910 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8911 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8912 * i386-tdep.c (i386_gdbarch_init): Ditto.
8913 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8914 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8915 * frv-tdep.c (frv_gdbarch_init): Ditto.
8916 * cris-tdep.c (cris_gdbarch_init): Ditto.
8917 * avr-tdep.c (avr_gdbarch_init): Ditto.
8918 * arm-tdep.c (arm_gdbarch_init): Ditto.
8919 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8920
8921 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8922 * v850-tdep.c (v850_gdbarch_init): Ditto.
8923 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8924 * sh-tdep.c (sh_gdbarch_init): Ditto.
8925 * s390-tdep.c (s390_gdbarch_init): Ditto.
8926 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8927 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8928 * mips-tdep.c (mips_gdbarch_init): Ditto.
8929 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8930 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8931 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8932 * frv-tdep.c (frv_gdbarch_init): Ditto.
8933 * avr-tdep.c (avr_gdbarch_init): Ditto.
8934 * arm-tdep.c (arm_gdbarch_init): Ditto.
8935
8936 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8937 DEPRECATED_FP_REGNUM.
8938 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8939 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8940 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8941 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8942 (sparc32_register_virtual_type): Ditto.
8943 * sh-tdep.c (sh64_frame_chain): Ditto.
8944 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8945 (sh_nofp_frame_init_saved_regs): Ditto.
8946 (sh64_nofp_frame_init_saved_regs): Ditto.
8947 (sh_fp_frame_init_saved_regs): Ditto.
8948 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8949 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8950 * procfs.c (procfs_fetch_registers): Ditto.
8951 (procfs_store_registers): Ditto.
8952 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8953 (store_inferior_registers, fetch_core_registers): Ditto.
8954 (fetch_kcore_registers, clear_regs): Ditto.
8955 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8956 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8957 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8958 * nlm/i386.c (do_status): Ditto.
8959 * mipsv4-nat.c (supply_gregset): Ditto.
8960 * mips-tdep.c: Ditto for comments.
8961 * mips-nat.c (fetch_inferior_registers): Ditto.
8962 (store_inferior_registers, fetch_core_registers): Ditto.
8963 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8964 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8965 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8966 (i386_do_pop_frame, i386_register_type): Ditto.
8967 * hppa-tdep.c (hppa_frame_chain): Ditto.
8968 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8969 (hppa_pop_frame, hppa_read_fp): Ditto.
8970 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8971 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8972 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8973 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8974 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8975 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8976 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8977 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8978 * blockframe.c: Ditto for comments.
8979 * arch-utils.h: Ditto for comments.
8980 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8981 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8982 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8983 * alpha-tdep.h: Ditto for comments.
8984 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8985 (alpha_cannot_store_register): Ditto.
8986 (alpha_push_dummy_frame): Ditto.
8987 * alpha-nat.c (supply_gregset): Ditto.
8988
8989 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8990 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8991 * config/sparc/tm-sparc.h: Update comment.
8992
8993 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8994 deprecated_read_fp instead of TARGET_READ_FP.
8995 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8996 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8997 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8998 deprecated_read_fp instead of read_fp.
8999 * s390-tdep.c (s390_push_arguments): Ditto.
9000 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9001 * frame.h: Ditto in comments.
9002 * frame.c (legacy_get_prev_frame): Ditto.
9003 * dummy-frame.c (dummy_frame_this_id): Ditto.
9004 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9005
9006 2003-04-28 Andrew Cagney <cagney@redhat.com>
9007
9008 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9009 * gdbarch.h, gdbarch.c: Re-generate.
9010 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9011 * vax-tdep.c (_initialize_vax_tdep): Update.
9012 * v850-tdep.c (_initialize_v850_tdep): Update.
9013 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9014 * s390-tdep.c (_initialize_s390_tdep): Update.
9015 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9016 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9017 * mips-tdep.c (_initialize_mips_tdep): Update.
9018 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9019 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9020 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9021 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9022 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9023 * frv-tdep.c (_initialize_frv_tdep): Update.
9024 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9025 (_initialize_cris_tdep): Update.
9026 * arch-utils.c (legacy_print_insn): Update.
9027 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9028
9029 2003-04-26 Adam Fedor <fedor@gnu.org>
9030
9031 * linespec.c (decode_objc): New function to decode ObjC calls
9032 (decode_line_1): Check for ObjC calls (using decode_objc)
9033 * Makefile (linespec.o): Update dependencies.
9034
9035 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
9036
9037 * breakpoint.h (struct breakpoint_ops): New.
9038 (struct breakpoint): Add ops member.
9039
9040 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9041 (mention): Use new breakpoint ops member.
9042 (set_raw_breakpoint): Initialize ops field to NULL.
9043 (print_exception_catchpoint, print_one_exception_catchpoint)
9044 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9045 (gnu_v3_exception_catchpoint_ops): New.
9046 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9047
9048 2003-04-25 Adam Fedor <fedor@gnu.org>
9049
9050 * Makefile.in (COMMON_OBS): Add objc-lang.o
9051
9052 2003-04-25 Andrew Cagney <cagney@redhat.com>
9053
9054 * d10v-tdep.c (print_insn): Delete function.
9055 (display_trace): Use TARGET_PRINT_INSN.
9056 (_initialize_d10v_tdep): Do not set tm_print_insn.
9057 (d10v_gdbarch_init): Set print_insn.
9058
9059 2003-04-25 Andrew Cagney <cagney@redhat.com>
9060
9061 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9062 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9063 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9064 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9065 (nr_dmap_regs, a0_regnum): ... new functions.
9066 (d10v_print_registers_info): Use a0_regnum, use register_size.
9067 (d10v_register_byte): Delete function.
9068 (d10v_register_raw_size): Delete function.
9069 (d10v_register_type): Use a0_regnum.
9070 (d10v_print_registers_info): Use a0_regnum.
9071 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9072 (d10v_gdbarch_init): Do not set register_byte or
9073 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9074 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9075 extract_address.
9076 (trace_command): Use XCALLOC.
9077 (print_insn): Delete reference to tm_print_insn.
9078 (saved_regs_unwinder): Use store_unsigned_integer instead of
9079 store_address.
9080 * frame.h (FRAME_OBSTACK_CALLOC): Define
9081
9082 2003-04-25 David Carlton <carlton@bactrian.org>
9083
9084 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9085
9086 2003-04-24 Adam Fedor <fedor@gnu.org>
9087
9088 * objc-lang.c: Include "valprint.h"
9089 * Makefile.in (objc-lang.o): Update dependencies.
9090
9091 2003-04-24 Adam Fedor <fedor@gnu.org>
9092
9093 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9094 architecture dependant compilation and mark as unimplemented
9095 (until they get put in the gdbarch vector).
9096
9097 2003-04-23 David Carlton <carlton@bactrian.org>
9098
9099 * cp-support.c (cp_find_first_component): Accept 'operator' in
9100 more locations.
9101
9102 2003-04-23 Andrew Cagney <cagney@redhat.com>
9103
9104 * infcall.c (call_function_by_hand): Eliminate redundant
9105 indentation. Move "saved_async" and "old_cleanups" to where they
9106 are needed.
9107
9108 2003-04-23 Andrew Cagney <cagney@redhat.com>
9109
9110 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9111 and "buffer". Move the "name" code to where it is needed.
9112
9113 2003-04-23 Andrew Cagney <cagney@redhat.com>
9114
9115 * infcall.c (call_function_by_hand): Move variables "start_sp",
9116 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9117 code to ON_STACK switch branch.
9118
9119 2003-04-23 Andrew Cagney <cagney@redhat.com>
9120
9121 * infcall.c (call_function_by_hand): Make declaration of "i",
9122 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9123 lint.
9124
9125 2003-04-23 Andrew Cagney <cagney@redhat.com>
9126
9127 * infcall.c (call_function_by_hand): Delete variable
9128 "n_method_args". Localize "param_type"'s declaration to the loop
9129 that it is used. Reinstate code assigning to said variable -
9130 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9131 Rationalize code using "param_type".
9132
9133 2003-04-22 Andrew Cagney <cagney@redhat.com>
9134
9135 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9136 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9137 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9138 to DEPRECATED_PUSH_RETURN_ADDRESS.
9139
9140 2003-04-22 Kevin Buettner <kevinb@redhat.com>
9141
9142 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9143 on the DWARF2 register number prior to fetching a register.
9144
9145 2003-04-22 J. Brobecker <brobecker@gnat.com>
9146
9147 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9148 Update all the tests using SOFT_FLOAT considering the fact that
9149 this macro was always set to 0.
9150 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9151 considering the fact that this macro was always set to 0.
9152 * hppa-tdep.h (hppa_store_return_value): Likewise.
9153 (hppa_extract_return_value): Likewise.
9154
9155 2003-04-22 J. Brobecker <brobecker@gnat.com>
9156
9157 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9158 the hppa-pro target only.
9159
9160 2003-04-21 J. Brobecker <brobecker@gnat.com>
9161
9162 Ongoing multi-arch conversion effort for HP/UX:
9163 * config/pa/tm-hppa.h: Move all macro that are no longer
9164 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9165 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9166
9167 2003-04-21 J. Brobecker <brobecker@gnat.com>
9168
9169 * config/pa/tm-hppa.h: Obsolete a section that was only used
9170 for hppa-pro.
9171
9172 2003-04-21 J. Brobecker <brobecker@gnat.com>
9173
9174 Ongoing multi-arch conversion for HP/UX.
9175 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9176 if already defined (allows hppa64 to stay non-multiarched for now).
9177 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9178
9179 2003-04-21 Andrew Cagney <cagney@redhat.com>
9180
9181 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9182
9183 2003-04-21 Andrew Cagney <cagney@redhat.com>
9184
9185 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9186 "i386_num_mmx_regs".
9187
9188 2003-04-21 Andrew Cagney <cagney@redhat.com>
9189
9190 * infcall.c: New file.
9191 * infcall.h: New file.
9192 * valarith.c: Include "infcall.h".
9193 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9194 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9195 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9196 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9197 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9198 (SFILES): Add "infcall.c"
9199 (COMMON_OBS): Add "infcall.o".
9200 (infcall.o): Specify dependencies.
9201 * value.h (call_function_by_hand): Delete declaration.
9202 * inferior.h (run_stack_dummy): Delete declaration.
9203 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9204 (run_stack_dummy): Move to "infcall.c", merged into
9205 call_function_by_hand.
9206 * valops.c (call_function_by_hand): Moved to "infcall.c".
9207 (find_function_addr, value_arg_coerce): Ditto.
9208 (unwindonsignal_p, coerce_float_to_double): Ditto.
9209 (_initialize_valops): Move "set/show coerce-float-to-double", and
9210 "set/show unwindonsignal" commands to "infcall.c".
9211 * v850-tdep.c, target.h: Update comments.
9212 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9213 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9214 (sh64_init_extra_frame_info): Update comments.
9215 * mn10300-tdep.c: Update comments.
9216 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9217 * config/sparc/tm-sparc.h: Update comments.
9218 * breakpoint.h: Update comments.
9219 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9220 * arm-tdep.c: Update comment.
9221
9222 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9223
9224 * i386-tdep.c (i386_num_register_names): New variable.
9225 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9226 (MM0_REGNUM): Remove redundant parentheses in define.
9227 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9228 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9229 i386_mxcsr_regnum_p): Remove redundant parentheses.
9230 (i386_register_name): Use i386_num_register_names.
9231
9232 * i386-tdep.c (i386_extract_return_value,
9233 i386_store_return_value): Correct check for availability of
9234 floating-point registers.
9235
9236 * i386-tdep.c (i386_frame_num_args): Remove function.
9237 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9238
9239 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9240 mmx_regnum_to_fp_regnum. Adjust all callers.
9241
9242 * i386-tdep.c (i386_get_longjmp_target): Use
9243 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9244 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9245 extract_address.
9246
9247 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9248
9249 * core-regset.c: Update comments to reflect reality. Re-order
9250 includes.
9251 (fetch_core_registers): Use switch instead of if. Remove
9252 redundant prototype.
9253
9254 2003-04-18 Jim Blandy <jimb@redhat.com>
9255
9256 * s390-tdep.c (s390_frame_align): New function.
9257 (s390_gdbarch_init): Register it with the gdbarch object.
9258
9259 2003-04-17 Richard Henderson <rth@redhat.com>
9260
9261 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9262
9263 2003-04-17 Michael Snyder <msnyder@redhat.com>
9264 Karen Bennet <bennet@redhat.com>
9265
9266 Committed by Elena Zannoni <ezannoni@redhat.com>
9267 * gdb_gcore.sh: New script to create a core dump of a process.
9268
9269 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
9270
9271 * values.c (value_being_returned): Don't fetch the return
9272 value if the return type is void.
9273
9274 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9275
9276 * thread-db.c: Reindented.
9277
9278 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9279
9280 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9281 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9282 as types.
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308 2003-04-16 Kevin Buettner <kevinb@redhat.com>
9309
9310 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9311 the size of ``long double'' to 16, instead of 8.
9312
9313 2003-04-16 Mark Kettenis <kettenis@gnu.org>
9314
9315 * i386-linux-nat.c: Add some whitespace to make things more
9316 readable.
9317 (fetch_register, store_register, fetch_inferior_registers,
9318 store_inferior_registers): Get rid of assignment in if-statement.
9319 (store_register): Fix typo in error message.
9320
9321 2003-04-16 Andrew Cagney <cagney@redhat.com>
9322
9323 * utils.c (xmmalloc): Always allocate something, matches
9324 libiberty/xmalloc's semantics.
9325 (xmrealloc, xmcalloc): Ditto.
9326
9327 2003-04-16 Andrew Cagney <cagney@redhat.com>
9328
9329 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9330 update comments.
9331 (get_frame_type): Initialize unwind and type when needed.
9332 (get_frame_id, frame_register_unwind): Ditto.
9333
9334 2003-04-16 Andrew Cagney <cagney@redhat.com>
9335
9336 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9337 obsolete.
9338 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9339 * sparcl-stub.c: Obsolete file.
9340 * config/sparc/tm-sparclet.h: Obsolete file.
9341 * sparclet-stub.c: Obsolete file.
9342 * sparclet-rom.c: Obsolete file.
9343 * sparcl-tdep.c: Obsolete file.
9344 * config/sparc/tm-sparclite.h: Obsolete file.
9345 * config/sparc/sparclite.mt: Obsolete file.
9346 * config/sparc/sparclet.mt: Obsolete file.
9347 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9348 sparc86x-*-* obsolete.
9349
9350 2003-04-15 David Carlton <carlton@math.stanford.edu>
9351
9352 * Makefile.in (SFILES): Add cp-namespace.c.
9353 (COMMON_OBS): Add cp-namespace.o.
9354 (block.o): Depend on gdb_obstack_h and cp_support_h.
9355 (buildsym.o): Depend on cp_support_h.
9356 (cp-namespace.o): New.
9357 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9358 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9359 (dwarf2read.o): Depend on cp_support_h.
9360 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9361 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9362 processing_current_namespace.
9363 (read_namespace): Update processing_current_namespace; check for
9364 anonymous namespaces.
9365 (dwarf2_name): New function.
9366 (dwarf2_extension): Ditto.
9367 * cp-support.h: Update copyright, contributors.
9368 Add inclusion guards.
9369 Add opaque declaration for structs obstack, block, symbol.
9370 (struct using_direct): New struct.
9371 Add declarations for cp_find_first_component,
9372 cp_entire_prefix_len, processing_has_namespace_info,
9373 processing_current_namespace, cp_is_anonymous,
9374 cp_add_using_directive, cp_initialize_namespace,
9375 cp_finalize_namespace, cp_set_block_scope,
9376 cp_scan_for_anonymous_namespaces.
9377 * cp-namespace.c: New file.
9378 * cp-support.c: Update copyright.
9379 Include ctype.h, gdb_assert.h, gdbcmd.h.
9380 New variable maint_cplus_cmd_list.
9381 (cp_find_first_component): New function.
9382 (cp_entire_prefix_len, maint_cplus_command)
9383 (first_component_command, _initialize_cp_support): Ditto.
9384 * buildsym.c: Include cp-support.h.
9385 New variable using_list.
9386 (add_symbol_to_list): Check for anonymous namespaces.
9387 (finish_block): Set block's scope.
9388 (start_symtab): Initialize C++ namespace support.
9389 (end_symtab): Finalize C++ namespace support.
9390 * block.h: Add opaque declarations for structs
9391 block_namespace_info, using_direct, and obstack.
9392 Add declarations for block_set_scope and block_set_using.
9393 (struct block): Add 'language_specific' member.
9394 (BLOCK_NAMESPACE): New macro.
9395 * block.c: Include gdb_obstack.h and cp-support.h.
9396 (struct block_namespace_info): New struct.
9397 (block_set_scope): New function.
9398 (block_set_using, block_initialize_namespace): Ditto.
9399
9400 2003-04-14 Kevin Buettner <kevinb@redhat.com>
9401
9402 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9403 (locate_base): Return early if there aren't any link map offsets.
9404 (svr4_solib_create_inferior_hook): Warn if shared library support
9405 is unavailable.
9406
9407 2003-04-14 David Carlton <carlton@math.stanford.edu>
9408
9409 * symtab.c (symbol_set_names): Add prefix when storing Java names
9410 in hash table. Fix for PR java/1039.
9411
9412 2003-04-14 David Carlton <carlton@math.stanford.edu>
9413
9414 * symtab.c (symbol_set_names): Rename 'name' arg to
9415 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9416 * symtab.h: Change 'name' argument in declaration of
9417 symbol_set_names to 'linkage_name'.
9418 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9419
9420 2003-04-14 Andrew Cagney <cagney@redhat.com>
9421
9422 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9423 return the fully sign-extended register value.
9424 (get_frame_pointer): Ditto.
9425 (mips_pop_frame): Initialize "proc_desc" after checking for a
9426 dummy frame.
9427
9428 2003-04-14 Andrew Cagney <cagney@redhat.com>
9429
9430 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9431 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9432 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9433 (mips_push_register): Delete function.
9434 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9435 PUSH_FP_REGNUM.
9436
9437 2003-04-14 Jim Blandy <jimb@redhat.com>
9438
9439 * symmisc.c: #include "gdb_regex.h".
9440 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9441 functions.
9442 * maint.c (maintenance_list_command): New function.
9443 (_initialize_maint_cmds): Register the above as commands.
9444 * symtab.h (maintenance_list_symtabs,
9445 maintenance_list_psymtabs): New declarations.
9446 * cli/cli-cmds.c (maintenancelistlist): New variable.
9447 (init_cmd_lists): Initialize it.
9448 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9449 * gdbcmd.h (maintenancelistlist): New declaration.
9450 * Makefile.in (symmisc.o): Update dependencies.
9451
9452 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
9453
9454 * s390-nat.c: Include asm/types.h for addr_t.
9455
9456 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
9457
9458 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9459 actually incoming type.
9460
9461 2003-04-13 Andrew Cagney <cagney@redhat.com>
9462
9463 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9464 get_next_frame and get_frame_saved_regs.
9465
9466 2003-04-13 Andrew Cagney <cagney@redhat.com>
9467
9468 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9469 of gdbarch_num_regs.
9470
9471 2003-04-13 Andrew Cagney <cagney@redhat.com>
9472
9473 * frame.h: Mention what replaced what in "struct frame_info".
9474 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9475 deprecated_update_frame_base_hack and
9476 deprecated_update_frame_pc_hack.
9477 * hppa-tdep.c: Ditto.
9478
9479 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9480
9481 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9482 to read_reg and update its comment. Remove regnum member.
9483 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9484 Don't call read_reg when setting in_reg. Call read_reg to get
9485 the frame base if it's in a register. Return the register number
9486 on the stack instead of in the context. Remove extra arguments
9487 to read_reg.
9488 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9489 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9490 the register number on the expression stack.
9491 (needs_frame_read_reg): Remove extra arguments.
9492
9493 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9494
9495 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9496 made non-static.
9497 (execute_stack_op): All callers updated.
9498 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9499 * dwarf2loc.c (find_location_expression): New function.
9500 (dwarf_expr_frame_base): Call it.
9501 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9502 (dwarf2_tracepoint_var_ref): New function, broken out from
9503 locexpr_tracepoint_var_ref.
9504 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9505 Make static.
9506 (loclist_read_variable, loclist_read_needs_frame): New functions.
9507 (loclist_describe_location, loclist_tracepoint_var_ref): New
9508 functions.
9509 (dwarf2_loclist_funcs): New struct location_funcs.
9510 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9511 (struct dwarf2_locexpr_baton): Add comments.
9512 (dwarf2_loclist_funcs): New extern.
9513 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9514 base_address and base_known.
9515 (dwarf_loc_buffer): New variable.
9516 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9517 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9518 (dwarf2_has_info): Initialize dwarf_loc_offset.
9519 (dwarf2_build_psymtabs): Read in .debug_loc.
9520 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9521 DWARF_LOC_SIZE.
9522 (psymtab_to_symtab_1): Likewise. Move base address calculation
9523 here, from...
9524 (dwarf2_get_pc_bounds): ... here. Use the base address from
9525 cu_header.
9526 (dwarf2_symbol_mark_computed): Handle location lists.
9527
9528 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9529
9530 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9531 if the linkage name demangled successfully.
9532
9533 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9534
9535 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9536 disassmbly_flavour): Removed.
9537
9538 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9539
9540 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9541
9542 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9543
9544 2003-04-12 Andrew Cagney <cagney@redhat.com>
9545
9546 * frame.h (struct frame_info): Move definition from here ...
9547 * frame.c (struct frame_info): ... to here.
9548
9549 2003-04-12 Andrew Cagney <cagney@redhat.com>
9550
9551 * gdbthread.h (save_infrun_state): Delete parameter
9552 "prev_func_start".
9553 (struct thread_info): Delete field "prev_func_start".
9554 (load_infrun_state): Ditto.
9555 * thread.c (load_infrun_state, save_infrun_state): Update.
9556 * infrun.c (prev_func_start): Delete variable.
9557 (context_switch, init_wait_for_inferior): Update.
9558 (stop_stepping, keep_going): Update.
9559
9560 2003-04-12 Andrew Cagney <cagney@redhat.com>
9561
9562 * gdbarch.sh: Add missing opaque declarations.
9563 * gdbarch.h: Regnerate.
9564 * symtab.h: Add missing opaque declarations.
9565 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9566 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9567 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9568 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9569 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9570 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9571 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9572 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9573 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9574 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9575 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9576 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9577 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9578
9579 2003-04-11 Andrew Cagney <cagney@redhat.com>
9580
9581 * frame.c (get_frame_id): Return this frame's "id".
9582 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9583 function start.
9584 (legacy_saved_regs_this_id): Replace function body with
9585 internal-error.
9586 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9587 FRAME_OBSTACK_ZALLOC.
9588 (create_new_frame): Mark the frame ID as valid.
9589
9590 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
9591
9592 * Makefile.in (libbfd_h): Added missing setting.
9593 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9594 according to the selected ABI.
9595
9596 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9597
9598 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9599
9600 2003-04-11 Andrew Cagney <cagney@redhat.com>
9601
9602 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9603 SAVED_PC_AFTER_CALL.
9604 * gdbarch.h, gdbarch.c: Regenerate.
9605 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9606 * x86-64-tdep.c (x86_64_init_abi): Update.
9607 * vax-tdep.c (vax_gdbarch_init): Update.
9608 * v850-tdep.c (v850_gdbarch_init): Update.
9609 * sparc-tdep.c (sparc_gdbarch_init): Update.
9610 * sh-tdep.c (sh_gdbarch_init): Update.
9611 * s390-tdep.c (s390_gdbarch_init): Update.
9612 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9613 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9614 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9615 * mips-tdep.c (mips_gdbarch_init): Update.
9616 * mcore-tdep.c (mcore_gdbarch_init): Update.
9617 * m68k-tdep.c (m68k_gdbarch_init): Update.
9618 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9619 * ia64-tdep.c (ia64_gdbarch_init): Update.
9620 (ia64_saved_pc_after_call): Update declaration.
9621 * i386ly-tdep.c (i386lynx_init_abi): Update.
9622 * i386-tdep.c (i386_gdbarch_init): Update.
9623 * hppa-tdep.c (hppa_gdbarch_init): Update.
9624 * h8300-tdep.c (h8300_gdbarch_init): Update.
9625 * frv-tdep.c (frv_gdbarch_init): Update.
9626 * cris-tdep.c (cris_gdbarch_init): Update.
9627 * avr-tdep.c (avr_gdbarch_init): Update.
9628 * arm-tdep.c (arm_gdbarch_init): Update.
9629 * alpha-tdep.c (alpha_gdbarch_init): Update.
9630 * ns32knbsd-nat.c (frame_num_args): Update.
9631 * ns32k-tdep.c (umax_frame_num_args): Update.
9632 * mips-tdep.c (mips_init_frame_pc_first): Update.
9633 * infrun.c (step_over_function): Update.
9634 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9635 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9636 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9637 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9638 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9639 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9640 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9641 * arch-utils.c (init_frame_pc_default): Update.
9642 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9643 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9644 declaration.
9645
9646 2003-04-11 Andrew Cagney <cagney@redhat.com>
9647
9648 * i387-tdep.c: Update copyright.
9649 (i387_to_double): Delete function.
9650 (double_to_i387): Delete function.
9651
9652 2003-04-10 Andrew Cagney <cagney@redhat.com>
9653
9654 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9655 frame's function's address. Simplify.
9656 (d10v_frame_unwind_cache): Check that the frame's function is
9657 non-zero.
9658
9659 2003-04-10 Jim Blandy <jimb@redhat.com>
9660
9661 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9662 call to set_gdbarch_deprecated_push_arguments.
9663
9664 2003-04-10 Andrew Cagney <cagney@redhat.com>
9665
9666 * frame.c (fprint_frame_id): New function.
9667 (fprint_frame_type, fprint_frame): New function.
9668 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9669 (create_sentinel_frame, get_frame_id): Ditto.
9670 (frame_id_p, frame_id_eq): Ditto.
9671 (frame_id_inner, create_new_frame): Ditto.
9672 (legacy_get_prev_frame, get_prev_frame): Ditto.
9673 (deprecated_update_frame_pc_hack): Ditto.
9674 (frame_register_unwind): Ditto.
9675 (deprecated_update_frame_base_hack): Ditto.
9676
9677 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9678
9679 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9680 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9681 frame_chain function.
9682 * Makefile.in: Add dependencies due to above change.
9683
9684 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9685
9686 * blockframe.c (legacy_frame_chain_valid): Move call to
9687 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9688 inside_entry_file.
9689
9690 2003-04-09 Andrew Cagney <cagney@redhat.com>
9691
9692 * frame.h (struct frame_id): Replace "pc" and "base" with
9693 "stack_addr" and "code_addr". Update comments.
9694 (frame_id_build): Update parameter names and comment.
9695 (struct frame_info): Replace "id_p" and "id" with "this_id".
9696 * dummy-frame.c (dummy_frame_this_id): Update.
9697 * breakpoint.c (print_one_breakpoint): Update.
9698 * frame.c (get_frame_id): Update.
9699 (get_frame_base, frame_id_build): Update.
9700 (create_sentinel_frame, legacy_get_prev_frame): Update.
9701 (deprecated_update_frame_base_hack): Update.
9702 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9703 (frame_id_inner): Ditto.
9704
9705 2003-04-09 Andrew Cagney <cagney@redhat.com>
9706
9707 * defs.h (gdb_print_host_address): Make "addr" parameter a
9708 pointer constant.
9709 * utils.c (gdb_print_host_address): Update.
9710
9711 2003-04-09 Kevin Buettner <kevinb@redhat.com>
9712
9713 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9714 register number for R0 is 0.
9715
9716 2003-04-09 J. Brobecker <brobecker@gnat.com>
9717
9718 * frame.h (struct gdbarch): Add opaque structure definition
9719 to avoid a compilation warning on LynxOS 4.0.
9720
9721 2003-04-09 Andrew Cagney <cagney@redhat.com>
9722
9723 * frame.h (struct frame_info): Delete field "pc". Replace
9724 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9725 structure.
9726 * frame.c (frame_pc_unwind): Update.
9727 (create_sentinel_frame): Do not set "pc".
9728 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9729 (get_frame_pc): Call frame_pc_unwind.
9730 (deprecated_update_frame_pc_hack): Update.
9731 (create_new_frame): Use "pc" not "->pc".
9732
9733 2003-04-09 Andrew Cagney <cagney@redhat.com>
9734
9735 * frame.c (get_frame_id): Eliminate code updating "frame".
9736 (legacy_get_prev_frame): Ditto.
9737 (get_frame_base): Return id.base directly.
9738 (deprecated_update_frame_base_hack): Update "id.base".
9739 * frame.h (struct frame_info): Delete field "frame".
9740
9741 2003-04-09 Andrew Cagney <cagney@redhat.com>
9742
9743 * NEWS: Mention that the "Sequent family" is obsolete.
9744 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9745 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9746 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9747 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9748 * config/i386/tm-ptx4.h: Obsolete file.
9749 * config/i386/tm-ptx.h: Obsolete file.
9750 * symm-tdep.c: Obsolete file.
9751 * config/i386/symmetry.mt: Obsolete file.
9752 * config/i386/tm-symmetry.h: Obsolete file.
9753 * symm-nat.c: Obsolete file.
9754 * config/i386/nm-symmetry.h: Obsolete file.
9755 * config/i386/xm-symmetry.h: Obsolete file.
9756 * config/i386/symmetry.mh: Obsolete file.
9757 * config/i386/nm-ptx4.h: Obsolete file.
9758 * config/i386/ptx4.mh: Obsolete file.
9759 * config/i386/ptx.mt: Obsolete file.
9760 * config/i386/ptx.mh: Obsolete file.
9761 * config/i386/xm-ptx4.h: Obsolete file.
9762 * config/i386/xm-ptx.h: Obsolete file.
9763
9764 2003-04-09 Andrew Cagney <cagney@redhat.com>
9765
9766 Obsolete mips*-*-mach3*.
9767 * NEWS: Mention that mips*-*-mach3* is obsolete.
9768 * m3-nat.c: Obsolete file.
9769 * config/nm-m3.h: Obsolete file.
9770 * config/mips/tm-mipsm3.h: Obsolete file.
9771 * config/mips/mipsm3.mt: Obsolete file.
9772 * config/mips/mipsm3.mh: Obsolete file.
9773 * config/mips/xm-mipsm3.h: Obsolete file.
9774 * mipsm3-nat.c: Obsolete file.
9775 * configure.host: Obsolete mips-dec-mach3*.
9776 * configure.tgt: Obsolete mips*-*-mach3*.
9777
9778 2003-04-09 Andrew Cagney <cagney@redhat.com>
9779
9780 * doublest.h: Update copyright.
9781 (deprecated_store_floating, deprecated_extract_floating): Rename
9782 store_floating and extract_floating. Update comments.
9783 * doublest.c: Update copyright.
9784 (extract_floating_by_length): Replace extract_floating.
9785 (store_floating_by_length): Replace store_floating.
9786 (deprecated_extract_floating): New function.
9787 (deprecated_store_floating): New function.
9788 (extract_typed_floating): Call extract_floating_by_length.
9789 (store_typed_floating): Call store_floating_by_length.
9790 * x86-64-tdep.c (x86_64_store_return_value): Update.
9791 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9792 (sh64_extract_return_value): Update.
9793 (sh_sh4_register_convert_to_virtual): Update.
9794 (sh_sh64_register_convert_to_virtual): Update.
9795 (sh_sh4_register_convert_to_raw): Update.
9796 (sh_sh64_register_convert_to_raw): Update.
9797 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9798 (rs6000_register_convert_to_raw): Update.
9799 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9800 (ia64_register_convert_to_raw): Update.
9801 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9802 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9803 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9804 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9805 (alpha_register_convert_to_raw): Update.
9806
9807 2003-04-08 Andrew Cagney <cagney@redhat.com>
9808
9809 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9810 * gdbarch.h, gdbarch.c: Re-generate.
9811 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9812 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9813 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9814 conditionally, use frame_pc_unwind as an alternative. Add
9815 comments.
9816 * arch-utils.c (init_frame_pc_default): Only call
9817 SAVED_PC_AFTER_CALL when available.
9818
9819 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9820
9821 * infrun.c (stop_soon): Rename from stop_soon_quietly.
9822 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9823 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9824 (start_remote): Ditto.
9825 (handle_inferior_event): Ditto.
9826 (save_inferior_status): Ditto.
9827 (restore_inferior_status): Ditto.
9828 * infcmd.c (attach_command): Ditto.
9829 * fork-child.c (startup_inferior): Ditto.
9830 * inferior.h (stop_soon): Rename from stop_soon_quietly.
9831 * alpha-tdep.c (heuristic_proc_start): Ditto.
9832 * mips-tdep.c (heuristic_proc_start): Ditto.
9833 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9834 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9835 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9836 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9837 * remote-vx.c (vx_create_inferior): Ditto.
9838
9839 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9840
9841 * infrun.c (stop_soon_quietly): Make it an enum, to better
9842 override the default behavior of handle_inferior_event.
9843 (clear_proceed_status): Update uses of stop_soon_quietly to
9844 reflect that it is now an enum.
9845 (start_remote): Ditto.
9846 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9847 is set to handle the new GNU/Linux kernel behavior for
9848 attach/sigstop. Update uses of stop_soon_quietly.
9849 * inferior.h (enum stop_kind): New enum.
9850 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9851 Reset normal handle_inferior_event behavior, afterwards.
9852 * fork-child.c (startup_inferior): Update.
9853 * alpha-tdep.c (heuristic_proc_start): Update.
9854 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9855 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9856 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9857 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9858 * remote-vx.c (vx_create_inferior): Update.
9859 * mips-tdep.c (heuristic_proc_start): Update.
9860
9861 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
9862
9863 * disasm.c (dump_insns): Move variables inside loop, or they will
9864 be freed more than once, causing wild memory corruptions.
9865 (gdb_disassembly): Look for the substring "-thread",
9866 instead of "-threads" in the target name, to make sure to find
9867 the 'multi-thread' target. Also, make sure we do the right thing
9868 with the "core" target.
9869
9870 2003-04-07 Kevin Buettner <kevinb@redhat.com>
9871
9872 * mips-tdep.c (mips_print_fp_register): New function, created from
9873 do_fp_register_row(). Registers are now (also) printed as hex.
9874 Only one register is printed per row.
9875 (mips_print_register, do_fp_register_row): Print floating point
9876 registers with mips_print_fp_register().
9877
9878 2003-04-06 Andrew Cagney <cagney@redhat.com>
9879
9880 * valprint.h (inspect_it): Add extern declaration.
9881 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9882 (selectors_info, classes_info): Ditto.
9883 (find_objc_msgcall): Fix indentation.
9884 (objc_printstr): Delete extern declarations.
9885
9886 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9887
9888 2003-04-06 Andrew Cagney <cagney@redhat.com>
9889
9890 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9891 Update comment.
9892 * frame.c (legacy_saved_regs_this_id): Update.
9893 (legacy_get_prev_frame): Update.
9894 * xstormy16-tdep.c: Update comment.
9895 * sparc-tdep.c (sparc_frame_chain): Update comment.
9896 * blockframe.c (legacy_frame_chain_valid): Update.
9897
9898 2003-04-06 Andrew Cagney <cagney@redhat.com>
9899
9900 * valprint.c (val_print_type_code_int): Delete #ifdef
9901 PRINT_TYPELESS_INTEGER code.
9902
9903 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9904 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9905 multi-arch definition.
9906 * gdbarch.h: Re-generate.
9907
9908 2003-04-05 Andrew Cagney <cagney@redhat.com>
9909
9910 Eliminate FRAME_FIND_SAVED_REGS.
9911 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9912 Change FSR parameter to a pointer.
9913 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9914 Assume FSR parameter is a pointer.
9915 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9916 Make fsr a pointer.
9917 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9918 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9919 saved_regs a pointer.
9920 (hppa_frame_saved_pc): Ditto.
9921 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9922 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9923 pointer.
9924 (restore_pc_queue): Make fsr a pointer.
9925 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9926 (hppa_frame_chain): Make saved_regs a pointer, call
9927 hppa_frame_init_saved_regs.
9928 * sparc-tdep.c: Include "gdb_assert.h".
9929 (sparc_frame_find_saved_regs): Replace internal_error with
9930 gdb_assert.
9931 * remote-vxsparc.c (vx_read_register): Delete reference to
9932 FRAME_FIND_SAVED_REGS.
9933 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9934 * gdbarch.h: Regenerate.
9935 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9936 (deprecated_get_frame_saved_regs): Delete declaration.
9937 (struct frame_saved_regs): Delete definition.
9938 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9939 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9940 (hppa_frame_find_saved_regs): Delete declaration.
9941 (FRAME_FIND_SAVED_REGS): Delete macro.
9942 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9943 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9944 FRAME_FIND_SAVED_REGS in comment.
9945
9946 2003-04-05 Andrew Cagney <cagney@redhat.com>
9947
9948 * frame.c (frame_func_unwind, get_frame_func): New functions.
9949 * frame.h (get_frame_func, frame_func_unwind): Declare.
9950 (struct frame_info): Add field "prev_func" for caching the
9951 previous frame's function address.
9952 * arm-tdep.c (arm_frameless_function_invocation): Combine
9953 get_pc_function_start and get_frame_pc into get_frame_func.
9954 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9955 (sh64_nofp_frame_init_saved_regs): Ditto.
9956 * s390-tdep.c (s390_function_start): Ditto.
9957 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9958 (rs6000_frameless_function_invocation): Ditto.
9959 (rs6000_frame_saved_pc): Ditto.
9960 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9961 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9962 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9963 (i386_frame_init_saved_regs): Ditto.
9964 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9965 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9966 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9967 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9968 * blockframe.c (frameless_look_for_prologue): Ditto.
9969
9970 2003-04-05 Andrew Cagney <cagney@redhat.com>
9971
9972 * frame.c (legacy_get_prev_frame): Link prev to next at the
9973 function start. Update comments.
9974
9975 2003-04-05 Andrew Cagney <cagney@redhat.com>
9976
9977 * frame.c (get_frame_id): Update comment.
9978 (legacy_get_prev_frame): Update comment.
9979 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9980 * gdbarch.h: Regenerate.
9981 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9982 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9983
9984 2003-04-05 Andrew Cagney <cagney@redhat.com>
9985
9986 * stack.c (print_frame_info): Use get_frame_pc.
9987
9988 2003-04-04 Andrew Cagney <cagney@redhat.com>
9989
9990 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9991 the frame's type from the unwinder.
9992 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9993 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9994 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9995 (get_frame_base_address): Use get_frame_type.
9996 (get_frame_locals_address, get_frame_args_address): Ditto.
9997 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9998 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9999 (struct frame_info): Add comment explaining why the frame contains
10000 a "type" field.
10001 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10002 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10003 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10004 NORMAL_FRAME.
10005 * frame-unwind.h: Include "frame.h".
10006 (struct frame_unwind): Add "type" field.
10007 * Makefile.in (frame_unwind_h): Add $(frame_h).
10008
10009 2003-04-04 Andrew Cagney <cagney@redhat.com>
10010
10011 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10012 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10013 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10014 get_frame_base.
10015 (d10v_unwind_dummy_id): Use frame_id_build.
10016 * frame.c (find_frame_sal): Use get_frame_pc.
10017 (create_new_frame): Use deprecated_update_frame_pc_hack and
10018 deprecated_update_frame_base_hack.
10019 (create_sentinel_frame): Add comment about ->pc going away.
10020 (get_prev_frame): Add comment about ->pc going away.
10021 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10022 frame_id_build, deprecated_update_frame_pc_hack and
10023 deprecated_update_frame_base_hack.
10024 (select_frame): Use get_frame_pc.
10025 (legacy_saved_regs_this_id): Use frame_id_build.
10026
10027 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
10028
10029 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10030 signed integer case.
10031 (classify_argument): Handle enumerations and references.
10032
10033 2003-04-04 Andrew Cagney <cagney@redhat.com>
10034
10035 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10036 ID to NULL.
10037
10038 2003-04-01 Adam Fedor <fedor@gnu.org>
10039
10040 * gdb/objc-lang.c (selectors_info): Replace calls to
10041 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10042 SYMBOL_NATURAL_NAME.
10043 (classes_info, find_methods): Likewise.
10044
10045 2003-04-03 Kevin Buettner <kevinb@redhat.com>
10046
10047 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10048 ``mach'' to the value determined by bfd_default_set_arch_mach().
10049
10050 2003-04-02 Bob Rossi <bob_rossi@cox.net>
10051
10052 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10053 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10054 (mi-cmd-file.o): Update dependencies.
10055
10056 2003-04-01 Kevin Buettner <kevinb@redhat.com>
10057
10058 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10059 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10060
10061 2003-04-01 Adam Fedor <fedor@gnu.org>
10062
10063 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10064 * language.h (struct language_defn): Add la_demangle.
10065 (language_demangle): Declare.
10066 * language.c (language_demangle): New function.
10067 (unk_lang_demangle): Likewise.
10068 (unknown_language_defn, auto_language_defn, local_language_defn):
10069 Add ukn_lang_demangle.
10070 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
10071 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
10072 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10073 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10074 * jv-lang.c (java_demangle): New function
10075 (java_language_defn): Use it for la_demangle element.
10076 * objc-lang.c (objc_demangle): Add options argument
10077 (objc_language_defn): Use objc_demangle for la_demangle element.
10078 * maint.c (maintenance_demangle): Replace switch with
10079 call to language_demangle.
10080 * utils.c (fprintf_symbol_filtered): Likewise.
10081
10082 2003-04-01 Andrew Cagney <cagney@redhat.com>
10083
10084 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10085 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10086 PRINT_TYPELESS_INTEGER.
10087 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10088 PUSH_RETURN_ADDRESS.
10089
10090 2003-04-01 Andrew Cagney <cagney@redhat.com>
10091
10092 * Makefile.in (d10v-tdep.o): Update dependencies.
10093 * d10v-tdep.c: Include "frame-base.h".
10094 (d10v_frame_unwind): Make constant.
10095 (d10v_frame_base_address): New function.
10096 (d10v_frame_base): New variable.
10097 (d10v_gdbarch_init): Set frame_base default.
10098 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10099 comment for base.
10100 (d10v_frame_unwind_cache): Set and use "prev_sp".
10101 (d10v_frame_this_id): Use the previous frame's inner most stack
10102 address and this frame's func address for the frame ID. Use
10103 frame_id_build. Don't analyze beyond the current instruction.
10104
10105 2003-04-01 Andrew Cagney <cagney@redhat.com>
10106
10107 * frame.h (get_frame_locals_address, get_frame_args_address):
10108 Refer to the base address, instead of the address of the first
10109 local or parameter.
10110
10111 2003-04-01 Andrew Cagney <cagney@redhat.com>
10112
10113 Add frame debug info addresses:
10114 * frame-base.c: New file.
10115 * frame-base.h: New file.
10116 * frame.h (struct frame_base): Add opaque declaration.
10117 (get_frame_base): Update comment.
10118 (get_frame_base_address): Declare.
10119 (get_frame_locals_address): Declare.
10120 (get_frame_args_address): Declare.
10121 (struct frame_info): Add "base" and "base_cache". Update
10122 comments on the unwinder.
10123 * frame.c: Include "frame-base.h".
10124 (get_frame_locals_address): New function.
10125 (get_frame_base_address): New function.
10126 (get_frame_args_address): New function.
10127 * findvar.c (read_var_value): Use get_frame_locals_address and
10128 get_frame_args_address.
10129 * stack.c (frame_info): Use get_frame_locals_address and
10130 get_frame_args_address.
10131 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10132 moved to "frame-base.c".
10133 * printcmd.c (print_frame_nameless_args): Ditto.
10134 * symtab.h (address_class): Update comments.
10135 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10136 get_frame_base_address.
10137 * dwarf2expr.c (execute_stack_op): Ditto.
10138 * Makefile.in (frame_base_h): Define.
10139 (frame.o): Update dependencies.
10140 (frame-base.o): Add dependencies.
10141 (SFILES): Add frame-base.c.
10142 (COMMON_OBS): Add frame-base.o.
10143
10144 2003-04-01 Andrew Cagney <cagney@redhat.com>
10145
10146 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10147 CALL_DUMMY_LENGTH): Ditto.
10148 * gdbarch.c: Re-generate.
10149 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10150 (CALL_DUMMY_LENGTH): Delete macro.
10151 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10152 * arm-tdep.c (arm_gdbarch_init): Ditto.
10153 * avr-tdep.c (avr_gdbarch_init): Ditto.
10154 * cris-tdep.c (cris_gdbarch_init): Ditto.
10155 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10156 * frv-tdep.c (frv_gdbarch_init): Ditto.
10157 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10158 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10159 * i386-tdep.c (i386_gdbarch_init): Ditto.
10160 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10161 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10162 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10163 * mips-tdep.c (mips_gdbarch_init): Ditto.
10164 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10165 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10166 * s390-tdep.c (s390_gdbarch_init): Ditto.
10167 * sh-tdep.c (sh_gdbarch_init): Ditto.
10168 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10169 * v850-tdep.c (v850_gdbarch_init): Ditto.
10170 * vax-tdep.c (vax_gdbarch_init): Ditto.
10171 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10172
10173 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
10174
10175 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10176
10177 2003-04-01 Andrew Cagney <cagney@redhat.com>
10178
10179 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10180 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10181 * gdbarch.h, gdbarch.c: Re-generate.
10182 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10183 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10184 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10185 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10186 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10187 * infcmd.c (run_stack_dummy): Simplify assuming
10188 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10189 * infrun.c (handle_inferior_event): Ditto.
10190 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10191 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10192 * arm-tdep.c (arm_gdbarch_init): Ditto.
10193 * avr-tdep.c (avr_gdbarch_init): Ditto.
10194 * cris-tdep.c (cris_gdbarch_init): Ditto.
10195 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10196 * frv-tdep.c (frv_gdbarch_init): Ditto.
10197 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10198 * i386-tdep.c (i386_gdbarch_init): Ditto.
10199 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10200 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10201 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10202 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10203 * mips-tdep.c (mips_gdbarch_init): Ditto.
10204 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10205 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10206 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10207 * s390-tdep.c (s390_gdbarch_init): Ditto.
10208 * sh-tdep.c (sh_gdbarch_init): Ditto.
10209 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10210 * v850-tdep.c (v850_gdbarch_init): Ditto.
10211 * vax-tdep.c (vax_gdbarch_init): Ditto.
10212 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10213
10214 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
10215
10216 * symfile.c (symfile_relocate_debug_section): Update call to
10217 bfd_simple_get_relocated_section_contents.
10218
10219 2003-03-31 Andrew Cagney <cagney@redhat.com>
10220
10221 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10222 * gdbarch.h, gdbarch.c: Regenerate.
10223 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10224 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10225 available.
10226 * frame.h (generic_fix_call_dummy): Delete declaration.
10227 * dummy-frame.h: Update comment.
10228 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10229 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10230 fix_call_dummy.
10231 * sh-tdep.c (sh_gdbarch_init): Ditto.
10232 * s390-tdep.c (s390_gdbarch_init): Ditto.
10233 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10234 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10235 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10236 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10237 * i386-tdep.c (i386_gdbarch_init): Ditto.
10238 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10239 * frv-tdep.c (frv_gdbarch_init): Ditto.
10240 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10241 * cris-tdep.c (cris_gdbarch_init): Ditto.
10242 * avr-tdep.c (avr_gdbarch_init): Ditto.
10243 * arm-tdep.c (arm_gdbarch_init): Ditto.
10244
10245 2003-03-31 J. Brobecker <brobecker@gnat.com>
10246
10247 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10248 (INIT_FRAME_AP): Likewise.
10249 (EXTRA_FRAME_INFO): Likewise.
10250
10251 2003-03-31 Andrew Cagney <cagney@redhat.com>
10252
10253 * gdbarch.sh: Include "symfile.h".
10254 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10255 * gdbarch.h, gdbarch.c: Re-generate.
10256 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10257 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10258 call_dummy_address, the default is at entry_point_address.
10259 * v850-tdep.c (v850_gdbarch_init): Ditto.
10260 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10261 * sh-tdep.c (sh_gdbarch_init): Ditto.
10262 * s390-tdep.c (s390_gdbarch_init): Ditto.
10263 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10264 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10265 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10266 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10267 * i386-tdep.c (i386_gdbarch_init): Ditto.
10268 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10269 * frv-tdep.c (frv_gdbarch_init): Ditto.
10270 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10271 * cris-tdep.c (cris_gdbarch_init): Ditto.
10272 * arm-tdep.c (arm_gdbarch_init): Ditto.
10273
10274 2003-03-31 Andrew Cagney <cagney@redhat.com>
10275
10276 * gdbarch.sh (CALL_DUMMY_P): Delete.
10277 * gdbarch.h, gdbarch.c: Re-generate.
10278 * inferior.h (CALL_DUMMY_P): Delete macro.
10279 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10280 * vax-tdep.c (vax_gdbarch_init): Update.
10281 * v850-tdep.c (v850_gdbarch_init): Update.
10282 * sparc-tdep.c (sparc_gdbarch_init): Update.
10283 * sh-tdep.c (sh_gdbarch_init): Update.
10284 * s390-tdep.c (s390_gdbarch_init): Update.
10285 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10286 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10287 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10288 * mips-tdep.c (mips_gdbarch_init): Update.
10289 * mcore-tdep.c (mcore_gdbarch_init): Update.
10290 * m68k-tdep.c (m68k_gdbarch_init): Update.
10291 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10292 * ia64-tdep.c (ia64_gdbarch_init): Update.
10293 * i386-tdep.c (i386_gdbarch_init): Update.
10294 * h8300-tdep.c (h8300_gdbarch_init): Update.
10295 * frv-tdep.c (frv_gdbarch_init): Update.
10296 * d10v-tdep.c (d10v_gdbarch_init): Update.
10297 * cris-tdep.c (cris_gdbarch_init): Update.
10298 * breakpoint.c (deprecated_frame_in_dummy): Update.
10299 * avr-tdep.c (avr_gdbarch_init): Update.
10300 * alpha-tdep.c (alpha_gdbarch_init): Update.
10301 * arm-tdep.c (arm_gdbarch_init): Update.
10302 * dummy-frame.c (dummy_frame_this_id): Update comments.
10303 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10304 * frame.c (legacy_get_prev_frame): Ditto.
10305 * valops.c (call_function_by_hand): Delete function.
10306 (hand_function_call): Rename to call_function_by_hand
10307
10308 2003-03-30 Andrew Cagney <cagney@redhat.com>
10309
10310 2002-11-10 Klee Dienes <kdienes@apple.com>
10311 * value.h (struct value): Update comment.
10312
10313 2003-03-30 Andrew Cagney <cagney@redhat.com>
10314
10315 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10316 D10V_FP_REGNUM.
10317 (d10v_gdbarch_init): Do not set fp_regnum.
10318
10319 * frame.c (get_frame_base): Force ID initialization.
10320 (get_prev_frame): Move computation of the frame ID from here ...
10321 (get_frame_id): ... to here.
10322 (legacy_get_prev_frame): Mark the frame ID as valid.
10323 * frame.h (struct frame_info): Add field "id_p".
10324
10325 2003-03-30 Mark Kettenis <kettenis@gnu.org>
10326
10327 * i386-tdep.c (i386_store_struct_return): Removed.
10328 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10329
10330 2003-03-30 Andrew Cagney <cagney@redhat.com>
10331
10332 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10333 * gdbarch.h, gdbarch.c: Regenerate.
10334 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10335 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10336 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10337 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10338 * i386-tdep.c (i386_gdbarch_init): Ditto.
10339 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10340 * cris-tdep.c (cris_gdbarch_init): Ditto.
10341 * vax-tdep.c (vax_gdbarch_init): Ditto.
10342 * s390-tdep.c (s390_gdbarch_init): Ditto.
10343 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10344 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10345 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10346 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10347 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10348 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10349 * sparc-tdep.c (sparc_gdbarch_init): Update.
10350 * sh-tdep.c (sh_gdbarch_init): Update.
10351 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10352 * mips-tdep.c (mips_gdbarch_init): Update.
10353 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10354 * ia64-tdep.c (ia64_gdbarch_init): Update.
10355 * frv-tdep.c (frv_gdbarch_init): Update.
10356 * avr-tdep.c (avr_gdbarch_init): Update.
10357 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10358 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10359 instead of when push_dummy_call is not available.
10360
10361 2003-03-30 Andrew Cagney <cagney@redhat.com>
10362
10363 * infttrace.c: Include "gdbthread.h".
10364 (parent_attach_all): Fix function signature.
10365 (call_ptrace): Update call.
10366 * Makefile.in (infttrace.o): Update dependencies.
10367
10368 2003-03-30 Andrew Cagney <cagney@redhat.com>
10369
10370 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10371 PUSH_RETURN_ADDRESS.
10372 * gdbarch.h, gdbarch.c: Regenerate.
10373 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10374 * x86-64-tdep.c (x86_64_init_abi): Update.
10375 * v850-tdep.c (v850_gdbarch_init): Update.
10376 * sparc-tdep.c (sparc_gdbarch_init): Update.
10377 * sh-tdep.c (sh_gdbarch_init): Update.
10378 * s390-tdep.c (s390_gdbarch_init): Update.
10379 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10380 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10381 * mips-tdep.c (mips_gdbarch_init): Update.
10382 * mcore-tdep.c (mcore_gdbarch_init): Update.
10383 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10384 * ia64-tdep.c (ia64_gdbarch_init): Update.
10385 * i386-tdep.c (i386_gdbarch_init): Update.
10386 * h8300-tdep.c (h8300_gdbarch_init): Update.
10387 * frv-tdep.c (frv_gdbarch_init): Update.
10388 * cris-tdep.c (cris_gdbarch_init): Update.
10389 * avr-tdep.c (avr_gdbarch_init): Update.
10390 * arm-tdep.c (arm_gdbarch_init): Update.
10391 * valops.c (hand_function_call): Update.
10392
10393 2003-03-29 Andrew Cagney <cagney@redhat.com>
10394
10395 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10396 sizeof_call_dummy_words.
10397 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10398 define.
10399 * gdbarch.h: Regenerate.
10400
10401 2003-03-29 Andrew Cagney <cagney@redhat.com>
10402
10403 * infttrace.h: New file.
10404 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10405 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10406 (hpread_read_doc_function_type): Detect an initialized type1.
10407 (hpread_quick_traverse): Initialize mod_name_string.
10408 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10409 (som_solib_get_solib_by_pc): Declare.
10410 (so_lib_thread_start_addr): Declare.
10411 (no_shared_libraries): Declare.
10412 * somread.c (init_import_symbols): Make static. Add forward
10413 declaration.
10414 * config/pa/nm-hppah.h: Include "infttrace.h" for
10415 parent_attach_all.
10416 (hppa_insert_hw_watchpoint): Declare.
10417 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10418 * hppah-nat.c: Include "gdb_string.h".
10419 (parent_attach_all): Delete extern declaration, moved to
10420 "infttrace.h".
10421 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10422 int.
10423 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10424 * Makefile.in (infttrace_h): Define.
10425 (hpread.o): Update dependencies.
10426 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10427 * hppa-hpux-tdep.c: Include "gdb_string.h".
10428 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10429 * infrun.c (handle_inferior_event): Always initialize
10430 stepped_after_stopped_by_watchpoint. Add default and remove
10431 fallthrough in switch statement.
10432 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10433 parameter to int.
10434 (hppa_remove_hw_watchpoint): Ditto.
10435
10436 2003-03-29 Andrew Cagney <cagney@redhat.com>
10437
10438 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10439 offset.
10440
10441 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
10442
10443 * arm-tdep.c (arm_push_arguments): Delete.
10444 (struct stack_item): New type.
10445 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10446 (arm_store_struct_return): Delte.
10447 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10448 arm_push_arguments or arm_store_struct_return.
10449
10450 2003-03-28 Andrew Cagney <cagney@redhat.com>
10451
10452 * Makefile.in (d10v-tdep.o): Update dependencies.
10453 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10454 * d10v-tdep.c: Include "remote.h".
10455 (target_resume_hook): Delete extern declaration.
10456 (target_wait_loop_hook): Ditto.
10457 (tdisassemble_command): Eliminate assignment in "if" conditional.
10458 (d10v_ts2_register_sim_regno): Eliminate call to
10459 legacy_register_sim_regno.
10460 (d10v_ts3_register_sim_regno): Ditto.
10461
10462 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10463
10464 * thread.c: Reindented.
10465 * lin-lwp.c: Ditto.
10466 * linux-proc.c: Ditto.
10467
10468 2003-03-28 Bob Rossi <bob_rossi@cox.net>
10469
10470 * MAINTAINERS (write after approval): Add myself.
10471
10472 2003-03-27 Theodore A. Roth <troth@openavr.org>
10473
10474 * objc-exp.y: Add missing semi-colons.
10475
10476 2003-03-27 Andrew Cagney <cagney@redhat.com>
10477
10478 * regcache.c (write_sp): Delete function and references.
10479 * inferior.h (write_sp): Delete declaration.
10480 * valops.c (hand_function_call): Replace write_sp with
10481 TARGET_WRITE_SP.
10482 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10483 (sparc_pop_frame): Ditto.
10484
10485 2003-03-27 Andrew Cagney <cagney@redhat.com>
10486
10487 * NEWS: Mention removal of support for hppa*-*-bsd* and
10488 hppa*-*-osf* natives, and hppa*-*-pro* target.
10489 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10490 * config/pa/xm-pa.h: Obsolete file.
10491 * config/pa/xm-hppab.h: Obsolete file.
10492 * config/pa/nm-hppab.h: Obsolete file.
10493 * config/pa/tm-hppab.h: Obsolete file.
10494 * config/pa/tm-hppao.h: Obsolete file.
10495 * config/pa/nm-hppao.h: Obsolete file.
10496 * config/pa/tm-pro.h: Obsolete file.
10497 * config/pa/hppaosf.mt: Obsolete file.
10498 * config/pa/hppaosf.mh: Obsolete file.
10499 * config/pa/hppapro.mt: Obsolete file.
10500 * config/pa/hppabsd.mt: Obsolete file.
10501 * config/pa/hppabsd.mh: Obsolete file.
10502 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10503 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10504 hppa*-*-osf*.
10505
10506 2003-03-27 Andrew Cagney <cagney@redhat.com>
10507
10508 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10509 push_arguments. Don't set push_return_address or write_sp.
10510 (d10v_push_dummy_call): Replace d10v_push_arguments.
10511 (d10v_push_return_address, d10v_write_sp): Delete function,
10512 handled by push_dummy_call.
10513
10514 2003-03-26 Andrew Cagney <cagney@redhat.com>
10515
10516 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10517 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10518 regcache and dummy_addr parameters.
10519 * gdbarch.h, gdbarch.c: Re-generate.
10520 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10521 available; assume it will handle stack alignment and return
10522 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10523 legacy_push_arguments.
10524 (legacy_push_arguments): Rename default_push_arguments.
10525 * value.h (legacy_push_arguments): Rename default_push_arguments.
10526 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10527 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10528 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10529 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10530 * config/i386/tm-symmetry.h: Update.
10531 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10532 * x86-64-tdep.c (x86_64_init_abi): Update.
10533 * v850-tdep.c (v850_gdbarch_init): Update.
10534 * sparc-tdep.c (sparc_gdbarch_init): Update.
10535 * sh-tdep.c (sh_gdbarch_init): Update.
10536 * s390-tdep.c (s390_gdbarch_init): Update.
10537 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10538 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10539 * mips-tdep.c (mips_gdbarch_init): Update.
10540 * mcore-tdep.c (mcore_gdbarch_init): Update.
10541 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10542 * ia64-tdep.c (ia64_gdbarch_init): Update.
10543 * i386-tdep.c (i386_gdbarch_init): Update.
10544 * hppa-tdep.c (hppa_gdbarch_init): Update.
10545 * h8300-tdep.c (h8300_gdbarch_init): Update.
10546 * frv-tdep.c (frv_gdbarch_init): Update.
10547 * d10v-tdep.c (d10v_gdbarch_init): Update.
10548 * cris-tdep.c (cris_gdbarch_init): Update.
10549 * avr-tdep.c (avr_gdbarch_init): Update.
10550 * arm-tdep.c (arm_gdbarch_init): Update.
10551 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10552 * alpha-tdep.c (alpha_gdbarch_init): Update.
10553
10554 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10555
10556 * signals/signals.c (do_target_signal_to_host): Correct realtime
10557 signal range test.
10558
10559 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10560
10561 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10562 (struct sal_chain, map_catch_names): Remove.
10563 (catch_exception_command_1): Don't call
10564 handle_gnu_4_16_catch_command.
10565
10566 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10567
10568 From Mark Dettinger <dettinge@de.ibm.com>:
10569 * dwarf2cfi.c (read_2u): Increment pointer by two.
10570
10571 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10572
10573 * signals/signals.c: Fix typos in last change.
10574
10575 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10576
10577 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10578 not already defined. Use __SIGRTMIN if available.
10579 (target_signal_from_host): Remove SIGRTMIN block.
10580 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10581 the signal is within the realtime range.
10582
10583 2003-03-25 Adam Fedor <fedor@gnu.org>
10584
10585 * Makefile.in (infrun.o): Add $(language_h)
10586 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10587 for language specific trampolines.
10588 * language.h (struct language_defn): Add skip_trampoline.
10589 (skip_language_trampoline): Declare.
10590 * language.c (unk_lang_trampoline, skip_language_trampoline):
10591 New functions.
10592 (unknown_language_defn, auto_language_defn, local_language_defn):
10593 Add ukn_lang_trampoline.
10594 * ada-lang.c (ada_language_defn): Add NULL for language
10595 specific skip_trampoline.
10596 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10597 scm-lang.c: Likewise.
10598 * objc-lang.c (objc_skip_trampoline): New function.
10599 (objc_language_defn): Add objc_skip_trampoline.
10600
10601 2003-03-25 Andrew Cagney <cagney@redhat.com>
10602
10603 * frame.c (get_prev_frame): Delay validating a frame's ID -
10604 non-NULL, didn't go backwards - until an attempt to unwind it to
10605 the previous frame.
10606
10607 2003-03-25 Andrew Cagney <cagney@redhat.com>
10608
10609 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10610 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10611 * gdbarch.h, gdbarch.c: Re-generate.
10612 * config/sparc/tm-sparc.h
10613 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10614 * sparc-tdep.c (sparc_gdbarch_init): Set
10615 deprecated_extra_stack_alignment_needed.
10616 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10617 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10618 extra_stack_alignment_needed.
10619 * v850-tdep.c (v850_gdbarch_init): Ditto.
10620 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10621 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10622 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10623 * cris-tdep.c (cris_gdbarch_init): Ditto.
10624 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10625 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10626
10627 2003-03-25 Andrew Cagney <cagney@redhat.com>
10628
10629 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10630 STORE_STRUCT_RETURN.
10631 * gdbarch.h, gdbarch.c: Regenerate.
10632 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10633 (d10v_push_arguments): Set the struct return register.
10634 (d10v_gdbarch_init): Update.
10635 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10636 * x86-64-tdep.c (x86_64_init_abi): Update.
10637 * vax-tdep.c (vax_gdbarch_init): Update.
10638 * v850-tdep.c (v850_gdbarch_init): Update.
10639 * sparc-tdep.c (sparc_gdbarch_init): Update.
10640 * sh-tdep.c (sh_gdbarch_init): Update.
10641 * s390-tdep.c (s390_gdbarch_init): Update.
10642 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10643 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10644 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10645 * mips-tdep.c (mips_gdbarch_init): Update.
10646 * mcore-tdep.c (mcore_gdbarch_init): Update.
10647 * m68k-tdep.c (m68k_gdbarch_init): Update.
10648 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10649 * ia64-tdep.c (ia64_gdbarch_init): Update.
10650 * i386-tdep.c (i386_gdbarch_init): Update.
10651 * hppa-tdep.c (hppa_gdbarch_init): Update.
10652 * h8300-tdep.c (h8300_gdbarch_init): Update.
10653 * frv-tdep.c (frv_gdbarch_init): Update.
10654 * cris-tdep.c (cris_gdbarch_init): Update.
10655 * avr-tdep.c (avr_gdbarch_init): Update.
10656 * arm-tdep.c (arm_gdbarch_init): Update.
10657 * alpha-tdep.c (alpha_gdbarch_init): Update.
10658
10659 2003-03-25 Andrew Cagney <cagney@redhat.com>
10660
10661 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10662 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10663 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10664 * gdbarch.h, gdbarch.c: Regenerate.
10665 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10666 call_dummy_stack_adjust_p.
10667 * vax-tdep.c (vax_gdbarch_init): Ditto.
10668 * v850-tdep.c (v850_gdbarch_init): Ditto.
10669 * sh-tdep.c (sh_gdbarch_init): Ditto.
10670 * s390-tdep.c (s390_gdbarch_init): Ditto.
10671 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10672 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10673 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10674 * mips-tdep.c (mips_gdbarch_init): Ditto.
10675 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10676 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10677 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10678 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10679 * i386-tdep.c (i386_gdbarch_init): Ditto.
10680 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10681 * frv-tdep.c (frv_gdbarch_init): Ditto.
10682 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10683 * cris-tdep.c (cris_gdbarch_init): Ditto.
10684 * avr-tdep.c (avr_gdbarch_init): Ditto.
10685 * arm-tdep.c (arm_gdbarch_init): Ditto.
10686 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10687 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10688 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10689 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10690 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10691 call_dummy_stack_adjust_p.
10692 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10693 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10694 * sparc-tdep.c (sparc32_push_arguments): Update.
10695 * valops.c (hand_function_call): Update.
10696
10697 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
10698
10699 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10700 set_gdbarch_char_signed.
10701
10702 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10703
10704 PR cli/548
10705 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10706
10707 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10708
10709 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10710 (_initialize_arm_tdep): Don't set tm_print_insn.
10711
10712 2003-03-24 Adam Fedor <fedor@gnu.org>
10713
10714 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10715 * objc-lang.h: Add multiple inclusion protection.
10716 (start_msglist, add_msglist, end_msglist): Additional declarations.
10717
10718 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
10719
10720 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10721 value was renamed to ARM_FLOAT_SOFT_FPA.
10722
10723 2003-03-23 Andrew Cagney <cagney@redhat.com>
10724
10725 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10726 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10727 * gdbarch.h, gdbarch.c: Regenerate.
10728 * valops.c (hand_function_call): Update.
10729 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10730 * frame.c (legacy_saved_regs_this_id): Update.
10731 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10732 * dummy-frame.h: Update.
10733 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10734 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10735 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10736 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10737 * config/m68k/tm-sun3.h: Update.
10738 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10739 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10740 * x86-64-tdep.c (x86_64_init_abi): Update.
10741 * vax-tdep.c (vax_gdbarch_init): Update.
10742 * v850-tdep.c (v850_gdbarch_init): Update.
10743 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10744 * sh-tdep.c (sh_gdbarch_init): Update.
10745 * s390-tdep.c (s390_gdbarch_init): Update.
10746 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10747 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10748 (frame_get_saved_regs): Update.
10749 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10750 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10751 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10752 * mips-tdep.c (mips_gdbarch_init): Update.
10753 * mcore-tdep.c (mcore_gdbarch_init): Update.
10754 * m68k-tdep.c (m68k_gdbarch_init): Update.
10755 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10756 * ia64-tdep.c (ia64_gdbarch_init): Update.
10757 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10758 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10759 (i386_interix_back_one_frame): Update.
10760 * hppa-tdep.c (hppa_gdbarch_init): Update.
10761 (hppa_init_extra_frame_info): Update.
10762 * h8300-tdep.c (h8300_gdbarch_init): Update.
10763 * frv-tdep.c (frv_gdbarch_init): Update.
10764 * cris-tdep.c (cris_gdbarch_init): Update.
10765 * avr-tdep.c (avr_gdbarch_init): Update.
10766 * arm-tdep.c (arm_gdbarch_init): Update.
10767 * alpha-tdep.c (alpha_gdbarch_init): Update.
10768
10769 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10770
10771 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10772 (arm_get_fp_model): Declare.
10773 * arm-tdep.c (fp_model_strings): New string array.
10774 (arm_fp_model, current_fp_model): New variables.
10775 (arm_get_fp_model): New function.
10776 (arm_set_fp): New function.
10777 (set_fp_model_sfunc): New function.
10778 (show_fp_model): New function.
10779 (_initialize_arm_tdep): Add new command to set/show the FPU.
10780 (arm_extract_return_value): Use arm_get_fp_model.
10781 (arm_store_return_value): Likewise.
10782 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10783 to initialize the floating-point data types.
10784 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10785 model is FPA.
10786
10787 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10788
10789 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10790 the current setting of each value.
10791 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
10792 new_set and new_show. Use add_setshow_cmd_full and
10793 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10794 commands and add new version as subcommands of "set/show arm".
10795
10796 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10797
10798 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10799 (set_arm_command, show_arm_command): New functions.
10800 (_initialize_arm_tdep): Add them.
10801 (num_disassembly_options): Renamed from num_flavor_options.
10802 (valid_disassembly_styles): Renamed from valid_flavors.
10803 (disassembly_style): Renamed from disassembly_flavor.
10804 (set_disassembly_style_sfunc): Renamed from
10805 set_disassembly_flavor_sfunc.
10806 (set_disassembly_style): Renamed from set_disassembly_flavor.
10807 (arm_othernames): Updated.
10808 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10809 command. Add "set/show arm disassembly" commands. Deprecate
10810 "othernames" command.
10811
10812 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10813
10814 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10815 (arm-tdep.o): Depend on elf_arm_h.
10816
10817 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10818
10819 * Makefile.in (coff_internal_h): Define.
10820 (arm-tdep.o): Update dependencies.
10821
10822 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10823
10824 * arm-tdep.c (prologue_cache): Delete.
10825 (check_prologue_cache, save_prologue_cache): Delete.
10826 (arm_scan_prologue): Don't check or update the prologue_cache.
10827 (arm_gdb_arch_init): Don't initialize it.
10828 (_initialize_arm_tdep): Likewise.
10829
10830 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10831
10832 * MAINTAINERS (tui): Maintainer of tui code.
10833
10834 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
10835
10836 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10837 (i386-cygwin-tdep.o): Add dependencies.
10838 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10839 * i386-cygwin-tdep.c: New file.
10840 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10841 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10842
10843 2003-03-20 Andrew Cagney <cagney@redhat.com>
10844
10845 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10846 (handle_inferior_event): Remove code calling
10847 DYNAMIC_TRAMPOLINE_NEXTPC.
10848
10849 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10850 already has a full path.
10851
10852 * main.c (gdb_main): Return 1.
10853 (captured_main): Call error to report an invalid interpreter.
10854
10855 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10856 * alpha-osf1-tdep.c: Include "gdb_string.h".
10857
10858 2003-03-19 J. Brobecker <brobecker@gnat.com>
10859
10860 Continuing work to convert the hppa targets to multiarch partial.
10861
10862 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10863 method, now that hppa_push_dummy_frame has a conformant prototype.
10864 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10865 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10866 for the switch to multiarch partial.
10867
10868 2003-03-19 Kevin Buettner <kevinb@redhat.com>
10869
10870 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10871 when iss is issNull.
10872
10873 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10874
10875 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10876 NUM_REGS bounds check.
10877
10878 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10879
10880 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10881 * mips-tdep.c (gdb_assert.h): Include.
10882 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10883 (mips_register_name): Handle integer registers explicitly. Add
10884 bounds checking.
10885 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10886 (mips_lsi33k_reg_names): Don't list integer registers; they're
10887 handled by mips_register_name() now.
10888 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10889 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10890 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10891 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10892 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10893
10894 2003-03-18 Andrew Cagney <cagney@redhat.com>
10895
10896 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10897 a void pointer.
10898 * gdbtypes.h (print_scalar_formatted): Update declaration.
10899 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10900
10901 2003-03-18 J. Brobecker <brobecker@gnat.com>
10902
10903 * infrun.c (observer.h): Add #include.
10904 (normal_stop): Add call to observer_notify_normal_stop.
10905 * Makefile.in (infrun.o): Add dependency on observer.h.
10906
10907 2003-03-18 J. Brobecker <brobecker@gnat.com>
10908
10909 Continuing work to convert the hppa targets to multiarch partial.
10910 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10911 parameter. Reformat comment.
10912 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10913 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10914 to match new profile.
10915
10916 2003-03-18 J. Brobecker <brobecker@gnat.com>
10917
10918 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10919 appear to be working in any case.
10920
10921 2003-03-18 J. Brobecker <brobecker@gnat.com>
10922
10923 * observer.c (observer_test_first_observer): New static variable.
10924 (observer_test_second_observer): Likewise.
10925 (observer_test_third_observer): Likewise.
10926 (observer_test_first_notification_function): New static function.
10927 (observer_test_second_notification_function): Likewise.
10928 (observer_test_third_notification_function): Likewise.
10929
10930 2003-03-17 J. Brobecker <brobecker@gnat.com>
10931
10932 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10933 * somsolib.c (gdb_assert.h): Likewise.
10934 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10935 (somsolib.o): Likewise.
10936
10937 2003-03-17 Andrew Cagney <cagney@redhat.com>
10938
10939 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10940 BFD. Simplify setting of di.endian.
10941
10942 2003-03-17 Andrew Cagney <cagney@redhat.com>
10943
10944 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10945 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10946
10947 From Elena Zannoni <ezannoni@redhat.com>
10948 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10949 vector and floating-point parameters.
10950 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10951 convention.
10952 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10953
10954 2003-03-17 Fernando Nasser <fnasser@redhat.com>
10955
10956 * MAINTAINERS: Remove my name from several maintainership roles.
10957
10958 2003-03-17 Andrew Cagney <cagney@redhat.com>
10959
10960 Fix frame off-by-one bug.
10961 * frame-unwind.h (frame_this_id_ftype): Replace
10962 frame_unwind_id_ftype.
10963 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10964 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10965 with "prev_register".
10966 * frame-unwind.c (frame_unwind_find_by_pc): Return
10967 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10968 comment.
10969 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10970 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10971 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10972 (dummy_frame_unwind): Update.
10973 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10974 sentinel_frame_register_unwind.
10975 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10976 (sentinel_frame_unwinder): Update.
10977 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10978 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10979 * frame.c (create_sentinel_frame): Update. Initialize
10980 "prologue_cache" instead of "unwind_cache".
10981 (frame_register_unwind): Call this frame's prev_register with the
10982 next frame and this frame's prologue cache.
10983 (get_prev_frame): Simplify. Always call prev frame's this_id with
10984 this frame and prev frame's prologue cache. Document that this
10985 call is shifted one to the left when compared to the
10986 frame_register_unwind call.
10987 (legacy_saved_regs_prev_register): Replace
10988 frame_saved_regs_register_unwind.
10989 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10990 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10991 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10992 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10993 (d10v_frame_unwind): Update.
10994 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10995 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10996 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10997 "saved_regs" with "this_saved_regs".
10998
10999 2003-03-16 Andrew Cagney <cagney@redhat.com>
11000
11001 * frame.c (frame_pop): Don't call target_store_registers. Fix
11002 problem reported by Mark Kettenis.
11003
11004 2003-03-16 Mark Kettenis <kettenis@gnu.org>
11005
11006 * i386-tdep.c (i386_register_type): Renamed from
11007 i386_register_virtual_type. Adjust function signature.
11008 (i386_gdbarch_init): Set register_type instead of
11009 deprecated_max_register_raw_size,
11010 deprecated_max_register_virtual_size and register_virtual_type.
11011
11012 2003-03-14 Andrew Cagney <cagney@redhat.com>
11013
11014 * frame.c (get_prev_frame): When a legacy frame, always call
11015 legacy_get_prev_frame. Simplify unwind code using assumption that
11016 the unwinder is new.
11017 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11018 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11019 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11020
11021 2003-03-14 Andrew Cagney <cagney@redhat.com>
11022
11023 * frame.c (get_saved_register): Delete function.
11024 * frame.h (get_saved_register): Delete declaration.
11025 * xstormy16-tdep.c: Update comment.
11026 * regcache.h: Update comments.
11027 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11028 get_saved_register and extract_address, use
11029 frame_read_unsigned_register.
11030 (sparc_frame_saved_pc): Ditto.
11031 (sparc_get_saved_register): Instead of get_saved_register, use
11032 frame_register.
11033 (sparc_pop_frame): Ditto.
11034 * findvar.c: Update comments.
11035 (value_of_register): Call frame_register instead of
11036 get_saved_register.
11037 (value_from_register): Ditto.
11038 * config/sparc/tm-sparc.h: Update comment.
11039 * breakpoint.c: Update comment.
11040
11041 2003-03-14 Andrew Cagney <cagney@redhat.com>
11042
11043 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11044 GET_SAVED_REGISTER.
11045 * gdbarch.h, gdbarch.c: Re-generate.
11046 * frame.h: Update comments.
11047 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11048 * x86-64-tdep.c (x86_64_init_abi): Update.
11049 * sparc-tdep.c (sparc_gdbarch_init): Update.
11050 * sh-tdep.c (sh_gdbarch_init): Update.
11051 * mips-tdep.c (mips_gdbarch_init): Update.
11052 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11053 * cris-tdep.c (cris_gdbarch_init): Update.
11054 * ia64-tdep.c (ia64_gdbarch_init): Update.
11055 * frame.c (frame_register): Update.
11056 (get_saved_register): Update.
11057 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
11058
11059 2003-03-13 Andrew Cagney <cagney@redhat.com>
11060
11061 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11062 * gdbarch.h, gdbarch.c: Regenerate.
11063 * valops.c (hand_function_call): Update comment.
11064 * stack.c (return_command): Update comment.
11065 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11066 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11067 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11068 * x86-64-tdep.c (x86_64_init_abi): Update.
11069 * vax-tdep.c (vax_gdbarch_init): Update.
11070 * v850-tdep.c (v850_gdbarch_init): Update.
11071 * sparc-tdep.c (sparc_gdbarch_init): Update.
11072 * sh-tdep.c (sh_gdbarch_init): Update.
11073 * s390-tdep.c (s390_gdbarch_init): Update.
11074 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11075 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11076 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11077 * mips-tdep.c (mips_gdbarch_init): Update.
11078 * mcore-tdep.c (mcore_gdbarch_init): Update.
11079 * m68k-tdep.c (m68k_gdbarch_init): Update.
11080 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11081 * ia64-tdep.c (ia64_gdbarch_init): Update.
11082 * i386-tdep.c (i386_gdbarch_init): Update.
11083 * hppa-tdep.c (hppa_gdbarch_init): Update.
11084 * h8300-tdep.c (h8300_gdbarch_init): Update.
11085 * frv-tdep.c (frv_gdbarch_init): Update.
11086 * cris-tdep.c (cris_gdbarch_init): Update.
11087 * avr-tdep.c (avr_gdbarch_init): Update.
11088 * arm-tdep.c (arm_gdbarch_init): Update.
11089 * alpha-tdep.c (alpha_gdbarch_init): Update.
11090
11091 2003-03-13 Andrew Cagney <cagney@redhat.com>
11092
11093 * frame.c (legacy_frame_p): New function.
11094 (get_prev_frame): Use legacy_frame_p.
11095 * frame.h (legacy_frame_p): Declare.
11096
11097 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11098
11099 * MAINTAINERS (write after approval): Alphabetically
11100 listing corrected.
11101
11102 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11103
11104 * MAINTAINERS (write after approval): Add myself.
11105
11106 2003-03-12 Andrew Cagney <cagney@redhat.com>
11107
11108 * frame.c (get_prev_frame): Rename the frame parameter to
11109 "this_frame".
11110 (get_next_frame, legacy_get_prev_frame): Ditto.
11111
11112 2003-03-12 Andrew Cagney <cagney@redhat.com>
11113
11114 * frame.c (get_current_frame): Check target_has_registers before
11115 checking target_has_stack.
11116 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11117 instead of deprecated_selected_frame.
11118 * findvar.c (value_of_register): Pass "frame", not
11119 deprecated_selected_frame, to value_of_builtin_reg.
11120
11121 2003-03-12 Andrew Cagney <cagney@redhat.com>
11122
11123 * regcache.c (regcache_cooked_write_signed): New function.
11124 (regcache_cooked_write_unsigned): New function.
11125 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11126 (regcache_cooked_read_signed): Fix regnum in range assertion.
11127 * regcache.h (regcache_cooked_write_signed): Declare.
11128 (regcache_cooked_write_unsigned): Declare.
11129
11130 2003-03-12 Andrew Cagney <cagney@redhat.com>
11131
11132 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11133 * gdbarch.h, gdbarch.c: Re-generate.
11134 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11135 * x86-64-tdep.h: Update.
11136 * x86-64-tdep.c (x86_64_init_abi): Update.
11137 * v850-tdep.c (v850_gdbarch_init): Update.
11138 * sparc-tdep.c (sparc_gdbarch_init): Update.
11139 * sh-tdep.c (sh_gdbarch_init): Update.
11140 * s390-tdep.c (s390_gdbarch_init): Update.
11141 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11142 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11143 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11144 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11145 * mips-tdep.c (mips_gdbarch_init): Update.
11146 * mcore-tdep.c (mcore_gdbarch_init): Update.
11147 * m68k-tdep.c (m68k_gdbarch_init): Update.
11148 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11149 * ia64-tdep.c (ia64_gdbarch_init): Update.
11150 * i386-tdep.c (i386_gdbarch_init): Update.
11151 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11152 * hppa-tdep.c (hppa_gdbarch_init): Update.
11153 * h8300-tdep.c (h8300_gdbarch_init): Update.
11154 * frv-tdep.c (frv_gdbarch_init): Update.
11155 * cris-tdep.c (cris_gdbarch_init): Update.
11156 * avr-tdep.c (avr_gdbarch_init): Update.
11157 * arm-tdep.c (arm_gdbarch_init): Update.
11158 * alpha-tdep.c (alpha_gdbarch_init): Update.
11159 * sh-tdep.c (sh_init_extra_frame_info): Update.
11160 (sh64_init_extra_frame_info): Update.
11161 * ns32knbsd-nat.c (frame_num_args): Update.
11162 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11163 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11164 (xstormy16_frame_chain_valid): Update.
11165 * vax-tdep.c (vax_saved_pc_after_call): Update.
11166 * v850-tdep.c (v850_frame_chain): Update.
11167 (v850_pop_frame): Update.
11168 (v850_init_extra_frame_info): Update.
11169 * sparc-tdep.c (setup_arbitrary_frame): Update.
11170 * ns32k-tdep.c (umax_frame_num_args): Update.
11171 * s390-tdep.c (s390_pop_frame_regular): Update.
11172 * mn10300-tdep.c (mn10300_frame_chain): Update.
11173 (mn10300_pop_frame_regular): Update.
11174 (mn10300_init_extra_frame_info): Update.
11175 * mips-tdep.c (mips_init_frame_pc_first): Update.
11176 (mips_frame_chain): Update.
11177 (mips_pop_frame): Update.
11178 * mcore-tdep.c (mcore_frame_chain): Update.
11179 (mcore_pop_frame): Update.
11180 (mcore_init_extra_frame_info): Update.
11181 * arch-utils.c (init_frame_pc_default): Update.
11182 * m68k-tdep.c (isi_frame_num_args): Update.
11183 (delta68_frame_num_args): Update.
11184 (news_frame_num_args): Update.
11185 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11186 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11187 (alpha_frame_chain): Update.
11188 (alpha_pop_frame): Update.
11189 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11190 (hppa_init_extra_frame_info): Update.
11191 (hppa_frame_chain): Update.
11192 (hppa_frame_chain_valid): Update.
11193 * cris-tdep.c (cris_init_extra_frame_info): Update.
11194 * avr-tdep.c (avr_init_extra_frame_info): Update.
11195 * arm-tdep.c (arm_frame_chain_valid): Update.
11196 (arm_init_extra_frame_info): Update.
11197 (arm_pop_frame): Update.
11198 * frame.c (frame_pc_unwind): Update.
11199 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11200 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11201 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11202 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11203 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11204 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11205
11206 2003-03-12 Andrew Cagney <cagney@redhat.com>
11207
11208 Eliminate the need for POP_FRAME.
11209 * frame.c (do_frame_unwind_register): New function.
11210 (frame_pop): When no POP_FRAME, pop the frame using register
11211 unwind and a scratch regcache.
11212 (frame_saved_regs_pop): Delete function.
11213 (trad_frame_unwinder): Update.
11214 * d10v-tdep.c (d10v_frame_pop): Delete function.
11215 (d10v_frame_unwind): Update.
11216 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11217 (sentinel_frame_unwinder): Update.
11218 * dummy-frame.c (dummy_frame_pop): Delete function.
11219 (dummy_frame_unwind): Update.
11220 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11221 (struct frame_unwind): Update.
11222
11223 2003-03-11 Kevin Buettner <kevinb@redhat.com>
11224
11225 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11226 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11227 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11228 Do range checks on register number obtained from debugging info.
11229 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11230 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11231 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11232 mapping function.
11233 (do_fp_register_row): Fix typo which caused double type to be
11234 used when attempting to unpack a float.
11235
11236 2003-03-11 J. Brobecker <brobecker@gnat.com>
11237
11238 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11239
11240 2003-03-11 Andrew Cagney <cagney@redhat.com>
11241
11242 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11243 frame. Problem found by Corinna Vinschen.
11244
11245 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11246
11247 * doublest.c (floatformat_from_length): Accept also
11248 the real size of 'long double' type.
11249
11250 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
11251
11252 From Klee Dienes <kdienes@apple.com>:
11253 * breakpoint.c (bpstat_copy): Copy the command lines as well
11254 as the old value, to match what is freed in bpstat_clear.
11255
11256 2003-03-10 David Carlton <carlton@math.stanford.edu>
11257
11258 * minsyms.c (add_minsym_to_hash_table): Replace
11259 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11260 (compare_minimal_symbols, compact_minimal_symbols)
11261 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11262 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11263 of DEPRECATED_SYMBOL_MATCHES_NAME.
11264 (lookup_minimal_symbol_solib_trampoline): Ditto.
11265
11266 2003-03-10 Andrew Cagney <cagney@redhat.com>
11267
11268 * regcache.h (regcache_cooked_read_ftype): Define.
11269 (regcache_save, regcache_restore): Add a cooked_read parameter.
11270 * regcache.c (regcache_save, regcache_restore): Update.
11271 (do_cooked_read): New function.
11272 (regcache_cpy): Pass do_cooked_read to regcache_save and
11273 regcache_restore.
11274
11275 2003-03-10 Andrew Cagney <cagney@redhat.com>
11276
11277 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11278 * gdbarch.h, gdbarch.c: Re-generate.
11279 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11280 * x86-64-tdep.h: Update.
11281 * x86-64-tdep.c (x86_64_init_abi): Update.
11282 * v850-tdep.c (v850_gdbarch_init): Update.
11283 * sparc-tdep.c (sparc_gdbarch_init): Update.
11284 * sh-tdep.c (sh_gdbarch_init): Update.
11285 * s390-tdep.c (s390_gdbarch_init): Update.
11286 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11287 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11288 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11289 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11290 * mips-tdep.c (mips_gdbarch_init): Update.
11291 * mcore-tdep.c (mcore_gdbarch_init): Update.
11292 * m68k-tdep.c (m68k_gdbarch_init): Update.
11293 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11294 * ia64-tdep.c (ia64_gdbarch_init): Update.
11295 * i386-tdep.c (i386_gdbarch_init): Update.
11296 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11297 * hppa-tdep.c (hppa_gdbarch_init): Update.
11298 * h8300-tdep.c (h8300_gdbarch_init): Update.
11299 * frv-tdep.c (frv_gdbarch_init): Update.
11300 * cris-tdep.c (cris_gdbarch_init): Update.
11301 * avr-tdep.c (avr_gdbarch_init): Update.
11302 * arm-tdep.c (arm_gdbarch_init): Update.
11303 * alpha-tdep.c (alpha_gdbarch_init): Update.
11304 * sh-tdep.c (sh_init_extra_frame_info): Update.
11305 (sh64_init_extra_frame_info): Update.
11306 * ns32knbsd-nat.c (frame_num_args): Update.
11307 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11308 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11309 (xstormy16_frame_chain_valid): Update.
11310 * vax-tdep.c (vax_saved_pc_after_call): Update.
11311 * v850-tdep.c (v850_frame_chain): Update.
11312 (v850_pop_frame): Update.
11313 (v850_init_extra_frame_info): Update.
11314 * sparc-tdep.c (setup_arbitrary_frame): Update.
11315 * ns32k-tdep.c (umax_frame_num_args): Update.
11316 * s390-tdep.c (s390_pop_frame_regular): Update.
11317 * mn10300-tdep.c (mn10300_frame_chain): Update.
11318 (mn10300_pop_frame_regular): Update.
11319 (mn10300_init_extra_frame_info): Update.
11320 * mips-tdep.c (mips_init_frame_pc_first): Update.
11321 (mips_frame_chain): Update.
11322 (mips_pop_frame): Update.
11323 * mcore-tdep.c (mcore_frame_chain): Update.
11324 (mcore_pop_frame): Update.
11325 (mcore_init_extra_frame_info): Update.
11326 * arch-utils.c (init_frame_pc_default): Update.
11327 * m68k-tdep.c (isi_frame_num_args): Update.
11328 (delta68_frame_num_args): Update.
11329 (news_frame_num_args): Update.
11330 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11331 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11332 (alpha_frame_chain): Update.
11333 (alpha_pop_frame): Update.
11334 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11335 (hppa_init_extra_frame_info): Update.
11336 (hppa_frame_chain): Update.
11337 (hppa_frame_chain_valid): Update.
11338 * cris-tdep.c (cris_init_extra_frame_info): Update.
11339 * avr-tdep.c (avr_init_extra_frame_info): Update.
11340 * arm-tdep.c (arm_frame_chain_valid): Update.
11341 (arm_init_extra_frame_info): Update.
11342 (arm_pop_frame): Update.
11343 * frame.c (frame_pc_unwind): Update.
11344 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11345 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11346 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11347 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11348 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11349 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11350
11351 2003-03-10 Andrew Cagney <cagney@redhat.com>
11352
11353 * gdbarch.sh (gdbarch_unwind_pc): New method.
11354 * gdbarch.h, gdbarch.c: Regenerate.
11355 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11356 but use read_pc and FRAME_SAVED_PC as fall backs.
11357 (frame_saved_regs_pc_unwind): Delete function.
11358 (trad_frame_unwinder): Update.
11359 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11360 (struct frame_unwind): Update.
11361 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11362 (dummy_frame_unwind): Update.
11363 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11364 (sentinel_frame_unwinder): Update.
11365 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11366 (d10v_frame_unwind): Update.
11367 (d10v_unwind_pc): New function.
11368 (d10v_gdbarch_init): Set unwind_pc.
11369
11370 2003-03-10 Andrew Cagney <cagney@redhat.com>
11371
11372 * gdbarch.h: Re-generate.
11373
11374 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11375 PC.
11376 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11377 the PC register.
11378
11379 2003-03-08 Mark Kettenis <kettenis@gnu.org>
11380
11381 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11382
11383 2003-03-08 Andrew Cagney <cagney@redhat.com>
11384
11385 * cli-out.c: Update copyright.
11386 (cli_out_data): Define typedef. Use instead of ui_out_data.
11387
11388 2003-03-08 Andrew Cagney <cagney@redhat.com>
11389
11390 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11391 the result.
11392
11393 2003-03-07 Andrew Cagney <cagney@redhat.com>
11394
11395 * gdbarch.sh: Don't generate two macro definitions when an
11396 undefined macro taking no arguments.
11397 * gdbarch.h: Regenerate.
11398
11399 2002-03-07 Michal Ludvig <mludvig@suse.cz>
11400
11401 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11402 (x86_64_unwind_dummy_id): New functions.
11403 (x86_64_init_abi): Register these two new functions.
11404
11405 2003-03-07 Michal Ludvig <mludvig@suse.cz>
11406
11407 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
11408 (x86_64_skip_prologue): Move prologue detection to
11409 separate function.
11410 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11411
11412 2003-03-05 Andrew Cagney <cagney@redhat.com>
11413
11414 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11415 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11416 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11417 to use unwind_dummy_id when a dummy frame.
11418 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11419 predicate.
11420 * gdbarch.h, gdbarch.c: Regneerate.
11421
11422 2003-03-05 Andrew Cagney <cagney@redhat.com>
11423
11424 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11425 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11426 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11427 values.
11428
11429 2003-03-05 Andrew Cagney <cagney@redhat.com>
11430
11431 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11432 (struct d10v_unwind_cache): Delete field "frameless". Replace
11433 "next_addr" with "sp_offset". Add "r11_offset".
11434 (d10v_frame_unwind_cache): Update.
11435 (prologue_find_regs): Update. When "mv r11, sp", save the
11436 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11437 RN was saved in r11_offset.
11438
11439 2003-03-05 Andrew Cagney <cagney@redhat.com>
11440
11441 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11442 cached PC value in the next frame.
11443
11444 2003-03-05 Andrew Cagney <cagney@redhat.com>
11445
11446 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11447 "id_unwind_cache" with "id".
11448 (frame_id_unwind): Delete declaration.
11449 * frame.c (frame_id_unwind): Delete function.
11450 (get_prev_frame): Call the frame id unwind method directly. Store
11451 the returned next frame's ID value in NEXT_FRAME. Note that there
11452 is a problem with the wrong unwind ID being called with the wrong
11453 unwind cache.
11454
11455 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11456
11457 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11458
11459 2003-03-05 James Ingham <jingham@apple.com>
11460 Daniel Jacobowitz <drow@mvista.com>
11461
11462 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11463 (auto_cp_abi): New variable.
11464 (current_cp_abi, num_cp_abis): Make static.
11465 (CP_ABI_MAX): Define.
11466 (cp_abis): Turn into an array.
11467 (value_virtual_fn_field): Fix formatting.
11468 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11469 takes a pointer.
11470 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11471 (list_cp_abis, _initialize_cp_abi): New functions.
11472 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11473 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11474 switch_to_cp_abi. Update prototype for register_cp_abi.
11475 * Makefile.in (cp-abi.o): Update dependencies.
11476 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11477 instead of switch_to_cp_abi.
11478 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11479 register_cp_abi.
11480 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11481 register_cp_abi.
11482 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11483
11484 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11485
11486 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11487 * dwarf2loc.c: Include "regcache.h".
11488 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11489 register_size.
11490 * Makefile.in (dwarf2loc.o): Update dependencies.
11491
11492 2003-03-04 Theodore A. Roth <troth@openavr.org>
11493
11494 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11495 number of io registers reported by remote target is not a multiple of
11496 step.
11497
11498 2003-03-04 David Carlton <carlton@math.stanford.edu>
11499
11500 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11501 (lookup_symbol_aux_psymtabs): Update call to
11502 lookup_partial_symbol.
11503 (lookup_transparent_type, find_main_psymtab)
11504 (make_symbol_overload_list): Ditto.
11505
11506 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11507
11508 * MAINTAINERS (Write after approval): Update my email address.
11509
11510 2003-03-03 Andrew Cagney <cagney@redhat.com>
11511
11512 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11513 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11514 predicate. Replace MAX_REGISTER_RAW_SIZE.
11515 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11516 MAX_REGISTER_VIRTUAL_SIZE.
11517 * regcache.c (legacy_max_register_raw_size): New function.
11518 (legacy_max_register_virtual_size): New function.
11519 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11520 (MAX_REGISTER_RAW_SIZE): Define.
11521 (legacy_max_register_raw_size): Declare.
11522 (legacy_max_register_virtual_size): Declare.
11523 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11524 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11525 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11526 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11527 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11528 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11529 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11530 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11531 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11532 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11533 * vax-tdep.c (vax_gdbarch_init): Update.
11534 * v850-tdep.c (v850_gdbarch_init): Update.
11535 * sparc-tdep.c (sparc_gdbarch_init): Update.
11536 * sh-tdep.c (sh_gdbarch_init): Update.
11537 * s390-tdep.c (s390_gdbarch_init): Update.
11538 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11539 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11540 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11541 * mips-tdep.c (mips_gdbarch_init): Update.
11542 * mcore-tdep.c (mcore_gdbarch_init): Update.
11543 * m68k-tdep.c (m68k_gdbarch_init): Update.
11544 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11545 * ia64-tdep.c (ia64_gdbarch_init): Update.
11546 * i386-tdep.c (i386_gdbarch_init): Update.
11547 * hppa-tdep.c (hppa_gdbarch_init): Update.
11548 * h8300-tdep.c (h8300_gdbarch_init): Update.
11549 * frv-tdep.c (frv_gdbarch_init): Update.
11550 * cris-tdep.c (cris_gdbarch_init): Update.
11551 * avr-tdep.c (avr_gdbarch_init): Update.
11552 * arm-tdep.c (arm_gdbarch_init): Update.
11553 * alpha-tdep.c (alpha_gdbarch_init): Update.
11554 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11555 max_register_raw_size or max_register_virtual_size.
11556
11557 2003-03-03 David Carlton <carlton@math.stanford.edu>
11558
11559 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11560 SYMBOL_MATCHES_NAME, add comment.
11561 (SYMBOL_MATCHES_NATURAL_NAME): New.
11562 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11563 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11564 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11565 * symtab.c (lookup_partial_symbol): Use
11566 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11567 unhelpful comment.
11568 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11569 SYMBOL_MATCHES_NAME.
11570 Fix for PR c++/33.
11571
11572 2003-03-03 David Carlton <carlton@math.stanford.edu>
11573
11574 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11575 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11576 by regexp matching against SYMBOL_NATURAL_NAME.
11577
11578 2003-03-03 David Carlton <carlton@math.stanford.edu>
11579
11580 * linespec.c (find_method): Extract code into collect_methods.
11581 (collect_methods): New.
11582
11583 2003-03-02 Mark Kettenis <kettenis@gnu.org>
11584
11585 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11586 get_frame_base.
11587
11588 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11589 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11590
11591 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11592
11593 * arch-utils.c (generic_register_byte): Fix to use the loop index
11594 and not regnum when summing the size of all registers up to regnum.
11595
11596 2003-03-01 Andrew Cagney <cagney@redhat.com>
11597
11598 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11599 FRAME_INIT_SAVED_REGS.
11600 * gdbarch.h, gdbarch.c: Regenerate.
11601 * stack.c (frame_info): Update.
11602 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11603 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11604 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11605 * ns32k-tdep.c (ns32k_pop_frame): Update.
11606 * mips-tdep.c (mips_pop_frame): Update.
11607 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11608 * ia64-tdep.c (ia64_frame_chain): Update.
11609 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11610 (ia64_frameless_function_invocation): Update.
11611 (ia64_init_extra_frame_info): Update.
11612 (ia64_pop_frame_regular): Update.
11613 * frame.h (struct frame_info): Update comment.
11614 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11615 * frame.c (frame_saved_regs_register_unwind): Update.
11616 (frame_saved_regs_register_unwind): Update.
11617 (deprecated_generic_get_saved_register): Update.
11618 * cris-tdep.c: Update comment.
11619 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11620 Rename macro.
11621 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11622 * x86-64-tdep.c (x86_64_init_abi): Update.
11623 * vax-tdep.c (vax_gdbarch_init): Update.
11624 * v850-tdep.c (v850_gdbarch_init): Update.
11625 * sparc-tdep.c (sparc_gdbarch_init): Update.
11626 * sh-tdep.c (sh_gdbarch_init): Update.
11627 * s390-tdep.c (s390_gdbarch_init): Update.
11628 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11629 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11630 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11631 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11632 * mips-tdep.c (mips_gdbarch_init): Update.
11633 * mcore-tdep.c (mcore_gdbarch_init): Update.
11634 * m68k-tdep.c (m68k_gdbarch_init): Update.
11635 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11636 * ia64-tdep.c (ia64_gdbarch_init): Update.
11637 * i386-tdep.c (i386_gdbarch_init): Update.
11638 * frv-tdep.c (frv_gdbarch_init): Update.
11639 * avr-tdep.c (avr_gdbarch_init): Update.
11640 * arm-tdep.c (arm_gdbarch_init): Update.
11641 * alpha-tdep.c (alpha_gdbarch_init): Update.
11642
11643 2003-03-01 Andrew Cagney <cagney@redhat.com>
11644
11645 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11646 option enum and switch. When no windows, set the interpreter to
11647 INTERP_CONSOLE.
11648
11649 2003-03-01 Andrew Cagney <cagney@redhat.com>
11650
11651 * main.c (captured_main): Replace magic option characters with an
11652 enum.
11653
11654 2003-03-01 Andrew Cagney <cagney@redhat.com>
11655
11656 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11657 INIT_EXTRA_FRAME_INFO.
11658 * gdbarch.h, gdbarch.c: Regenerate.
11659 * arm-tdep.c: Update comments.
11660 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11661 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11662 * frame.h, avr-tdep.c: Ditto.
11663 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11664 (create_new_frame, legacy_get_prev_frame): Ditto.
11665 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11666 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11667 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11668 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11669 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11670 * v850-tdep.c (v850_gdbarch_init): Ditto.
11671 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11672 * sh-tdep.c (sh_gdbarch_init): Ditto.
11673 * s390-tdep.c (s390_gdbarch_init): Ditto.
11674 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11675 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11676 * mips-tdep.c (mips_gdbarch_init): Ditto.
11677 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11678 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11679 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11680 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11681 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11682 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11683 * frv-tdep.c (frv_gdbarch_init): Ditto.
11684 * cris-tdep.c (cris_gdbarch_init): Ditto.
11685 * avr-tdep.c (avr_gdbarch_init): Ditto.
11686 * arm-tdep.c (arm_gdbarch_init): Ditto.
11687 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11688 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11689
11690 2003-03-01 Andrew Cagney <cagney@redhat.com>
11691
11692 * gdbarch.sh (register_type): New function with predicate.
11693 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11694 * gdbarch.h, gdbarch.c: Re-generate.
11695 * arch-utils.c (generic_register_byte): Use generic_register_size.
11696 (generic_register_size): When available, use
11697 gdbarch_register_type.
11698 * regcache.c (init_regcache_descr): When available, initialize the
11699 register type array using gdbarch_register_type. If the
11700 architecture supplies gdbarch_register_type, do not use the legacy
11701 regcache layout.
11702 * d10v-tdep.c (d10v_register_type): Replace
11703 d10v_register_virtual_type.
11704 (d10v_gdbarch_init): Set register_type instead of
11705 register_virtual_type.
11706
11707 2003-03-01 Andrew Cagney <cagney@redhat.com>
11708
11709 * Makefile.in (ax-gdb.o): Update dependencies.
11710 * ax-gdb.c: Include "regcache.h".
11711 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11712 * findvar.c (value_of_register): Ditto.
11713 * infcmd.c (default_print_registers_info): Ditto.
11714
11715 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11716
11717 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11718 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11719
11720 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11721
11722 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11723 of STREQ.
11724
11725 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
11726
11727 * Makefile.in (dwarf2loc.o): Update dependencies.
11728 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11729 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11730 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11731 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11732 (locexpr_tracepoint_var_ref): New function.
11733 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11734
11735 2003-02-28 Andrew Cagney <cagney@redhat.com>
11736
11737 * regcache.c (register_size): New function.
11738 * regcache.h (register_size): Declare
11739 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11740 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11741
11742 2003-02-28 David Carlton <carlton@math.stanford.edu>
11743
11744 * linespec.c (decode_compound): Extract code into find_method.
11745 (find_method): New.
11746
11747 2003-02-28 J. Brobecker <brobecker@gnat.com>
11748
11749 * Makefile.in: Add rules to build and link in observer.o.
11750
11751 2003-02-27 J. Brobecker <brobecker@gnat.com>
11752
11753 * observer.c: Minor comments edits.
11754
11755 2003-02-27 J. Brobecker <brobecker@gnat.com>
11756
11757 * observer.h, observer.c: New file.
11758
11759 2003-02-27 Andrew Cagney <cagney@redhat.com>
11760
11761 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11762
11763 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11764
11765 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11766 (M6812_OP_STS_EXT): Likewise.
11767 (m6811_prologue): Use the above to recognize prologue.
11768 (m6812_prologue): Likewise.
11769
11770 2003-02-27 David Carlton <carlton@math.stanford.edu>
11771
11772 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11773 SYMBOL_PRINT_NAME.
11774 (compare_psymbols): Ditto.
11775 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11776
11777 2003-02-27 Michael Snyder <msnyder@redhat.com>
11778
11779 * f-lang.c (build_fortran_types): New function.
11780 (_initialize_f_language): Gdbarch-register built-in fortran types.
11781 * doublest.c (extract_floating): Fix warning text.
11782
11783 2003-02-27 Andrew Cagney <cagney@redhat.com>
11784
11785 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11786 predicate. Replaces PUSH_DUMMY_FRAME.
11787 * gdbarch.h, gdbarch.c: Regnerate.
11788 * valops.c (hand_function_call): Update. Call
11789 generic_push_dummy_frame directly.
11790 * vax-tdep.c (vax_gdbarch_init): Update.
11791 * sparc-tdep.c (sparc_gdbarch_init): Update.
11792 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11793 * m68k-tdep.c (m68k_gdbarch_init): Update.
11794 * hppa-tdep.c (hppa_gdbarch_init): Update.
11795 * alpha-tdep.c (alpha_gdbarch_init): Update.
11796 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11797 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11798 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11799 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11800 push_dummy_frame to generic_push_dummy_frame.
11801 * v850-tdep.c (v850_gdbarch_init): Ditto.
11802 * sh-tdep.c (sh_gdbarch_init): Ditto.
11803 * s390-tdep.c (s390_gdbarch_init): Ditto.
11804 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11805 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11806 * mips-tdep.c (mips_gdbarch_init): Ditto.
11807 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11808 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11809 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11810 * i386-tdep.c (i386_gdbarch_init): Ditto.
11811 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11812 * frv-tdep.c (frv_gdbarch_init): Ditto.
11813 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11814 * cris-tdep.c (cris_gdbarch_init): Ditto.
11815 * avr-tdep.c (avr_gdbarch_init): Ditto.
11816 * arm-tdep.c (arm_gdbarch_init): Ditto.
11817
11818 2003-02-26 Kevin Buettner <kevinb@redhat.com>
11819
11820 * mips-tdep.c (show_mips_abi): New function.
11821 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11822 command ``show mips abi''.
11823
11824 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
11825
11826 From Elena Zannoni <ezannoni@redhat.com>
11827 * dbxread.c (process_one_symbol): Only record line 0 if one or
11828 more sline entries have been seen for the function.
11829
11830 2003-02-26 Michael Chastain <mec@shout.net>
11831
11832 * configure: Regenerate with autoconf 000227.
11833
11834 2003-02-26 Michael Chastain <mec@shout.net>
11835
11836 Close PR build/660.
11837 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11838 for old libc5/glibc.
11839 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11840
11841 2003-02-26 Kris Warkentin <kewarken@qnx.com>
11842
11843 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11844 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11845
11846 2003-02-26 Michael Chastain <mec@shout.net>
11847
11848 * configure.in: New variable HAVE_UINTPTR_T.
11849 * configure, config.in: Regenerated.
11850
11851 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
11852
11853 Fix PR build/1097.
11854 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11855
11856 2003-02-25 Andrew Cagney <cagney@redhat.com>
11857
11858 * frame.c (get_prev_frame): Add comment on check for
11859 inside_entry_func. Only check for inside_entry_file when not a
11860 dummy and not a sentinel. Check that the new frame is not inner
11861 to the old frame.
11862
11863 2003-02-25 Andrew Cagney <cagney@redhat.com>
11864
11865 * frame.c (frame_debug): New variable.
11866 (_initialize_frame): Add "set/show debug frame" command.
11867 (get_prev_frame): When frame_debug, print reason why unwind
11868 failed.
11869
11870 2003-02-25 Michael Chastain <mec@shout.net>
11871
11872 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11873 to avoid uintptr_t definition problems.
11874
11875 2003-02-25 David Carlton <carlton@math.stanford.edu>
11876
11877 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11878 (SYMBOL_LINKAGE_NAME): Ditto.
11879 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11880 SYMBOL_LINKAGE_NAME.
11881 (struct general_symbol_info): Expand comment.
11882 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11883 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11884 (SYMBOL_MATCHES_REGEXP): Ditto.
11885 * symtab.c (symbol_natural_name): New function.
11886 * objfiles.h: Replace all uses of SYMBOL_NAME by
11887 DEPRECATED_SYMBOL_NAME.
11888 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11889 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11890 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11891 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11892 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11893 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11894 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11895 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11896 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11897 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11898 * ada-exp.y: Ditto.
11899 * ada-exp.y: Update copyright.
11900 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11901 * cp-valprint.c: Ditto.
11902
11903 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11904
11905 * infptrace.c (detach): Do not flag error if ptrace detach fails
11906 and errno is set to ESRCH.
11907
11908 2003-02-24 Andrew Cagney <cagney@redhat.com>
11909
11910 * infptrace.c (udot_info): Change type of udot_off to long. Use
11911 paddr when printing udot_off's value.
11912
11913 2003-02-24 David Carlton <carlton@math.stanford.edu>
11914
11915 * symtab.c (make_symbol_overload_list): Only read in partial
11916 symtabs containing a matching partial symbol.
11917
11918 2003-02-24 David Carlton <carlton@math.stanford.edu>
11919
11920 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11921 do the comparison, not strcmp.
11922 * symfile.c (compare_psymbols): Ditto.
11923 * defs.h: Declare strcmp_iw_ordered.
11924 * utils.c (strcmp_iw_ordered): New function.
11925
11926 2003-02-24 Jim Blandy <jimb@redhat.com>
11927
11928 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11929 support, shared libs): Remove my name from here, to better reflect
11930 reality.
11931
11932 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11933
11934 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11935 (target_ops): Add to_have_continuable_watchpoint.
11936 * target.c (update_current_target): Add INHERIT line for
11937 to_have_continuable_watchpoint.
11938 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11939 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11940 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11941 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11942
11943 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
11944
11945 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11946 maintainership.
11947
11948 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11949
11950 * solib.c (solib_open): Call target defined search function after
11951 failing with solib-search-path.
11952 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11953 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
11954
11955 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11956
11957 * MAINTAINERS: Add myself to Write After section.
11958
11959 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11960
11961 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11962
11963 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11964
11965 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11966 (m68hc11_add_reggroups): New function.
11967 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11968 (m68hc11_gdbarch_init): Install the reggroups.
11969 (_initialize_m68hc11_tdep): Initialize them.
11970
11971 2003-02-21 James E Wilson <wilson@tuliptree.org>
11972
11973 * MAINTAINERS: Update my email address.
11974
11975 2003-02-21 David Carlton <carlton@math.stanford.edu>
11976
11977 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11978
11979 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
11980
11981 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11982 * symtab.h: Add opaque declarations of struct axs_value and
11983 struct agent_expr.
11984 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11985 (struct location_funcs): New type.
11986 (struct symbol): Add "loc" to aux_value.
11987 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11988 * dwarf2read.c: Include "dwarf2expr.h".
11989 (dwarf2_symbol_mark_computed): New function.
11990 (read_func_scope): Use it.
11991 (var_decode_location): New function.
11992 (new_symbol): Use it.
11993 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11994
11995 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11996 (dwarf2expr_h, dwarf2loc_h): New variables.
11997 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11998 (dwarf2expr.o, dwarf2loc.o): New rules.
11999 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12000 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12001 LOC_COMPUTED_ARG.
12002 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12003 * m2-exp.y (yylex): Likewise.
12004 * printcmd.c (address_info, print_frame_args): Likewise.
12005 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12006 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12007 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12008 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12009 * symtab.c (lookup_block_symbol): Likewise.
12010
12011 2003-02-20 Adam Fedor <fedor@gnu.org>
12012
12013 * symtab.h: Remove objc_specific struct
12014 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12015 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12016 Have language_objc use cplus_specific struct.
12017
12018 2003-02-20 Tom Tromey <tromey@redhat.com>
12019
12020 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12021 TYPE_NAME, when printing a String value. PR java/1075.
12022
12023 2003-02-20 Adam Fedor <fedor@gnu.org>
12024
12025 * objc-lang.h (find_methods): Remove declaration.
12026 * objc-lang.c (find_methods): Make static.
12027
12028 2003-02-20 Christopher Faylor <cgf@redhat.com>
12029
12030 * win32-nat.c (get_image_name): Check return value from
12031 ReadProcessMemory.
12032 (child_xfer_memory): Ditto.
12033
12034 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
12035
12036 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12037 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12038 '${exec_prefix}' (in addition to the expansion thereof) as
12039 relocatable.
12040 * configure: Rebuilt.
12041
12042 2003-02-20 David Carlton <carlton@math.stanford.edu>
12043
12044 * symtab.c (search_symbols): Revert the search_symbols part of my
12045 2002-12-23 patch. Add comment.
12046
12047 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12048
12049 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12050 * dbxread.c (elfstab_build_psymtabs): Don't call
12051 install_minimal_symbols.
12052 (stabsect_build_psymtabs): Likewise.
12053 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12054 earlier.
12055 * somread.c (som_symfile_read): Call install_minimal_symbols
12056 and do_cleanups earlier.
12057 * nlmread.c (nlm_symfile_read): Likewise.
12058 * mdebugread.c (elfmdebug_build_psymtabs): Call
12059 install_minimal_symbols and make appropriate cleanups.
12060
12061 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12062
12063 * solib.c (reload_shared_libraries): New function.
12064 (_initialize_solib): Add callbacks for ``set solib-search-path''
12065 and ``set solib-absolute-prefix''.
12066
12067 2003-02-20 David Carlton <carlton@math.stanford.edu>
12068
12069 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12070 expand comment.
12071 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12072 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12073 * ada-typeprint.c (ada_typedef_print): Ditto.
12074 * ax-gdb.c (gen_var_ref): Ditto.
12075 * breakpoint.c (print_one_breakpoint): Ditto.
12076 * buildsym.c (finish_block): Ditto.
12077 * c-valprint.c (c_val_print): Ditto.
12078 * expprint.c (print_subexp): Ditto.
12079 * findvar.c (locate_var_value): Ditto.
12080 * infcmd.c (jump_command): Ditto.
12081 * linespec.c (decode_line_2, decode_compound): Ditto.
12082 * maint.c (maintenance_translate_address): Ditto.
12083 * objc-lang.c (compare_selectors, compare_classes): Ditto.
12084 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12085 Ditto.
12086 * p-valprint.c (pascal_val_print): Ditto.
12087 * stabsread.c (define_symbol): Ditto.
12088 * stack.c (print_frame, frame_info, print_block_frame_locals)
12089 (print_frame_arg_vars, return_command): Ditto.
12090 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12091 * symmisc.c (print_symbol): Ditto.
12092 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12093 (compare_search_syms, print_symbol_info, print_msymbol_info)
12094 (rbreak_command): Ditto.
12095 * tracepoint.c (tracepoints_info): Ditto.
12096 * typeprint.c (typedef_print): Ditto.
12097 * valops.c (value_of_variable, hand_function_call): Ditto.
12098 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12099 * ada-typeprint.c: Update Copyright.
12100 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12101 * tracepoint.c, cli/cli-cmds.c: Ditto.
12102
12103 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12104
12105 * frame.c (generic_unwind_get_saved_register): Make non-static.
12106 * frame.h (generic_unwind_get_saved_register): Declare.
12107 * mips-tdep.c (read_next_frame_reg): Fetch register from
12108 current regcache when frame is NULL.
12109 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12110 that must be NULL.
12111 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12112 instead of frame_register_unwind().
12113
12114 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12115
12116 * remote-sim.c (gdbsim_insert_breakpoint)
12117 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12118 code.
12119
12120 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12121
12122 * remote.c (_initialize_remote): Add commands "set/show remote
12123 hardware-watchpoint-limit" and "set/show remote
12124 hardware-breakpoint-limit".
12125 (remote_hw_watchpoint_limit): Initialize to -1.
12126 (remote_hw_breakpoint_limit): Ditto.
12127 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12128
12129 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12130
12131 * coff-pe-read.c: New file - support reading of minimal symbols from a
12132 portable executable using the export table.
12133 * coff-pe-read.h: New file.
12134 * coffread.c: Include coff-pe-read.h.
12135 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12136 debugging symbols found.
12137 * Makefile.in (SFILES): Add coff-pe-read.o.
12138 (coff_pe_read_h): Define.
12139 (COMMON_OBS): Add coff-pe-read.o.
12140 (coffread.o): Add coff_pe_read_h dependency.
12141 (coff-pe-read.o): New target.
12142
12143 2003-02-19 David Carlton <carlton@math.stanford.edu>
12144
12145 * Makefile.in (SFILES): Add block.c.
12146 (block_h): New.
12147 (COMMON_OBS): Add block.o.
12148 (block.o): New.
12149 (x86-64-tdep.o): Add $(block_h).
12150 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12151 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12152 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12153 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12154 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12155 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12156 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12157 * value.h: Add opaque declaration for struct block.
12158 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12159 * ada-lang.h: Ditto.
12160 * x86-64-tdep.c: #include "block.h"
12161 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12162 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12163 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12164 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12165 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12166 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12167 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12168 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12169 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12170 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12171 * symtab.c (block_function): Ditto.
12172 (contained_in): Ditto.
12173 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12174 block.h. Add opaque declaration for struct block.
12175 * symtab.h: Move block_function and contained_in declarations to
12176 block.h. Add opaque declarations for struct block, struct
12177 blockvector.
12178 (struct block): Move to block.h.
12179 (struct blockvector): Ditto.
12180 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12181 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12182 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12183 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12184 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12185 Ditto.
12186 * block.c: New file.
12187 * block.h: New file.
12188
12189 2003-02-19 Theodore A. Roth <troth@openavr.org>
12190
12191 * avr-tdep.c (avr_extract_return_value): Remove function.
12192 (avr_store_return_value): Remove function.
12193 (avr_extract_struct_value_address): Remove function.
12194 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12195
12196 2003-02-19 Andrew Cagney <ac131313@redhat.com>
12197
12198 * rs6000-tdep.c: Include "gdb_assert.h".
12199 (registers_e500): Add "acc" and "spefscr".
12200 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12201 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12202 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12203 really is "r0".
12204 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12205
12206 2003-02-18 Keith Seitz <keiths@redhat.com>
12207
12208 * Makefile.in: Add gdbtk-interps.c.
12209
12210 2003-02-18 Kevin Buettner <kevinb@redhat.com>
12211
12212 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12213 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12214
12215 2003-02-18 Andrew Cagney <cagney@redhat.com>
12216
12217 * symtab.h (struct objfile): Add opaque declaration.
12218
12219 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
12220
12221 From Jim Ingham <jingham@apple.com>:
12222 * dbxread.c (process_one_symbol): Use last_function_start rather
12223 than function_start_offset to find the real beginning of the
12224 current function. The latter is just the text section offset on
12225 some systems, the former is always the real function start.
12226
12227 2003-02-17 Andrew Cagney <cagney@redhat.com>
12228
12229 * configure.in: Revert ${target} != ${host}.
12230
12231 2003-02-17 Andrew Cagney <ac131313@redhat.com>
12232
12233 * configure.in (Makefile): Use the test ${target} != ${host},
12234 instead of the absence of the "nm.h" file, to determine of the
12235 configuration non-native.
12236 * configure: Regenerate.
12237
12238 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
12239
12240 From Brian Ford <ford@vss.fsi.com>
12241
12242 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12243 conditionalize tui_active test.
12244 (lookup_cmd_1): Ditto.
12245
12246 2003-02-14 Mark Kettenis <kettenis@gnu.org>
12247
12248 * configure.in: Add check for _etext.
12249 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12250 available.
12251 * config.in, configure: regenerated.
12252
12253 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
12254
12255 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12256
12257 2003-02-14 Andrew Cagney <ac131313@redhat.com>
12258
12259 * main.c (tui_version): Delete variable.
12260 (captured_main): When --tui, set interpreter_p to "tui" instead of
12261 enabling tui_version.
12262 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12263 tui_version.
12264 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12265 * cli/cli-cmds.c (disassemble_command): Ditto.
12266 * defs.h (tui_version): Delete declaration.
12267 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12268 (tui-interp.o): Add rules.
12269 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12270
12271 2003-02-14 Christopher Faylor <cgf@redhat.com>
12272
12273 * win32-nat.c (register_loaded_dll): Correctly set address range for
12274 just-loaded dll.
12275
12276 2003-02-12 Jason Molenda (jmolenda@apple.com)
12277
12278 * symmisc.c (print_objfile_statistics): Include information about
12279 the number of psymtabs and symtabs in each object file.
12280
12281 2003-02-13 Keith R Seitz <keiths@redhat.com>
12282
12283 * main.h (struct captured_main_args): Add interpreter_p.
12284 * main.c (captured_main): Initialize interpreter_p from context.
12285 * gdb.c (main): Set interpreter_p argument.
12286 * Makefile.in (gdb.o): Add dependency for interps.h.
12287
12288 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12289
12290 * event-top.c (cli_command_loop): Delete declaration.
12291 (_initialize_event_loop): Delete function setting event_loop_hook.
12292 * event-top.h (cli_command_loop): Declare. Update copyright.
12293 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12294 * interps.c (current_interp_command_loop): When event_loop_p, call
12295 cli_command_loop.
12296
12297 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12298
12299 * interps.h (interp_command_loop_ftype): Change return type to
12300 void.
12301
12302 2003-02-12 Michal Ludvig <mludvig@suse.cz>
12303
12304 * x86-64-tdep.c (x86_64_extract_return_value)
12305 (x86_64_store_return_value): Use regcache instead of regbuf.
12306 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12307 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12308
12309 2003-02-11 Andrew Cagney <ac131313@redhat.com>
12310
12311 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12312 * aclocal.m4: Regenerate.
12313 * configure: Regenerate.
12314
12315 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12316 TCL_LD_SEARCH_FLAGS.
12317
12318 2003-02-10 Michal Ludvig <mludvig@suse.cz>
12319
12320 * dwarf2cfi.c: Reindented.
12321
12322 2003-02-09 Andrew Cagney <ac131313@redhat.com>
12323
12324 * interps.c (clear_interpreter_hooks): Convert function definition
12325 to ISO C.
12326
12327 2003-02-07 David Carlton <carlton@math.stanford.edu>
12328
12329 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12330
12331 2003-02-07 Kevin Buettner <kevinb@redhat.com>
12332
12333 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12334 (struct type): ...to here.
12335 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12336 field.
12337 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12338 (replace_type): Set length on all type variants for a given type.
12339
12340 2003-02-07 Andrew Cagney <ac131313@redhat.com>
12341
12342 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12343 <sys/stat.h>.
12344 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12345
12346 2003-02-06 Andrew Cagney <ac131313@redhat.com>
12347
12348 * Makefile.in (symm-nat.o): Update dependencies.
12349 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12350 (lynx-nat.o, ia64-linux-nat.): Ditto.
12351 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12352 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12353 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12354
12355 * Makefile.in (inflow_h): Define.
12356 (procfs.o, inflow.o, procfs.o): Update dependencies.
12357 * inftarg.c (child_stop): Delete extern declaration of
12358 inferior_process_group. Include "inflow.h".
12359 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12360 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12361 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12362 (our_process_group, inferior_process_group): Extern declarations.
12363
12364 * procfs.c: Include "gdb_assert.h".
12365
12366 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12367 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12368 * jv-typeprint.c (java_type_print_base): Ditto.
12369 * typeprint.c (typedef_print): Eliminate STREQ.
12370 * cli/cli-script.c (define_command, define_command): Ditto.
12371 * main.c (captured_main): Ditto.
12372 * values.c (lookup_internalvar): Ditto.
12373 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12374 within `if' conditional.
12375 * linespec.c (decode_line_2): Ditto.
12376 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12377 (bfd_openw_with_cleanup): Ditto.
12378
12379 2003-02-07 Mark Kettenis <kettenis@gnu.org>
12380
12381 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12382 legacy_extract_return_value and store_return_value to
12383 legacy_return_value.
12384
12385 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12386
12387 * win32-nat.c (get_relocated_section_addrs): New function. Find
12388 section load addresses for symbol handling in relocated DLLs.
12389 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12390
12391 2003-02-05 Fred Fish <fnf@intrinsity.com>
12392
12393 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12394 '=' and '!='.
12395 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12396 with '&' and '=='.
12397 (angel_RDI_info): Ditto.
12398 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12399 with '&' and '!='.
12400 (threads_continue_all_with_signals): Ditto.
12401
12402 2003-02-05 Jim Ingham <jingham@apple.com>
12403 Keith Seitz <keiths@redhat.com>
12404 Elena Zannoni <ezannoni@redhat.com>
12405 Andrew Cagney <ac131313@redhat.com>
12406
12407 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12408 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12409 (SUBDIR_MI_OBS): Add "mi-interp.o".
12410 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12411 (SFILES): Add "interps.c".
12412 (COMMON_OBS): Add "interps.o".
12413 (interps_h, mi_main_h): Define.
12414 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12415 (mi-main.o, main.o, event-top.o): Update dependencies.
12416 * cli/cli-interp.c: New file.
12417 * interps.h, interps.c: New files.
12418 * top.c: (gdb_init): Don't install the default interpreter, handed
12419 by captured_main.
12420 * main.c: Include "interps.h".
12421 (interpreter_p): Note that it should malloc'ed.
12422 (captured_command_loop): Call current_interp_command_loop.
12423 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12424 xfree and xstrdup when updating interpreter_p. Install the
12425 default interpreter. Add hack to stop mi1's copyright notice
12426 being encoded.
12427 * event-top.h (gdb_setup_readline): Declare.
12428 (gdb_disable_readline): Declare.
12429 * event-top.c: Include "interps.h".
12430 (display_gdb_prompt): Call current_interp_display_prompt_p.
12431 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12432 gdb_stdlog, and gdb_stdtarg.
12433 (_initialize_event_loop): Don't call gdb_setup_readline.
12434 * cli-out.c (cli_out_set_stream): New function.
12435 * cli-out.h (cli_out_set_stream): Declare.
12436
12437 2003-02-06 Mark Kettenis <kettenis@gnu.org>
12438
12439 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12440 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12441 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12442 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12443 config/i386/i386v42mp.mt: Removed.
12444
12445 2003-02-05 Mark Kettenis <kettenis@gnu.org>
12446
12447 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12448 GDB_OSABI_SOLARIS.
12449
12450 2003-02-05 Michael Chastain <mec@shout.net>
12451
12452 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12453 2.12.1 and earlier versions.
12454
12455 2003-02-05 Andrew Cagney <ac131313@redhat.com>
12456
12457 Remove orphaned hosts, targets and files.
12458 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12459 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12460 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12461 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12462 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12463 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12464 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12465 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12466 * config/sparc/tm-sp64sim.h: Delete.
12467 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12468 hosts.
12469 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12470 mips*-dec-mach3* targets.
12471
12472 2003-02-04 Michael Chastain <mec@shout.net>
12473
12474 * NEWS: Fix typo: sepcifying -> specifying.
12475
12476 2003-02-04 Michael Chastain <mec@shout.net>
12477
12478 * dwarfread.c: Add documentation on the state of dwarf-1,
12479 looking towards obsoletion.
12480
12481 2003-02-03 Michael Chastain <mec@shout.net>
12482
12483 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12484 gdb/testsuite/gdb.c++/pr-1023.exp.
12485
12486 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12487
12488 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12489 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12490
12491 * utils.c (init_page_info): Delete reference to MPW in comments.
12492 * main.c (captured_main): Delete #ifdef MPW.
12493
12494 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12495
12496 * NEWS: Note that the m32r-*-elf* is obsolete.
12497 * monitor.c (monitor_expect): Obsolete reference to m32r.
12498 * configure.tgt: Mark m32r-*-elf* as obsolete.
12499 * MAINTAINERS: Mark m32k as obsolete.
12500 * m32r-rom.c: Obsolete file.
12501 * config/m32r/m32r.mt: Obsolete file.
12502 * config/m32r/tm-m32r.h: Obsolete file.
12503 * m32r-stub.c: Obsolete file.
12504 * m32r-tdep.c: Obsolete file.
12505
12506 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12507
12508 * NEWS: Mention that the z8k-zilog-none is obsolete.
12509 * MAINTAINERS: Mark z8k as obsolete.
12510 * configure.tgt: Obsolete the z8k-*-coff* target.
12511 * config/z8k/z8k.mt: Obsolete file.
12512 * config/z8k/tm-z8k.h: Obsolete file.
12513 * z8k-tdep.c: Obsolete file.
12514
12515 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12516
12517 * NEWS: Mention that the mn10200-elf is obsolete.
12518 * configure.tgt: Obsolete mn10200-*-* target.
12519 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12520 mention that the mn10200 is obsolete.
12521 * breakpoint.h: Ditto.
12522 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12523 * config/mn10200/mn10200.mt: Obsolete file.
12524 * config/mn10200/tm-mn10200.h: Obsolete file.
12525 * mn10200-tdep.c: Obsolete file.
12526
12527 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12528
12529 * MAINTAINERS: Mark h8500 as obsolete.
12530 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12531 * findvar.c (value_from_register): Ditto.
12532 * h8500-tdep.c: Mark file as obsolete.
12533 * config/h8500/h8500.mt: Ditto.
12534 * config/h8500/tm-h8500.h: Ditto.
12535 * NEWS: Mention that h8500 is obsolete.
12536
12537 2003-02-04 David Carlton <carlton@math.stanford.edu>
12538
12539 * objfiles.c (allocate_objfile): Always set name. Add comment at
12540 start of function.
12541 * jv-lang.c (get_dynamics_objfile): Add comment.
12542
12543 2003-02-04 David Carlton <carlton@math.stanford.edu>
12544
12545 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12546 * printcmd.c (build_address_symbolic): Replace uses of
12547 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12548 SYMBOL_NAME, and asm_demangle.
12549 Update copyright.
12550
12551 2003-02-04 David Carlton <carlton@math.stanford.edu>
12552
12553 * linespec.c (decode_compound): Extract code into
12554 lookup_prefix_sym.
12555 (lookup_prefix_sym): New function.
12556
12557 2003-02-04 David Carlton <carlton@math.stanford.edu>
12558
12559 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12560 FLOAT_COERCION_BADNESS.
12561 * gdbtypes.c (rank_one_type): Replace all uses of
12562 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12563
12564 2003-02-04 Jim Blandy <jimb@redhat.com>
12565
12566 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12567 section, let dwarf_macinfo_section point to it, not
12568 dwarf_loc_section.
12569
12570 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12571
12572 Pointed out by Anton Blanchard <anton@samba.org>.
12573 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12574 (ppc_linux_at_sigtramp_return_path): Use it.
12575
12576 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12577
12578 * defs.h (streq): Add prototype.
12579 * utils.c (streq): New function.
12580
12581 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12582 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12583 * mdebugread.c (new_symbol): Likewise.
12584 * stabsread.c (define_symbol): Likewise.
12585 * coffread.c (process_coff_symbol): Likewise.
12586 * dwarfread.c (new_symbol): Likewise.
12587
12588 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12589 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12590 here.
12591 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12592 SYMBOL_INIT_DEMANGLED_NAME.
12593 * objfiles.c: Include "hashtab.h".
12594 (allocate_objfile): Call htab_set_functions_ex for the
12595 demangled_names_hash.
12596 (free_objfile): Call htab_delete for the demangled_names_hash.
12597 * objfiles.h (struct htab): Add declaration.
12598 (struct objfile): Add demangled_names_hash.
12599 * symfile.c: Include "hashtab.h".
12600 (reread_symbols): Call htab_delete for the demangled_names_hash.
12601 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12602 SYMBOL_NAME in the bcache.
12603 * symtab.c: Include "hashtab.h". Update comments.
12604 (create_demangled_names_hash, symbol_set_names): New functions.
12605 (symbol_find_demangled_name): New function, broken out from
12606 symbol_init_demangled_names.
12607 (symbol_init_demangled_names): Use it.
12608 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12609 (SYMBOL_SET_NAMES): New macro.
12610 (symbol_set_names): Add prototype.
12611
12612 2003-02-03 Jim Blandy <jimb@redhat.com>
12613
12614 Use a single, consistent representation for an empty minimal
12615 symbol table in an objfile.
12616 * objfiles.c (terminate_minimal_symbol_table): New function.
12617 (allocate_objfile): Call it.
12618 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12619 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
12620 non-NULL.
12621 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12622 objfile has minimal symbols, compare minimal_symbol_count to zero,
12623 instead of comparing msymbols with NULL.
12624 * objfiles.c (have_minimal_symbols): Same.
12625 * solib-sunos.c (solib_add_common_symbols): Call
12626 terminate_minimal_symbol_table.
12627 * symfile.c (reread_symbols): Same.
12628
12629 2003-02-03 Kevin Buettner <kevinb@redhat.com>
12630
12631 * s390-tdep.c (s390_address_class_type_flags)
12632 (s390_address_class_type_flags_to_name)
12633 (s390_address_class_name_to_type_flags): New functions.
12634 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12635 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12636
12637 2003-02-03 Michael Snyder <msnyder@redhat.com>
12638
12639 * arm-tdep.c: Fix spell-o in comment.
12640
12641 2003-02-03 Michal Ludvig <mludvig@suse.cz>
12642
12643 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12644 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
12645 error messages to contain BFD filename.
12646
12647 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
12648
12649 Fix PR gdb/742 gdb/743 gdb/877
12650 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12651 (do_mixed_source_and_assembly): Use
12652 make_cleanup_ui_out_tuple_begin_end and
12653 make_cleanup_ui_out_tuple_begin_end.
12654 (do_mixed_source_and_assembly): Ditto.
12655 * thread.c (do_captured_list_thread_ids): Ditto.
12656 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12657 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12658 ui_out_tuple_end): Delete prototypes.
12659 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12660 ui_out_list_end, ui_out_tuple_end): Delete.
12661
12662 From Kevin Buettner <kevinb@redhat.com>:
12663 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
12664 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12665 (do_cleanup_table_end): New functions.
12666 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12667 Use cleanups to invoke_ui_out_tuple_end().
12668 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
12669 * cli/cli-setshow.c (cmd_show_list): Use
12670 make_cleanup_ui_out_tuple_begin_end.
12671
12672 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12673
12674 * frame.c (frame_unwind_register): New function.
12675 (frame_unwind_unsigned_register): Use.
12676 (frame_unwind_signed_register): Use.
12677 (frame_read_register): New function.
12678 * frame.h (frame_unwind_register): Declare.
12679 (frame_read_register): Declare.
12680
12681 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12682 and frame_unwind_register instead of read_memory, write_register
12683 and deprecated_write_register_bytes.
12684
12685 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12686
12687 * frame.h: Note that namelen can be negative.
12688 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12689 NAME's length.
12690
12691 * NEWS: Mention that the d10v's `regs' command is deprecated.
12692 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12693 (d10v_print_registers_info): New function.
12694 (show_regs): Call d10v_print_registers_info.
12695 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12696
12697 2003-02-02 Mark Kettenis <kettenis@gnu.org>
12698
12699 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12700 lost in the previous patch.
12701
12702 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12703
12704 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
12705 * stack.c (print_frame_info_base): Output complete FRAME tuple
12706 for synthesized frames.
12707
12708 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12709
12710 * mips-nat.c (zerobuf): Delete.
12711 (fetch_inferior_registers): Alloc local zerobuf.
12712 (fetch_core_registers): Alloc local zerobuf.
12713 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12714 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12715 * thread-db.c (thread_db_store_registers): Ditto.
12716 * sh-tdep.c (sh_do_register): Ditto.
12717 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12718 * remote-sim.c (gdbsim_store_register): Ditto.
12719 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12720 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12721 * monitor.c (monitor_supply_register): Ditto.
12722 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12723 * mips-nat.c (fetch_inferior_registers): Ditto.
12724 * m68klinux-nat.c (fetch_register): Ditto.
12725 * lynx-nat.c (fetch_inferior_registers): Ditto.
12726 (fetch_inferior_registers): Ditto.
12727 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12728 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12729 (hpux_thread_store_registers): Ditto.
12730 * hppah-nat.c (fetch_register): Ditto.
12731 * hppab-nat.c (fetch_register): Ditto.
12732 * hppa-tdep.c (pa_register_look_aside): Ditto.
12733 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12734 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12735
12736 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12737
12738 * gdbarch.sh: Explictly specify all method levels. When a
12739 variable with an empty level, provide a non-multi-arch default.
12740 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12741 * gdbarch.h: Re-generate.
12742 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12743 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12744
12745 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12746
12747 * defs.h (host_pointer_to_address): Delete declaration.
12748 (address_to_host_pointer): Delete declaration.
12749 * utils.c (host_pointer_to_address): Delete function.
12750 (address_to_host_pointer): Delete function.
12751 * procfs.c (procfs_address_to_host_pointer): New function.
12752 * procfs.c (proc_set_watchpoint): Use.
12753 (procfs_can_use_hw_breakpoint): Update comments.
12754 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12755 (som_solib_add): Use.
12756 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12757 * hppa-tdep.c (unwind_command): Use.
12758
12759 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12760
12761 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12762 strlen d_name.
12763
12764 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12765 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12766 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12767 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12768 (define_symbol): Update.
12769 * symfile.c (generic_load): Remove references to nindy.
12770 * symtab.c: Remove references to nindy.
12771
12772 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12773
12774 * infcmd.c (print_float_info): Delete code conditional on
12775 FLOAT_INFO.
12776 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12777 * config/m68k/nm-apollo68b.h: Ditto.
12778 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12779 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12780 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12781
12782 2003-02-01 Mark Kettenis <kettenis@gnu.org>
12783
12784 * config/i386/tm-i386os9k.h: Removed.
12785
12786 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12787 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12788 they're identical to i[3456]86-*-sysv* now.
12789 * config/i386/i386v32.mh: Removed.
12790 * config/i386/xm-i386v32.h: Removed.
12791 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12792
12793 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12794
12795 * config/i386/i386dgux.mh: Removed.
12796 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12797
12798 * configure.in: Fix typo.
12799 * configure: Regenerated.
12800
12801 2003-01-31 David Carlton <carlton@math.stanford.edu>
12802
12803 * dwarf2read.c (dwarf2_locate_sections): Set
12804 dwarf_ranges_section.
12805
12806 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12807
12808 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12809 * utils.c: Update comments documenting legitimate uses of PTR.
12810
12811 * utils.c: Re-indent.
12812
12813 * config/djgpp/fnchange.lst: Delete nindy files.
12814 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12815 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12816 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12817 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12818 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12819 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12820 * Makefile.in (init.c): Remove nindy references.
12821 (saber_gdb): Delete rule.
12822 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12823 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12824 and a68v-nat.c.
12825 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12826 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12827 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12828 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12829 nindy-share/stop.h.
12830 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12831 * saber.suppress: Delete file.
12832
12833 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
12834
12835 * dbxread.c (stabs_data): New static variable.
12836 (fill_symbuf): Support an in-memory buffer for stabs data.
12837 (stabs_seek): New function.
12838 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12839 (read_ofile_symtab): Use stabs_seek.
12840 (elfstab_build_psymtabs): Take an asection* instead of
12841 an offset and size. Relocate the stabs data if necessary.
12842 Save the section* for dbx_psymtab_to_symtab.
12843 * dwarf2read.c: Add section variables for each debug section.
12844 (dwarf2_locate_sections): Fill them in.
12845 (dwarf2_read_section): Take an asection* argument.
12846 Relocate the section contents if necessary.
12847 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12848 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12849 it to dwarf2_read_section.
12850 (dwarf2_build_frame_info): Update callers.
12851 * elfread.c (elf_symfile_read): Update call to
12852 elfstab_build_psymtabs.
12853 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12854 (DBX_STAB_SECTION): New macro.
12855 * stabsread.h (elfstab_build_psymtabs): Update prototype.
12856 * symfile.c (symfile_dummy_outputs): New function.
12857 (symfile_relocate_debug_section): New function.
12858 * symfile.h (symfile_relocate_debug_section): Add prototype.
12859
12860 2003-01-31 Richard Henderson <rth@redhat.com>
12861
12862 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12863 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12864 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12865 * alpha-tdep.c (alpha_register_name): Add "unique".
12866 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12867 (ALPHA_UNIQUE_REGNUM): New.
12868 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12869
12870 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12871
12872 * README: Remove reference to Ericsson 1800 monitor.
12873 * Makefile.in (remote-es.o): Delete rule.
12874 (ALLDEPFILES): Delete remote-es.c.
12875 * remote-es.c: Delete file.
12876 * config/m68k/es1800.mt: Delete file.
12877 * config/djgpp/fnchange.lst: Update.
12878 * configure.tgt: Delete m68*-ericsson-* target.
12879
12880 2003-01-31 Adam Fedor <fedor@gnu.org>
12881
12882 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12883 Remove duplicate/shadowing variable of same name.
12884
12885 2003-01-30 Jim Blandy <jimb@redhat.com>
12886
12887 * symfile.c (find_separate_debug_file): Assert that the objfile's
12888 directory name we compute ends with a slash, and then assume that
12889 that's so everywhere we use it.
12890
12891 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
12892
12893 * valops.c (value_assign): Flush frame cache after stores to memory
12894 also.
12895
12896 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12897
12898 * Makefile.in (mon960-rom.o): Delete rule.
12899 * mon960-rom.c: Delete file.
12900
12901 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12902
12903 * d10v-tdep.c: Include "frame-unwind.h".
12904 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12905 list.
12906 (next_addr, uses_frame): Delete.
12907 (struct d10v_unwind_cache): Define.
12908 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12909 Use info instead of next_addr and uses_frame globals.
12910 (d10v_frame_init_saved_regs): Delete function.
12911 (d10v_init_extra_frame_info): Delete function.
12912 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12913 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12914 init_frame_pc or frame_saved_pc.
12915 (d10v_pop_frame): Delete function.
12916 (do_d10v_pop_frame): Delete function.
12917 (d10v_frame_chain): Delete function.
12918 (d10v_frame_chain_valid): Delete function.
12919 (d10v_frame_pc_unwind): New function.
12920 (d10v_frame_id_unwind): New function.
12921 (saved_regs_unwinder): New function.
12922 (d10v_frame_register_unwind): New function.
12923 (d10v_frame_pop): New function.
12924 (d10v_frame_unwind): New variable.
12925 (d10v_frame_p): New function.
12926 (d10v_frame_saved_pc): Delete function.
12927 * Makefile.in (d10v-tdep.o): Update dependencies.
12928
12929 2003-01-30 J. Brobecker <brobecker@gnat.com>
12930
12931 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12932 causing some regressions due to a change in the default value
12933 for this macro.
12934
12935 2003-01-29 Richard Henderson <rth@redhat.com>
12936 Elena Zannoni <ezannoni@redhat.com>
12937 Daniel Jacobowitz <drow@mvista.com>
12938
12939 Fix PR gdb/961.
12940 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
12941 variables.
12942 (RANGES_SECTION): New.
12943 (dwarf_ranges_buffer): New variable.
12944 (struct comp_unit_head): Add member "die".
12945 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12946 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12947 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12948 (dwarf2_locate_sections): Likewise.
12949 (dwarf2_build_psymtabs): Read .debug_ranges.
12950 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12951 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12952 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12953 Look for DW_AT_ranges and return the bounding box.
12954
12955 2003-01-29 Brian Ford <ford@vss.fsi.com>
12956
12957 * win32-nat.c (cygwin_pid): Removed as unused.
12958 (child_attach): Try fall back to Cygwin pid.
12959
12960 2003-01-29 Jim Blandy <jimb@redhat.com>
12961
12962 * objfiles.h (struct objfile): Doc fix.
12963
12964 2003-01-29 Andrew Cagney <ac131313@redhat.com>
12965
12966 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12967 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12968 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12969 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12970 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12971 (FRAME_SAVED_PC): Change to a function with predicate.
12972 * gdbarch.h, gdbarch.c: Re-generate.
12973
12974 2003-01-28 Andrew Cagney <ac131313@redhat.com>
12975
12976 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12977
12978 * complaints.c (complain): Delete function.
12979 * complaints.h (struct deprecated_complaint): Delete definition.
12980 (complain): Delete declaration.
12981
12982 2003-01-28 Kevin Buettner <kevinb@redhat.com>
12983
12984 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12985 dummy frames.
12986
12987 2003-01-27 Andrew Cagney <ac131313@redhat.com>
12988
12989 * sentinel-frame.h, sentinel-frame.c: New files.
12990 * Makefile.in (frame.o): Update dependencies.
12991 (SFILES): Add sentinel-frame.c.
12992 (sentinel_frame_h): Define.
12993 (COMMON_OBS): Add sentinel-frame.o.
12994 (sentinel-frame.o): Specify dependencies.
12995 * frame.c: Include "sentinel-frame.h".
12996 (frame_register_unwind): Rewrite assuming that there is always a a
12997 ->next frame.
12998 (frame_register, generic_unwind_get_saved_register): Ditto.
12999 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13000 (create_sentinel_frame, unwind_to_current_frame): New functions.
13001 (get_current_frame): Rewrite using create_sentinel_frame and
13002 unwind_to_current_frame. When possible, always create a frame.
13003 (create_new_frame): Set next to the sentinel frame.
13004 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13005 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13006 ID cache when necessary.
13007 (frame_saved_regs_id_unwind): Use frame_relative_level.
13008 (deprecated_generic_get_saved_register): Use frame_relative_level,
13009 get_frame_saved_regs, get_frame_pc, get_frame_base and
13010 get_next_frame.
13011 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13012 frame_register.
13013
13014 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13015
13016 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13017
13018 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13019
13020 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13021 (maintenance_set_profile_cmd): Use error () instead of warning ().
13022
13023 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13024
13025 * configure.in: Check that -pg works if using --enable-profiling.
13026 Check for monstartup and _mcleanup regardless of --enable-profiling.
13027 * maint.c: Check for monstartup and _mcleanup before using them.
13028 * config.in: Regenerated.
13029 * configure: Regenerated.
13030
13031 2003-01-24 Nick Clifton <nickc@redhat.com>
13032
13033 * Add sh2e support:
13034
13035 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13036
13037 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13038 (sh2e_show_regs): New.
13039 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13040 * config/sh/tm-sh.h: Added sh2e to comments.
13041
13042 2003-01-23 Jim Blandy <jimb@redhat.com>
13043
13044 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13045 symbols found)" message here; we haven't checked for a separate
13046 debug info file yet, so we don't know yet.
13047 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13048 we've looked everywhere. Also, there's no need to print a special
13049 message when we're loading the separate debug info file: the one
13050 symbol_file_add prints is fine.
13051
13052 2003-01-23 Alexander Larsson <alexl@redhat.com>
13053 Jim Blandy <jimb@redhat.com>
13054
13055 Add support for executables whose debug info has been separated
13056 out into a separate file, leaving only a link behind.
13057 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13058 and separate_debug_objfile_backlink.
13059 (put_objfile_before): New declaration.
13060 * symfile.c: #include "filenames.h".
13061 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13062 debug info in a separate file, read that, too. Save the addrs
13063 argument, so we can use it again to read the separated debug info;
13064 syms_from_objfile modifies the table we pass it.
13065 (reread_symbols): After re-reading an objfile, call
13066 reread_separate_symbols to refresh its separate debug info
13067 objfile, if it has one.
13068 (reread_separate_symbols, find_separate_debug_file,
13069 get_debug_link_info, separate_debug_file_exists): New functions.
13070 (debug_file_directory): New global var.
13071 (_initialize_symfile): Initialize debug_file_directory, and
13072 provide the new `set debug-file-directory' command to let the user
13073 change it.
13074 * objfiles.c (free_objfile): If this objfile has its debug info in
13075 a separate objfile, free that one too. If this is itself a
13076 separate debug info objfile, clear our parent's backlink.
13077 (put_objfile_before): New function.
13078 * utils.c (gnu_debuglink_crc32): New function.
13079 * defs.h (gnu_debuglink_crc32): New declaration.
13080 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13081 * configure.in: Handle --with-separate-debug-dir config option.
13082 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13083 * acconfig.h (DEBUGDIR): New macro.
13084 * configure, aclocal.m4, config.in: Regenerated.
13085
13086 2003-01-22 Jim Blandy <jimb@redhat.com>
13087
13088 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13089 like the old symbol_file_add, but taking new arguments: you can
13090 now pass in either a `struct section_addr_info' list to say where
13091 each section is loaded, or a `struct section_offsets' table. Pass
13092 these new arguments through to syms_from_objfile as appropriate.
13093 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13094 with the appropriate quiescent values for the new arguments.
13095
13096 * symfile.c: #include "gdb_assert.h".
13097 (syms_from_objfile): Add the ability to pass in a section offset
13098 table directly, as an alternative to the section_addr_info table.
13099 Document arguments better.
13100 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13101 * symfile.h (syms_from_objfile): Update declaration.
13102 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13103 syms_from_objfile.
13104 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13105
13106 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
13107
13108 Original patch by Tom Tromey <tromey@cygnus.com> and
13109 Jason Molenda <jmolenda@apple.com>.
13110 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13111 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13112 * NEWS: Mention profiling.
13113 * configure.in (--enable-gdbtk): Fix typo.
13114 (--enable-profiling): New. Set PROFILE_CFLAGS.
13115 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13116 Fill in function.
13117 (profiling_state): New variable.
13118 (mcleanup_wrapper): New function.
13119 (_initialize_maint): Remove NOTYET, fix call to
13120 add_setshow_boolean_cmd for "maint set profile".
13121 * configure: Regenerated.
13122
13123 2003-01-21 Martin M. Hunt <hunt@redhat.com>
13124
13125 * Makefile.in (install-gdbtk): Install PNG images too.
13126
13127 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13128
13129 * exec.c (text_start): Delete global variable.
13130 (exec_file_attach): Make text_start local to the function.
13131 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13132 * valops.c (hand_function_call): Delete code that handles
13133 BEFORE_TEXT_END and AFTER_TEXT_END.
13134 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13135 of CALL_DUMMY_LOCATION.
13136 * gdbarch.c: Regenerate.
13137 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13138 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13139 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13140 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13141 (text_end): Delete extern declaration.
13142
13143 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13144
13145 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13146 * blockframe.c (backtrace_below_main): Move to "frame.c".
13147 (frame_chain_valid): Delete check for backtrace_below_main.
13148 (_initialize_blockframe): Delete initialization, move ``set
13149 backtrace-below-main'' command to "frame.c".
13150 (do_flush_frames_sfunc): Delete function.
13151 * frame.c: Include "command.h" and "gdbcmd.h".
13152 (frame_type_from_pc): New function.
13153 (create_new_frame): Use frame_type_from_pc.
13154 (legacy_get_prev_frame): New function.
13155 (get_prev_frame): Rewrite. When an old style frame, call
13156 legacy_get_prev_frame. Otherwize, unwind the PC first.
13157 (_initialize_frame): Add ``set backtrace-below-main'' command.
13158 * Makefile.in (frame.o): Update dependencies.
13159
13160 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13161
13162 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13163 DEPRECATED_REGISTERS_INFO.
13164
13165 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13166
13167 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13168 Maintainers'. Update `Various Maintainers'.
13169
13170 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13171
13172 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13173 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13174 Suppress actual parameters when `-'.
13175 * gdbarch.h, gdbarch.c: Regenerate.
13176
13177 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13178
13179 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13180 code handling dummy frames.
13181
13182 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13183
13184 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13185 (struct frame_unwind): Add field pop.
13186 * frame.h (frame_pop): Declare.
13187 * frame.c (frame_saved_regs_pop): New function.
13188 (trad_frame_unwinder): Add frame_saved_regs_pop.
13189 (frame_pop): New function.
13190 * dummy-frame.c (dummy_frame_pop): New function.
13191 (discard_innermost_dummy): New function.
13192 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13193 (dummy_frame_unwind): Add dummy_frame_pop.
13194 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13195 * valops.c (hand_function_call): Ditto.
13196 * stack.c (return_command): Ditto.
13197
13198 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13199
13200 * cris-tdep.c: Fix function declaration indentation.
13201 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13202 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13203 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13204 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13205 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13206 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13207
13208 2003-01-18 Michael Chastain <mec@shout.net>
13209
13210 * README (Unpacking and Installation -- quick overview):
13211 Warn against ".../gdb-5.3/gdb/configure".
13212
13213 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13214
13215 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13216 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13217 (struct frame_unwind): Declare opaque.
13218 (dummy_frame_p): Declare function.
13219 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13220 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13221 * dummy-frame.c: Include "frame-unwind.h".
13222 (dummy_frame_p): New function.
13223 (dummy_frame_unwind): New variable.
13224 * frame.c: Include "frame-unwind.h".
13225 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13226 to use the new unwind field.
13227 (set_unwind_by_pc): Delete function.
13228 (create_new_frame, get_prev_frame): Set unwind field using
13229 frame_unwind_find_by_pc.
13230 (trad_frame_unwind, trad_frame_unwinder): New variables.
13231 * frame.h (trad_frame_unwind): Declare variable.
13232 (frame_id_unwind_ftype): Delete declaration.
13233 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13234 (struct frame_unwind): Declare opaque.
13235 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13236 register_unwind with a single unwind pointer.
13237 * frame-unwind.h, frame-unwind.c: New files.
13238 * Makefile.in (SFILES): Add frame-unwind.c.
13239 (frame_unwind_h): Define.
13240 (COMMON_OBS): Add frame-unwind.o.
13241 (frame-unwind.o): Specify dependencies.
13242 (frame.o, dummy-frame.o): Update dependencies.
13243
13244 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13245
13246 * ada-valprint.c: Eliminate PTR.
13247 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13248 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13249 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13250 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13251 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13252 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13253 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13254
13255 2003-01-17 Andrew Cagney <ac131313@redhat.com>
13256
13257 * main.c (captured_main): Don't use PTR.
13258 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13259 * gdbtypes.c (lookup_primitive_typename): Ditto.
13260 (lookup_struct_elt_type): Ditto.
13261 * f-valprint.c (info_common_command): Ditto.
13262 (list_all_visible_commons): Ditto.
13263 * jv-typeprint.c (java_type_print_base): Ditto.
13264
13265 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13266 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13267 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13268 i386-interix-nat.c and i386-interix-tdep.c. Rename
13269 m68klinux-nat.c and m68klinux-tdep.c. Rename
13270 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13271 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13272 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13273 * main.c (captured_main): Use xfree, not free.
13274
13275 2003-01-16 Andrew Cagney <ac131313@redhat.com>
13276
13277 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13278 ID back using a parameter.
13279 * frame.c (frame_id_unwind): Update call.
13280 (frame_saved_regs_id_unwind): Update.
13281 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13282 * dummy-frame.h (struct frame_id): Add opaque declaration.
13283 (dummy_frame_id_unwind): Update declaration.
13284
13285 2003-01-15 Andrew Cagney <ac131313@redhat.com>
13286
13287 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13288
13289 2003-01-15 Stephen P. Smith <ischis2@cox.net>
13290
13291 * MAINTAINERS (Stephen P. Smith): Updated email address.
13292
13293 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
13294
13295 Fix PR gdb/898
13296 * breakpoint.c (until_break_command): Add new argument. Use it to
13297 decide whether to stop only at the current frame or not.
13298 * breakpoint.h (until_break_command): Update prototype.
13299 * infcmd.c (until_command): Add new argument to until_break_command
13300 call.
13301 (advance_command): New function.
13302 (_initialize_infcmd): Update help string for 'until' command.
13303 Add new 'advance' command.
13304
13305 2003-01-14 David Carlton <carlton@math.stanford.edu>
13306
13307 * linespec.c (decode_line_1): Normalize comments.
13308 (set_flags): Ditto.
13309 (locate_first_half): Ditto.
13310 (decode_compound): Ditto.
13311 (symtab_from_filename): Ditto.
13312 (decode_all_digits): Ditto.
13313 (decode_dollar): Ditto.
13314 (find_methods): Ditto.
13315 (find_toplevel_char): Ditto.
13316
13317 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13318
13319 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13320 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13321 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13322 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13323 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13324 * language.c, language.h, m32r-tdep.c: Update copyright.
13325 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13326 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13327 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13328 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13329 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13330 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13331
13332 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13333
13334 * stabsread.h (process_later, resolve_cfront_continuation):
13335 Obsolete.
13336 Update copyright years.
13337 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13338 Update copyright year.
13339 * dbxread.c(struct cont_elem): Obsolete.
13340 (process_later, process_now): Obsolete functions.
13341 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13342 Update copyright year.
13343 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13344 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13345 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13346 (parse_partial_symbols): Obsolete cfront support.
13347 * stabsread.c
13348 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13349 macros.
13350 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13351 read_cfront_baseclasses, read_cfront_member_functions,
13352 resolve_cfront_continuation,read_cfront_static_fields,
13353 copy_cfront_struct_fields): Obsolete functions.
13354 (define_symbol, read_one_struct_field): Obsolete cfront support.
13355 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13356 Update Copyright year.
13357
13358 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13359
13360 * stack.c (print_frame_info, print_stack_frame_base_stub,
13361 print_stack_frame_base, show_and_print_stack_frame_stub,
13362 show_and_print_stack_frame, print_only_stack_frame_stub,
13363 print_only_stack_frame): Delete functions.
13364 (print_stack_frame_stub): Call print_frame_info instead of
13365 print_frame_info_base.
13366 (print_frame_info_base): Rename to print_frame_info.
13367 (backtrace_command_1): Call print_frame_info, instead of
13368 print_frame_info_base.
13369 (current_frame_command): Call print_stack_frame, instead of
13370 print_only_stack_frame.
13371 (frame_command): Call print_stack_frame, instead of
13372 show_and_print_stack_frame.
13373 (up_command): Ditto.
13374 (down_command): Ditto.
13375 * frame.h (print_only_stack_frame): Delete prototype.
13376 * infrun.c (normal_stop): Call print_stack_frame, instead of
13377 show_and_print_stack_frame.
13378 * thread.c (info_threads_command): Call print_stack_frame, instead
13379 of print_only_stack_frame.
13380
13381 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13382
13383 * README (Graphical interface to GDB): Update URL. Point at
13384 gdb/links/.
13385
13386 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13387 version match.
13388
13389 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13390
13391 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13392 lines.
13393
13394 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13395
13396 * thread-db.c (attach_thread): Prototype.
13397 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13398 thread information (ti), and valid flags (th_valid, ti_valid).
13399 (attach_thread): Move target_pid_to_str call to after the thread
13400 is added to GDB's list. Initialize the cache.
13401 (thread_get_info_callback, thread_db_map_id2thr)
13402 (thread_db_get_info): New functions.
13403 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13404 (thread_db_store_registers, thread_db_thread_alive)
13405 (thread_db_get_thread_local_address): Use them.
13406 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13407 of calling error() for threads in unknown state.
13408
13409 (clear_lwpid_callback): New function.
13410 (thread_db_resume): Use it to clear the cache.
13411
13412 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13413
13414 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13415 (resume_callback): Remove dead code.
13416
13417 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13418
13419 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13420 predicate.
13421 * gdbarch.h, gdbarch.c: Regenerate.
13422 * stack.c (frame_info): Only initialize the saved registers when
13423 FRAME_INIT_SAVED_REGS_P.
13424 * frame.c (frame_saved_regs_register_unwind): Assert
13425 FRAME_INIT_SAVED_REGS_P.
13426 (deprecated_generic_get_saved_register): Ditto.
13427
13428 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13429
13430 * source.c (openp): Squelch warning about "filename".
13431
13432 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13433
13434 * source.c (openp): If the file does not exist don't necessarily
13435 search the path.
13436
13437 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13438
13439 Fix PR gdb/872.
13440 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13441 (integer_types_same_name_p): New function.
13442 (rank_one_type): Use it.
13443 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13444
13445 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13446
13447 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13448 variables.
13449 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13450 * configure.in: Add --with-sysroot.
13451 * configure: Regenerated.
13452 * main.c (gdb_sysroot): New variable.
13453 (captured_main): Initialize gdb_sysroot.
13454 * defs.h (gdb_sysroot): New extern declaration.
13455 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13456
13457 2003-01-12 Michael Chastain <mec@shout.net>
13458
13459 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13460
13461 2003-01-12 Michael Chastain <mec@shout.net>
13462
13463 * top.c (print_gdb_version): Bump copyright year to 2003.
13464
13465 2003-01-12 David Carlton <carlton@bactrian.org>
13466
13467 * linespec.c (symtab_from_filename): Rename variable 's' to
13468 'file_symtab'.
13469
13470 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13471
13472 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13473 dummy frame.
13474 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13475
13476 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13477
13478 * d10v-tdep.c: Include "gdb_assert.h".
13479 (d10v_store_return_value): Rewrite to match current interface.
13480 (d10v_extract_struct_value_address): Ditto.
13481 (d10v_extract_return_value): Ditto.
13482 (d10v_gdbarch_init): Set store_restore_value,
13483 extract_struct_value_address and extract_return_value.
13484
13485 2003-01-12 J. Brobecker <brobecker@gnat.com>
13486
13487 * hpread.c (set_namestring): New procedure replacing the
13488 SET_NAMESTRING macro.
13489 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13490 by calls to set_namestring.
13491
13492 2003-01-11 J. Brobecker <brobecker@gnat.com>
13493
13494 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13495 a compilation warning.
13496 (hpread_process_one_debug_symbol): Likewise.
13497
13498 2003-01-10 David Carlton <carlton@math.stanford.edu>
13499
13500 * linespec.c (decode_line_1): Rename variable 's' to
13501 'file_symtab'.
13502 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13503 (decode_dollar): Ditto.
13504 (decode_variable): Ditto.
13505 (symbol_found): Ditto.
13506
13507 2003-01-09 Michael Chastain <mec@shout.net>
13508
13509 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13510
13511 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
13512
13513 * win32-nat.c (set_process_privilege): New function.
13514 (child_attach): Call set_process_privilege() to enable the
13515 SE_DEBUG_NAME user privilege if available in process token.
13516
13517 2003-01-10 J. Brobecker <brobecker@gnat.com>
13518
13519 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13520 compilation error in the previous revision.
13521
13522 2003-01-09 David Carlton <carlton@math.stanford.edu>
13523
13524 * linespec.c: Update copyright.
13525
13526 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
13527
13528 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13529 than inferior_ptid.
13530 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13531
13532 2003-01-09 Andrew Cagney <ac131313@redhat.com>
13533
13534 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13535 Update comments.
13536 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13537 (frame_saved_regs_zalloc): Update.
13538 (frame_saved_regs_register_unwind): Update.
13539 (create_new_frame): Update.
13540 (get_prev_frame): Update.
13541 (frame_extra_info_zalloc): Update.
13542 (deprecated_get_frame_saved_regs): Update.
13543 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13544 * cris-tdep.c: Update comment.
13545
13546 * somsolib.h: Fix function indentation.
13547 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13548 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13549 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13550 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13551 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13552
13553 * infrun.c (follow_fork): Use ISO C definition.
13554 * expprint.c (print_subexp): Use xfree instead of free.
13555 * charset.c: Include "gdb_string.h" instead of <string.h>.
13556 (register_iconv_charsets): Use ISO C definition.
13557 (host_charset, target_charset): Ditto.
13558 * Makefile.in (charset.o): Update dependencies.
13559 (mi-cmd-env.o): Update dependencies.
13560
13561 2003-01-08 Andrew Cagney <cagney@redhat.com>
13562
13563 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13564 get_frame_base.
13565
13566 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13567
13568 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13569 build directories. Save edited gdb output in Mbuild.log. If a
13570 build fails, remove any final GDB executable.
13571
13572 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13573
13574 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13575 replacing hex constants with function names and stripping leading
13576 file name directory prefixes.
13577
13578 2003-01-08 Andrew Cagney <cagney@redhat.com>
13579
13580 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13581 get_frame_base.
13582
13583 2003-01-08 David Carlton <carlton@math.stanford.edu>
13584
13585 * linespec.c (decode_line_1): Move code into decode_variable.
13586 (decode_variable): New function.
13587
13588 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13589
13590 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13591
13592 2003-01-08 Andrew Cagney <cagney@redhat.com>
13593
13594 * cris-tdep.c (cris_frame_init_saved_regs): Use
13595 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13596 saved_regs buffer.
13597 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13598 (sh64_nofp_frame_init_saved_regs): Ditto.
13599 (sh_fp_frame_init_saved_regs): Ditto.
13600 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13601 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13602 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13603 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13604
13605 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
13606
13607 * minsyms.c (lookup_minimal_symbol): Update comment.
13608 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13609 (lookup_minimal_symbol_solib_trampoline): Likewise.
13610
13611 2003-01-08 Andrew Cagney <cagney@redhat.com>
13612
13613 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13614 frame_relative_level.
13615
13616 * alpha-tdep.c: Use get_frame_extra_info.
13617 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13618 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13619 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13620 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13621
13622 * alpha-tdep.c: Use get_next_frame.
13623 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13624 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13625 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13626 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13627 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13628 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13629 * xstormy16-tdep.c: Ditto.
13630
13631 2003-01-07 Andrew Cagney <cagney@redhat.com>
13632
13633 * alpha-tdep.c: Use get_frame_base.
13634 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13635 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13636 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13637 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13638 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13639 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13640 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13641 * config/sparc/tm-sparc.h: Ditto.
13642
13643 2003-01-07 Andrew Cagney <cagney@redhat.com>
13644
13645 * frame.c (deprecated_get_frame_context): New function.
13646 (deprecated_set_frame_context): New function.
13647 * frame.h (deprecated_get_frame_context): Declare.
13648 (deprecated_set_frame_context): Declare.
13649 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13650 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
13651
13652 2003-01-07 Andrew Cagney <cagney@redhat.com>
13653
13654 * frame.c (deprecated_set_frame_next_hack): New function.
13655 (deprecated_set_frame_prev_hack): New function.
13656 * frame.h (deprecated_set_frame_next_hack): Declare.
13657 (deprecated_set_frame_prev_hack): Declare.
13658 * mcore-tdep.c (analyze_dummy_frame): Use
13659 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13660 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13661
13662 2003-01-07 David Carlton <carlton@math.stanford.edu>
13663
13664 * linespec.c (decode_line_1): Move code into decode_dollar.
13665 (decode_dollar): New function.
13666
13667 2003-01-07 Andrew Cagney <cagney@redhat.com>
13668
13669 * arm-tdep.c (arm_init_extra_frame_info): Use
13670 deprecated_update_frame_base_hack.
13671 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13672 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13673 (fix_frame_pointer): Ditto.
13674 (mn10300_analyze_prologue): Ditto.
13675
13676 2003-01-07 Andrew Cagney <cagney@redhat.com>
13677
13678 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13679 extra_info using frame_extra_info_zalloc.
13680 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13681 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13682 (sh64_init_extra_frame_info): Ditto.
13683 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13684 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13685 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13686 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13687 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13688 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13689 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13690 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13691 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13692 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13693 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13694 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13695
13696 * mn10300-tdep.c (analyze_dummy_frame): Use
13697 deprecated_set_frame_extra_info_hack.
13698 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13699
13700 2003-01-07 J. Brobecker <brobecker@gnat.com>
13701
13702 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13703 class is not scText. These do not define "real" procedures.
13704 (parse_partial_symbols): Likewise.
13705
13706 2003-01-06 Michael Snyder <msnyder@redhat.com>
13707
13708 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13709
13710 2003-01-06 Andrew Cagney <ac131313@redhat.com>
13711
13712 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13713 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13714 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13715 deprecated_frame_xmalloc_with_cleanup.
13716 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13717 deprecated_frame_xmalloc.
13718 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13719 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13720
13721 2003-01-06 Andrew Cagney <cagney@redhat.com>
13722
13723 * x86-64-linux-tdep.c: Include "osabi.h".
13724 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13725
13726 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13727
13728 2003-01-06 Andrew Cagney <cagney@redhat.com>
13729
13730 * MAINTAINERS (Target Instruction Set Architectures): Update
13731 arm-elf. Can be built with -Werror, has been multiarched.
13732
13733 * value.h (unpack_long): Make buffer parameter constant.
13734 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13735 * scm-lang.h (scm_parse): Ditto.
13736 * defs.h (extract_typed_address, extract_address): Ditto.
13737 (extract_long_unsigned_integer): Ditto.
13738 * inferior.h (unsigned_pointer_to_address): Ditto.
13739 (signed_pointer_to_address): Ditto.
13740 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13741 * gdbarch.h, gdbarch.c: Regenerate.
13742 * findvar.c (extract_long_unsigned_integer): Update.
13743 (extract_address): Update.
13744 (extract_typed_address): Update.
13745 (unsigned_pointer_to_address): Update.
13746 * values.c (unpack_long): Update.
13747 (unpack_double): Update.
13748 (unpack_pointer): Update.
13749 (unpack_field_as_long): Update.
13750 * d10v-tdep.c (d10v_pointer_to_address): Update.
13751 * avr-tdep.c (avr_pointer_to_address): Update.
13752 * scm-lang.c (scm_unpack): Update.
13753 * findvar.c (signed_pointer_to_address): Update.
13754
13755 2003-01-06 Michal Ludvig <mludvig@suse.cz>
13756
13757 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
13758 since it is in i386-tdep.c.
13759
13760 2003-01-06 J. Brobecker <brobecker@gnat.com>
13761
13762 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13763 failure introduced in the previous change.
13764
13765 2003-01-05 Michael Chastain <mec@shout.net>
13766
13767 * README: Remove references to deleted remote-*.c files:
13768 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13769 remote-nrom.c, remote-os9k.c, remote-udi.c.
13770
13771 2003-01-05 Mark Kettenis <kettenis@gnu.org>
13772
13773 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13774 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13775 i386_get_longjmp_target.
13776
13777 2003-01-05 Andrew Cagney <ac131313@redhat.com>
13778
13779 * arm-tdep.c (prologue_cache): Change to a pointer.
13780 (_initialize_arm_tdep): Allocate prologue_cache.
13781 (check_prologue_cache): Update.
13782 (save_prologue_cache): Update.
13783 (arm_gdbarch_init): Update.
13784
13785 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13786
13787 * stabsread.c (update_method_name_from_physname): Call complaint()
13788 instead of error.
13789
13790 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13791
13792 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13793 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13794 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13795
13796 * blockframe.c: Include "gdbcmd.h" and "command.h".
13797 (backtrace_below_main): New variable.
13798 (file_frame_chain_valid, func_frame_chain_valid)
13799 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13800 (generic_func_frame_chain_valid): Remove functions.
13801 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13802 (_initialize_blockframe): New function.
13803 * Makefile.in (blockframe.o): Update dependencies.
13804 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13805 comment. Call frame_chain_valid ().
13806 * frame.h: Remove old prototypes. Add prototype for
13807 frame_chain_valid and update comments to match.
13808 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13809 Remove old comment.
13810 * gdbarch.h: Regenerated.
13811 * gdbarch.c: Regenerated.
13812
13813 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13814 set_gdbarch_frame_chain_valid.
13815 * avr-tdep.c (avr_gdbarch_init): Likewise.
13816 * cris-tdep.c (cris_gdbarch_init): Likewise.
13817 * frv-tdep.c (frv_gdbarch_init): Likewise.
13818 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13819 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13820 (i386_nw_init_abi): Likewise.
13821 (i386_gdbarch_init): Likewise.
13822 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13823 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13824 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13825 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13826 * mips-tdep.c (mips_gdbarch_init): Likewise.
13827 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13828 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13829 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13830 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13831 * s390-tdep.c (s390_gdbarch_init): Likewise.
13832 * sh-tdep.c (sh_gdbarch_init): Likewise.
13833 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13834 * v850-tdep.c (v850_gdbarch_init): Likewise.
13835 * vax-tdep.c (vax_gdbarch_init): Likewise.
13836 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13837
13838 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13839 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13840 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13841 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13842 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13843 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13844 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13845 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13846
13847 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13848
13849 * Makefile.in (acconfig_h): Remove incorrect macro.
13850 (config_h): Define.
13851 (osabi.o): Update dependencies.
13852 * configure.tgt: Set gdb_osabi based on target triplet.
13853 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13854 * configure: Regenerated.
13855 * config.in: Regenerated.
13856 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13857 (GDB_OSABI_DEFAULT): Define if not already defined.
13858 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13859 (set_osabi_string): New variables.
13860 (gdbarch_register_osabi): Add new OS ABI to
13861 gdb_osabi_available_names.
13862 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13863 (set_osabi, show_osabi): New functions.
13864 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13865
13866 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13867
13868 * arch-utils.c (gdbarch_info_init): Set osabi to
13869 GDB_OSABI_UNINITIALIZED.
13870 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13871 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13872 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13873 * gdbarch.c: Regenerated.
13874 * gdbarch.h: Regenerated.
13875 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13876 there's no BFD.
13877 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13878 * osabi.h (enum gdb_osabi): Move to defs.h.
13879 (gdbarch_init_osabi): Update prototype.
13880 * defs.h (enum gdb_osabi): Moved here.
13881 * Makefile.in: Update dependencies.
13882
13883 * alpha-tdep.h: Don't include "osabi.h".
13884 (struct gdbarch_tdep): Remove osabi member.
13885 * alpha-tdep.c: Include "osabi.h".
13886 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13887 iterate over arches. Update call to gdbarch_init_osabi.
13888 (alpha_dump_tdep): Don't dump osabi.
13889 * alpha-linux-tdep.c: Include "osabi.h".
13890 * alpha-osf1-tdep.c: Include "osabi.h".
13891 * alphafbsd-tdep.c: Include "osabi.h".
13892 * alphanbsd-tdep.c: Include "osabi.h".
13893
13894 * arm-tdep.h: Don't include "osabi.h".
13895 (struct gdbarch_tdep): Remove osabi member.
13896 * arm-tdep.c: Include "osabi.h".
13897 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13898 iterate over arches. Update call to gdbarch_init_osabi.
13899 (arm_dump_tdep): Don't dump osabi.
13900 * arm-linux-tdep.c: Include "osabi.h".
13901 * armnbsd-tdep.c: Include "osabi.h".
13902
13903 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13904 Update call to gdbarch_init_osabi.
13905
13906 * i386-tdep.h: Don't include "osabi.h".
13907 (struct gdbarch_tdep): Remove osabi member.
13908 * i386-tdep.c: Include "osabi.h".
13909 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13910 iterate over arches. Update call to gdbarch_init_osabi.
13911 (i386_dump_tdep): Don't dump osabi.
13912 * i386-linux-tdep.c: Include "osabi.h".
13913 * i386-sol2-tdep.c: Include "osabi.h".
13914 * i386bsd-tdep.c: Include "osabi.h".
13915 * i386gnu-tdep.c: Include "osabi.h".
13916 * i386ly-tdep.c: Include "osabi.h".
13917 * i386nbsd-tdep.c: Include "osabi.h".
13918 * i386obsd-tdep.c: Include "osabi.h".
13919
13920 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13921 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13922 check osabi when iterating over arches. Update call to
13923 gdbarch_init_osabi.
13924 (mips_dump_tdep): Don't dump osabi.
13925
13926 * ns32k-tdep.h: Don't include "osabi.h".
13927 (struct gdbarch_tdep): Remove.
13928 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13929 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13930 allocate tdep. Update call to gdbarch_init_osabi.
13931 (ns32k_dump_tdep): Remove.
13932 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13933 * ns32knbsd-tdep.c: Include "osabi.h".
13934
13935 * ppc-tdep.h: Don't include "osabi.h".
13936 (struct gdbarch_tdep): Remove osabi member.
13937 * rs6000-tdep.c: Include "osabi.h".
13938 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13939 osabi when iterating over arches. Update call to
13940 gdbarch_init_osabi.
13941 (rs6000_dump_tdep): Don't dump osabi.
13942 * ppc-linux-tdep.c: Include "osabi.h".
13943 * ppcnbsd-tdep.c: Include "osabi.h".
13944
13945 * sh-tdep.h: Don't include "osabi.h".
13946 (struct gdbarch_tdep): Remove osabi member.
13947 * sh-tdep.c: Include "osabi.h".
13948 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13949 iterate over arches. Update call to gdbarch_init_osabi.
13950 (sh_dump_tdep): Don't dump osabi.
13951 * shnbsd-tdep.c: Include "osabi.h".
13952
13953 * sparc-tdep.c: Include "osabi.h".
13954 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13955 iterate over arches. Update call to gdbarch_init_osabi.
13956 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13957 tdep structure.
13958
13959 * vax-tdep.h: Don't include "osabi.h".
13960 (struct gdbarch_tdep): Remove.
13961 * vax-tdep.c: Include "osabi.h".
13962 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13963 iterate over arches. Don't allocate tdep. Update call
13964 to gdbarch_init_osabi.
13965 (vax_dump_tdep): Remove.
13966 (_initialize_vax_tdep): Update call to gdbarch_register.
13967
13968 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13969
13970 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13971 entirely.
13972 (breakpoint_re_set_one): Don't fetch the value for a disabled
13973 watchpoint.
13974
13975 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13976
13977 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13978 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13979 (COERCE_FLOAT_TO_DOUBLE): Remove.
13980 * gdbarch.c: Regenerate.
13981 * gdbarch.h: Regenerate.
13982 * Makefile.in: Remove value_h from gdbarch_h.
13983 * valops.c (coerce_float_to_double): New variable.
13984 (default_coerce_float_to_double): Remove.
13985 (standard_coerce_float_to_double): Remove.
13986 (value_arg_coerce): Use coerce_float_to_double.
13987 (_initialize_valops): Add "set coerce-float-to-double".
13988 * value.h (default_coerce_float_to_double): Remove prototype.
13989 (standard_coerce_float_to_double): Remove prototype.
13990
13991 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13992 prototyped.
13993 * mdebugread.c (parse_symbol): Likewise.
13994 * stabsread.c (define_symbol): Mark all functions as prototyped.
13995
13996 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13997 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13998 set_gdbarch_coerce_float_to_double.
13999 * arm-tdep.c (arm_gdbarch_init): Likewise.
14000 * frv-tdep.c (frv_gdbarch_init): Likewise.
14001 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14002 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14003 * mips-tdep.c (mips_gdbarch_init): Likewise.
14004 (mips_coerce_float_to_double): Remove.
14005 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14006 (rs6000_coerce_float_to_double): Remove.
14007 * s390-tdep.c (s390_gdbarch_init): Likewise.
14008 * sh-tdep.c (sh_gdbarch_init): Likewise.
14009 (sh_coerce_float_to_double): Remove.
14010 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14011 (sparc_coerce_float_to_double): Remove.
14012 * v850-tdep.c (v850_gdbarch_init): Likewise.
14013 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14014 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14015 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14016 (hppa_coerce_float_to_double): Remove prototype.
14017 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14018
14019 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14020
14021 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14022
14023 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14024
14025 Suggested by Stewart Brown <sb24@avaya.com>:
14026 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14027 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14028 (c_type_print_varspec_suffix): Likewise.
14029
14030 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14031
14032 * configure.in: Don't set and AC_SUBST SUBDIRS.
14033 * configure: Regenerated.
14034
14035 * configure.in: Remove code dealing with shared libraries.
14036 * Makefile.in: Remove HLDFLAGS and HLDENV.
14037 * configure: Regenerated.
14038
14039 2003-01-04 Andrew Cagney <ac131313@redhat.com>
14040
14041 * frame.c (deprecated_frame_xmalloc): New function.
14042 (deprecated_set_frame_saved_regs_hack): New function.
14043 (deprecated_set_frame_extra_info_hack): New function.
14044 * frame.h (deprecated_frame_xmalloc): Declare.
14045 (deprecated_set_frame_saved_regs_hack): Declare.
14046 (deprecated_set_frame_extra_info_hack): Declare.
14047
14048 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14049
14050 * configure.in: Move code that provides the --enable-gdbtk option
14051 right after the code that handles the --enable-tui option, and
14052 polish it somewhat.
14053 * configure: Regenerated.
14054
14055 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14056 AC_CHECK_FUNCS and remove the old check for pread64.
14057 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14058 * acconfig.h (_GNU_SOURCE): Add.
14059 (HAVE_PREAD64): Remove.
14060 * configure, aclocal.m4, config.in: Regenerated.
14061
14062 2003-01-03 Andrew Cagney <ac131313@redhat.com>
14063
14064 * alpha-tdep.c: Use get_frame_saved_regs.
14065 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14066 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14067 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14068 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14069 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14070
14071 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14072
14073 * configure.in: Remove all use of the SUBDIRS variable; add
14074 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14075 code providing the --enable-multi-ice option, and move it right in
14076 front of the code that checks whether gdbserver is supported.
14077 Polish that too.
14078 * configure: Regenerated.
14079 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14080 @SUBDIRS@.
14081
14082 2003-01-03 Andrew Cagney <cagney@redhat.com>
14083
14084 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14085 * avr-tdep.c, cris-tdep.c: Ditto.
14086 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14087 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14088
14089 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14090
14091 * configure.in: Remove --enable-netrom option.
14092 * configure: Regenerated.
14093
14094 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14095
14096 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14097 declaration for `struct re_pattern_buffer' instead.
14098 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14099
14100 2003-01-03 J. Brobecker <brobecker@gnat.com>
14101
14102 * mdebugread.c (parse_symbol): Count until the stEnd matching
14103 the structure name.
14104
14105 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14106
14107 * configure.in: Remove --with-cpu option.
14108 subscripts. Remove evil changequotes here.
14109 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14110 * config.in, configure: Regenerated.
14111
14112 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14113 * configure.in: Cleanup section that sources GDB and BFD configure
14114 subscripts. Remove evil changequotes here.
14115 * config.in, configure: Regenerated.
14116
14117 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14118
14119 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14120 frame accessor methods.
14121 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14122 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14123 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14124 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14125 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14126 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14127 * z8k-tdep.c: Ditto.
14128
14129 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14130
14131 * configure.in: Remove UI_OUT configuration code.
14132 * ada-lang.c: Update assuming UI_OUT is always true.
14133 * Makefile.in (UIOUT_CFLAGS): Remove.
14134 * configure: Regenerated.
14135 * TODO: Remove blurb about elimination of -DUI_OUT.
14136
14137 * configure.in: Move code that provides the --enable-gdbcli,
14138 --enable-gdbmi options right before the code that handles the
14139 --enable-tui option. Polish a bit.
14140 * configure: Regenerated.
14141
14142 * configure.in: Rewrite check for GNU regex and the
14143 --without-included regex option, and move it into the "Checks for
14144 library functions" section. This makes us use the system regex
14145 again by default on systems with version 2 of the GNU C library.
14146 This was apparently broken.
14147 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14148 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14149 * config.in, configure: Regenerated.
14150
14151 * configure.in: Move code that provides the --enable-tui option
14152 before the "Checks for libraries" section. Polish the code
14153 somewhat and set need_curses to yes if we build the TUI. Rewrite
14154 code that looks for a library providing termcap functionality to
14155 match more closely what's done in the Readline library, and move
14156 it into to the "Checks for libraries" section.
14157 * configure: Regenerated.
14158 * Makefile.in (TERMCAP): Remove variable.
14159 * config/i386/go32.mh (TERMCAP): Remove variable.
14160
14161 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14162
14163 * MAINTAINERS: Mention gdb_mbuild.sh.
14164 * gdb_mbuild.sh: Rewrite.
14165
14166 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14167
14168 * configure.in: Fix typo in last change.
14169 * config.in, configure: Regenerated.
14170
14171 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14172
14173 * valarith.c (value_binop): Delete obsolete code and comments.
14174 * configure.host: Ditto.
14175 * buildsym.h (make_blockvector): Ditto.
14176 * buildsym.c (make_blockvector): Ditto.
14177 * defs.h (enum language): Ditto.
14178 (chill_demangle): Ditto.
14179 * elfread.c (elf_symtab_read): Ditto.
14180 * dwarfread.c (CHILL_PRODUCER): Ditto.
14181 (set_cu_language): Ditto.
14182 (handle_producer): Ditto.
14183 * expprint.c (print_subexp): Ditto.
14184 * gdbtypes.c (chill_varying_type): Ditto.
14185 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14186 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14187 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14188 (chill_varying_type): Ditto.
14189 * language.h (_LANG_chill): Ditto.
14190 * language.c (binop_result_type, integral_type): Ditto.
14191 (character_type, string_type, structured_type): Ditto.
14192 (lang_bool_type, binop_type_check): Ditto.
14193 * stabsread.h (os9k_stabs): Ditto.
14194 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14195 (define_symbol, read_type, read_struct_fields): Ditto.
14196 (read_array_type, read_enum_type, read_huge_number): Ditto.
14197 (read_range_type, start_stabs): Ditto.
14198 * symfile.c (init_filename_language_table): Ditto.
14199 (add_psymbol_with_dem_name_to_list): Ditto.
14200 * symtab.c (symbol_init_language_specific): Ditto.
14201 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14202 * symtab.h (struct general_symbol_info): Ditto.
14203 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14204 * typeprint.c (typedef_print): Ditto.
14205 * utils.c (fprintf_symbol_filtered): Ditto.
14206 * valops.c (value_cast, search_struct_field, value_slice): Delete
14207 obsolete code.
14208 (varying_to_slice): Delete function.
14209 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14210 (varying_to_slice): Delete declaration.
14211 * MAINTAINERS: Update.
14212
14213 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14214
14215 * configure.in: Reorganize "Checks for library functions section"
14216 a bit. Remove check for `btowc' and `isascii' functions.
14217 * configure: Regenerated.
14218
14219 * acconfig.h (_MSE_INT_H): Remove.
14220 * configure.in: Create "Checks for header files" section, and move
14221 appropriate tests there. Don't check for objlist.h, wchar.h,
14222 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14223 misdetection fix. Also add "Checks for types", "Checks for
14224 compiler characteristics" and "Checks for library functions"
14225 sections.
14226 * config.in, configure: Regenerated.
14227
14228 * configure.in: Create "Checks for programs" section, and move
14229 appropriate tests there.
14230
14231 2003-01-01 Mark Kettenis <kettenis@gnu.org>
14232
14233 * configure.in: Create "Checks for libraries" section, and move
14234 appropriate tests there. Cleanup check for wctype in libw. Use
14235 AC_SEARCH_LIBS to see whether we need libsocket.
14236 * configure: Regenerated.
14237
14238 For older changes see ChangeLog-2002
14239 \f
14240 Local Variables:
14241 mode: change-log
14242 left-margin: 8
14243 fill-column: 74
14244 version-control: never
14245 End:
This page took 0.315617 seconds and 5 git commands to generate.