2003-11-10 Michael Chastain <mec.gnu@mindspring.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2003-11-10 Michael Chastain <mec.gnu@mindspring.com>
2
3 * MAINTAINERS: Change my e-mail address.
4
5 2003-11-10 Andrew Cagney <cagney@redhat.com>
6
7 * gdbarch.sh (return_value): Replace "inval" and "outval" with
8 "readbuf" and "writebuf".
9 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
10 * d10v-tdep.c (d10v_return_value): Ditto.
11 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
12 (ppc_sysv_abi_broken_return_value): Ditto.
13 (ppc64_sysv_abi_return_value): Ditto.
14 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
15 (ppc_sysv_abi_return_value): Ditto.
16 (ppc_sysv_abi_broken_return_value): Ditto.
17 (ppc64_sysv_abi_return_value): Ditto.
18 * values.c (register_value_being_returned): Update call.
19 * stack.c (return_command): Update call.
20 * gdbarch.h, gdbarch.c: Re-generate.
21
22 * target.h (struct target_ops): Order xfer buffer parameters "read
23 write" not "write read".
24 * bfd-target.c (target_bfd_xfer_partial): Update.
25 * remote.c (remote_xfer_partial): Update.
26 * inftarg.c (child_xfer_partial): Update.
27 * target.c (default_xfer_partial): Update.
28 (target_read_partial, target_write_partial): Update.
29 (debug_to_xfer_partial): Update.
30
31 * arch-utils.h, arch-utils.c: Fix typo in comment.
32
33 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
34 (gdbarch_from_bfd): Call gdbarch_find_by_info.
35 (set_gdbarch_from_file): Call
36 "deprecated_current_gdbarch_select_hack".
37
38 2003-11-09 Andrew Cagney <cagney@redhat.com>
39
40 * arch-utils.c (gdbarch_update_p): New function.
41 * gdbarch.sh (gdbarch_update_p): Delete function.
42 (find_arch_by_info, gdbarch_find_by_info): New functions.
43 (deprecated_current_gdbarch_select_hack): New function.
44 * gdbarch.c: Re-generate.
45
46 * gdbarch.sh (clear_gdbarch_swap): Delete function.
47 (swapout_gdbarch_swap): Delete function.
48 (swapin_gdbarch_swap): Delete function.
49 (init_gdbarch_swap): Delete function.
50 (initialize_non_multiarch): Delete function.
51 (current_gdbarch_swap_in_hack): New function.
52 (current_gdbarch_swap_out_hack): New function.
53 (current_gdbarch_swap_init_hack): New function.
54 * gdbarch.c: Re-generate.
55
56 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
57 parameter to "current_gdbarch". Add comment explaining why.
58 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
59 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
60 * gdbarch.c: Re-generate.
61
62 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
63 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
64 * config/s390/xm-linux.h: Delete file.
65 * config/m88k/xm-delta88v4.h: Delete stray.
66
67 * Makefile.in (arch-utils.o): Update dependencies.
68 * arch-utils.c: Include "osabi.h".
69 (gdbarch_info_fill): New function.
70 * arch-utils.h (gdbarch_info_fill): Declare.
71 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
72 * gdbarch.c: Re-generate.
73
74 2003-11-09 Mark Kettenis <kettenis@gnu.org>
75 David S. Miller <davem@redhat.com>
76
77 * glibc-tdep.c, glibc-tdep.h: New files.
78 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
79 * config/i386/linux.mt (TDEPFILES): Likewise.
80 * i386-linux-tdep.c (glibc-tdep.h): Include.
81 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
82 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
83 * arm-linux-tdep.c (glibc-tdep.h): Include.
84 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
85 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
86 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
87 (glibc_tdep_h): Define.
88 (glibc-tdep.o): Add dependencies.
89 (arm-linux-tdep.o): Update dependencies.
90 (i386-linux-tdep.o): Likewise.
91
92 2003-11-09 Andrew Cagney <cagney@redhat.com>
93
94 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
95 * config/mips/nm-irix6.h: Delete file.
96 * config/mips/nm-linux.h: Update copyright.
97 (MIPS_GNULINUX_TARGET): Delete macro.
98 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
99 * config/mips/xm-irix6.h: Delete file.
100 * config/mips/linux.mh (XM_FILE): Delete definition.
101 * config/mips/xm-linux.h: Delete file.
102
103 2003-11-09 Andrew Cagney <cagney@redhat.com>
104
105 * d10v-tdep.c (d10v_return_value): New function.
106 (d10v_use_struct_convention): Delete function.
107 (d10v_store_return_value): Delete function.
108 (d10v_extract_struct_value_address): Delete function.
109 (d10v_gdbarch_init): Set "return_value" instead of
110 "extract_return_value", "store_return_value",
111 "extract_struct_value_address", and "use_struct_convention".
112 (RET1_REGNUM): Delete const.
113
114 2003-11-09 Mark Kettenis <kettenis@gnu.org>
115
116 From David S. Miller <davem@redhat.com>:
117 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
118 * gdbarch.c, gdbarch.h: Regenerated.
119 * arch-utils.c (generic_skip_solib_resolver): New function.
120 * arch-utils.h (generic_skip_solib_resolver): New prototype.
121 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
122
123 2003-11-07 Andrew Cagney <cagney@redhat.com>
124
125 * top.c (print_gdb_version): Replace STREQ with strcmp.
126 * valops.c (value_struct_elt_for_reference): Ditto.
127 (value_struct_elt_for_reference): Ditto.
128 * symtab.c (gdb_mangle_name): Ditto.
129 (find_line_symtab): Ditto.
130 * symmisc.c (maintenance_print_symbols): Ditto.
131 * symfile.c (symbol_file_command): Ditto.
132 * stabsread.c (define_symbol, read_type): Ditto.
133 (cleanup_undefined_types, scan_file_globals): Ditto.
134 * solib.c (solib_map_sections): Ditto.
135 * solib-svr4.c (bfd_lookup_symbol): Ditto.
136 * rs6000-tdep.c (skip_prologue): Ditto.
137 * p-valprint.c (pascal_value_print): Ditto.
138 (pascal_object_is_vtbl_ptr_type): Ditto.
139 * objfiles.c (in_plt_section): Ditto.
140 * minsyms.c (lookup_minimal_symbol): Ditto.
141 (compact_minimal_symbols): Ditto.
142 (find_solib_trampoline_target): Ditto.
143 * mdebugread.c (parse_type): Ditto.
144 * language.c (set_language_command): Ditto.
145 (set_type_command, set_range_command): Ditto.
146 * f-lang.c (add_common_block): Ditto.
147 (add_common_block): Ditto.
148 (find_first_common_named): Ditto.
149 (patch_all_commons_by_name): Ditto.
150 * elfread.c (elf_locate_sections): Ditto.
151 (elf_locate_sections): Ditto.
152 (elfstab_offset_sections): Ditto.
153 * dwarf2read.c (dwarf2_locate_sections): Ditto.
154 * dbxread.c (add_old_header_file): Ditto.
155 (find_corresponding_bincl_psymtab): Ditto.
156 (read_dbx_symtab, process_one_symbol): Ditto.
157 * coffread.c (patch_opaque_types): Ditto.
158 * cli/cli-decode.c (delete_cmd): Ditto.
159 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
160 * c-typeprint.c (c_type_print_base): Ditto.
161 * breakpoint.c (bpstat_stop_status): Ditto.
162 (clear_command, breakpoint_re_set_one): Ditto.
163
164 2003-11-07 Andrew Cagney <cagney@redhat.com>
165
166 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
167 * bcache.c (struct bstring): Make "length" an unsigned short, add
168 "half_hash".
169 (struct bcache): Add "half_hash_error_count".
170 (bcache): Compute and save the "half_hash". Compare the
171 "half_hash" before comparing the length. Update
172 half_hash_error_count.
173
174 2003-11-07 Andrew Cagney <cagney@redhat.com>
175
176 * inftarg.c (child_xfer_partial): New function
177 (init_child_ops): Set "to_xfer_partial".
178
179 2003-11-07 Andrew Cagney <cagney@redhat.com>
180
181 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
182 set "return_value" instead of "use_struct_convention".
183 (ppc_linux_use_struct_convention): Delete function.
184 (ppc_linux_return_value): New function.
185 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
186 (ppc_sysv_abi_broken_return_value): New function.
187 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
188 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
189 static.
190 (ppc_sysv_abi_extract_return_value): Delete function.
191 (ppc_sysv_abi_broken_extract_return_value): Delete function.
192 (ppc_sysv_abi_store_return_value): Delete function.
193 (ppc_sysv_abi_broken_store_return_value): Delete function.
194 (ppc_sysv_abi_use_struct_convention): Delete function.
195 (ppc64_sysv_abi_use_struct_convention): Delete function.
196 (ppc64_sysv_abi_extract_return_value): Delete function.
197 (ppc64_sysv_abi_store_return_value): Delete function.
198 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
199 (ppcnbsd_init_abi): Set "return_value", instead of
200 "use_struct_convention", "extract_return_value", and
201 "store_return_value".
202 (ppcnbsd_use_struct_convention): Delete function.
203 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
204 (ppc_sysv_abi_return_value): Declare.
205 (ppc_sysv_abi_broken_return_value): Declare.
206 (ppc_sysv_abi_use_struct_convention): Delete.
207 (ppc_sysv_abi_store_return_value): Delete.
208 (ppc_sysv_abi_extract_return_value): Delete.
209 (ppc_sysv_abi_broken_store_return_value): Delete.
210 (ppc_sysv_abi_broken_extract_return_value): Delete.
211 (ppc64_sysv_abi_use_struct_convention): Delete.
212 (ppc64_sysv_abi_extract_return_value): Delete.
213 (ppc64_sysv_abi_store_return_value): Delete.
214 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
215 set "return_value" instead of "extract_return_value",
216 "store_return_value", and "use_struct_convention".
217
218 2003-11-07 Mark Kettenis <kettenis@gnu.org>
219
220 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
221
222 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
223 fscanf.
224
225 2003-11-07 Mark Kettenis <kettenis@gnu.org>
226
227 * fbsd-proc.c: Fix formatting.
228
229 2003-11-06 Kevin Buettner <kevinb@redhat.com>
230
231 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
232 Define.
233 (new_variant): Set name for iacc0_regnum.
234 (frv_register_name): Accommodate pseudo-registers.
235 (frv_register_type): Add case for iacc0_regnum.
236 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
237 (frv_gdbarch_init): Set number of pseudo registers. Establish
238 pseudo-register read/write methods.
239
240 2003-11-06 Andrew Cagney <cagney@redhat.com>
241
242 * valops.c (destructor_name_p): Replace STREQN with strncmp.
243 * top.c (command_line_input): Ditto.
244 * objc-exp.y (yylex): Ditto.
245 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
246 * jv-exp.y (yylex): Ditto.
247 * f-exp.y (yylex): Ditto.
248 * event-top.c (command_line_handler): Ditto.
249 * environ.c (get_in_environ): Ditto.
250 (set_in_environ): Ditto.
251 * dwarfread.c (handle_producer): Ditto.
252 * dbxread.c (process_one_symbol): Ditto.
253 * c-typeprint.c (c_type_print_base): Ditto.
254 * c-exp.y (yylex): Ditto.
255
256 2003-11-06 Andrew Cagney <cagney@redhat.com>
257 Jeff Johnston <jjohnstn@redhat.com>
258
259 * target.c (add_target): Only set "to_xfer_partial" when NULL.
260 (init_dummy_target): Set "to_xfer_partial".
261
262 2003-11-06 Andrew Cagney <cagney@redhat.com>
263
264 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
265 REGISTER_CONVENTION.
266
267 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
268
269 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
270 static.
271
272 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
273
274 * breakpoint.c (remove_breakpoint): Take an bp_location
275 instead of a breakpoint argument. Check the bp_location's type.
276 Fix a reversed condition for hardware breakpoints.
277
278 (insert_bp_location): Update call to remove_breakpoint.
279 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
280 (remove_hw_watchpoints): Likewise.
281 (reattach_breakpoints): Likewise.
282 (detach_breakpoints): Likewise.
283 (delete_breakpoint): Likewise.
284
285 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
286
287 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
288 (beakpoint_init_inferior): Likewise.
289 (breakpoint_here_p): Likewise. Only check addresses for software
290 or hardware breakpoints.
291 (breakpoint_inserted_here_p): Likewise.
292 (breakpoint_thread_match): Likewise. Correct comment.
293 (bpstat_have_active_hw_watchpoints): Likewise.
294 (check_duplicates): Likewise.
295
296 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
297
298 * breakpoints.c (insert_bp_location): New function, broken out
299 from insert_breakpoints. Work on an bp_location instead of a
300 breakpoint.
301 (insert_breakpoints): Use it.
302
303 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
304
305 * breakpoint.h (struct bp_location): Add section.
306 (struct breakpoint): Remove section.
307 * breakpoint.c (insert_breakpoints, remove_breakpoint)
308 (breakpoint_here_p, breakpoint_inserted_here_p)
309 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
310 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
311 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
312 section through loc.
313
314 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
315
316 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
317 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
318
319 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
320
321 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
322 arguments. Initialize owner and type for the new breakpoint
323 location item.
324 (set_raw_breakpoint): Update call to allocate_bp_location.
325
326 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
327
328 * breakpoint.h (struct bp_location): Add a chain pointer.
329 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
330 macros.
331 (bp_location_chain): New variable.
332 (allocate_bp_location): New function.
333 (set_raw_breakpoint): Use it.
334 (delete_breakpoint): Remove ->loc from the bp_location_chain.
335
336 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
337
338 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
339 (struct breakpoint): Remove address, shadow_contents, inserted,
340 requested_address, and duplicate. Add a struct bp_location.
341 * breakpoint.c (condition_command, read_memory_nobpt)
342 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
343 (reattach_breakpoints, update_breakpoints_after_exec)
344 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
345 (breakpoint_init_inferior, breakpoint_here_p)
346 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
347 (breakpoint_thread_match, bpstat_stop_status)
348 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
349 (describe_other_breakpoints, check_duplicates)
350 (make_breakpoint_permanent, create_thread_event_breakpoint)
351 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
352 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
353 (watch_command_1, print_one_exception_catchpoint)
354 (clear_command, breakpoint_re_set_one): Adjust member accesses to
355 use the breakpoint's ->loc.
356 (set_raw_breakpoint): Likewise. Initialize ->loc.
357 (delete_breakpoint): Likewise. Free ->loc.
358
359 2003-11-05 Andrew Cagney <cagney@redhat.com>
360
361 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
362 macro.
363 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
364 * config/i386/tm-cygwin.h
365 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
366 * config/powerpc/tm-linux.h
367 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
368 (at_subroutine_call_instruction_target): Delete declaration.
369 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
370 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
371 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
372
373 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
374 "struct bfd_section" and "struct bfd".
375 * target.h (struct section_table): Ditto.
376 * rs6000-nat.c (xcoff_relocate_core): Ditto.
377 * solib-svr4.c (elf_locate_base): Ditto.
378 * pa64solib.c (dld_cache_t): Ditto.
379 * objfiles.h (struct obj_section): Ditto.
380 * objfiles.c (add_to_objfile_sections): Ditto.
381 * exec.c (bfdsec_to_vmap): Ditto.
382 (add_to_section_table): Ditto.
383 (build_section_table): Ditto.
384 * corelow.c (get_core_register_section): Ditto.
385 * coffread.c (find_linenos): Ditto.
386 * elfread.c (elf_interpreter): Delete #if0'd function.
387
388 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
389 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
390 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
391 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
392
393 * arch-utils.h (generic_cannot_extract_struct_value_address):
394 Delete declaration.
395 * wince.c (_initialize_wince): Fix multi-line string.
396 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
397
398 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
399
400 * top.c (execute_command): Fix broken logic for command execution
401 while inferior is running in async mode.
402
403 2003-11-06 Mark Kettenis <kettenis@gnu.org>
404
405 * dwarf2-frame.c (execute_cfa_program): Mark register as
406 REG_SAVED_REG for DW_CFA_register opcode.
407
408 2003-11-05 Mark Kettenis <kettenis@gnu.org>
409
410 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
411 %rsp, %rip and %eflags to match ABI-change.
412
413 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
414
415 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
416 (ia64_gdbarch_init): Don't bother calculating the os.
417 Instead use the gdbarch_info struct and look at the osabi field.
418 Also use gdbarch_list_lookup_by_info() to look for a
419 candidate gdbarch.
420
421 2003-11-05 Kevin Buettner <kevinb@redhat.com>
422
423 * frv-tdep.c (frv_register_byte): Delete.
424 (frv_extract_return_value, frv_store_return_value)
425 (frv_extract_struct_value_address): Don't call frv_register_byte().
426 Convert to non-deprecated form.
427 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
428 Convert calls to set_gdbarch_deprecated_extract_return_value(),
429 set_gdbarch_deprecated_store_return_value(), and
430 set_gdbarch_deprecated_extract_struct_value_address() into
431 non-deprecated forms.
432
433 2003-11-05 Andrew Cagney <cagney@redhat.com>
434
435 * mips-tdep.c (mips_dump_tdep): Do not print
436 PRINT_EXTRA_FRAME_INFO.
437 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
438 Rename PRINT_EXTRA_FRAME_INFO.
439 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
440 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
441 (mips_print_extra_frame_info): Delete declaration.
442 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
443
444 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
445
446 * coffread.c (coff_symtab_read): Remove passing of info parameter
447 to prim_record_minimal_symbol_and_info.
448
449 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
450
451 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
452 (decode_base_type): Delete ifdeffed out code.
453
454 2003-11-04 Andrew Cagney <cagney@redhat.com>
455
456 * symtab.c (find_active_alias): Delete function.
457 (lookup_block_symbol): Delete alias code.
458 * stabsread.c (resolve_live_range): Delete function.
459 (add_live_range): Delete function.
460 (resolve_symbol_reference): Delete function.
461 (define_symbol): Delete live range and alias code.
462 (scan_file_globals): Delete alias code.
463 * symtab.h (SYMBOL_RANGES): Delete macro.
464 (struct range_list): Delete structure.
465 (struct symbol): Delete field "ranges".
466 (SYMBOL_ALIASES): Delete macro.
467 (struct alias_list): Delete structure.
468 (struct symbol): Delete field "aliases".
469
470 2003-11-04 Michael Snyder <msnyder@redhat.com>
471
472 * MAINTAINERS: Remove myself as owner of breakpoints and
473 of sparc/solaris.
474
475 2003-11-03 Corinna Vinschen <vinschen@redhat.com>
476
477 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
478 (sh_sh4al_dsp_register_name): Ditto.
479 (sh4_nofpu_show_regs): Ditto.
480 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
481 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
482
483 2003-11-03 Andrew Cagney <cagney@redhat.com>
484
485 * bcache.c: Include "gdb_assert.h".
486 (struct bcache): Add fields "expand_count" and
487 "expand_hash_count".
488 (expand_hash_table): Update the expand counts.
489 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
490 on object sizes and hashes.
491 * Makefile.in (bcache.o): Update dependencies.
492
493 2003-11-03 Andrew Cagney <cagney@redhat.com>
494
495 * exec.c (xfer_memory): Eliminate xfer_fn.
496
497 2003-10-31 Kevin Buettner <kevinb@redhat.com>
498
499 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
500 (opcodes/frv-desc.h): Include.
501 (iacc0h_regnum, iacc0l_regnum): Define.
502 (last_spr_regnum, frv_num_regs): Update.
503 (new_variant): Don't supply default names for holes in the SPRs.
504 Supply names for iacc0h_regnum and iacc0l_regnum.
505 (frv_register_type): Use symbolic constants first_fpr_regnum and
506 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
507 builtin_type_int instead of builtin_type_int32.
508 (frv_register_sim_regno): New function.
509 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
510 * Makefile.in (gdb_sim_frv_h): Define.
511 (frv-tdep.o): Update dependencies.
512
513 2003-10-31 Andrew Cagney <cagney@redhat.com>
514
515 * avr-tdep.c (avr_frame_this_id): Do not call
516 deprecated_inside_entry_file.
517 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
518 * m32r-tdep.c (m32r_frame_this_id): Ditto.
519 * d10v-tdep.c (d10v_frame_this_id): Ditto.
520 * arm-tdep.c (arm_prologue_this_id): Ditto.
521 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
522
523 2003-10-31 Jim Blandy <jimb@redhat.com>
524
525 * elfread.c (elf_symtab_read): Allocate correct number of tail
526 elements to sectinfo structure. (Fix from Woody LaRue.)
527
528 2003-10-31 Andrew Cagney <cagney@redhat.com>
529
530 * stack.c (return_command): Use get_frame_type, instead of
531 CALL_DUMMY_HAS_COMPLETED.
532 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
533 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
534
535 2003-10-31 Mark Kettenis <kettenis@gnu.org>
536
537 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
538 explicitly specify size of array.
539 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
540 TDEP->sc_num_regs.
541
542 2003-10-31 Andrew Cagney <cagney@redhat.com>
543
544 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
545 function.
546 (s390_gdbarch_init): Set extract_struct_value_address.
547 * arch-utils.c (generic_cannot_extract_struct_value_address):
548 Delete function.
549 * arch-utils.h (generic_cannot_extract_struct_value_address):
550 Delete definition.
551
552 2003-10-31 Mark Kettenis <kettenis@gnu.org>
553
554 * i386-linux-nat.c (fetch_core_registers): Remove.
555 (linux_elf_core_fns): Remove.
556 (_initialize_i386_linux_nat): Remove.
557
558 2003-10-31 Andrew Cagney <cagney@redhat.com>
559
560 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
561 "exec.h".
562 (exec_entry_point): New function.
563 (enable_break): Create a "tmp_bfd_target", use that and
564 entry_point_address when computing the relocation offset.
565 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
566 * Makefile.in (solib-svr4.o): Update dependencies.
567
568 2003-10-31 Andrew Cagney <cagney@redhat.com>
569
570 * defs.h (XZALLOC): Define.
571 * target.h (struct target_ops): Add "to_data";
572 * bfd-target.h, bfd-target.c: New files.
573 * Makefile.in (SFILES): Add "bfd-target.c".
574 (COMMON_OBS): Add "bfd-target.o".
575 (bfd-target.o): Specify dependencies.
576 (bfd_target_h): Define.
577 * defs.h (XZALLOC): Define.
578
579 2003-10-31 Andrew Cagney <cagney@redhat.com>
580
581 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
582 adjust_breakpoint_address.
583 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
584 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
585 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
586 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
587
588 2003-10-31 Andrew Cagney <cagney@redhat.com>
589
590 * target.h (struct target_ops): Replace "to_read_partial" and
591 "to_write_partial" with "to_xfer_partial". Update comments.
592 * target.c (debug_to_write_partial): Delete function.
593 (debug_to_xfer_partial): Replace debug_to_read_partial.
594 (add_target, update_current_target, setup_target_debug): Set
595 "to_xfer_partial" instead of "to_read_partial" and
596 "to_write_partial".
597 (default_xfer_partial): Replace "default_write_partial".
598 (default_read_partial): Delete.
599 (target_read_partial, target_write_partial): Call
600 "to_xfer_partial".
601 * remote.c (init_remote_ops): Set "to_xfer_partial".
602 (init_remote_async_ops): Ditto.
603 (remote_xfer_partial): Replace "remote_read_partial".
604
605 2003-10-31 Mark Kettenis <kettenis@gnu.org>
606
607 * i386-tdep.c (i386_supply_fpregset): Support floating-point
608 registers in `fxsave' format.
609 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
610
611 2003-10-30 Mark Kettenis <kettenis@gnu.org>
612
613 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
614 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
615 TDEP->gregset_num_regs and tdep->sizeof_gregset.
616
617 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
618 specify size of array.
619 (i386_linux_init_abi): Remove initialization of
620 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
621 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
622
623 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
624 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
625 core-regset.o.
626
627 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
628 the ELF header.
629
630 2003-10-29 Mark Kettenis <kettenis@gnu.org>
631
632 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
633 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
634 core-regset.o.
635
636 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
637
638 * corelow.c: Include "arch-utils.h", "regset.h" and
639 "gdb_assert.h".
640 (core_gdbarch): New variable.
641 (sniff_core_bfd): Don't sniff if we have support for register sets
642 in CORE_GDBARCH.
643 (core_close): Reset CORE_GDBARCH.
644 (core_open): Initialize CORE_GDBARCH.
645 (get_core_register_section): Use register sets if they are
646 supported by CORE_GDBARCH.
647 (get_core_registers): Don't print error message if we have support
648 for register sets in CORE_GDBARCH.
649
650 2003-10-29 Andrew Cagney <cagney@redhat.com>
651
652 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
653 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
654
655 2003-10-29 Mark Kettenis <kettenis@gnu.org>
656
657 * objfiles.h (clear_objfile_data): New prototype.
658 * objfiles.c (clear_objfile_data): New function.
659 * symfile.c (reread_symbols): Clear per-objfile data.
660
661 2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
662
663 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
664 printf_unfiltered instead of printf_filtered for output messages.
665 (add_symbol_file_command): Ditto.
666 (reread_symbols): Ditto.
667 (overlay_auto_command): Ditto.
668 (overlay_manual_command): Ditto.
669 (overlay_off_command): Ditto.
670
671 2003-10-27 Mark Kettenis <kettenis@gnu.org>
672
673 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
674 (gdbarch_from_bfd): New function.
675 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
676 deprecated_select_gdbarch_hack.
677 * arch-utils.h (gdbarch_from_bfd): New prototype.
678
679 2003-10-27 Andrew Cagney <cagney@redhat.com>
680
681 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
682 arch_info. Use warning instead of fprintf_filtered. Do not use
683 deprecated bfd_printable_arch_mach.
684
685 2003-10-26 Kevin Buettner <kevinb@redhat.com>
686
687 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
688 Delete.
689 (frv_register_type): Rename from frv_register_virtual_type. Add
690 ``struct gdbarch *'' parameter.
691 (frv_gdbarch_init): Delete calls to the following functions:
692 set_gdbarch_deprecated_size(),
693 set_gdbarch_deprecated_register_bytes(),
694 set_gdbarch_deprecated_register_raw_size(),
695 set_gdbarch_deprecated_max_register_raw_size(),
696 set_gdbarch_deprecated_register_virtual_size(),
697 set_gdbarch_deprecated_max_register_virtual_size(),
698 set_gdbarch_deprecated_register_virtual_size(),
699 set_gdbarch_deprecated_register_virtual_type().
700 Add call to function set_gdbarch_register_type().
701
702 2003-10-26 Mark Kettenis <kettenis@gnu.org>
703
704 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
705 FDOFF_REGNUM): Remove defines.
706 * win32-nat.c (do_child_fetch_inferior_registers): Include
707 "i387-tdep.h".
708 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
709 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
710 undefine I387_ST0_REGNUM.
711
712 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
713 * x86-64-tdep.c (x86_64_store_return_value): Use
714 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
715
716 Change register numbers to enumartion values.
717 * i386-tdep.h (enum i386_regnum): New.
718 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
719 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
720 I386_ST0_REGNUM): Remove defines.
721 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
722 I386_EDI_REGNUM): Remove defines.
723
724 2003-10-24 Andrew Cagney <cagney@redhat.com>
725
726 * target.c: Include "gdbcore.h".
727 (get_target_memory, get_target_memory_unsigned): New functions.
728 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
729 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
730 Use get_target_memory_unsigned.
731 * Makefile.in (target.o): Update dependencies.
732
733 2003-10-24 Andrew Cagney <cagney@redhat.com>
734
735 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
736 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
737 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
738 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
739 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
740
741 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
742 (can_run_code_for): Use the OO term "singleton".
743
744 2003-10-23 Andrew Cagney <cagney@redhat.com>
745
746 * Makefile.in (stack.o): Add $(regcache_h).
747 * stack.c: Include "regcache.h"
748 (return_command): Rewrite. Use get_frame_id and
749 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
750 about unhandled return-values.
751 * value.h (set_return_value): Delete declaration.
752 * values.c (set_return_value): Delete function.
753
754 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
755
756 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
757 (pseudo_regs): Add comment regarding register stack registers.
758 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
759 (floatformat_valid): New static routine.
760 (floatformat_ia64_ext): Add name field and set up is_valid routine
761 to floatformat_valid().
762 (examine_prologue): For the previous cfm, use
763 frame_unwind_register()
764 if the cfm is not stored in a register-stack register. Save the
765 previous cfm value in the prev_cfm field. Add debug output.
766 (ia64_frame_this_id): Use frame_id_build_special() to also register
767 the bsp. Add debug output.
768 (ia64_sigtramp_frame_this_id): Ditto.
769 (ia64_frame_prev_register): Look at cache saved_regs for a few more
770 registers and also add some checks for framelessness before accepting
771 current register values for fields such as return address. For cfm,
772 use the cached prev_cfm field if available. Add comment to explain
773 PSR logic. Add debug output.
774 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
775 as part of initialization.
776 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
777 calculated. Cache the bsp and cfm values.
778 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
779 instead of using ia64_frame_prev_register() which doesn't expect most
780 registers to be saved. The saved values for bsp and sp
781 can be taken from the cache. Add debug output.
782 (ia64_push_dummy_call): Use frame_id_build_special() to also register
783 the bsp.
784
785 2003-10-23 Jim Blandy <jimb@redhat.com>
786
787 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
788 architecture the current arch can run code for --- but not if it's
789 a superset.
790 (can_run_code_for): New function.
791
792 2003-10-22 James E Wilson <wilson@specifixinc.com>
793
794 * MAINTAINERS: Move myself from paper trail section back to write
795 after approval section.
796
797 2003-10-22 Andrew Cagney <cagney@redhat.com>
798
799 * exec.h: New file.
800 * win32-nat.c: Include "exec.h".
801 * solib.c: Include "exec.h".
802 * target.h (build_section_table): Delete declaration.
803 * somsolib.c: Include "exec.h".
804 (exec_ops): Delete extern declaration.
805 * rs6000-nat.c: Update copyright. Include "exec.h".
806 (exec_ops): Delete extern declaration.
807 * pa64solib.c: Update copyright. Include "exec.h".
808 (exec_ops): Delete extern declaration.
809 * exec.c: Update copyright. Include "exec.h".
810 * corelow.c: Update dependencies. Include "exec.h".
811 * Makefile.in (exec_h): Define.
812 (exec.o, somsolib.o): Update dependencies.
813 (pa64solib.o, corelow.o): Update dependencies.
814
815 2003-10-22 Andrew Cagney <cagney@redhat.com>
816
817 * target.c: Include "gdb_assert.h" (target_read): Call
818 "target_read_partial", not "target_write_partial".
819 (default_read_partial, default_write_partial): New function.
820 (target_read_partial, target_write_partial): Simplify, assume that
821 there is always a read/write method.
822 (update_current_target, add_target): Always set "to_read_partial"
823 and "to_write_partial".
824 (target_write, target_read): Fail on a zero byte transfer.
825 * Makefile.in (target.o): Update dependencies.
826 * target.h: Update copyright date.
827 (target_object): Fix typo.
828
829 2003-10-22 Andrew Cagney <cagney@redhat.com>
830
831 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
832 multi-arch method, add "targ" parameter.
833 (struct target_ops): Declare.
834 * gdbarch.h, gdbarch.c: Re-generate.
835 * Makefile.in (c-valprint.o): Update dependencies.
836 * arch-utils.h: Update copyright.
837 (convert_from_func_ptr_addr_identity): Declare.
838 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
839 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
840 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
841 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
842 * infcall.c (find_function_addr, call_function_by_hand): Update.
843 * c-valprint.c: Include "target.h".
844 (print_function_pointer_address): Update.
845
846 2003-10-22 Andrew Cagney <cagney@redhat.com>
847
848 * target.c (target_close): New function.
849 (debug_to_close): Use "target_close".
850 (push_target): Use "target_close".
851 (unpush_target): Use "target_close".
852 (pop_target): Use "target_close".
853 * target.h (struct target_ops): Add "to_xclose".
854 (target_open): Delete macro. Move comment to "to_open".
855 (target_close): Replace macro with function that takes a target.
856 * top.c (quit_target): Pass "current_target" to "target_close".
857
858 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
859
860 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
861 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
862 * symtab.h (lookup_minimal_symbol_text): Update.
863 * breakpoint.c (create_overlay_event_breakpoint,
864 create_longjmp_breakpoint): Update callers.
865 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
866 * symtab.c (find_pc_sect_line): Ditto.
867
868 2003-10-21 Andrew Cagney <cagney@redhat.com>
869
870 * target.c (errno): Delete extern declaration.
871
872 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
873
874 * ia64-tdep.c: Change all occurrences of
875 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
876 (ia64_frame_prev_register): Minor whitespace change.
877
878 2003-10-20 Michael Chastain <mec@shout.net>
879
880 * config/djgpp/fnchange.lst: Add lines for:
881 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
882 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
883 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
884 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
885 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
886 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
887 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
888
889 2003-10-20 Andrew Cagney <cagney@redhat.com>
890
891 * values.c (register_value_being_returned): Update comments. Use
892 "gdbarch_return_value" when available.
893 (using_struct_return): Ditto.
894 (set_return_value): Ditto. Use "gdbarch_return_value" when
895 available.. Print a warning, and not an error, when an unhandled
896 return type is encountered.
897 * infcmd.c: Include "gdb_assert.h".
898 (print_return_value): When gdbarch_return_value_p, and using
899 struct return, assume that the value is not available.
900 * defs.h (return_value_convention): Define.
901 * gdbarch.sh (gdbarch_return_value): New predicate method.
902 * gdbarch.h, gdbarch.c: Re-generate
903 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
904
905 2003-10-20 Andrew Cagney <cagney@redhat.com>
906
907 * symtab.c: Replace "struct sec" with "struct bfd_section".
908 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
909
910 2003-10-19 Michael Chastain <mec@shout.net>
911
912 * config/djgpp/fnchange.lst: Add lines for:
913 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
914 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
915 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
916
917 2003-10-19 Mark Kettenis <kettenis@gnu.org>
918
919 * amd64fbsd-nat.c (fetch_inferior_registers,
920 store_inferior_registers): Remove functions.
921 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
922
923 2003-10-18 Mark Kettenis <kettenis@gnu.org>
924
925 Add NetBSD/amd64 native configuration:
926 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
927 * amd64nbsd-tdep.c: New file.
928 * amd64nbsd-nat.c: New file.
929 * amd64bsd-nat.c: New file.
930 * config/i386/nbsd64.mh: New file.
931 * config/i386/nbsd64.mt: New file.
932 * configure.host: Add x86_64-*-netbsd*.
933 * configure.tgt: Add x86_64-*-netbsd*.
934 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
935 New targets.
936 * NEWS (New native configurations): Mention NetBSD/amd64.
937
938 2003-10-17 Michael Chastain <mec@shout.net>
939
940 * config/djgpp/fnchange.lst: Remove dead lines for:
941 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
942 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
943 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
944 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
945 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
946 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
947 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
948 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
949 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
950 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
951 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
952 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
953 gdb/config/sparc/tm-sparclite.h,
954 gdb/gdbtk/generic/ChangeLog-2001,
955 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
956 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
957 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
958 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
959 gdb/testsuite/gdb.mi/mi0-var-block.exp,
960 gdb/testsuite/gdb.mi/mi0-var-child.exp,
961 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
962 gdb/testsuite/gdb.mi/mi0-var-display.exp,
963 itcl/iwidgets3.0.0/demos/extfileselectionbox,
964 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
965 itcl/iwidgets3.0.0/demos/fileselectionbox,
966 itcl/iwidgets3.0.0/demos/fileselectiondialog,
967 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
968 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
969 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
970 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
971 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
972 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
973 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
974 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
975 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
976 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
977 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
978 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
979 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
980 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
981 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
982 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
983 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
984 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
985 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
986 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
987 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
988 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
989 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
990 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
991 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
992 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
993 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
994 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
995 itcl/iwidgets3.0.0/demos/html/shell.n.html,
996 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
997 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
998 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
999 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1000 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1001 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1002 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1003 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1004 itcl/iwidgets3.0.0/demos/scrolledframe,
1005 itcl/iwidgets3.0.0/demos/scrolledhtml,
1006 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1007 itcl/iwidgets3.0.0/demos/scrolledtext,
1008 itcl/iwidgets3.0.0/demos/selectionbox,
1009 itcl/iwidgets3.0.0/demos/selectiondialog,
1010 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1011 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1012 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1013 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1014 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1015 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1016 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1017 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1018 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1019 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1020 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1021 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1022 itcl/iwidgets3.0.0/doc/selectionbox.n,
1023 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1024 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1025 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1026 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1027 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1028 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1029 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1030 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1031 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1032 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1033 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1034 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1035 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1036 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1037 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1038 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1039 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1040 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1041 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1042 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1043 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1044 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1045 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1046 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1047 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1048 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1049 itcl/iwidgets3.0.0/tests/selectionbox.test,
1050 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1051 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1052 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1053 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1054 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1055 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1056 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1057 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1058 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1059 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1060 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1061 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1062 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1063 tk/mac/tkMacProjects.sit.hqx.
1064
1065 2003-10-17 Andrew Cagney <cagney@redhat.com>
1066
1067 * target.c (target_section_by_addr): New function.
1068 (do_xfer_memory): Use "target_section_by_addr".
1069 * target.h (target_section_by_addr): Declare.
1070
1071 * target.h (struct target_ops): Add "to_read_partial" and
1072 "to_write_partial", delete "to_query".
1073 (target_read_partial, target_write_partial): Declare.
1074 (target_read, target_write): Declare.
1075 (target_query): Delete macro.
1076 * target.c (target_read_partial): New function.
1077 (target_write_partial, target_read, target_write): New function.
1078 (update_current_target): Delete inheritance of "to_query". Add
1079 comments about "to_read_partial" and "to_write_partial".
1080 (debug_to_partial_read, debug_to_partial_write): New functions.
1081 (debug_to_query): Delete function.
1082 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1083 instead of "to_query".
1084 * remote.c (remote_read_partial): Replace "remote_query".
1085 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1086 (init_remote_async_ops): Ditto.
1087 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1088 "target_read_partial" instead of "target_query".
1089 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1090 Use "target_read_partial" instead of "target_query".
1091
1092 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1093
1094 * frame.h (struct frame_id): Add new field: special_addr.
1095 (frame_id_build_special): New prototype.
1096 * frame.c (frame_id_build_special): New function.
1097 (frame_id_build): Change to call frame_id_build_special().
1098 (frame_id_eq): Change to also test special_addr field.
1099 (frame_id_inner): Update comment.
1100
1101 2003-10-17 Andrew Cagney <cagney@redhat.com>
1102
1103 * target.c (update_current_target): Perform the target cleanup.
1104 Put the target stack beneath the squashed "current_target".
1105 (add_target): Delete disabled call to "cleanup_target".
1106 (cleanup_target): Delete function.
1107 (push_target, unpush_target): Do not call "cleanup_target".
1108
1109 2003-10-17 Andrew Cagney <cagney@redhat.com>
1110
1111 * target.c (target_stack): Change to a static target_ops.
1112 (update_current_target): Walk the "struct target_ops" stack.
1113 (pop_target, do_xfer_memory, target_info): Ditto.
1114 (find_target_beneath): Ditto.
1115 (push_target): Rewrite to use the "struct target_ops" stack.
1116 (unpush_target): Ditto.
1117 * target.h (struct target_stack_item): Delete definition.
1118 (target_stack): Delete declaration.
1119 (struct target_ops): Add field "beneath".
1120
1121 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
1122
1123 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1124 declaration.
1125 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1126 (h8300_examine_prologue): Use h8300_normal_mode flag
1127 (h8300_gdbarch_init): Set architecture info for normal mode
1128
1129 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
1130
1131 * remote.c (remote_protocol_vcont): New variable.
1132 (set_remote_protocol_vcont_packet_cmd): New function.
1133 (show_remote_protocol_vcont_packet_cmd): New function.
1134 (init_all_packet_configs): Handle remote_protocol_vcont.
1135 (remote_vcont_probe): New function.
1136 (remote_vcont_resume): New function.
1137 (remote_resume): Use it.
1138 (remote_async_resume): Call remote_resume.
1139 (_initialize_remote): Add verbose-resume packet commands.
1140
1141 2003-10-16 Andrew Cagney <cagney@redhat.com>
1142
1143 * infrun.c (handle_inferior_event): Add comment about
1144 "frame_id_inner" being too weak.
1145
1146 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
1147
1148 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1149 second parameter, which is always null. Remove
1150 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1151 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1152 accordingly.
1153 * somsolib.c (som_solib_create_inferior_hook,
1154 som_solib_desire_dynamic_linker_symbols): Update callers.
1155 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
1156
1157 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1158
1159 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1160 debug interface, SDI (Scalable Debug Interface).
1161 * NEWS: Mention m32r SDI protocol was supported.
1162 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1163 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1164
1165 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1166
1167 * ia64-linux-tdep.c: Include gdbcore.h.
1168 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1169 (ia64_linux_sigcontext_register_addr): Find the address of the
1170 sigcontext area stored in the sigframe instead of using
1171 a magic offset constant.
1172
1173 2003-10-15 Andrew Cagney <cagney@redhat.com>
1174
1175 * remote.c (remote_search): Delete function.
1176 * target.h (target_search): Delete disabled macro.
1177 (struct target_ops): Delete disabled field "to_search".
1178
1179 2003-10-14 Kevin Buettner <kevinb@redhat.com>
1180
1181 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1182 instead of deprecated_inside_entry_file().
1183
1184 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
1185
1186 * sh-tdep.c: Fix copy/paste hangover in comment.
1187 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1188 mode.
1189 (sh3e_sh4_extract_return_value): Ditto.
1190
1191 2003-10-13 Richard Henderson <rth@redhat.com>
1192
1193 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1194 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1195 match c_val_print a bit closer.
1196
1197 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1198
1199 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1200 (frv_gdbarch_adjust_breakpoint_address): New function.
1201 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1202 method.
1203
1204 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1205
1206 * breakpoint.h (struct breakpoint): Add new member
1207 ``requested_address''.
1208 * breakpoint.c (breakpoint_adjustment_warning)
1209 (adjust_breakpoint_address): New static functions.
1210 (print_it_typical): Issue warning if breakpoint's address is different
1211 from its requested address.
1212 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1213 (breakpoint_re_set_one): Set breakpoint's
1214 ``requested_address'' field. Set ``address'' field to the
1215 result of calling adjust_breakpoint_address() on the requested
1216 address.
1217
1218 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1219
1220 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1221 * gdbarch.h, gdbarch.c: Regenerate.
1222
1223 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1224
1225 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1226 TDEP->sc_num_regs.
1227
1228 * i386fbsd-tdep.c: New file.
1229 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1230 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1231 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1232 i386bsd-tdep.c.
1233 (_initialize_i386fbsd_tdep): New function.
1234 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1235 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1236 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1237 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1238 TDEP->sc_num_regs.
1239 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1240 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1241 to initialize TDEP->sc_num_regs.
1242 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1243 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1244 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1245 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1246 FreeBSD ELF OS/ABI's here.
1247 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1248 (i386fbsd-tdep.o): New target.
1249 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1250 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1251
1252 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1253 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1254 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1255 in initialization of TDEP->sc_num_regs.
1256
1257 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1258 (x86_64_init_abi): Initialize regset_from_core_section if
1259 appropriate.
1260
1261 * i386-tdep.c (i386_regset_from_core_section): New function.
1262 (i386_gdbarch_init): Initialize regset_from_core_section if
1263 appropriate.
1264 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1265
1266 * i386-tdep.h (struct regset): Declare opaque.
1267
1268 * gdbarch.sh (regset_from_core_section): New method.
1269 (struct regset): Declare opaque.
1270 * gdbarch.c, gdbarch.h: Regenerated.
1271
1272 2003-10-11 Alan Modra <amodra@bigpond.net.au>
1273
1274 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1275 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1276 Correct test for pc within section.
1277
1278 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1279
1280 * gdbarch.sh: Remove trailing whitepsace from comments.
1281
1282 2003-10-08 Roland McGrath <roland@redhat.com>
1283
1284 * gcore.c (make_mem_sec): Function removed, folded into ...
1285 (gcore_create_callback): ... here. To omit a section, clear its
1286 SEC_LOAD bit rather than zeroing its size.
1287 Omit read-only sections only if they correspond to a known disk file.
1288 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1289
1290 2003-10-10 Michael Snyder <msnyder@redhat.com>
1291
1292 * d10v-tdep.c: Fix typo in comment.
1293
1294 2003-10-10 Andrew Cagney <cagney@redhat.com>
1295
1296 * rs6000-tdep.c (e500_store_return_value): Delete function.
1297 (e500_extract_return_value): Delete function.
1298 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1299 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1300 "ppc_sysv_abi_restore_return_value" where applicable.
1301 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1302 (ppc_sysv_abi_extract_return_value): Declare.
1303 (ppc_sysv_abi_broken_store_return_value): Declare.
1304 (ppc_sysv_abi_broken_extract_return_value): Declare.
1305 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1306 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1307 start of file.
1308 (do_ppc_sysv_return_value): New function.
1309 (ppc_sysv_abi_extract_return_value): New function.
1310 (ppc_sysv_abi_store_return_value): New function.
1311 (ppc_sysv_abi_broken_extract_return_value): New function.
1312 (ppc_sysv_abi_broken_store_return_value): New function.
1313 (ppc_sysv_abi_use_struct_convention): Call
1314 do_ppc_sysv_return_value.
1315
1316 2003-10-10 J. Brobecker <brobecker@gnat.com>
1317
1318 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1319 to lookup the main function symbol.
1320
1321 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1322
1323 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1324 types correctly.
1325 (sh_push_dummy_call_fpu): Fix argument passing rules.
1326 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1327 float types.
1328 (sh3e_sh4_store_return_value): Ditto.
1329
1330 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
1331
1332 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1333 comment.
1334
1335 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1336
1337 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1338 more readable code. Accomodate passing of bitfields.
1339
1340 2003-10-10 Andrew Cagney <cagney@redhat.com>
1341
1342 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1343 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1344 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1345 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1346 (ppc64_sysv_abi_push_dummy_call): New function.
1347 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1348 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1349 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1350
1351 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1352
1353 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1354 * README: Ditto.
1355 * d10v-tdep.c: Ditto.
1356 * h8300-tdep.c: Ditto.
1357 * remote-e7000.c: Ditto.
1358 * remote-hms.c: Ditto.
1359 * ser-e7kpc.c: Ditto.
1360 * sh-stub.c: Ditto.
1361 * sh-tdep.c: Ditto.
1362 * sh-tdep.h: Ditto.
1363 * sh3-rom.c: Ditto.
1364 * sh64-tdep.c: Ditto.
1365 * top.c: Ditto.
1366 * wince.c: Ditto.
1367 * config/d10v/d10v.mt: Ditto.
1368 * config/sh/embed.mt: Ditto.
1369 * config/sh/linux.mt: Ditto.
1370 * config/sh/tm-linux.h: Ditto.
1371 * config/sh/tm-sh.h: Ditto.
1372 * config/sh/wince.mt: Ditto.
1373
1374 2003-10-09 Andrew Cagney <cagney@redhat.com>
1375
1376 * ppc-tdep.h (struct type): Declare opaque.
1377 * x86-64-tdep.h (struct regcache): Declare opaque.
1378 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1379 coding style.
1380
1381 2003-10-09 Andrew Cagney <cagney@redhat.com>
1382
1383 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1384 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1385 (SOFTWARE_SINGLE_STEP_P): Ditto.
1386 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1387 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1388 (SOFTWARE_SINGLE_STEP_P): Ditto.
1389 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1390 software_single_step to rs6000_software_single_step.
1391
1392 2003-10-09 Andrew Cagney <cagney@redhat.com>
1393
1394 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1395
1396 2003-10-09 Michael Snyder <msnyder@redhat.com>
1397
1398 * frame.h: Fix typo in comment.
1399 * dummy-frame.c: Fix typo in comment.
1400 * d10v-tdep.c: Random whitespace/comment tweaks.
1401
1402 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
1403
1404 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1405 (sh_push_dummy_code): Delete function, it's only used for dummy calls
1406 on stack.
1407
1408 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1409 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1410 in detail.
1411
1412 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1413
1414 * remote-mips.c (mips_initialize): Remove unneeded call to
1415 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1416
1417 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1418
1419 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1420 a memory pointer.
1421
1422 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1423
1424 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1425 for any lwp we resume.
1426 (running_callback): Add lwps that have pending status events
1427 against them to be considered running.
1428
1429 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1430
1431 * m32r-tdep.c : Include "dis-asm.h".
1432 * Makefile.in (m32r-tdep.o): Update dependencies.
1433
1434 2003-10-06 J. Brobecker <brobecker@gnat.com>
1435
1436 * completer.h (get_gdb_completer_word_break_characters): Delete.
1437 * completer.c: include language.h.
1438 (gdb_completer_word_break_characters): Delete.
1439 (get_gdb_completer_word_break_characters): Delete.
1440 (location_completer): Use the word break characters of the current
1441 language.
1442 (complete_line): Likewise.
1443 (line_completion_function): Likewise.
1444 (skip_quoted_chars): Likewise.
1445 * Makefile.in (completer.o): Add dependency on language.h.
1446 * top.c (init_main): Set the readline word break characters
1447 to GDB's default word break characters.
1448
1449 2003-10-06 J. Brobecker <brobecker@gnat.com>
1450
1451 * language.h (language_defn): new field, la_word_break_characters.
1452 * language.c (unknown_language_defn): Set new field to
1453 default_word_break_characters.
1454 (auto_language_defn): Likewise.
1455 (local_language_defn): Likewise.
1456 * ada-lang.c (ada_language_defn): Likewise.
1457 * c-lang.c (c_language_defn): Likewise.
1458 (cplus_language_defn): Likewise.
1459 (asm_language_defn): Likewise.
1460 (minimal_language_defn): Likewise.
1461 * f-lang.c (f_language_defn): Likewise.
1462 * jv-lang.c (java_language_defn): Likewise.
1463 * m2-lang.c (m2_language_defn): Likewise.
1464 * objc-lang.c (objc_language_defn): Likewise.
1465 * p-lang.c (pascal_language_defn): Likewise.
1466 * scm-lang.c (scm_language_defn): Likewise.
1467
1468 2003-10-06 Andrew Cagney <cagney@redhat.com>
1469
1470 * ppc-sysv-tdep.c: Re-indent.
1471
1472 2003-10-06 J. Brobecker <brobecker@gnat.com>
1473
1474 * language.h (default_word_break_characters): Add prototype.
1475 * language.c (default_word_break_characters): New function.
1476
1477 2003-10-06 Andreas Schwab <schwab@suse.de>
1478
1479 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1480 with %eax.
1481
1482 2003-10-06 Andrew Cagney <cagney@redhat.com>
1483
1484 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1485 "h8500-tdep.c".
1486 (z8k-tdep.o): Delete custom build rule.
1487
1488 2003-10-06 Andrew Cagney <cagney@redhat.com>
1489
1490 * Makefile.in: Update all dependencies.
1491
1492 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1493 No longer list PA as as obsolete candidate. List m32r as
1494 broken instead of obsolete.
1495
1496 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1497 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1498 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1499 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1500 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1501 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1502 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1503 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1504 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1505 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1506 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1507 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1508 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1509 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1510 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1511 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1512 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1513 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1514 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1515 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1516 * config/z8k/z8k.mt: Ditto.
1517
1518 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1519 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1520 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1521 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1522 sparclite were removed.
1523 * configure.host, configure.tgt: Remove corresponding tuples.
1524
1525 * breakpoint.c, breakpoint.h: Remove obsolete code.
1526 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1527 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1528 * stabsread.h, xcoffread.c: Ditto.
1529
1530 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1531 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1532 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1533 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1534
1535 2003-10-06 David Lecomber <dsl@sources.redhat.com>
1536
1537 * f-valprint.c: Reformatting
1538
1539 2003-10-06 Mark Kettenis <kettenis@gnu.org>
1540
1541 * x86-64-tdep.c: Remove duplicate comment.
1542
1543 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1544 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1545 names for return values. This fixes a bug since we looked at %rbx
1546 instead of %rdx.
1547
1548 2003-10-05 Mark Kettenis <kettenis@gnu.org>
1549
1550 * x86-64-tdep.c: Include "regset.h".
1551
1552 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1553 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1554 sizeof_fpregset.
1555 * i386-tdep.c: Include "regset.h".
1556 (i386_supply_gregset): New function.
1557 (i386_supply_fpregset): New function.
1558 (i386_gdbarch_init): Initialze register set-related members of
1559 TDEP.
1560 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1561 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1562
1563 2003-10-03 Andrew Cagney <cagney@redhat.com>
1564
1565 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1566 set extract_return_value, store_return_value and
1567 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1568 ppc64_sysv_abi_store_return_value and
1569 ppc64_sysv_abi_use_struct_convention.
1570 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1571 (ppc64_sysv_abi_store_return_value): Declare.
1572 (ppc64_sysv_abi_use_struct_convention): Declare.
1573 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1574 (ppc64_sysv_abi_extract_return_value): New function.
1575 (ppc64_sysv_abi_store_return_value): New function.
1576 (ppc64_sysv_abi_use_struct_convention): New function.
1577 (ppc64_sysv_abi_return_value): New function.
1578
1579 2003-10-03 Andrew Cagney <cagney@redhat.com>
1580
1581 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1582 convert a descriptor to a function when it's in the ".opd"
1583 section.
1584
1585 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1586
1587 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1588 reg_size to keep GCC silent.
1589
1590 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1591
1592 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1593 base for DW_EH_PE_textrel encodings.
1594 (read_encoded_value): Add a DW_EH_PE_textrel case.
1595 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1596 section.
1597
1598 2003-10-03 Mark Kettenis <kettenis@gnu.org>
1599
1600 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1601
1602 2003-10-02 Andrew Cagney <cagney@redhat.com>
1603
1604 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1605 REGISTER_RAW_SIZE.
1606 * gdbarch.h, gdbarch.c: Re-generate.
1607 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1608 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1609 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1610 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1611 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1612 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1613 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1614 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1615 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1616 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1617 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1618 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1619 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1620 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1621 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1622 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
1623
1624 2003-10-02 Jim Blandy <jimb@redhat.com>
1625
1626 * dwarf2read.c (struct die_info): Doc fix.
1627
1628 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1629
1630 * sh-tdep.c: Running thru gdb_indent.sh.
1631
1632 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1633
1634 * sh-tdep.c (sh_justify_value_in_reg): New function.
1635 (sh_stack_allocsize): Ditto.
1636 (flt_argreg_array): New array used for floating point argument
1637 passing.
1638 (sh_init_flt_argreg): New function.
1639 (sh_next_flt_argreg): Ditto.
1640 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1641 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1642 Fix argument passing strategy.
1643 (sh_push_dummy_call_nofpu): Ditto.
1644
1645 2003-10-01 Andrew Cagney <cagney@redhat.com>
1646
1647 * value.h (register_value_being_returned): Declare. Replace
1648 "value_being_returned".
1649 * infcall.c (call_function_by_hand): Use
1650 register_value_being_returned.
1651 * infcmd.c (print_return_value): Call
1652 "register_value_being_returned", handle struct return locally.
1653 * values.c (register_value_being_returned): New function. Replace
1654 "value_being_returned".
1655
1656 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
1657
1658 * linux-proc.c (linux_do_registers): New function.
1659 (linux_make_note_section): Use linux_do_registers in case of
1660 single threaded inferior programs.
1661
1662 2003-10-01 Andrew Cagney <cagney@redhat.com>
1663
1664 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1665 use STRUCT_ADDR. When not using "struct return convention", pass
1666 "0" to "value_being_returned". Add FIXMEs.
1667 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1668 value_being_returned. Add comments.
1669 * values.c (value_being_returned): Add fixme.
1670 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1671 (hppa_value_returned_from_stack): Add FIXME.
1672
1673 2003-09-30 David Carlton <carlton@kealia.com>
1674
1675 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1676 'has_children' and 'next' by 'child' and 'sibling'.
1677 (read_comp_unit): Rework algorithm, breaking body into
1678 read_die_and_children and read_die_and_siblings.
1679 (read_die_and_children, read_die_and_siblings): New.
1680 (read_full_die): Add 'has_children' argument; set it instead of
1681 the die's 'has_children' field. Minor formatting cleanup.
1682 (free_die_list): Use die->child and die->sibling instead of
1683 die->next.
1684 (dump_die_list): Ditto.
1685 (sibling_die): Use die->sibling.
1686 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1687 'has_children' and 'next' fields.
1688 (process_die, read_file_scope, read_func_scope)
1689 (read_lexical_block_scope, read_structure_scope)
1690 (read_enumeration, read_array_type, read_common_block)
1691 (read_namespace, read_subroutine_type, dump_die): Ditto.
1692
1693 2003-09-30 Andrew Cagney <cagney@redhat.com>
1694
1695 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1696 to 224, not 220.
1697
1698 2003-09-30 Andrew Cagney <cagney@redhat.com>
1699
1700 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1701 REGISTER_VIRTUAL_SIZE.
1702 * gdbarch.h, gdbarch.c: Regenerate.
1703 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1704 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1705 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1706
1707 2003-09-29 Andrew Cagney <cagney@redhat.com>
1708
1709 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1710 DEPRECATED_REGISTER_VIRTUAL_TYPE.
1711 * gdbarch.h, gdbarch.c: Regenerate.
1712 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1713 * sh64-tdep.c, sparc-tdep.c: Update.
1714
1715 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1716 * remote-vxmips.c (vx_read_register): Ditto.
1717 * remote-vx68.c (vx_read_register): Ditto.
1718 * gnu-nat.c (inf_validate_procs): Ditto.
1719
1720 2003-09-29 J. Brobecker <brobecker@gnat.com>
1721
1722 * infcall.c (call_function_by_hand): Fix build failure
1723 introduced in the previous change to this file.
1724
1725 2003-09-29 Andrew Cagney <cagney@redhat.com>
1726
1727 * NEWS: Mention Objective-C.
1728
1729 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
1730
1731 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1732 test if the register has been saved on the stack.
1733 (arm_scan_prologue_cache): When analysing the instruction
1734 "str lr, [sp, #-4]", save the address where lr has been stored.
1735
1736 2003-09-28 Andrew Cagney <cagney@redhat.com>
1737
1738 * frame.c (frame_read_unsigned_register): Delete function.
1739 * frame.h (frame_read_unsigned_register): Delete declaration.
1740 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1741 get_frame_register_unsigned.
1742 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1743 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1744 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1745
1746 * frame.h (frame_read_register): Delete declaration.
1747 * frame.c (frame_read_register): Delete function.
1748 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1749 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1750 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1751 * mips-tdep.c (mips_register_to_value): Ditto.
1752 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1753 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1754
1755 * frame.c (frame_read_signed_register): Delete function.
1756 (frame_read_unsigned_register): Update comments.
1757 * frame.h (frame_read_signed_register): Delete declaration.
1758 * h8300-tdep.c (h8300_print_register): Use
1759 get_frame_register_signed.
1760 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1761
1762 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1763 Rename VALUE_RETURNED_FROM_STACK.
1764 * infcmd.c (print_return_value): Update.
1765 * infcall.c (call_function_by_hand): Update.
1766
1767 2003-09-28 Mark Kettenis <kettenis@gnu.org>
1768
1769 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1770 regcache argument and reverse the order of the other two
1771 arguments. Remove local regcache variable. Determine
1772 architecture from REGCACHE. Update comments.
1773 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1774 reverse the order of the other two arguments. Remove local
1775 regcache variable. Determine architecture from REGCACHE. Update
1776 comments.
1777 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1778 prototypes. Update comments.
1779 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1780 comment.
1781 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1782 Update.
1783 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1784 * i386-interix-nat.c (supply_fpregset): Update.
1785 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1786 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1787 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1788 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1789 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1790 Update.
1791 * i386obsd-tdep.c (fetch_core_registers): Update.
1792 * i386v4-nat.c (supply_fpregset): Update.
1793 * x86-64-linux-nat.c (supply_fpregset): Update.
1794 * x86-64-linux-tdep.c (fetch_core_registers): Update.
1795
1796 2003-09-27 Mark Kettenis <kettenis@gnu.org>
1797
1798 * i386-tdep.h: Put opaque declarations in alphabetical
1799 order. Remove spurious whitespace.
1800 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1801 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1802 * i386-tdep.c (MM0_REGNUM): Remove define.
1803 (i386_mmx_regnum_p): Add gdbarch argument.
1804 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1805 Rewrite using new macro definitions for FPU/SSE registers.
1806 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1807 definitions from i387-tdep.h.
1808 (i386_register_name): Update.
1809 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1810 new macro definitions for FPU/SSE registers.
1811 (i386_extract_return_value): Determine whether floating-point
1812 registers are present by examining REGCACHE's architecture.
1813 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1814 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1815 FPU/SSE registers.
1816 (i386_register_type): Update.
1817 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1818 definitions for FPU registers. Use REGCACHE's architecture to
1819 determine the appropriate register numbers.
1820 (i386_pseudo_register_read, i386_pseudo_register_write,
1821 i386_register_reggroup_p): Update.
1822 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1823 TDEP->mm0_regnum.
1824 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1825 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1826 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1827 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1828 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1829 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1830 *' to `void *'.
1831 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1832 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1833 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1834 definitions for FPU/SSE registers.
1835 (FXSAVE_MXCSR_ADDR): New define.
1836 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1837 TDEP->mm0_regnum.
1838 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1839 (I387_ST0_REGNUM): Define.
1840
1841 * regcache.h (get_regcache_arch): New prototype.
1842 * regcache.c (get_regcache_arch): New function.
1843
1844 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1845 whitespace.
1846
1847 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1848 Initialize using ARRAY_SIZE.
1849
1850 2003-09-27 Andrew Cagney <cagney@redhat.com>
1851
1852 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1853 "init_frame_pc_default".
1854 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1855 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1856 * vax-tdep.c (vax_gdbarch_init): Update.
1857 * v850-tdep.c (v850_gdbarch_init): Update.
1858 * sh64-tdep.c (sh64_gdbarch_init): Update.
1859 * s390-tdep.c (s390_gdbarch_init): Update.
1860 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1861 * mcore-tdep.c (mcore_gdbarch_init): Update.
1862 * h8300-tdep.c (h8300_gdbarch_init): Update.
1863 * cris-tdep.c (cris_gdbarch_init): Update.
1864 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1865
1866 2003-09-26 Mark Kettenis <kettenis@gnu.org>
1867
1868 * regset.h: New file.
1869 * Makefile.in (regset_h): Add.
1870
1871 2003-09-25 Andrew Cagney <cagney@redhat.com>
1872
1873 * frame.h (deprecated_frame_saved_regs): Rename
1874 get_frame_saved_regs.
1875 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1876 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1877 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1878 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1879 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1880
1881 2003-09-25 Andrew Cagney <cagney@redhat.com>
1882
1883 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1884 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1885 and Java.
1886 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1887 arm*-*-* do not use the new frame code.
1888
1889 2003-09-25 David Carlton <carlton@kealia.com>
1890
1891 * c-exp.y: Remove 'register' declarations.
1892 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1893
1894 2003-09-25 David Carlton <carlton@kealia.com>
1895
1896 * c-exp.y: Include cp-support.h. Add qualified_type.
1897 (yylex): Delete nested type hack; add comments.
1898 * cp-namespace.c (cp_lookup_nested_type): New function.
1899 * cp-support.h: Declare cp_lookup_nested_type.
1900 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1901 instead of value_struct_elt_for_reference.
1902 * valops.c: Include cp-support.h.
1903 (value_aggregate_elt): New function.
1904 (value_namespace_elt): Ditto.
1905 (value_struct_elt_for_reference): Make static.
1906 * value.h: Delete declaration of value_struct_elt_for_reference;
1907 add declaration for value_aggregate_elt.
1908 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1909 (valops.o): Ditto.
1910
1911 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
1912
1913 * stack.c: Include "reggroups.h".
1914 (frame_info): Only display registers in all_reggroup.
1915 * Makefile.in (stack.o): Update dependencies.
1916
1917 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1918
1919 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1920 "add ip, sp #n" in the prologue.
1921 (arm_scan_prologue): Ditto.
1922
1923 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1924
1925 * MAINTAINERS (write after approval): Add myself.
1926
1927 2003-09-25 Andreas Schwab <schwab@suse.de>
1928
1929 * m68k-tdep.c: Include "dwarf2-frame.h".
1930 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1931 * Makefile.in (m68k-tdep.o): Update dependencies.
1932
1933 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
1934
1935 * sh-tdep.c (struct frame_extra_info): Remove.
1936 (struct sh_frame_cache): New structure.
1937 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1938 (GET_TARGET_REG): Ditto but target register.
1939 (GET_PUSHED_REG): Remove.
1940 (IS_MOV_ARG_TO_REG): New macro.
1941 (IS_MOV_ARG_TO_IND_R14): New macro.
1942 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1943 (IS_MOVW_PCREL_TO_REG): New macro.
1944 (IS_MOVL_PCREL_TO_REG): New macro.
1945 (IS_SUB_REG_FROM_SP): New macro.
1946 (IS_ARG_MOV): Remove.
1947 (IS_MOV_TO_R14): Remove.
1948 (IS_RESTORE_FP): New macro.
1949 (IS_RTS): New macro.
1950 (IS_LDS): New macro.
1951 (IS_MOV_FP_SP): New macro.
1952 (IS_ADD_REG_TO_FP): New macro.
1953 (IS_ADD_IMM_FP): New macro.
1954 (sh_skip_prologue_hard_way): Remove.
1955 (sh_saved_pc_after_call): Remove.
1956 (sh_frame_chain): Remove.
1957 (sh_find_callers_reg): Remove.
1958 (sh_nofp_frame_init_saved_regs): Remove.
1959 (sh_fp_frame_init_saved_regs): Remove.
1960 (sh_init_extra_frame_info): Remove.
1961 (sh_analyze_prologue): New function.
1962 (sh_skip_prologue): Remove deprecated code. Rely on new function
1963 sh_analyze_prologue when after_prologue fails.
1964 (sh_frame_saved_pc): Remove.
1965 (sh_alloc_frame_cache): New function.
1966 (sh_frame_cache): Ditto.
1967 (sh_frame_prev_register): Ditto.
1968 (sh_frame_this_id): Ditto.
1969 (sh_frame_unwind): New structure defining the heuristic frame
1970 sniffer interface.
1971 (sh_frame_sniffer): New function.
1972 (sh_unwind_sp): Ditto.
1973 (sh_unwind_pc): Ditto.
1974 (sh_unwind_dummy_id): Ditto.
1975 (sh_frame_base_address): Ditto.
1976 (sh_frame_base): New structure defining new frame base code.
1977 (sh_in_function_epilogue_p): New function.
1978 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1979 code and to call all new code instead. Initialize dwarf2 and
1980 heuristic frame sniffer.
1981
1982 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1983
1984 * parser-defs.h (struct exp_descriptor): New definition, containing
1985 language-specific info for printing, prefixifying, dumping, and
1986 evaluating expressions.
1987 (exp_descriptor_standard): Declare new variable.
1988 (print_subexp): Make global and declare here (from expprint.c).
1989 (dump_subexp): Ditto.
1990 (dump_subexp_body_standard): Declare.
1991 (operator_length_standard): Declare.
1992 (op_name_standard): Declare.
1993 (print_subexp): Declare.
1994 (print_subexp_standard): Declare.
1995
1996 * language.h (struct language_defn): Add la_exp_desc field to hold
1997 pointer to table for language-specific operators.
1998 Remove evaluate_exp field, which is now in struct exp_descriptor.
1999
2000 * parse.c (operator_length): Move most code to new
2001 operator_length_standard function. Use language-specific information.
2002 (operator_length_standard): New function taking most code from
2003 operator_length.
2004 (exp_descriptor_standard): New constant.
2005
2006 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
2007 and OP_EXTENDED_LAST.
2008
2009 * expprint.c (print_subexp): Use language-specific print_subexp.
2010 Make global; remove static declaration.
2011 Move most code to print_subexp_standard.
2012 (print_subexp_standard): New function, containing code formerly in
2013 print_subexp.
2014 (op_name): Add expression to argument signature.
2015 Use langauge-specific op_name.
2016 Move most code to op_name_standard.
2017 (op_name_standard): New function, containing code formerly in op_name.
2018 (dump_subexp): Use new version of op_name function.
2019 Use language-specific dump_subexp_body, and move most existing code to
2020 dump_subexp_body_standard.
2021 (dump_raw_expression): Use new op_name interface.
2022 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2023 (dump_subexp_body_standard): New function, containing code formerly
2024 in dump_subexp_body.
2025
2026 * language.c (unknown_language): Add default la_exp_desc field and
2027 remove evaluate_exp field.
2028 (auto_language): Ditto.
2029 (local_language): Ditto.
2030 * f-lang.c (f_language_defn): Ditto.
2031 * c-lang.c (c_language_defn): Ditto.
2032 (cplus_language_defn): Ditto.
2033 (asm_language_defn): Ditto.
2034 (minimal_language_defn): Ditto.
2035 * p-lang.c (pascal_language_defn): Ditto.
2036 * m2-lang.c (m2_language_defn): Ditto.
2037 * objc-lang.c (objc_language_defn): Ditto.
2038
2039 * jv-lang.c (exp_descriptor_java): New variable, containing
2040 Java-specific expression evaluator.
2041 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2042 field.
2043 * scm-lang.c (exp_descriptor_scm): New variable, containing
2044 Scheme-specific expression evaluator.
2045 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2046 field.
2047 * objc-lang.c (print_object_command): Take evaluate_exp from the
2048 la_exp_desc field.
2049
2050 * Makefile.in (eval.o): Add dependency on parser-defs.h.
2051
2052 * eval.c: Include parser-defs.h for the full declaration of
2053 la_exp_desc's type.
2054 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
2055
2056 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2057
2058 * parser-defs.h (operator_length): Declare.
2059
2060 * parse.c (length_of_subexp): Use operator_length to get operator
2061 lengths and arities for operators.
2062 Move most code to new operator_length function.
2063 (operator_length): New function absorbing most code from
2064 length_of_subexp.
2065 (prefixify_subexp): Remove large case and use operator_length instead.
2066 (parse_exp_1): Use renamings:
2067 dump_prefix_expression => dump_raw_expression and
2068 dump_postfix_expression => dump_prefix_expression.
2069
2070 * expression.h (dump_prefix_expression): Rename to ...
2071 (dump_raw_expression): New name.
2072 (dump_postfix_expression): Rename to ...
2073 (dump_prefix_expression): New name.
2074
2075 * expprint.c (dump_subexp): Make global. Add comment.
2076 Move most existing code to dump_subexp_body.
2077 (dump_subexp_body): New function.
2078 (dump_prefix_expression): Rename to dump_raw_expression.
2079 Remove attempt to print the expression via print_expression: it can't
2080 work before the expression is prefixified.
2081 (dump_raw_expression): Renamed from dump_prefix_expression.
2082 (dump_postfix_expression): Rename to dump_prefix_expression, since
2083 that's what it does.
2084 Remove 'note' parameter, since this routine must be used on
2085 prefixified expression.
2086 (dump_prefix_expression): Renamed from dump_postfix_expression.
2087
2088 2003-09-22 Jim Blandy <jimb@redhat.com>
2089
2090 * dwarf2read.c (read_array_type): When building the type for an
2091 array of unspecified length, make sure to choose the upper bound
2092 so that the array's total length comes out to be zero --- that's
2093 how we represent such arrays.
2094
2095 2003-09-22 Michael Chastain <mec@shout.net>
2096
2097 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2098
2099 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2100
2101 * top.c (quit_force): Fix indirect call to quit_target so
2102 a struct qt_args pointer is passed.
2103
2104 2003-09-22 Andrew Cagney <cagney@redhat.com>
2105
2106 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2107 * arch-utils.c (init_frame_pc_noop): Delete function.
2108 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2109 "init_frame_pc".
2110 * mips-tdep.c (mips_gdbarch_init): Ditto.
2111 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2112 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2113 declaration.
2114 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2115 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2116 declaration.
2117 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2118
2119 2003-09-22 Anthony Green <green@redhat.com>
2120
2121 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2122 declaration.
2123
2124 2003-09-20 Andrew Cagney <cagney@redhat.com>
2125
2126 * breakpoint.c: Eliminate ARGSUSED.
2127 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2128 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2129 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2130 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2131 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2132 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2133 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2134 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2135 * wince.c, remote-vx.c: Ditto.
2136
2137 * cli/cli-script.c: Remove "register" attributes.
2138 * config/pa/tm-hppa.h: Ditto.
2139 * cli/cli-decode.c: Ditto.
2140 * cli/cli-cmds.c: Ditto.
2141
2142 2003-09-19 Andrew Cagney <cagney@redhat.com>
2143
2144 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2145 DEPRECATED_NPC_REGNUM.
2146 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2147
2148 2003-09-19 Christopher Faylor <cgf@redhat.com>
2149
2150 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2151
2152 2003-09-19 Jim Blandy <jimb@redhat.com>
2153
2154 * macrotab.c (macro_include): Use the correct comparison to find
2155 the appropriate place for this inclusion in the list.
2156
2157 2003-09-19 Andrew Cagney <cagney@redhat.com>
2158
2159 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2160 (DEPRECATED_HPUX_TEXT_END): Define.
2161 (deprecated_hpux_text_end): Declare.
2162 (struct target_ops): Declare opaque.
2163 * hppah-nat.c (text_end): Make static.
2164 (deprecated_hpux_text_end): New function.
2165 * exec.c (text_end): Delete global variable.
2166 (NEED_TEXT_START_END): Do not define.
2167 (exec_file_attach): Replace code computing "text_end" code with
2168 call to DEPRECATED_HPUX_TEXT_END.
2169
2170 2003-09-19 Andrew Cagney <cagney@redhat.com>
2171
2172 * utils.c (align_up, align_down): New functions.
2173 * defs.h (align_up, align_down): Declare.
2174 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2175 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2176 and "align_down".
2177 (round_up, round_down): Delete functions.
2178 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2179 "align_down".
2180 (ROUND_DOWN, ROUND_UP): Delete macros.
2181 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2182 * h8300-tdep.c: Replace "round_up" and "round_down" with
2183 "align_up" and "align_down".
2184 (round_up, round_down): Delete macros.
2185 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2186 "align_down".
2187 (ROUND_UP, ROUND_DOWN): Delete macros.
2188
2189 2003-09-18 J. Brobecker <brobecker@gnat.com>
2190
2191 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2192 hard-coded constant. Use the proper machine name instead.
2193
2194 2003-09-17 Andrew Cagney <cagney@redhat.com>
2195
2196 * sparc-tdep.c (legacy_register_name): Delete function.
2197 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2198 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2199 * infcmd.c (gdb_register_name): Delete variable.
2200 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2201 REGISTER_NAME and "tm.h".
2202 * gdbarch.h, gdbarch.c: Regenerate.
2203 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2204 REGISTER_NAMES in comments.
2205 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2206 * m68klinux-nat.c (regmap): Ditto.
2207
2208 2003-09-17 Jim Blandy <jimb@redhat.com>
2209
2210 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2211
2212 2003-09-17 Andrew Cagney <cagney@redhat.com>
2213
2214 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2215 (ppcnbsd_init_abi): Set "use_struct_convention" to
2216 "ppcnbsd_use_struct_convention".
2217
2218 2003-09-17 Mark Kettenis <kettenis@gnu.org>
2219
2220 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2221 * gdbarch.h, gdbarch.c: Regenerate.
2222 (stabs_argument_has_addr): New architecture method.
2223 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2224 * arch-utils.c: Include "buildsym.h".
2225 (default_stabs_argument_has_addr): New function.
2226 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2227 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2228
2229 2003-09-17 Andrew Cagney <cagney@redhat.com>
2230
2231 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2232 * gdbarch.h, gdbarch.c: Regenerate.
2233 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2234 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2235 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2236 * sparcnbsd-tdep.c: Update.
2237
2238 2003-09-17 Andrew Cagney <cagney@redhat.com>
2239
2240 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2241 * gdbarch.h, gdbarch.c: Regenerate.
2242 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2243 * d10v-tdep.c, frame.c: Update.
2244 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2245 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2246 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2247 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2248 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2249 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2250 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2251 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2252 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2253 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2254 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2255 * config/pa/nm-hppah.h: Update.
2256
2257 2003-09-16 Andrew Cagney <cagney@redhat.com>
2258
2259 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2260 "use_struct_convention" to "ppc_linux_use_struct_convention".
2261 (ppc_linux_use_struct_convention): New function.
2262 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2263 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2264 "rs6000_use_struct_convention".
2265 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2266 declaration.
2267 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2268 Delete function.
2269
2270 2003-09-16 Andrew Cagney <cagney@redhat.com>
2271
2272 * buildsym.c: Remove more occurances of "register".
2273 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2274 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2275 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2276 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2277 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2278 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2279 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2280 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2281
2282 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
2283
2284 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2285 numbers to enumeration values.
2286 * sh-tdep.c: Accomodate above change.
2287 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2288 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2289 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2290 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2291 (IS_FPUSH): Rename from IS_FMOV.
2292 (sh_extract_struct_value_address): Remove useless comment.
2293 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2294 instead of own local values.
2295 (sh_dump_tdep): Remove.
2296 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2297 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2298
2299 2003-09-15 Andrew Cagney <cagney@redhat.com>
2300
2301 * doublest.c (convert_floatformat_to_doublest): No longer need to
2302 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2303
2304 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
2305
2306 * values.c (unpack_double): Call floatformat_is_valid.
2307
2308 2003-09-15 Mark Kettenis <kettenis@gnu.org>
2309
2310 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2311 ps_strings into a long.
2312
2313 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2314 _initialize_am64fbsd_nat.
2315
2316 2003-09-15 Kevin Buettner <kevinb@redhat.com>
2317
2318 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2319 associated with DW_AT_ranges attribute is out of bounds.
2320
2321 2003-09-15 David Lecomber <dsl@sources.redhat.com>
2322
2323 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2324
2325 2003-09-14 Michael Chastain <mec@shout.net>
2326
2327 * config/m68k/nm-apollo68v.h: Delete.
2328 * config/m68k/xm-apollo68v.h: Delete.
2329
2330 2003-09-14 Andrew Cagney <cagney@redhat.com>
2331
2332 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2333 * dcache.c: Update copyrights and descriptions.
2334 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2335
2336 2003-09-14 Andrew Cagney <cagney@redhat.com>
2337
2338 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2339 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2340
2341 2003-09-14 Andrew Cagney <cagney@redhat.com>
2342
2343 * alpha-nat.c: Remove some occurances of "register".
2344 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2345 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2346 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2347 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2348 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2349 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2350 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2351 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2352 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2353 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2354 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2355 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2356 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2357 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2358 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2359 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2360 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2361 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2362 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2363 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2364 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2365 * values.c, vax-tdep.c, xcoffread.c: Ditto.
2366
2367 2003-09-13 Andrew Cagney <cagney@redhat.com>
2368
2369 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2370 * ppc-tdep.h (struct regcache): Declare opaque.
2371 * objfiles.h (struct objfile_data): Declare opaque.
2372 * cp-support.h (struct objfile): Declare opaque.
2373 * linux-nat.h (target_waitstatus): Declare opaque.
2374
2375 2003-09-14 Mark Kettenis <kettenis@gnu.org>
2376
2377 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2378 (stabs_argument_has_addr): New architecture method.
2379 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2380 * arch-utils.c: Include "buildsym.h".
2381 (default_stabs_argument_has_addr): New function.
2382 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2383 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2384
2385 * cris-tdep.c (cris_gdbarch_init): Set
2386 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2387 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2388 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2389 * mips-tdep.c (mips_gdbarch_init): Likewise.
2390 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2391 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2392
2393 2003-09-13 Andrew Cagney <cagney@redhat.com>
2394
2395 * values.c (using_struct_return): Delete "function" and "funcaddr"
2396 parameters.
2397 * value.h (using_struct_return): Update declaration.
2398 * infcmd.c (finish_command_continuation): Update.
2399 (finish_command): Update.
2400 * infcall.c (call_function_by_hand): Update.
2401 * eval.c (evaluate_subexp_standard): Update.
2402
2403 2003-09-13 Christopher Faylor <cgf@redhat.com>
2404
2405 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2406 SSE registers since gdb will not operate correctly without this.
2407 Restore include file ordering munged in previous change.
2408 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2409
2410 2003-09-13 Mark Kettenis <kettenis@gnu.org>
2411
2412 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2413 REG_STRUCT_HAS_ADDR.
2414 * gdbarch.c, gdbarch.h: Updated.
2415 * infcall.c (call_function_by_hand): Update.
2416 * stabsread.c (define_symbol): Updated.
2417
2418 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2419
2420 2003-09-12 Christopher Faylor <cgf@redhat.com>
2421
2422 * win32-nat.c: Reorganize so that defines used by target headers are
2423 actually defined by the system headers.
2424 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2425 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2426
2427 2003-09-12 Jim Blandy <jimb@redhat.com>
2428
2429 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2430 the file has no .data, .bss, or .rodata sections. Instead wait
2431 until we see a variable alleged to live in one of those sections.
2432
2433 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2434 .bss section, presume that any variables we find live in the
2435 .rodata section.
2436
2437 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2438 offsets for global and static variables.
2439
2440 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2441 symbol types are, by definition, in the .data section, so it is
2442 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2443 If there is no .data section, there should be no N_DATA or N_DATA
2444 | N_EXT symbols.
2445
2446 2003-09-12 Mark Kettenis <kettenis@gnu.org>
2447
2448 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2449 (amd64fbsd_sigcontext_addr): Rewrite.
2450 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2451 with correct values.
2452 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2453 (amd64fbsd_init_abi): Fix typo.
2454
2455 2003-09-12 Andrew Cagney <cagney@redhat.com>
2456
2457 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2458 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2459
2460 2003-09-12 Andrew Cagney <cagney@redhat.com>
2461
2462 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2463 "entry_file_highpc". Update comments.
2464 * defs.h (deprecated_inside_entry_file): Rename
2465 "inside_entry_file".
2466 * blockframe.c (deprecated_inside_entry_file): Rename
2467 "inside_entry_file".
2468 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2469 * vax-tdep.c (vax_frame_chain): Update.
2470 * sh64-tdep.c (sh64_frame_chain): Update.
2471 * sh-tdep.c (sh_frame_chain): Update.
2472 * rs6000-tdep.c (rs6000_frame_chain): Update.
2473 * ns32k-tdep.c (ns32k_frame_chain): Update.
2474 * mips-tdep.c (mips_frame_chain): Update.
2475 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2476 * m32r-tdep.c (m32r_frame_this_id): Update.
2477 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2478 * frv-tdep.c (frv_frame_this_id): Update.
2479 * d10v-tdep.c (d10v_frame_this_id): Update.
2480 * cris-tdep.c (cris_frame_chain): Update.
2481 * blockframe.c (legacy_frame_chain_valid): Update.
2482 * avr-tdep.c (avr_frame_this_id): Update.
2483 * arm-tdep.c (arm_prologue_this_id): Update.
2484 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2485 * objfiles.c (objfile_relocate): Update.
2486 * mipsread.c (mipscoff_symfile_read): Update.
2487 (mipscoff_symfile_read): Update.
2488 * mdebugread.c (parse_partial_symbols): Update.
2489 * dwarfread.c (read_file_scope): Update.
2490 * dwarf2read.c (read_file_scope): Update.
2491 * dbxread.c (read_dbx_symtab): Update.
2492 (read_dbx_symtab): Update.
2493 * coffread.c (complete_symtab): Update.
2494
2495 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2496
2497 * top.c (quit_target): New static helper function.
2498 (quit_force): Moved code to quit_target(). Call quit_target()
2499 via catch_errors() to catch errors during quit.
2500
2501 2003-09-11 David Carlton <carlton@kealia.com>
2502
2503 * buildsym.c (finish_block): Use allocate_block to allocate the
2504 block.
2505 * mdebugread.c (new_block): Add FIXME.
2506
2507 2003-09-11 David Carlton <carlton@kealia.com>
2508
2509 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2510 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2511 (recursive_dump_type): Ditto.
2512 * printcmd.c (print_formatted): Ditto.
2513 * typeprint.c (print_type_scalar): Ditto.
2514 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2515 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2516 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2517 maint_cplus_cmd_list.
2518 * cp-support.c: Make maint_cplus_cmd_list extern.
2519 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2520 command.h.
2521 (lookup_symbol_file): Look in possible namespace blocks when
2522 appropriate.
2523 (initialize_namespace_symtab): New.
2524 (get_possible_namespace_block, free_namespace_block)
2525 (check_possible_namespace_symbols)
2526 (check_possible_namespace_symbols_loop)
2527 (check_one_possible_namespace_symbol)
2528 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2529 (_initialize_cp_namespace): Ditto.
2530 * block.h: Declare allocate_block.
2531 * block.c (allocate_block): New.
2532 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2533 allocate_block.
2534 * symfile.h: Update declaration of add_psymbol_to_list.
2535 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2536 question.
2537 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2538 scan_partial_symbols_call.
2539 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2540 helper functions.
2541 (add_partial_symbol): If necessary, scan mangled names for names
2542 of namespaces.
2543 (add_partial_namespace): Add NAMESPACE argument; generate partial
2544 symbols associated to namespaces.
2545 (add_partial_enumeration): Add NAMESPACE argument.
2546 (new_symbol): Allow namespace syms.
2547 (read_namespace): Generate namespace syms.
2548 * objfiles.h: Add opaque declaration of struct symtab.
2549 (struct objfile): Add cp_namespace_symtab member.
2550 * objfiles.c (allocate_objfile): Set
2551 objfile->cp_namespace_symtab.
2552 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2553 dictionary_h, command_h.
2554
2555 2003-09-11 Andrew Cagney <cagney@redhat.com>
2556
2557 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2558 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2559 near the function's end.
2560 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2561 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2562 regcache_raw_write_signed to set SP_REGNUM.
2563
2564 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
2565
2566 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2567 orig_addrs is set up properly.
2568
2569 2003-09-11 Andrew Cagney <cagney@redhat.com>
2570
2571 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2572 * gdbarch.h, gdbarch.c: Re-generate.
2573 * infcall.c (call_function_by_hand): Update.
2574 * hppa-tdep.c (hppa_push_arguments): Update.
2575 * ada-lang.c (place_on_stack): Update.
2576 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2577 * sparc-tdep.c (sparc_gdbarch_init): Update.
2578 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2579 * hppa-tdep.c (hppa_gdbarch_init): Update.
2580 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2581 stack_align.
2582
2583 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
2584
2585 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2586 register do need a frame.
2587
2588 2003-09-11 Andrew Cagney <cagney@redhat.com>
2589
2590 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2591 buildable since GDB 5.0.
2592 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2593 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2594 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2595 * irix4-nat.c: Delete file.
2596 * config/mips/irix4.mh: Delete file.
2597 * config/mips/irix3.mh: Delete file.
2598 * config/mips/irix3.mt: Delete file.
2599 * config/mips/tm-irix3.h: Delete file.
2600 * config/mips/nm-irix3.h: Delete file.
2601 * config/mips/xm-irix3.h: Delete file.
2602 * config/mips/nm-irix4.h: Delete file.
2603 * config/mips/xm-irix4.h: Delete file.
2604 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2605
2606 2003-09-10 J. Brobecker <brobecker@gnat.com>
2607
2608 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2609 * Makefile.in (hppa-tdep.o): Update dependencies.
2610
2611 2003-09-10 James E Wilson <wilson@specifixinc.com>
2612
2613 * MAINTAINERS: Change my e-mail address. Move to paper trail
2614 section.
2615
2616 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2617
2618 * MAINTAINERS (frv): New ISA entry.
2619
2620 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2621
2622 * frv-tdep.c (dis-asm.h): Include.
2623 * Makefile.in (frv-tdep.o): Update dependencies.
2624
2625 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2626
2627 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2628 Fix typo for high range of floating registers.
2629
2630 2003-09-09 David Carlton <carlton@kealia.com>
2631
2632 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2633 highpc initialization here out of scan_partial_symbols.
2634 (scan_partial_symbols): Restructure into a recursive version,
2635 calling add_partial_namespace and add_partial_enumeration when
2636 appropriate.
2637 (add_partial_namespace): New.
2638 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2639
2640 2003-09-09 Andrew Cagney <cagney@redhat.com>
2641
2642 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2643 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2644 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2645 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2646
2647 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2648 (rs6000_push_dummy_call): Set the "TOC" register.
2649
2650 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2651 methods "max_register_raw_size", "max_register_virtual_size" or
2652 "register_virtual_size".
2653
2654 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2655
2656 * MAINTAINERS: Update my e-mail address.
2657
2658 2003-09-09 Andrew Cagney <cagney@redhat.com>
2659
2660 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2661 (rs6000_push_dummy_call): Store the struct return address.
2662 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2663
2664 2003-09-09 Andrew Cagney <cagney@redhat.com>
2665
2666 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2667 "ppc_sysv_abi_push_arguments".
2668 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2669 "ppc_sysv_abi_push_arguments".
2670 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2671 instead of "push_arguments".
2672 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2673
2674 2003-09-09 Andrew Cagney <cagney@redhat.com>
2675
2676 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2677 instead of CALL_DUMMY_ADDRESS.
2678
2679 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2680
2681 * p-lang.c: Eliminate "register".
2682 * c-lang.c: Ditto.
2683 * expprint.c: Ditto.
2684 * f-lang.c: Ditto.
2685 * jv-lang.c: Ditto.
2686 * language.c: Ditto.
2687 * m2-lang.c: Ditto.
2688 * parse.c: Ditto.
2689 * scm-lang.c: Ditto.
2690 * objc-lang.c: Ditto.
2691
2692 2003-09-09 Nick Clifton <nickc@redhat.com>
2693
2694 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2695
2696 2003-09-04 Andrew Cagney <cagney@redhat.com>
2697
2698 * avr-tdep.c: Include "dis-asm.h".
2699 * cris-tdep.c: Include "dis-asm.h".
2700 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2701 instead of corresponding typedef.
2702 * h8300-tdep.c: Include "dis-asm.h".
2703 * ia64-tdep.c: Include "dis-asm.h".
2704 * i386-tdep.c: Include "dis-asm.h".
2705 (i386_print_insn): Use "struct disassemble_info" instead of
2706 corresponding typedef.
2707 * m68k-tdep.c: Include "dis-asm.h".
2708 * mcore-tdep.c: Include "dis-asm.h".
2709 * mips-tdep.c: Include "dis-asm.h".
2710 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2711 instead of corresponding typedef.
2712 * ns32k-tdep.c: Include "dis-asm.h".
2713 * s390-tdep.c: Include "dis-asm.h".
2714 * sparc-tdep.c: Include "dis-asm.h".
2715 * vax-tdep.c: Include "dis-asm.h".
2716 * v850-tdep.c: Include "dis-asm.h".
2717 * mn10300-tdep.c: Include "dis-asm.h".
2718 * rs6000-tdep.c: Include "dis-asm.h".
2719 * xstormy16-tdep.c: Include "dis-asm.h".
2720 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2721 print_insn_xstormy16.
2722 * Makefile.in (v850-tdep.o): Update dependencies.
2723 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2724 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2725 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2726 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2727 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2728 (gdbarch_h): Remove $(dis_asm_h).
2729 * disasm.c: Include "dis-asm.h".
2730 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2731 corresponding typedef.
2732 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2733 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2734 * gdbarch.sh: Do not include "dis-asm.h".
2735 (struct disassemble_info): Declare opaque.
2736 (TARGET_PRINT_INSN): Update declaration.
2737 * gdbarch.h, gdbarch.c: Re-generate.
2738
2739 2003-09-08 Andrew Cagney <cagney@redhat.com>
2740
2741 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2742 CALL_DUMMY_ADDRESS, change to a predicate.
2743 * gdbarch.h, gdbarch.c: Re-generate.
2744 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2745 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2746 * infcall.c (call_function_by_hand): Ditto.
2747 * sparc-tdep.c (sparc_push_return_address): Ditto.
2748 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2749 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2750 CALL_DUMMY_ADDRESS with entry_point_address.
2751 * v850-tdep.c (v850_push_return_address): Ditto.
2752 * s390-tdep.c (s390_push_return_address): Ditto.
2753 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2754 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2755 * mcore-tdep.c (mcore_push_return_address): Ditto.
2756 * cris-tdep.c (cris_push_return_address): Ditto.
2757 * arm-tdep.c (arm_push_return_address): Ditto.
2758
2759 2003-09-08 Andrew Cagney <cagney@redhat.com>
2760
2761 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2762 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2763 and REG_UNMODIFIED to REG_SAME_VALUE.
2764 (execute_cfa_program): Update.
2765 (dwarf2_frame_cache): Update. Initialize table to
2766 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2767 location.
2768 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2769
2770 2003-09-08 Andrew Cagney <cagney@redhat.com>
2771
2772 * gnu-nat.c: Remove "inline" function attribute.
2773 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2774
2775 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2776
2777 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2778 target.
2779
2780 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2781
2782 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2783 (frame_extra_info): Rename this struct to frv_unwind_cache.
2784 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2785 Add fields ``prev_sp'' and ``base''.
2786 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2787 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2788 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2789 Delete.
2790 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2791 Revise all callers. Fill in the unwind cache argument and make
2792 other adjustments to account for new frame mechanisms.
2793 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2794 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2795 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2796 (frv_frame_unwind, frv_frame_base): New structs.
2797 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2798 additional arguments expected by this method and adjust function
2799 body accordingly.
2800 (frv_gdbarch_init): Remove calls to the following functions:
2801 set_gdbarch_deprecated_init_frame_pc(),
2802 set_gdbarch_deprecated_saved_pc_after_call(),
2803 set_gdbarch_deprecated_frame_chain(),
2804 set_gdbarch_deprecated_frame_saved_pc(),
2805 set_gdbarch_deprecated_frame_init_saved_regs(),
2806 set_gdbarch_deprecated_push_arguments(),
2807 set_gdbarch_deprecated_push_return_address(),
2808 set_gdbarch_deprecated_pop_frame(),
2809 set_gdbarch_deprecated_call_dummy_words(),
2810 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2811 set_gdbarch_deprecated_init_extra_frame_info(),
2812 set_gdbarch_deprecated_dummy_write_sp(), and
2813 set_gdbarch_deprecated_pc_in_call_dummy().
2814 Add calls to the following functions:
2815 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2816 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2817 frame_base_set_default().
2818 * Makefile.in (frv-tdep.o): Update dependencies.
2819
2820 2003-09-09 Mark Kettenis <kettenis@gnu.org>
2821
2822 * dwarf2-frame.c (read_encoded_value): Add support for
2823 DW_EH_PE_aligned encoding.
2824
2825 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2826
2827 * infrun.c (normal_stop): Don't print a message if the inferior
2828 has exited.
2829
2830 2003-09-08 Jim Blandy <jimb@redhat.com>
2831
2832 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2833 * dbxread.c: #include "gdb_assert.h".
2834 (read_dbx_symtab): If the objfile has no .data section, use the
2835 section index for the .bss section instead.
2836
2837 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2838
2839 * frame.c (deprecated_safe_get_selected_frame): New function.
2840 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2841 * findvar.c (read_var_value): Call it.
2842
2843 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
2844
2845 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2846 (sh64-tdep.o): Add dependencies.
2847 * configure.tgt: Add FIXME to sh-*-linux*.
2848 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2849 (sh_gdbarch_init): Always set correct sh_show_regs function
2850 pointer. Call sh64_gdbarch_init() if machine type is sh5.
2851 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2852 * sh64-tdep.c: New file, containing all sh64 related code from
2853 sh-tdep.c.
2854 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2855 * config/sh/linux.mt (TDEPFILES): Ditto.
2856 * config/sh/nbsd.mt (TDEPFILES): Ditto.
2857 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2858 * config/sh/wince.mt (TDEPFILES): Ditto.
2859
2860 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2861
2862 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2863 (stop_wait_callback): Handle !lp->signalled also.
2864 (lin_lwp_has_pending, flush_callback): New functions.
2865 (lin_lwp_wait): Call flush_callback.
2866 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2867 (linux_proc_pending_signals): New function.
2868 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2869
2870 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2871
2872 From Nick Kelsey <nickk@ubicom.com>:
2873 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2874 when the stop PC is at the beginning of a function also.
2875
2876 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
2877
2878 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2879 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2880
2881 2003-09-06 Mark Kettenis <kettenis@gnu.org>
2882
2883 * sol-thread.c: Include "gdb_string.h".
2884
2885 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2886
2887 * gcore.c: Reorder include files in alphabetical order. Include
2888 "gdb_assert.h". Various coding style fixes.
2889 (derive_stack_segment, derive_heap_segment): Replace check for
2890 non-null BOTTOM and TOP with gdb_assert.
2891 (derive_heap_segment): Replace check for successful creation of
2892 ZERO with gdb_assert.
2893 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2894
2895 2003-09-04 Andrew Cagney <cagney@redhat.com>
2896
2897 * thread-db.c (verbose_dlsym): New function.
2898 (thread_db_load): Use verbose_dlsym
2899 (thread_db_new_objfile): Print that libthread_db was loaded, and
2900 that thread debugging was enabled.
2901
2902 2003-09-04 Andrew Cagney <cagney@redhat.com>
2903
2904 * configure.tgt: Add "mips64*-*-*" target. Delete
2905 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2906 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2907 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2908 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2909 mips*-sony-*, and mips64*-*-elf* targets.
2910 * config/mips/embedl.mt: Delete file.
2911 * config/mips/embedl64.mt: Delete file.
2912 * config/mips/mips.mt: Delete file.
2913 * config/mips/mips64.mt: Delete file.
2914 * config/mips/tm-embed.h: Delete file.
2915 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2916 * config/mips/embed64.mt: Delete out-of-date comment.
2917
2918 2003-09-04 Andrew Cagney <cagney@redhat.com>
2919
2920 * hppa-tdep.c (hppa_gdbarch_init): Set
2921 "have_nonsteppable_watchpoint".
2922 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2923 * mips-tdep.c (mips_dump_tdep): Do not print
2924 HAVE_NONSTEPPABLE_WATCHPOINT.
2925 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2926 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2927 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2928 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2929
2930 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2931
2932 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2933 unused code. Add comment.
2934
2935 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2936
2937 * breakpoint.c (watchpoint_check): Check for pc being in an
2938 epilogue if watchpoint frame couldn't be found.
2939
2940 2003-09-04 Andrew Cagney <cagney@redhat.com>
2941
2942 * Makefile.in: Re-generate all dependencies.
2943
2944 2003-09-03 Andrew Cagney <cagney@redhat.com>
2945
2946 * arch-utils.h (legacy_print_insn): Delete declaration.
2947 * arch-utils.c (legacy_print_insn): Delete function.
2948 * disasm.c (deprecated_tm_print_insn_info): Delete.
2949 (_initialize_disasm): Delete function, contained code initializing
2950 deprecated_tm_print_insn_info.
2951 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2952 (deprecated_tm_print_insn_info): Delete.
2953 (TARGET_PRINT_INSN): Do not provide a default.
2954 * gdbarch.h, gdbarch.c: Re-generate.
2955
2956 2003-09-03 Andrew Cagney <cagney@redhat.com>
2957
2958 * disasm.c (fprintf_disasm): New function.
2959 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2960 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2961 reverts 2003-08-14 change.
2962 (_initialize_disasm): Call "init_disassemble_info", instead of
2963 INIT_DISASSEMBLE_INFO_NO_ARCH.
2964
2965 2003-09-03 Michael Snyder <msnyder@redhat.com>
2966
2967 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2968
2969 2003-09-03 Andrew Cagney <cagney@redhat.com>
2970
2971 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2972 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2973 * symfile.c (syms_from_objfile): Update.
2974 (reread_symbols): `Update
2975 * exec.c (exec_file_attach): Update.
2976 (exec_file_attach): Update.
2977 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2978 2003-08-29 change.
2979 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2980
2981 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2982
2983 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2984 trad-frame.h.
2985 (arm_get_cache): Delete macro.
2986 (struct arm_prologue_cache): Update comments. Make saved_regs into
2987 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2988 to prev_sp.
2989 (thumb_scan_prologue): Update for cache changes. Don't call
2990 DEPRECATED_PC_IN_CALL_DUMMY.
2991 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2992 argument and use it in desperation search for our prologue. Do not
2993 search past the specified PC.
2994 (arm_make_prologue_cache): Simplify.
2995
2996 (arm_prologue_this_id, arm_prologue_prev_register)
2997 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2998 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2999 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3000 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3001 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3002
3003 (arm_frame_chain_valid, arm_find_callers_reg)
3004 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3005 (arm_pop_frame): Delete obsolete methods.
3006 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3007
3008 (arm_gdbarch_init): Update for new frame methods. Register prologue
3009 and sigtramp unwinders. Set the default frame base method.
3010
3011 * Makefile.in (arm-tdep.o): Update dependencies.
3012 * varobj.c (find_frame_addr_in_frame_chain): Call
3013 get_frame_base_address.
3014 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3015
3016 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3017
3018 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3019 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3020 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3021 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3022 Take NEXT_FRAME and CACHE arguments. Call
3023 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3024 Set unwound_pc in CACHE instead of modifying the frame argument.
3025 Don't bother checking the frame type when looking for sigtramp
3026 frames.
3027 (arm_make_prologue_cache, arm_frame_chain)
3028 (arm_init_extra_frame_info): New functions.
3029
3030 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3031
3032 * arm-tdep.c (arm_get_cache): Define.
3033 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3034 unwound_sp, unwound_pc, and saved_regs.
3035 (thumb_scan_prologue): Take a cache instead of the frame.
3036 (arm_scan_prologue): Likewise.
3037 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3038 instead of a temporary frame.
3039 (arm_init_extra_frame_info): Allocate and use a cache.
3040 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3041
3042 2003-09-03 Andrew Cagney <cagney@redhat.com>
3043
3044 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3045 * config/mips/wince.mt (TM_CLIBS): Ditto.
3046 * config/sh/wince.mt (TM_CLIBS): Ditto.
3047 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3048 * config/sparc/sp64.mt (CC): Delete.
3049
3050 2003-09-03 Andrew Cagney <cagney@redhat.com>
3051
3052 * defs.h: Do not include "arch-utils.h".
3053 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3054 GDB_MULTI_ARCH_PURE.
3055 * configure.in (GDB_MULTI_ARCH): Do not define.
3056 * configure, config.in: Regenerate.
3057 * configure.tgt: Do not set variable "gdb_multi_arch".
3058 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3059 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3060 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3061 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3062 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3063 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3064 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3065 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3066 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3067 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3068 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3069 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3070 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3071 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3072 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3073 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3074 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3075 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
3076
3077 2003-08-30 Michael Chastain <mec@shout.net>
3078
3079 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3080 * config/m68k/nm-hp300hpux.h: Delete.
3081 * config/m68k/tm-hp300hpux.h: Delete.
3082 * config/m68k/xm-hp300hpux.h: Delete.
3083 * config/m68k/xm-hp300bsd.h: Delete.
3084 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3085 tm-hp300hpux.h, xm-hp300hpux.h.
3086 * somsolib.c: Remove comment about hp300 shared libraries.
3087
3088 2003-08-31 Mark Kettenis <kettenis@gnu.org>
3089
3090 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3091 Only define PTRACE_GET_THREAD_AREA is not already defined.
3092 Various style fixes in code and comments and some additional
3093 spelling fixes in comments. Move after functions dealing with
3094 debug registers.
3095 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3096 Fix coding-style.
3097
3098 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3099 frame_unwind_register_unsigned instead of
3100 frame_unwind_unsigned_register.
3101
3102 2003-08-30 Mark Kettenis <kettenis@gnu.org>
3103
3104 * configure.in: Search for gethostbyname in libnsl.
3105 * configure: Regenerated.
3106
3107 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3108
3109 * configure.in: Remove redundant AC_MSG_RESULT in check for
3110 uintptr_t in stdint.h.
3111 * configure: Regenerated.
3112
3113 * amd64-nat.h (struct regcache): Add opaque declaration.
3114
3115 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3116 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3117 Change "register array" to "register cache" in comments.
3118 (x86_64_linux_gregset64_reg_offset): New variable.
3119 (GETREGS_SUPPLIES): Remove macro.
3120 (supply_gregset): Call amd64_supply_native_gregset instead of
3121 x86_64_linux_supply_gregset.
3122 (fill_gregset): Rename `regno' to `regnum'. Call
3123 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3124 (store_regs): Rename `regno' to `regnum'.
3125 (store_fpregs): Rename `regno' to `regnum'.
3126 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3127 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3128 Reorganize function a bit.
3129 (store_inferior_registers): Rename `regno' to `regnum'. Use
3130 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3131 Reorganize function a bit.
3132 (_initialize_x86_64_linux_nat): New function.
3133 * config/i386/x86-64linux.mh.
3134
3135 2003-08-29 Andrew Cagney <cagney@redhat.com>
3136
3137 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3138 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3139 (target_remove_watchpoint): Delete macro.
3140 (target_insert_watchpoint): Delete macro.
3141 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3142 (remote_mips_stopped_by_watchpoint): Delete declaration.
3143 (remote_mips_remove_watchpoint): Delete declaration.
3144 (remote_mips_set_watchpoint): Delete declaration.
3145 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3146 * remote-mips.c (_initialize_remote_mips): Set
3147 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3148 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3149 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3150 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3151 (mips_stopped_by_watchpoint): Rename
3152 remote_mips_stopped_by_watchpoint.
3153 (mips_can_hardware_watchpoint): Rename
3154 remote_mips_can_use_hardware_watchpoint, update function
3155 signature.
3156
3157 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3158
3159 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3160 USER_DS. We haven't given them a register number yet.
3161
3162 * amd64-nat.h: New file.
3163 * amd64-nat.c: New file.
3164 * amd64fbsd-nat.c: Include "amd64-nat.h".
3165 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3166 (amd64fbsd32_r_reg_offset): New variable.
3167 (supply_gregset): Simply call amd64_supply_native_gregset.
3168 (fill_gregset): Rename `regno' to `regnum'. Simply call
3169 amd64_collect_native_gregset.
3170 (fill_fpregset): Rename `regno' to `regnum'.
3171 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3172 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3173 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3174 `fpregset_t'. Call amd64_supply_native_gregset instead of
3175 supply_gregset. Call x86_64_supply_fxsave instead of
3176 supply_fpregset.
3177 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3178 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3179 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3180 `fpregset_t'. Call amd64_collect_native_gregset instead of
3181 fill_gregset. Call x86_64_collect_fxsave instead of
3182 fill_fpregset.
3183 (_initialize_am64fbsd_nat): Initialize
3184 amd64_native_gregset32_reg_offset and
3185 amd64_native_gregset64_reg_offset.
3186 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3187
3188 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3189 null pointer. Fix typo in comment.
3190
3191 * regcache.c (supply_register): Reimplement to call
3192 regcache_raw_supply.
3193 (regcache_collect): Reimplement by calling regcache_raw_collect.
3194
3195 2003-08-28 Mark Kettenis <kettenis@gnu.org>
3196
3197 * regcache.c (register_buffer): Consitify first argument.
3198 (regcache_raw_supply, regcache_raw_collect): New
3199 functions.
3200
3201 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3202
3203 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3204 by Nathan J. Williams.
3205
3206 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3207
3208 * lin-lwp.c (wait_lwp): New function, copied from
3209 stop_wait_callback. Clean up.
3210 (stop_wait_callback): Use wait_lwp.
3211
3212 2003-08-28 Andrew Cagney <cagney@redhat.com>
3213
3214 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3215 flavour and disassembler options.
3216 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3217 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3218 deprecated_tm_print_insn_info.
3219
3220 2003-08-27 Andrew Cagney <cagney@redhat.com>
3221
3222 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3223 Use target_read_memory.
3224 (s390_get_frame_info): Update. Do not reference
3225 deprecated_tm_print_insn_info.
3226 (s390_check_function_end, s390_is_sigreturn): Ditto.
3227
3228 2003-08-27 Andrew Cagney <cagney@redhat.com>
3229
3230 * Makefile.in (cris-tdep.o): Update dependencies.
3231 * cris-tdep.c: Include "gdb_assert.h".
3232 (cris_gdbarch_init): Set print_insn.
3233 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3234 (cris_delayed_get_disassembler): Simplify, directly call the
3235 disassembler returned by cris_get_disassembler.
3236 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3237 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3238 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3239 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3240 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3241 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3242 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3243 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3244 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3245 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3246 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3247 (gdb_print_insn_sparc): Delete function.
3248 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3249 deprecated_tm_print_insn_info.
3250 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3251 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3252 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3253 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3254 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3255 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3256 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3257 (s390_gdbarch_init): Set print_insn.
3258
3259 2003-08-27 Andrew Cagney <cagney@redhat.com>
3260
3261 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3262 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3263 * infcall.c (call_function_by_hand): Convert the entry point
3264 address into a code address.
3265
3266 2003-08-27 Andrew Cagney <cagney@redhat.com>
3267
3268 * dsrec.c: Include "gdb_string.h".
3269 * Makefile.in (dsrec.o): Update dependencies.
3270
3271 2003-08-27 Michael Chastain <mec@shout.net>
3272
3273 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3274
3275 2003-08-27 Andrew Cagney <cagney@redhat.com>
3276
3277 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3278 (alpha_osf1_init_abi): Do not set call_dummy_address.
3279
3280 2003-08-27 David Carlton <carlton@kealia.com>
3281
3282 From Randolph Chung <tausq@debian.org>:
3283 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3284 compiles with -Wformat-nonliteral -Werror.
3285
3286 2003-08-26 Jim Blandy <jimb@redhat.com>
3287
3288 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3289 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3290 bfd_lookup_symbol, since we only want symbols in code sections.
3291 (look_for_base): Pass zero as the SECT_FLAGS argument to
3292 bfd_lookup_symbol, since we're not concerned about which section
3293 the symbol is in.
3294
3295 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3296
3297 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3298 we are frameless or the return address register is already known.
3299
3300 2003-08-26 Andrew Cagney <cagney@redhat.com>
3301
3302 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3303 in size. Add comments.
3304
3305 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3306
3307 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3308 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3309
3310 2003-08-26 Jason Merrill <jason@redhat.com>
3311
3312 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3313 case out of #ifdef MIPS block.
3314
3315 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
3316
3317 PR java/1322
3318 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3319 available before calling SECT_OFF_TEXT.
3320 * PROBLEMS: Remove description of java/1322.
3321
3322 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3323
3324 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3325 bof, and nat0-nat127 as pseudo-registers.
3326 (ia64_frame_cache): New struct used to cache frame info.
3327 (ia64_register_reggroup_p): New routine used to override default
3328 register grouping so registers without names are still saved and
3329 restored.
3330 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3331 pseudo values.
3332 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3333 (ia64_pseudo_register_write): New routine to write pseudo-registers.
3334 (ia64_alloc_frame_cache): New routine to create a new
3335 ia64_frame_cache.
3336 (examine_prologue): Change prototype to add next_frame pointer.
3337 Assume frameless until otherwise proven. Verify that the cfm for
3338 current frame matches the cfm that should occur for the prologues
3339 alloc insn and if equal, mark as not frameless. At end of routine,
3340 if not frameless, calculate registers for the previous frame and store
3341 in the cache, if a cache is provided.
3342 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3343 and pass 0 for next_frame.
3344 (ia64_store_return_value): Change to use convert_typed_floating()
3345 instead of calling ia64_convert_to_raw().
3346 (ia64_extract_return_value): Change to use convert_typed_floating()
3347 instead of calling ia64_convert_to_virtual().
3348 (ia64_frame_cache): New routine to support new frame model.
3349 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3350 (ia64_frame_sniffer): Ditto.
3351 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3352 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3353 (ia64_sigtramp_frame_prev_register): Ditto.
3354 (ia64_sigtramp_frame_sniffer): Ditto.
3355 (ia64_frame_base_address): Ditto.
3356 (ia64_extract_struct_value_address): Change to issue error message.
3357 (ia64_frame_align): New routine to align sp.
3358 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3359 (ia64_push_arguments): Removed. Logic moved to
3360 ia64_push_dummy_call().
3361 (ia64_push_return_address): Ditto.
3362 (ia64_unwind_dummy_id): New function.
3363 (ia64_unwind_pc): Ditto.
3364 (ia64_convert_register_p): Ditto.
3365 (ia64_register_to_value): Ditto.
3366 (ia64_value_to_register): Ditto.
3367 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3368 (ia64_register_byte, ia64_register_raw_size): Ditto.
3369 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3370 (ia64_saved_pc_after_call): Ditto.
3371 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3372 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3373 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3374 (ia64_register_convert_to_raw): Ditto.
3375 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3376 (ia64_init_extra_frame_info): Ditto.
3377 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3378 (ia64_gdbarch_init): Remove registering of deprecated functions that
3379 are no longer used. Add registration of new gdbarch functions.
3380 Remove registering deprecated_write_sp. Replace
3381 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3382 Delete set_gdbarch_deprecated_register_convertible(),
3383 set_gdbarch_deprecated_register_convert_to_virtual(), and
3384 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3385 set_gdbarch_deprecated_register_size(),
3386 set_gdbarch_deprecated_register_bytes(),
3387 set_gdbarch_pcregnum(),
3388 set_gdbarch_deprecated_register_byte(),
3389 set_gdbarch_deprecated_register_raw_size(),
3390 set_gdbarch_deprecated_max_register_raw_size(),
3391 set_gdbarch_deprecated_register_virtual_size(),
3392 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3393 Replace set_gdbarch_deprecated_extract_return_value() with
3394 set_gdbarch_extract_return_value(). Remove calls to:
3395 set_gdbarch_deprecated_saved_pc_after_call();
3396 set_gdbarch_deprecated_frame_chain(),
3397 set_gdbarch_deprecated_frame_saved_pc(),
3398 set_gdbarch_deprecated_frame_init_saved_regs(),
3399 set_gdbarch_deprecated_get_saved_register(),
3400 set_gdbarch_deprecated_call_dummy_words(),
3401 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3402 set_gdbarch_deprecated_init_extra_frame_info(),
3403 set_gdbarch_deprecated_frame_args_address(),
3404 set_gdbarch_deprecated_frame_locals_address(),
3405 and set_gdbarch_deprecated_dummy_write_sp().
3406 Add set_gdbarch_convert_register_p(),
3407 set_gdbarch_register_to_value(),
3408 set_gdbarch_value_to_register(),
3409 set_gdbarch_push_dummy_call(),
3410 set_gdbarch_frame_align(),
3411 set_gdbarch_unwind_dummy_id(),
3412 set_gdbarch_unwind_pc(),
3413 frame_unwind_append_sniffer(),
3414 frame_unwind_append_sniffer(),
3415 and frame_base_set_default().
3416
3417 2003-08-25 Chris Demetriou <cgd@broadcom.com>
3418
3419 * configure.tgt: Document need for special "mipsisa64" handling.
3420 (mipsisa64*-*-linux64): Handle as target linux64.
3421 (mipsisa64*-*-*): Handle as target embed64.
3422
3423 2003-08-18 Michael Chastain <mec@shout.net>
3424
3425 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3426 objfile bug.
3427
3428 2003-08-24 Mark Kettenis <kettenis@gnu.org>
3429
3430 * i387-tdep.h: Update copyright date.
3431 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3432
3433 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3434 CFLAGS games to reflect reality.
3435
3436 2003-08-24 Andrew Cagney <cagney@redhat.com>
3437
3438 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3439 GDB_MULTI_ARCH is always non-zero.
3440 * osabi.c (_initialize_gdb_osabi): Ditto.
3441 (gdbarch_init_osabi): Ditto.
3442 * sparc-tdep.c: Ditto for #if code.
3443
3444 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3445
3446 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3447 Update comments.
3448 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3449 comments.
3450 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3451 x86_64_supply_fxsave.
3452 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3453 x86_64_supply_fxsave.
3454 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3455 x86_64_supply_fxsave.
3456
3457 2003-08-23 Andreas Jaeger <aj@suse.de>
3458
3459 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3460 i387_supply_fxsave.
3461
3462 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3463
3464 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3465 i387_supply_register.
3466 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3467 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3468 i387_supply_fsave.
3469 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3470 i387_supply_fxsave.
3471 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3472 i387_supply_fsave.
3473 * i386bsd-nat.c (supply_fpregset): Adjust call to
3474 i387_supply_fsave.
3475 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3476 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3477 supply_fpregset.
3478 (store_inferior_registers): Remove extraneous whitespace. Call
3479 i387_fill_fsave instead of fill_fpregset.
3480 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3481 (supply_fpregset): Likewise.
3482 * i386v4-nat.c (supply_fpregset): Adjust call to
3483 i387_supply_fsave.
3484 * i386-interix-nat.c (supply_fpregset): Adjust call to
3485 i387_supply_fsave.
3486 * i386-linux-nat.c (supply_fpregset): Adjust call to
3487 i387_supply_fsave.
3488 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3489 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3490 i387supply_fsave and i387_supply_fxsave.
3491 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3492 Incorporate code from `i387_supply_register.
3493 (i387_supply_register): Remove.
3494 (i387_supply_fxsave): Add `regnum' argument.
3495 Update comments.
3496 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3497 prototype.
3498 (i387_supply_register): remove prototype.
3499 Update comments.
3500
3501 2003-08-22 Michael Chastain <mec@shout.net>
3502
3503 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3504 Add lines for files in gdb/testsuite/gdb.cp/* that are
3505 still not 8.3 unique.
3506
3507 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
3508
3509 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3510 TYPE_VPTR_FIELDNO is valid.
3511
3512 2003-08-19 Mark Kettenis <kettenis@gnu.org>
3513
3514 * utils.c (set_width_command): Remove prototypes.
3515 (set_screen_size): New prototype.
3516 (init_page_info): Simplify by fetching the screen size from
3517 Readline. Call set_screen_size.
3518 (set_screen_size): New function.
3519 (set_width): Add missing whitespace in comment.
3520 (set_width_command): Call set_screen_size.
3521 (set_height_command): New function.
3522 (initialize_utils): Fix formatting. Make "set height" command
3523 call set_height_command. Remove redundant code that turns off
3524 pagination if output isn't a terminal. Remove redundant call to
3525 set_width_command.
3526
3527 2003-08-22 Mark Kettenis <kettenis@gnu.org>
3528
3529 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3530 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3531 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3532 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3533 `case' keyword.
3534 (sparc64_register_info): Give the reister with number
3535 SPARC64_STATE_REGNUM a name.
3536 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3537 %asi and %ccr.
3538 (sparc64_push_dummy_call): Take BIAS into account when checking
3539 stcak alignment.
3540 (sparc_software_single_step): Remove assertions that check whether
3541 NPC and NNPC were zero.
3542 (sparc_supply_rwindow): Make public. Merge functionality with
3543 sparc64_supply_rwindow.
3544 (sparc_fill_rwindow): Make public. Merge functionality with
3545 sparc64_fill_rwindow.
3546 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3547 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3548 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3549 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3550 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3551
3552 * reggroups.c: Add whitespace after declarations of local
3553 variables in functions.
3554
3555 2003-08-21 Michael Chastain <mec@shout.net>
3556
3557 * gdbtypes.h: Change array bound type from an int to enum.
3558
3559 2003-08-21 Andrew Cagney <cagney@redhat.com>
3560
3561 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3562 * config/sparc/tm-sparc.h: Ditto.
3563 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3564 unconditionally.
3565 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3566
3567 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3568
3569 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3570 (register_objfile_data, set_objfile_data, objfile_data): New
3571 prototypes.
3572 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3573 prototypes.
3574 (allocate_objfile): Call objfile_alloc_data.
3575 (free_objfile): Call objfile_free_data.
3576 (struct objfile_data): New.
3577 (struct objfile_data_registration): New.
3578 (struct objfile_data_registry): New.
3579 (objfile_data_registry): New variable.
3580 (register_objfile_data): New function.
3581 (objfile_alloc_data, objfile_free_data): New functions.
3582 (set_objfile_data, objfile_data): New functions.
3583 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3584 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3585 (_initialize_dwarf2_frame): New function and prototype.
3586
3587 2003-08-21 Andrew Cagney <cagney@redhat.com>
3588
3589 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3590 a specific architecture.
3591 * arch-utils.h (set_architecture_from_arch_mach): Delete
3592 declaration.
3593 (target_architecture_hook): Delete declaration.
3594 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3595 (default_float_format): Assume GDB_MULTI_ARCH.
3596 (default_double_format): Assume GDB_MULTI_ARCH.
3597 (set_endian_from_file): Delete function.
3598 (arch_ok): Delete function.
3599 (set_arch): Delete function.
3600 (set_architecture_from_arch_mach): Delete function.
3601 (set_architecture_from_file): Delete function.
3602 (set_architecture): Assume GDB_MULTI_ARCH.
3603 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3604
3605 2003-08-21 Mark Kettenis <kettenis@gnu.org>
3606
3607 Rewrite FreeBSD/sparc64 native configuration.
3608 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3609 * sparc64fbsd-nat.c: New file.
3610 * sparc64fbsd-tdep.c: New file.
3611 * sparc64-tdep.c sparc64-tdep.h: New files.
3612 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3613 sparc64fbsd-tdep.o): New dependencies.
3614 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3615 and sparc64fbsd-tdep.c.
3616 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3617 * config/sparc/fbsd.mh: Remove copyright notice.
3618 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3619 sparcbsd-nat.o.
3620 * config/sparc/fbsd.mt: Remove copyright notice.
3621 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3622 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3623 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3624 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3625 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3626 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3627 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3628 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3629 "sparc/tm-sp64.h".
3630 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3631 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3632
3633 2003-08-21 Michael Chastain <mec@shout.net>
3634
3635 * symtab.h: Add doco on the space critical structures and
3636 some measurements of space usage.
3637
3638 2003-08-21 Michael Snyder <msnyder@redhat.com>
3639
3640 * tracepoint.c (trace_dump_command): Trace break address
3641 is subject to DECR_PC_AFTER_BREAK.
3642 (set_traceframe_context): Make "trace_line" an int.
3643 Fixes suggested by Mark Newman <mark.newman@lmco.com>
3644
3645 2003-08-20 Michael Snyder <msnyder@redhat.com>
3646
3647 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
3648 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3649 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
3650 argument passing.
3651 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
3652 functions, replace sh_push_dummy_call.
3653 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3654
3655 2003-08-20 Michael Chastain <mec@shout.net>
3656
3657 * gdbtypes.h (struct main_type): Rearrange to save space.
3658
3659 2003-08-20 Michael Snyder <msnyder@redhat.com>
3660
3661 * trad-frame.c: Comment typo fix.
3662
3663 2003-08-20 Michael Snyder <msnyder@redhat.com>
3664 Kevin Buettner <kevinb@redhat.com>
3665
3666 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3667 (frv_frame_init_saved_regs): Add declaration.
3668 (frame_extra_info): Add new field ``saved_regs''.
3669 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3670 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3671 Update frame related code.
3672 (frv_extract_struct_value_address): Adjust formatting.
3673 * Makefile.in (frv-tdep.o): Update dependencies.
3674 * config/frv/tm-frv.h (target_insert_watchpoint)
3675 (target_remove_watchpoint, target_insert_hw_breakpoint)
3676 (target_remove_hw_breakpoint): Delete these macros.
3677 (remote_insert_watchpoint, remote_remove_watchpoint)
3678 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3679 these declarations.
3680
3681 2003-08-20 Michael Chastain <mec@shout.net>
3682
3683 * defs.h (ENUM_BITFIELD): New macro.
3684 * symtab.h (ENUM_BITFIELD): Use it.
3685 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3686
3687 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3688
3689 * MAINTAINERS (write after approval): Add myself.
3690
3691 2003-08-18 Andrew Cagney <cagney@redhat.com>
3692
3693 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3694 * gdbarch.h, gdbarch.c: Re-generate.
3695 * infcall.c (call_function_by_hand): Adjust the SP by
3696 frame_red_zone_size before allocating any stack space.
3697 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3698 * x86-64-tdep.c (x86_64_frame_align): New function.
3699 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3700
3701 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3702 Remove code adjusting SP so that it skips over the Red Zone.
3703
3704 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3705
3706 * NEWS (New native configurations): Mention FreeBSD/amd64.
3707
3708 2003-08-18 Andrew Cagney <cagney@redhat.com>
3709
3710 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3711 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3712 "m68k_frame_p".
3713 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3714
3715 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3716
3717 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3718
3719 2003-08-18 Michal Ludvig <mludvig@suse.cz>
3720
3721 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3722 Define.
3723 * i386-linux-nat.c: Include "linux-nat.h".
3724 (child_post_startup_inferior): New function.
3725
3726 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3727
3728 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3729 at the start of a frameless function. This probably fixes PR
3730 backtrace/1338.
3731
3732 2003-08-17 Michael Chastain <mec@shout.net>
3733
3734 * symfile.c (find_sym_fns): Remove special case for apollo target.
3735
3736 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3737
3738 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3739 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3740 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3741 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3742 (linux_supports_tracevforkdone): New function.
3743 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3744 TRACEVFORKDONE.
3745 (child_follow_fork): Handle vfork.
3746 (linux_handle_extended_wait): Likewise. Also handle exec.
3747 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3748 * NEWS: Mention fork tracing.
3749
3750 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3751
3752 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3753
3754 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3755
3756 * Makefile.in (i386-linux-nat.o): Update dependencies.
3757 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3758 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3759 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3760 * i386-linux-nat.c: Include "linux-nat.h".
3761 (child_post_startup_inferior): New function.
3762 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3763 * infptrace.c (kill_inferior): Wrap in #ifdef.
3764 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3765 attaching to each LWP.
3766 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3767 (init_lin_lwp_ops): Fill in some more operations.
3768 * linux-nat.h (linux_enable_event_reporting)
3769 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3770 prototypes.
3771 * linux-nat.c (linux_enable_event_reporting): New function.
3772 (child_post_attach, linux_child_post_startup_inferior)
3773 (child_post_startup_inferior, child_follow_fork)
3774 (linux_handle_extended_wait, kill_inferior): New functions.
3775
3776 2003-08-16 Andrew Cagney <cagney@redhat.com>
3777
3778 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3779 * gdbarch.h, gdbarch.c: Re-generate.
3780
3781 2003-08-16 Mark Kettenis <kettenis@gnu.org>
3782
3783 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3784
3785 2003-08-16 Andrew Cagney <cagney@redhat.com>
3786
3787 * NEWS: Mention that "set prompt-escape-char" was deleted.
3788 * top.c (get_prompt_1): Delete function.
3789 (gdb_prompt_escape):
3790 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3791 prompt-escape-char" command.
3792 (MAX_PROMPT_SIZE): Delete macro.
3793 (get_prompt): Simplify, do not call get_prompt_1.
3794
3795 2003-08-16 Andrew Cagney <cagney@redhat.com>
3796
3797 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3798 -Werror. -Wformat-nonliteral problems.
3799
3800 2003-08-15 J. Brobecker <brobecker@gnat.com>
3801
3802 Further multiarching work mostly for hppa64-*-hpux11:
3803 * hppa-tdep.h: New file.
3804 * hppa-tdep.c: #include hppa-tdep.c.
3805 (hppa32_num_regs): Renamed from hppa_num_regs.
3806 (hppa64_num_regs): New constant.
3807 (hppa64_call_dummy_breakpoint_offset): New constant.
3808 (hppa32_call_dummy_length): New constant.
3809 (hppa64_call_dummy_length): New constant.
3810 (hppa32_stack_align): Make name 32bit explicit.
3811 (hppa32_register_virtual_type): Likewise.
3812 (hppa32_extract_return_value): Likewise.
3813 (hppa32_use_struct_convention): Likewise.
3814 (hppa32_store_return_value): Likewise.
3815 (hppa64_register_virtual_type): New function.
3816 (hppa64_extract_return_value): New function.
3817 (hppa64_use_struct_convention): New function.
3818 (hppa64_store_return_value): New function.
3819 (hppa_frame_locals_address): Remove declaration, function does
3820 not exist anymore.
3821 (hppa_register_byte): Add support for PA64 ABI.
3822 (hppa_gdbarch_init): Add support for PA64 ABI.
3823 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3824 Make name 32bit explicit.
3825 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3826 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3827 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3828 (hppa64_hpux_frame_base_before_sigtramp): New function.
3829 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3830 * config/pa/tm-hppa64.h: Remove macros that are no longer
3831 necessary now that the gdbarch vector is properly setup.
3832 Transform some macros into function calls. Some minor cleanup.
3833 * config/pa/tm-hppah.h: Update function calls in macros
3834 following the function renaming in hppa-hpux-tdep.c.
3835 * Makefile.in (hppa_tdep_h): New variable.
3836 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3837
3838 2003-08-14 Michael Snyder <msnyder@redhat.com>
3839
3840 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3841
3842 2003-08-13 J. Brobecker <brobecker@gnat.com>
3843
3844 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3845 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3846 routine.
3847
3848 2003-08-13 Michael Snyder <msnyder@redhat.com>
3849
3850 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3851 (frv_saved_pc_after_call): Use deprecated ftype.
3852 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3853 (frv_remote_translate_xfer_address): Remove.
3854 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3855
3856 2003-08-13 J. Brobecker <brobecker@gnat.com>
3857
3858 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3859 initialization after the common gdbarch initialization, not before.
3860
3861 2003-08-13 J. Brobecker <brobecker@gnat.com>
3862
3863 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3864 (ADDR_BITS_REMOVE): Remove, redundant.
3865
3866 2003-08-13 J. Brobecker <brobecker@gnat.com>
3867
3868 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3869 gdbarch method to clear the 2 low bits of text addresses.
3870
3871 2003-08-12 Andrew Cagney <cagney@redhat.com>
3872
3873 * Makefile.in (dsrec.o): Update dependencies.
3874 * dsrec.c: Include "gdb_assert.h".
3875 (make_srec): Use snprintf instead of sprintf, use a literal format
3876 string.
3877
3878 2003-08-12 Andrew Cagney <cagney@redhat.com>
3879
3880 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3881 FRAME_OBSTACK_ZALLOC.
3882
3883 2003-08-12 Kevin Buettner <kevinb@redhat.com>
3884
3885 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3886 SSE registers.
3887
3888 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3889
3890 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3891 amd64fbsd_sc_reg_offset): Add extern declarations.
3892 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3893 declarations.
3894
3895 2003-08-11 Ben Elliston <bje@wasabisystems.com>
3896
3897 * MAINTAINERS (write after approval): Update my mail address.
3898
3899 2003-08-10 Andrew Cagney <cagney@redhat.com>
3900
3901 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3902
3903 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3904
3905 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3906 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3907 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3908 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3909 i386bsd_sc_reg_offset): Add extern declarations.
3910 * i386obsd-nat.c: Include "i386-tdep.h"
3911 (_initialize_i386obsd_nat): Remove extern declarations.
3912 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3913 declarations.
3914 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3915 declarations.
3916
3917 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3918 instead of frame_read_register.
3919 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3920 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3921 SP_REGNUM.
3922 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3923 instead of frame_unwind_unsigned_register. Use
3924 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3925 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3926 instead of read_register. Use builtin_type_void_data_ptr instead
3927 of builtin_type_void_func_ptr when extracting the address of the
3928 jmp_buf.
3929 (i386_extract_return_value, i386_store_return_value,
3930 i386_pseudo_register_read, i386_pseudo_register_write): Use
3931 register_size instead REGISTER_RAW_SIZE.
3932
3933 2003-08-10 Andrew Cagney <cagney@redhat.com>
3934
3935 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3936 sprintf. Make "name" constant.
3937
3938 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3939
3940 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3941 instead of frame_read_register.
3942 (i387_print_float_info): Use get_frame_register and
3943 get_frame_register_unsigned instead of frame_register_read.
3944
3945 * i386fbsd-nat.c: Include "i386-tdep.h".
3946 (child_resume): Make `eflags' an ULONGEST. Use
3947 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3948 instead of register_read and register_write.
3949
3950 * i386bsd-nat.c (fetch_inferior_registers,
3951 store_inferior_registers): Don't use && at the end of a line.
3952 (_initialize_i386bsd_nat): Fix typo.
3953
3954 * frame.c (_initialize_frame): Add missing backslash.
3955
3956 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3957 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3958 and supply_register instead of manipulating the register buffer
3959 directly.
3960
3961 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3962 * config/i386/nm-i386sol2.h
3963 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3964
3965 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3966 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3967 instructions that GCC likes to mingle into the prologue. Fixes
3968 gdb/1253 and gdb/1255.
3969
3970 2003-08-09 Andrew Cagney <cagney@redhat.com>
3971
3972 Fix GDB PR cli/926.
3973 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3974 * command.h (add_setshow_uinteger_cmd): Declare.
3975 * frame.c (set_backtrace_cmd): New function.
3976 (show_backtrace_cmd): New function.
3977 * frame.c (_initialize_frame): Replace "set/show
3978 backtrace-below-main" with "set/show backtrace past-main". Add
3979 command "set/show backtrace limit".
3980 (backtrace_past_main): Rename "backtrace_below_main".
3981 (backtrace_limit): New variable.
3982 (get_prev_frame): Update. Check the backtrace_limit.
3983
3984 2003-08-09 Andrew Cagney <cagney@redhat.com>
3985
3986 * defs.h (xstrprintf): Declare.
3987 * utils.c (xstrprintf): New function.
3988 * breakpoint.c (insert_breakpoints): Replace sprintf and
3989 non-literal format strings, with xstrprintf and cleanups.
3990 (delete_breakpoint,breakpoint_re_set): Ditto.
3991 (commands_command, insert_breakpoints): Ditto.
3992 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3993 (break_at_finish_command_1): Ditto.
3994
3995 2003-08-09 Andrew Cagney <cagney@redhat.com>
3996
3997 * MAINTAINERS (language support): List Adam Fedor as Objective C
3998 maintainer.
3999
4000 2003-08-08 J. Brobecker <brobecker@gnat.com>
4001
4002 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4003 are now multiarched.
4004
4005 2003-08-08 J. Brobecker <brobecker@gnat.com>
4006
4007 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4008 longer necessary now that hppa64 is partially multiarch'ed.
4009
4010 2003-08-08 Andrew Cagney <cagney@redhat.com>
4011
4012 * interps.c (interp_set): Check for a NULL "old_interp".
4013
4014 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4015
4016 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4017 (install-only): Support DESTDIR.
4018 (uninstall): Likewise.
4019 (install-gdbtk): Likewise.
4020
4021 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
4022
4023 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4024 contains something meaningful at all times.
4025
4026 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
4027
4028 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
4029
4030 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4031
4032 * MAINTAINERS (write after approval): Added self.
4033
4034 2003-08-07 Andrew Cagney <cagney@redhat.com>
4035
4036 * inferior.h (AT_SYMBOL): Define.
4037 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4038 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4039 * mips-tdep.c (mips_call_dummy_address): Delete function.
4040 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4041 set call_dummy_address.
4042
4043 2003-08-07 Andrew Cagney <cagney@redhat.com>
4044
4045 * language.c (op_error): Delete function.
4046 (binop_type_check): Delete function.
4047 * language.h (type_op_error, range_op_error): Delete macros.
4048 (op_error): Delete declaration.
4049
4050 2003-08-07 Andrew Cagney <cagney@redhat.com>
4051
4052 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4053
4054 2003-08-07 Michal Ludvig <mludvig@suse.cz>
4055
4056 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
4057 (x86_64_push_arguments): Skip the red zone.
4058
4059 2003-08-05 Andrew Cagney <cagney@redhat.com>
4060
4061 * reggroups.c (reggroup_next): Check for the final entry.
4062
4063 2003-08-04 Andrew Cagney <cagney@redhat.com>
4064
4065 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4066 * cli/cli-script.c (define_command): Call query directly, instead
4067 of passing it a buffer.
4068 * ocd.c (ocd_error): Pass error a constant format string.
4069 * remote-mips.c (mips_error): Use fputs_filtered.
4070
4071 * solib-svr4.c (_initialize_svr4_solib): Update
4072 register_gdbarch_data call.
4073 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4074
4075 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4076 (register_gdbarch_data): Delete "free" parameter. Update
4077 comments.
4078 * gdbarch.h, gdbarch.c: Re-generate.
4079 * reggroups.c (_initialize_reggroup): Update.
4080 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4081 * frame-base.c (_initialize_frame_base): Update.
4082 * frame-unwind.c (_initialize_frame_unwind): Update.
4083 * user-regs.c (_initialize_user_regs): Update.
4084 * remote.c (_initialize_remote): Update.
4085 * regcache.c (_initialize_regcache): Update.
4086
4087 * regcache.c (xfree_regcache_descr): Delete function.
4088 (_initialize_regcache): Update call to register_gdbarch_data.
4089 (init_regcache_descr, init_legacy_regcache_descr): Use
4090 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4091
4092 * remote.c (free_remote_state): Delete function.
4093 (_initialize_remote): Update register_gdbarch_data.
4094 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4095 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4096
4097 2003-08-04 Andrew Cagney <cagney@redhat.com>
4098
4099 * reggroups.c (struct reggroup_el): Define.
4100 (struct reggroups): Delete field "nr_group". Replace array
4101 "group" with a "first" to "last" linked list.
4102 (reggroups_init): Update. Allocate using gdbarch's obstack.
4103 (reggroups_free): Delete function.
4104 (add_group): Update. Add "el" parameter.
4105 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4106 (default_groups): Update.
4107 (reggroup_next): Replace reggroups.
4108 (reggroups_dump): Update.
4109 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4110 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4111 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4112
4113 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
4114
4115 * Makefile.in (tui-interp.o): Update dependencies.
4116
4117 2003-08-04 David Carlton <carlton@kealia.com>
4118
4119 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4120 to internal_error call.
4121 * source.c (forward_search_command): Add "%s" format argument.
4122 (reverse_search_command): Ditto.
4123 * top.c (quit_confirm): Ditto.
4124 * cli/cli-setshow.c (do_setshow_command): Ditto.
4125 * cp-valprint.c (cp_print_class_method): Replace
4126 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4127 (cp_print_class_member): Ditto.
4128 * event-top.c (command_line_handler): Ditto.
4129 * linux-proc.c (linux_info_proc_cmd): Ditto.
4130 * p-typeprint.c (pascal_type_print_base): Ditto.
4131 * p-valprint.c (pascal_object_print_class_method): Ditto.
4132 (pascal_object_print_class_member): Ditto.
4133 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4134 * remote.c (remote_cisco_section_offsets): Ditto.
4135 * top.c (command_line_input): Ditto.
4136 * utils.c (vwarning,error_stream,quit): Ditto.
4137 * valprint.c (print_floating,print_binary_chars)
4138 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4139
4140 2003-08-04 Andrew Cagney <cagney@redhat.com>
4141
4142 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4143
4144 2003-08-02 Andrew Cagney <cagney@redhat.com>
4145
4146 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4147 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4148 amd64fbsd-nat.c.
4149
4150 2003-08-02 Andrew Cagney <cagney@redhat.com>
4151
4152 * Makefile.in: Update all dependencies and definitions.
4153
4154 2003-08-02 Adam Fedor <fedor@gnu.org>
4155
4156 * linespec.c (is_objc_method_format): New function
4157 (decode_line_1, locate_first_half): Use it.
4158 Fixes PR objc/1298
4159
4160 2003-08-01 Andrew Cagney <cagney@redhat.com>
4161
4162 * NEWS: Mention that m32r is multi-arch.
4163 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4164 * configure.tgt: Recognize m32r-*-*.
4165 * config/m32r/tm-m32r.h: Delete file.
4166 * config/m32r/m32r.mt: New file.
4167 * m32r-rom.c (m32r_upload_command): Use hostent only when
4168 gethostname succeeds, in order to avoid a compilation
4169 warning.
4170 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4171 compiler warning.
4172
4173 2003-08-01 Michael Snyder <msnyder@redhat.com>
4174
4175 * sh-tdep.c (sh_frame_align): New gdbarch method.
4176 (sh_gdbarch_init): Set up frame_align method.
4177
4178 2003-07-31 Michael Snyder <msnyder@redhat.com>
4179
4180 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4181 which is already covered by the new frames infrastructure.
4182
4183 2003-07-31 Andrew Cagney <cagney@redhat.com>
4184
4185 * user-regs.c (struct user_reg): Add "next" link.
4186 (struct user_regs): Replace "user" with "first" and "last" links.
4187 (append_user_reg): Add pre-allocated "reg" parameter.
4188 (builtin_user_regs): Provide initial value for "last".
4189 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4190 (user_regs_init): Allocate memory from the gdbarch obstack.
4191 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4192 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4193 linked list.
4194 (usernum_to_user_reg): New function.
4195 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4196 (value_of_user_reg): Use usernum_to_user_reg.
4197 (user_regs_free): Delete function.
4198 (_initialize_user_regs): Update register_gdbarch_data call.
4199
4200 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
4201
4202 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4203
4204 2003-07-30 Michael Snyder <msnyder@redhat.com>
4205
4206 * value.h (value_being_returned): Add a struct_addr argument.
4207 * infcall.c (call_function_by_hand): Pass struct_addr to
4208 value_being_returned.
4209 * infcmd.c (print_return_value): Pass zero as struct_addr.
4210 * values.c (value_being_returned): If struct_addr is passed,
4211 use it instead of trying to recover it from the inferior.
4212
4213 2003-07-30 Kevin Buettner <kevinb@redhat.com>
4214
4215 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4216 the prologue analyzer won't need to attempt to extract the pc
4217 value from the woefully incomplete dummy frame.
4218 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4219 possible. Disable code which modifies the frame.
4220
4221 2003-07-28 Andrew Cagney <cagney@redhat.com>
4222
4223 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4224 to level 2.
4225 (annotate_breakpoints_table, annotate_record): Ditto.
4226 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4227 (annotate_field_name_end, annotate_field_value): Ditto.
4228 (annotate_field_end, annotate_frame_source_begin): Ditto.
4229 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4230 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4231 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4232 (annotate_frame_address_end, annotate_frame_address): Ditto.
4233 (annotate_frame_args, annotate_frame_end): Ditto.
4234 (annotate_frame_where, annotate_arg_begin): Ditto.
4235 (annotate_arg_name_end, annotate_arg_value): Ditto.
4236 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4237 (annotate_function_call, annotate_signal_name): Ditto.
4238 (annotate_signal_string, annotate_signal_name_end): Ditto.
4239 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4240 (annotate_value_begin, annotate_value_history_value): Ditto.
4241 (annotate_value_history_end, annotate_value_end): Ditto.
4242 (annotate_display_begin, annotate_display_number_end): Ditto.
4243 (annotate_display_format, annotate_display_expression): Ditto.
4244 (annotate_display_expression_end, annotate_display_value): Ditto.
4245 (annotate_display_end, annotate_array_section_begin): Ditto.
4246 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4247 (annotate_elt, annotate_array_section_end): Ditto.
4248
4249 2003-07-28 Andrew Cagney <cagney@redhat.com>
4250
4251 * regcache.c (struct regcache_descr): Update comments on
4252 nr_raw_registers.
4253 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4254 sizeof_raw_register_valid_p.
4255 (init_regcache_descr): Set nr_raw_registers and
4256 sizeof_raw_register_valid_p before calling
4257 init_legacy_regcache_descr.
4258
4259 2003-07-28 Andrew Cagney <cagney@redhat.com>
4260
4261 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4262 MOD NUM_REGS.
4263
4264 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
4265
4266 * thread.c (info_threads_command): Use get_selected_frame ().
4267 Check that there is at least one non-sentinel frame.
4268
4269 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4270
4271 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4272 (m68hc11_pop_frame): Remove.
4273 (m68hc11_frame_saved_pc): Remove.
4274 (m68hc11_frame_chain): Remove.
4275 (m68hc11_frame_init_saved_regs): Remove.
4276 (m68hc11_init_extra_frame_info): Remove.
4277 (m68hc11_store_struct_return): Remove.
4278 (m68hc11_saved_pc_after_call): Remove.
4279
4280 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4281
4282 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4283 frame unwind information.
4284 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4285 and adapted for frame unwinding.
4286 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4287 (m68hc11_unwind_pc): New function.
4288 (m68hc11_frame_unwind_cache): New function to analyze frames.
4289 (m68hc11_frame_this_id): New function to create new frame struct.
4290 (m68hc11_frame_prev_register): New function to unwind a register from
4291 the frame.
4292 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4293 (m68hc11_frame_p): New function for the above.
4294 (m68hc11_frame_base_address): New function to return fp of frame.
4295 (m68hc11_frame_args_address): Update for frame.
4296 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4297 (m68hc11_unwind_sp): New function.
4298 (m68hc11_unwind_dummy_id): New function.
4299 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4300 calls.
4301
4302 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4303
4304 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4305 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4306 when we are beyond the current pc.
4307
4308 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4309
4310 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4311 from m68hc11_push_arguments.
4312 (m68hc11_push_arguments): Remove.
4313 (m68hc11_push_return_address): Remove.
4314 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4315 handlers; remove deprecated_extra_stack_alignment_needed.
4316
4317 2003-07-27 Andrew Cagney <cagney@redhat.com>
4318
4319 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4320 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4321 REAL_PC and not the pointer.
4322 * hppa-hpux-tdep.c: Include frame.h
4323
4324 2003-07-27 Andrew Cagney <cagney@redhat.com>
4325
4326 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4327 GDB_MULTI_ACH_PARTIAL.
4328
4329 2003-07-27 Andrew Cagney <cagney@redhat.com>
4330
4331 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4332 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4333 operator at start and not end of line.
4334 (decode_prologue): Ditto.
4335 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4336 frame_unwind_register_unsigned instead of
4337 frame_unwind_unsigned_register.
4338 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4339 read_register.
4340 (m32r_push_dummy_call): Use register_size instead of
4341 REGISTER_RAW_SIZE.
4342 (m32r_frame_sniffer): Replace m32r_frame_p.
4343 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4344 * m32r-rom.c (report_transfer_performance): Delete extern
4345 declaration.
4346 (m32r_load, m32r_upload_command): Use print_transfer_performance
4347 instead of report_transfer_performance.
4348 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4349 / add_show_from_set.
4350
4351 2003-07-26 Andrew Cagney <cagney@redhat.com>
4352
4353 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4354 store_return_value and extract_struct_value_address.
4355
4356 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
4357
4358 PR c++/1267
4359 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4360 NULL, default to the section containing PC.
4361
4362 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4363
4364 * NEWS: Mention "regs" deprecated for m68hc11 too.
4365
4366 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4367 (m68hc11_print_register): New function to print out one register.
4368 (m68hc11_print_registers_info): New function to print registers.
4369 (show_regs): Deprecate and use the above.
4370 (m68hc11_gdbarch_init): Install the print_registers_info.
4371
4372 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4373
4374 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4375 that we have a SIGTRAP before returning non-zero.
4376
4377 2003-07-23 Michal Ludvig <mludvig@suse.cz>
4378 Elena Zannoni <ezannoni@redhat.com>
4379
4380 * linespec.c (decode_line_2): Avoid crash if
4381 find_function_start_sal() returns empty record.
4382
4383 2003-07-23 Andreas Schwab <schwab@suse.de>
4384
4385 * ia64-tdep.c (ia64_print_insn): New function.
4386 (ia64_gdbarch_init): Set print_insn to it.
4387 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4388 deprecated_tm_print_insn_info.
4389
4390 2003-07-22 Michael Snyder <msnyder@redhat.com>
4391
4392 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4393 handle 8-bit returns (long long).
4394 (h8300h_extract_return_value): Ditto.
4395 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4396
4397 2003-07-22 Andrew Cagney <cagney@redhat.com>
4398
4399 * gdbarch.c Include "gdb_obstack.h".
4400 (struct gdbarch): Add an "obstack".
4401 (alloc_gdbarch_data): Allocate the gdbarch data using
4402 GDBARCH_OBSTACK_CALLOC.
4403 (free_gdbarch_data): Delete function.
4404 (gdbarch_obstack_zalloc): New function.
4405 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4406 Assert that the architecture is not initialized.
4407 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4408 vector from the obstack.
4409 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4410 architecture obstack.
4411 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4412 (set_gdbarch_data): Assert that the data is not initialized.
4413 (struct gdbarch_data): Delete member "free".
4414 (register_gdbarch_data): Do not initialize "free".
4415 * gdbarch.h, gdbarch.c: Re-generate.
4416
4417 2003-07-22 Andrew Cagney <cagney@redhat.com>
4418
4419 * configure.in (build_warnings): Add -Wformat-nonliteral.
4420 * configure: Re-generate.
4421
4422 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4423
4424 * dwarf2loc.c (locexpr_describe_location): Fix typos.
4425
4426 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4427
4428 * findvar.c (read_var_value): Remove case for thread local storage
4429 variables. It is now entirely handled by the dwarf2 location
4430 expression code.
4431 * printcmd.c (address_info): Ditto.
4432 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4433 enumeration value.
4434 (struct symbol): Remove objfile field, which was used by
4435 LOC_THREAD_LOCAL_STATIC only.
4436 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4437 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4438 usage of objfile pointer.
4439 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4440 thread local variables.
4441 Add include of objfiles.h.
4442 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4443 storage variables.
4444 * Makefile.in (dwarf2loc.o): Update dependencies.
4445
4446 2003-07-22 Andrew Cagney <cagney@redhat.com>
4447
4448 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4449 get_frame_base.
4450 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4451 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4452 (struct value): Add opaque declaration.
4453 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4454
4455 2003-07-21 Andrew Cagney <cagney@redhat.com>
4456
4457 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4458 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4459
4460 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4461
4462 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4463 regcache_cooked_read_unsigned instead of read_register.
4464 (m68hc11_saved_pc_after_call): Likewise.
4465 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4466 instead of write_register.
4467 (m68hc11_register_type): New function.
4468 (m68hc11_register_virtual_type): Remove.
4469 (m68hc11_store_return_value): Convert to use the regcache.
4470 (m68hc11_extract_struct_value_address): Likewise.
4471 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4472 m68hc11_register_type; undeprecate store_return_value and
4473 extract_struct_value_address.
4474
4475 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4476
4477 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4478 and translate to use regcache.
4479 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4480
4481 2003-07-18 Andrew Cagney <cagney@redhat.com>
4482
4483 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4484 * gdbarch.h, gdbarch.c: Re-generate.
4485 * i386-tdep.c (i386_gdbarch_init): Do not set
4486 DWARF2_BUILD_FRAME_INFO.
4487 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4488 unconditionally.
4489 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4490 DWARF2_BUILD_FRAME_INFO.
4491
4492 2003-07-18 Andrew Cagney <cagney@redhat.com>
4493
4494 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4495 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4496
4497 2003-07-18 Andrew Cagney <cagney@redhat.com>
4498
4499 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4500 frame_unwind_address_in_block, instead of frame_pc_unwind.
4501 (dwarf2_frame_cache): Ditto.
4502
4503 2003-07-18 Andrew Cagney <cagney@redhat.com>
4504
4505 * user-regs.h (struct gdbarch): Declare opaque.
4506 * ui-out.h (struct ui_file): Declare opaque.
4507 * dwarf2-frame.h (struct frame_info): Declare opaque.
4508
4509 2003-07-18 Kris Warkentin <kewarken@qnx.com>
4510
4511 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4512 #include "...".
4513 (procfs_meminfo): Change strerror to safe_strerror.
4514 (procfs_can_run): Remove K&R badness.
4515
4516 2003-07-17 Michael Snyder <msnyder@redhat.com>
4517
4518 * remote-sim.c: Comment typo fix.
4519
4520 2003-07-17 Andrew Cagney <cagney@redhat.com>
4521
4522 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4523 configure.
4524 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4525 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4526 GDB_MULTI_ARCH_PARTIAL.
4527
4528 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
4529
4530 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4531 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4532 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4533
4534 2003-07-16 Theodore A. Roth <troth@openavr.org>
4535
4536 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4537 found.
4538 (avr_frame_unwind_cache): Don't unwind FP for main.
4539 Update a comment.
4540 Save the computed prev_sp.
4541 (avr_saved_regs_unwinder): Remove function.
4542 (avr_frame_prev_register): Use PC unwind logic from
4543 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4544
4545 2003-07-16 Andrew Cagney <cagney@redhat.com>
4546
4547 * frame-base.h (frame_base_p_ftype): Delete definition.
4548 (frame_base_append_predicate): Delete declaration.
4549 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4550 (frame_unwind_append_predicate): Delete declaration.
4551 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4552 (append_predicate): Delete parameter "p".
4553 (frame_unwind_append_predicate): Delete function.
4554 (frame_unwind_append_sniffer): Update call to append_predicate.
4555 (frame_unwind_free): Delete function.
4556 (_initialize_frame_unwind): Pass NULL as "free" to
4557 register_gdbarch_data.
4558 (frame_unwind_init): Append the dummy_frame_sniffer.
4559 (frame_unwind_find_by_frame): Simplify.
4560 * frame-base.c (struct frame_base_table): Delete field "p".
4561 (append_predicate): Delete parameter "p".
4562 (frame_base_append_predicate): Delete function.
4563 (frame_base_append_sniffer): Update call to append_predicate.
4564 (frame_base_free): Delete function.
4565 (frame_base_find_by_frame): Simplify.
4566 (_initialize_frame_base): Pass NULL as "free" to
4567 register_gdbarch_data.
4568 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4569 (x86_64_sigtramp_frame_sniffer): Replace
4570 "x86_64_sigtramp_frame_p".
4571 (x86_64_init_abi): Set the frame unwind sniffers.
4572 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4573 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4574 (m68k_gdbarch_init): Set the frame unwind sniffers.
4575 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4576 "i386_sigtramp_frame_p".
4577 (i386_frame_sniffer): Replace "i386_frame_p".
4578 (i386_gdbarch_init): Set the frame unwind sniffers.
4579 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4580 (avr_gdbarch_init): Set the frame unwind sniffers.
4581 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4582 "alpha_sigtramp_frame_p"
4583 (alpha_heuristic_frame_sniffer): Replace
4584 "alpha_heuristic_frame_p".
4585 (alpha_gdbarch_init): Set the frame unwind sniffers.
4586 (alpha_dwarf2_init_abi): Ditto.
4587 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4588 "alpha_debug_frame_p".
4589 (alpha_mdebug_frame_base_sniffer): Replace
4590 "alpha_mdebug_frame_base_p".
4591 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4592 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4593 (d10v_gdbarch_init): Set the frame unwind sniffer.
4594 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4595 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4596 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4597 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4598 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4599 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4600
4601 2003-07-16 Michael Snyder <msnyder@redhat.com>
4602
4603 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4604 should go thru sh_dsp_register_sim_regno, else the dsp regs
4605 will not get the right values.
4606
4607 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4608
4609 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4610 deprecated_store_floating by call to store_typed_floating.
4611 (sh_sh4_register_convert_to_raw): Substitute call to
4612 deprecated_extract_floating by call to extract_typed_floating.
4613
4614 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4615
4616 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4617
4618 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4619
4620 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4621 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4622 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4623 as possible.
4624 (do_pseudo_register): Remove.
4625 (sh_push_dummy_code): New function.
4626 (sh64_store_struct_return): Rename from sh_store_struct_return.
4627 Only called for sh64 now.
4628 (sh_extract_struct_value_address): Regcache'ify.
4629 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4630 and accomodate new tasks.
4631 (sh64_push_return_address): Rename from sh_push_return_address.
4632 Only called for sh64 now.
4633 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4634 Regcache'ify.
4635 (sh3e_sh4_extract_return_value): Regcache'ify.
4636 (sh_default_store_return_value): Ditto.
4637 (sh3e_sh4_store_return_value): Ditto.
4638 (sh_default_register_byte): Remove.
4639 (sh_sh4_register_byte): Remove.
4640 (sh_default_register_raw_size): Remove.
4641 (sh_sh4_register_raw_size): Remove.
4642 (sh_register_virtual_size): Remove.
4643 (sh_sh3e_register_virtual_type): Remove.
4644 (sh_sh3e_register_type): New function.
4645 (sh_sh4_register_virtual_type): Remove.
4646 (sh_sh4_register_type): New function.
4647 (sh_default_register_virtual_type): Remove.
4648 (sh_default_register_type): New function.
4649 (do_fv_register_info): Add parameters to accomodate call from
4650 sh_print_registers_info.
4651 (do_dr_register_info): Ditto.
4652 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4653 Add parameters to accomodate call from sh_print_registers_info.
4654 (sh_do_fp_register): Ditto.
4655 (sh64_do_pseudo_register): Call do_dr_register_info,
4656 do_fv_register_info and sh_do_fp_register with default parameters.
4657 (sh_do_register): Add parameters to accomodate call from
4658 sh_print_registers_info.
4659 (sh_print_register): Ditto.
4660 (sh_print_registers_info): Rename from sh_do_registers_info.
4661 Add parameters to be used as gdbarch_print_registers_info
4662 implementation. Accomodate removed do_pseudo_register function
4663 pointer.
4664 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4665 function pointer. Call sh_print_register with default parameters.
4666 (sh64_do_registers_info): Call sh_print_registers_info instead of
4667 sh_do_registers_info.
4668 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4669 detection of deprecated vs. non-deprecated functionality.
4670 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4671 function pointer assignments by direct function calls.
4672
4673 2003-07-15 Andrew Cagney <cagney@redhat.com>
4674
4675 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4676 (frame_register_unwind, create_new_frame): Ditto.
4677 (legacy_get_prev_frame, get_frame_type): Ditto.
4678 (get_frame_base_address): Use frame_base_find_by_frame.
4679 (get_frame_locals_address): Use frame_base_find_by_frame.
4680 (get_frame_args_address): Use frame_base_find_by_frame.
4681 * frame-base.h (frame_base_sniffer_ftype): Declare.
4682 (frame_base_append_sniffer): Declare.
4683 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4684 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4685 (frame_base_append_sniffer): New function.
4686 (frame_base_append_predicate): Add a NULL sniffer.
4687 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4688 (struct frame_base_table): Add "sniffer".
4689 (frame_base_free): Free the "sniffer" table.
4690 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4691 (frame_unwind_append_sniffer): Declare.
4692 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4693 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4694 (struct frame_unwind_table): Add "sniffer", delete "middle".
4695 (append_predicate): Add "sniffer" parameter, append the sniffer.
4696 (frame_unwind_init): Update append_predicate call.
4697 (frame_unwind_append_sniffer): New function.
4698 (frame_unwind_append_predicate): Update append_predicate call.
4699 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4700
4701 2003-07-15 Andrew Cagney <cagney@redhat.com>
4702
4703 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4704 before code inhibiting repeated unwind attempts. Add to
4705 commentary on that test's problems.
4706 * blockframe.c (inside_main_func): Look for "main" in the minimal
4707 symbol table.
4708 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4709 identical.
4710
4711 2003-07-15 Andrew Cagney <cagney@redhat.com>
4712
4713 * complaints.c (struct explanation): Define.
4714 (struct complaints): Change type of "explanation" to "struct
4715 explanation".
4716 (symfile_explanations): Convert to a "struct explanation" table.
4717 (vcomplaint): Update.
4718
4719 2003-07-15 Michal Ludvig <mludvig@suse.cz>
4720
4721 * x86-64-linux-nat.c (regmap): Removed.
4722 (supply_gregset, fill_gregset): Call
4723 x86_64_linux_(fill,supply)_gregset functions.
4724 * x86-64-linux-tdep.c (USER_*): New defines.
4725 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4726 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4727 New functions.
4728 (fetch_core_registers): Ditto.
4729 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4730 * x86-64-linux-tdep.h: New file.
4731 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4732 and core-regset.o.
4733 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4734
4735 2003-07-13 Mark Kettenis <kettenis@gnu.org>
4736
4737 * x86-64-tdep.c (x86_64_store_return_value): Use
4738 regcache_cooked_write_part instead of regcache_cooked_write.
4739
4740 * configure.host: Add x86_64-*-freebsd*.
4741 * configure.tgt: Add x86_64-*-freebsd*.
4742 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4743 * amd64fbsd-nat.c: New file.
4744 * amd64fbsd-tdep.c: New file.
4745 * config/i386/nm-fbsd64.h: New file.
4746 * config/i386/fbsd64.mh: New file.
4747 * config/i386/fbsd64.mt: New file.
4748
4749 2003-07-11 Mark Kettenis <kettenis@gnu.org>
4750
4751 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4752 `sc_regs_offset' and `sc_fpregs_offset'.
4753 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4754 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4755 (alpha_sigtramp_register_address): Rewrite to use new members of
4756 `struct gdbarch_tdep'.
4757 (alpha_gdbarch_init): Initialize new members of struct
4758 gdbarch_tdep'.
4759 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4760 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4761 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4762 (alphafbsd_pc_in_sigtramp): Implement.
4763 (alphafbsd_sigtramp_offset): New function.
4764 (alphafbsd_sigcontext_addr): New function.
4765 (alphafbsd_init_abi): Initialize signal trampoline related members
4766 of `struct gdbarch_tdep'.
4767 (_initialize_alphafbsd_tdep): Add prototype.
4768
4769 2003-07-11 Theodore A. Roth <troth@openavr.org>
4770
4771 * Makefile.in (install-only): Quote sed expression when generating
4772 transformed_name.
4773
4774 2003-07-11 Richard Henderson <rth@redhat.com>
4775
4776 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4777 * dwarf2-frame.c: Include complaints.h.
4778 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4779 variable initialization; return NULL on error.
4780 (decode_frame_entry): New.
4781
4782 2003-07-11 Andrew Cagney <cagney@redhat.com>
4783
4784 * frame.h (frame_address_in_block): Delete declaration.
4785 * blockframe.c (frame_address_in_block): Delete function.
4786 (get_frame_block): Use get_frame_address_in_block.
4787 (block_innermost_frame): Ditto.
4788 * stack.c (print_frame, backtrace_command_1): Ditto.
4789
4790 * frame.h (get_frame_address_in_block): Declare.
4791 (frame_unwind_address_in_block): Declare.
4792 * frame.c (frame_unwind_address_in_block): New function.
4793 (get_frame_address_in_block): New function.
4794
4795 2003-07-10 Andrew Cagney <cagney@redhat.com>
4796
4797 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4798 pre-default. Note: re-generate has no effect.
4799
4800 2003-07-10 Andrew Cagney <cagney@redhat.com>
4801
4802 * gdbarch.sh: When a variable, but not a function, compare against
4803 0. Fix problem in previous patch.
4804 * gdbarch.c: Re-generate.
4805
4806 2003-07-10 Andrew Cagney <cagney@redhat.com>
4807
4808 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4809 functions against NULL, not 0.
4810 * gdbarch.c: Re-generate.
4811
4812 2003-07-10 Fred Fish <fnf@ninemoons.com>
4813
4814 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4815 null string instead of a null pointer.
4816 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4817
4818 2003-07-09 Michael Snyder <msnyder@redhat.com>
4819
4820 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4821
4822 2003-07-09 Mark Kettenis <kettenis@gnu.org>
4823
4824 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4825 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4826 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4827 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4828 * x86-64-tdep.c: ... from here.
4829
4830 2003-07-09 Andreas Schwab <schwab@suse.de>
4831
4832 * m68k-tdep.h (enum struct_return): Define.
4833 (struct gdbarch_tdep): Add struct_return.
4834 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4835 bytes are padded to the right, not to the left. Pass struct value
4836 address in register %a1, not on stack.
4837 (m68k_use_struct_convention): New function.
4838 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4839 struct_return in tdep to pcc_struct_return.
4840 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4841 reg_struct_return.
4842
4843 2003-07-09 Joel Brobecker <brobecker@gnat.com>
4844
4845 * somread.c (som_symfile_offsets): Fix compilation error.
4846
4847 2003-07-09 Andrew Cagney <cagney@redhat.com>
4848
4849 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4850 Add comments about the checks.
4851
4852 2003-07-08 Andrew Cagney <cagney@redhat.com>
4853
4854 * Makefile.in: Make dependency section headers consistent.
4855 (config_h): Move to $BUILD headers section.
4856 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4857 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4858 (ada-exp.tab.c): Move to YACC/LEX section.
4859 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4860 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4861
4862 2003-07-08 Kris Warkentin <kewarken@qnx.com>
4863
4864 * nto-procfs.c: Cleaned up a bunch of ARI hits.
4865 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4866 of strerror with safe_strerror, use ISO C function definitions,
4867 and replace instances of sprintf with snprintf.
4868
4869 2003-07-07 Andrew Cagney <cagney@redhat.com>
4870
4871 * frame.c (get_prev_frame): Enable check for identical frames.
4872 Update comments. Update error messages.
4873
4874 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4875
4876 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4877
4878 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4879
4880 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4881 sort_symtab_syms, no longer necessary.
4882
4883 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4884
4885 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4886
4887 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4888
4889 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4890 (mips_register_byte): Likewise.
4891
4892 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4893
4894 * Makefile.in (sparc_tdep_h): New.
4895 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4896 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4897 * sparc-linux-nat.c: Include "sparc-tdep.h".
4898 * sparc-nat.c: Likewise.
4899 * sparc-tdep.c: Likewise.
4900 * sparc64nbsd-nat.c: Likewise.
4901 * sparcnbsd-nat.c: Likewise.
4902 * sparcnbsd-tdep.c: Likewise.
4903 * sparc-tdep.h: New file.
4904 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4905 and sparc_npc_regnum.
4906
4907 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4908
4909 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4910 (mips_linux_cannot_store_register): List supported instead of
4911 unsupported registers.
4912
4913 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4914
4915 * disasm.c (dump_insns): Separate instructions from addresses.
4916
4917 2003-07-07 Andreas Schwab <schwab@suse.de>
4918
4919 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4920 dependencies.
4921 * m68k-tdep.c (NUM_FREGS): Delete.
4922 (SIG_PC_FP_OFFSET): Delete.
4923 (TARGET_M68K): Delete.
4924 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4925 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4926 P_MOVEL_SP, P_MOVEML_SP): Define.
4927 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4928 P_TRAP): Delete.
4929 (m68k_register_raw_size): Delete.
4930 (m68k_register_virtual_size): Delete.
4931 (m68k_register_type): Renamed from m68k_register_virtual_type and
4932 add gdbarch argument.
4933 (m68k_store_struct_return): Delete.
4934 (m68k_deprecated_extract_return_value): Delete.
4935 (m68k_deprecated_extract_struct_value_address): Delete.
4936 (m68k_frame_chain): Delete.
4937 (m68k_frame_saved_pc): Delete.
4938 (m68k_fix_call_dummy): Delete.
4939 (m68k_push_dummy_frame): Delete.
4940 (m68k_pop_frame): Delete.
4941 (m68k_extract_return_value): New function.
4942 (m68k_store_return_value): Rewrite using regcache.
4943 (m68k_extract_struct_value_address): Rewrite using regcache.
4944 (m68k_push_dummy_call): New function.
4945 (struct m68k_frame_cache): Define.
4946 (m68k_alloc_frame_cache): New function.
4947 (m68k_analyze_frame_setup): New function.
4948 (m68k_analyze_register_saves): New function.
4949 (m68k_analyze_prologue): New function.
4950 (m68k_skip_prologue): Rewrite using above functions.
4951 (m68k_unwind_pc): New function.
4952 (m68k_frame_cache): New function.
4953 (m68k_frame_this_id): New function.
4954 (m68k_frame_prev_register): New function.
4955 (m68k_frame_unwind): New variable.
4956 (m68k_frame_p): New function.
4957 (m68k_sigtramp_frame_cache): New function.
4958 (m68k_sigtramp_frame_this_id): New function.
4959 (m68k_sigtramp_frame_prev_register): New function.
4960 (m68k_sigtramp_frame_unwind): New variable.
4961 (m68k_sigtramp_frame_p): New function.
4962 (m68k_frame_base_address): New function.
4963 (m68k_frame_base): New function.
4964 (m68k_unwind_dummy_id): New function.
4965 (fill_gregset): Use regcache_collect.
4966 (fill_fpregset): Likewise.
4967 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4968 defined.
4969 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4970 deprecated_init_frame_pc, deprecated_store_struct_return,
4971 deprecated_extract_return_value, deprecated_store_return_value,
4972 deprecated_frame_chain, deprecated_frame_saved_pc,
4973 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4974 deprecated_register_virtual_size,
4975 deprecated_max_register_raw_size,
4976 deprecated_max_register_virtual_size,
4977 deprecated_register_virtual_type, deprecated_register_size,
4978 deprecated_register_byte, deprecated_register_bytes,
4979 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4980 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4981 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4982 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4983 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4984 deprecated_push_dummy_frame, deprecated_pop_frame,
4985 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4986 only if SYSCALL_TRAP is defined. Set extract_return_value,
4987 store_return_value, extract_struct_value_address, register_type,
4988 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4989 predicates.
4990 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4991 M68K_MAX_REGISTER_SIZE): Define.
4992 (struct m68k_sigtramp_info): Define.
4993 (struct gdbarch_tdep): Add get_sigtramp_info.
4994 * m68klinux-nat.c (fetch_register): Use register_size instead of
4995 REGISTER_RAW_SIZE. Don't put assignment in if.
4996 (store_register): Likewise.
4997 (fetch_inferior_registers): Likewise.
4998 (store_inferior_registers): Likewise.
4999 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5000 (m68k_linux_frame_saved_pc): Delete.
5001 (m68k_linux_sigcontext_reg_offset,
5002 m68k_linux_ucontext_reg_offset): Define.
5003 (m68k_linux_get_sigtramp_info): New function.
5004 (m68k_linux_extract_return_value): Rewrite using regcache.
5005 (m68k_linux_store_return_value): Likewise.
5006 (m68k_linux_extract_struct_value_address): Likewise.
5007 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5008 Don't set deprecated_frame_saved_pc,
5009 deprecated_extract_return_value, deprecated_store_return_value,
5010 deprecated_extract_struct_value_address. Set
5011 extract_return_value, store_return_value,
5012 extract_struct_value_address.
5013
5014 2003-07-07 Andrew Cagney <cagney@redhat.com>
5015
5016 * expprint.c: Include "user-regs.h" instead of "frame.h".
5017 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5018 frame_map_regnum_to_name.
5019 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5020 (frame_map_name_to_regnum): Simplify, call
5021 user_reg_map_name_to_regnum.
5022 (frame_map_regnum_to_name): Simplify, call
5023 user_reg_map_regnum_to_name.
5024 (frame_register_unwind): Update.
5025 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5026 (_initialize_frame_reg): Call user_reg_add_builtin.
5027 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5028 (value_of_register): Use value_of_user_reg.
5029 * eval.c (evaluate_subexp_standard): Update.
5030 * parse.c (write_dollar_variable): Update.
5031 * d10v-tdep.c (d10v_print_registers_info): Update.
5032 * infcmd.c (registers_info): Update.
5033 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5034 (builtin_regs_h): Delete macro.
5035 (user_regs_h): Define.
5036 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5037 (builtin-regs.o): Delete target.
5038 (user-regs.o): Specify dependencies.
5039 (expprint.o): Update dependencies.
5040 (findvar.o): Update dependencies.
5041 (frame.o): Update dependencies.
5042 (std-regs.o): Update dependencies.
5043
5044 2003-07-06 Christopher Faylor <cgf@redhat.com>
5045
5046 * win32-nat.c (solib_symbols_add): Use one variable for all section
5047 address stuff. Pass variable rather than address of variable to
5048 safe_symbol_file_add.
5049
5050 2003-07-06 Andreas Schwab <schwab@suse.de>
5051
5052 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5053
5054 2003-07-04 Joel Brobecker <brobecker@gnat.com>
5055
5056 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5057
5058 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5059
5060 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5061
5062 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5063
5064 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5065 * config/i386/nto.mh: New file.
5066 * config/i386/nm-nto.h: New file.
5067 * configure.host: Add i[3456]86-*-nto*.
5068
5069 2003-07-03 Joel Brobecker <brobecker@gnat.com>
5070
5071 * remote-vx.c (vx_add_symbols): Fix compilation error.
5072
5073 2003-07-03 Andrew Cagney <cagney@redhat.com>
5074
5075 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5076 * gdbarch.h, gdbarch.c: Re-generate.
5077 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5078 (legacy_register_name): Declare.
5079 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5080 (REGISTER_NAME): Define.
5081 * sparc-tdep.c (legacy_register_name): New function.
5082 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5083 (REGISTER_NAME): Define.
5084 (hppa64_register_name): Declare.
5085 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5086 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5087 (hppa64_register_name): New function.
5088 (hppa_register_name): New function.
5089 * arch-utils.c (legacy_register_name): Delete.
5090 * arch-utils.h (legacy_register_name): Delete.
5091
5092 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
5093
5094 * cli/cli-interp.c (cli_interpreter_resume): Update the
5095 cli_uiout's stream to gdb_stdout.
5096
5097 2003-07-03 Andrew Cagney <cagney@redhat.com>
5098
5099 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5100 predicate.
5101 * gdbarch.h, gdbarch.c: Re-generate.
5102 * regcache.c (init_regcache_descr): Use legacy code when either
5103 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5104
5105 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5106
5107 * NEWS: Move "set logging" entry into GDB 6.0 section.
5108
5109 2003-07-02 Jim Blandy <jimb@redhat.com>
5110
5111 * s390-tdep.c (struct frame_extra_info): new member:
5112 'stack_bought_valid'.
5113 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5114 initialize fextra_info->stack_bought.
5115 (s390_frameless_function_invocation): Don't trust the value of
5116 fextra_info_ptr->stack_bought unless
5117 fextra_info->stack_bought_valid is set.
5118
5119 New S390 prologue analyzer.
5120 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5121 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5122 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5123 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5124 compute_x_addr, s390_on_stack, s390_store,
5125 s390_get_signal_frame_info): New functions.
5126 (S390_NUM_SPILL_SLOTS): New macro.
5127 (s390_get_frame_info): Rewritten.
5128 (is_arg_reg): Deleted.
5129
5130 Break out the decoding of S/390 instructions into separate
5131 functions, to make it more legible, and easier to check
5132 against the spec.
5133 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5134 is_rx, is_rxe): New functions.
5135 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5136 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5137 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5138 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5139 enums for opcode values. (Is this an improvement?)
5140
5141 2003-07-02 Andrew Cagney <cagney@redhat.com>
5142
5143 * i386-tdep.c: Revert change committed as part of trad-frame code
5144 below.
5145
5146 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5147
5148 * breakpoint.c (insert_catchpoint): Make static.
5149
5150 2003-07-02 Andreas Schwab <schwab@suse.de>
5151
5152 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5153 former ia64_push_arguments and ia64_push_return_address, and use
5154 regcache functions instead of read/write_register.
5155 (ia64_gdbarch_init): Set push_dummy_call instead of
5156 deprecated_push_arguments and deprecated_push_return_address.
5157
5158 2003-07-01 Andreas Jaeger <aj@suse.de>
5159
5160 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5161 before the call.
5162 Set %rax only to number of SSE registers used.
5163
5164 2003-07-01 Andrew Cagney <cagney@redhat.com>
5165
5166 * trad-frame.h: Update comments, a -1 .addr is reserved.
5167 (trad_frame_value_p, trad_frame_addr_p): Declare.
5168 (trad_frame_reg_p): Declare.
5169 (trad_frame_set_value): Rename trad_frame_register_value.
5170 (trad_frame_set_unknown): Declare.
5171 * trad-frame.c (trad_frame_realreg_p): New function.
5172 (trad_frame_addr_p, trad_frame_value_p): New function.
5173 (trad_frame_set_unknown): New function.
5174 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5175 (trad_frame_prev_register): Use trad_frame_realreg_p,
5176 trad_frame_addr_p and trad_frame_value_p.
5177 (trad_frame_set_value): Rename trad_frame_register_value.
5178 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5179 and trad_frame_set_value.
5180
5181 2003-06-30 Jim Blandy <jimb@redhat.com>
5182
5183 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5184 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5185 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5186 for 16 registers, and then 32 more bytes.
5187 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5188 New macros.
5189 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5190 Move up in the file, since it's now used by is_simple_arg.
5191 (is_simple_arg): Don't assume registers are four bytes long.
5192 Exclude all double arguments. Extended floats are not simple
5193 args.
5194 (is_power_of_two): New function.
5195 (pass_by_copy_ref): Call is_power_of_two, and check that the
5196 length fits in a register, rather than listing all the acceptable
5197 sizes. Extended floats are not passed by reference.
5198 (s390_push_arguments): Don't assume registers are four bytes long.
5199 Reserve an argument register to point to the buffer for structures
5200 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5201 S390_STACK_FRAME_OVERHEAD.
5202
5203 2003-06-30 Andreas Schwab <schwab@suse.de>
5204
5205 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5206 format error message.
5207
5208 2003-06-30 Joel Brobecker <brobecker@gnat.com>
5209
5210 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5211
5212 2003-06-30 David Carlton <carlton@kealia.com>
5213
5214 Band-aid for PR c++/1245.
5215 * Makefile.in (cp-support.o): Depend on complaints_h.
5216 * cp-support.c: Include complaints.h. Add declaration for
5217 find_last_component.
5218 (cp_find_first_component): Separate code into
5219 cp_find_first_component_aux.
5220 (cp_find_first_component_aux): Call demangled_name_complaint.
5221 (demangled_name_complaint): New.
5222
5223 2003-06-30 Andrew Cagney <cagney@redhat.com>
5224
5225 * remote.c (remote_write_bytes): Explicitly compute and then use
5226 the payload size. Update comments to reflect. Fixes problem of
5227 GDB not sending small packets as found by Fred Fish.
5228
5229 2003-06-30 Andrew Cagney <cagney@redhat.com>
5230
5231 * remote.c (remote_async_wait): Fix -Wformat problem.
5232
5233 2003-06-29 Andrew Cagney <cagney@redhat.com>
5234
5235 * remote.c (remote_wait): Call error, and not warning, when the
5236 packet is corrupt.
5237 (remote_async_wait): Ditto.
5238
5239 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5240
5241 * sparc-tdep.c (sparc_y_regnum): Make external again.
5242
5243 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5244
5245 * cli/cli-logging.c (pop_output_files): Add void to function
5246 definition.
5247
5248 2003-06-29 Andrew Cagney <cagney@redhat.com>
5249
5250 * frame.c (frame_register_unwind): Use unsigned char when dumping
5251 the buffer contents.
5252
5253 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
5254
5255 * cli/cli-logging.c: New file.
5256 * cli-out.c (struct ui_out_data): Add original_stream.
5257 (cli_redirect): New function.
5258 (cli_ui_out_impl): Add cli_redirect.
5259 (cli_out_new): Initialize original_stream.
5260 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5261 (uo_redirect, ui_out_redirect): New.
5262 * ui-out.h (struct ui_out_impl): Add redirect member.
5263 (redirect_ftype): New.
5264 (ui_out_redirect): Add prototype.
5265 * Makefile.in: Add rules for cli-logging.c.
5266 * NEWS: Mention "set logging".
5267
5268 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5269
5270 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5271
5272 2003-06-27 Andrew Cagney <cagney@redhat.com>
5273
5274 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5275 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5276 * avr-tdep.c (avr_call_dummy_address): Delete function.
5277 (avr_gdbarch_init): Do not set call_dummy_address.
5278
5279 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5280
5281 * symfile.c (syms_from_objfile): Move variables to inner block.
5282 Move the checks for the non-mainline case a bit earlier to avoid
5283 doing some useless computations.
5284
5285 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5286
5287 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5288
5289 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
5290
5291 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5292 sections.
5293
5294 2003-06-26 Michael Chastain <mec@shout.net>
5295
5296 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5297 gdb/testsuite/gdb.c++/pr-1210.exp.
5298
5299 2003-06-26 Andrew Cagney <cagney@redhat.com>
5300
5301 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5302 altivec_expression.h and altivec_registers.h.
5303
5304 2003-06-26 Andrew Cagney <cagney@redhat.com>
5305
5306 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5307 info->mach when MIPS16. Patch suggested by Fred Fish.
5308
5309 2003-06-26 Andrew Cagney <cagney@redhat.com>
5310
5311 * utils.c (internal_vproblem): Print the problem to a reason
5312 buffer and then pass to query. Make the msg variable more local.
5313
5314 2003-06-26 Andrew Cagney <cagney@redhat.com>
5315
5316 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5317 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5318 * gdbarch.h, gdbarch.c: Re-generate.
5319 * frame-base.c (default_frame_args_address): Update. Use
5320 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5321 not available.
5322 (default_frame_locals_address): Ditto for
5323 DEPRECATED_FRAME_LOCALS_ADDRESS.
5324 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5325 (vax_frame_num_args): Update.
5326 (vax_gdbarch_init): Update.
5327 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5328 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5329 * mcore-tdep.c (mcore_gdbarch_init): Update.
5330 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5331 * ia64-tdep.c (ia64_gdbarch_init): Update.
5332 * symtab.h (address_class): Update comments.
5333 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5334 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5335 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5336 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5337 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5338 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5339 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5340 * alpha-mdebug-tdep.c: Update.
5341 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5342
5343 2003-06-26 Andreas Jaeger <aj@suse.de>
5344
5345 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5346 of SSE registers so that varargs functions work. Rework handling
5347 of passing arguments on the stack.
5348 (x86_64_store_return_value): Return double and float values in SSE
5349 register.
5350
5351 2003-06-24 Michael Chastain <mec@shout.net>
5352
5353 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5354 the "constructor breakpoints ignored" bug.
5355
5356 2003-06-25 David Carlton <carlton@kealia.com>
5357
5358 * MAINTAINERS: Update e-mail address.
5359
5360 2003-06-24 Jim Blandy <jimb@redhat.com>
5361
5362 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5363
5364 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5365 function.
5366 (ppc_linux_init_abi): Register it as the
5367 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5368
5369 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5370 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5371 method.
5372
5373 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5374 (ppc64_standard_linkage_target): Use it.
5375
5376 2003-06-23 Andrew Cagney <cagney@redhat.com>
5377
5378 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5379 for 0 "int0" and 4 "int32" sized registers.
5380 * gdbtypes.c (builtin_type_int0): Define.
5381 (build_gdbtypes): Initialize builtin_type_int0.
5382 * gdbtypes.h (builtin_type_int0): Declare.
5383
5384 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5385
5386 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5387 as characters are unsigned.
5388
5389 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5390
5391 PR gdb/1179
5392 * dwarfread.c (struct_type): Skip static fields without crashing.
5393
5394 2003-06-22 Andrew Cagney <cagney@redhat.com>
5395
5396 GDB 6.0 branch created.
5397 * README: Update.
5398 * PROBLEMS: Update. Empty.
5399 * NEWS: Update.
5400
5401 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5402
5403 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5404 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5405
5406 2003-06-22 Andrew Cagney <cagney@redhat.com>
5407
5408 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5409 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5410 Velikov.
5411
5412 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5413
5414 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5415 compilers.
5416
5417 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5418
5419 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5420 argument of val_print.
5421 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5422 to the address argument of baseclass_offset or target_read_memory.
5423 Do add it to the argument of cp_print_value_fields.
5424
5425 2003-06-21 Andrew Cagney <cagney@redhat.com>
5426
5427 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5428 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5429 instead of 0..NUM_REGS.
5430 (mips_register_reggroup_p): New function.
5431 (mips_pseudo_register_write): New function.
5432 (mips_pseudo_register_read): New function.
5433 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5434 based on the register's type.
5435 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5436 cooked.
5437 (mips_get_saved_register): Simplify. Assert that REGNO is a
5438 pseudo / cooked.
5439 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5440 (mips_register_type): Replace mips_register_virtual_type. Map
5441 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5442 when available.
5443 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5444 that the register is cooked / virtual.
5445 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5446 Only get the extra info when needed.
5447 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5448 (mips32_heuristic_proc_desc): Fetch the cooked register.
5449 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5450 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5451 (mips_print_register): Use gdbarch_register_type, instead of
5452 REGISTER_VIRTUAL_TYPE.
5453 (print_gp_register_row): Use gdbarch_register_type, instead of
5454 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5455 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5456 Print the pseudo / cooked registers.
5457 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5458 Print the pseudo / cooked registers.
5459 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5460 REG_NUM is pseudo / cooked.
5461 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5462 (mips_n32n64_xfer_return_value): Ditto.
5463 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5464 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5465 (mips_register_sim_regno): New function.
5466 (mips_gdbarch_init): Set deprecated_register_byte,
5467 register_group_p, pseudo_register_write, pseudo_register_read,
5468 register_sim_regno, and num_pseudo_regs. Set register_type,
5469 instead of register_virtual_type.
5470 * Makefile.in (mips-tdep.o): Update dependencies.
5471 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5472 REGISTER_VIRTUAL_TYPE.
5473 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5474 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5475 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5476 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5477 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5478
5479 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5480
5481 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5482 * cli/cli-cmds.c: Include "gdb_vfork.h".
5483 (shell_escape): Use vfork.
5484
5485 2003-06-21 Andrew Cagney <cagney@redhat.com>
5486
5487 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5488 32 bit floating-point register saves.
5489
5490 * frame.h (deprecated_unwind_get_saved_register): Delete.
5491 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5492 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5493 and deprecated_get_next_frame_hack instead of
5494 deprecated_unwind_get_saved_register.
5495
5496 * mips-tdep.c (mips_dump_tdep): Do not print
5497 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5498
5499 * frame.c (get_frame_register): New function.
5500 (frame_unwind_register_signed): New function.
5501 (get_frame_register_signed): New function.
5502 (frame_unwind_register_unsigned): New function.
5503 (get_frame_register_unsigned): New function.
5504 * frame.h: Add comments on naming schema.
5505 (get_frame_register, frame_unwind_register_signed): Declare.
5506 (get_frame_register_signed, get_frame_register_signed): Declare.
5507 (frame_unwind_register_unsigned): Declare.
5508 (get_frame_register_unsigned): Declare.
5509
5510 2003-06-20 Theodore A. Roth <troth@openavr.org>
5511
5512 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5513
5514 2003-06-20 Theodore A. Roth <troth@openavr.org>
5515
5516 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5517 (avr_read_sp): Ditto.
5518
5519 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
5520
5521 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5522 * config/arm/nm-linux.h: Likewise.
5523 * config/arm/tm-linux.h: Likewise.
5524 * config/ia64/nm-linux.h: Likewise.
5525 * config/ia64/tm-ia64.h: Likewise.
5526 * config/s390/tm-linux.h: Likewise.
5527 * config/s390/tm-s390.h: Likewise.
5528 * s390-nat.c: Likewise.
5529 * s390-tdep.c: Likewise.
5530
5531 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5532 * config/ia64/linux.mt: Likewise.
5533 * config/m68k/linux.mh: Likewise.
5534 * config/mips/linux.mt: Likewise.
5535 * config/powerpc/linux.mh: Likewise.
5536 * config/sh/linux.mt: Likewise.
5537
5538 2003-06-19 Kris Warkentin <kewarken@qnx.com>
5539
5540 * solib.c (solib_open): Change tests for whether to search
5541 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5542 comments.
5543
5544 2003-06-19 Theodore A. Roth <troth@openavr.org>
5545
5546 * avr-tdep.c (avr_frame_address): Delete function.
5547 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5548 set_gdbarch_frame_args_address.
5549
5550 2003-06-19 Andrew Cagney <cagney@redhat.com>
5551
5552 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5553 (REGISTER_CONVERT_FROM_TYPE): Delete.
5554 (mips_register_convert_to_type): Delete declaration.
5555 (mips_register_convert_from_type): Delete declaration.
5556 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5557 kernel/.
5558
5559 2003-06-19 Michael Snyder <msnyder@redhat.com>
5560
5561 * linux-nat.h: New file.
5562 * linux-nat.c: Include linux-nat.h.
5563 * lin-lwp.c: Include linux-nat.h.
5564 Move struct lwp_info def to linux-nat.h.
5565 * linux-proc.c: Include linux-nat.h.
5566 (linux_make_note_section): Iterate over lwps instead of threads.
5567 (linux_do_thread_registers): Use lwp instead of merged pid.
5568 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
5569 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
5570 Add dependency on linux_nat_h.
5571
5572 2003-06-19 Theodore A. Roth <troth@openavr.org>
5573
5574 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5575
5576 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5577
5578 * varobj.c (get_type, get_target_type): Use check_typedef.
5579
5580 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5581
5582 * breakpoint.c (insert_catchpoint): Call internal_error.
5583
5584 2003-06-19 Theodore A. Roth <troth@openavr.org>
5585
5586 * avr-tdep.c (avr_push_dummy_code): Delete function.
5587 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5588
5589 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5590
5591 * arch-utils.c (default_prepare_to_proceed): Remove.
5592 (generic_prepare_to_proceed): Remove.
5593 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5594 (generic_prepare_to_proceed): Remove prototype.
5595 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5596 * gdbarch.c: Regenerate.
5597 * gdbarch.h: Regenerate.
5598 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5599 * hppah-nat.c (hppa_switched_threads): Remove.
5600 * infrun.c (prepare_to_proceed): New static function, copied from
5601 generic_prepare_to_proceed. Remove select_it argument.
5602 (proceed): Call prepare_to_proceed.
5603 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5604 variables.
5605 (ptrace_wait): Don't set the removed variables.
5606 (hppa_switched_threads): Remove.
5607 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5608 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5609 (lin_lwp_prepare_to_proceed): Remove prototype.
5610 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5611 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5612
5613 2003-06-18 Theodore A. Roth <troth@openavr.org>
5614
5615 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5616 trad-frame.h.
5617 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5618 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5619 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5620 (AVR_PROLOGUE_*): Enumerate prologue types.
5621 (struct frame_extra_info): Remove.
5622 (struct avr_unwind_cache): Define.
5623 (avr_write_sp): Delete function.
5624 (avr_read_fp): Ditto.
5625 (avr_init_extra_frame_info): Ditto.
5626 (avr_pop_frame): Ditto.
5627 (avr_frame_saved_pc): Ditto.
5628 (avr_saved_pc_after_call): Ditto.
5629 (avr_push_return_address): Ditto.
5630 (avr_frame_chain): Ditto.
5631 (avr_store_struct_return): Ditto.
5632 (avr_push_arguments): Ditto.
5633 (avr_scan_prologue): Update comments. Changed to set up the info for
5634 cache unwinding. Now returns end of prologue PC.
5635 (avr_skip_prologue): Better handling of functions lacking a prologue
5636 by using avr_scan_prologue.
5637 (avr_scan_arg_moves): New function.
5638 (avr_saved_regs_unwinder): Ditto.
5639 (avr_frame_unwind_cache): Ditto.
5640 (avr_unwind_pc): Ditto.
5641 (avr_frame_this_id): Ditto.
5642 (avr_frame_prev_register): Ditto.
5643 (avr_frame_p): Ditto.
5644 (avr_frame_base_address ): Ditto.
5645 (avr_unwind_dummy_id): Ditto.
5646 (avr_push_dummy_code): Ditto.
5647 (push_stack_item): Ditto.
5648 (pop_stack_item): Ditto.
5649 (avr_push_dummy_call): Ditto.
5650 (struct stack_item): Define.
5651 (avr_frame_unwind): Declare structure.
5652 (avr_frame_base): Ditto.
5653 (avr_gdbarch_init): Remove calls to
5654 set_gdbarch_deprecated_init_frame_pc,
5655 set_gdbarch_deprecated_target_read_fp,
5656 set_gdbarch_deprecated_dummy_write_sp,
5657 set_gdbarch_deprecated_fp_regnum,
5658 set_gdbarch_deprecated_push_arguments,
5659 set_gdbarch_deprecated_push_return_address,
5660 set_gdbarch_deprecated_pop_frame,
5661 set_gdbarch_deprecated_store_struct_return,
5662 set_gdbarch_deprecated_frame_init_saved_regs,
5663 set_gdbarch_deprecated_init_extra_frame_info,
5664 set_gdbarch_deprecated_frame_chain,
5665 set_gdbarch_deprecated_frame_saved_pc,
5666 set_gdbarch_deprecated_saved_pc_after_call.
5667 Add calls to set_gdbarch_push_dummy_call,
5668 set_gdbarch_push_dummy_code,
5669 frame_unwind_append_predicate,
5670 frame_base_set_default,
5671 set_gdbarch_unwind_dummy_id,
5672 set_gdbarch_unwind_pc.
5673 Wrap a long line.
5674
5675 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
5676
5677 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5678 registers for H8/300S.
5679 (h8300_print_registers_info): Ditto.
5680 (h8300_gdbarch_init): Accommodate register count for H8/300S.
5681
5682 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
5683
5684 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5685 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5686 (lin_lwp_wait): Likewise. Update comments.
5687 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5688 (pull_pid_from_list, linux_record_stopped_pid): New.
5689
5690 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5691
5692 * ada-lang.c (scan_discrim_bound): Name first argument.
5693 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5694 declared by ALL_BLOCK_SYMBOLS.
5695
5696 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5697
5698 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5699 ("regcache.h"): Include it.
5700 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5701
5702 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5703
5704 * NEWS: Mention gdbserver detach change and "disconnect" command.
5705 * infcmd.c (disconnect_command): New function.
5706 (_initialize_infcmd): Add ``disconnect'' command.
5707 * remote.c (remote_async_detach): Delete.
5708 (remote_detach): Merge remote_async_detach.
5709 (remote_disconnect): New.
5710 (init_remote_ops): Set to_disconnect.
5711 (init_remote_cisco_ops): Likewise.
5712 (init_remote_async_ops): Likewise. Use remote_detach.
5713 * target.c (cleanup_target): Default to_disconnect.
5714 (update_current_target): Inherit to_disconnect.
5715 (target_disconnect, debug_to_disconnect): New functions.
5716 (setup_target_debug): Set to_disconnect.
5717 * target.h (struct target_ops): Add to_disconnect.
5718 (target_disconnect): Add prototype.
5719
5720 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5721
5722 * breakpoint.c (insert_catchpoint): New function.
5723 (insert_breakpoints): Use catch_exceptions to call
5724 insert_catchpoint. Disable catchpoints if they fail to insert.
5725
5726 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5727
5728 * symfile.c (reread_symbols): Clear sym_private.
5729
5730 2003-06-17 Andrew Cagney <cagney@redhat.com>
5731
5732 * trad-frame.h (struct frame_info): Add opaque declaration.
5733 * remote-fileio.h (struct cmd_list_element): Add opaque
5734 declaration.
5735 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5736 comments.
5737
5738 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5739
5740 * remote.c (remote_prepare_to_store): Replace call to
5741 deprecated_read_register_bytes with multiple regcache_raw_read
5742 calls.
5743
5744 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5745
5746 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5747 (nto_find_and_open_solib): Likewise.
5748 (nto_init_solib_absolute_prefix): Likewise.
5749 (_initialize_nto_tdep): Fix indentation.
5750
5751 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5752
5753 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5754
5755 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5756
5757 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5758
5759 2003-06-17 Jim Blandy <jimb@redhat.com>
5760
5761 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5762
5763 2003-06-16 Theodore A. Roth <troth@openavr.org>
5764
5765 * avr-tdep.c (avr_extract_return_value): New function.
5766 (avr_gdbarch_init): Set extract_return_value method.
5767
5768 2003-06-16 Andrew Cagney <cagney@redhat.com>
5769
5770 * frame.h (deprecated_get_next_frame_hack): Declare.
5771 * frame.c (legacy_saved_regs_prev_register): Only require
5772 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5773 there are always saved regs.
5774 (deprecated_generic_get_saved_register): Do not require
5775 DEPRECATED_FRAME_INIT_SAVED_REGS.
5776 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5777 use frame ID unwind instead.
5778 (deprecated_get_next_frame_hack): New function.
5779
5780 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5781
5782 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5783 (h8300_push_dummy_call): ...this function. Some minor optimization.
5784 (h8300_push_return_address): Remove.
5785 (h8300_gdbarch_init): Remove calls to
5786 set_gdbarch_deprecated_dummy_write_sp,
5787 set_gdbarch_deprecated_push_arguments and
5788 set_gdbarch_deprecated_push_return_address.
5789 Add call to set_gdbarch_push_dummy_call.
5790
5791 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5792
5793 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5794 (E_PSEUDO_EXR_REGNUM): Ditto.
5795 (h8300_is_argument_spill): Check for instructions moving argument
5796 registers into safe registers.
5797 (h8300_skip_prologue): Check for stm instruction to push registers
5798 used for register variables onto stack.
5799 (gdb_print_insn_h8300): Remove.
5800 (h8300_examine_prologue): Add a comment.
5801 (h8300_register_name): Take pseudo registers into account.
5802 (h8300s_register_name): Ditto.
5803 (h8300sx_register_name): Ditto.
5804 (h8300_print_register): Ditto.
5805 (h8300_print_registers_info): Define "nice" printing order.
5806 (h8300_saved_pc_after_call): Take pseudo registers into account.
5807 (h8300_register_type): Ditto. Return type used for remote connection
5808 when requesting real CCR or EXR register, return actual type when
5809 requesting pseudo CCR or EXR.
5810 (h8300_pseudo_register_read): New function.
5811 (h8300_pseudo_register_write): Ditto.
5812 (h8300_dbg_reg_to_regnum): Ditto.
5813 (h8300s_dbg_reg_to_regnum): Ditto.
5814 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5815 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5816 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5817 set_gdbarch_print_insn architecture dependent.
5818 Call set_gdbarch_pseudo_register_read and
5819 set_gdbarch_pseudo_register_write.
5820 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5821
5822 2003-06-16 Andrew Cagney <cagney@redhat.com>
5823
5824 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5825 * gdbarch.h, gdbarch.c: Re-generate.
5826 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5827 * s390-tdep.c (s390_gdbarch_init): Update.
5828 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5829 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5830 * mips-tdep.c (mips_gdbarch_init): Update.
5831 * mcore-tdep.c (mcore_gdbarch_init): Update.
5832 * cris-tdep.c (cris_gdbarch_init): Update.
5833 * infcall.c (call_function_by_hand): Update.
5834 * ia64-tdep.c (ia64_push_arguments): Update comment.
5835 * frame.c (legacy_get_prev_frame): Do not assume
5836 SAVE_DUMMY_FRAME_TOS_P.
5837 * dummy-frame.c (find_dummy_frame): Update comment.
5838
5839 2003-06-16 Andrew Cagney <cagney@redhat.com>
5840
5841 * regcache.c (do_cooked_read): Do not use register_valid_p.
5842
5843 2003-06-15 Theodore A. Roth <troth@openavr.org>
5844
5845 * avr-tdep.c (avr_register_type): Remove a blank line.
5846 (avr_scan_prologue): Correct some comments.
5847
5848 2003-06-15 Theodore A. Roth <troth@openavr.org>
5849
5850 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5851 prologue types.
5852 Properly scan prologues generated by gcc with the -mcall-prologues
5853 option.
5854 Add code to scan -mcall-prologues for mega devices.
5855
5856 2003-06-15 Theodore A. Roth <troth@openavr.org>
5857
5858 * avr-tdep.c (avr_register_byte): Delete function.
5859 (avr_register_raw_size): Delete function.
5860 (avr_register_virtual_size): Delete function.
5861 (avr_register_virtual_type): Delete function.
5862 (avr_register_type): New function.
5863 (avr_address_to_pointer): Remove unused code.
5864 (avr_read_fp): Need to read FP as two separate bytes due to change to
5865 avr_register_type() usage.
5866 (avr_gdbarch_init): Don't set deprecated_register_size.
5867 Don't set deprecated_register_bytes.
5868 Don't set deprecated_register_byte.
5869 Don't set deprecated_register_raw_size.
5870 Don't set deprecated_max_register_raw_size.
5871 Don't set deprecated_register_virtual_size.
5872 Don't set deprecated_max_register_virtual_size.
5873 Don't set deprecated_register_virtual_type.
5874 Set register_type method.
5875
5876 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
5877
5878 * Makefile.in (linux-nat.o): Add rule.
5879 * linux-nat.c: New file.
5880 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5881 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5882 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5883 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5884 * config/arm/linux.mh (NATDEPFILES): Likewise.
5885 * config/i386/linux.mh (NATDEPFILES): Likewise.
5886 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5887 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5888 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5889 * config/mips/linux.mh (NATDEPFILES): Likewise.
5890 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5891 * config/s390/s390.mh (NATDEPFILES): Likewise.
5892 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5893
5894 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5895
5896 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5897 replace out-of-date comment.
5898
5899 2003-06-15 Andrew Cagney <cagney@redhat.com>
5900
5901 * rdi-share/host.h (Fail): Change to a varargs function.
5902 * remote-rdi.c (Fail): Update.
5903
5904 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5905
5906 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5907 (i386_convert_register_p, i386_register_to_value,
5908 i386_register_from_value): Handle types longer than 8 bytes.
5909
5910 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5911
5912 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5913 Move floating-point code to new function in i387-tdep.c.
5914 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5915 New functions containing code moved here from i386-tdep.c.
5916 * i387-tdep.h: Add opaque declaration for `struct type'.
5917 (i387_register_to_value, i387_value_to_register): New prototypes.
5918 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5919 (x86_64_init_abi): Set convert_register_p, register_to_value and
5920 value_to_register here.
5921
5922 2003-06-14 Andrew Cagney <cagney@redhat.com>
5923
5924 * mips-tdep.c (mips_register_to_value): Make static.
5925 (mips_value_to_register): Make static.
5926 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5927 * ia64-tdep.c (ia64_register_raw_size): Make static.
5928 (ia64_register_virtual_size): Make static.
5929 (ia64_register_byte): Make static.
5930 * i387-tdep.c: Include "i387-tdep.h".
5931 (print_387_control_word): Delete function.
5932 (print_387_status_word): Delete function.
5933 (print_387_status_bits): Delete function.
5934 (print_387_control_bits): Delete function.
5935 * Makefile.in (i387-tdep.o): Update dependencies.
5936 * rdi-share/host.h (Fail): Declare.
5937 * remote-rdi.c (Fail): Update to match declaration.
5938
5939 2003-06-14 Andrew Cagney <cagney@redhat.com>
5940
5941 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5942 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5943 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5944 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5945 * README: Delete reference to remote-array.
5946 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5947 (remote-array.o): Delete target.
5948 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5949 * remote-array.c: Delete file.
5950
5951 2003-06-14 Andrew Cagney <cagney@redhat.com>
5952 Mark Kettenis <kettenis@gnu.org>
5953
5954 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5955 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5956 parameter with "frame".
5957 * gdbarch.h, gdbarch.c: Re-generate.
5958 * frame.h (put_frame_register): Declare.
5959 * frame.c (put_frame_register): New function.
5960 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5961 (legacy_register_to_value): Rewrite, use "frame" to get the
5962 register value.
5963 (legacy_value_to_register): Rewrite, use "frame" to find the
5964 register's location before storing.
5965 * arch-utils.h (legacy_convert_register_p): Update.
5966 (legacy_register_to_value, legacy_value_to_register): Update.
5967 * findvar.c (value_from_register): Rewrite, eliminate use of
5968 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5969 "frame" to REGISTER_TO_VALUE.
5970 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5971 lval_reg_frame_relative + lval_register branch of the switch. Do
5972 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5973 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5974 I386_EDI_REGNUM): New defines.
5975 (i386_next_regnum, i386_convert_register_p,
5976 i386_register_to_value, i386_value_to_register): New functions.
5977 (i386_register_convertible, i386_register_convert_to_virtual,
5978 i386_convert_to_raw): Remove functions.
5979 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5980 value_to_register instead of register_convertible,
5981 register_convert_to_virtual and register_convert_to_raw.
5982 * mips-tdep.c (mips_convert_register_p): New function.
5983 (mips_value_to_register): Replace mips_register_convert_from_type.
5984 (mips_register_to_value): Replace mips_register_convert_to_type.
5985 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5986 register_to_value.
5987 * alpha-tdep.c (alpha_convert_register_p): Update.
5988 (alpha_value_to_register): Update, store the register.
5989 (alpha_register_to_value): Update, fetch the register.
5990
5991 2003-06-14 Theodore A. Roth <troth@openavr.org>
5992
5993 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5994 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5995 Don't set deprecated_call_dummy_words.
5996 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5997 Don't set remote_translate_xfer_address.
5998 (avr_io_reg_read_command): Remove commented out debug printf.
5999 Wrap a long line.
6000
6001 2003-06-14 Theodore A. Roth <troth@openavr.org>
6002
6003 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6004 causes gdb to seg fault.
6005
6006 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
6007
6008 * sparc-nat.c (fetch_inferior_registers): Correct
6009 a reference to "registers".
6010
6011 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6012
6013 * Makefile.in (exc_request_U_h): Define
6014 (exc_request_S_h): Likewise.
6015 (msg_reply_S_h): Likewise.
6016 (msg_U_h): Likewise.
6017 (notify_S_h): Likewise.
6018 (process_reply_S_h): Likewise.
6019 (gnu-nat.o): Depend on gdb_obstack_h
6020 * gnu-nat.c: Include "gdb_obstack.h".
6021
6022 2003-06-13 Andrew Cagney <cagney@redhat.com>
6023
6024 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6025 * gdbarch.h, gdbarch.c: Re-generate.
6026
6027 2003-06-13 Andrew Cagney <cagney@redhat.com>
6028
6029 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6030 when deprecated REGISTER macros can be deleted.
6031 * gdbarch.h, gdbarch.c: Re-generate.
6032
6033 2003-06-13 Jim Blandy <jimb@redhat.com>
6034
6035 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6036 Linux entry point symbols for _dl_debug_state, too.
6037
6038 2003-06-13 Andrew Cagney <cagney@redhat.com>
6039
6040 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6041 available, do not use the FP register, and always save the TOS.
6042 * dummy-frame.c (dummy_frame_this_id): Do not assert
6043 SAVE_DUMMY_FRAME_TOS.
6044 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6045 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6046 (i386_push_dummy_call): Add 8 to the returned SP.
6047 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6048 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6049 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6050 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6051 (x86_64_push_dummy_call): Return "sp + 16".
6052 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6053 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6054 save_dummy_frame_tos.
6055
6056 2003-06-13 Jim Blandy <jimb@redhat.com>
6057
6058 * frv-tdep.c (frv_use_struct_convention): Delete static
6059 declaration for function deleted in my change of 2003-06-12.
6060
6061 2003-06-13 Theodore A. Roth <troth@openavr.org>
6062
6063 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6064 (avr_pointer_to_address): Shift code addrs left 1 bit.
6065 (avr_convert_from_func_ptr_addr): Delete function since operation is
6066 better handled by avr_address_to_pointer and avr_pointer_to_address.
6067 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6068
6069 2003-06-13 Mark Kettenis <kettenis@gnu.org>
6070
6071 From Kelley Cook <kelleycook@wideopenwest.com>:
6072 * configure.host: Accept i[34567]86 variants.
6073 * configure.tgt: Likewise.
6074 * nlm/configure.in: Likewise.
6075 * nlm/configure: Regenerated.
6076
6077 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
6078
6079 * arm-tdep.c (solib-svr4.h): Dont' include it.
6080 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6081 * arm-linux-tdep.c: ... here. Make static.
6082 (arm_linux_init_abi): Register it.
6083 (solib-svr4.h): Include it.
6084 * Makefile.in: Update dependencies.
6085 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6086 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6087
6088 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6089
6090 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6091 indicate registers used for return values.
6092 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6093 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6094 members.
6095 (h8300_init_extra_frame_info): Ditto.
6096 (h8300_frame_locals_address): Removed.
6097 (h8300_frame_args_address): Removed.
6098 (h8300_extract_return_value): Use new regcache structure. Only care
6099 for 16 bit CPUs.
6100 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6101 (h8300_store_return_value): Use new regcache structure. Only care
6102 for 16 bit CPUs.
6103 (h8300h_store_return_value): Same function for 32 bit CPUs.
6104 (h8300_store_struct_return): Removed.
6105 (h8300_extract_struct_value_address): Use new regcache structure.
6106 (h8300h_extract_struct_value_address): Removed.
6107 (h8300_push_dummy_code): New function.
6108 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6109 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6110 set_gdbarch_store_return_value architecture dependent.
6111 Call set_gdbarch_push_dummy_code and
6112 set_gdbarch_extract_struct_value_address.
6113 Remove calls to set_gdbarch_frame_args_address,
6114 set_gdbarch_frame_locals_address,
6115 set_gdbarch_deprecated_store_struct_return,
6116 set_gdbarch_deprecated_extract_return_value,
6117 set_gdbarch_deprecated_extract_struct_value_address,
6118 set_gdbarch_deprecated_call_dummy_words and
6119 set_gdbarch_deprecated_sizeof_call_dummy_words.
6120
6121 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6122
6123 * h8300-tdep.c (h8300_register_byte): Remove.
6124 (h8300h_register_byte): Remove.
6125 (h8300_register_virtual_type): Remove. Substitute by...
6126 (h8300_register_type): New function.
6127 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6128 (h8300h_extract_struct_value_address): Ditto.
6129 (h8300_gdbarch_init): Drop calls to
6130 set_gdbarch_deprecated_register_byte and
6131 set_gdbarch_deprecated_register_virtual_type.
6132 Add call to set_gdbarch_register_type.
6133
6134 2003-06-13 Andrew Cagney <cagney@redhat.com>
6135
6136 * gdbarch.sh: Update comments on registers.
6137 (deprecated_register_byte): Rename register_byte.
6138 (deprecated_register_raw_size): Rename register_raw_size.
6139 (deprecated_register_virtual_size): Rename register_virtual_size.
6140 (deprecated_register_virtual_type): Rename register_virtual_type.
6141 * gdbarch.h, gdbarch.c: Re-generate.
6142 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6143 * vax-tdep.c (vax_gdbarch_init): Update.
6144 * v850-tdep.c (v850_gdbarch_init): Update.
6145 * sparc-tdep.c (sparc_gdbarch_init): Update.
6146 * sh-tdep.c (sh_gdbarch_init): Update.
6147 * s390-tdep.c (s390_gdbarch_init): Update.
6148 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6149 * ns32k-tdep.c: Update.
6150 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6151 * mips-tdep.c (mips_gdbarch_init): Update.
6152 * mcore-tdep.c (mcore_gdbarch_init): Update.
6153 * m68k-tdep.c (m68k_gdbarch_init): Update.
6154 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6155 * ia64-tdep.c (ia64_gdbarch_init): Update.
6156 * hppa-tdep.c (hppa_gdbarch_init): Update.
6157 * h8300-tdep.c (h8300_gdbarch_init): Update.
6158 * frv-tdep.c (frv_gdbarch_init): Update.
6159 * cris-tdep.c (cris_gdbarch_init): Update.
6160 * avr-tdep.c (avr_gdbarch_init): Update.
6161 * alpha-tdep.c (alpha_gdbarch_init): Update.
6162 * arm-tdep.c (arm_gdbarch_init): Update.
6163
6164 2003-06-13 Andrew Cagney <cagney@redhat.com>
6165
6166 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6167 mips_o32_use_struct_convention with always_use_struct_convention.
6168
6169 2003-06-12 David Carlton <carlton@kealia.com>
6170
6171 * cp-namespace.c (cp_set_block_scope): Comment out
6172 processing_has_namespace_info branch.
6173
6174 2003-06-12 Jim Blandy <jimb@redhat.com>
6175
6176 Recognize and skip 64-bit PowerPC Linux linkage functions.
6177 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6178 insn_pattern, insns_match_pattern, d_field, ds_field): New
6179 functions, macros, and types for working with PPC instructions.
6180 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6181 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6182 ppc64_skip_trampoline_code): New functions, variables, and macros
6183 for recognizing and skipping linkage functions.
6184 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6185 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6186
6187 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6188 register offsets for both the 32- and 64-bit interfaces.
6189
6190 Actually finish the job started by my change of 2003-05-29.
6191 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6192 other #definition of this.
6193 (ppc_linux_skip_trampoline_code): Remove declaration.
6194 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6195 static.
6196 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6197 method for GDBARCH.
6198
6199 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6200 'long' on ppc64-*-linux*.
6201
6202 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6203 isn't #defined, assume the register doesn't exist: act as if
6204 tdep->ppc_mq_regnum were -1.
6205
6206 * configure.host, configure.tgt: Add entries for
6207 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6208 powerpc/linux.mt.
6209 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6210 New files.
6211
6212 * arch-utils.c (always_use_struct_convention): New function.
6213 * arch-utils.h (always_use_struct_convention): New prototype.
6214 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6215 (alpha_gdbarch_init): Register always_use_struct_convention,
6216 instead of alpha_use_struct_convention.
6217 * cris-tdep.c (cris_use_struct_convention): Delete.
6218 (cris_gdbarch_init): Register always_use_struct_convention,
6219 instead of cris_use_struct_convention.
6220 * frv-tdep.c (frv_use_struct_convention): Delete.
6221 (frv_gdbarch_init): Register always_use_struct_convention,
6222 instead of frv_use_struct_convention.
6223 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6224 (h8300_gdbarch_init): Register always_use_struct_convention,
6225 instead of h8300_use_struct_convention.
6226 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6227 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6228 instead of mips_o32_use_struct_convention.
6229
6230 2003-06-12 Andrew Cagney <cagney@redhat.com>
6231
6232 * wince.c: Include "mips-tdep.h".
6233 * mips-tdep.h (mips_next_pc): Declare.
6234 * mcore-tdep.c: Make more local functions static.
6235 * Makefile.in (wince.o): Update dependencies.
6236
6237 2003-06-12 David Carlton <carlton@kealia.com>
6238
6239 * symtab.c (lookup_symbol_aux_minsyms): Replace
6240 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6241 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6242 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6243 SYMBOL_NATURAL_NAME.
6244
6245 2003-06-12 Andreas Schwab <schwab@suse.de>
6246
6247 * Makefile.in (tuiDisassem.o): Update dependencies.
6248
6249 2003-06-12 David Carlton <carlton@bactrian.org>
6250
6251 * symtab.h: Delete declaration of make_symbol_overload_list.
6252 Add declaration of lookup_partial_symbol.
6253 * symtab.c (remove_params): Move to cp-support.c.
6254 (overload_list_add_symbol, make_symbol_overload_list)
6255 (sym_return_val_size, sym_return_val_index): Ditto.
6256 (lookup_partial_symbol): Make extern.
6257 * cp-support.h: Add declaration of make_symbol_overload_list.
6258 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6259 symtab.h, and block.h.
6260 (remove_params): Move here from symtab.c.
6261 (overload_list_add_symbol, make_symbol_overload_list)
6262 (sym_return_val_size, sym_return_val_index): Ditto.
6263 * valops.c: Include cp-support.h.
6264 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6265 frame_h, and block_h.
6266 (valops.o): Depend on cp_support_h.
6267
6268 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
6269
6270 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6271 substitute by NUM_REGS throughout.
6272 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6273 (h8300s_register_name): New function for H8S registers.
6274 (h8300sx_register_name): Ditto for H8SX registers.
6275 (h8300_print_register): Revise register printing, avoid depending
6276 on 32 bit long.
6277 (h8300_register_byte): Only care for H8/300 registers.
6278 (h8300h_register_byte): New function for any other architecture.
6279 (h8300_register_raw_size): Remove.
6280 (h8300_register_virtual_type): Revise to return actually useful
6281 type.
6282 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6283 (h8300h_extract_struct_value_address): New function for any other
6284 architecture.
6285 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6286 set_gdbarch_register_name, set_gdbarch_register_byte,
6287 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6288 Remove calls to set_gdbarch_deprecated_register_size,
6289 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6290 set_gdbarch_deprecated_max_register_raw_size,
6291 set_gdbarch_register_virtual_size and
6292 set_gdbarch_deprecated_max_register_virtual_size entirely.
6293 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6294 set_gdbarch_long_double_bit.
6295
6296 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6297
6298 * doublest.c (convert_doublest_to_floatformat): When dealing
6299 with the implied integer bit, only alter mant_bits if we are
6300 processing a full 32 bits of mantissa.
6301
6302 2003-06-11 David Carlton <carlton@bactrian.org>
6303
6304 * dictionary.h: New.
6305 * dictionary.c: New.
6306 * block.h: Add opaque declaration for struct dictionary.
6307 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6308 'sym' members.
6309 (BLOCK_DICT): New macro.
6310 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6311 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6312 BLOCK_SHOULD_SORT.
6313 (ALL_BLOCK_SYMBOLS): Update definition.
6314 * Makefile.in (SFILES): Add dictionary.c.
6315 (dictionary_h): New.
6316 (COMMON_OBS): Add dictionary.o.
6317 (dictionary.o): New.
6318 (ada-lang.o): Depend on dictionary_h.
6319 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6320 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6321 (mi-cmd-stack.o): Ditto.
6322 (gdbtk-cmds.o): Update dependencies.
6323 (gdbtk-stack.o): Ditto.
6324 * ada-lang.c: Include dictionary.h.
6325 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6326 (fill_in_ada_prototype, debug_print_block): Ditto.
6327 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6328 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6329 'is_sorted'.
6330 * mdebugread.c: Include dictionary.h.
6331 (struct parse_stack): Delete 'maxsyms' member.
6332 (parse_symbol): Update calls to new_block. Delete calls to
6333 shrink_block. Use dictionary methods.
6334 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6335 Update calls to new_symtab. Don't maintain maxsyms data.
6336 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6337 (add_symbol): Just call dict_add_symbol.
6338 (new_symtab): Delete 'maxsyms' argument.
6339 (new_symtab): Update calls to new_block.
6340 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6341 (shrink_block): Delete function.
6342 (fixup_sigtramp): Update call to new_block. Add symbol via
6343 dict_add_symbol.
6344 * jv-lang.c: Include dictionary.h.
6345 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6346 appropriately. Set class_symtab->free_func. Make sure the
6347 blockvector is big enough to hold two blocks.
6348 (add_class_symtab_symbol): Use dictionary methods.
6349 (free_class_block): New function.
6350 (type_from_class): Replace explicit iteration by
6351 ALL_BLOCK_SYMBOLS.
6352 * symtab.h (struct symtab): Replace 'free_ptr' method by
6353 'free_func'.
6354 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6355 sort_symtab_syms.
6356 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6357 sort_symtab_syms.
6358 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6359 Include dictionary.h.
6360 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6361 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6362 sort_symtab_syms.
6363 * objfiles.c: Include dictionary.h.
6364 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6365 * buildsym.c: Include dictionary.h.
6366 (finish_block): Use dictionary methods.
6367 (end_symtab): Set free_func to NULL, not free_ptr.
6368 * tracepoint.c: Include dictionary.h.
6369 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6370 (scope_info): Ditto.
6371 * stack.c: Include dictionary.h.
6372 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6373 (print_block_frame_labels, print_frame_arg_vars)
6374 (print_frame_args): Ditto.
6375 * symmisc.c (free_symtab_block): Use dictionary methods.
6376 (dump_symtab): Ditto.
6377 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6378 Include dictionary.h.
6379 * symfile.h: Delete declarations of sort_block_syms,
6380 sort_symtab_syms.
6381 * symfile.c (sort_block_syms): Delete.
6382 (sort_symtab_syms): Delete.
6383 * symtab.c: Include dictionary.h.
6384 (lookup_block_symbol): Use dictionary iterators.
6385 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6386 (search_symbols, make_symbol_completion_list): Ditto.
6387 (make_symbol_overload_list): Ditto.
6388 * valops.c (value_of_local): Use dict_empty.
6389 Include dictionary.h.
6390
6391 2003-06-11 J. Brobecker <brobecker@gnat.com>
6392
6393 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6394
6395 2003-06-11 David Carlton <carlton@bactrian.org>
6396
6397 * block.h (BLOCK_SHOULD_SORT): Delete.
6398 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6399 blocks.
6400 * ada-lang.c (ada_add_block_symbols): Ditto.
6401 * symfile.c (sort_block_syms): Delete.
6402 (sort_symtab_syms): Ditto.
6403 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6404 declarations.
6405 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6406 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6407 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6408 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6409 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6410 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6411 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6412
6413 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6414
6415 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6416 bits to 128.
6417
6418 2003-06-11 Andrew Cagney <cagney@redhat.com>
6419
6420 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6421 REGISTER_CONVERTIBLE.
6422 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6423 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6424 * gdbarch.h, gdbarch.c: Re-generate.
6425 * arch-utils.h (deprecated_register_convertible_not): Rename
6426 generic_register_convertible_not.
6427 * arch-utils.c (deprecated_register_convertible_not): Rename
6428 generic_register_convertible.
6429 (legacy_convert_register_p, legacy_register_to_value): Update.
6430 * sh-tdep.c (sh64_push_arguments): Update.
6431 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6432 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6433 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6434 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6435 * arch-utils.c (legacy_value_to_register): Update.
6436 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6437 (rs6000_register_convert_to_raw): Make parameter "from" const.
6438 * mips-tdep.c (mips_gdbarch_init): Update.
6439 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6440 * infcmd.c (default_print_registers_info): Update.
6441 * ia64-tdep.c (ia64_gdbarch_init): Update.
6442 (ia64_register_convert_to_raw): Make parameter "from" const.
6443 * i386-tdep.c (i386_gdbarch_init): Update.
6444 (i386_register_convert_to_raw): Update.
6445
6446 2003-06-11 Andrew Cagney <cagney@redhat.com>
6447
6448 * remote-fileio.c: Include "remote-fileio.h".
6449 * Makefile.in (remote-fileio.o): Update dependencies.
6450 (remote_fileio_h): Fix typo.
6451
6452 2003-06-11 Andrew Cagney <cagney@redhat.com>
6453
6454 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6455 (xstormy16_save_dummy_frame_tos): Make static.
6456 (_initialize_xstormy16_tdep): Add declaration.
6457 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6458 * v850-tdep.c: Make local functions static.
6459 (_initialize_v850_tdep): Add declaration.
6460 * sparc-tdep.c: Make local functions static.
6461 (_initialize_sparc_tdep): Add declaration.
6462 * sh-tdep.c: Make local functions static.
6463 (_initialize_sh_tdep): Add declaration.
6464 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6465 * s390-tdep.c: Make local functions static.
6466 (_initialize_s390_tdep): Add declaration.
6467 * dbxread.c (find_stab_function_addr): Make static.
6468 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6469 * ocd.c (_initialize_remote_ocd): Add declaration.
6470 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6471 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6472 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6473 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6474 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6475 * remote-array.c (_initialize_array): Add declaration.
6476 (_initialize_remote_monitors): Add declaration.
6477 * remote-mips.c: Make local functions static.
6478 (_initialize_remote_mips): Add declaration.
6479 * mcore-tdep.c: Make all local functions static.
6480 (_initialize_mcore_tdep): Add declaration.
6481 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6482 * abug-rom.c (_initialize_abug_rom): Add declaration.
6483 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6484 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6485 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6486 * remote-est.c (_initialize_est): Add declaration.
6487 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6488 (m68hc11_call_dummy_address): Make static.
6489 * ia64-tdep.c: Make local functions static.
6490 (_initialize_ia64_tdep): Add declaration.
6491 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6492 * monitor.c (monitor_wait_filter): Make static.
6493 (_initialize_remote_monitors): Add declaration.
6494 * remote-hms.c (_initialize_remote_hms): Add declaration.
6495 * remote-e7000.c (fetch_regs_from_dump): Make static.
6496 (expect_n): Make static.
6497 (_initialize_remote_e7000): Add declaration.
6498 * ser-e7kpc.c: Always include "defs.h".
6499 (_initialize_ser_e7000pc): Add declaration.
6500 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6501 * cris-tdep.c: Make all but one function static.
6502 (_initialize_cris_tdep): Add declaration.
6503 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6504 * solib.c (update_solib_list): Make static.
6505 (_initialize_solib): Add declaration.
6506 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6507 (_initialize_avr_tdep): Add declaration.
6508 * remote-rdi.c (voiddummy): Make static.
6509 (_initialize_remote_rdi): Add declaration.
6510 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6511 * remote-rdp.c (send_rdp): Make static.
6512 (_initialize_remote_rdp): Add declaration.
6513 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6514
6515 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
6516
6517 * remote-fileio.c: Make ari happy.
6518
6519 2003-06-10 J. Brobecker <brobecker@gnat.com>
6520
6521 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6522 fetching the trailing bytes of the buffer we are about to write.
6523
6524 2003-06-10 Andrew Cagney <cagney@redhat.com>
6525
6526 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6527 * Makefile.in (remote-fileio.o): Update dependencies.
6528 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6529 include <setjmp.h>, or <sys/types.h> conditional on USG.
6530 (remote_fio_jmp_buf): Delete global variable.
6531
6532 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
6533 Martin M. Hunt <hunt@redhat.com>
6534
6535 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6536 (SFILES): Add remote-fileio.c.
6537 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6538 dependencies for building remote.o.
6539 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6540 * remote-fileio.h: New header file defining remote File-I/O interface.
6541 * remote.c (remote_write_bytes, remote_read_bytes): Remove
6542 static storage class.
6543 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6544 'F' packet.
6545 (_initialize_remote): Call initialize_remote_fileio().
6546 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
6547 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6548 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6549 (captured_main): Initialize new ui_files.
6550 * ui-file.c: Add read and fgets input functions.
6551 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6552 (null_file_read): New function.
6553 (ui_file_read): New function.
6554 (set_ui_file_read): New function.
6555 (stdio_file_read): New function.
6556 * ui-file.h: New type ui_file_read_ftype.
6557 (set_ui_file_read): Declare.
6558 (ui_file_read): Declare.
6559
6560 2003-06-09 Andrew Cagney <cagney@redhat.com>
6561
6562 * frame.h (deprecated_unwind_get_saved_register): Rename
6563 generic_unwind_get_saved_register, update comments.
6564 * mips-tdep.c (mips_get_saved_register): Update.
6565 * frame.c (deprecated_unwind_get_saved_register): Update.
6566
6567 2003-06-09 Andrew Cagney <cagney@redhat.com>
6568
6569 * vax-tdep.c (vax_frame_locals_address): Delete function.
6570 (vax_gdbarch_init): Do not set frame_locals_address.
6571 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6572 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6573 * s390-tdep.c (s390_frame_args_address): Delete function.
6574 (s390_gdbarch_init): Do not set frame_args_address or
6575 frame_locals_address.
6576 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6577 (ns32k_gdbarch_init): Do not set frame_locals_address.
6578 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6579 (hppa_frame_locals_address): Delete function.
6580 (hppa_gdbarch_init): Do not set frame_args_address, or
6581 frame_locals_address.
6582 * arm-tdep.c (arm_frame_args_address): Delete.
6583 (arm_frame_locals_address): Delete.
6584 (arm_gdbarch_init): Do not set frame_args_address, or
6585 frame_locals_address.
6586
6587 2003-06-09 Andrew Cagney <cagney@redhat.com>
6588
6589 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6590 * gdbarch.h, gdbarch.c: Re-generate.
6591 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6592 * arch-utils.c (frame_num_args_unknown): Delete function.
6593 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6594 (frame_info): Use FRAME_NUM_ARGS_P.
6595 * arm-tdep.c (arm_frame_num_args): Delete function.
6596 (arm_gdbarch_init): Do not set frame_num_args.
6597 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6598 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6599 (hppa_gdbarch_init): Do not set frame_num_args.
6600 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6601 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6602 frame_num_args to default frame_num_args_unknown.
6603 * v850-tdep.c (v850_gdbarch_init): Ditto.
6604 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6605 * sh-tdep.c (sh_gdbarch_init): Ditto.
6606 * s390-tdep.c (s390_gdbarch_init): Ditto.
6607 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6608 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6609 * mips-tdep.c (mips_gdbarch_init): Ditto.
6610 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6611 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6612 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6613 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6614 * i386-tdep.c (i386_gdbarch_init): Ditto.
6615 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6616 * frv-tdep.c (frv_gdbarch_init): Ditto.
6617 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6618 * cris-tdep.c (cris_gdbarch_init): Ditto.
6619 * avr-tdep.c (avr_gdbarch_init): Ditto.
6620 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6621
6622 2003-06-09 Andrew Cagney <cagney@redhat.com>
6623
6624 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6625 (print_frame_args): Moved to "stack.c".
6626 * stack.c: Include "gdb_assert.h".
6627 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6628 (print_frame_args): Moved from "printcmd.c".
6629 * frame.h (print_frame_args): Delete declaration.
6630 * Makefile.in (stack.o): Update dependencies.
6631
6632 2003-06-08 Andrew Cagney <cagney@redhat.com>
6633
6634 * frame.c (get_prev_frame): Remove reference to
6635 frame_args_address_correct in comments.
6636 * frame-base.c (default_frame_args_address): Delete code
6637 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6638 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6639 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6640 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6641 (vax_frame_args_address_correct): Delete declaration.
6642
6643 2003-06-08 Andrew Cagney <cagney@redhat.com>
6644
6645 * gdbarch.sh (UNWIND_SP): Add.
6646 * gdbarch.h, gdbarch.c: Re-generate.
6647 * frame.c (frame_sp_unwind): New function.
6648 (get_frame_sp): New function.
6649 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6650 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6651 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6652 value.
6653 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6654 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6655
6656 2003-06-08 Andrew Cagney <cagney@redhat.com>
6657
6658 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6659 REMOTE_BREAKPOINT.
6660 * remote.c: Update.
6661 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6662 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6663 * config/m68k/tm-sun3.h: Update.
6664 * config/m68k/tm-m68klynx.h: Update.
6665 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6666
6667 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6668 trad_frame". Update comments.
6669 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6670 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6671 (trad_frame_register_value, trad_frame_prev_register): Update.
6672
6673 2003-06-08 Andrew Cagney <cagney@redhat.com>
6674
6675 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6676 from GCC's acinclude.m4.
6677 * configure.in: Check for getopt's delcaration.
6678 * aclocal.m4, config.in, configure: Re-generate.
6679 * main.c (error_init): Delete declaration.
6680 * defs.h (error_init): Declare.
6681 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6682 (rs6000_convert_from_func_ptr_addr): Make static.
6683 (_initialize_rs6000_tdep): Add declaration.
6684 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6685 (show_commands, set_verbose, show_history): Delete declaration.
6686 * top.h (set_verbose): Add declaration.
6687 (show_history, set_history, show_commands): Add declaration.
6688 (do_restore_instream_cleanup): Add declaration.
6689 * objc-lang.c (specialcmp): Make static.
6690 (print_object_command): Make static.
6691 (find_objc_msgsend): Make static.
6692 (find_objc_msgcall_submethod_helper): Make static.
6693 (find_objc_msgcall_submethod): Make static.
6694 (_initialize_objc_language): Add declaration.
6695 (find_implementation_from_class): Make static.
6696 (find_implementation): Make static.
6697 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6698 * objc-lang.h (lookup_struct_typedef): Add declaration.
6699 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6700 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6701 (do_restore_user_call_depth): Make static.
6702 (do_restore_instream_cleanup): Delete declaration.
6703 (dont_repeat): Delete declaration.
6704 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6705 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6706 * reggroups.c (_initialize_reggroup): Add declaration.
6707 * cp-support.c (_initialize_cp_support): Add declaration.
6708 * cp-abi.c (_initialize_cp_abi): Add declaration.
6709 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6710 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6711 (_initialize_gnu_v3_abi): Add declaration.
6712 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6713 (_initialize_gnu_v2_abi): Add declaration.
6714 * frame-base.c (_initialize_frame_base): Add declaration.
6715 * doublest.c (floatformat_from_length): Make static.
6716 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6717 * frame.c (create_sentinel_frame): Make static.
6718 (_initialize_frame): Add declaration.
6719 * top.c (do_catch_errors): Make static.
6720 (gdb_rl_operate_and_get_next_completion): Make static.
6721 * typeprint.c: Include "typeprint.h".
6722 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6723 (sentinel_frame_this_id): Make static.
6724 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6725 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6726 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6727 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6728 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6729 * maint.c (maintenance_print_architecture): Make static.
6730 * signals/signals.c (_initialize_signals): Add declaration.
6731 * std-regs.c (_initialize_frame_reg): Add declaration.
6732 * jv-exp.y (push_variable): ISO C definition.
6733 (push_qualified_expression_name): Ditto.
6734 * memattr.c (_initialize_mem): Add declaration.
6735 * remote.c (remote_check_watch_resources): Make static.
6736 (remote_stopped_by_watchpoint): Make static.
6737 (remote_stopped_data_address): Make static.
6738 * d10v-tdep.c (nr_dmap_regs): Make static.
6739 (a0_regnum): Make static.
6740 (d10v_frame_unwind_cache): Make static.
6741 (d10v_frame_p): Make static.
6742 * osabi.c (show_osabi): Make static.
6743 (_initialize_gdb_osabi): Add extern declaration.
6744 * gdbtypes.c (make_qualified_type): Make static.
6745 (safe_parse_type): Make static.
6746 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6747 * macrotab.c (macro_bcache_free): Make static.
6748 * interps.c (interp_set_quiet): Make static.
6749 (interpreter_exec_cmd): Make static.
6750 * stack.h (select_frame_command): New file.
6751 * stack.c: Include "stack.h".
6752 (select_frame_command_wrapper): Delete function.
6753 (select_frame_command): Make global.
6754 * infcall.c: Include "infcall.h".
6755 * linespec.c: Include "linespec.h".
6756 * symfile.c (sections_overlap): Make static.
6757 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6758 * charset.c (_initialize_charset): Add missing prototype.
6759 * regcache.c (init_legacy_regcache_descr): Make static.
6760 (do_regcache_xfree): Make static.
6761 (regcache_xfer_part): Make static.
6762 (_initialize_regcache): Add missing prototype.
6763 * breakpoint.c (parse_breakpoint_sals): Make static.
6764 (breakpoint_sals_to_pc): Make static.
6765 * interps.h (clear_interpreter_hooks): ISO C declaration.
6766 * Makefile.in (stack_h): Define.
6767 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6768 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6769
6770 2003-06-08 Andrew Cagney <cagney@redhat.com>
6771
6772 * Makefile.in (d10v-tdep.o): Update dependencies.
6773 (SFILES): Add trad-frame.c.
6774 (trad_frame_h): Define.
6775 (COMMON_OBS): Add trad-frame.o.
6776 (trad-frame.o): Specify dependencies.
6777 * d10v-tdep.c: Include "trad-frame.h".
6778 (saved_regs_unwinder): Delete function.
6779 (d10v_frame_prev_register): Use trad_frame_prev_register.
6780 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6781 trad_frame", delete "regs" and "prev_sp".
6782 (prologue_find_regs): Use trad-frame.
6783 * trad-frame.h, trad-frame.c: New files.
6784
6785 2003-06-08 Mark Kettenis <kettenis@gnu.org>
6786
6787 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6788
6789 2003-06-07 Adam Fedor <fedor@gnu.org>
6790
6791 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6792 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6793 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6794 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
6795 resolve_msgsend_super, resolve_msgsend_super_stret):
6796 Use it.
6797
6798 2003-06-07 Andrew Cagney <cagney@redhat.com>
6799
6800 * symfile.h: Re-indent, clean up comments.
6801
6802 2003-06-07 Andrew Cagney <cagney@redhat.com>
6803
6804 * inferior.h (deprecated_write_sp): Replace
6805 generic_target_write_sp.
6806 * regcache.c (deprecated_write_sp): Replace
6807 generic_target_write_sp.
6808 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6809 * vax-tdep.c (vax_gdbarch_init): Update.
6810 * v850-tdep.c (v850_gdbarch_init): Update.
6811 * sparc-tdep.c (sparc_gdbarch_init): Update.
6812 * sh-tdep.c (sh_gdbarch_init): Update.
6813 * s390-tdep.c (s390_gdbarch_init): Update.
6814 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6815 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6816 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6817 * mcore-tdep.c (mcore_gdbarch_init): Update.
6818 * m68k-tdep.c (m68k_gdbarch_init): Update.
6819 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6820 * ia64-tdep.c (ia64_gdbarch_init): Update.
6821 * h8300-tdep.c (h8300_gdbarch_init): Update.
6822 * frv-tdep.c (frv_gdbarch_init): Update.
6823 * cris-tdep.c (cris_gdbarch_init): Update.
6824 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6825
6826 2003-06-07 Andrew Cagney <cagney@redhat.com>
6827
6828 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6829 Assert that PC_REGNUM is valid.
6830 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6831
6832 2003-06-07 Andrew Cagney <cagney@redhat.com>
6833
6834 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6835 * gdbarch.h, gdbarch.c: Regenerate.
6836 * mn10300-tdep.c: Include "gdb_assert.h".
6837 (mn10300_read_fp): New function.
6838 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6839 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6840 * ia64-tdep.c: Include "gdb_assert.h".
6841 (ia64_read_fp): New function.
6842 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6843 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6844 * regcache.c (generic_target_read_sp): Delete function.
6845 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6846 * inferior.h (generic_target_read_sp): Delete declaration.
6847 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6848 generic_target_read_sp.
6849 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6850 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6851 * sh-tdep.c (sh_gdbarch_init): Ditto.
6852 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6853 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6854
6855 2003-06-07 Andrew Cagney <cagney@redhat.com>
6856
6857 * gdbarch.sh: Comment each field of startup_gdbarch.
6858 * gdbarch.h, gdbarch.c: Re-generate.
6859
6860 2003-06-07 Andrew Cagney <cagney@redhat.com>
6861
6862 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6863 * gdbarch.h, gdbarch.c: Re-generate.
6864 * regcache.c: Update comments on read_pc et.al.
6865 (generic_target_read_pc): Delete function.
6866 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6867 * inferior.h (generic_target_read_pc): Delete declaration.
6868 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6869 generic_target_read_pc.
6870 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6871 * sh-tdep.c (sh_gdbarch_init): Ditto.
6872 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6873 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6874
6875 2003-06-07 Andrew Cagney <cagney@redhat.com>
6876
6877 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6878 "index" with "special_local_sect". Use strcmp instead of STREQ.
6879 Append period to coments.
6880
6881 2003-06-06 Mark Mitchell <mark@codesourcery.com>
6882
6883 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6884 (elfstab_offset_sections): Likewise.
6885 * gdb-stabs.h (stab_section_info): Likewise.
6886 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6887 * objfiles.c (objfile_relocate): Likewise.
6888 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6889 * remote.c (get_offsets): Likewise.
6890 (remote_cisco_objfile_relocate): Likewise.
6891 * somread.c (som_symfile_offsets): Likewise.
6892 * symfile.c (alloc_section_addr_info): New function.
6893 (build_section_addr_info_from_section_tab): Use it.
6894 (free_section_addr_info): Adjust.
6895 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6896 (syms_from_objfile): Allocate local_addr dynamically.
6897 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6898 dynamically.
6899 (add_symbol_file_command): Allocate sect_opts dynamically.
6900 (reread_symbols): Avoid use of SECT_OFF_MAX.
6901 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6902 (alloc_section_addr_info): Declare it.
6903 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6904 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6905 dynamically.
6906 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
6907
6908 2003-06-06 Andrew Cagney <cagney@redhat.com>
6909
6910 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6911 (d10v_frame_unwind_cache): Do not set "return_pc".
6912
6913 2003-06-06 Michael Snyder <msnyder@redhat.com>
6914
6915 * h8300-tdep.c: Make tidy (long lines).
6916
6917 2003-06-06 Michal Ludvig <mludvig@suse.cz>
6918
6919 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
6920 to regcache_collect().
6921
6922 2003-06-05 J. Brobecker <brobecker@gnat.com>
6923
6924 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6925 pc_in_sigtramp multiarch method.
6926 (hppa_hpux_som_init_abi): Use it.
6927 (hppa_hpux_elf_init_abi): Likewise.
6928 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6929 macro has been multiarched.
6930 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6931 macro here, as hppa64 isn't multiarched yet.
6932
6933 2003-06-05 Andrew Cagney <cagney@redhat.com>
6934
6935 * Makefile.in (value_h): Add $(frame_h).
6936 * value.h: Include "frame.h".
6937 (struct value): Replace "frame_addr" with "frame_id".
6938 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6939 * values.c (allocate_value): Use VALUE_FRAME_ID.
6940 (value_copy): Use VALUE_FRAME_ID.
6941 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6942 * valops.c (value_assign): Update. Use frame_find_by_id.
6943
6944 2003-06-05 Michal Ludvig <mludvig@suse.cz>
6945
6946 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6947 in each pass.
6948
6949 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6950
6951 * thread-db.c (check_event): For create/death event breakpoints,
6952 loop through all messages to ensure that we read the message
6953 corresponding to the breakpoint we are at.
6954
6955 2003-06-04 Michael Snyder <msnyder@redhat.com>
6956
6957 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6958
6959 2003-06-04 Mark Kettenis <kettenis@gnu.org>
6960
6961 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6962 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6963 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6964 when handling .eh_frame sections.
6965
6966 2003-06-04 J. Brobecker <brobecker@gnat.com>
6967
6968 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6969 prepare_to_proceed procedure instead of the hppa-specific one.
6970 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6971
6972 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
6973
6974 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6975 * config.in: Regenerated.
6976 * configure.in: Add test for syscall function and check for
6977 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6978 * configure: Regenerated.
6979 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6980 <sys/syscall.h>.
6981 (kill_lwp): New function that uses tkill syscall or
6982 uses kill, depending on whether threading model is nptl or not.
6983 All callers of kill() changed to use kill_lwp().
6984 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6985 see if all threads have already exited in the nptl model.
6986 (stop_and_resume_callback): New callback function used by the
6987 lin_lwp_wait thread exit handling code.
6988 (stop_wait_callback): Check for threads already having exited and
6989 delete such threads fromt the lwp list when discovered.
6990 (stop_callback): Don't assert retcode of kill call.
6991
6992 Roland McGrath <roland@redhat.com>
6993 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6994 nptl libthread_db.
6995
6996 2003-06-03 Richard Henderson <rth@redhat.com>
6997
6998 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6999 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7000 (alpha_sigtramp_frame_prev_register): Likewise.
7001 (alpha_heuristic_frame_prev_register): Likewise.
7002 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7003
7004 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
7005 alpha-specific register id names.
7006 (alpha_mdebug_frame_unwind_cache): Likewise.
7007 (alpha_mdebug_frame_prev_register): Likewise.
7008
7009 2003-06-03 Richard Henderson <rth@redhat.com>
7010
7011 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7012 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7013 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7014 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7015 unwind routines.
7016 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7017 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7018 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7019
7020 * alpha-linux-tdep.c: Remove unnecessary includes.
7021 * Makefile.in (alpha-linux-tdep.o): Update.
7022
7023 2003-06-03 Richard Henderson <rth@redhat.com>
7024
7025 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7026 (alphabsd_fill_fpreg): Likewise.
7027
7028 2003-06-03 J. Brobecker <brobecker@gnat.com>
7029
7030 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7031 references to struct frame_info fields by calls to the equivalent
7032 accessors. Necessary now that frame_info is opaque.
7033
7034 2003-06-03 J. Brobecker <brobecker@gnat.com>
7035
7036 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7037 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7038 structure, field no longer exists.
7039
7040 2003-06-03 J. Brobecker <brobecker@gnat.com>
7041
7042 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7043 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7044
7045 2003-06-03 J. Brobecker <brobecker@gnat.com>
7046
7047 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7048 references to struct frame_info fields by calls to the equivalent
7049 accessors. Necessary now that frame_info is opaque.
7050
7051 2003-06-03 J. Brobecker <brobecker@gnat.com>
7052
7053 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7054 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7055 structure, field no longer exists.
7056
7057 2003-06-03 Theodore A. Roth <troth@openavr.org>
7058
7059 * remote.c (init_remote_state): Compute sizeof_g_packet by
7060 accumulation of the size of all registers instead of blindly using
7061 DEPRECATED_REGISTER_BYTES.
7062
7063 2003-06-03 Michael Snyder <msnyder@redhat.com>
7064
7065 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7066 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7067 for h8300sx.
7068
7069 2003-06-03 J. Brobecker <brobecker@gnat.com>
7070
7071 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7072 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7073
7074 2003-06-03 Andrew Cagney <cagney@redhat.com>
7075
7076 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7077 (sparc_convert_to_raw): Delete function.
7078 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7079 register_convert_to_virtual.
7080
7081 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7082
7083 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7084 layer if not dealing with a statically-linked threaded program.
7085
7086 2003-06-03 Kris Warkentin <kewarken@qnx.com>
7087
7088 * solib.c (solib_open): Update comment to reflect actual search order.
7089
7090 2003-06-03 Andrew Cagney <cagney@redhat.com>
7091
7092 * frame.c (get_frame_memory_signed): New function.
7093 (get_frame_memory, get_frame_memory_unsigned): New function.
7094 (get_frame_arch): New function.
7095 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7096 (get_frame_memory, get_frame_unsigned_memory): Declare.
7097 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7098 get_frame_memory_unsigned and get_frame_arch.
7099 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7100
7101 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7102
7103 * MAINTAINERS (write after approval): Add myself.
7104
7105 2003-06-03 Jim Blandy <jimb@redhat.com>
7106
7107 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7108 elements of gregset_t are 64 bits each, but access registers
7109 are still 32 bits, so they're packed two per gregset_t
7110 element. Unpack/pack them properly.
7111
7112 2003-06-02 David Carlton <carlton@bactrian.org>
7113
7114 * linespec.c (find_methods): Break out code into
7115 add_matching_methods and add_constructors.
7116 (add_matching_methods): New.
7117 (add_constructors): Ditto.
7118
7119 2003-06-02 Andrew Cagney <cagney@redhat.com>
7120
7121 * sparc-tdep.c (sparc_print_registers): Delete call to
7122 REGISTER_CONVERTIBLE.
7123 (sparc_gdbarch_init): Do not set register_convertible.
7124 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7125 * frv-tdep.c (frv_gdbarch_init): Ditto.
7126 * cris-tdep.c (cris_gdbarch_init): Ditto.
7127
7128 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
7129
7130 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7131 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7132 (syms_from_objfile): Ditto.
7133
7134 2003-06-03 Andreas Schwab <schwab@suse.de>
7135
7136 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7137 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7138
7139 2003-06-02 Richard Henderson <rth@redhat.com>
7140
7141 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7142 a member of all_reggroup.
7143
7144 2003-06-02 Richard Henderson <rth@redhat.com>
7145
7146 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7147 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7148 (alpha_lds, alpha_sts): New.
7149 (alpha_convert_register_p): Change from _register_convertible.
7150 (alpha_register_to_value): Change from _convert_to_virtual;
7151 restructure and fail for type sizes other than 4 or 8.
7152 (alpha_value_to_register): Similarly.
7153 (alpha_extract_return_value): Use alpha_sts.
7154 (alpha_store_return_value): Use alpha_lds.
7155 (alpha_gdbarch_init): Update hooks.
7156
7157 2003-06-02 Richard Henderson <rth@redhat.com>
7158
7159 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7160 regnum identifiers.
7161 (alpha_sigtramp_register_address): Likewise.
7162
7163 2003-06-02 Richard Henderson <rth@redhat.com>
7164
7165 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7166 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7167 * alpha-tdep.h: Declare them.
7168
7169 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7170 Remove zerobuf. Don't error on UNIQUE.
7171 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7172 (ALPHA_REGSET_UNIQUE): Provide default.
7173 (supply_gregset): Use alpha_supply_int_regs.
7174 (fill_gregset): Use alpha_fill_int_regs.
7175 (supply_fpregset): Use alpha_supply_fp_regs.
7176 (fill_fpregset): Use alpha_fill_fp_regs.
7177 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7178 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7179 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7180 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7181 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7182 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7183
7184 2003-06-02 Richard Henderson <rth@redhat.com>
7185
7186 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7187
7188 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7189 (alpha_store_return_value): Likewise.
7190
7191 2003-06-02 David Carlton <carlton@math.stanford.edu>
7192
7193 * block.c (contained_in): Add 'const' to arguments.
7194 (block_function): Ditto.
7195 * block.h: Update declarations for block_function and
7196 contained_in.
7197
7198 2003-06-02 David Carlton <carlton@math.stanford.edu>
7199
7200 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7201 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7202 * p-valprint.c (pascal_val_print): Ditto.
7203 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7204
7205 2003-06-02 Richard Henderson <rth@redhat.com>
7206
7207 * alpha-tdep.c (alpha_push_dummy_call): Use
7208 builtin_type_ieee_double_little instead of builtin_type_double.
7209
7210 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7211 sign-extension of 32-bit values.
7212 (alpha_store_return_value): Similarly.
7213
7214 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7215 (alpha_extract_return_value): Likewise.
7216 (alpha_store_return_value): Likewise.
7217
7218 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7219 (alpha_store_return_value): Error on IEEE Quad floats.
7220
7221 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7222 (alpha_extract_struct_value_address): Likewise.
7223 (alpha_store_return_value): Likewise.
7224 (alpha_store_struct_return): Remove.
7225 (alpha_gdbarch_init): Update hook registration to match.
7226
7227 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7228 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7229 macros where appropriate.
7230 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7231 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7232
7233 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7234 for SP, GP; void_func_ptr for PC; non-language-specific types
7235 for all others.
7236 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7237
7238 2003-06-02 Richard Henderson <rth@redhat.com>
7239
7240 * top.h (lim_at_start): Declare.
7241 * main.c (captured_main): Set it.
7242 * top.c (lim_at_start): Define.
7243 (command_loop): Use it instead of &environ.
7244 * event-top.c (command_handler): Likewise.
7245
7246 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7247
7248 * mipsnbsd-tdep.c: Update copyright years.
7249 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7250
7251 2003-06-01 Richard Henderson <rth@redhat.com>
7252
7253 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7254 (alpha-linux-tdep.o): Update dependencies.
7255 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7256 * alpha-mdebug-tdep.c: Remove unneeded includes.
7257
7258 2003-06-01 Richard Henderson <rth@redhat.com>
7259
7260 * alpha-tdep.c (alpha_register_reggroup_p): New.
7261 (alpha_gdbarch_init): Register it.
7262
7263 2003-06-02 Andrew Cagney <cagney@redhat.com>
7264
7265 * dwarfread.c: Eliminate "register"
7266 (decode_die_type): Eliminate assignment within "if".
7267 (struct_type, decode_array_element_type): Ditto.
7268 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7269 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7270 (decode_modified_type, completedieinfo): Ditto.
7271 * block.c: Eliminate "register".
7272 (blockvector_for_pc_sect): Eliminate assignment within "if".
7273 * cp-support.h (struct symbol): Opaque declaration.
7274 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7275
7276 2003-06-01 Richard Henderson <rth@redhat.com>
7277
7278 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7279 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7280
7281 2003-06-01 Adam Fedor <fedor@gnu.org>
7282
7283 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7284 * gdbarch.[ch]: Regenerate.
7285 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7286 (hppa_gdbarch_init): Set it in the gdbarch vector.
7287 * i386-tdep.c (i386_fetch_pointer_argument): New
7288 (i386_gdbarch_init): Set it into gdbarch.
7289 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7290 (rs6000_gdbarch_init): Set it in gdbarch.
7291 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7292 (sparc_gdbarch_init): Set it in gdbarch.
7293
7294 2003-06-01 Andrew Cagney <cagney@redhat.com>
7295
7296 * defs.h (extract_address): Delete declaration.
7297 * findvar.c (extract_address): Delete function.
7298 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7299 extract_address with the inline equivalent,
7300 extract_unsigned_integer.
7301 (xstormy16_extract_struct_value_address): Ditto.
7302 (xstormy16_pointer_to_address): Ditto.
7303 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7304 * v850-tdep.c (v850_push_arguments): Ditto.
7305 (v850_extract_return_value): Ditto.
7306 (v850_extract_struct_value_address): Ditto.
7307 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7308 (sparcnbsd_get_longjmp_target_64): Ditto.
7309 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7310 (get_longjmp_target): Ditto.
7311 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7312 (sh64_extract_struct_value_address): Ditto.
7313 (sh_push_arguments): Ditto.
7314 (sh64_push_arguments): Ditto.
7315 * remote-vxsparc.c (vx_read_register): Ditto.
7316 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7317 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7318 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7319 * mipsv4-nat.c (get_longjmp_target): Ditto.
7320 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7321 * mips-nat.c (get_longjmp_target): Ditto.
7322 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7323 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7324 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7325 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7326 * irix5-nat.c (get_longjmp_target): Ditto.
7327 * irix4-nat.c (get_longjmp_target): Ditto.
7328 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7329 (ia64_push_arguments): Ditto.
7330 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7331 * h8300-tdep.c (h8300_push_arguments): Ditto.
7332 (h8300_store_return_value): Ditto.
7333 (h8300_extract_struct_value_address): Ditto.
7334 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7335 (frv_push_arguments): Ditto.
7336 * avr-tdep.c (avr_pointer_to_address): Ditto.
7337 (avr_push_arguments): Ditto.
7338 * arm-tdep.c (arm_push_dummy_call): Ditto.
7339 (arm_get_longjmp_target): Ditto.
7340 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7341 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7342 (alpha_get_longjmp_target): Ditto.
7343
7344 * solib-irix.c (extract_mips_address): Inline extract_address,
7345 replacing it with extract_signed_integer.
7346 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7347 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7348 (first_link_map_member, open_symbol_file_object): Ditto.
7349 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7350 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7351 (LM_NEXT, LM_NAME): Ditto.
7352
7353 2003-06-01 Richard Henderson <rth@redhat.com>
7354
7355 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7356 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7357 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7358 (alpha_cannot_store_register): Likewise.
7359 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7360 * alpha-nat.c (supply_gregset): Likewise.
7361 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7362
7363 2003-06-01 Andrew Cagney <cagney@redhat.com>
7364
7365 * infcall.c (call_function_by_hand): Update comment on
7366 DEPRECATED_DUMMY_WRITE_SP.
7367
7368 * mips-tdep.c (mips_gdbarch_init): Do not set
7369 deprecated_dummy_write_sp.
7370 (mips_eabi_push_dummy_call): Set the SP register.
7371 (mips_o64_push_dummy_call): Set the SP register.
7372 (mips_o32_push_dummy_call): Set the SP register.
7373 (mips_n32n64_push_dummy_call): Set the SP register.
7374
7375 2003-06-01 Richard Henderson <rth@redhat.com>
7376
7377 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7378 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7379 (supply_gregset): Likewise.
7380 * alpha-tdep.c (alpha_store_return_value): Likewise.
7381 (alpha_get_longjmp_target): Likewise.
7382 (alpha_register_name): Constify array.
7383 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7384 deprecated_register_size, deprecated_register_bytes,
7385 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7386 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7387 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7388
7389 2003-06-01 Richard Henderson <rth@redhat.com>
7390
7391 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7392 from arg_reg_buffer to regcache to avoid double conversion.
7393
7394 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7395
7396 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7397 SP_REGNUM.
7398 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7399 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7400
7401 2003-06-01 Richard Henderson <rth@redhat.com>
7402
7403 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7404 (decode_frame_entry): Set it. Skip FDE augmentation.
7405
7406 2003-06-01 Richard Henderson <rth@redhat.com>
7407
7408 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7409 not overlapping PC_REGNUM.
7410
7411 2003-06-01 Richard Henderson <rth@redhat.com>
7412
7413 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7414 alpha_push_arguments. Don't dump argument register data to
7415 the target stack. Fix float and 128-bit long double semantics.
7416 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7417 (alpha_fix_call_dummy): Remove.
7418 (alpha_call_dummy_words): Remove.
7419 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7420
7421 2003-06-01 Richard Henderson <rth@redhat.com>
7422
7423 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7424
7425 2003-06-01 Andrew Cagney <cagney@redhat.com>
7426
7427 * mips-tdep.c (is_mips16_addr): New function.
7428 (make_mips16_addr, unmake_mips16_addr): New functions.
7429 (pc_is_mips16, mips_fetch_instruction): Use.
7430 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7431 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7432 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7433 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7434 TARGET_MIPS.
7435 * config/mips/tm-mips.h: Update copyright.
7436 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7437 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7438 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7439 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7440 (TM_PRINT_INSN_MACH): Delete.
7441 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7442
7443 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7444 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7445 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7446 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7447 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7448 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7449 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7450 mips*-*-riscos* and mips*-*-sysv* onto mips.
7451 * config/mips/mips64.mt: New file.
7452 * config/mips/mips.mt: New file.
7453 * config/mips/littlemips.mt: Delete file.
7454 * config/mips/decstation.mt: Delete file.
7455 * config/mips/vr4300el.mt: Delete file.
7456 * config/mips/vr5000el.mt: Delete file.
7457 * config/mips/vr5000.mt: Delete file.
7458 * config/mips/vr4100.mt: Delete file.
7459 * config/mips/vr4xxxel.mt: Delete file.
7460 * config/mips/vr4300.mt: Delete file.
7461 * config/mips/vr4xxx.mt: Delete file.
7462 * config/mips/bigmips.mt: Delete file.
7463 * config/mips/bigmips64.mt: Delete file.
7464 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7465 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7466 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7467 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7468 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7469 "tm-bigmips.h".
7470 * config/mips/tm-irix3.h: Ditto.
7471 * config/mips/tm-mipsv4.h: Ditto.
7472 * config/mips/tm-embed.h: Ditto.
7473 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7474 "tm-bigmips64.h".
7475 * config/mips/tm-vr5000el.h: Delete file.
7476 * config/mips/tm-tx39l.h: Delete file.
7477 * config/mips/tm-vr4300el.h: Delete file.
7478 * config/mips/tm-vr4xxxel.h: Delete file.
7479 * config/mips/tm-vr4300.h: Delete file.
7480 * config/mips/tm-vr4100.h: Delete file.
7481 * config/mips/tm-vr4xxx.h: Delete file.
7482 * config/mips/tm-vr5000.h: Delete file.
7483 * config/mips/tm-embedl64.h: Delete file.
7484 * config/mips/tm-embedl.h: Delete file.
7485 * config/mips/tm-embed64.h: Delete file.
7486 * config/mips/tm-bigmips64.h: Delete file.
7487 * config/mips/tm-bigmips.h: Delete file.
7488
7489 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7490
7491 Fix gdb/1216.
7492 * shnbsd-nat.c: Include "sh-tdep.h".
7493
7494 From Richard Henderson <rth@redhat.com>:
7495 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7496
7497 2003-05-31 Andrew Cagney <cagney@redhat.com>
7498
7499 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7500 forward declaration.
7501 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7502 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7503 (mips_find_saved_regs): Use set_reg_offset.
7504 (mips_frame_init_saved_regs): Delete function.
7505 (mips_pop_frame): Call mips_find_saved_regs instead of
7506 DEPRECATED_FRAME_INIT_SAVED_REGS.
7507
7508 2003-05-31 Andrew Cagney <cagney@redhat.com>
7509
7510 * mips-tdep.c (mips_gdbarch_init): Do not set
7511 deprecated_max_register_raw_size, register_virtual_size, and
7512 deprecated_max_register_virtual_size.
7513
7514 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7515
7516 * i386-tdep.c: Include "dwarf2-frame.h".
7517 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7518 * Makefile.in (i386-tdep.o): Update dependencies.
7519
7520 * dwarf2-frame.c, dwarf2-frame.h: New files.
7521 * Makefile.in (SFILES): Add dwarf2-frame.c.
7522 (dwarf2_frame_h): Define.
7523 (COMMON_OBS): Add dwarf2-frame.o.
7524 (dwarf2-frame.o): Add dependencies.
7525
7526 2003-05-31 Andreas Jaeger <aj@suse.de>
7527
7528 * x86-64-linux-nat.c: Fix comment.
7529
7530 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7531
7532 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7533 function signature.
7534
7535 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7536 have a sigcontext_addr handler.
7537 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7538 sigcontext_addr handler.
7539
7540 2003-05-31 Andrew Cagney <cagney@redhat.com>
7541
7542 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7543 (print_fp_register_row): Replace do_fp_register_row.
7544 (mips_print_fp_register): Add "file" and "frame" parameters.
7545 (mips_print_register): Add "file" and "frame" parameters.
7546 (mips_print_registers_info): Replace mips_do_registers_info.
7547 (mips_gdbarch_init): Set print_registers_info instead of
7548 deprecated_do_registers_info.
7549 (mips_read_fp_register_single): Add "frame" parameter.
7550 (mips_read_fp_register_double): Add "frame" parameter.
7551
7552 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7553
7554 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7555 Fixes a bug where GDB would print the wrong register names for
7556 targets without SSE.
7557
7558 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7559 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7560 registers.
7561
7562 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7563 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7564 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7565 TDEP->sc_sp_offset.
7566
7567 From Michal Ludvig <mludvig@suse.cz>:
7568 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7569 and `sc_num_regs'.
7570 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7571 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7572 I386_ST0_REGNUM): Move here from...
7573 * i386-tdep.c: ... here.
7574 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7575 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7576 registers if possible.
7577 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7578 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7579 Remove variables.
7580 (i386bsd_sc_reg_offset): New variable.
7581 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7582 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7583 TDEP->sc_sp_offset.
7584 (i386fbsd_sc_reg_offset): New variable.
7585 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7586 TDEP->sc_num_regs.
7587 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7588 variables.
7589 (i386fbsd4_sc_reg_offset): New variable.
7590 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7591 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7592 TDEP->sc_sp_offset.
7593 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7594 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7595 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7596 Remove variables.
7597 (i386nbsd_sc_reg_offset): New variable.
7598 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7599 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7600 TDEP->sc_sp_offset.
7601 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7602 Remove variables.
7603 (i386obsd_sc_reg_offset): New variable.
7604 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7605 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7606 TDEP->sc_sp_offset.
7607 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7608 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7609 for frame pointer offset in `struct sigcontext'.
7610
7611 2003-05-31 Andrew Cagney <cagney@redhat.com>
7612
7613 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7614 architecture methods call_dummy_words, sizeof_call_dummy_words,
7615 push_return_address, store_struct_return, and fix_call_dummy. Set
7616 push_dummy_call instead of deprecated_push_arguments.
7617 (mips_store_struct_return): Delete function.
7618 (mips_fix_call_dummy): Delete function.
7619 (mips_push_return_address): Delete function.
7620 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7621 RA_REGNUM and T9_REGNUM.
7622 (mips_n32n64_push_dummy_call): Ditto for
7623 mips_n32n64_push_arguments.
7624 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7625 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7626
7627 2003-05-31 Andrew Cagney <cagney@redhat.com>
7628
7629 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7630 "dummy_addr" to "bp_addr".
7631 * infcall.c (call_function_by_hand): Pass "funaddr" to
7632 gdbarch_push_dummy_call.
7633 * gdbarch.h, gdbarch.c: Re-generate.
7634 * i386-tdep.c (i386_push_dummy_call): Update.
7635 * arm-tdep.c (arm_push_dummy_call): Update.
7636 * d10v-tdep.c (d10v_push_dummy_call): Update.
7637
7638 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7639
7640 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7641 variable declarations.
7642 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7643 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7644 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7645 x86_64_init_frame_pc, x86_64_init_frame_pc,
7646 x86_64_function_has_prologue): Remove prototypes.
7647 (X86_64_NUM_GREGS): New define.
7648 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7649 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7650 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7651 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7652 XMM1_REGNUM): Remove defines.
7653 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7654 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7655 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7656 X86_64_XMM1_REGNUM): New defines.
7657 (struct x86_64_register_info): Renamed from `struct
7658 register_info'. Remove `size' member.
7659 (x86_64_register_info_table): Remove variable.
7660 (x86_64_register_info): New variable.
7661 (X86_64_NUM_REGS): New define.
7662 (X86_64_NUM_GREGS): Remove define.
7663 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7664 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7665 Remove variables.
7666 (x86_54_dwarf2_reg_to_regnum): Remove function.
7667 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7668 (x86_64_dwarf_reg_to_regnum): New function.
7669 (x86_64_register_name): Rewrite.
7670 (x86_64_register_raw_size): Remove function.
7671 (x86_64_register_byte_table): Remove variable.
7672 (x86_64_register_byte): Remove function.
7673 (x86_64_register_virtual_type): Remove function.
7674 (x86_64_register_type): New function.
7675 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7676 x86_64_register_convert_to_raw): Remove functions.
7677 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7678 (x86_64_use_struct_convention): Make static. Adjust for renamed
7679 defines.
7680 (x86_64_frame_init_saved_regs): Remove function.
7681 (x86_64_push_arguments): Make static. Change to accept a regcache
7682 as argument.
7683 (x86_64_store_return_value, x86_64_extract_return_value): Make
7684 static. Rewrite based on i386 counterparts.
7685 (x86_64_push_dummy_call): New function.
7686 (X86_64_NUM_SAVED_REGS): New define.
7687 (x86_64_register_number): Remove function.
7688 (x86_64_store_struct_return): Remove function.
7689 (x86_64_frameless_function_invocation,
7690 x86_64_function_has_prologue): Remove functions.
7691 (PROLOG_BUFSIZE): Remove define.
7692 (struct x86_64_frame_cache): New structure.
7693 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7694 x86_64_frame_cache, x86_64_frame_this_id,
7695 x86_64_frame_prev_register, x86_64_frame_p,
7696 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7697 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7698 functions.
7699 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7700 variables.
7701 (x86_64_skip_prologue): Rewrite in terms of
7702 x86_64_analyze_prologue.
7703 (x86_64_frame_base_address): New function.
7704 (x86_64_frame_base): New variable.
7705 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7706 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7707 set deprecated_fp_regnum, deprecated_register_size,
7708 deprecated_register_bytes, register_raw_size, register_byte,
7709 register_virtual_type, register_convertiable,
7710 register_convert_to_virtual, convert_to_raw,
7711 deprecated_get_saved_register, deprecated_target_read_fp,
7712 deprecated_push_arguments, deprecated_push_return_address,
7713 deprecated_pop_frame, deprecated_store_struct_return,
7714 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7715 frameless_function_invocation, deprecated_frame_saved_pc,
7716 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7717 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7718 deprecated_init_frame_pc and virtual_frame_pointer. Call
7719 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7720 and x86_64_frame_p. Call frame_base_set_default to register
7721 x86_64_frame_base.
7722 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7723 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7724 (_initialize_x86_64_tdep): Remove function.
7725 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7726 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7727 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7728 define.
7729 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7730 (x86_64_linux_sigcontext_addr): Rewrite.
7731 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7732 x86_64_linux_frame_saved_pc): Remove functions.
7733 (x86_64_linux_pc_in_sigtramp): Renamed from
7734 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7735 trampoline.
7736 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7737 Remove_functions.
7738 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7739 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7740 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7741 (x86_64_regmap): Rename to regmap.
7742 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7743 x86_64_num_gregs.
7744 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7745 x86_64_regmap.
7746 (x86_64_fxsave_offset): Remove function.
7747 (supply_fpregset): Simply call x86_64_supply_fxsave.
7748 (fill_fpregset): Simply call x86_64_fill_fxsave.
7749 (fetch_inferior_registers, store_inferior_registers): Avoid
7750 asignment in if-statement.
7751 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7752 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7753 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7754 (fetch_core_registers): Remove function.
7755 (linux_elf_core_fns): Remove.
7756 (offsetoff): Don't define.
7757 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7758 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7759 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7760 add core-regset.o.
7761 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7762 protection against multiple includes instead of NM_X86_64_h. Add
7763 various comments. Include "config/nm-linux.h". Don't include
7764 <signal.h>.
7765 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7766 GET_THREAD_SIGNALS): Remove defines.
7767 (x86_64_register_u_addr, kernel_u_size,
7768 lin_thread_get_thread_signals): Remove prototypes.
7769 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7770 [HAVE_LINK_H]: Don't include "solib.h".
7771 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7772 * config/i386/tm-x86-64linux.h: Fix comments.
7773 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7774 x86-64-tdep.o): Update dependencies.
7775
7776 2003-05-30 Andrew Cagney <cagney@redhat.com>
7777
7778 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7779 Change parameter type to a "struct regcache *".
7780
7781 * gdbarch.sh: Regardless of the multi-arch level, always define
7782 the macro when not already defined.
7783 * gdbarch.h, gdbarch.c: Re-generate.
7784
7785 2003-05-30 Richard Henderson <rth@redhat.com>
7786
7787 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7788 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7789 (alpha_mdebug_frame_this_id): Likewise.
7790 (alpha_mdebug_frame_prev_register): Likewise.
7791 (alpha_mdebug_frame_base_address): Likewise.
7792 (alpha_mdebug_frame_locals_address): Likewise.
7793 (alpha_mdebug_frame_args_address): Likewise.
7794 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7795 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7796 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7797 loop increment.
7798 (alpha_heuristic_frame_this_id): Make static.
7799 (alpha_heuristic_frame_prev_register): Likewise.
7800 (alpha_heuristic_frame_base_address): Likewise.
7801 * alpha-tdep.h: Update.
7802
7803 2003-05-30 Mark Kettenis <kettenis@gnu.org>
7804
7805 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7806 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7807 defenitions.
7808 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7809 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7810 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7811 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7812 I386_ST0_REGNUM): New defines.
7813 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7814 codestream_get): Remove define.
7815 (codestream_next_addr, condestream_addr, condestream_buf,
7816 codestream_off, codestream_cnt): Remove variables.
7817 (codestream_fill, codestream_seek, codestream_read): Remove
7818 functions.
7819 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7820 functionality.
7821 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7822 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7823 i386_frame_saved_pc, i386_saved_pc_after_call,
7824 i386_frame_num_args, i386_frame_init_saved_regs,
7825 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7826 i386_push_arguments): Remove functions.
7827 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7828 functionality. Use i386_analyze_prologue instead of
7829 i386_get_frame_setup.
7830 (I386_NUM_SAVED_REGS): New define.
7831 (struct i386_frame_cache): New structure.
7832 (i386_alloc_frame_cache, i386_analyze_struct_return,
7833 i386_skip_probe, i386_analyze_frame_setup,
7834 i386_analyze_register_saves, i386_analyze_prologue,
7835 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7836 i386_frame_prev_register, i386_sigtramp_frame_cache,
7837 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7838 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7839 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7840 New functions.
7841 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7842 New variables.
7843 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7844 I386_EAX_REGNUM and I386_EDX_REGNUM.
7845 (i386_extract_return_value, i386_store_return_value): Use
7846 I386_ST0_REGNUM where appropriate.
7847 (i386_extract_struct_value_address): Rewrite to use extract_address.
7848 (i386_svr4_pc_in_sigtramp): Add comment.
7849 (i386_svr4_sigcontext_addr): Rewrite.
7850 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7851 TDEP->sc_sp_offset.
7852 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7853 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7854 of new defines. Set push_dummy_call, don't set
7855 deprecated_push_arguments, deprecated_push_return_address,
7856 deprecated_pop_frame. Don't set parm_boundary. Don't set
7857 deprecated_frame_chain, deprecated_frame_saved_pc,
7858 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7859 save_dummy_frame_tos, unwind_pc. Call
7860 frame_unwind_append_predicate and frame_base_set_default. Don't
7861 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7862 Don't set frameless_function_invocation. Don't set
7863 deprecated_register_bytes, deprecated_register_size,
7864 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7865 * i386-linux-tdep.c: Fix formatting in some comments.
7866 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7867 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7868 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7869 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7870 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7871 redundant parentheses.
7872 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7873 (i386_linux_sigcontext_addr): Use it. Rewrite.
7874 (find_minsym_and_objfile): Change name of second argument.
7875 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7876 changed. Use frame_pc_unwind instead of
7877 DEPRECATED_SAVED_PC_AFTER_CALL.
7878 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7879 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7880 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7881 unwinder.
7882 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7883 "dummy-frame.h".
7884 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7885 (_initialize_i386_cygwin_tdep): New prototype.
7886 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7887 deprecated_frame_chain_valid.
7888 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7889 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7890 Rely on the SVR4 defaults.
7891 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7892 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7893
7894 2003-05-30 Andrew Cagney <cagney@redhat.com>
7895
7896 * infcall.c (call_function_by_hand): Always call
7897 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7898
7899 2003-05-30 Richard Henderson <rth@redhat.com>
7900
7901 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7902 increment.
7903
7904 2003-05-29 Jim Blandy <jimb@redhat.com>
7905
7906 Use gdbarch methods for solib stuff on PowerPC Linux.
7907 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7908 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7909 show through.
7910 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7911 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7912 giving the same effect as the #definitions above.
7913
7914 2003-05-29 Adam Fedor <fedor@gnu.org>
7915
7916 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7917 (find_implementation_from_class): Replace it with the standard
7918 case i.e. do nothing.
7919
7920 2003-05-29 Richard Henderson <rth@redhat.com>
7921
7922 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7923 (alpha_linux_sigtramp_offset): Use it. Make static.
7924 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7925 update for new frame model.
7926 * alpha-mdebug-tdep.c: New file.
7927 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7928 (alpha_osf1_init_abi): Install it.
7929 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7930 (linked_proc_desc_table): Remove.
7931 (alpha_frame_past_sigtramp_frame): Remove.
7932 (alpha_dynamic_sigtramp_offset): Remove.
7933 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7934 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7935 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7936 (push_sigtramp_desc): Remove.
7937 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7938 (alpha_cannot_store_register): Likewise.
7939 (alpha_sigcontext_addr): Remove.
7940 (alpha_find_saved_regs): Remove.
7941 (alpha_frame_init_saved_regs): Remove.
7942 (alpha_init_frame_pc_first): Remove.
7943 (read_next_frame_reg): Remove.
7944 (alpha_frame_saved_pc): Remove.
7945 (alpha_saved_pc_after_call): Remove.
7946 (temp_proc_desc, temp_saved_regs): Remove.
7947 (alpha_about_to_return): Remove.
7948 (cached_proc_desc): Remove.
7949 (alpha_frame_chain): Remove.
7950 (alpha_print_extra_frame_info): Remove.
7951 (alpha_init_extra_frame_info): Remove.
7952 (alpha_frame_locals_address): Remove.
7953 (alpha_frame_args_address): Remove.
7954 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7955 (alpha_push_dummy_frame): Remove.
7956 (alpha_pop_frame): Remove.
7957 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7958 (alpha_read_insn): New.
7959 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7960 for different insn encodings.
7961 (alpha_in_lenient_prologue): Remove.
7962 (struct alpha_sigtramp_unwind_cache): New.
7963 (alpha_sigtramp_frame_unwind_cache): New.
7964 (alpha_sigtramp_register_address): New.
7965 (alpha_sigtramp_frame_this_id): New.
7966 (alpha_sigtramp_frame_prev_register): New.
7967 (alpha_sigtramp_frame_unwind): New.
7968 (alpha_sigtramp_frame_p): New.
7969 (struct alpha_heuristic_unwind_cache): New.
7970 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7971 don't count nop insns that occur between functions.
7972 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7973 heuristic_proc_desc, but without the mdebug wrapping.
7974 (alpha_heuristic_frame_this_id): New.
7975 (alpha_heuristic_frame_prev_register): New.
7976 (alpha_heuristic_frame_unwind): New.
7977 (alpha_heuristic_frame_p): New.
7978 (alpha_heuristic_frame_base_address): New.
7979 (alpha_heuristic_frame_base): New.
7980 (alpha_unwind_dummy_id): New.
7981 (alpha_unwind_pc): New.
7982 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7983 frame related deprecated initializations; install replacements.
7984 (alpha_dump_tdep): Remove.
7985 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7986 (alpha_read_insn, alpha_after_prologue,
7987 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7988 alpha_heuristic_frame_prev_register,
7989 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7990 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7991 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7992 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7993
7994 2003-05-29 Andrew Cagney <cagney@redhat.com>
7995
7996 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7997 dependant on the availability of ASSERT_FUNCTION.
7998 (ASSERT_FUNCTION): Do not define when there is no function name.
7999
8000 2003-05-29 Kevin Buettner <kevinb@redhat.com>
8001
8002 From Jimi X <jimix@watson.ibm.com>:
8003 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8004
8005 2003-05-28 Jim Blandy <jimb@redhat.com>
8006
8007 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8008 argument to ptrace to int; the system headers should give it the
8009 right type, and pointers don't fit in ints on powerpc64-*-*.
8010
8011 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8012
8013 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8014 DW_TAG_catch_block.
8015
8016 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8017
8018 * stabsread.c (dbx_lookup_type): Make static.
8019 (read_type): Ditto.
8020 (add_undefined_type): Ditto.
8021 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8022 not export.
8023
8024 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8025
8026 * hpread.c (hpread_has_name): Make static.
8027 (hpread_psymtab_to_symtab): Ditto.
8028 (file_exists): Ditto.
8029 (hpread_call_pxdb): Ditto.
8030 (hpread_pxdb_needed): Ditto.
8031 (hpread_quick_traverse): Ditto.
8032 (hpread_get_header): Ditto.
8033 (hpread_get_lntt): Ditto.
8034 (hpread_get_slt): Ditto.
8035 (class_of): Ditto.
8036
8037 2003-05-25 Andreas Schwab <schwab@suse.de>
8038
8039 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8040 stack_align and deprecated_extra_stack_alignment_needed.
8041 (m68k_stack_align): Delete.
8042
8043 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8044 (m68k_register_virtual_size): Likewise.
8045 (altos_skip_prologue): Remove obsolete function.
8046 (isi_frame_num_args): Likewise.
8047 (news_frame_num_args): Likewise.
8048 (m68k_fix_call_dummy): Make static.
8049 (m68k_push_dummy_frame): Likewise.
8050 (m68k_pop_frame): Likewise.
8051 (m68k_skip_prologue): Likewise.
8052 (m68k_frame_init_saved_regs): Likewise.
8053 (m68k_saved_pc_after_call): Likewise.
8054 (m68k_get_longjmp_target): Make multi-arch.
8055 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8056 structure. Register m68k_get_longjmp_target if enabled.
8057 * m68k-tdep.h (struct gdbarch_tdep): Define.
8058 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8059
8060 * Makefile.in (config.status): Also depend on configure.tgt
8061 and configure.host.
8062 (m68klinux-tdep.o): Update dependencies.
8063 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8064 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8065 (M68K_LINUX_JB_PC): Define.
8066 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8067 and take additional parameter.
8068 (m68k_linux_sigtramp_saved_pc): Update.
8069 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8070 m68k_linux_pc_in_sigtramp, in_plt_section,
8071 find_solib_trampoline_target.
8072 * config/m68k/tm-linux.h: Don't include any tm headers.
8073 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8074 (JB_ELEMENT_SIZE): Likewise.
8075 (JB_PC): Likewise.
8076 (GET_LONGJMP_TARGET): Likewise.
8077 (IN_SIGTRAMP): Likewise.
8078 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8079
8080 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8081
8082 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8083 (sparc32_push_arguments): Re-implement by calling
8084 sparc32_do_push_arguments.
8085
8086 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8087
8088 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8089 SPARC_O1_REGNUM): New defines.
8090 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8091 (sparc32_store_return_value): New function.
8092 (sparc_extract_struct_value_address): Rewrite to operate on a
8093 regcache.
8094 (sparc_gdbarch_init): Don't set
8095 deprecated_extract_struct_value_address. Set
8096 extract_struct_value_address instead. Don't set
8097 deprecated_extract_return_value and deprecated_store_return_value
8098 for 32-bit targets. Set extract_return_value and
8099 store_return_value instead.
8100 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
8101 DEPRECTAED_EXTRACT_RETURN_VALUE,
8102 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8103 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8104 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8105 (sparc_store_return_value): Remove prototype.
8106 (sparc32_store_return_value): New prototype.
8107 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8108 Adjust prototypes.
8109
8110 2003-05-24 Mark Kettenis <kettenis@gnu.org>
8111
8112 * sparcnbsd-tdep.c: Include "gdb_string.h".
8113
8114 2003-05-23 Andrew Cagney <cagney@redhat.com>
8115
8116 * p-valprint.c (pascal_val_print): Replace extract_address with
8117 the inline equivalent extract_unsigned_integer.
8118 * jv-valprint.c (java_value_print): Ditto.
8119 * ada-valprint.c (ada_val_print_1): Ditto.
8120 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8121
8122 2003-05-23 Theodore A. Roth <troth@openavr.org>
8123
8124 * blockframe.c (frameless_look_for_prologue): Remove unused
8125 after_prologue variable.
8126
8127 2003-05-23 Mark Kettenis <kettenis@gnu.org>
8128
8129 * blockframe.c (get_pc_function_start): Rewrite to avoid
8130 asignments in if-statements.
8131
8132 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8133
8134 Committed by Elena Zannoni <ezannoni@redhat.com>.
8135 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8136 files, don't relocate absolute symbols (and do use mst_abs).
8137
8138 2003-05-23 Andrew Cagney <cagney@redhat.com>
8139
8140 * objc-lang.c: Include "gdb_assert.h".
8141 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8142 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8143 (gdb_check, gdb_check_fatal): Delete functions.
8144 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8145 gdb_assert.
8146 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8147 * Makefile.in (objc-lang.o): Update dependencies.
8148
8149 2003-05-22 Ian Lance Taylor <ian@airs.com>
8150
8151 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8152 with fprintf_filtered, not fprintf_unfiltered.
8153
8154 2003-05-22 Andrew Cagney <cagney@redhat.com>
8155
8156 * stack.c (frame_info): Inline extract_address, replacing it with
8157 extract_unsigned_integer.
8158 * findvar.c (unsigned_pointer_to_address): Ditto.
8159 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8160 * dwarf2expr.c (dwarf2_read_address): Ditto.
8161 * frame.c (frame_pc_unwind): Update comment.
8162 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8163
8164 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8165
8166 * infptrace.c (detach): Call print_sys_errmsg rather than
8167 perror_with_name to issue warning message when errno is non-zero
8168 after calling ptrace detach.
8169
8170 2003-05-21 J. Brobecker <brobecker@gnat.com>
8171
8172 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8173 macro definitions from here...
8174 * hppa-tdep.c: ...to there.
8175
8176 2003-05-20 Kevin Buettner <kevinb@redhat.com>
8177
8178 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8179 register_ptrace_addr(). Fix all callers.
8180
8181 2003-05-21 Andreas Schwab <schwab@suse.de>
8182
8183 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8184 dependencies.
8185 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8186 end.
8187 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8188 (_initialize_m68k_linux_tdep): New function.
8189 (m68k_linux_frame_saved_pc): Make static.
8190 (m68k_linux_extract_return_value): Likewise.
8191 (m68k_linux_store_return_value): Likewise.
8192 (m68k_linux_extract_struct_value_address): Likewise.
8193 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8194 Remove.
8195 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8196 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8197 (DEPRECATED_FRAME_SAVED_PC): Remove.
8198
8199 2003-05-20 Kris Warkentin <kewarken@qnx.com>
8200
8201 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8202 regset numbering rather than our own.
8203
8204 2003-05-19 David Carlton <carlton@bactrian.org>
8205
8206 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8207
8208 2003-05-19 David Carlton <carlton@bactrian.org>
8209
8210 Partial fix for PR c++/827.
8211 * cp-support.h: Include symtab.h.
8212 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8213 * cp-namespace.c: Update contributors.
8214 (cp_lookup_symbol_nonlocal): New.
8215 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8216 (lookup_symbol_file): Ditto.
8217 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8218 * block.h: Declare block_scope, block_using, block_global_block.
8219 * block.c (block_scope): New.
8220 (block_using, block_global_block): Ditto.
8221 * Makefile.in (cp_support_h): Depend on symtab_h.
8222 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8223
8224 2003-05-19 David Carlton <carlton@bactrian.org>
8225
8226 * language.h (struct language_defn): Add 'la_value_of_this'
8227 and 'la_lookup_symbol_nonlocal' members.
8228 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8229 lookup_symbol_static, lookup_symbol_global,
8230 lookup_symbol_aux_block.
8231 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8232 if we should search fields of this and how to do static/global
8233 lookup.
8234 (lookup_symbol_aux_block): Make extern.
8235 (basic_lookup_symbol_nonlocal): New.
8236 (lookup_symbol_static, lookup_symbol_global): Ditto.
8237 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8238 'la_lookup_symbol_nonlocal' members.
8239 * c-lang.c (c_language_defn, cplus_language_defn)
8240 (asm_language_defn, minimal_language_defn): Ditto.
8241 * jv-lang.c (java_language_defn): Ditto.
8242 * language.c (unknown_language_defn, auto_language_defn)
8243 (local_language_defn): Ditto.
8244 * m2-lang.c (m2_language_defn): Ditto.
8245 * objc-lang.c (objc_language_defn): Ditto.
8246 * scm-lang.c (scm_language_defn): Ditto.
8247 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8248 * p-lang.c (pascal_language_defn): Ditto for both.
8249 * Makefile.in (f-lang.o): Depend on value_h.
8250 (p-lang.o): Ditto.
8251
8252 2003-05-19 David Carlton <carlton@bactrian.org>
8253
8254 * block.h: Declare block_static_block.
8255 * block.c (block_static_block): New.
8256 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8257 lookup_symbol_aux_local, calling block_static_block instead.
8258 (lookup_symbol_aux_local): Delete 'static_block' argument.
8259
8260 2003-05-19 David Carlton <carlton@bactrian.org>
8261
8262 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8263
8264 2003-05-19 Michal Ludvig <mludvig@suse.cz>
8265
8266 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8267 register numbers mapping.
8268
8269 2003-05-18 Adam Fedor <fedor@gnu.org>
8270
8271 * symtab.c (completion_list_objc_symbol): New function.
8272 (make_symbol_completion_list): Use it to add ObjC symbols
8273 when looking though the list.
8274 (language_search_unquoted_string): New function.
8275 (make_file_symbol_completion_list): Use it.
8276
8277 2003-05-18 Andreas Schwab <schwab@suse.de>
8278
8279 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8280 dependencies.
8281 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8282 as m68k_linux_extract_return_value.
8283 (DEPRECATED_STORE_RETURN_VALUE): Define as
8284 m68k_linux_store_return_value.
8285 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8286 m68k_linux_extract_struct_value_address.
8287 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8288 get_next_frame, get_frame_base, get_frame_pc.
8289 (m68k_linux_frame_saved_pc): Use get_frame_base.
8290 (m68k_linux_extract_return_value): New function.
8291 (m68k_linux_store_return_value): New function.
8292 (m68k_linux_extract_struct_value_address): New function.
8293 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8294
8295 * c-exp.y (typebase): Remove duplicate occurence of
8296 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8297 of lookup_signed_typename.
8298
8299 2003-05-18 Mark Kettenis <kettenis@gnu.org>
8300
8301 * dwarf2loc.c (find_location_expression): Change type of second
8302 argument to `size_t *'.
8303 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8304 for size variable.
8305
8306 2003-05-18 David Carlton <carlton@bactrian.org>
8307
8308 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8309 'linkage_name'. Add comment.
8310 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8311 'linkage_name'.
8312 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8313 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8314 (lookup_block_symbol): Ditto.
8315
8316 2003-05-16 Andrew Cagney <cagney@redhat.com>
8317
8318 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8319 * gdbarch.h, gdbarch.c: Re-generate.
8320 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8321 * TODO (REGISTER_BYTES): Delete reference.
8322 * alpha-tdep.c (alpha_gdbarch_init): Update.
8323 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8324 * x86-64-tdep.c (x86_64_init_abi): Update.
8325 * vax-tdep.c (vax_gdbarch_init): Update.
8326 * v850-tdep.c (v850_gdbarch_init): Update.
8327 * sparc-tdep.c (sparc_gdbarch_init): Update.
8328 * sh-tdep.c (sh_gdbarch_init): Update.
8329 * s390-tdep.c (s390_gdbarch_init): Update.
8330 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8331 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8332 (ns32k_gdbarch_init_32382): Update.
8333 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8334 * mcore-tdep.c (mcore_gdbarch_init): Update.
8335 * m68k-tdep.c (m68k_gdbarch_init): Update.
8336 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8337 * ia64-tdep.c (ia64_gdbarch_init): Update.
8338 * i386-tdep.c (i386_gdbarch_init): Update.
8339 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8340 * hppa-tdep.c (hppa_gdbarch_init): Update.
8341 * h8300-tdep.c (h8300_gdbarch_init): Update.
8342 * frv-tdep.c (frv_gdbarch_init): Update.
8343 * cris-tdep.c (cris_gdbarch_init): Update.
8344 * avr-tdep.c (avr_gdbarch_init): Update.
8345 * arm-tdep.c (arm_gdbarch_init): Update.
8346 * sparc-tdep.c (sparc_pop_frame): Update.
8347 * rs6000-tdep.c (rs6000_pop_frame): Update.
8348 * remote.c (init_remote_state): Update.
8349 (remote_prepare_to_store): Update.
8350 * remote-vx.c (vx_prepare_to_store): Update.
8351 * remote-sds.c (sds_fetch_registers): Update.
8352 (sds_prepare_to_store): Update.
8353 * remote-array.c: Update.
8354 * regcache.c (init_legacy_regcache_descr): Update.
8355 (init_regcache_descr): Update.
8356 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8357 (mips_o64_extract_return_value): Update.
8358 * irix5-nat.c (fetch_core_registers): Update.
8359 * irix4-nat.c (fetch_core_registers): Update.
8360 * i386-tdep.h: Update.
8361 * hppa-tdep.c (pa_do_registers_info): Update.
8362 (pa_do_strcat_registers_info): Update.
8363 * cris-tdep.c (cris_register_bytes_ok): Update.
8364 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8365 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8366 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8367 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8368 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8369 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8370 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8371 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8372 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8373 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8374 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8375 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8376 (REGISTER_BYTES_OK): Update.
8377 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8378 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8379
8380 2003-05-16 Ian Lance Taylor <ian@airs.com>
8381
8382 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8383 (vax_print_insn, print_insn_arg): Remove static functions.
8384 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8385 print_insn_vax from opcodes library.
8386 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8387
8388 2003-05-15 Andrew Cagney <cagney@redhat.com>
8389
8390 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8391 * target.h (memory_breakpoint_from_pc): Delete declaration.
8392 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8393 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8394 * monitor.c (monitor_insert_breakpoint): Use
8395 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8396 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8397 * gdbarch.h, gdbarch.c: Re-generate.
8398 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8399 (sparc_gdbarch_init): Set breakpoint_from_pc to
8400 sparc_breakpoint_from_pc.
8401 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8402 (BREAKPOINT_FROM_PC): Define.
8403 (sparc_breakpoint_from_pc): Declare.
8404 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8405 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8406 (BREAKPOINT_FROM_PC): Define.
8407 (BREAKPOINT): Delete macro.
8408 * target.h: Update comment.
8409 * s390-tdep.c (s390_gdbarch_init): Update comments.
8410 * remote.c: Update comments.
8411 * remote-mips.c: Update comments.
8412 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8413 * mem-break.c: Update comment.
8414 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8415 (ia64_memory_insert_breakpoint): Update.
8416 * config/sparc/tm-sparc.h: Update comment.
8417 * config/pa/tm-hppa64.h: Update comment.
8418 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8419 (rs6000_breakpoint_from_pc): Update.
8420 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8421 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8422 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8423 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8424 (mips_breakpoint_from_pc): Update.
8425 (mips_dump_tdep): Update.
8426
8427 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8428 * minsyms.c (lookup_minimal_symbol): Inline
8429 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8430
8431 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8432 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8433 * p-lang.c (pascal_printstr): Ditto.
8434 * objc-lang.c (objc_printstr): Ditto.
8435 * m2-lang.c (m2_printstr): Ditto.
8436 * jv-valprint.c (java_print_value_fields): Ditto.
8437 * f-lang.c (f_printstr): Ditto.
8438 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8439 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8440 for repeat_count_threshold.
8441 * Makefile.in (cp-valprint.o): Update dependencies.
8442
8443 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8444
8445 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8446 (examine_prologue): Support looking through leaf functions, knowing
8447 they start with mov r2,r12. Support skipping over indirect stores
8448 of the input registers. Upon hitting a non-nop branch instruction
8449 or predicated instruction, bail out by setting lim_pc to the current
8450 pc value in the loop. At the end, if the lim_pc value is still
8451 beyond our calculated value and we have trust_limit set,
8452 use the lim_pc value.
8453
8454 2003-05-15 Andrew Cagney <cagney@redhat.com>
8455
8456 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8457 generic_find_dummy_frame.
8458 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8459 (deprecated_generic_find_dummy_frame): Update.
8460 (deprecated_read_register_dummy): Update.
8461 * frame.c (deprecated_generic_get_saved_register): Update.
8462
8463 2003-05-15 Theodore A. Roth <troth@openavr.org>
8464
8465 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8466 (avr_gdbarch_init): Set breakpoint_from_pc method.
8467
8468 2003-05-15 Andrew Cagney <cagney@redhat.com>
8469
8470 * regcache.c (build_regcache): Set deprecated_register_valid
8471 directly.
8472 (deprecated_grub_regcache_for_register_valid): Delete function.
8473 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8474 declaration.
8475
8476 2003-05-15 David Carlton <carlton@bactrian.org>
8477
8478 Committed by Elena Zannoni <ezannoni@redhat.com>
8479 * symtab.c (lookup_symbol_aux): Delete calls to
8480 lookup_symbol_aux_minsyms.
8481 (lookup_symbol_aux_minsyms): Comment out function and
8482 prototype. Delete lookup by mangled name.
8483
8484 2003-05-14 Kevin Buettner <kevinb@redhat.com>
8485
8486 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8487 correctly indicate an empty stack and ``stack_allocated'' to the
8488 indicate the number of elements initially allocated.
8489 (dwarf_expr_grow_stack): Simplify method for computing new
8490 stack size. Don't loop infinitely if ``stack_len'' is zero.
8491 (execute_stack_op): Move ``ctx->in_reg'' initialization
8492 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8493 be used in conjuction with DW_OP_piece. Revise error message
8494 accordingly.
8495
8496 2003-05-14 Theodore A. Roth <troth@openavr.org>
8497
8498 * MAINTAINERS: Update my email address.
8499 * avr-tdep.c: Ditto.
8500
8501 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
8502
8503 * symtab.h (enum domain_enum): Rename from namespace_enum.
8504 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8505 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8506 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8507 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8508 TYPES_NAMESPACE, METHODS_NAMESPACE.
8509 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8510 (struct symbol, struct partial_symbol): Rename field
8511 'namespace_enum namespace' to 'domain_enum domain'.
8512 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8513 Delete old define kludge for namespace.
8514
8515 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8516 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8517 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8518 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8519 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8520 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8521 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8522 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8523 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8524 occurrences of the above.
8525
8526 2003-05-14 Ian Lance Taylor <ian@airs.com>
8527
8528 * Makefile.in (install-only): Use $(SHELL) when running
8529 mkinstalldirs.
8530
8531 2003-05-13 Ian Lance Taylor <ian@airs.com>
8532
8533 * MAINTAINERS (write after approval): Add myself.
8534
8535 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8536 second and third arguments.
8537 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8538 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8539
8540 2003-05-13 Andrew Cagney <cagney@redhat.com>
8541
8542 * defs.h (store_address): Delete declaration.
8543 findvar.c (store_address): Delete function.
8544 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8545 store_unsigned_integer.
8546 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8547 * v850-tdep.c (v850_push_arguments): Ditto.
8548 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8549 * sh-tdep.c (sh64_get_saved_register): Ditto.
8550 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8551 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8552 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8553 (mips_get_saved_register): Ditto.
8554 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8555 (find_func_descr, ia64_push_arguments): Ditto.
8556 * i386-tdep.c (i386_push_arguments): Ditto.
8557 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8558 * frv-tdep.c (frv_push_arguments): Ditto.
8559 * frame.c (legacy_saved_regs_prev_register): Ditto.
8560 (deprecated_generic_get_saved_register): Ditto.
8561 * findvar.c (unsigned_address_to_pointer): Ditto.
8562 * dwarf2read.c (dwarf2_const_value): Ditto.
8563 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8564 * alpha-tdep.c (alpha_push_arguments): Ditto.
8565
8566 2003-05-12 J. Brobecker <brobecker@gnat.com>
8567
8568 * NEWS: Mention that the hppa-hpux port has been partially
8569 multiarched (32bit ABIT only, so far).
8570
8571 2003-05-11 Andrew Cagney <cagney@redhat.com>
8572
8573 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8574 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8575 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8576 sim/testsuite/sim/arm/misaligned2.ms, and
8577 sim/testsuite/sim/arm/misaligned3.ms.
8578 * disasm.h (struct ui_file): Add opaque struct declaration.
8579 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8580 * frame.h (struct ui_file): Ditto.
8581
8582 2003-05-11 Mark Kettenis <kettenis@gnu.org>
8583
8584 * value.h: Pretty print.
8585
8586 2003-05-10 Mark Kettenis <kettenis@gnu.org>
8587
8588 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8589
8590 2003-05-08 Andrew Cagney <cagney@redhat.com>
8591
8592 * regcache.h (max_register_size): Delete declaration.
8593 * regcache.c (max_register_size): Delete function.
8594 (struct regcache_descr): Delete field "max_register_size".
8595 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8596 registers fit in MAX_REGISTER_SIZE.
8597 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8598 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8599 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8600 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8601 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8602 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8603 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8604 * dve3900-rom.c, hppa-tdep.c: Ditto.
8605
8606 2003-05-08 David Carlton <carlton@math.stanford.edu>
8607
8608 * valops.c (push_word): Fix typo.
8609
8610 2003-05-08 Andrew Cagney <cagney@redhat.com>
8611
8612 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8613 * gdbarch.h: Re-generate.
8614 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8615 (legacy_max_register_raw_size): Delete declaration.
8616 * regcache.c (legacy_max_register_raw_size): Delete function.
8617 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8618 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8619 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8620 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8621 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8622 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8623 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8624 * findvar.c, dwarf2cfi.c: Ditto.
8625
8626 2003-05-08 Andrew Cagney <cagney@redhat.com>
8627
8628 * mips-tdep.c (read_signed_register): New function, moved to here
8629 from "regcache.c".
8630 (read_signed_register_pid): Ditto.
8631 * regcache.c (read_signed_register_pid): Delete function, moved to
8632 "mips-tdep.c".
8633 (read_signed_register): Ditto.
8634 * regcache.h (read_signed_register): Delete declaration.
8635 (read_signed_register_pid): Delete declaration.
8636
8637 2003-05-08 Andrew Cagney <cagney@redhat.com>
8638
8639 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8640 * gdbarch.h: Re-generate.
8641 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8642 (legacy_max_register_virtual_size): Delete declaration.
8643 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8644 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8645 * tracepoint.c (memrange_sortmerge): Ditto.
8646 * sparc-tdep.c (sparc_print_registers): Ditto.
8647 * regcache.c (legacy_max_register_virtual_size): Delete function.
8648
8649 2002-05-08 J. Brobecker <brobecker@gnat.com>
8650
8651 * fork-child.c (escape_bang_in_quoted_argument): New function.
8652 (fork_inferior): Escape '!' characters in quoted arguments
8653 only when needed.
8654
8655 2003-05-08 J. Brobecker <brobecker@gnat.com>
8656
8657 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8658 the language of the CU is not currently supported by GDB.
8659
8660 2003-05-08 J. Brobecker <brobecker@gnat.com>
8661
8662 * defs.h (language): Add language_minimal enum value.
8663 * c-lang.c (minimal_language_defn): New language definition.
8664 (_initialize_c_language): Add the new minimal language to the list
8665 of languages known to GDB.
8666
8667 2003-05-08 Kevin Buettner <kevinb@redhat.com>
8668
8669 * frame.c (get_frame_type): Don't attempt to lazily initialize
8670 frame's unwinder for legacy frames.
8671
8672 2003-05-07 Andrew Cagney <cagney@redhat.com>
8673
8674 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8675 and "regcache" parameters.
8676 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8677
8678 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8679
8680 * dwarf2read.c (dwarf_decode_lines): Only use output of
8681 check_cu_functions() when calling record_line(). Do not update
8682 the current address.
8683
8684 2003-05-07 Andrew Cagney <cagney@redhat.com>
8685
8686 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8687 code.
8688
8689 2003-05-07 Jim Blandy <jimb@redhat.com>
8690
8691 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8692 'maint info symtabs' and 'maint info psymtabs'.
8693 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8694 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8695 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8696 Declarations updated.
8697 * maint.c (maintenance_list_command): Delete.
8698 (_initialize_maint_cmds): Update calls to add_cmd.
8699 * gdbcmd.h (maintenancelistlist): Delete declaration.
8700 * cli/cli-cmds.c (maintenancelistlist): Delete.
8701 (init_cmd_lists): Don't initialize it.
8702 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8703
8704 2003-05-07 Andrew Cagney <cagney@redhat.com>
8705
8706 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8707 "regcache".
8708 (d10v_print_registers_info): Update.
8709 (d10v_dmap_register, d10v_imap_register): Delete functions.
8710 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8711 and "imap_register".
8712 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8713 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8714 * arch-utils.c (generic_remote_translate_xfer_address): Add
8715 "regcache" and "gdbarch" parameters.
8716 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8717 parameter. Change class to multi-arch.
8718 * gdbarch.h, gdbarch.c: Re-generate.
8719 * remote.c (remote_xfer_memory): Use
8720 gdbarch_remote_translate_xfer_address.
8721
8722 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8723
8724 * infrun.c (prev_pc): Move declaration ahead of proceed().
8725 (proceed): Refresh prev_pc value before resuming.
8726 (stop_stepping): Remove code to refresh prev_pc.
8727
8728 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8729
8730 * nto-tdep.c: Removed stray comment.
8731
8732 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8733
8734 * i386-nto-tdep.c: Fix old K&R function definitions.
8735 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8736 Also change add_show_from_set() call to add_setshow_cmd().
8737 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8738
8739 2003-05-05 Andrew Cagney <cagney@redhat.com>
8740
8741 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8742 (fprint_dummy_frames): New function.
8743 (maintenance_print_dummy_frames): New function.
8744 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8745 * frame.c (fprint_frame_id): Make global.
8746 * frame.h (fprint_frame_id): Declare.
8747 * Makefile.in (dummy-frame.o): Update dependencies.
8748
8749 2003-05-05 Andrew Cagney <cagney@redhat.com>
8750
8751 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8752 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8753 SIZEOF_CALL_DUMMY_WORDS.
8754 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8755 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8756 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8757 CALL_DUMMY_BREAKPOINT_OFFSET.
8758 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8759 CALL_DUMMY_START_OFFSET.
8760 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8761 * gdbarch.h, gdbarch.c: Re-generate.
8762 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8763 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8764 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8765 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8766 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8767 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8768 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8769 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8770 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8771 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8772 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8773 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8774 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8775 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8776 * config/sparc/tm-sparc.h: Update.
8777
8778 2003-05-05 Kris Warkentin <kewarken@qnx.com>
8779
8780 * configure.tgt: Add i[3456]86-*-nto*.
8781 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8782 * nto-tdep.c: New file. Neutrino target support routines.
8783 * nto-tdep.h: New file. Neutrino target header.
8784 * config/tm-qnxnto.h: New file.
8785 * config/i386/i386nto.mt: New file.
8786 * config/i386/tm-i386nto.h: New file.
8787
8788 2003-05-04 Andrew Cagney <cagney@redhat.com>
8789
8790 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8791 (load_infrun_state): Ditto.
8792 (struct thread_info): Drop "prev_func_name" field.
8793 * thread.c (load_infrun_state): Update.
8794 (save_infrun_state): Update.
8795 * infrun.c (prev_func_name): Delete variable.
8796 (init_wait_for_inferior): Do not clear prev_func_name.
8797 (stop_stepping, keep_going, context_switch): Do not swap
8798 prev_func_name.
8799 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8800 instead of PC_IN_SIGTRAMP.
8801
8802 2003-05-04 Andrew Cagney <cagney@redhat.com>
8803
8804 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8805 REGISTER_BYTE with register_offset_hack.
8806 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8807 that REGISTER_BYTE is consistent with the regcache.
8808 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8809 * gdbarch.h, gdbarch.c: Regenerate.
8810
8811 2003-05-04 Mark Kettenis <kettenis@gnu.org>
8812
8813 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8814 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8815
8816 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8817
8818 2003-05-03 J. Brobecker <brobecker@gnat.com>
8819
8820 From Thierry Schneider <tpschneider1@yahoo.com>
8821 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8822 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8823 (mi-cmd-symbol.o): Add rule.
8824
8825 2003-05-03 Andrew Cagney <cagney@redhat.com>
8826
8827 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8828 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8829 * gdbarch.h, gdbarch.c: Re-generate.
8830 * d10v-tdep.c (d10v_push_dummy_code): New function.
8831 (d10v_gdbarch_init): Set push_dummy_code.
8832 * infcall.c (legacy_push_dummy_code): New function.
8833 (generic_push_dummy_code): New function.
8834 (push_dummy_code): New function.
8835 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8836 instead of dummy_addr, to push_dummy_call. Move call to
8837 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8838 switch.
8839 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8840
8841 2003-05-03 Andrew Cagney <cagney@redhat.com>
8842
8843 * disasm.h (print_insn): Declare.
8844 * disasm.c (init_gdb_disassemble_info): New function.
8845 (gdb_disassembly): Call init_gdb_disassemble_info.
8846 (gdb_print_insn): New function.
8847 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8848 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8849 * mcore-tdep.c: Include "disasm.h"
8850 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8851 * d10v-tdep.c: Include "disasm.h".
8852 (display_trace): Call gdb_print_insn, instead of print_insn.
8853 (print_insn): Delete function.
8854 * printcmd.c: Include "disasm.h".
8855 (print_insn): Delete function.
8856 (print_formatted): Call gdb_print_insn, instead of print_insn.
8857 * Makefile.in (printcmd.o): Update dependencies.
8858 (mcore-tdep.o, d10v-tdep.o): Ditto.
8859
8860 2003-05-02 Andrew Cagney <cagney@redhat.com>
8861
8862 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8863 PC_REGNUM, re-indent.
8864 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8865 PC_REGNUM isn't set.
8866
8867 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8868 * gdbarch.h, gdbarch.c: Re-generate.
8869 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8870 register_virtual_size, pc_regnum, or register_bytes.
8871 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8872 (d10v_register_type): Use D10V_PC_REGNUM.
8873 (d10v_print_registers_info, d10v_read_pc): Ditto.
8874 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8875 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8876
8877 2003-05-02 David Carlton <carlton@bactrian.org>
8878
8879 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8880 the name with mstrsave.
8881
8882 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
8883
8884 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8885 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8886 (host_charset_name, target_charset_name): New vars for use by
8887 set/show commands.
8888 (host_charset_enum, target_charset_enum): New enums for set/show
8889 commands.
8890 (set_charset_sfunc, set_host_charset_sfunc,
8891 set_target_charset_sfunc): New functions.
8892 (set_host_charset, set_target_charset): Make static.
8893 (list_charsets, set_host_charset_command,
8894 set_target_charset_command): Delete functions.
8895 (show_charset_command): Rewrite as....
8896 (show_charset): Hook this up with the set/show command mechanism.
8897 (_initialize_charset): Change names of charsets to match the
8898 set/show enums. Use host_charset_name and target_charset_name.
8899 Use set/show mechanism for charset, host-charset, target-charset
8900 commands. Do not make 'show host-charset' and 'show
8901 target-charset' be aliases of 'show charset'.
8902
8903 * charset.h (set_host_charset, set_target_charset): Don't export,
8904 they are not used outside the file.
8905
8906 2003-05-01 Andrew Cagney <cagney@redhat.com>
8907
8908 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8909 (gdb_disassembly): Make "di" non static, always initialize and
8910 cleanup. Always use dis_asm_read_memory.
8911 (gdb_dis_asm_read_memory): Delete function.
8912
8913 2003-05-01 Andrew Cagney <cagney@redhat.com>
8914
8915 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8916 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8917
8918 2003-04-30 Andrew Cagney <cagney@redhat.com>
8919
8920 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8921 "tm_print_insn_info".
8922 (TARGET_PRINT_INSN_INFO): Delete macro.
8923 (dis_asm_read_memory): Delete function declaration.
8924 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8925 (tm_print_insn_info): Delete variable definition.
8926 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8927 * gdbarch.h, gdbarch.c: Re-generate.
8928 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8929 "deprecated_tm_print_insn_info".
8930 * mcore-tdep.c (mcore_dump_insn): Ditto.
8931 * mips-tdep.c (mips_gdbarch_init): Ditto.
8932 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8933 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8934 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8935 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8936 instead of TARGET_PRINT_INSN_INFO, add comment.
8937 * s390-tdep.c (s390_get_frame_info): Instead of
8938 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8939 (s390_check_function_end, s390_is_sigreturn): Ditto.
8940 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8941 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8942 * disasm.c: Include "gdbcore.h".
8943 (_initialize_disasm): New function, initialize
8944 "deprecated_tm_print_insn_info".
8945 (deprecated_tm_print_insn_info): New variable.
8946 (dis_asm_read_memory): Moved from "corefile.c", made static.
8947 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8948 * Makefile.in (disasm.o): Update dependencies.
8949
8950 2003-04-30 Andrew Cagney <cagney@redhat.com>
8951
8952 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8953
8954 2003-04-29 Adam Fedor <fedor@gnu.org>
8955
8956 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8957 * infcall.c (find_function_addr): Make non-static.
8958 * infcall.h (find_function_addr): Declare.
8959 * Makefile.in (eval.o): Update dependencies.
8960
8961 2003-04-28 Adam Fedor <fedor@gnu.org>
8962
8963 * symtab.c (symbol_find_demangled_name): Check for and demangle
8964 ObjC symbols.
8965 (symbol_init_demangled_name): Init for language_objc as well.
8966
8967 2003-04-28 Andrew Cagney <cagney@redhat.com>
8968
8969 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8970 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8971 * gdbarch.h, gdbarch.c: Re-generate.
8972 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8973 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8974 * inferior.h (deprecated_read_fp): Rename read_fp.
8975 (generic_target_read_fp): Delete declaration.
8976 * regcache.c (generic_target_read_fp): Delete function.
8977 (deprecated_read_fp): Replace read_fp, use
8978 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8979 * d10v-tdep.c (d10v_read_fp): Delete function.
8980 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8981
8982 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8983 deprecated_target_read_fp to generic_target_read_fp.
8984 * sh-tdep.c (sh_gdbarch_init): Ditto.
8985 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8986 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8987 * frv-tdep.c (frv_gdbarch_init): Ditto.
8988
8989 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8990 deprecated_fp_regnum.
8991 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8992 * vax-tdep.c (vax_gdbarch_init): Ditto.
8993 * v850-tdep.c (v850_gdbarch_init): Ditto.
8994 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8995 * sh-tdep.c (sh_gdbarch_init): Ditto.
8996 * s390-tdep.c (s390_gdbarch_init): Ditto.
8997 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8998 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8999 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9000 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9001 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9002 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9003 * i386-tdep.c (i386_gdbarch_init): Ditto.
9004 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9005 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9006 * frv-tdep.c (frv_gdbarch_init): Ditto.
9007 * cris-tdep.c (cris_gdbarch_init): Ditto.
9008 * avr-tdep.c (avr_gdbarch_init): Ditto.
9009 * arm-tdep.c (arm_gdbarch_init): Ditto.
9010 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9011
9012 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9013 * v850-tdep.c (v850_gdbarch_init): Ditto.
9014 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9015 * sh-tdep.c (sh_gdbarch_init): Ditto.
9016 * s390-tdep.c (s390_gdbarch_init): Ditto.
9017 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9018 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9019 * mips-tdep.c (mips_gdbarch_init): Ditto.
9020 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9021 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9022 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9023 * frv-tdep.c (frv_gdbarch_init): Ditto.
9024 * avr-tdep.c (avr_gdbarch_init): Ditto.
9025 * arm-tdep.c (arm_gdbarch_init): Ditto.
9026
9027 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9028 DEPRECATED_FP_REGNUM.
9029 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9030 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9031 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9032 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9033 (sparc32_register_virtual_type): Ditto.
9034 * sh-tdep.c (sh64_frame_chain): Ditto.
9035 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9036 (sh_nofp_frame_init_saved_regs): Ditto.
9037 (sh64_nofp_frame_init_saved_regs): Ditto.
9038 (sh_fp_frame_init_saved_regs): Ditto.
9039 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9040 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9041 * procfs.c (procfs_fetch_registers): Ditto.
9042 (procfs_store_registers): Ditto.
9043 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9044 (store_inferior_registers, fetch_core_registers): Ditto.
9045 (fetch_kcore_registers, clear_regs): Ditto.
9046 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9047 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9048 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9049 * nlm/i386.c (do_status): Ditto.
9050 * mipsv4-nat.c (supply_gregset): Ditto.
9051 * mips-tdep.c: Ditto for comments.
9052 * mips-nat.c (fetch_inferior_registers): Ditto.
9053 (store_inferior_registers, fetch_core_registers): Ditto.
9054 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9055 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9056 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9057 (i386_do_pop_frame, i386_register_type): Ditto.
9058 * hppa-tdep.c (hppa_frame_chain): Ditto.
9059 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9060 (hppa_pop_frame, hppa_read_fp): Ditto.
9061 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9062 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9063 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9064 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9065 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9066 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9067 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9068 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9069 * blockframe.c: Ditto for comments.
9070 * arch-utils.h: Ditto for comments.
9071 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9072 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9073 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9074 * alpha-tdep.h: Ditto for comments.
9075 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9076 (alpha_cannot_store_register): Ditto.
9077 (alpha_push_dummy_frame): Ditto.
9078 * alpha-nat.c (supply_gregset): Ditto.
9079
9080 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9081 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9082 * config/sparc/tm-sparc.h: Update comment.
9083
9084 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9085 deprecated_read_fp instead of TARGET_READ_FP.
9086 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9087 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9088 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9089 deprecated_read_fp instead of read_fp.
9090 * s390-tdep.c (s390_push_arguments): Ditto.
9091 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9092 * frame.h: Ditto in comments.
9093 * frame.c (legacy_get_prev_frame): Ditto.
9094 * dummy-frame.c (dummy_frame_this_id): Ditto.
9095 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9096
9097 2003-04-28 Andrew Cagney <cagney@redhat.com>
9098
9099 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9100 * gdbarch.h, gdbarch.c: Re-generate.
9101 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9102 * vax-tdep.c (_initialize_vax_tdep): Update.
9103 * v850-tdep.c (_initialize_v850_tdep): Update.
9104 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9105 * s390-tdep.c (_initialize_s390_tdep): Update.
9106 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9107 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9108 * mips-tdep.c (_initialize_mips_tdep): Update.
9109 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9110 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9111 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9112 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9113 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9114 * frv-tdep.c (_initialize_frv_tdep): Update.
9115 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9116 (_initialize_cris_tdep): Update.
9117 * arch-utils.c (legacy_print_insn): Update.
9118 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9119
9120 2003-04-26 Adam Fedor <fedor@gnu.org>
9121
9122 * linespec.c (decode_objc): New function to decode ObjC calls
9123 (decode_line_1): Check for ObjC calls (using decode_objc)
9124 * Makefile (linespec.o): Update dependencies.
9125
9126 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
9127
9128 * breakpoint.h (struct breakpoint_ops): New.
9129 (struct breakpoint): Add ops member.
9130
9131 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9132 (mention): Use new breakpoint ops member.
9133 (set_raw_breakpoint): Initialize ops field to NULL.
9134 (print_exception_catchpoint, print_one_exception_catchpoint)
9135 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9136 (gnu_v3_exception_catchpoint_ops): New.
9137 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9138
9139 2003-04-25 Adam Fedor <fedor@gnu.org>
9140
9141 * Makefile.in (COMMON_OBS): Add objc-lang.o
9142
9143 2003-04-25 Andrew Cagney <cagney@redhat.com>
9144
9145 * d10v-tdep.c (print_insn): Delete function.
9146 (display_trace): Use TARGET_PRINT_INSN.
9147 (_initialize_d10v_tdep): Do not set tm_print_insn.
9148 (d10v_gdbarch_init): Set print_insn.
9149
9150 2003-04-25 Andrew Cagney <cagney@redhat.com>
9151
9152 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9153 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9154 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9155 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9156 (nr_dmap_regs, a0_regnum): ... new functions.
9157 (d10v_print_registers_info): Use a0_regnum, use register_size.
9158 (d10v_register_byte): Delete function.
9159 (d10v_register_raw_size): Delete function.
9160 (d10v_register_type): Use a0_regnum.
9161 (d10v_print_registers_info): Use a0_regnum.
9162 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9163 (d10v_gdbarch_init): Do not set register_byte or
9164 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9165 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9166 extract_address.
9167 (trace_command): Use XCALLOC.
9168 (print_insn): Delete reference to tm_print_insn.
9169 (saved_regs_unwinder): Use store_unsigned_integer instead of
9170 store_address.
9171 * frame.h (FRAME_OBSTACK_CALLOC): Define
9172
9173 2003-04-25 David Carlton <carlton@bactrian.org>
9174
9175 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9176
9177 2003-04-24 Adam Fedor <fedor@gnu.org>
9178
9179 * objc-lang.c: Include "valprint.h"
9180 * Makefile.in (objc-lang.o): Update dependencies.
9181
9182 2003-04-24 Adam Fedor <fedor@gnu.org>
9183
9184 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9185 architecture dependant compilation and mark as unimplemented
9186 (until they get put in the gdbarch vector).
9187
9188 2003-04-23 David Carlton <carlton@bactrian.org>
9189
9190 * cp-support.c (cp_find_first_component): Accept 'operator' in
9191 more locations.
9192
9193 2003-04-23 Andrew Cagney <cagney@redhat.com>
9194
9195 * infcall.c (call_function_by_hand): Eliminate redundant
9196 indentation. Move "saved_async" and "old_cleanups" to where they
9197 are needed.
9198
9199 2003-04-23 Andrew Cagney <cagney@redhat.com>
9200
9201 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9202 and "buffer". Move the "name" code to where it is needed.
9203
9204 2003-04-23 Andrew Cagney <cagney@redhat.com>
9205
9206 * infcall.c (call_function_by_hand): Move variables "start_sp",
9207 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9208 code to ON_STACK switch branch.
9209
9210 2003-04-23 Andrew Cagney <cagney@redhat.com>
9211
9212 * infcall.c (call_function_by_hand): Make declaration of "i",
9213 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9214 lint.
9215
9216 2003-04-23 Andrew Cagney <cagney@redhat.com>
9217
9218 * infcall.c (call_function_by_hand): Delete variable
9219 "n_method_args". Localize "param_type"'s declaration to the loop
9220 that it is used. Reinstate code assigning to said variable -
9221 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9222 Rationalize code using "param_type".
9223
9224 2003-04-22 Andrew Cagney <cagney@redhat.com>
9225
9226 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9227 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9228 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9229 to DEPRECATED_PUSH_RETURN_ADDRESS.
9230
9231 2003-04-22 Kevin Buettner <kevinb@redhat.com>
9232
9233 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9234 on the DWARF2 register number prior to fetching a register.
9235
9236 2003-04-22 J. Brobecker <brobecker@gnat.com>
9237
9238 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9239 Update all the tests using SOFT_FLOAT considering the fact that
9240 this macro was always set to 0.
9241 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9242 considering the fact that this macro was always set to 0.
9243 * hppa-tdep.h (hppa_store_return_value): Likewise.
9244 (hppa_extract_return_value): Likewise.
9245
9246 2003-04-22 J. Brobecker <brobecker@gnat.com>
9247
9248 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9249 the hppa-pro target only.
9250
9251 2003-04-21 J. Brobecker <brobecker@gnat.com>
9252
9253 Ongoing multi-arch conversion effort for HP/UX:
9254 * config/pa/tm-hppa.h: Move all macro that are no longer
9255 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9256 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9257
9258 2003-04-21 J. Brobecker <brobecker@gnat.com>
9259
9260 * config/pa/tm-hppa.h: Obsolete a section that was only used
9261 for hppa-pro.
9262
9263 2003-04-21 J. Brobecker <brobecker@gnat.com>
9264
9265 Ongoing multi-arch conversion for HP/UX.
9266 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9267 if already defined (allows hppa64 to stay non-multiarched for now).
9268 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9269
9270 2003-04-21 Andrew Cagney <cagney@redhat.com>
9271
9272 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9273
9274 2003-04-21 Andrew Cagney <cagney@redhat.com>
9275
9276 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9277 "i386_num_mmx_regs".
9278
9279 2003-04-21 Andrew Cagney <cagney@redhat.com>
9280
9281 * infcall.c: New file.
9282 * infcall.h: New file.
9283 * valarith.c: Include "infcall.h".
9284 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9285 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9286 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9287 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9288 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9289 (SFILES): Add "infcall.c"
9290 (COMMON_OBS): Add "infcall.o".
9291 (infcall.o): Specify dependencies.
9292 * value.h (call_function_by_hand): Delete declaration.
9293 * inferior.h (run_stack_dummy): Delete declaration.
9294 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9295 (run_stack_dummy): Move to "infcall.c", merged into
9296 call_function_by_hand.
9297 * valops.c (call_function_by_hand): Moved to "infcall.c".
9298 (find_function_addr, value_arg_coerce): Ditto.
9299 (unwindonsignal_p, coerce_float_to_double): Ditto.
9300 (_initialize_valops): Move "set/show coerce-float-to-double", and
9301 "set/show unwindonsignal" commands to "infcall.c".
9302 * v850-tdep.c, target.h: Update comments.
9303 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9304 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9305 (sh64_init_extra_frame_info): Update comments.
9306 * mn10300-tdep.c: Update comments.
9307 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9308 * config/sparc/tm-sparc.h: Update comments.
9309 * breakpoint.h: Update comments.
9310 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9311 * arm-tdep.c: Update comment.
9312
9313 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9314
9315 * i386-tdep.c (i386_num_register_names): New variable.
9316 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9317 (MM0_REGNUM): Remove redundant parentheses in define.
9318 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9319 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9320 i386_mxcsr_regnum_p): Remove redundant parentheses.
9321 (i386_register_name): Use i386_num_register_names.
9322
9323 * i386-tdep.c (i386_extract_return_value,
9324 i386_store_return_value): Correct check for availability of
9325 floating-point registers.
9326
9327 * i386-tdep.c (i386_frame_num_args): Remove function.
9328 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9329
9330 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9331 mmx_regnum_to_fp_regnum. Adjust all callers.
9332
9333 * i386-tdep.c (i386_get_longjmp_target): Use
9334 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9335 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9336 extract_address.
9337
9338 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9339
9340 * core-regset.c: Update comments to reflect reality. Re-order
9341 includes.
9342 (fetch_core_registers): Use switch instead of if. Remove
9343 redundant prototype.
9344
9345 2003-04-18 Jim Blandy <jimb@redhat.com>
9346
9347 * s390-tdep.c (s390_frame_align): New function.
9348 (s390_gdbarch_init): Register it with the gdbarch object.
9349
9350 2003-04-17 Richard Henderson <rth@redhat.com>
9351
9352 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9353
9354 2003-04-17 Michael Snyder <msnyder@redhat.com>
9355 Karen Bennet <bennet@redhat.com>
9356
9357 Committed by Elena Zannoni <ezannoni@redhat.com>
9358 * gdb_gcore.sh: New script to create a core dump of a process.
9359
9360 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
9361
9362 * values.c (value_being_returned): Don't fetch the return
9363 value if the return type is void.
9364
9365 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9366
9367 * thread-db.c: Reindented.
9368
9369 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9370
9371 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9372 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9373 as types.
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399 2003-04-16 Kevin Buettner <kevinb@redhat.com>
9400
9401 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9402 the size of ``long double'' to 16, instead of 8.
9403
9404 2003-04-16 Mark Kettenis <kettenis@gnu.org>
9405
9406 * i386-linux-nat.c: Add some whitespace to make things more
9407 readable.
9408 (fetch_register, store_register, fetch_inferior_registers,
9409 store_inferior_registers): Get rid of assignment in if-statement.
9410 (store_register): Fix typo in error message.
9411
9412 2003-04-16 Andrew Cagney <cagney@redhat.com>
9413
9414 * utils.c (xmmalloc): Always allocate something, matches
9415 libiberty/xmalloc's semantics.
9416 (xmrealloc, xmcalloc): Ditto.
9417
9418 2003-04-16 Andrew Cagney <cagney@redhat.com>
9419
9420 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9421 update comments.
9422 (get_frame_type): Initialize unwind and type when needed.
9423 (get_frame_id, frame_register_unwind): Ditto.
9424
9425 2003-04-16 Andrew Cagney <cagney@redhat.com>
9426
9427 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9428 obsolete.
9429 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9430 * sparcl-stub.c: Obsolete file.
9431 * config/sparc/tm-sparclet.h: Obsolete file.
9432 * sparclet-stub.c: Obsolete file.
9433 * sparclet-rom.c: Obsolete file.
9434 * sparcl-tdep.c: Obsolete file.
9435 * config/sparc/tm-sparclite.h: Obsolete file.
9436 * config/sparc/sparclite.mt: Obsolete file.
9437 * config/sparc/sparclet.mt: Obsolete file.
9438 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9439 sparc86x-*-* obsolete.
9440
9441 2003-04-15 David Carlton <carlton@math.stanford.edu>
9442
9443 * Makefile.in (SFILES): Add cp-namespace.c.
9444 (COMMON_OBS): Add cp-namespace.o.
9445 (block.o): Depend on gdb_obstack_h and cp_support_h.
9446 (buildsym.o): Depend on cp_support_h.
9447 (cp-namespace.o): New.
9448 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9449 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9450 (dwarf2read.o): Depend on cp_support_h.
9451 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9452 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9453 processing_current_namespace.
9454 (read_namespace): Update processing_current_namespace; check for
9455 anonymous namespaces.
9456 (dwarf2_name): New function.
9457 (dwarf2_extension): Ditto.
9458 * cp-support.h: Update copyright, contributors.
9459 Add inclusion guards.
9460 Add opaque declaration for structs obstack, block, symbol.
9461 (struct using_direct): New struct.
9462 Add declarations for cp_find_first_component,
9463 cp_entire_prefix_len, processing_has_namespace_info,
9464 processing_current_namespace, cp_is_anonymous,
9465 cp_add_using_directive, cp_initialize_namespace,
9466 cp_finalize_namespace, cp_set_block_scope,
9467 cp_scan_for_anonymous_namespaces.
9468 * cp-namespace.c: New file.
9469 * cp-support.c: Update copyright.
9470 Include ctype.h, gdb_assert.h, gdbcmd.h.
9471 New variable maint_cplus_cmd_list.
9472 (cp_find_first_component): New function.
9473 (cp_entire_prefix_len, maint_cplus_command)
9474 (first_component_command, _initialize_cp_support): Ditto.
9475 * buildsym.c: Include cp-support.h.
9476 New variable using_list.
9477 (add_symbol_to_list): Check for anonymous namespaces.
9478 (finish_block): Set block's scope.
9479 (start_symtab): Initialize C++ namespace support.
9480 (end_symtab): Finalize C++ namespace support.
9481 * block.h: Add opaque declarations for structs
9482 block_namespace_info, using_direct, and obstack.
9483 Add declarations for block_set_scope and block_set_using.
9484 (struct block): Add 'language_specific' member.
9485 (BLOCK_NAMESPACE): New macro.
9486 * block.c: Include gdb_obstack.h and cp-support.h.
9487 (struct block_namespace_info): New struct.
9488 (block_set_scope): New function.
9489 (block_set_using, block_initialize_namespace): Ditto.
9490
9491 2003-04-14 Kevin Buettner <kevinb@redhat.com>
9492
9493 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9494 (locate_base): Return early if there aren't any link map offsets.
9495 (svr4_solib_create_inferior_hook): Warn if shared library support
9496 is unavailable.
9497
9498 2003-04-14 David Carlton <carlton@math.stanford.edu>
9499
9500 * symtab.c (symbol_set_names): Add prefix when storing Java names
9501 in hash table. Fix for PR java/1039.
9502
9503 2003-04-14 David Carlton <carlton@math.stanford.edu>
9504
9505 * symtab.c (symbol_set_names): Rename 'name' arg to
9506 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9507 * symtab.h: Change 'name' argument in declaration of
9508 symbol_set_names to 'linkage_name'.
9509 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9510
9511 2003-04-14 Andrew Cagney <cagney@redhat.com>
9512
9513 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9514 return the fully sign-extended register value.
9515 (get_frame_pointer): Ditto.
9516 (mips_pop_frame): Initialize "proc_desc" after checking for a
9517 dummy frame.
9518
9519 2003-04-14 Andrew Cagney <cagney@redhat.com>
9520
9521 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9522 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9523 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9524 (mips_push_register): Delete function.
9525 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9526 PUSH_FP_REGNUM.
9527
9528 2003-04-14 Jim Blandy <jimb@redhat.com>
9529
9530 * symmisc.c: #include "gdb_regex.h".
9531 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9532 functions.
9533 * maint.c (maintenance_list_command): New function.
9534 (_initialize_maint_cmds): Register the above as commands.
9535 * symtab.h (maintenance_list_symtabs,
9536 maintenance_list_psymtabs): New declarations.
9537 * cli/cli-cmds.c (maintenancelistlist): New variable.
9538 (init_cmd_lists): Initialize it.
9539 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9540 * gdbcmd.h (maintenancelistlist): New declaration.
9541 * Makefile.in (symmisc.o): Update dependencies.
9542
9543 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
9544
9545 * s390-nat.c: Include asm/types.h for addr_t.
9546
9547 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
9548
9549 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9550 actually incoming type.
9551
9552 2003-04-13 Andrew Cagney <cagney@redhat.com>
9553
9554 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9555 get_next_frame and get_frame_saved_regs.
9556
9557 2003-04-13 Andrew Cagney <cagney@redhat.com>
9558
9559 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9560 of gdbarch_num_regs.
9561
9562 2003-04-13 Andrew Cagney <cagney@redhat.com>
9563
9564 * frame.h: Mention what replaced what in "struct frame_info".
9565 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9566 deprecated_update_frame_base_hack and
9567 deprecated_update_frame_pc_hack.
9568 * hppa-tdep.c: Ditto.
9569
9570 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9571
9572 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9573 to read_reg and update its comment. Remove regnum member.
9574 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9575 Don't call read_reg when setting in_reg. Call read_reg to get
9576 the frame base if it's in a register. Return the register number
9577 on the stack instead of in the context. Remove extra arguments
9578 to read_reg.
9579 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9580 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9581 the register number on the expression stack.
9582 (needs_frame_read_reg): Remove extra arguments.
9583
9584 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9585
9586 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9587 made non-static.
9588 (execute_stack_op): All callers updated.
9589 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9590 * dwarf2loc.c (find_location_expression): New function.
9591 (dwarf_expr_frame_base): Call it.
9592 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9593 (dwarf2_tracepoint_var_ref): New function, broken out from
9594 locexpr_tracepoint_var_ref.
9595 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9596 Make static.
9597 (loclist_read_variable, loclist_read_needs_frame): New functions.
9598 (loclist_describe_location, loclist_tracepoint_var_ref): New
9599 functions.
9600 (dwarf2_loclist_funcs): New struct location_funcs.
9601 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9602 (struct dwarf2_locexpr_baton): Add comments.
9603 (dwarf2_loclist_funcs): New extern.
9604 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9605 base_address and base_known.
9606 (dwarf_loc_buffer): New variable.
9607 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9608 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9609 (dwarf2_has_info): Initialize dwarf_loc_offset.
9610 (dwarf2_build_psymtabs): Read in .debug_loc.
9611 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9612 DWARF_LOC_SIZE.
9613 (psymtab_to_symtab_1): Likewise. Move base address calculation
9614 here, from...
9615 (dwarf2_get_pc_bounds): ... here. Use the base address from
9616 cu_header.
9617 (dwarf2_symbol_mark_computed): Handle location lists.
9618
9619 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9620
9621 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9622 if the linkage name demangled successfully.
9623
9624 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9625
9626 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9627 disassmbly_flavour): Removed.
9628
9629 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9630
9631 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9632
9633 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9634
9635 2003-04-12 Andrew Cagney <cagney@redhat.com>
9636
9637 * frame.h (struct frame_info): Move definition from here ...
9638 * frame.c (struct frame_info): ... to here.
9639
9640 2003-04-12 Andrew Cagney <cagney@redhat.com>
9641
9642 * gdbthread.h (save_infrun_state): Delete parameter
9643 "prev_func_start".
9644 (struct thread_info): Delete field "prev_func_start".
9645 (load_infrun_state): Ditto.
9646 * thread.c (load_infrun_state, save_infrun_state): Update.
9647 * infrun.c (prev_func_start): Delete variable.
9648 (context_switch, init_wait_for_inferior): Update.
9649 (stop_stepping, keep_going): Update.
9650
9651 2003-04-12 Andrew Cagney <cagney@redhat.com>
9652
9653 * gdbarch.sh: Add missing opaque declarations.
9654 * gdbarch.h: Regnerate.
9655 * symtab.h: Add missing opaque declarations.
9656 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9657 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9658 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9659 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9660 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9661 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9662 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9663 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9664 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9665 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9666 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9667 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9668 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9669
9670 2003-04-11 Andrew Cagney <cagney@redhat.com>
9671
9672 * frame.c (get_frame_id): Return this frame's "id".
9673 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9674 function start.
9675 (legacy_saved_regs_this_id): Replace function body with
9676 internal-error.
9677 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9678 FRAME_OBSTACK_ZALLOC.
9679 (create_new_frame): Mark the frame ID as valid.
9680
9681 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
9682
9683 * Makefile.in (libbfd_h): Added missing setting.
9684 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9685 according to the selected ABI.
9686
9687 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9688
9689 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9690
9691 2003-04-11 Andrew Cagney <cagney@redhat.com>
9692
9693 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9694 SAVED_PC_AFTER_CALL.
9695 * gdbarch.h, gdbarch.c: Regenerate.
9696 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9697 * x86-64-tdep.c (x86_64_init_abi): Update.
9698 * vax-tdep.c (vax_gdbarch_init): Update.
9699 * v850-tdep.c (v850_gdbarch_init): Update.
9700 * sparc-tdep.c (sparc_gdbarch_init): Update.
9701 * sh-tdep.c (sh_gdbarch_init): Update.
9702 * s390-tdep.c (s390_gdbarch_init): Update.
9703 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9704 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9705 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9706 * mips-tdep.c (mips_gdbarch_init): Update.
9707 * mcore-tdep.c (mcore_gdbarch_init): Update.
9708 * m68k-tdep.c (m68k_gdbarch_init): Update.
9709 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9710 * ia64-tdep.c (ia64_gdbarch_init): Update.
9711 (ia64_saved_pc_after_call): Update declaration.
9712 * i386ly-tdep.c (i386lynx_init_abi): Update.
9713 * i386-tdep.c (i386_gdbarch_init): Update.
9714 * hppa-tdep.c (hppa_gdbarch_init): Update.
9715 * h8300-tdep.c (h8300_gdbarch_init): Update.
9716 * frv-tdep.c (frv_gdbarch_init): Update.
9717 * cris-tdep.c (cris_gdbarch_init): Update.
9718 * avr-tdep.c (avr_gdbarch_init): Update.
9719 * arm-tdep.c (arm_gdbarch_init): Update.
9720 * alpha-tdep.c (alpha_gdbarch_init): Update.
9721 * ns32knbsd-nat.c (frame_num_args): Update.
9722 * ns32k-tdep.c (umax_frame_num_args): Update.
9723 * mips-tdep.c (mips_init_frame_pc_first): Update.
9724 * infrun.c (step_over_function): Update.
9725 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9726 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9727 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9728 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9729 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9730 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9731 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9732 * arch-utils.c (init_frame_pc_default): Update.
9733 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9734 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9735 declaration.
9736
9737 2003-04-11 Andrew Cagney <cagney@redhat.com>
9738
9739 * i387-tdep.c: Update copyright.
9740 (i387_to_double): Delete function.
9741 (double_to_i387): Delete function.
9742
9743 2003-04-10 Andrew Cagney <cagney@redhat.com>
9744
9745 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9746 frame's function's address. Simplify.
9747 (d10v_frame_unwind_cache): Check that the frame's function is
9748 non-zero.
9749
9750 2003-04-10 Jim Blandy <jimb@redhat.com>
9751
9752 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9753 call to set_gdbarch_deprecated_push_arguments.
9754
9755 2003-04-10 Andrew Cagney <cagney@redhat.com>
9756
9757 * frame.c (fprint_frame_id): New function.
9758 (fprint_frame_type, fprint_frame): New function.
9759 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9760 (create_sentinel_frame, get_frame_id): Ditto.
9761 (frame_id_p, frame_id_eq): Ditto.
9762 (frame_id_inner, create_new_frame): Ditto.
9763 (legacy_get_prev_frame, get_prev_frame): Ditto.
9764 (deprecated_update_frame_pc_hack): Ditto.
9765 (frame_register_unwind): Ditto.
9766 (deprecated_update_frame_base_hack): Ditto.
9767
9768 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9769
9770 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9771 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9772 frame_chain function.
9773 * Makefile.in: Add dependencies due to above change.
9774
9775 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9776
9777 * blockframe.c (legacy_frame_chain_valid): Move call to
9778 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9779 inside_entry_file.
9780
9781 2003-04-09 Andrew Cagney <cagney@redhat.com>
9782
9783 * frame.h (struct frame_id): Replace "pc" and "base" with
9784 "stack_addr" and "code_addr". Update comments.
9785 (frame_id_build): Update parameter names and comment.
9786 (struct frame_info): Replace "id_p" and "id" with "this_id".
9787 * dummy-frame.c (dummy_frame_this_id): Update.
9788 * breakpoint.c (print_one_breakpoint): Update.
9789 * frame.c (get_frame_id): Update.
9790 (get_frame_base, frame_id_build): Update.
9791 (create_sentinel_frame, legacy_get_prev_frame): Update.
9792 (deprecated_update_frame_base_hack): Update.
9793 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9794 (frame_id_inner): Ditto.
9795
9796 2003-04-09 Andrew Cagney <cagney@redhat.com>
9797
9798 * defs.h (gdb_print_host_address): Make "addr" parameter a
9799 pointer constant.
9800 * utils.c (gdb_print_host_address): Update.
9801
9802 2003-04-09 Kevin Buettner <kevinb@redhat.com>
9803
9804 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9805 register number for R0 is 0.
9806
9807 2003-04-09 J. Brobecker <brobecker@gnat.com>
9808
9809 * frame.h (struct gdbarch): Add opaque structure definition
9810 to avoid a compilation warning on LynxOS 4.0.
9811
9812 2003-04-09 Andrew Cagney <cagney@redhat.com>
9813
9814 * frame.h (struct frame_info): Delete field "pc". Replace
9815 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9816 structure.
9817 * frame.c (frame_pc_unwind): Update.
9818 (create_sentinel_frame): Do not set "pc".
9819 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9820 (get_frame_pc): Call frame_pc_unwind.
9821 (deprecated_update_frame_pc_hack): Update.
9822 (create_new_frame): Use "pc" not "->pc".
9823
9824 2003-04-09 Andrew Cagney <cagney@redhat.com>
9825
9826 * frame.c (get_frame_id): Eliminate code updating "frame".
9827 (legacy_get_prev_frame): Ditto.
9828 (get_frame_base): Return id.base directly.
9829 (deprecated_update_frame_base_hack): Update "id.base".
9830 * frame.h (struct frame_info): Delete field "frame".
9831
9832 2003-04-09 Andrew Cagney <cagney@redhat.com>
9833
9834 * NEWS: Mention that the "Sequent family" is obsolete.
9835 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9836 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9837 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9838 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9839 * config/i386/tm-ptx4.h: Obsolete file.
9840 * config/i386/tm-ptx.h: Obsolete file.
9841 * symm-tdep.c: Obsolete file.
9842 * config/i386/symmetry.mt: Obsolete file.
9843 * config/i386/tm-symmetry.h: Obsolete file.
9844 * symm-nat.c: Obsolete file.
9845 * config/i386/nm-symmetry.h: Obsolete file.
9846 * config/i386/xm-symmetry.h: Obsolete file.
9847 * config/i386/symmetry.mh: Obsolete file.
9848 * config/i386/nm-ptx4.h: Obsolete file.
9849 * config/i386/ptx4.mh: Obsolete file.
9850 * config/i386/ptx.mt: Obsolete file.
9851 * config/i386/ptx.mh: Obsolete file.
9852 * config/i386/xm-ptx4.h: Obsolete file.
9853 * config/i386/xm-ptx.h: Obsolete file.
9854
9855 2003-04-09 Andrew Cagney <cagney@redhat.com>
9856
9857 Obsolete mips*-*-mach3*.
9858 * NEWS: Mention that mips*-*-mach3* is obsolete.
9859 * m3-nat.c: Obsolete file.
9860 * config/nm-m3.h: Obsolete file.
9861 * config/mips/tm-mipsm3.h: Obsolete file.
9862 * config/mips/mipsm3.mt: Obsolete file.
9863 * config/mips/mipsm3.mh: Obsolete file.
9864 * config/mips/xm-mipsm3.h: Obsolete file.
9865 * mipsm3-nat.c: Obsolete file.
9866 * configure.host: Obsolete mips-dec-mach3*.
9867 * configure.tgt: Obsolete mips*-*-mach3*.
9868
9869 2003-04-09 Andrew Cagney <cagney@redhat.com>
9870
9871 * doublest.h: Update copyright.
9872 (deprecated_store_floating, deprecated_extract_floating): Rename
9873 store_floating and extract_floating. Update comments.
9874 * doublest.c: Update copyright.
9875 (extract_floating_by_length): Replace extract_floating.
9876 (store_floating_by_length): Replace store_floating.
9877 (deprecated_extract_floating): New function.
9878 (deprecated_store_floating): New function.
9879 (extract_typed_floating): Call extract_floating_by_length.
9880 (store_typed_floating): Call store_floating_by_length.
9881 * x86-64-tdep.c (x86_64_store_return_value): Update.
9882 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9883 (sh64_extract_return_value): Update.
9884 (sh_sh4_register_convert_to_virtual): Update.
9885 (sh_sh64_register_convert_to_virtual): Update.
9886 (sh_sh4_register_convert_to_raw): Update.
9887 (sh_sh64_register_convert_to_raw): Update.
9888 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9889 (rs6000_register_convert_to_raw): Update.
9890 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9891 (ia64_register_convert_to_raw): Update.
9892 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9893 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9894 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9895 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9896 (alpha_register_convert_to_raw): Update.
9897
9898 2003-04-08 Andrew Cagney <cagney@redhat.com>
9899
9900 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9901 * gdbarch.h, gdbarch.c: Re-generate.
9902 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9903 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9904 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9905 conditionally, use frame_pc_unwind as an alternative. Add
9906 comments.
9907 * arch-utils.c (init_frame_pc_default): Only call
9908 SAVED_PC_AFTER_CALL when available.
9909
9910 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9911
9912 * infrun.c (stop_soon): Rename from stop_soon_quietly.
9913 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9914 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9915 (start_remote): Ditto.
9916 (handle_inferior_event): Ditto.
9917 (save_inferior_status): Ditto.
9918 (restore_inferior_status): Ditto.
9919 * infcmd.c (attach_command): Ditto.
9920 * fork-child.c (startup_inferior): Ditto.
9921 * inferior.h (stop_soon): Rename from stop_soon_quietly.
9922 * alpha-tdep.c (heuristic_proc_start): Ditto.
9923 * mips-tdep.c (heuristic_proc_start): Ditto.
9924 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9925 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9926 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9927 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9928 * remote-vx.c (vx_create_inferior): Ditto.
9929
9930 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9931
9932 * infrun.c (stop_soon_quietly): Make it an enum, to better
9933 override the default behavior of handle_inferior_event.
9934 (clear_proceed_status): Update uses of stop_soon_quietly to
9935 reflect that it is now an enum.
9936 (start_remote): Ditto.
9937 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9938 is set to handle the new GNU/Linux kernel behavior for
9939 attach/sigstop. Update uses of stop_soon_quietly.
9940 * inferior.h (enum stop_kind): New enum.
9941 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9942 Reset normal handle_inferior_event behavior, afterwards.
9943 * fork-child.c (startup_inferior): Update.
9944 * alpha-tdep.c (heuristic_proc_start): Update.
9945 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9946 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9947 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9948 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9949 * remote-vx.c (vx_create_inferior): Update.
9950 * mips-tdep.c (heuristic_proc_start): Update.
9951
9952 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
9953
9954 * disasm.c (dump_insns): Move variables inside loop, or they will
9955 be freed more than once, causing wild memory corruptions.
9956 (gdb_disassembly): Look for the substring "-thread",
9957 instead of "-threads" in the target name, to make sure to find
9958 the 'multi-thread' target. Also, make sure we do the right thing
9959 with the "core" target.
9960
9961 2003-04-07 Kevin Buettner <kevinb@redhat.com>
9962
9963 * mips-tdep.c (mips_print_fp_register): New function, created from
9964 do_fp_register_row(). Registers are now (also) printed as hex.
9965 Only one register is printed per row.
9966 (mips_print_register, do_fp_register_row): Print floating point
9967 registers with mips_print_fp_register().
9968
9969 2003-04-06 Andrew Cagney <cagney@redhat.com>
9970
9971 * valprint.h (inspect_it): Add extern declaration.
9972 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9973 (selectors_info, classes_info): Ditto.
9974 (find_objc_msgcall): Fix indentation.
9975 (objc_printstr): Delete extern declarations.
9976
9977 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9978
9979 2003-04-06 Andrew Cagney <cagney@redhat.com>
9980
9981 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9982 Update comment.
9983 * frame.c (legacy_saved_regs_this_id): Update.
9984 (legacy_get_prev_frame): Update.
9985 * xstormy16-tdep.c: Update comment.
9986 * sparc-tdep.c (sparc_frame_chain): Update comment.
9987 * blockframe.c (legacy_frame_chain_valid): Update.
9988
9989 2003-04-06 Andrew Cagney <cagney@redhat.com>
9990
9991 * valprint.c (val_print_type_code_int): Delete #ifdef
9992 PRINT_TYPELESS_INTEGER code.
9993
9994 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9995 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9996 multi-arch definition.
9997 * gdbarch.h: Re-generate.
9998
9999 2003-04-05 Andrew Cagney <cagney@redhat.com>
10000
10001 Eliminate FRAME_FIND_SAVED_REGS.
10002 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10003 Change FSR parameter to a pointer.
10004 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10005 Assume FSR parameter is a pointer.
10006 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10007 Make fsr a pointer.
10008 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10009 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10010 saved_regs a pointer.
10011 (hppa_frame_saved_pc): Ditto.
10012 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10013 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10014 pointer.
10015 (restore_pc_queue): Make fsr a pointer.
10016 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10017 (hppa_frame_chain): Make saved_regs a pointer, call
10018 hppa_frame_init_saved_regs.
10019 * sparc-tdep.c: Include "gdb_assert.h".
10020 (sparc_frame_find_saved_regs): Replace internal_error with
10021 gdb_assert.
10022 * remote-vxsparc.c (vx_read_register): Delete reference to
10023 FRAME_FIND_SAVED_REGS.
10024 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10025 * gdbarch.h: Regenerate.
10026 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10027 (deprecated_get_frame_saved_regs): Delete declaration.
10028 (struct frame_saved_regs): Delete definition.
10029 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10030 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10031 (hppa_frame_find_saved_regs): Delete declaration.
10032 (FRAME_FIND_SAVED_REGS): Delete macro.
10033 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10034 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10035 FRAME_FIND_SAVED_REGS in comment.
10036
10037 2003-04-05 Andrew Cagney <cagney@redhat.com>
10038
10039 * frame.c (frame_func_unwind, get_frame_func): New functions.
10040 * frame.h (get_frame_func, frame_func_unwind): Declare.
10041 (struct frame_info): Add field "prev_func" for caching the
10042 previous frame's function address.
10043 * arm-tdep.c (arm_frameless_function_invocation): Combine
10044 get_pc_function_start and get_frame_pc into get_frame_func.
10045 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10046 (sh64_nofp_frame_init_saved_regs): Ditto.
10047 * s390-tdep.c (s390_function_start): Ditto.
10048 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10049 (rs6000_frameless_function_invocation): Ditto.
10050 (rs6000_frame_saved_pc): Ditto.
10051 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10052 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10053 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10054 (i386_frame_init_saved_regs): Ditto.
10055 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10056 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10057 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10058 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10059 * blockframe.c (frameless_look_for_prologue): Ditto.
10060
10061 2003-04-05 Andrew Cagney <cagney@redhat.com>
10062
10063 * frame.c (legacy_get_prev_frame): Link prev to next at the
10064 function start. Update comments.
10065
10066 2003-04-05 Andrew Cagney <cagney@redhat.com>
10067
10068 * frame.c (get_frame_id): Update comment.
10069 (legacy_get_prev_frame): Update comment.
10070 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10071 * gdbarch.h: Regenerate.
10072 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10073 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10074
10075 2003-04-05 Andrew Cagney <cagney@redhat.com>
10076
10077 * stack.c (print_frame_info): Use get_frame_pc.
10078
10079 2003-04-04 Andrew Cagney <cagney@redhat.com>
10080
10081 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10082 the frame's type from the unwinder.
10083 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10084 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10085 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10086 (get_frame_base_address): Use get_frame_type.
10087 (get_frame_locals_address, get_frame_args_address): Ditto.
10088 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10089 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10090 (struct frame_info): Add comment explaining why the frame contains
10091 a "type" field.
10092 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10093 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10094 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10095 NORMAL_FRAME.
10096 * frame-unwind.h: Include "frame.h".
10097 (struct frame_unwind): Add "type" field.
10098 * Makefile.in (frame_unwind_h): Add $(frame_h).
10099
10100 2003-04-04 Andrew Cagney <cagney@redhat.com>
10101
10102 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10103 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10104 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10105 get_frame_base.
10106 (d10v_unwind_dummy_id): Use frame_id_build.
10107 * frame.c (find_frame_sal): Use get_frame_pc.
10108 (create_new_frame): Use deprecated_update_frame_pc_hack and
10109 deprecated_update_frame_base_hack.
10110 (create_sentinel_frame): Add comment about ->pc going away.
10111 (get_prev_frame): Add comment about ->pc going away.
10112 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10113 frame_id_build, deprecated_update_frame_pc_hack and
10114 deprecated_update_frame_base_hack.
10115 (select_frame): Use get_frame_pc.
10116 (legacy_saved_regs_this_id): Use frame_id_build.
10117
10118 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
10119
10120 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10121 signed integer case.
10122 (classify_argument): Handle enumerations and references.
10123
10124 2003-04-04 Andrew Cagney <cagney@redhat.com>
10125
10126 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10127 ID to NULL.
10128
10129 2003-04-01 Adam Fedor <fedor@gnu.org>
10130
10131 * gdb/objc-lang.c (selectors_info): Replace calls to
10132 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10133 SYMBOL_NATURAL_NAME.
10134 (classes_info, find_methods): Likewise.
10135
10136 2003-04-03 Kevin Buettner <kevinb@redhat.com>
10137
10138 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10139 ``mach'' to the value determined by bfd_default_set_arch_mach().
10140
10141 2003-04-02 Bob Rossi <bob_rossi@cox.net>
10142
10143 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10144 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10145 (mi-cmd-file.o): Update dependencies.
10146
10147 2003-04-01 Kevin Buettner <kevinb@redhat.com>
10148
10149 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10150 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10151
10152 2003-04-01 Adam Fedor <fedor@gnu.org>
10153
10154 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10155 * language.h (struct language_defn): Add la_demangle.
10156 (language_demangle): Declare.
10157 * language.c (language_demangle): New function.
10158 (unk_lang_demangle): Likewise.
10159 (unknown_language_defn, auto_language_defn, local_language_defn):
10160 Add ukn_lang_demangle.
10161 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
10162 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
10163 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10164 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10165 * jv-lang.c (java_demangle): New function
10166 (java_language_defn): Use it for la_demangle element.
10167 * objc-lang.c (objc_demangle): Add options argument
10168 (objc_language_defn): Use objc_demangle for la_demangle element.
10169 * maint.c (maintenance_demangle): Replace switch with
10170 call to language_demangle.
10171 * utils.c (fprintf_symbol_filtered): Likewise.
10172
10173 2003-04-01 Andrew Cagney <cagney@redhat.com>
10174
10175 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10176 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10177 PRINT_TYPELESS_INTEGER.
10178 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10179 PUSH_RETURN_ADDRESS.
10180
10181 2003-04-01 Andrew Cagney <cagney@redhat.com>
10182
10183 * Makefile.in (d10v-tdep.o): Update dependencies.
10184 * d10v-tdep.c: Include "frame-base.h".
10185 (d10v_frame_unwind): Make constant.
10186 (d10v_frame_base_address): New function.
10187 (d10v_frame_base): New variable.
10188 (d10v_gdbarch_init): Set frame_base default.
10189 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10190 comment for base.
10191 (d10v_frame_unwind_cache): Set and use "prev_sp".
10192 (d10v_frame_this_id): Use the previous frame's inner most stack
10193 address and this frame's func address for the frame ID. Use
10194 frame_id_build. Don't analyze beyond the current instruction.
10195
10196 2003-04-01 Andrew Cagney <cagney@redhat.com>
10197
10198 * frame.h (get_frame_locals_address, get_frame_args_address):
10199 Refer to the base address, instead of the address of the first
10200 local or parameter.
10201
10202 2003-04-01 Andrew Cagney <cagney@redhat.com>
10203
10204 Add frame debug info addresses:
10205 * frame-base.c: New file.
10206 * frame-base.h: New file.
10207 * frame.h (struct frame_base): Add opaque declaration.
10208 (get_frame_base): Update comment.
10209 (get_frame_base_address): Declare.
10210 (get_frame_locals_address): Declare.
10211 (get_frame_args_address): Declare.
10212 (struct frame_info): Add "base" and "base_cache". Update
10213 comments on the unwinder.
10214 * frame.c: Include "frame-base.h".
10215 (get_frame_locals_address): New function.
10216 (get_frame_base_address): New function.
10217 (get_frame_args_address): New function.
10218 * findvar.c (read_var_value): Use get_frame_locals_address and
10219 get_frame_args_address.
10220 * stack.c (frame_info): Use get_frame_locals_address and
10221 get_frame_args_address.
10222 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10223 moved to "frame-base.c".
10224 * printcmd.c (print_frame_nameless_args): Ditto.
10225 * symtab.h (address_class): Update comments.
10226 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10227 get_frame_base_address.
10228 * dwarf2expr.c (execute_stack_op): Ditto.
10229 * Makefile.in (frame_base_h): Define.
10230 (frame.o): Update dependencies.
10231 (frame-base.o): Add dependencies.
10232 (SFILES): Add frame-base.c.
10233 (COMMON_OBS): Add frame-base.o.
10234
10235 2003-04-01 Andrew Cagney <cagney@redhat.com>
10236
10237 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10238 CALL_DUMMY_LENGTH): Ditto.
10239 * gdbarch.c: Re-generate.
10240 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10241 (CALL_DUMMY_LENGTH): Delete macro.
10242 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10243 * arm-tdep.c (arm_gdbarch_init): Ditto.
10244 * avr-tdep.c (avr_gdbarch_init): Ditto.
10245 * cris-tdep.c (cris_gdbarch_init): Ditto.
10246 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10247 * frv-tdep.c (frv_gdbarch_init): Ditto.
10248 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10249 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10250 * i386-tdep.c (i386_gdbarch_init): Ditto.
10251 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10252 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10253 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10254 * mips-tdep.c (mips_gdbarch_init): Ditto.
10255 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10256 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10257 * s390-tdep.c (s390_gdbarch_init): Ditto.
10258 * sh-tdep.c (sh_gdbarch_init): Ditto.
10259 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10260 * v850-tdep.c (v850_gdbarch_init): Ditto.
10261 * vax-tdep.c (vax_gdbarch_init): Ditto.
10262 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10263
10264 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
10265
10266 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10267
10268 2003-04-01 Andrew Cagney <cagney@redhat.com>
10269
10270 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10271 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10272 * gdbarch.h, gdbarch.c: Re-generate.
10273 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10274 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10275 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10276 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10277 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10278 * infcmd.c (run_stack_dummy): Simplify assuming
10279 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10280 * infrun.c (handle_inferior_event): Ditto.
10281 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10282 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10283 * arm-tdep.c (arm_gdbarch_init): Ditto.
10284 * avr-tdep.c (avr_gdbarch_init): Ditto.
10285 * cris-tdep.c (cris_gdbarch_init): Ditto.
10286 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10287 * frv-tdep.c (frv_gdbarch_init): Ditto.
10288 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10289 * i386-tdep.c (i386_gdbarch_init): Ditto.
10290 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10291 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10292 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10293 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10294 * mips-tdep.c (mips_gdbarch_init): Ditto.
10295 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10296 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10297 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10298 * s390-tdep.c (s390_gdbarch_init): Ditto.
10299 * sh-tdep.c (sh_gdbarch_init): Ditto.
10300 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10301 * v850-tdep.c (v850_gdbarch_init): Ditto.
10302 * vax-tdep.c (vax_gdbarch_init): Ditto.
10303 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10304
10305 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
10306
10307 * symfile.c (symfile_relocate_debug_section): Update call to
10308 bfd_simple_get_relocated_section_contents.
10309
10310 2003-03-31 Andrew Cagney <cagney@redhat.com>
10311
10312 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10313 * gdbarch.h, gdbarch.c: Regenerate.
10314 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10315 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10316 available.
10317 * frame.h (generic_fix_call_dummy): Delete declaration.
10318 * dummy-frame.h: Update comment.
10319 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10320 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10321 fix_call_dummy.
10322 * sh-tdep.c (sh_gdbarch_init): Ditto.
10323 * s390-tdep.c (s390_gdbarch_init): Ditto.
10324 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10325 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10326 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10327 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10328 * i386-tdep.c (i386_gdbarch_init): Ditto.
10329 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10330 * frv-tdep.c (frv_gdbarch_init): Ditto.
10331 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10332 * cris-tdep.c (cris_gdbarch_init): Ditto.
10333 * avr-tdep.c (avr_gdbarch_init): Ditto.
10334 * arm-tdep.c (arm_gdbarch_init): Ditto.
10335
10336 2003-03-31 J. Brobecker <brobecker@gnat.com>
10337
10338 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10339 (INIT_FRAME_AP): Likewise.
10340 (EXTRA_FRAME_INFO): Likewise.
10341
10342 2003-03-31 Andrew Cagney <cagney@redhat.com>
10343
10344 * gdbarch.sh: Include "symfile.h".
10345 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10346 * gdbarch.h, gdbarch.c: Re-generate.
10347 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10348 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10349 call_dummy_address, the default is at entry_point_address.
10350 * v850-tdep.c (v850_gdbarch_init): Ditto.
10351 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10352 * sh-tdep.c (sh_gdbarch_init): Ditto.
10353 * s390-tdep.c (s390_gdbarch_init): Ditto.
10354 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10355 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10356 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10357 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10358 * i386-tdep.c (i386_gdbarch_init): Ditto.
10359 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10360 * frv-tdep.c (frv_gdbarch_init): Ditto.
10361 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10362 * cris-tdep.c (cris_gdbarch_init): Ditto.
10363 * arm-tdep.c (arm_gdbarch_init): Ditto.
10364
10365 2003-03-31 Andrew Cagney <cagney@redhat.com>
10366
10367 * gdbarch.sh (CALL_DUMMY_P): Delete.
10368 * gdbarch.h, gdbarch.c: Re-generate.
10369 * inferior.h (CALL_DUMMY_P): Delete macro.
10370 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10371 * vax-tdep.c (vax_gdbarch_init): Update.
10372 * v850-tdep.c (v850_gdbarch_init): Update.
10373 * sparc-tdep.c (sparc_gdbarch_init): Update.
10374 * sh-tdep.c (sh_gdbarch_init): Update.
10375 * s390-tdep.c (s390_gdbarch_init): Update.
10376 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10377 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10378 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10379 * mips-tdep.c (mips_gdbarch_init): Update.
10380 * mcore-tdep.c (mcore_gdbarch_init): Update.
10381 * m68k-tdep.c (m68k_gdbarch_init): Update.
10382 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10383 * ia64-tdep.c (ia64_gdbarch_init): Update.
10384 * i386-tdep.c (i386_gdbarch_init): Update.
10385 * h8300-tdep.c (h8300_gdbarch_init): Update.
10386 * frv-tdep.c (frv_gdbarch_init): Update.
10387 * d10v-tdep.c (d10v_gdbarch_init): Update.
10388 * cris-tdep.c (cris_gdbarch_init): Update.
10389 * breakpoint.c (deprecated_frame_in_dummy): Update.
10390 * avr-tdep.c (avr_gdbarch_init): Update.
10391 * alpha-tdep.c (alpha_gdbarch_init): Update.
10392 * arm-tdep.c (arm_gdbarch_init): Update.
10393 * dummy-frame.c (dummy_frame_this_id): Update comments.
10394 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10395 * frame.c (legacy_get_prev_frame): Ditto.
10396 * valops.c (call_function_by_hand): Delete function.
10397 (hand_function_call): Rename to call_function_by_hand
10398
10399 2003-03-30 Andrew Cagney <cagney@redhat.com>
10400
10401 2002-11-10 Klee Dienes <kdienes@apple.com>
10402 * value.h (struct value): Update comment.
10403
10404 2003-03-30 Andrew Cagney <cagney@redhat.com>
10405
10406 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10407 D10V_FP_REGNUM.
10408 (d10v_gdbarch_init): Do not set fp_regnum.
10409
10410 * frame.c (get_frame_base): Force ID initialization.
10411 (get_prev_frame): Move computation of the frame ID from here ...
10412 (get_frame_id): ... to here.
10413 (legacy_get_prev_frame): Mark the frame ID as valid.
10414 * frame.h (struct frame_info): Add field "id_p".
10415
10416 2003-03-30 Mark Kettenis <kettenis@gnu.org>
10417
10418 * i386-tdep.c (i386_store_struct_return): Removed.
10419 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10420
10421 2003-03-30 Andrew Cagney <cagney@redhat.com>
10422
10423 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10424 * gdbarch.h, gdbarch.c: Regenerate.
10425 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10426 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10427 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10428 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10429 * i386-tdep.c (i386_gdbarch_init): Ditto.
10430 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10431 * cris-tdep.c (cris_gdbarch_init): Ditto.
10432 * vax-tdep.c (vax_gdbarch_init): Ditto.
10433 * s390-tdep.c (s390_gdbarch_init): Ditto.
10434 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10435 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10436 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10437 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10438 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10439 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10440 * sparc-tdep.c (sparc_gdbarch_init): Update.
10441 * sh-tdep.c (sh_gdbarch_init): Update.
10442 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10443 * mips-tdep.c (mips_gdbarch_init): Update.
10444 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10445 * ia64-tdep.c (ia64_gdbarch_init): Update.
10446 * frv-tdep.c (frv_gdbarch_init): Update.
10447 * avr-tdep.c (avr_gdbarch_init): Update.
10448 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10449 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10450 instead of when push_dummy_call is not available.
10451
10452 2003-03-30 Andrew Cagney <cagney@redhat.com>
10453
10454 * infttrace.c: Include "gdbthread.h".
10455 (parent_attach_all): Fix function signature.
10456 (call_ptrace): Update call.
10457 * Makefile.in (infttrace.o): Update dependencies.
10458
10459 2003-03-30 Andrew Cagney <cagney@redhat.com>
10460
10461 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10462 PUSH_RETURN_ADDRESS.
10463 * gdbarch.h, gdbarch.c: Regenerate.
10464 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10465 * x86-64-tdep.c (x86_64_init_abi): Update.
10466 * v850-tdep.c (v850_gdbarch_init): Update.
10467 * sparc-tdep.c (sparc_gdbarch_init): Update.
10468 * sh-tdep.c (sh_gdbarch_init): Update.
10469 * s390-tdep.c (s390_gdbarch_init): Update.
10470 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10471 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10472 * mips-tdep.c (mips_gdbarch_init): Update.
10473 * mcore-tdep.c (mcore_gdbarch_init): Update.
10474 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10475 * ia64-tdep.c (ia64_gdbarch_init): Update.
10476 * i386-tdep.c (i386_gdbarch_init): Update.
10477 * h8300-tdep.c (h8300_gdbarch_init): Update.
10478 * frv-tdep.c (frv_gdbarch_init): Update.
10479 * cris-tdep.c (cris_gdbarch_init): Update.
10480 * avr-tdep.c (avr_gdbarch_init): Update.
10481 * arm-tdep.c (arm_gdbarch_init): Update.
10482 * valops.c (hand_function_call): Update.
10483
10484 2003-03-29 Andrew Cagney <cagney@redhat.com>
10485
10486 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10487 sizeof_call_dummy_words.
10488 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10489 define.
10490 * gdbarch.h: Regenerate.
10491
10492 2003-03-29 Andrew Cagney <cagney@redhat.com>
10493
10494 * infttrace.h: New file.
10495 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10496 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10497 (hpread_read_doc_function_type): Detect an initialized type1.
10498 (hpread_quick_traverse): Initialize mod_name_string.
10499 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10500 (som_solib_get_solib_by_pc): Declare.
10501 (so_lib_thread_start_addr): Declare.
10502 (no_shared_libraries): Declare.
10503 * somread.c (init_import_symbols): Make static. Add forward
10504 declaration.
10505 * config/pa/nm-hppah.h: Include "infttrace.h" for
10506 parent_attach_all.
10507 (hppa_insert_hw_watchpoint): Declare.
10508 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10509 * hppah-nat.c: Include "gdb_string.h".
10510 (parent_attach_all): Delete extern declaration, moved to
10511 "infttrace.h".
10512 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10513 int.
10514 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10515 * Makefile.in (infttrace_h): Define.
10516 (hpread.o): Update dependencies.
10517 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10518 * hppa-hpux-tdep.c: Include "gdb_string.h".
10519 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10520 * infrun.c (handle_inferior_event): Always initialize
10521 stepped_after_stopped_by_watchpoint. Add default and remove
10522 fallthrough in switch statement.
10523 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10524 parameter to int.
10525 (hppa_remove_hw_watchpoint): Ditto.
10526
10527 2003-03-29 Andrew Cagney <cagney@redhat.com>
10528
10529 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10530 offset.
10531
10532 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
10533
10534 * arm-tdep.c (arm_push_arguments): Delete.
10535 (struct stack_item): New type.
10536 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10537 (arm_store_struct_return): Delte.
10538 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10539 arm_push_arguments or arm_store_struct_return.
10540
10541 2003-03-28 Andrew Cagney <cagney@redhat.com>
10542
10543 * Makefile.in (d10v-tdep.o): Update dependencies.
10544 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10545 * d10v-tdep.c: Include "remote.h".
10546 (target_resume_hook): Delete extern declaration.
10547 (target_wait_loop_hook): Ditto.
10548 (tdisassemble_command): Eliminate assignment in "if" conditional.
10549 (d10v_ts2_register_sim_regno): Eliminate call to
10550 legacy_register_sim_regno.
10551 (d10v_ts3_register_sim_regno): Ditto.
10552
10553 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10554
10555 * thread.c: Reindented.
10556 * lin-lwp.c: Ditto.
10557 * linux-proc.c: Ditto.
10558
10559 2003-03-28 Bob Rossi <bob_rossi@cox.net>
10560
10561 * MAINTAINERS (write after approval): Add myself.
10562
10563 2003-03-27 Theodore A. Roth <troth@openavr.org>
10564
10565 * objc-exp.y: Add missing semi-colons.
10566
10567 2003-03-27 Andrew Cagney <cagney@redhat.com>
10568
10569 * regcache.c (write_sp): Delete function and references.
10570 * inferior.h (write_sp): Delete declaration.
10571 * valops.c (hand_function_call): Replace write_sp with
10572 TARGET_WRITE_SP.
10573 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10574 (sparc_pop_frame): Ditto.
10575
10576 2003-03-27 Andrew Cagney <cagney@redhat.com>
10577
10578 * NEWS: Mention removal of support for hppa*-*-bsd* and
10579 hppa*-*-osf* natives, and hppa*-*-pro* target.
10580 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10581 * config/pa/xm-pa.h: Obsolete file.
10582 * config/pa/xm-hppab.h: Obsolete file.
10583 * config/pa/nm-hppab.h: Obsolete file.
10584 * config/pa/tm-hppab.h: Obsolete file.
10585 * config/pa/tm-hppao.h: Obsolete file.
10586 * config/pa/nm-hppao.h: Obsolete file.
10587 * config/pa/tm-pro.h: Obsolete file.
10588 * config/pa/hppaosf.mt: Obsolete file.
10589 * config/pa/hppaosf.mh: Obsolete file.
10590 * config/pa/hppapro.mt: Obsolete file.
10591 * config/pa/hppabsd.mt: Obsolete file.
10592 * config/pa/hppabsd.mh: Obsolete file.
10593 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10594 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10595 hppa*-*-osf*.
10596
10597 2003-03-27 Andrew Cagney <cagney@redhat.com>
10598
10599 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10600 push_arguments. Don't set push_return_address or write_sp.
10601 (d10v_push_dummy_call): Replace d10v_push_arguments.
10602 (d10v_push_return_address, d10v_write_sp): Delete function,
10603 handled by push_dummy_call.
10604
10605 2003-03-26 Andrew Cagney <cagney@redhat.com>
10606
10607 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10608 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10609 regcache and dummy_addr parameters.
10610 * gdbarch.h, gdbarch.c: Re-generate.
10611 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10612 available; assume it will handle stack alignment and return
10613 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10614 legacy_push_arguments.
10615 (legacy_push_arguments): Rename default_push_arguments.
10616 * value.h (legacy_push_arguments): Rename default_push_arguments.
10617 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10618 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10619 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10620 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10621 * config/i386/tm-symmetry.h: Update.
10622 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10623 * x86-64-tdep.c (x86_64_init_abi): Update.
10624 * v850-tdep.c (v850_gdbarch_init): Update.
10625 * sparc-tdep.c (sparc_gdbarch_init): Update.
10626 * sh-tdep.c (sh_gdbarch_init): Update.
10627 * s390-tdep.c (s390_gdbarch_init): Update.
10628 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10629 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10630 * mips-tdep.c (mips_gdbarch_init): Update.
10631 * mcore-tdep.c (mcore_gdbarch_init): Update.
10632 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10633 * ia64-tdep.c (ia64_gdbarch_init): Update.
10634 * i386-tdep.c (i386_gdbarch_init): Update.
10635 * hppa-tdep.c (hppa_gdbarch_init): Update.
10636 * h8300-tdep.c (h8300_gdbarch_init): Update.
10637 * frv-tdep.c (frv_gdbarch_init): Update.
10638 * d10v-tdep.c (d10v_gdbarch_init): Update.
10639 * cris-tdep.c (cris_gdbarch_init): Update.
10640 * avr-tdep.c (avr_gdbarch_init): Update.
10641 * arm-tdep.c (arm_gdbarch_init): Update.
10642 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10643 * alpha-tdep.c (alpha_gdbarch_init): Update.
10644
10645 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10646
10647 * signals/signals.c (do_target_signal_to_host): Correct realtime
10648 signal range test.
10649
10650 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10651
10652 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10653 (struct sal_chain, map_catch_names): Remove.
10654 (catch_exception_command_1): Don't call
10655 handle_gnu_4_16_catch_command.
10656
10657 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10658
10659 From Mark Dettinger <dettinge@de.ibm.com>:
10660 * dwarf2cfi.c (read_2u): Increment pointer by two.
10661
10662 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10663
10664 * signals/signals.c: Fix typos in last change.
10665
10666 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10667
10668 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10669 not already defined. Use __SIGRTMIN if available.
10670 (target_signal_from_host): Remove SIGRTMIN block.
10671 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10672 the signal is within the realtime range.
10673
10674 2003-03-25 Adam Fedor <fedor@gnu.org>
10675
10676 * Makefile.in (infrun.o): Add $(language_h)
10677 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10678 for language specific trampolines.
10679 * language.h (struct language_defn): Add skip_trampoline.
10680 (skip_language_trampoline): Declare.
10681 * language.c (unk_lang_trampoline, skip_language_trampoline):
10682 New functions.
10683 (unknown_language_defn, auto_language_defn, local_language_defn):
10684 Add ukn_lang_trampoline.
10685 * ada-lang.c (ada_language_defn): Add NULL for language
10686 specific skip_trampoline.
10687 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10688 scm-lang.c: Likewise.
10689 * objc-lang.c (objc_skip_trampoline): New function.
10690 (objc_language_defn): Add objc_skip_trampoline.
10691
10692 2003-03-25 Andrew Cagney <cagney@redhat.com>
10693
10694 * frame.c (get_prev_frame): Delay validating a frame's ID -
10695 non-NULL, didn't go backwards - until an attempt to unwind it to
10696 the previous frame.
10697
10698 2003-03-25 Andrew Cagney <cagney@redhat.com>
10699
10700 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10701 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10702 * gdbarch.h, gdbarch.c: Re-generate.
10703 * config/sparc/tm-sparc.h
10704 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10705 * sparc-tdep.c (sparc_gdbarch_init): Set
10706 deprecated_extra_stack_alignment_needed.
10707 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10708 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10709 extra_stack_alignment_needed.
10710 * v850-tdep.c (v850_gdbarch_init): Ditto.
10711 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10712 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10713 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10714 * cris-tdep.c (cris_gdbarch_init): Ditto.
10715 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10716 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10717
10718 2003-03-25 Andrew Cagney <cagney@redhat.com>
10719
10720 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10721 STORE_STRUCT_RETURN.
10722 * gdbarch.h, gdbarch.c: Regenerate.
10723 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10724 (d10v_push_arguments): Set the struct return register.
10725 (d10v_gdbarch_init): Update.
10726 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10727 * x86-64-tdep.c (x86_64_init_abi): Update.
10728 * vax-tdep.c (vax_gdbarch_init): Update.
10729 * v850-tdep.c (v850_gdbarch_init): Update.
10730 * sparc-tdep.c (sparc_gdbarch_init): Update.
10731 * sh-tdep.c (sh_gdbarch_init): Update.
10732 * s390-tdep.c (s390_gdbarch_init): Update.
10733 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10734 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10735 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10736 * mips-tdep.c (mips_gdbarch_init): Update.
10737 * mcore-tdep.c (mcore_gdbarch_init): Update.
10738 * m68k-tdep.c (m68k_gdbarch_init): Update.
10739 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10740 * ia64-tdep.c (ia64_gdbarch_init): Update.
10741 * i386-tdep.c (i386_gdbarch_init): Update.
10742 * hppa-tdep.c (hppa_gdbarch_init): Update.
10743 * h8300-tdep.c (h8300_gdbarch_init): Update.
10744 * frv-tdep.c (frv_gdbarch_init): Update.
10745 * cris-tdep.c (cris_gdbarch_init): Update.
10746 * avr-tdep.c (avr_gdbarch_init): Update.
10747 * arm-tdep.c (arm_gdbarch_init): Update.
10748 * alpha-tdep.c (alpha_gdbarch_init): Update.
10749
10750 2003-03-25 Andrew Cagney <cagney@redhat.com>
10751
10752 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10753 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10754 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10755 * gdbarch.h, gdbarch.c: Regenerate.
10756 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10757 call_dummy_stack_adjust_p.
10758 * vax-tdep.c (vax_gdbarch_init): Ditto.
10759 * v850-tdep.c (v850_gdbarch_init): Ditto.
10760 * sh-tdep.c (sh_gdbarch_init): Ditto.
10761 * s390-tdep.c (s390_gdbarch_init): Ditto.
10762 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10763 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10764 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10765 * mips-tdep.c (mips_gdbarch_init): Ditto.
10766 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10767 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10768 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10769 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10770 * i386-tdep.c (i386_gdbarch_init): Ditto.
10771 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10772 * frv-tdep.c (frv_gdbarch_init): Ditto.
10773 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10774 * cris-tdep.c (cris_gdbarch_init): Ditto.
10775 * avr-tdep.c (avr_gdbarch_init): Ditto.
10776 * arm-tdep.c (arm_gdbarch_init): Ditto.
10777 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10778 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10779 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10780 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10781 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10782 call_dummy_stack_adjust_p.
10783 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10784 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10785 * sparc-tdep.c (sparc32_push_arguments): Update.
10786 * valops.c (hand_function_call): Update.
10787
10788 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
10789
10790 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10791 set_gdbarch_char_signed.
10792
10793 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10794
10795 PR cli/548
10796 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10797
10798 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10799
10800 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10801 (_initialize_arm_tdep): Don't set tm_print_insn.
10802
10803 2003-03-24 Adam Fedor <fedor@gnu.org>
10804
10805 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10806 * objc-lang.h: Add multiple inclusion protection.
10807 (start_msglist, add_msglist, end_msglist): Additional declarations.
10808
10809 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
10810
10811 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10812 value was renamed to ARM_FLOAT_SOFT_FPA.
10813
10814 2003-03-23 Andrew Cagney <cagney@redhat.com>
10815
10816 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10817 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10818 * gdbarch.h, gdbarch.c: Regenerate.
10819 * valops.c (hand_function_call): Update.
10820 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10821 * frame.c (legacy_saved_regs_this_id): Update.
10822 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10823 * dummy-frame.h: Update.
10824 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10825 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10826 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10827 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10828 * config/m68k/tm-sun3.h: Update.
10829 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10830 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10831 * x86-64-tdep.c (x86_64_init_abi): Update.
10832 * vax-tdep.c (vax_gdbarch_init): Update.
10833 * v850-tdep.c (v850_gdbarch_init): Update.
10834 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10835 * sh-tdep.c (sh_gdbarch_init): Update.
10836 * s390-tdep.c (s390_gdbarch_init): Update.
10837 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10838 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10839 (frame_get_saved_regs): Update.
10840 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10841 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10842 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10843 * mips-tdep.c (mips_gdbarch_init): Update.
10844 * mcore-tdep.c (mcore_gdbarch_init): Update.
10845 * m68k-tdep.c (m68k_gdbarch_init): Update.
10846 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10847 * ia64-tdep.c (ia64_gdbarch_init): Update.
10848 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10849 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10850 (i386_interix_back_one_frame): Update.
10851 * hppa-tdep.c (hppa_gdbarch_init): Update.
10852 (hppa_init_extra_frame_info): Update.
10853 * h8300-tdep.c (h8300_gdbarch_init): Update.
10854 * frv-tdep.c (frv_gdbarch_init): Update.
10855 * cris-tdep.c (cris_gdbarch_init): Update.
10856 * avr-tdep.c (avr_gdbarch_init): Update.
10857 * arm-tdep.c (arm_gdbarch_init): Update.
10858 * alpha-tdep.c (alpha_gdbarch_init): Update.
10859
10860 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10861
10862 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10863 (arm_get_fp_model): Declare.
10864 * arm-tdep.c (fp_model_strings): New string array.
10865 (arm_fp_model, current_fp_model): New variables.
10866 (arm_get_fp_model): New function.
10867 (arm_set_fp): New function.
10868 (set_fp_model_sfunc): New function.
10869 (show_fp_model): New function.
10870 (_initialize_arm_tdep): Add new command to set/show the FPU.
10871 (arm_extract_return_value): Use arm_get_fp_model.
10872 (arm_store_return_value): Likewise.
10873 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10874 to initialize the floating-point data types.
10875 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10876 model is FPA.
10877
10878 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10879
10880 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10881 the current setting of each value.
10882 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
10883 new_set and new_show. Use add_setshow_cmd_full and
10884 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10885 commands and add new version as subcommands of "set/show arm".
10886
10887 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10888
10889 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10890 (set_arm_command, show_arm_command): New functions.
10891 (_initialize_arm_tdep): Add them.
10892 (num_disassembly_options): Renamed from num_flavor_options.
10893 (valid_disassembly_styles): Renamed from valid_flavors.
10894 (disassembly_style): Renamed from disassembly_flavor.
10895 (set_disassembly_style_sfunc): Renamed from
10896 set_disassembly_flavor_sfunc.
10897 (set_disassembly_style): Renamed from set_disassembly_flavor.
10898 (arm_othernames): Updated.
10899 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10900 command. Add "set/show arm disassembly" commands. Deprecate
10901 "othernames" command.
10902
10903 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10904
10905 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10906 (arm-tdep.o): Depend on elf_arm_h.
10907
10908 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10909
10910 * Makefile.in (coff_internal_h): Define.
10911 (arm-tdep.o): Update dependencies.
10912
10913 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10914
10915 * arm-tdep.c (prologue_cache): Delete.
10916 (check_prologue_cache, save_prologue_cache): Delete.
10917 (arm_scan_prologue): Don't check or update the prologue_cache.
10918 (arm_gdb_arch_init): Don't initialize it.
10919 (_initialize_arm_tdep): Likewise.
10920
10921 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10922
10923 * MAINTAINERS (tui): Maintainer of tui code.
10924
10925 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
10926
10927 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10928 (i386-cygwin-tdep.o): Add dependencies.
10929 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10930 * i386-cygwin-tdep.c: New file.
10931 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10932 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10933
10934 2003-03-20 Andrew Cagney <cagney@redhat.com>
10935
10936 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10937 (handle_inferior_event): Remove code calling
10938 DYNAMIC_TRAMPOLINE_NEXTPC.
10939
10940 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10941 already has a full path.
10942
10943 * main.c (gdb_main): Return 1.
10944 (captured_main): Call error to report an invalid interpreter.
10945
10946 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10947 * alpha-osf1-tdep.c: Include "gdb_string.h".
10948
10949 2003-03-19 J. Brobecker <brobecker@gnat.com>
10950
10951 Continuing work to convert the hppa targets to multiarch partial.
10952
10953 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10954 method, now that hppa_push_dummy_frame has a conformant prototype.
10955 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10956 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10957 for the switch to multiarch partial.
10958
10959 2003-03-19 Kevin Buettner <kevinb@redhat.com>
10960
10961 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10962 when iss is issNull.
10963
10964 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10965
10966 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10967 NUM_REGS bounds check.
10968
10969 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10970
10971 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10972 * mips-tdep.c (gdb_assert.h): Include.
10973 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10974 (mips_register_name): Handle integer registers explicitly. Add
10975 bounds checking.
10976 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10977 (mips_lsi33k_reg_names): Don't list integer registers; they're
10978 handled by mips_register_name() now.
10979 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10980 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10981 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10982 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10983 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10984
10985 2003-03-18 Andrew Cagney <cagney@redhat.com>
10986
10987 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10988 a void pointer.
10989 * gdbtypes.h (print_scalar_formatted): Update declaration.
10990 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10991
10992 2003-03-18 J. Brobecker <brobecker@gnat.com>
10993
10994 * infrun.c (observer.h): Add #include.
10995 (normal_stop): Add call to observer_notify_normal_stop.
10996 * Makefile.in (infrun.o): Add dependency on observer.h.
10997
10998 2003-03-18 J. Brobecker <brobecker@gnat.com>
10999
11000 Continuing work to convert the hppa targets to multiarch partial.
11001 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11002 parameter. Reformat comment.
11003 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11004 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11005 to match new profile.
11006
11007 2003-03-18 J. Brobecker <brobecker@gnat.com>
11008
11009 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11010 appear to be working in any case.
11011
11012 2003-03-18 J. Brobecker <brobecker@gnat.com>
11013
11014 * observer.c (observer_test_first_observer): New static variable.
11015 (observer_test_second_observer): Likewise.
11016 (observer_test_third_observer): Likewise.
11017 (observer_test_first_notification_function): New static function.
11018 (observer_test_second_notification_function): Likewise.
11019 (observer_test_third_notification_function): Likewise.
11020
11021 2003-03-17 J. Brobecker <brobecker@gnat.com>
11022
11023 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11024 * somsolib.c (gdb_assert.h): Likewise.
11025 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11026 (somsolib.o): Likewise.
11027
11028 2003-03-17 Andrew Cagney <cagney@redhat.com>
11029
11030 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11031 BFD. Simplify setting of di.endian.
11032
11033 2003-03-17 Andrew Cagney <cagney@redhat.com>
11034
11035 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11036 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11037
11038 From Elena Zannoni <ezannoni@redhat.com>
11039 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11040 vector and floating-point parameters.
11041 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11042 convention.
11043 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11044
11045 2003-03-17 Fernando Nasser <fnasser@redhat.com>
11046
11047 * MAINTAINERS: Remove my name from several maintainership roles.
11048
11049 2003-03-17 Andrew Cagney <cagney@redhat.com>
11050
11051 Fix frame off-by-one bug.
11052 * frame-unwind.h (frame_this_id_ftype): Replace
11053 frame_unwind_id_ftype.
11054 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11055 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11056 with "prev_register".
11057 * frame-unwind.c (frame_unwind_find_by_pc): Return
11058 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11059 comment.
11060 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11061 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11062 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11063 (dummy_frame_unwind): Update.
11064 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11065 sentinel_frame_register_unwind.
11066 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11067 (sentinel_frame_unwinder): Update.
11068 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11069 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11070 * frame.c (create_sentinel_frame): Update. Initialize
11071 "prologue_cache" instead of "unwind_cache".
11072 (frame_register_unwind): Call this frame's prev_register with the
11073 next frame and this frame's prologue cache.
11074 (get_prev_frame): Simplify. Always call prev frame's this_id with
11075 this frame and prev frame's prologue cache. Document that this
11076 call is shifted one to the left when compared to the
11077 frame_register_unwind call.
11078 (legacy_saved_regs_prev_register): Replace
11079 frame_saved_regs_register_unwind.
11080 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11081 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11082 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11083 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11084 (d10v_frame_unwind): Update.
11085 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11086 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11087 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11088 "saved_regs" with "this_saved_regs".
11089
11090 2003-03-16 Andrew Cagney <cagney@redhat.com>
11091
11092 * frame.c (frame_pop): Don't call target_store_registers. Fix
11093 problem reported by Mark Kettenis.
11094
11095 2003-03-16 Mark Kettenis <kettenis@gnu.org>
11096
11097 * i386-tdep.c (i386_register_type): Renamed from
11098 i386_register_virtual_type. Adjust function signature.
11099 (i386_gdbarch_init): Set register_type instead of
11100 deprecated_max_register_raw_size,
11101 deprecated_max_register_virtual_size and register_virtual_type.
11102
11103 2003-03-14 Andrew Cagney <cagney@redhat.com>
11104
11105 * frame.c (get_prev_frame): When a legacy frame, always call
11106 legacy_get_prev_frame. Simplify unwind code using assumption that
11107 the unwinder is new.
11108 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11109 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11110 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11111
11112 2003-03-14 Andrew Cagney <cagney@redhat.com>
11113
11114 * frame.c (get_saved_register): Delete function.
11115 * frame.h (get_saved_register): Delete declaration.
11116 * xstormy16-tdep.c: Update comment.
11117 * regcache.h: Update comments.
11118 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11119 get_saved_register and extract_address, use
11120 frame_read_unsigned_register.
11121 (sparc_frame_saved_pc): Ditto.
11122 (sparc_get_saved_register): Instead of get_saved_register, use
11123 frame_register.
11124 (sparc_pop_frame): Ditto.
11125 * findvar.c: Update comments.
11126 (value_of_register): Call frame_register instead of
11127 get_saved_register.
11128 (value_from_register): Ditto.
11129 * config/sparc/tm-sparc.h: Update comment.
11130 * breakpoint.c: Update comment.
11131
11132 2003-03-14 Andrew Cagney <cagney@redhat.com>
11133
11134 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11135 GET_SAVED_REGISTER.
11136 * gdbarch.h, gdbarch.c: Re-generate.
11137 * frame.h: Update comments.
11138 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11139 * x86-64-tdep.c (x86_64_init_abi): Update.
11140 * sparc-tdep.c (sparc_gdbarch_init): Update.
11141 * sh-tdep.c (sh_gdbarch_init): Update.
11142 * mips-tdep.c (mips_gdbarch_init): Update.
11143 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11144 * cris-tdep.c (cris_gdbarch_init): Update.
11145 * ia64-tdep.c (ia64_gdbarch_init): Update.
11146 * frame.c (frame_register): Update.
11147 (get_saved_register): Update.
11148 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
11149
11150 2003-03-13 Andrew Cagney <cagney@redhat.com>
11151
11152 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11153 * gdbarch.h, gdbarch.c: Regenerate.
11154 * valops.c (hand_function_call): Update comment.
11155 * stack.c (return_command): Update comment.
11156 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11157 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11158 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11159 * x86-64-tdep.c (x86_64_init_abi): Update.
11160 * vax-tdep.c (vax_gdbarch_init): Update.
11161 * v850-tdep.c (v850_gdbarch_init): Update.
11162 * sparc-tdep.c (sparc_gdbarch_init): Update.
11163 * sh-tdep.c (sh_gdbarch_init): Update.
11164 * s390-tdep.c (s390_gdbarch_init): Update.
11165 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11166 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11167 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11168 * mips-tdep.c (mips_gdbarch_init): Update.
11169 * mcore-tdep.c (mcore_gdbarch_init): Update.
11170 * m68k-tdep.c (m68k_gdbarch_init): Update.
11171 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11172 * ia64-tdep.c (ia64_gdbarch_init): Update.
11173 * i386-tdep.c (i386_gdbarch_init): Update.
11174 * hppa-tdep.c (hppa_gdbarch_init): Update.
11175 * h8300-tdep.c (h8300_gdbarch_init): Update.
11176 * frv-tdep.c (frv_gdbarch_init): Update.
11177 * cris-tdep.c (cris_gdbarch_init): Update.
11178 * avr-tdep.c (avr_gdbarch_init): Update.
11179 * arm-tdep.c (arm_gdbarch_init): Update.
11180 * alpha-tdep.c (alpha_gdbarch_init): Update.
11181
11182 2003-03-13 Andrew Cagney <cagney@redhat.com>
11183
11184 * frame.c (legacy_frame_p): New function.
11185 (get_prev_frame): Use legacy_frame_p.
11186 * frame.h (legacy_frame_p): Declare.
11187
11188 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11189
11190 * MAINTAINERS (write after approval): Alphabetically
11191 listing corrected.
11192
11193 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11194
11195 * MAINTAINERS (write after approval): Add myself.
11196
11197 2003-03-12 Andrew Cagney <cagney@redhat.com>
11198
11199 * frame.c (get_prev_frame): Rename the frame parameter to
11200 "this_frame".
11201 (get_next_frame, legacy_get_prev_frame): Ditto.
11202
11203 2003-03-12 Andrew Cagney <cagney@redhat.com>
11204
11205 * frame.c (get_current_frame): Check target_has_registers before
11206 checking target_has_stack.
11207 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11208 instead of deprecated_selected_frame.
11209 * findvar.c (value_of_register): Pass "frame", not
11210 deprecated_selected_frame, to value_of_builtin_reg.
11211
11212 2003-03-12 Andrew Cagney <cagney@redhat.com>
11213
11214 * regcache.c (regcache_cooked_write_signed): New function.
11215 (regcache_cooked_write_unsigned): New function.
11216 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11217 (regcache_cooked_read_signed): Fix regnum in range assertion.
11218 * regcache.h (regcache_cooked_write_signed): Declare.
11219 (regcache_cooked_write_unsigned): Declare.
11220
11221 2003-03-12 Andrew Cagney <cagney@redhat.com>
11222
11223 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11224 * gdbarch.h, gdbarch.c: Re-generate.
11225 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11226 * x86-64-tdep.h: Update.
11227 * x86-64-tdep.c (x86_64_init_abi): Update.
11228 * v850-tdep.c (v850_gdbarch_init): Update.
11229 * sparc-tdep.c (sparc_gdbarch_init): Update.
11230 * sh-tdep.c (sh_gdbarch_init): Update.
11231 * s390-tdep.c (s390_gdbarch_init): Update.
11232 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11233 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11234 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11235 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11236 * mips-tdep.c (mips_gdbarch_init): Update.
11237 * mcore-tdep.c (mcore_gdbarch_init): Update.
11238 * m68k-tdep.c (m68k_gdbarch_init): Update.
11239 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11240 * ia64-tdep.c (ia64_gdbarch_init): Update.
11241 * i386-tdep.c (i386_gdbarch_init): Update.
11242 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11243 * hppa-tdep.c (hppa_gdbarch_init): Update.
11244 * h8300-tdep.c (h8300_gdbarch_init): Update.
11245 * frv-tdep.c (frv_gdbarch_init): Update.
11246 * cris-tdep.c (cris_gdbarch_init): Update.
11247 * avr-tdep.c (avr_gdbarch_init): Update.
11248 * arm-tdep.c (arm_gdbarch_init): Update.
11249 * alpha-tdep.c (alpha_gdbarch_init): Update.
11250 * sh-tdep.c (sh_init_extra_frame_info): Update.
11251 (sh64_init_extra_frame_info): Update.
11252 * ns32knbsd-nat.c (frame_num_args): Update.
11253 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11254 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11255 (xstormy16_frame_chain_valid): Update.
11256 * vax-tdep.c (vax_saved_pc_after_call): Update.
11257 * v850-tdep.c (v850_frame_chain): Update.
11258 (v850_pop_frame): Update.
11259 (v850_init_extra_frame_info): Update.
11260 * sparc-tdep.c (setup_arbitrary_frame): Update.
11261 * ns32k-tdep.c (umax_frame_num_args): Update.
11262 * s390-tdep.c (s390_pop_frame_regular): Update.
11263 * mn10300-tdep.c (mn10300_frame_chain): Update.
11264 (mn10300_pop_frame_regular): Update.
11265 (mn10300_init_extra_frame_info): Update.
11266 * mips-tdep.c (mips_init_frame_pc_first): Update.
11267 (mips_frame_chain): Update.
11268 (mips_pop_frame): Update.
11269 * mcore-tdep.c (mcore_frame_chain): Update.
11270 (mcore_pop_frame): Update.
11271 (mcore_init_extra_frame_info): Update.
11272 * arch-utils.c (init_frame_pc_default): Update.
11273 * m68k-tdep.c (isi_frame_num_args): Update.
11274 (delta68_frame_num_args): Update.
11275 (news_frame_num_args): Update.
11276 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11277 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11278 (alpha_frame_chain): Update.
11279 (alpha_pop_frame): Update.
11280 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11281 (hppa_init_extra_frame_info): Update.
11282 (hppa_frame_chain): Update.
11283 (hppa_frame_chain_valid): Update.
11284 * cris-tdep.c (cris_init_extra_frame_info): Update.
11285 * avr-tdep.c (avr_init_extra_frame_info): Update.
11286 * arm-tdep.c (arm_frame_chain_valid): Update.
11287 (arm_init_extra_frame_info): Update.
11288 (arm_pop_frame): Update.
11289 * frame.c (frame_pc_unwind): Update.
11290 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11291 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11292 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11293 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11294 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11295 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11296
11297 2003-03-12 Andrew Cagney <cagney@redhat.com>
11298
11299 Eliminate the need for POP_FRAME.
11300 * frame.c (do_frame_unwind_register): New function.
11301 (frame_pop): When no POP_FRAME, pop the frame using register
11302 unwind and a scratch regcache.
11303 (frame_saved_regs_pop): Delete function.
11304 (trad_frame_unwinder): Update.
11305 * d10v-tdep.c (d10v_frame_pop): Delete function.
11306 (d10v_frame_unwind): Update.
11307 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11308 (sentinel_frame_unwinder): Update.
11309 * dummy-frame.c (dummy_frame_pop): Delete function.
11310 (dummy_frame_unwind): Update.
11311 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11312 (struct frame_unwind): Update.
11313
11314 2003-03-11 Kevin Buettner <kevinb@redhat.com>
11315
11316 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11317 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11318 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11319 Do range checks on register number obtained from debugging info.
11320 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11321 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11322 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11323 mapping function.
11324 (do_fp_register_row): Fix typo which caused double type to be
11325 used when attempting to unpack a float.
11326
11327 2003-03-11 J. Brobecker <brobecker@gnat.com>
11328
11329 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11330
11331 2003-03-11 Andrew Cagney <cagney@redhat.com>
11332
11333 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11334 frame. Problem found by Corinna Vinschen.
11335
11336 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11337
11338 * doublest.c (floatformat_from_length): Accept also
11339 the real size of 'long double' type.
11340
11341 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
11342
11343 From Klee Dienes <kdienes@apple.com>:
11344 * breakpoint.c (bpstat_copy): Copy the command lines as well
11345 as the old value, to match what is freed in bpstat_clear.
11346
11347 2003-03-10 David Carlton <carlton@math.stanford.edu>
11348
11349 * minsyms.c (add_minsym_to_hash_table): Replace
11350 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11351 (compare_minimal_symbols, compact_minimal_symbols)
11352 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11353 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11354 of DEPRECATED_SYMBOL_MATCHES_NAME.
11355 (lookup_minimal_symbol_solib_trampoline): Ditto.
11356
11357 2003-03-10 Andrew Cagney <cagney@redhat.com>
11358
11359 * regcache.h (regcache_cooked_read_ftype): Define.
11360 (regcache_save, regcache_restore): Add a cooked_read parameter.
11361 * regcache.c (regcache_save, regcache_restore): Update.
11362 (do_cooked_read): New function.
11363 (regcache_cpy): Pass do_cooked_read to regcache_save and
11364 regcache_restore.
11365
11366 2003-03-10 Andrew Cagney <cagney@redhat.com>
11367
11368 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11369 * gdbarch.h, gdbarch.c: Re-generate.
11370 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11371 * x86-64-tdep.h: Update.
11372 * x86-64-tdep.c (x86_64_init_abi): Update.
11373 * v850-tdep.c (v850_gdbarch_init): Update.
11374 * sparc-tdep.c (sparc_gdbarch_init): Update.
11375 * sh-tdep.c (sh_gdbarch_init): Update.
11376 * s390-tdep.c (s390_gdbarch_init): Update.
11377 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11378 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11379 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11380 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11381 * mips-tdep.c (mips_gdbarch_init): Update.
11382 * mcore-tdep.c (mcore_gdbarch_init): Update.
11383 * m68k-tdep.c (m68k_gdbarch_init): Update.
11384 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11385 * ia64-tdep.c (ia64_gdbarch_init): Update.
11386 * i386-tdep.c (i386_gdbarch_init): Update.
11387 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11388 * hppa-tdep.c (hppa_gdbarch_init): Update.
11389 * h8300-tdep.c (h8300_gdbarch_init): Update.
11390 * frv-tdep.c (frv_gdbarch_init): Update.
11391 * cris-tdep.c (cris_gdbarch_init): Update.
11392 * avr-tdep.c (avr_gdbarch_init): Update.
11393 * arm-tdep.c (arm_gdbarch_init): Update.
11394 * alpha-tdep.c (alpha_gdbarch_init): Update.
11395 * sh-tdep.c (sh_init_extra_frame_info): Update.
11396 (sh64_init_extra_frame_info): Update.
11397 * ns32knbsd-nat.c (frame_num_args): Update.
11398 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11399 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11400 (xstormy16_frame_chain_valid): Update.
11401 * vax-tdep.c (vax_saved_pc_after_call): Update.
11402 * v850-tdep.c (v850_frame_chain): Update.
11403 (v850_pop_frame): Update.
11404 (v850_init_extra_frame_info): Update.
11405 * sparc-tdep.c (setup_arbitrary_frame): Update.
11406 * ns32k-tdep.c (umax_frame_num_args): Update.
11407 * s390-tdep.c (s390_pop_frame_regular): Update.
11408 * mn10300-tdep.c (mn10300_frame_chain): Update.
11409 (mn10300_pop_frame_regular): Update.
11410 (mn10300_init_extra_frame_info): Update.
11411 * mips-tdep.c (mips_init_frame_pc_first): Update.
11412 (mips_frame_chain): Update.
11413 (mips_pop_frame): Update.
11414 * mcore-tdep.c (mcore_frame_chain): Update.
11415 (mcore_pop_frame): Update.
11416 (mcore_init_extra_frame_info): Update.
11417 * arch-utils.c (init_frame_pc_default): Update.
11418 * m68k-tdep.c (isi_frame_num_args): Update.
11419 (delta68_frame_num_args): Update.
11420 (news_frame_num_args): Update.
11421 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11422 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11423 (alpha_frame_chain): Update.
11424 (alpha_pop_frame): Update.
11425 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11426 (hppa_init_extra_frame_info): Update.
11427 (hppa_frame_chain): Update.
11428 (hppa_frame_chain_valid): Update.
11429 * cris-tdep.c (cris_init_extra_frame_info): Update.
11430 * avr-tdep.c (avr_init_extra_frame_info): Update.
11431 * arm-tdep.c (arm_frame_chain_valid): Update.
11432 (arm_init_extra_frame_info): Update.
11433 (arm_pop_frame): Update.
11434 * frame.c (frame_pc_unwind): Update.
11435 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11436 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11437 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11438 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11439 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11440 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11441
11442 2003-03-10 Andrew Cagney <cagney@redhat.com>
11443
11444 * gdbarch.sh (gdbarch_unwind_pc): New method.
11445 * gdbarch.h, gdbarch.c: Regenerate.
11446 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11447 but use read_pc and FRAME_SAVED_PC as fall backs.
11448 (frame_saved_regs_pc_unwind): Delete function.
11449 (trad_frame_unwinder): Update.
11450 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11451 (struct frame_unwind): Update.
11452 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11453 (dummy_frame_unwind): Update.
11454 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11455 (sentinel_frame_unwinder): Update.
11456 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11457 (d10v_frame_unwind): Update.
11458 (d10v_unwind_pc): New function.
11459 (d10v_gdbarch_init): Set unwind_pc.
11460
11461 2003-03-10 Andrew Cagney <cagney@redhat.com>
11462
11463 * gdbarch.h: Re-generate.
11464
11465 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11466 PC.
11467 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11468 the PC register.
11469
11470 2003-03-08 Mark Kettenis <kettenis@gnu.org>
11471
11472 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11473
11474 2003-03-08 Andrew Cagney <cagney@redhat.com>
11475
11476 * cli-out.c: Update copyright.
11477 (cli_out_data): Define typedef. Use instead of ui_out_data.
11478
11479 2003-03-08 Andrew Cagney <cagney@redhat.com>
11480
11481 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11482 the result.
11483
11484 2003-03-07 Andrew Cagney <cagney@redhat.com>
11485
11486 * gdbarch.sh: Don't generate two macro definitions when an
11487 undefined macro taking no arguments.
11488 * gdbarch.h: Regenerate.
11489
11490 2002-03-07 Michal Ludvig <mludvig@suse.cz>
11491
11492 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11493 (x86_64_unwind_dummy_id): New functions.
11494 (x86_64_init_abi): Register these two new functions.
11495
11496 2003-03-07 Michal Ludvig <mludvig@suse.cz>
11497
11498 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
11499 (x86_64_skip_prologue): Move prologue detection to
11500 separate function.
11501 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11502
11503 2003-03-05 Andrew Cagney <cagney@redhat.com>
11504
11505 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11506 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11507 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11508 to use unwind_dummy_id when a dummy frame.
11509 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11510 predicate.
11511 * gdbarch.h, gdbarch.c: Regneerate.
11512
11513 2003-03-05 Andrew Cagney <cagney@redhat.com>
11514
11515 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11516 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11517 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11518 values.
11519
11520 2003-03-05 Andrew Cagney <cagney@redhat.com>
11521
11522 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11523 (struct d10v_unwind_cache): Delete field "frameless". Replace
11524 "next_addr" with "sp_offset". Add "r11_offset".
11525 (d10v_frame_unwind_cache): Update.
11526 (prologue_find_regs): Update. When "mv r11, sp", save the
11527 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11528 RN was saved in r11_offset.
11529
11530 2003-03-05 Andrew Cagney <cagney@redhat.com>
11531
11532 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11533 cached PC value in the next frame.
11534
11535 2003-03-05 Andrew Cagney <cagney@redhat.com>
11536
11537 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11538 "id_unwind_cache" with "id".
11539 (frame_id_unwind): Delete declaration.
11540 * frame.c (frame_id_unwind): Delete function.
11541 (get_prev_frame): Call the frame id unwind method directly. Store
11542 the returned next frame's ID value in NEXT_FRAME. Note that there
11543 is a problem with the wrong unwind ID being called with the wrong
11544 unwind cache.
11545
11546 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11547
11548 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11549
11550 2003-03-05 James Ingham <jingham@apple.com>
11551 Daniel Jacobowitz <drow@mvista.com>
11552
11553 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11554 (auto_cp_abi): New variable.
11555 (current_cp_abi, num_cp_abis): Make static.
11556 (CP_ABI_MAX): Define.
11557 (cp_abis): Turn into an array.
11558 (value_virtual_fn_field): Fix formatting.
11559 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11560 takes a pointer.
11561 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11562 (list_cp_abis, _initialize_cp_abi): New functions.
11563 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11564 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11565 switch_to_cp_abi. Update prototype for register_cp_abi.
11566 * Makefile.in (cp-abi.o): Update dependencies.
11567 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11568 instead of switch_to_cp_abi.
11569 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11570 register_cp_abi.
11571 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11572 register_cp_abi.
11573 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11574
11575 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11576
11577 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11578 * dwarf2loc.c: Include "regcache.h".
11579 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11580 register_size.
11581 * Makefile.in (dwarf2loc.o): Update dependencies.
11582
11583 2003-03-04 Theodore A. Roth <troth@openavr.org>
11584
11585 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11586 number of io registers reported by remote target is not a multiple of
11587 step.
11588
11589 2003-03-04 David Carlton <carlton@math.stanford.edu>
11590
11591 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11592 (lookup_symbol_aux_psymtabs): Update call to
11593 lookup_partial_symbol.
11594 (lookup_transparent_type, find_main_psymtab)
11595 (make_symbol_overload_list): Ditto.
11596
11597 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11598
11599 * MAINTAINERS (Write after approval): Update my email address.
11600
11601 2003-03-03 Andrew Cagney <cagney@redhat.com>
11602
11603 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11604 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11605 predicate. Replace MAX_REGISTER_RAW_SIZE.
11606 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11607 MAX_REGISTER_VIRTUAL_SIZE.
11608 * regcache.c (legacy_max_register_raw_size): New function.
11609 (legacy_max_register_virtual_size): New function.
11610 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11611 (MAX_REGISTER_RAW_SIZE): Define.
11612 (legacy_max_register_raw_size): Declare.
11613 (legacy_max_register_virtual_size): Declare.
11614 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11615 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11616 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11617 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11618 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11619 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11620 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11621 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11622 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11623 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11624 * vax-tdep.c (vax_gdbarch_init): Update.
11625 * v850-tdep.c (v850_gdbarch_init): Update.
11626 * sparc-tdep.c (sparc_gdbarch_init): Update.
11627 * sh-tdep.c (sh_gdbarch_init): Update.
11628 * s390-tdep.c (s390_gdbarch_init): Update.
11629 * rs6000-tdep.c (rs6000_gdbarch_init): 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 * hppa-tdep.c (hppa_gdbarch_init): Update.
11639 * h8300-tdep.c (h8300_gdbarch_init): Update.
11640 * frv-tdep.c (frv_gdbarch_init): Update.
11641 * cris-tdep.c (cris_gdbarch_init): Update.
11642 * avr-tdep.c (avr_gdbarch_init): Update.
11643 * arm-tdep.c (arm_gdbarch_init): Update.
11644 * alpha-tdep.c (alpha_gdbarch_init): Update.
11645 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11646 max_register_raw_size or max_register_virtual_size.
11647
11648 2003-03-03 David Carlton <carlton@math.stanford.edu>
11649
11650 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11651 SYMBOL_MATCHES_NAME, add comment.
11652 (SYMBOL_MATCHES_NATURAL_NAME): New.
11653 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11654 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11655 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11656 * symtab.c (lookup_partial_symbol): Use
11657 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11658 unhelpful comment.
11659 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11660 SYMBOL_MATCHES_NAME.
11661 Fix for PR c++/33.
11662
11663 2003-03-03 David Carlton <carlton@math.stanford.edu>
11664
11665 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11666 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11667 by regexp matching against SYMBOL_NATURAL_NAME.
11668
11669 2003-03-03 David Carlton <carlton@math.stanford.edu>
11670
11671 * linespec.c (find_method): Extract code into collect_methods.
11672 (collect_methods): New.
11673
11674 2003-03-02 Mark Kettenis <kettenis@gnu.org>
11675
11676 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11677 get_frame_base.
11678
11679 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11680 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11681
11682 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11683
11684 * arch-utils.c (generic_register_byte): Fix to use the loop index
11685 and not regnum when summing the size of all registers up to regnum.
11686
11687 2003-03-01 Andrew Cagney <cagney@redhat.com>
11688
11689 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11690 FRAME_INIT_SAVED_REGS.
11691 * gdbarch.h, gdbarch.c: Regenerate.
11692 * stack.c (frame_info): Update.
11693 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11694 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11695 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11696 * ns32k-tdep.c (ns32k_pop_frame): Update.
11697 * mips-tdep.c (mips_pop_frame): Update.
11698 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11699 * ia64-tdep.c (ia64_frame_chain): Update.
11700 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11701 (ia64_frameless_function_invocation): Update.
11702 (ia64_init_extra_frame_info): Update.
11703 (ia64_pop_frame_regular): Update.
11704 * frame.h (struct frame_info): Update comment.
11705 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11706 * frame.c (frame_saved_regs_register_unwind): Update.
11707 (frame_saved_regs_register_unwind): Update.
11708 (deprecated_generic_get_saved_register): Update.
11709 * cris-tdep.c: Update comment.
11710 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11711 Rename macro.
11712 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11713 * x86-64-tdep.c (x86_64_init_abi): Update.
11714 * vax-tdep.c (vax_gdbarch_init): Update.
11715 * v850-tdep.c (v850_gdbarch_init): Update.
11716 * sparc-tdep.c (sparc_gdbarch_init): Update.
11717 * sh-tdep.c (sh_gdbarch_init): Update.
11718 * s390-tdep.c (s390_gdbarch_init): Update.
11719 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11720 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11721 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11722 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11723 * mips-tdep.c (mips_gdbarch_init): Update.
11724 * mcore-tdep.c (mcore_gdbarch_init): Update.
11725 * m68k-tdep.c (m68k_gdbarch_init): Update.
11726 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11727 * ia64-tdep.c (ia64_gdbarch_init): Update.
11728 * i386-tdep.c (i386_gdbarch_init): Update.
11729 * frv-tdep.c (frv_gdbarch_init): Update.
11730 * avr-tdep.c (avr_gdbarch_init): Update.
11731 * arm-tdep.c (arm_gdbarch_init): Update.
11732 * alpha-tdep.c (alpha_gdbarch_init): Update.
11733
11734 2003-03-01 Andrew Cagney <cagney@redhat.com>
11735
11736 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11737 option enum and switch. When no windows, set the interpreter to
11738 INTERP_CONSOLE.
11739
11740 2003-03-01 Andrew Cagney <cagney@redhat.com>
11741
11742 * main.c (captured_main): Replace magic option characters with an
11743 enum.
11744
11745 2003-03-01 Andrew Cagney <cagney@redhat.com>
11746
11747 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11748 INIT_EXTRA_FRAME_INFO.
11749 * gdbarch.h, gdbarch.c: Regenerate.
11750 * arm-tdep.c: Update comments.
11751 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11752 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11753 * frame.h, avr-tdep.c: Ditto.
11754 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11755 (create_new_frame, legacy_get_prev_frame): Ditto.
11756 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11757 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11758 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11759 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11760 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11761 * v850-tdep.c (v850_gdbarch_init): Ditto.
11762 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11763 * sh-tdep.c (sh_gdbarch_init): Ditto.
11764 * s390-tdep.c (s390_gdbarch_init): Ditto.
11765 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11766 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11767 * mips-tdep.c (mips_gdbarch_init): Ditto.
11768 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11769 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11770 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11771 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11772 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11773 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11774 * frv-tdep.c (frv_gdbarch_init): Ditto.
11775 * cris-tdep.c (cris_gdbarch_init): Ditto.
11776 * avr-tdep.c (avr_gdbarch_init): Ditto.
11777 * arm-tdep.c (arm_gdbarch_init): Ditto.
11778 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11779 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11780
11781 2003-03-01 Andrew Cagney <cagney@redhat.com>
11782
11783 * gdbarch.sh (register_type): New function with predicate.
11784 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11785 * gdbarch.h, gdbarch.c: Re-generate.
11786 * arch-utils.c (generic_register_byte): Use generic_register_size.
11787 (generic_register_size): When available, use
11788 gdbarch_register_type.
11789 * regcache.c (init_regcache_descr): When available, initialize the
11790 register type array using gdbarch_register_type. If the
11791 architecture supplies gdbarch_register_type, do not use the legacy
11792 regcache layout.
11793 * d10v-tdep.c (d10v_register_type): Replace
11794 d10v_register_virtual_type.
11795 (d10v_gdbarch_init): Set register_type instead of
11796 register_virtual_type.
11797
11798 2003-03-01 Andrew Cagney <cagney@redhat.com>
11799
11800 * Makefile.in (ax-gdb.o): Update dependencies.
11801 * ax-gdb.c: Include "regcache.h".
11802 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11803 * findvar.c (value_of_register): Ditto.
11804 * infcmd.c (default_print_registers_info): Ditto.
11805
11806 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11807
11808 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11809 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11810
11811 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11812
11813 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11814 of STREQ.
11815
11816 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
11817
11818 * Makefile.in (dwarf2loc.o): Update dependencies.
11819 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11820 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11821 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11822 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11823 (locexpr_tracepoint_var_ref): New function.
11824 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11825
11826 2003-02-28 Andrew Cagney <cagney@redhat.com>
11827
11828 * regcache.c (register_size): New function.
11829 * regcache.h (register_size): Declare
11830 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11831 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11832
11833 2003-02-28 David Carlton <carlton@math.stanford.edu>
11834
11835 * linespec.c (decode_compound): Extract code into find_method.
11836 (find_method): New.
11837
11838 2003-02-28 J. Brobecker <brobecker@gnat.com>
11839
11840 * Makefile.in: Add rules to build and link in observer.o.
11841
11842 2003-02-27 J. Brobecker <brobecker@gnat.com>
11843
11844 * observer.c: Minor comments edits.
11845
11846 2003-02-27 J. Brobecker <brobecker@gnat.com>
11847
11848 * observer.h, observer.c: New file.
11849
11850 2003-02-27 Andrew Cagney <cagney@redhat.com>
11851
11852 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11853
11854 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11855
11856 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11857 (M6812_OP_STS_EXT): Likewise.
11858 (m6811_prologue): Use the above to recognize prologue.
11859 (m6812_prologue): Likewise.
11860
11861 2003-02-27 David Carlton <carlton@math.stanford.edu>
11862
11863 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11864 SYMBOL_PRINT_NAME.
11865 (compare_psymbols): Ditto.
11866 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11867
11868 2003-02-27 Michael Snyder <msnyder@redhat.com>
11869
11870 * f-lang.c (build_fortran_types): New function.
11871 (_initialize_f_language): Gdbarch-register built-in fortran types.
11872 * doublest.c (extract_floating): Fix warning text.
11873
11874 2003-02-27 Andrew Cagney <cagney@redhat.com>
11875
11876 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11877 predicate. Replaces PUSH_DUMMY_FRAME.
11878 * gdbarch.h, gdbarch.c: Regnerate.
11879 * valops.c (hand_function_call): Update. Call
11880 generic_push_dummy_frame directly.
11881 * vax-tdep.c (vax_gdbarch_init): Update.
11882 * sparc-tdep.c (sparc_gdbarch_init): Update.
11883 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11884 * m68k-tdep.c (m68k_gdbarch_init): Update.
11885 * hppa-tdep.c (hppa_gdbarch_init): Update.
11886 * alpha-tdep.c (alpha_gdbarch_init): Update.
11887 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11888 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11889 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11890 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11891 push_dummy_frame to generic_push_dummy_frame.
11892 * v850-tdep.c (v850_gdbarch_init): Ditto.
11893 * sh-tdep.c (sh_gdbarch_init): Ditto.
11894 * s390-tdep.c (s390_gdbarch_init): Ditto.
11895 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11896 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11897 * mips-tdep.c (mips_gdbarch_init): Ditto.
11898 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11899 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11900 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11901 * i386-tdep.c (i386_gdbarch_init): Ditto.
11902 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11903 * frv-tdep.c (frv_gdbarch_init): Ditto.
11904 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11905 * cris-tdep.c (cris_gdbarch_init): Ditto.
11906 * avr-tdep.c (avr_gdbarch_init): Ditto.
11907 * arm-tdep.c (arm_gdbarch_init): Ditto.
11908
11909 2003-02-26 Kevin Buettner <kevinb@redhat.com>
11910
11911 * mips-tdep.c (show_mips_abi): New function.
11912 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11913 command ``show mips abi''.
11914
11915 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
11916
11917 From Elena Zannoni <ezannoni@redhat.com>
11918 * dbxread.c (process_one_symbol): Only record line 0 if one or
11919 more sline entries have been seen for the function.
11920
11921 2003-02-26 Michael Chastain <mec@shout.net>
11922
11923 * configure: Regenerate with autoconf 000227.
11924
11925 2003-02-26 Michael Chastain <mec@shout.net>
11926
11927 Close PR build/660.
11928 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11929 for old libc5/glibc.
11930 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11931
11932 2003-02-26 Kris Warkentin <kewarken@qnx.com>
11933
11934 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11935 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11936
11937 2003-02-26 Michael Chastain <mec@shout.net>
11938
11939 * configure.in: New variable HAVE_UINTPTR_T.
11940 * configure, config.in: Regenerated.
11941
11942 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
11943
11944 Fix PR build/1097.
11945 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11946
11947 2003-02-25 Andrew Cagney <cagney@redhat.com>
11948
11949 * frame.c (get_prev_frame): Add comment on check for
11950 inside_entry_func. Only check for inside_entry_file when not a
11951 dummy and not a sentinel. Check that the new frame is not inner
11952 to the old frame.
11953
11954 2003-02-25 Andrew Cagney <cagney@redhat.com>
11955
11956 * frame.c (frame_debug): New variable.
11957 (_initialize_frame): Add "set/show debug frame" command.
11958 (get_prev_frame): When frame_debug, print reason why unwind
11959 failed.
11960
11961 2003-02-25 Michael Chastain <mec@shout.net>
11962
11963 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11964 to avoid uintptr_t definition problems.
11965
11966 2003-02-25 David Carlton <carlton@math.stanford.edu>
11967
11968 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11969 (SYMBOL_LINKAGE_NAME): Ditto.
11970 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11971 SYMBOL_LINKAGE_NAME.
11972 (struct general_symbol_info): Expand comment.
11973 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11974 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11975 (SYMBOL_MATCHES_REGEXP): Ditto.
11976 * symtab.c (symbol_natural_name): New function.
11977 * objfiles.h: Replace all uses of SYMBOL_NAME by
11978 DEPRECATED_SYMBOL_NAME.
11979 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11980 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11981 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11982 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11983 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11984 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11985 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11986 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11987 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11988 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11989 * ada-exp.y: Ditto.
11990 * ada-exp.y: Update copyright.
11991 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11992 * cp-valprint.c: Ditto.
11993
11994 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11995
11996 * infptrace.c (detach): Do not flag error if ptrace detach fails
11997 and errno is set to ESRCH.
11998
11999 2003-02-24 Andrew Cagney <cagney@redhat.com>
12000
12001 * infptrace.c (udot_info): Change type of udot_off to long. Use
12002 paddr when printing udot_off's value.
12003
12004 2003-02-24 David Carlton <carlton@math.stanford.edu>
12005
12006 * symtab.c (make_symbol_overload_list): Only read in partial
12007 symtabs containing a matching partial symbol.
12008
12009 2003-02-24 David Carlton <carlton@math.stanford.edu>
12010
12011 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12012 do the comparison, not strcmp.
12013 * symfile.c (compare_psymbols): Ditto.
12014 * defs.h: Declare strcmp_iw_ordered.
12015 * utils.c (strcmp_iw_ordered): New function.
12016
12017 2003-02-24 Jim Blandy <jimb@redhat.com>
12018
12019 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12020 support, shared libs): Remove my name from here, to better reflect
12021 reality.
12022
12023 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12024
12025 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12026 (target_ops): Add to_have_continuable_watchpoint.
12027 * target.c (update_current_target): Add INHERIT line for
12028 to_have_continuable_watchpoint.
12029 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12030 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12031 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12032 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12033
12034 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
12035
12036 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12037 maintainership.
12038
12039 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12040
12041 * solib.c (solib_open): Call target defined search function after
12042 failing with solib-search-path.
12043 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12044 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
12045
12046 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12047
12048 * MAINTAINERS: Add myself to Write After section.
12049
12050 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12051
12052 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12053
12054 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12055
12056 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12057 (m68hc11_add_reggroups): New function.
12058 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12059 (m68hc11_gdbarch_init): Install the reggroups.
12060 (_initialize_m68hc11_tdep): Initialize them.
12061
12062 2003-02-21 James E Wilson <wilson@tuliptree.org>
12063
12064 * MAINTAINERS: Update my email address.
12065
12066 2003-02-21 David Carlton <carlton@math.stanford.edu>
12067
12068 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12069
12070 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
12071
12072 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12073 * symtab.h: Add opaque declarations of struct axs_value and
12074 struct agent_expr.
12075 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12076 (struct location_funcs): New type.
12077 (struct symbol): Add "loc" to aux_value.
12078 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12079 * dwarf2read.c: Include "dwarf2expr.h".
12080 (dwarf2_symbol_mark_computed): New function.
12081 (read_func_scope): Use it.
12082 (var_decode_location): New function.
12083 (new_symbol): Use it.
12084 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12085
12086 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12087 (dwarf2expr_h, dwarf2loc_h): New variables.
12088 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12089 (dwarf2expr.o, dwarf2loc.o): New rules.
12090 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12091 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12092 LOC_COMPUTED_ARG.
12093 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12094 * m2-exp.y (yylex): Likewise.
12095 * printcmd.c (address_info, print_frame_args): Likewise.
12096 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12097 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12098 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12099 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12100 * symtab.c (lookup_block_symbol): Likewise.
12101
12102 2003-02-20 Adam Fedor <fedor@gnu.org>
12103
12104 * symtab.h: Remove objc_specific struct
12105 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12106 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12107 Have language_objc use cplus_specific struct.
12108
12109 2003-02-20 Tom Tromey <tromey@redhat.com>
12110
12111 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12112 TYPE_NAME, when printing a String value. PR java/1075.
12113
12114 2003-02-20 Adam Fedor <fedor@gnu.org>
12115
12116 * objc-lang.h (find_methods): Remove declaration.
12117 * objc-lang.c (find_methods): Make static.
12118
12119 2003-02-20 Christopher Faylor <cgf@redhat.com>
12120
12121 * win32-nat.c (get_image_name): Check return value from
12122 ReadProcessMemory.
12123 (child_xfer_memory): Ditto.
12124
12125 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
12126
12127 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12128 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12129 '${exec_prefix}' (in addition to the expansion thereof) as
12130 relocatable.
12131 * configure: Rebuilt.
12132
12133 2003-02-20 David Carlton <carlton@math.stanford.edu>
12134
12135 * symtab.c (search_symbols): Revert the search_symbols part of my
12136 2002-12-23 patch. Add comment.
12137
12138 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12139
12140 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12141 * dbxread.c (elfstab_build_psymtabs): Don't call
12142 install_minimal_symbols.
12143 (stabsect_build_psymtabs): Likewise.
12144 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12145 earlier.
12146 * somread.c (som_symfile_read): Call install_minimal_symbols
12147 and do_cleanups earlier.
12148 * nlmread.c (nlm_symfile_read): Likewise.
12149 * mdebugread.c (elfmdebug_build_psymtabs): Call
12150 install_minimal_symbols and make appropriate cleanups.
12151
12152 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12153
12154 * solib.c (reload_shared_libraries): New function.
12155 (_initialize_solib): Add callbacks for ``set solib-search-path''
12156 and ``set solib-absolute-prefix''.
12157
12158 2003-02-20 David Carlton <carlton@math.stanford.edu>
12159
12160 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12161 expand comment.
12162 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12163 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12164 * ada-typeprint.c (ada_typedef_print): Ditto.
12165 * ax-gdb.c (gen_var_ref): Ditto.
12166 * breakpoint.c (print_one_breakpoint): Ditto.
12167 * buildsym.c (finish_block): Ditto.
12168 * c-valprint.c (c_val_print): Ditto.
12169 * expprint.c (print_subexp): Ditto.
12170 * findvar.c (locate_var_value): Ditto.
12171 * infcmd.c (jump_command): Ditto.
12172 * linespec.c (decode_line_2, decode_compound): Ditto.
12173 * maint.c (maintenance_translate_address): Ditto.
12174 * objc-lang.c (compare_selectors, compare_classes): Ditto.
12175 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12176 Ditto.
12177 * p-valprint.c (pascal_val_print): Ditto.
12178 * stabsread.c (define_symbol): Ditto.
12179 * stack.c (print_frame, frame_info, print_block_frame_locals)
12180 (print_frame_arg_vars, return_command): Ditto.
12181 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12182 * symmisc.c (print_symbol): Ditto.
12183 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12184 (compare_search_syms, print_symbol_info, print_msymbol_info)
12185 (rbreak_command): Ditto.
12186 * tracepoint.c (tracepoints_info): Ditto.
12187 * typeprint.c (typedef_print): Ditto.
12188 * valops.c (value_of_variable, hand_function_call): Ditto.
12189 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12190 * ada-typeprint.c: Update Copyright.
12191 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12192 * tracepoint.c, cli/cli-cmds.c: Ditto.
12193
12194 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12195
12196 * frame.c (generic_unwind_get_saved_register): Make non-static.
12197 * frame.h (generic_unwind_get_saved_register): Declare.
12198 * mips-tdep.c (read_next_frame_reg): Fetch register from
12199 current regcache when frame is NULL.
12200 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12201 that must be NULL.
12202 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12203 instead of frame_register_unwind().
12204
12205 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12206
12207 * remote-sim.c (gdbsim_insert_breakpoint)
12208 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12209 code.
12210
12211 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12212
12213 * remote.c (_initialize_remote): Add commands "set/show remote
12214 hardware-watchpoint-limit" and "set/show remote
12215 hardware-breakpoint-limit".
12216 (remote_hw_watchpoint_limit): Initialize to -1.
12217 (remote_hw_breakpoint_limit): Ditto.
12218 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12219
12220 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12221
12222 * coff-pe-read.c: New file - support reading of minimal symbols from a
12223 portable executable using the export table.
12224 * coff-pe-read.h: New file.
12225 * coffread.c: Include coff-pe-read.h.
12226 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12227 debugging symbols found.
12228 * Makefile.in (SFILES): Add coff-pe-read.o.
12229 (coff_pe_read_h): Define.
12230 (COMMON_OBS): Add coff-pe-read.o.
12231 (coffread.o): Add coff_pe_read_h dependency.
12232 (coff-pe-read.o): New target.
12233
12234 2003-02-19 David Carlton <carlton@math.stanford.edu>
12235
12236 * Makefile.in (SFILES): Add block.c.
12237 (block_h): New.
12238 (COMMON_OBS): Add block.o.
12239 (block.o): New.
12240 (x86-64-tdep.o): Add $(block_h).
12241 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12242 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12243 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12244 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12245 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12246 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12247 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12248 * value.h: Add opaque declaration for struct block.
12249 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12250 * ada-lang.h: Ditto.
12251 * x86-64-tdep.c: #include "block.h"
12252 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12253 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12254 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12255 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12256 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12257 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12258 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12259 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12260 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12261 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12262 * symtab.c (block_function): Ditto.
12263 (contained_in): Ditto.
12264 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12265 block.h. Add opaque declaration for struct block.
12266 * symtab.h: Move block_function and contained_in declarations to
12267 block.h. Add opaque declarations for struct block, struct
12268 blockvector.
12269 (struct block): Move to block.h.
12270 (struct blockvector): Ditto.
12271 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12272 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12273 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12274 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12275 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12276 Ditto.
12277 * block.c: New file.
12278 * block.h: New file.
12279
12280 2003-02-19 Theodore A. Roth <troth@openavr.org>
12281
12282 * avr-tdep.c (avr_extract_return_value): Remove function.
12283 (avr_store_return_value): Remove function.
12284 (avr_extract_struct_value_address): Remove function.
12285 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12286
12287 2003-02-19 Andrew Cagney <ac131313@redhat.com>
12288
12289 * rs6000-tdep.c: Include "gdb_assert.h".
12290 (registers_e500): Add "acc" and "spefscr".
12291 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12292 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12293 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12294 really is "r0".
12295 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12296
12297 2003-02-18 Keith Seitz <keiths@redhat.com>
12298
12299 * Makefile.in: Add gdbtk-interps.c.
12300
12301 2003-02-18 Kevin Buettner <kevinb@redhat.com>
12302
12303 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12304 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12305
12306 2003-02-18 Andrew Cagney <cagney@redhat.com>
12307
12308 * symtab.h (struct objfile): Add opaque declaration.
12309
12310 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
12311
12312 From Jim Ingham <jingham@apple.com>:
12313 * dbxread.c (process_one_symbol): Use last_function_start rather
12314 than function_start_offset to find the real beginning of the
12315 current function. The latter is just the text section offset on
12316 some systems, the former is always the real function start.
12317
12318 2003-02-17 Andrew Cagney <cagney@redhat.com>
12319
12320 * configure.in: Revert ${target} != ${host}.
12321
12322 2003-02-17 Andrew Cagney <ac131313@redhat.com>
12323
12324 * configure.in (Makefile): Use the test ${target} != ${host},
12325 instead of the absence of the "nm.h" file, to determine of the
12326 configuration non-native.
12327 * configure: Regenerate.
12328
12329 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
12330
12331 From Brian Ford <ford@vss.fsi.com>
12332
12333 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12334 conditionalize tui_active test.
12335 (lookup_cmd_1): Ditto.
12336
12337 2003-02-14 Mark Kettenis <kettenis@gnu.org>
12338
12339 * configure.in: Add check for _etext.
12340 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12341 available.
12342 * config.in, configure: regenerated.
12343
12344 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
12345
12346 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12347
12348 2003-02-14 Andrew Cagney <ac131313@redhat.com>
12349
12350 * main.c (tui_version): Delete variable.
12351 (captured_main): When --tui, set interpreter_p to "tui" instead of
12352 enabling tui_version.
12353 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12354 tui_version.
12355 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12356 * cli/cli-cmds.c (disassemble_command): Ditto.
12357 * defs.h (tui_version): Delete declaration.
12358 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12359 (tui-interp.o): Add rules.
12360 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12361
12362 2003-02-14 Christopher Faylor <cgf@redhat.com>
12363
12364 * win32-nat.c (register_loaded_dll): Correctly set address range for
12365 just-loaded dll.
12366
12367 2003-02-12 Jason Molenda (jmolenda@apple.com)
12368
12369 * symmisc.c (print_objfile_statistics): Include information about
12370 the number of psymtabs and symtabs in each object file.
12371
12372 2003-02-13 Keith R Seitz <keiths@redhat.com>
12373
12374 * main.h (struct captured_main_args): Add interpreter_p.
12375 * main.c (captured_main): Initialize interpreter_p from context.
12376 * gdb.c (main): Set interpreter_p argument.
12377 * Makefile.in (gdb.o): Add dependency for interps.h.
12378
12379 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12380
12381 * event-top.c (cli_command_loop): Delete declaration.
12382 (_initialize_event_loop): Delete function setting event_loop_hook.
12383 * event-top.h (cli_command_loop): Declare. Update copyright.
12384 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12385 * interps.c (current_interp_command_loop): When event_loop_p, call
12386 cli_command_loop.
12387
12388 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12389
12390 * interps.h (interp_command_loop_ftype): Change return type to
12391 void.
12392
12393 2003-02-12 Michal Ludvig <mludvig@suse.cz>
12394
12395 * x86-64-tdep.c (x86_64_extract_return_value)
12396 (x86_64_store_return_value): Use regcache instead of regbuf.
12397 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12398 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12399
12400 2003-02-11 Andrew Cagney <ac131313@redhat.com>
12401
12402 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12403 * aclocal.m4: Regenerate.
12404 * configure: Regenerate.
12405
12406 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12407 TCL_LD_SEARCH_FLAGS.
12408
12409 2003-02-10 Michal Ludvig <mludvig@suse.cz>
12410
12411 * dwarf2cfi.c: Reindented.
12412
12413 2003-02-09 Andrew Cagney <ac131313@redhat.com>
12414
12415 * interps.c (clear_interpreter_hooks): Convert function definition
12416 to ISO C.
12417
12418 2003-02-07 David Carlton <carlton@math.stanford.edu>
12419
12420 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12421
12422 2003-02-07 Kevin Buettner <kevinb@redhat.com>
12423
12424 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12425 (struct type): ...to here.
12426 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12427 field.
12428 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12429 (replace_type): Set length on all type variants for a given type.
12430
12431 2003-02-07 Andrew Cagney <ac131313@redhat.com>
12432
12433 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12434 <sys/stat.h>.
12435 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12436
12437 2003-02-06 Andrew Cagney <ac131313@redhat.com>
12438
12439 * Makefile.in (symm-nat.o): Update dependencies.
12440 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12441 (lynx-nat.o, ia64-linux-nat.): Ditto.
12442 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12443 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12444 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12445
12446 * Makefile.in (inflow_h): Define.
12447 (procfs.o, inflow.o, procfs.o): Update dependencies.
12448 * inftarg.c (child_stop): Delete extern declaration of
12449 inferior_process_group. Include "inflow.h".
12450 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12451 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12452 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12453 (our_process_group, inferior_process_group): Extern declarations.
12454
12455 * procfs.c: Include "gdb_assert.h".
12456
12457 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12458 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12459 * jv-typeprint.c (java_type_print_base): Ditto.
12460 * typeprint.c (typedef_print): Eliminate STREQ.
12461 * cli/cli-script.c (define_command, define_command): Ditto.
12462 * main.c (captured_main): Ditto.
12463 * values.c (lookup_internalvar): Ditto.
12464 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12465 within `if' conditional.
12466 * linespec.c (decode_line_2): Ditto.
12467 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12468 (bfd_openw_with_cleanup): Ditto.
12469
12470 2003-02-07 Mark Kettenis <kettenis@gnu.org>
12471
12472 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12473 legacy_extract_return_value and store_return_value to
12474 legacy_return_value.
12475
12476 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12477
12478 * win32-nat.c (get_relocated_section_addrs): New function. Find
12479 section load addresses for symbol handling in relocated DLLs.
12480 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12481
12482 2003-02-05 Fred Fish <fnf@intrinsity.com>
12483
12484 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12485 '=' and '!='.
12486 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12487 with '&' and '=='.
12488 (angel_RDI_info): Ditto.
12489 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12490 with '&' and '!='.
12491 (threads_continue_all_with_signals): Ditto.
12492
12493 2003-02-05 Jim Ingham <jingham@apple.com>
12494 Keith Seitz <keiths@redhat.com>
12495 Elena Zannoni <ezannoni@redhat.com>
12496 Andrew Cagney <ac131313@redhat.com>
12497
12498 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12499 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12500 (SUBDIR_MI_OBS): Add "mi-interp.o".
12501 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12502 (SFILES): Add "interps.c".
12503 (COMMON_OBS): Add "interps.o".
12504 (interps_h, mi_main_h): Define.
12505 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12506 (mi-main.o, main.o, event-top.o): Update dependencies.
12507 * cli/cli-interp.c: New file.
12508 * interps.h, interps.c: New files.
12509 * top.c: (gdb_init): Don't install the default interpreter, handed
12510 by captured_main.
12511 * main.c: Include "interps.h".
12512 (interpreter_p): Note that it should malloc'ed.
12513 (captured_command_loop): Call current_interp_command_loop.
12514 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12515 xfree and xstrdup when updating interpreter_p. Install the
12516 default interpreter. Add hack to stop mi1's copyright notice
12517 being encoded.
12518 * event-top.h (gdb_setup_readline): Declare.
12519 (gdb_disable_readline): Declare.
12520 * event-top.c: Include "interps.h".
12521 (display_gdb_prompt): Call current_interp_display_prompt_p.
12522 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12523 gdb_stdlog, and gdb_stdtarg.
12524 (_initialize_event_loop): Don't call gdb_setup_readline.
12525 * cli-out.c (cli_out_set_stream): New function.
12526 * cli-out.h (cli_out_set_stream): Declare.
12527
12528 2003-02-06 Mark Kettenis <kettenis@gnu.org>
12529
12530 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12531 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12532 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12533 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12534 config/i386/i386v42mp.mt: Removed.
12535
12536 2003-02-05 Mark Kettenis <kettenis@gnu.org>
12537
12538 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12539 GDB_OSABI_SOLARIS.
12540
12541 2003-02-05 Michael Chastain <mec@shout.net>
12542
12543 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12544 2.12.1 and earlier versions.
12545
12546 2003-02-05 Andrew Cagney <ac131313@redhat.com>
12547
12548 Remove orphaned hosts, targets and files.
12549 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12550 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12551 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12552 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12553 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12554 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12555 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12556 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12557 * config/sparc/tm-sp64sim.h: Delete.
12558 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12559 hosts.
12560 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12561 mips*-dec-mach3* targets.
12562
12563 2003-02-04 Michael Chastain <mec@shout.net>
12564
12565 * NEWS: Fix typo: sepcifying -> specifying.
12566
12567 2003-02-04 Michael Chastain <mec@shout.net>
12568
12569 * dwarfread.c: Add documentation on the state of dwarf-1,
12570 looking towards obsoletion.
12571
12572 2003-02-03 Michael Chastain <mec@shout.net>
12573
12574 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12575 gdb/testsuite/gdb.c++/pr-1023.exp.
12576
12577 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12578
12579 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12580 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12581
12582 * utils.c (init_page_info): Delete reference to MPW in comments.
12583 * main.c (captured_main): Delete #ifdef MPW.
12584
12585 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12586
12587 * NEWS: Note that the m32r-*-elf* is obsolete.
12588 * monitor.c (monitor_expect): Obsolete reference to m32r.
12589 * configure.tgt: Mark m32r-*-elf* as obsolete.
12590 * MAINTAINERS: Mark m32k as obsolete.
12591 * m32r-rom.c: Obsolete file.
12592 * config/m32r/m32r.mt: Obsolete file.
12593 * config/m32r/tm-m32r.h: Obsolete file.
12594 * m32r-stub.c: Obsolete file.
12595 * m32r-tdep.c: Obsolete file.
12596
12597 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12598
12599 * NEWS: Mention that the z8k-zilog-none is obsolete.
12600 * MAINTAINERS: Mark z8k as obsolete.
12601 * configure.tgt: Obsolete the z8k-*-coff* target.
12602 * config/z8k/z8k.mt: Obsolete file.
12603 * config/z8k/tm-z8k.h: Obsolete file.
12604 * z8k-tdep.c: Obsolete file.
12605
12606 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12607
12608 * NEWS: Mention that the mn10200-elf is obsolete.
12609 * configure.tgt: Obsolete mn10200-*-* target.
12610 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12611 mention that the mn10200 is obsolete.
12612 * breakpoint.h: Ditto.
12613 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12614 * config/mn10200/mn10200.mt: Obsolete file.
12615 * config/mn10200/tm-mn10200.h: Obsolete file.
12616 * mn10200-tdep.c: Obsolete file.
12617
12618 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12619
12620 * MAINTAINERS: Mark h8500 as obsolete.
12621 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12622 * findvar.c (value_from_register): Ditto.
12623 * h8500-tdep.c: Mark file as obsolete.
12624 * config/h8500/h8500.mt: Ditto.
12625 * config/h8500/tm-h8500.h: Ditto.
12626 * NEWS: Mention that h8500 is obsolete.
12627
12628 2003-02-04 David Carlton <carlton@math.stanford.edu>
12629
12630 * objfiles.c (allocate_objfile): Always set name. Add comment at
12631 start of function.
12632 * jv-lang.c (get_dynamics_objfile): Add comment.
12633
12634 2003-02-04 David Carlton <carlton@math.stanford.edu>
12635
12636 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12637 * printcmd.c (build_address_symbolic): Replace uses of
12638 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12639 SYMBOL_NAME, and asm_demangle.
12640 Update copyright.
12641
12642 2003-02-04 David Carlton <carlton@math.stanford.edu>
12643
12644 * linespec.c (decode_compound): Extract code into
12645 lookup_prefix_sym.
12646 (lookup_prefix_sym): New function.
12647
12648 2003-02-04 David Carlton <carlton@math.stanford.edu>
12649
12650 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12651 FLOAT_COERCION_BADNESS.
12652 * gdbtypes.c (rank_one_type): Replace all uses of
12653 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12654
12655 2003-02-04 Jim Blandy <jimb@redhat.com>
12656
12657 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12658 section, let dwarf_macinfo_section point to it, not
12659 dwarf_loc_section.
12660
12661 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12662
12663 Pointed out by Anton Blanchard <anton@samba.org>.
12664 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12665 (ppc_linux_at_sigtramp_return_path): Use it.
12666
12667 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12668
12669 * defs.h (streq): Add prototype.
12670 * utils.c (streq): New function.
12671
12672 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12673 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12674 * mdebugread.c (new_symbol): Likewise.
12675 * stabsread.c (define_symbol): Likewise.
12676 * coffread.c (process_coff_symbol): Likewise.
12677 * dwarfread.c (new_symbol): Likewise.
12678
12679 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12680 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12681 here.
12682 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12683 SYMBOL_INIT_DEMANGLED_NAME.
12684 * objfiles.c: Include "hashtab.h".
12685 (allocate_objfile): Call htab_set_functions_ex for the
12686 demangled_names_hash.
12687 (free_objfile): Call htab_delete for the demangled_names_hash.
12688 * objfiles.h (struct htab): Add declaration.
12689 (struct objfile): Add demangled_names_hash.
12690 * symfile.c: Include "hashtab.h".
12691 (reread_symbols): Call htab_delete for the demangled_names_hash.
12692 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12693 SYMBOL_NAME in the bcache.
12694 * symtab.c: Include "hashtab.h". Update comments.
12695 (create_demangled_names_hash, symbol_set_names): New functions.
12696 (symbol_find_demangled_name): New function, broken out from
12697 symbol_init_demangled_names.
12698 (symbol_init_demangled_names): Use it.
12699 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12700 (SYMBOL_SET_NAMES): New macro.
12701 (symbol_set_names): Add prototype.
12702
12703 2003-02-03 Jim Blandy <jimb@redhat.com>
12704
12705 Use a single, consistent representation for an empty minimal
12706 symbol table in an objfile.
12707 * objfiles.c (terminate_minimal_symbol_table): New function.
12708 (allocate_objfile): Call it.
12709 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12710 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
12711 non-NULL.
12712 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12713 objfile has minimal symbols, compare minimal_symbol_count to zero,
12714 instead of comparing msymbols with NULL.
12715 * objfiles.c (have_minimal_symbols): Same.
12716 * solib-sunos.c (solib_add_common_symbols): Call
12717 terminate_minimal_symbol_table.
12718 * symfile.c (reread_symbols): Same.
12719
12720 2003-02-03 Kevin Buettner <kevinb@redhat.com>
12721
12722 * s390-tdep.c (s390_address_class_type_flags)
12723 (s390_address_class_type_flags_to_name)
12724 (s390_address_class_name_to_type_flags): New functions.
12725 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12726 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12727
12728 2003-02-03 Michael Snyder <msnyder@redhat.com>
12729
12730 * arm-tdep.c: Fix spell-o in comment.
12731
12732 2003-02-03 Michal Ludvig <mludvig@suse.cz>
12733
12734 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12735 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
12736 error messages to contain BFD filename.
12737
12738 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
12739
12740 Fix PR gdb/742 gdb/743 gdb/877
12741 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12742 (do_mixed_source_and_assembly): Use
12743 make_cleanup_ui_out_tuple_begin_end and
12744 make_cleanup_ui_out_tuple_begin_end.
12745 (do_mixed_source_and_assembly): Ditto.
12746 * thread.c (do_captured_list_thread_ids): Ditto.
12747 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12748 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12749 ui_out_tuple_end): Delete prototypes.
12750 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12751 ui_out_list_end, ui_out_tuple_end): Delete.
12752
12753 From Kevin Buettner <kevinb@redhat.com>:
12754 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
12755 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12756 (do_cleanup_table_end): New functions.
12757 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12758 Use cleanups to invoke_ui_out_tuple_end().
12759 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
12760 * cli/cli-setshow.c (cmd_show_list): Use
12761 make_cleanup_ui_out_tuple_begin_end.
12762
12763 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12764
12765 * frame.c (frame_unwind_register): New function.
12766 (frame_unwind_unsigned_register): Use.
12767 (frame_unwind_signed_register): Use.
12768 (frame_read_register): New function.
12769 * frame.h (frame_unwind_register): Declare.
12770 (frame_read_register): Declare.
12771
12772 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12773 and frame_unwind_register instead of read_memory, write_register
12774 and deprecated_write_register_bytes.
12775
12776 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12777
12778 * frame.h: Note that namelen can be negative.
12779 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12780 NAME's length.
12781
12782 * NEWS: Mention that the d10v's `regs' command is deprecated.
12783 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12784 (d10v_print_registers_info): New function.
12785 (show_regs): Call d10v_print_registers_info.
12786 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12787
12788 2003-02-02 Mark Kettenis <kettenis@gnu.org>
12789
12790 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12791 lost in the previous patch.
12792
12793 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12794
12795 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
12796 * stack.c (print_frame_info_base): Output complete FRAME tuple
12797 for synthesized frames.
12798
12799 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12800
12801 * mips-nat.c (zerobuf): Delete.
12802 (fetch_inferior_registers): Alloc local zerobuf.
12803 (fetch_core_registers): Alloc local zerobuf.
12804 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12805 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12806 * thread-db.c (thread_db_store_registers): Ditto.
12807 * sh-tdep.c (sh_do_register): Ditto.
12808 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12809 * remote-sim.c (gdbsim_store_register): Ditto.
12810 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12811 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12812 * monitor.c (monitor_supply_register): Ditto.
12813 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12814 * mips-nat.c (fetch_inferior_registers): Ditto.
12815 * m68klinux-nat.c (fetch_register): Ditto.
12816 * lynx-nat.c (fetch_inferior_registers): Ditto.
12817 (fetch_inferior_registers): Ditto.
12818 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12819 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12820 (hpux_thread_store_registers): Ditto.
12821 * hppah-nat.c (fetch_register): Ditto.
12822 * hppab-nat.c (fetch_register): Ditto.
12823 * hppa-tdep.c (pa_register_look_aside): Ditto.
12824 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12825 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12826
12827 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12828
12829 * gdbarch.sh: Explictly specify all method levels. When a
12830 variable with an empty level, provide a non-multi-arch default.
12831 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12832 * gdbarch.h: Re-generate.
12833 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12834 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12835
12836 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12837
12838 * defs.h (host_pointer_to_address): Delete declaration.
12839 (address_to_host_pointer): Delete declaration.
12840 * utils.c (host_pointer_to_address): Delete function.
12841 (address_to_host_pointer): Delete function.
12842 * procfs.c (procfs_address_to_host_pointer): New function.
12843 * procfs.c (proc_set_watchpoint): Use.
12844 (procfs_can_use_hw_breakpoint): Update comments.
12845 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12846 (som_solib_add): Use.
12847 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12848 * hppa-tdep.c (unwind_command): Use.
12849
12850 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12851
12852 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12853 strlen d_name.
12854
12855 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12856 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12857 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12858 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12859 (define_symbol): Update.
12860 * symfile.c (generic_load): Remove references to nindy.
12861 * symtab.c: Remove references to nindy.
12862
12863 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12864
12865 * infcmd.c (print_float_info): Delete code conditional on
12866 FLOAT_INFO.
12867 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12868 * config/m68k/nm-apollo68b.h: Ditto.
12869 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12870 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12871 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12872
12873 2003-02-01 Mark Kettenis <kettenis@gnu.org>
12874
12875 * config/i386/tm-i386os9k.h: Removed.
12876
12877 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12878 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12879 they're identical to i[3456]86-*-sysv* now.
12880 * config/i386/i386v32.mh: Removed.
12881 * config/i386/xm-i386v32.h: Removed.
12882 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12883
12884 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12885
12886 * config/i386/i386dgux.mh: Removed.
12887 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12888
12889 * configure.in: Fix typo.
12890 * configure: Regenerated.
12891
12892 2003-01-31 David Carlton <carlton@math.stanford.edu>
12893
12894 * dwarf2read.c (dwarf2_locate_sections): Set
12895 dwarf_ranges_section.
12896
12897 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12898
12899 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12900 * utils.c: Update comments documenting legitimate uses of PTR.
12901
12902 * utils.c: Re-indent.
12903
12904 * config/djgpp/fnchange.lst: Delete nindy files.
12905 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12906 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12907 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12908 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12909 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12910 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12911 * Makefile.in (init.c): Remove nindy references.
12912 (saber_gdb): Delete rule.
12913 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12914 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12915 and a68v-nat.c.
12916 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12917 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12918 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12919 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12920 nindy-share/stop.h.
12921 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12922 * saber.suppress: Delete file.
12923
12924 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
12925
12926 * dbxread.c (stabs_data): New static variable.
12927 (fill_symbuf): Support an in-memory buffer for stabs data.
12928 (stabs_seek): New function.
12929 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12930 (read_ofile_symtab): Use stabs_seek.
12931 (elfstab_build_psymtabs): Take an asection* instead of
12932 an offset and size. Relocate the stabs data if necessary.
12933 Save the section* for dbx_psymtab_to_symtab.
12934 * dwarf2read.c: Add section variables for each debug section.
12935 (dwarf2_locate_sections): Fill them in.
12936 (dwarf2_read_section): Take an asection* argument.
12937 Relocate the section contents if necessary.
12938 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12939 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12940 it to dwarf2_read_section.
12941 (dwarf2_build_frame_info): Update callers.
12942 * elfread.c (elf_symfile_read): Update call to
12943 elfstab_build_psymtabs.
12944 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12945 (DBX_STAB_SECTION): New macro.
12946 * stabsread.h (elfstab_build_psymtabs): Update prototype.
12947 * symfile.c (symfile_dummy_outputs): New function.
12948 (symfile_relocate_debug_section): New function.
12949 * symfile.h (symfile_relocate_debug_section): Add prototype.
12950
12951 2003-01-31 Richard Henderson <rth@redhat.com>
12952
12953 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12954 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12955 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12956 * alpha-tdep.c (alpha_register_name): Add "unique".
12957 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12958 (ALPHA_UNIQUE_REGNUM): New.
12959 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12960
12961 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12962
12963 * README: Remove reference to Ericsson 1800 monitor.
12964 * Makefile.in (remote-es.o): Delete rule.
12965 (ALLDEPFILES): Delete remote-es.c.
12966 * remote-es.c: Delete file.
12967 * config/m68k/es1800.mt: Delete file.
12968 * config/djgpp/fnchange.lst: Update.
12969 * configure.tgt: Delete m68*-ericsson-* target.
12970
12971 2003-01-31 Adam Fedor <fedor@gnu.org>
12972
12973 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12974 Remove duplicate/shadowing variable of same name.
12975
12976 2003-01-30 Jim Blandy <jimb@redhat.com>
12977
12978 * symfile.c (find_separate_debug_file): Assert that the objfile's
12979 directory name we compute ends with a slash, and then assume that
12980 that's so everywhere we use it.
12981
12982 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
12983
12984 * valops.c (value_assign): Flush frame cache after stores to memory
12985 also.
12986
12987 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12988
12989 * Makefile.in (mon960-rom.o): Delete rule.
12990 * mon960-rom.c: Delete file.
12991
12992 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12993
12994 * d10v-tdep.c: Include "frame-unwind.h".
12995 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12996 list.
12997 (next_addr, uses_frame): Delete.
12998 (struct d10v_unwind_cache): Define.
12999 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13000 Use info instead of next_addr and uses_frame globals.
13001 (d10v_frame_init_saved_regs): Delete function.
13002 (d10v_init_extra_frame_info): Delete function.
13003 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13004 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13005 init_frame_pc or frame_saved_pc.
13006 (d10v_pop_frame): Delete function.
13007 (do_d10v_pop_frame): Delete function.
13008 (d10v_frame_chain): Delete function.
13009 (d10v_frame_chain_valid): Delete function.
13010 (d10v_frame_pc_unwind): New function.
13011 (d10v_frame_id_unwind): New function.
13012 (saved_regs_unwinder): New function.
13013 (d10v_frame_register_unwind): New function.
13014 (d10v_frame_pop): New function.
13015 (d10v_frame_unwind): New variable.
13016 (d10v_frame_p): New function.
13017 (d10v_frame_saved_pc): Delete function.
13018 * Makefile.in (d10v-tdep.o): Update dependencies.
13019
13020 2003-01-30 J. Brobecker <brobecker@gnat.com>
13021
13022 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13023 causing some regressions due to a change in the default value
13024 for this macro.
13025
13026 2003-01-29 Richard Henderson <rth@redhat.com>
13027 Elena Zannoni <ezannoni@redhat.com>
13028 Daniel Jacobowitz <drow@mvista.com>
13029
13030 Fix PR gdb/961.
13031 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
13032 variables.
13033 (RANGES_SECTION): New.
13034 (dwarf_ranges_buffer): New variable.
13035 (struct comp_unit_head): Add member "die".
13036 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13037 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13038 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13039 (dwarf2_locate_sections): Likewise.
13040 (dwarf2_build_psymtabs): Read .debug_ranges.
13041 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13042 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13043 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13044 Look for DW_AT_ranges and return the bounding box.
13045
13046 2003-01-29 Brian Ford <ford@vss.fsi.com>
13047
13048 * win32-nat.c (cygwin_pid): Removed as unused.
13049 (child_attach): Try fall back to Cygwin pid.
13050
13051 2003-01-29 Jim Blandy <jimb@redhat.com>
13052
13053 * objfiles.h (struct objfile): Doc fix.
13054
13055 2003-01-29 Andrew Cagney <ac131313@redhat.com>
13056
13057 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13058 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13059 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13060 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13061 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13062 (FRAME_SAVED_PC): Change to a function with predicate.
13063 * gdbarch.h, gdbarch.c: Re-generate.
13064
13065 2003-01-28 Andrew Cagney <ac131313@redhat.com>
13066
13067 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13068
13069 * complaints.c (complain): Delete function.
13070 * complaints.h (struct deprecated_complaint): Delete definition.
13071 (complain): Delete declaration.
13072
13073 2003-01-28 Kevin Buettner <kevinb@redhat.com>
13074
13075 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13076 dummy frames.
13077
13078 2003-01-27 Andrew Cagney <ac131313@redhat.com>
13079
13080 * sentinel-frame.h, sentinel-frame.c: New files.
13081 * Makefile.in (frame.o): Update dependencies.
13082 (SFILES): Add sentinel-frame.c.
13083 (sentinel_frame_h): Define.
13084 (COMMON_OBS): Add sentinel-frame.o.
13085 (sentinel-frame.o): Specify dependencies.
13086 * frame.c: Include "sentinel-frame.h".
13087 (frame_register_unwind): Rewrite assuming that there is always a a
13088 ->next frame.
13089 (frame_register, generic_unwind_get_saved_register): Ditto.
13090 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13091 (create_sentinel_frame, unwind_to_current_frame): New functions.
13092 (get_current_frame): Rewrite using create_sentinel_frame and
13093 unwind_to_current_frame. When possible, always create a frame.
13094 (create_new_frame): Set next to the sentinel frame.
13095 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13096 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13097 ID cache when necessary.
13098 (frame_saved_regs_id_unwind): Use frame_relative_level.
13099 (deprecated_generic_get_saved_register): Use frame_relative_level,
13100 get_frame_saved_regs, get_frame_pc, get_frame_base and
13101 get_next_frame.
13102 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13103 frame_register.
13104
13105 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13106
13107 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13108
13109 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13110
13111 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13112 (maintenance_set_profile_cmd): Use error () instead of warning ().
13113
13114 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13115
13116 * configure.in: Check that -pg works if using --enable-profiling.
13117 Check for monstartup and _mcleanup regardless of --enable-profiling.
13118 * maint.c: Check for monstartup and _mcleanup before using them.
13119 * config.in: Regenerated.
13120 * configure: Regenerated.
13121
13122 2003-01-24 Nick Clifton <nickc@redhat.com>
13123
13124 * Add sh2e support:
13125
13126 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13127
13128 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13129 (sh2e_show_regs): New.
13130 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13131 * config/sh/tm-sh.h: Added sh2e to comments.
13132
13133 2003-01-23 Jim Blandy <jimb@redhat.com>
13134
13135 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13136 symbols found)" message here; we haven't checked for a separate
13137 debug info file yet, so we don't know yet.
13138 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13139 we've looked everywhere. Also, there's no need to print a special
13140 message when we're loading the separate debug info file: the one
13141 symbol_file_add prints is fine.
13142
13143 2003-01-23 Alexander Larsson <alexl@redhat.com>
13144 Jim Blandy <jimb@redhat.com>
13145
13146 Add support for executables whose debug info has been separated
13147 out into a separate file, leaving only a link behind.
13148 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13149 and separate_debug_objfile_backlink.
13150 (put_objfile_before): New declaration.
13151 * symfile.c: #include "filenames.h".
13152 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13153 debug info in a separate file, read that, too. Save the addrs
13154 argument, so we can use it again to read the separated debug info;
13155 syms_from_objfile modifies the table we pass it.
13156 (reread_symbols): After re-reading an objfile, call
13157 reread_separate_symbols to refresh its separate debug info
13158 objfile, if it has one.
13159 (reread_separate_symbols, find_separate_debug_file,
13160 get_debug_link_info, separate_debug_file_exists): New functions.
13161 (debug_file_directory): New global var.
13162 (_initialize_symfile): Initialize debug_file_directory, and
13163 provide the new `set debug-file-directory' command to let the user
13164 change it.
13165 * objfiles.c (free_objfile): If this objfile has its debug info in
13166 a separate objfile, free that one too. If this is itself a
13167 separate debug info objfile, clear our parent's backlink.
13168 (put_objfile_before): New function.
13169 * utils.c (gnu_debuglink_crc32): New function.
13170 * defs.h (gnu_debuglink_crc32): New declaration.
13171 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13172 * configure.in: Handle --with-separate-debug-dir config option.
13173 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13174 * acconfig.h (DEBUGDIR): New macro.
13175 * configure, aclocal.m4, config.in: Regenerated.
13176
13177 2003-01-22 Jim Blandy <jimb@redhat.com>
13178
13179 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13180 like the old symbol_file_add, but taking new arguments: you can
13181 now pass in either a `struct section_addr_info' list to say where
13182 each section is loaded, or a `struct section_offsets' table. Pass
13183 these new arguments through to syms_from_objfile as appropriate.
13184 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13185 with the appropriate quiescent values for the new arguments.
13186
13187 * symfile.c: #include "gdb_assert.h".
13188 (syms_from_objfile): Add the ability to pass in a section offset
13189 table directly, as an alternative to the section_addr_info table.
13190 Document arguments better.
13191 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13192 * symfile.h (syms_from_objfile): Update declaration.
13193 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13194 syms_from_objfile.
13195 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13196
13197 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
13198
13199 Original patch by Tom Tromey <tromey@cygnus.com> and
13200 Jason Molenda <jmolenda@apple.com>.
13201 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13202 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13203 * NEWS: Mention profiling.
13204 * configure.in (--enable-gdbtk): Fix typo.
13205 (--enable-profiling): New. Set PROFILE_CFLAGS.
13206 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13207 Fill in function.
13208 (profiling_state): New variable.
13209 (mcleanup_wrapper): New function.
13210 (_initialize_maint): Remove NOTYET, fix call to
13211 add_setshow_boolean_cmd for "maint set profile".
13212 * configure: Regenerated.
13213
13214 2003-01-21 Martin M. Hunt <hunt@redhat.com>
13215
13216 * Makefile.in (install-gdbtk): Install PNG images too.
13217
13218 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13219
13220 * exec.c (text_start): Delete global variable.
13221 (exec_file_attach): Make text_start local to the function.
13222 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13223 * valops.c (hand_function_call): Delete code that handles
13224 BEFORE_TEXT_END and AFTER_TEXT_END.
13225 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13226 of CALL_DUMMY_LOCATION.
13227 * gdbarch.c: Regenerate.
13228 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13229 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13230 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13231 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13232 (text_end): Delete extern declaration.
13233
13234 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13235
13236 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13237 * blockframe.c (backtrace_below_main): Move to "frame.c".
13238 (frame_chain_valid): Delete check for backtrace_below_main.
13239 (_initialize_blockframe): Delete initialization, move ``set
13240 backtrace-below-main'' command to "frame.c".
13241 (do_flush_frames_sfunc): Delete function.
13242 * frame.c: Include "command.h" and "gdbcmd.h".
13243 (frame_type_from_pc): New function.
13244 (create_new_frame): Use frame_type_from_pc.
13245 (legacy_get_prev_frame): New function.
13246 (get_prev_frame): Rewrite. When an old style frame, call
13247 legacy_get_prev_frame. Otherwize, unwind the PC first.
13248 (_initialize_frame): Add ``set backtrace-below-main'' command.
13249 * Makefile.in (frame.o): Update dependencies.
13250
13251 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13252
13253 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13254 DEPRECATED_REGISTERS_INFO.
13255
13256 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13257
13258 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13259 Maintainers'. Update `Various Maintainers'.
13260
13261 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13262
13263 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13264 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13265 Suppress actual parameters when `-'.
13266 * gdbarch.h, gdbarch.c: Regenerate.
13267
13268 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13269
13270 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13271 code handling dummy frames.
13272
13273 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13274
13275 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13276 (struct frame_unwind): Add field pop.
13277 * frame.h (frame_pop): Declare.
13278 * frame.c (frame_saved_regs_pop): New function.
13279 (trad_frame_unwinder): Add frame_saved_regs_pop.
13280 (frame_pop): New function.
13281 * dummy-frame.c (dummy_frame_pop): New function.
13282 (discard_innermost_dummy): New function.
13283 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13284 (dummy_frame_unwind): Add dummy_frame_pop.
13285 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13286 * valops.c (hand_function_call): Ditto.
13287 * stack.c (return_command): Ditto.
13288
13289 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13290
13291 * cris-tdep.c: Fix function declaration indentation.
13292 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13293 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13294 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13295 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13296 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13297 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13298
13299 2003-01-18 Michael Chastain <mec@shout.net>
13300
13301 * README (Unpacking and Installation -- quick overview):
13302 Warn against ".../gdb-5.3/gdb/configure".
13303
13304 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13305
13306 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13307 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13308 (struct frame_unwind): Declare opaque.
13309 (dummy_frame_p): Declare function.
13310 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13311 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13312 * dummy-frame.c: Include "frame-unwind.h".
13313 (dummy_frame_p): New function.
13314 (dummy_frame_unwind): New variable.
13315 * frame.c: Include "frame-unwind.h".
13316 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13317 to use the new unwind field.
13318 (set_unwind_by_pc): Delete function.
13319 (create_new_frame, get_prev_frame): Set unwind field using
13320 frame_unwind_find_by_pc.
13321 (trad_frame_unwind, trad_frame_unwinder): New variables.
13322 * frame.h (trad_frame_unwind): Declare variable.
13323 (frame_id_unwind_ftype): Delete declaration.
13324 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13325 (struct frame_unwind): Declare opaque.
13326 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13327 register_unwind with a single unwind pointer.
13328 * frame-unwind.h, frame-unwind.c: New files.
13329 * Makefile.in (SFILES): Add frame-unwind.c.
13330 (frame_unwind_h): Define.
13331 (COMMON_OBS): Add frame-unwind.o.
13332 (frame-unwind.o): Specify dependencies.
13333 (frame.o, dummy-frame.o): Update dependencies.
13334
13335 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13336
13337 * ada-valprint.c: Eliminate PTR.
13338 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13339 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13340 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13341 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13342 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13343 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13344 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13345
13346 2003-01-17 Andrew Cagney <ac131313@redhat.com>
13347
13348 * main.c (captured_main): Don't use PTR.
13349 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13350 * gdbtypes.c (lookup_primitive_typename): Ditto.
13351 (lookup_struct_elt_type): Ditto.
13352 * f-valprint.c (info_common_command): Ditto.
13353 (list_all_visible_commons): Ditto.
13354 * jv-typeprint.c (java_type_print_base): Ditto.
13355
13356 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13357 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13358 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13359 i386-interix-nat.c and i386-interix-tdep.c. Rename
13360 m68klinux-nat.c and m68klinux-tdep.c. Rename
13361 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13362 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13363 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13364 * main.c (captured_main): Use xfree, not free.
13365
13366 2003-01-16 Andrew Cagney <ac131313@redhat.com>
13367
13368 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13369 ID back using a parameter.
13370 * frame.c (frame_id_unwind): Update call.
13371 (frame_saved_regs_id_unwind): Update.
13372 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13373 * dummy-frame.h (struct frame_id): Add opaque declaration.
13374 (dummy_frame_id_unwind): Update declaration.
13375
13376 2003-01-15 Andrew Cagney <ac131313@redhat.com>
13377
13378 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13379
13380 2003-01-15 Stephen P. Smith <ischis2@cox.net>
13381
13382 * MAINTAINERS (Stephen P. Smith): Updated email address.
13383
13384 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
13385
13386 Fix PR gdb/898
13387 * breakpoint.c (until_break_command): Add new argument. Use it to
13388 decide whether to stop only at the current frame or not.
13389 * breakpoint.h (until_break_command): Update prototype.
13390 * infcmd.c (until_command): Add new argument to until_break_command
13391 call.
13392 (advance_command): New function.
13393 (_initialize_infcmd): Update help string for 'until' command.
13394 Add new 'advance' command.
13395
13396 2003-01-14 David Carlton <carlton@math.stanford.edu>
13397
13398 * linespec.c (decode_line_1): Normalize comments.
13399 (set_flags): Ditto.
13400 (locate_first_half): Ditto.
13401 (decode_compound): Ditto.
13402 (symtab_from_filename): Ditto.
13403 (decode_all_digits): Ditto.
13404 (decode_dollar): Ditto.
13405 (find_methods): Ditto.
13406 (find_toplevel_char): Ditto.
13407
13408 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13409
13410 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13411 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13412 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13413 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13414 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13415 * language.c, language.h, m32r-tdep.c: Update copyright.
13416 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13417 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13418 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13419 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13420 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13421 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13422
13423 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13424
13425 * stabsread.h (process_later, resolve_cfront_continuation):
13426 Obsolete.
13427 Update copyright years.
13428 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13429 Update copyright year.
13430 * dbxread.c(struct cont_elem): Obsolete.
13431 (process_later, process_now): Obsolete functions.
13432 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13433 Update copyright year.
13434 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13435 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13436 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13437 (parse_partial_symbols): Obsolete cfront support.
13438 * stabsread.c
13439 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13440 macros.
13441 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13442 read_cfront_baseclasses, read_cfront_member_functions,
13443 resolve_cfront_continuation,read_cfront_static_fields,
13444 copy_cfront_struct_fields): Obsolete functions.
13445 (define_symbol, read_one_struct_field): Obsolete cfront support.
13446 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13447 Update Copyright year.
13448
13449 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13450
13451 * stack.c (print_frame_info, print_stack_frame_base_stub,
13452 print_stack_frame_base, show_and_print_stack_frame_stub,
13453 show_and_print_stack_frame, print_only_stack_frame_stub,
13454 print_only_stack_frame): Delete functions.
13455 (print_stack_frame_stub): Call print_frame_info instead of
13456 print_frame_info_base.
13457 (print_frame_info_base): Rename to print_frame_info.
13458 (backtrace_command_1): Call print_frame_info, instead of
13459 print_frame_info_base.
13460 (current_frame_command): Call print_stack_frame, instead of
13461 print_only_stack_frame.
13462 (frame_command): Call print_stack_frame, instead of
13463 show_and_print_stack_frame.
13464 (up_command): Ditto.
13465 (down_command): Ditto.
13466 * frame.h (print_only_stack_frame): Delete prototype.
13467 * infrun.c (normal_stop): Call print_stack_frame, instead of
13468 show_and_print_stack_frame.
13469 * thread.c (info_threads_command): Call print_stack_frame, instead
13470 of print_only_stack_frame.
13471
13472 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13473
13474 * README (Graphical interface to GDB): Update URL. Point at
13475 gdb/links/.
13476
13477 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13478 version match.
13479
13480 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13481
13482 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13483 lines.
13484
13485 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13486
13487 * thread-db.c (attach_thread): Prototype.
13488 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13489 thread information (ti), and valid flags (th_valid, ti_valid).
13490 (attach_thread): Move target_pid_to_str call to after the thread
13491 is added to GDB's list. Initialize the cache.
13492 (thread_get_info_callback, thread_db_map_id2thr)
13493 (thread_db_get_info): New functions.
13494 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13495 (thread_db_store_registers, thread_db_thread_alive)
13496 (thread_db_get_thread_local_address): Use them.
13497 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13498 of calling error() for threads in unknown state.
13499
13500 (clear_lwpid_callback): New function.
13501 (thread_db_resume): Use it to clear the cache.
13502
13503 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13504
13505 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13506 (resume_callback): Remove dead code.
13507
13508 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13509
13510 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13511 predicate.
13512 * gdbarch.h, gdbarch.c: Regenerate.
13513 * stack.c (frame_info): Only initialize the saved registers when
13514 FRAME_INIT_SAVED_REGS_P.
13515 * frame.c (frame_saved_regs_register_unwind): Assert
13516 FRAME_INIT_SAVED_REGS_P.
13517 (deprecated_generic_get_saved_register): Ditto.
13518
13519 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13520
13521 * source.c (openp): Squelch warning about "filename".
13522
13523 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13524
13525 * source.c (openp): If the file does not exist don't necessarily
13526 search the path.
13527
13528 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13529
13530 Fix PR gdb/872.
13531 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13532 (integer_types_same_name_p): New function.
13533 (rank_one_type): Use it.
13534 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13535
13536 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13537
13538 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13539 variables.
13540 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13541 * configure.in: Add --with-sysroot.
13542 * configure: Regenerated.
13543 * main.c (gdb_sysroot): New variable.
13544 (captured_main): Initialize gdb_sysroot.
13545 * defs.h (gdb_sysroot): New extern declaration.
13546 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13547
13548 2003-01-12 Michael Chastain <mec@shout.net>
13549
13550 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13551
13552 2003-01-12 Michael Chastain <mec@shout.net>
13553
13554 * top.c (print_gdb_version): Bump copyright year to 2003.
13555
13556 2003-01-12 David Carlton <carlton@bactrian.org>
13557
13558 * linespec.c (symtab_from_filename): Rename variable 's' to
13559 'file_symtab'.
13560
13561 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13562
13563 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13564 dummy frame.
13565 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13566
13567 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13568
13569 * d10v-tdep.c: Include "gdb_assert.h".
13570 (d10v_store_return_value): Rewrite to match current interface.
13571 (d10v_extract_struct_value_address): Ditto.
13572 (d10v_extract_return_value): Ditto.
13573 (d10v_gdbarch_init): Set store_restore_value,
13574 extract_struct_value_address and extract_return_value.
13575
13576 2003-01-12 J. Brobecker <brobecker@gnat.com>
13577
13578 * hpread.c (set_namestring): New procedure replacing the
13579 SET_NAMESTRING macro.
13580 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13581 by calls to set_namestring.
13582
13583 2003-01-11 J. Brobecker <brobecker@gnat.com>
13584
13585 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13586 a compilation warning.
13587 (hpread_process_one_debug_symbol): Likewise.
13588
13589 2003-01-10 David Carlton <carlton@math.stanford.edu>
13590
13591 * linespec.c (decode_line_1): Rename variable 's' to
13592 'file_symtab'.
13593 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13594 (decode_dollar): Ditto.
13595 (decode_variable): Ditto.
13596 (symbol_found): Ditto.
13597
13598 2003-01-09 Michael Chastain <mec@shout.net>
13599
13600 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13601
13602 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
13603
13604 * win32-nat.c (set_process_privilege): New function.
13605 (child_attach): Call set_process_privilege() to enable the
13606 SE_DEBUG_NAME user privilege if available in process token.
13607
13608 2003-01-10 J. Brobecker <brobecker@gnat.com>
13609
13610 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13611 compilation error in the previous revision.
13612
13613 2003-01-09 David Carlton <carlton@math.stanford.edu>
13614
13615 * linespec.c: Update copyright.
13616
13617 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
13618
13619 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13620 than inferior_ptid.
13621 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13622
13623 2003-01-09 Andrew Cagney <ac131313@redhat.com>
13624
13625 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13626 Update comments.
13627 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13628 (frame_saved_regs_zalloc): Update.
13629 (frame_saved_regs_register_unwind): Update.
13630 (create_new_frame): Update.
13631 (get_prev_frame): Update.
13632 (frame_extra_info_zalloc): Update.
13633 (deprecated_get_frame_saved_regs): Update.
13634 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13635 * cris-tdep.c: Update comment.
13636
13637 * somsolib.h: Fix function indentation.
13638 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13639 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13640 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13641 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13642 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13643
13644 * infrun.c (follow_fork): Use ISO C definition.
13645 * expprint.c (print_subexp): Use xfree instead of free.
13646 * charset.c: Include "gdb_string.h" instead of <string.h>.
13647 (register_iconv_charsets): Use ISO C definition.
13648 (host_charset, target_charset): Ditto.
13649 * Makefile.in (charset.o): Update dependencies.
13650 (mi-cmd-env.o): Update dependencies.
13651
13652 2003-01-08 Andrew Cagney <cagney@redhat.com>
13653
13654 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13655 get_frame_base.
13656
13657 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13658
13659 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13660 build directories. Save edited gdb output in Mbuild.log. If a
13661 build fails, remove any final GDB executable.
13662
13663 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13664
13665 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13666 replacing hex constants with function names and stripping leading
13667 file name directory prefixes.
13668
13669 2003-01-08 Andrew Cagney <cagney@redhat.com>
13670
13671 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13672 get_frame_base.
13673
13674 2003-01-08 David Carlton <carlton@math.stanford.edu>
13675
13676 * linespec.c (decode_line_1): Move code into decode_variable.
13677 (decode_variable): New function.
13678
13679 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13680
13681 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13682
13683 2003-01-08 Andrew Cagney <cagney@redhat.com>
13684
13685 * cris-tdep.c (cris_frame_init_saved_regs): Use
13686 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13687 saved_regs buffer.
13688 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13689 (sh64_nofp_frame_init_saved_regs): Ditto.
13690 (sh_fp_frame_init_saved_regs): Ditto.
13691 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13692 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13693 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13694 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13695
13696 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
13697
13698 * minsyms.c (lookup_minimal_symbol): Update comment.
13699 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13700 (lookup_minimal_symbol_solib_trampoline): Likewise.
13701
13702 2003-01-08 Andrew Cagney <cagney@redhat.com>
13703
13704 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13705 frame_relative_level.
13706
13707 * alpha-tdep.c: Use get_frame_extra_info.
13708 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13709 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13710 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13711 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13712
13713 * alpha-tdep.c: Use get_next_frame.
13714 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13715 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13716 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13717 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13718 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13719 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13720 * xstormy16-tdep.c: Ditto.
13721
13722 2003-01-07 Andrew Cagney <cagney@redhat.com>
13723
13724 * alpha-tdep.c: Use get_frame_base.
13725 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13726 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13727 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13728 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13729 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13730 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13731 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13732 * config/sparc/tm-sparc.h: Ditto.
13733
13734 2003-01-07 Andrew Cagney <cagney@redhat.com>
13735
13736 * frame.c (deprecated_get_frame_context): New function.
13737 (deprecated_set_frame_context): New function.
13738 * frame.h (deprecated_get_frame_context): Declare.
13739 (deprecated_set_frame_context): Declare.
13740 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13741 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
13742
13743 2003-01-07 Andrew Cagney <cagney@redhat.com>
13744
13745 * frame.c (deprecated_set_frame_next_hack): New function.
13746 (deprecated_set_frame_prev_hack): New function.
13747 * frame.h (deprecated_set_frame_next_hack): Declare.
13748 (deprecated_set_frame_prev_hack): Declare.
13749 * mcore-tdep.c (analyze_dummy_frame): Use
13750 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13751 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13752
13753 2003-01-07 David Carlton <carlton@math.stanford.edu>
13754
13755 * linespec.c (decode_line_1): Move code into decode_dollar.
13756 (decode_dollar): New function.
13757
13758 2003-01-07 Andrew Cagney <cagney@redhat.com>
13759
13760 * arm-tdep.c (arm_init_extra_frame_info): Use
13761 deprecated_update_frame_base_hack.
13762 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13763 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13764 (fix_frame_pointer): Ditto.
13765 (mn10300_analyze_prologue): Ditto.
13766
13767 2003-01-07 Andrew Cagney <cagney@redhat.com>
13768
13769 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13770 extra_info using frame_extra_info_zalloc.
13771 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13772 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13773 (sh64_init_extra_frame_info): Ditto.
13774 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13775 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13776 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13777 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13778 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13779 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13780 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13781 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13782 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13783 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13784 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13785 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13786
13787 * mn10300-tdep.c (analyze_dummy_frame): Use
13788 deprecated_set_frame_extra_info_hack.
13789 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13790
13791 2003-01-07 J. Brobecker <brobecker@gnat.com>
13792
13793 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13794 class is not scText. These do not define "real" procedures.
13795 (parse_partial_symbols): Likewise.
13796
13797 2003-01-06 Michael Snyder <msnyder@redhat.com>
13798
13799 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13800
13801 2003-01-06 Andrew Cagney <ac131313@redhat.com>
13802
13803 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13804 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13805 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13806 deprecated_frame_xmalloc_with_cleanup.
13807 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13808 deprecated_frame_xmalloc.
13809 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13810 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13811
13812 2003-01-06 Andrew Cagney <cagney@redhat.com>
13813
13814 * x86-64-linux-tdep.c: Include "osabi.h".
13815 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13816
13817 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13818
13819 2003-01-06 Andrew Cagney <cagney@redhat.com>
13820
13821 * MAINTAINERS (Target Instruction Set Architectures): Update
13822 arm-elf. Can be built with -Werror, has been multiarched.
13823
13824 * value.h (unpack_long): Make buffer parameter constant.
13825 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13826 * scm-lang.h (scm_parse): Ditto.
13827 * defs.h (extract_typed_address, extract_address): Ditto.
13828 (extract_long_unsigned_integer): Ditto.
13829 * inferior.h (unsigned_pointer_to_address): Ditto.
13830 (signed_pointer_to_address): Ditto.
13831 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13832 * gdbarch.h, gdbarch.c: Regenerate.
13833 * findvar.c (extract_long_unsigned_integer): Update.
13834 (extract_address): Update.
13835 (extract_typed_address): Update.
13836 (unsigned_pointer_to_address): Update.
13837 * values.c (unpack_long): Update.
13838 (unpack_double): Update.
13839 (unpack_pointer): Update.
13840 (unpack_field_as_long): Update.
13841 * d10v-tdep.c (d10v_pointer_to_address): Update.
13842 * avr-tdep.c (avr_pointer_to_address): Update.
13843 * scm-lang.c (scm_unpack): Update.
13844 * findvar.c (signed_pointer_to_address): Update.
13845
13846 2003-01-06 Michal Ludvig <mludvig@suse.cz>
13847
13848 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
13849 since it is in i386-tdep.c.
13850
13851 2003-01-06 J. Brobecker <brobecker@gnat.com>
13852
13853 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13854 failure introduced in the previous change.
13855
13856 2003-01-05 Michael Chastain <mec@shout.net>
13857
13858 * README: Remove references to deleted remote-*.c files:
13859 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13860 remote-nrom.c, remote-os9k.c, remote-udi.c.
13861
13862 2003-01-05 Mark Kettenis <kettenis@gnu.org>
13863
13864 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13865 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13866 i386_get_longjmp_target.
13867
13868 2003-01-05 Andrew Cagney <ac131313@redhat.com>
13869
13870 * arm-tdep.c (prologue_cache): Change to a pointer.
13871 (_initialize_arm_tdep): Allocate prologue_cache.
13872 (check_prologue_cache): Update.
13873 (save_prologue_cache): Update.
13874 (arm_gdbarch_init): Update.
13875
13876 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13877
13878 * stabsread.c (update_method_name_from_physname): Call complaint()
13879 instead of error.
13880
13881 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13882
13883 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13884 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13885 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13886
13887 * blockframe.c: Include "gdbcmd.h" and "command.h".
13888 (backtrace_below_main): New variable.
13889 (file_frame_chain_valid, func_frame_chain_valid)
13890 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13891 (generic_func_frame_chain_valid): Remove functions.
13892 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13893 (_initialize_blockframe): New function.
13894 * Makefile.in (blockframe.o): Update dependencies.
13895 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13896 comment. Call frame_chain_valid ().
13897 * frame.h: Remove old prototypes. Add prototype for
13898 frame_chain_valid and update comments to match.
13899 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13900 Remove old comment.
13901 * gdbarch.h: Regenerated.
13902 * gdbarch.c: Regenerated.
13903
13904 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13905 set_gdbarch_frame_chain_valid.
13906 * avr-tdep.c (avr_gdbarch_init): Likewise.
13907 * cris-tdep.c (cris_gdbarch_init): Likewise.
13908 * frv-tdep.c (frv_gdbarch_init): Likewise.
13909 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13910 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13911 (i386_nw_init_abi): Likewise.
13912 (i386_gdbarch_init): Likewise.
13913 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13914 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13915 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13916 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13917 * mips-tdep.c (mips_gdbarch_init): Likewise.
13918 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13919 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13920 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13921 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13922 * s390-tdep.c (s390_gdbarch_init): Likewise.
13923 * sh-tdep.c (sh_gdbarch_init): Likewise.
13924 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13925 * v850-tdep.c (v850_gdbarch_init): Likewise.
13926 * vax-tdep.c (vax_gdbarch_init): Likewise.
13927 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13928
13929 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13930 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13931 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13932 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13933 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13934 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13935 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13936 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13937
13938 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13939
13940 * Makefile.in (acconfig_h): Remove incorrect macro.
13941 (config_h): Define.
13942 (osabi.o): Update dependencies.
13943 * configure.tgt: Set gdb_osabi based on target triplet.
13944 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13945 * configure: Regenerated.
13946 * config.in: Regenerated.
13947 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13948 (GDB_OSABI_DEFAULT): Define if not already defined.
13949 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13950 (set_osabi_string): New variables.
13951 (gdbarch_register_osabi): Add new OS ABI to
13952 gdb_osabi_available_names.
13953 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13954 (set_osabi, show_osabi): New functions.
13955 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13956
13957 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13958
13959 * arch-utils.c (gdbarch_info_init): Set osabi to
13960 GDB_OSABI_UNINITIALIZED.
13961 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13962 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13963 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13964 * gdbarch.c: Regenerated.
13965 * gdbarch.h: Regenerated.
13966 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13967 there's no BFD.
13968 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13969 * osabi.h (enum gdb_osabi): Move to defs.h.
13970 (gdbarch_init_osabi): Update prototype.
13971 * defs.h (enum gdb_osabi): Moved here.
13972 * Makefile.in: Update dependencies.
13973
13974 * alpha-tdep.h: Don't include "osabi.h".
13975 (struct gdbarch_tdep): Remove osabi member.
13976 * alpha-tdep.c: Include "osabi.h".
13977 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13978 iterate over arches. Update call to gdbarch_init_osabi.
13979 (alpha_dump_tdep): Don't dump osabi.
13980 * alpha-linux-tdep.c: Include "osabi.h".
13981 * alpha-osf1-tdep.c: Include "osabi.h".
13982 * alphafbsd-tdep.c: Include "osabi.h".
13983 * alphanbsd-tdep.c: Include "osabi.h".
13984
13985 * arm-tdep.h: Don't include "osabi.h".
13986 (struct gdbarch_tdep): Remove osabi member.
13987 * arm-tdep.c: Include "osabi.h".
13988 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13989 iterate over arches. Update call to gdbarch_init_osabi.
13990 (arm_dump_tdep): Don't dump osabi.
13991 * arm-linux-tdep.c: Include "osabi.h".
13992 * armnbsd-tdep.c: Include "osabi.h".
13993
13994 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13995 Update call to gdbarch_init_osabi.
13996
13997 * i386-tdep.h: Don't include "osabi.h".
13998 (struct gdbarch_tdep): Remove osabi member.
13999 * i386-tdep.c: Include "osabi.h".
14000 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14001 iterate over arches. Update call to gdbarch_init_osabi.
14002 (i386_dump_tdep): Don't dump osabi.
14003 * i386-linux-tdep.c: Include "osabi.h".
14004 * i386-sol2-tdep.c: Include "osabi.h".
14005 * i386bsd-tdep.c: Include "osabi.h".
14006 * i386gnu-tdep.c: Include "osabi.h".
14007 * i386ly-tdep.c: Include "osabi.h".
14008 * i386nbsd-tdep.c: Include "osabi.h".
14009 * i386obsd-tdep.c: Include "osabi.h".
14010
14011 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14012 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14013 check osabi when iterating over arches. Update call to
14014 gdbarch_init_osabi.
14015 (mips_dump_tdep): Don't dump osabi.
14016
14017 * ns32k-tdep.h: Don't include "osabi.h".
14018 (struct gdbarch_tdep): Remove.
14019 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14020 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14021 allocate tdep. Update call to gdbarch_init_osabi.
14022 (ns32k_dump_tdep): Remove.
14023 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14024 * ns32knbsd-tdep.c: Include "osabi.h".
14025
14026 * ppc-tdep.h: Don't include "osabi.h".
14027 (struct gdbarch_tdep): Remove osabi member.
14028 * rs6000-tdep.c: Include "osabi.h".
14029 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14030 osabi when iterating over arches. Update call to
14031 gdbarch_init_osabi.
14032 (rs6000_dump_tdep): Don't dump osabi.
14033 * ppc-linux-tdep.c: Include "osabi.h".
14034 * ppcnbsd-tdep.c: Include "osabi.h".
14035
14036 * sh-tdep.h: Don't include "osabi.h".
14037 (struct gdbarch_tdep): Remove osabi member.
14038 * sh-tdep.c: Include "osabi.h".
14039 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14040 iterate over arches. Update call to gdbarch_init_osabi.
14041 (sh_dump_tdep): Don't dump osabi.
14042 * shnbsd-tdep.c: Include "osabi.h".
14043
14044 * sparc-tdep.c: Include "osabi.h".
14045 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14046 iterate over arches. Update call to gdbarch_init_osabi.
14047 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14048 tdep structure.
14049
14050 * vax-tdep.h: Don't include "osabi.h".
14051 (struct gdbarch_tdep): Remove.
14052 * vax-tdep.c: Include "osabi.h".
14053 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14054 iterate over arches. Don't allocate tdep. Update call
14055 to gdbarch_init_osabi.
14056 (vax_dump_tdep): Remove.
14057 (_initialize_vax_tdep): Update call to gdbarch_register.
14058
14059 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14060
14061 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14062 entirely.
14063 (breakpoint_re_set_one): Don't fetch the value for a disabled
14064 watchpoint.
14065
14066 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14067
14068 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14069 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14070 (COERCE_FLOAT_TO_DOUBLE): Remove.
14071 * gdbarch.c: Regenerate.
14072 * gdbarch.h: Regenerate.
14073 * Makefile.in: Remove value_h from gdbarch_h.
14074 * valops.c (coerce_float_to_double): New variable.
14075 (default_coerce_float_to_double): Remove.
14076 (standard_coerce_float_to_double): Remove.
14077 (value_arg_coerce): Use coerce_float_to_double.
14078 (_initialize_valops): Add "set coerce-float-to-double".
14079 * value.h (default_coerce_float_to_double): Remove prototype.
14080 (standard_coerce_float_to_double): Remove prototype.
14081
14082 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14083 prototyped.
14084 * mdebugread.c (parse_symbol): Likewise.
14085 * stabsread.c (define_symbol): Mark all functions as prototyped.
14086
14087 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14088 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14089 set_gdbarch_coerce_float_to_double.
14090 * arm-tdep.c (arm_gdbarch_init): Likewise.
14091 * frv-tdep.c (frv_gdbarch_init): Likewise.
14092 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14093 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14094 * mips-tdep.c (mips_gdbarch_init): Likewise.
14095 (mips_coerce_float_to_double): Remove.
14096 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14097 (rs6000_coerce_float_to_double): Remove.
14098 * s390-tdep.c (s390_gdbarch_init): Likewise.
14099 * sh-tdep.c (sh_gdbarch_init): Likewise.
14100 (sh_coerce_float_to_double): Remove.
14101 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14102 (sparc_coerce_float_to_double): Remove.
14103 * v850-tdep.c (v850_gdbarch_init): Likewise.
14104 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14105 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14106 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14107 (hppa_coerce_float_to_double): Remove prototype.
14108 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14109
14110 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14111
14112 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14113
14114 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14115
14116 Suggested by Stewart Brown <sb24@avaya.com>:
14117 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14118 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14119 (c_type_print_varspec_suffix): Likewise.
14120
14121 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14122
14123 * configure.in: Don't set and AC_SUBST SUBDIRS.
14124 * configure: Regenerated.
14125
14126 * configure.in: Remove code dealing with shared libraries.
14127 * Makefile.in: Remove HLDFLAGS and HLDENV.
14128 * configure: Regenerated.
14129
14130 2003-01-04 Andrew Cagney <ac131313@redhat.com>
14131
14132 * frame.c (deprecated_frame_xmalloc): New function.
14133 (deprecated_set_frame_saved_regs_hack): New function.
14134 (deprecated_set_frame_extra_info_hack): New function.
14135 * frame.h (deprecated_frame_xmalloc): Declare.
14136 (deprecated_set_frame_saved_regs_hack): Declare.
14137 (deprecated_set_frame_extra_info_hack): Declare.
14138
14139 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14140
14141 * configure.in: Move code that provides the --enable-gdbtk option
14142 right after the code that handles the --enable-tui option, and
14143 polish it somewhat.
14144 * configure: Regenerated.
14145
14146 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14147 AC_CHECK_FUNCS and remove the old check for pread64.
14148 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14149 * acconfig.h (_GNU_SOURCE): Add.
14150 (HAVE_PREAD64): Remove.
14151 * configure, aclocal.m4, config.in: Regenerated.
14152
14153 2003-01-03 Andrew Cagney <ac131313@redhat.com>
14154
14155 * alpha-tdep.c: Use get_frame_saved_regs.
14156 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14157 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14158 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14159 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14160 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14161
14162 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14163
14164 * configure.in: Remove all use of the SUBDIRS variable; add
14165 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14166 code providing the --enable-multi-ice option, and move it right in
14167 front of the code that checks whether gdbserver is supported.
14168 Polish that too.
14169 * configure: Regenerated.
14170 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14171 @SUBDIRS@.
14172
14173 2003-01-03 Andrew Cagney <cagney@redhat.com>
14174
14175 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14176 * avr-tdep.c, cris-tdep.c: Ditto.
14177 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14178 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14179
14180 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14181
14182 * configure.in: Remove --enable-netrom option.
14183 * configure: Regenerated.
14184
14185 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14186
14187 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14188 declaration for `struct re_pattern_buffer' instead.
14189 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14190
14191 2003-01-03 J. Brobecker <brobecker@gnat.com>
14192
14193 * mdebugread.c (parse_symbol): Count until the stEnd matching
14194 the structure name.
14195
14196 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14197
14198 * configure.in: Remove --with-cpu option.
14199 subscripts. Remove evil changequotes here.
14200 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14201 * config.in, configure: Regenerated.
14202
14203 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14204 * configure.in: Cleanup section that sources GDB and BFD configure
14205 subscripts. Remove evil changequotes here.
14206 * config.in, configure: Regenerated.
14207
14208 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14209
14210 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14211 frame accessor methods.
14212 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14213 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14214 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14215 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14216 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14217 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14218 * z8k-tdep.c: Ditto.
14219
14220 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14221
14222 * configure.in: Remove UI_OUT configuration code.
14223 * ada-lang.c: Update assuming UI_OUT is always true.
14224 * Makefile.in (UIOUT_CFLAGS): Remove.
14225 * configure: Regenerated.
14226 * TODO: Remove blurb about elimination of -DUI_OUT.
14227
14228 * configure.in: Move code that provides the --enable-gdbcli,
14229 --enable-gdbmi options right before the code that handles the
14230 --enable-tui option. Polish a bit.
14231 * configure: Regenerated.
14232
14233 * configure.in: Rewrite check for GNU regex and the
14234 --without-included regex option, and move it into the "Checks for
14235 library functions" section. This makes us use the system regex
14236 again by default on systems with version 2 of the GNU C library.
14237 This was apparently broken.
14238 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14239 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14240 * config.in, configure: Regenerated.
14241
14242 * configure.in: Move code that provides the --enable-tui option
14243 before the "Checks for libraries" section. Polish the code
14244 somewhat and set need_curses to yes if we build the TUI. Rewrite
14245 code that looks for a library providing termcap functionality to
14246 match more closely what's done in the Readline library, and move
14247 it into to the "Checks for libraries" section.
14248 * configure: Regenerated.
14249 * Makefile.in (TERMCAP): Remove variable.
14250 * config/i386/go32.mh (TERMCAP): Remove variable.
14251
14252 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14253
14254 * MAINTAINERS: Mention gdb_mbuild.sh.
14255 * gdb_mbuild.sh: Rewrite.
14256
14257 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14258
14259 * configure.in: Fix typo in last change.
14260 * config.in, configure: Regenerated.
14261
14262 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14263
14264 * valarith.c (value_binop): Delete obsolete code and comments.
14265 * configure.host: Ditto.
14266 * buildsym.h (make_blockvector): Ditto.
14267 * buildsym.c (make_blockvector): Ditto.
14268 * defs.h (enum language): Ditto.
14269 (chill_demangle): Ditto.
14270 * elfread.c (elf_symtab_read): Ditto.
14271 * dwarfread.c (CHILL_PRODUCER): Ditto.
14272 (set_cu_language): Ditto.
14273 (handle_producer): Ditto.
14274 * expprint.c (print_subexp): Ditto.
14275 * gdbtypes.c (chill_varying_type): Ditto.
14276 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14277 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14278 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14279 (chill_varying_type): Ditto.
14280 * language.h (_LANG_chill): Ditto.
14281 * language.c (binop_result_type, integral_type): Ditto.
14282 (character_type, string_type, structured_type): Ditto.
14283 (lang_bool_type, binop_type_check): Ditto.
14284 * stabsread.h (os9k_stabs): Ditto.
14285 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14286 (define_symbol, read_type, read_struct_fields): Ditto.
14287 (read_array_type, read_enum_type, read_huge_number): Ditto.
14288 (read_range_type, start_stabs): Ditto.
14289 * symfile.c (init_filename_language_table): Ditto.
14290 (add_psymbol_with_dem_name_to_list): Ditto.
14291 * symtab.c (symbol_init_language_specific): Ditto.
14292 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14293 * symtab.h (struct general_symbol_info): Ditto.
14294 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14295 * typeprint.c (typedef_print): Ditto.
14296 * utils.c (fprintf_symbol_filtered): Ditto.
14297 * valops.c (value_cast, search_struct_field, value_slice): Delete
14298 obsolete code.
14299 (varying_to_slice): Delete function.
14300 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14301 (varying_to_slice): Delete declaration.
14302 * MAINTAINERS: Update.
14303
14304 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14305
14306 * configure.in: Reorganize "Checks for library functions section"
14307 a bit. Remove check for `btowc' and `isascii' functions.
14308 * configure: Regenerated.
14309
14310 * acconfig.h (_MSE_INT_H): Remove.
14311 * configure.in: Create "Checks for header files" section, and move
14312 appropriate tests there. Don't check for objlist.h, wchar.h,
14313 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14314 misdetection fix. Also add "Checks for types", "Checks for
14315 compiler characteristics" and "Checks for library functions"
14316 sections.
14317 * config.in, configure: Regenerated.
14318
14319 * configure.in: Create "Checks for programs" section, and move
14320 appropriate tests there.
14321
14322 2003-01-01 Mark Kettenis <kettenis@gnu.org>
14323
14324 * configure.in: Create "Checks for libraries" section, and move
14325 appropriate tests there. Cleanup check for wctype in libw. Use
14326 AC_SEARCH_LIBS to see whether we need libsocket.
14327 * configure: Regenerated.
14328
14329 For older changes see ChangeLog-2002
14330 \f
14331 Local Variables:
14332 mode: change-log
14333 left-margin: 8
14334 fill-column: 74
14335 version-control: never
14336 End: