* glibc-tdep.c, glibc-tdep.h: New files.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-11-09 Mark Kettenis <kettenis@gnu.org>
2 David S. Miller <davem@redhat.com>
3
4 * glibc-tdep.c, glibc-tdep.h: New files.
5 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
6 * config/i386/linux.mt (TDEPFILES): Likewise.
7 * i386-linux-tdep.c (glibc-tdep.h): Include.
8 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
9 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
10 * arm-linux-tdep.c (glibc-tdep.h): Include.
11 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
12 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
13 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
14 (glibc_tdep_h): Define.
15 (glibc-tdep.o): Add dependencies.
16 (arm-linux-tdep.o): Update dependencies.
17 (i386-linux-tdep.o): Likewise.
18
19 2003-11-09 Andrew Cagney <cagney@redhat.com>
20
21 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
22 * config/mips/nm-irix6.h: Delete file.
23 * config/mips/nm-linux.h: Update copyright.
24 (MIPS_GNULINUX_TARGET): Delete macro.
25 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
26 * config/mips/xm-irix6.h: Delete file.
27 * config/mips/linux.mh (XM_FILE): Delete definition.
28 * config/mips/xm-linux.h: Delete file.
29
30 2003-11-09 Andrew Cagney <cagney@redhat.com>
31
32 * d10v-tdep.c (d10v_return_value): New function.
33 (d10v_use_struct_convention): Delete function.
34 (d10v_store_return_value): Delete function.
35 (d10v_extract_struct_value_address): Delete function.
36 (d10v_gdbarch_init): Set "return_value" instead of
37 "extract_return_value", "store_return_value",
38 "extract_struct_value_address", and "use_struct_convention".
39 (RET1_REGNUM): Delete const.
40
41 2003-11-09 Mark Kettenis <kettenis@gnu.org>
42
43 From David S. Miller <davem@redhat.com>:
44 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
45 * gdbarch.c, gdbarch.h: Regenerated.
46 * arch-utils.c (generic_skip_solib_resolver): New function.
47 * arch-utils.h (generic_skip_solib_resolver): New prototype.
48 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
49
50 2003-11-07 Andrew Cagney <cagney@redhat.com>
51
52 * top.c (print_gdb_version): Replace STREQ with strcmp.
53 * valops.c (value_struct_elt_for_reference): Ditto.
54 (value_struct_elt_for_reference): Ditto.
55 * symtab.c (gdb_mangle_name): Ditto.
56 (find_line_symtab): Ditto.
57 * symmisc.c (maintenance_print_symbols): Ditto.
58 * symfile.c (symbol_file_command): Ditto.
59 * stabsread.c (define_symbol, read_type): Ditto.
60 (cleanup_undefined_types, scan_file_globals): Ditto.
61 * solib.c (solib_map_sections): Ditto.
62 * solib-svr4.c (bfd_lookup_symbol): Ditto.
63 * rs6000-tdep.c (skip_prologue): Ditto.
64 * p-valprint.c (pascal_value_print): Ditto.
65 (pascal_object_is_vtbl_ptr_type): Ditto.
66 * objfiles.c (in_plt_section): Ditto.
67 * minsyms.c (lookup_minimal_symbol): Ditto.
68 (compact_minimal_symbols): Ditto.
69 (find_solib_trampoline_target): Ditto.
70 * mdebugread.c (parse_type): Ditto.
71 * language.c (set_language_command): Ditto.
72 (set_type_command, set_range_command): Ditto.
73 * f-lang.c (add_common_block): Ditto.
74 (add_common_block): Ditto.
75 (find_first_common_named): Ditto.
76 (patch_all_commons_by_name): Ditto.
77 * elfread.c (elf_locate_sections): Ditto.
78 (elf_locate_sections): Ditto.
79 (elfstab_offset_sections): Ditto.
80 * dwarf2read.c (dwarf2_locate_sections): Ditto.
81 * dbxread.c (add_old_header_file): Ditto.
82 (find_corresponding_bincl_psymtab): Ditto.
83 (read_dbx_symtab, process_one_symbol): Ditto.
84 * coffread.c (patch_opaque_types): Ditto.
85 * cli/cli-decode.c (delete_cmd): Ditto.
86 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
87 * c-typeprint.c (c_type_print_base): Ditto.
88 * breakpoint.c (bpstat_stop_status): Ditto.
89 (clear_command, breakpoint_re_set_one): Ditto.
90
91 2003-11-07 Andrew Cagney <cagney@redhat.com>
92
93 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
94 * bcache.c (struct bstring): Make "length" an unsigned short, add
95 "half_hash".
96 (struct bcache): Add "half_hash_error_count".
97 (bcache): Compute and save the "half_hash". Compare the
98 "half_hash" before comparing the length. Update
99 half_hash_error_count.
100
101 2003-11-07 Andrew Cagney <cagney@redhat.com>
102
103 * inftarg.c (child_xfer_partial): New function
104 (init_child_ops): Set "to_xfer_partial".
105
106 2003-11-07 Andrew Cagney <cagney@redhat.com>
107
108 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
109 set "return_value" instead of "use_struct_convention".
110 (ppc_linux_use_struct_convention): Delete function.
111 (ppc_linux_return_value): New function.
112 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
113 (ppc_sysv_abi_broken_return_value): New function.
114 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
115 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
116 static.
117 (ppc_sysv_abi_extract_return_value): Delete function.
118 (ppc_sysv_abi_broken_extract_return_value): Delete function.
119 (ppc_sysv_abi_store_return_value): Delete function.
120 (ppc_sysv_abi_broken_store_return_value): Delete function.
121 (ppc_sysv_abi_use_struct_convention): Delete function.
122 (ppc64_sysv_abi_use_struct_convention): Delete function.
123 (ppc64_sysv_abi_extract_return_value): Delete function.
124 (ppc64_sysv_abi_store_return_value): Delete function.
125 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
126 (ppcnbsd_init_abi): Set "return_value", instead of
127 "use_struct_convention", "extract_return_value", and
128 "store_return_value".
129 (ppcnbsd_use_struct_convention): Delete function.
130 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
131 (ppc_sysv_abi_return_value): Declare.
132 (ppc_sysv_abi_broken_return_value): Declare.
133 (ppc_sysv_abi_use_struct_convention): Delete.
134 (ppc_sysv_abi_store_return_value): Delete.
135 (ppc_sysv_abi_extract_return_value): Delete.
136 (ppc_sysv_abi_broken_store_return_value): Delete.
137 (ppc_sysv_abi_broken_extract_return_value): Delete.
138 (ppc64_sysv_abi_use_struct_convention): Delete.
139 (ppc64_sysv_abi_extract_return_value): Delete.
140 (ppc64_sysv_abi_store_return_value): Delete.
141 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
142 set "return_value" instead of "extract_return_value",
143 "store_return_value", and "use_struct_convention".
144
145 2003-11-07 Mark Kettenis <kettenis@gnu.org>
146
147 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
148
149 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
150 fscanf.
151
152 2003-11-07 Mark Kettenis <kettenis@gnu.org>
153
154 * fbsd-proc.c: Fix formatting.
155
156 2003-11-06 Kevin Buettner <kevinb@redhat.com>
157
158 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
159 Define.
160 (new_variant): Set name for iacc0_regnum.
161 (frv_register_name): Accommodate pseudo-registers.
162 (frv_register_type): Add case for iacc0_regnum.
163 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
164 (frv_gdbarch_init): Set number of pseudo registers. Establish
165 pseudo-register read/write methods.
166
167 2003-11-06 Andrew Cagney <cagney@redhat.com>
168
169 * valops.c (destructor_name_p): Replace STREQN with strncmp.
170 * top.c (command_line_input): Ditto.
171 * objc-exp.y (yylex): Ditto.
172 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
173 * jv-exp.y (yylex): Ditto.
174 * f-exp.y (yylex): Ditto.
175 * event-top.c (command_line_handler): Ditto.
176 * environ.c (get_in_environ): Ditto.
177 (set_in_environ): Ditto.
178 * dwarfread.c (handle_producer): Ditto.
179 * dbxread.c (process_one_symbol): Ditto.
180 * c-typeprint.c (c_type_print_base): Ditto.
181 * c-exp.y (yylex): Ditto.
182
183 2003-11-06 Andrew Cagney <cagney@redhat.com>
184 Jeff Johnston <jjohnstn@redhat.com>
185
186 * target.c (add_target): Only set "to_xfer_partial" when NULL.
187 (init_dummy_target): Set "to_xfer_partial".
188
189 2003-11-06 Andrew Cagney <cagney@redhat.com>
190
191 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
192 REGISTER_CONVENTION.
193
194 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
195
196 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
197 static.
198
199 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
200
201 * breakpoint.c (remove_breakpoint): Take an bp_location
202 instead of a breakpoint argument. Check the bp_location's type.
203 Fix a reversed condition for hardware breakpoints.
204
205 (insert_bp_location): Update call to remove_breakpoint.
206 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
207 (remove_hw_watchpoints): Likewise.
208 (reattach_breakpoints): Likewise.
209 (detach_breakpoints): Likewise.
210 (delete_breakpoint): Likewise.
211
212 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
213
214 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
215 (beakpoint_init_inferior): Likewise.
216 (breakpoint_here_p): Likewise. Only check addresses for software
217 or hardware breakpoints.
218 (breakpoint_inserted_here_p): Likewise.
219 (breakpoint_thread_match): Likewise. Correct comment.
220 (bpstat_have_active_hw_watchpoints): Likewise.
221 (check_duplicates): Likewise.
222
223 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
224
225 * breakpoints.c (insert_bp_location): New function, broken out
226 from insert_breakpoints. Work on an bp_location instead of a
227 breakpoint.
228 (insert_breakpoints): Use it.
229
230 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
231
232 * breakpoint.h (struct bp_location): Add section.
233 (struct breakpoint): Remove section.
234 * breakpoint.c (insert_breakpoints, remove_breakpoint)
235 (breakpoint_here_p, breakpoint_inserted_here_p)
236 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
237 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
238 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
239 section through loc.
240
241 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
242
243 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
244 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
245
246 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
247
248 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
249 arguments. Initialize owner and type for the new breakpoint
250 location item.
251 (set_raw_breakpoint): Update call to allocate_bp_location.
252
253 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
254
255 * breakpoint.h (struct bp_location): Add a chain pointer.
256 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
257 macros.
258 (bp_location_chain): New variable.
259 (allocate_bp_location): New function.
260 (set_raw_breakpoint): Use it.
261 (delete_breakpoint): Remove ->loc from the bp_location_chain.
262
263 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
264
265 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
266 (struct breakpoint): Remove address, shadow_contents, inserted,
267 requested_address, and duplicate. Add a struct bp_location.
268 * breakpoint.c (condition_command, read_memory_nobpt)
269 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
270 (reattach_breakpoints, update_breakpoints_after_exec)
271 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
272 (breakpoint_init_inferior, breakpoint_here_p)
273 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
274 (breakpoint_thread_match, bpstat_stop_status)
275 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
276 (describe_other_breakpoints, check_duplicates)
277 (make_breakpoint_permanent, create_thread_event_breakpoint)
278 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
279 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
280 (watch_command_1, print_one_exception_catchpoint)
281 (clear_command, breakpoint_re_set_one): Adjust member accesses to
282 use the breakpoint's ->loc.
283 (set_raw_breakpoint): Likewise. Initialize ->loc.
284 (delete_breakpoint): Likewise. Free ->loc.
285
286 2003-11-05 Andrew Cagney <cagney@redhat.com>
287
288 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
289 macro.
290 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
291 * config/i386/tm-cygwin.h
292 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
293 * config/powerpc/tm-linux.h
294 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
295 (at_subroutine_call_instruction_target): Delete declaration.
296 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
297 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
298 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
299
300 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
301 "struct bfd_section" and "struct bfd".
302 * target.h (struct section_table): Ditto.
303 * rs6000-nat.c (xcoff_relocate_core): Ditto.
304 * solib-svr4.c (elf_locate_base): Ditto.
305 * pa64solib.c (dld_cache_t): Ditto.
306 * objfiles.h (struct obj_section): Ditto.
307 * objfiles.c (add_to_objfile_sections): Ditto.
308 * exec.c (bfdsec_to_vmap): Ditto.
309 (add_to_section_table): Ditto.
310 (build_section_table): Ditto.
311 * corelow.c (get_core_register_section): Ditto.
312 * coffread.c (find_linenos): Ditto.
313 * elfread.c (elf_interpreter): Delete #if0'd function.
314
315 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
316 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
317 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
318 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
319
320 * arch-utils.h (generic_cannot_extract_struct_value_address):
321 Delete declaration.
322 * wince.c (_initialize_wince): Fix multi-line string.
323 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
324
325 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
326
327 * top.c (execute_command): Fix broken logic for command execution
328 while inferior is running in async mode.
329
330 2003-11-06 Mark Kettenis <kettenis@gnu.org>
331
332 * dwarf2-frame.c (execute_cfa_program): Mark register as
333 REG_SAVED_REG for DW_CFA_register opcode.
334
335 2003-11-05 Mark Kettenis <kettenis@gnu.org>
336
337 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
338 %rsp, %rip and %eflags to match ABI-change.
339
340 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
341
342 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
343 (ia64_gdbarch_init): Don't bother calculating the os.
344 Instead use the gdbarch_info struct and look at the osabi field.
345 Also use gdbarch_list_lookup_by_info() to look for a
346 candidate gdbarch.
347
348 2003-11-05 Kevin Buettner <kevinb@redhat.com>
349
350 * frv-tdep.c (frv_register_byte): Delete.
351 (frv_extract_return_value, frv_store_return_value)
352 (frv_extract_struct_value_address): Don't call frv_register_byte().
353 Convert to non-deprecated form.
354 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
355 Convert calls to set_gdbarch_deprecated_extract_return_value(),
356 set_gdbarch_deprecated_store_return_value(), and
357 set_gdbarch_deprecated_extract_struct_value_address() into
358 non-deprecated forms.
359
360 2003-11-05 Andrew Cagney <cagney@redhat.com>
361
362 * mips-tdep.c (mips_dump_tdep): Do not print
363 PRINT_EXTRA_FRAME_INFO.
364 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
365 Rename PRINT_EXTRA_FRAME_INFO.
366 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
367 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
368 (mips_print_extra_frame_info): Delete declaration.
369 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
370
371 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
372
373 * coffread.c (coff_symtab_read): Remove passing of info parameter
374 to prim_record_minimal_symbol_and_info.
375
376 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
377
378 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
379 (decode_base_type): Delete ifdeffed out code.
380
381 2003-11-04 Andrew Cagney <cagney@redhat.com>
382
383 * symtab.c (find_active_alias): Delete function.
384 (lookup_block_symbol): Delete alias code.
385 * stabsread.c (resolve_live_range): Delete function.
386 (add_live_range): Delete function.
387 (resolve_symbol_reference): Delete function.
388 (define_symbol): Delete live range and alias code.
389 (scan_file_globals): Delete alias code.
390 * symtab.h (SYMBOL_RANGES): Delete macro.
391 (struct range_list): Delete structure.
392 (struct symbol): Delete field "ranges".
393 (SYMBOL_ALIASES): Delete macro.
394 (struct alias_list): Delete structure.
395 (struct symbol): Delete field "aliases".
396
397 2003-11-04 Michael Snyder <msnyder@redhat.com>
398
399 * MAINTAINERS: Remove myself as owner of breakpoints and
400 of sparc/solaris.
401
402 2003-11-03 Corinna Vinschen <vinschen@redhat.com>
403
404 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
405 (sh_sh4al_dsp_register_name): Ditto.
406 (sh4_nofpu_show_regs): Ditto.
407 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
408 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
409
410 2003-11-03 Andrew Cagney <cagney@redhat.com>
411
412 * bcache.c: Include "gdb_assert.h".
413 (struct bcache): Add fields "expand_count" and
414 "expand_hash_count".
415 (expand_hash_table): Update the expand counts.
416 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
417 on object sizes and hashes.
418 * Makefile.in (bcache.o): Update dependencies.
419
420 2003-11-03 Andrew Cagney <cagney@redhat.com>
421
422 * exec.c (xfer_memory): Eliminate xfer_fn.
423
424 2003-10-31 Kevin Buettner <kevinb@redhat.com>
425
426 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
427 (opcodes/frv-desc.h): Include.
428 (iacc0h_regnum, iacc0l_regnum): Define.
429 (last_spr_regnum, frv_num_regs): Update.
430 (new_variant): Don't supply default names for holes in the SPRs.
431 Supply names for iacc0h_regnum and iacc0l_regnum.
432 (frv_register_type): Use symbolic constants first_fpr_regnum and
433 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
434 builtin_type_int instead of builtin_type_int32.
435 (frv_register_sim_regno): New function.
436 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
437 * Makefile.in (gdb_sim_frv_h): Define.
438 (frv-tdep.o): Update dependencies.
439
440 2003-10-31 Andrew Cagney <cagney@redhat.com>
441
442 * avr-tdep.c (avr_frame_this_id): Do not call
443 deprecated_inside_entry_file.
444 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
445 * m32r-tdep.c (m32r_frame_this_id): Ditto.
446 * d10v-tdep.c (d10v_frame_this_id): Ditto.
447 * arm-tdep.c (arm_prologue_this_id): Ditto.
448 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
449
450 2003-10-31 Jim Blandy <jimb@redhat.com>
451
452 * elfread.c (elf_symtab_read): Allocate correct number of tail
453 elements to sectinfo structure. (Fix from Woody LaRue.)
454
455 2003-10-31 Andrew Cagney <cagney@redhat.com>
456
457 * stack.c (return_command): Use get_frame_type, instead of
458 CALL_DUMMY_HAS_COMPLETED.
459 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
460 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
461
462 2003-10-31 Mark Kettenis <kettenis@gnu.org>
463
464 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
465 explicitly specify size of array.
466 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
467 TDEP->sc_num_regs.
468
469 2003-10-31 Andrew Cagney <cagney@redhat.com>
470
471 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
472 function.
473 (s390_gdbarch_init): Set extract_struct_value_address.
474 * arch-utils.c (generic_cannot_extract_struct_value_address):
475 Delete function.
476 * arch-utils.h (generic_cannot_extract_struct_value_address):
477 Delete definition.
478
479 2003-10-31 Mark Kettenis <kettenis@gnu.org>
480
481 * i386-linux-nat.c (fetch_core_registers): Remove.
482 (linux_elf_core_fns): Remove.
483 (_initialize_i386_linux_nat): Remove.
484
485 2003-10-31 Andrew Cagney <cagney@redhat.com>
486
487 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
488 "exec.h".
489 (exec_entry_point): New function.
490 (enable_break): Create a "tmp_bfd_target", use that and
491 entry_point_address when computing the relocation offset.
492 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
493 * Makefile.in (solib-svr4.o): Update dependencies.
494
495 2003-10-31 Andrew Cagney <cagney@redhat.com>
496
497 * defs.h (XZALLOC): Define.
498 * target.h (struct target_ops): Add "to_data";
499 * bfd-target.h, bfd-target.c: New files.
500 * Makefile.in (SFILES): Add "bfd-target.c".
501 (COMMON_OBS): Add "bfd-target.o".
502 (bfd-target.o): Specify dependencies.
503 (bfd_target_h): Define.
504 * defs.h (XZALLOC): Define.
505
506 2003-10-31 Andrew Cagney <cagney@redhat.com>
507
508 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
509 adjust_breakpoint_address.
510 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
511 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
512 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
513 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
514
515 2003-10-31 Andrew Cagney <cagney@redhat.com>
516
517 * target.h (struct target_ops): Replace "to_read_partial" and
518 "to_write_partial" with "to_xfer_partial". Update comments.
519 * target.c (debug_to_write_partial): Delete function.
520 (debug_to_xfer_partial): Replace debug_to_read_partial.
521 (add_target, update_current_target, setup_target_debug): Set
522 "to_xfer_partial" instead of "to_read_partial" and
523 "to_write_partial".
524 (default_xfer_partial): Replace "default_write_partial".
525 (default_read_partial): Delete.
526 (target_read_partial, target_write_partial): Call
527 "to_xfer_partial".
528 * remote.c (init_remote_ops): Set "to_xfer_partial".
529 (init_remote_async_ops): Ditto.
530 (remote_xfer_partial): Replace "remote_read_partial".
531
532 2003-10-31 Mark Kettenis <kettenis@gnu.org>
533
534 * i386-tdep.c (i386_supply_fpregset): Support floating-point
535 registers in `fxsave' format.
536 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
537
538 2003-10-30 Mark Kettenis <kettenis@gnu.org>
539
540 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
541 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
542 TDEP->gregset_num_regs and tdep->sizeof_gregset.
543
544 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
545 specify size of array.
546 (i386_linux_init_abi): Remove initialization of
547 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
548 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
549
550 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
551 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
552 core-regset.o.
553
554 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
555 the ELF header.
556
557 2003-10-29 Mark Kettenis <kettenis@gnu.org>
558
559 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
560 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
561 core-regset.o.
562
563 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
564
565 * corelow.c: Include "arch-utils.h", "regset.h" and
566 "gdb_assert.h".
567 (core_gdbarch): New variable.
568 (sniff_core_bfd): Don't sniff if we have support for register sets
569 in CORE_GDBARCH.
570 (core_close): Reset CORE_GDBARCH.
571 (core_open): Initialize CORE_GDBARCH.
572 (get_core_register_section): Use register sets if they are
573 supported by CORE_GDBARCH.
574 (get_core_registers): Don't print error message if we have support
575 for register sets in CORE_GDBARCH.
576
577 2003-10-29 Andrew Cagney <cagney@redhat.com>
578
579 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
580 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
581
582 2003-10-29 Mark Kettenis <kettenis@gnu.org>
583
584 * objfiles.h (clear_objfile_data): New prototype.
585 * objfiles.c (clear_objfile_data): New function.
586 * symfile.c (reread_symbols): Clear per-objfile data.
587
588 2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
589
590 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
591 printf_unfiltered instead of printf_filtered for output messages.
592 (add_symbol_file_command): Ditto.
593 (reread_symbols): Ditto.
594 (overlay_auto_command): Ditto.
595 (overlay_manual_command): Ditto.
596 (overlay_off_command): Ditto.
597
598 2003-10-27 Mark Kettenis <kettenis@gnu.org>
599
600 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
601 (gdbarch_from_bfd): New function.
602 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
603 deprecated_select_gdbarch_hack.
604 * arch-utils.h (gdbarch_from_bfd): New prototype.
605
606 2003-10-27 Andrew Cagney <cagney@redhat.com>
607
608 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
609 arch_info. Use warning instead of fprintf_filtered. Do not use
610 deprecated bfd_printable_arch_mach.
611
612 2003-10-26 Kevin Buettner <kevinb@redhat.com>
613
614 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
615 Delete.
616 (frv_register_type): Rename from frv_register_virtual_type. Add
617 ``struct gdbarch *'' parameter.
618 (frv_gdbarch_init): Delete calls to the following functions:
619 set_gdbarch_deprecated_size(),
620 set_gdbarch_deprecated_register_bytes(),
621 set_gdbarch_deprecated_register_raw_size(),
622 set_gdbarch_deprecated_max_register_raw_size(),
623 set_gdbarch_deprecated_register_virtual_size(),
624 set_gdbarch_deprecated_max_register_virtual_size(),
625 set_gdbarch_deprecated_register_virtual_size(),
626 set_gdbarch_deprecated_register_virtual_type().
627 Add call to function set_gdbarch_register_type().
628
629 2003-10-26 Mark Kettenis <kettenis@gnu.org>
630
631 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
632 FDOFF_REGNUM): Remove defines.
633 * win32-nat.c (do_child_fetch_inferior_registers): Include
634 "i387-tdep.h".
635 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
636 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
637 undefine I387_ST0_REGNUM.
638
639 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
640 * x86-64-tdep.c (x86_64_store_return_value): Use
641 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
642
643 Change register numbers to enumartion values.
644 * i386-tdep.h (enum i386_regnum): New.
645 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
646 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
647 I386_ST0_REGNUM): Remove defines.
648 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
649 I386_EDI_REGNUM): Remove defines.
650
651 2003-10-24 Andrew Cagney <cagney@redhat.com>
652
653 * target.c: Include "gdbcore.h".
654 (get_target_memory, get_target_memory_unsigned): New functions.
655 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
656 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
657 Use get_target_memory_unsigned.
658 * Makefile.in (target.o): Update dependencies.
659
660 2003-10-24 Andrew Cagney <cagney@redhat.com>
661
662 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
663 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
664 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
665 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
666 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
667
668 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
669 (can_run_code_for): Use the OO term "singleton".
670
671 2003-10-23 Andrew Cagney <cagney@redhat.com>
672
673 * Makefile.in (stack.o): Add $(regcache_h).
674 * stack.c: Include "regcache.h"
675 (return_command): Rewrite. Use get_frame_id and
676 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
677 about unhandled return-values.
678 * value.h (set_return_value): Delete declaration.
679 * values.c (set_return_value): Delete function.
680
681 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
682
683 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
684 (pseudo_regs): Add comment regarding register stack registers.
685 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
686 (floatformat_valid): New static routine.
687 (floatformat_ia64_ext): Add name field and set up is_valid routine
688 to floatformat_valid().
689 (examine_prologue): For the previous cfm, use
690 frame_unwind_register()
691 if the cfm is not stored in a register-stack register. Save the
692 previous cfm value in the prev_cfm field. Add debug output.
693 (ia64_frame_this_id): Use frame_id_build_special() to also register
694 the bsp. Add debug output.
695 (ia64_sigtramp_frame_this_id): Ditto.
696 (ia64_frame_prev_register): Look at cache saved_regs for a few more
697 registers and also add some checks for framelessness before accepting
698 current register values for fields such as return address. For cfm,
699 use the cached prev_cfm field if available. Add comment to explain
700 PSR logic. Add debug output.
701 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
702 as part of initialization.
703 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
704 calculated. Cache the bsp and cfm values.
705 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
706 instead of using ia64_frame_prev_register() which doesn't expect most
707 registers to be saved. The saved values for bsp and sp
708 can be taken from the cache. Add debug output.
709 (ia64_push_dummy_call): Use frame_id_build_special() to also register
710 the bsp.
711
712 2003-10-23 Jim Blandy <jimb@redhat.com>
713
714 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
715 architecture the current arch can run code for --- but not if it's
716 a superset.
717 (can_run_code_for): New function.
718
719 2003-10-22 James E Wilson <wilson@specifixinc.com>
720
721 * MAINTAINERS: Move myself from paper trail section back to write
722 after approval section.
723
724 2003-10-22 Andrew Cagney <cagney@redhat.com>
725
726 * exec.h: New file.
727 * win32-nat.c: Include "exec.h".
728 * solib.c: Include "exec.h".
729 * target.h (build_section_table): Delete declaration.
730 * somsolib.c: Include "exec.h".
731 (exec_ops): Delete extern declaration.
732 * rs6000-nat.c: Update copyright. Include "exec.h".
733 (exec_ops): Delete extern declaration.
734 * pa64solib.c: Update copyright. Include "exec.h".
735 (exec_ops): Delete extern declaration.
736 * exec.c: Update copyright. Include "exec.h".
737 * corelow.c: Update dependencies. Include "exec.h".
738 * Makefile.in (exec_h): Define.
739 (exec.o, somsolib.o): Update dependencies.
740 (pa64solib.o, corelow.o): Update dependencies.
741
742 2003-10-22 Andrew Cagney <cagney@redhat.com>
743
744 * target.c: Include "gdb_assert.h" (target_read): Call
745 "target_read_partial", not "target_write_partial".
746 (default_read_partial, default_write_partial): New function.
747 (target_read_partial, target_write_partial): Simplify, assume that
748 there is always a read/write method.
749 (update_current_target, add_target): Always set "to_read_partial"
750 and "to_write_partial".
751 (target_write, target_read): Fail on a zero byte transfer.
752 * Makefile.in (target.o): Update dependencies.
753 * target.h: Update copyright date.
754 (target_object): Fix typo.
755
756 2003-10-22 Andrew Cagney <cagney@redhat.com>
757
758 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
759 multi-arch method, add "targ" parameter.
760 (struct target_ops): Declare.
761 * gdbarch.h, gdbarch.c: Re-generate.
762 * Makefile.in (c-valprint.o): Update dependencies.
763 * arch-utils.h: Update copyright.
764 (convert_from_func_ptr_addr_identity): Declare.
765 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
766 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
767 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
768 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
769 * infcall.c (find_function_addr, call_function_by_hand): Update.
770 * c-valprint.c: Include "target.h".
771 (print_function_pointer_address): Update.
772
773 2003-10-22 Andrew Cagney <cagney@redhat.com>
774
775 * target.c (target_close): New function.
776 (debug_to_close): Use "target_close".
777 (push_target): Use "target_close".
778 (unpush_target): Use "target_close".
779 (pop_target): Use "target_close".
780 * target.h (struct target_ops): Add "to_xclose".
781 (target_open): Delete macro. Move comment to "to_open".
782 (target_close): Replace macro with function that takes a target.
783 * top.c (quit_target): Pass "current_target" to "target_close".
784
785 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
786
787 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
788 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
789 * symtab.h (lookup_minimal_symbol_text): Update.
790 * breakpoint.c (create_overlay_event_breakpoint,
791 create_longjmp_breakpoint): Update callers.
792 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
793 * symtab.c (find_pc_sect_line): Ditto.
794
795 2003-10-21 Andrew Cagney <cagney@redhat.com>
796
797 * target.c (errno): Delete extern declaration.
798
799 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
800
801 * ia64-tdep.c: Change all occurrences of
802 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
803 (ia64_frame_prev_register): Minor whitespace change.
804
805 2003-10-20 Michael Chastain <mec@shout.net>
806
807 * config/djgpp/fnchange.lst: Add lines for:
808 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
809 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
810 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
811 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
812 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
813 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
814 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
815
816 2003-10-20 Andrew Cagney <cagney@redhat.com>
817
818 * values.c (register_value_being_returned): Update comments. Use
819 "gdbarch_return_value" when available.
820 (using_struct_return): Ditto.
821 (set_return_value): Ditto. Use "gdbarch_return_value" when
822 available.. Print a warning, and not an error, when an unhandled
823 return type is encountered.
824 * infcmd.c: Include "gdb_assert.h".
825 (print_return_value): When gdbarch_return_value_p, and using
826 struct return, assume that the value is not available.
827 * defs.h (return_value_convention): Define.
828 * gdbarch.sh (gdbarch_return_value): New predicate method.
829 * gdbarch.h, gdbarch.c: Re-generate
830 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
831
832 2003-10-20 Andrew Cagney <cagney@redhat.com>
833
834 * symtab.c: Replace "struct sec" with "struct bfd_section".
835 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
836
837 2003-10-19 Michael Chastain <mec@shout.net>
838
839 * config/djgpp/fnchange.lst: Add lines for:
840 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
841 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
842 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
843
844 2003-10-19 Mark Kettenis <kettenis@gnu.org>
845
846 * amd64fbsd-nat.c (fetch_inferior_registers,
847 store_inferior_registers): Remove functions.
848 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
849
850 2003-10-18 Mark Kettenis <kettenis@gnu.org>
851
852 Add NetBSD/amd64 native configuration:
853 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
854 * amd64nbsd-tdep.c: New file.
855 * amd64nbsd-nat.c: New file.
856 * amd64bsd-nat.c: New file.
857 * config/i386/nbsd64.mh: New file.
858 * config/i386/nbsd64.mt: New file.
859 * configure.host: Add x86_64-*-netbsd*.
860 * configure.tgt: Add x86_64-*-netbsd*.
861 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
862 New targets.
863 * NEWS (New native configurations): Mention NetBSD/amd64.
864
865 2003-10-17 Michael Chastain <mec@shout.net>
866
867 * config/djgpp/fnchange.lst: Remove dead lines for:
868 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
869 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
870 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
871 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
872 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
873 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
874 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
875 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
876 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
877 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
878 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
879 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
880 gdb/config/sparc/tm-sparclite.h,
881 gdb/gdbtk/generic/ChangeLog-2001,
882 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
883 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
884 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
885 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
886 gdb/testsuite/gdb.mi/mi0-var-block.exp,
887 gdb/testsuite/gdb.mi/mi0-var-child.exp,
888 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
889 gdb/testsuite/gdb.mi/mi0-var-display.exp,
890 itcl/iwidgets3.0.0/demos/extfileselectionbox,
891 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
892 itcl/iwidgets3.0.0/demos/fileselectionbox,
893 itcl/iwidgets3.0.0/demos/fileselectiondialog,
894 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
895 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
896 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
897 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
898 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
899 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
900 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
901 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
902 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
903 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
904 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
905 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
906 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
907 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
908 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
909 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
910 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
911 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
912 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
913 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
914 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
915 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
916 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
917 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
918 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
919 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
920 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
921 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
922 itcl/iwidgets3.0.0/demos/html/shell.n.html,
923 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
924 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
925 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
926 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
927 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
928 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
929 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
930 itcl/iwidgets3.0.0/demos/scrolledcanvas,
931 itcl/iwidgets3.0.0/demos/scrolledframe,
932 itcl/iwidgets3.0.0/demos/scrolledhtml,
933 itcl/iwidgets3.0.0/demos/scrolledlistbox,
934 itcl/iwidgets3.0.0/demos/scrolledtext,
935 itcl/iwidgets3.0.0/demos/selectionbox,
936 itcl/iwidgets3.0.0/demos/selectiondialog,
937 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
938 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
939 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
940 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
941 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
942 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
943 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
944 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
945 itcl/iwidgets3.0.0/doc/scrolledframe.n,
946 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
947 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
948 itcl/iwidgets3.0.0/doc/scrolledtext.n,
949 itcl/iwidgets3.0.0/doc/selectionbox.n,
950 itcl/iwidgets3.0.0/doc/selectiondialog.n,
951 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
952 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
953 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
954 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
955 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
956 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
957 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
958 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
959 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
960 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
961 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
962 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
963 itcl/iwidgets3.0.0/generic/selectionbox.itk,
964 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
965 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
966 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
967 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
968 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
969 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
970 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
971 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
972 itcl/iwidgets3.0.0/tests/scrolledframe.test,
973 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
974 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
975 itcl/iwidgets3.0.0/tests/scrolledtext.test,
976 itcl/iwidgets3.0.0/tests/selectionbox.test,
977 itcl/iwidgets3.0.0/tests/selectiondialog.test,
978 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
979 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
980 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
981 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
982 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
983 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
984 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
985 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
986 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
987 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
988 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
989 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
990 tk/mac/tkMacProjects.sit.hqx.
991
992 2003-10-17 Andrew Cagney <cagney@redhat.com>
993
994 * target.c (target_section_by_addr): New function.
995 (do_xfer_memory): Use "target_section_by_addr".
996 * target.h (target_section_by_addr): Declare.
997
998 * target.h (struct target_ops): Add "to_read_partial" and
999 "to_write_partial", delete "to_query".
1000 (target_read_partial, target_write_partial): Declare.
1001 (target_read, target_write): Declare.
1002 (target_query): Delete macro.
1003 * target.c (target_read_partial): New function.
1004 (target_write_partial, target_read, target_write): New function.
1005 (update_current_target): Delete inheritance of "to_query". Add
1006 comments about "to_read_partial" and "to_write_partial".
1007 (debug_to_partial_read, debug_to_partial_write): New functions.
1008 (debug_to_query): Delete function.
1009 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1010 instead of "to_query".
1011 * remote.c (remote_read_partial): Replace "remote_query".
1012 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1013 (init_remote_async_ops): Ditto.
1014 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1015 "target_read_partial" instead of "target_query".
1016 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1017 Use "target_read_partial" instead of "target_query".
1018
1019 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1020
1021 * frame.h (struct frame_id): Add new field: special_addr.
1022 (frame_id_build_special): New prototype.
1023 * frame.c (frame_id_build_special): New function.
1024 (frame_id_build): Change to call frame_id_build_special().
1025 (frame_id_eq): Change to also test special_addr field.
1026 (frame_id_inner): Update comment.
1027
1028 2003-10-17 Andrew Cagney <cagney@redhat.com>
1029
1030 * target.c (update_current_target): Perform the target cleanup.
1031 Put the target stack beneath the squashed "current_target".
1032 (add_target): Delete disabled call to "cleanup_target".
1033 (cleanup_target): Delete function.
1034 (push_target, unpush_target): Do not call "cleanup_target".
1035
1036 2003-10-17 Andrew Cagney <cagney@redhat.com>
1037
1038 * target.c (target_stack): Change to a static target_ops.
1039 (update_current_target): Walk the "struct target_ops" stack.
1040 (pop_target, do_xfer_memory, target_info): Ditto.
1041 (find_target_beneath): Ditto.
1042 (push_target): Rewrite to use the "struct target_ops" stack.
1043 (unpush_target): Ditto.
1044 * target.h (struct target_stack_item): Delete definition.
1045 (target_stack): Delete declaration.
1046 (struct target_ops): Add field "beneath".
1047
1048 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
1049
1050 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1051 declaration.
1052 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1053 (h8300_examine_prologue): Use h8300_normal_mode flag
1054 (h8300_gdbarch_init): Set architecture info for normal mode
1055
1056 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
1057
1058 * remote.c (remote_protocol_vcont): New variable.
1059 (set_remote_protocol_vcont_packet_cmd): New function.
1060 (show_remote_protocol_vcont_packet_cmd): New function.
1061 (init_all_packet_configs): Handle remote_protocol_vcont.
1062 (remote_vcont_probe): New function.
1063 (remote_vcont_resume): New function.
1064 (remote_resume): Use it.
1065 (remote_async_resume): Call remote_resume.
1066 (_initialize_remote): Add verbose-resume packet commands.
1067
1068 2003-10-16 Andrew Cagney <cagney@redhat.com>
1069
1070 * infrun.c (handle_inferior_event): Add comment about
1071 "frame_id_inner" being too weak.
1072
1073 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
1074
1075 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1076 second parameter, which is always null. Remove
1077 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1078 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1079 accordingly.
1080 * somsolib.c (som_solib_create_inferior_hook,
1081 som_solib_desire_dynamic_linker_symbols): Update callers.
1082 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
1083
1084 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1085
1086 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1087 debug interface, SDI (Scalable Debug Interface).
1088 * NEWS: Mention m32r SDI protocol was supported.
1089 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1090 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1091
1092 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1093
1094 * ia64-linux-tdep.c: Include gdbcore.h.
1095 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1096 (ia64_linux_sigcontext_register_addr): Find the address of the
1097 sigcontext area stored in the sigframe instead of using
1098 a magic offset constant.
1099
1100 2003-10-15 Andrew Cagney <cagney@redhat.com>
1101
1102 * remote.c (remote_search): Delete function.
1103 * target.h (target_search): Delete disabled macro.
1104 (struct target_ops): Delete disabled field "to_search".
1105
1106 2003-10-14 Kevin Buettner <kevinb@redhat.com>
1107
1108 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1109 instead of deprecated_inside_entry_file().
1110
1111 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
1112
1113 * sh-tdep.c: Fix copy/paste hangover in comment.
1114 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1115 mode.
1116 (sh3e_sh4_extract_return_value): Ditto.
1117
1118 2003-10-13 Richard Henderson <rth@redhat.com>
1119
1120 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1121 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1122 match c_val_print a bit closer.
1123
1124 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1125
1126 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1127 (frv_gdbarch_adjust_breakpoint_address): New function.
1128 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1129 method.
1130
1131 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1132
1133 * breakpoint.h (struct breakpoint): Add new member
1134 ``requested_address''.
1135 * breakpoint.c (breakpoint_adjustment_warning)
1136 (adjust_breakpoint_address): New static functions.
1137 (print_it_typical): Issue warning if breakpoint's address is different
1138 from its requested address.
1139 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1140 (breakpoint_re_set_one): Set breakpoint's
1141 ``requested_address'' field. Set ``address'' field to the
1142 result of calling adjust_breakpoint_address() on the requested
1143 address.
1144
1145 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1146
1147 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1148 * gdbarch.h, gdbarch.c: Regenerate.
1149
1150 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1151
1152 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1153 TDEP->sc_num_regs.
1154
1155 * i386fbsd-tdep.c: New file.
1156 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1157 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1158 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1159 i386bsd-tdep.c.
1160 (_initialize_i386fbsd_tdep): New function.
1161 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1162 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1163 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1164 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1165 TDEP->sc_num_regs.
1166 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1167 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1168 to initialize TDEP->sc_num_regs.
1169 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1170 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1171 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1172 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1173 FreeBSD ELF OS/ABI's here.
1174 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1175 (i386fbsd-tdep.o): New target.
1176 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1177 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1178
1179 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1180 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1181 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1182 in initialization of TDEP->sc_num_regs.
1183
1184 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1185 (x86_64_init_abi): Initialize regset_from_core_section if
1186 appropriate.
1187
1188 * i386-tdep.c (i386_regset_from_core_section): New function.
1189 (i386_gdbarch_init): Initialize regset_from_core_section if
1190 appropriate.
1191 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1192
1193 * i386-tdep.h (struct regset): Declare opaque.
1194
1195 * gdbarch.sh (regset_from_core_section): New method.
1196 (struct regset): Declare opaque.
1197 * gdbarch.c, gdbarch.h: Regenerated.
1198
1199 2003-10-11 Alan Modra <amodra@bigpond.net.au>
1200
1201 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1202 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1203 Correct test for pc within section.
1204
1205 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1206
1207 * gdbarch.sh: Remove trailing whitepsace from comments.
1208
1209 2003-10-08 Roland McGrath <roland@redhat.com>
1210
1211 * gcore.c (make_mem_sec): Function removed, folded into ...
1212 (gcore_create_callback): ... here. To omit a section, clear its
1213 SEC_LOAD bit rather than zeroing its size.
1214 Omit read-only sections only if they correspond to a known disk file.
1215 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1216
1217 2003-10-10 Michael Snyder <msnyder@redhat.com>
1218
1219 * d10v-tdep.c: Fix typo in comment.
1220
1221 2003-10-10 Andrew Cagney <cagney@redhat.com>
1222
1223 * rs6000-tdep.c (e500_store_return_value): Delete function.
1224 (e500_extract_return_value): Delete function.
1225 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1226 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1227 "ppc_sysv_abi_restore_return_value" where applicable.
1228 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1229 (ppc_sysv_abi_extract_return_value): Declare.
1230 (ppc_sysv_abi_broken_store_return_value): Declare.
1231 (ppc_sysv_abi_broken_extract_return_value): Declare.
1232 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1233 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1234 start of file.
1235 (do_ppc_sysv_return_value): New function.
1236 (ppc_sysv_abi_extract_return_value): New function.
1237 (ppc_sysv_abi_store_return_value): New function.
1238 (ppc_sysv_abi_broken_extract_return_value): New function.
1239 (ppc_sysv_abi_broken_store_return_value): New function.
1240 (ppc_sysv_abi_use_struct_convention): Call
1241 do_ppc_sysv_return_value.
1242
1243 2003-10-10 J. Brobecker <brobecker@gnat.com>
1244
1245 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1246 to lookup the main function symbol.
1247
1248 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1249
1250 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1251 types correctly.
1252 (sh_push_dummy_call_fpu): Fix argument passing rules.
1253 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1254 float types.
1255 (sh3e_sh4_store_return_value): Ditto.
1256
1257 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
1258
1259 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1260 comment.
1261
1262 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1263
1264 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1265 more readable code. Accomodate passing of bitfields.
1266
1267 2003-10-10 Andrew Cagney <cagney@redhat.com>
1268
1269 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1270 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1271 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1272 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1273 (ppc64_sysv_abi_push_dummy_call): New function.
1274 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1275 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1276 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1277
1278 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1279
1280 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1281 * README: Ditto.
1282 * d10v-tdep.c: Ditto.
1283 * h8300-tdep.c: Ditto.
1284 * remote-e7000.c: Ditto.
1285 * remote-hms.c: Ditto.
1286 * ser-e7kpc.c: Ditto.
1287 * sh-stub.c: Ditto.
1288 * sh-tdep.c: Ditto.
1289 * sh-tdep.h: Ditto.
1290 * sh3-rom.c: Ditto.
1291 * sh64-tdep.c: Ditto.
1292 * top.c: Ditto.
1293 * wince.c: Ditto.
1294 * config/d10v/d10v.mt: Ditto.
1295 * config/sh/embed.mt: Ditto.
1296 * config/sh/linux.mt: Ditto.
1297 * config/sh/tm-linux.h: Ditto.
1298 * config/sh/tm-sh.h: Ditto.
1299 * config/sh/wince.mt: Ditto.
1300
1301 2003-10-09 Andrew Cagney <cagney@redhat.com>
1302
1303 * ppc-tdep.h (struct type): Declare opaque.
1304 * x86-64-tdep.h (struct regcache): Declare opaque.
1305 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1306 coding style.
1307
1308 2003-10-09 Andrew Cagney <cagney@redhat.com>
1309
1310 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1311 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1312 (SOFTWARE_SINGLE_STEP_P): Ditto.
1313 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1314 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1315 (SOFTWARE_SINGLE_STEP_P): Ditto.
1316 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1317 software_single_step to rs6000_software_single_step.
1318
1319 2003-10-09 Andrew Cagney <cagney@redhat.com>
1320
1321 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1322
1323 2003-10-09 Michael Snyder <msnyder@redhat.com>
1324
1325 * frame.h: Fix typo in comment.
1326 * dummy-frame.c: Fix typo in comment.
1327 * d10v-tdep.c: Random whitespace/comment tweaks.
1328
1329 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
1330
1331 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1332 (sh_push_dummy_code): Delete function, it's only used for dummy calls
1333 on stack.
1334
1335 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1336 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1337 in detail.
1338
1339 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1340
1341 * remote-mips.c (mips_initialize): Remove unneeded call to
1342 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1343
1344 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1345
1346 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1347 a memory pointer.
1348
1349 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1350
1351 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1352 for any lwp we resume.
1353 (running_callback): Add lwps that have pending status events
1354 against them to be considered running.
1355
1356 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1357
1358 * m32r-tdep.c : Include "dis-asm.h".
1359 * Makefile.in (m32r-tdep.o): Update dependencies.
1360
1361 2003-10-06 J. Brobecker <brobecker@gnat.com>
1362
1363 * completer.h (get_gdb_completer_word_break_characters): Delete.
1364 * completer.c: include language.h.
1365 (gdb_completer_word_break_characters): Delete.
1366 (get_gdb_completer_word_break_characters): Delete.
1367 (location_completer): Use the word break characters of the current
1368 language.
1369 (complete_line): Likewise.
1370 (line_completion_function): Likewise.
1371 (skip_quoted_chars): Likewise.
1372 * Makefile.in (completer.o): Add dependency on language.h.
1373 * top.c (init_main): Set the readline word break characters
1374 to GDB's default word break characters.
1375
1376 2003-10-06 J. Brobecker <brobecker@gnat.com>
1377
1378 * language.h (language_defn): new field, la_word_break_characters.
1379 * language.c (unknown_language_defn): Set new field to
1380 default_word_break_characters.
1381 (auto_language_defn): Likewise.
1382 (local_language_defn): Likewise.
1383 * ada-lang.c (ada_language_defn): Likewise.
1384 * c-lang.c (c_language_defn): Likewise.
1385 (cplus_language_defn): Likewise.
1386 (asm_language_defn): Likewise.
1387 (minimal_language_defn): Likewise.
1388 * f-lang.c (f_language_defn): Likewise.
1389 * jv-lang.c (java_language_defn): Likewise.
1390 * m2-lang.c (m2_language_defn): Likewise.
1391 * objc-lang.c (objc_language_defn): Likewise.
1392 * p-lang.c (pascal_language_defn): Likewise.
1393 * scm-lang.c (scm_language_defn): Likewise.
1394
1395 2003-10-06 Andrew Cagney <cagney@redhat.com>
1396
1397 * ppc-sysv-tdep.c: Re-indent.
1398
1399 2003-10-06 J. Brobecker <brobecker@gnat.com>
1400
1401 * language.h (default_word_break_characters): Add prototype.
1402 * language.c (default_word_break_characters): New function.
1403
1404 2003-10-06 Andreas Schwab <schwab@suse.de>
1405
1406 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1407 with %eax.
1408
1409 2003-10-06 Andrew Cagney <cagney@redhat.com>
1410
1411 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1412 "h8500-tdep.c".
1413 (z8k-tdep.o): Delete custom build rule.
1414
1415 2003-10-06 Andrew Cagney <cagney@redhat.com>
1416
1417 * Makefile.in: Update all dependencies.
1418
1419 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1420 No longer list PA as as obsolete candidate. List m32r as
1421 broken instead of obsolete.
1422
1423 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1424 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1425 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1426 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1427 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1428 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1429 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1430 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1431 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1432 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1433 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1434 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1435 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1436 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1437 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1438 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1439 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1440 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1441 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1442 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1443 * config/z8k/z8k.mt: Ditto.
1444
1445 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1446 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1447 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1448 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1449 sparclite were removed.
1450 * configure.host, configure.tgt: Remove corresponding tuples.
1451
1452 * breakpoint.c, breakpoint.h: Remove obsolete code.
1453 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1454 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1455 * stabsread.h, xcoffread.c: Ditto.
1456
1457 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1458 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1459 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1460 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1461
1462 2003-10-06 David Lecomber <dsl@sources.redhat.com>
1463
1464 * f-valprint.c: Reformatting
1465
1466 2003-10-06 Mark Kettenis <kettenis@gnu.org>
1467
1468 * x86-64-tdep.c: Remove duplicate comment.
1469
1470 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1471 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1472 names for return values. This fixes a bug since we looked at %rbx
1473 instead of %rdx.
1474
1475 2003-10-05 Mark Kettenis <kettenis@gnu.org>
1476
1477 * x86-64-tdep.c: Include "regset.h".
1478
1479 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1480 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1481 sizeof_fpregset.
1482 * i386-tdep.c: Include "regset.h".
1483 (i386_supply_gregset): New function.
1484 (i386_supply_fpregset): New function.
1485 (i386_gdbarch_init): Initialze register set-related members of
1486 TDEP.
1487 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1488 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1489
1490 2003-10-03 Andrew Cagney <cagney@redhat.com>
1491
1492 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1493 set extract_return_value, store_return_value and
1494 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1495 ppc64_sysv_abi_store_return_value and
1496 ppc64_sysv_abi_use_struct_convention.
1497 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1498 (ppc64_sysv_abi_store_return_value): Declare.
1499 (ppc64_sysv_abi_use_struct_convention): Declare.
1500 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1501 (ppc64_sysv_abi_extract_return_value): New function.
1502 (ppc64_sysv_abi_store_return_value): New function.
1503 (ppc64_sysv_abi_use_struct_convention): New function.
1504 (ppc64_sysv_abi_return_value): New function.
1505
1506 2003-10-03 Andrew Cagney <cagney@redhat.com>
1507
1508 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1509 convert a descriptor to a function when it's in the ".opd"
1510 section.
1511
1512 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1513
1514 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1515 reg_size to keep GCC silent.
1516
1517 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1518
1519 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1520 base for DW_EH_PE_textrel encodings.
1521 (read_encoded_value): Add a DW_EH_PE_textrel case.
1522 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1523 section.
1524
1525 2003-10-03 Mark Kettenis <kettenis@gnu.org>
1526
1527 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1528
1529 2003-10-02 Andrew Cagney <cagney@redhat.com>
1530
1531 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1532 REGISTER_RAW_SIZE.
1533 * gdbarch.h, gdbarch.c: Re-generate.
1534 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1535 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1536 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1537 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1538 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1539 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1540 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1541 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1542 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1543 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1544 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1545 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1546 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1547 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1548 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1549 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
1550
1551 2003-10-02 Jim Blandy <jimb@redhat.com>
1552
1553 * dwarf2read.c (struct die_info): Doc fix.
1554
1555 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1556
1557 * sh-tdep.c: Running thru gdb_indent.sh.
1558
1559 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1560
1561 * sh-tdep.c (sh_justify_value_in_reg): New function.
1562 (sh_stack_allocsize): Ditto.
1563 (flt_argreg_array): New array used for floating point argument
1564 passing.
1565 (sh_init_flt_argreg): New function.
1566 (sh_next_flt_argreg): Ditto.
1567 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1568 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1569 Fix argument passing strategy.
1570 (sh_push_dummy_call_nofpu): Ditto.
1571
1572 2003-10-01 Andrew Cagney <cagney@redhat.com>
1573
1574 * value.h (register_value_being_returned): Declare. Replace
1575 "value_being_returned".
1576 * infcall.c (call_function_by_hand): Use
1577 register_value_being_returned.
1578 * infcmd.c (print_return_value): Call
1579 "register_value_being_returned", handle struct return locally.
1580 * values.c (register_value_being_returned): New function. Replace
1581 "value_being_returned".
1582
1583 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
1584
1585 * linux-proc.c (linux_do_registers): New function.
1586 (linux_make_note_section): Use linux_do_registers in case of
1587 single threaded inferior programs.
1588
1589 2003-10-01 Andrew Cagney <cagney@redhat.com>
1590
1591 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1592 use STRUCT_ADDR. When not using "struct return convention", pass
1593 "0" to "value_being_returned". Add FIXMEs.
1594 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1595 value_being_returned. Add comments.
1596 * values.c (value_being_returned): Add fixme.
1597 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1598 (hppa_value_returned_from_stack): Add FIXME.
1599
1600 2003-09-30 David Carlton <carlton@kealia.com>
1601
1602 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1603 'has_children' and 'next' by 'child' and 'sibling'.
1604 (read_comp_unit): Rework algorithm, breaking body into
1605 read_die_and_children and read_die_and_siblings.
1606 (read_die_and_children, read_die_and_siblings): New.
1607 (read_full_die): Add 'has_children' argument; set it instead of
1608 the die's 'has_children' field. Minor formatting cleanup.
1609 (free_die_list): Use die->child and die->sibling instead of
1610 die->next.
1611 (dump_die_list): Ditto.
1612 (sibling_die): Use die->sibling.
1613 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1614 'has_children' and 'next' fields.
1615 (process_die, read_file_scope, read_func_scope)
1616 (read_lexical_block_scope, read_structure_scope)
1617 (read_enumeration, read_array_type, read_common_block)
1618 (read_namespace, read_subroutine_type, dump_die): Ditto.
1619
1620 2003-09-30 Andrew Cagney <cagney@redhat.com>
1621
1622 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1623 to 224, not 220.
1624
1625 2003-09-30 Andrew Cagney <cagney@redhat.com>
1626
1627 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1628 REGISTER_VIRTUAL_SIZE.
1629 * gdbarch.h, gdbarch.c: Regenerate.
1630 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1631 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1632 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1633
1634 2003-09-29 Andrew Cagney <cagney@redhat.com>
1635
1636 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1637 DEPRECATED_REGISTER_VIRTUAL_TYPE.
1638 * gdbarch.h, gdbarch.c: Regenerate.
1639 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1640 * sh64-tdep.c, sparc-tdep.c: Update.
1641
1642 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1643 * remote-vxmips.c (vx_read_register): Ditto.
1644 * remote-vx68.c (vx_read_register): Ditto.
1645 * gnu-nat.c (inf_validate_procs): Ditto.
1646
1647 2003-09-29 J. Brobecker <brobecker@gnat.com>
1648
1649 * infcall.c (call_function_by_hand): Fix build failure
1650 introduced in the previous change to this file.
1651
1652 2003-09-29 Andrew Cagney <cagney@redhat.com>
1653
1654 * NEWS: Mention Objective-C.
1655
1656 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
1657
1658 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1659 test if the register has been saved on the stack.
1660 (arm_scan_prologue_cache): When analysing the instruction
1661 "str lr, [sp, #-4]", save the address where lr has been stored.
1662
1663 2003-09-28 Andrew Cagney <cagney@redhat.com>
1664
1665 * frame.c (frame_read_unsigned_register): Delete function.
1666 * frame.h (frame_read_unsigned_register): Delete declaration.
1667 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1668 get_frame_register_unsigned.
1669 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1670 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1671 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1672
1673 * frame.h (frame_read_register): Delete declaration.
1674 * frame.c (frame_read_register): Delete function.
1675 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1676 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1677 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1678 * mips-tdep.c (mips_register_to_value): Ditto.
1679 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1680 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1681
1682 * frame.c (frame_read_signed_register): Delete function.
1683 (frame_read_unsigned_register): Update comments.
1684 * frame.h (frame_read_signed_register): Delete declaration.
1685 * h8300-tdep.c (h8300_print_register): Use
1686 get_frame_register_signed.
1687 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1688
1689 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1690 Rename VALUE_RETURNED_FROM_STACK.
1691 * infcmd.c (print_return_value): Update.
1692 * infcall.c (call_function_by_hand): Update.
1693
1694 2003-09-28 Mark Kettenis <kettenis@gnu.org>
1695
1696 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1697 regcache argument and reverse the order of the other two
1698 arguments. Remove local regcache variable. Determine
1699 architecture from REGCACHE. Update comments.
1700 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1701 reverse the order of the other two arguments. Remove local
1702 regcache variable. Determine architecture from REGCACHE. Update
1703 comments.
1704 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1705 prototypes. Update comments.
1706 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1707 comment.
1708 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1709 Update.
1710 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1711 * i386-interix-nat.c (supply_fpregset): Update.
1712 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1713 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1714 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1715 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1716 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1717 Update.
1718 * i386obsd-tdep.c (fetch_core_registers): Update.
1719 * i386v4-nat.c (supply_fpregset): Update.
1720 * x86-64-linux-nat.c (supply_fpregset): Update.
1721 * x86-64-linux-tdep.c (fetch_core_registers): Update.
1722
1723 2003-09-27 Mark Kettenis <kettenis@gnu.org>
1724
1725 * i386-tdep.h: Put opaque declarations in alphabetical
1726 order. Remove spurious whitespace.
1727 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1728 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1729 * i386-tdep.c (MM0_REGNUM): Remove define.
1730 (i386_mmx_regnum_p): Add gdbarch argument.
1731 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1732 Rewrite using new macro definitions for FPU/SSE registers.
1733 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1734 definitions from i387-tdep.h.
1735 (i386_register_name): Update.
1736 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1737 new macro definitions for FPU/SSE registers.
1738 (i386_extract_return_value): Determine whether floating-point
1739 registers are present by examining REGCACHE's architecture.
1740 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1741 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1742 FPU/SSE registers.
1743 (i386_register_type): Update.
1744 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1745 definitions for FPU registers. Use REGCACHE's architecture to
1746 determine the appropriate register numbers.
1747 (i386_pseudo_register_read, i386_pseudo_register_write,
1748 i386_register_reggroup_p): Update.
1749 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1750 TDEP->mm0_regnum.
1751 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1752 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1753 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1754 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1755 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1756 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1757 *' to `void *'.
1758 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1759 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1760 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1761 definitions for FPU/SSE registers.
1762 (FXSAVE_MXCSR_ADDR): New define.
1763 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1764 TDEP->mm0_regnum.
1765 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1766 (I387_ST0_REGNUM): Define.
1767
1768 * regcache.h (get_regcache_arch): New prototype.
1769 * regcache.c (get_regcache_arch): New function.
1770
1771 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1772 whitespace.
1773
1774 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1775 Initialize using ARRAY_SIZE.
1776
1777 2003-09-27 Andrew Cagney <cagney@redhat.com>
1778
1779 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1780 "init_frame_pc_default".
1781 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1782 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1783 * vax-tdep.c (vax_gdbarch_init): Update.
1784 * v850-tdep.c (v850_gdbarch_init): Update.
1785 * sh64-tdep.c (sh64_gdbarch_init): Update.
1786 * s390-tdep.c (s390_gdbarch_init): Update.
1787 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1788 * mcore-tdep.c (mcore_gdbarch_init): Update.
1789 * h8300-tdep.c (h8300_gdbarch_init): Update.
1790 * cris-tdep.c (cris_gdbarch_init): Update.
1791 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1792
1793 2003-09-26 Mark Kettenis <kettenis@gnu.org>
1794
1795 * regset.h: New file.
1796 * Makefile.in (regset_h): Add.
1797
1798 2003-09-25 Andrew Cagney <cagney@redhat.com>
1799
1800 * frame.h (deprecated_frame_saved_regs): Rename
1801 get_frame_saved_regs.
1802 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1803 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1804 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1805 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1806 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1807
1808 2003-09-25 Andrew Cagney <cagney@redhat.com>
1809
1810 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1811 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1812 and Java.
1813 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1814 arm*-*-* do not use the new frame code.
1815
1816 2003-09-25 David Carlton <carlton@kealia.com>
1817
1818 * c-exp.y: Remove 'register' declarations.
1819 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1820
1821 2003-09-25 David Carlton <carlton@kealia.com>
1822
1823 * c-exp.y: Include cp-support.h. Add qualified_type.
1824 (yylex): Delete nested type hack; add comments.
1825 * cp-namespace.c (cp_lookup_nested_type): New function.
1826 * cp-support.h: Declare cp_lookup_nested_type.
1827 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1828 instead of value_struct_elt_for_reference.
1829 * valops.c: Include cp-support.h.
1830 (value_aggregate_elt): New function.
1831 (value_namespace_elt): Ditto.
1832 (value_struct_elt_for_reference): Make static.
1833 * value.h: Delete declaration of value_struct_elt_for_reference;
1834 add declaration for value_aggregate_elt.
1835 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1836 (valops.o): Ditto.
1837
1838 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
1839
1840 * stack.c: Include "reggroups.h".
1841 (frame_info): Only display registers in all_reggroup.
1842 * Makefile.in (stack.o): Update dependencies.
1843
1844 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1845
1846 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1847 "add ip, sp #n" in the prologue.
1848 (arm_scan_prologue): Ditto.
1849
1850 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1851
1852 * MAINTAINERS (write after approval): Add myself.
1853
1854 2003-09-25 Andreas Schwab <schwab@suse.de>
1855
1856 * m68k-tdep.c: Include "dwarf2-frame.h".
1857 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1858 * Makefile.in (m68k-tdep.o): Update dependencies.
1859
1860 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
1861
1862 * sh-tdep.c (struct frame_extra_info): Remove.
1863 (struct sh_frame_cache): New structure.
1864 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1865 (GET_TARGET_REG): Ditto but target register.
1866 (GET_PUSHED_REG): Remove.
1867 (IS_MOV_ARG_TO_REG): New macro.
1868 (IS_MOV_ARG_TO_IND_R14): New macro.
1869 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1870 (IS_MOVW_PCREL_TO_REG): New macro.
1871 (IS_MOVL_PCREL_TO_REG): New macro.
1872 (IS_SUB_REG_FROM_SP): New macro.
1873 (IS_ARG_MOV): Remove.
1874 (IS_MOV_TO_R14): Remove.
1875 (IS_RESTORE_FP): New macro.
1876 (IS_RTS): New macro.
1877 (IS_LDS): New macro.
1878 (IS_MOV_FP_SP): New macro.
1879 (IS_ADD_REG_TO_FP): New macro.
1880 (IS_ADD_IMM_FP): New macro.
1881 (sh_skip_prologue_hard_way): Remove.
1882 (sh_saved_pc_after_call): Remove.
1883 (sh_frame_chain): Remove.
1884 (sh_find_callers_reg): Remove.
1885 (sh_nofp_frame_init_saved_regs): Remove.
1886 (sh_fp_frame_init_saved_regs): Remove.
1887 (sh_init_extra_frame_info): Remove.
1888 (sh_analyze_prologue): New function.
1889 (sh_skip_prologue): Remove deprecated code. Rely on new function
1890 sh_analyze_prologue when after_prologue fails.
1891 (sh_frame_saved_pc): Remove.
1892 (sh_alloc_frame_cache): New function.
1893 (sh_frame_cache): Ditto.
1894 (sh_frame_prev_register): Ditto.
1895 (sh_frame_this_id): Ditto.
1896 (sh_frame_unwind): New structure defining the heuristic frame
1897 sniffer interface.
1898 (sh_frame_sniffer): New function.
1899 (sh_unwind_sp): Ditto.
1900 (sh_unwind_pc): Ditto.
1901 (sh_unwind_dummy_id): Ditto.
1902 (sh_frame_base_address): Ditto.
1903 (sh_frame_base): New structure defining new frame base code.
1904 (sh_in_function_epilogue_p): New function.
1905 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1906 code and to call all new code instead. Initialize dwarf2 and
1907 heuristic frame sniffer.
1908
1909 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1910
1911 * parser-defs.h (struct exp_descriptor): New definition, containing
1912 language-specific info for printing, prefixifying, dumping, and
1913 evaluating expressions.
1914 (exp_descriptor_standard): Declare new variable.
1915 (print_subexp): Make global and declare here (from expprint.c).
1916 (dump_subexp): Ditto.
1917 (dump_subexp_body_standard): Declare.
1918 (operator_length_standard): Declare.
1919 (op_name_standard): Declare.
1920 (print_subexp): Declare.
1921 (print_subexp_standard): Declare.
1922
1923 * language.h (struct language_defn): Add la_exp_desc field to hold
1924 pointer to table for language-specific operators.
1925 Remove evaluate_exp field, which is now in struct exp_descriptor.
1926
1927 * parse.c (operator_length): Move most code to new
1928 operator_length_standard function. Use language-specific information.
1929 (operator_length_standard): New function taking most code from
1930 operator_length.
1931 (exp_descriptor_standard): New constant.
1932
1933 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
1934 and OP_EXTENDED_LAST.
1935
1936 * expprint.c (print_subexp): Use language-specific print_subexp.
1937 Make global; remove static declaration.
1938 Move most code to print_subexp_standard.
1939 (print_subexp_standard): New function, containing code formerly in
1940 print_subexp.
1941 (op_name): Add expression to argument signature.
1942 Use langauge-specific op_name.
1943 Move most code to op_name_standard.
1944 (op_name_standard): New function, containing code formerly in op_name.
1945 (dump_subexp): Use new version of op_name function.
1946 Use language-specific dump_subexp_body, and move most existing code to
1947 dump_subexp_body_standard.
1948 (dump_raw_expression): Use new op_name interface.
1949 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1950 (dump_subexp_body_standard): New function, containing code formerly
1951 in dump_subexp_body.
1952
1953 * language.c (unknown_language): Add default la_exp_desc field and
1954 remove evaluate_exp field.
1955 (auto_language): Ditto.
1956 (local_language): Ditto.
1957 * f-lang.c (f_language_defn): Ditto.
1958 * c-lang.c (c_language_defn): Ditto.
1959 (cplus_language_defn): Ditto.
1960 (asm_language_defn): Ditto.
1961 (minimal_language_defn): Ditto.
1962 * p-lang.c (pascal_language_defn): Ditto.
1963 * m2-lang.c (m2_language_defn): Ditto.
1964 * objc-lang.c (objc_language_defn): Ditto.
1965
1966 * jv-lang.c (exp_descriptor_java): New variable, containing
1967 Java-specific expression evaluator.
1968 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1969 field.
1970 * scm-lang.c (exp_descriptor_scm): New variable, containing
1971 Scheme-specific expression evaluator.
1972 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1973 field.
1974 * objc-lang.c (print_object_command): Take evaluate_exp from the
1975 la_exp_desc field.
1976
1977 * Makefile.in (eval.o): Add dependency on parser-defs.h.
1978
1979 * eval.c: Include parser-defs.h for the full declaration of
1980 la_exp_desc's type.
1981 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
1982
1983 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1984
1985 * parser-defs.h (operator_length): Declare.
1986
1987 * parse.c (length_of_subexp): Use operator_length to get operator
1988 lengths and arities for operators.
1989 Move most code to new operator_length function.
1990 (operator_length): New function absorbing most code from
1991 length_of_subexp.
1992 (prefixify_subexp): Remove large case and use operator_length instead.
1993 (parse_exp_1): Use renamings:
1994 dump_prefix_expression => dump_raw_expression and
1995 dump_postfix_expression => dump_prefix_expression.
1996
1997 * expression.h (dump_prefix_expression): Rename to ...
1998 (dump_raw_expression): New name.
1999 (dump_postfix_expression): Rename to ...
2000 (dump_prefix_expression): New name.
2001
2002 * expprint.c (dump_subexp): Make global. Add comment.
2003 Move most existing code to dump_subexp_body.
2004 (dump_subexp_body): New function.
2005 (dump_prefix_expression): Rename to dump_raw_expression.
2006 Remove attempt to print the expression via print_expression: it can't
2007 work before the expression is prefixified.
2008 (dump_raw_expression): Renamed from dump_prefix_expression.
2009 (dump_postfix_expression): Rename to dump_prefix_expression, since
2010 that's what it does.
2011 Remove 'note' parameter, since this routine must be used on
2012 prefixified expression.
2013 (dump_prefix_expression): Renamed from dump_postfix_expression.
2014
2015 2003-09-22 Jim Blandy <jimb@redhat.com>
2016
2017 * dwarf2read.c (read_array_type): When building the type for an
2018 array of unspecified length, make sure to choose the upper bound
2019 so that the array's total length comes out to be zero --- that's
2020 how we represent such arrays.
2021
2022 2003-09-22 Michael Chastain <mec@shout.net>
2023
2024 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2025
2026 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2027
2028 * top.c (quit_force): Fix indirect call to quit_target so
2029 a struct qt_args pointer is passed.
2030
2031 2003-09-22 Andrew Cagney <cagney@redhat.com>
2032
2033 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2034 * arch-utils.c (init_frame_pc_noop): Delete function.
2035 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2036 "init_frame_pc".
2037 * mips-tdep.c (mips_gdbarch_init): Ditto.
2038 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2039 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2040 declaration.
2041 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2042 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2043 declaration.
2044 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2045
2046 2003-09-22 Anthony Green <green@redhat.com>
2047
2048 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2049 declaration.
2050
2051 2003-09-20 Andrew Cagney <cagney@redhat.com>
2052
2053 * breakpoint.c: Eliminate ARGSUSED.
2054 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2055 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2056 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2057 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2058 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2059 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2060 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2061 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2062 * wince.c, remote-vx.c: Ditto.
2063
2064 * cli/cli-script.c: Remove "register" attributes.
2065 * config/pa/tm-hppa.h: Ditto.
2066 * cli/cli-decode.c: Ditto.
2067 * cli/cli-cmds.c: Ditto.
2068
2069 2003-09-19 Andrew Cagney <cagney@redhat.com>
2070
2071 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2072 DEPRECATED_NPC_REGNUM.
2073 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2074
2075 2003-09-19 Christopher Faylor <cgf@redhat.com>
2076
2077 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2078
2079 2003-09-19 Jim Blandy <jimb@redhat.com>
2080
2081 * macrotab.c (macro_include): Use the correct comparison to find
2082 the appropriate place for this inclusion in the list.
2083
2084 2003-09-19 Andrew Cagney <cagney@redhat.com>
2085
2086 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2087 (DEPRECATED_HPUX_TEXT_END): Define.
2088 (deprecated_hpux_text_end): Declare.
2089 (struct target_ops): Declare opaque.
2090 * hppah-nat.c (text_end): Make static.
2091 (deprecated_hpux_text_end): New function.
2092 * exec.c (text_end): Delete global variable.
2093 (NEED_TEXT_START_END): Do not define.
2094 (exec_file_attach): Replace code computing "text_end" code with
2095 call to DEPRECATED_HPUX_TEXT_END.
2096
2097 2003-09-19 Andrew Cagney <cagney@redhat.com>
2098
2099 * utils.c (align_up, align_down): New functions.
2100 * defs.h (align_up, align_down): Declare.
2101 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2102 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2103 and "align_down".
2104 (round_up, round_down): Delete functions.
2105 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2106 "align_down".
2107 (ROUND_DOWN, ROUND_UP): Delete macros.
2108 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2109 * h8300-tdep.c: Replace "round_up" and "round_down" with
2110 "align_up" and "align_down".
2111 (round_up, round_down): Delete macros.
2112 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2113 "align_down".
2114 (ROUND_UP, ROUND_DOWN): Delete macros.
2115
2116 2003-09-18 J. Brobecker <brobecker@gnat.com>
2117
2118 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2119 hard-coded constant. Use the proper machine name instead.
2120
2121 2003-09-17 Andrew Cagney <cagney@redhat.com>
2122
2123 * sparc-tdep.c (legacy_register_name): Delete function.
2124 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2125 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2126 * infcmd.c (gdb_register_name): Delete variable.
2127 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2128 REGISTER_NAME and "tm.h".
2129 * gdbarch.h, gdbarch.c: Regenerate.
2130 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2131 REGISTER_NAMES in comments.
2132 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2133 * m68klinux-nat.c (regmap): Ditto.
2134
2135 2003-09-17 Jim Blandy <jimb@redhat.com>
2136
2137 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2138
2139 2003-09-17 Andrew Cagney <cagney@redhat.com>
2140
2141 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2142 (ppcnbsd_init_abi): Set "use_struct_convention" to
2143 "ppcnbsd_use_struct_convention".
2144
2145 2003-09-17 Mark Kettenis <kettenis@gnu.org>
2146
2147 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2148 * gdbarch.h, gdbarch.c: Regenerate.
2149 (stabs_argument_has_addr): New architecture method.
2150 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2151 * arch-utils.c: Include "buildsym.h".
2152 (default_stabs_argument_has_addr): New function.
2153 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2154 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2155
2156 2003-09-17 Andrew Cagney <cagney@redhat.com>
2157
2158 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2159 * gdbarch.h, gdbarch.c: Regenerate.
2160 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2161 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2162 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2163 * sparcnbsd-tdep.c: Update.
2164
2165 2003-09-17 Andrew Cagney <cagney@redhat.com>
2166
2167 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2168 * gdbarch.h, gdbarch.c: Regenerate.
2169 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2170 * d10v-tdep.c, frame.c: Update.
2171 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2172 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2173 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2174 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2175 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2176 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2177 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2178 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2179 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2180 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2181 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2182 * config/pa/nm-hppah.h: Update.
2183
2184 2003-09-16 Andrew Cagney <cagney@redhat.com>
2185
2186 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2187 "use_struct_convention" to "ppc_linux_use_struct_convention".
2188 (ppc_linux_use_struct_convention): New function.
2189 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2190 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2191 "rs6000_use_struct_convention".
2192 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2193 declaration.
2194 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2195 Delete function.
2196
2197 2003-09-16 Andrew Cagney <cagney@redhat.com>
2198
2199 * buildsym.c: Remove more occurances of "register".
2200 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2201 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2202 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2203 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2204 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2205 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2206 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2207 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2208
2209 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
2210
2211 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2212 numbers to enumeration values.
2213 * sh-tdep.c: Accomodate above change.
2214 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2215 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2216 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2217 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2218 (IS_FPUSH): Rename from IS_FMOV.
2219 (sh_extract_struct_value_address): Remove useless comment.
2220 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2221 instead of own local values.
2222 (sh_dump_tdep): Remove.
2223 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2224 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2225
2226 2003-09-15 Andrew Cagney <cagney@redhat.com>
2227
2228 * doublest.c (convert_floatformat_to_doublest): No longer need to
2229 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2230
2231 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
2232
2233 * values.c (unpack_double): Call floatformat_is_valid.
2234
2235 2003-09-15 Mark Kettenis <kettenis@gnu.org>
2236
2237 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2238 ps_strings into a long.
2239
2240 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2241 _initialize_am64fbsd_nat.
2242
2243 2003-09-15 Kevin Buettner <kevinb@redhat.com>
2244
2245 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2246 associated with DW_AT_ranges attribute is out of bounds.
2247
2248 2003-09-15 David Lecomber <dsl@sources.redhat.com>
2249
2250 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2251
2252 2003-09-14 Michael Chastain <mec@shout.net>
2253
2254 * config/m68k/nm-apollo68v.h: Delete.
2255 * config/m68k/xm-apollo68v.h: Delete.
2256
2257 2003-09-14 Andrew Cagney <cagney@redhat.com>
2258
2259 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2260 * dcache.c: Update copyrights and descriptions.
2261 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2262
2263 2003-09-14 Andrew Cagney <cagney@redhat.com>
2264
2265 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2266 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2267
2268 2003-09-14 Andrew Cagney <cagney@redhat.com>
2269
2270 * alpha-nat.c: Remove some occurances of "register".
2271 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2272 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2273 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2274 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2275 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2276 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2277 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2278 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2279 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2280 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2281 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2282 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2283 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2284 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2285 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2286 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2287 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2288 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2289 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2290 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2291 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2292 * values.c, vax-tdep.c, xcoffread.c: Ditto.
2293
2294 2003-09-13 Andrew Cagney <cagney@redhat.com>
2295
2296 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2297 * ppc-tdep.h (struct regcache): Declare opaque.
2298 * objfiles.h (struct objfile_data): Declare opaque.
2299 * cp-support.h (struct objfile): Declare opaque.
2300 * linux-nat.h (target_waitstatus): Declare opaque.
2301
2302 2003-09-14 Mark Kettenis <kettenis@gnu.org>
2303
2304 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2305 (stabs_argument_has_addr): New architecture method.
2306 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2307 * arch-utils.c: Include "buildsym.h".
2308 (default_stabs_argument_has_addr): New function.
2309 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2310 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2311
2312 * cris-tdep.c (cris_gdbarch_init): Set
2313 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2314 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2315 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2316 * mips-tdep.c (mips_gdbarch_init): Likewise.
2317 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2318 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2319
2320 2003-09-13 Andrew Cagney <cagney@redhat.com>
2321
2322 * values.c (using_struct_return): Delete "function" and "funcaddr"
2323 parameters.
2324 * value.h (using_struct_return): Update declaration.
2325 * infcmd.c (finish_command_continuation): Update.
2326 (finish_command): Update.
2327 * infcall.c (call_function_by_hand): Update.
2328 * eval.c (evaluate_subexp_standard): Update.
2329
2330 2003-09-13 Christopher Faylor <cgf@redhat.com>
2331
2332 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2333 SSE registers since gdb will not operate correctly without this.
2334 Restore include file ordering munged in previous change.
2335 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2336
2337 2003-09-13 Mark Kettenis <kettenis@gnu.org>
2338
2339 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2340 REG_STRUCT_HAS_ADDR.
2341 * gdbarch.c, gdbarch.h: Updated.
2342 * infcall.c (call_function_by_hand): Update.
2343 * stabsread.c (define_symbol): Updated.
2344
2345 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2346
2347 2003-09-12 Christopher Faylor <cgf@redhat.com>
2348
2349 * win32-nat.c: Reorganize so that defines used by target headers are
2350 actually defined by the system headers.
2351 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2352 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2353
2354 2003-09-12 Jim Blandy <jimb@redhat.com>
2355
2356 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2357 the file has no .data, .bss, or .rodata sections. Instead wait
2358 until we see a variable alleged to live in one of those sections.
2359
2360 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2361 .bss section, presume that any variables we find live in the
2362 .rodata section.
2363
2364 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2365 offsets for global and static variables.
2366
2367 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2368 symbol types are, by definition, in the .data section, so it is
2369 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2370 If there is no .data section, there should be no N_DATA or N_DATA
2371 | N_EXT symbols.
2372
2373 2003-09-12 Mark Kettenis <kettenis@gnu.org>
2374
2375 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2376 (amd64fbsd_sigcontext_addr): Rewrite.
2377 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2378 with correct values.
2379 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2380 (amd64fbsd_init_abi): Fix typo.
2381
2382 2003-09-12 Andrew Cagney <cagney@redhat.com>
2383
2384 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2385 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2386
2387 2003-09-12 Andrew Cagney <cagney@redhat.com>
2388
2389 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2390 "entry_file_highpc". Update comments.
2391 * defs.h (deprecated_inside_entry_file): Rename
2392 "inside_entry_file".
2393 * blockframe.c (deprecated_inside_entry_file): Rename
2394 "inside_entry_file".
2395 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2396 * vax-tdep.c (vax_frame_chain): Update.
2397 * sh64-tdep.c (sh64_frame_chain): Update.
2398 * sh-tdep.c (sh_frame_chain): Update.
2399 * rs6000-tdep.c (rs6000_frame_chain): Update.
2400 * ns32k-tdep.c (ns32k_frame_chain): Update.
2401 * mips-tdep.c (mips_frame_chain): Update.
2402 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2403 * m32r-tdep.c (m32r_frame_this_id): Update.
2404 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2405 * frv-tdep.c (frv_frame_this_id): Update.
2406 * d10v-tdep.c (d10v_frame_this_id): Update.
2407 * cris-tdep.c (cris_frame_chain): Update.
2408 * blockframe.c (legacy_frame_chain_valid): Update.
2409 * avr-tdep.c (avr_frame_this_id): Update.
2410 * arm-tdep.c (arm_prologue_this_id): Update.
2411 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2412 * objfiles.c (objfile_relocate): Update.
2413 * mipsread.c (mipscoff_symfile_read): Update.
2414 (mipscoff_symfile_read): Update.
2415 * mdebugread.c (parse_partial_symbols): Update.
2416 * dwarfread.c (read_file_scope): Update.
2417 * dwarf2read.c (read_file_scope): Update.
2418 * dbxread.c (read_dbx_symtab): Update.
2419 (read_dbx_symtab): Update.
2420 * coffread.c (complete_symtab): Update.
2421
2422 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2423
2424 * top.c (quit_target): New static helper function.
2425 (quit_force): Moved code to quit_target(). Call quit_target()
2426 via catch_errors() to catch errors during quit.
2427
2428 2003-09-11 David Carlton <carlton@kealia.com>
2429
2430 * buildsym.c (finish_block): Use allocate_block to allocate the
2431 block.
2432 * mdebugread.c (new_block): Add FIXME.
2433
2434 2003-09-11 David Carlton <carlton@kealia.com>
2435
2436 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2437 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2438 (recursive_dump_type): Ditto.
2439 * printcmd.c (print_formatted): Ditto.
2440 * typeprint.c (print_type_scalar): Ditto.
2441 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2442 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2443 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2444 maint_cplus_cmd_list.
2445 * cp-support.c: Make maint_cplus_cmd_list extern.
2446 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2447 command.h.
2448 (lookup_symbol_file): Look in possible namespace blocks when
2449 appropriate.
2450 (initialize_namespace_symtab): New.
2451 (get_possible_namespace_block, free_namespace_block)
2452 (check_possible_namespace_symbols)
2453 (check_possible_namespace_symbols_loop)
2454 (check_one_possible_namespace_symbol)
2455 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2456 (_initialize_cp_namespace): Ditto.
2457 * block.h: Declare allocate_block.
2458 * block.c (allocate_block): New.
2459 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2460 allocate_block.
2461 * symfile.h: Update declaration of add_psymbol_to_list.
2462 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2463 question.
2464 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2465 scan_partial_symbols_call.
2466 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2467 helper functions.
2468 (add_partial_symbol): If necessary, scan mangled names for names
2469 of namespaces.
2470 (add_partial_namespace): Add NAMESPACE argument; generate partial
2471 symbols associated to namespaces.
2472 (add_partial_enumeration): Add NAMESPACE argument.
2473 (new_symbol): Allow namespace syms.
2474 (read_namespace): Generate namespace syms.
2475 * objfiles.h: Add opaque declaration of struct symtab.
2476 (struct objfile): Add cp_namespace_symtab member.
2477 * objfiles.c (allocate_objfile): Set
2478 objfile->cp_namespace_symtab.
2479 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2480 dictionary_h, command_h.
2481
2482 2003-09-11 Andrew Cagney <cagney@redhat.com>
2483
2484 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2485 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2486 near the function's end.
2487 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2488 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2489 regcache_raw_write_signed to set SP_REGNUM.
2490
2491 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
2492
2493 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2494 orig_addrs is set up properly.
2495
2496 2003-09-11 Andrew Cagney <cagney@redhat.com>
2497
2498 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2499 * gdbarch.h, gdbarch.c: Re-generate.
2500 * infcall.c (call_function_by_hand): Update.
2501 * hppa-tdep.c (hppa_push_arguments): Update.
2502 * ada-lang.c (place_on_stack): Update.
2503 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2504 * sparc-tdep.c (sparc_gdbarch_init): Update.
2505 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2506 * hppa-tdep.c (hppa_gdbarch_init): Update.
2507 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2508 stack_align.
2509
2510 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
2511
2512 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2513 register do need a frame.
2514
2515 2003-09-11 Andrew Cagney <cagney@redhat.com>
2516
2517 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2518 buildable since GDB 5.0.
2519 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2520 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2521 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2522 * irix4-nat.c: Delete file.
2523 * config/mips/irix4.mh: Delete file.
2524 * config/mips/irix3.mh: Delete file.
2525 * config/mips/irix3.mt: Delete file.
2526 * config/mips/tm-irix3.h: Delete file.
2527 * config/mips/nm-irix3.h: Delete file.
2528 * config/mips/xm-irix3.h: Delete file.
2529 * config/mips/nm-irix4.h: Delete file.
2530 * config/mips/xm-irix4.h: Delete file.
2531 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2532
2533 2003-09-10 J. Brobecker <brobecker@gnat.com>
2534
2535 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2536 * Makefile.in (hppa-tdep.o): Update dependencies.
2537
2538 2003-09-10 James E Wilson <wilson@specifixinc.com>
2539
2540 * MAINTAINERS: Change my e-mail address. Move to paper trail
2541 section.
2542
2543 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2544
2545 * MAINTAINERS (frv): New ISA entry.
2546
2547 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2548
2549 * frv-tdep.c (dis-asm.h): Include.
2550 * Makefile.in (frv-tdep.o): Update dependencies.
2551
2552 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2553
2554 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2555 Fix typo for high range of floating registers.
2556
2557 2003-09-09 David Carlton <carlton@kealia.com>
2558
2559 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2560 highpc initialization here out of scan_partial_symbols.
2561 (scan_partial_symbols): Restructure into a recursive version,
2562 calling add_partial_namespace and add_partial_enumeration when
2563 appropriate.
2564 (add_partial_namespace): New.
2565 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2566
2567 2003-09-09 Andrew Cagney <cagney@redhat.com>
2568
2569 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2570 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2571 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2572 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2573
2574 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2575 (rs6000_push_dummy_call): Set the "TOC" register.
2576
2577 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2578 methods "max_register_raw_size", "max_register_virtual_size" or
2579 "register_virtual_size".
2580
2581 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2582
2583 * MAINTAINERS: Update my e-mail address.
2584
2585 2003-09-09 Andrew Cagney <cagney@redhat.com>
2586
2587 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2588 (rs6000_push_dummy_call): Store the struct return address.
2589 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2590
2591 2003-09-09 Andrew Cagney <cagney@redhat.com>
2592
2593 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2594 "ppc_sysv_abi_push_arguments".
2595 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2596 "ppc_sysv_abi_push_arguments".
2597 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2598 instead of "push_arguments".
2599 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2600
2601 2003-09-09 Andrew Cagney <cagney@redhat.com>
2602
2603 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2604 instead of CALL_DUMMY_ADDRESS.
2605
2606 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2607
2608 * p-lang.c: Eliminate "register".
2609 * c-lang.c: Ditto.
2610 * expprint.c: Ditto.
2611 * f-lang.c: Ditto.
2612 * jv-lang.c: Ditto.
2613 * language.c: Ditto.
2614 * m2-lang.c: Ditto.
2615 * parse.c: Ditto.
2616 * scm-lang.c: Ditto.
2617 * objc-lang.c: Ditto.
2618
2619 2003-09-09 Nick Clifton <nickc@redhat.com>
2620
2621 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2622
2623 2003-09-04 Andrew Cagney <cagney@redhat.com>
2624
2625 * avr-tdep.c: Include "dis-asm.h".
2626 * cris-tdep.c: Include "dis-asm.h".
2627 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2628 instead of corresponding typedef.
2629 * h8300-tdep.c: Include "dis-asm.h".
2630 * ia64-tdep.c: Include "dis-asm.h".
2631 * i386-tdep.c: Include "dis-asm.h".
2632 (i386_print_insn): Use "struct disassemble_info" instead of
2633 corresponding typedef.
2634 * m68k-tdep.c: Include "dis-asm.h".
2635 * mcore-tdep.c: Include "dis-asm.h".
2636 * mips-tdep.c: Include "dis-asm.h".
2637 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2638 instead of corresponding typedef.
2639 * ns32k-tdep.c: Include "dis-asm.h".
2640 * s390-tdep.c: Include "dis-asm.h".
2641 * sparc-tdep.c: Include "dis-asm.h".
2642 * vax-tdep.c: Include "dis-asm.h".
2643 * v850-tdep.c: Include "dis-asm.h".
2644 * mn10300-tdep.c: Include "dis-asm.h".
2645 * rs6000-tdep.c: Include "dis-asm.h".
2646 * xstormy16-tdep.c: Include "dis-asm.h".
2647 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2648 print_insn_xstormy16.
2649 * Makefile.in (v850-tdep.o): Update dependencies.
2650 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2651 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2652 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2653 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2654 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2655 (gdbarch_h): Remove $(dis_asm_h).
2656 * disasm.c: Include "dis-asm.h".
2657 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2658 corresponding typedef.
2659 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2660 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2661 * gdbarch.sh: Do not include "dis-asm.h".
2662 (struct disassemble_info): Declare opaque.
2663 (TARGET_PRINT_INSN): Update declaration.
2664 * gdbarch.h, gdbarch.c: Re-generate.
2665
2666 2003-09-08 Andrew Cagney <cagney@redhat.com>
2667
2668 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2669 CALL_DUMMY_ADDRESS, change to a predicate.
2670 * gdbarch.h, gdbarch.c: Re-generate.
2671 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2672 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2673 * infcall.c (call_function_by_hand): Ditto.
2674 * sparc-tdep.c (sparc_push_return_address): Ditto.
2675 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2676 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2677 CALL_DUMMY_ADDRESS with entry_point_address.
2678 * v850-tdep.c (v850_push_return_address): Ditto.
2679 * s390-tdep.c (s390_push_return_address): Ditto.
2680 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2681 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2682 * mcore-tdep.c (mcore_push_return_address): Ditto.
2683 * cris-tdep.c (cris_push_return_address): Ditto.
2684 * arm-tdep.c (arm_push_return_address): Ditto.
2685
2686 2003-09-08 Andrew Cagney <cagney@redhat.com>
2687
2688 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2689 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2690 and REG_UNMODIFIED to REG_SAME_VALUE.
2691 (execute_cfa_program): Update.
2692 (dwarf2_frame_cache): Update. Initialize table to
2693 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2694 location.
2695 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2696
2697 2003-09-08 Andrew Cagney <cagney@redhat.com>
2698
2699 * gnu-nat.c: Remove "inline" function attribute.
2700 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2701
2702 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2703
2704 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2705 target.
2706
2707 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2708
2709 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2710 (frame_extra_info): Rename this struct to frv_unwind_cache.
2711 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2712 Add fields ``prev_sp'' and ``base''.
2713 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2714 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2715 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2716 Delete.
2717 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2718 Revise all callers. Fill in the unwind cache argument and make
2719 other adjustments to account for new frame mechanisms.
2720 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2721 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2722 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2723 (frv_frame_unwind, frv_frame_base): New structs.
2724 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2725 additional arguments expected by this method and adjust function
2726 body accordingly.
2727 (frv_gdbarch_init): Remove calls to the following functions:
2728 set_gdbarch_deprecated_init_frame_pc(),
2729 set_gdbarch_deprecated_saved_pc_after_call(),
2730 set_gdbarch_deprecated_frame_chain(),
2731 set_gdbarch_deprecated_frame_saved_pc(),
2732 set_gdbarch_deprecated_frame_init_saved_regs(),
2733 set_gdbarch_deprecated_push_arguments(),
2734 set_gdbarch_deprecated_push_return_address(),
2735 set_gdbarch_deprecated_pop_frame(),
2736 set_gdbarch_deprecated_call_dummy_words(),
2737 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2738 set_gdbarch_deprecated_init_extra_frame_info(),
2739 set_gdbarch_deprecated_dummy_write_sp(), and
2740 set_gdbarch_deprecated_pc_in_call_dummy().
2741 Add calls to the following functions:
2742 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2743 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2744 frame_base_set_default().
2745 * Makefile.in (frv-tdep.o): Update dependencies.
2746
2747 2003-09-09 Mark Kettenis <kettenis@gnu.org>
2748
2749 * dwarf2-frame.c (read_encoded_value): Add support for
2750 DW_EH_PE_aligned encoding.
2751
2752 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2753
2754 * infrun.c (normal_stop): Don't print a message if the inferior
2755 has exited.
2756
2757 2003-09-08 Jim Blandy <jimb@redhat.com>
2758
2759 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2760 * dbxread.c: #include "gdb_assert.h".
2761 (read_dbx_symtab): If the objfile has no .data section, use the
2762 section index for the .bss section instead.
2763
2764 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2765
2766 * frame.c (deprecated_safe_get_selected_frame): New function.
2767 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2768 * findvar.c (read_var_value): Call it.
2769
2770 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
2771
2772 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2773 (sh64-tdep.o): Add dependencies.
2774 * configure.tgt: Add FIXME to sh-*-linux*.
2775 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2776 (sh_gdbarch_init): Always set correct sh_show_regs function
2777 pointer. Call sh64_gdbarch_init() if machine type is sh5.
2778 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2779 * sh64-tdep.c: New file, containing all sh64 related code from
2780 sh-tdep.c.
2781 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2782 * config/sh/linux.mt (TDEPFILES): Ditto.
2783 * config/sh/nbsd.mt (TDEPFILES): Ditto.
2784 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2785 * config/sh/wince.mt (TDEPFILES): Ditto.
2786
2787 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2788
2789 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2790 (stop_wait_callback): Handle !lp->signalled also.
2791 (lin_lwp_has_pending, flush_callback): New functions.
2792 (lin_lwp_wait): Call flush_callback.
2793 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2794 (linux_proc_pending_signals): New function.
2795 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2796
2797 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2798
2799 From Nick Kelsey <nickk@ubicom.com>:
2800 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2801 when the stop PC is at the beginning of a function also.
2802
2803 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
2804
2805 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2806 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2807
2808 2003-09-06 Mark Kettenis <kettenis@gnu.org>
2809
2810 * sol-thread.c: Include "gdb_string.h".
2811
2812 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2813
2814 * gcore.c: Reorder include files in alphabetical order. Include
2815 "gdb_assert.h". Various coding style fixes.
2816 (derive_stack_segment, derive_heap_segment): Replace check for
2817 non-null BOTTOM and TOP with gdb_assert.
2818 (derive_heap_segment): Replace check for successful creation of
2819 ZERO with gdb_assert.
2820 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2821
2822 2003-09-04 Andrew Cagney <cagney@redhat.com>
2823
2824 * thread-db.c (verbose_dlsym): New function.
2825 (thread_db_load): Use verbose_dlsym
2826 (thread_db_new_objfile): Print that libthread_db was loaded, and
2827 that thread debugging was enabled.
2828
2829 2003-09-04 Andrew Cagney <cagney@redhat.com>
2830
2831 * configure.tgt: Add "mips64*-*-*" target. Delete
2832 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2833 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2834 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2835 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2836 mips*-sony-*, and mips64*-*-elf* targets.
2837 * config/mips/embedl.mt: Delete file.
2838 * config/mips/embedl64.mt: Delete file.
2839 * config/mips/mips.mt: Delete file.
2840 * config/mips/mips64.mt: Delete file.
2841 * config/mips/tm-embed.h: Delete file.
2842 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2843 * config/mips/embed64.mt: Delete out-of-date comment.
2844
2845 2003-09-04 Andrew Cagney <cagney@redhat.com>
2846
2847 * hppa-tdep.c (hppa_gdbarch_init): Set
2848 "have_nonsteppable_watchpoint".
2849 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2850 * mips-tdep.c (mips_dump_tdep): Do not print
2851 HAVE_NONSTEPPABLE_WATCHPOINT.
2852 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2853 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2854 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2855 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2856
2857 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2858
2859 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2860 unused code. Add comment.
2861
2862 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2863
2864 * breakpoint.c (watchpoint_check): Check for pc being in an
2865 epilogue if watchpoint frame couldn't be found.
2866
2867 2003-09-04 Andrew Cagney <cagney@redhat.com>
2868
2869 * Makefile.in: Re-generate all dependencies.
2870
2871 2003-09-03 Andrew Cagney <cagney@redhat.com>
2872
2873 * arch-utils.h (legacy_print_insn): Delete declaration.
2874 * arch-utils.c (legacy_print_insn): Delete function.
2875 * disasm.c (deprecated_tm_print_insn_info): Delete.
2876 (_initialize_disasm): Delete function, contained code initializing
2877 deprecated_tm_print_insn_info.
2878 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2879 (deprecated_tm_print_insn_info): Delete.
2880 (TARGET_PRINT_INSN): Do not provide a default.
2881 * gdbarch.h, gdbarch.c: Re-generate.
2882
2883 2003-09-03 Andrew Cagney <cagney@redhat.com>
2884
2885 * disasm.c (fprintf_disasm): New function.
2886 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2887 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2888 reverts 2003-08-14 change.
2889 (_initialize_disasm): Call "init_disassemble_info", instead of
2890 INIT_DISASSEMBLE_INFO_NO_ARCH.
2891
2892 2003-09-03 Michael Snyder <msnyder@redhat.com>
2893
2894 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2895
2896 2003-09-03 Andrew Cagney <cagney@redhat.com>
2897
2898 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2899 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2900 * symfile.c (syms_from_objfile): Update.
2901 (reread_symbols): `Update
2902 * exec.c (exec_file_attach): Update.
2903 (exec_file_attach): Update.
2904 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2905 2003-08-29 change.
2906 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2907
2908 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2909
2910 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2911 trad-frame.h.
2912 (arm_get_cache): Delete macro.
2913 (struct arm_prologue_cache): Update comments. Make saved_regs into
2914 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2915 to prev_sp.
2916 (thumb_scan_prologue): Update for cache changes. Don't call
2917 DEPRECATED_PC_IN_CALL_DUMMY.
2918 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2919 argument and use it in desperation search for our prologue. Do not
2920 search past the specified PC.
2921 (arm_make_prologue_cache): Simplify.
2922
2923 (arm_prologue_this_id, arm_prologue_prev_register)
2924 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2925 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2926 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2927 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2928 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2929
2930 (arm_frame_chain_valid, arm_find_callers_reg)
2931 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2932 (arm_pop_frame): Delete obsolete methods.
2933 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2934
2935 (arm_gdbarch_init): Update for new frame methods. Register prologue
2936 and sigtramp unwinders. Set the default frame base method.
2937
2938 * Makefile.in (arm-tdep.o): Update dependencies.
2939 * varobj.c (find_frame_addr_in_frame_chain): Call
2940 get_frame_base_address.
2941 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2942
2943 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2944
2945 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2946 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2947 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2948 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2949 Take NEXT_FRAME and CACHE arguments. Call
2950 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2951 Set unwound_pc in CACHE instead of modifying the frame argument.
2952 Don't bother checking the frame type when looking for sigtramp
2953 frames.
2954 (arm_make_prologue_cache, arm_frame_chain)
2955 (arm_init_extra_frame_info): New functions.
2956
2957 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2958
2959 * arm-tdep.c (arm_get_cache): Define.
2960 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2961 unwound_sp, unwound_pc, and saved_regs.
2962 (thumb_scan_prologue): Take a cache instead of the frame.
2963 (arm_scan_prologue): Likewise.
2964 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2965 instead of a temporary frame.
2966 (arm_init_extra_frame_info): Allocate and use a cache.
2967 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2968
2969 2003-09-03 Andrew Cagney <cagney@redhat.com>
2970
2971 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2972 * config/mips/wince.mt (TM_CLIBS): Ditto.
2973 * config/sh/wince.mt (TM_CLIBS): Ditto.
2974 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2975 * config/sparc/sp64.mt (CC): Delete.
2976
2977 2003-09-03 Andrew Cagney <cagney@redhat.com>
2978
2979 * defs.h: Do not include "arch-utils.h".
2980 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2981 GDB_MULTI_ARCH_PURE.
2982 * configure.in (GDB_MULTI_ARCH): Do not define.
2983 * configure, config.in: Regenerate.
2984 * configure.tgt: Do not set variable "gdb_multi_arch".
2985 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2986 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2987 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2988 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2989 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2990 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2991 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2992 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2993 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2994 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2995 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2996 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2997 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2998 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2999 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3000 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3001 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3002 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
3003
3004 2003-08-30 Michael Chastain <mec@shout.net>
3005
3006 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3007 * config/m68k/nm-hp300hpux.h: Delete.
3008 * config/m68k/tm-hp300hpux.h: Delete.
3009 * config/m68k/xm-hp300hpux.h: Delete.
3010 * config/m68k/xm-hp300bsd.h: Delete.
3011 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3012 tm-hp300hpux.h, xm-hp300hpux.h.
3013 * somsolib.c: Remove comment about hp300 shared libraries.
3014
3015 2003-08-31 Mark Kettenis <kettenis@gnu.org>
3016
3017 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3018 Only define PTRACE_GET_THREAD_AREA is not already defined.
3019 Various style fixes in code and comments and some additional
3020 spelling fixes in comments. Move after functions dealing with
3021 debug registers.
3022 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3023 Fix coding-style.
3024
3025 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3026 frame_unwind_register_unsigned instead of
3027 frame_unwind_unsigned_register.
3028
3029 2003-08-30 Mark Kettenis <kettenis@gnu.org>
3030
3031 * configure.in: Search for gethostbyname in libnsl.
3032 * configure: Regenerated.
3033
3034 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3035
3036 * configure.in: Remove redundant AC_MSG_RESULT in check for
3037 uintptr_t in stdint.h.
3038 * configure: Regenerated.
3039
3040 * amd64-nat.h (struct regcache): Add opaque declaration.
3041
3042 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3043 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3044 Change "register array" to "register cache" in comments.
3045 (x86_64_linux_gregset64_reg_offset): New variable.
3046 (GETREGS_SUPPLIES): Remove macro.
3047 (supply_gregset): Call amd64_supply_native_gregset instead of
3048 x86_64_linux_supply_gregset.
3049 (fill_gregset): Rename `regno' to `regnum'. Call
3050 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3051 (store_regs): Rename `regno' to `regnum'.
3052 (store_fpregs): Rename `regno' to `regnum'.
3053 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3054 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3055 Reorganize function a bit.
3056 (store_inferior_registers): Rename `regno' to `regnum'. Use
3057 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3058 Reorganize function a bit.
3059 (_initialize_x86_64_linux_nat): New function.
3060 * config/i386/x86-64linux.mh.
3061
3062 2003-08-29 Andrew Cagney <cagney@redhat.com>
3063
3064 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3065 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3066 (target_remove_watchpoint): Delete macro.
3067 (target_insert_watchpoint): Delete macro.
3068 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3069 (remote_mips_stopped_by_watchpoint): Delete declaration.
3070 (remote_mips_remove_watchpoint): Delete declaration.
3071 (remote_mips_set_watchpoint): Delete declaration.
3072 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3073 * remote-mips.c (_initialize_remote_mips): Set
3074 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3075 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3076 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3077 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3078 (mips_stopped_by_watchpoint): Rename
3079 remote_mips_stopped_by_watchpoint.
3080 (mips_can_hardware_watchpoint): Rename
3081 remote_mips_can_use_hardware_watchpoint, update function
3082 signature.
3083
3084 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3085
3086 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3087 USER_DS. We haven't given them a register number yet.
3088
3089 * amd64-nat.h: New file.
3090 * amd64-nat.c: New file.
3091 * amd64fbsd-nat.c: Include "amd64-nat.h".
3092 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3093 (amd64fbsd32_r_reg_offset): New variable.
3094 (supply_gregset): Simply call amd64_supply_native_gregset.
3095 (fill_gregset): Rename `regno' to `regnum'. Simply call
3096 amd64_collect_native_gregset.
3097 (fill_fpregset): Rename `regno' to `regnum'.
3098 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3099 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3100 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3101 `fpregset_t'. Call amd64_supply_native_gregset instead of
3102 supply_gregset. Call x86_64_supply_fxsave instead of
3103 supply_fpregset.
3104 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3105 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3106 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3107 `fpregset_t'. Call amd64_collect_native_gregset instead of
3108 fill_gregset. Call x86_64_collect_fxsave instead of
3109 fill_fpregset.
3110 (_initialize_am64fbsd_nat): Initialize
3111 amd64_native_gregset32_reg_offset and
3112 amd64_native_gregset64_reg_offset.
3113 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3114
3115 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3116 null pointer. Fix typo in comment.
3117
3118 * regcache.c (supply_register): Reimplement to call
3119 regcache_raw_supply.
3120 (regcache_collect): Reimplement by calling regcache_raw_collect.
3121
3122 2003-08-28 Mark Kettenis <kettenis@gnu.org>
3123
3124 * regcache.c (register_buffer): Consitify first argument.
3125 (regcache_raw_supply, regcache_raw_collect): New
3126 functions.
3127
3128 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3129
3130 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3131 by Nathan J. Williams.
3132
3133 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3134
3135 * lin-lwp.c (wait_lwp): New function, copied from
3136 stop_wait_callback. Clean up.
3137 (stop_wait_callback): Use wait_lwp.
3138
3139 2003-08-28 Andrew Cagney <cagney@redhat.com>
3140
3141 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3142 flavour and disassembler options.
3143 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3144 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3145 deprecated_tm_print_insn_info.
3146
3147 2003-08-27 Andrew Cagney <cagney@redhat.com>
3148
3149 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3150 Use target_read_memory.
3151 (s390_get_frame_info): Update. Do not reference
3152 deprecated_tm_print_insn_info.
3153 (s390_check_function_end, s390_is_sigreturn): Ditto.
3154
3155 2003-08-27 Andrew Cagney <cagney@redhat.com>
3156
3157 * Makefile.in (cris-tdep.o): Update dependencies.
3158 * cris-tdep.c: Include "gdb_assert.h".
3159 (cris_gdbarch_init): Set print_insn.
3160 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3161 (cris_delayed_get_disassembler): Simplify, directly call the
3162 disassembler returned by cris_get_disassembler.
3163 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3164 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3165 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3166 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3167 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3168 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3169 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3170 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3171 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3172 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3173 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3174 (gdb_print_insn_sparc): Delete function.
3175 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3176 deprecated_tm_print_insn_info.
3177 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3178 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3179 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3180 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3181 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3182 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3183 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3184 (s390_gdbarch_init): Set print_insn.
3185
3186 2003-08-27 Andrew Cagney <cagney@redhat.com>
3187
3188 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3189 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3190 * infcall.c (call_function_by_hand): Convert the entry point
3191 address into a code address.
3192
3193 2003-08-27 Andrew Cagney <cagney@redhat.com>
3194
3195 * dsrec.c: Include "gdb_string.h".
3196 * Makefile.in (dsrec.o): Update dependencies.
3197
3198 2003-08-27 Michael Chastain <mec@shout.net>
3199
3200 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3201
3202 2003-08-27 Andrew Cagney <cagney@redhat.com>
3203
3204 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3205 (alpha_osf1_init_abi): Do not set call_dummy_address.
3206
3207 2003-08-27 David Carlton <carlton@kealia.com>
3208
3209 From Randolph Chung <tausq@debian.org>:
3210 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3211 compiles with -Wformat-nonliteral -Werror.
3212
3213 2003-08-26 Jim Blandy <jimb@redhat.com>
3214
3215 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3216 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3217 bfd_lookup_symbol, since we only want symbols in code sections.
3218 (look_for_base): Pass zero as the SECT_FLAGS argument to
3219 bfd_lookup_symbol, since we're not concerned about which section
3220 the symbol is in.
3221
3222 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3223
3224 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3225 we are frameless or the return address register is already known.
3226
3227 2003-08-26 Andrew Cagney <cagney@redhat.com>
3228
3229 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3230 in size. Add comments.
3231
3232 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3233
3234 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3235 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3236
3237 2003-08-26 Jason Merrill <jason@redhat.com>
3238
3239 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3240 case out of #ifdef MIPS block.
3241
3242 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
3243
3244 PR java/1322
3245 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3246 available before calling SECT_OFF_TEXT.
3247 * PROBLEMS: Remove description of java/1322.
3248
3249 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3250
3251 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3252 bof, and nat0-nat127 as pseudo-registers.
3253 (ia64_frame_cache): New struct used to cache frame info.
3254 (ia64_register_reggroup_p): New routine used to override default
3255 register grouping so registers without names are still saved and
3256 restored.
3257 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3258 pseudo values.
3259 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3260 (ia64_pseudo_register_write): New routine to write pseudo-registers.
3261 (ia64_alloc_frame_cache): New routine to create a new
3262 ia64_frame_cache.
3263 (examine_prologue): Change prototype to add next_frame pointer.
3264 Assume frameless until otherwise proven. Verify that the cfm for
3265 current frame matches the cfm that should occur for the prologues
3266 alloc insn and if equal, mark as not frameless. At end of routine,
3267 if not frameless, calculate registers for the previous frame and store
3268 in the cache, if a cache is provided.
3269 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3270 and pass 0 for next_frame.
3271 (ia64_store_return_value): Change to use convert_typed_floating()
3272 instead of calling ia64_convert_to_raw().
3273 (ia64_extract_return_value): Change to use convert_typed_floating()
3274 instead of calling ia64_convert_to_virtual().
3275 (ia64_frame_cache): New routine to support new frame model.
3276 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3277 (ia64_frame_sniffer): Ditto.
3278 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3279 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3280 (ia64_sigtramp_frame_prev_register): Ditto.
3281 (ia64_sigtramp_frame_sniffer): Ditto.
3282 (ia64_frame_base_address): Ditto.
3283 (ia64_extract_struct_value_address): Change to issue error message.
3284 (ia64_frame_align): New routine to align sp.
3285 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3286 (ia64_push_arguments): Removed. Logic moved to
3287 ia64_push_dummy_call().
3288 (ia64_push_return_address): Ditto.
3289 (ia64_unwind_dummy_id): New function.
3290 (ia64_unwind_pc): Ditto.
3291 (ia64_convert_register_p): Ditto.
3292 (ia64_register_to_value): Ditto.
3293 (ia64_value_to_register): Ditto.
3294 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3295 (ia64_register_byte, ia64_register_raw_size): Ditto.
3296 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3297 (ia64_saved_pc_after_call): Ditto.
3298 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3299 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3300 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3301 (ia64_register_convert_to_raw): Ditto.
3302 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3303 (ia64_init_extra_frame_info): Ditto.
3304 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3305 (ia64_gdbarch_init): Remove registering of deprecated functions that
3306 are no longer used. Add registration of new gdbarch functions.
3307 Remove registering deprecated_write_sp. Replace
3308 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3309 Delete set_gdbarch_deprecated_register_convertible(),
3310 set_gdbarch_deprecated_register_convert_to_virtual(), and
3311 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3312 set_gdbarch_deprecated_register_size(),
3313 set_gdbarch_deprecated_register_bytes(),
3314 set_gdbarch_pcregnum(),
3315 set_gdbarch_deprecated_register_byte(),
3316 set_gdbarch_deprecated_register_raw_size(),
3317 set_gdbarch_deprecated_max_register_raw_size(),
3318 set_gdbarch_deprecated_register_virtual_size(),
3319 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3320 Replace set_gdbarch_deprecated_extract_return_value() with
3321 set_gdbarch_extract_return_value(). Remove calls to:
3322 set_gdbarch_deprecated_saved_pc_after_call();
3323 set_gdbarch_deprecated_frame_chain(),
3324 set_gdbarch_deprecated_frame_saved_pc(),
3325 set_gdbarch_deprecated_frame_init_saved_regs(),
3326 set_gdbarch_deprecated_get_saved_register(),
3327 set_gdbarch_deprecated_call_dummy_words(),
3328 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3329 set_gdbarch_deprecated_init_extra_frame_info(),
3330 set_gdbarch_deprecated_frame_args_address(),
3331 set_gdbarch_deprecated_frame_locals_address(),
3332 and set_gdbarch_deprecated_dummy_write_sp().
3333 Add set_gdbarch_convert_register_p(),
3334 set_gdbarch_register_to_value(),
3335 set_gdbarch_value_to_register(),
3336 set_gdbarch_push_dummy_call(),
3337 set_gdbarch_frame_align(),
3338 set_gdbarch_unwind_dummy_id(),
3339 set_gdbarch_unwind_pc(),
3340 frame_unwind_append_sniffer(),
3341 frame_unwind_append_sniffer(),
3342 and frame_base_set_default().
3343
3344 2003-08-25 Chris Demetriou <cgd@broadcom.com>
3345
3346 * configure.tgt: Document need for special "mipsisa64" handling.
3347 (mipsisa64*-*-linux64): Handle as target linux64.
3348 (mipsisa64*-*-*): Handle as target embed64.
3349
3350 2003-08-18 Michael Chastain <mec@shout.net>
3351
3352 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3353 objfile bug.
3354
3355 2003-08-24 Mark Kettenis <kettenis@gnu.org>
3356
3357 * i387-tdep.h: Update copyright date.
3358 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3359
3360 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3361 CFLAGS games to reflect reality.
3362
3363 2003-08-24 Andrew Cagney <cagney@redhat.com>
3364
3365 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3366 GDB_MULTI_ARCH is always non-zero.
3367 * osabi.c (_initialize_gdb_osabi): Ditto.
3368 (gdbarch_init_osabi): Ditto.
3369 * sparc-tdep.c: Ditto for #if code.
3370
3371 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3372
3373 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3374 Update comments.
3375 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3376 comments.
3377 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3378 x86_64_supply_fxsave.
3379 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3380 x86_64_supply_fxsave.
3381 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3382 x86_64_supply_fxsave.
3383
3384 2003-08-23 Andreas Jaeger <aj@suse.de>
3385
3386 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3387 i387_supply_fxsave.
3388
3389 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3390
3391 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3392 i387_supply_register.
3393 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3394 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3395 i387_supply_fsave.
3396 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3397 i387_supply_fxsave.
3398 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3399 i387_supply_fsave.
3400 * i386bsd-nat.c (supply_fpregset): Adjust call to
3401 i387_supply_fsave.
3402 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3403 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3404 supply_fpregset.
3405 (store_inferior_registers): Remove extraneous whitespace. Call
3406 i387_fill_fsave instead of fill_fpregset.
3407 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3408 (supply_fpregset): Likewise.
3409 * i386v4-nat.c (supply_fpregset): Adjust call to
3410 i387_supply_fsave.
3411 * i386-interix-nat.c (supply_fpregset): Adjust call to
3412 i387_supply_fsave.
3413 * i386-linux-nat.c (supply_fpregset): Adjust call to
3414 i387_supply_fsave.
3415 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3416 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3417 i387supply_fsave and i387_supply_fxsave.
3418 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3419 Incorporate code from `i387_supply_register.
3420 (i387_supply_register): Remove.
3421 (i387_supply_fxsave): Add `regnum' argument.
3422 Update comments.
3423 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3424 prototype.
3425 (i387_supply_register): remove prototype.
3426 Update comments.
3427
3428 2003-08-22 Michael Chastain <mec@shout.net>
3429
3430 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3431 Add lines for files in gdb/testsuite/gdb.cp/* that are
3432 still not 8.3 unique.
3433
3434 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
3435
3436 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3437 TYPE_VPTR_FIELDNO is valid.
3438
3439 2003-08-19 Mark Kettenis <kettenis@gnu.org>
3440
3441 * utils.c (set_width_command): Remove prototypes.
3442 (set_screen_size): New prototype.
3443 (init_page_info): Simplify by fetching the screen size from
3444 Readline. Call set_screen_size.
3445 (set_screen_size): New function.
3446 (set_width): Add missing whitespace in comment.
3447 (set_width_command): Call set_screen_size.
3448 (set_height_command): New function.
3449 (initialize_utils): Fix formatting. Make "set height" command
3450 call set_height_command. Remove redundant code that turns off
3451 pagination if output isn't a terminal. Remove redundant call to
3452 set_width_command.
3453
3454 2003-08-22 Mark Kettenis <kettenis@gnu.org>
3455
3456 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3457 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3458 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3459 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3460 `case' keyword.
3461 (sparc64_register_info): Give the reister with number
3462 SPARC64_STATE_REGNUM a name.
3463 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3464 %asi and %ccr.
3465 (sparc64_push_dummy_call): Take BIAS into account when checking
3466 stcak alignment.
3467 (sparc_software_single_step): Remove assertions that check whether
3468 NPC and NNPC were zero.
3469 (sparc_supply_rwindow): Make public. Merge functionality with
3470 sparc64_supply_rwindow.
3471 (sparc_fill_rwindow): Make public. Merge functionality with
3472 sparc64_fill_rwindow.
3473 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3474 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3475 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3476 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3477 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3478
3479 * reggroups.c: Add whitespace after declarations of local
3480 variables in functions.
3481
3482 2003-08-21 Michael Chastain <mec@shout.net>
3483
3484 * gdbtypes.h: Change array bound type from an int to enum.
3485
3486 2003-08-21 Andrew Cagney <cagney@redhat.com>
3487
3488 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3489 * config/sparc/tm-sparc.h: Ditto.
3490 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3491 unconditionally.
3492 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3493
3494 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3495
3496 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3497 (register_objfile_data, set_objfile_data, objfile_data): New
3498 prototypes.
3499 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3500 prototypes.
3501 (allocate_objfile): Call objfile_alloc_data.
3502 (free_objfile): Call objfile_free_data.
3503 (struct objfile_data): New.
3504 (struct objfile_data_registration): New.
3505 (struct objfile_data_registry): New.
3506 (objfile_data_registry): New variable.
3507 (register_objfile_data): New function.
3508 (objfile_alloc_data, objfile_free_data): New functions.
3509 (set_objfile_data, objfile_data): New functions.
3510 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3511 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3512 (_initialize_dwarf2_frame): New function and prototype.
3513
3514 2003-08-21 Andrew Cagney <cagney@redhat.com>
3515
3516 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3517 a specific architecture.
3518 * arch-utils.h (set_architecture_from_arch_mach): Delete
3519 declaration.
3520 (target_architecture_hook): Delete declaration.
3521 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3522 (default_float_format): Assume GDB_MULTI_ARCH.
3523 (default_double_format): Assume GDB_MULTI_ARCH.
3524 (set_endian_from_file): Delete function.
3525 (arch_ok): Delete function.
3526 (set_arch): Delete function.
3527 (set_architecture_from_arch_mach): Delete function.
3528 (set_architecture_from_file): Delete function.
3529 (set_architecture): Assume GDB_MULTI_ARCH.
3530 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3531
3532 2003-08-21 Mark Kettenis <kettenis@gnu.org>
3533
3534 Rewrite FreeBSD/sparc64 native configuration.
3535 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3536 * sparc64fbsd-nat.c: New file.
3537 * sparc64fbsd-tdep.c: New file.
3538 * sparc64-tdep.c sparc64-tdep.h: New files.
3539 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3540 sparc64fbsd-tdep.o): New dependencies.
3541 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3542 and sparc64fbsd-tdep.c.
3543 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3544 * config/sparc/fbsd.mh: Remove copyright notice.
3545 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3546 sparcbsd-nat.o.
3547 * config/sparc/fbsd.mt: Remove copyright notice.
3548 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3549 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3550 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3551 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3552 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3553 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3554 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3555 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3556 "sparc/tm-sp64.h".
3557 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3558 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3559
3560 2003-08-21 Michael Chastain <mec@shout.net>
3561
3562 * symtab.h: Add doco on the space critical structures and
3563 some measurements of space usage.
3564
3565 2003-08-21 Michael Snyder <msnyder@redhat.com>
3566
3567 * tracepoint.c (trace_dump_command): Trace break address
3568 is subject to DECR_PC_AFTER_BREAK.
3569 (set_traceframe_context): Make "trace_line" an int.
3570 Fixes suggested by Mark Newman <mark.newman@lmco.com>
3571
3572 2003-08-20 Michael Snyder <msnyder@redhat.com>
3573
3574 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
3575 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3576 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
3577 argument passing.
3578 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
3579 functions, replace sh_push_dummy_call.
3580 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3581
3582 2003-08-20 Michael Chastain <mec@shout.net>
3583
3584 * gdbtypes.h (struct main_type): Rearrange to save space.
3585
3586 2003-08-20 Michael Snyder <msnyder@redhat.com>
3587
3588 * trad-frame.c: Comment typo fix.
3589
3590 2003-08-20 Michael Snyder <msnyder@redhat.com>
3591 Kevin Buettner <kevinb@redhat.com>
3592
3593 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3594 (frv_frame_init_saved_regs): Add declaration.
3595 (frame_extra_info): Add new field ``saved_regs''.
3596 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3597 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3598 Update frame related code.
3599 (frv_extract_struct_value_address): Adjust formatting.
3600 * Makefile.in (frv-tdep.o): Update dependencies.
3601 * config/frv/tm-frv.h (target_insert_watchpoint)
3602 (target_remove_watchpoint, target_insert_hw_breakpoint)
3603 (target_remove_hw_breakpoint): Delete these macros.
3604 (remote_insert_watchpoint, remote_remove_watchpoint)
3605 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3606 these declarations.
3607
3608 2003-08-20 Michael Chastain <mec@shout.net>
3609
3610 * defs.h (ENUM_BITFIELD): New macro.
3611 * symtab.h (ENUM_BITFIELD): Use it.
3612 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3613
3614 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3615
3616 * MAINTAINERS (write after approval): Add myself.
3617
3618 2003-08-18 Andrew Cagney <cagney@redhat.com>
3619
3620 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3621 * gdbarch.h, gdbarch.c: Re-generate.
3622 * infcall.c (call_function_by_hand): Adjust the SP by
3623 frame_red_zone_size before allocating any stack space.
3624 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3625 * x86-64-tdep.c (x86_64_frame_align): New function.
3626 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3627
3628 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3629 Remove code adjusting SP so that it skips over the Red Zone.
3630
3631 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3632
3633 * NEWS (New native configurations): Mention FreeBSD/amd64.
3634
3635 2003-08-18 Andrew Cagney <cagney@redhat.com>
3636
3637 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3638 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3639 "m68k_frame_p".
3640 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3641
3642 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3643
3644 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3645
3646 2003-08-18 Michal Ludvig <mludvig@suse.cz>
3647
3648 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3649 Define.
3650 * i386-linux-nat.c: Include "linux-nat.h".
3651 (child_post_startup_inferior): New function.
3652
3653 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3654
3655 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3656 at the start of a frameless function. This probably fixes PR
3657 backtrace/1338.
3658
3659 2003-08-17 Michael Chastain <mec@shout.net>
3660
3661 * symfile.c (find_sym_fns): Remove special case for apollo target.
3662
3663 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3664
3665 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3666 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3667 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3668 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3669 (linux_supports_tracevforkdone): New function.
3670 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3671 TRACEVFORKDONE.
3672 (child_follow_fork): Handle vfork.
3673 (linux_handle_extended_wait): Likewise. Also handle exec.
3674 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3675 * NEWS: Mention fork tracing.
3676
3677 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3678
3679 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3680
3681 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3682
3683 * Makefile.in (i386-linux-nat.o): Update dependencies.
3684 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3685 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3686 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3687 * i386-linux-nat.c: Include "linux-nat.h".
3688 (child_post_startup_inferior): New function.
3689 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3690 * infptrace.c (kill_inferior): Wrap in #ifdef.
3691 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3692 attaching to each LWP.
3693 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3694 (init_lin_lwp_ops): Fill in some more operations.
3695 * linux-nat.h (linux_enable_event_reporting)
3696 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3697 prototypes.
3698 * linux-nat.c (linux_enable_event_reporting): New function.
3699 (child_post_attach, linux_child_post_startup_inferior)
3700 (child_post_startup_inferior, child_follow_fork)
3701 (linux_handle_extended_wait, kill_inferior): New functions.
3702
3703 2003-08-16 Andrew Cagney <cagney@redhat.com>
3704
3705 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3706 * gdbarch.h, gdbarch.c: Re-generate.
3707
3708 2003-08-16 Mark Kettenis <kettenis@gnu.org>
3709
3710 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3711
3712 2003-08-16 Andrew Cagney <cagney@redhat.com>
3713
3714 * NEWS: Mention that "set prompt-escape-char" was deleted.
3715 * top.c (get_prompt_1): Delete function.
3716 (gdb_prompt_escape):
3717 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3718 prompt-escape-char" command.
3719 (MAX_PROMPT_SIZE): Delete macro.
3720 (get_prompt): Simplify, do not call get_prompt_1.
3721
3722 2003-08-16 Andrew Cagney <cagney@redhat.com>
3723
3724 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3725 -Werror. -Wformat-nonliteral problems.
3726
3727 2003-08-15 J. Brobecker <brobecker@gnat.com>
3728
3729 Further multiarching work mostly for hppa64-*-hpux11:
3730 * hppa-tdep.h: New file.
3731 * hppa-tdep.c: #include hppa-tdep.c.
3732 (hppa32_num_regs): Renamed from hppa_num_regs.
3733 (hppa64_num_regs): New constant.
3734 (hppa64_call_dummy_breakpoint_offset): New constant.
3735 (hppa32_call_dummy_length): New constant.
3736 (hppa64_call_dummy_length): New constant.
3737 (hppa32_stack_align): Make name 32bit explicit.
3738 (hppa32_register_virtual_type): Likewise.
3739 (hppa32_extract_return_value): Likewise.
3740 (hppa32_use_struct_convention): Likewise.
3741 (hppa32_store_return_value): Likewise.
3742 (hppa64_register_virtual_type): New function.
3743 (hppa64_extract_return_value): New function.
3744 (hppa64_use_struct_convention): New function.
3745 (hppa64_store_return_value): New function.
3746 (hppa_frame_locals_address): Remove declaration, function does
3747 not exist anymore.
3748 (hppa_register_byte): Add support for PA64 ABI.
3749 (hppa_gdbarch_init): Add support for PA64 ABI.
3750 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3751 Make name 32bit explicit.
3752 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3753 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3754 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3755 (hppa64_hpux_frame_base_before_sigtramp): New function.
3756 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3757 * config/pa/tm-hppa64.h: Remove macros that are no longer
3758 necessary now that the gdbarch vector is properly setup.
3759 Transform some macros into function calls. Some minor cleanup.
3760 * config/pa/tm-hppah.h: Update function calls in macros
3761 following the function renaming in hppa-hpux-tdep.c.
3762 * Makefile.in (hppa_tdep_h): New variable.
3763 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3764
3765 2003-08-14 Michael Snyder <msnyder@redhat.com>
3766
3767 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3768
3769 2003-08-13 J. Brobecker <brobecker@gnat.com>
3770
3771 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3772 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3773 routine.
3774
3775 2003-08-13 Michael Snyder <msnyder@redhat.com>
3776
3777 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3778 (frv_saved_pc_after_call): Use deprecated ftype.
3779 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3780 (frv_remote_translate_xfer_address): Remove.
3781 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3782
3783 2003-08-13 J. Brobecker <brobecker@gnat.com>
3784
3785 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3786 initialization after the common gdbarch initialization, not before.
3787
3788 2003-08-13 J. Brobecker <brobecker@gnat.com>
3789
3790 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3791 (ADDR_BITS_REMOVE): Remove, redundant.
3792
3793 2003-08-13 J. Brobecker <brobecker@gnat.com>
3794
3795 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3796 gdbarch method to clear the 2 low bits of text addresses.
3797
3798 2003-08-12 Andrew Cagney <cagney@redhat.com>
3799
3800 * Makefile.in (dsrec.o): Update dependencies.
3801 * dsrec.c: Include "gdb_assert.h".
3802 (make_srec): Use snprintf instead of sprintf, use a literal format
3803 string.
3804
3805 2003-08-12 Andrew Cagney <cagney@redhat.com>
3806
3807 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3808 FRAME_OBSTACK_ZALLOC.
3809
3810 2003-08-12 Kevin Buettner <kevinb@redhat.com>
3811
3812 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3813 SSE registers.
3814
3815 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3816
3817 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3818 amd64fbsd_sc_reg_offset): Add extern declarations.
3819 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3820 declarations.
3821
3822 2003-08-11 Ben Elliston <bje@wasabisystems.com>
3823
3824 * MAINTAINERS (write after approval): Update my mail address.
3825
3826 2003-08-10 Andrew Cagney <cagney@redhat.com>
3827
3828 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3829
3830 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3831
3832 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3833 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3834 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3835 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3836 i386bsd_sc_reg_offset): Add extern declarations.
3837 * i386obsd-nat.c: Include "i386-tdep.h"
3838 (_initialize_i386obsd_nat): Remove extern declarations.
3839 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3840 declarations.
3841 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3842 declarations.
3843
3844 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3845 instead of frame_read_register.
3846 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3847 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3848 SP_REGNUM.
3849 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3850 instead of frame_unwind_unsigned_register. Use
3851 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3852 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3853 instead of read_register. Use builtin_type_void_data_ptr instead
3854 of builtin_type_void_func_ptr when extracting the address of the
3855 jmp_buf.
3856 (i386_extract_return_value, i386_store_return_value,
3857 i386_pseudo_register_read, i386_pseudo_register_write): Use
3858 register_size instead REGISTER_RAW_SIZE.
3859
3860 2003-08-10 Andrew Cagney <cagney@redhat.com>
3861
3862 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3863 sprintf. Make "name" constant.
3864
3865 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3866
3867 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3868 instead of frame_read_register.
3869 (i387_print_float_info): Use get_frame_register and
3870 get_frame_register_unsigned instead of frame_register_read.
3871
3872 * i386fbsd-nat.c: Include "i386-tdep.h".
3873 (child_resume): Make `eflags' an ULONGEST. Use
3874 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3875 instead of register_read and register_write.
3876
3877 * i386bsd-nat.c (fetch_inferior_registers,
3878 store_inferior_registers): Don't use && at the end of a line.
3879 (_initialize_i386bsd_nat): Fix typo.
3880
3881 * frame.c (_initialize_frame): Add missing backslash.
3882
3883 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3884 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3885 and supply_register instead of manipulating the register buffer
3886 directly.
3887
3888 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3889 * config/i386/nm-i386sol2.h
3890 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3891
3892 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3893 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3894 instructions that GCC likes to mingle into the prologue. Fixes
3895 gdb/1253 and gdb/1255.
3896
3897 2003-08-09 Andrew Cagney <cagney@redhat.com>
3898
3899 Fix GDB PR cli/926.
3900 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3901 * command.h (add_setshow_uinteger_cmd): Declare.
3902 * frame.c (set_backtrace_cmd): New function.
3903 (show_backtrace_cmd): New function.
3904 * frame.c (_initialize_frame): Replace "set/show
3905 backtrace-below-main" with "set/show backtrace past-main". Add
3906 command "set/show backtrace limit".
3907 (backtrace_past_main): Rename "backtrace_below_main".
3908 (backtrace_limit): New variable.
3909 (get_prev_frame): Update. Check the backtrace_limit.
3910
3911 2003-08-09 Andrew Cagney <cagney@redhat.com>
3912
3913 * defs.h (xstrprintf): Declare.
3914 * utils.c (xstrprintf): New function.
3915 * breakpoint.c (insert_breakpoints): Replace sprintf and
3916 non-literal format strings, with xstrprintf and cleanups.
3917 (delete_breakpoint,breakpoint_re_set): Ditto.
3918 (commands_command, insert_breakpoints): Ditto.
3919 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3920 (break_at_finish_command_1): Ditto.
3921
3922 2003-08-09 Andrew Cagney <cagney@redhat.com>
3923
3924 * MAINTAINERS (language support): List Adam Fedor as Objective C
3925 maintainer.
3926
3927 2003-08-08 J. Brobecker <brobecker@gnat.com>
3928
3929 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3930 are now multiarched.
3931
3932 2003-08-08 J. Brobecker <brobecker@gnat.com>
3933
3934 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3935 longer necessary now that hppa64 is partially multiarch'ed.
3936
3937 2003-08-08 Andrew Cagney <cagney@redhat.com>
3938
3939 * interps.c (interp_set): Check for a NULL "old_interp".
3940
3941 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3942
3943 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3944 (install-only): Support DESTDIR.
3945 (uninstall): Likewise.
3946 (install-gdbtk): Likewise.
3947
3948 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
3949
3950 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3951 contains something meaningful at all times.
3952
3953 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
3954
3955 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
3956
3957 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3958
3959 * MAINTAINERS (write after approval): Added self.
3960
3961 2003-08-07 Andrew Cagney <cagney@redhat.com>
3962
3963 * inferior.h (AT_SYMBOL): Define.
3964 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3965 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3966 * mips-tdep.c (mips_call_dummy_address): Delete function.
3967 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3968 set call_dummy_address.
3969
3970 2003-08-07 Andrew Cagney <cagney@redhat.com>
3971
3972 * language.c (op_error): Delete function.
3973 (binop_type_check): Delete function.
3974 * language.h (type_op_error, range_op_error): Delete macros.
3975 (op_error): Delete declaration.
3976
3977 2003-08-07 Andrew Cagney <cagney@redhat.com>
3978
3979 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3980
3981 2003-08-07 Michal Ludvig <mludvig@suse.cz>
3982
3983 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
3984 (x86_64_push_arguments): Skip the red zone.
3985
3986 2003-08-05 Andrew Cagney <cagney@redhat.com>
3987
3988 * reggroups.c (reggroup_next): Check for the final entry.
3989
3990 2003-08-04 Andrew Cagney <cagney@redhat.com>
3991
3992 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3993 * cli/cli-script.c (define_command): Call query directly, instead
3994 of passing it a buffer.
3995 * ocd.c (ocd_error): Pass error a constant format string.
3996 * remote-mips.c (mips_error): Use fputs_filtered.
3997
3998 * solib-svr4.c (_initialize_svr4_solib): Update
3999 register_gdbarch_data call.
4000 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4001
4002 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4003 (register_gdbarch_data): Delete "free" parameter. Update
4004 comments.
4005 * gdbarch.h, gdbarch.c: Re-generate.
4006 * reggroups.c (_initialize_reggroup): Update.
4007 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4008 * frame-base.c (_initialize_frame_base): Update.
4009 * frame-unwind.c (_initialize_frame_unwind): Update.
4010 * user-regs.c (_initialize_user_regs): Update.
4011 * remote.c (_initialize_remote): Update.
4012 * regcache.c (_initialize_regcache): Update.
4013
4014 * regcache.c (xfree_regcache_descr): Delete function.
4015 (_initialize_regcache): Update call to register_gdbarch_data.
4016 (init_regcache_descr, init_legacy_regcache_descr): Use
4017 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4018
4019 * remote.c (free_remote_state): Delete function.
4020 (_initialize_remote): Update register_gdbarch_data.
4021 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4022 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4023
4024 2003-08-04 Andrew Cagney <cagney@redhat.com>
4025
4026 * reggroups.c (struct reggroup_el): Define.
4027 (struct reggroups): Delete field "nr_group". Replace array
4028 "group" with a "first" to "last" linked list.
4029 (reggroups_init): Update. Allocate using gdbarch's obstack.
4030 (reggroups_free): Delete function.
4031 (add_group): Update. Add "el" parameter.
4032 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4033 (default_groups): Update.
4034 (reggroup_next): Replace reggroups.
4035 (reggroups_dump): Update.
4036 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4037 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4038 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4039
4040 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
4041
4042 * Makefile.in (tui-interp.o): Update dependencies.
4043
4044 2003-08-04 David Carlton <carlton@kealia.com>
4045
4046 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4047 to internal_error call.
4048 * source.c (forward_search_command): Add "%s" format argument.
4049 (reverse_search_command): Ditto.
4050 * top.c (quit_confirm): Ditto.
4051 * cli/cli-setshow.c (do_setshow_command): Ditto.
4052 * cp-valprint.c (cp_print_class_method): Replace
4053 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4054 (cp_print_class_member): Ditto.
4055 * event-top.c (command_line_handler): Ditto.
4056 * linux-proc.c (linux_info_proc_cmd): Ditto.
4057 * p-typeprint.c (pascal_type_print_base): Ditto.
4058 * p-valprint.c (pascal_object_print_class_method): Ditto.
4059 (pascal_object_print_class_member): Ditto.
4060 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4061 * remote.c (remote_cisco_section_offsets): Ditto.
4062 * top.c (command_line_input): Ditto.
4063 * utils.c (vwarning,error_stream,quit): Ditto.
4064 * valprint.c (print_floating,print_binary_chars)
4065 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4066
4067 2003-08-04 Andrew Cagney <cagney@redhat.com>
4068
4069 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4070
4071 2003-08-02 Andrew Cagney <cagney@redhat.com>
4072
4073 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4074 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4075 amd64fbsd-nat.c.
4076
4077 2003-08-02 Andrew Cagney <cagney@redhat.com>
4078
4079 * Makefile.in: Update all dependencies and definitions.
4080
4081 2003-08-02 Adam Fedor <fedor@gnu.org>
4082
4083 * linespec.c (is_objc_method_format): New function
4084 (decode_line_1, locate_first_half): Use it.
4085 Fixes PR objc/1298
4086
4087 2003-08-01 Andrew Cagney <cagney@redhat.com>
4088
4089 * NEWS: Mention that m32r is multi-arch.
4090 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4091 * configure.tgt: Recognize m32r-*-*.
4092 * config/m32r/tm-m32r.h: Delete file.
4093 * config/m32r/m32r.mt: New file.
4094 * m32r-rom.c (m32r_upload_command): Use hostent only when
4095 gethostname succeeds, in order to avoid a compilation
4096 warning.
4097 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4098 compiler warning.
4099
4100 2003-08-01 Michael Snyder <msnyder@redhat.com>
4101
4102 * sh-tdep.c (sh_frame_align): New gdbarch method.
4103 (sh_gdbarch_init): Set up frame_align method.
4104
4105 2003-07-31 Michael Snyder <msnyder@redhat.com>
4106
4107 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4108 which is already covered by the new frames infrastructure.
4109
4110 2003-07-31 Andrew Cagney <cagney@redhat.com>
4111
4112 * user-regs.c (struct user_reg): Add "next" link.
4113 (struct user_regs): Replace "user" with "first" and "last" links.
4114 (append_user_reg): Add pre-allocated "reg" parameter.
4115 (builtin_user_regs): Provide initial value for "last".
4116 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4117 (user_regs_init): Allocate memory from the gdbarch obstack.
4118 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4119 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4120 linked list.
4121 (usernum_to_user_reg): New function.
4122 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4123 (value_of_user_reg): Use usernum_to_user_reg.
4124 (user_regs_free): Delete function.
4125 (_initialize_user_regs): Update register_gdbarch_data call.
4126
4127 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
4128
4129 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4130
4131 2003-07-30 Michael Snyder <msnyder@redhat.com>
4132
4133 * value.h (value_being_returned): Add a struct_addr argument.
4134 * infcall.c (call_function_by_hand): Pass struct_addr to
4135 value_being_returned.
4136 * infcmd.c (print_return_value): Pass zero as struct_addr.
4137 * values.c (value_being_returned): If struct_addr is passed,
4138 use it instead of trying to recover it from the inferior.
4139
4140 2003-07-30 Kevin Buettner <kevinb@redhat.com>
4141
4142 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4143 the prologue analyzer won't need to attempt to extract the pc
4144 value from the woefully incomplete dummy frame.
4145 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4146 possible. Disable code which modifies the frame.
4147
4148 2003-07-28 Andrew Cagney <cagney@redhat.com>
4149
4150 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4151 to level 2.
4152 (annotate_breakpoints_table, annotate_record): Ditto.
4153 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4154 (annotate_field_name_end, annotate_field_value): Ditto.
4155 (annotate_field_end, annotate_frame_source_begin): Ditto.
4156 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4157 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4158 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4159 (annotate_frame_address_end, annotate_frame_address): Ditto.
4160 (annotate_frame_args, annotate_frame_end): Ditto.
4161 (annotate_frame_where, annotate_arg_begin): Ditto.
4162 (annotate_arg_name_end, annotate_arg_value): Ditto.
4163 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4164 (annotate_function_call, annotate_signal_name): Ditto.
4165 (annotate_signal_string, annotate_signal_name_end): Ditto.
4166 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4167 (annotate_value_begin, annotate_value_history_value): Ditto.
4168 (annotate_value_history_end, annotate_value_end): Ditto.
4169 (annotate_display_begin, annotate_display_number_end): Ditto.
4170 (annotate_display_format, annotate_display_expression): Ditto.
4171 (annotate_display_expression_end, annotate_display_value): Ditto.
4172 (annotate_display_end, annotate_array_section_begin): Ditto.
4173 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4174 (annotate_elt, annotate_array_section_end): Ditto.
4175
4176 2003-07-28 Andrew Cagney <cagney@redhat.com>
4177
4178 * regcache.c (struct regcache_descr): Update comments on
4179 nr_raw_registers.
4180 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4181 sizeof_raw_register_valid_p.
4182 (init_regcache_descr): Set nr_raw_registers and
4183 sizeof_raw_register_valid_p before calling
4184 init_legacy_regcache_descr.
4185
4186 2003-07-28 Andrew Cagney <cagney@redhat.com>
4187
4188 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4189 MOD NUM_REGS.
4190
4191 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
4192
4193 * thread.c (info_threads_command): Use get_selected_frame ().
4194 Check that there is at least one non-sentinel frame.
4195
4196 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4197
4198 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4199 (m68hc11_pop_frame): Remove.
4200 (m68hc11_frame_saved_pc): Remove.
4201 (m68hc11_frame_chain): Remove.
4202 (m68hc11_frame_init_saved_regs): Remove.
4203 (m68hc11_init_extra_frame_info): Remove.
4204 (m68hc11_store_struct_return): Remove.
4205 (m68hc11_saved_pc_after_call): Remove.
4206
4207 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4208
4209 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4210 frame unwind information.
4211 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4212 and adapted for frame unwinding.
4213 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4214 (m68hc11_unwind_pc): New function.
4215 (m68hc11_frame_unwind_cache): New function to analyze frames.
4216 (m68hc11_frame_this_id): New function to create new frame struct.
4217 (m68hc11_frame_prev_register): New function to unwind a register from
4218 the frame.
4219 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4220 (m68hc11_frame_p): New function for the above.
4221 (m68hc11_frame_base_address): New function to return fp of frame.
4222 (m68hc11_frame_args_address): Update for frame.
4223 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4224 (m68hc11_unwind_sp): New function.
4225 (m68hc11_unwind_dummy_id): New function.
4226 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4227 calls.
4228
4229 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4230
4231 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4232 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4233 when we are beyond the current pc.
4234
4235 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4236
4237 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4238 from m68hc11_push_arguments.
4239 (m68hc11_push_arguments): Remove.
4240 (m68hc11_push_return_address): Remove.
4241 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4242 handlers; remove deprecated_extra_stack_alignment_needed.
4243
4244 2003-07-27 Andrew Cagney <cagney@redhat.com>
4245
4246 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4247 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4248 REAL_PC and not the pointer.
4249 * hppa-hpux-tdep.c: Include frame.h
4250
4251 2003-07-27 Andrew Cagney <cagney@redhat.com>
4252
4253 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4254 GDB_MULTI_ACH_PARTIAL.
4255
4256 2003-07-27 Andrew Cagney <cagney@redhat.com>
4257
4258 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4259 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4260 operator at start and not end of line.
4261 (decode_prologue): Ditto.
4262 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4263 frame_unwind_register_unsigned instead of
4264 frame_unwind_unsigned_register.
4265 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4266 read_register.
4267 (m32r_push_dummy_call): Use register_size instead of
4268 REGISTER_RAW_SIZE.
4269 (m32r_frame_sniffer): Replace m32r_frame_p.
4270 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4271 * m32r-rom.c (report_transfer_performance): Delete extern
4272 declaration.
4273 (m32r_load, m32r_upload_command): Use print_transfer_performance
4274 instead of report_transfer_performance.
4275 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4276 / add_show_from_set.
4277
4278 2003-07-26 Andrew Cagney <cagney@redhat.com>
4279
4280 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4281 store_return_value and extract_struct_value_address.
4282
4283 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
4284
4285 PR c++/1267
4286 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4287 NULL, default to the section containing PC.
4288
4289 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4290
4291 * NEWS: Mention "regs" deprecated for m68hc11 too.
4292
4293 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4294 (m68hc11_print_register): New function to print out one register.
4295 (m68hc11_print_registers_info): New function to print registers.
4296 (show_regs): Deprecate and use the above.
4297 (m68hc11_gdbarch_init): Install the print_registers_info.
4298
4299 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4300
4301 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4302 that we have a SIGTRAP before returning non-zero.
4303
4304 2003-07-23 Michal Ludvig <mludvig@suse.cz>
4305 Elena Zannoni <ezannoni@redhat.com>
4306
4307 * linespec.c (decode_line_2): Avoid crash if
4308 find_function_start_sal() returns empty record.
4309
4310 2003-07-23 Andreas Schwab <schwab@suse.de>
4311
4312 * ia64-tdep.c (ia64_print_insn): New function.
4313 (ia64_gdbarch_init): Set print_insn to it.
4314 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4315 deprecated_tm_print_insn_info.
4316
4317 2003-07-22 Michael Snyder <msnyder@redhat.com>
4318
4319 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4320 handle 8-bit returns (long long).
4321 (h8300h_extract_return_value): Ditto.
4322 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4323
4324 2003-07-22 Andrew Cagney <cagney@redhat.com>
4325
4326 * gdbarch.c Include "gdb_obstack.h".
4327 (struct gdbarch): Add an "obstack".
4328 (alloc_gdbarch_data): Allocate the gdbarch data using
4329 GDBARCH_OBSTACK_CALLOC.
4330 (free_gdbarch_data): Delete function.
4331 (gdbarch_obstack_zalloc): New function.
4332 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4333 Assert that the architecture is not initialized.
4334 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4335 vector from the obstack.
4336 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4337 architecture obstack.
4338 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4339 (set_gdbarch_data): Assert that the data is not initialized.
4340 (struct gdbarch_data): Delete member "free".
4341 (register_gdbarch_data): Do not initialize "free".
4342 * gdbarch.h, gdbarch.c: Re-generate.
4343
4344 2003-07-22 Andrew Cagney <cagney@redhat.com>
4345
4346 * configure.in (build_warnings): Add -Wformat-nonliteral.
4347 * configure: Re-generate.
4348
4349 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4350
4351 * dwarf2loc.c (locexpr_describe_location): Fix typos.
4352
4353 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4354
4355 * findvar.c (read_var_value): Remove case for thread local storage
4356 variables. It is now entirely handled by the dwarf2 location
4357 expression code.
4358 * printcmd.c (address_info): Ditto.
4359 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4360 enumeration value.
4361 (struct symbol): Remove objfile field, which was used by
4362 LOC_THREAD_LOCAL_STATIC only.
4363 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4364 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4365 usage of objfile pointer.
4366 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4367 thread local variables.
4368 Add include of objfiles.h.
4369 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4370 storage variables.
4371 * Makefile.in (dwarf2loc.o): Update dependencies.
4372
4373 2003-07-22 Andrew Cagney <cagney@redhat.com>
4374
4375 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4376 get_frame_base.
4377 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4378 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4379 (struct value): Add opaque declaration.
4380 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4381
4382 2003-07-21 Andrew Cagney <cagney@redhat.com>
4383
4384 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4385 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4386
4387 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4388
4389 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4390 regcache_cooked_read_unsigned instead of read_register.
4391 (m68hc11_saved_pc_after_call): Likewise.
4392 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4393 instead of write_register.
4394 (m68hc11_register_type): New function.
4395 (m68hc11_register_virtual_type): Remove.
4396 (m68hc11_store_return_value): Convert to use the regcache.
4397 (m68hc11_extract_struct_value_address): Likewise.
4398 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4399 m68hc11_register_type; undeprecate store_return_value and
4400 extract_struct_value_address.
4401
4402 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4403
4404 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4405 and translate to use regcache.
4406 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4407
4408 2003-07-18 Andrew Cagney <cagney@redhat.com>
4409
4410 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4411 * gdbarch.h, gdbarch.c: Re-generate.
4412 * i386-tdep.c (i386_gdbarch_init): Do not set
4413 DWARF2_BUILD_FRAME_INFO.
4414 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4415 unconditionally.
4416 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4417 DWARF2_BUILD_FRAME_INFO.
4418
4419 2003-07-18 Andrew Cagney <cagney@redhat.com>
4420
4421 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4422 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4423
4424 2003-07-18 Andrew Cagney <cagney@redhat.com>
4425
4426 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4427 frame_unwind_address_in_block, instead of frame_pc_unwind.
4428 (dwarf2_frame_cache): Ditto.
4429
4430 2003-07-18 Andrew Cagney <cagney@redhat.com>
4431
4432 * user-regs.h (struct gdbarch): Declare opaque.
4433 * ui-out.h (struct ui_file): Declare opaque.
4434 * dwarf2-frame.h (struct frame_info): Declare opaque.
4435
4436 2003-07-18 Kris Warkentin <kewarken@qnx.com>
4437
4438 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4439 #include "...".
4440 (procfs_meminfo): Change strerror to safe_strerror.
4441 (procfs_can_run): Remove K&R badness.
4442
4443 2003-07-17 Michael Snyder <msnyder@redhat.com>
4444
4445 * remote-sim.c: Comment typo fix.
4446
4447 2003-07-17 Andrew Cagney <cagney@redhat.com>
4448
4449 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4450 configure.
4451 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4452 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4453 GDB_MULTI_ARCH_PARTIAL.
4454
4455 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
4456
4457 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4458 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4459 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4460
4461 2003-07-16 Theodore A. Roth <troth@openavr.org>
4462
4463 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4464 found.
4465 (avr_frame_unwind_cache): Don't unwind FP for main.
4466 Update a comment.
4467 Save the computed prev_sp.
4468 (avr_saved_regs_unwinder): Remove function.
4469 (avr_frame_prev_register): Use PC unwind logic from
4470 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4471
4472 2003-07-16 Andrew Cagney <cagney@redhat.com>
4473
4474 * frame-base.h (frame_base_p_ftype): Delete definition.
4475 (frame_base_append_predicate): Delete declaration.
4476 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4477 (frame_unwind_append_predicate): Delete declaration.
4478 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4479 (append_predicate): Delete parameter "p".
4480 (frame_unwind_append_predicate): Delete function.
4481 (frame_unwind_append_sniffer): Update call to append_predicate.
4482 (frame_unwind_free): Delete function.
4483 (_initialize_frame_unwind): Pass NULL as "free" to
4484 register_gdbarch_data.
4485 (frame_unwind_init): Append the dummy_frame_sniffer.
4486 (frame_unwind_find_by_frame): Simplify.
4487 * frame-base.c (struct frame_base_table): Delete field "p".
4488 (append_predicate): Delete parameter "p".
4489 (frame_base_append_predicate): Delete function.
4490 (frame_base_append_sniffer): Update call to append_predicate.
4491 (frame_base_free): Delete function.
4492 (frame_base_find_by_frame): Simplify.
4493 (_initialize_frame_base): Pass NULL as "free" to
4494 register_gdbarch_data.
4495 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4496 (x86_64_sigtramp_frame_sniffer): Replace
4497 "x86_64_sigtramp_frame_p".
4498 (x86_64_init_abi): Set the frame unwind sniffers.
4499 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4500 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4501 (m68k_gdbarch_init): Set the frame unwind sniffers.
4502 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4503 "i386_sigtramp_frame_p".
4504 (i386_frame_sniffer): Replace "i386_frame_p".
4505 (i386_gdbarch_init): Set the frame unwind sniffers.
4506 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4507 (avr_gdbarch_init): Set the frame unwind sniffers.
4508 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4509 "alpha_sigtramp_frame_p"
4510 (alpha_heuristic_frame_sniffer): Replace
4511 "alpha_heuristic_frame_p".
4512 (alpha_gdbarch_init): Set the frame unwind sniffers.
4513 (alpha_dwarf2_init_abi): Ditto.
4514 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4515 "alpha_debug_frame_p".
4516 (alpha_mdebug_frame_base_sniffer): Replace
4517 "alpha_mdebug_frame_base_p".
4518 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4519 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4520 (d10v_gdbarch_init): Set the frame unwind sniffer.
4521 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4522 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4523 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4524 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4525 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4526 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4527
4528 2003-07-16 Michael Snyder <msnyder@redhat.com>
4529
4530 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4531 should go thru sh_dsp_register_sim_regno, else the dsp regs
4532 will not get the right values.
4533
4534 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4535
4536 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4537 deprecated_store_floating by call to store_typed_floating.
4538 (sh_sh4_register_convert_to_raw): Substitute call to
4539 deprecated_extract_floating by call to extract_typed_floating.
4540
4541 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4542
4543 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4544
4545 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4546
4547 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4548 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4549 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4550 as possible.
4551 (do_pseudo_register): Remove.
4552 (sh_push_dummy_code): New function.
4553 (sh64_store_struct_return): Rename from sh_store_struct_return.
4554 Only called for sh64 now.
4555 (sh_extract_struct_value_address): Regcache'ify.
4556 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4557 and accomodate new tasks.
4558 (sh64_push_return_address): Rename from sh_push_return_address.
4559 Only called for sh64 now.
4560 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4561 Regcache'ify.
4562 (sh3e_sh4_extract_return_value): Regcache'ify.
4563 (sh_default_store_return_value): Ditto.
4564 (sh3e_sh4_store_return_value): Ditto.
4565 (sh_default_register_byte): Remove.
4566 (sh_sh4_register_byte): Remove.
4567 (sh_default_register_raw_size): Remove.
4568 (sh_sh4_register_raw_size): Remove.
4569 (sh_register_virtual_size): Remove.
4570 (sh_sh3e_register_virtual_type): Remove.
4571 (sh_sh3e_register_type): New function.
4572 (sh_sh4_register_virtual_type): Remove.
4573 (sh_sh4_register_type): New function.
4574 (sh_default_register_virtual_type): Remove.
4575 (sh_default_register_type): New function.
4576 (do_fv_register_info): Add parameters to accomodate call from
4577 sh_print_registers_info.
4578 (do_dr_register_info): Ditto.
4579 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4580 Add parameters to accomodate call from sh_print_registers_info.
4581 (sh_do_fp_register): Ditto.
4582 (sh64_do_pseudo_register): Call do_dr_register_info,
4583 do_fv_register_info and sh_do_fp_register with default parameters.
4584 (sh_do_register): Add parameters to accomodate call from
4585 sh_print_registers_info.
4586 (sh_print_register): Ditto.
4587 (sh_print_registers_info): Rename from sh_do_registers_info.
4588 Add parameters to be used as gdbarch_print_registers_info
4589 implementation. Accomodate removed do_pseudo_register function
4590 pointer.
4591 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4592 function pointer. Call sh_print_register with default parameters.
4593 (sh64_do_registers_info): Call sh_print_registers_info instead of
4594 sh_do_registers_info.
4595 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4596 detection of deprecated vs. non-deprecated functionality.
4597 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4598 function pointer assignments by direct function calls.
4599
4600 2003-07-15 Andrew Cagney <cagney@redhat.com>
4601
4602 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4603 (frame_register_unwind, create_new_frame): Ditto.
4604 (legacy_get_prev_frame, get_frame_type): Ditto.
4605 (get_frame_base_address): Use frame_base_find_by_frame.
4606 (get_frame_locals_address): Use frame_base_find_by_frame.
4607 (get_frame_args_address): Use frame_base_find_by_frame.
4608 * frame-base.h (frame_base_sniffer_ftype): Declare.
4609 (frame_base_append_sniffer): Declare.
4610 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4611 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4612 (frame_base_append_sniffer): New function.
4613 (frame_base_append_predicate): Add a NULL sniffer.
4614 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4615 (struct frame_base_table): Add "sniffer".
4616 (frame_base_free): Free the "sniffer" table.
4617 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4618 (frame_unwind_append_sniffer): Declare.
4619 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4620 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4621 (struct frame_unwind_table): Add "sniffer", delete "middle".
4622 (append_predicate): Add "sniffer" parameter, append the sniffer.
4623 (frame_unwind_init): Update append_predicate call.
4624 (frame_unwind_append_sniffer): New function.
4625 (frame_unwind_append_predicate): Update append_predicate call.
4626 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4627
4628 2003-07-15 Andrew Cagney <cagney@redhat.com>
4629
4630 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4631 before code inhibiting repeated unwind attempts. Add to
4632 commentary on that test's problems.
4633 * blockframe.c (inside_main_func): Look for "main" in the minimal
4634 symbol table.
4635 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4636 identical.
4637
4638 2003-07-15 Andrew Cagney <cagney@redhat.com>
4639
4640 * complaints.c (struct explanation): Define.
4641 (struct complaints): Change type of "explanation" to "struct
4642 explanation".
4643 (symfile_explanations): Convert to a "struct explanation" table.
4644 (vcomplaint): Update.
4645
4646 2003-07-15 Michal Ludvig <mludvig@suse.cz>
4647
4648 * x86-64-linux-nat.c (regmap): Removed.
4649 (supply_gregset, fill_gregset): Call
4650 x86_64_linux_(fill,supply)_gregset functions.
4651 * x86-64-linux-tdep.c (USER_*): New defines.
4652 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4653 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4654 New functions.
4655 (fetch_core_registers): Ditto.
4656 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4657 * x86-64-linux-tdep.h: New file.
4658 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4659 and core-regset.o.
4660 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4661
4662 2003-07-13 Mark Kettenis <kettenis@gnu.org>
4663
4664 * x86-64-tdep.c (x86_64_store_return_value): Use
4665 regcache_cooked_write_part instead of regcache_cooked_write.
4666
4667 * configure.host: Add x86_64-*-freebsd*.
4668 * configure.tgt: Add x86_64-*-freebsd*.
4669 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4670 * amd64fbsd-nat.c: New file.
4671 * amd64fbsd-tdep.c: New file.
4672 * config/i386/nm-fbsd64.h: New file.
4673 * config/i386/fbsd64.mh: New file.
4674 * config/i386/fbsd64.mt: New file.
4675
4676 2003-07-11 Mark Kettenis <kettenis@gnu.org>
4677
4678 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4679 `sc_regs_offset' and `sc_fpregs_offset'.
4680 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4681 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4682 (alpha_sigtramp_register_address): Rewrite to use new members of
4683 `struct gdbarch_tdep'.
4684 (alpha_gdbarch_init): Initialize new members of struct
4685 gdbarch_tdep'.
4686 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4687 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4688 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4689 (alphafbsd_pc_in_sigtramp): Implement.
4690 (alphafbsd_sigtramp_offset): New function.
4691 (alphafbsd_sigcontext_addr): New function.
4692 (alphafbsd_init_abi): Initialize signal trampoline related members
4693 of `struct gdbarch_tdep'.
4694 (_initialize_alphafbsd_tdep): Add prototype.
4695
4696 2003-07-11 Theodore A. Roth <troth@openavr.org>
4697
4698 * Makefile.in (install-only): Quote sed expression when generating
4699 transformed_name.
4700
4701 2003-07-11 Richard Henderson <rth@redhat.com>
4702
4703 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4704 * dwarf2-frame.c: Include complaints.h.
4705 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4706 variable initialization; return NULL on error.
4707 (decode_frame_entry): New.
4708
4709 2003-07-11 Andrew Cagney <cagney@redhat.com>
4710
4711 * frame.h (frame_address_in_block): Delete declaration.
4712 * blockframe.c (frame_address_in_block): Delete function.
4713 (get_frame_block): Use get_frame_address_in_block.
4714 (block_innermost_frame): Ditto.
4715 * stack.c (print_frame, backtrace_command_1): Ditto.
4716
4717 * frame.h (get_frame_address_in_block): Declare.
4718 (frame_unwind_address_in_block): Declare.
4719 * frame.c (frame_unwind_address_in_block): New function.
4720 (get_frame_address_in_block): New function.
4721
4722 2003-07-10 Andrew Cagney <cagney@redhat.com>
4723
4724 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4725 pre-default. Note: re-generate has no effect.
4726
4727 2003-07-10 Andrew Cagney <cagney@redhat.com>
4728
4729 * gdbarch.sh: When a variable, but not a function, compare against
4730 0. Fix problem in previous patch.
4731 * gdbarch.c: Re-generate.
4732
4733 2003-07-10 Andrew Cagney <cagney@redhat.com>
4734
4735 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4736 functions against NULL, not 0.
4737 * gdbarch.c: Re-generate.
4738
4739 2003-07-10 Fred Fish <fnf@ninemoons.com>
4740
4741 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4742 null string instead of a null pointer.
4743 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4744
4745 2003-07-09 Michael Snyder <msnyder@redhat.com>
4746
4747 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4748
4749 2003-07-09 Mark Kettenis <kettenis@gnu.org>
4750
4751 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4752 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4753 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4754 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4755 * x86-64-tdep.c: ... from here.
4756
4757 2003-07-09 Andreas Schwab <schwab@suse.de>
4758
4759 * m68k-tdep.h (enum struct_return): Define.
4760 (struct gdbarch_tdep): Add struct_return.
4761 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4762 bytes are padded to the right, not to the left. Pass struct value
4763 address in register %a1, not on stack.
4764 (m68k_use_struct_convention): New function.
4765 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4766 struct_return in tdep to pcc_struct_return.
4767 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4768 reg_struct_return.
4769
4770 2003-07-09 Joel Brobecker <brobecker@gnat.com>
4771
4772 * somread.c (som_symfile_offsets): Fix compilation error.
4773
4774 2003-07-09 Andrew Cagney <cagney@redhat.com>
4775
4776 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4777 Add comments about the checks.
4778
4779 2003-07-08 Andrew Cagney <cagney@redhat.com>
4780
4781 * Makefile.in: Make dependency section headers consistent.
4782 (config_h): Move to $BUILD headers section.
4783 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4784 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4785 (ada-exp.tab.c): Move to YACC/LEX section.
4786 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4787 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4788
4789 2003-07-08 Kris Warkentin <kewarken@qnx.com>
4790
4791 * nto-procfs.c: Cleaned up a bunch of ARI hits.
4792 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4793 of strerror with safe_strerror, use ISO C function definitions,
4794 and replace instances of sprintf with snprintf.
4795
4796 2003-07-07 Andrew Cagney <cagney@redhat.com>
4797
4798 * frame.c (get_prev_frame): Enable check for identical frames.
4799 Update comments. Update error messages.
4800
4801 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4802
4803 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4804
4805 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4806
4807 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4808 sort_symtab_syms, no longer necessary.
4809
4810 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4811
4812 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4813
4814 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4815
4816 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4817 (mips_register_byte): Likewise.
4818
4819 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4820
4821 * Makefile.in (sparc_tdep_h): New.
4822 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4823 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4824 * sparc-linux-nat.c: Include "sparc-tdep.h".
4825 * sparc-nat.c: Likewise.
4826 * sparc-tdep.c: Likewise.
4827 * sparc64nbsd-nat.c: Likewise.
4828 * sparcnbsd-nat.c: Likewise.
4829 * sparcnbsd-tdep.c: Likewise.
4830 * sparc-tdep.h: New file.
4831 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4832 and sparc_npc_regnum.
4833
4834 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4835
4836 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4837 (mips_linux_cannot_store_register): List supported instead of
4838 unsupported registers.
4839
4840 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4841
4842 * disasm.c (dump_insns): Separate instructions from addresses.
4843
4844 2003-07-07 Andreas Schwab <schwab@suse.de>
4845
4846 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4847 dependencies.
4848 * m68k-tdep.c (NUM_FREGS): Delete.
4849 (SIG_PC_FP_OFFSET): Delete.
4850 (TARGET_M68K): Delete.
4851 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4852 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4853 P_MOVEL_SP, P_MOVEML_SP): Define.
4854 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4855 P_TRAP): Delete.
4856 (m68k_register_raw_size): Delete.
4857 (m68k_register_virtual_size): Delete.
4858 (m68k_register_type): Renamed from m68k_register_virtual_type and
4859 add gdbarch argument.
4860 (m68k_store_struct_return): Delete.
4861 (m68k_deprecated_extract_return_value): Delete.
4862 (m68k_deprecated_extract_struct_value_address): Delete.
4863 (m68k_frame_chain): Delete.
4864 (m68k_frame_saved_pc): Delete.
4865 (m68k_fix_call_dummy): Delete.
4866 (m68k_push_dummy_frame): Delete.
4867 (m68k_pop_frame): Delete.
4868 (m68k_extract_return_value): New function.
4869 (m68k_store_return_value): Rewrite using regcache.
4870 (m68k_extract_struct_value_address): Rewrite using regcache.
4871 (m68k_push_dummy_call): New function.
4872 (struct m68k_frame_cache): Define.
4873 (m68k_alloc_frame_cache): New function.
4874 (m68k_analyze_frame_setup): New function.
4875 (m68k_analyze_register_saves): New function.
4876 (m68k_analyze_prologue): New function.
4877 (m68k_skip_prologue): Rewrite using above functions.
4878 (m68k_unwind_pc): New function.
4879 (m68k_frame_cache): New function.
4880 (m68k_frame_this_id): New function.
4881 (m68k_frame_prev_register): New function.
4882 (m68k_frame_unwind): New variable.
4883 (m68k_frame_p): New function.
4884 (m68k_sigtramp_frame_cache): New function.
4885 (m68k_sigtramp_frame_this_id): New function.
4886 (m68k_sigtramp_frame_prev_register): New function.
4887 (m68k_sigtramp_frame_unwind): New variable.
4888 (m68k_sigtramp_frame_p): New function.
4889 (m68k_frame_base_address): New function.
4890 (m68k_frame_base): New function.
4891 (m68k_unwind_dummy_id): New function.
4892 (fill_gregset): Use regcache_collect.
4893 (fill_fpregset): Likewise.
4894 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4895 defined.
4896 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4897 deprecated_init_frame_pc, deprecated_store_struct_return,
4898 deprecated_extract_return_value, deprecated_store_return_value,
4899 deprecated_frame_chain, deprecated_frame_saved_pc,
4900 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4901 deprecated_register_virtual_size,
4902 deprecated_max_register_raw_size,
4903 deprecated_max_register_virtual_size,
4904 deprecated_register_virtual_type, deprecated_register_size,
4905 deprecated_register_byte, deprecated_register_bytes,
4906 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4907 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4908 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4909 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4910 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4911 deprecated_push_dummy_frame, deprecated_pop_frame,
4912 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4913 only if SYSCALL_TRAP is defined. Set extract_return_value,
4914 store_return_value, extract_struct_value_address, register_type,
4915 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4916 predicates.
4917 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4918 M68K_MAX_REGISTER_SIZE): Define.
4919 (struct m68k_sigtramp_info): Define.
4920 (struct gdbarch_tdep): Add get_sigtramp_info.
4921 * m68klinux-nat.c (fetch_register): Use register_size instead of
4922 REGISTER_RAW_SIZE. Don't put assignment in if.
4923 (store_register): Likewise.
4924 (fetch_inferior_registers): Likewise.
4925 (store_inferior_registers): Likewise.
4926 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4927 (m68k_linux_frame_saved_pc): Delete.
4928 (m68k_linux_sigcontext_reg_offset,
4929 m68k_linux_ucontext_reg_offset): Define.
4930 (m68k_linux_get_sigtramp_info): New function.
4931 (m68k_linux_extract_return_value): Rewrite using regcache.
4932 (m68k_linux_store_return_value): Likewise.
4933 (m68k_linux_extract_struct_value_address): Likewise.
4934 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4935 Don't set deprecated_frame_saved_pc,
4936 deprecated_extract_return_value, deprecated_store_return_value,
4937 deprecated_extract_struct_value_address. Set
4938 extract_return_value, store_return_value,
4939 extract_struct_value_address.
4940
4941 2003-07-07 Andrew Cagney <cagney@redhat.com>
4942
4943 * expprint.c: Include "user-regs.h" instead of "frame.h".
4944 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4945 frame_map_regnum_to_name.
4946 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4947 (frame_map_name_to_regnum): Simplify, call
4948 user_reg_map_name_to_regnum.
4949 (frame_map_regnum_to_name): Simplify, call
4950 user_reg_map_regnum_to_name.
4951 (frame_register_unwind): Update.
4952 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4953 (_initialize_frame_reg): Call user_reg_add_builtin.
4954 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4955 (value_of_register): Use value_of_user_reg.
4956 * eval.c (evaluate_subexp_standard): Update.
4957 * parse.c (write_dollar_variable): Update.
4958 * d10v-tdep.c (d10v_print_registers_info): Update.
4959 * infcmd.c (registers_info): Update.
4960 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4961 (builtin_regs_h): Delete macro.
4962 (user_regs_h): Define.
4963 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4964 (builtin-regs.o): Delete target.
4965 (user-regs.o): Specify dependencies.
4966 (expprint.o): Update dependencies.
4967 (findvar.o): Update dependencies.
4968 (frame.o): Update dependencies.
4969 (std-regs.o): Update dependencies.
4970
4971 2003-07-06 Christopher Faylor <cgf@redhat.com>
4972
4973 * win32-nat.c (solib_symbols_add): Use one variable for all section
4974 address stuff. Pass variable rather than address of variable to
4975 safe_symbol_file_add.
4976
4977 2003-07-06 Andreas Schwab <schwab@suse.de>
4978
4979 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4980
4981 2003-07-04 Joel Brobecker <brobecker@gnat.com>
4982
4983 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4984
4985 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4986
4987 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4988
4989 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4990
4991 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4992 * config/i386/nto.mh: New file.
4993 * config/i386/nm-nto.h: New file.
4994 * configure.host: Add i[3456]86-*-nto*.
4995
4996 2003-07-03 Joel Brobecker <brobecker@gnat.com>
4997
4998 * remote-vx.c (vx_add_symbols): Fix compilation error.
4999
5000 2003-07-03 Andrew Cagney <cagney@redhat.com>
5001
5002 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5003 * gdbarch.h, gdbarch.c: Re-generate.
5004 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5005 (legacy_register_name): Declare.
5006 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5007 (REGISTER_NAME): Define.
5008 * sparc-tdep.c (legacy_register_name): New function.
5009 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5010 (REGISTER_NAME): Define.
5011 (hppa64_register_name): Declare.
5012 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5013 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5014 (hppa64_register_name): New function.
5015 (hppa_register_name): New function.
5016 * arch-utils.c (legacy_register_name): Delete.
5017 * arch-utils.h (legacy_register_name): Delete.
5018
5019 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
5020
5021 * cli/cli-interp.c (cli_interpreter_resume): Update the
5022 cli_uiout's stream to gdb_stdout.
5023
5024 2003-07-03 Andrew Cagney <cagney@redhat.com>
5025
5026 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5027 predicate.
5028 * gdbarch.h, gdbarch.c: Re-generate.
5029 * regcache.c (init_regcache_descr): Use legacy code when either
5030 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5031
5032 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5033
5034 * NEWS: Move "set logging" entry into GDB 6.0 section.
5035
5036 2003-07-02 Jim Blandy <jimb@redhat.com>
5037
5038 * s390-tdep.c (struct frame_extra_info): new member:
5039 'stack_bought_valid'.
5040 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5041 initialize fextra_info->stack_bought.
5042 (s390_frameless_function_invocation): Don't trust the value of
5043 fextra_info_ptr->stack_bought unless
5044 fextra_info->stack_bought_valid is set.
5045
5046 New S390 prologue analyzer.
5047 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5048 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5049 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5050 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5051 compute_x_addr, s390_on_stack, s390_store,
5052 s390_get_signal_frame_info): New functions.
5053 (S390_NUM_SPILL_SLOTS): New macro.
5054 (s390_get_frame_info): Rewritten.
5055 (is_arg_reg): Deleted.
5056
5057 Break out the decoding of S/390 instructions into separate
5058 functions, to make it more legible, and easier to check
5059 against the spec.
5060 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5061 is_rx, is_rxe): New functions.
5062 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5063 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5064 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5065 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5066 enums for opcode values. (Is this an improvement?)
5067
5068 2003-07-02 Andrew Cagney <cagney@redhat.com>
5069
5070 * i386-tdep.c: Revert change committed as part of trad-frame code
5071 below.
5072
5073 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5074
5075 * breakpoint.c (insert_catchpoint): Make static.
5076
5077 2003-07-02 Andreas Schwab <schwab@suse.de>
5078
5079 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5080 former ia64_push_arguments and ia64_push_return_address, and use
5081 regcache functions instead of read/write_register.
5082 (ia64_gdbarch_init): Set push_dummy_call instead of
5083 deprecated_push_arguments and deprecated_push_return_address.
5084
5085 2003-07-01 Andreas Jaeger <aj@suse.de>
5086
5087 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5088 before the call.
5089 Set %rax only to number of SSE registers used.
5090
5091 2003-07-01 Andrew Cagney <cagney@redhat.com>
5092
5093 * trad-frame.h: Update comments, a -1 .addr is reserved.
5094 (trad_frame_value_p, trad_frame_addr_p): Declare.
5095 (trad_frame_reg_p): Declare.
5096 (trad_frame_set_value): Rename trad_frame_register_value.
5097 (trad_frame_set_unknown): Declare.
5098 * trad-frame.c (trad_frame_realreg_p): New function.
5099 (trad_frame_addr_p, trad_frame_value_p): New function.
5100 (trad_frame_set_unknown): New function.
5101 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5102 (trad_frame_prev_register): Use trad_frame_realreg_p,
5103 trad_frame_addr_p and trad_frame_value_p.
5104 (trad_frame_set_value): Rename trad_frame_register_value.
5105 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5106 and trad_frame_set_value.
5107
5108 2003-06-30 Jim Blandy <jimb@redhat.com>
5109
5110 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5111 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5112 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5113 for 16 registers, and then 32 more bytes.
5114 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5115 New macros.
5116 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5117 Move up in the file, since it's now used by is_simple_arg.
5118 (is_simple_arg): Don't assume registers are four bytes long.
5119 Exclude all double arguments. Extended floats are not simple
5120 args.
5121 (is_power_of_two): New function.
5122 (pass_by_copy_ref): Call is_power_of_two, and check that the
5123 length fits in a register, rather than listing all the acceptable
5124 sizes. Extended floats are not passed by reference.
5125 (s390_push_arguments): Don't assume registers are four bytes long.
5126 Reserve an argument register to point to the buffer for structures
5127 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5128 S390_STACK_FRAME_OVERHEAD.
5129
5130 2003-06-30 Andreas Schwab <schwab@suse.de>
5131
5132 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5133 format error message.
5134
5135 2003-06-30 Joel Brobecker <brobecker@gnat.com>
5136
5137 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5138
5139 2003-06-30 David Carlton <carlton@kealia.com>
5140
5141 Band-aid for PR c++/1245.
5142 * Makefile.in (cp-support.o): Depend on complaints_h.
5143 * cp-support.c: Include complaints.h. Add declaration for
5144 find_last_component.
5145 (cp_find_first_component): Separate code into
5146 cp_find_first_component_aux.
5147 (cp_find_first_component_aux): Call demangled_name_complaint.
5148 (demangled_name_complaint): New.
5149
5150 2003-06-30 Andrew Cagney <cagney@redhat.com>
5151
5152 * remote.c (remote_write_bytes): Explicitly compute and then use
5153 the payload size. Update comments to reflect. Fixes problem of
5154 GDB not sending small packets as found by Fred Fish.
5155
5156 2003-06-30 Andrew Cagney <cagney@redhat.com>
5157
5158 * remote.c (remote_async_wait): Fix -Wformat problem.
5159
5160 2003-06-29 Andrew Cagney <cagney@redhat.com>
5161
5162 * remote.c (remote_wait): Call error, and not warning, when the
5163 packet is corrupt.
5164 (remote_async_wait): Ditto.
5165
5166 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5167
5168 * sparc-tdep.c (sparc_y_regnum): Make external again.
5169
5170 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5171
5172 * cli/cli-logging.c (pop_output_files): Add void to function
5173 definition.
5174
5175 2003-06-29 Andrew Cagney <cagney@redhat.com>
5176
5177 * frame.c (frame_register_unwind): Use unsigned char when dumping
5178 the buffer contents.
5179
5180 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
5181
5182 * cli/cli-logging.c: New file.
5183 * cli-out.c (struct ui_out_data): Add original_stream.
5184 (cli_redirect): New function.
5185 (cli_ui_out_impl): Add cli_redirect.
5186 (cli_out_new): Initialize original_stream.
5187 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5188 (uo_redirect, ui_out_redirect): New.
5189 * ui-out.h (struct ui_out_impl): Add redirect member.
5190 (redirect_ftype): New.
5191 (ui_out_redirect): Add prototype.
5192 * Makefile.in: Add rules for cli-logging.c.
5193 * NEWS: Mention "set logging".
5194
5195 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5196
5197 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5198
5199 2003-06-27 Andrew Cagney <cagney@redhat.com>
5200
5201 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5202 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5203 * avr-tdep.c (avr_call_dummy_address): Delete function.
5204 (avr_gdbarch_init): Do not set call_dummy_address.
5205
5206 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5207
5208 * symfile.c (syms_from_objfile): Move variables to inner block.
5209 Move the checks for the non-mainline case a bit earlier to avoid
5210 doing some useless computations.
5211
5212 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5213
5214 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5215
5216 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
5217
5218 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5219 sections.
5220
5221 2003-06-26 Michael Chastain <mec@shout.net>
5222
5223 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5224 gdb/testsuite/gdb.c++/pr-1210.exp.
5225
5226 2003-06-26 Andrew Cagney <cagney@redhat.com>
5227
5228 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5229 altivec_expression.h and altivec_registers.h.
5230
5231 2003-06-26 Andrew Cagney <cagney@redhat.com>
5232
5233 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5234 info->mach when MIPS16. Patch suggested by Fred Fish.
5235
5236 2003-06-26 Andrew Cagney <cagney@redhat.com>
5237
5238 * utils.c (internal_vproblem): Print the problem to a reason
5239 buffer and then pass to query. Make the msg variable more local.
5240
5241 2003-06-26 Andrew Cagney <cagney@redhat.com>
5242
5243 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5244 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5245 * gdbarch.h, gdbarch.c: Re-generate.
5246 * frame-base.c (default_frame_args_address): Update. Use
5247 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5248 not available.
5249 (default_frame_locals_address): Ditto for
5250 DEPRECATED_FRAME_LOCALS_ADDRESS.
5251 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5252 (vax_frame_num_args): Update.
5253 (vax_gdbarch_init): Update.
5254 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5255 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5256 * mcore-tdep.c (mcore_gdbarch_init): Update.
5257 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5258 * ia64-tdep.c (ia64_gdbarch_init): Update.
5259 * symtab.h (address_class): Update comments.
5260 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5261 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5262 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5263 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5264 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5265 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5266 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5267 * alpha-mdebug-tdep.c: Update.
5268 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5269
5270 2003-06-26 Andreas Jaeger <aj@suse.de>
5271
5272 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5273 of SSE registers so that varargs functions work. Rework handling
5274 of passing arguments on the stack.
5275 (x86_64_store_return_value): Return double and float values in SSE
5276 register.
5277
5278 2003-06-24 Michael Chastain <mec@shout.net>
5279
5280 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5281 the "constructor breakpoints ignored" bug.
5282
5283 2003-06-25 David Carlton <carlton@kealia.com>
5284
5285 * MAINTAINERS: Update e-mail address.
5286
5287 2003-06-24 Jim Blandy <jimb@redhat.com>
5288
5289 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5290
5291 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5292 function.
5293 (ppc_linux_init_abi): Register it as the
5294 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5295
5296 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5297 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5298 method.
5299
5300 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5301 (ppc64_standard_linkage_target): Use it.
5302
5303 2003-06-23 Andrew Cagney <cagney@redhat.com>
5304
5305 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5306 for 0 "int0" and 4 "int32" sized registers.
5307 * gdbtypes.c (builtin_type_int0): Define.
5308 (build_gdbtypes): Initialize builtin_type_int0.
5309 * gdbtypes.h (builtin_type_int0): Declare.
5310
5311 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5312
5313 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5314 as characters are unsigned.
5315
5316 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5317
5318 PR gdb/1179
5319 * dwarfread.c (struct_type): Skip static fields without crashing.
5320
5321 2003-06-22 Andrew Cagney <cagney@redhat.com>
5322
5323 GDB 6.0 branch created.
5324 * README: Update.
5325 * PROBLEMS: Update. Empty.
5326 * NEWS: Update.
5327
5328 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5329
5330 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5331 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5332
5333 2003-06-22 Andrew Cagney <cagney@redhat.com>
5334
5335 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5336 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5337 Velikov.
5338
5339 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5340
5341 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5342 compilers.
5343
5344 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5345
5346 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5347 argument of val_print.
5348 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5349 to the address argument of baseclass_offset or target_read_memory.
5350 Do add it to the argument of cp_print_value_fields.
5351
5352 2003-06-21 Andrew Cagney <cagney@redhat.com>
5353
5354 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5355 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5356 instead of 0..NUM_REGS.
5357 (mips_register_reggroup_p): New function.
5358 (mips_pseudo_register_write): New function.
5359 (mips_pseudo_register_read): New function.
5360 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5361 based on the register's type.
5362 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5363 cooked.
5364 (mips_get_saved_register): Simplify. Assert that REGNO is a
5365 pseudo / cooked.
5366 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5367 (mips_register_type): Replace mips_register_virtual_type. Map
5368 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5369 when available.
5370 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5371 that the register is cooked / virtual.
5372 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5373 Only get the extra info when needed.
5374 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5375 (mips32_heuristic_proc_desc): Fetch the cooked register.
5376 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5377 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5378 (mips_print_register): Use gdbarch_register_type, instead of
5379 REGISTER_VIRTUAL_TYPE.
5380 (print_gp_register_row): Use gdbarch_register_type, instead of
5381 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5382 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5383 Print the pseudo / cooked registers.
5384 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5385 Print the pseudo / cooked registers.
5386 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5387 REG_NUM is pseudo / cooked.
5388 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5389 (mips_n32n64_xfer_return_value): Ditto.
5390 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5391 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5392 (mips_register_sim_regno): New function.
5393 (mips_gdbarch_init): Set deprecated_register_byte,
5394 register_group_p, pseudo_register_write, pseudo_register_read,
5395 register_sim_regno, and num_pseudo_regs. Set register_type,
5396 instead of register_virtual_type.
5397 * Makefile.in (mips-tdep.o): Update dependencies.
5398 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5399 REGISTER_VIRTUAL_TYPE.
5400 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5401 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5402 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5403 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5404 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5405
5406 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5407
5408 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5409 * cli/cli-cmds.c: Include "gdb_vfork.h".
5410 (shell_escape): Use vfork.
5411
5412 2003-06-21 Andrew Cagney <cagney@redhat.com>
5413
5414 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5415 32 bit floating-point register saves.
5416
5417 * frame.h (deprecated_unwind_get_saved_register): Delete.
5418 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5419 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5420 and deprecated_get_next_frame_hack instead of
5421 deprecated_unwind_get_saved_register.
5422
5423 * mips-tdep.c (mips_dump_tdep): Do not print
5424 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5425
5426 * frame.c (get_frame_register): New function.
5427 (frame_unwind_register_signed): New function.
5428 (get_frame_register_signed): New function.
5429 (frame_unwind_register_unsigned): New function.
5430 (get_frame_register_unsigned): New function.
5431 * frame.h: Add comments on naming schema.
5432 (get_frame_register, frame_unwind_register_signed): Declare.
5433 (get_frame_register_signed, get_frame_register_signed): Declare.
5434 (frame_unwind_register_unsigned): Declare.
5435 (get_frame_register_unsigned): Declare.
5436
5437 2003-06-20 Theodore A. Roth <troth@openavr.org>
5438
5439 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5440
5441 2003-06-20 Theodore A. Roth <troth@openavr.org>
5442
5443 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5444 (avr_read_sp): Ditto.
5445
5446 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
5447
5448 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5449 * config/arm/nm-linux.h: Likewise.
5450 * config/arm/tm-linux.h: Likewise.
5451 * config/ia64/nm-linux.h: Likewise.
5452 * config/ia64/tm-ia64.h: Likewise.
5453 * config/s390/tm-linux.h: Likewise.
5454 * config/s390/tm-s390.h: Likewise.
5455 * s390-nat.c: Likewise.
5456 * s390-tdep.c: Likewise.
5457
5458 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5459 * config/ia64/linux.mt: Likewise.
5460 * config/m68k/linux.mh: Likewise.
5461 * config/mips/linux.mt: Likewise.
5462 * config/powerpc/linux.mh: Likewise.
5463 * config/sh/linux.mt: Likewise.
5464
5465 2003-06-19 Kris Warkentin <kewarken@qnx.com>
5466
5467 * solib.c (solib_open): Change tests for whether to search
5468 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5469 comments.
5470
5471 2003-06-19 Theodore A. Roth <troth@openavr.org>
5472
5473 * avr-tdep.c (avr_frame_address): Delete function.
5474 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5475 set_gdbarch_frame_args_address.
5476
5477 2003-06-19 Andrew Cagney <cagney@redhat.com>
5478
5479 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5480 (REGISTER_CONVERT_FROM_TYPE): Delete.
5481 (mips_register_convert_to_type): Delete declaration.
5482 (mips_register_convert_from_type): Delete declaration.
5483 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5484 kernel/.
5485
5486 2003-06-19 Michael Snyder <msnyder@redhat.com>
5487
5488 * linux-nat.h: New file.
5489 * linux-nat.c: Include linux-nat.h.
5490 * lin-lwp.c: Include linux-nat.h.
5491 Move struct lwp_info def to linux-nat.h.
5492 * linux-proc.c: Include linux-nat.h.
5493 (linux_make_note_section): Iterate over lwps instead of threads.
5494 (linux_do_thread_registers): Use lwp instead of merged pid.
5495 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
5496 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
5497 Add dependency on linux_nat_h.
5498
5499 2003-06-19 Theodore A. Roth <troth@openavr.org>
5500
5501 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5502
5503 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5504
5505 * varobj.c (get_type, get_target_type): Use check_typedef.
5506
5507 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5508
5509 * breakpoint.c (insert_catchpoint): Call internal_error.
5510
5511 2003-06-19 Theodore A. Roth <troth@openavr.org>
5512
5513 * avr-tdep.c (avr_push_dummy_code): Delete function.
5514 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5515
5516 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5517
5518 * arch-utils.c (default_prepare_to_proceed): Remove.
5519 (generic_prepare_to_proceed): Remove.
5520 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5521 (generic_prepare_to_proceed): Remove prototype.
5522 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5523 * gdbarch.c: Regenerate.
5524 * gdbarch.h: Regenerate.
5525 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5526 * hppah-nat.c (hppa_switched_threads): Remove.
5527 * infrun.c (prepare_to_proceed): New static function, copied from
5528 generic_prepare_to_proceed. Remove select_it argument.
5529 (proceed): Call prepare_to_proceed.
5530 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5531 variables.
5532 (ptrace_wait): Don't set the removed variables.
5533 (hppa_switched_threads): Remove.
5534 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5535 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5536 (lin_lwp_prepare_to_proceed): Remove prototype.
5537 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5538 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5539
5540 2003-06-18 Theodore A. Roth <troth@openavr.org>
5541
5542 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5543 trad-frame.h.
5544 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5545 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5546 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5547 (AVR_PROLOGUE_*): Enumerate prologue types.
5548 (struct frame_extra_info): Remove.
5549 (struct avr_unwind_cache): Define.
5550 (avr_write_sp): Delete function.
5551 (avr_read_fp): Ditto.
5552 (avr_init_extra_frame_info): Ditto.
5553 (avr_pop_frame): Ditto.
5554 (avr_frame_saved_pc): Ditto.
5555 (avr_saved_pc_after_call): Ditto.
5556 (avr_push_return_address): Ditto.
5557 (avr_frame_chain): Ditto.
5558 (avr_store_struct_return): Ditto.
5559 (avr_push_arguments): Ditto.
5560 (avr_scan_prologue): Update comments. Changed to set up the info for
5561 cache unwinding. Now returns end of prologue PC.
5562 (avr_skip_prologue): Better handling of functions lacking a prologue
5563 by using avr_scan_prologue.
5564 (avr_scan_arg_moves): New function.
5565 (avr_saved_regs_unwinder): Ditto.
5566 (avr_frame_unwind_cache): Ditto.
5567 (avr_unwind_pc): Ditto.
5568 (avr_frame_this_id): Ditto.
5569 (avr_frame_prev_register): Ditto.
5570 (avr_frame_p): Ditto.
5571 (avr_frame_base_address ): Ditto.
5572 (avr_unwind_dummy_id): Ditto.
5573 (avr_push_dummy_code): Ditto.
5574 (push_stack_item): Ditto.
5575 (pop_stack_item): Ditto.
5576 (avr_push_dummy_call): Ditto.
5577 (struct stack_item): Define.
5578 (avr_frame_unwind): Declare structure.
5579 (avr_frame_base): Ditto.
5580 (avr_gdbarch_init): Remove calls to
5581 set_gdbarch_deprecated_init_frame_pc,
5582 set_gdbarch_deprecated_target_read_fp,
5583 set_gdbarch_deprecated_dummy_write_sp,
5584 set_gdbarch_deprecated_fp_regnum,
5585 set_gdbarch_deprecated_push_arguments,
5586 set_gdbarch_deprecated_push_return_address,
5587 set_gdbarch_deprecated_pop_frame,
5588 set_gdbarch_deprecated_store_struct_return,
5589 set_gdbarch_deprecated_frame_init_saved_regs,
5590 set_gdbarch_deprecated_init_extra_frame_info,
5591 set_gdbarch_deprecated_frame_chain,
5592 set_gdbarch_deprecated_frame_saved_pc,
5593 set_gdbarch_deprecated_saved_pc_after_call.
5594 Add calls to set_gdbarch_push_dummy_call,
5595 set_gdbarch_push_dummy_code,
5596 frame_unwind_append_predicate,
5597 frame_base_set_default,
5598 set_gdbarch_unwind_dummy_id,
5599 set_gdbarch_unwind_pc.
5600 Wrap a long line.
5601
5602 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
5603
5604 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5605 registers for H8/300S.
5606 (h8300_print_registers_info): Ditto.
5607 (h8300_gdbarch_init): Accommodate register count for H8/300S.
5608
5609 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
5610
5611 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5612 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5613 (lin_lwp_wait): Likewise. Update comments.
5614 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5615 (pull_pid_from_list, linux_record_stopped_pid): New.
5616
5617 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5618
5619 * ada-lang.c (scan_discrim_bound): Name first argument.
5620 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5621 declared by ALL_BLOCK_SYMBOLS.
5622
5623 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5624
5625 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5626 ("regcache.h"): Include it.
5627 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5628
5629 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5630
5631 * NEWS: Mention gdbserver detach change and "disconnect" command.
5632 * infcmd.c (disconnect_command): New function.
5633 (_initialize_infcmd): Add ``disconnect'' command.
5634 * remote.c (remote_async_detach): Delete.
5635 (remote_detach): Merge remote_async_detach.
5636 (remote_disconnect): New.
5637 (init_remote_ops): Set to_disconnect.
5638 (init_remote_cisco_ops): Likewise.
5639 (init_remote_async_ops): Likewise. Use remote_detach.
5640 * target.c (cleanup_target): Default to_disconnect.
5641 (update_current_target): Inherit to_disconnect.
5642 (target_disconnect, debug_to_disconnect): New functions.
5643 (setup_target_debug): Set to_disconnect.
5644 * target.h (struct target_ops): Add to_disconnect.
5645 (target_disconnect): Add prototype.
5646
5647 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5648
5649 * breakpoint.c (insert_catchpoint): New function.
5650 (insert_breakpoints): Use catch_exceptions to call
5651 insert_catchpoint. Disable catchpoints if they fail to insert.
5652
5653 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5654
5655 * symfile.c (reread_symbols): Clear sym_private.
5656
5657 2003-06-17 Andrew Cagney <cagney@redhat.com>
5658
5659 * trad-frame.h (struct frame_info): Add opaque declaration.
5660 * remote-fileio.h (struct cmd_list_element): Add opaque
5661 declaration.
5662 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5663 comments.
5664
5665 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5666
5667 * remote.c (remote_prepare_to_store): Replace call to
5668 deprecated_read_register_bytes with multiple regcache_raw_read
5669 calls.
5670
5671 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5672
5673 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5674 (nto_find_and_open_solib): Likewise.
5675 (nto_init_solib_absolute_prefix): Likewise.
5676 (_initialize_nto_tdep): Fix indentation.
5677
5678 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5679
5680 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5681
5682 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5683
5684 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5685
5686 2003-06-17 Jim Blandy <jimb@redhat.com>
5687
5688 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5689
5690 2003-06-16 Theodore A. Roth <troth@openavr.org>
5691
5692 * avr-tdep.c (avr_extract_return_value): New function.
5693 (avr_gdbarch_init): Set extract_return_value method.
5694
5695 2003-06-16 Andrew Cagney <cagney@redhat.com>
5696
5697 * frame.h (deprecated_get_next_frame_hack): Declare.
5698 * frame.c (legacy_saved_regs_prev_register): Only require
5699 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5700 there are always saved regs.
5701 (deprecated_generic_get_saved_register): Do not require
5702 DEPRECATED_FRAME_INIT_SAVED_REGS.
5703 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5704 use frame ID unwind instead.
5705 (deprecated_get_next_frame_hack): New function.
5706
5707 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5708
5709 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5710 (h8300_push_dummy_call): ...this function. Some minor optimization.
5711 (h8300_push_return_address): Remove.
5712 (h8300_gdbarch_init): Remove calls to
5713 set_gdbarch_deprecated_dummy_write_sp,
5714 set_gdbarch_deprecated_push_arguments and
5715 set_gdbarch_deprecated_push_return_address.
5716 Add call to set_gdbarch_push_dummy_call.
5717
5718 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5719
5720 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5721 (E_PSEUDO_EXR_REGNUM): Ditto.
5722 (h8300_is_argument_spill): Check for instructions moving argument
5723 registers into safe registers.
5724 (h8300_skip_prologue): Check for stm instruction to push registers
5725 used for register variables onto stack.
5726 (gdb_print_insn_h8300): Remove.
5727 (h8300_examine_prologue): Add a comment.
5728 (h8300_register_name): Take pseudo registers into account.
5729 (h8300s_register_name): Ditto.
5730 (h8300sx_register_name): Ditto.
5731 (h8300_print_register): Ditto.
5732 (h8300_print_registers_info): Define "nice" printing order.
5733 (h8300_saved_pc_after_call): Take pseudo registers into account.
5734 (h8300_register_type): Ditto. Return type used for remote connection
5735 when requesting real CCR or EXR register, return actual type when
5736 requesting pseudo CCR or EXR.
5737 (h8300_pseudo_register_read): New function.
5738 (h8300_pseudo_register_write): Ditto.
5739 (h8300_dbg_reg_to_regnum): Ditto.
5740 (h8300s_dbg_reg_to_regnum): Ditto.
5741 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5742 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5743 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5744 set_gdbarch_print_insn architecture dependent.
5745 Call set_gdbarch_pseudo_register_read and
5746 set_gdbarch_pseudo_register_write.
5747 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5748
5749 2003-06-16 Andrew Cagney <cagney@redhat.com>
5750
5751 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5752 * gdbarch.h, gdbarch.c: Re-generate.
5753 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5754 * s390-tdep.c (s390_gdbarch_init): Update.
5755 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5756 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5757 * mips-tdep.c (mips_gdbarch_init): Update.
5758 * mcore-tdep.c (mcore_gdbarch_init): Update.
5759 * cris-tdep.c (cris_gdbarch_init): Update.
5760 * infcall.c (call_function_by_hand): Update.
5761 * ia64-tdep.c (ia64_push_arguments): Update comment.
5762 * frame.c (legacy_get_prev_frame): Do not assume
5763 SAVE_DUMMY_FRAME_TOS_P.
5764 * dummy-frame.c (find_dummy_frame): Update comment.
5765
5766 2003-06-16 Andrew Cagney <cagney@redhat.com>
5767
5768 * regcache.c (do_cooked_read): Do not use register_valid_p.
5769
5770 2003-06-15 Theodore A. Roth <troth@openavr.org>
5771
5772 * avr-tdep.c (avr_register_type): Remove a blank line.
5773 (avr_scan_prologue): Correct some comments.
5774
5775 2003-06-15 Theodore A. Roth <troth@openavr.org>
5776
5777 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5778 prologue types.
5779 Properly scan prologues generated by gcc with the -mcall-prologues
5780 option.
5781 Add code to scan -mcall-prologues for mega devices.
5782
5783 2003-06-15 Theodore A. Roth <troth@openavr.org>
5784
5785 * avr-tdep.c (avr_register_byte): Delete function.
5786 (avr_register_raw_size): Delete function.
5787 (avr_register_virtual_size): Delete function.
5788 (avr_register_virtual_type): Delete function.
5789 (avr_register_type): New function.
5790 (avr_address_to_pointer): Remove unused code.
5791 (avr_read_fp): Need to read FP as two separate bytes due to change to
5792 avr_register_type() usage.
5793 (avr_gdbarch_init): Don't set deprecated_register_size.
5794 Don't set deprecated_register_bytes.
5795 Don't set deprecated_register_byte.
5796 Don't set deprecated_register_raw_size.
5797 Don't set deprecated_max_register_raw_size.
5798 Don't set deprecated_register_virtual_size.
5799 Don't set deprecated_max_register_virtual_size.
5800 Don't set deprecated_register_virtual_type.
5801 Set register_type method.
5802
5803 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
5804
5805 * Makefile.in (linux-nat.o): Add rule.
5806 * linux-nat.c: New file.
5807 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5808 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5809 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5810 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5811 * config/arm/linux.mh (NATDEPFILES): Likewise.
5812 * config/i386/linux.mh (NATDEPFILES): Likewise.
5813 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5814 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5815 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5816 * config/mips/linux.mh (NATDEPFILES): Likewise.
5817 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5818 * config/s390/s390.mh (NATDEPFILES): Likewise.
5819 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5820
5821 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5822
5823 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5824 replace out-of-date comment.
5825
5826 2003-06-15 Andrew Cagney <cagney@redhat.com>
5827
5828 * rdi-share/host.h (Fail): Change to a varargs function.
5829 * remote-rdi.c (Fail): Update.
5830
5831 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5832
5833 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5834 (i386_convert_register_p, i386_register_to_value,
5835 i386_register_from_value): Handle types longer than 8 bytes.
5836
5837 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5838
5839 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5840 Move floating-point code to new function in i387-tdep.c.
5841 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5842 New functions containing code moved here from i386-tdep.c.
5843 * i387-tdep.h: Add opaque declaration for `struct type'.
5844 (i387_register_to_value, i387_value_to_register): New prototypes.
5845 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5846 (x86_64_init_abi): Set convert_register_p, register_to_value and
5847 value_to_register here.
5848
5849 2003-06-14 Andrew Cagney <cagney@redhat.com>
5850
5851 * mips-tdep.c (mips_register_to_value): Make static.
5852 (mips_value_to_register): Make static.
5853 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5854 * ia64-tdep.c (ia64_register_raw_size): Make static.
5855 (ia64_register_virtual_size): Make static.
5856 (ia64_register_byte): Make static.
5857 * i387-tdep.c: Include "i387-tdep.h".
5858 (print_387_control_word): Delete function.
5859 (print_387_status_word): Delete function.
5860 (print_387_status_bits): Delete function.
5861 (print_387_control_bits): Delete function.
5862 * Makefile.in (i387-tdep.o): Update dependencies.
5863 * rdi-share/host.h (Fail): Declare.
5864 * remote-rdi.c (Fail): Update to match declaration.
5865
5866 2003-06-14 Andrew Cagney <cagney@redhat.com>
5867
5868 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5869 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5870 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5871 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5872 * README: Delete reference to remote-array.
5873 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5874 (remote-array.o): Delete target.
5875 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5876 * remote-array.c: Delete file.
5877
5878 2003-06-14 Andrew Cagney <cagney@redhat.com>
5879 Mark Kettenis <kettenis@gnu.org>
5880
5881 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5882 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5883 parameter with "frame".
5884 * gdbarch.h, gdbarch.c: Re-generate.
5885 * frame.h (put_frame_register): Declare.
5886 * frame.c (put_frame_register): New function.
5887 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5888 (legacy_register_to_value): Rewrite, use "frame" to get the
5889 register value.
5890 (legacy_value_to_register): Rewrite, use "frame" to find the
5891 register's location before storing.
5892 * arch-utils.h (legacy_convert_register_p): Update.
5893 (legacy_register_to_value, legacy_value_to_register): Update.
5894 * findvar.c (value_from_register): Rewrite, eliminate use of
5895 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5896 "frame" to REGISTER_TO_VALUE.
5897 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5898 lval_reg_frame_relative + lval_register branch of the switch. Do
5899 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5900 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5901 I386_EDI_REGNUM): New defines.
5902 (i386_next_regnum, i386_convert_register_p,
5903 i386_register_to_value, i386_value_to_register): New functions.
5904 (i386_register_convertible, i386_register_convert_to_virtual,
5905 i386_convert_to_raw): Remove functions.
5906 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5907 value_to_register instead of register_convertible,
5908 register_convert_to_virtual and register_convert_to_raw.
5909 * mips-tdep.c (mips_convert_register_p): New function.
5910 (mips_value_to_register): Replace mips_register_convert_from_type.
5911 (mips_register_to_value): Replace mips_register_convert_to_type.
5912 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5913 register_to_value.
5914 * alpha-tdep.c (alpha_convert_register_p): Update.
5915 (alpha_value_to_register): Update, store the register.
5916 (alpha_register_to_value): Update, fetch the register.
5917
5918 2003-06-14 Theodore A. Roth <troth@openavr.org>
5919
5920 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5921 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5922 Don't set deprecated_call_dummy_words.
5923 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5924 Don't set remote_translate_xfer_address.
5925 (avr_io_reg_read_command): Remove commented out debug printf.
5926 Wrap a long line.
5927
5928 2003-06-14 Theodore A. Roth <troth@openavr.org>
5929
5930 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5931 causes gdb to seg fault.
5932
5933 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
5934
5935 * sparc-nat.c (fetch_inferior_registers): Correct
5936 a reference to "registers".
5937
5938 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5939
5940 * Makefile.in (exc_request_U_h): Define
5941 (exc_request_S_h): Likewise.
5942 (msg_reply_S_h): Likewise.
5943 (msg_U_h): Likewise.
5944 (notify_S_h): Likewise.
5945 (process_reply_S_h): Likewise.
5946 (gnu-nat.o): Depend on gdb_obstack_h
5947 * gnu-nat.c: Include "gdb_obstack.h".
5948
5949 2003-06-13 Andrew Cagney <cagney@redhat.com>
5950
5951 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5952 * gdbarch.h, gdbarch.c: Re-generate.
5953
5954 2003-06-13 Andrew Cagney <cagney@redhat.com>
5955
5956 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5957 when deprecated REGISTER macros can be deleted.
5958 * gdbarch.h, gdbarch.c: Re-generate.
5959
5960 2003-06-13 Jim Blandy <jimb@redhat.com>
5961
5962 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5963 Linux entry point symbols for _dl_debug_state, too.
5964
5965 2003-06-13 Andrew Cagney <cagney@redhat.com>
5966
5967 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5968 available, do not use the FP register, and always save the TOS.
5969 * dummy-frame.c (dummy_frame_this_id): Do not assert
5970 SAVE_DUMMY_FRAME_TOS.
5971 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5972 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5973 (i386_push_dummy_call): Add 8 to the returned SP.
5974 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5975 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5976 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5977 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5978 (x86_64_push_dummy_call): Return "sp + 16".
5979 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5980 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5981 save_dummy_frame_tos.
5982
5983 2003-06-13 Jim Blandy <jimb@redhat.com>
5984
5985 * frv-tdep.c (frv_use_struct_convention): Delete static
5986 declaration for function deleted in my change of 2003-06-12.
5987
5988 2003-06-13 Theodore A. Roth <troth@openavr.org>
5989
5990 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5991 (avr_pointer_to_address): Shift code addrs left 1 bit.
5992 (avr_convert_from_func_ptr_addr): Delete function since operation is
5993 better handled by avr_address_to_pointer and avr_pointer_to_address.
5994 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5995
5996 2003-06-13 Mark Kettenis <kettenis@gnu.org>
5997
5998 From Kelley Cook <kelleycook@wideopenwest.com>:
5999 * configure.host: Accept i[34567]86 variants.
6000 * configure.tgt: Likewise.
6001 * nlm/configure.in: Likewise.
6002 * nlm/configure: Regenerated.
6003
6004 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
6005
6006 * arm-tdep.c (solib-svr4.h): Dont' include it.
6007 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6008 * arm-linux-tdep.c: ... here. Make static.
6009 (arm_linux_init_abi): Register it.
6010 (solib-svr4.h): Include it.
6011 * Makefile.in: Update dependencies.
6012 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6013 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6014
6015 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6016
6017 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6018 indicate registers used for return values.
6019 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6020 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6021 members.
6022 (h8300_init_extra_frame_info): Ditto.
6023 (h8300_frame_locals_address): Removed.
6024 (h8300_frame_args_address): Removed.
6025 (h8300_extract_return_value): Use new regcache structure. Only care
6026 for 16 bit CPUs.
6027 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6028 (h8300_store_return_value): Use new regcache structure. Only care
6029 for 16 bit CPUs.
6030 (h8300h_store_return_value): Same function for 32 bit CPUs.
6031 (h8300_store_struct_return): Removed.
6032 (h8300_extract_struct_value_address): Use new regcache structure.
6033 (h8300h_extract_struct_value_address): Removed.
6034 (h8300_push_dummy_code): New function.
6035 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6036 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6037 set_gdbarch_store_return_value architecture dependent.
6038 Call set_gdbarch_push_dummy_code and
6039 set_gdbarch_extract_struct_value_address.
6040 Remove calls to set_gdbarch_frame_args_address,
6041 set_gdbarch_frame_locals_address,
6042 set_gdbarch_deprecated_store_struct_return,
6043 set_gdbarch_deprecated_extract_return_value,
6044 set_gdbarch_deprecated_extract_struct_value_address,
6045 set_gdbarch_deprecated_call_dummy_words and
6046 set_gdbarch_deprecated_sizeof_call_dummy_words.
6047
6048 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6049
6050 * h8300-tdep.c (h8300_register_byte): Remove.
6051 (h8300h_register_byte): Remove.
6052 (h8300_register_virtual_type): Remove. Substitute by...
6053 (h8300_register_type): New function.
6054 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6055 (h8300h_extract_struct_value_address): Ditto.
6056 (h8300_gdbarch_init): Drop calls to
6057 set_gdbarch_deprecated_register_byte and
6058 set_gdbarch_deprecated_register_virtual_type.
6059 Add call to set_gdbarch_register_type.
6060
6061 2003-06-13 Andrew Cagney <cagney@redhat.com>
6062
6063 * gdbarch.sh: Update comments on registers.
6064 (deprecated_register_byte): Rename register_byte.
6065 (deprecated_register_raw_size): Rename register_raw_size.
6066 (deprecated_register_virtual_size): Rename register_virtual_size.
6067 (deprecated_register_virtual_type): Rename register_virtual_type.
6068 * gdbarch.h, gdbarch.c: Re-generate.
6069 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6070 * vax-tdep.c (vax_gdbarch_init): Update.
6071 * v850-tdep.c (v850_gdbarch_init): Update.
6072 * sparc-tdep.c (sparc_gdbarch_init): Update.
6073 * sh-tdep.c (sh_gdbarch_init): Update.
6074 * s390-tdep.c (s390_gdbarch_init): Update.
6075 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6076 * ns32k-tdep.c: Update.
6077 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6078 * mips-tdep.c (mips_gdbarch_init): Update.
6079 * mcore-tdep.c (mcore_gdbarch_init): Update.
6080 * m68k-tdep.c (m68k_gdbarch_init): Update.
6081 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6082 * ia64-tdep.c (ia64_gdbarch_init): Update.
6083 * hppa-tdep.c (hppa_gdbarch_init): Update.
6084 * h8300-tdep.c (h8300_gdbarch_init): Update.
6085 * frv-tdep.c (frv_gdbarch_init): Update.
6086 * cris-tdep.c (cris_gdbarch_init): Update.
6087 * avr-tdep.c (avr_gdbarch_init): Update.
6088 * alpha-tdep.c (alpha_gdbarch_init): Update.
6089 * arm-tdep.c (arm_gdbarch_init): Update.
6090
6091 2003-06-13 Andrew Cagney <cagney@redhat.com>
6092
6093 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6094 mips_o32_use_struct_convention with always_use_struct_convention.
6095
6096 2003-06-12 David Carlton <carlton@kealia.com>
6097
6098 * cp-namespace.c (cp_set_block_scope): Comment out
6099 processing_has_namespace_info branch.
6100
6101 2003-06-12 Jim Blandy <jimb@redhat.com>
6102
6103 Recognize and skip 64-bit PowerPC Linux linkage functions.
6104 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6105 insn_pattern, insns_match_pattern, d_field, ds_field): New
6106 functions, macros, and types for working with PPC instructions.
6107 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6108 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6109 ppc64_skip_trampoline_code): New functions, variables, and macros
6110 for recognizing and skipping linkage functions.
6111 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6112 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6113
6114 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6115 register offsets for both the 32- and 64-bit interfaces.
6116
6117 Actually finish the job started by my change of 2003-05-29.
6118 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6119 other #definition of this.
6120 (ppc_linux_skip_trampoline_code): Remove declaration.
6121 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6122 static.
6123 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6124 method for GDBARCH.
6125
6126 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6127 'long' on ppc64-*-linux*.
6128
6129 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6130 isn't #defined, assume the register doesn't exist: act as if
6131 tdep->ppc_mq_regnum were -1.
6132
6133 * configure.host, configure.tgt: Add entries for
6134 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6135 powerpc/linux.mt.
6136 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6137 New files.
6138
6139 * arch-utils.c (always_use_struct_convention): New function.
6140 * arch-utils.h (always_use_struct_convention): New prototype.
6141 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6142 (alpha_gdbarch_init): Register always_use_struct_convention,
6143 instead of alpha_use_struct_convention.
6144 * cris-tdep.c (cris_use_struct_convention): Delete.
6145 (cris_gdbarch_init): Register always_use_struct_convention,
6146 instead of cris_use_struct_convention.
6147 * frv-tdep.c (frv_use_struct_convention): Delete.
6148 (frv_gdbarch_init): Register always_use_struct_convention,
6149 instead of frv_use_struct_convention.
6150 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6151 (h8300_gdbarch_init): Register always_use_struct_convention,
6152 instead of h8300_use_struct_convention.
6153 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6154 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6155 instead of mips_o32_use_struct_convention.
6156
6157 2003-06-12 Andrew Cagney <cagney@redhat.com>
6158
6159 * wince.c: Include "mips-tdep.h".
6160 * mips-tdep.h (mips_next_pc): Declare.
6161 * mcore-tdep.c: Make more local functions static.
6162 * Makefile.in (wince.o): Update dependencies.
6163
6164 2003-06-12 David Carlton <carlton@kealia.com>
6165
6166 * symtab.c (lookup_symbol_aux_minsyms): Replace
6167 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6168 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6169 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6170 SYMBOL_NATURAL_NAME.
6171
6172 2003-06-12 Andreas Schwab <schwab@suse.de>
6173
6174 * Makefile.in (tuiDisassem.o): Update dependencies.
6175
6176 2003-06-12 David Carlton <carlton@bactrian.org>
6177
6178 * symtab.h: Delete declaration of make_symbol_overload_list.
6179 Add declaration of lookup_partial_symbol.
6180 * symtab.c (remove_params): Move to cp-support.c.
6181 (overload_list_add_symbol, make_symbol_overload_list)
6182 (sym_return_val_size, sym_return_val_index): Ditto.
6183 (lookup_partial_symbol): Make extern.
6184 * cp-support.h: Add declaration of make_symbol_overload_list.
6185 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6186 symtab.h, and block.h.
6187 (remove_params): Move here from symtab.c.
6188 (overload_list_add_symbol, make_symbol_overload_list)
6189 (sym_return_val_size, sym_return_val_index): Ditto.
6190 * valops.c: Include cp-support.h.
6191 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6192 frame_h, and block_h.
6193 (valops.o): Depend on cp_support_h.
6194
6195 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
6196
6197 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6198 substitute by NUM_REGS throughout.
6199 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6200 (h8300s_register_name): New function for H8S registers.
6201 (h8300sx_register_name): Ditto for H8SX registers.
6202 (h8300_print_register): Revise register printing, avoid depending
6203 on 32 bit long.
6204 (h8300_register_byte): Only care for H8/300 registers.
6205 (h8300h_register_byte): New function for any other architecture.
6206 (h8300_register_raw_size): Remove.
6207 (h8300_register_virtual_type): Revise to return actually useful
6208 type.
6209 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6210 (h8300h_extract_struct_value_address): New function for any other
6211 architecture.
6212 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6213 set_gdbarch_register_name, set_gdbarch_register_byte,
6214 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6215 Remove calls to set_gdbarch_deprecated_register_size,
6216 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6217 set_gdbarch_deprecated_max_register_raw_size,
6218 set_gdbarch_register_virtual_size and
6219 set_gdbarch_deprecated_max_register_virtual_size entirely.
6220 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6221 set_gdbarch_long_double_bit.
6222
6223 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6224
6225 * doublest.c (convert_doublest_to_floatformat): When dealing
6226 with the implied integer bit, only alter mant_bits if we are
6227 processing a full 32 bits of mantissa.
6228
6229 2003-06-11 David Carlton <carlton@bactrian.org>
6230
6231 * dictionary.h: New.
6232 * dictionary.c: New.
6233 * block.h: Add opaque declaration for struct dictionary.
6234 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6235 'sym' members.
6236 (BLOCK_DICT): New macro.
6237 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6238 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6239 BLOCK_SHOULD_SORT.
6240 (ALL_BLOCK_SYMBOLS): Update definition.
6241 * Makefile.in (SFILES): Add dictionary.c.
6242 (dictionary_h): New.
6243 (COMMON_OBS): Add dictionary.o.
6244 (dictionary.o): New.
6245 (ada-lang.o): Depend on dictionary_h.
6246 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6247 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6248 (mi-cmd-stack.o): Ditto.
6249 (gdbtk-cmds.o): Update dependencies.
6250 (gdbtk-stack.o): Ditto.
6251 * ada-lang.c: Include dictionary.h.
6252 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6253 (fill_in_ada_prototype, debug_print_block): Ditto.
6254 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6255 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6256 'is_sorted'.
6257 * mdebugread.c: Include dictionary.h.
6258 (struct parse_stack): Delete 'maxsyms' member.
6259 (parse_symbol): Update calls to new_block. Delete calls to
6260 shrink_block. Use dictionary methods.
6261 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6262 Update calls to new_symtab. Don't maintain maxsyms data.
6263 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6264 (add_symbol): Just call dict_add_symbol.
6265 (new_symtab): Delete 'maxsyms' argument.
6266 (new_symtab): Update calls to new_block.
6267 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6268 (shrink_block): Delete function.
6269 (fixup_sigtramp): Update call to new_block. Add symbol via
6270 dict_add_symbol.
6271 * jv-lang.c: Include dictionary.h.
6272 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6273 appropriately. Set class_symtab->free_func. Make sure the
6274 blockvector is big enough to hold two blocks.
6275 (add_class_symtab_symbol): Use dictionary methods.
6276 (free_class_block): New function.
6277 (type_from_class): Replace explicit iteration by
6278 ALL_BLOCK_SYMBOLS.
6279 * symtab.h (struct symtab): Replace 'free_ptr' method by
6280 'free_func'.
6281 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6282 sort_symtab_syms.
6283 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6284 sort_symtab_syms.
6285 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6286 Include dictionary.h.
6287 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6288 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6289 sort_symtab_syms.
6290 * objfiles.c: Include dictionary.h.
6291 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6292 * buildsym.c: Include dictionary.h.
6293 (finish_block): Use dictionary methods.
6294 (end_symtab): Set free_func to NULL, not free_ptr.
6295 * tracepoint.c: Include dictionary.h.
6296 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6297 (scope_info): Ditto.
6298 * stack.c: Include dictionary.h.
6299 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6300 (print_block_frame_labels, print_frame_arg_vars)
6301 (print_frame_args): Ditto.
6302 * symmisc.c (free_symtab_block): Use dictionary methods.
6303 (dump_symtab): Ditto.
6304 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6305 Include dictionary.h.
6306 * symfile.h: Delete declarations of sort_block_syms,
6307 sort_symtab_syms.
6308 * symfile.c (sort_block_syms): Delete.
6309 (sort_symtab_syms): Delete.
6310 * symtab.c: Include dictionary.h.
6311 (lookup_block_symbol): Use dictionary iterators.
6312 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6313 (search_symbols, make_symbol_completion_list): Ditto.
6314 (make_symbol_overload_list): Ditto.
6315 * valops.c (value_of_local): Use dict_empty.
6316 Include dictionary.h.
6317
6318 2003-06-11 J. Brobecker <brobecker@gnat.com>
6319
6320 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6321
6322 2003-06-11 David Carlton <carlton@bactrian.org>
6323
6324 * block.h (BLOCK_SHOULD_SORT): Delete.
6325 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6326 blocks.
6327 * ada-lang.c (ada_add_block_symbols): Ditto.
6328 * symfile.c (sort_block_syms): Delete.
6329 (sort_symtab_syms): Ditto.
6330 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6331 declarations.
6332 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6333 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6334 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6335 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6336 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6337 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6338 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6339
6340 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6341
6342 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6343 bits to 128.
6344
6345 2003-06-11 Andrew Cagney <cagney@redhat.com>
6346
6347 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6348 REGISTER_CONVERTIBLE.
6349 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6350 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6351 * gdbarch.h, gdbarch.c: Re-generate.
6352 * arch-utils.h (deprecated_register_convertible_not): Rename
6353 generic_register_convertible_not.
6354 * arch-utils.c (deprecated_register_convertible_not): Rename
6355 generic_register_convertible.
6356 (legacy_convert_register_p, legacy_register_to_value): Update.
6357 * sh-tdep.c (sh64_push_arguments): Update.
6358 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6359 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6360 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6361 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6362 * arch-utils.c (legacy_value_to_register): Update.
6363 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6364 (rs6000_register_convert_to_raw): Make parameter "from" const.
6365 * mips-tdep.c (mips_gdbarch_init): Update.
6366 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6367 * infcmd.c (default_print_registers_info): Update.
6368 * ia64-tdep.c (ia64_gdbarch_init): Update.
6369 (ia64_register_convert_to_raw): Make parameter "from" const.
6370 * i386-tdep.c (i386_gdbarch_init): Update.
6371 (i386_register_convert_to_raw): Update.
6372
6373 2003-06-11 Andrew Cagney <cagney@redhat.com>
6374
6375 * remote-fileio.c: Include "remote-fileio.h".
6376 * Makefile.in (remote-fileio.o): Update dependencies.
6377 (remote_fileio_h): Fix typo.
6378
6379 2003-06-11 Andrew Cagney <cagney@redhat.com>
6380
6381 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6382 (xstormy16_save_dummy_frame_tos): Make static.
6383 (_initialize_xstormy16_tdep): Add declaration.
6384 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6385 * v850-tdep.c: Make local functions static.
6386 (_initialize_v850_tdep): Add declaration.
6387 * sparc-tdep.c: Make local functions static.
6388 (_initialize_sparc_tdep): Add declaration.
6389 * sh-tdep.c: Make local functions static.
6390 (_initialize_sh_tdep): Add declaration.
6391 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6392 * s390-tdep.c: Make local functions static.
6393 (_initialize_s390_tdep): Add declaration.
6394 * dbxread.c (find_stab_function_addr): Make static.
6395 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6396 * ocd.c (_initialize_remote_ocd): Add declaration.
6397 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6398 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6399 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6400 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6401 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6402 * remote-array.c (_initialize_array): Add declaration.
6403 (_initialize_remote_monitors): Add declaration.
6404 * remote-mips.c: Make local functions static.
6405 (_initialize_remote_mips): Add declaration.
6406 * mcore-tdep.c: Make all local functions static.
6407 (_initialize_mcore_tdep): Add declaration.
6408 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6409 * abug-rom.c (_initialize_abug_rom): Add declaration.
6410 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6411 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6412 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6413 * remote-est.c (_initialize_est): Add declaration.
6414 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6415 (m68hc11_call_dummy_address): Make static.
6416 * ia64-tdep.c: Make local functions static.
6417 (_initialize_ia64_tdep): Add declaration.
6418 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6419 * monitor.c (monitor_wait_filter): Make static.
6420 (_initialize_remote_monitors): Add declaration.
6421 * remote-hms.c (_initialize_remote_hms): Add declaration.
6422 * remote-e7000.c (fetch_regs_from_dump): Make static.
6423 (expect_n): Make static.
6424 (_initialize_remote_e7000): Add declaration.
6425 * ser-e7kpc.c: Always include "defs.h".
6426 (_initialize_ser_e7000pc): Add declaration.
6427 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6428 * cris-tdep.c: Make all but one function static.
6429 (_initialize_cris_tdep): Add declaration.
6430 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6431 * solib.c (update_solib_list): Make static.
6432 (_initialize_solib): Add declaration.
6433 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6434 (_initialize_avr_tdep): Add declaration.
6435 * remote-rdi.c (voiddummy): Make static.
6436 (_initialize_remote_rdi): Add declaration.
6437 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6438 * remote-rdp.c (send_rdp): Make static.
6439 (_initialize_remote_rdp): Add declaration.
6440 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6441
6442 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
6443
6444 * remote-fileio.c: Make ari happy.
6445
6446 2003-06-10 J. Brobecker <brobecker@gnat.com>
6447
6448 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6449 fetching the trailing bytes of the buffer we are about to write.
6450
6451 2003-06-10 Andrew Cagney <cagney@redhat.com>
6452
6453 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6454 * Makefile.in (remote-fileio.o): Update dependencies.
6455 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6456 include <setjmp.h>, or <sys/types.h> conditional on USG.
6457 (remote_fio_jmp_buf): Delete global variable.
6458
6459 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
6460 Martin M. Hunt <hunt@redhat.com>
6461
6462 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6463 (SFILES): Add remote-fileio.c.
6464 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6465 dependencies for building remote.o.
6466 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6467 * remote-fileio.h: New header file defining remote File-I/O interface.
6468 * remote.c (remote_write_bytes, remote_read_bytes): Remove
6469 static storage class.
6470 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6471 'F' packet.
6472 (_initialize_remote): Call initialize_remote_fileio().
6473 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
6474 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6475 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6476 (captured_main): Initialize new ui_files.
6477 * ui-file.c: Add read and fgets input functions.
6478 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6479 (null_file_read): New function.
6480 (ui_file_read): New function.
6481 (set_ui_file_read): New function.
6482 (stdio_file_read): New function.
6483 * ui-file.h: New type ui_file_read_ftype.
6484 (set_ui_file_read): Declare.
6485 (ui_file_read): Declare.
6486
6487 2003-06-09 Andrew Cagney <cagney@redhat.com>
6488
6489 * frame.h (deprecated_unwind_get_saved_register): Rename
6490 generic_unwind_get_saved_register, update comments.
6491 * mips-tdep.c (mips_get_saved_register): Update.
6492 * frame.c (deprecated_unwind_get_saved_register): Update.
6493
6494 2003-06-09 Andrew Cagney <cagney@redhat.com>
6495
6496 * vax-tdep.c (vax_frame_locals_address): Delete function.
6497 (vax_gdbarch_init): Do not set frame_locals_address.
6498 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6499 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6500 * s390-tdep.c (s390_frame_args_address): Delete function.
6501 (s390_gdbarch_init): Do not set frame_args_address or
6502 frame_locals_address.
6503 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6504 (ns32k_gdbarch_init): Do not set frame_locals_address.
6505 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6506 (hppa_frame_locals_address): Delete function.
6507 (hppa_gdbarch_init): Do not set frame_args_address, or
6508 frame_locals_address.
6509 * arm-tdep.c (arm_frame_args_address): Delete.
6510 (arm_frame_locals_address): Delete.
6511 (arm_gdbarch_init): Do not set frame_args_address, or
6512 frame_locals_address.
6513
6514 2003-06-09 Andrew Cagney <cagney@redhat.com>
6515
6516 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6517 * gdbarch.h, gdbarch.c: Re-generate.
6518 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6519 * arch-utils.c (frame_num_args_unknown): Delete function.
6520 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6521 (frame_info): Use FRAME_NUM_ARGS_P.
6522 * arm-tdep.c (arm_frame_num_args): Delete function.
6523 (arm_gdbarch_init): Do not set frame_num_args.
6524 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6525 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6526 (hppa_gdbarch_init): Do not set frame_num_args.
6527 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6528 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6529 frame_num_args to default frame_num_args_unknown.
6530 * v850-tdep.c (v850_gdbarch_init): Ditto.
6531 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6532 * sh-tdep.c (sh_gdbarch_init): Ditto.
6533 * s390-tdep.c (s390_gdbarch_init): Ditto.
6534 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6535 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6536 * mips-tdep.c (mips_gdbarch_init): Ditto.
6537 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6538 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6539 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6540 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6541 * i386-tdep.c (i386_gdbarch_init): Ditto.
6542 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6543 * frv-tdep.c (frv_gdbarch_init): Ditto.
6544 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6545 * cris-tdep.c (cris_gdbarch_init): Ditto.
6546 * avr-tdep.c (avr_gdbarch_init): Ditto.
6547 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6548
6549 2003-06-09 Andrew Cagney <cagney@redhat.com>
6550
6551 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6552 (print_frame_args): Moved to "stack.c".
6553 * stack.c: Include "gdb_assert.h".
6554 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6555 (print_frame_args): Moved from "printcmd.c".
6556 * frame.h (print_frame_args): Delete declaration.
6557 * Makefile.in (stack.o): Update dependencies.
6558
6559 2003-06-08 Andrew Cagney <cagney@redhat.com>
6560
6561 * frame.c (get_prev_frame): Remove reference to
6562 frame_args_address_correct in comments.
6563 * frame-base.c (default_frame_args_address): Delete code
6564 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6565 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6566 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6567 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6568 (vax_frame_args_address_correct): Delete declaration.
6569
6570 2003-06-08 Andrew Cagney <cagney@redhat.com>
6571
6572 * gdbarch.sh (UNWIND_SP): Add.
6573 * gdbarch.h, gdbarch.c: Re-generate.
6574 * frame.c (frame_sp_unwind): New function.
6575 (get_frame_sp): New function.
6576 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6577 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6578 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6579 value.
6580 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6581 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6582
6583 2003-06-08 Andrew Cagney <cagney@redhat.com>
6584
6585 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6586 REMOTE_BREAKPOINT.
6587 * remote.c: Update.
6588 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6589 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6590 * config/m68k/tm-sun3.h: Update.
6591 * config/m68k/tm-m68klynx.h: Update.
6592 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6593
6594 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6595 trad_frame". Update comments.
6596 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6597 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6598 (trad_frame_register_value, trad_frame_prev_register): Update.
6599
6600 2003-06-08 Andrew Cagney <cagney@redhat.com>
6601
6602 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6603 from GCC's acinclude.m4.
6604 * configure.in: Check for getopt's delcaration.
6605 * aclocal.m4, config.in, configure: Re-generate.
6606 * main.c (error_init): Delete declaration.
6607 * defs.h (error_init): Declare.
6608 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6609 (rs6000_convert_from_func_ptr_addr): Make static.
6610 (_initialize_rs6000_tdep): Add declaration.
6611 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6612 (show_commands, set_verbose, show_history): Delete declaration.
6613 * top.h (set_verbose): Add declaration.
6614 (show_history, set_history, show_commands): Add declaration.
6615 (do_restore_instream_cleanup): Add declaration.
6616 * objc-lang.c (specialcmp): Make static.
6617 (print_object_command): Make static.
6618 (find_objc_msgsend): Make static.
6619 (find_objc_msgcall_submethod_helper): Make static.
6620 (find_objc_msgcall_submethod): Make static.
6621 (_initialize_objc_language): Add declaration.
6622 (find_implementation_from_class): Make static.
6623 (find_implementation): Make static.
6624 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6625 * objc-lang.h (lookup_struct_typedef): Add declaration.
6626 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6627 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6628 (do_restore_user_call_depth): Make static.
6629 (do_restore_instream_cleanup): Delete declaration.
6630 (dont_repeat): Delete declaration.
6631 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6632 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6633 * reggroups.c (_initialize_reggroup): Add declaration.
6634 * cp-support.c (_initialize_cp_support): Add declaration.
6635 * cp-abi.c (_initialize_cp_abi): Add declaration.
6636 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6637 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6638 (_initialize_gnu_v3_abi): Add declaration.
6639 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6640 (_initialize_gnu_v2_abi): Add declaration.
6641 * frame-base.c (_initialize_frame_base): Add declaration.
6642 * doublest.c (floatformat_from_length): Make static.
6643 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6644 * frame.c (create_sentinel_frame): Make static.
6645 (_initialize_frame): Add declaration.
6646 * top.c (do_catch_errors): Make static.
6647 (gdb_rl_operate_and_get_next_completion): Make static.
6648 * typeprint.c: Include "typeprint.h".
6649 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6650 (sentinel_frame_this_id): Make static.
6651 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6652 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6653 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6654 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6655 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6656 * maint.c (maintenance_print_architecture): Make static.
6657 * signals/signals.c (_initialize_signals): Add declaration.
6658 * std-regs.c (_initialize_frame_reg): Add declaration.
6659 * jv-exp.y (push_variable): ISO C definition.
6660 (push_qualified_expression_name): Ditto.
6661 * memattr.c (_initialize_mem): Add declaration.
6662 * remote.c (remote_check_watch_resources): Make static.
6663 (remote_stopped_by_watchpoint): Make static.
6664 (remote_stopped_data_address): Make static.
6665 * d10v-tdep.c (nr_dmap_regs): Make static.
6666 (a0_regnum): Make static.
6667 (d10v_frame_unwind_cache): Make static.
6668 (d10v_frame_p): Make static.
6669 * osabi.c (show_osabi): Make static.
6670 (_initialize_gdb_osabi): Add extern declaration.
6671 * gdbtypes.c (make_qualified_type): Make static.
6672 (safe_parse_type): Make static.
6673 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6674 * macrotab.c (macro_bcache_free): Make static.
6675 * interps.c (interp_set_quiet): Make static.
6676 (interpreter_exec_cmd): Make static.
6677 * stack.h (select_frame_command): New file.
6678 * stack.c: Include "stack.h".
6679 (select_frame_command_wrapper): Delete function.
6680 (select_frame_command): Make global.
6681 * infcall.c: Include "infcall.h".
6682 * linespec.c: Include "linespec.h".
6683 * symfile.c (sections_overlap): Make static.
6684 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6685 * charset.c (_initialize_charset): Add missing prototype.
6686 * regcache.c (init_legacy_regcache_descr): Make static.
6687 (do_regcache_xfree): Make static.
6688 (regcache_xfer_part): Make static.
6689 (_initialize_regcache): Add missing prototype.
6690 * breakpoint.c (parse_breakpoint_sals): Make static.
6691 (breakpoint_sals_to_pc): Make static.
6692 * interps.h (clear_interpreter_hooks): ISO C declaration.
6693 * Makefile.in (stack_h): Define.
6694 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6695 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6696
6697 2003-06-08 Andrew Cagney <cagney@redhat.com>
6698
6699 * Makefile.in (d10v-tdep.o): Update dependencies.
6700 (SFILES): Add trad-frame.c.
6701 (trad_frame_h): Define.
6702 (COMMON_OBS): Add trad-frame.o.
6703 (trad-frame.o): Specify dependencies.
6704 * d10v-tdep.c: Include "trad-frame.h".
6705 (saved_regs_unwinder): Delete function.
6706 (d10v_frame_prev_register): Use trad_frame_prev_register.
6707 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6708 trad_frame", delete "regs" and "prev_sp".
6709 (prologue_find_regs): Use trad-frame.
6710 * trad-frame.h, trad-frame.c: New files.
6711
6712 2003-06-08 Mark Kettenis <kettenis@gnu.org>
6713
6714 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6715
6716 2003-06-07 Adam Fedor <fedor@gnu.org>
6717
6718 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6719 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6720 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6721 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
6722 resolve_msgsend_super, resolve_msgsend_super_stret):
6723 Use it.
6724
6725 2003-06-07 Andrew Cagney <cagney@redhat.com>
6726
6727 * symfile.h: Re-indent, clean up comments.
6728
6729 2003-06-07 Andrew Cagney <cagney@redhat.com>
6730
6731 * inferior.h (deprecated_write_sp): Replace
6732 generic_target_write_sp.
6733 * regcache.c (deprecated_write_sp): Replace
6734 generic_target_write_sp.
6735 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6736 * vax-tdep.c (vax_gdbarch_init): Update.
6737 * v850-tdep.c (v850_gdbarch_init): Update.
6738 * sparc-tdep.c (sparc_gdbarch_init): Update.
6739 * sh-tdep.c (sh_gdbarch_init): Update.
6740 * s390-tdep.c (s390_gdbarch_init): Update.
6741 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6742 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6743 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6744 * mcore-tdep.c (mcore_gdbarch_init): Update.
6745 * m68k-tdep.c (m68k_gdbarch_init): Update.
6746 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6747 * ia64-tdep.c (ia64_gdbarch_init): Update.
6748 * h8300-tdep.c (h8300_gdbarch_init): Update.
6749 * frv-tdep.c (frv_gdbarch_init): Update.
6750 * cris-tdep.c (cris_gdbarch_init): Update.
6751 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6752
6753 2003-06-07 Andrew Cagney <cagney@redhat.com>
6754
6755 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6756 Assert that PC_REGNUM is valid.
6757 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6758
6759 2003-06-07 Andrew Cagney <cagney@redhat.com>
6760
6761 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6762 * gdbarch.h, gdbarch.c: Regenerate.
6763 * mn10300-tdep.c: Include "gdb_assert.h".
6764 (mn10300_read_fp): New function.
6765 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6766 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6767 * ia64-tdep.c: Include "gdb_assert.h".
6768 (ia64_read_fp): New function.
6769 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6770 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6771 * regcache.c (generic_target_read_sp): Delete function.
6772 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6773 * inferior.h (generic_target_read_sp): Delete declaration.
6774 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6775 generic_target_read_sp.
6776 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6777 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6778 * sh-tdep.c (sh_gdbarch_init): Ditto.
6779 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6780 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6781
6782 2003-06-07 Andrew Cagney <cagney@redhat.com>
6783
6784 * gdbarch.sh: Comment each field of startup_gdbarch.
6785 * gdbarch.h, gdbarch.c: Re-generate.
6786
6787 2003-06-07 Andrew Cagney <cagney@redhat.com>
6788
6789 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6790 * gdbarch.h, gdbarch.c: Re-generate.
6791 * regcache.c: Update comments on read_pc et.al.
6792 (generic_target_read_pc): Delete function.
6793 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6794 * inferior.h (generic_target_read_pc): Delete declaration.
6795 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6796 generic_target_read_pc.
6797 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6798 * sh-tdep.c (sh_gdbarch_init): Ditto.
6799 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6800 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6801
6802 2003-06-07 Andrew Cagney <cagney@redhat.com>
6803
6804 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6805 "index" with "special_local_sect". Use strcmp instead of STREQ.
6806 Append period to coments.
6807
6808 2003-06-06 Mark Mitchell <mark@codesourcery.com>
6809
6810 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6811 (elfstab_offset_sections): Likewise.
6812 * gdb-stabs.h (stab_section_info): Likewise.
6813 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6814 * objfiles.c (objfile_relocate): Likewise.
6815 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6816 * remote.c (get_offsets): Likewise.
6817 (remote_cisco_objfile_relocate): Likewise.
6818 * somread.c (som_symfile_offsets): Likewise.
6819 * symfile.c (alloc_section_addr_info): New function.
6820 (build_section_addr_info_from_section_tab): Use it.
6821 (free_section_addr_info): Adjust.
6822 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6823 (syms_from_objfile): Allocate local_addr dynamically.
6824 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6825 dynamically.
6826 (add_symbol_file_command): Allocate sect_opts dynamically.
6827 (reread_symbols): Avoid use of SECT_OFF_MAX.
6828 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6829 (alloc_section_addr_info): Declare it.
6830 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6831 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6832 dynamically.
6833 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
6834
6835 2003-06-06 Andrew Cagney <cagney@redhat.com>
6836
6837 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6838 (d10v_frame_unwind_cache): Do not set "return_pc".
6839
6840 2003-06-06 Michael Snyder <msnyder@redhat.com>
6841
6842 * h8300-tdep.c: Make tidy (long lines).
6843
6844 2003-06-06 Michal Ludvig <mludvig@suse.cz>
6845
6846 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
6847 to regcache_collect().
6848
6849 2003-06-05 J. Brobecker <brobecker@gnat.com>
6850
6851 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6852 pc_in_sigtramp multiarch method.
6853 (hppa_hpux_som_init_abi): Use it.
6854 (hppa_hpux_elf_init_abi): Likewise.
6855 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6856 macro has been multiarched.
6857 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6858 macro here, as hppa64 isn't multiarched yet.
6859
6860 2003-06-05 Andrew Cagney <cagney@redhat.com>
6861
6862 * Makefile.in (value_h): Add $(frame_h).
6863 * value.h: Include "frame.h".
6864 (struct value): Replace "frame_addr" with "frame_id".
6865 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6866 * values.c (allocate_value): Use VALUE_FRAME_ID.
6867 (value_copy): Use VALUE_FRAME_ID.
6868 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6869 * valops.c (value_assign): Update. Use frame_find_by_id.
6870
6871 2003-06-05 Michal Ludvig <mludvig@suse.cz>
6872
6873 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6874 in each pass.
6875
6876 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6877
6878 * thread-db.c (check_event): For create/death event breakpoints,
6879 loop through all messages to ensure that we read the message
6880 corresponding to the breakpoint we are at.
6881
6882 2003-06-04 Michael Snyder <msnyder@redhat.com>
6883
6884 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6885
6886 2003-06-04 Mark Kettenis <kettenis@gnu.org>
6887
6888 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6889 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6890 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6891 when handling .eh_frame sections.
6892
6893 2003-06-04 J. Brobecker <brobecker@gnat.com>
6894
6895 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6896 prepare_to_proceed procedure instead of the hppa-specific one.
6897 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6898
6899 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
6900
6901 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6902 * config.in: Regenerated.
6903 * configure.in: Add test for syscall function and check for
6904 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6905 * configure: Regenerated.
6906 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6907 <sys/syscall.h>.
6908 (kill_lwp): New function that uses tkill syscall or
6909 uses kill, depending on whether threading model is nptl or not.
6910 All callers of kill() changed to use kill_lwp().
6911 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6912 see if all threads have already exited in the nptl model.
6913 (stop_and_resume_callback): New callback function used by the
6914 lin_lwp_wait thread exit handling code.
6915 (stop_wait_callback): Check for threads already having exited and
6916 delete such threads fromt the lwp list when discovered.
6917 (stop_callback): Don't assert retcode of kill call.
6918
6919 Roland McGrath <roland@redhat.com>
6920 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6921 nptl libthread_db.
6922
6923 2003-06-03 Richard Henderson <rth@redhat.com>
6924
6925 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6926 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6927 (alpha_sigtramp_frame_prev_register): Likewise.
6928 (alpha_heuristic_frame_prev_register): Likewise.
6929 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6930
6931 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
6932 alpha-specific register id names.
6933 (alpha_mdebug_frame_unwind_cache): Likewise.
6934 (alpha_mdebug_frame_prev_register): Likewise.
6935
6936 2003-06-03 Richard Henderson <rth@redhat.com>
6937
6938 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6939 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6940 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6941 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6942 unwind routines.
6943 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6944 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6945 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6946
6947 * alpha-linux-tdep.c: Remove unnecessary includes.
6948 * Makefile.in (alpha-linux-tdep.o): Update.
6949
6950 2003-06-03 Richard Henderson <rth@redhat.com>
6951
6952 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6953 (alphabsd_fill_fpreg): Likewise.
6954
6955 2003-06-03 J. Brobecker <brobecker@gnat.com>
6956
6957 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6958 references to struct frame_info fields by calls to the equivalent
6959 accessors. Necessary now that frame_info is opaque.
6960
6961 2003-06-03 J. Brobecker <brobecker@gnat.com>
6962
6963 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6964 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6965 structure, field no longer exists.
6966
6967 2003-06-03 J. Brobecker <brobecker@gnat.com>
6968
6969 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6970 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6971
6972 2003-06-03 J. Brobecker <brobecker@gnat.com>
6973
6974 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6975 references to struct frame_info fields by calls to the equivalent
6976 accessors. Necessary now that frame_info is opaque.
6977
6978 2003-06-03 J. Brobecker <brobecker@gnat.com>
6979
6980 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6981 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6982 structure, field no longer exists.
6983
6984 2003-06-03 Theodore A. Roth <troth@openavr.org>
6985
6986 * remote.c (init_remote_state): Compute sizeof_g_packet by
6987 accumulation of the size of all registers instead of blindly using
6988 DEPRECATED_REGISTER_BYTES.
6989
6990 2003-06-03 Michael Snyder <msnyder@redhat.com>
6991
6992 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6993 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6994 for h8300sx.
6995
6996 2003-06-03 J. Brobecker <brobecker@gnat.com>
6997
6998 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6999 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7000
7001 2003-06-03 Andrew Cagney <cagney@redhat.com>
7002
7003 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7004 (sparc_convert_to_raw): Delete function.
7005 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7006 register_convert_to_virtual.
7007
7008 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7009
7010 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7011 layer if not dealing with a statically-linked threaded program.
7012
7013 2003-06-03 Kris Warkentin <kewarken@qnx.com>
7014
7015 * solib.c (solib_open): Update comment to reflect actual search order.
7016
7017 2003-06-03 Andrew Cagney <cagney@redhat.com>
7018
7019 * frame.c (get_frame_memory_signed): New function.
7020 (get_frame_memory, get_frame_memory_unsigned): New function.
7021 (get_frame_arch): New function.
7022 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7023 (get_frame_memory, get_frame_unsigned_memory): Declare.
7024 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7025 get_frame_memory_unsigned and get_frame_arch.
7026 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7027
7028 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7029
7030 * MAINTAINERS (write after approval): Add myself.
7031
7032 2003-06-03 Jim Blandy <jimb@redhat.com>
7033
7034 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7035 elements of gregset_t are 64 bits each, but access registers
7036 are still 32 bits, so they're packed two per gregset_t
7037 element. Unpack/pack them properly.
7038
7039 2003-06-02 David Carlton <carlton@bactrian.org>
7040
7041 * linespec.c (find_methods): Break out code into
7042 add_matching_methods and add_constructors.
7043 (add_matching_methods): New.
7044 (add_constructors): Ditto.
7045
7046 2003-06-02 Andrew Cagney <cagney@redhat.com>
7047
7048 * sparc-tdep.c (sparc_print_registers): Delete call to
7049 REGISTER_CONVERTIBLE.
7050 (sparc_gdbarch_init): Do not set register_convertible.
7051 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7052 * frv-tdep.c (frv_gdbarch_init): Ditto.
7053 * cris-tdep.c (cris_gdbarch_init): Ditto.
7054
7055 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
7056
7057 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7058 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7059 (syms_from_objfile): Ditto.
7060
7061 2003-06-03 Andreas Schwab <schwab@suse.de>
7062
7063 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7064 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7065
7066 2003-06-02 Richard Henderson <rth@redhat.com>
7067
7068 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7069 a member of all_reggroup.
7070
7071 2003-06-02 Richard Henderson <rth@redhat.com>
7072
7073 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7074 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7075 (alpha_lds, alpha_sts): New.
7076 (alpha_convert_register_p): Change from _register_convertible.
7077 (alpha_register_to_value): Change from _convert_to_virtual;
7078 restructure and fail for type sizes other than 4 or 8.
7079 (alpha_value_to_register): Similarly.
7080 (alpha_extract_return_value): Use alpha_sts.
7081 (alpha_store_return_value): Use alpha_lds.
7082 (alpha_gdbarch_init): Update hooks.
7083
7084 2003-06-02 Richard Henderson <rth@redhat.com>
7085
7086 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7087 regnum identifiers.
7088 (alpha_sigtramp_register_address): Likewise.
7089
7090 2003-06-02 Richard Henderson <rth@redhat.com>
7091
7092 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7093 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7094 * alpha-tdep.h: Declare them.
7095
7096 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7097 Remove zerobuf. Don't error on UNIQUE.
7098 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7099 (ALPHA_REGSET_UNIQUE): Provide default.
7100 (supply_gregset): Use alpha_supply_int_regs.
7101 (fill_gregset): Use alpha_fill_int_regs.
7102 (supply_fpregset): Use alpha_supply_fp_regs.
7103 (fill_fpregset): Use alpha_fill_fp_regs.
7104 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7105 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7106 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7107 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7108 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7109 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7110
7111 2003-06-02 Richard Henderson <rth@redhat.com>
7112
7113 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7114
7115 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7116 (alpha_store_return_value): Likewise.
7117
7118 2003-06-02 David Carlton <carlton@math.stanford.edu>
7119
7120 * block.c (contained_in): Add 'const' to arguments.
7121 (block_function): Ditto.
7122 * block.h: Update declarations for block_function and
7123 contained_in.
7124
7125 2003-06-02 David Carlton <carlton@math.stanford.edu>
7126
7127 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7128 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7129 * p-valprint.c (pascal_val_print): Ditto.
7130 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7131
7132 2003-06-02 Richard Henderson <rth@redhat.com>
7133
7134 * alpha-tdep.c (alpha_push_dummy_call): Use
7135 builtin_type_ieee_double_little instead of builtin_type_double.
7136
7137 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7138 sign-extension of 32-bit values.
7139 (alpha_store_return_value): Similarly.
7140
7141 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7142 (alpha_extract_return_value): Likewise.
7143 (alpha_store_return_value): Likewise.
7144
7145 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7146 (alpha_store_return_value): Error on IEEE Quad floats.
7147
7148 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7149 (alpha_extract_struct_value_address): Likewise.
7150 (alpha_store_return_value): Likewise.
7151 (alpha_store_struct_return): Remove.
7152 (alpha_gdbarch_init): Update hook registration to match.
7153
7154 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7155 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7156 macros where appropriate.
7157 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7158 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7159
7160 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7161 for SP, GP; void_func_ptr for PC; non-language-specific types
7162 for all others.
7163 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7164
7165 2003-06-02 Richard Henderson <rth@redhat.com>
7166
7167 * top.h (lim_at_start): Declare.
7168 * main.c (captured_main): Set it.
7169 * top.c (lim_at_start): Define.
7170 (command_loop): Use it instead of &environ.
7171 * event-top.c (command_handler): Likewise.
7172
7173 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7174
7175 * mipsnbsd-tdep.c: Update copyright years.
7176 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7177
7178 2003-06-01 Richard Henderson <rth@redhat.com>
7179
7180 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7181 (alpha-linux-tdep.o): Update dependencies.
7182 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7183 * alpha-mdebug-tdep.c: Remove unneeded includes.
7184
7185 2003-06-01 Richard Henderson <rth@redhat.com>
7186
7187 * alpha-tdep.c (alpha_register_reggroup_p): New.
7188 (alpha_gdbarch_init): Register it.
7189
7190 2003-06-02 Andrew Cagney <cagney@redhat.com>
7191
7192 * dwarfread.c: Eliminate "register"
7193 (decode_die_type): Eliminate assignment within "if".
7194 (struct_type, decode_array_element_type): Ditto.
7195 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7196 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7197 (decode_modified_type, completedieinfo): Ditto.
7198 * block.c: Eliminate "register".
7199 (blockvector_for_pc_sect): Eliminate assignment within "if".
7200 * cp-support.h (struct symbol): Opaque declaration.
7201 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7202
7203 2003-06-01 Richard Henderson <rth@redhat.com>
7204
7205 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7206 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7207
7208 2003-06-01 Adam Fedor <fedor@gnu.org>
7209
7210 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7211 * gdbarch.[ch]: Regenerate.
7212 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7213 (hppa_gdbarch_init): Set it in the gdbarch vector.
7214 * i386-tdep.c (i386_fetch_pointer_argument): New
7215 (i386_gdbarch_init): Set it into gdbarch.
7216 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7217 (rs6000_gdbarch_init): Set it in gdbarch.
7218 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7219 (sparc_gdbarch_init): Set it in gdbarch.
7220
7221 2003-06-01 Andrew Cagney <cagney@redhat.com>
7222
7223 * defs.h (extract_address): Delete declaration.
7224 * findvar.c (extract_address): Delete function.
7225 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7226 extract_address with the inline equivalent,
7227 extract_unsigned_integer.
7228 (xstormy16_extract_struct_value_address): Ditto.
7229 (xstormy16_pointer_to_address): Ditto.
7230 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7231 * v850-tdep.c (v850_push_arguments): Ditto.
7232 (v850_extract_return_value): Ditto.
7233 (v850_extract_struct_value_address): Ditto.
7234 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7235 (sparcnbsd_get_longjmp_target_64): Ditto.
7236 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7237 (get_longjmp_target): Ditto.
7238 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7239 (sh64_extract_struct_value_address): Ditto.
7240 (sh_push_arguments): Ditto.
7241 (sh64_push_arguments): Ditto.
7242 * remote-vxsparc.c (vx_read_register): Ditto.
7243 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7244 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7245 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7246 * mipsv4-nat.c (get_longjmp_target): Ditto.
7247 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7248 * mips-nat.c (get_longjmp_target): Ditto.
7249 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7250 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7251 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7252 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7253 * irix5-nat.c (get_longjmp_target): Ditto.
7254 * irix4-nat.c (get_longjmp_target): Ditto.
7255 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7256 (ia64_push_arguments): Ditto.
7257 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7258 * h8300-tdep.c (h8300_push_arguments): Ditto.
7259 (h8300_store_return_value): Ditto.
7260 (h8300_extract_struct_value_address): Ditto.
7261 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7262 (frv_push_arguments): Ditto.
7263 * avr-tdep.c (avr_pointer_to_address): Ditto.
7264 (avr_push_arguments): Ditto.
7265 * arm-tdep.c (arm_push_dummy_call): Ditto.
7266 (arm_get_longjmp_target): Ditto.
7267 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7268 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7269 (alpha_get_longjmp_target): Ditto.
7270
7271 * solib-irix.c (extract_mips_address): Inline extract_address,
7272 replacing it with extract_signed_integer.
7273 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7274 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7275 (first_link_map_member, open_symbol_file_object): Ditto.
7276 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7277 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7278 (LM_NEXT, LM_NAME): Ditto.
7279
7280 2003-06-01 Richard Henderson <rth@redhat.com>
7281
7282 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7283 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7284 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7285 (alpha_cannot_store_register): Likewise.
7286 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7287 * alpha-nat.c (supply_gregset): Likewise.
7288 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7289
7290 2003-06-01 Andrew Cagney <cagney@redhat.com>
7291
7292 * infcall.c (call_function_by_hand): Update comment on
7293 DEPRECATED_DUMMY_WRITE_SP.
7294
7295 * mips-tdep.c (mips_gdbarch_init): Do not set
7296 deprecated_dummy_write_sp.
7297 (mips_eabi_push_dummy_call): Set the SP register.
7298 (mips_o64_push_dummy_call): Set the SP register.
7299 (mips_o32_push_dummy_call): Set the SP register.
7300 (mips_n32n64_push_dummy_call): Set the SP register.
7301
7302 2003-06-01 Richard Henderson <rth@redhat.com>
7303
7304 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7305 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7306 (supply_gregset): Likewise.
7307 * alpha-tdep.c (alpha_store_return_value): Likewise.
7308 (alpha_get_longjmp_target): Likewise.
7309 (alpha_register_name): Constify array.
7310 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7311 deprecated_register_size, deprecated_register_bytes,
7312 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7313 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7314 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7315
7316 2003-06-01 Richard Henderson <rth@redhat.com>
7317
7318 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7319 from arg_reg_buffer to regcache to avoid double conversion.
7320
7321 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7322
7323 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7324 SP_REGNUM.
7325 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7326 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7327
7328 2003-06-01 Richard Henderson <rth@redhat.com>
7329
7330 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7331 (decode_frame_entry): Set it. Skip FDE augmentation.
7332
7333 2003-06-01 Richard Henderson <rth@redhat.com>
7334
7335 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7336 not overlapping PC_REGNUM.
7337
7338 2003-06-01 Richard Henderson <rth@redhat.com>
7339
7340 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7341 alpha_push_arguments. Don't dump argument register data to
7342 the target stack. Fix float and 128-bit long double semantics.
7343 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7344 (alpha_fix_call_dummy): Remove.
7345 (alpha_call_dummy_words): Remove.
7346 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7347
7348 2003-06-01 Richard Henderson <rth@redhat.com>
7349
7350 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7351
7352 2003-06-01 Andrew Cagney <cagney@redhat.com>
7353
7354 * mips-tdep.c (is_mips16_addr): New function.
7355 (make_mips16_addr, unmake_mips16_addr): New functions.
7356 (pc_is_mips16, mips_fetch_instruction): Use.
7357 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7358 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7359 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7360 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7361 TARGET_MIPS.
7362 * config/mips/tm-mips.h: Update copyright.
7363 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7364 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7365 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7366 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7367 (TM_PRINT_INSN_MACH): Delete.
7368 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7369
7370 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7371 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7372 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7373 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7374 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7375 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7376 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7377 mips*-*-riscos* and mips*-*-sysv* onto mips.
7378 * config/mips/mips64.mt: New file.
7379 * config/mips/mips.mt: New file.
7380 * config/mips/littlemips.mt: Delete file.
7381 * config/mips/decstation.mt: Delete file.
7382 * config/mips/vr4300el.mt: Delete file.
7383 * config/mips/vr5000el.mt: Delete file.
7384 * config/mips/vr5000.mt: Delete file.
7385 * config/mips/vr4100.mt: Delete file.
7386 * config/mips/vr4xxxel.mt: Delete file.
7387 * config/mips/vr4300.mt: Delete file.
7388 * config/mips/vr4xxx.mt: Delete file.
7389 * config/mips/bigmips.mt: Delete file.
7390 * config/mips/bigmips64.mt: Delete file.
7391 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7392 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7393 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7394 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7395 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7396 "tm-bigmips.h".
7397 * config/mips/tm-irix3.h: Ditto.
7398 * config/mips/tm-mipsv4.h: Ditto.
7399 * config/mips/tm-embed.h: Ditto.
7400 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7401 "tm-bigmips64.h".
7402 * config/mips/tm-vr5000el.h: Delete file.
7403 * config/mips/tm-tx39l.h: Delete file.
7404 * config/mips/tm-vr4300el.h: Delete file.
7405 * config/mips/tm-vr4xxxel.h: Delete file.
7406 * config/mips/tm-vr4300.h: Delete file.
7407 * config/mips/tm-vr4100.h: Delete file.
7408 * config/mips/tm-vr4xxx.h: Delete file.
7409 * config/mips/tm-vr5000.h: Delete file.
7410 * config/mips/tm-embedl64.h: Delete file.
7411 * config/mips/tm-embedl.h: Delete file.
7412 * config/mips/tm-embed64.h: Delete file.
7413 * config/mips/tm-bigmips64.h: Delete file.
7414 * config/mips/tm-bigmips.h: Delete file.
7415
7416 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7417
7418 Fix gdb/1216.
7419 * shnbsd-nat.c: Include "sh-tdep.h".
7420
7421 From Richard Henderson <rth@redhat.com>:
7422 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7423
7424 2003-05-31 Andrew Cagney <cagney@redhat.com>
7425
7426 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7427 forward declaration.
7428 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7429 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7430 (mips_find_saved_regs): Use set_reg_offset.
7431 (mips_frame_init_saved_regs): Delete function.
7432 (mips_pop_frame): Call mips_find_saved_regs instead of
7433 DEPRECATED_FRAME_INIT_SAVED_REGS.
7434
7435 2003-05-31 Andrew Cagney <cagney@redhat.com>
7436
7437 * mips-tdep.c (mips_gdbarch_init): Do not set
7438 deprecated_max_register_raw_size, register_virtual_size, and
7439 deprecated_max_register_virtual_size.
7440
7441 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7442
7443 * i386-tdep.c: Include "dwarf2-frame.h".
7444 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7445 * Makefile.in (i386-tdep.o): Update dependencies.
7446
7447 * dwarf2-frame.c, dwarf2-frame.h: New files.
7448 * Makefile.in (SFILES): Add dwarf2-frame.c.
7449 (dwarf2_frame_h): Define.
7450 (COMMON_OBS): Add dwarf2-frame.o.
7451 (dwarf2-frame.o): Add dependencies.
7452
7453 2003-05-31 Andreas Jaeger <aj@suse.de>
7454
7455 * x86-64-linux-nat.c: Fix comment.
7456
7457 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7458
7459 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7460 function signature.
7461
7462 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7463 have a sigcontext_addr handler.
7464 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7465 sigcontext_addr handler.
7466
7467 2003-05-31 Andrew Cagney <cagney@redhat.com>
7468
7469 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7470 (print_fp_register_row): Replace do_fp_register_row.
7471 (mips_print_fp_register): Add "file" and "frame" parameters.
7472 (mips_print_register): Add "file" and "frame" parameters.
7473 (mips_print_registers_info): Replace mips_do_registers_info.
7474 (mips_gdbarch_init): Set print_registers_info instead of
7475 deprecated_do_registers_info.
7476 (mips_read_fp_register_single): Add "frame" parameter.
7477 (mips_read_fp_register_double): Add "frame" parameter.
7478
7479 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7480
7481 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7482 Fixes a bug where GDB would print the wrong register names for
7483 targets without SSE.
7484
7485 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7486 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7487 registers.
7488
7489 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7490 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7491 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7492 TDEP->sc_sp_offset.
7493
7494 From Michal Ludvig <mludvig@suse.cz>:
7495 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7496 and `sc_num_regs'.
7497 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7498 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7499 I386_ST0_REGNUM): Move here from...
7500 * i386-tdep.c: ... here.
7501 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7502 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7503 registers if possible.
7504 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7505 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7506 Remove variables.
7507 (i386bsd_sc_reg_offset): New variable.
7508 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7509 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7510 TDEP->sc_sp_offset.
7511 (i386fbsd_sc_reg_offset): New variable.
7512 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7513 TDEP->sc_num_regs.
7514 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7515 variables.
7516 (i386fbsd4_sc_reg_offset): New variable.
7517 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7518 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7519 TDEP->sc_sp_offset.
7520 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7521 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7522 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7523 Remove variables.
7524 (i386nbsd_sc_reg_offset): New variable.
7525 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7526 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7527 TDEP->sc_sp_offset.
7528 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7529 Remove variables.
7530 (i386obsd_sc_reg_offset): New variable.
7531 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7532 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7533 TDEP->sc_sp_offset.
7534 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7535 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7536 for frame pointer offset in `struct sigcontext'.
7537
7538 2003-05-31 Andrew Cagney <cagney@redhat.com>
7539
7540 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7541 architecture methods call_dummy_words, sizeof_call_dummy_words,
7542 push_return_address, store_struct_return, and fix_call_dummy. Set
7543 push_dummy_call instead of deprecated_push_arguments.
7544 (mips_store_struct_return): Delete function.
7545 (mips_fix_call_dummy): Delete function.
7546 (mips_push_return_address): Delete function.
7547 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7548 RA_REGNUM and T9_REGNUM.
7549 (mips_n32n64_push_dummy_call): Ditto for
7550 mips_n32n64_push_arguments.
7551 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7552 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7553
7554 2003-05-31 Andrew Cagney <cagney@redhat.com>
7555
7556 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7557 "dummy_addr" to "bp_addr".
7558 * infcall.c (call_function_by_hand): Pass "funaddr" to
7559 gdbarch_push_dummy_call.
7560 * gdbarch.h, gdbarch.c: Re-generate.
7561 * i386-tdep.c (i386_push_dummy_call): Update.
7562 * arm-tdep.c (arm_push_dummy_call): Update.
7563 * d10v-tdep.c (d10v_push_dummy_call): Update.
7564
7565 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7566
7567 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7568 variable declarations.
7569 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7570 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7571 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7572 x86_64_init_frame_pc, x86_64_init_frame_pc,
7573 x86_64_function_has_prologue): Remove prototypes.
7574 (X86_64_NUM_GREGS): New define.
7575 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7576 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7577 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7578 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7579 XMM1_REGNUM): Remove defines.
7580 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7581 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7582 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7583 X86_64_XMM1_REGNUM): New defines.
7584 (struct x86_64_register_info): Renamed from `struct
7585 register_info'. Remove `size' member.
7586 (x86_64_register_info_table): Remove variable.
7587 (x86_64_register_info): New variable.
7588 (X86_64_NUM_REGS): New define.
7589 (X86_64_NUM_GREGS): Remove define.
7590 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7591 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7592 Remove variables.
7593 (x86_54_dwarf2_reg_to_regnum): Remove function.
7594 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7595 (x86_64_dwarf_reg_to_regnum): New function.
7596 (x86_64_register_name): Rewrite.
7597 (x86_64_register_raw_size): Remove function.
7598 (x86_64_register_byte_table): Remove variable.
7599 (x86_64_register_byte): Remove function.
7600 (x86_64_register_virtual_type): Remove function.
7601 (x86_64_register_type): New function.
7602 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7603 x86_64_register_convert_to_raw): Remove functions.
7604 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7605 (x86_64_use_struct_convention): Make static. Adjust for renamed
7606 defines.
7607 (x86_64_frame_init_saved_regs): Remove function.
7608 (x86_64_push_arguments): Make static. Change to accept a regcache
7609 as argument.
7610 (x86_64_store_return_value, x86_64_extract_return_value): Make
7611 static. Rewrite based on i386 counterparts.
7612 (x86_64_push_dummy_call): New function.
7613 (X86_64_NUM_SAVED_REGS): New define.
7614 (x86_64_register_number): Remove function.
7615 (x86_64_store_struct_return): Remove function.
7616 (x86_64_frameless_function_invocation,
7617 x86_64_function_has_prologue): Remove functions.
7618 (PROLOG_BUFSIZE): Remove define.
7619 (struct x86_64_frame_cache): New structure.
7620 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7621 x86_64_frame_cache, x86_64_frame_this_id,
7622 x86_64_frame_prev_register, x86_64_frame_p,
7623 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7624 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7625 functions.
7626 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7627 variables.
7628 (x86_64_skip_prologue): Rewrite in terms of
7629 x86_64_analyze_prologue.
7630 (x86_64_frame_base_address): New function.
7631 (x86_64_frame_base): New variable.
7632 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7633 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7634 set deprecated_fp_regnum, deprecated_register_size,
7635 deprecated_register_bytes, register_raw_size, register_byte,
7636 register_virtual_type, register_convertiable,
7637 register_convert_to_virtual, convert_to_raw,
7638 deprecated_get_saved_register, deprecated_target_read_fp,
7639 deprecated_push_arguments, deprecated_push_return_address,
7640 deprecated_pop_frame, deprecated_store_struct_return,
7641 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7642 frameless_function_invocation, deprecated_frame_saved_pc,
7643 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7644 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7645 deprecated_init_frame_pc and virtual_frame_pointer. Call
7646 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7647 and x86_64_frame_p. Call frame_base_set_default to register
7648 x86_64_frame_base.
7649 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7650 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7651 (_initialize_x86_64_tdep): Remove function.
7652 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7653 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7654 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7655 define.
7656 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7657 (x86_64_linux_sigcontext_addr): Rewrite.
7658 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7659 x86_64_linux_frame_saved_pc): Remove functions.
7660 (x86_64_linux_pc_in_sigtramp): Renamed from
7661 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7662 trampoline.
7663 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7664 Remove_functions.
7665 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7666 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7667 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7668 (x86_64_regmap): Rename to regmap.
7669 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7670 x86_64_num_gregs.
7671 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7672 x86_64_regmap.
7673 (x86_64_fxsave_offset): Remove function.
7674 (supply_fpregset): Simply call x86_64_supply_fxsave.
7675 (fill_fpregset): Simply call x86_64_fill_fxsave.
7676 (fetch_inferior_registers, store_inferior_registers): Avoid
7677 asignment in if-statement.
7678 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7679 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7680 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7681 (fetch_core_registers): Remove function.
7682 (linux_elf_core_fns): Remove.
7683 (offsetoff): Don't define.
7684 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7685 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7686 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7687 add core-regset.o.
7688 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7689 protection against multiple includes instead of NM_X86_64_h. Add
7690 various comments. Include "config/nm-linux.h". Don't include
7691 <signal.h>.
7692 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7693 GET_THREAD_SIGNALS): Remove defines.
7694 (x86_64_register_u_addr, kernel_u_size,
7695 lin_thread_get_thread_signals): Remove prototypes.
7696 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7697 [HAVE_LINK_H]: Don't include "solib.h".
7698 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7699 * config/i386/tm-x86-64linux.h: Fix comments.
7700 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7701 x86-64-tdep.o): Update dependencies.
7702
7703 2003-05-30 Andrew Cagney <cagney@redhat.com>
7704
7705 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7706 Change parameter type to a "struct regcache *".
7707
7708 * gdbarch.sh: Regardless of the multi-arch level, always define
7709 the macro when not already defined.
7710 * gdbarch.h, gdbarch.c: Re-generate.
7711
7712 2003-05-30 Richard Henderson <rth@redhat.com>
7713
7714 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7715 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7716 (alpha_mdebug_frame_this_id): Likewise.
7717 (alpha_mdebug_frame_prev_register): Likewise.
7718 (alpha_mdebug_frame_base_address): Likewise.
7719 (alpha_mdebug_frame_locals_address): Likewise.
7720 (alpha_mdebug_frame_args_address): Likewise.
7721 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7722 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7723 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7724 loop increment.
7725 (alpha_heuristic_frame_this_id): Make static.
7726 (alpha_heuristic_frame_prev_register): Likewise.
7727 (alpha_heuristic_frame_base_address): Likewise.
7728 * alpha-tdep.h: Update.
7729
7730 2003-05-30 Mark Kettenis <kettenis@gnu.org>
7731
7732 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7733 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7734 defenitions.
7735 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7736 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7737 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7738 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7739 I386_ST0_REGNUM): New defines.
7740 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7741 codestream_get): Remove define.
7742 (codestream_next_addr, condestream_addr, condestream_buf,
7743 codestream_off, codestream_cnt): Remove variables.
7744 (codestream_fill, codestream_seek, codestream_read): Remove
7745 functions.
7746 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7747 functionality.
7748 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7749 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7750 i386_frame_saved_pc, i386_saved_pc_after_call,
7751 i386_frame_num_args, i386_frame_init_saved_regs,
7752 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7753 i386_push_arguments): Remove functions.
7754 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7755 functionality. Use i386_analyze_prologue instead of
7756 i386_get_frame_setup.
7757 (I386_NUM_SAVED_REGS): New define.
7758 (struct i386_frame_cache): New structure.
7759 (i386_alloc_frame_cache, i386_analyze_struct_return,
7760 i386_skip_probe, i386_analyze_frame_setup,
7761 i386_analyze_register_saves, i386_analyze_prologue,
7762 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7763 i386_frame_prev_register, i386_sigtramp_frame_cache,
7764 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7765 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7766 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7767 New functions.
7768 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7769 New variables.
7770 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7771 I386_EAX_REGNUM and I386_EDX_REGNUM.
7772 (i386_extract_return_value, i386_store_return_value): Use
7773 I386_ST0_REGNUM where appropriate.
7774 (i386_extract_struct_value_address): Rewrite to use extract_address.
7775 (i386_svr4_pc_in_sigtramp): Add comment.
7776 (i386_svr4_sigcontext_addr): Rewrite.
7777 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7778 TDEP->sc_sp_offset.
7779 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7780 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7781 of new defines. Set push_dummy_call, don't set
7782 deprecated_push_arguments, deprecated_push_return_address,
7783 deprecated_pop_frame. Don't set parm_boundary. Don't set
7784 deprecated_frame_chain, deprecated_frame_saved_pc,
7785 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7786 save_dummy_frame_tos, unwind_pc. Call
7787 frame_unwind_append_predicate and frame_base_set_default. Don't
7788 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7789 Don't set frameless_function_invocation. Don't set
7790 deprecated_register_bytes, deprecated_register_size,
7791 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7792 * i386-linux-tdep.c: Fix formatting in some comments.
7793 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7794 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7795 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7796 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7797 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7798 redundant parentheses.
7799 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7800 (i386_linux_sigcontext_addr): Use it. Rewrite.
7801 (find_minsym_and_objfile): Change name of second argument.
7802 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7803 changed. Use frame_pc_unwind instead of
7804 DEPRECATED_SAVED_PC_AFTER_CALL.
7805 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7806 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7807 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7808 unwinder.
7809 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7810 "dummy-frame.h".
7811 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7812 (_initialize_i386_cygwin_tdep): New prototype.
7813 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7814 deprecated_frame_chain_valid.
7815 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7816 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7817 Rely on the SVR4 defaults.
7818 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7819 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7820
7821 2003-05-30 Andrew Cagney <cagney@redhat.com>
7822
7823 * infcall.c (call_function_by_hand): Always call
7824 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7825
7826 2003-05-30 Richard Henderson <rth@redhat.com>
7827
7828 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7829 increment.
7830
7831 2003-05-29 Jim Blandy <jimb@redhat.com>
7832
7833 Use gdbarch methods for solib stuff on PowerPC Linux.
7834 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7835 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7836 show through.
7837 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7838 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7839 giving the same effect as the #definitions above.
7840
7841 2003-05-29 Adam Fedor <fedor@gnu.org>
7842
7843 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7844 (find_implementation_from_class): Replace it with the standard
7845 case i.e. do nothing.
7846
7847 2003-05-29 Richard Henderson <rth@redhat.com>
7848
7849 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7850 (alpha_linux_sigtramp_offset): Use it. Make static.
7851 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7852 update for new frame model.
7853 * alpha-mdebug-tdep.c: New file.
7854 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7855 (alpha_osf1_init_abi): Install it.
7856 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7857 (linked_proc_desc_table): Remove.
7858 (alpha_frame_past_sigtramp_frame): Remove.
7859 (alpha_dynamic_sigtramp_offset): Remove.
7860 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7861 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7862 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7863 (push_sigtramp_desc): Remove.
7864 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7865 (alpha_cannot_store_register): Likewise.
7866 (alpha_sigcontext_addr): Remove.
7867 (alpha_find_saved_regs): Remove.
7868 (alpha_frame_init_saved_regs): Remove.
7869 (alpha_init_frame_pc_first): Remove.
7870 (read_next_frame_reg): Remove.
7871 (alpha_frame_saved_pc): Remove.
7872 (alpha_saved_pc_after_call): Remove.
7873 (temp_proc_desc, temp_saved_regs): Remove.
7874 (alpha_about_to_return): Remove.
7875 (cached_proc_desc): Remove.
7876 (alpha_frame_chain): Remove.
7877 (alpha_print_extra_frame_info): Remove.
7878 (alpha_init_extra_frame_info): Remove.
7879 (alpha_frame_locals_address): Remove.
7880 (alpha_frame_args_address): Remove.
7881 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7882 (alpha_push_dummy_frame): Remove.
7883 (alpha_pop_frame): Remove.
7884 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7885 (alpha_read_insn): New.
7886 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7887 for different insn encodings.
7888 (alpha_in_lenient_prologue): Remove.
7889 (struct alpha_sigtramp_unwind_cache): New.
7890 (alpha_sigtramp_frame_unwind_cache): New.
7891 (alpha_sigtramp_register_address): New.
7892 (alpha_sigtramp_frame_this_id): New.
7893 (alpha_sigtramp_frame_prev_register): New.
7894 (alpha_sigtramp_frame_unwind): New.
7895 (alpha_sigtramp_frame_p): New.
7896 (struct alpha_heuristic_unwind_cache): New.
7897 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7898 don't count nop insns that occur between functions.
7899 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7900 heuristic_proc_desc, but without the mdebug wrapping.
7901 (alpha_heuristic_frame_this_id): New.
7902 (alpha_heuristic_frame_prev_register): New.
7903 (alpha_heuristic_frame_unwind): New.
7904 (alpha_heuristic_frame_p): New.
7905 (alpha_heuristic_frame_base_address): New.
7906 (alpha_heuristic_frame_base): New.
7907 (alpha_unwind_dummy_id): New.
7908 (alpha_unwind_pc): New.
7909 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7910 frame related deprecated initializations; install replacements.
7911 (alpha_dump_tdep): Remove.
7912 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7913 (alpha_read_insn, alpha_after_prologue,
7914 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7915 alpha_heuristic_frame_prev_register,
7916 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7917 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7918 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7919 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7920
7921 2003-05-29 Andrew Cagney <cagney@redhat.com>
7922
7923 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7924 dependant on the availability of ASSERT_FUNCTION.
7925 (ASSERT_FUNCTION): Do not define when there is no function name.
7926
7927 2003-05-29 Kevin Buettner <kevinb@redhat.com>
7928
7929 From Jimi X <jimix@watson.ibm.com>:
7930 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7931
7932 2003-05-28 Jim Blandy <jimb@redhat.com>
7933
7934 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7935 argument to ptrace to int; the system headers should give it the
7936 right type, and pointers don't fit in ints on powerpc64-*-*.
7937
7938 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7939
7940 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7941 DW_TAG_catch_block.
7942
7943 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7944
7945 * stabsread.c (dbx_lookup_type): Make static.
7946 (read_type): Ditto.
7947 (add_undefined_type): Ditto.
7948 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7949 not export.
7950
7951 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7952
7953 * hpread.c (hpread_has_name): Make static.
7954 (hpread_psymtab_to_symtab): Ditto.
7955 (file_exists): Ditto.
7956 (hpread_call_pxdb): Ditto.
7957 (hpread_pxdb_needed): Ditto.
7958 (hpread_quick_traverse): Ditto.
7959 (hpread_get_header): Ditto.
7960 (hpread_get_lntt): Ditto.
7961 (hpread_get_slt): Ditto.
7962 (class_of): Ditto.
7963
7964 2003-05-25 Andreas Schwab <schwab@suse.de>
7965
7966 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7967 stack_align and deprecated_extra_stack_alignment_needed.
7968 (m68k_stack_align): Delete.
7969
7970 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7971 (m68k_register_virtual_size): Likewise.
7972 (altos_skip_prologue): Remove obsolete function.
7973 (isi_frame_num_args): Likewise.
7974 (news_frame_num_args): Likewise.
7975 (m68k_fix_call_dummy): Make static.
7976 (m68k_push_dummy_frame): Likewise.
7977 (m68k_pop_frame): Likewise.
7978 (m68k_skip_prologue): Likewise.
7979 (m68k_frame_init_saved_regs): Likewise.
7980 (m68k_saved_pc_after_call): Likewise.
7981 (m68k_get_longjmp_target): Make multi-arch.
7982 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7983 structure. Register m68k_get_longjmp_target if enabled.
7984 * m68k-tdep.h (struct gdbarch_tdep): Define.
7985 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7986
7987 * Makefile.in (config.status): Also depend on configure.tgt
7988 and configure.host.
7989 (m68klinux-tdep.o): Update dependencies.
7990 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7991 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7992 (M68K_LINUX_JB_PC): Define.
7993 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7994 and take additional parameter.
7995 (m68k_linux_sigtramp_saved_pc): Update.
7996 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7997 m68k_linux_pc_in_sigtramp, in_plt_section,
7998 find_solib_trampoline_target.
7999 * config/m68k/tm-linux.h: Don't include any tm headers.
8000 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8001 (JB_ELEMENT_SIZE): Likewise.
8002 (JB_PC): Likewise.
8003 (GET_LONGJMP_TARGET): Likewise.
8004 (IN_SIGTRAMP): Likewise.
8005 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8006
8007 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8008
8009 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8010 (sparc32_push_arguments): Re-implement by calling
8011 sparc32_do_push_arguments.
8012
8013 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8014
8015 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8016 SPARC_O1_REGNUM): New defines.
8017 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8018 (sparc32_store_return_value): New function.
8019 (sparc_extract_struct_value_address): Rewrite to operate on a
8020 regcache.
8021 (sparc_gdbarch_init): Don't set
8022 deprecated_extract_struct_value_address. Set
8023 extract_struct_value_address instead. Don't set
8024 deprecated_extract_return_value and deprecated_store_return_value
8025 for 32-bit targets. Set extract_return_value and
8026 store_return_value instead.
8027 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
8028 DEPRECTAED_EXTRACT_RETURN_VALUE,
8029 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8030 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8031 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8032 (sparc_store_return_value): Remove prototype.
8033 (sparc32_store_return_value): New prototype.
8034 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8035 Adjust prototypes.
8036
8037 2003-05-24 Mark Kettenis <kettenis@gnu.org>
8038
8039 * sparcnbsd-tdep.c: Include "gdb_string.h".
8040
8041 2003-05-23 Andrew Cagney <cagney@redhat.com>
8042
8043 * p-valprint.c (pascal_val_print): Replace extract_address with
8044 the inline equivalent extract_unsigned_integer.
8045 * jv-valprint.c (java_value_print): Ditto.
8046 * ada-valprint.c (ada_val_print_1): Ditto.
8047 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8048
8049 2003-05-23 Theodore A. Roth <troth@openavr.org>
8050
8051 * blockframe.c (frameless_look_for_prologue): Remove unused
8052 after_prologue variable.
8053
8054 2003-05-23 Mark Kettenis <kettenis@gnu.org>
8055
8056 * blockframe.c (get_pc_function_start): Rewrite to avoid
8057 asignments in if-statements.
8058
8059 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8060
8061 Committed by Elena Zannoni <ezannoni@redhat.com>.
8062 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8063 files, don't relocate absolute symbols (and do use mst_abs).
8064
8065 2003-05-23 Andrew Cagney <cagney@redhat.com>
8066
8067 * objc-lang.c: Include "gdb_assert.h".
8068 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8069 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8070 (gdb_check, gdb_check_fatal): Delete functions.
8071 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8072 gdb_assert.
8073 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8074 * Makefile.in (objc-lang.o): Update dependencies.
8075
8076 2003-05-22 Ian Lance Taylor <ian@airs.com>
8077
8078 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8079 with fprintf_filtered, not fprintf_unfiltered.
8080
8081 2003-05-22 Andrew Cagney <cagney@redhat.com>
8082
8083 * stack.c (frame_info): Inline extract_address, replacing it with
8084 extract_unsigned_integer.
8085 * findvar.c (unsigned_pointer_to_address): Ditto.
8086 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8087 * dwarf2expr.c (dwarf2_read_address): Ditto.
8088 * frame.c (frame_pc_unwind): Update comment.
8089 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8090
8091 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8092
8093 * infptrace.c (detach): Call print_sys_errmsg rather than
8094 perror_with_name to issue warning message when errno is non-zero
8095 after calling ptrace detach.
8096
8097 2003-05-21 J. Brobecker <brobecker@gnat.com>
8098
8099 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8100 macro definitions from here...
8101 * hppa-tdep.c: ...to there.
8102
8103 2003-05-20 Kevin Buettner <kevinb@redhat.com>
8104
8105 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8106 register_ptrace_addr(). Fix all callers.
8107
8108 2003-05-21 Andreas Schwab <schwab@suse.de>
8109
8110 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8111 dependencies.
8112 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8113 end.
8114 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8115 (_initialize_m68k_linux_tdep): New function.
8116 (m68k_linux_frame_saved_pc): Make static.
8117 (m68k_linux_extract_return_value): Likewise.
8118 (m68k_linux_store_return_value): Likewise.
8119 (m68k_linux_extract_struct_value_address): Likewise.
8120 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8121 Remove.
8122 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8123 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8124 (DEPRECATED_FRAME_SAVED_PC): Remove.
8125
8126 2003-05-20 Kris Warkentin <kewarken@qnx.com>
8127
8128 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8129 regset numbering rather than our own.
8130
8131 2003-05-19 David Carlton <carlton@bactrian.org>
8132
8133 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8134
8135 2003-05-19 David Carlton <carlton@bactrian.org>
8136
8137 Partial fix for PR c++/827.
8138 * cp-support.h: Include symtab.h.
8139 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8140 * cp-namespace.c: Update contributors.
8141 (cp_lookup_symbol_nonlocal): New.
8142 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8143 (lookup_symbol_file): Ditto.
8144 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8145 * block.h: Declare block_scope, block_using, block_global_block.
8146 * block.c (block_scope): New.
8147 (block_using, block_global_block): Ditto.
8148 * Makefile.in (cp_support_h): Depend on symtab_h.
8149 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8150
8151 2003-05-19 David Carlton <carlton@bactrian.org>
8152
8153 * language.h (struct language_defn): Add 'la_value_of_this'
8154 and 'la_lookup_symbol_nonlocal' members.
8155 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8156 lookup_symbol_static, lookup_symbol_global,
8157 lookup_symbol_aux_block.
8158 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8159 if we should search fields of this and how to do static/global
8160 lookup.
8161 (lookup_symbol_aux_block): Make extern.
8162 (basic_lookup_symbol_nonlocal): New.
8163 (lookup_symbol_static, lookup_symbol_global): Ditto.
8164 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8165 'la_lookup_symbol_nonlocal' members.
8166 * c-lang.c (c_language_defn, cplus_language_defn)
8167 (asm_language_defn, minimal_language_defn): Ditto.
8168 * jv-lang.c (java_language_defn): Ditto.
8169 * language.c (unknown_language_defn, auto_language_defn)
8170 (local_language_defn): Ditto.
8171 * m2-lang.c (m2_language_defn): Ditto.
8172 * objc-lang.c (objc_language_defn): Ditto.
8173 * scm-lang.c (scm_language_defn): Ditto.
8174 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8175 * p-lang.c (pascal_language_defn): Ditto for both.
8176 * Makefile.in (f-lang.o): Depend on value_h.
8177 (p-lang.o): Ditto.
8178
8179 2003-05-19 David Carlton <carlton@bactrian.org>
8180
8181 * block.h: Declare block_static_block.
8182 * block.c (block_static_block): New.
8183 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8184 lookup_symbol_aux_local, calling block_static_block instead.
8185 (lookup_symbol_aux_local): Delete 'static_block' argument.
8186
8187 2003-05-19 David Carlton <carlton@bactrian.org>
8188
8189 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8190
8191 2003-05-19 Michal Ludvig <mludvig@suse.cz>
8192
8193 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8194 register numbers mapping.
8195
8196 2003-05-18 Adam Fedor <fedor@gnu.org>
8197
8198 * symtab.c (completion_list_objc_symbol): New function.
8199 (make_symbol_completion_list): Use it to add ObjC symbols
8200 when looking though the list.
8201 (language_search_unquoted_string): New function.
8202 (make_file_symbol_completion_list): Use it.
8203
8204 2003-05-18 Andreas Schwab <schwab@suse.de>
8205
8206 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8207 dependencies.
8208 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8209 as m68k_linux_extract_return_value.
8210 (DEPRECATED_STORE_RETURN_VALUE): Define as
8211 m68k_linux_store_return_value.
8212 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8213 m68k_linux_extract_struct_value_address.
8214 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8215 get_next_frame, get_frame_base, get_frame_pc.
8216 (m68k_linux_frame_saved_pc): Use get_frame_base.
8217 (m68k_linux_extract_return_value): New function.
8218 (m68k_linux_store_return_value): New function.
8219 (m68k_linux_extract_struct_value_address): New function.
8220 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8221
8222 * c-exp.y (typebase): Remove duplicate occurence of
8223 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8224 of lookup_signed_typename.
8225
8226 2003-05-18 Mark Kettenis <kettenis@gnu.org>
8227
8228 * dwarf2loc.c (find_location_expression): Change type of second
8229 argument to `size_t *'.
8230 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8231 for size variable.
8232
8233 2003-05-18 David Carlton <carlton@bactrian.org>
8234
8235 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8236 'linkage_name'. Add comment.
8237 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8238 'linkage_name'.
8239 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8240 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8241 (lookup_block_symbol): Ditto.
8242
8243 2003-05-16 Andrew Cagney <cagney@redhat.com>
8244
8245 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8246 * gdbarch.h, gdbarch.c: Re-generate.
8247 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8248 * TODO (REGISTER_BYTES): Delete reference.
8249 * alpha-tdep.c (alpha_gdbarch_init): Update.
8250 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8251 * x86-64-tdep.c (x86_64_init_abi): Update.
8252 * vax-tdep.c (vax_gdbarch_init): Update.
8253 * v850-tdep.c (v850_gdbarch_init): Update.
8254 * sparc-tdep.c (sparc_gdbarch_init): Update.
8255 * sh-tdep.c (sh_gdbarch_init): Update.
8256 * s390-tdep.c (s390_gdbarch_init): Update.
8257 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8258 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8259 (ns32k_gdbarch_init_32382): Update.
8260 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8261 * mcore-tdep.c (mcore_gdbarch_init): Update.
8262 * m68k-tdep.c (m68k_gdbarch_init): Update.
8263 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8264 * ia64-tdep.c (ia64_gdbarch_init): Update.
8265 * i386-tdep.c (i386_gdbarch_init): Update.
8266 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8267 * hppa-tdep.c (hppa_gdbarch_init): Update.
8268 * h8300-tdep.c (h8300_gdbarch_init): Update.
8269 * frv-tdep.c (frv_gdbarch_init): Update.
8270 * cris-tdep.c (cris_gdbarch_init): Update.
8271 * avr-tdep.c (avr_gdbarch_init): Update.
8272 * arm-tdep.c (arm_gdbarch_init): Update.
8273 * sparc-tdep.c (sparc_pop_frame): Update.
8274 * rs6000-tdep.c (rs6000_pop_frame): Update.
8275 * remote.c (init_remote_state): Update.
8276 (remote_prepare_to_store): Update.
8277 * remote-vx.c (vx_prepare_to_store): Update.
8278 * remote-sds.c (sds_fetch_registers): Update.
8279 (sds_prepare_to_store): Update.
8280 * remote-array.c: Update.
8281 * regcache.c (init_legacy_regcache_descr): Update.
8282 (init_regcache_descr): Update.
8283 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8284 (mips_o64_extract_return_value): Update.
8285 * irix5-nat.c (fetch_core_registers): Update.
8286 * irix4-nat.c (fetch_core_registers): Update.
8287 * i386-tdep.h: Update.
8288 * hppa-tdep.c (pa_do_registers_info): Update.
8289 (pa_do_strcat_registers_info): Update.
8290 * cris-tdep.c (cris_register_bytes_ok): Update.
8291 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8292 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8293 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8294 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8295 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8296 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8297 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8298 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8299 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8300 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8301 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8302 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8303 (REGISTER_BYTES_OK): Update.
8304 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8305 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8306
8307 2003-05-16 Ian Lance Taylor <ian@airs.com>
8308
8309 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8310 (vax_print_insn, print_insn_arg): Remove static functions.
8311 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8312 print_insn_vax from opcodes library.
8313 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8314
8315 2003-05-15 Andrew Cagney <cagney@redhat.com>
8316
8317 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8318 * target.h (memory_breakpoint_from_pc): Delete declaration.
8319 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8320 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8321 * monitor.c (monitor_insert_breakpoint): Use
8322 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8323 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8324 * gdbarch.h, gdbarch.c: Re-generate.
8325 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8326 (sparc_gdbarch_init): Set breakpoint_from_pc to
8327 sparc_breakpoint_from_pc.
8328 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8329 (BREAKPOINT_FROM_PC): Define.
8330 (sparc_breakpoint_from_pc): Declare.
8331 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8332 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8333 (BREAKPOINT_FROM_PC): Define.
8334 (BREAKPOINT): Delete macro.
8335 * target.h: Update comment.
8336 * s390-tdep.c (s390_gdbarch_init): Update comments.
8337 * remote.c: Update comments.
8338 * remote-mips.c: Update comments.
8339 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8340 * mem-break.c: Update comment.
8341 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8342 (ia64_memory_insert_breakpoint): Update.
8343 * config/sparc/tm-sparc.h: Update comment.
8344 * config/pa/tm-hppa64.h: Update comment.
8345 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8346 (rs6000_breakpoint_from_pc): Update.
8347 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8348 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8349 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8350 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8351 (mips_breakpoint_from_pc): Update.
8352 (mips_dump_tdep): Update.
8353
8354 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8355 * minsyms.c (lookup_minimal_symbol): Inline
8356 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8357
8358 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8359 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8360 * p-lang.c (pascal_printstr): Ditto.
8361 * objc-lang.c (objc_printstr): Ditto.
8362 * m2-lang.c (m2_printstr): Ditto.
8363 * jv-valprint.c (java_print_value_fields): Ditto.
8364 * f-lang.c (f_printstr): Ditto.
8365 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8366 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8367 for repeat_count_threshold.
8368 * Makefile.in (cp-valprint.o): Update dependencies.
8369
8370 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8371
8372 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8373 (examine_prologue): Support looking through leaf functions, knowing
8374 they start with mov r2,r12. Support skipping over indirect stores
8375 of the input registers. Upon hitting a non-nop branch instruction
8376 or predicated instruction, bail out by setting lim_pc to the current
8377 pc value in the loop. At the end, if the lim_pc value is still
8378 beyond our calculated value and we have trust_limit set,
8379 use the lim_pc value.
8380
8381 2003-05-15 Andrew Cagney <cagney@redhat.com>
8382
8383 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8384 generic_find_dummy_frame.
8385 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8386 (deprecated_generic_find_dummy_frame): Update.
8387 (deprecated_read_register_dummy): Update.
8388 * frame.c (deprecated_generic_get_saved_register): Update.
8389
8390 2003-05-15 Theodore A. Roth <troth@openavr.org>
8391
8392 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8393 (avr_gdbarch_init): Set breakpoint_from_pc method.
8394
8395 2003-05-15 Andrew Cagney <cagney@redhat.com>
8396
8397 * regcache.c (build_regcache): Set deprecated_register_valid
8398 directly.
8399 (deprecated_grub_regcache_for_register_valid): Delete function.
8400 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8401 declaration.
8402
8403 2003-05-15 David Carlton <carlton@bactrian.org>
8404
8405 Committed by Elena Zannoni <ezannoni@redhat.com>
8406 * symtab.c (lookup_symbol_aux): Delete calls to
8407 lookup_symbol_aux_minsyms.
8408 (lookup_symbol_aux_minsyms): Comment out function and
8409 prototype. Delete lookup by mangled name.
8410
8411 2003-05-14 Kevin Buettner <kevinb@redhat.com>
8412
8413 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8414 correctly indicate an empty stack and ``stack_allocated'' to the
8415 indicate the number of elements initially allocated.
8416 (dwarf_expr_grow_stack): Simplify method for computing new
8417 stack size. Don't loop infinitely if ``stack_len'' is zero.
8418 (execute_stack_op): Move ``ctx->in_reg'' initialization
8419 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8420 be used in conjuction with DW_OP_piece. Revise error message
8421 accordingly.
8422
8423 2003-05-14 Theodore A. Roth <troth@openavr.org>
8424
8425 * MAINTAINERS: Update my email address.
8426 * avr-tdep.c: Ditto.
8427
8428 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
8429
8430 * symtab.h (enum domain_enum): Rename from namespace_enum.
8431 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8432 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8433 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8434 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8435 TYPES_NAMESPACE, METHODS_NAMESPACE.
8436 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8437 (struct symbol, struct partial_symbol): Rename field
8438 'namespace_enum namespace' to 'domain_enum domain'.
8439 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8440 Delete old define kludge for namespace.
8441
8442 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8443 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8444 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8445 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8446 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8447 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8448 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8449 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8450 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8451 occurrences of the above.
8452
8453 2003-05-14 Ian Lance Taylor <ian@airs.com>
8454
8455 * Makefile.in (install-only): Use $(SHELL) when running
8456 mkinstalldirs.
8457
8458 2003-05-13 Ian Lance Taylor <ian@airs.com>
8459
8460 * MAINTAINERS (write after approval): Add myself.
8461
8462 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8463 second and third arguments.
8464 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8465 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8466
8467 2003-05-13 Andrew Cagney <cagney@redhat.com>
8468
8469 * defs.h (store_address): Delete declaration.
8470 findvar.c (store_address): Delete function.
8471 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8472 store_unsigned_integer.
8473 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8474 * v850-tdep.c (v850_push_arguments): Ditto.
8475 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8476 * sh-tdep.c (sh64_get_saved_register): Ditto.
8477 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8478 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8479 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8480 (mips_get_saved_register): Ditto.
8481 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8482 (find_func_descr, ia64_push_arguments): Ditto.
8483 * i386-tdep.c (i386_push_arguments): Ditto.
8484 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8485 * frv-tdep.c (frv_push_arguments): Ditto.
8486 * frame.c (legacy_saved_regs_prev_register): Ditto.
8487 (deprecated_generic_get_saved_register): Ditto.
8488 * findvar.c (unsigned_address_to_pointer): Ditto.
8489 * dwarf2read.c (dwarf2_const_value): Ditto.
8490 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8491 * alpha-tdep.c (alpha_push_arguments): Ditto.
8492
8493 2003-05-12 J. Brobecker <brobecker@gnat.com>
8494
8495 * NEWS: Mention that the hppa-hpux port has been partially
8496 multiarched (32bit ABIT only, so far).
8497
8498 2003-05-11 Andrew Cagney <cagney@redhat.com>
8499
8500 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8501 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8502 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8503 sim/testsuite/sim/arm/misaligned2.ms, and
8504 sim/testsuite/sim/arm/misaligned3.ms.
8505 * disasm.h (struct ui_file): Add opaque struct declaration.
8506 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8507 * frame.h (struct ui_file): Ditto.
8508
8509 2003-05-11 Mark Kettenis <kettenis@gnu.org>
8510
8511 * value.h: Pretty print.
8512
8513 2003-05-10 Mark Kettenis <kettenis@gnu.org>
8514
8515 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8516
8517 2003-05-08 Andrew Cagney <cagney@redhat.com>
8518
8519 * regcache.h (max_register_size): Delete declaration.
8520 * regcache.c (max_register_size): Delete function.
8521 (struct regcache_descr): Delete field "max_register_size".
8522 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8523 registers fit in MAX_REGISTER_SIZE.
8524 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8525 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8526 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8527 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8528 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8529 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8530 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8531 * dve3900-rom.c, hppa-tdep.c: Ditto.
8532
8533 2003-05-08 David Carlton <carlton@math.stanford.edu>
8534
8535 * valops.c (push_word): Fix typo.
8536
8537 2003-05-08 Andrew Cagney <cagney@redhat.com>
8538
8539 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8540 * gdbarch.h: Re-generate.
8541 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8542 (legacy_max_register_raw_size): Delete declaration.
8543 * regcache.c (legacy_max_register_raw_size): Delete function.
8544 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8545 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8546 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8547 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8548 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8549 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8550 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8551 * findvar.c, dwarf2cfi.c: Ditto.
8552
8553 2003-05-08 Andrew Cagney <cagney@redhat.com>
8554
8555 * mips-tdep.c (read_signed_register): New function, moved to here
8556 from "regcache.c".
8557 (read_signed_register_pid): Ditto.
8558 * regcache.c (read_signed_register_pid): Delete function, moved to
8559 "mips-tdep.c".
8560 (read_signed_register): Ditto.
8561 * regcache.h (read_signed_register): Delete declaration.
8562 (read_signed_register_pid): Delete declaration.
8563
8564 2003-05-08 Andrew Cagney <cagney@redhat.com>
8565
8566 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8567 * gdbarch.h: Re-generate.
8568 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8569 (legacy_max_register_virtual_size): Delete declaration.
8570 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8571 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8572 * tracepoint.c (memrange_sortmerge): Ditto.
8573 * sparc-tdep.c (sparc_print_registers): Ditto.
8574 * regcache.c (legacy_max_register_virtual_size): Delete function.
8575
8576 2002-05-08 J. Brobecker <brobecker@gnat.com>
8577
8578 * fork-child.c (escape_bang_in_quoted_argument): New function.
8579 (fork_inferior): Escape '!' characters in quoted arguments
8580 only when needed.
8581
8582 2003-05-08 J. Brobecker <brobecker@gnat.com>
8583
8584 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8585 the language of the CU is not currently supported by GDB.
8586
8587 2003-05-08 J. Brobecker <brobecker@gnat.com>
8588
8589 * defs.h (language): Add language_minimal enum value.
8590 * c-lang.c (minimal_language_defn): New language definition.
8591 (_initialize_c_language): Add the new minimal language to the list
8592 of languages known to GDB.
8593
8594 2003-05-08 Kevin Buettner <kevinb@redhat.com>
8595
8596 * frame.c (get_frame_type): Don't attempt to lazily initialize
8597 frame's unwinder for legacy frames.
8598
8599 2003-05-07 Andrew Cagney <cagney@redhat.com>
8600
8601 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8602 and "regcache" parameters.
8603 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8604
8605 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8606
8607 * dwarf2read.c (dwarf_decode_lines): Only use output of
8608 check_cu_functions() when calling record_line(). Do not update
8609 the current address.
8610
8611 2003-05-07 Andrew Cagney <cagney@redhat.com>
8612
8613 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8614 code.
8615
8616 2003-05-07 Jim Blandy <jimb@redhat.com>
8617
8618 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8619 'maint info symtabs' and 'maint info psymtabs'.
8620 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8621 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8622 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8623 Declarations updated.
8624 * maint.c (maintenance_list_command): Delete.
8625 (_initialize_maint_cmds): Update calls to add_cmd.
8626 * gdbcmd.h (maintenancelistlist): Delete declaration.
8627 * cli/cli-cmds.c (maintenancelistlist): Delete.
8628 (init_cmd_lists): Don't initialize it.
8629 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8630
8631 2003-05-07 Andrew Cagney <cagney@redhat.com>
8632
8633 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8634 "regcache".
8635 (d10v_print_registers_info): Update.
8636 (d10v_dmap_register, d10v_imap_register): Delete functions.
8637 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8638 and "imap_register".
8639 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8640 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8641 * arch-utils.c (generic_remote_translate_xfer_address): Add
8642 "regcache" and "gdbarch" parameters.
8643 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8644 parameter. Change class to multi-arch.
8645 * gdbarch.h, gdbarch.c: Re-generate.
8646 * remote.c (remote_xfer_memory): Use
8647 gdbarch_remote_translate_xfer_address.
8648
8649 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8650
8651 * infrun.c (prev_pc): Move declaration ahead of proceed().
8652 (proceed): Refresh prev_pc value before resuming.
8653 (stop_stepping): Remove code to refresh prev_pc.
8654
8655 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8656
8657 * nto-tdep.c: Removed stray comment.
8658
8659 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8660
8661 * i386-nto-tdep.c: Fix old K&R function definitions.
8662 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8663 Also change add_show_from_set() call to add_setshow_cmd().
8664 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8665
8666 2003-05-05 Andrew Cagney <cagney@redhat.com>
8667
8668 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8669 (fprint_dummy_frames): New function.
8670 (maintenance_print_dummy_frames): New function.
8671 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8672 * frame.c (fprint_frame_id): Make global.
8673 * frame.h (fprint_frame_id): Declare.
8674 * Makefile.in (dummy-frame.o): Update dependencies.
8675
8676 2003-05-05 Andrew Cagney <cagney@redhat.com>
8677
8678 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8679 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8680 SIZEOF_CALL_DUMMY_WORDS.
8681 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8682 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8683 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8684 CALL_DUMMY_BREAKPOINT_OFFSET.
8685 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8686 CALL_DUMMY_START_OFFSET.
8687 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8688 * gdbarch.h, gdbarch.c: Re-generate.
8689 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8690 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8691 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8692 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8693 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8694 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8695 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8696 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8697 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8698 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8699 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8700 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8701 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8702 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8703 * config/sparc/tm-sparc.h: Update.
8704
8705 2003-05-05 Kris Warkentin <kewarken@qnx.com>
8706
8707 * configure.tgt: Add i[3456]86-*-nto*.
8708 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8709 * nto-tdep.c: New file. Neutrino target support routines.
8710 * nto-tdep.h: New file. Neutrino target header.
8711 * config/tm-qnxnto.h: New file.
8712 * config/i386/i386nto.mt: New file.
8713 * config/i386/tm-i386nto.h: New file.
8714
8715 2003-05-04 Andrew Cagney <cagney@redhat.com>
8716
8717 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8718 (load_infrun_state): Ditto.
8719 (struct thread_info): Drop "prev_func_name" field.
8720 * thread.c (load_infrun_state): Update.
8721 (save_infrun_state): Update.
8722 * infrun.c (prev_func_name): Delete variable.
8723 (init_wait_for_inferior): Do not clear prev_func_name.
8724 (stop_stepping, keep_going, context_switch): Do not swap
8725 prev_func_name.
8726 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8727 instead of PC_IN_SIGTRAMP.
8728
8729 2003-05-04 Andrew Cagney <cagney@redhat.com>
8730
8731 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8732 REGISTER_BYTE with register_offset_hack.
8733 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8734 that REGISTER_BYTE is consistent with the regcache.
8735 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8736 * gdbarch.h, gdbarch.c: Regenerate.
8737
8738 2003-05-04 Mark Kettenis <kettenis@gnu.org>
8739
8740 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8741 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8742
8743 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8744
8745 2003-05-03 J. Brobecker <brobecker@gnat.com>
8746
8747 From Thierry Schneider <tpschneider1@yahoo.com>
8748 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8749 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8750 (mi-cmd-symbol.o): Add rule.
8751
8752 2003-05-03 Andrew Cagney <cagney@redhat.com>
8753
8754 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8755 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8756 * gdbarch.h, gdbarch.c: Re-generate.
8757 * d10v-tdep.c (d10v_push_dummy_code): New function.
8758 (d10v_gdbarch_init): Set push_dummy_code.
8759 * infcall.c (legacy_push_dummy_code): New function.
8760 (generic_push_dummy_code): New function.
8761 (push_dummy_code): New function.
8762 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8763 instead of dummy_addr, to push_dummy_call. Move call to
8764 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8765 switch.
8766 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8767
8768 2003-05-03 Andrew Cagney <cagney@redhat.com>
8769
8770 * disasm.h (print_insn): Declare.
8771 * disasm.c (init_gdb_disassemble_info): New function.
8772 (gdb_disassembly): Call init_gdb_disassemble_info.
8773 (gdb_print_insn): New function.
8774 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8775 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8776 * mcore-tdep.c: Include "disasm.h"
8777 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8778 * d10v-tdep.c: Include "disasm.h".
8779 (display_trace): Call gdb_print_insn, instead of print_insn.
8780 (print_insn): Delete function.
8781 * printcmd.c: Include "disasm.h".
8782 (print_insn): Delete function.
8783 (print_formatted): Call gdb_print_insn, instead of print_insn.
8784 * Makefile.in (printcmd.o): Update dependencies.
8785 (mcore-tdep.o, d10v-tdep.o): Ditto.
8786
8787 2003-05-02 Andrew Cagney <cagney@redhat.com>
8788
8789 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8790 PC_REGNUM, re-indent.
8791 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8792 PC_REGNUM isn't set.
8793
8794 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8795 * gdbarch.h, gdbarch.c: Re-generate.
8796 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8797 register_virtual_size, pc_regnum, or register_bytes.
8798 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8799 (d10v_register_type): Use D10V_PC_REGNUM.
8800 (d10v_print_registers_info, d10v_read_pc): Ditto.
8801 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8802 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8803
8804 2003-05-02 David Carlton <carlton@bactrian.org>
8805
8806 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8807 the name with mstrsave.
8808
8809 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
8810
8811 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8812 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8813 (host_charset_name, target_charset_name): New vars for use by
8814 set/show commands.
8815 (host_charset_enum, target_charset_enum): New enums for set/show
8816 commands.
8817 (set_charset_sfunc, set_host_charset_sfunc,
8818 set_target_charset_sfunc): New functions.
8819 (set_host_charset, set_target_charset): Make static.
8820 (list_charsets, set_host_charset_command,
8821 set_target_charset_command): Delete functions.
8822 (show_charset_command): Rewrite as....
8823 (show_charset): Hook this up with the set/show command mechanism.
8824 (_initialize_charset): Change names of charsets to match the
8825 set/show enums. Use host_charset_name and target_charset_name.
8826 Use set/show mechanism for charset, host-charset, target-charset
8827 commands. Do not make 'show host-charset' and 'show
8828 target-charset' be aliases of 'show charset'.
8829
8830 * charset.h (set_host_charset, set_target_charset): Don't export,
8831 they are not used outside the file.
8832
8833 2003-05-01 Andrew Cagney <cagney@redhat.com>
8834
8835 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8836 (gdb_disassembly): Make "di" non static, always initialize and
8837 cleanup. Always use dis_asm_read_memory.
8838 (gdb_dis_asm_read_memory): Delete function.
8839
8840 2003-05-01 Andrew Cagney <cagney@redhat.com>
8841
8842 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8843 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8844
8845 2003-04-30 Andrew Cagney <cagney@redhat.com>
8846
8847 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8848 "tm_print_insn_info".
8849 (TARGET_PRINT_INSN_INFO): Delete macro.
8850 (dis_asm_read_memory): Delete function declaration.
8851 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8852 (tm_print_insn_info): Delete variable definition.
8853 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8854 * gdbarch.h, gdbarch.c: Re-generate.
8855 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8856 "deprecated_tm_print_insn_info".
8857 * mcore-tdep.c (mcore_dump_insn): Ditto.
8858 * mips-tdep.c (mips_gdbarch_init): Ditto.
8859 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8860 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8861 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8862 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8863 instead of TARGET_PRINT_INSN_INFO, add comment.
8864 * s390-tdep.c (s390_get_frame_info): Instead of
8865 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8866 (s390_check_function_end, s390_is_sigreturn): Ditto.
8867 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8868 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8869 * disasm.c: Include "gdbcore.h".
8870 (_initialize_disasm): New function, initialize
8871 "deprecated_tm_print_insn_info".
8872 (deprecated_tm_print_insn_info): New variable.
8873 (dis_asm_read_memory): Moved from "corefile.c", made static.
8874 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8875 * Makefile.in (disasm.o): Update dependencies.
8876
8877 2003-04-30 Andrew Cagney <cagney@redhat.com>
8878
8879 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8880
8881 2003-04-29 Adam Fedor <fedor@gnu.org>
8882
8883 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8884 * infcall.c (find_function_addr): Make non-static.
8885 * infcall.h (find_function_addr): Declare.
8886 * Makefile.in (eval.o): Update dependencies.
8887
8888 2003-04-28 Adam Fedor <fedor@gnu.org>
8889
8890 * symtab.c (symbol_find_demangled_name): Check for and demangle
8891 ObjC symbols.
8892 (symbol_init_demangled_name): Init for language_objc as well.
8893
8894 2003-04-28 Andrew Cagney <cagney@redhat.com>
8895
8896 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8897 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8898 * gdbarch.h, gdbarch.c: Re-generate.
8899 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8900 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8901 * inferior.h (deprecated_read_fp): Rename read_fp.
8902 (generic_target_read_fp): Delete declaration.
8903 * regcache.c (generic_target_read_fp): Delete function.
8904 (deprecated_read_fp): Replace read_fp, use
8905 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8906 * d10v-tdep.c (d10v_read_fp): Delete function.
8907 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8908
8909 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8910 deprecated_target_read_fp to generic_target_read_fp.
8911 * sh-tdep.c (sh_gdbarch_init): Ditto.
8912 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8913 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8914 * frv-tdep.c (frv_gdbarch_init): Ditto.
8915
8916 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8917 deprecated_fp_regnum.
8918 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8919 * vax-tdep.c (vax_gdbarch_init): Ditto.
8920 * v850-tdep.c (v850_gdbarch_init): Ditto.
8921 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8922 * sh-tdep.c (sh_gdbarch_init): Ditto.
8923 * s390-tdep.c (s390_gdbarch_init): Ditto.
8924 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8925 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8926 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8927 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8928 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8929 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8930 * i386-tdep.c (i386_gdbarch_init): Ditto.
8931 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8932 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8933 * frv-tdep.c (frv_gdbarch_init): Ditto.
8934 * cris-tdep.c (cris_gdbarch_init): Ditto.
8935 * avr-tdep.c (avr_gdbarch_init): Ditto.
8936 * arm-tdep.c (arm_gdbarch_init): Ditto.
8937 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8938
8939 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8940 * v850-tdep.c (v850_gdbarch_init): Ditto.
8941 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8942 * sh-tdep.c (sh_gdbarch_init): Ditto.
8943 * s390-tdep.c (s390_gdbarch_init): Ditto.
8944 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8945 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8946 * mips-tdep.c (mips_gdbarch_init): Ditto.
8947 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8948 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8949 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8950 * frv-tdep.c (frv_gdbarch_init): Ditto.
8951 * avr-tdep.c (avr_gdbarch_init): Ditto.
8952 * arm-tdep.c (arm_gdbarch_init): Ditto.
8953
8954 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8955 DEPRECATED_FP_REGNUM.
8956 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8957 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8958 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8959 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8960 (sparc32_register_virtual_type): Ditto.
8961 * sh-tdep.c (sh64_frame_chain): Ditto.
8962 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8963 (sh_nofp_frame_init_saved_regs): Ditto.
8964 (sh64_nofp_frame_init_saved_regs): Ditto.
8965 (sh_fp_frame_init_saved_regs): Ditto.
8966 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8967 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8968 * procfs.c (procfs_fetch_registers): Ditto.
8969 (procfs_store_registers): Ditto.
8970 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8971 (store_inferior_registers, fetch_core_registers): Ditto.
8972 (fetch_kcore_registers, clear_regs): Ditto.
8973 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8974 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8975 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8976 * nlm/i386.c (do_status): Ditto.
8977 * mipsv4-nat.c (supply_gregset): Ditto.
8978 * mips-tdep.c: Ditto for comments.
8979 * mips-nat.c (fetch_inferior_registers): Ditto.
8980 (store_inferior_registers, fetch_core_registers): Ditto.
8981 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8982 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8983 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8984 (i386_do_pop_frame, i386_register_type): Ditto.
8985 * hppa-tdep.c (hppa_frame_chain): Ditto.
8986 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8987 (hppa_pop_frame, hppa_read_fp): Ditto.
8988 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8989 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8990 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8991 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8992 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8993 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8994 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8995 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8996 * blockframe.c: Ditto for comments.
8997 * arch-utils.h: Ditto for comments.
8998 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8999 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9000 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9001 * alpha-tdep.h: Ditto for comments.
9002 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9003 (alpha_cannot_store_register): Ditto.
9004 (alpha_push_dummy_frame): Ditto.
9005 * alpha-nat.c (supply_gregset): Ditto.
9006
9007 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9008 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9009 * config/sparc/tm-sparc.h: Update comment.
9010
9011 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9012 deprecated_read_fp instead of TARGET_READ_FP.
9013 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9014 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9015 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9016 deprecated_read_fp instead of read_fp.
9017 * s390-tdep.c (s390_push_arguments): Ditto.
9018 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9019 * frame.h: Ditto in comments.
9020 * frame.c (legacy_get_prev_frame): Ditto.
9021 * dummy-frame.c (dummy_frame_this_id): Ditto.
9022 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9023
9024 2003-04-28 Andrew Cagney <cagney@redhat.com>
9025
9026 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9027 * gdbarch.h, gdbarch.c: Re-generate.
9028 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9029 * vax-tdep.c (_initialize_vax_tdep): Update.
9030 * v850-tdep.c (_initialize_v850_tdep): Update.
9031 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9032 * s390-tdep.c (_initialize_s390_tdep): Update.
9033 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9034 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9035 * mips-tdep.c (_initialize_mips_tdep): Update.
9036 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9037 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9038 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9039 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9040 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9041 * frv-tdep.c (_initialize_frv_tdep): Update.
9042 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9043 (_initialize_cris_tdep): Update.
9044 * arch-utils.c (legacy_print_insn): Update.
9045 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9046
9047 2003-04-26 Adam Fedor <fedor@gnu.org>
9048
9049 * linespec.c (decode_objc): New function to decode ObjC calls
9050 (decode_line_1): Check for ObjC calls (using decode_objc)
9051 * Makefile (linespec.o): Update dependencies.
9052
9053 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
9054
9055 * breakpoint.h (struct breakpoint_ops): New.
9056 (struct breakpoint): Add ops member.
9057
9058 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9059 (mention): Use new breakpoint ops member.
9060 (set_raw_breakpoint): Initialize ops field to NULL.
9061 (print_exception_catchpoint, print_one_exception_catchpoint)
9062 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9063 (gnu_v3_exception_catchpoint_ops): New.
9064 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9065
9066 2003-04-25 Adam Fedor <fedor@gnu.org>
9067
9068 * Makefile.in (COMMON_OBS): Add objc-lang.o
9069
9070 2003-04-25 Andrew Cagney <cagney@redhat.com>
9071
9072 * d10v-tdep.c (print_insn): Delete function.
9073 (display_trace): Use TARGET_PRINT_INSN.
9074 (_initialize_d10v_tdep): Do not set tm_print_insn.
9075 (d10v_gdbarch_init): Set print_insn.
9076
9077 2003-04-25 Andrew Cagney <cagney@redhat.com>
9078
9079 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9080 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9081 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9082 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9083 (nr_dmap_regs, a0_regnum): ... new functions.
9084 (d10v_print_registers_info): Use a0_regnum, use register_size.
9085 (d10v_register_byte): Delete function.
9086 (d10v_register_raw_size): Delete function.
9087 (d10v_register_type): Use a0_regnum.
9088 (d10v_print_registers_info): Use a0_regnum.
9089 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9090 (d10v_gdbarch_init): Do not set register_byte or
9091 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9092 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9093 extract_address.
9094 (trace_command): Use XCALLOC.
9095 (print_insn): Delete reference to tm_print_insn.
9096 (saved_regs_unwinder): Use store_unsigned_integer instead of
9097 store_address.
9098 * frame.h (FRAME_OBSTACK_CALLOC): Define
9099
9100 2003-04-25 David Carlton <carlton@bactrian.org>
9101
9102 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9103
9104 2003-04-24 Adam Fedor <fedor@gnu.org>
9105
9106 * objc-lang.c: Include "valprint.h"
9107 * Makefile.in (objc-lang.o): Update dependencies.
9108
9109 2003-04-24 Adam Fedor <fedor@gnu.org>
9110
9111 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9112 architecture dependant compilation and mark as unimplemented
9113 (until they get put in the gdbarch vector).
9114
9115 2003-04-23 David Carlton <carlton@bactrian.org>
9116
9117 * cp-support.c (cp_find_first_component): Accept 'operator' in
9118 more locations.
9119
9120 2003-04-23 Andrew Cagney <cagney@redhat.com>
9121
9122 * infcall.c (call_function_by_hand): Eliminate redundant
9123 indentation. Move "saved_async" and "old_cleanups" to where they
9124 are needed.
9125
9126 2003-04-23 Andrew Cagney <cagney@redhat.com>
9127
9128 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9129 and "buffer". Move the "name" code to where it is needed.
9130
9131 2003-04-23 Andrew Cagney <cagney@redhat.com>
9132
9133 * infcall.c (call_function_by_hand): Move variables "start_sp",
9134 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9135 code to ON_STACK switch branch.
9136
9137 2003-04-23 Andrew Cagney <cagney@redhat.com>
9138
9139 * infcall.c (call_function_by_hand): Make declaration of "i",
9140 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9141 lint.
9142
9143 2003-04-23 Andrew Cagney <cagney@redhat.com>
9144
9145 * infcall.c (call_function_by_hand): Delete variable
9146 "n_method_args". Localize "param_type"'s declaration to the loop
9147 that it is used. Reinstate code assigning to said variable -
9148 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9149 Rationalize code using "param_type".
9150
9151 2003-04-22 Andrew Cagney <cagney@redhat.com>
9152
9153 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9154 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9155 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9156 to DEPRECATED_PUSH_RETURN_ADDRESS.
9157
9158 2003-04-22 Kevin Buettner <kevinb@redhat.com>
9159
9160 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9161 on the DWARF2 register number prior to fetching a register.
9162
9163 2003-04-22 J. Brobecker <brobecker@gnat.com>
9164
9165 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9166 Update all the tests using SOFT_FLOAT considering the fact that
9167 this macro was always set to 0.
9168 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9169 considering the fact that this macro was always set to 0.
9170 * hppa-tdep.h (hppa_store_return_value): Likewise.
9171 (hppa_extract_return_value): Likewise.
9172
9173 2003-04-22 J. Brobecker <brobecker@gnat.com>
9174
9175 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9176 the hppa-pro target only.
9177
9178 2003-04-21 J. Brobecker <brobecker@gnat.com>
9179
9180 Ongoing multi-arch conversion effort for HP/UX:
9181 * config/pa/tm-hppa.h: Move all macro that are no longer
9182 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9183 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9184
9185 2003-04-21 J. Brobecker <brobecker@gnat.com>
9186
9187 * config/pa/tm-hppa.h: Obsolete a section that was only used
9188 for hppa-pro.
9189
9190 2003-04-21 J. Brobecker <brobecker@gnat.com>
9191
9192 Ongoing multi-arch conversion for HP/UX.
9193 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9194 if already defined (allows hppa64 to stay non-multiarched for now).
9195 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9196
9197 2003-04-21 Andrew Cagney <cagney@redhat.com>
9198
9199 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9200
9201 2003-04-21 Andrew Cagney <cagney@redhat.com>
9202
9203 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9204 "i386_num_mmx_regs".
9205
9206 2003-04-21 Andrew Cagney <cagney@redhat.com>
9207
9208 * infcall.c: New file.
9209 * infcall.h: New file.
9210 * valarith.c: Include "infcall.h".
9211 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9212 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9213 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9214 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9215 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9216 (SFILES): Add "infcall.c"
9217 (COMMON_OBS): Add "infcall.o".
9218 (infcall.o): Specify dependencies.
9219 * value.h (call_function_by_hand): Delete declaration.
9220 * inferior.h (run_stack_dummy): Delete declaration.
9221 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9222 (run_stack_dummy): Move to "infcall.c", merged into
9223 call_function_by_hand.
9224 * valops.c (call_function_by_hand): Moved to "infcall.c".
9225 (find_function_addr, value_arg_coerce): Ditto.
9226 (unwindonsignal_p, coerce_float_to_double): Ditto.
9227 (_initialize_valops): Move "set/show coerce-float-to-double", and
9228 "set/show unwindonsignal" commands to "infcall.c".
9229 * v850-tdep.c, target.h: Update comments.
9230 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9231 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9232 (sh64_init_extra_frame_info): Update comments.
9233 * mn10300-tdep.c: Update comments.
9234 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9235 * config/sparc/tm-sparc.h: Update comments.
9236 * breakpoint.h: Update comments.
9237 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9238 * arm-tdep.c: Update comment.
9239
9240 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9241
9242 * i386-tdep.c (i386_num_register_names): New variable.
9243 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9244 (MM0_REGNUM): Remove redundant parentheses in define.
9245 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9246 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9247 i386_mxcsr_regnum_p): Remove redundant parentheses.
9248 (i386_register_name): Use i386_num_register_names.
9249
9250 * i386-tdep.c (i386_extract_return_value,
9251 i386_store_return_value): Correct check for availability of
9252 floating-point registers.
9253
9254 * i386-tdep.c (i386_frame_num_args): Remove function.
9255 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9256
9257 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9258 mmx_regnum_to_fp_regnum. Adjust all callers.
9259
9260 * i386-tdep.c (i386_get_longjmp_target): Use
9261 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9262 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9263 extract_address.
9264
9265 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9266
9267 * core-regset.c: Update comments to reflect reality. Re-order
9268 includes.
9269 (fetch_core_registers): Use switch instead of if. Remove
9270 redundant prototype.
9271
9272 2003-04-18 Jim Blandy <jimb@redhat.com>
9273
9274 * s390-tdep.c (s390_frame_align): New function.
9275 (s390_gdbarch_init): Register it with the gdbarch object.
9276
9277 2003-04-17 Richard Henderson <rth@redhat.com>
9278
9279 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9280
9281 2003-04-17 Michael Snyder <msnyder@redhat.com>
9282 Karen Bennet <bennet@redhat.com>
9283
9284 Committed by Elena Zannoni <ezannoni@redhat.com>
9285 * gdb_gcore.sh: New script to create a core dump of a process.
9286
9287 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
9288
9289 * values.c (value_being_returned): Don't fetch the return
9290 value if the return type is void.
9291
9292 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9293
9294 * thread-db.c: Reindented.
9295
9296 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9297
9298 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9299 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9300 as types.
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326 2003-04-16 Kevin Buettner <kevinb@redhat.com>
9327
9328 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9329 the size of ``long double'' to 16, instead of 8.
9330
9331 2003-04-16 Mark Kettenis <kettenis@gnu.org>
9332
9333 * i386-linux-nat.c: Add some whitespace to make things more
9334 readable.
9335 (fetch_register, store_register, fetch_inferior_registers,
9336 store_inferior_registers): Get rid of assignment in if-statement.
9337 (store_register): Fix typo in error message.
9338
9339 2003-04-16 Andrew Cagney <cagney@redhat.com>
9340
9341 * utils.c (xmmalloc): Always allocate something, matches
9342 libiberty/xmalloc's semantics.
9343 (xmrealloc, xmcalloc): Ditto.
9344
9345 2003-04-16 Andrew Cagney <cagney@redhat.com>
9346
9347 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9348 update comments.
9349 (get_frame_type): Initialize unwind and type when needed.
9350 (get_frame_id, frame_register_unwind): Ditto.
9351
9352 2003-04-16 Andrew Cagney <cagney@redhat.com>
9353
9354 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9355 obsolete.
9356 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9357 * sparcl-stub.c: Obsolete file.
9358 * config/sparc/tm-sparclet.h: Obsolete file.
9359 * sparclet-stub.c: Obsolete file.
9360 * sparclet-rom.c: Obsolete file.
9361 * sparcl-tdep.c: Obsolete file.
9362 * config/sparc/tm-sparclite.h: Obsolete file.
9363 * config/sparc/sparclite.mt: Obsolete file.
9364 * config/sparc/sparclet.mt: Obsolete file.
9365 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9366 sparc86x-*-* obsolete.
9367
9368 2003-04-15 David Carlton <carlton@math.stanford.edu>
9369
9370 * Makefile.in (SFILES): Add cp-namespace.c.
9371 (COMMON_OBS): Add cp-namespace.o.
9372 (block.o): Depend on gdb_obstack_h and cp_support_h.
9373 (buildsym.o): Depend on cp_support_h.
9374 (cp-namespace.o): New.
9375 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9376 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9377 (dwarf2read.o): Depend on cp_support_h.
9378 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9379 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9380 processing_current_namespace.
9381 (read_namespace): Update processing_current_namespace; check for
9382 anonymous namespaces.
9383 (dwarf2_name): New function.
9384 (dwarf2_extension): Ditto.
9385 * cp-support.h: Update copyright, contributors.
9386 Add inclusion guards.
9387 Add opaque declaration for structs obstack, block, symbol.
9388 (struct using_direct): New struct.
9389 Add declarations for cp_find_first_component,
9390 cp_entire_prefix_len, processing_has_namespace_info,
9391 processing_current_namespace, cp_is_anonymous,
9392 cp_add_using_directive, cp_initialize_namespace,
9393 cp_finalize_namespace, cp_set_block_scope,
9394 cp_scan_for_anonymous_namespaces.
9395 * cp-namespace.c: New file.
9396 * cp-support.c: Update copyright.
9397 Include ctype.h, gdb_assert.h, gdbcmd.h.
9398 New variable maint_cplus_cmd_list.
9399 (cp_find_first_component): New function.
9400 (cp_entire_prefix_len, maint_cplus_command)
9401 (first_component_command, _initialize_cp_support): Ditto.
9402 * buildsym.c: Include cp-support.h.
9403 New variable using_list.
9404 (add_symbol_to_list): Check for anonymous namespaces.
9405 (finish_block): Set block's scope.
9406 (start_symtab): Initialize C++ namespace support.
9407 (end_symtab): Finalize C++ namespace support.
9408 * block.h: Add opaque declarations for structs
9409 block_namespace_info, using_direct, and obstack.
9410 Add declarations for block_set_scope and block_set_using.
9411 (struct block): Add 'language_specific' member.
9412 (BLOCK_NAMESPACE): New macro.
9413 * block.c: Include gdb_obstack.h and cp-support.h.
9414 (struct block_namespace_info): New struct.
9415 (block_set_scope): New function.
9416 (block_set_using, block_initialize_namespace): Ditto.
9417
9418 2003-04-14 Kevin Buettner <kevinb@redhat.com>
9419
9420 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9421 (locate_base): Return early if there aren't any link map offsets.
9422 (svr4_solib_create_inferior_hook): Warn if shared library support
9423 is unavailable.
9424
9425 2003-04-14 David Carlton <carlton@math.stanford.edu>
9426
9427 * symtab.c (symbol_set_names): Add prefix when storing Java names
9428 in hash table. Fix for PR java/1039.
9429
9430 2003-04-14 David Carlton <carlton@math.stanford.edu>
9431
9432 * symtab.c (symbol_set_names): Rename 'name' arg to
9433 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9434 * symtab.h: Change 'name' argument in declaration of
9435 symbol_set_names to 'linkage_name'.
9436 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9437
9438 2003-04-14 Andrew Cagney <cagney@redhat.com>
9439
9440 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9441 return the fully sign-extended register value.
9442 (get_frame_pointer): Ditto.
9443 (mips_pop_frame): Initialize "proc_desc" after checking for a
9444 dummy frame.
9445
9446 2003-04-14 Andrew Cagney <cagney@redhat.com>
9447
9448 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9449 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9450 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9451 (mips_push_register): Delete function.
9452 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9453 PUSH_FP_REGNUM.
9454
9455 2003-04-14 Jim Blandy <jimb@redhat.com>
9456
9457 * symmisc.c: #include "gdb_regex.h".
9458 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9459 functions.
9460 * maint.c (maintenance_list_command): New function.
9461 (_initialize_maint_cmds): Register the above as commands.
9462 * symtab.h (maintenance_list_symtabs,
9463 maintenance_list_psymtabs): New declarations.
9464 * cli/cli-cmds.c (maintenancelistlist): New variable.
9465 (init_cmd_lists): Initialize it.
9466 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9467 * gdbcmd.h (maintenancelistlist): New declaration.
9468 * Makefile.in (symmisc.o): Update dependencies.
9469
9470 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
9471
9472 * s390-nat.c: Include asm/types.h for addr_t.
9473
9474 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
9475
9476 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9477 actually incoming type.
9478
9479 2003-04-13 Andrew Cagney <cagney@redhat.com>
9480
9481 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9482 get_next_frame and get_frame_saved_regs.
9483
9484 2003-04-13 Andrew Cagney <cagney@redhat.com>
9485
9486 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9487 of gdbarch_num_regs.
9488
9489 2003-04-13 Andrew Cagney <cagney@redhat.com>
9490
9491 * frame.h: Mention what replaced what in "struct frame_info".
9492 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9493 deprecated_update_frame_base_hack and
9494 deprecated_update_frame_pc_hack.
9495 * hppa-tdep.c: Ditto.
9496
9497 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9498
9499 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9500 to read_reg and update its comment. Remove regnum member.
9501 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9502 Don't call read_reg when setting in_reg. Call read_reg to get
9503 the frame base if it's in a register. Return the register number
9504 on the stack instead of in the context. Remove extra arguments
9505 to read_reg.
9506 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9507 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9508 the register number on the expression stack.
9509 (needs_frame_read_reg): Remove extra arguments.
9510
9511 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9512
9513 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9514 made non-static.
9515 (execute_stack_op): All callers updated.
9516 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9517 * dwarf2loc.c (find_location_expression): New function.
9518 (dwarf_expr_frame_base): Call it.
9519 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9520 (dwarf2_tracepoint_var_ref): New function, broken out from
9521 locexpr_tracepoint_var_ref.
9522 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9523 Make static.
9524 (loclist_read_variable, loclist_read_needs_frame): New functions.
9525 (loclist_describe_location, loclist_tracepoint_var_ref): New
9526 functions.
9527 (dwarf2_loclist_funcs): New struct location_funcs.
9528 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9529 (struct dwarf2_locexpr_baton): Add comments.
9530 (dwarf2_loclist_funcs): New extern.
9531 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9532 base_address and base_known.
9533 (dwarf_loc_buffer): New variable.
9534 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9535 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9536 (dwarf2_has_info): Initialize dwarf_loc_offset.
9537 (dwarf2_build_psymtabs): Read in .debug_loc.
9538 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9539 DWARF_LOC_SIZE.
9540 (psymtab_to_symtab_1): Likewise. Move base address calculation
9541 here, from...
9542 (dwarf2_get_pc_bounds): ... here. Use the base address from
9543 cu_header.
9544 (dwarf2_symbol_mark_computed): Handle location lists.
9545
9546 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9547
9548 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9549 if the linkage name demangled successfully.
9550
9551 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9552
9553 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9554 disassmbly_flavour): Removed.
9555
9556 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9557
9558 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9559
9560 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9561
9562 2003-04-12 Andrew Cagney <cagney@redhat.com>
9563
9564 * frame.h (struct frame_info): Move definition from here ...
9565 * frame.c (struct frame_info): ... to here.
9566
9567 2003-04-12 Andrew Cagney <cagney@redhat.com>
9568
9569 * gdbthread.h (save_infrun_state): Delete parameter
9570 "prev_func_start".
9571 (struct thread_info): Delete field "prev_func_start".
9572 (load_infrun_state): Ditto.
9573 * thread.c (load_infrun_state, save_infrun_state): Update.
9574 * infrun.c (prev_func_start): Delete variable.
9575 (context_switch, init_wait_for_inferior): Update.
9576 (stop_stepping, keep_going): Update.
9577
9578 2003-04-12 Andrew Cagney <cagney@redhat.com>
9579
9580 * gdbarch.sh: Add missing opaque declarations.
9581 * gdbarch.h: Regnerate.
9582 * symtab.h: Add missing opaque declarations.
9583 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9584 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9585 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9586 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9587 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9588 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9589 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9590 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9591 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9592 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9593 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9594 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9595 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9596
9597 2003-04-11 Andrew Cagney <cagney@redhat.com>
9598
9599 * frame.c (get_frame_id): Return this frame's "id".
9600 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9601 function start.
9602 (legacy_saved_regs_this_id): Replace function body with
9603 internal-error.
9604 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9605 FRAME_OBSTACK_ZALLOC.
9606 (create_new_frame): Mark the frame ID as valid.
9607
9608 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
9609
9610 * Makefile.in (libbfd_h): Added missing setting.
9611 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9612 according to the selected ABI.
9613
9614 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9615
9616 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9617
9618 2003-04-11 Andrew Cagney <cagney@redhat.com>
9619
9620 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9621 SAVED_PC_AFTER_CALL.
9622 * gdbarch.h, gdbarch.c: Regenerate.
9623 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9624 * x86-64-tdep.c (x86_64_init_abi): Update.
9625 * vax-tdep.c (vax_gdbarch_init): Update.
9626 * v850-tdep.c (v850_gdbarch_init): Update.
9627 * sparc-tdep.c (sparc_gdbarch_init): Update.
9628 * sh-tdep.c (sh_gdbarch_init): Update.
9629 * s390-tdep.c (s390_gdbarch_init): Update.
9630 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9631 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9632 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9633 * mips-tdep.c (mips_gdbarch_init): Update.
9634 * mcore-tdep.c (mcore_gdbarch_init): Update.
9635 * m68k-tdep.c (m68k_gdbarch_init): Update.
9636 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9637 * ia64-tdep.c (ia64_gdbarch_init): Update.
9638 (ia64_saved_pc_after_call): Update declaration.
9639 * i386ly-tdep.c (i386lynx_init_abi): Update.
9640 * i386-tdep.c (i386_gdbarch_init): Update.
9641 * hppa-tdep.c (hppa_gdbarch_init): Update.
9642 * h8300-tdep.c (h8300_gdbarch_init): Update.
9643 * frv-tdep.c (frv_gdbarch_init): Update.
9644 * cris-tdep.c (cris_gdbarch_init): Update.
9645 * avr-tdep.c (avr_gdbarch_init): Update.
9646 * arm-tdep.c (arm_gdbarch_init): Update.
9647 * alpha-tdep.c (alpha_gdbarch_init): Update.
9648 * ns32knbsd-nat.c (frame_num_args): Update.
9649 * ns32k-tdep.c (umax_frame_num_args): Update.
9650 * mips-tdep.c (mips_init_frame_pc_first): Update.
9651 * infrun.c (step_over_function): Update.
9652 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9653 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9654 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9655 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9656 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9657 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9658 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9659 * arch-utils.c (init_frame_pc_default): Update.
9660 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9661 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9662 declaration.
9663
9664 2003-04-11 Andrew Cagney <cagney@redhat.com>
9665
9666 * i387-tdep.c: Update copyright.
9667 (i387_to_double): Delete function.
9668 (double_to_i387): Delete function.
9669
9670 2003-04-10 Andrew Cagney <cagney@redhat.com>
9671
9672 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9673 frame's function's address. Simplify.
9674 (d10v_frame_unwind_cache): Check that the frame's function is
9675 non-zero.
9676
9677 2003-04-10 Jim Blandy <jimb@redhat.com>
9678
9679 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9680 call to set_gdbarch_deprecated_push_arguments.
9681
9682 2003-04-10 Andrew Cagney <cagney@redhat.com>
9683
9684 * frame.c (fprint_frame_id): New function.
9685 (fprint_frame_type, fprint_frame): New function.
9686 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9687 (create_sentinel_frame, get_frame_id): Ditto.
9688 (frame_id_p, frame_id_eq): Ditto.
9689 (frame_id_inner, create_new_frame): Ditto.
9690 (legacy_get_prev_frame, get_prev_frame): Ditto.
9691 (deprecated_update_frame_pc_hack): Ditto.
9692 (frame_register_unwind): Ditto.
9693 (deprecated_update_frame_base_hack): Ditto.
9694
9695 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9696
9697 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9698 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9699 frame_chain function.
9700 * Makefile.in: Add dependencies due to above change.
9701
9702 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9703
9704 * blockframe.c (legacy_frame_chain_valid): Move call to
9705 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9706 inside_entry_file.
9707
9708 2003-04-09 Andrew Cagney <cagney@redhat.com>
9709
9710 * frame.h (struct frame_id): Replace "pc" and "base" with
9711 "stack_addr" and "code_addr". Update comments.
9712 (frame_id_build): Update parameter names and comment.
9713 (struct frame_info): Replace "id_p" and "id" with "this_id".
9714 * dummy-frame.c (dummy_frame_this_id): Update.
9715 * breakpoint.c (print_one_breakpoint): Update.
9716 * frame.c (get_frame_id): Update.
9717 (get_frame_base, frame_id_build): Update.
9718 (create_sentinel_frame, legacy_get_prev_frame): Update.
9719 (deprecated_update_frame_base_hack): Update.
9720 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9721 (frame_id_inner): Ditto.
9722
9723 2003-04-09 Andrew Cagney <cagney@redhat.com>
9724
9725 * defs.h (gdb_print_host_address): Make "addr" parameter a
9726 pointer constant.
9727 * utils.c (gdb_print_host_address): Update.
9728
9729 2003-04-09 Kevin Buettner <kevinb@redhat.com>
9730
9731 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9732 register number for R0 is 0.
9733
9734 2003-04-09 J. Brobecker <brobecker@gnat.com>
9735
9736 * frame.h (struct gdbarch): Add opaque structure definition
9737 to avoid a compilation warning on LynxOS 4.0.
9738
9739 2003-04-09 Andrew Cagney <cagney@redhat.com>
9740
9741 * frame.h (struct frame_info): Delete field "pc". Replace
9742 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9743 structure.
9744 * frame.c (frame_pc_unwind): Update.
9745 (create_sentinel_frame): Do not set "pc".
9746 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9747 (get_frame_pc): Call frame_pc_unwind.
9748 (deprecated_update_frame_pc_hack): Update.
9749 (create_new_frame): Use "pc" not "->pc".
9750
9751 2003-04-09 Andrew Cagney <cagney@redhat.com>
9752
9753 * frame.c (get_frame_id): Eliminate code updating "frame".
9754 (legacy_get_prev_frame): Ditto.
9755 (get_frame_base): Return id.base directly.
9756 (deprecated_update_frame_base_hack): Update "id.base".
9757 * frame.h (struct frame_info): Delete field "frame".
9758
9759 2003-04-09 Andrew Cagney <cagney@redhat.com>
9760
9761 * NEWS: Mention that the "Sequent family" is obsolete.
9762 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9763 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9764 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9765 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9766 * config/i386/tm-ptx4.h: Obsolete file.
9767 * config/i386/tm-ptx.h: Obsolete file.
9768 * symm-tdep.c: Obsolete file.
9769 * config/i386/symmetry.mt: Obsolete file.
9770 * config/i386/tm-symmetry.h: Obsolete file.
9771 * symm-nat.c: Obsolete file.
9772 * config/i386/nm-symmetry.h: Obsolete file.
9773 * config/i386/xm-symmetry.h: Obsolete file.
9774 * config/i386/symmetry.mh: Obsolete file.
9775 * config/i386/nm-ptx4.h: Obsolete file.
9776 * config/i386/ptx4.mh: Obsolete file.
9777 * config/i386/ptx.mt: Obsolete file.
9778 * config/i386/ptx.mh: Obsolete file.
9779 * config/i386/xm-ptx4.h: Obsolete file.
9780 * config/i386/xm-ptx.h: Obsolete file.
9781
9782 2003-04-09 Andrew Cagney <cagney@redhat.com>
9783
9784 Obsolete mips*-*-mach3*.
9785 * NEWS: Mention that mips*-*-mach3* is obsolete.
9786 * m3-nat.c: Obsolete file.
9787 * config/nm-m3.h: Obsolete file.
9788 * config/mips/tm-mipsm3.h: Obsolete file.
9789 * config/mips/mipsm3.mt: Obsolete file.
9790 * config/mips/mipsm3.mh: Obsolete file.
9791 * config/mips/xm-mipsm3.h: Obsolete file.
9792 * mipsm3-nat.c: Obsolete file.
9793 * configure.host: Obsolete mips-dec-mach3*.
9794 * configure.tgt: Obsolete mips*-*-mach3*.
9795
9796 2003-04-09 Andrew Cagney <cagney@redhat.com>
9797
9798 * doublest.h: Update copyright.
9799 (deprecated_store_floating, deprecated_extract_floating): Rename
9800 store_floating and extract_floating. Update comments.
9801 * doublest.c: Update copyright.
9802 (extract_floating_by_length): Replace extract_floating.
9803 (store_floating_by_length): Replace store_floating.
9804 (deprecated_extract_floating): New function.
9805 (deprecated_store_floating): New function.
9806 (extract_typed_floating): Call extract_floating_by_length.
9807 (store_typed_floating): Call store_floating_by_length.
9808 * x86-64-tdep.c (x86_64_store_return_value): Update.
9809 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9810 (sh64_extract_return_value): Update.
9811 (sh_sh4_register_convert_to_virtual): Update.
9812 (sh_sh64_register_convert_to_virtual): Update.
9813 (sh_sh4_register_convert_to_raw): Update.
9814 (sh_sh64_register_convert_to_raw): Update.
9815 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9816 (rs6000_register_convert_to_raw): Update.
9817 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9818 (ia64_register_convert_to_raw): Update.
9819 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9820 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9821 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9822 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9823 (alpha_register_convert_to_raw): Update.
9824
9825 2003-04-08 Andrew Cagney <cagney@redhat.com>
9826
9827 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9828 * gdbarch.h, gdbarch.c: Re-generate.
9829 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9830 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9831 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9832 conditionally, use frame_pc_unwind as an alternative. Add
9833 comments.
9834 * arch-utils.c (init_frame_pc_default): Only call
9835 SAVED_PC_AFTER_CALL when available.
9836
9837 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9838
9839 * infrun.c (stop_soon): Rename from stop_soon_quietly.
9840 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9841 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9842 (start_remote): Ditto.
9843 (handle_inferior_event): Ditto.
9844 (save_inferior_status): Ditto.
9845 (restore_inferior_status): Ditto.
9846 * infcmd.c (attach_command): Ditto.
9847 * fork-child.c (startup_inferior): Ditto.
9848 * inferior.h (stop_soon): Rename from stop_soon_quietly.
9849 * alpha-tdep.c (heuristic_proc_start): Ditto.
9850 * mips-tdep.c (heuristic_proc_start): Ditto.
9851 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9852 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9853 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9854 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9855 * remote-vx.c (vx_create_inferior): Ditto.
9856
9857 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9858
9859 * infrun.c (stop_soon_quietly): Make it an enum, to better
9860 override the default behavior of handle_inferior_event.
9861 (clear_proceed_status): Update uses of stop_soon_quietly to
9862 reflect that it is now an enum.
9863 (start_remote): Ditto.
9864 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9865 is set to handle the new GNU/Linux kernel behavior for
9866 attach/sigstop. Update uses of stop_soon_quietly.
9867 * inferior.h (enum stop_kind): New enum.
9868 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9869 Reset normal handle_inferior_event behavior, afterwards.
9870 * fork-child.c (startup_inferior): Update.
9871 * alpha-tdep.c (heuristic_proc_start): Update.
9872 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9873 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9874 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9875 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9876 * remote-vx.c (vx_create_inferior): Update.
9877 * mips-tdep.c (heuristic_proc_start): Update.
9878
9879 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
9880
9881 * disasm.c (dump_insns): Move variables inside loop, or they will
9882 be freed more than once, causing wild memory corruptions.
9883 (gdb_disassembly): Look for the substring "-thread",
9884 instead of "-threads" in the target name, to make sure to find
9885 the 'multi-thread' target. Also, make sure we do the right thing
9886 with the "core" target.
9887
9888 2003-04-07 Kevin Buettner <kevinb@redhat.com>
9889
9890 * mips-tdep.c (mips_print_fp_register): New function, created from
9891 do_fp_register_row(). Registers are now (also) printed as hex.
9892 Only one register is printed per row.
9893 (mips_print_register, do_fp_register_row): Print floating point
9894 registers with mips_print_fp_register().
9895
9896 2003-04-06 Andrew Cagney <cagney@redhat.com>
9897
9898 * valprint.h (inspect_it): Add extern declaration.
9899 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9900 (selectors_info, classes_info): Ditto.
9901 (find_objc_msgcall): Fix indentation.
9902 (objc_printstr): Delete extern declarations.
9903
9904 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9905
9906 2003-04-06 Andrew Cagney <cagney@redhat.com>
9907
9908 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9909 Update comment.
9910 * frame.c (legacy_saved_regs_this_id): Update.
9911 (legacy_get_prev_frame): Update.
9912 * xstormy16-tdep.c: Update comment.
9913 * sparc-tdep.c (sparc_frame_chain): Update comment.
9914 * blockframe.c (legacy_frame_chain_valid): Update.
9915
9916 2003-04-06 Andrew Cagney <cagney@redhat.com>
9917
9918 * valprint.c (val_print_type_code_int): Delete #ifdef
9919 PRINT_TYPELESS_INTEGER code.
9920
9921 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9922 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9923 multi-arch definition.
9924 * gdbarch.h: Re-generate.
9925
9926 2003-04-05 Andrew Cagney <cagney@redhat.com>
9927
9928 Eliminate FRAME_FIND_SAVED_REGS.
9929 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9930 Change FSR parameter to a pointer.
9931 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9932 Assume FSR parameter is a pointer.
9933 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9934 Make fsr a pointer.
9935 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9936 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9937 saved_regs a pointer.
9938 (hppa_frame_saved_pc): Ditto.
9939 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9940 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9941 pointer.
9942 (restore_pc_queue): Make fsr a pointer.
9943 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9944 (hppa_frame_chain): Make saved_regs a pointer, call
9945 hppa_frame_init_saved_regs.
9946 * sparc-tdep.c: Include "gdb_assert.h".
9947 (sparc_frame_find_saved_regs): Replace internal_error with
9948 gdb_assert.
9949 * remote-vxsparc.c (vx_read_register): Delete reference to
9950 FRAME_FIND_SAVED_REGS.
9951 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9952 * gdbarch.h: Regenerate.
9953 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9954 (deprecated_get_frame_saved_regs): Delete declaration.
9955 (struct frame_saved_regs): Delete definition.
9956 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9957 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9958 (hppa_frame_find_saved_regs): Delete declaration.
9959 (FRAME_FIND_SAVED_REGS): Delete macro.
9960 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9961 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9962 FRAME_FIND_SAVED_REGS in comment.
9963
9964 2003-04-05 Andrew Cagney <cagney@redhat.com>
9965
9966 * frame.c (frame_func_unwind, get_frame_func): New functions.
9967 * frame.h (get_frame_func, frame_func_unwind): Declare.
9968 (struct frame_info): Add field "prev_func" for caching the
9969 previous frame's function address.
9970 * arm-tdep.c (arm_frameless_function_invocation): Combine
9971 get_pc_function_start and get_frame_pc into get_frame_func.
9972 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9973 (sh64_nofp_frame_init_saved_regs): Ditto.
9974 * s390-tdep.c (s390_function_start): Ditto.
9975 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9976 (rs6000_frameless_function_invocation): Ditto.
9977 (rs6000_frame_saved_pc): Ditto.
9978 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9979 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9980 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9981 (i386_frame_init_saved_regs): Ditto.
9982 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9983 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9984 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9985 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9986 * blockframe.c (frameless_look_for_prologue): Ditto.
9987
9988 2003-04-05 Andrew Cagney <cagney@redhat.com>
9989
9990 * frame.c (legacy_get_prev_frame): Link prev to next at the
9991 function start. Update comments.
9992
9993 2003-04-05 Andrew Cagney <cagney@redhat.com>
9994
9995 * frame.c (get_frame_id): Update comment.
9996 (legacy_get_prev_frame): Update comment.
9997 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9998 * gdbarch.h: Regenerate.
9999 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10000 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10001
10002 2003-04-05 Andrew Cagney <cagney@redhat.com>
10003
10004 * stack.c (print_frame_info): Use get_frame_pc.
10005
10006 2003-04-04 Andrew Cagney <cagney@redhat.com>
10007
10008 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10009 the frame's type from the unwinder.
10010 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10011 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10012 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10013 (get_frame_base_address): Use get_frame_type.
10014 (get_frame_locals_address, get_frame_args_address): Ditto.
10015 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10016 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10017 (struct frame_info): Add comment explaining why the frame contains
10018 a "type" field.
10019 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10020 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10021 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10022 NORMAL_FRAME.
10023 * frame-unwind.h: Include "frame.h".
10024 (struct frame_unwind): Add "type" field.
10025 * Makefile.in (frame_unwind_h): Add $(frame_h).
10026
10027 2003-04-04 Andrew Cagney <cagney@redhat.com>
10028
10029 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10030 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10031 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10032 get_frame_base.
10033 (d10v_unwind_dummy_id): Use frame_id_build.
10034 * frame.c (find_frame_sal): Use get_frame_pc.
10035 (create_new_frame): Use deprecated_update_frame_pc_hack and
10036 deprecated_update_frame_base_hack.
10037 (create_sentinel_frame): Add comment about ->pc going away.
10038 (get_prev_frame): Add comment about ->pc going away.
10039 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10040 frame_id_build, deprecated_update_frame_pc_hack and
10041 deprecated_update_frame_base_hack.
10042 (select_frame): Use get_frame_pc.
10043 (legacy_saved_regs_this_id): Use frame_id_build.
10044
10045 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
10046
10047 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10048 signed integer case.
10049 (classify_argument): Handle enumerations and references.
10050
10051 2003-04-04 Andrew Cagney <cagney@redhat.com>
10052
10053 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10054 ID to NULL.
10055
10056 2003-04-01 Adam Fedor <fedor@gnu.org>
10057
10058 * gdb/objc-lang.c (selectors_info): Replace calls to
10059 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10060 SYMBOL_NATURAL_NAME.
10061 (classes_info, find_methods): Likewise.
10062
10063 2003-04-03 Kevin Buettner <kevinb@redhat.com>
10064
10065 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10066 ``mach'' to the value determined by bfd_default_set_arch_mach().
10067
10068 2003-04-02 Bob Rossi <bob_rossi@cox.net>
10069
10070 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10071 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10072 (mi-cmd-file.o): Update dependencies.
10073
10074 2003-04-01 Kevin Buettner <kevinb@redhat.com>
10075
10076 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10077 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10078
10079 2003-04-01 Adam Fedor <fedor@gnu.org>
10080
10081 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10082 * language.h (struct language_defn): Add la_demangle.
10083 (language_demangle): Declare.
10084 * language.c (language_demangle): New function.
10085 (unk_lang_demangle): Likewise.
10086 (unknown_language_defn, auto_language_defn, local_language_defn):
10087 Add ukn_lang_demangle.
10088 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
10089 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
10090 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10091 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10092 * jv-lang.c (java_demangle): New function
10093 (java_language_defn): Use it for la_demangle element.
10094 * objc-lang.c (objc_demangle): Add options argument
10095 (objc_language_defn): Use objc_demangle for la_demangle element.
10096 * maint.c (maintenance_demangle): Replace switch with
10097 call to language_demangle.
10098 * utils.c (fprintf_symbol_filtered): Likewise.
10099
10100 2003-04-01 Andrew Cagney <cagney@redhat.com>
10101
10102 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10103 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10104 PRINT_TYPELESS_INTEGER.
10105 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10106 PUSH_RETURN_ADDRESS.
10107
10108 2003-04-01 Andrew Cagney <cagney@redhat.com>
10109
10110 * Makefile.in (d10v-tdep.o): Update dependencies.
10111 * d10v-tdep.c: Include "frame-base.h".
10112 (d10v_frame_unwind): Make constant.
10113 (d10v_frame_base_address): New function.
10114 (d10v_frame_base): New variable.
10115 (d10v_gdbarch_init): Set frame_base default.
10116 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10117 comment for base.
10118 (d10v_frame_unwind_cache): Set and use "prev_sp".
10119 (d10v_frame_this_id): Use the previous frame's inner most stack
10120 address and this frame's func address for the frame ID. Use
10121 frame_id_build. Don't analyze beyond the current instruction.
10122
10123 2003-04-01 Andrew Cagney <cagney@redhat.com>
10124
10125 * frame.h (get_frame_locals_address, get_frame_args_address):
10126 Refer to the base address, instead of the address of the first
10127 local or parameter.
10128
10129 2003-04-01 Andrew Cagney <cagney@redhat.com>
10130
10131 Add frame debug info addresses:
10132 * frame-base.c: New file.
10133 * frame-base.h: New file.
10134 * frame.h (struct frame_base): Add opaque declaration.
10135 (get_frame_base): Update comment.
10136 (get_frame_base_address): Declare.
10137 (get_frame_locals_address): Declare.
10138 (get_frame_args_address): Declare.
10139 (struct frame_info): Add "base" and "base_cache". Update
10140 comments on the unwinder.
10141 * frame.c: Include "frame-base.h".
10142 (get_frame_locals_address): New function.
10143 (get_frame_base_address): New function.
10144 (get_frame_args_address): New function.
10145 * findvar.c (read_var_value): Use get_frame_locals_address and
10146 get_frame_args_address.
10147 * stack.c (frame_info): Use get_frame_locals_address and
10148 get_frame_args_address.
10149 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10150 moved to "frame-base.c".
10151 * printcmd.c (print_frame_nameless_args): Ditto.
10152 * symtab.h (address_class): Update comments.
10153 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10154 get_frame_base_address.
10155 * dwarf2expr.c (execute_stack_op): Ditto.
10156 * Makefile.in (frame_base_h): Define.
10157 (frame.o): Update dependencies.
10158 (frame-base.o): Add dependencies.
10159 (SFILES): Add frame-base.c.
10160 (COMMON_OBS): Add frame-base.o.
10161
10162 2003-04-01 Andrew Cagney <cagney@redhat.com>
10163
10164 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10165 CALL_DUMMY_LENGTH): Ditto.
10166 * gdbarch.c: Re-generate.
10167 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10168 (CALL_DUMMY_LENGTH): Delete macro.
10169 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10170 * arm-tdep.c (arm_gdbarch_init): Ditto.
10171 * avr-tdep.c (avr_gdbarch_init): Ditto.
10172 * cris-tdep.c (cris_gdbarch_init): Ditto.
10173 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10174 * frv-tdep.c (frv_gdbarch_init): Ditto.
10175 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10176 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10177 * i386-tdep.c (i386_gdbarch_init): Ditto.
10178 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10180 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10181 * mips-tdep.c (mips_gdbarch_init): Ditto.
10182 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10183 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10184 * s390-tdep.c (s390_gdbarch_init): Ditto.
10185 * sh-tdep.c (sh_gdbarch_init): Ditto.
10186 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10187 * v850-tdep.c (v850_gdbarch_init): Ditto.
10188 * vax-tdep.c (vax_gdbarch_init): Ditto.
10189 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10190
10191 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
10192
10193 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10194
10195 2003-04-01 Andrew Cagney <cagney@redhat.com>
10196
10197 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10198 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10199 * gdbarch.h, gdbarch.c: Re-generate.
10200 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10201 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10202 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10203 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10204 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10205 * infcmd.c (run_stack_dummy): Simplify assuming
10206 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10207 * infrun.c (handle_inferior_event): Ditto.
10208 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10209 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10210 * arm-tdep.c (arm_gdbarch_init): Ditto.
10211 * avr-tdep.c (avr_gdbarch_init): Ditto.
10212 * cris-tdep.c (cris_gdbarch_init): Ditto.
10213 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10214 * frv-tdep.c (frv_gdbarch_init): Ditto.
10215 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10216 * i386-tdep.c (i386_gdbarch_init): Ditto.
10217 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10218 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10219 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10220 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10221 * mips-tdep.c (mips_gdbarch_init): Ditto.
10222 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10223 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10224 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10225 * s390-tdep.c (s390_gdbarch_init): Ditto.
10226 * sh-tdep.c (sh_gdbarch_init): Ditto.
10227 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10228 * v850-tdep.c (v850_gdbarch_init): Ditto.
10229 * vax-tdep.c (vax_gdbarch_init): Ditto.
10230 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10231
10232 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
10233
10234 * symfile.c (symfile_relocate_debug_section): Update call to
10235 bfd_simple_get_relocated_section_contents.
10236
10237 2003-03-31 Andrew Cagney <cagney@redhat.com>
10238
10239 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10240 * gdbarch.h, gdbarch.c: Regenerate.
10241 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10242 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10243 available.
10244 * frame.h (generic_fix_call_dummy): Delete declaration.
10245 * dummy-frame.h: Update comment.
10246 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10247 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10248 fix_call_dummy.
10249 * sh-tdep.c (sh_gdbarch_init): Ditto.
10250 * s390-tdep.c (s390_gdbarch_init): Ditto.
10251 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10252 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10253 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10254 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10255 * i386-tdep.c (i386_gdbarch_init): Ditto.
10256 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10257 * frv-tdep.c (frv_gdbarch_init): Ditto.
10258 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10259 * cris-tdep.c (cris_gdbarch_init): Ditto.
10260 * avr-tdep.c (avr_gdbarch_init): Ditto.
10261 * arm-tdep.c (arm_gdbarch_init): Ditto.
10262
10263 2003-03-31 J. Brobecker <brobecker@gnat.com>
10264
10265 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10266 (INIT_FRAME_AP): Likewise.
10267 (EXTRA_FRAME_INFO): Likewise.
10268
10269 2003-03-31 Andrew Cagney <cagney@redhat.com>
10270
10271 * gdbarch.sh: Include "symfile.h".
10272 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10273 * gdbarch.h, gdbarch.c: Re-generate.
10274 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10275 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10276 call_dummy_address, the default is at entry_point_address.
10277 * v850-tdep.c (v850_gdbarch_init): Ditto.
10278 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10279 * sh-tdep.c (sh_gdbarch_init): Ditto.
10280 * s390-tdep.c (s390_gdbarch_init): Ditto.
10281 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10282 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10283 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10284 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10285 * i386-tdep.c (i386_gdbarch_init): Ditto.
10286 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10287 * frv-tdep.c (frv_gdbarch_init): Ditto.
10288 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10289 * cris-tdep.c (cris_gdbarch_init): Ditto.
10290 * arm-tdep.c (arm_gdbarch_init): Ditto.
10291
10292 2003-03-31 Andrew Cagney <cagney@redhat.com>
10293
10294 * gdbarch.sh (CALL_DUMMY_P): Delete.
10295 * gdbarch.h, gdbarch.c: Re-generate.
10296 * inferior.h (CALL_DUMMY_P): Delete macro.
10297 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10298 * vax-tdep.c (vax_gdbarch_init): Update.
10299 * v850-tdep.c (v850_gdbarch_init): Update.
10300 * sparc-tdep.c (sparc_gdbarch_init): Update.
10301 * sh-tdep.c (sh_gdbarch_init): Update.
10302 * s390-tdep.c (s390_gdbarch_init): Update.
10303 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10304 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10305 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10306 * mips-tdep.c (mips_gdbarch_init): Update.
10307 * mcore-tdep.c (mcore_gdbarch_init): Update.
10308 * m68k-tdep.c (m68k_gdbarch_init): Update.
10309 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10310 * ia64-tdep.c (ia64_gdbarch_init): Update.
10311 * i386-tdep.c (i386_gdbarch_init): Update.
10312 * h8300-tdep.c (h8300_gdbarch_init): Update.
10313 * frv-tdep.c (frv_gdbarch_init): Update.
10314 * d10v-tdep.c (d10v_gdbarch_init): Update.
10315 * cris-tdep.c (cris_gdbarch_init): Update.
10316 * breakpoint.c (deprecated_frame_in_dummy): Update.
10317 * avr-tdep.c (avr_gdbarch_init): Update.
10318 * alpha-tdep.c (alpha_gdbarch_init): Update.
10319 * arm-tdep.c (arm_gdbarch_init): Update.
10320 * dummy-frame.c (dummy_frame_this_id): Update comments.
10321 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10322 * frame.c (legacy_get_prev_frame): Ditto.
10323 * valops.c (call_function_by_hand): Delete function.
10324 (hand_function_call): Rename to call_function_by_hand
10325
10326 2003-03-30 Andrew Cagney <cagney@redhat.com>
10327
10328 2002-11-10 Klee Dienes <kdienes@apple.com>
10329 * value.h (struct value): Update comment.
10330
10331 2003-03-30 Andrew Cagney <cagney@redhat.com>
10332
10333 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10334 D10V_FP_REGNUM.
10335 (d10v_gdbarch_init): Do not set fp_regnum.
10336
10337 * frame.c (get_frame_base): Force ID initialization.
10338 (get_prev_frame): Move computation of the frame ID from here ...
10339 (get_frame_id): ... to here.
10340 (legacy_get_prev_frame): Mark the frame ID as valid.
10341 * frame.h (struct frame_info): Add field "id_p".
10342
10343 2003-03-30 Mark Kettenis <kettenis@gnu.org>
10344
10345 * i386-tdep.c (i386_store_struct_return): Removed.
10346 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10347
10348 2003-03-30 Andrew Cagney <cagney@redhat.com>
10349
10350 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10351 * gdbarch.h, gdbarch.c: Regenerate.
10352 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10353 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10354 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10355 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10356 * i386-tdep.c (i386_gdbarch_init): Ditto.
10357 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10358 * cris-tdep.c (cris_gdbarch_init): Ditto.
10359 * vax-tdep.c (vax_gdbarch_init): Ditto.
10360 * s390-tdep.c (s390_gdbarch_init): Ditto.
10361 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10362 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10363 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10364 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10365 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10366 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10367 * sparc-tdep.c (sparc_gdbarch_init): Update.
10368 * sh-tdep.c (sh_gdbarch_init): Update.
10369 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10370 * mips-tdep.c (mips_gdbarch_init): Update.
10371 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10372 * ia64-tdep.c (ia64_gdbarch_init): Update.
10373 * frv-tdep.c (frv_gdbarch_init): Update.
10374 * avr-tdep.c (avr_gdbarch_init): Update.
10375 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10376 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10377 instead of when push_dummy_call is not available.
10378
10379 2003-03-30 Andrew Cagney <cagney@redhat.com>
10380
10381 * infttrace.c: Include "gdbthread.h".
10382 (parent_attach_all): Fix function signature.
10383 (call_ptrace): Update call.
10384 * Makefile.in (infttrace.o): Update dependencies.
10385
10386 2003-03-30 Andrew Cagney <cagney@redhat.com>
10387
10388 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10389 PUSH_RETURN_ADDRESS.
10390 * gdbarch.h, gdbarch.c: Regenerate.
10391 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10392 * x86-64-tdep.c (x86_64_init_abi): Update.
10393 * v850-tdep.c (v850_gdbarch_init): Update.
10394 * sparc-tdep.c (sparc_gdbarch_init): Update.
10395 * sh-tdep.c (sh_gdbarch_init): Update.
10396 * s390-tdep.c (s390_gdbarch_init): Update.
10397 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10398 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10399 * mips-tdep.c (mips_gdbarch_init): Update.
10400 * mcore-tdep.c (mcore_gdbarch_init): Update.
10401 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10402 * ia64-tdep.c (ia64_gdbarch_init): Update.
10403 * i386-tdep.c (i386_gdbarch_init): Update.
10404 * h8300-tdep.c (h8300_gdbarch_init): Update.
10405 * frv-tdep.c (frv_gdbarch_init): Update.
10406 * cris-tdep.c (cris_gdbarch_init): Update.
10407 * avr-tdep.c (avr_gdbarch_init): Update.
10408 * arm-tdep.c (arm_gdbarch_init): Update.
10409 * valops.c (hand_function_call): Update.
10410
10411 2003-03-29 Andrew Cagney <cagney@redhat.com>
10412
10413 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10414 sizeof_call_dummy_words.
10415 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10416 define.
10417 * gdbarch.h: Regenerate.
10418
10419 2003-03-29 Andrew Cagney <cagney@redhat.com>
10420
10421 * infttrace.h: New file.
10422 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10423 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10424 (hpread_read_doc_function_type): Detect an initialized type1.
10425 (hpread_quick_traverse): Initialize mod_name_string.
10426 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10427 (som_solib_get_solib_by_pc): Declare.
10428 (so_lib_thread_start_addr): Declare.
10429 (no_shared_libraries): Declare.
10430 * somread.c (init_import_symbols): Make static. Add forward
10431 declaration.
10432 * config/pa/nm-hppah.h: Include "infttrace.h" for
10433 parent_attach_all.
10434 (hppa_insert_hw_watchpoint): Declare.
10435 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10436 * hppah-nat.c: Include "gdb_string.h".
10437 (parent_attach_all): Delete extern declaration, moved to
10438 "infttrace.h".
10439 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10440 int.
10441 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10442 * Makefile.in (infttrace_h): Define.
10443 (hpread.o): Update dependencies.
10444 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10445 * hppa-hpux-tdep.c: Include "gdb_string.h".
10446 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10447 * infrun.c (handle_inferior_event): Always initialize
10448 stepped_after_stopped_by_watchpoint. Add default and remove
10449 fallthrough in switch statement.
10450 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10451 parameter to int.
10452 (hppa_remove_hw_watchpoint): Ditto.
10453
10454 2003-03-29 Andrew Cagney <cagney@redhat.com>
10455
10456 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10457 offset.
10458
10459 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
10460
10461 * arm-tdep.c (arm_push_arguments): Delete.
10462 (struct stack_item): New type.
10463 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10464 (arm_store_struct_return): Delte.
10465 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10466 arm_push_arguments or arm_store_struct_return.
10467
10468 2003-03-28 Andrew Cagney <cagney@redhat.com>
10469
10470 * Makefile.in (d10v-tdep.o): Update dependencies.
10471 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10472 * d10v-tdep.c: Include "remote.h".
10473 (target_resume_hook): Delete extern declaration.
10474 (target_wait_loop_hook): Ditto.
10475 (tdisassemble_command): Eliminate assignment in "if" conditional.
10476 (d10v_ts2_register_sim_regno): Eliminate call to
10477 legacy_register_sim_regno.
10478 (d10v_ts3_register_sim_regno): Ditto.
10479
10480 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10481
10482 * thread.c: Reindented.
10483 * lin-lwp.c: Ditto.
10484 * linux-proc.c: Ditto.
10485
10486 2003-03-28 Bob Rossi <bob_rossi@cox.net>
10487
10488 * MAINTAINERS (write after approval): Add myself.
10489
10490 2003-03-27 Theodore A. Roth <troth@openavr.org>
10491
10492 * objc-exp.y: Add missing semi-colons.
10493
10494 2003-03-27 Andrew Cagney <cagney@redhat.com>
10495
10496 * regcache.c (write_sp): Delete function and references.
10497 * inferior.h (write_sp): Delete declaration.
10498 * valops.c (hand_function_call): Replace write_sp with
10499 TARGET_WRITE_SP.
10500 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10501 (sparc_pop_frame): Ditto.
10502
10503 2003-03-27 Andrew Cagney <cagney@redhat.com>
10504
10505 * NEWS: Mention removal of support for hppa*-*-bsd* and
10506 hppa*-*-osf* natives, and hppa*-*-pro* target.
10507 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10508 * config/pa/xm-pa.h: Obsolete file.
10509 * config/pa/xm-hppab.h: Obsolete file.
10510 * config/pa/nm-hppab.h: Obsolete file.
10511 * config/pa/tm-hppab.h: Obsolete file.
10512 * config/pa/tm-hppao.h: Obsolete file.
10513 * config/pa/nm-hppao.h: Obsolete file.
10514 * config/pa/tm-pro.h: Obsolete file.
10515 * config/pa/hppaosf.mt: Obsolete file.
10516 * config/pa/hppaosf.mh: Obsolete file.
10517 * config/pa/hppapro.mt: Obsolete file.
10518 * config/pa/hppabsd.mt: Obsolete file.
10519 * config/pa/hppabsd.mh: Obsolete file.
10520 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10521 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10522 hppa*-*-osf*.
10523
10524 2003-03-27 Andrew Cagney <cagney@redhat.com>
10525
10526 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10527 push_arguments. Don't set push_return_address or write_sp.
10528 (d10v_push_dummy_call): Replace d10v_push_arguments.
10529 (d10v_push_return_address, d10v_write_sp): Delete function,
10530 handled by push_dummy_call.
10531
10532 2003-03-26 Andrew Cagney <cagney@redhat.com>
10533
10534 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10535 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10536 regcache and dummy_addr parameters.
10537 * gdbarch.h, gdbarch.c: Re-generate.
10538 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10539 available; assume it will handle stack alignment and return
10540 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10541 legacy_push_arguments.
10542 (legacy_push_arguments): Rename default_push_arguments.
10543 * value.h (legacy_push_arguments): Rename default_push_arguments.
10544 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10545 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10546 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10547 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10548 * config/i386/tm-symmetry.h: Update.
10549 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10550 * x86-64-tdep.c (x86_64_init_abi): Update.
10551 * v850-tdep.c (v850_gdbarch_init): Update.
10552 * sparc-tdep.c (sparc_gdbarch_init): Update.
10553 * sh-tdep.c (sh_gdbarch_init): Update.
10554 * s390-tdep.c (s390_gdbarch_init): Update.
10555 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10556 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10557 * mips-tdep.c (mips_gdbarch_init): Update.
10558 * mcore-tdep.c (mcore_gdbarch_init): Update.
10559 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10560 * ia64-tdep.c (ia64_gdbarch_init): Update.
10561 * i386-tdep.c (i386_gdbarch_init): Update.
10562 * hppa-tdep.c (hppa_gdbarch_init): Update.
10563 * h8300-tdep.c (h8300_gdbarch_init): Update.
10564 * frv-tdep.c (frv_gdbarch_init): Update.
10565 * d10v-tdep.c (d10v_gdbarch_init): Update.
10566 * cris-tdep.c (cris_gdbarch_init): Update.
10567 * avr-tdep.c (avr_gdbarch_init): Update.
10568 * arm-tdep.c (arm_gdbarch_init): Update.
10569 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10570 * alpha-tdep.c (alpha_gdbarch_init): Update.
10571
10572 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10573
10574 * signals/signals.c (do_target_signal_to_host): Correct realtime
10575 signal range test.
10576
10577 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10578
10579 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10580 (struct sal_chain, map_catch_names): Remove.
10581 (catch_exception_command_1): Don't call
10582 handle_gnu_4_16_catch_command.
10583
10584 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10585
10586 From Mark Dettinger <dettinge@de.ibm.com>:
10587 * dwarf2cfi.c (read_2u): Increment pointer by two.
10588
10589 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10590
10591 * signals/signals.c: Fix typos in last change.
10592
10593 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10594
10595 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10596 not already defined. Use __SIGRTMIN if available.
10597 (target_signal_from_host): Remove SIGRTMIN block.
10598 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10599 the signal is within the realtime range.
10600
10601 2003-03-25 Adam Fedor <fedor@gnu.org>
10602
10603 * Makefile.in (infrun.o): Add $(language_h)
10604 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10605 for language specific trampolines.
10606 * language.h (struct language_defn): Add skip_trampoline.
10607 (skip_language_trampoline): Declare.
10608 * language.c (unk_lang_trampoline, skip_language_trampoline):
10609 New functions.
10610 (unknown_language_defn, auto_language_defn, local_language_defn):
10611 Add ukn_lang_trampoline.
10612 * ada-lang.c (ada_language_defn): Add NULL for language
10613 specific skip_trampoline.
10614 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10615 scm-lang.c: Likewise.
10616 * objc-lang.c (objc_skip_trampoline): New function.
10617 (objc_language_defn): Add objc_skip_trampoline.
10618
10619 2003-03-25 Andrew Cagney <cagney@redhat.com>
10620
10621 * frame.c (get_prev_frame): Delay validating a frame's ID -
10622 non-NULL, didn't go backwards - until an attempt to unwind it to
10623 the previous frame.
10624
10625 2003-03-25 Andrew Cagney <cagney@redhat.com>
10626
10627 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10628 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10629 * gdbarch.h, gdbarch.c: Re-generate.
10630 * config/sparc/tm-sparc.h
10631 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10632 * sparc-tdep.c (sparc_gdbarch_init): Set
10633 deprecated_extra_stack_alignment_needed.
10634 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10635 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10636 extra_stack_alignment_needed.
10637 * v850-tdep.c (v850_gdbarch_init): Ditto.
10638 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10639 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10640 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10641 * cris-tdep.c (cris_gdbarch_init): Ditto.
10642 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10643 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10644
10645 2003-03-25 Andrew Cagney <cagney@redhat.com>
10646
10647 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10648 STORE_STRUCT_RETURN.
10649 * gdbarch.h, gdbarch.c: Regenerate.
10650 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10651 (d10v_push_arguments): Set the struct return register.
10652 (d10v_gdbarch_init): Update.
10653 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10654 * x86-64-tdep.c (x86_64_init_abi): Update.
10655 * vax-tdep.c (vax_gdbarch_init): Update.
10656 * v850-tdep.c (v850_gdbarch_init): Update.
10657 * sparc-tdep.c (sparc_gdbarch_init): Update.
10658 * sh-tdep.c (sh_gdbarch_init): Update.
10659 * s390-tdep.c (s390_gdbarch_init): Update.
10660 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10661 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10662 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10663 * mips-tdep.c (mips_gdbarch_init): Update.
10664 * mcore-tdep.c (mcore_gdbarch_init): Update.
10665 * m68k-tdep.c (m68k_gdbarch_init): Update.
10666 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10667 * ia64-tdep.c (ia64_gdbarch_init): Update.
10668 * i386-tdep.c (i386_gdbarch_init): Update.
10669 * hppa-tdep.c (hppa_gdbarch_init): Update.
10670 * h8300-tdep.c (h8300_gdbarch_init): Update.
10671 * frv-tdep.c (frv_gdbarch_init): Update.
10672 * cris-tdep.c (cris_gdbarch_init): Update.
10673 * avr-tdep.c (avr_gdbarch_init): Update.
10674 * arm-tdep.c (arm_gdbarch_init): Update.
10675 * alpha-tdep.c (alpha_gdbarch_init): Update.
10676
10677 2003-03-25 Andrew Cagney <cagney@redhat.com>
10678
10679 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10680 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10681 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10682 * gdbarch.h, gdbarch.c: Regenerate.
10683 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10684 call_dummy_stack_adjust_p.
10685 * vax-tdep.c (vax_gdbarch_init): Ditto.
10686 * v850-tdep.c (v850_gdbarch_init): Ditto.
10687 * sh-tdep.c (sh_gdbarch_init): Ditto.
10688 * s390-tdep.c (s390_gdbarch_init): Ditto.
10689 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10690 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10691 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10692 * mips-tdep.c (mips_gdbarch_init): Ditto.
10693 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10694 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10695 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10696 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10697 * i386-tdep.c (i386_gdbarch_init): Ditto.
10698 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10699 * frv-tdep.c (frv_gdbarch_init): Ditto.
10700 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10701 * cris-tdep.c (cris_gdbarch_init): Ditto.
10702 * avr-tdep.c (avr_gdbarch_init): Ditto.
10703 * arm-tdep.c (arm_gdbarch_init): Ditto.
10704 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10705 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10706 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10707 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10708 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10709 call_dummy_stack_adjust_p.
10710 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10711 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10712 * sparc-tdep.c (sparc32_push_arguments): Update.
10713 * valops.c (hand_function_call): Update.
10714
10715 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
10716
10717 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10718 set_gdbarch_char_signed.
10719
10720 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10721
10722 PR cli/548
10723 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10724
10725 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10726
10727 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10728 (_initialize_arm_tdep): Don't set tm_print_insn.
10729
10730 2003-03-24 Adam Fedor <fedor@gnu.org>
10731
10732 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10733 * objc-lang.h: Add multiple inclusion protection.
10734 (start_msglist, add_msglist, end_msglist): Additional declarations.
10735
10736 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
10737
10738 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10739 value was renamed to ARM_FLOAT_SOFT_FPA.
10740
10741 2003-03-23 Andrew Cagney <cagney@redhat.com>
10742
10743 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10744 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10745 * gdbarch.h, gdbarch.c: Regenerate.
10746 * valops.c (hand_function_call): Update.
10747 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10748 * frame.c (legacy_saved_regs_this_id): Update.
10749 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10750 * dummy-frame.h: Update.
10751 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10752 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10753 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10754 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10755 * config/m68k/tm-sun3.h: Update.
10756 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10757 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10758 * x86-64-tdep.c (x86_64_init_abi): Update.
10759 * vax-tdep.c (vax_gdbarch_init): Update.
10760 * v850-tdep.c (v850_gdbarch_init): Update.
10761 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10762 * sh-tdep.c (sh_gdbarch_init): Update.
10763 * s390-tdep.c (s390_gdbarch_init): Update.
10764 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10765 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10766 (frame_get_saved_regs): Update.
10767 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10768 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10769 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10770 * mips-tdep.c (mips_gdbarch_init): Update.
10771 * mcore-tdep.c (mcore_gdbarch_init): Update.
10772 * m68k-tdep.c (m68k_gdbarch_init): Update.
10773 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10774 * ia64-tdep.c (ia64_gdbarch_init): Update.
10775 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10776 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10777 (i386_interix_back_one_frame): Update.
10778 * hppa-tdep.c (hppa_gdbarch_init): Update.
10779 (hppa_init_extra_frame_info): Update.
10780 * h8300-tdep.c (h8300_gdbarch_init): Update.
10781 * frv-tdep.c (frv_gdbarch_init): Update.
10782 * cris-tdep.c (cris_gdbarch_init): Update.
10783 * avr-tdep.c (avr_gdbarch_init): Update.
10784 * arm-tdep.c (arm_gdbarch_init): Update.
10785 * alpha-tdep.c (alpha_gdbarch_init): Update.
10786
10787 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10788
10789 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10790 (arm_get_fp_model): Declare.
10791 * arm-tdep.c (fp_model_strings): New string array.
10792 (arm_fp_model, current_fp_model): New variables.
10793 (arm_get_fp_model): New function.
10794 (arm_set_fp): New function.
10795 (set_fp_model_sfunc): New function.
10796 (show_fp_model): New function.
10797 (_initialize_arm_tdep): Add new command to set/show the FPU.
10798 (arm_extract_return_value): Use arm_get_fp_model.
10799 (arm_store_return_value): Likewise.
10800 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10801 to initialize the floating-point data types.
10802 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10803 model is FPA.
10804
10805 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10806
10807 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10808 the current setting of each value.
10809 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
10810 new_set and new_show. Use add_setshow_cmd_full and
10811 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10812 commands and add new version as subcommands of "set/show arm".
10813
10814 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10815
10816 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10817 (set_arm_command, show_arm_command): New functions.
10818 (_initialize_arm_tdep): Add them.
10819 (num_disassembly_options): Renamed from num_flavor_options.
10820 (valid_disassembly_styles): Renamed from valid_flavors.
10821 (disassembly_style): Renamed from disassembly_flavor.
10822 (set_disassembly_style_sfunc): Renamed from
10823 set_disassembly_flavor_sfunc.
10824 (set_disassembly_style): Renamed from set_disassembly_flavor.
10825 (arm_othernames): Updated.
10826 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10827 command. Add "set/show arm disassembly" commands. Deprecate
10828 "othernames" command.
10829
10830 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10831
10832 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10833 (arm-tdep.o): Depend on elf_arm_h.
10834
10835 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10836
10837 * Makefile.in (coff_internal_h): Define.
10838 (arm-tdep.o): Update dependencies.
10839
10840 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10841
10842 * arm-tdep.c (prologue_cache): Delete.
10843 (check_prologue_cache, save_prologue_cache): Delete.
10844 (arm_scan_prologue): Don't check or update the prologue_cache.
10845 (arm_gdb_arch_init): Don't initialize it.
10846 (_initialize_arm_tdep): Likewise.
10847
10848 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10849
10850 * MAINTAINERS (tui): Maintainer of tui code.
10851
10852 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
10853
10854 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10855 (i386-cygwin-tdep.o): Add dependencies.
10856 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10857 * i386-cygwin-tdep.c: New file.
10858 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10859 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10860
10861 2003-03-20 Andrew Cagney <cagney@redhat.com>
10862
10863 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10864 (handle_inferior_event): Remove code calling
10865 DYNAMIC_TRAMPOLINE_NEXTPC.
10866
10867 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10868 already has a full path.
10869
10870 * main.c (gdb_main): Return 1.
10871 (captured_main): Call error to report an invalid interpreter.
10872
10873 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10874 * alpha-osf1-tdep.c: Include "gdb_string.h".
10875
10876 2003-03-19 J. Brobecker <brobecker@gnat.com>
10877
10878 Continuing work to convert the hppa targets to multiarch partial.
10879
10880 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10881 method, now that hppa_push_dummy_frame has a conformant prototype.
10882 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10883 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10884 for the switch to multiarch partial.
10885
10886 2003-03-19 Kevin Buettner <kevinb@redhat.com>
10887
10888 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10889 when iss is issNull.
10890
10891 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10892
10893 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10894 NUM_REGS bounds check.
10895
10896 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10897
10898 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10899 * mips-tdep.c (gdb_assert.h): Include.
10900 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10901 (mips_register_name): Handle integer registers explicitly. Add
10902 bounds checking.
10903 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10904 (mips_lsi33k_reg_names): Don't list integer registers; they're
10905 handled by mips_register_name() now.
10906 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10907 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10908 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10909 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10910 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10911
10912 2003-03-18 Andrew Cagney <cagney@redhat.com>
10913
10914 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10915 a void pointer.
10916 * gdbtypes.h (print_scalar_formatted): Update declaration.
10917 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10918
10919 2003-03-18 J. Brobecker <brobecker@gnat.com>
10920
10921 * infrun.c (observer.h): Add #include.
10922 (normal_stop): Add call to observer_notify_normal_stop.
10923 * Makefile.in (infrun.o): Add dependency on observer.h.
10924
10925 2003-03-18 J. Brobecker <brobecker@gnat.com>
10926
10927 Continuing work to convert the hppa targets to multiarch partial.
10928 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10929 parameter. Reformat comment.
10930 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10931 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10932 to match new profile.
10933
10934 2003-03-18 J. Brobecker <brobecker@gnat.com>
10935
10936 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10937 appear to be working in any case.
10938
10939 2003-03-18 J. Brobecker <brobecker@gnat.com>
10940
10941 * observer.c (observer_test_first_observer): New static variable.
10942 (observer_test_second_observer): Likewise.
10943 (observer_test_third_observer): Likewise.
10944 (observer_test_first_notification_function): New static function.
10945 (observer_test_second_notification_function): Likewise.
10946 (observer_test_third_notification_function): Likewise.
10947
10948 2003-03-17 J. Brobecker <brobecker@gnat.com>
10949
10950 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10951 * somsolib.c (gdb_assert.h): Likewise.
10952 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10953 (somsolib.o): Likewise.
10954
10955 2003-03-17 Andrew Cagney <cagney@redhat.com>
10956
10957 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10958 BFD. Simplify setting of di.endian.
10959
10960 2003-03-17 Andrew Cagney <cagney@redhat.com>
10961
10962 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10963 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10964
10965 From Elena Zannoni <ezannoni@redhat.com>
10966 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10967 vector and floating-point parameters.
10968 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10969 convention.
10970 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10971
10972 2003-03-17 Fernando Nasser <fnasser@redhat.com>
10973
10974 * MAINTAINERS: Remove my name from several maintainership roles.
10975
10976 2003-03-17 Andrew Cagney <cagney@redhat.com>
10977
10978 Fix frame off-by-one bug.
10979 * frame-unwind.h (frame_this_id_ftype): Replace
10980 frame_unwind_id_ftype.
10981 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10982 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10983 with "prev_register".
10984 * frame-unwind.c (frame_unwind_find_by_pc): Return
10985 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10986 comment.
10987 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10988 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10989 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10990 (dummy_frame_unwind): Update.
10991 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10992 sentinel_frame_register_unwind.
10993 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10994 (sentinel_frame_unwinder): Update.
10995 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10996 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10997 * frame.c (create_sentinel_frame): Update. Initialize
10998 "prologue_cache" instead of "unwind_cache".
10999 (frame_register_unwind): Call this frame's prev_register with the
11000 next frame and this frame's prologue cache.
11001 (get_prev_frame): Simplify. Always call prev frame's this_id with
11002 this frame and prev frame's prologue cache. Document that this
11003 call is shifted one to the left when compared to the
11004 frame_register_unwind call.
11005 (legacy_saved_regs_prev_register): Replace
11006 frame_saved_regs_register_unwind.
11007 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11008 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11009 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11010 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11011 (d10v_frame_unwind): Update.
11012 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11013 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11014 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11015 "saved_regs" with "this_saved_regs".
11016
11017 2003-03-16 Andrew Cagney <cagney@redhat.com>
11018
11019 * frame.c (frame_pop): Don't call target_store_registers. Fix
11020 problem reported by Mark Kettenis.
11021
11022 2003-03-16 Mark Kettenis <kettenis@gnu.org>
11023
11024 * i386-tdep.c (i386_register_type): Renamed from
11025 i386_register_virtual_type. Adjust function signature.
11026 (i386_gdbarch_init): Set register_type instead of
11027 deprecated_max_register_raw_size,
11028 deprecated_max_register_virtual_size and register_virtual_type.
11029
11030 2003-03-14 Andrew Cagney <cagney@redhat.com>
11031
11032 * frame.c (get_prev_frame): When a legacy frame, always call
11033 legacy_get_prev_frame. Simplify unwind code using assumption that
11034 the unwinder is new.
11035 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11036 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11037 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11038
11039 2003-03-14 Andrew Cagney <cagney@redhat.com>
11040
11041 * frame.c (get_saved_register): Delete function.
11042 * frame.h (get_saved_register): Delete declaration.
11043 * xstormy16-tdep.c: Update comment.
11044 * regcache.h: Update comments.
11045 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11046 get_saved_register and extract_address, use
11047 frame_read_unsigned_register.
11048 (sparc_frame_saved_pc): Ditto.
11049 (sparc_get_saved_register): Instead of get_saved_register, use
11050 frame_register.
11051 (sparc_pop_frame): Ditto.
11052 * findvar.c: Update comments.
11053 (value_of_register): Call frame_register instead of
11054 get_saved_register.
11055 (value_from_register): Ditto.
11056 * config/sparc/tm-sparc.h: Update comment.
11057 * breakpoint.c: Update comment.
11058
11059 2003-03-14 Andrew Cagney <cagney@redhat.com>
11060
11061 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11062 GET_SAVED_REGISTER.
11063 * gdbarch.h, gdbarch.c: Re-generate.
11064 * frame.h: Update comments.
11065 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11066 * x86-64-tdep.c (x86_64_init_abi): Update.
11067 * sparc-tdep.c (sparc_gdbarch_init): Update.
11068 * sh-tdep.c (sh_gdbarch_init): Update.
11069 * mips-tdep.c (mips_gdbarch_init): Update.
11070 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11071 * cris-tdep.c (cris_gdbarch_init): Update.
11072 * ia64-tdep.c (ia64_gdbarch_init): Update.
11073 * frame.c (frame_register): Update.
11074 (get_saved_register): Update.
11075 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
11076
11077 2003-03-13 Andrew Cagney <cagney@redhat.com>
11078
11079 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11080 * gdbarch.h, gdbarch.c: Regenerate.
11081 * valops.c (hand_function_call): Update comment.
11082 * stack.c (return_command): Update comment.
11083 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11084 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11085 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11086 * x86-64-tdep.c (x86_64_init_abi): Update.
11087 * vax-tdep.c (vax_gdbarch_init): Update.
11088 * v850-tdep.c (v850_gdbarch_init): Update.
11089 * sparc-tdep.c (sparc_gdbarch_init): Update.
11090 * sh-tdep.c (sh_gdbarch_init): Update.
11091 * s390-tdep.c (s390_gdbarch_init): Update.
11092 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11093 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11094 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11095 * mips-tdep.c (mips_gdbarch_init): Update.
11096 * mcore-tdep.c (mcore_gdbarch_init): Update.
11097 * m68k-tdep.c (m68k_gdbarch_init): Update.
11098 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11099 * ia64-tdep.c (ia64_gdbarch_init): Update.
11100 * i386-tdep.c (i386_gdbarch_init): Update.
11101 * hppa-tdep.c (hppa_gdbarch_init): Update.
11102 * h8300-tdep.c (h8300_gdbarch_init): Update.
11103 * frv-tdep.c (frv_gdbarch_init): Update.
11104 * cris-tdep.c (cris_gdbarch_init): Update.
11105 * avr-tdep.c (avr_gdbarch_init): Update.
11106 * arm-tdep.c (arm_gdbarch_init): Update.
11107 * alpha-tdep.c (alpha_gdbarch_init): Update.
11108
11109 2003-03-13 Andrew Cagney <cagney@redhat.com>
11110
11111 * frame.c (legacy_frame_p): New function.
11112 (get_prev_frame): Use legacy_frame_p.
11113 * frame.h (legacy_frame_p): Declare.
11114
11115 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11116
11117 * MAINTAINERS (write after approval): Alphabetically
11118 listing corrected.
11119
11120 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11121
11122 * MAINTAINERS (write after approval): Add myself.
11123
11124 2003-03-12 Andrew Cagney <cagney@redhat.com>
11125
11126 * frame.c (get_prev_frame): Rename the frame parameter to
11127 "this_frame".
11128 (get_next_frame, legacy_get_prev_frame): Ditto.
11129
11130 2003-03-12 Andrew Cagney <cagney@redhat.com>
11131
11132 * frame.c (get_current_frame): Check target_has_registers before
11133 checking target_has_stack.
11134 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11135 instead of deprecated_selected_frame.
11136 * findvar.c (value_of_register): Pass "frame", not
11137 deprecated_selected_frame, to value_of_builtin_reg.
11138
11139 2003-03-12 Andrew Cagney <cagney@redhat.com>
11140
11141 * regcache.c (regcache_cooked_write_signed): New function.
11142 (regcache_cooked_write_unsigned): New function.
11143 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11144 (regcache_cooked_read_signed): Fix regnum in range assertion.
11145 * regcache.h (regcache_cooked_write_signed): Declare.
11146 (regcache_cooked_write_unsigned): Declare.
11147
11148 2003-03-12 Andrew Cagney <cagney@redhat.com>
11149
11150 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11151 * gdbarch.h, gdbarch.c: Re-generate.
11152 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11153 * x86-64-tdep.h: Update.
11154 * x86-64-tdep.c (x86_64_init_abi): Update.
11155 * v850-tdep.c (v850_gdbarch_init): Update.
11156 * sparc-tdep.c (sparc_gdbarch_init): Update.
11157 * sh-tdep.c (sh_gdbarch_init): Update.
11158 * s390-tdep.c (s390_gdbarch_init): Update.
11159 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11160 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11161 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11162 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11163 * mips-tdep.c (mips_gdbarch_init): Update.
11164 * mcore-tdep.c (mcore_gdbarch_init): Update.
11165 * m68k-tdep.c (m68k_gdbarch_init): Update.
11166 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11167 * ia64-tdep.c (ia64_gdbarch_init): Update.
11168 * i386-tdep.c (i386_gdbarch_init): Update.
11169 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11170 * hppa-tdep.c (hppa_gdbarch_init): Update.
11171 * h8300-tdep.c (h8300_gdbarch_init): Update.
11172 * frv-tdep.c (frv_gdbarch_init): Update.
11173 * cris-tdep.c (cris_gdbarch_init): Update.
11174 * avr-tdep.c (avr_gdbarch_init): Update.
11175 * arm-tdep.c (arm_gdbarch_init): Update.
11176 * alpha-tdep.c (alpha_gdbarch_init): Update.
11177 * sh-tdep.c (sh_init_extra_frame_info): Update.
11178 (sh64_init_extra_frame_info): Update.
11179 * ns32knbsd-nat.c (frame_num_args): Update.
11180 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11181 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11182 (xstormy16_frame_chain_valid): Update.
11183 * vax-tdep.c (vax_saved_pc_after_call): Update.
11184 * v850-tdep.c (v850_frame_chain): Update.
11185 (v850_pop_frame): Update.
11186 (v850_init_extra_frame_info): Update.
11187 * sparc-tdep.c (setup_arbitrary_frame): Update.
11188 * ns32k-tdep.c (umax_frame_num_args): Update.
11189 * s390-tdep.c (s390_pop_frame_regular): Update.
11190 * mn10300-tdep.c (mn10300_frame_chain): Update.
11191 (mn10300_pop_frame_regular): Update.
11192 (mn10300_init_extra_frame_info): Update.
11193 * mips-tdep.c (mips_init_frame_pc_first): Update.
11194 (mips_frame_chain): Update.
11195 (mips_pop_frame): Update.
11196 * mcore-tdep.c (mcore_frame_chain): Update.
11197 (mcore_pop_frame): Update.
11198 (mcore_init_extra_frame_info): Update.
11199 * arch-utils.c (init_frame_pc_default): Update.
11200 * m68k-tdep.c (isi_frame_num_args): Update.
11201 (delta68_frame_num_args): Update.
11202 (news_frame_num_args): Update.
11203 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11204 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11205 (alpha_frame_chain): Update.
11206 (alpha_pop_frame): Update.
11207 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11208 (hppa_init_extra_frame_info): Update.
11209 (hppa_frame_chain): Update.
11210 (hppa_frame_chain_valid): Update.
11211 * cris-tdep.c (cris_init_extra_frame_info): Update.
11212 * avr-tdep.c (avr_init_extra_frame_info): Update.
11213 * arm-tdep.c (arm_frame_chain_valid): Update.
11214 (arm_init_extra_frame_info): Update.
11215 (arm_pop_frame): Update.
11216 * frame.c (frame_pc_unwind): Update.
11217 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11218 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11219 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11220 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11221 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11222 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11223
11224 2003-03-12 Andrew Cagney <cagney@redhat.com>
11225
11226 Eliminate the need for POP_FRAME.
11227 * frame.c (do_frame_unwind_register): New function.
11228 (frame_pop): When no POP_FRAME, pop the frame using register
11229 unwind and a scratch regcache.
11230 (frame_saved_regs_pop): Delete function.
11231 (trad_frame_unwinder): Update.
11232 * d10v-tdep.c (d10v_frame_pop): Delete function.
11233 (d10v_frame_unwind): Update.
11234 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11235 (sentinel_frame_unwinder): Update.
11236 * dummy-frame.c (dummy_frame_pop): Delete function.
11237 (dummy_frame_unwind): Update.
11238 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11239 (struct frame_unwind): Update.
11240
11241 2003-03-11 Kevin Buettner <kevinb@redhat.com>
11242
11243 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11244 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11245 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11246 Do range checks on register number obtained from debugging info.
11247 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11248 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11249 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11250 mapping function.
11251 (do_fp_register_row): Fix typo which caused double type to be
11252 used when attempting to unpack a float.
11253
11254 2003-03-11 J. Brobecker <brobecker@gnat.com>
11255
11256 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11257
11258 2003-03-11 Andrew Cagney <cagney@redhat.com>
11259
11260 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11261 frame. Problem found by Corinna Vinschen.
11262
11263 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11264
11265 * doublest.c (floatformat_from_length): Accept also
11266 the real size of 'long double' type.
11267
11268 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
11269
11270 From Klee Dienes <kdienes@apple.com>:
11271 * breakpoint.c (bpstat_copy): Copy the command lines as well
11272 as the old value, to match what is freed in bpstat_clear.
11273
11274 2003-03-10 David Carlton <carlton@math.stanford.edu>
11275
11276 * minsyms.c (add_minsym_to_hash_table): Replace
11277 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11278 (compare_minimal_symbols, compact_minimal_symbols)
11279 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11280 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11281 of DEPRECATED_SYMBOL_MATCHES_NAME.
11282 (lookup_minimal_symbol_solib_trampoline): Ditto.
11283
11284 2003-03-10 Andrew Cagney <cagney@redhat.com>
11285
11286 * regcache.h (regcache_cooked_read_ftype): Define.
11287 (regcache_save, regcache_restore): Add a cooked_read parameter.
11288 * regcache.c (regcache_save, regcache_restore): Update.
11289 (do_cooked_read): New function.
11290 (regcache_cpy): Pass do_cooked_read to regcache_save and
11291 regcache_restore.
11292
11293 2003-03-10 Andrew Cagney <cagney@redhat.com>
11294
11295 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11296 * gdbarch.h, gdbarch.c: Re-generate.
11297 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11298 * x86-64-tdep.h: Update.
11299 * x86-64-tdep.c (x86_64_init_abi): Update.
11300 * v850-tdep.c (v850_gdbarch_init): Update.
11301 * sparc-tdep.c (sparc_gdbarch_init): Update.
11302 * sh-tdep.c (sh_gdbarch_init): Update.
11303 * s390-tdep.c (s390_gdbarch_init): Update.
11304 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11305 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11306 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11307 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11308 * mips-tdep.c (mips_gdbarch_init): Update.
11309 * mcore-tdep.c (mcore_gdbarch_init): Update.
11310 * m68k-tdep.c (m68k_gdbarch_init): Update.
11311 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11312 * ia64-tdep.c (ia64_gdbarch_init): Update.
11313 * i386-tdep.c (i386_gdbarch_init): Update.
11314 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11315 * hppa-tdep.c (hppa_gdbarch_init): Update.
11316 * h8300-tdep.c (h8300_gdbarch_init): Update.
11317 * frv-tdep.c (frv_gdbarch_init): Update.
11318 * cris-tdep.c (cris_gdbarch_init): Update.
11319 * avr-tdep.c (avr_gdbarch_init): Update.
11320 * arm-tdep.c (arm_gdbarch_init): Update.
11321 * alpha-tdep.c (alpha_gdbarch_init): Update.
11322 * sh-tdep.c (sh_init_extra_frame_info): Update.
11323 (sh64_init_extra_frame_info): Update.
11324 * ns32knbsd-nat.c (frame_num_args): Update.
11325 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11326 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11327 (xstormy16_frame_chain_valid): Update.
11328 * vax-tdep.c (vax_saved_pc_after_call): Update.
11329 * v850-tdep.c (v850_frame_chain): Update.
11330 (v850_pop_frame): Update.
11331 (v850_init_extra_frame_info): Update.
11332 * sparc-tdep.c (setup_arbitrary_frame): Update.
11333 * ns32k-tdep.c (umax_frame_num_args): Update.
11334 * s390-tdep.c (s390_pop_frame_regular): Update.
11335 * mn10300-tdep.c (mn10300_frame_chain): Update.
11336 (mn10300_pop_frame_regular): Update.
11337 (mn10300_init_extra_frame_info): Update.
11338 * mips-tdep.c (mips_init_frame_pc_first): Update.
11339 (mips_frame_chain): Update.
11340 (mips_pop_frame): Update.
11341 * mcore-tdep.c (mcore_frame_chain): Update.
11342 (mcore_pop_frame): Update.
11343 (mcore_init_extra_frame_info): Update.
11344 * arch-utils.c (init_frame_pc_default): Update.
11345 * m68k-tdep.c (isi_frame_num_args): Update.
11346 (delta68_frame_num_args): Update.
11347 (news_frame_num_args): Update.
11348 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11349 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11350 (alpha_frame_chain): Update.
11351 (alpha_pop_frame): Update.
11352 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11353 (hppa_init_extra_frame_info): Update.
11354 (hppa_frame_chain): Update.
11355 (hppa_frame_chain_valid): Update.
11356 * cris-tdep.c (cris_init_extra_frame_info): Update.
11357 * avr-tdep.c (avr_init_extra_frame_info): Update.
11358 * arm-tdep.c (arm_frame_chain_valid): Update.
11359 (arm_init_extra_frame_info): Update.
11360 (arm_pop_frame): Update.
11361 * frame.c (frame_pc_unwind): Update.
11362 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11363 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11364 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11365 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11366 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11367 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11368
11369 2003-03-10 Andrew Cagney <cagney@redhat.com>
11370
11371 * gdbarch.sh (gdbarch_unwind_pc): New method.
11372 * gdbarch.h, gdbarch.c: Regenerate.
11373 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11374 but use read_pc and FRAME_SAVED_PC as fall backs.
11375 (frame_saved_regs_pc_unwind): Delete function.
11376 (trad_frame_unwinder): Update.
11377 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11378 (struct frame_unwind): Update.
11379 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11380 (dummy_frame_unwind): Update.
11381 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11382 (sentinel_frame_unwinder): Update.
11383 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11384 (d10v_frame_unwind): Update.
11385 (d10v_unwind_pc): New function.
11386 (d10v_gdbarch_init): Set unwind_pc.
11387
11388 2003-03-10 Andrew Cagney <cagney@redhat.com>
11389
11390 * gdbarch.h: Re-generate.
11391
11392 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11393 PC.
11394 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11395 the PC register.
11396
11397 2003-03-08 Mark Kettenis <kettenis@gnu.org>
11398
11399 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11400
11401 2003-03-08 Andrew Cagney <cagney@redhat.com>
11402
11403 * cli-out.c: Update copyright.
11404 (cli_out_data): Define typedef. Use instead of ui_out_data.
11405
11406 2003-03-08 Andrew Cagney <cagney@redhat.com>
11407
11408 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11409 the result.
11410
11411 2003-03-07 Andrew Cagney <cagney@redhat.com>
11412
11413 * gdbarch.sh: Don't generate two macro definitions when an
11414 undefined macro taking no arguments.
11415 * gdbarch.h: Regenerate.
11416
11417 2002-03-07 Michal Ludvig <mludvig@suse.cz>
11418
11419 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11420 (x86_64_unwind_dummy_id): New functions.
11421 (x86_64_init_abi): Register these two new functions.
11422
11423 2003-03-07 Michal Ludvig <mludvig@suse.cz>
11424
11425 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
11426 (x86_64_skip_prologue): Move prologue detection to
11427 separate function.
11428 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11429
11430 2003-03-05 Andrew Cagney <cagney@redhat.com>
11431
11432 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11433 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11434 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11435 to use unwind_dummy_id when a dummy frame.
11436 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11437 predicate.
11438 * gdbarch.h, gdbarch.c: Regneerate.
11439
11440 2003-03-05 Andrew Cagney <cagney@redhat.com>
11441
11442 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11443 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11444 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11445 values.
11446
11447 2003-03-05 Andrew Cagney <cagney@redhat.com>
11448
11449 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11450 (struct d10v_unwind_cache): Delete field "frameless". Replace
11451 "next_addr" with "sp_offset". Add "r11_offset".
11452 (d10v_frame_unwind_cache): Update.
11453 (prologue_find_regs): Update. When "mv r11, sp", save the
11454 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11455 RN was saved in r11_offset.
11456
11457 2003-03-05 Andrew Cagney <cagney@redhat.com>
11458
11459 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11460 cached PC value in the next frame.
11461
11462 2003-03-05 Andrew Cagney <cagney@redhat.com>
11463
11464 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11465 "id_unwind_cache" with "id".
11466 (frame_id_unwind): Delete declaration.
11467 * frame.c (frame_id_unwind): Delete function.
11468 (get_prev_frame): Call the frame id unwind method directly. Store
11469 the returned next frame's ID value in NEXT_FRAME. Note that there
11470 is a problem with the wrong unwind ID being called with the wrong
11471 unwind cache.
11472
11473 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11474
11475 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11476
11477 2003-03-05 James Ingham <jingham@apple.com>
11478 Daniel Jacobowitz <drow@mvista.com>
11479
11480 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11481 (auto_cp_abi): New variable.
11482 (current_cp_abi, num_cp_abis): Make static.
11483 (CP_ABI_MAX): Define.
11484 (cp_abis): Turn into an array.
11485 (value_virtual_fn_field): Fix formatting.
11486 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11487 takes a pointer.
11488 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11489 (list_cp_abis, _initialize_cp_abi): New functions.
11490 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11491 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11492 switch_to_cp_abi. Update prototype for register_cp_abi.
11493 * Makefile.in (cp-abi.o): Update dependencies.
11494 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11495 instead of switch_to_cp_abi.
11496 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11497 register_cp_abi.
11498 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11499 register_cp_abi.
11500 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11501
11502 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11503
11504 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11505 * dwarf2loc.c: Include "regcache.h".
11506 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11507 register_size.
11508 * Makefile.in (dwarf2loc.o): Update dependencies.
11509
11510 2003-03-04 Theodore A. Roth <troth@openavr.org>
11511
11512 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11513 number of io registers reported by remote target is not a multiple of
11514 step.
11515
11516 2003-03-04 David Carlton <carlton@math.stanford.edu>
11517
11518 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11519 (lookup_symbol_aux_psymtabs): Update call to
11520 lookup_partial_symbol.
11521 (lookup_transparent_type, find_main_psymtab)
11522 (make_symbol_overload_list): Ditto.
11523
11524 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11525
11526 * MAINTAINERS (Write after approval): Update my email address.
11527
11528 2003-03-03 Andrew Cagney <cagney@redhat.com>
11529
11530 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11531 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11532 predicate. Replace MAX_REGISTER_RAW_SIZE.
11533 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11534 MAX_REGISTER_VIRTUAL_SIZE.
11535 * regcache.c (legacy_max_register_raw_size): New function.
11536 (legacy_max_register_virtual_size): New function.
11537 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11538 (MAX_REGISTER_RAW_SIZE): Define.
11539 (legacy_max_register_raw_size): Declare.
11540 (legacy_max_register_virtual_size): Declare.
11541 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11542 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11543 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11544 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11545 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11546 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11547 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11548 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11549 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11550 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11551 * vax-tdep.c (vax_gdbarch_init): Update.
11552 * v850-tdep.c (v850_gdbarch_init): Update.
11553 * sparc-tdep.c (sparc_gdbarch_init): Update.
11554 * sh-tdep.c (sh_gdbarch_init): Update.
11555 * s390-tdep.c (s390_gdbarch_init): Update.
11556 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11557 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11558 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11559 * mips-tdep.c (mips_gdbarch_init): Update.
11560 * mcore-tdep.c (mcore_gdbarch_init): Update.
11561 * m68k-tdep.c (m68k_gdbarch_init): Update.
11562 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11563 * ia64-tdep.c (ia64_gdbarch_init): Update.
11564 * i386-tdep.c (i386_gdbarch_init): Update.
11565 * hppa-tdep.c (hppa_gdbarch_init): Update.
11566 * h8300-tdep.c (h8300_gdbarch_init): Update.
11567 * frv-tdep.c (frv_gdbarch_init): Update.
11568 * cris-tdep.c (cris_gdbarch_init): Update.
11569 * avr-tdep.c (avr_gdbarch_init): Update.
11570 * arm-tdep.c (arm_gdbarch_init): Update.
11571 * alpha-tdep.c (alpha_gdbarch_init): Update.
11572 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11573 max_register_raw_size or max_register_virtual_size.
11574
11575 2003-03-03 David Carlton <carlton@math.stanford.edu>
11576
11577 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11578 SYMBOL_MATCHES_NAME, add comment.
11579 (SYMBOL_MATCHES_NATURAL_NAME): New.
11580 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11581 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11582 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11583 * symtab.c (lookup_partial_symbol): Use
11584 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11585 unhelpful comment.
11586 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11587 SYMBOL_MATCHES_NAME.
11588 Fix for PR c++/33.
11589
11590 2003-03-03 David Carlton <carlton@math.stanford.edu>
11591
11592 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11593 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11594 by regexp matching against SYMBOL_NATURAL_NAME.
11595
11596 2003-03-03 David Carlton <carlton@math.stanford.edu>
11597
11598 * linespec.c (find_method): Extract code into collect_methods.
11599 (collect_methods): New.
11600
11601 2003-03-02 Mark Kettenis <kettenis@gnu.org>
11602
11603 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11604 get_frame_base.
11605
11606 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11607 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11608
11609 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11610
11611 * arch-utils.c (generic_register_byte): Fix to use the loop index
11612 and not regnum when summing the size of all registers up to regnum.
11613
11614 2003-03-01 Andrew Cagney <cagney@redhat.com>
11615
11616 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11617 FRAME_INIT_SAVED_REGS.
11618 * gdbarch.h, gdbarch.c: Regenerate.
11619 * stack.c (frame_info): Update.
11620 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11621 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11622 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11623 * ns32k-tdep.c (ns32k_pop_frame): Update.
11624 * mips-tdep.c (mips_pop_frame): Update.
11625 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11626 * ia64-tdep.c (ia64_frame_chain): Update.
11627 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11628 (ia64_frameless_function_invocation): Update.
11629 (ia64_init_extra_frame_info): Update.
11630 (ia64_pop_frame_regular): Update.
11631 * frame.h (struct frame_info): Update comment.
11632 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11633 * frame.c (frame_saved_regs_register_unwind): Update.
11634 (frame_saved_regs_register_unwind): Update.
11635 (deprecated_generic_get_saved_register): Update.
11636 * cris-tdep.c: Update comment.
11637 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11638 Rename macro.
11639 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11640 * x86-64-tdep.c (x86_64_init_abi): Update.
11641 * vax-tdep.c (vax_gdbarch_init): Update.
11642 * v850-tdep.c (v850_gdbarch_init): Update.
11643 * sparc-tdep.c (sparc_gdbarch_init): Update.
11644 * sh-tdep.c (sh_gdbarch_init): Update.
11645 * s390-tdep.c (s390_gdbarch_init): Update.
11646 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11647 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11648 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11649 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11650 * mips-tdep.c (mips_gdbarch_init): Update.
11651 * mcore-tdep.c (mcore_gdbarch_init): Update.
11652 * m68k-tdep.c (m68k_gdbarch_init): Update.
11653 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11654 * ia64-tdep.c (ia64_gdbarch_init): Update.
11655 * i386-tdep.c (i386_gdbarch_init): Update.
11656 * frv-tdep.c (frv_gdbarch_init): Update.
11657 * avr-tdep.c (avr_gdbarch_init): Update.
11658 * arm-tdep.c (arm_gdbarch_init): Update.
11659 * alpha-tdep.c (alpha_gdbarch_init): Update.
11660
11661 2003-03-01 Andrew Cagney <cagney@redhat.com>
11662
11663 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11664 option enum and switch. When no windows, set the interpreter to
11665 INTERP_CONSOLE.
11666
11667 2003-03-01 Andrew Cagney <cagney@redhat.com>
11668
11669 * main.c (captured_main): Replace magic option characters with an
11670 enum.
11671
11672 2003-03-01 Andrew Cagney <cagney@redhat.com>
11673
11674 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11675 INIT_EXTRA_FRAME_INFO.
11676 * gdbarch.h, gdbarch.c: Regenerate.
11677 * arm-tdep.c: Update comments.
11678 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11679 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11680 * frame.h, avr-tdep.c: Ditto.
11681 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11682 (create_new_frame, legacy_get_prev_frame): Ditto.
11683 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11684 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11685 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11686 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11687 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11688 * v850-tdep.c (v850_gdbarch_init): Ditto.
11689 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11690 * sh-tdep.c (sh_gdbarch_init): Ditto.
11691 * s390-tdep.c (s390_gdbarch_init): Ditto.
11692 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11693 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11694 * mips-tdep.c (mips_gdbarch_init): Ditto.
11695 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11696 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11697 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11698 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11699 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11700 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11701 * frv-tdep.c (frv_gdbarch_init): Ditto.
11702 * cris-tdep.c (cris_gdbarch_init): Ditto.
11703 * avr-tdep.c (avr_gdbarch_init): Ditto.
11704 * arm-tdep.c (arm_gdbarch_init): Ditto.
11705 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11706 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11707
11708 2003-03-01 Andrew Cagney <cagney@redhat.com>
11709
11710 * gdbarch.sh (register_type): New function with predicate.
11711 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11712 * gdbarch.h, gdbarch.c: Re-generate.
11713 * arch-utils.c (generic_register_byte): Use generic_register_size.
11714 (generic_register_size): When available, use
11715 gdbarch_register_type.
11716 * regcache.c (init_regcache_descr): When available, initialize the
11717 register type array using gdbarch_register_type. If the
11718 architecture supplies gdbarch_register_type, do not use the legacy
11719 regcache layout.
11720 * d10v-tdep.c (d10v_register_type): Replace
11721 d10v_register_virtual_type.
11722 (d10v_gdbarch_init): Set register_type instead of
11723 register_virtual_type.
11724
11725 2003-03-01 Andrew Cagney <cagney@redhat.com>
11726
11727 * Makefile.in (ax-gdb.o): Update dependencies.
11728 * ax-gdb.c: Include "regcache.h".
11729 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11730 * findvar.c (value_of_register): Ditto.
11731 * infcmd.c (default_print_registers_info): Ditto.
11732
11733 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11734
11735 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11736 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11737
11738 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11739
11740 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11741 of STREQ.
11742
11743 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
11744
11745 * Makefile.in (dwarf2loc.o): Update dependencies.
11746 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11747 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11748 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11749 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11750 (locexpr_tracepoint_var_ref): New function.
11751 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11752
11753 2003-02-28 Andrew Cagney <cagney@redhat.com>
11754
11755 * regcache.c (register_size): New function.
11756 * regcache.h (register_size): Declare
11757 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11758 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11759
11760 2003-02-28 David Carlton <carlton@math.stanford.edu>
11761
11762 * linespec.c (decode_compound): Extract code into find_method.
11763 (find_method): New.
11764
11765 2003-02-28 J. Brobecker <brobecker@gnat.com>
11766
11767 * Makefile.in: Add rules to build and link in observer.o.
11768
11769 2003-02-27 J. Brobecker <brobecker@gnat.com>
11770
11771 * observer.c: Minor comments edits.
11772
11773 2003-02-27 J. Brobecker <brobecker@gnat.com>
11774
11775 * observer.h, observer.c: New file.
11776
11777 2003-02-27 Andrew Cagney <cagney@redhat.com>
11778
11779 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11780
11781 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11782
11783 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11784 (M6812_OP_STS_EXT): Likewise.
11785 (m6811_prologue): Use the above to recognize prologue.
11786 (m6812_prologue): Likewise.
11787
11788 2003-02-27 David Carlton <carlton@math.stanford.edu>
11789
11790 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11791 SYMBOL_PRINT_NAME.
11792 (compare_psymbols): Ditto.
11793 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11794
11795 2003-02-27 Michael Snyder <msnyder@redhat.com>
11796
11797 * f-lang.c (build_fortran_types): New function.
11798 (_initialize_f_language): Gdbarch-register built-in fortran types.
11799 * doublest.c (extract_floating): Fix warning text.
11800
11801 2003-02-27 Andrew Cagney <cagney@redhat.com>
11802
11803 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11804 predicate. Replaces PUSH_DUMMY_FRAME.
11805 * gdbarch.h, gdbarch.c: Regnerate.
11806 * valops.c (hand_function_call): Update. Call
11807 generic_push_dummy_frame directly.
11808 * vax-tdep.c (vax_gdbarch_init): Update.
11809 * sparc-tdep.c (sparc_gdbarch_init): Update.
11810 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11811 * m68k-tdep.c (m68k_gdbarch_init): Update.
11812 * hppa-tdep.c (hppa_gdbarch_init): Update.
11813 * alpha-tdep.c (alpha_gdbarch_init): Update.
11814 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11815 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11816 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11817 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11818 push_dummy_frame to generic_push_dummy_frame.
11819 * v850-tdep.c (v850_gdbarch_init): Ditto.
11820 * sh-tdep.c (sh_gdbarch_init): Ditto.
11821 * s390-tdep.c (s390_gdbarch_init): Ditto.
11822 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11823 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11824 * mips-tdep.c (mips_gdbarch_init): Ditto.
11825 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11826 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11827 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11828 * i386-tdep.c (i386_gdbarch_init): Ditto.
11829 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11830 * frv-tdep.c (frv_gdbarch_init): Ditto.
11831 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11832 * cris-tdep.c (cris_gdbarch_init): Ditto.
11833 * avr-tdep.c (avr_gdbarch_init): Ditto.
11834 * arm-tdep.c (arm_gdbarch_init): Ditto.
11835
11836 2003-02-26 Kevin Buettner <kevinb@redhat.com>
11837
11838 * mips-tdep.c (show_mips_abi): New function.
11839 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11840 command ``show mips abi''.
11841
11842 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
11843
11844 From Elena Zannoni <ezannoni@redhat.com>
11845 * dbxread.c (process_one_symbol): Only record line 0 if one or
11846 more sline entries have been seen for the function.
11847
11848 2003-02-26 Michael Chastain <mec@shout.net>
11849
11850 * configure: Regenerate with autoconf 000227.
11851
11852 2003-02-26 Michael Chastain <mec@shout.net>
11853
11854 Close PR build/660.
11855 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11856 for old libc5/glibc.
11857 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11858
11859 2003-02-26 Kris Warkentin <kewarken@qnx.com>
11860
11861 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11862 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11863
11864 2003-02-26 Michael Chastain <mec@shout.net>
11865
11866 * configure.in: New variable HAVE_UINTPTR_T.
11867 * configure, config.in: Regenerated.
11868
11869 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
11870
11871 Fix PR build/1097.
11872 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11873
11874 2003-02-25 Andrew Cagney <cagney@redhat.com>
11875
11876 * frame.c (get_prev_frame): Add comment on check for
11877 inside_entry_func. Only check for inside_entry_file when not a
11878 dummy and not a sentinel. Check that the new frame is not inner
11879 to the old frame.
11880
11881 2003-02-25 Andrew Cagney <cagney@redhat.com>
11882
11883 * frame.c (frame_debug): New variable.
11884 (_initialize_frame): Add "set/show debug frame" command.
11885 (get_prev_frame): When frame_debug, print reason why unwind
11886 failed.
11887
11888 2003-02-25 Michael Chastain <mec@shout.net>
11889
11890 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11891 to avoid uintptr_t definition problems.
11892
11893 2003-02-25 David Carlton <carlton@math.stanford.edu>
11894
11895 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11896 (SYMBOL_LINKAGE_NAME): Ditto.
11897 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11898 SYMBOL_LINKAGE_NAME.
11899 (struct general_symbol_info): Expand comment.
11900 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11901 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11902 (SYMBOL_MATCHES_REGEXP): Ditto.
11903 * symtab.c (symbol_natural_name): New function.
11904 * objfiles.h: Replace all uses of SYMBOL_NAME by
11905 DEPRECATED_SYMBOL_NAME.
11906 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11907 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11908 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11909 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11910 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11911 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11912 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11913 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11914 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11915 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11916 * ada-exp.y: Ditto.
11917 * ada-exp.y: Update copyright.
11918 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11919 * cp-valprint.c: Ditto.
11920
11921 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11922
11923 * infptrace.c (detach): Do not flag error if ptrace detach fails
11924 and errno is set to ESRCH.
11925
11926 2003-02-24 Andrew Cagney <cagney@redhat.com>
11927
11928 * infptrace.c (udot_info): Change type of udot_off to long. Use
11929 paddr when printing udot_off's value.
11930
11931 2003-02-24 David Carlton <carlton@math.stanford.edu>
11932
11933 * symtab.c (make_symbol_overload_list): Only read in partial
11934 symtabs containing a matching partial symbol.
11935
11936 2003-02-24 David Carlton <carlton@math.stanford.edu>
11937
11938 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11939 do the comparison, not strcmp.
11940 * symfile.c (compare_psymbols): Ditto.
11941 * defs.h: Declare strcmp_iw_ordered.
11942 * utils.c (strcmp_iw_ordered): New function.
11943
11944 2003-02-24 Jim Blandy <jimb@redhat.com>
11945
11946 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11947 support, shared libs): Remove my name from here, to better reflect
11948 reality.
11949
11950 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11951
11952 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11953 (target_ops): Add to_have_continuable_watchpoint.
11954 * target.c (update_current_target): Add INHERIT line for
11955 to_have_continuable_watchpoint.
11956 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11957 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11958 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11959 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11960
11961 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
11962
11963 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11964 maintainership.
11965
11966 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11967
11968 * solib.c (solib_open): Call target defined search function after
11969 failing with solib-search-path.
11970 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11971 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
11972
11973 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11974
11975 * MAINTAINERS: Add myself to Write After section.
11976
11977 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11978
11979 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11980
11981 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11982
11983 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11984 (m68hc11_add_reggroups): New function.
11985 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11986 (m68hc11_gdbarch_init): Install the reggroups.
11987 (_initialize_m68hc11_tdep): Initialize them.
11988
11989 2003-02-21 James E Wilson <wilson@tuliptree.org>
11990
11991 * MAINTAINERS: Update my email address.
11992
11993 2003-02-21 David Carlton <carlton@math.stanford.edu>
11994
11995 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11996
11997 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
11998
11999 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12000 * symtab.h: Add opaque declarations of struct axs_value and
12001 struct agent_expr.
12002 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12003 (struct location_funcs): New type.
12004 (struct symbol): Add "loc" to aux_value.
12005 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12006 * dwarf2read.c: Include "dwarf2expr.h".
12007 (dwarf2_symbol_mark_computed): New function.
12008 (read_func_scope): Use it.
12009 (var_decode_location): New function.
12010 (new_symbol): Use it.
12011 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12012
12013 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12014 (dwarf2expr_h, dwarf2loc_h): New variables.
12015 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12016 (dwarf2expr.o, dwarf2loc.o): New rules.
12017 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12018 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12019 LOC_COMPUTED_ARG.
12020 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12021 * m2-exp.y (yylex): Likewise.
12022 * printcmd.c (address_info, print_frame_args): Likewise.
12023 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12024 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12025 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12026 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12027 * symtab.c (lookup_block_symbol): Likewise.
12028
12029 2003-02-20 Adam Fedor <fedor@gnu.org>
12030
12031 * symtab.h: Remove objc_specific struct
12032 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12033 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12034 Have language_objc use cplus_specific struct.
12035
12036 2003-02-20 Tom Tromey <tromey@redhat.com>
12037
12038 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12039 TYPE_NAME, when printing a String value. PR java/1075.
12040
12041 2003-02-20 Adam Fedor <fedor@gnu.org>
12042
12043 * objc-lang.h (find_methods): Remove declaration.
12044 * objc-lang.c (find_methods): Make static.
12045
12046 2003-02-20 Christopher Faylor <cgf@redhat.com>
12047
12048 * win32-nat.c (get_image_name): Check return value from
12049 ReadProcessMemory.
12050 (child_xfer_memory): Ditto.
12051
12052 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
12053
12054 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12055 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12056 '${exec_prefix}' (in addition to the expansion thereof) as
12057 relocatable.
12058 * configure: Rebuilt.
12059
12060 2003-02-20 David Carlton <carlton@math.stanford.edu>
12061
12062 * symtab.c (search_symbols): Revert the search_symbols part of my
12063 2002-12-23 patch. Add comment.
12064
12065 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12066
12067 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12068 * dbxread.c (elfstab_build_psymtabs): Don't call
12069 install_minimal_symbols.
12070 (stabsect_build_psymtabs): Likewise.
12071 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12072 earlier.
12073 * somread.c (som_symfile_read): Call install_minimal_symbols
12074 and do_cleanups earlier.
12075 * nlmread.c (nlm_symfile_read): Likewise.
12076 * mdebugread.c (elfmdebug_build_psymtabs): Call
12077 install_minimal_symbols and make appropriate cleanups.
12078
12079 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12080
12081 * solib.c (reload_shared_libraries): New function.
12082 (_initialize_solib): Add callbacks for ``set solib-search-path''
12083 and ``set solib-absolute-prefix''.
12084
12085 2003-02-20 David Carlton <carlton@math.stanford.edu>
12086
12087 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12088 expand comment.
12089 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12090 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12091 * ada-typeprint.c (ada_typedef_print): Ditto.
12092 * ax-gdb.c (gen_var_ref): Ditto.
12093 * breakpoint.c (print_one_breakpoint): Ditto.
12094 * buildsym.c (finish_block): Ditto.
12095 * c-valprint.c (c_val_print): Ditto.
12096 * expprint.c (print_subexp): Ditto.
12097 * findvar.c (locate_var_value): Ditto.
12098 * infcmd.c (jump_command): Ditto.
12099 * linespec.c (decode_line_2, decode_compound): Ditto.
12100 * maint.c (maintenance_translate_address): Ditto.
12101 * objc-lang.c (compare_selectors, compare_classes): Ditto.
12102 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12103 Ditto.
12104 * p-valprint.c (pascal_val_print): Ditto.
12105 * stabsread.c (define_symbol): Ditto.
12106 * stack.c (print_frame, frame_info, print_block_frame_locals)
12107 (print_frame_arg_vars, return_command): Ditto.
12108 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12109 * symmisc.c (print_symbol): Ditto.
12110 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12111 (compare_search_syms, print_symbol_info, print_msymbol_info)
12112 (rbreak_command): Ditto.
12113 * tracepoint.c (tracepoints_info): Ditto.
12114 * typeprint.c (typedef_print): Ditto.
12115 * valops.c (value_of_variable, hand_function_call): Ditto.
12116 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12117 * ada-typeprint.c: Update Copyright.
12118 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12119 * tracepoint.c, cli/cli-cmds.c: Ditto.
12120
12121 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12122
12123 * frame.c (generic_unwind_get_saved_register): Make non-static.
12124 * frame.h (generic_unwind_get_saved_register): Declare.
12125 * mips-tdep.c (read_next_frame_reg): Fetch register from
12126 current regcache when frame is NULL.
12127 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12128 that must be NULL.
12129 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12130 instead of frame_register_unwind().
12131
12132 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12133
12134 * remote-sim.c (gdbsim_insert_breakpoint)
12135 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12136 code.
12137
12138 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12139
12140 * remote.c (_initialize_remote): Add commands "set/show remote
12141 hardware-watchpoint-limit" and "set/show remote
12142 hardware-breakpoint-limit".
12143 (remote_hw_watchpoint_limit): Initialize to -1.
12144 (remote_hw_breakpoint_limit): Ditto.
12145 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12146
12147 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12148
12149 * coff-pe-read.c: New file - support reading of minimal symbols from a
12150 portable executable using the export table.
12151 * coff-pe-read.h: New file.
12152 * coffread.c: Include coff-pe-read.h.
12153 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12154 debugging symbols found.
12155 * Makefile.in (SFILES): Add coff-pe-read.o.
12156 (coff_pe_read_h): Define.
12157 (COMMON_OBS): Add coff-pe-read.o.
12158 (coffread.o): Add coff_pe_read_h dependency.
12159 (coff-pe-read.o): New target.
12160
12161 2003-02-19 David Carlton <carlton@math.stanford.edu>
12162
12163 * Makefile.in (SFILES): Add block.c.
12164 (block_h): New.
12165 (COMMON_OBS): Add block.o.
12166 (block.o): New.
12167 (x86-64-tdep.o): Add $(block_h).
12168 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12169 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12170 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12171 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12172 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12173 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12174 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12175 * value.h: Add opaque declaration for struct block.
12176 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12177 * ada-lang.h: Ditto.
12178 * x86-64-tdep.c: #include "block.h"
12179 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12180 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12181 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12182 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12183 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12184 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12185 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12186 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12187 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12188 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12189 * symtab.c (block_function): Ditto.
12190 (contained_in): Ditto.
12191 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12192 block.h. Add opaque declaration for struct block.
12193 * symtab.h: Move block_function and contained_in declarations to
12194 block.h. Add opaque declarations for struct block, struct
12195 blockvector.
12196 (struct block): Move to block.h.
12197 (struct blockvector): Ditto.
12198 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12199 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12200 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12201 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12202 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12203 Ditto.
12204 * block.c: New file.
12205 * block.h: New file.
12206
12207 2003-02-19 Theodore A. Roth <troth@openavr.org>
12208
12209 * avr-tdep.c (avr_extract_return_value): Remove function.
12210 (avr_store_return_value): Remove function.
12211 (avr_extract_struct_value_address): Remove function.
12212 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12213
12214 2003-02-19 Andrew Cagney <ac131313@redhat.com>
12215
12216 * rs6000-tdep.c: Include "gdb_assert.h".
12217 (registers_e500): Add "acc" and "spefscr".
12218 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12219 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12220 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12221 really is "r0".
12222 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12223
12224 2003-02-18 Keith Seitz <keiths@redhat.com>
12225
12226 * Makefile.in: Add gdbtk-interps.c.
12227
12228 2003-02-18 Kevin Buettner <kevinb@redhat.com>
12229
12230 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12231 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12232
12233 2003-02-18 Andrew Cagney <cagney@redhat.com>
12234
12235 * symtab.h (struct objfile): Add opaque declaration.
12236
12237 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
12238
12239 From Jim Ingham <jingham@apple.com>:
12240 * dbxread.c (process_one_symbol): Use last_function_start rather
12241 than function_start_offset to find the real beginning of the
12242 current function. The latter is just the text section offset on
12243 some systems, the former is always the real function start.
12244
12245 2003-02-17 Andrew Cagney <cagney@redhat.com>
12246
12247 * configure.in: Revert ${target} != ${host}.
12248
12249 2003-02-17 Andrew Cagney <ac131313@redhat.com>
12250
12251 * configure.in (Makefile): Use the test ${target} != ${host},
12252 instead of the absence of the "nm.h" file, to determine of the
12253 configuration non-native.
12254 * configure: Regenerate.
12255
12256 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
12257
12258 From Brian Ford <ford@vss.fsi.com>
12259
12260 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12261 conditionalize tui_active test.
12262 (lookup_cmd_1): Ditto.
12263
12264 2003-02-14 Mark Kettenis <kettenis@gnu.org>
12265
12266 * configure.in: Add check for _etext.
12267 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12268 available.
12269 * config.in, configure: regenerated.
12270
12271 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
12272
12273 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12274
12275 2003-02-14 Andrew Cagney <ac131313@redhat.com>
12276
12277 * main.c (tui_version): Delete variable.
12278 (captured_main): When --tui, set interpreter_p to "tui" instead of
12279 enabling tui_version.
12280 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12281 tui_version.
12282 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12283 * cli/cli-cmds.c (disassemble_command): Ditto.
12284 * defs.h (tui_version): Delete declaration.
12285 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12286 (tui-interp.o): Add rules.
12287 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12288
12289 2003-02-14 Christopher Faylor <cgf@redhat.com>
12290
12291 * win32-nat.c (register_loaded_dll): Correctly set address range for
12292 just-loaded dll.
12293
12294 2003-02-12 Jason Molenda (jmolenda@apple.com)
12295
12296 * symmisc.c (print_objfile_statistics): Include information about
12297 the number of psymtabs and symtabs in each object file.
12298
12299 2003-02-13 Keith R Seitz <keiths@redhat.com>
12300
12301 * main.h (struct captured_main_args): Add interpreter_p.
12302 * main.c (captured_main): Initialize interpreter_p from context.
12303 * gdb.c (main): Set interpreter_p argument.
12304 * Makefile.in (gdb.o): Add dependency for interps.h.
12305
12306 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12307
12308 * event-top.c (cli_command_loop): Delete declaration.
12309 (_initialize_event_loop): Delete function setting event_loop_hook.
12310 * event-top.h (cli_command_loop): Declare. Update copyright.
12311 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12312 * interps.c (current_interp_command_loop): When event_loop_p, call
12313 cli_command_loop.
12314
12315 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12316
12317 * interps.h (interp_command_loop_ftype): Change return type to
12318 void.
12319
12320 2003-02-12 Michal Ludvig <mludvig@suse.cz>
12321
12322 * x86-64-tdep.c (x86_64_extract_return_value)
12323 (x86_64_store_return_value): Use regcache instead of regbuf.
12324 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12325 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12326
12327 2003-02-11 Andrew Cagney <ac131313@redhat.com>
12328
12329 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12330 * aclocal.m4: Regenerate.
12331 * configure: Regenerate.
12332
12333 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12334 TCL_LD_SEARCH_FLAGS.
12335
12336 2003-02-10 Michal Ludvig <mludvig@suse.cz>
12337
12338 * dwarf2cfi.c: Reindented.
12339
12340 2003-02-09 Andrew Cagney <ac131313@redhat.com>
12341
12342 * interps.c (clear_interpreter_hooks): Convert function definition
12343 to ISO C.
12344
12345 2003-02-07 David Carlton <carlton@math.stanford.edu>
12346
12347 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12348
12349 2003-02-07 Kevin Buettner <kevinb@redhat.com>
12350
12351 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12352 (struct type): ...to here.
12353 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12354 field.
12355 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12356 (replace_type): Set length on all type variants for a given type.
12357
12358 2003-02-07 Andrew Cagney <ac131313@redhat.com>
12359
12360 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12361 <sys/stat.h>.
12362 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12363
12364 2003-02-06 Andrew Cagney <ac131313@redhat.com>
12365
12366 * Makefile.in (symm-nat.o): Update dependencies.
12367 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12368 (lynx-nat.o, ia64-linux-nat.): Ditto.
12369 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12370 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12371 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12372
12373 * Makefile.in (inflow_h): Define.
12374 (procfs.o, inflow.o, procfs.o): Update dependencies.
12375 * inftarg.c (child_stop): Delete extern declaration of
12376 inferior_process_group. Include "inflow.h".
12377 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12378 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12379 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12380 (our_process_group, inferior_process_group): Extern declarations.
12381
12382 * procfs.c: Include "gdb_assert.h".
12383
12384 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12385 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12386 * jv-typeprint.c (java_type_print_base): Ditto.
12387 * typeprint.c (typedef_print): Eliminate STREQ.
12388 * cli/cli-script.c (define_command, define_command): Ditto.
12389 * main.c (captured_main): Ditto.
12390 * values.c (lookup_internalvar): Ditto.
12391 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12392 within `if' conditional.
12393 * linespec.c (decode_line_2): Ditto.
12394 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12395 (bfd_openw_with_cleanup): Ditto.
12396
12397 2003-02-07 Mark Kettenis <kettenis@gnu.org>
12398
12399 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12400 legacy_extract_return_value and store_return_value to
12401 legacy_return_value.
12402
12403 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12404
12405 * win32-nat.c (get_relocated_section_addrs): New function. Find
12406 section load addresses for symbol handling in relocated DLLs.
12407 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12408
12409 2003-02-05 Fred Fish <fnf@intrinsity.com>
12410
12411 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12412 '=' and '!='.
12413 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12414 with '&' and '=='.
12415 (angel_RDI_info): Ditto.
12416 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12417 with '&' and '!='.
12418 (threads_continue_all_with_signals): Ditto.
12419
12420 2003-02-05 Jim Ingham <jingham@apple.com>
12421 Keith Seitz <keiths@redhat.com>
12422 Elena Zannoni <ezannoni@redhat.com>
12423 Andrew Cagney <ac131313@redhat.com>
12424
12425 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12426 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12427 (SUBDIR_MI_OBS): Add "mi-interp.o".
12428 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12429 (SFILES): Add "interps.c".
12430 (COMMON_OBS): Add "interps.o".
12431 (interps_h, mi_main_h): Define.
12432 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12433 (mi-main.o, main.o, event-top.o): Update dependencies.
12434 * cli/cli-interp.c: New file.
12435 * interps.h, interps.c: New files.
12436 * top.c: (gdb_init): Don't install the default interpreter, handed
12437 by captured_main.
12438 * main.c: Include "interps.h".
12439 (interpreter_p): Note that it should malloc'ed.
12440 (captured_command_loop): Call current_interp_command_loop.
12441 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12442 xfree and xstrdup when updating interpreter_p. Install the
12443 default interpreter. Add hack to stop mi1's copyright notice
12444 being encoded.
12445 * event-top.h (gdb_setup_readline): Declare.
12446 (gdb_disable_readline): Declare.
12447 * event-top.c: Include "interps.h".
12448 (display_gdb_prompt): Call current_interp_display_prompt_p.
12449 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12450 gdb_stdlog, and gdb_stdtarg.
12451 (_initialize_event_loop): Don't call gdb_setup_readline.
12452 * cli-out.c (cli_out_set_stream): New function.
12453 * cli-out.h (cli_out_set_stream): Declare.
12454
12455 2003-02-06 Mark Kettenis <kettenis@gnu.org>
12456
12457 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12458 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12459 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12460 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12461 config/i386/i386v42mp.mt: Removed.
12462
12463 2003-02-05 Mark Kettenis <kettenis@gnu.org>
12464
12465 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12466 GDB_OSABI_SOLARIS.
12467
12468 2003-02-05 Michael Chastain <mec@shout.net>
12469
12470 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12471 2.12.1 and earlier versions.
12472
12473 2003-02-05 Andrew Cagney <ac131313@redhat.com>
12474
12475 Remove orphaned hosts, targets and files.
12476 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12477 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12478 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12479 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12480 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12481 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12482 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12483 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12484 * config/sparc/tm-sp64sim.h: Delete.
12485 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12486 hosts.
12487 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12488 mips*-dec-mach3* targets.
12489
12490 2003-02-04 Michael Chastain <mec@shout.net>
12491
12492 * NEWS: Fix typo: sepcifying -> specifying.
12493
12494 2003-02-04 Michael Chastain <mec@shout.net>
12495
12496 * dwarfread.c: Add documentation on the state of dwarf-1,
12497 looking towards obsoletion.
12498
12499 2003-02-03 Michael Chastain <mec@shout.net>
12500
12501 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12502 gdb/testsuite/gdb.c++/pr-1023.exp.
12503
12504 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12505
12506 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12507 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12508
12509 * utils.c (init_page_info): Delete reference to MPW in comments.
12510 * main.c (captured_main): Delete #ifdef MPW.
12511
12512 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12513
12514 * NEWS: Note that the m32r-*-elf* is obsolete.
12515 * monitor.c (monitor_expect): Obsolete reference to m32r.
12516 * configure.tgt: Mark m32r-*-elf* as obsolete.
12517 * MAINTAINERS: Mark m32k as obsolete.
12518 * m32r-rom.c: Obsolete file.
12519 * config/m32r/m32r.mt: Obsolete file.
12520 * config/m32r/tm-m32r.h: Obsolete file.
12521 * m32r-stub.c: Obsolete file.
12522 * m32r-tdep.c: Obsolete file.
12523
12524 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12525
12526 * NEWS: Mention that the z8k-zilog-none is obsolete.
12527 * MAINTAINERS: Mark z8k as obsolete.
12528 * configure.tgt: Obsolete the z8k-*-coff* target.
12529 * config/z8k/z8k.mt: Obsolete file.
12530 * config/z8k/tm-z8k.h: Obsolete file.
12531 * z8k-tdep.c: Obsolete file.
12532
12533 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12534
12535 * NEWS: Mention that the mn10200-elf is obsolete.
12536 * configure.tgt: Obsolete mn10200-*-* target.
12537 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12538 mention that the mn10200 is obsolete.
12539 * breakpoint.h: Ditto.
12540 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12541 * config/mn10200/mn10200.mt: Obsolete file.
12542 * config/mn10200/tm-mn10200.h: Obsolete file.
12543 * mn10200-tdep.c: Obsolete file.
12544
12545 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12546
12547 * MAINTAINERS: Mark h8500 as obsolete.
12548 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12549 * findvar.c (value_from_register): Ditto.
12550 * h8500-tdep.c: Mark file as obsolete.
12551 * config/h8500/h8500.mt: Ditto.
12552 * config/h8500/tm-h8500.h: Ditto.
12553 * NEWS: Mention that h8500 is obsolete.
12554
12555 2003-02-04 David Carlton <carlton@math.stanford.edu>
12556
12557 * objfiles.c (allocate_objfile): Always set name. Add comment at
12558 start of function.
12559 * jv-lang.c (get_dynamics_objfile): Add comment.
12560
12561 2003-02-04 David Carlton <carlton@math.stanford.edu>
12562
12563 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12564 * printcmd.c (build_address_symbolic): Replace uses of
12565 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12566 SYMBOL_NAME, and asm_demangle.
12567 Update copyright.
12568
12569 2003-02-04 David Carlton <carlton@math.stanford.edu>
12570
12571 * linespec.c (decode_compound): Extract code into
12572 lookup_prefix_sym.
12573 (lookup_prefix_sym): New function.
12574
12575 2003-02-04 David Carlton <carlton@math.stanford.edu>
12576
12577 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12578 FLOAT_COERCION_BADNESS.
12579 * gdbtypes.c (rank_one_type): Replace all uses of
12580 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12581
12582 2003-02-04 Jim Blandy <jimb@redhat.com>
12583
12584 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12585 section, let dwarf_macinfo_section point to it, not
12586 dwarf_loc_section.
12587
12588 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12589
12590 Pointed out by Anton Blanchard <anton@samba.org>.
12591 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12592 (ppc_linux_at_sigtramp_return_path): Use it.
12593
12594 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12595
12596 * defs.h (streq): Add prototype.
12597 * utils.c (streq): New function.
12598
12599 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12600 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12601 * mdebugread.c (new_symbol): Likewise.
12602 * stabsread.c (define_symbol): Likewise.
12603 * coffread.c (process_coff_symbol): Likewise.
12604 * dwarfread.c (new_symbol): Likewise.
12605
12606 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12607 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12608 here.
12609 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12610 SYMBOL_INIT_DEMANGLED_NAME.
12611 * objfiles.c: Include "hashtab.h".
12612 (allocate_objfile): Call htab_set_functions_ex for the
12613 demangled_names_hash.
12614 (free_objfile): Call htab_delete for the demangled_names_hash.
12615 * objfiles.h (struct htab): Add declaration.
12616 (struct objfile): Add demangled_names_hash.
12617 * symfile.c: Include "hashtab.h".
12618 (reread_symbols): Call htab_delete for the demangled_names_hash.
12619 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12620 SYMBOL_NAME in the bcache.
12621 * symtab.c: Include "hashtab.h". Update comments.
12622 (create_demangled_names_hash, symbol_set_names): New functions.
12623 (symbol_find_demangled_name): New function, broken out from
12624 symbol_init_demangled_names.
12625 (symbol_init_demangled_names): Use it.
12626 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12627 (SYMBOL_SET_NAMES): New macro.
12628 (symbol_set_names): Add prototype.
12629
12630 2003-02-03 Jim Blandy <jimb@redhat.com>
12631
12632 Use a single, consistent representation for an empty minimal
12633 symbol table in an objfile.
12634 * objfiles.c (terminate_minimal_symbol_table): New function.
12635 (allocate_objfile): Call it.
12636 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12637 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
12638 non-NULL.
12639 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12640 objfile has minimal symbols, compare minimal_symbol_count to zero,
12641 instead of comparing msymbols with NULL.
12642 * objfiles.c (have_minimal_symbols): Same.
12643 * solib-sunos.c (solib_add_common_symbols): Call
12644 terminate_minimal_symbol_table.
12645 * symfile.c (reread_symbols): Same.
12646
12647 2003-02-03 Kevin Buettner <kevinb@redhat.com>
12648
12649 * s390-tdep.c (s390_address_class_type_flags)
12650 (s390_address_class_type_flags_to_name)
12651 (s390_address_class_name_to_type_flags): New functions.
12652 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12653 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12654
12655 2003-02-03 Michael Snyder <msnyder@redhat.com>
12656
12657 * arm-tdep.c: Fix spell-o in comment.
12658
12659 2003-02-03 Michal Ludvig <mludvig@suse.cz>
12660
12661 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12662 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
12663 error messages to contain BFD filename.
12664
12665 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
12666
12667 Fix PR gdb/742 gdb/743 gdb/877
12668 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12669 (do_mixed_source_and_assembly): Use
12670 make_cleanup_ui_out_tuple_begin_end and
12671 make_cleanup_ui_out_tuple_begin_end.
12672 (do_mixed_source_and_assembly): Ditto.
12673 * thread.c (do_captured_list_thread_ids): Ditto.
12674 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12675 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12676 ui_out_tuple_end): Delete prototypes.
12677 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12678 ui_out_list_end, ui_out_tuple_end): Delete.
12679
12680 From Kevin Buettner <kevinb@redhat.com>:
12681 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
12682 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12683 (do_cleanup_table_end): New functions.
12684 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12685 Use cleanups to invoke_ui_out_tuple_end().
12686 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
12687 * cli/cli-setshow.c (cmd_show_list): Use
12688 make_cleanup_ui_out_tuple_begin_end.
12689
12690 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12691
12692 * frame.c (frame_unwind_register): New function.
12693 (frame_unwind_unsigned_register): Use.
12694 (frame_unwind_signed_register): Use.
12695 (frame_read_register): New function.
12696 * frame.h (frame_unwind_register): Declare.
12697 (frame_read_register): Declare.
12698
12699 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12700 and frame_unwind_register instead of read_memory, write_register
12701 and deprecated_write_register_bytes.
12702
12703 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12704
12705 * frame.h: Note that namelen can be negative.
12706 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12707 NAME's length.
12708
12709 * NEWS: Mention that the d10v's `regs' command is deprecated.
12710 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12711 (d10v_print_registers_info): New function.
12712 (show_regs): Call d10v_print_registers_info.
12713 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12714
12715 2003-02-02 Mark Kettenis <kettenis@gnu.org>
12716
12717 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12718 lost in the previous patch.
12719
12720 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12721
12722 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
12723 * stack.c (print_frame_info_base): Output complete FRAME tuple
12724 for synthesized frames.
12725
12726 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12727
12728 * mips-nat.c (zerobuf): Delete.
12729 (fetch_inferior_registers): Alloc local zerobuf.
12730 (fetch_core_registers): Alloc local zerobuf.
12731 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12732 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12733 * thread-db.c (thread_db_store_registers): Ditto.
12734 * sh-tdep.c (sh_do_register): Ditto.
12735 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12736 * remote-sim.c (gdbsim_store_register): Ditto.
12737 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12738 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12739 * monitor.c (monitor_supply_register): Ditto.
12740 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12741 * mips-nat.c (fetch_inferior_registers): Ditto.
12742 * m68klinux-nat.c (fetch_register): Ditto.
12743 * lynx-nat.c (fetch_inferior_registers): Ditto.
12744 (fetch_inferior_registers): Ditto.
12745 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12746 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12747 (hpux_thread_store_registers): Ditto.
12748 * hppah-nat.c (fetch_register): Ditto.
12749 * hppab-nat.c (fetch_register): Ditto.
12750 * hppa-tdep.c (pa_register_look_aside): Ditto.
12751 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12752 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12753
12754 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12755
12756 * gdbarch.sh: Explictly specify all method levels. When a
12757 variable with an empty level, provide a non-multi-arch default.
12758 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12759 * gdbarch.h: Re-generate.
12760 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12761 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12762
12763 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12764
12765 * defs.h (host_pointer_to_address): Delete declaration.
12766 (address_to_host_pointer): Delete declaration.
12767 * utils.c (host_pointer_to_address): Delete function.
12768 (address_to_host_pointer): Delete function.
12769 * procfs.c (procfs_address_to_host_pointer): New function.
12770 * procfs.c (proc_set_watchpoint): Use.
12771 (procfs_can_use_hw_breakpoint): Update comments.
12772 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12773 (som_solib_add): Use.
12774 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12775 * hppa-tdep.c (unwind_command): Use.
12776
12777 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12778
12779 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12780 strlen d_name.
12781
12782 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12783 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12784 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12785 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12786 (define_symbol): Update.
12787 * symfile.c (generic_load): Remove references to nindy.
12788 * symtab.c: Remove references to nindy.
12789
12790 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12791
12792 * infcmd.c (print_float_info): Delete code conditional on
12793 FLOAT_INFO.
12794 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12795 * config/m68k/nm-apollo68b.h: Ditto.
12796 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12797 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12798 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12799
12800 2003-02-01 Mark Kettenis <kettenis@gnu.org>
12801
12802 * config/i386/tm-i386os9k.h: Removed.
12803
12804 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12805 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12806 they're identical to i[3456]86-*-sysv* now.
12807 * config/i386/i386v32.mh: Removed.
12808 * config/i386/xm-i386v32.h: Removed.
12809 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12810
12811 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12812
12813 * config/i386/i386dgux.mh: Removed.
12814 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12815
12816 * configure.in: Fix typo.
12817 * configure: Regenerated.
12818
12819 2003-01-31 David Carlton <carlton@math.stanford.edu>
12820
12821 * dwarf2read.c (dwarf2_locate_sections): Set
12822 dwarf_ranges_section.
12823
12824 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12825
12826 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12827 * utils.c: Update comments documenting legitimate uses of PTR.
12828
12829 * utils.c: Re-indent.
12830
12831 * config/djgpp/fnchange.lst: Delete nindy files.
12832 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12833 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12834 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12835 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12836 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12837 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12838 * Makefile.in (init.c): Remove nindy references.
12839 (saber_gdb): Delete rule.
12840 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12841 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12842 and a68v-nat.c.
12843 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12844 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12845 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12846 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12847 nindy-share/stop.h.
12848 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12849 * saber.suppress: Delete file.
12850
12851 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
12852
12853 * dbxread.c (stabs_data): New static variable.
12854 (fill_symbuf): Support an in-memory buffer for stabs data.
12855 (stabs_seek): New function.
12856 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12857 (read_ofile_symtab): Use stabs_seek.
12858 (elfstab_build_psymtabs): Take an asection* instead of
12859 an offset and size. Relocate the stabs data if necessary.
12860 Save the section* for dbx_psymtab_to_symtab.
12861 * dwarf2read.c: Add section variables for each debug section.
12862 (dwarf2_locate_sections): Fill them in.
12863 (dwarf2_read_section): Take an asection* argument.
12864 Relocate the section contents if necessary.
12865 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12866 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12867 it to dwarf2_read_section.
12868 (dwarf2_build_frame_info): Update callers.
12869 * elfread.c (elf_symfile_read): Update call to
12870 elfstab_build_psymtabs.
12871 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12872 (DBX_STAB_SECTION): New macro.
12873 * stabsread.h (elfstab_build_psymtabs): Update prototype.
12874 * symfile.c (symfile_dummy_outputs): New function.
12875 (symfile_relocate_debug_section): New function.
12876 * symfile.h (symfile_relocate_debug_section): Add prototype.
12877
12878 2003-01-31 Richard Henderson <rth@redhat.com>
12879
12880 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12881 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12882 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12883 * alpha-tdep.c (alpha_register_name): Add "unique".
12884 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12885 (ALPHA_UNIQUE_REGNUM): New.
12886 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12887
12888 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12889
12890 * README: Remove reference to Ericsson 1800 monitor.
12891 * Makefile.in (remote-es.o): Delete rule.
12892 (ALLDEPFILES): Delete remote-es.c.
12893 * remote-es.c: Delete file.
12894 * config/m68k/es1800.mt: Delete file.
12895 * config/djgpp/fnchange.lst: Update.
12896 * configure.tgt: Delete m68*-ericsson-* target.
12897
12898 2003-01-31 Adam Fedor <fedor@gnu.org>
12899
12900 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12901 Remove duplicate/shadowing variable of same name.
12902
12903 2003-01-30 Jim Blandy <jimb@redhat.com>
12904
12905 * symfile.c (find_separate_debug_file): Assert that the objfile's
12906 directory name we compute ends with a slash, and then assume that
12907 that's so everywhere we use it.
12908
12909 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
12910
12911 * valops.c (value_assign): Flush frame cache after stores to memory
12912 also.
12913
12914 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12915
12916 * Makefile.in (mon960-rom.o): Delete rule.
12917 * mon960-rom.c: Delete file.
12918
12919 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12920
12921 * d10v-tdep.c: Include "frame-unwind.h".
12922 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12923 list.
12924 (next_addr, uses_frame): Delete.
12925 (struct d10v_unwind_cache): Define.
12926 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12927 Use info instead of next_addr and uses_frame globals.
12928 (d10v_frame_init_saved_regs): Delete function.
12929 (d10v_init_extra_frame_info): Delete function.
12930 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12931 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12932 init_frame_pc or frame_saved_pc.
12933 (d10v_pop_frame): Delete function.
12934 (do_d10v_pop_frame): Delete function.
12935 (d10v_frame_chain): Delete function.
12936 (d10v_frame_chain_valid): Delete function.
12937 (d10v_frame_pc_unwind): New function.
12938 (d10v_frame_id_unwind): New function.
12939 (saved_regs_unwinder): New function.
12940 (d10v_frame_register_unwind): New function.
12941 (d10v_frame_pop): New function.
12942 (d10v_frame_unwind): New variable.
12943 (d10v_frame_p): New function.
12944 (d10v_frame_saved_pc): Delete function.
12945 * Makefile.in (d10v-tdep.o): Update dependencies.
12946
12947 2003-01-30 J. Brobecker <brobecker@gnat.com>
12948
12949 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12950 causing some regressions due to a change in the default value
12951 for this macro.
12952
12953 2003-01-29 Richard Henderson <rth@redhat.com>
12954 Elena Zannoni <ezannoni@redhat.com>
12955 Daniel Jacobowitz <drow@mvista.com>
12956
12957 Fix PR gdb/961.
12958 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
12959 variables.
12960 (RANGES_SECTION): New.
12961 (dwarf_ranges_buffer): New variable.
12962 (struct comp_unit_head): Add member "die".
12963 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12964 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12965 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12966 (dwarf2_locate_sections): Likewise.
12967 (dwarf2_build_psymtabs): Read .debug_ranges.
12968 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12969 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12970 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12971 Look for DW_AT_ranges and return the bounding box.
12972
12973 2003-01-29 Brian Ford <ford@vss.fsi.com>
12974
12975 * win32-nat.c (cygwin_pid): Removed as unused.
12976 (child_attach): Try fall back to Cygwin pid.
12977
12978 2003-01-29 Jim Blandy <jimb@redhat.com>
12979
12980 * objfiles.h (struct objfile): Doc fix.
12981
12982 2003-01-29 Andrew Cagney <ac131313@redhat.com>
12983
12984 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12985 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12986 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12987 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12988 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12989 (FRAME_SAVED_PC): Change to a function with predicate.
12990 * gdbarch.h, gdbarch.c: Re-generate.
12991
12992 2003-01-28 Andrew Cagney <ac131313@redhat.com>
12993
12994 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12995
12996 * complaints.c (complain): Delete function.
12997 * complaints.h (struct deprecated_complaint): Delete definition.
12998 (complain): Delete declaration.
12999
13000 2003-01-28 Kevin Buettner <kevinb@redhat.com>
13001
13002 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13003 dummy frames.
13004
13005 2003-01-27 Andrew Cagney <ac131313@redhat.com>
13006
13007 * sentinel-frame.h, sentinel-frame.c: New files.
13008 * Makefile.in (frame.o): Update dependencies.
13009 (SFILES): Add sentinel-frame.c.
13010 (sentinel_frame_h): Define.
13011 (COMMON_OBS): Add sentinel-frame.o.
13012 (sentinel-frame.o): Specify dependencies.
13013 * frame.c: Include "sentinel-frame.h".
13014 (frame_register_unwind): Rewrite assuming that there is always a a
13015 ->next frame.
13016 (frame_register, generic_unwind_get_saved_register): Ditto.
13017 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13018 (create_sentinel_frame, unwind_to_current_frame): New functions.
13019 (get_current_frame): Rewrite using create_sentinel_frame and
13020 unwind_to_current_frame. When possible, always create a frame.
13021 (create_new_frame): Set next to the sentinel frame.
13022 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13023 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13024 ID cache when necessary.
13025 (frame_saved_regs_id_unwind): Use frame_relative_level.
13026 (deprecated_generic_get_saved_register): Use frame_relative_level,
13027 get_frame_saved_regs, get_frame_pc, get_frame_base and
13028 get_next_frame.
13029 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13030 frame_register.
13031
13032 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13033
13034 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13035
13036 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13037
13038 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13039 (maintenance_set_profile_cmd): Use error () instead of warning ().
13040
13041 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13042
13043 * configure.in: Check that -pg works if using --enable-profiling.
13044 Check for monstartup and _mcleanup regardless of --enable-profiling.
13045 * maint.c: Check for monstartup and _mcleanup before using them.
13046 * config.in: Regenerated.
13047 * configure: Regenerated.
13048
13049 2003-01-24 Nick Clifton <nickc@redhat.com>
13050
13051 * Add sh2e support:
13052
13053 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13054
13055 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13056 (sh2e_show_regs): New.
13057 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13058 * config/sh/tm-sh.h: Added sh2e to comments.
13059
13060 2003-01-23 Jim Blandy <jimb@redhat.com>
13061
13062 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13063 symbols found)" message here; we haven't checked for a separate
13064 debug info file yet, so we don't know yet.
13065 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13066 we've looked everywhere. Also, there's no need to print a special
13067 message when we're loading the separate debug info file: the one
13068 symbol_file_add prints is fine.
13069
13070 2003-01-23 Alexander Larsson <alexl@redhat.com>
13071 Jim Blandy <jimb@redhat.com>
13072
13073 Add support for executables whose debug info has been separated
13074 out into a separate file, leaving only a link behind.
13075 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13076 and separate_debug_objfile_backlink.
13077 (put_objfile_before): New declaration.
13078 * symfile.c: #include "filenames.h".
13079 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13080 debug info in a separate file, read that, too. Save the addrs
13081 argument, so we can use it again to read the separated debug info;
13082 syms_from_objfile modifies the table we pass it.
13083 (reread_symbols): After re-reading an objfile, call
13084 reread_separate_symbols to refresh its separate debug info
13085 objfile, if it has one.
13086 (reread_separate_symbols, find_separate_debug_file,
13087 get_debug_link_info, separate_debug_file_exists): New functions.
13088 (debug_file_directory): New global var.
13089 (_initialize_symfile): Initialize debug_file_directory, and
13090 provide the new `set debug-file-directory' command to let the user
13091 change it.
13092 * objfiles.c (free_objfile): If this objfile has its debug info in
13093 a separate objfile, free that one too. If this is itself a
13094 separate debug info objfile, clear our parent's backlink.
13095 (put_objfile_before): New function.
13096 * utils.c (gnu_debuglink_crc32): New function.
13097 * defs.h (gnu_debuglink_crc32): New declaration.
13098 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13099 * configure.in: Handle --with-separate-debug-dir config option.
13100 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13101 * acconfig.h (DEBUGDIR): New macro.
13102 * configure, aclocal.m4, config.in: Regenerated.
13103
13104 2003-01-22 Jim Blandy <jimb@redhat.com>
13105
13106 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13107 like the old symbol_file_add, but taking new arguments: you can
13108 now pass in either a `struct section_addr_info' list to say where
13109 each section is loaded, or a `struct section_offsets' table. Pass
13110 these new arguments through to syms_from_objfile as appropriate.
13111 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13112 with the appropriate quiescent values for the new arguments.
13113
13114 * symfile.c: #include "gdb_assert.h".
13115 (syms_from_objfile): Add the ability to pass in a section offset
13116 table directly, as an alternative to the section_addr_info table.
13117 Document arguments better.
13118 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13119 * symfile.h (syms_from_objfile): Update declaration.
13120 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13121 syms_from_objfile.
13122 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13123
13124 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
13125
13126 Original patch by Tom Tromey <tromey@cygnus.com> and
13127 Jason Molenda <jmolenda@apple.com>.
13128 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13129 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13130 * NEWS: Mention profiling.
13131 * configure.in (--enable-gdbtk): Fix typo.
13132 (--enable-profiling): New. Set PROFILE_CFLAGS.
13133 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13134 Fill in function.
13135 (profiling_state): New variable.
13136 (mcleanup_wrapper): New function.
13137 (_initialize_maint): Remove NOTYET, fix call to
13138 add_setshow_boolean_cmd for "maint set profile".
13139 * configure: Regenerated.
13140
13141 2003-01-21 Martin M. Hunt <hunt@redhat.com>
13142
13143 * Makefile.in (install-gdbtk): Install PNG images too.
13144
13145 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13146
13147 * exec.c (text_start): Delete global variable.
13148 (exec_file_attach): Make text_start local to the function.
13149 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13150 * valops.c (hand_function_call): Delete code that handles
13151 BEFORE_TEXT_END and AFTER_TEXT_END.
13152 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13153 of CALL_DUMMY_LOCATION.
13154 * gdbarch.c: Regenerate.
13155 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13156 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13157 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13158 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13159 (text_end): Delete extern declaration.
13160
13161 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13162
13163 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13164 * blockframe.c (backtrace_below_main): Move to "frame.c".
13165 (frame_chain_valid): Delete check for backtrace_below_main.
13166 (_initialize_blockframe): Delete initialization, move ``set
13167 backtrace-below-main'' command to "frame.c".
13168 (do_flush_frames_sfunc): Delete function.
13169 * frame.c: Include "command.h" and "gdbcmd.h".
13170 (frame_type_from_pc): New function.
13171 (create_new_frame): Use frame_type_from_pc.
13172 (legacy_get_prev_frame): New function.
13173 (get_prev_frame): Rewrite. When an old style frame, call
13174 legacy_get_prev_frame. Otherwize, unwind the PC first.
13175 (_initialize_frame): Add ``set backtrace-below-main'' command.
13176 * Makefile.in (frame.o): Update dependencies.
13177
13178 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13179
13180 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13181 DEPRECATED_REGISTERS_INFO.
13182
13183 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13184
13185 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13186 Maintainers'. Update `Various Maintainers'.
13187
13188 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13189
13190 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13191 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13192 Suppress actual parameters when `-'.
13193 * gdbarch.h, gdbarch.c: Regenerate.
13194
13195 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13196
13197 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13198 code handling dummy frames.
13199
13200 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13201
13202 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13203 (struct frame_unwind): Add field pop.
13204 * frame.h (frame_pop): Declare.
13205 * frame.c (frame_saved_regs_pop): New function.
13206 (trad_frame_unwinder): Add frame_saved_regs_pop.
13207 (frame_pop): New function.
13208 * dummy-frame.c (dummy_frame_pop): New function.
13209 (discard_innermost_dummy): New function.
13210 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13211 (dummy_frame_unwind): Add dummy_frame_pop.
13212 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13213 * valops.c (hand_function_call): Ditto.
13214 * stack.c (return_command): Ditto.
13215
13216 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13217
13218 * cris-tdep.c: Fix function declaration indentation.
13219 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13220 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13221 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13222 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13223 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13224 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13225
13226 2003-01-18 Michael Chastain <mec@shout.net>
13227
13228 * README (Unpacking and Installation -- quick overview):
13229 Warn against ".../gdb-5.3/gdb/configure".
13230
13231 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13232
13233 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13234 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13235 (struct frame_unwind): Declare opaque.
13236 (dummy_frame_p): Declare function.
13237 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13238 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13239 * dummy-frame.c: Include "frame-unwind.h".
13240 (dummy_frame_p): New function.
13241 (dummy_frame_unwind): New variable.
13242 * frame.c: Include "frame-unwind.h".
13243 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13244 to use the new unwind field.
13245 (set_unwind_by_pc): Delete function.
13246 (create_new_frame, get_prev_frame): Set unwind field using
13247 frame_unwind_find_by_pc.
13248 (trad_frame_unwind, trad_frame_unwinder): New variables.
13249 * frame.h (trad_frame_unwind): Declare variable.
13250 (frame_id_unwind_ftype): Delete declaration.
13251 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13252 (struct frame_unwind): Declare opaque.
13253 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13254 register_unwind with a single unwind pointer.
13255 * frame-unwind.h, frame-unwind.c: New files.
13256 * Makefile.in (SFILES): Add frame-unwind.c.
13257 (frame_unwind_h): Define.
13258 (COMMON_OBS): Add frame-unwind.o.
13259 (frame-unwind.o): Specify dependencies.
13260 (frame.o, dummy-frame.o): Update dependencies.
13261
13262 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13263
13264 * ada-valprint.c: Eliminate PTR.
13265 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13266 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13267 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13268 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13269 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13270 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13271 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13272
13273 2003-01-17 Andrew Cagney <ac131313@redhat.com>
13274
13275 * main.c (captured_main): Don't use PTR.
13276 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13277 * gdbtypes.c (lookup_primitive_typename): Ditto.
13278 (lookup_struct_elt_type): Ditto.
13279 * f-valprint.c (info_common_command): Ditto.
13280 (list_all_visible_commons): Ditto.
13281 * jv-typeprint.c (java_type_print_base): Ditto.
13282
13283 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13284 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13285 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13286 i386-interix-nat.c and i386-interix-tdep.c. Rename
13287 m68klinux-nat.c and m68klinux-tdep.c. Rename
13288 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13289 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13290 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13291 * main.c (captured_main): Use xfree, not free.
13292
13293 2003-01-16 Andrew Cagney <ac131313@redhat.com>
13294
13295 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13296 ID back using a parameter.
13297 * frame.c (frame_id_unwind): Update call.
13298 (frame_saved_regs_id_unwind): Update.
13299 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13300 * dummy-frame.h (struct frame_id): Add opaque declaration.
13301 (dummy_frame_id_unwind): Update declaration.
13302
13303 2003-01-15 Andrew Cagney <ac131313@redhat.com>
13304
13305 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13306
13307 2003-01-15 Stephen P. Smith <ischis2@cox.net>
13308
13309 * MAINTAINERS (Stephen P. Smith): Updated email address.
13310
13311 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
13312
13313 Fix PR gdb/898
13314 * breakpoint.c (until_break_command): Add new argument. Use it to
13315 decide whether to stop only at the current frame or not.
13316 * breakpoint.h (until_break_command): Update prototype.
13317 * infcmd.c (until_command): Add new argument to until_break_command
13318 call.
13319 (advance_command): New function.
13320 (_initialize_infcmd): Update help string for 'until' command.
13321 Add new 'advance' command.
13322
13323 2003-01-14 David Carlton <carlton@math.stanford.edu>
13324
13325 * linespec.c (decode_line_1): Normalize comments.
13326 (set_flags): Ditto.
13327 (locate_first_half): Ditto.
13328 (decode_compound): Ditto.
13329 (symtab_from_filename): Ditto.
13330 (decode_all_digits): Ditto.
13331 (decode_dollar): Ditto.
13332 (find_methods): Ditto.
13333 (find_toplevel_char): Ditto.
13334
13335 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13336
13337 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13338 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13339 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13340 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13341 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13342 * language.c, language.h, m32r-tdep.c: Update copyright.
13343 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13344 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13345 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13346 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13347 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13348 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13349
13350 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13351
13352 * stabsread.h (process_later, resolve_cfront_continuation):
13353 Obsolete.
13354 Update copyright years.
13355 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13356 Update copyright year.
13357 * dbxread.c(struct cont_elem): Obsolete.
13358 (process_later, process_now): Obsolete functions.
13359 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13360 Update copyright year.
13361 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13362 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13363 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13364 (parse_partial_symbols): Obsolete cfront support.
13365 * stabsread.c
13366 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13367 macros.
13368 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13369 read_cfront_baseclasses, read_cfront_member_functions,
13370 resolve_cfront_continuation,read_cfront_static_fields,
13371 copy_cfront_struct_fields): Obsolete functions.
13372 (define_symbol, read_one_struct_field): Obsolete cfront support.
13373 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13374 Update Copyright year.
13375
13376 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13377
13378 * stack.c (print_frame_info, print_stack_frame_base_stub,
13379 print_stack_frame_base, show_and_print_stack_frame_stub,
13380 show_and_print_stack_frame, print_only_stack_frame_stub,
13381 print_only_stack_frame): Delete functions.
13382 (print_stack_frame_stub): Call print_frame_info instead of
13383 print_frame_info_base.
13384 (print_frame_info_base): Rename to print_frame_info.
13385 (backtrace_command_1): Call print_frame_info, instead of
13386 print_frame_info_base.
13387 (current_frame_command): Call print_stack_frame, instead of
13388 print_only_stack_frame.
13389 (frame_command): Call print_stack_frame, instead of
13390 show_and_print_stack_frame.
13391 (up_command): Ditto.
13392 (down_command): Ditto.
13393 * frame.h (print_only_stack_frame): Delete prototype.
13394 * infrun.c (normal_stop): Call print_stack_frame, instead of
13395 show_and_print_stack_frame.
13396 * thread.c (info_threads_command): Call print_stack_frame, instead
13397 of print_only_stack_frame.
13398
13399 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13400
13401 * README (Graphical interface to GDB): Update URL. Point at
13402 gdb/links/.
13403
13404 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13405 version match.
13406
13407 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13408
13409 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13410 lines.
13411
13412 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13413
13414 * thread-db.c (attach_thread): Prototype.
13415 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13416 thread information (ti), and valid flags (th_valid, ti_valid).
13417 (attach_thread): Move target_pid_to_str call to after the thread
13418 is added to GDB's list. Initialize the cache.
13419 (thread_get_info_callback, thread_db_map_id2thr)
13420 (thread_db_get_info): New functions.
13421 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13422 (thread_db_store_registers, thread_db_thread_alive)
13423 (thread_db_get_thread_local_address): Use them.
13424 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13425 of calling error() for threads in unknown state.
13426
13427 (clear_lwpid_callback): New function.
13428 (thread_db_resume): Use it to clear the cache.
13429
13430 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13431
13432 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13433 (resume_callback): Remove dead code.
13434
13435 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13436
13437 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13438 predicate.
13439 * gdbarch.h, gdbarch.c: Regenerate.
13440 * stack.c (frame_info): Only initialize the saved registers when
13441 FRAME_INIT_SAVED_REGS_P.
13442 * frame.c (frame_saved_regs_register_unwind): Assert
13443 FRAME_INIT_SAVED_REGS_P.
13444 (deprecated_generic_get_saved_register): Ditto.
13445
13446 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13447
13448 * source.c (openp): Squelch warning about "filename".
13449
13450 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13451
13452 * source.c (openp): If the file does not exist don't necessarily
13453 search the path.
13454
13455 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13456
13457 Fix PR gdb/872.
13458 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13459 (integer_types_same_name_p): New function.
13460 (rank_one_type): Use it.
13461 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13462
13463 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13464
13465 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13466 variables.
13467 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13468 * configure.in: Add --with-sysroot.
13469 * configure: Regenerated.
13470 * main.c (gdb_sysroot): New variable.
13471 (captured_main): Initialize gdb_sysroot.
13472 * defs.h (gdb_sysroot): New extern declaration.
13473 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13474
13475 2003-01-12 Michael Chastain <mec@shout.net>
13476
13477 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13478
13479 2003-01-12 Michael Chastain <mec@shout.net>
13480
13481 * top.c (print_gdb_version): Bump copyright year to 2003.
13482
13483 2003-01-12 David Carlton <carlton@bactrian.org>
13484
13485 * linespec.c (symtab_from_filename): Rename variable 's' to
13486 'file_symtab'.
13487
13488 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13489
13490 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13491 dummy frame.
13492 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13493
13494 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13495
13496 * d10v-tdep.c: Include "gdb_assert.h".
13497 (d10v_store_return_value): Rewrite to match current interface.
13498 (d10v_extract_struct_value_address): Ditto.
13499 (d10v_extract_return_value): Ditto.
13500 (d10v_gdbarch_init): Set store_restore_value,
13501 extract_struct_value_address and extract_return_value.
13502
13503 2003-01-12 J. Brobecker <brobecker@gnat.com>
13504
13505 * hpread.c (set_namestring): New procedure replacing the
13506 SET_NAMESTRING macro.
13507 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13508 by calls to set_namestring.
13509
13510 2003-01-11 J. Brobecker <brobecker@gnat.com>
13511
13512 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13513 a compilation warning.
13514 (hpread_process_one_debug_symbol): Likewise.
13515
13516 2003-01-10 David Carlton <carlton@math.stanford.edu>
13517
13518 * linespec.c (decode_line_1): Rename variable 's' to
13519 'file_symtab'.
13520 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13521 (decode_dollar): Ditto.
13522 (decode_variable): Ditto.
13523 (symbol_found): Ditto.
13524
13525 2003-01-09 Michael Chastain <mec@shout.net>
13526
13527 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13528
13529 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
13530
13531 * win32-nat.c (set_process_privilege): New function.
13532 (child_attach): Call set_process_privilege() to enable the
13533 SE_DEBUG_NAME user privilege if available in process token.
13534
13535 2003-01-10 J. Brobecker <brobecker@gnat.com>
13536
13537 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13538 compilation error in the previous revision.
13539
13540 2003-01-09 David Carlton <carlton@math.stanford.edu>
13541
13542 * linespec.c: Update copyright.
13543
13544 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
13545
13546 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13547 than inferior_ptid.
13548 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13549
13550 2003-01-09 Andrew Cagney <ac131313@redhat.com>
13551
13552 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13553 Update comments.
13554 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13555 (frame_saved_regs_zalloc): Update.
13556 (frame_saved_regs_register_unwind): Update.
13557 (create_new_frame): Update.
13558 (get_prev_frame): Update.
13559 (frame_extra_info_zalloc): Update.
13560 (deprecated_get_frame_saved_regs): Update.
13561 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13562 * cris-tdep.c: Update comment.
13563
13564 * somsolib.h: Fix function indentation.
13565 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13566 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13567 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13568 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13569 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13570
13571 * infrun.c (follow_fork): Use ISO C definition.
13572 * expprint.c (print_subexp): Use xfree instead of free.
13573 * charset.c: Include "gdb_string.h" instead of <string.h>.
13574 (register_iconv_charsets): Use ISO C definition.
13575 (host_charset, target_charset): Ditto.
13576 * Makefile.in (charset.o): Update dependencies.
13577 (mi-cmd-env.o): Update dependencies.
13578
13579 2003-01-08 Andrew Cagney <cagney@redhat.com>
13580
13581 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13582 get_frame_base.
13583
13584 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13585
13586 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13587 build directories. Save edited gdb output in Mbuild.log. If a
13588 build fails, remove any final GDB executable.
13589
13590 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13591
13592 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13593 replacing hex constants with function names and stripping leading
13594 file name directory prefixes.
13595
13596 2003-01-08 Andrew Cagney <cagney@redhat.com>
13597
13598 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13599 get_frame_base.
13600
13601 2003-01-08 David Carlton <carlton@math.stanford.edu>
13602
13603 * linespec.c (decode_line_1): Move code into decode_variable.
13604 (decode_variable): New function.
13605
13606 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13607
13608 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13609
13610 2003-01-08 Andrew Cagney <cagney@redhat.com>
13611
13612 * cris-tdep.c (cris_frame_init_saved_regs): Use
13613 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13614 saved_regs buffer.
13615 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13616 (sh64_nofp_frame_init_saved_regs): Ditto.
13617 (sh_fp_frame_init_saved_regs): Ditto.
13618 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13619 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13620 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13621 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13622
13623 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
13624
13625 * minsyms.c (lookup_minimal_symbol): Update comment.
13626 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13627 (lookup_minimal_symbol_solib_trampoline): Likewise.
13628
13629 2003-01-08 Andrew Cagney <cagney@redhat.com>
13630
13631 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13632 frame_relative_level.
13633
13634 * alpha-tdep.c: Use get_frame_extra_info.
13635 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13636 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13637 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13638 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13639
13640 * alpha-tdep.c: Use get_next_frame.
13641 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13642 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13643 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13644 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13645 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13646 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13647 * xstormy16-tdep.c: Ditto.
13648
13649 2003-01-07 Andrew Cagney <cagney@redhat.com>
13650
13651 * alpha-tdep.c: Use get_frame_base.
13652 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13653 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13654 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13655 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13656 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13657 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13658 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13659 * config/sparc/tm-sparc.h: Ditto.
13660
13661 2003-01-07 Andrew Cagney <cagney@redhat.com>
13662
13663 * frame.c (deprecated_get_frame_context): New function.
13664 (deprecated_set_frame_context): New function.
13665 * frame.h (deprecated_get_frame_context): Declare.
13666 (deprecated_set_frame_context): Declare.
13667 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13668 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
13669
13670 2003-01-07 Andrew Cagney <cagney@redhat.com>
13671
13672 * frame.c (deprecated_set_frame_next_hack): New function.
13673 (deprecated_set_frame_prev_hack): New function.
13674 * frame.h (deprecated_set_frame_next_hack): Declare.
13675 (deprecated_set_frame_prev_hack): Declare.
13676 * mcore-tdep.c (analyze_dummy_frame): Use
13677 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13678 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13679
13680 2003-01-07 David Carlton <carlton@math.stanford.edu>
13681
13682 * linespec.c (decode_line_1): Move code into decode_dollar.
13683 (decode_dollar): New function.
13684
13685 2003-01-07 Andrew Cagney <cagney@redhat.com>
13686
13687 * arm-tdep.c (arm_init_extra_frame_info): Use
13688 deprecated_update_frame_base_hack.
13689 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13690 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13691 (fix_frame_pointer): Ditto.
13692 (mn10300_analyze_prologue): Ditto.
13693
13694 2003-01-07 Andrew Cagney <cagney@redhat.com>
13695
13696 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13697 extra_info using frame_extra_info_zalloc.
13698 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13699 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13700 (sh64_init_extra_frame_info): Ditto.
13701 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13702 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13703 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13704 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13705 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13706 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13707 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13708 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13709 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13710 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13711 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13712 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13713
13714 * mn10300-tdep.c (analyze_dummy_frame): Use
13715 deprecated_set_frame_extra_info_hack.
13716 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13717
13718 2003-01-07 J. Brobecker <brobecker@gnat.com>
13719
13720 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13721 class is not scText. These do not define "real" procedures.
13722 (parse_partial_symbols): Likewise.
13723
13724 2003-01-06 Michael Snyder <msnyder@redhat.com>
13725
13726 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13727
13728 2003-01-06 Andrew Cagney <ac131313@redhat.com>
13729
13730 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13731 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13732 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13733 deprecated_frame_xmalloc_with_cleanup.
13734 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13735 deprecated_frame_xmalloc.
13736 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13737 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13738
13739 2003-01-06 Andrew Cagney <cagney@redhat.com>
13740
13741 * x86-64-linux-tdep.c: Include "osabi.h".
13742 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13743
13744 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13745
13746 2003-01-06 Andrew Cagney <cagney@redhat.com>
13747
13748 * MAINTAINERS (Target Instruction Set Architectures): Update
13749 arm-elf. Can be built with -Werror, has been multiarched.
13750
13751 * value.h (unpack_long): Make buffer parameter constant.
13752 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13753 * scm-lang.h (scm_parse): Ditto.
13754 * defs.h (extract_typed_address, extract_address): Ditto.
13755 (extract_long_unsigned_integer): Ditto.
13756 * inferior.h (unsigned_pointer_to_address): Ditto.
13757 (signed_pointer_to_address): Ditto.
13758 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13759 * gdbarch.h, gdbarch.c: Regenerate.
13760 * findvar.c (extract_long_unsigned_integer): Update.
13761 (extract_address): Update.
13762 (extract_typed_address): Update.
13763 (unsigned_pointer_to_address): Update.
13764 * values.c (unpack_long): Update.
13765 (unpack_double): Update.
13766 (unpack_pointer): Update.
13767 (unpack_field_as_long): Update.
13768 * d10v-tdep.c (d10v_pointer_to_address): Update.
13769 * avr-tdep.c (avr_pointer_to_address): Update.
13770 * scm-lang.c (scm_unpack): Update.
13771 * findvar.c (signed_pointer_to_address): Update.
13772
13773 2003-01-06 Michal Ludvig <mludvig@suse.cz>
13774
13775 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
13776 since it is in i386-tdep.c.
13777
13778 2003-01-06 J. Brobecker <brobecker@gnat.com>
13779
13780 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13781 failure introduced in the previous change.
13782
13783 2003-01-05 Michael Chastain <mec@shout.net>
13784
13785 * README: Remove references to deleted remote-*.c files:
13786 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13787 remote-nrom.c, remote-os9k.c, remote-udi.c.
13788
13789 2003-01-05 Mark Kettenis <kettenis@gnu.org>
13790
13791 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13792 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13793 i386_get_longjmp_target.
13794
13795 2003-01-05 Andrew Cagney <ac131313@redhat.com>
13796
13797 * arm-tdep.c (prologue_cache): Change to a pointer.
13798 (_initialize_arm_tdep): Allocate prologue_cache.
13799 (check_prologue_cache): Update.
13800 (save_prologue_cache): Update.
13801 (arm_gdbarch_init): Update.
13802
13803 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13804
13805 * stabsread.c (update_method_name_from_physname): Call complaint()
13806 instead of error.
13807
13808 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13809
13810 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13811 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13812 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13813
13814 * blockframe.c: Include "gdbcmd.h" and "command.h".
13815 (backtrace_below_main): New variable.
13816 (file_frame_chain_valid, func_frame_chain_valid)
13817 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13818 (generic_func_frame_chain_valid): Remove functions.
13819 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13820 (_initialize_blockframe): New function.
13821 * Makefile.in (blockframe.o): Update dependencies.
13822 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13823 comment. Call frame_chain_valid ().
13824 * frame.h: Remove old prototypes. Add prototype for
13825 frame_chain_valid and update comments to match.
13826 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13827 Remove old comment.
13828 * gdbarch.h: Regenerated.
13829 * gdbarch.c: Regenerated.
13830
13831 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13832 set_gdbarch_frame_chain_valid.
13833 * avr-tdep.c (avr_gdbarch_init): Likewise.
13834 * cris-tdep.c (cris_gdbarch_init): Likewise.
13835 * frv-tdep.c (frv_gdbarch_init): Likewise.
13836 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13837 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13838 (i386_nw_init_abi): Likewise.
13839 (i386_gdbarch_init): Likewise.
13840 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13841 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13842 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13843 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13844 * mips-tdep.c (mips_gdbarch_init): Likewise.
13845 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13846 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13847 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13848 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13849 * s390-tdep.c (s390_gdbarch_init): Likewise.
13850 * sh-tdep.c (sh_gdbarch_init): Likewise.
13851 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13852 * v850-tdep.c (v850_gdbarch_init): Likewise.
13853 * vax-tdep.c (vax_gdbarch_init): Likewise.
13854 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13855
13856 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13857 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13858 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13859 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13860 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13861 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13862 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13863 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13864
13865 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13866
13867 * Makefile.in (acconfig_h): Remove incorrect macro.
13868 (config_h): Define.
13869 (osabi.o): Update dependencies.
13870 * configure.tgt: Set gdb_osabi based on target triplet.
13871 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13872 * configure: Regenerated.
13873 * config.in: Regenerated.
13874 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13875 (GDB_OSABI_DEFAULT): Define if not already defined.
13876 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13877 (set_osabi_string): New variables.
13878 (gdbarch_register_osabi): Add new OS ABI to
13879 gdb_osabi_available_names.
13880 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13881 (set_osabi, show_osabi): New functions.
13882 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13883
13884 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13885
13886 * arch-utils.c (gdbarch_info_init): Set osabi to
13887 GDB_OSABI_UNINITIALIZED.
13888 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13889 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13890 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13891 * gdbarch.c: Regenerated.
13892 * gdbarch.h: Regenerated.
13893 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13894 there's no BFD.
13895 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13896 * osabi.h (enum gdb_osabi): Move to defs.h.
13897 (gdbarch_init_osabi): Update prototype.
13898 * defs.h (enum gdb_osabi): Moved here.
13899 * Makefile.in: Update dependencies.
13900
13901 * alpha-tdep.h: Don't include "osabi.h".
13902 (struct gdbarch_tdep): Remove osabi member.
13903 * alpha-tdep.c: Include "osabi.h".
13904 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13905 iterate over arches. Update call to gdbarch_init_osabi.
13906 (alpha_dump_tdep): Don't dump osabi.
13907 * alpha-linux-tdep.c: Include "osabi.h".
13908 * alpha-osf1-tdep.c: Include "osabi.h".
13909 * alphafbsd-tdep.c: Include "osabi.h".
13910 * alphanbsd-tdep.c: Include "osabi.h".
13911
13912 * arm-tdep.h: Don't include "osabi.h".
13913 (struct gdbarch_tdep): Remove osabi member.
13914 * arm-tdep.c: Include "osabi.h".
13915 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13916 iterate over arches. Update call to gdbarch_init_osabi.
13917 (arm_dump_tdep): Don't dump osabi.
13918 * arm-linux-tdep.c: Include "osabi.h".
13919 * armnbsd-tdep.c: Include "osabi.h".
13920
13921 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13922 Update call to gdbarch_init_osabi.
13923
13924 * i386-tdep.h: Don't include "osabi.h".
13925 (struct gdbarch_tdep): Remove osabi member.
13926 * i386-tdep.c: Include "osabi.h".
13927 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13928 iterate over arches. Update call to gdbarch_init_osabi.
13929 (i386_dump_tdep): Don't dump osabi.
13930 * i386-linux-tdep.c: Include "osabi.h".
13931 * i386-sol2-tdep.c: Include "osabi.h".
13932 * i386bsd-tdep.c: Include "osabi.h".
13933 * i386gnu-tdep.c: Include "osabi.h".
13934 * i386ly-tdep.c: Include "osabi.h".
13935 * i386nbsd-tdep.c: Include "osabi.h".
13936 * i386obsd-tdep.c: Include "osabi.h".
13937
13938 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13939 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13940 check osabi when iterating over arches. Update call to
13941 gdbarch_init_osabi.
13942 (mips_dump_tdep): Don't dump osabi.
13943
13944 * ns32k-tdep.h: Don't include "osabi.h".
13945 (struct gdbarch_tdep): Remove.
13946 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13947 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13948 allocate tdep. Update call to gdbarch_init_osabi.
13949 (ns32k_dump_tdep): Remove.
13950 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13951 * ns32knbsd-tdep.c: Include "osabi.h".
13952
13953 * ppc-tdep.h: Don't include "osabi.h".
13954 (struct gdbarch_tdep): Remove osabi member.
13955 * rs6000-tdep.c: Include "osabi.h".
13956 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13957 osabi when iterating over arches. Update call to
13958 gdbarch_init_osabi.
13959 (rs6000_dump_tdep): Don't dump osabi.
13960 * ppc-linux-tdep.c: Include "osabi.h".
13961 * ppcnbsd-tdep.c: Include "osabi.h".
13962
13963 * sh-tdep.h: Don't include "osabi.h".
13964 (struct gdbarch_tdep): Remove osabi member.
13965 * sh-tdep.c: Include "osabi.h".
13966 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13967 iterate over arches. Update call to gdbarch_init_osabi.
13968 (sh_dump_tdep): Don't dump osabi.
13969 * shnbsd-tdep.c: Include "osabi.h".
13970
13971 * sparc-tdep.c: Include "osabi.h".
13972 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13973 iterate over arches. Update call to gdbarch_init_osabi.
13974 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13975 tdep structure.
13976
13977 * vax-tdep.h: Don't include "osabi.h".
13978 (struct gdbarch_tdep): Remove.
13979 * vax-tdep.c: Include "osabi.h".
13980 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13981 iterate over arches. Don't allocate tdep. Update call
13982 to gdbarch_init_osabi.
13983 (vax_dump_tdep): Remove.
13984 (_initialize_vax_tdep): Update call to gdbarch_register.
13985
13986 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13987
13988 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13989 entirely.
13990 (breakpoint_re_set_one): Don't fetch the value for a disabled
13991 watchpoint.
13992
13993 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13994
13995 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13996 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13997 (COERCE_FLOAT_TO_DOUBLE): Remove.
13998 * gdbarch.c: Regenerate.
13999 * gdbarch.h: Regenerate.
14000 * Makefile.in: Remove value_h from gdbarch_h.
14001 * valops.c (coerce_float_to_double): New variable.
14002 (default_coerce_float_to_double): Remove.
14003 (standard_coerce_float_to_double): Remove.
14004 (value_arg_coerce): Use coerce_float_to_double.
14005 (_initialize_valops): Add "set coerce-float-to-double".
14006 * value.h (default_coerce_float_to_double): Remove prototype.
14007 (standard_coerce_float_to_double): Remove prototype.
14008
14009 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14010 prototyped.
14011 * mdebugread.c (parse_symbol): Likewise.
14012 * stabsread.c (define_symbol): Mark all functions as prototyped.
14013
14014 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14015 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14016 set_gdbarch_coerce_float_to_double.
14017 * arm-tdep.c (arm_gdbarch_init): Likewise.
14018 * frv-tdep.c (frv_gdbarch_init): Likewise.
14019 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14020 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14021 * mips-tdep.c (mips_gdbarch_init): Likewise.
14022 (mips_coerce_float_to_double): Remove.
14023 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14024 (rs6000_coerce_float_to_double): Remove.
14025 * s390-tdep.c (s390_gdbarch_init): Likewise.
14026 * sh-tdep.c (sh_gdbarch_init): Likewise.
14027 (sh_coerce_float_to_double): Remove.
14028 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14029 (sparc_coerce_float_to_double): Remove.
14030 * v850-tdep.c (v850_gdbarch_init): Likewise.
14031 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14032 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14033 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14034 (hppa_coerce_float_to_double): Remove prototype.
14035 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14036
14037 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14038
14039 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14040
14041 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14042
14043 Suggested by Stewart Brown <sb24@avaya.com>:
14044 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14045 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14046 (c_type_print_varspec_suffix): Likewise.
14047
14048 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14049
14050 * configure.in: Don't set and AC_SUBST SUBDIRS.
14051 * configure: Regenerated.
14052
14053 * configure.in: Remove code dealing with shared libraries.
14054 * Makefile.in: Remove HLDFLAGS and HLDENV.
14055 * configure: Regenerated.
14056
14057 2003-01-04 Andrew Cagney <ac131313@redhat.com>
14058
14059 * frame.c (deprecated_frame_xmalloc): New function.
14060 (deprecated_set_frame_saved_regs_hack): New function.
14061 (deprecated_set_frame_extra_info_hack): New function.
14062 * frame.h (deprecated_frame_xmalloc): Declare.
14063 (deprecated_set_frame_saved_regs_hack): Declare.
14064 (deprecated_set_frame_extra_info_hack): Declare.
14065
14066 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14067
14068 * configure.in: Move code that provides the --enable-gdbtk option
14069 right after the code that handles the --enable-tui option, and
14070 polish it somewhat.
14071 * configure: Regenerated.
14072
14073 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14074 AC_CHECK_FUNCS and remove the old check for pread64.
14075 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14076 * acconfig.h (_GNU_SOURCE): Add.
14077 (HAVE_PREAD64): Remove.
14078 * configure, aclocal.m4, config.in: Regenerated.
14079
14080 2003-01-03 Andrew Cagney <ac131313@redhat.com>
14081
14082 * alpha-tdep.c: Use get_frame_saved_regs.
14083 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14084 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14085 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14086 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14087 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14088
14089 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14090
14091 * configure.in: Remove all use of the SUBDIRS variable; add
14092 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14093 code providing the --enable-multi-ice option, and move it right in
14094 front of the code that checks whether gdbserver is supported.
14095 Polish that too.
14096 * configure: Regenerated.
14097 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14098 @SUBDIRS@.
14099
14100 2003-01-03 Andrew Cagney <cagney@redhat.com>
14101
14102 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14103 * avr-tdep.c, cris-tdep.c: Ditto.
14104 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14105 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14106
14107 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14108
14109 * configure.in: Remove --enable-netrom option.
14110 * configure: Regenerated.
14111
14112 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14113
14114 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14115 declaration for `struct re_pattern_buffer' instead.
14116 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14117
14118 2003-01-03 J. Brobecker <brobecker@gnat.com>
14119
14120 * mdebugread.c (parse_symbol): Count until the stEnd matching
14121 the structure name.
14122
14123 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14124
14125 * configure.in: Remove --with-cpu option.
14126 subscripts. Remove evil changequotes here.
14127 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14128 * config.in, configure: Regenerated.
14129
14130 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14131 * configure.in: Cleanup section that sources GDB and BFD configure
14132 subscripts. Remove evil changequotes here.
14133 * config.in, configure: Regenerated.
14134
14135 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14136
14137 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14138 frame accessor methods.
14139 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14140 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14141 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14142 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14143 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14144 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14145 * z8k-tdep.c: Ditto.
14146
14147 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14148
14149 * configure.in: Remove UI_OUT configuration code.
14150 * ada-lang.c: Update assuming UI_OUT is always true.
14151 * Makefile.in (UIOUT_CFLAGS): Remove.
14152 * configure: Regenerated.
14153 * TODO: Remove blurb about elimination of -DUI_OUT.
14154
14155 * configure.in: Move code that provides the --enable-gdbcli,
14156 --enable-gdbmi options right before the code that handles the
14157 --enable-tui option. Polish a bit.
14158 * configure: Regenerated.
14159
14160 * configure.in: Rewrite check for GNU regex and the
14161 --without-included regex option, and move it into the "Checks for
14162 library functions" section. This makes us use the system regex
14163 again by default on systems with version 2 of the GNU C library.
14164 This was apparently broken.
14165 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14166 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14167 * config.in, configure: Regenerated.
14168
14169 * configure.in: Move code that provides the --enable-tui option
14170 before the "Checks for libraries" section. Polish the code
14171 somewhat and set need_curses to yes if we build the TUI. Rewrite
14172 code that looks for a library providing termcap functionality to
14173 match more closely what's done in the Readline library, and move
14174 it into to the "Checks for libraries" section.
14175 * configure: Regenerated.
14176 * Makefile.in (TERMCAP): Remove variable.
14177 * config/i386/go32.mh (TERMCAP): Remove variable.
14178
14179 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14180
14181 * MAINTAINERS: Mention gdb_mbuild.sh.
14182 * gdb_mbuild.sh: Rewrite.
14183
14184 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14185
14186 * configure.in: Fix typo in last change.
14187 * config.in, configure: Regenerated.
14188
14189 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14190
14191 * valarith.c (value_binop): Delete obsolete code and comments.
14192 * configure.host: Ditto.
14193 * buildsym.h (make_blockvector): Ditto.
14194 * buildsym.c (make_blockvector): Ditto.
14195 * defs.h (enum language): Ditto.
14196 (chill_demangle): Ditto.
14197 * elfread.c (elf_symtab_read): Ditto.
14198 * dwarfread.c (CHILL_PRODUCER): Ditto.
14199 (set_cu_language): Ditto.
14200 (handle_producer): Ditto.
14201 * expprint.c (print_subexp): Ditto.
14202 * gdbtypes.c (chill_varying_type): Ditto.
14203 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14204 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14205 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14206 (chill_varying_type): Ditto.
14207 * language.h (_LANG_chill): Ditto.
14208 * language.c (binop_result_type, integral_type): Ditto.
14209 (character_type, string_type, structured_type): Ditto.
14210 (lang_bool_type, binop_type_check): Ditto.
14211 * stabsread.h (os9k_stabs): Ditto.
14212 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14213 (define_symbol, read_type, read_struct_fields): Ditto.
14214 (read_array_type, read_enum_type, read_huge_number): Ditto.
14215 (read_range_type, start_stabs): Ditto.
14216 * symfile.c (init_filename_language_table): Ditto.
14217 (add_psymbol_with_dem_name_to_list): Ditto.
14218 * symtab.c (symbol_init_language_specific): Ditto.
14219 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14220 * symtab.h (struct general_symbol_info): Ditto.
14221 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14222 * typeprint.c (typedef_print): Ditto.
14223 * utils.c (fprintf_symbol_filtered): Ditto.
14224 * valops.c (value_cast, search_struct_field, value_slice): Delete
14225 obsolete code.
14226 (varying_to_slice): Delete function.
14227 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14228 (varying_to_slice): Delete declaration.
14229 * MAINTAINERS: Update.
14230
14231 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14232
14233 * configure.in: Reorganize "Checks for library functions section"
14234 a bit. Remove check for `btowc' and `isascii' functions.
14235 * configure: Regenerated.
14236
14237 * acconfig.h (_MSE_INT_H): Remove.
14238 * configure.in: Create "Checks for header files" section, and move
14239 appropriate tests there. Don't check for objlist.h, wchar.h,
14240 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14241 misdetection fix. Also add "Checks for types", "Checks for
14242 compiler characteristics" and "Checks for library functions"
14243 sections.
14244 * config.in, configure: Regenerated.
14245
14246 * configure.in: Create "Checks for programs" section, and move
14247 appropriate tests there.
14248
14249 2003-01-01 Mark Kettenis <kettenis@gnu.org>
14250
14251 * configure.in: Create "Checks for libraries" section, and move
14252 appropriate tests there. Cleanup check for wctype in libw. Use
14253 AC_SEARCH_LIBS to see whether we need libsocket.
14254 * configure: Regenerated.
14255
14256 For older changes see ChangeLog-2002
14257 \f
14258 Local Variables:
14259 mode: change-log
14260 left-margin: 8
14261 fill-column: 74
14262 version-control: never
14263 End:
This page took 0.307217 seconds and 5 git commands to generate.