adce433df2fb311e609ff9ad8e5b6d52e2c3439a
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-11-07 Andrew Cagney <cagney@redhat.com>
2
3 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
4 set "return_value" instead of "use_struct_convention".
5 (ppc_linux_use_struct_convention): Delete function.
6 (ppc_linux_return_value): New function.
7 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
8 (ppc_sysv_abi_broken_return_value): New function.
9 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
10 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
11 static.
12 (ppc_sysv_abi_extract_return_value): Delete function.
13 (ppc_sysv_abi_broken_extract_return_value): Delete function.
14 (ppc_sysv_abi_store_return_value): Delete function.
15 (ppc_sysv_abi_broken_store_return_value): Delete function.
16 (ppc_sysv_abi_use_struct_convention): Delete function.
17 (ppc64_sysv_abi_use_struct_convention): Delete function.
18 (ppc64_sysv_abi_extract_return_value): Delete function.
19 (ppc64_sysv_abi_store_return_value): Delete function.
20 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
21 (ppcnbsd_init_abi): Set "return_value", instead of
22 "use_struct_convention", "extract_return_value", and
23 "store_return_value".
24 (ppcnbsd_use_struct_convention): Delete function.
25 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
26 (ppc_sysv_abi_return_value): Declare.
27 (ppc_sysv_abi_broken_return_value): Declare.
28 (ppc_sysv_abi_use_struct_convention): Delete.
29 (ppc_sysv_abi_store_return_value): Delete.
30 (ppc_sysv_abi_extract_return_value): Delete.
31 (ppc_sysv_abi_broken_store_return_value): Delete.
32 (ppc_sysv_abi_broken_extract_return_value): Delete.
33 (ppc64_sysv_abi_use_struct_convention): Delete.
34 (ppc64_sysv_abi_extract_return_value): Delete.
35 (ppc64_sysv_abi_store_return_value): Delete.
36 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
37 set "return_value" instead of "extract_return_value",
38 "store_return_value", and "use_struct_convention".
39
40 2003-11-07 Mark Kettenis <kettenis@gnu.org>
41
42 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
43
44 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
45 fscanf.
46
47 2003-11-07 Mark Kettenis <kettenis@gnu.org>
48
49 * fbsd-proc.c: Fix formatting.
50
51 2003-11-06 Kevin Buettner <kevinb@redhat.com>
52
53 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
54 Define.
55 (new_variant): Set name for iacc0_regnum.
56 (frv_register_name): Accommodate pseudo-registers.
57 (frv_register_type): Add case for iacc0_regnum.
58 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
59 (frv_gdbarch_init): Set number of pseudo registers. Establish
60 pseudo-register read/write methods.
61
62 2003-11-06 Andrew Cagney <cagney@redhat.com>
63
64 * valops.c (destructor_name_p): Replace STREQN with strncmp.
65 * top.c (command_line_input): Ditto.
66 * objc-exp.y (yylex): Ditto.
67 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
68 * jv-exp.y (yylex): Ditto.
69 * f-exp.y (yylex): Ditto.
70 * event-top.c (command_line_handler): Ditto.
71 * environ.c (get_in_environ): Ditto.
72 (set_in_environ): Ditto.
73 * dwarfread.c (handle_producer): Ditto.
74 * dbxread.c (process_one_symbol): Ditto.
75 * c-typeprint.c (c_type_print_base): Ditto.
76 * c-exp.y (yylex): Ditto.
77
78 2003-11-06 Andrew Cagney <cagney@redhat.com>
79 Jeff Johnston <jjohnstn@redhat.com>
80
81 * target.c (add_target): Only set "to_xfer_partial" when NULL.
82 (init_dummy_target): Set "to_xfer_partial".
83
84 2003-11-06 Andrew Cagney <cagney@redhat.com>
85
86 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
87 REGISTER_CONVENTION.
88
89 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
90
91 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
92 static.
93
94 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
95
96 * breakpoint.c (remove_breakpoint): Take an bp_location
97 instead of a breakpoint argument. Check the bp_location's type.
98 Fix a reversed condition for hardware breakpoints.
99
100 (insert_bp_location): Update call to remove_breakpoint.
101 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
102 (remove_hw_watchpoints): Likewise.
103 (reattach_breakpoints): Likewise.
104 (detach_breakpoints): Likewise.
105 (delete_breakpoint): Likewise.
106
107 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
108
109 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
110 (beakpoint_init_inferior): Likewise.
111 (breakpoint_here_p): Likewise. Only check addresses for software
112 or hardware breakpoints.
113 (breakpoint_inserted_here_p): Likewise.
114 (breakpoint_thread_match): Likewise. Correct comment.
115 (bpstat_have_active_hw_watchpoints): Likewise.
116 (check_duplicates): Likewise.
117
118 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
119
120 * breakpoints.c (insert_bp_location): New function, broken out
121 from insert_breakpoints. Work on an bp_location instead of a
122 breakpoint.
123 (insert_breakpoints): Use it.
124
125 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
126
127 * breakpoint.h (struct bp_location): Add section.
128 (struct breakpoint): Remove section.
129 * breakpoint.c (insert_breakpoints, remove_breakpoint)
130 (breakpoint_here_p, breakpoint_inserted_here_p)
131 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
132 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
133 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
134 section through loc.
135
136 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
137
138 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
139 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
140
141 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
142
143 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
144 arguments. Initialize owner and type for the new breakpoint
145 location item.
146 (set_raw_breakpoint): Update call to allocate_bp_location.
147
148 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
149
150 * breakpoint.h (struct bp_location): Add a chain pointer.
151 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
152 macros.
153 (bp_location_chain): New variable.
154 (allocate_bp_location): New function.
155 (set_raw_breakpoint): Use it.
156 (delete_breakpoint): Remove ->loc from the bp_location_chain.
157
158 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
159
160 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
161 (struct breakpoint): Remove address, shadow_contents, inserted,
162 requested_address, and duplicate. Add a struct bp_location.
163 * breakpoint.c (condition_command, read_memory_nobpt)
164 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
165 (reattach_breakpoints, update_breakpoints_after_exec)
166 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
167 (breakpoint_init_inferior, breakpoint_here_p)
168 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
169 (breakpoint_thread_match, bpstat_stop_status)
170 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
171 (describe_other_breakpoints, check_duplicates)
172 (make_breakpoint_permanent, create_thread_event_breakpoint)
173 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
174 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
175 (watch_command_1, print_one_exception_catchpoint)
176 (clear_command, breakpoint_re_set_one): Adjust member accesses to
177 use the breakpoint's ->loc.
178 (set_raw_breakpoint): Likewise. Initialize ->loc.
179 (delete_breakpoint): Likewise. Free ->loc.
180
181 2003-11-05 Andrew Cagney <cagney@redhat.com>
182
183 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
184 macro.
185 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
186 * config/i386/tm-cygwin.h
187 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
188 * config/powerpc/tm-linux.h
189 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
190 (at_subroutine_call_instruction_target): Delete declaration.
191 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
192 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
193 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
194
195 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
196 "struct bfd_section" and "struct bfd".
197 * target.h (struct section_table): Ditto.
198 * rs6000-nat.c (xcoff_relocate_core): Ditto.
199 * solib-svr4.c (elf_locate_base): Ditto.
200 * pa64solib.c (dld_cache_t): Ditto.
201 * objfiles.h (struct obj_section): Ditto.
202 * objfiles.c (add_to_objfile_sections): Ditto.
203 * exec.c (bfdsec_to_vmap): Ditto.
204 (add_to_section_table): Ditto.
205 (build_section_table): Ditto.
206 * corelow.c (get_core_register_section): Ditto.
207 * coffread.c (find_linenos): Ditto.
208 * elfread.c (elf_interpreter): Delete #if0'd function.
209
210 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
211 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
212 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
213 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
214
215 * arch-utils.h (generic_cannot_extract_struct_value_address):
216 Delete declaration.
217 * wince.c (_initialize_wince): Fix multi-line string.
218 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
219
220 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
221
222 * top.c (execute_command): Fix broken logic for command execution
223 while inferior is running in async mode.
224
225 2003-11-06 Mark Kettenis <kettenis@gnu.org>
226
227 * dwarf2-frame.c (execute_cfa_program): Mark register as
228 REG_SAVED_REG for DW_CFA_register opcode.
229
230 2003-11-05 Mark Kettenis <kettenis@gnu.org>
231
232 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
233 %rsp, %rip and %eflags to match ABI-change.
234
235 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
236
237 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
238 (ia64_gdbarch_init): Don't bother calculating the os.
239 Instead use the gdbarch_info struct and look at the osabi field.
240 Also use gdbarch_list_lookup_by_info() to look for a
241 candidate gdbarch.
242
243 2003-11-05 Kevin Buettner <kevinb@redhat.com>
244
245 * frv-tdep.c (frv_register_byte): Delete.
246 (frv_extract_return_value, frv_store_return_value)
247 (frv_extract_struct_value_address): Don't call frv_register_byte().
248 Convert to non-deprecated form.
249 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
250 Convert calls to set_gdbarch_deprecated_extract_return_value(),
251 set_gdbarch_deprecated_store_return_value(), and
252 set_gdbarch_deprecated_extract_struct_value_address() into
253 non-deprecated forms.
254
255 2003-11-05 Andrew Cagney <cagney@redhat.com>
256
257 * mips-tdep.c (mips_dump_tdep): Do not print
258 PRINT_EXTRA_FRAME_INFO.
259 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
260 Rename PRINT_EXTRA_FRAME_INFO.
261 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
262 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
263 (mips_print_extra_frame_info): Delete declaration.
264 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
265
266 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
267
268 * coffread.c (coff_symtab_read): Remove passing of info parameter
269 to prim_record_minimal_symbol_and_info.
270
271 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
272
273 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
274 (decode_base_type): Delete ifdeffed out code.
275
276 2003-11-04 Andrew Cagney <cagney@redhat.com>
277
278 * symtab.c (find_active_alias): Delete function.
279 (lookup_block_symbol): Delete alias code.
280 * stabsread.c (resolve_live_range): Delete function.
281 (add_live_range): Delete function.
282 (resolve_symbol_reference): Delete function.
283 (define_symbol): Delete live range and alias code.
284 (scan_file_globals): Delete alias code.
285 * symtab.h (SYMBOL_RANGES): Delete macro.
286 (struct range_list): Delete structure.
287 (struct symbol): Delete field "ranges".
288 (SYMBOL_ALIASES): Delete macro.
289 (struct alias_list): Delete structure.
290 (struct symbol): Delete field "aliases".
291
292 2003-11-04 Michael Snyder <msnyder@redhat.com>
293
294 * MAINTAINERS: Remove myself as owner of breakpoints and
295 of sparc/solaris.
296
297 2003-11-03 Corinna Vinschen <vinschen@redhat.com>
298
299 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
300 (sh_sh4al_dsp_register_name): Ditto.
301 (sh4_nofpu_show_regs): Ditto.
302 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
303 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
304
305 2003-11-03 Andrew Cagney <cagney@redhat.com>
306
307 * bcache.c: Include "gdb_assert.h".
308 (struct bcache): Add fields "expand_count" and
309 "expand_hash_count".
310 (expand_hash_table): Update the expand counts.
311 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
312 on object sizes and hashes.
313 * Makefile.in (bcache.o): Update dependencies.
314
315 2003-11-03 Andrew Cagney <cagney@redhat.com>
316
317 * exec.c (xfer_memory): Eliminate xfer_fn.
318
319 2003-10-31 Kevin Buettner <kevinb@redhat.com>
320
321 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
322 (opcodes/frv-desc.h): Include.
323 (iacc0h_regnum, iacc0l_regnum): Define.
324 (last_spr_regnum, frv_num_regs): Update.
325 (new_variant): Don't supply default names for holes in the SPRs.
326 Supply names for iacc0h_regnum and iacc0l_regnum.
327 (frv_register_type): Use symbolic constants first_fpr_regnum and
328 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
329 builtin_type_int instead of builtin_type_int32.
330 (frv_register_sim_regno): New function.
331 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
332 * Makefile.in (gdb_sim_frv_h): Define.
333 (frv-tdep.o): Update dependencies.
334
335 2003-10-31 Andrew Cagney <cagney@redhat.com>
336
337 * avr-tdep.c (avr_frame_this_id): Do not call
338 deprecated_inside_entry_file.
339 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
340 * m32r-tdep.c (m32r_frame_this_id): Ditto.
341 * d10v-tdep.c (d10v_frame_this_id): Ditto.
342 * arm-tdep.c (arm_prologue_this_id): Ditto.
343 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
344
345 2003-10-31 Jim Blandy <jimb@redhat.com>
346
347 * elfread.c (elf_symtab_read): Allocate correct number of tail
348 elements to sectinfo structure. (Fix from Woody LaRue.)
349
350 2003-10-31 Andrew Cagney <cagney@redhat.com>
351
352 * stack.c (return_command): Use get_frame_type, instead of
353 CALL_DUMMY_HAS_COMPLETED.
354 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
355 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
356
357 2003-10-31 Mark Kettenis <kettenis@gnu.org>
358
359 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
360 explicitly specify size of array.
361 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
362 TDEP->sc_num_regs.
363
364 2003-10-31 Andrew Cagney <cagney@redhat.com>
365
366 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
367 function.
368 (s390_gdbarch_init): Set extract_struct_value_address.
369 * arch-utils.c (generic_cannot_extract_struct_value_address):
370 Delete function.
371 * arch-utils.h (generic_cannot_extract_struct_value_address):
372 Delete definition.
373
374 2003-10-31 Mark Kettenis <kettenis@gnu.org>
375
376 * i386-linux-nat.c (fetch_core_registers): Remove.
377 (linux_elf_core_fns): Remove.
378 (_initialize_i386_linux_nat): Remove.
379
380 2003-10-31 Andrew Cagney <cagney@redhat.com>
381
382 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
383 "exec.h".
384 (exec_entry_point): New function.
385 (enable_break): Create a "tmp_bfd_target", use that and
386 entry_point_address when computing the relocation offset.
387 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
388 * Makefile.in (solib-svr4.o): Update dependencies.
389
390 2003-10-31 Andrew Cagney <cagney@redhat.com>
391
392 * defs.h (XZALLOC): Define.
393 * target.h (struct target_ops): Add "to_data";
394 * bfd-target.h, bfd-target.c: New files.
395 * Makefile.in (SFILES): Add "bfd-target.c".
396 (COMMON_OBS): Add "bfd-target.o".
397 (bfd-target.o): Specify dependencies.
398 (bfd_target_h): Define.
399 * defs.h (XZALLOC): Define.
400
401 2003-10-31 Andrew Cagney <cagney@redhat.com>
402
403 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
404 adjust_breakpoint_address.
405 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
406 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
407 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
408 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
409
410 2003-10-31 Andrew Cagney <cagney@redhat.com>
411
412 * target.h (struct target_ops): Replace "to_read_partial" and
413 "to_write_partial" with "to_xfer_partial". Update comments.
414 * target.c (debug_to_write_partial): Delete function.
415 (debug_to_xfer_partial): Replace debug_to_read_partial.
416 (add_target, update_current_target, setup_target_debug): Set
417 "to_xfer_partial" instead of "to_read_partial" and
418 "to_write_partial".
419 (default_xfer_partial): Replace "default_write_partial".
420 (default_read_partial): Delete.
421 (target_read_partial, target_write_partial): Call
422 "to_xfer_partial".
423 * remote.c (init_remote_ops): Set "to_xfer_partial".
424 (init_remote_async_ops): Ditto.
425 (remote_xfer_partial): Replace "remote_read_partial".
426
427 2003-10-31 Mark Kettenis <kettenis@gnu.org>
428
429 * i386-tdep.c (i386_supply_fpregset): Support floating-point
430 registers in `fxsave' format.
431 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
432
433 2003-10-30 Mark Kettenis <kettenis@gnu.org>
434
435 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
436 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
437 TDEP->gregset_num_regs and tdep->sizeof_gregset.
438
439 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
440 specify size of array.
441 (i386_linux_init_abi): Remove initialization of
442 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
443 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
444
445 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
446 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
447 core-regset.o.
448
449 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
450 the ELF header.
451
452 2003-10-29 Mark Kettenis <kettenis@gnu.org>
453
454 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
455 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
456 core-regset.o.
457
458 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
459
460 * corelow.c: Include "arch-utils.h", "regset.h" and
461 "gdb_assert.h".
462 (core_gdbarch): New variable.
463 (sniff_core_bfd): Don't sniff if we have support for register sets
464 in CORE_GDBARCH.
465 (core_close): Reset CORE_GDBARCH.
466 (core_open): Initialize CORE_GDBARCH.
467 (get_core_register_section): Use register sets if they are
468 supported by CORE_GDBARCH.
469 (get_core_registers): Don't print error message if we have support
470 for register sets in CORE_GDBARCH.
471
472 2003-10-29 Andrew Cagney <cagney@redhat.com>
473
474 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
475 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
476
477 2003-10-29 Mark Kettenis <kettenis@gnu.org>
478
479 * objfiles.h (clear_objfile_data): New prototype.
480 * objfiles.c (clear_objfile_data): New function.
481 * symfile.c (reread_symbols): Clear per-objfile data.
482
483 2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
484
485 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
486 printf_unfiltered instead of printf_filtered for output messages.
487 (add_symbol_file_command): Ditto.
488 (reread_symbols): Ditto.
489 (overlay_auto_command): Ditto.
490 (overlay_manual_command): Ditto.
491 (overlay_off_command): Ditto.
492
493 2003-10-27 Mark Kettenis <kettenis@gnu.org>
494
495 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
496 (gdbarch_from_bfd): New function.
497 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
498 deprecated_select_gdbarch_hack.
499 * arch-utils.h (gdbarch_from_bfd): New prototype.
500
501 2003-10-27 Andrew Cagney <cagney@redhat.com>
502
503 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
504 arch_info. Use warning instead of fprintf_filtered. Do not use
505 deprecated bfd_printable_arch_mach.
506
507 2003-10-26 Kevin Buettner <kevinb@redhat.com>
508
509 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
510 Delete.
511 (frv_register_type): Rename from frv_register_virtual_type. Add
512 ``struct gdbarch *'' parameter.
513 (frv_gdbarch_init): Delete calls to the following functions:
514 set_gdbarch_deprecated_size(),
515 set_gdbarch_deprecated_register_bytes(),
516 set_gdbarch_deprecated_register_raw_size(),
517 set_gdbarch_deprecated_max_register_raw_size(),
518 set_gdbarch_deprecated_register_virtual_size(),
519 set_gdbarch_deprecated_max_register_virtual_size(),
520 set_gdbarch_deprecated_register_virtual_size(),
521 set_gdbarch_deprecated_register_virtual_type().
522 Add call to function set_gdbarch_register_type().
523
524 2003-10-26 Mark Kettenis <kettenis@gnu.org>
525
526 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
527 FDOFF_REGNUM): Remove defines.
528 * win32-nat.c (do_child_fetch_inferior_registers): Include
529 "i387-tdep.h".
530 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
531 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
532 undefine I387_ST0_REGNUM.
533
534 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
535 * x86-64-tdep.c (x86_64_store_return_value): Use
536 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
537
538 Change register numbers to enumartion values.
539 * i386-tdep.h (enum i386_regnum): New.
540 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
541 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
542 I386_ST0_REGNUM): Remove defines.
543 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
544 I386_EDI_REGNUM): Remove defines.
545
546 2003-10-24 Andrew Cagney <cagney@redhat.com>
547
548 * target.c: Include "gdbcore.h".
549 (get_target_memory, get_target_memory_unsigned): New functions.
550 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
551 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
552 Use get_target_memory_unsigned.
553 * Makefile.in (target.o): Update dependencies.
554
555 2003-10-24 Andrew Cagney <cagney@redhat.com>
556
557 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
558 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
559 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
560 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
561 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
562
563 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
564 (can_run_code_for): Use the OO term "singleton".
565
566 2003-10-23 Andrew Cagney <cagney@redhat.com>
567
568 * Makefile.in (stack.o): Add $(regcache_h).
569 * stack.c: Include "regcache.h"
570 (return_command): Rewrite. Use get_frame_id and
571 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
572 about unhandled return-values.
573 * value.h (set_return_value): Delete declaration.
574 * values.c (set_return_value): Delete function.
575
576 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
577
578 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
579 (pseudo_regs): Add comment regarding register stack registers.
580 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
581 (floatformat_valid): New static routine.
582 (floatformat_ia64_ext): Add name field and set up is_valid routine
583 to floatformat_valid().
584 (examine_prologue): For the previous cfm, use
585 frame_unwind_register()
586 if the cfm is not stored in a register-stack register. Save the
587 previous cfm value in the prev_cfm field. Add debug output.
588 (ia64_frame_this_id): Use frame_id_build_special() to also register
589 the bsp. Add debug output.
590 (ia64_sigtramp_frame_this_id): Ditto.
591 (ia64_frame_prev_register): Look at cache saved_regs for a few more
592 registers and also add some checks for framelessness before accepting
593 current register values for fields such as return address. For cfm,
594 use the cached prev_cfm field if available. Add comment to explain
595 PSR logic. Add debug output.
596 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
597 as part of initialization.
598 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
599 calculated. Cache the bsp and cfm values.
600 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
601 instead of using ia64_frame_prev_register() which doesn't expect most
602 registers to be saved. The saved values for bsp and sp
603 can be taken from the cache. Add debug output.
604 (ia64_push_dummy_call): Use frame_id_build_special() to also register
605 the bsp.
606
607 2003-10-23 Jim Blandy <jimb@redhat.com>
608
609 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
610 architecture the current arch can run code for --- but not if it's
611 a superset.
612 (can_run_code_for): New function.
613
614 2003-10-22 James E Wilson <wilson@specifixinc.com>
615
616 * MAINTAINERS: Move myself from paper trail section back to write
617 after approval section.
618
619 2003-10-22 Andrew Cagney <cagney@redhat.com>
620
621 * exec.h: New file.
622 * win32-nat.c: Include "exec.h".
623 * solib.c: Include "exec.h".
624 * target.h (build_section_table): Delete declaration.
625 * somsolib.c: Include "exec.h".
626 (exec_ops): Delete extern declaration.
627 * rs6000-nat.c: Update copyright. Include "exec.h".
628 (exec_ops): Delete extern declaration.
629 * pa64solib.c: Update copyright. Include "exec.h".
630 (exec_ops): Delete extern declaration.
631 * exec.c: Update copyright. Include "exec.h".
632 * corelow.c: Update dependencies. Include "exec.h".
633 * Makefile.in (exec_h): Define.
634 (exec.o, somsolib.o): Update dependencies.
635 (pa64solib.o, corelow.o): Update dependencies.
636
637 2003-10-22 Andrew Cagney <cagney@redhat.com>
638
639 * target.c: Include "gdb_assert.h" (target_read): Call
640 "target_read_partial", not "target_write_partial".
641 (default_read_partial, default_write_partial): New function.
642 (target_read_partial, target_write_partial): Simplify, assume that
643 there is always a read/write method.
644 (update_current_target, add_target): Always set "to_read_partial"
645 and "to_write_partial".
646 (target_write, target_read): Fail on a zero byte transfer.
647 * Makefile.in (target.o): Update dependencies.
648 * target.h: Update copyright date.
649 (target_object): Fix typo.
650
651 2003-10-22 Andrew Cagney <cagney@redhat.com>
652
653 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
654 multi-arch method, add "targ" parameter.
655 (struct target_ops): Declare.
656 * gdbarch.h, gdbarch.c: Re-generate.
657 * Makefile.in (c-valprint.o): Update dependencies.
658 * arch-utils.h: Update copyright.
659 (convert_from_func_ptr_addr_identity): Declare.
660 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
661 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
662 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
663 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
664 * infcall.c (find_function_addr, call_function_by_hand): Update.
665 * c-valprint.c: Include "target.h".
666 (print_function_pointer_address): Update.
667
668 2003-10-22 Andrew Cagney <cagney@redhat.com>
669
670 * target.c (target_close): New function.
671 (debug_to_close): Use "target_close".
672 (push_target): Use "target_close".
673 (unpush_target): Use "target_close".
674 (pop_target): Use "target_close".
675 * target.h (struct target_ops): Add "to_xclose".
676 (target_open): Delete macro. Move comment to "to_open".
677 (target_close): Replace macro with function that takes a target.
678 * top.c (quit_target): Pass "current_target" to "target_close".
679
680 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
681
682 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
683 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
684 * symtab.h (lookup_minimal_symbol_text): Update.
685 * breakpoint.c (create_overlay_event_breakpoint,
686 create_longjmp_breakpoint): Update callers.
687 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
688 * symtab.c (find_pc_sect_line): Ditto.
689
690 2003-10-21 Andrew Cagney <cagney@redhat.com>
691
692 * target.c (errno): Delete extern declaration.
693
694 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
695
696 * ia64-tdep.c: Change all occurrences of
697 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
698 (ia64_frame_prev_register): Minor whitespace change.
699
700 2003-10-20 Michael Chastain <mec@shout.net>
701
702 * config/djgpp/fnchange.lst: Add lines for:
703 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
704 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
705 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
706 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
707 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
708 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
709 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
710
711 2003-10-20 Andrew Cagney <cagney@redhat.com>
712
713 * values.c (register_value_being_returned): Update comments. Use
714 "gdbarch_return_value" when available.
715 (using_struct_return): Ditto.
716 (set_return_value): Ditto. Use "gdbarch_return_value" when
717 available.. Print a warning, and not an error, when an unhandled
718 return type is encountered.
719 * infcmd.c: Include "gdb_assert.h".
720 (print_return_value): When gdbarch_return_value_p, and using
721 struct return, assume that the value is not available.
722 * defs.h (return_value_convention): Define.
723 * gdbarch.sh (gdbarch_return_value): New predicate method.
724 * gdbarch.h, gdbarch.c: Re-generate
725 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
726
727 2003-10-20 Andrew Cagney <cagney@redhat.com>
728
729 * symtab.c: Replace "struct sec" with "struct bfd_section".
730 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
731
732 2003-10-19 Michael Chastain <mec@shout.net>
733
734 * config/djgpp/fnchange.lst: Add lines for:
735 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
736 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
737 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
738
739 2003-10-19 Mark Kettenis <kettenis@gnu.org>
740
741 * amd64fbsd-nat.c (fetch_inferior_registers,
742 store_inferior_registers): Remove functions.
743 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
744
745 2003-10-18 Mark Kettenis <kettenis@gnu.org>
746
747 Add NetBSD/amd64 native configuration:
748 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
749 * amd64nbsd-tdep.c: New file.
750 * amd64nbsd-nat.c: New file.
751 * amd64bsd-nat.c: New file.
752 * config/i386/nbsd64.mh: New file.
753 * config/i386/nbsd64.mt: New file.
754 * configure.host: Add x86_64-*-netbsd*.
755 * configure.tgt: Add x86_64-*-netbsd*.
756 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
757 New targets.
758 * NEWS (New native configurations): Mention NetBSD/amd64.
759
760 2003-10-17 Michael Chastain <mec@shout.net>
761
762 * config/djgpp/fnchange.lst: Remove dead lines for:
763 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
764 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
765 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
766 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
767 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
768 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
769 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
770 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
771 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
772 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
773 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
774 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
775 gdb/config/sparc/tm-sparclite.h,
776 gdb/gdbtk/generic/ChangeLog-2001,
777 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
778 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
779 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
780 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
781 gdb/testsuite/gdb.mi/mi0-var-block.exp,
782 gdb/testsuite/gdb.mi/mi0-var-child.exp,
783 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
784 gdb/testsuite/gdb.mi/mi0-var-display.exp,
785 itcl/iwidgets3.0.0/demos/extfileselectionbox,
786 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
787 itcl/iwidgets3.0.0/demos/fileselectionbox,
788 itcl/iwidgets3.0.0/demos/fileselectiondialog,
789 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
790 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
791 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
792 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
793 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
794 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
795 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
796 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
797 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
798 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
799 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
800 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
801 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
802 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
803 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
804 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
805 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
806 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
807 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
808 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
809 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
810 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
811 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
812 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
813 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
814 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
815 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
816 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
817 itcl/iwidgets3.0.0/demos/html/shell.n.html,
818 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
819 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
820 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
821 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
822 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
823 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
824 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
825 itcl/iwidgets3.0.0/demos/scrolledcanvas,
826 itcl/iwidgets3.0.0/demos/scrolledframe,
827 itcl/iwidgets3.0.0/demos/scrolledhtml,
828 itcl/iwidgets3.0.0/demos/scrolledlistbox,
829 itcl/iwidgets3.0.0/demos/scrolledtext,
830 itcl/iwidgets3.0.0/demos/selectionbox,
831 itcl/iwidgets3.0.0/demos/selectiondialog,
832 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
833 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
834 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
835 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
836 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
837 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
838 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
839 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
840 itcl/iwidgets3.0.0/doc/scrolledframe.n,
841 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
842 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
843 itcl/iwidgets3.0.0/doc/scrolledtext.n,
844 itcl/iwidgets3.0.0/doc/selectionbox.n,
845 itcl/iwidgets3.0.0/doc/selectiondialog.n,
846 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
847 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
848 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
849 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
850 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
851 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
852 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
853 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
854 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
855 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
856 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
857 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
858 itcl/iwidgets3.0.0/generic/selectionbox.itk,
859 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
860 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
861 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
862 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
863 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
864 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
865 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
866 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
867 itcl/iwidgets3.0.0/tests/scrolledframe.test,
868 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
869 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
870 itcl/iwidgets3.0.0/tests/scrolledtext.test,
871 itcl/iwidgets3.0.0/tests/selectionbox.test,
872 itcl/iwidgets3.0.0/tests/selectiondialog.test,
873 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
874 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
875 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
876 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
877 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
878 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
879 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
880 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
881 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
882 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
883 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
884 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
885 tk/mac/tkMacProjects.sit.hqx.
886
887 2003-10-17 Andrew Cagney <cagney@redhat.com>
888
889 * target.c (target_section_by_addr): New function.
890 (do_xfer_memory): Use "target_section_by_addr".
891 * target.h (target_section_by_addr): Declare.
892
893 * target.h (struct target_ops): Add "to_read_partial" and
894 "to_write_partial", delete "to_query".
895 (target_read_partial, target_write_partial): Declare.
896 (target_read, target_write): Declare.
897 (target_query): Delete macro.
898 * target.c (target_read_partial): New function.
899 (target_write_partial, target_read, target_write): New function.
900 (update_current_target): Delete inheritance of "to_query". Add
901 comments about "to_read_partial" and "to_write_partial".
902 (debug_to_partial_read, debug_to_partial_write): New functions.
903 (debug_to_query): Delete function.
904 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
905 instead of "to_query".
906 * remote.c (remote_read_partial): Replace "remote_query".
907 (init_remote_ops): Set "to_read_partial" instead of "to_query".
908 (init_remote_async_ops): Ditto.
909 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
910 "target_read_partial" instead of "target_query".
911 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
912 Use "target_read_partial" instead of "target_query".
913
914 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
915
916 * frame.h (struct frame_id): Add new field: special_addr.
917 (frame_id_build_special): New prototype.
918 * frame.c (frame_id_build_special): New function.
919 (frame_id_build): Change to call frame_id_build_special().
920 (frame_id_eq): Change to also test special_addr field.
921 (frame_id_inner): Update comment.
922
923 2003-10-17 Andrew Cagney <cagney@redhat.com>
924
925 * target.c (update_current_target): Perform the target cleanup.
926 Put the target stack beneath the squashed "current_target".
927 (add_target): Delete disabled call to "cleanup_target".
928 (cleanup_target): Delete function.
929 (push_target, unpush_target): Do not call "cleanup_target".
930
931 2003-10-17 Andrew Cagney <cagney@redhat.com>
932
933 * target.c (target_stack): Change to a static target_ops.
934 (update_current_target): Walk the "struct target_ops" stack.
935 (pop_target, do_xfer_memory, target_info): Ditto.
936 (find_target_beneath): Ditto.
937 (push_target): Rewrite to use the "struct target_ops" stack.
938 (unpush_target): Ditto.
939 * target.h (struct target_stack_item): Delete definition.
940 (target_stack): Delete declaration.
941 (struct target_ops): Add field "beneath".
942
943 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
944
945 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
946 declaration.
947 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
948 (h8300_examine_prologue): Use h8300_normal_mode flag
949 (h8300_gdbarch_init): Set architecture info for normal mode
950
951 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
952
953 * remote.c (remote_protocol_vcont): New variable.
954 (set_remote_protocol_vcont_packet_cmd): New function.
955 (show_remote_protocol_vcont_packet_cmd): New function.
956 (init_all_packet_configs): Handle remote_protocol_vcont.
957 (remote_vcont_probe): New function.
958 (remote_vcont_resume): New function.
959 (remote_resume): Use it.
960 (remote_async_resume): Call remote_resume.
961 (_initialize_remote): Add verbose-resume packet commands.
962
963 2003-10-16 Andrew Cagney <cagney@redhat.com>
964
965 * infrun.c (handle_inferior_event): Add comment about
966 "frame_id_inner" being too weak.
967
968 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
969
970 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
971 second parameter, which is always null. Remove
972 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
973 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
974 accordingly.
975 * somsolib.c (som_solib_create_inferior_hook,
976 som_solib_desire_dynamic_linker_symbols): Update callers.
977 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
978
979 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
980
981 * remote-m32r-sdi.c : New file, interface to m32r on-chip
982 debug interface, SDI (Scalable Debug Interface).
983 * NEWS: Mention m32r SDI protocol was supported.
984 * Makefile.in (remote-m32r-sdi.o): Add build rule.
985 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
986
987 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
988
989 * ia64-linux-tdep.c: Include gdbcore.h.
990 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
991 (ia64_linux_sigcontext_register_addr): Find the address of the
992 sigcontext area stored in the sigframe instead of using
993 a magic offset constant.
994
995 2003-10-15 Andrew Cagney <cagney@redhat.com>
996
997 * remote.c (remote_search): Delete function.
998 * target.h (target_search): Delete disabled macro.
999 (struct target_ops): Delete disabled field "to_search".
1000
1001 2003-10-14 Kevin Buettner <kevinb@redhat.com>
1002
1003 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1004 instead of deprecated_inside_entry_file().
1005
1006 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
1007
1008 * sh-tdep.c: Fix copy/paste hangover in comment.
1009 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1010 mode.
1011 (sh3e_sh4_extract_return_value): Ditto.
1012
1013 2003-10-13 Richard Henderson <rth@redhat.com>
1014
1015 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1016 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1017 match c_val_print a bit closer.
1018
1019 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1020
1021 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1022 (frv_gdbarch_adjust_breakpoint_address): New function.
1023 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1024 method.
1025
1026 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1027
1028 * breakpoint.h (struct breakpoint): Add new member
1029 ``requested_address''.
1030 * breakpoint.c (breakpoint_adjustment_warning)
1031 (adjust_breakpoint_address): New static functions.
1032 (print_it_typical): Issue warning if breakpoint's address is different
1033 from its requested address.
1034 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1035 (breakpoint_re_set_one): Set breakpoint's
1036 ``requested_address'' field. Set ``address'' field to the
1037 result of calling adjust_breakpoint_address() on the requested
1038 address.
1039
1040 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1041
1042 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1043 * gdbarch.h, gdbarch.c: Regenerate.
1044
1045 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1046
1047 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1048 TDEP->sc_num_regs.
1049
1050 * i386fbsd-tdep.c: New file.
1051 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1052 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1053 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1054 i386bsd-tdep.c.
1055 (_initialize_i386fbsd_tdep): New function.
1056 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1057 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1058 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1059 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1060 TDEP->sc_num_regs.
1061 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1062 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1063 to initialize TDEP->sc_num_regs.
1064 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1065 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1066 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1067 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1068 FreeBSD ELF OS/ABI's here.
1069 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1070 (i386fbsd-tdep.o): New target.
1071 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1072 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1073
1074 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1075 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1076 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1077 in initialization of TDEP->sc_num_regs.
1078
1079 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1080 (x86_64_init_abi): Initialize regset_from_core_section if
1081 appropriate.
1082
1083 * i386-tdep.c (i386_regset_from_core_section): New function.
1084 (i386_gdbarch_init): Initialize regset_from_core_section if
1085 appropriate.
1086 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1087
1088 * i386-tdep.h (struct regset): Declare opaque.
1089
1090 * gdbarch.sh (regset_from_core_section): New method.
1091 (struct regset): Declare opaque.
1092 * gdbarch.c, gdbarch.h: Regenerated.
1093
1094 2003-10-11 Alan Modra <amodra@bigpond.net.au>
1095
1096 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1097 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1098 Correct test for pc within section.
1099
1100 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1101
1102 * gdbarch.sh: Remove trailing whitepsace from comments.
1103
1104 2003-10-08 Roland McGrath <roland@redhat.com>
1105
1106 * gcore.c (make_mem_sec): Function removed, folded into ...
1107 (gcore_create_callback): ... here. To omit a section, clear its
1108 SEC_LOAD bit rather than zeroing its size.
1109 Omit read-only sections only if they correspond to a known disk file.
1110 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1111
1112 2003-10-10 Michael Snyder <msnyder@redhat.com>
1113
1114 * d10v-tdep.c: Fix typo in comment.
1115
1116 2003-10-10 Andrew Cagney <cagney@redhat.com>
1117
1118 * rs6000-tdep.c (e500_store_return_value): Delete function.
1119 (e500_extract_return_value): Delete function.
1120 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1121 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1122 "ppc_sysv_abi_restore_return_value" where applicable.
1123 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1124 (ppc_sysv_abi_extract_return_value): Declare.
1125 (ppc_sysv_abi_broken_store_return_value): Declare.
1126 (ppc_sysv_abi_broken_extract_return_value): Declare.
1127 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1128 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1129 start of file.
1130 (do_ppc_sysv_return_value): New function.
1131 (ppc_sysv_abi_extract_return_value): New function.
1132 (ppc_sysv_abi_store_return_value): New function.
1133 (ppc_sysv_abi_broken_extract_return_value): New function.
1134 (ppc_sysv_abi_broken_store_return_value): New function.
1135 (ppc_sysv_abi_use_struct_convention): Call
1136 do_ppc_sysv_return_value.
1137
1138 2003-10-10 J. Brobecker <brobecker@gnat.com>
1139
1140 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1141 to lookup the main function symbol.
1142
1143 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1144
1145 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1146 types correctly.
1147 (sh_push_dummy_call_fpu): Fix argument passing rules.
1148 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1149 float types.
1150 (sh3e_sh4_store_return_value): Ditto.
1151
1152 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
1153
1154 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1155 comment.
1156
1157 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1158
1159 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1160 more readable code. Accomodate passing of bitfields.
1161
1162 2003-10-10 Andrew Cagney <cagney@redhat.com>
1163
1164 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1165 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1166 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1167 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1168 (ppc64_sysv_abi_push_dummy_call): New function.
1169 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1170 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1171 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1172
1173 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1174
1175 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1176 * README: Ditto.
1177 * d10v-tdep.c: Ditto.
1178 * h8300-tdep.c: Ditto.
1179 * remote-e7000.c: Ditto.
1180 * remote-hms.c: Ditto.
1181 * ser-e7kpc.c: Ditto.
1182 * sh-stub.c: Ditto.
1183 * sh-tdep.c: Ditto.
1184 * sh-tdep.h: Ditto.
1185 * sh3-rom.c: Ditto.
1186 * sh64-tdep.c: Ditto.
1187 * top.c: Ditto.
1188 * wince.c: Ditto.
1189 * config/d10v/d10v.mt: Ditto.
1190 * config/sh/embed.mt: Ditto.
1191 * config/sh/linux.mt: Ditto.
1192 * config/sh/tm-linux.h: Ditto.
1193 * config/sh/tm-sh.h: Ditto.
1194 * config/sh/wince.mt: Ditto.
1195
1196 2003-10-09 Andrew Cagney <cagney@redhat.com>
1197
1198 * ppc-tdep.h (struct type): Declare opaque.
1199 * x86-64-tdep.h (struct regcache): Declare opaque.
1200 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1201 coding style.
1202
1203 2003-10-09 Andrew Cagney <cagney@redhat.com>
1204
1205 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1206 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1207 (SOFTWARE_SINGLE_STEP_P): Ditto.
1208 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1209 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1210 (SOFTWARE_SINGLE_STEP_P): Ditto.
1211 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1212 software_single_step to rs6000_software_single_step.
1213
1214 2003-10-09 Andrew Cagney <cagney@redhat.com>
1215
1216 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1217
1218 2003-10-09 Michael Snyder <msnyder@redhat.com>
1219
1220 * frame.h: Fix typo in comment.
1221 * dummy-frame.c: Fix typo in comment.
1222 * d10v-tdep.c: Random whitespace/comment tweaks.
1223
1224 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
1225
1226 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1227 (sh_push_dummy_code): Delete function, it's only used for dummy calls
1228 on stack.
1229
1230 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1231 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1232 in detail.
1233
1234 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1235
1236 * remote-mips.c (mips_initialize): Remove unneeded call to
1237 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1238
1239 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1240
1241 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1242 a memory pointer.
1243
1244 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1245
1246 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1247 for any lwp we resume.
1248 (running_callback): Add lwps that have pending status events
1249 against them to be considered running.
1250
1251 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1252
1253 * m32r-tdep.c : Include "dis-asm.h".
1254 * Makefile.in (m32r-tdep.o): Update dependencies.
1255
1256 2003-10-06 J. Brobecker <brobecker@gnat.com>
1257
1258 * completer.h (get_gdb_completer_word_break_characters): Delete.
1259 * completer.c: include language.h.
1260 (gdb_completer_word_break_characters): Delete.
1261 (get_gdb_completer_word_break_characters): Delete.
1262 (location_completer): Use the word break characters of the current
1263 language.
1264 (complete_line): Likewise.
1265 (line_completion_function): Likewise.
1266 (skip_quoted_chars): Likewise.
1267 * Makefile.in (completer.o): Add dependency on language.h.
1268 * top.c (init_main): Set the readline word break characters
1269 to GDB's default word break characters.
1270
1271 2003-10-06 J. Brobecker <brobecker@gnat.com>
1272
1273 * language.h (language_defn): new field, la_word_break_characters.
1274 * language.c (unknown_language_defn): Set new field to
1275 default_word_break_characters.
1276 (auto_language_defn): Likewise.
1277 (local_language_defn): Likewise.
1278 * ada-lang.c (ada_language_defn): Likewise.
1279 * c-lang.c (c_language_defn): Likewise.
1280 (cplus_language_defn): Likewise.
1281 (asm_language_defn): Likewise.
1282 (minimal_language_defn): Likewise.
1283 * f-lang.c (f_language_defn): Likewise.
1284 * jv-lang.c (java_language_defn): Likewise.
1285 * m2-lang.c (m2_language_defn): Likewise.
1286 * objc-lang.c (objc_language_defn): Likewise.
1287 * p-lang.c (pascal_language_defn): Likewise.
1288 * scm-lang.c (scm_language_defn): Likewise.
1289
1290 2003-10-06 Andrew Cagney <cagney@redhat.com>
1291
1292 * ppc-sysv-tdep.c: Re-indent.
1293
1294 2003-10-06 J. Brobecker <brobecker@gnat.com>
1295
1296 * language.h (default_word_break_characters): Add prototype.
1297 * language.c (default_word_break_characters): New function.
1298
1299 2003-10-06 Andreas Schwab <schwab@suse.de>
1300
1301 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1302 with %eax.
1303
1304 2003-10-06 Andrew Cagney <cagney@redhat.com>
1305
1306 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1307 "h8500-tdep.c".
1308 (z8k-tdep.o): Delete custom build rule.
1309
1310 2003-10-06 Andrew Cagney <cagney@redhat.com>
1311
1312 * Makefile.in: Update all dependencies.
1313
1314 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1315 No longer list PA as as obsolete candidate. List m32r as
1316 broken instead of obsolete.
1317
1318 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1319 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1320 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1321 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1322 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1323 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1324 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1325 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1326 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1327 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1328 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1329 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1330 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1331 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1332 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1333 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1334 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1335 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1336 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1337 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1338 * config/z8k/z8k.mt: Ditto.
1339
1340 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1341 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1342 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1343 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1344 sparclite were removed.
1345 * configure.host, configure.tgt: Remove corresponding tuples.
1346
1347 * breakpoint.c, breakpoint.h: Remove obsolete code.
1348 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1349 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1350 * stabsread.h, xcoffread.c: Ditto.
1351
1352 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1353 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1354 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1355 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1356
1357 2003-10-06 David Lecomber <dsl@sources.redhat.com>
1358
1359 * f-valprint.c: Reformatting
1360
1361 2003-10-06 Mark Kettenis <kettenis@gnu.org>
1362
1363 * x86-64-tdep.c: Remove duplicate comment.
1364
1365 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1366 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1367 names for return values. This fixes a bug since we looked at %rbx
1368 instead of %rdx.
1369
1370 2003-10-05 Mark Kettenis <kettenis@gnu.org>
1371
1372 * x86-64-tdep.c: Include "regset.h".
1373
1374 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1375 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1376 sizeof_fpregset.
1377 * i386-tdep.c: Include "regset.h".
1378 (i386_supply_gregset): New function.
1379 (i386_supply_fpregset): New function.
1380 (i386_gdbarch_init): Initialze register set-related members of
1381 TDEP.
1382 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1383 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1384
1385 2003-10-03 Andrew Cagney <cagney@redhat.com>
1386
1387 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1388 set extract_return_value, store_return_value and
1389 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1390 ppc64_sysv_abi_store_return_value and
1391 ppc64_sysv_abi_use_struct_convention.
1392 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1393 (ppc64_sysv_abi_store_return_value): Declare.
1394 (ppc64_sysv_abi_use_struct_convention): Declare.
1395 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1396 (ppc64_sysv_abi_extract_return_value): New function.
1397 (ppc64_sysv_abi_store_return_value): New function.
1398 (ppc64_sysv_abi_use_struct_convention): New function.
1399 (ppc64_sysv_abi_return_value): New function.
1400
1401 2003-10-03 Andrew Cagney <cagney@redhat.com>
1402
1403 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1404 convert a descriptor to a function when it's in the ".opd"
1405 section.
1406
1407 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1408
1409 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1410 reg_size to keep GCC silent.
1411
1412 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1413
1414 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1415 base for DW_EH_PE_textrel encodings.
1416 (read_encoded_value): Add a DW_EH_PE_textrel case.
1417 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1418 section.
1419
1420 2003-10-03 Mark Kettenis <kettenis@gnu.org>
1421
1422 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1423
1424 2003-10-02 Andrew Cagney <cagney@redhat.com>
1425
1426 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1427 REGISTER_RAW_SIZE.
1428 * gdbarch.h, gdbarch.c: Re-generate.
1429 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1430 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1431 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1432 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1433 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1434 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1435 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1436 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1437 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1438 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1439 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1440 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1441 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1442 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1443 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1444 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
1445
1446 2003-10-02 Jim Blandy <jimb@redhat.com>
1447
1448 * dwarf2read.c (struct die_info): Doc fix.
1449
1450 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1451
1452 * sh-tdep.c: Running thru gdb_indent.sh.
1453
1454 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1455
1456 * sh-tdep.c (sh_justify_value_in_reg): New function.
1457 (sh_stack_allocsize): Ditto.
1458 (flt_argreg_array): New array used for floating point argument
1459 passing.
1460 (sh_init_flt_argreg): New function.
1461 (sh_next_flt_argreg): Ditto.
1462 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1463 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1464 Fix argument passing strategy.
1465 (sh_push_dummy_call_nofpu): Ditto.
1466
1467 2003-10-01 Andrew Cagney <cagney@redhat.com>
1468
1469 * value.h (register_value_being_returned): Declare. Replace
1470 "value_being_returned".
1471 * infcall.c (call_function_by_hand): Use
1472 register_value_being_returned.
1473 * infcmd.c (print_return_value): Call
1474 "register_value_being_returned", handle struct return locally.
1475 * values.c (register_value_being_returned): New function. Replace
1476 "value_being_returned".
1477
1478 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
1479
1480 * linux-proc.c (linux_do_registers): New function.
1481 (linux_make_note_section): Use linux_do_registers in case of
1482 single threaded inferior programs.
1483
1484 2003-10-01 Andrew Cagney <cagney@redhat.com>
1485
1486 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1487 use STRUCT_ADDR. When not using "struct return convention", pass
1488 "0" to "value_being_returned". Add FIXMEs.
1489 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1490 value_being_returned. Add comments.
1491 * values.c (value_being_returned): Add fixme.
1492 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1493 (hppa_value_returned_from_stack): Add FIXME.
1494
1495 2003-09-30 David Carlton <carlton@kealia.com>
1496
1497 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1498 'has_children' and 'next' by 'child' and 'sibling'.
1499 (read_comp_unit): Rework algorithm, breaking body into
1500 read_die_and_children and read_die_and_siblings.
1501 (read_die_and_children, read_die_and_siblings): New.
1502 (read_full_die): Add 'has_children' argument; set it instead of
1503 the die's 'has_children' field. Minor formatting cleanup.
1504 (free_die_list): Use die->child and die->sibling instead of
1505 die->next.
1506 (dump_die_list): Ditto.
1507 (sibling_die): Use die->sibling.
1508 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1509 'has_children' and 'next' fields.
1510 (process_die, read_file_scope, read_func_scope)
1511 (read_lexical_block_scope, read_structure_scope)
1512 (read_enumeration, read_array_type, read_common_block)
1513 (read_namespace, read_subroutine_type, dump_die): Ditto.
1514
1515 2003-09-30 Andrew Cagney <cagney@redhat.com>
1516
1517 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1518 to 224, not 220.
1519
1520 2003-09-30 Andrew Cagney <cagney@redhat.com>
1521
1522 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1523 REGISTER_VIRTUAL_SIZE.
1524 * gdbarch.h, gdbarch.c: Regenerate.
1525 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1526 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1527 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1528
1529 2003-09-29 Andrew Cagney <cagney@redhat.com>
1530
1531 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1532 DEPRECATED_REGISTER_VIRTUAL_TYPE.
1533 * gdbarch.h, gdbarch.c: Regenerate.
1534 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1535 * sh64-tdep.c, sparc-tdep.c: Update.
1536
1537 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1538 * remote-vxmips.c (vx_read_register): Ditto.
1539 * remote-vx68.c (vx_read_register): Ditto.
1540 * gnu-nat.c (inf_validate_procs): Ditto.
1541
1542 2003-09-29 J. Brobecker <brobecker@gnat.com>
1543
1544 * infcall.c (call_function_by_hand): Fix build failure
1545 introduced in the previous change to this file.
1546
1547 2003-09-29 Andrew Cagney <cagney@redhat.com>
1548
1549 * NEWS: Mention Objective-C.
1550
1551 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
1552
1553 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1554 test if the register has been saved on the stack.
1555 (arm_scan_prologue_cache): When analysing the instruction
1556 "str lr, [sp, #-4]", save the address where lr has been stored.
1557
1558 2003-09-28 Andrew Cagney <cagney@redhat.com>
1559
1560 * frame.c (frame_read_unsigned_register): Delete function.
1561 * frame.h (frame_read_unsigned_register): Delete declaration.
1562 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1563 get_frame_register_unsigned.
1564 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1565 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1566 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1567
1568 * frame.h (frame_read_register): Delete declaration.
1569 * frame.c (frame_read_register): Delete function.
1570 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1571 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1572 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1573 * mips-tdep.c (mips_register_to_value): Ditto.
1574 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1575 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1576
1577 * frame.c (frame_read_signed_register): Delete function.
1578 (frame_read_unsigned_register): Update comments.
1579 * frame.h (frame_read_signed_register): Delete declaration.
1580 * h8300-tdep.c (h8300_print_register): Use
1581 get_frame_register_signed.
1582 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1583
1584 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1585 Rename VALUE_RETURNED_FROM_STACK.
1586 * infcmd.c (print_return_value): Update.
1587 * infcall.c (call_function_by_hand): Update.
1588
1589 2003-09-28 Mark Kettenis <kettenis@gnu.org>
1590
1591 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1592 regcache argument and reverse the order of the other two
1593 arguments. Remove local regcache variable. Determine
1594 architecture from REGCACHE. Update comments.
1595 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1596 reverse the order of the other two arguments. Remove local
1597 regcache variable. Determine architecture from REGCACHE. Update
1598 comments.
1599 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1600 prototypes. Update comments.
1601 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1602 comment.
1603 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1604 Update.
1605 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1606 * i386-interix-nat.c (supply_fpregset): Update.
1607 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1608 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1609 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1610 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1611 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1612 Update.
1613 * i386obsd-tdep.c (fetch_core_registers): Update.
1614 * i386v4-nat.c (supply_fpregset): Update.
1615 * x86-64-linux-nat.c (supply_fpregset): Update.
1616 * x86-64-linux-tdep.c (fetch_core_registers): Update.
1617
1618 2003-09-27 Mark Kettenis <kettenis@gnu.org>
1619
1620 * i386-tdep.h: Put opaque declarations in alphabetical
1621 order. Remove spurious whitespace.
1622 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1623 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1624 * i386-tdep.c (MM0_REGNUM): Remove define.
1625 (i386_mmx_regnum_p): Add gdbarch argument.
1626 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1627 Rewrite using new macro definitions for FPU/SSE registers.
1628 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1629 definitions from i387-tdep.h.
1630 (i386_register_name): Update.
1631 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1632 new macro definitions for FPU/SSE registers.
1633 (i386_extract_return_value): Determine whether floating-point
1634 registers are present by examining REGCACHE's architecture.
1635 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1636 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1637 FPU/SSE registers.
1638 (i386_register_type): Update.
1639 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1640 definitions for FPU registers. Use REGCACHE's architecture to
1641 determine the appropriate register numbers.
1642 (i386_pseudo_register_read, i386_pseudo_register_write,
1643 i386_register_reggroup_p): Update.
1644 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1645 TDEP->mm0_regnum.
1646 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1647 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1648 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1649 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1650 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1651 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1652 *' to `void *'.
1653 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1654 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1655 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1656 definitions for FPU/SSE registers.
1657 (FXSAVE_MXCSR_ADDR): New define.
1658 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1659 TDEP->mm0_regnum.
1660 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1661 (I387_ST0_REGNUM): Define.
1662
1663 * regcache.h (get_regcache_arch): New prototype.
1664 * regcache.c (get_regcache_arch): New function.
1665
1666 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1667 whitespace.
1668
1669 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1670 Initialize using ARRAY_SIZE.
1671
1672 2003-09-27 Andrew Cagney <cagney@redhat.com>
1673
1674 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1675 "init_frame_pc_default".
1676 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1677 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1678 * vax-tdep.c (vax_gdbarch_init): Update.
1679 * v850-tdep.c (v850_gdbarch_init): Update.
1680 * sh64-tdep.c (sh64_gdbarch_init): Update.
1681 * s390-tdep.c (s390_gdbarch_init): Update.
1682 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1683 * mcore-tdep.c (mcore_gdbarch_init): Update.
1684 * h8300-tdep.c (h8300_gdbarch_init): Update.
1685 * cris-tdep.c (cris_gdbarch_init): Update.
1686 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1687
1688 2003-09-26 Mark Kettenis <kettenis@gnu.org>
1689
1690 * regset.h: New file.
1691 * Makefile.in (regset_h): Add.
1692
1693 2003-09-25 Andrew Cagney <cagney@redhat.com>
1694
1695 * frame.h (deprecated_frame_saved_regs): Rename
1696 get_frame_saved_regs.
1697 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1698 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1699 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1700 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1701 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1702
1703 2003-09-25 Andrew Cagney <cagney@redhat.com>
1704
1705 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1706 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1707 and Java.
1708 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1709 arm*-*-* do not use the new frame code.
1710
1711 2003-09-25 David Carlton <carlton@kealia.com>
1712
1713 * c-exp.y: Remove 'register' declarations.
1714 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1715
1716 2003-09-25 David Carlton <carlton@kealia.com>
1717
1718 * c-exp.y: Include cp-support.h. Add qualified_type.
1719 (yylex): Delete nested type hack; add comments.
1720 * cp-namespace.c (cp_lookup_nested_type): New function.
1721 * cp-support.h: Declare cp_lookup_nested_type.
1722 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1723 instead of value_struct_elt_for_reference.
1724 * valops.c: Include cp-support.h.
1725 (value_aggregate_elt): New function.
1726 (value_namespace_elt): Ditto.
1727 (value_struct_elt_for_reference): Make static.
1728 * value.h: Delete declaration of value_struct_elt_for_reference;
1729 add declaration for value_aggregate_elt.
1730 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1731 (valops.o): Ditto.
1732
1733 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
1734
1735 * stack.c: Include "reggroups.h".
1736 (frame_info): Only display registers in all_reggroup.
1737 * Makefile.in (stack.o): Update dependencies.
1738
1739 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1740
1741 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1742 "add ip, sp #n" in the prologue.
1743 (arm_scan_prologue): Ditto.
1744
1745 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1746
1747 * MAINTAINERS (write after approval): Add myself.
1748
1749 2003-09-25 Andreas Schwab <schwab@suse.de>
1750
1751 * m68k-tdep.c: Include "dwarf2-frame.h".
1752 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1753 * Makefile.in (m68k-tdep.o): Update dependencies.
1754
1755 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
1756
1757 * sh-tdep.c (struct frame_extra_info): Remove.
1758 (struct sh_frame_cache): New structure.
1759 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1760 (GET_TARGET_REG): Ditto but target register.
1761 (GET_PUSHED_REG): Remove.
1762 (IS_MOV_ARG_TO_REG): New macro.
1763 (IS_MOV_ARG_TO_IND_R14): New macro.
1764 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1765 (IS_MOVW_PCREL_TO_REG): New macro.
1766 (IS_MOVL_PCREL_TO_REG): New macro.
1767 (IS_SUB_REG_FROM_SP): New macro.
1768 (IS_ARG_MOV): Remove.
1769 (IS_MOV_TO_R14): Remove.
1770 (IS_RESTORE_FP): New macro.
1771 (IS_RTS): New macro.
1772 (IS_LDS): New macro.
1773 (IS_MOV_FP_SP): New macro.
1774 (IS_ADD_REG_TO_FP): New macro.
1775 (IS_ADD_IMM_FP): New macro.
1776 (sh_skip_prologue_hard_way): Remove.
1777 (sh_saved_pc_after_call): Remove.
1778 (sh_frame_chain): Remove.
1779 (sh_find_callers_reg): Remove.
1780 (sh_nofp_frame_init_saved_regs): Remove.
1781 (sh_fp_frame_init_saved_regs): Remove.
1782 (sh_init_extra_frame_info): Remove.
1783 (sh_analyze_prologue): New function.
1784 (sh_skip_prologue): Remove deprecated code. Rely on new function
1785 sh_analyze_prologue when after_prologue fails.
1786 (sh_frame_saved_pc): Remove.
1787 (sh_alloc_frame_cache): New function.
1788 (sh_frame_cache): Ditto.
1789 (sh_frame_prev_register): Ditto.
1790 (sh_frame_this_id): Ditto.
1791 (sh_frame_unwind): New structure defining the heuristic frame
1792 sniffer interface.
1793 (sh_frame_sniffer): New function.
1794 (sh_unwind_sp): Ditto.
1795 (sh_unwind_pc): Ditto.
1796 (sh_unwind_dummy_id): Ditto.
1797 (sh_frame_base_address): Ditto.
1798 (sh_frame_base): New structure defining new frame base code.
1799 (sh_in_function_epilogue_p): New function.
1800 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1801 code and to call all new code instead. Initialize dwarf2 and
1802 heuristic frame sniffer.
1803
1804 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1805
1806 * parser-defs.h (struct exp_descriptor): New definition, containing
1807 language-specific info for printing, prefixifying, dumping, and
1808 evaluating expressions.
1809 (exp_descriptor_standard): Declare new variable.
1810 (print_subexp): Make global and declare here (from expprint.c).
1811 (dump_subexp): Ditto.
1812 (dump_subexp_body_standard): Declare.
1813 (operator_length_standard): Declare.
1814 (op_name_standard): Declare.
1815 (print_subexp): Declare.
1816 (print_subexp_standard): Declare.
1817
1818 * language.h (struct language_defn): Add la_exp_desc field to hold
1819 pointer to table for language-specific operators.
1820 Remove evaluate_exp field, which is now in struct exp_descriptor.
1821
1822 * parse.c (operator_length): Move most code to new
1823 operator_length_standard function. Use language-specific information.
1824 (operator_length_standard): New function taking most code from
1825 operator_length.
1826 (exp_descriptor_standard): New constant.
1827
1828 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
1829 and OP_EXTENDED_LAST.
1830
1831 * expprint.c (print_subexp): Use language-specific print_subexp.
1832 Make global; remove static declaration.
1833 Move most code to print_subexp_standard.
1834 (print_subexp_standard): New function, containing code formerly in
1835 print_subexp.
1836 (op_name): Add expression to argument signature.
1837 Use langauge-specific op_name.
1838 Move most code to op_name_standard.
1839 (op_name_standard): New function, containing code formerly in op_name.
1840 (dump_subexp): Use new version of op_name function.
1841 Use language-specific dump_subexp_body, and move most existing code to
1842 dump_subexp_body_standard.
1843 (dump_raw_expression): Use new op_name interface.
1844 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1845 (dump_subexp_body_standard): New function, containing code formerly
1846 in dump_subexp_body.
1847
1848 * language.c (unknown_language): Add default la_exp_desc field and
1849 remove evaluate_exp field.
1850 (auto_language): Ditto.
1851 (local_language): Ditto.
1852 * f-lang.c (f_language_defn): Ditto.
1853 * c-lang.c (c_language_defn): Ditto.
1854 (cplus_language_defn): Ditto.
1855 (asm_language_defn): Ditto.
1856 (minimal_language_defn): Ditto.
1857 * p-lang.c (pascal_language_defn): Ditto.
1858 * m2-lang.c (m2_language_defn): Ditto.
1859 * objc-lang.c (objc_language_defn): Ditto.
1860
1861 * jv-lang.c (exp_descriptor_java): New variable, containing
1862 Java-specific expression evaluator.
1863 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1864 field.
1865 * scm-lang.c (exp_descriptor_scm): New variable, containing
1866 Scheme-specific expression evaluator.
1867 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1868 field.
1869 * objc-lang.c (print_object_command): Take evaluate_exp from the
1870 la_exp_desc field.
1871
1872 * Makefile.in (eval.o): Add dependency on parser-defs.h.
1873
1874 * eval.c: Include parser-defs.h for the full declaration of
1875 la_exp_desc's type.
1876 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
1877
1878 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1879
1880 * parser-defs.h (operator_length): Declare.
1881
1882 * parse.c (length_of_subexp): Use operator_length to get operator
1883 lengths and arities for operators.
1884 Move most code to new operator_length function.
1885 (operator_length): New function absorbing most code from
1886 length_of_subexp.
1887 (prefixify_subexp): Remove large case and use operator_length instead.
1888 (parse_exp_1): Use renamings:
1889 dump_prefix_expression => dump_raw_expression and
1890 dump_postfix_expression => dump_prefix_expression.
1891
1892 * expression.h (dump_prefix_expression): Rename to ...
1893 (dump_raw_expression): New name.
1894 (dump_postfix_expression): Rename to ...
1895 (dump_prefix_expression): New name.
1896
1897 * expprint.c (dump_subexp): Make global. Add comment.
1898 Move most existing code to dump_subexp_body.
1899 (dump_subexp_body): New function.
1900 (dump_prefix_expression): Rename to dump_raw_expression.
1901 Remove attempt to print the expression via print_expression: it can't
1902 work before the expression is prefixified.
1903 (dump_raw_expression): Renamed from dump_prefix_expression.
1904 (dump_postfix_expression): Rename to dump_prefix_expression, since
1905 that's what it does.
1906 Remove 'note' parameter, since this routine must be used on
1907 prefixified expression.
1908 (dump_prefix_expression): Renamed from dump_postfix_expression.
1909
1910 2003-09-22 Jim Blandy <jimb@redhat.com>
1911
1912 * dwarf2read.c (read_array_type): When building the type for an
1913 array of unspecified length, make sure to choose the upper bound
1914 so that the array's total length comes out to be zero --- that's
1915 how we represent such arrays.
1916
1917 2003-09-22 Michael Chastain <mec@shout.net>
1918
1919 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1920
1921 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1922
1923 * top.c (quit_force): Fix indirect call to quit_target so
1924 a struct qt_args pointer is passed.
1925
1926 2003-09-22 Andrew Cagney <cagney@redhat.com>
1927
1928 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1929 * arch-utils.c (init_frame_pc_noop): Delete function.
1930 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1931 "init_frame_pc".
1932 * mips-tdep.c (mips_gdbarch_init): Ditto.
1933 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1934 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1935 declaration.
1936 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1937 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1938 declaration.
1939 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1940
1941 2003-09-22 Anthony Green <green@redhat.com>
1942
1943 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1944 declaration.
1945
1946 2003-09-20 Andrew Cagney <cagney@redhat.com>
1947
1948 * breakpoint.c: Eliminate ARGSUSED.
1949 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1950 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1951 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1952 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1953 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1954 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1955 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1956 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1957 * wince.c, remote-vx.c: Ditto.
1958
1959 * cli/cli-script.c: Remove "register" attributes.
1960 * config/pa/tm-hppa.h: Ditto.
1961 * cli/cli-decode.c: Ditto.
1962 * cli/cli-cmds.c: Ditto.
1963
1964 2003-09-19 Andrew Cagney <cagney@redhat.com>
1965
1966 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1967 DEPRECATED_NPC_REGNUM.
1968 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1969
1970 2003-09-19 Christopher Faylor <cgf@redhat.com>
1971
1972 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1973
1974 2003-09-19 Jim Blandy <jimb@redhat.com>
1975
1976 * macrotab.c (macro_include): Use the correct comparison to find
1977 the appropriate place for this inclusion in the list.
1978
1979 2003-09-19 Andrew Cagney <cagney@redhat.com>
1980
1981 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1982 (DEPRECATED_HPUX_TEXT_END): Define.
1983 (deprecated_hpux_text_end): Declare.
1984 (struct target_ops): Declare opaque.
1985 * hppah-nat.c (text_end): Make static.
1986 (deprecated_hpux_text_end): New function.
1987 * exec.c (text_end): Delete global variable.
1988 (NEED_TEXT_START_END): Do not define.
1989 (exec_file_attach): Replace code computing "text_end" code with
1990 call to DEPRECATED_HPUX_TEXT_END.
1991
1992 2003-09-19 Andrew Cagney <cagney@redhat.com>
1993
1994 * utils.c (align_up, align_down): New functions.
1995 * defs.h (align_up, align_down): Declare.
1996 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1997 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1998 and "align_down".
1999 (round_up, round_down): Delete functions.
2000 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2001 "align_down".
2002 (ROUND_DOWN, ROUND_UP): Delete macros.
2003 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2004 * h8300-tdep.c: Replace "round_up" and "round_down" with
2005 "align_up" and "align_down".
2006 (round_up, round_down): Delete macros.
2007 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2008 "align_down".
2009 (ROUND_UP, ROUND_DOWN): Delete macros.
2010
2011 2003-09-18 J. Brobecker <brobecker@gnat.com>
2012
2013 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2014 hard-coded constant. Use the proper machine name instead.
2015
2016 2003-09-17 Andrew Cagney <cagney@redhat.com>
2017
2018 * sparc-tdep.c (legacy_register_name): Delete function.
2019 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2020 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2021 * infcmd.c (gdb_register_name): Delete variable.
2022 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2023 REGISTER_NAME and "tm.h".
2024 * gdbarch.h, gdbarch.c: Regenerate.
2025 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2026 REGISTER_NAMES in comments.
2027 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2028 * m68klinux-nat.c (regmap): Ditto.
2029
2030 2003-09-17 Jim Blandy <jimb@redhat.com>
2031
2032 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2033
2034 2003-09-17 Andrew Cagney <cagney@redhat.com>
2035
2036 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2037 (ppcnbsd_init_abi): Set "use_struct_convention" to
2038 "ppcnbsd_use_struct_convention".
2039
2040 2003-09-17 Mark Kettenis <kettenis@gnu.org>
2041
2042 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2043 * gdbarch.h, gdbarch.c: Regenerate.
2044 (stabs_argument_has_addr): New architecture method.
2045 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2046 * arch-utils.c: Include "buildsym.h".
2047 (default_stabs_argument_has_addr): New function.
2048 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2049 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2050
2051 2003-09-17 Andrew Cagney <cagney@redhat.com>
2052
2053 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2054 * gdbarch.h, gdbarch.c: Regenerate.
2055 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2056 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2057 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2058 * sparcnbsd-tdep.c: Update.
2059
2060 2003-09-17 Andrew Cagney <cagney@redhat.com>
2061
2062 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2063 * gdbarch.h, gdbarch.c: Regenerate.
2064 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2065 * d10v-tdep.c, frame.c: Update.
2066 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2067 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2068 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2069 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2070 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2071 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2072 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2073 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2074 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2075 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2076 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2077 * config/pa/nm-hppah.h: Update.
2078
2079 2003-09-16 Andrew Cagney <cagney@redhat.com>
2080
2081 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2082 "use_struct_convention" to "ppc_linux_use_struct_convention".
2083 (ppc_linux_use_struct_convention): New function.
2084 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2085 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2086 "rs6000_use_struct_convention".
2087 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2088 declaration.
2089 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2090 Delete function.
2091
2092 2003-09-16 Andrew Cagney <cagney@redhat.com>
2093
2094 * buildsym.c: Remove more occurances of "register".
2095 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2096 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2097 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2098 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2099 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2100 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2101 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2102 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2103
2104 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
2105
2106 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2107 numbers to enumeration values.
2108 * sh-tdep.c: Accomodate above change.
2109 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2110 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2111 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2112 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2113 (IS_FPUSH): Rename from IS_FMOV.
2114 (sh_extract_struct_value_address): Remove useless comment.
2115 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2116 instead of own local values.
2117 (sh_dump_tdep): Remove.
2118 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2119 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2120
2121 2003-09-15 Andrew Cagney <cagney@redhat.com>
2122
2123 * doublest.c (convert_floatformat_to_doublest): No longer need to
2124 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2125
2126 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
2127
2128 * values.c (unpack_double): Call floatformat_is_valid.
2129
2130 2003-09-15 Mark Kettenis <kettenis@gnu.org>
2131
2132 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2133 ps_strings into a long.
2134
2135 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2136 _initialize_am64fbsd_nat.
2137
2138 2003-09-15 Kevin Buettner <kevinb@redhat.com>
2139
2140 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2141 associated with DW_AT_ranges attribute is out of bounds.
2142
2143 2003-09-15 David Lecomber <dsl@sources.redhat.com>
2144
2145 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2146
2147 2003-09-14 Michael Chastain <mec@shout.net>
2148
2149 * config/m68k/nm-apollo68v.h: Delete.
2150 * config/m68k/xm-apollo68v.h: Delete.
2151
2152 2003-09-14 Andrew Cagney <cagney@redhat.com>
2153
2154 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2155 * dcache.c: Update copyrights and descriptions.
2156 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2157
2158 2003-09-14 Andrew Cagney <cagney@redhat.com>
2159
2160 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2161 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2162
2163 2003-09-14 Andrew Cagney <cagney@redhat.com>
2164
2165 * alpha-nat.c: Remove some occurances of "register".
2166 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2167 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2168 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2169 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2170 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2171 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2172 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2173 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2174 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2175 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2176 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2177 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2178 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2179 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2180 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2181 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2182 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2183 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2184 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2185 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2186 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2187 * values.c, vax-tdep.c, xcoffread.c: Ditto.
2188
2189 2003-09-13 Andrew Cagney <cagney@redhat.com>
2190
2191 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2192 * ppc-tdep.h (struct regcache): Declare opaque.
2193 * objfiles.h (struct objfile_data): Declare opaque.
2194 * cp-support.h (struct objfile): Declare opaque.
2195 * linux-nat.h (target_waitstatus): Declare opaque.
2196
2197 2003-09-14 Mark Kettenis <kettenis@gnu.org>
2198
2199 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2200 (stabs_argument_has_addr): New architecture method.
2201 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2202 * arch-utils.c: Include "buildsym.h".
2203 (default_stabs_argument_has_addr): New function.
2204 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2205 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2206
2207 * cris-tdep.c (cris_gdbarch_init): Set
2208 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2209 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2210 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2211 * mips-tdep.c (mips_gdbarch_init): Likewise.
2212 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2213 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2214
2215 2003-09-13 Andrew Cagney <cagney@redhat.com>
2216
2217 * values.c (using_struct_return): Delete "function" and "funcaddr"
2218 parameters.
2219 * value.h (using_struct_return): Update declaration.
2220 * infcmd.c (finish_command_continuation): Update.
2221 (finish_command): Update.
2222 * infcall.c (call_function_by_hand): Update.
2223 * eval.c (evaluate_subexp_standard): Update.
2224
2225 2003-09-13 Christopher Faylor <cgf@redhat.com>
2226
2227 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2228 SSE registers since gdb will not operate correctly without this.
2229 Restore include file ordering munged in previous change.
2230 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2231
2232 2003-09-13 Mark Kettenis <kettenis@gnu.org>
2233
2234 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2235 REG_STRUCT_HAS_ADDR.
2236 * gdbarch.c, gdbarch.h: Updated.
2237 * infcall.c (call_function_by_hand): Update.
2238 * stabsread.c (define_symbol): Updated.
2239
2240 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2241
2242 2003-09-12 Christopher Faylor <cgf@redhat.com>
2243
2244 * win32-nat.c: Reorganize so that defines used by target headers are
2245 actually defined by the system headers.
2246 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2247 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2248
2249 2003-09-12 Jim Blandy <jimb@redhat.com>
2250
2251 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2252 the file has no .data, .bss, or .rodata sections. Instead wait
2253 until we see a variable alleged to live in one of those sections.
2254
2255 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2256 .bss section, presume that any variables we find live in the
2257 .rodata section.
2258
2259 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2260 offsets for global and static variables.
2261
2262 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2263 symbol types are, by definition, in the .data section, so it is
2264 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2265 If there is no .data section, there should be no N_DATA or N_DATA
2266 | N_EXT symbols.
2267
2268 2003-09-12 Mark Kettenis <kettenis@gnu.org>
2269
2270 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2271 (amd64fbsd_sigcontext_addr): Rewrite.
2272 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2273 with correct values.
2274 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2275 (amd64fbsd_init_abi): Fix typo.
2276
2277 2003-09-12 Andrew Cagney <cagney@redhat.com>
2278
2279 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2280 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2281
2282 2003-09-12 Andrew Cagney <cagney@redhat.com>
2283
2284 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2285 "entry_file_highpc". Update comments.
2286 * defs.h (deprecated_inside_entry_file): Rename
2287 "inside_entry_file".
2288 * blockframe.c (deprecated_inside_entry_file): Rename
2289 "inside_entry_file".
2290 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2291 * vax-tdep.c (vax_frame_chain): Update.
2292 * sh64-tdep.c (sh64_frame_chain): Update.
2293 * sh-tdep.c (sh_frame_chain): Update.
2294 * rs6000-tdep.c (rs6000_frame_chain): Update.
2295 * ns32k-tdep.c (ns32k_frame_chain): Update.
2296 * mips-tdep.c (mips_frame_chain): Update.
2297 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2298 * m32r-tdep.c (m32r_frame_this_id): Update.
2299 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2300 * frv-tdep.c (frv_frame_this_id): Update.
2301 * d10v-tdep.c (d10v_frame_this_id): Update.
2302 * cris-tdep.c (cris_frame_chain): Update.
2303 * blockframe.c (legacy_frame_chain_valid): Update.
2304 * avr-tdep.c (avr_frame_this_id): Update.
2305 * arm-tdep.c (arm_prologue_this_id): Update.
2306 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2307 * objfiles.c (objfile_relocate): Update.
2308 * mipsread.c (mipscoff_symfile_read): Update.
2309 (mipscoff_symfile_read): Update.
2310 * mdebugread.c (parse_partial_symbols): Update.
2311 * dwarfread.c (read_file_scope): Update.
2312 * dwarf2read.c (read_file_scope): Update.
2313 * dbxread.c (read_dbx_symtab): Update.
2314 (read_dbx_symtab): Update.
2315 * coffread.c (complete_symtab): Update.
2316
2317 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2318
2319 * top.c (quit_target): New static helper function.
2320 (quit_force): Moved code to quit_target(). Call quit_target()
2321 via catch_errors() to catch errors during quit.
2322
2323 2003-09-11 David Carlton <carlton@kealia.com>
2324
2325 * buildsym.c (finish_block): Use allocate_block to allocate the
2326 block.
2327 * mdebugread.c (new_block): Add FIXME.
2328
2329 2003-09-11 David Carlton <carlton@kealia.com>
2330
2331 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2332 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2333 (recursive_dump_type): Ditto.
2334 * printcmd.c (print_formatted): Ditto.
2335 * typeprint.c (print_type_scalar): Ditto.
2336 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2337 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2338 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2339 maint_cplus_cmd_list.
2340 * cp-support.c: Make maint_cplus_cmd_list extern.
2341 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2342 command.h.
2343 (lookup_symbol_file): Look in possible namespace blocks when
2344 appropriate.
2345 (initialize_namespace_symtab): New.
2346 (get_possible_namespace_block, free_namespace_block)
2347 (check_possible_namespace_symbols)
2348 (check_possible_namespace_symbols_loop)
2349 (check_one_possible_namespace_symbol)
2350 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2351 (_initialize_cp_namespace): Ditto.
2352 * block.h: Declare allocate_block.
2353 * block.c (allocate_block): New.
2354 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2355 allocate_block.
2356 * symfile.h: Update declaration of add_psymbol_to_list.
2357 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2358 question.
2359 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2360 scan_partial_symbols_call.
2361 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2362 helper functions.
2363 (add_partial_symbol): If necessary, scan mangled names for names
2364 of namespaces.
2365 (add_partial_namespace): Add NAMESPACE argument; generate partial
2366 symbols associated to namespaces.
2367 (add_partial_enumeration): Add NAMESPACE argument.
2368 (new_symbol): Allow namespace syms.
2369 (read_namespace): Generate namespace syms.
2370 * objfiles.h: Add opaque declaration of struct symtab.
2371 (struct objfile): Add cp_namespace_symtab member.
2372 * objfiles.c (allocate_objfile): Set
2373 objfile->cp_namespace_symtab.
2374 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2375 dictionary_h, command_h.
2376
2377 2003-09-11 Andrew Cagney <cagney@redhat.com>
2378
2379 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2380 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2381 near the function's end.
2382 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2383 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2384 regcache_raw_write_signed to set SP_REGNUM.
2385
2386 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
2387
2388 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2389 orig_addrs is set up properly.
2390
2391 2003-09-11 Andrew Cagney <cagney@redhat.com>
2392
2393 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2394 * gdbarch.h, gdbarch.c: Re-generate.
2395 * infcall.c (call_function_by_hand): Update.
2396 * hppa-tdep.c (hppa_push_arguments): Update.
2397 * ada-lang.c (place_on_stack): Update.
2398 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2399 * sparc-tdep.c (sparc_gdbarch_init): Update.
2400 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2401 * hppa-tdep.c (hppa_gdbarch_init): Update.
2402 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2403 stack_align.
2404
2405 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
2406
2407 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2408 register do need a frame.
2409
2410 2003-09-11 Andrew Cagney <cagney@redhat.com>
2411
2412 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2413 buildable since GDB 5.0.
2414 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2415 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2416 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2417 * irix4-nat.c: Delete file.
2418 * config/mips/irix4.mh: Delete file.
2419 * config/mips/irix3.mh: Delete file.
2420 * config/mips/irix3.mt: Delete file.
2421 * config/mips/tm-irix3.h: Delete file.
2422 * config/mips/nm-irix3.h: Delete file.
2423 * config/mips/xm-irix3.h: Delete file.
2424 * config/mips/nm-irix4.h: Delete file.
2425 * config/mips/xm-irix4.h: Delete file.
2426 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2427
2428 2003-09-10 J. Brobecker <brobecker@gnat.com>
2429
2430 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2431 * Makefile.in (hppa-tdep.o): Update dependencies.
2432
2433 2003-09-10 James E Wilson <wilson@specifixinc.com>
2434
2435 * MAINTAINERS: Change my e-mail address. Move to paper trail
2436 section.
2437
2438 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2439
2440 * MAINTAINERS (frv): New ISA entry.
2441
2442 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2443
2444 * frv-tdep.c (dis-asm.h): Include.
2445 * Makefile.in (frv-tdep.o): Update dependencies.
2446
2447 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2448
2449 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2450 Fix typo for high range of floating registers.
2451
2452 2003-09-09 David Carlton <carlton@kealia.com>
2453
2454 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2455 highpc initialization here out of scan_partial_symbols.
2456 (scan_partial_symbols): Restructure into a recursive version,
2457 calling add_partial_namespace and add_partial_enumeration when
2458 appropriate.
2459 (add_partial_namespace): New.
2460 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2461
2462 2003-09-09 Andrew Cagney <cagney@redhat.com>
2463
2464 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2465 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2466 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2467 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2468
2469 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2470 (rs6000_push_dummy_call): Set the "TOC" register.
2471
2472 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2473 methods "max_register_raw_size", "max_register_virtual_size" or
2474 "register_virtual_size".
2475
2476 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2477
2478 * MAINTAINERS: Update my e-mail address.
2479
2480 2003-09-09 Andrew Cagney <cagney@redhat.com>
2481
2482 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2483 (rs6000_push_dummy_call): Store the struct return address.
2484 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2485
2486 2003-09-09 Andrew Cagney <cagney@redhat.com>
2487
2488 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2489 "ppc_sysv_abi_push_arguments".
2490 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2491 "ppc_sysv_abi_push_arguments".
2492 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2493 instead of "push_arguments".
2494 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2495
2496 2003-09-09 Andrew Cagney <cagney@redhat.com>
2497
2498 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2499 instead of CALL_DUMMY_ADDRESS.
2500
2501 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2502
2503 * p-lang.c: Eliminate "register".
2504 * c-lang.c: Ditto.
2505 * expprint.c: Ditto.
2506 * f-lang.c: Ditto.
2507 * jv-lang.c: Ditto.
2508 * language.c: Ditto.
2509 * m2-lang.c: Ditto.
2510 * parse.c: Ditto.
2511 * scm-lang.c: Ditto.
2512 * objc-lang.c: Ditto.
2513
2514 2003-09-09 Nick Clifton <nickc@redhat.com>
2515
2516 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2517
2518 2003-09-04 Andrew Cagney <cagney@redhat.com>
2519
2520 * avr-tdep.c: Include "dis-asm.h".
2521 * cris-tdep.c: Include "dis-asm.h".
2522 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2523 instead of corresponding typedef.
2524 * h8300-tdep.c: Include "dis-asm.h".
2525 * ia64-tdep.c: Include "dis-asm.h".
2526 * i386-tdep.c: Include "dis-asm.h".
2527 (i386_print_insn): Use "struct disassemble_info" instead of
2528 corresponding typedef.
2529 * m68k-tdep.c: Include "dis-asm.h".
2530 * mcore-tdep.c: Include "dis-asm.h".
2531 * mips-tdep.c: Include "dis-asm.h".
2532 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2533 instead of corresponding typedef.
2534 * ns32k-tdep.c: Include "dis-asm.h".
2535 * s390-tdep.c: Include "dis-asm.h".
2536 * sparc-tdep.c: Include "dis-asm.h".
2537 * vax-tdep.c: Include "dis-asm.h".
2538 * v850-tdep.c: Include "dis-asm.h".
2539 * mn10300-tdep.c: Include "dis-asm.h".
2540 * rs6000-tdep.c: Include "dis-asm.h".
2541 * xstormy16-tdep.c: Include "dis-asm.h".
2542 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2543 print_insn_xstormy16.
2544 * Makefile.in (v850-tdep.o): Update dependencies.
2545 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2546 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2547 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2548 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2549 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2550 (gdbarch_h): Remove $(dis_asm_h).
2551 * disasm.c: Include "dis-asm.h".
2552 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2553 corresponding typedef.
2554 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2555 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2556 * gdbarch.sh: Do not include "dis-asm.h".
2557 (struct disassemble_info): Declare opaque.
2558 (TARGET_PRINT_INSN): Update declaration.
2559 * gdbarch.h, gdbarch.c: Re-generate.
2560
2561 2003-09-08 Andrew Cagney <cagney@redhat.com>
2562
2563 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2564 CALL_DUMMY_ADDRESS, change to a predicate.
2565 * gdbarch.h, gdbarch.c: Re-generate.
2566 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2567 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2568 * infcall.c (call_function_by_hand): Ditto.
2569 * sparc-tdep.c (sparc_push_return_address): Ditto.
2570 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2571 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2572 CALL_DUMMY_ADDRESS with entry_point_address.
2573 * v850-tdep.c (v850_push_return_address): Ditto.
2574 * s390-tdep.c (s390_push_return_address): Ditto.
2575 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2576 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2577 * mcore-tdep.c (mcore_push_return_address): Ditto.
2578 * cris-tdep.c (cris_push_return_address): Ditto.
2579 * arm-tdep.c (arm_push_return_address): Ditto.
2580
2581 2003-09-08 Andrew Cagney <cagney@redhat.com>
2582
2583 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2584 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2585 and REG_UNMODIFIED to REG_SAME_VALUE.
2586 (execute_cfa_program): Update.
2587 (dwarf2_frame_cache): Update. Initialize table to
2588 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2589 location.
2590 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2591
2592 2003-09-08 Andrew Cagney <cagney@redhat.com>
2593
2594 * gnu-nat.c: Remove "inline" function attribute.
2595 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2596
2597 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2598
2599 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2600 target.
2601
2602 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2603
2604 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2605 (frame_extra_info): Rename this struct to frv_unwind_cache.
2606 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2607 Add fields ``prev_sp'' and ``base''.
2608 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2609 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2610 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2611 Delete.
2612 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2613 Revise all callers. Fill in the unwind cache argument and make
2614 other adjustments to account for new frame mechanisms.
2615 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2616 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2617 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2618 (frv_frame_unwind, frv_frame_base): New structs.
2619 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2620 additional arguments expected by this method and adjust function
2621 body accordingly.
2622 (frv_gdbarch_init): Remove calls to the following functions:
2623 set_gdbarch_deprecated_init_frame_pc(),
2624 set_gdbarch_deprecated_saved_pc_after_call(),
2625 set_gdbarch_deprecated_frame_chain(),
2626 set_gdbarch_deprecated_frame_saved_pc(),
2627 set_gdbarch_deprecated_frame_init_saved_regs(),
2628 set_gdbarch_deprecated_push_arguments(),
2629 set_gdbarch_deprecated_push_return_address(),
2630 set_gdbarch_deprecated_pop_frame(),
2631 set_gdbarch_deprecated_call_dummy_words(),
2632 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2633 set_gdbarch_deprecated_init_extra_frame_info(),
2634 set_gdbarch_deprecated_dummy_write_sp(), and
2635 set_gdbarch_deprecated_pc_in_call_dummy().
2636 Add calls to the following functions:
2637 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2638 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2639 frame_base_set_default().
2640 * Makefile.in (frv-tdep.o): Update dependencies.
2641
2642 2003-09-09 Mark Kettenis <kettenis@gnu.org>
2643
2644 * dwarf2-frame.c (read_encoded_value): Add support for
2645 DW_EH_PE_aligned encoding.
2646
2647 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2648
2649 * infrun.c (normal_stop): Don't print a message if the inferior
2650 has exited.
2651
2652 2003-09-08 Jim Blandy <jimb@redhat.com>
2653
2654 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2655 * dbxread.c: #include "gdb_assert.h".
2656 (read_dbx_symtab): If the objfile has no .data section, use the
2657 section index for the .bss section instead.
2658
2659 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2660
2661 * frame.c (deprecated_safe_get_selected_frame): New function.
2662 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2663 * findvar.c (read_var_value): Call it.
2664
2665 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
2666
2667 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2668 (sh64-tdep.o): Add dependencies.
2669 * configure.tgt: Add FIXME to sh-*-linux*.
2670 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2671 (sh_gdbarch_init): Always set correct sh_show_regs function
2672 pointer. Call sh64_gdbarch_init() if machine type is sh5.
2673 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2674 * sh64-tdep.c: New file, containing all sh64 related code from
2675 sh-tdep.c.
2676 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2677 * config/sh/linux.mt (TDEPFILES): Ditto.
2678 * config/sh/nbsd.mt (TDEPFILES): Ditto.
2679 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2680 * config/sh/wince.mt (TDEPFILES): Ditto.
2681
2682 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2683
2684 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2685 (stop_wait_callback): Handle !lp->signalled also.
2686 (lin_lwp_has_pending, flush_callback): New functions.
2687 (lin_lwp_wait): Call flush_callback.
2688 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2689 (linux_proc_pending_signals): New function.
2690 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2691
2692 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2693
2694 From Nick Kelsey <nickk@ubicom.com>:
2695 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2696 when the stop PC is at the beginning of a function also.
2697
2698 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
2699
2700 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2701 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2702
2703 2003-09-06 Mark Kettenis <kettenis@gnu.org>
2704
2705 * sol-thread.c: Include "gdb_string.h".
2706
2707 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2708
2709 * gcore.c: Reorder include files in alphabetical order. Include
2710 "gdb_assert.h". Various coding style fixes.
2711 (derive_stack_segment, derive_heap_segment): Replace check for
2712 non-null BOTTOM and TOP with gdb_assert.
2713 (derive_heap_segment): Replace check for successful creation of
2714 ZERO with gdb_assert.
2715 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2716
2717 2003-09-04 Andrew Cagney <cagney@redhat.com>
2718
2719 * thread-db.c (verbose_dlsym): New function.
2720 (thread_db_load): Use verbose_dlsym
2721 (thread_db_new_objfile): Print that libthread_db was loaded, and
2722 that thread debugging was enabled.
2723
2724 2003-09-04 Andrew Cagney <cagney@redhat.com>
2725
2726 * configure.tgt: Add "mips64*-*-*" target. Delete
2727 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2728 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2729 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2730 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2731 mips*-sony-*, and mips64*-*-elf* targets.
2732 * config/mips/embedl.mt: Delete file.
2733 * config/mips/embedl64.mt: Delete file.
2734 * config/mips/mips.mt: Delete file.
2735 * config/mips/mips64.mt: Delete file.
2736 * config/mips/tm-embed.h: Delete file.
2737 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2738 * config/mips/embed64.mt: Delete out-of-date comment.
2739
2740 2003-09-04 Andrew Cagney <cagney@redhat.com>
2741
2742 * hppa-tdep.c (hppa_gdbarch_init): Set
2743 "have_nonsteppable_watchpoint".
2744 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2745 * mips-tdep.c (mips_dump_tdep): Do not print
2746 HAVE_NONSTEPPABLE_WATCHPOINT.
2747 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2748 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2749 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2750 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2751
2752 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2753
2754 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2755 unused code. Add comment.
2756
2757 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2758
2759 * breakpoint.c (watchpoint_check): Check for pc being in an
2760 epilogue if watchpoint frame couldn't be found.
2761
2762 2003-09-04 Andrew Cagney <cagney@redhat.com>
2763
2764 * Makefile.in: Re-generate all dependencies.
2765
2766 2003-09-03 Andrew Cagney <cagney@redhat.com>
2767
2768 * arch-utils.h (legacy_print_insn): Delete declaration.
2769 * arch-utils.c (legacy_print_insn): Delete function.
2770 * disasm.c (deprecated_tm_print_insn_info): Delete.
2771 (_initialize_disasm): Delete function, contained code initializing
2772 deprecated_tm_print_insn_info.
2773 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2774 (deprecated_tm_print_insn_info): Delete.
2775 (TARGET_PRINT_INSN): Do not provide a default.
2776 * gdbarch.h, gdbarch.c: Re-generate.
2777
2778 2003-09-03 Andrew Cagney <cagney@redhat.com>
2779
2780 * disasm.c (fprintf_disasm): New function.
2781 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2782 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2783 reverts 2003-08-14 change.
2784 (_initialize_disasm): Call "init_disassemble_info", instead of
2785 INIT_DISASSEMBLE_INFO_NO_ARCH.
2786
2787 2003-09-03 Michael Snyder <msnyder@redhat.com>
2788
2789 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2790
2791 2003-09-03 Andrew Cagney <cagney@redhat.com>
2792
2793 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2794 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2795 * symfile.c (syms_from_objfile): Update.
2796 (reread_symbols): `Update
2797 * exec.c (exec_file_attach): Update.
2798 (exec_file_attach): Update.
2799 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2800 2003-08-29 change.
2801 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2802
2803 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2804
2805 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2806 trad-frame.h.
2807 (arm_get_cache): Delete macro.
2808 (struct arm_prologue_cache): Update comments. Make saved_regs into
2809 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2810 to prev_sp.
2811 (thumb_scan_prologue): Update for cache changes. Don't call
2812 DEPRECATED_PC_IN_CALL_DUMMY.
2813 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2814 argument and use it in desperation search for our prologue. Do not
2815 search past the specified PC.
2816 (arm_make_prologue_cache): Simplify.
2817
2818 (arm_prologue_this_id, arm_prologue_prev_register)
2819 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2820 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2821 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2822 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2823 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2824
2825 (arm_frame_chain_valid, arm_find_callers_reg)
2826 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2827 (arm_pop_frame): Delete obsolete methods.
2828 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2829
2830 (arm_gdbarch_init): Update for new frame methods. Register prologue
2831 and sigtramp unwinders. Set the default frame base method.
2832
2833 * Makefile.in (arm-tdep.o): Update dependencies.
2834 * varobj.c (find_frame_addr_in_frame_chain): Call
2835 get_frame_base_address.
2836 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2837
2838 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2839
2840 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2841 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2842 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2843 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2844 Take NEXT_FRAME and CACHE arguments. Call
2845 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2846 Set unwound_pc in CACHE instead of modifying the frame argument.
2847 Don't bother checking the frame type when looking for sigtramp
2848 frames.
2849 (arm_make_prologue_cache, arm_frame_chain)
2850 (arm_init_extra_frame_info): New functions.
2851
2852 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2853
2854 * arm-tdep.c (arm_get_cache): Define.
2855 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2856 unwound_sp, unwound_pc, and saved_regs.
2857 (thumb_scan_prologue): Take a cache instead of the frame.
2858 (arm_scan_prologue): Likewise.
2859 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2860 instead of a temporary frame.
2861 (arm_init_extra_frame_info): Allocate and use a cache.
2862 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2863
2864 2003-09-03 Andrew Cagney <cagney@redhat.com>
2865
2866 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2867 * config/mips/wince.mt (TM_CLIBS): Ditto.
2868 * config/sh/wince.mt (TM_CLIBS): Ditto.
2869 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2870 * config/sparc/sp64.mt (CC): Delete.
2871
2872 2003-09-03 Andrew Cagney <cagney@redhat.com>
2873
2874 * defs.h: Do not include "arch-utils.h".
2875 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2876 GDB_MULTI_ARCH_PURE.
2877 * configure.in (GDB_MULTI_ARCH): Do not define.
2878 * configure, config.in: Regenerate.
2879 * configure.tgt: Do not set variable "gdb_multi_arch".
2880 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2881 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2882 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2883 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2884 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2885 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2886 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2887 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2888 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2889 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2890 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2891 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2892 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2893 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2894 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2895 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2896 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2897 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
2898
2899 2003-08-30 Michael Chastain <mec@shout.net>
2900
2901 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2902 * config/m68k/nm-hp300hpux.h: Delete.
2903 * config/m68k/tm-hp300hpux.h: Delete.
2904 * config/m68k/xm-hp300hpux.h: Delete.
2905 * config/m68k/xm-hp300bsd.h: Delete.
2906 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2907 tm-hp300hpux.h, xm-hp300hpux.h.
2908 * somsolib.c: Remove comment about hp300 shared libraries.
2909
2910 2003-08-31 Mark Kettenis <kettenis@gnu.org>
2911
2912 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2913 Only define PTRACE_GET_THREAD_AREA is not already defined.
2914 Various style fixes in code and comments and some additional
2915 spelling fixes in comments. Move after functions dealing with
2916 debug registers.
2917 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2918 Fix coding-style.
2919
2920 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2921 frame_unwind_register_unsigned instead of
2922 frame_unwind_unsigned_register.
2923
2924 2003-08-30 Mark Kettenis <kettenis@gnu.org>
2925
2926 * configure.in: Search for gethostbyname in libnsl.
2927 * configure: Regenerated.
2928
2929 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2930
2931 * configure.in: Remove redundant AC_MSG_RESULT in check for
2932 uintptr_t in stdint.h.
2933 * configure: Regenerated.
2934
2935 * amd64-nat.h (struct regcache): Add opaque declaration.
2936
2937 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2938 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2939 Change "register array" to "register cache" in comments.
2940 (x86_64_linux_gregset64_reg_offset): New variable.
2941 (GETREGS_SUPPLIES): Remove macro.
2942 (supply_gregset): Call amd64_supply_native_gregset instead of
2943 x86_64_linux_supply_gregset.
2944 (fill_gregset): Rename `regno' to `regnum'. Call
2945 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2946 (store_regs): Rename `regno' to `regnum'.
2947 (store_fpregs): Rename `regno' to `regnum'.
2948 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2949 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2950 Reorganize function a bit.
2951 (store_inferior_registers): Rename `regno' to `regnum'. Use
2952 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2953 Reorganize function a bit.
2954 (_initialize_x86_64_linux_nat): New function.
2955 * config/i386/x86-64linux.mh.
2956
2957 2003-08-29 Andrew Cagney <cagney@redhat.com>
2958
2959 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2960 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2961 (target_remove_watchpoint): Delete macro.
2962 (target_insert_watchpoint): Delete macro.
2963 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2964 (remote_mips_stopped_by_watchpoint): Delete declaration.
2965 (remote_mips_remove_watchpoint): Delete declaration.
2966 (remote_mips_set_watchpoint): Delete declaration.
2967 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2968 * remote-mips.c (_initialize_remote_mips): Set
2969 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2970 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2971 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2972 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2973 (mips_stopped_by_watchpoint): Rename
2974 remote_mips_stopped_by_watchpoint.
2975 (mips_can_hardware_watchpoint): Rename
2976 remote_mips_can_use_hardware_watchpoint, update function
2977 signature.
2978
2979 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2980
2981 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2982 USER_DS. We haven't given them a register number yet.
2983
2984 * amd64-nat.h: New file.
2985 * amd64-nat.c: New file.
2986 * amd64fbsd-nat.c: Include "amd64-nat.h".
2987 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2988 (amd64fbsd32_r_reg_offset): New variable.
2989 (supply_gregset): Simply call amd64_supply_native_gregset.
2990 (fill_gregset): Rename `regno' to `regnum'. Simply call
2991 amd64_collect_native_gregset.
2992 (fill_fpregset): Rename `regno' to `regnum'.
2993 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2994 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2995 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2996 `fpregset_t'. Call amd64_supply_native_gregset instead of
2997 supply_gregset. Call x86_64_supply_fxsave instead of
2998 supply_fpregset.
2999 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3000 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3001 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3002 `fpregset_t'. Call amd64_collect_native_gregset instead of
3003 fill_gregset. Call x86_64_collect_fxsave instead of
3004 fill_fpregset.
3005 (_initialize_am64fbsd_nat): Initialize
3006 amd64_native_gregset32_reg_offset and
3007 amd64_native_gregset64_reg_offset.
3008 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3009
3010 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3011 null pointer. Fix typo in comment.
3012
3013 * regcache.c (supply_register): Reimplement to call
3014 regcache_raw_supply.
3015 (regcache_collect): Reimplement by calling regcache_raw_collect.
3016
3017 2003-08-28 Mark Kettenis <kettenis@gnu.org>
3018
3019 * regcache.c (register_buffer): Consitify first argument.
3020 (regcache_raw_supply, regcache_raw_collect): New
3021 functions.
3022
3023 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3024
3025 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3026 by Nathan J. Williams.
3027
3028 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3029
3030 * lin-lwp.c (wait_lwp): New function, copied from
3031 stop_wait_callback. Clean up.
3032 (stop_wait_callback): Use wait_lwp.
3033
3034 2003-08-28 Andrew Cagney <cagney@redhat.com>
3035
3036 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3037 flavour and disassembler options.
3038 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3039 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3040 deprecated_tm_print_insn_info.
3041
3042 2003-08-27 Andrew Cagney <cagney@redhat.com>
3043
3044 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3045 Use target_read_memory.
3046 (s390_get_frame_info): Update. Do not reference
3047 deprecated_tm_print_insn_info.
3048 (s390_check_function_end, s390_is_sigreturn): Ditto.
3049
3050 2003-08-27 Andrew Cagney <cagney@redhat.com>
3051
3052 * Makefile.in (cris-tdep.o): Update dependencies.
3053 * cris-tdep.c: Include "gdb_assert.h".
3054 (cris_gdbarch_init): Set print_insn.
3055 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3056 (cris_delayed_get_disassembler): Simplify, directly call the
3057 disassembler returned by cris_get_disassembler.
3058 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3059 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3060 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3061 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3062 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3063 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3064 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3065 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3066 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3067 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3068 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3069 (gdb_print_insn_sparc): Delete function.
3070 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3071 deprecated_tm_print_insn_info.
3072 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3073 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3074 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3075 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3076 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3077 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3078 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3079 (s390_gdbarch_init): Set print_insn.
3080
3081 2003-08-27 Andrew Cagney <cagney@redhat.com>
3082
3083 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3084 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3085 * infcall.c (call_function_by_hand): Convert the entry point
3086 address into a code address.
3087
3088 2003-08-27 Andrew Cagney <cagney@redhat.com>
3089
3090 * dsrec.c: Include "gdb_string.h".
3091 * Makefile.in (dsrec.o): Update dependencies.
3092
3093 2003-08-27 Michael Chastain <mec@shout.net>
3094
3095 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3096
3097 2003-08-27 Andrew Cagney <cagney@redhat.com>
3098
3099 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3100 (alpha_osf1_init_abi): Do not set call_dummy_address.
3101
3102 2003-08-27 David Carlton <carlton@kealia.com>
3103
3104 From Randolph Chung <tausq@debian.org>:
3105 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3106 compiles with -Wformat-nonliteral -Werror.
3107
3108 2003-08-26 Jim Blandy <jimb@redhat.com>
3109
3110 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3111 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3112 bfd_lookup_symbol, since we only want symbols in code sections.
3113 (look_for_base): Pass zero as the SECT_FLAGS argument to
3114 bfd_lookup_symbol, since we're not concerned about which section
3115 the symbol is in.
3116
3117 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3118
3119 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3120 we are frameless or the return address register is already known.
3121
3122 2003-08-26 Andrew Cagney <cagney@redhat.com>
3123
3124 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3125 in size. Add comments.
3126
3127 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3128
3129 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3130 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3131
3132 2003-08-26 Jason Merrill <jason@redhat.com>
3133
3134 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3135 case out of #ifdef MIPS block.
3136
3137 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
3138
3139 PR java/1322
3140 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3141 available before calling SECT_OFF_TEXT.
3142 * PROBLEMS: Remove description of java/1322.
3143
3144 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3145
3146 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3147 bof, and nat0-nat127 as pseudo-registers.
3148 (ia64_frame_cache): New struct used to cache frame info.
3149 (ia64_register_reggroup_p): New routine used to override default
3150 register grouping so registers without names are still saved and
3151 restored.
3152 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3153 pseudo values.
3154 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3155 (ia64_pseudo_register_write): New routine to write pseudo-registers.
3156 (ia64_alloc_frame_cache): New routine to create a new
3157 ia64_frame_cache.
3158 (examine_prologue): Change prototype to add next_frame pointer.
3159 Assume frameless until otherwise proven. Verify that the cfm for
3160 current frame matches the cfm that should occur for the prologues
3161 alloc insn and if equal, mark as not frameless. At end of routine,
3162 if not frameless, calculate registers for the previous frame and store
3163 in the cache, if a cache is provided.
3164 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3165 and pass 0 for next_frame.
3166 (ia64_store_return_value): Change to use convert_typed_floating()
3167 instead of calling ia64_convert_to_raw().
3168 (ia64_extract_return_value): Change to use convert_typed_floating()
3169 instead of calling ia64_convert_to_virtual().
3170 (ia64_frame_cache): New routine to support new frame model.
3171 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3172 (ia64_frame_sniffer): Ditto.
3173 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3174 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3175 (ia64_sigtramp_frame_prev_register): Ditto.
3176 (ia64_sigtramp_frame_sniffer): Ditto.
3177 (ia64_frame_base_address): Ditto.
3178 (ia64_extract_struct_value_address): Change to issue error message.
3179 (ia64_frame_align): New routine to align sp.
3180 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3181 (ia64_push_arguments): Removed. Logic moved to
3182 ia64_push_dummy_call().
3183 (ia64_push_return_address): Ditto.
3184 (ia64_unwind_dummy_id): New function.
3185 (ia64_unwind_pc): Ditto.
3186 (ia64_convert_register_p): Ditto.
3187 (ia64_register_to_value): Ditto.
3188 (ia64_value_to_register): Ditto.
3189 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3190 (ia64_register_byte, ia64_register_raw_size): Ditto.
3191 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3192 (ia64_saved_pc_after_call): Ditto.
3193 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3194 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3195 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3196 (ia64_register_convert_to_raw): Ditto.
3197 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3198 (ia64_init_extra_frame_info): Ditto.
3199 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3200 (ia64_gdbarch_init): Remove registering of deprecated functions that
3201 are no longer used. Add registration of new gdbarch functions.
3202 Remove registering deprecated_write_sp. Replace
3203 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3204 Delete set_gdbarch_deprecated_register_convertible(),
3205 set_gdbarch_deprecated_register_convert_to_virtual(), and
3206 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3207 set_gdbarch_deprecated_register_size(),
3208 set_gdbarch_deprecated_register_bytes(),
3209 set_gdbarch_pcregnum(),
3210 set_gdbarch_deprecated_register_byte(),
3211 set_gdbarch_deprecated_register_raw_size(),
3212 set_gdbarch_deprecated_max_register_raw_size(),
3213 set_gdbarch_deprecated_register_virtual_size(),
3214 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3215 Replace set_gdbarch_deprecated_extract_return_value() with
3216 set_gdbarch_extract_return_value(). Remove calls to:
3217 set_gdbarch_deprecated_saved_pc_after_call();
3218 set_gdbarch_deprecated_frame_chain(),
3219 set_gdbarch_deprecated_frame_saved_pc(),
3220 set_gdbarch_deprecated_frame_init_saved_regs(),
3221 set_gdbarch_deprecated_get_saved_register(),
3222 set_gdbarch_deprecated_call_dummy_words(),
3223 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3224 set_gdbarch_deprecated_init_extra_frame_info(),
3225 set_gdbarch_deprecated_frame_args_address(),
3226 set_gdbarch_deprecated_frame_locals_address(),
3227 and set_gdbarch_deprecated_dummy_write_sp().
3228 Add set_gdbarch_convert_register_p(),
3229 set_gdbarch_register_to_value(),
3230 set_gdbarch_value_to_register(),
3231 set_gdbarch_push_dummy_call(),
3232 set_gdbarch_frame_align(),
3233 set_gdbarch_unwind_dummy_id(),
3234 set_gdbarch_unwind_pc(),
3235 frame_unwind_append_sniffer(),
3236 frame_unwind_append_sniffer(),
3237 and frame_base_set_default().
3238
3239 2003-08-25 Chris Demetriou <cgd@broadcom.com>
3240
3241 * configure.tgt: Document need for special "mipsisa64" handling.
3242 (mipsisa64*-*-linux64): Handle as target linux64.
3243 (mipsisa64*-*-*): Handle as target embed64.
3244
3245 2003-08-18 Michael Chastain <mec@shout.net>
3246
3247 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3248 objfile bug.
3249
3250 2003-08-24 Mark Kettenis <kettenis@gnu.org>
3251
3252 * i387-tdep.h: Update copyright date.
3253 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3254
3255 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3256 CFLAGS games to reflect reality.
3257
3258 2003-08-24 Andrew Cagney <cagney@redhat.com>
3259
3260 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3261 GDB_MULTI_ARCH is always non-zero.
3262 * osabi.c (_initialize_gdb_osabi): Ditto.
3263 (gdbarch_init_osabi): Ditto.
3264 * sparc-tdep.c: Ditto for #if code.
3265
3266 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3267
3268 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3269 Update comments.
3270 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3271 comments.
3272 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3273 x86_64_supply_fxsave.
3274 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3275 x86_64_supply_fxsave.
3276 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3277 x86_64_supply_fxsave.
3278
3279 2003-08-23 Andreas Jaeger <aj@suse.de>
3280
3281 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3282 i387_supply_fxsave.
3283
3284 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3285
3286 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3287 i387_supply_register.
3288 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3289 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3290 i387_supply_fsave.
3291 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3292 i387_supply_fxsave.
3293 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3294 i387_supply_fsave.
3295 * i386bsd-nat.c (supply_fpregset): Adjust call to
3296 i387_supply_fsave.
3297 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3298 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3299 supply_fpregset.
3300 (store_inferior_registers): Remove extraneous whitespace. Call
3301 i387_fill_fsave instead of fill_fpregset.
3302 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3303 (supply_fpregset): Likewise.
3304 * i386v4-nat.c (supply_fpregset): Adjust call to
3305 i387_supply_fsave.
3306 * i386-interix-nat.c (supply_fpregset): Adjust call to
3307 i387_supply_fsave.
3308 * i386-linux-nat.c (supply_fpregset): Adjust call to
3309 i387_supply_fsave.
3310 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3311 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3312 i387supply_fsave and i387_supply_fxsave.
3313 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3314 Incorporate code from `i387_supply_register.
3315 (i387_supply_register): Remove.
3316 (i387_supply_fxsave): Add `regnum' argument.
3317 Update comments.
3318 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3319 prototype.
3320 (i387_supply_register): remove prototype.
3321 Update comments.
3322
3323 2003-08-22 Michael Chastain <mec@shout.net>
3324
3325 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3326 Add lines for files in gdb/testsuite/gdb.cp/* that are
3327 still not 8.3 unique.
3328
3329 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
3330
3331 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3332 TYPE_VPTR_FIELDNO is valid.
3333
3334 2003-08-19 Mark Kettenis <kettenis@gnu.org>
3335
3336 * utils.c (set_width_command): Remove prototypes.
3337 (set_screen_size): New prototype.
3338 (init_page_info): Simplify by fetching the screen size from
3339 Readline. Call set_screen_size.
3340 (set_screen_size): New function.
3341 (set_width): Add missing whitespace in comment.
3342 (set_width_command): Call set_screen_size.
3343 (set_height_command): New function.
3344 (initialize_utils): Fix formatting. Make "set height" command
3345 call set_height_command. Remove redundant code that turns off
3346 pagination if output isn't a terminal. Remove redundant call to
3347 set_width_command.
3348
3349 2003-08-22 Mark Kettenis <kettenis@gnu.org>
3350
3351 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3352 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3353 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3354 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3355 `case' keyword.
3356 (sparc64_register_info): Give the reister with number
3357 SPARC64_STATE_REGNUM a name.
3358 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3359 %asi and %ccr.
3360 (sparc64_push_dummy_call): Take BIAS into account when checking
3361 stcak alignment.
3362 (sparc_software_single_step): Remove assertions that check whether
3363 NPC and NNPC were zero.
3364 (sparc_supply_rwindow): Make public. Merge functionality with
3365 sparc64_supply_rwindow.
3366 (sparc_fill_rwindow): Make public. Merge functionality with
3367 sparc64_fill_rwindow.
3368 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3369 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3370 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3371 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3372 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3373
3374 * reggroups.c: Add whitespace after declarations of local
3375 variables in functions.
3376
3377 2003-08-21 Michael Chastain <mec@shout.net>
3378
3379 * gdbtypes.h: Change array bound type from an int to enum.
3380
3381 2003-08-21 Andrew Cagney <cagney@redhat.com>
3382
3383 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3384 * config/sparc/tm-sparc.h: Ditto.
3385 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3386 unconditionally.
3387 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3388
3389 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3390
3391 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3392 (register_objfile_data, set_objfile_data, objfile_data): New
3393 prototypes.
3394 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3395 prototypes.
3396 (allocate_objfile): Call objfile_alloc_data.
3397 (free_objfile): Call objfile_free_data.
3398 (struct objfile_data): New.
3399 (struct objfile_data_registration): New.
3400 (struct objfile_data_registry): New.
3401 (objfile_data_registry): New variable.
3402 (register_objfile_data): New function.
3403 (objfile_alloc_data, objfile_free_data): New functions.
3404 (set_objfile_data, objfile_data): New functions.
3405 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3406 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3407 (_initialize_dwarf2_frame): New function and prototype.
3408
3409 2003-08-21 Andrew Cagney <cagney@redhat.com>
3410
3411 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3412 a specific architecture.
3413 * arch-utils.h (set_architecture_from_arch_mach): Delete
3414 declaration.
3415 (target_architecture_hook): Delete declaration.
3416 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3417 (default_float_format): Assume GDB_MULTI_ARCH.
3418 (default_double_format): Assume GDB_MULTI_ARCH.
3419 (set_endian_from_file): Delete function.
3420 (arch_ok): Delete function.
3421 (set_arch): Delete function.
3422 (set_architecture_from_arch_mach): Delete function.
3423 (set_architecture_from_file): Delete function.
3424 (set_architecture): Assume GDB_MULTI_ARCH.
3425 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3426
3427 2003-08-21 Mark Kettenis <kettenis@gnu.org>
3428
3429 Rewrite FreeBSD/sparc64 native configuration.
3430 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3431 * sparc64fbsd-nat.c: New file.
3432 * sparc64fbsd-tdep.c: New file.
3433 * sparc64-tdep.c sparc64-tdep.h: New files.
3434 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3435 sparc64fbsd-tdep.o): New dependencies.
3436 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3437 and sparc64fbsd-tdep.c.
3438 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3439 * config/sparc/fbsd.mh: Remove copyright notice.
3440 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3441 sparcbsd-nat.o.
3442 * config/sparc/fbsd.mt: Remove copyright notice.
3443 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3444 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3445 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3446 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3447 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3448 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3449 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3450 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3451 "sparc/tm-sp64.h".
3452 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3453 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3454
3455 2003-08-21 Michael Chastain <mec@shout.net>
3456
3457 * symtab.h: Add doco on the space critical structures and
3458 some measurements of space usage.
3459
3460 2003-08-21 Michael Snyder <msnyder@redhat.com>
3461
3462 * tracepoint.c (trace_dump_command): Trace break address
3463 is subject to DECR_PC_AFTER_BREAK.
3464 (set_traceframe_context): Make "trace_line" an int.
3465 Fixes suggested by Mark Newman <mark.newman@lmco.com>
3466
3467 2003-08-20 Michael Snyder <msnyder@redhat.com>
3468
3469 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
3470 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3471 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
3472 argument passing.
3473 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
3474 functions, replace sh_push_dummy_call.
3475 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3476
3477 2003-08-20 Michael Chastain <mec@shout.net>
3478
3479 * gdbtypes.h (struct main_type): Rearrange to save space.
3480
3481 2003-08-20 Michael Snyder <msnyder@redhat.com>
3482
3483 * trad-frame.c: Comment typo fix.
3484
3485 2003-08-20 Michael Snyder <msnyder@redhat.com>
3486 Kevin Buettner <kevinb@redhat.com>
3487
3488 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3489 (frv_frame_init_saved_regs): Add declaration.
3490 (frame_extra_info): Add new field ``saved_regs''.
3491 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3492 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3493 Update frame related code.
3494 (frv_extract_struct_value_address): Adjust formatting.
3495 * Makefile.in (frv-tdep.o): Update dependencies.
3496 * config/frv/tm-frv.h (target_insert_watchpoint)
3497 (target_remove_watchpoint, target_insert_hw_breakpoint)
3498 (target_remove_hw_breakpoint): Delete these macros.
3499 (remote_insert_watchpoint, remote_remove_watchpoint)
3500 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3501 these declarations.
3502
3503 2003-08-20 Michael Chastain <mec@shout.net>
3504
3505 * defs.h (ENUM_BITFIELD): New macro.
3506 * symtab.h (ENUM_BITFIELD): Use it.
3507 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3508
3509 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3510
3511 * MAINTAINERS (write after approval): Add myself.
3512
3513 2003-08-18 Andrew Cagney <cagney@redhat.com>
3514
3515 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3516 * gdbarch.h, gdbarch.c: Re-generate.
3517 * infcall.c (call_function_by_hand): Adjust the SP by
3518 frame_red_zone_size before allocating any stack space.
3519 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3520 * x86-64-tdep.c (x86_64_frame_align): New function.
3521 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3522
3523 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3524 Remove code adjusting SP so that it skips over the Red Zone.
3525
3526 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3527
3528 * NEWS (New native configurations): Mention FreeBSD/amd64.
3529
3530 2003-08-18 Andrew Cagney <cagney@redhat.com>
3531
3532 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3533 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3534 "m68k_frame_p".
3535 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3536
3537 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3538
3539 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3540
3541 2003-08-18 Michal Ludvig <mludvig@suse.cz>
3542
3543 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3544 Define.
3545 * i386-linux-nat.c: Include "linux-nat.h".
3546 (child_post_startup_inferior): New function.
3547
3548 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3549
3550 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3551 at the start of a frameless function. This probably fixes PR
3552 backtrace/1338.
3553
3554 2003-08-17 Michael Chastain <mec@shout.net>
3555
3556 * symfile.c (find_sym_fns): Remove special case for apollo target.
3557
3558 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3559
3560 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3561 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3562 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3563 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3564 (linux_supports_tracevforkdone): New function.
3565 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3566 TRACEVFORKDONE.
3567 (child_follow_fork): Handle vfork.
3568 (linux_handle_extended_wait): Likewise. Also handle exec.
3569 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3570 * NEWS: Mention fork tracing.
3571
3572 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3573
3574 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3575
3576 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3577
3578 * Makefile.in (i386-linux-nat.o): Update dependencies.
3579 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3580 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3581 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3582 * i386-linux-nat.c: Include "linux-nat.h".
3583 (child_post_startup_inferior): New function.
3584 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3585 * infptrace.c (kill_inferior): Wrap in #ifdef.
3586 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3587 attaching to each LWP.
3588 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3589 (init_lin_lwp_ops): Fill in some more operations.
3590 * linux-nat.h (linux_enable_event_reporting)
3591 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3592 prototypes.
3593 * linux-nat.c (linux_enable_event_reporting): New function.
3594 (child_post_attach, linux_child_post_startup_inferior)
3595 (child_post_startup_inferior, child_follow_fork)
3596 (linux_handle_extended_wait, kill_inferior): New functions.
3597
3598 2003-08-16 Andrew Cagney <cagney@redhat.com>
3599
3600 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3601 * gdbarch.h, gdbarch.c: Re-generate.
3602
3603 2003-08-16 Mark Kettenis <kettenis@gnu.org>
3604
3605 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3606
3607 2003-08-16 Andrew Cagney <cagney@redhat.com>
3608
3609 * NEWS: Mention that "set prompt-escape-char" was deleted.
3610 * top.c (get_prompt_1): Delete function.
3611 (gdb_prompt_escape):
3612 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3613 prompt-escape-char" command.
3614 (MAX_PROMPT_SIZE): Delete macro.
3615 (get_prompt): Simplify, do not call get_prompt_1.
3616
3617 2003-08-16 Andrew Cagney <cagney@redhat.com>
3618
3619 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3620 -Werror. -Wformat-nonliteral problems.
3621
3622 2003-08-15 J. Brobecker <brobecker@gnat.com>
3623
3624 Further multiarching work mostly for hppa64-*-hpux11:
3625 * hppa-tdep.h: New file.
3626 * hppa-tdep.c: #include hppa-tdep.c.
3627 (hppa32_num_regs): Renamed from hppa_num_regs.
3628 (hppa64_num_regs): New constant.
3629 (hppa64_call_dummy_breakpoint_offset): New constant.
3630 (hppa32_call_dummy_length): New constant.
3631 (hppa64_call_dummy_length): New constant.
3632 (hppa32_stack_align): Make name 32bit explicit.
3633 (hppa32_register_virtual_type): Likewise.
3634 (hppa32_extract_return_value): Likewise.
3635 (hppa32_use_struct_convention): Likewise.
3636 (hppa32_store_return_value): Likewise.
3637 (hppa64_register_virtual_type): New function.
3638 (hppa64_extract_return_value): New function.
3639 (hppa64_use_struct_convention): New function.
3640 (hppa64_store_return_value): New function.
3641 (hppa_frame_locals_address): Remove declaration, function does
3642 not exist anymore.
3643 (hppa_register_byte): Add support for PA64 ABI.
3644 (hppa_gdbarch_init): Add support for PA64 ABI.
3645 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3646 Make name 32bit explicit.
3647 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3648 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3649 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3650 (hppa64_hpux_frame_base_before_sigtramp): New function.
3651 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3652 * config/pa/tm-hppa64.h: Remove macros that are no longer
3653 necessary now that the gdbarch vector is properly setup.
3654 Transform some macros into function calls. Some minor cleanup.
3655 * config/pa/tm-hppah.h: Update function calls in macros
3656 following the function renaming in hppa-hpux-tdep.c.
3657 * Makefile.in (hppa_tdep_h): New variable.
3658 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3659
3660 2003-08-14 Michael Snyder <msnyder@redhat.com>
3661
3662 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3663
3664 2003-08-13 J. Brobecker <brobecker@gnat.com>
3665
3666 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3667 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3668 routine.
3669
3670 2003-08-13 Michael Snyder <msnyder@redhat.com>
3671
3672 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3673 (frv_saved_pc_after_call): Use deprecated ftype.
3674 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3675 (frv_remote_translate_xfer_address): Remove.
3676 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3677
3678 2003-08-13 J. Brobecker <brobecker@gnat.com>
3679
3680 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3681 initialization after the common gdbarch initialization, not before.
3682
3683 2003-08-13 J. Brobecker <brobecker@gnat.com>
3684
3685 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3686 (ADDR_BITS_REMOVE): Remove, redundant.
3687
3688 2003-08-13 J. Brobecker <brobecker@gnat.com>
3689
3690 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3691 gdbarch method to clear the 2 low bits of text addresses.
3692
3693 2003-08-12 Andrew Cagney <cagney@redhat.com>
3694
3695 * Makefile.in (dsrec.o): Update dependencies.
3696 * dsrec.c: Include "gdb_assert.h".
3697 (make_srec): Use snprintf instead of sprintf, use a literal format
3698 string.
3699
3700 2003-08-12 Andrew Cagney <cagney@redhat.com>
3701
3702 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3703 FRAME_OBSTACK_ZALLOC.
3704
3705 2003-08-12 Kevin Buettner <kevinb@redhat.com>
3706
3707 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3708 SSE registers.
3709
3710 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3711
3712 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3713 amd64fbsd_sc_reg_offset): Add extern declarations.
3714 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3715 declarations.
3716
3717 2003-08-11 Ben Elliston <bje@wasabisystems.com>
3718
3719 * MAINTAINERS (write after approval): Update my mail address.
3720
3721 2003-08-10 Andrew Cagney <cagney@redhat.com>
3722
3723 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3724
3725 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3726
3727 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3728 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3729 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3730 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3731 i386bsd_sc_reg_offset): Add extern declarations.
3732 * i386obsd-nat.c: Include "i386-tdep.h"
3733 (_initialize_i386obsd_nat): Remove extern declarations.
3734 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3735 declarations.
3736 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3737 declarations.
3738
3739 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3740 instead of frame_read_register.
3741 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3742 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3743 SP_REGNUM.
3744 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3745 instead of frame_unwind_unsigned_register. Use
3746 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3747 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3748 instead of read_register. Use builtin_type_void_data_ptr instead
3749 of builtin_type_void_func_ptr when extracting the address of the
3750 jmp_buf.
3751 (i386_extract_return_value, i386_store_return_value,
3752 i386_pseudo_register_read, i386_pseudo_register_write): Use
3753 register_size instead REGISTER_RAW_SIZE.
3754
3755 2003-08-10 Andrew Cagney <cagney@redhat.com>
3756
3757 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3758 sprintf. Make "name" constant.
3759
3760 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3761
3762 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3763 instead of frame_read_register.
3764 (i387_print_float_info): Use get_frame_register and
3765 get_frame_register_unsigned instead of frame_register_read.
3766
3767 * i386fbsd-nat.c: Include "i386-tdep.h".
3768 (child_resume): Make `eflags' an ULONGEST. Use
3769 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3770 instead of register_read and register_write.
3771
3772 * i386bsd-nat.c (fetch_inferior_registers,
3773 store_inferior_registers): Don't use && at the end of a line.
3774 (_initialize_i386bsd_nat): Fix typo.
3775
3776 * frame.c (_initialize_frame): Add missing backslash.
3777
3778 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3779 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3780 and supply_register instead of manipulating the register buffer
3781 directly.
3782
3783 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3784 * config/i386/nm-i386sol2.h
3785 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3786
3787 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3788 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3789 instructions that GCC likes to mingle into the prologue. Fixes
3790 gdb/1253 and gdb/1255.
3791
3792 2003-08-09 Andrew Cagney <cagney@redhat.com>
3793
3794 Fix GDB PR cli/926.
3795 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3796 * command.h (add_setshow_uinteger_cmd): Declare.
3797 * frame.c (set_backtrace_cmd): New function.
3798 (show_backtrace_cmd): New function.
3799 * frame.c (_initialize_frame): Replace "set/show
3800 backtrace-below-main" with "set/show backtrace past-main". Add
3801 command "set/show backtrace limit".
3802 (backtrace_past_main): Rename "backtrace_below_main".
3803 (backtrace_limit): New variable.
3804 (get_prev_frame): Update. Check the backtrace_limit.
3805
3806 2003-08-09 Andrew Cagney <cagney@redhat.com>
3807
3808 * defs.h (xstrprintf): Declare.
3809 * utils.c (xstrprintf): New function.
3810 * breakpoint.c (insert_breakpoints): Replace sprintf and
3811 non-literal format strings, with xstrprintf and cleanups.
3812 (delete_breakpoint,breakpoint_re_set): Ditto.
3813 (commands_command, insert_breakpoints): Ditto.
3814 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3815 (break_at_finish_command_1): Ditto.
3816
3817 2003-08-09 Andrew Cagney <cagney@redhat.com>
3818
3819 * MAINTAINERS (language support): List Adam Fedor as Objective C
3820 maintainer.
3821
3822 2003-08-08 J. Brobecker <brobecker@gnat.com>
3823
3824 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3825 are now multiarched.
3826
3827 2003-08-08 J. Brobecker <brobecker@gnat.com>
3828
3829 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3830 longer necessary now that hppa64 is partially multiarch'ed.
3831
3832 2003-08-08 Andrew Cagney <cagney@redhat.com>
3833
3834 * interps.c (interp_set): Check for a NULL "old_interp".
3835
3836 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3837
3838 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3839 (install-only): Support DESTDIR.
3840 (uninstall): Likewise.
3841 (install-gdbtk): Likewise.
3842
3843 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
3844
3845 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3846 contains something meaningful at all times.
3847
3848 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
3849
3850 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
3851
3852 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3853
3854 * MAINTAINERS (write after approval): Added self.
3855
3856 2003-08-07 Andrew Cagney <cagney@redhat.com>
3857
3858 * inferior.h (AT_SYMBOL): Define.
3859 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3860 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3861 * mips-tdep.c (mips_call_dummy_address): Delete function.
3862 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3863 set call_dummy_address.
3864
3865 2003-08-07 Andrew Cagney <cagney@redhat.com>
3866
3867 * language.c (op_error): Delete function.
3868 (binop_type_check): Delete function.
3869 * language.h (type_op_error, range_op_error): Delete macros.
3870 (op_error): Delete declaration.
3871
3872 2003-08-07 Andrew Cagney <cagney@redhat.com>
3873
3874 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3875
3876 2003-08-07 Michal Ludvig <mludvig@suse.cz>
3877
3878 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
3879 (x86_64_push_arguments): Skip the red zone.
3880
3881 2003-08-05 Andrew Cagney <cagney@redhat.com>
3882
3883 * reggroups.c (reggroup_next): Check for the final entry.
3884
3885 2003-08-04 Andrew Cagney <cagney@redhat.com>
3886
3887 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3888 * cli/cli-script.c (define_command): Call query directly, instead
3889 of passing it a buffer.
3890 * ocd.c (ocd_error): Pass error a constant format string.
3891 * remote-mips.c (mips_error): Use fputs_filtered.
3892
3893 * solib-svr4.c (_initialize_svr4_solib): Update
3894 register_gdbarch_data call.
3895 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3896
3897 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3898 (register_gdbarch_data): Delete "free" parameter. Update
3899 comments.
3900 * gdbarch.h, gdbarch.c: Re-generate.
3901 * reggroups.c (_initialize_reggroup): Update.
3902 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3903 * frame-base.c (_initialize_frame_base): Update.
3904 * frame-unwind.c (_initialize_frame_unwind): Update.
3905 * user-regs.c (_initialize_user_regs): Update.
3906 * remote.c (_initialize_remote): Update.
3907 * regcache.c (_initialize_regcache): Update.
3908
3909 * regcache.c (xfree_regcache_descr): Delete function.
3910 (_initialize_regcache): Update call to register_gdbarch_data.
3911 (init_regcache_descr, init_legacy_regcache_descr): Use
3912 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3913
3914 * remote.c (free_remote_state): Delete function.
3915 (_initialize_remote): Update register_gdbarch_data.
3916 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3917 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3918
3919 2003-08-04 Andrew Cagney <cagney@redhat.com>
3920
3921 * reggroups.c (struct reggroup_el): Define.
3922 (struct reggroups): Delete field "nr_group". Replace array
3923 "group" with a "first" to "last" linked list.
3924 (reggroups_init): Update. Allocate using gdbarch's obstack.
3925 (reggroups_free): Delete function.
3926 (add_group): Update. Add "el" parameter.
3927 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3928 (default_groups): Update.
3929 (reggroup_next): Replace reggroups.
3930 (reggroups_dump): Update.
3931 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3932 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3933 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3934
3935 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
3936
3937 * Makefile.in (tui-interp.o): Update dependencies.
3938
3939 2003-08-04 David Carlton <carlton@kealia.com>
3940
3941 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3942 to internal_error call.
3943 * source.c (forward_search_command): Add "%s" format argument.
3944 (reverse_search_command): Ditto.
3945 * top.c (quit_confirm): Ditto.
3946 * cli/cli-setshow.c (do_setshow_command): Ditto.
3947 * cp-valprint.c (cp_print_class_method): Replace
3948 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3949 (cp_print_class_member): Ditto.
3950 * event-top.c (command_line_handler): Ditto.
3951 * linux-proc.c (linux_info_proc_cmd): Ditto.
3952 * p-typeprint.c (pascal_type_print_base): Ditto.
3953 * p-valprint.c (pascal_object_print_class_method): Ditto.
3954 (pascal_object_print_class_member): Ditto.
3955 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3956 * remote.c (remote_cisco_section_offsets): Ditto.
3957 * top.c (command_line_input): Ditto.
3958 * utils.c (vwarning,error_stream,quit): Ditto.
3959 * valprint.c (print_floating,print_binary_chars)
3960 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3961
3962 2003-08-04 Andrew Cagney <cagney@redhat.com>
3963
3964 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3965
3966 2003-08-02 Andrew Cagney <cagney@redhat.com>
3967
3968 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3969 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3970 amd64fbsd-nat.c.
3971
3972 2003-08-02 Andrew Cagney <cagney@redhat.com>
3973
3974 * Makefile.in: Update all dependencies and definitions.
3975
3976 2003-08-02 Adam Fedor <fedor@gnu.org>
3977
3978 * linespec.c (is_objc_method_format): New function
3979 (decode_line_1, locate_first_half): Use it.
3980 Fixes PR objc/1298
3981
3982 2003-08-01 Andrew Cagney <cagney@redhat.com>
3983
3984 * NEWS: Mention that m32r is multi-arch.
3985 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3986 * configure.tgt: Recognize m32r-*-*.
3987 * config/m32r/tm-m32r.h: Delete file.
3988 * config/m32r/m32r.mt: New file.
3989 * m32r-rom.c (m32r_upload_command): Use hostent only when
3990 gethostname succeeds, in order to avoid a compilation
3991 warning.
3992 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3993 compiler warning.
3994
3995 2003-08-01 Michael Snyder <msnyder@redhat.com>
3996
3997 * sh-tdep.c (sh_frame_align): New gdbarch method.
3998 (sh_gdbarch_init): Set up frame_align method.
3999
4000 2003-07-31 Michael Snyder <msnyder@redhat.com>
4001
4002 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4003 which is already covered by the new frames infrastructure.
4004
4005 2003-07-31 Andrew Cagney <cagney@redhat.com>
4006
4007 * user-regs.c (struct user_reg): Add "next" link.
4008 (struct user_regs): Replace "user" with "first" and "last" links.
4009 (append_user_reg): Add pre-allocated "reg" parameter.
4010 (builtin_user_regs): Provide initial value for "last".
4011 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4012 (user_regs_init): Allocate memory from the gdbarch obstack.
4013 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4014 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4015 linked list.
4016 (usernum_to_user_reg): New function.
4017 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4018 (value_of_user_reg): Use usernum_to_user_reg.
4019 (user_regs_free): Delete function.
4020 (_initialize_user_regs): Update register_gdbarch_data call.
4021
4022 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
4023
4024 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4025
4026 2003-07-30 Michael Snyder <msnyder@redhat.com>
4027
4028 * value.h (value_being_returned): Add a struct_addr argument.
4029 * infcall.c (call_function_by_hand): Pass struct_addr to
4030 value_being_returned.
4031 * infcmd.c (print_return_value): Pass zero as struct_addr.
4032 * values.c (value_being_returned): If struct_addr is passed,
4033 use it instead of trying to recover it from the inferior.
4034
4035 2003-07-30 Kevin Buettner <kevinb@redhat.com>
4036
4037 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4038 the prologue analyzer won't need to attempt to extract the pc
4039 value from the woefully incomplete dummy frame.
4040 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4041 possible. Disable code which modifies the frame.
4042
4043 2003-07-28 Andrew Cagney <cagney@redhat.com>
4044
4045 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4046 to level 2.
4047 (annotate_breakpoints_table, annotate_record): Ditto.
4048 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4049 (annotate_field_name_end, annotate_field_value): Ditto.
4050 (annotate_field_end, annotate_frame_source_begin): Ditto.
4051 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4052 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4053 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4054 (annotate_frame_address_end, annotate_frame_address): Ditto.
4055 (annotate_frame_args, annotate_frame_end): Ditto.
4056 (annotate_frame_where, annotate_arg_begin): Ditto.
4057 (annotate_arg_name_end, annotate_arg_value): Ditto.
4058 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4059 (annotate_function_call, annotate_signal_name): Ditto.
4060 (annotate_signal_string, annotate_signal_name_end): Ditto.
4061 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4062 (annotate_value_begin, annotate_value_history_value): Ditto.
4063 (annotate_value_history_end, annotate_value_end): Ditto.
4064 (annotate_display_begin, annotate_display_number_end): Ditto.
4065 (annotate_display_format, annotate_display_expression): Ditto.
4066 (annotate_display_expression_end, annotate_display_value): Ditto.
4067 (annotate_display_end, annotate_array_section_begin): Ditto.
4068 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4069 (annotate_elt, annotate_array_section_end): Ditto.
4070
4071 2003-07-28 Andrew Cagney <cagney@redhat.com>
4072
4073 * regcache.c (struct regcache_descr): Update comments on
4074 nr_raw_registers.
4075 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4076 sizeof_raw_register_valid_p.
4077 (init_regcache_descr): Set nr_raw_registers and
4078 sizeof_raw_register_valid_p before calling
4079 init_legacy_regcache_descr.
4080
4081 2003-07-28 Andrew Cagney <cagney@redhat.com>
4082
4083 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4084 MOD NUM_REGS.
4085
4086 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
4087
4088 * thread.c (info_threads_command): Use get_selected_frame ().
4089 Check that there is at least one non-sentinel frame.
4090
4091 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4092
4093 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4094 (m68hc11_pop_frame): Remove.
4095 (m68hc11_frame_saved_pc): Remove.
4096 (m68hc11_frame_chain): Remove.
4097 (m68hc11_frame_init_saved_regs): Remove.
4098 (m68hc11_init_extra_frame_info): Remove.
4099 (m68hc11_store_struct_return): Remove.
4100 (m68hc11_saved_pc_after_call): Remove.
4101
4102 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4103
4104 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4105 frame unwind information.
4106 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4107 and adapted for frame unwinding.
4108 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4109 (m68hc11_unwind_pc): New function.
4110 (m68hc11_frame_unwind_cache): New function to analyze frames.
4111 (m68hc11_frame_this_id): New function to create new frame struct.
4112 (m68hc11_frame_prev_register): New function to unwind a register from
4113 the frame.
4114 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4115 (m68hc11_frame_p): New function for the above.
4116 (m68hc11_frame_base_address): New function to return fp of frame.
4117 (m68hc11_frame_args_address): Update for frame.
4118 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4119 (m68hc11_unwind_sp): New function.
4120 (m68hc11_unwind_dummy_id): New function.
4121 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4122 calls.
4123
4124 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4125
4126 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4127 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4128 when we are beyond the current pc.
4129
4130 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4131
4132 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4133 from m68hc11_push_arguments.
4134 (m68hc11_push_arguments): Remove.
4135 (m68hc11_push_return_address): Remove.
4136 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4137 handlers; remove deprecated_extra_stack_alignment_needed.
4138
4139 2003-07-27 Andrew Cagney <cagney@redhat.com>
4140
4141 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4142 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4143 REAL_PC and not the pointer.
4144 * hppa-hpux-tdep.c: Include frame.h
4145
4146 2003-07-27 Andrew Cagney <cagney@redhat.com>
4147
4148 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4149 GDB_MULTI_ACH_PARTIAL.
4150
4151 2003-07-27 Andrew Cagney <cagney@redhat.com>
4152
4153 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4154 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4155 operator at start and not end of line.
4156 (decode_prologue): Ditto.
4157 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4158 frame_unwind_register_unsigned instead of
4159 frame_unwind_unsigned_register.
4160 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4161 read_register.
4162 (m32r_push_dummy_call): Use register_size instead of
4163 REGISTER_RAW_SIZE.
4164 (m32r_frame_sniffer): Replace m32r_frame_p.
4165 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4166 * m32r-rom.c (report_transfer_performance): Delete extern
4167 declaration.
4168 (m32r_load, m32r_upload_command): Use print_transfer_performance
4169 instead of report_transfer_performance.
4170 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4171 / add_show_from_set.
4172
4173 2003-07-26 Andrew Cagney <cagney@redhat.com>
4174
4175 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4176 store_return_value and extract_struct_value_address.
4177
4178 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
4179
4180 PR c++/1267
4181 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4182 NULL, default to the section containing PC.
4183
4184 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4185
4186 * NEWS: Mention "regs" deprecated for m68hc11 too.
4187
4188 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4189 (m68hc11_print_register): New function to print out one register.
4190 (m68hc11_print_registers_info): New function to print registers.
4191 (show_regs): Deprecate and use the above.
4192 (m68hc11_gdbarch_init): Install the print_registers_info.
4193
4194 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4195
4196 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4197 that we have a SIGTRAP before returning non-zero.
4198
4199 2003-07-23 Michal Ludvig <mludvig@suse.cz>
4200 Elena Zannoni <ezannoni@redhat.com>
4201
4202 * linespec.c (decode_line_2): Avoid crash if
4203 find_function_start_sal() returns empty record.
4204
4205 2003-07-23 Andreas Schwab <schwab@suse.de>
4206
4207 * ia64-tdep.c (ia64_print_insn): New function.
4208 (ia64_gdbarch_init): Set print_insn to it.
4209 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4210 deprecated_tm_print_insn_info.
4211
4212 2003-07-22 Michael Snyder <msnyder@redhat.com>
4213
4214 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4215 handle 8-bit returns (long long).
4216 (h8300h_extract_return_value): Ditto.
4217 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4218
4219 2003-07-22 Andrew Cagney <cagney@redhat.com>
4220
4221 * gdbarch.c Include "gdb_obstack.h".
4222 (struct gdbarch): Add an "obstack".
4223 (alloc_gdbarch_data): Allocate the gdbarch data using
4224 GDBARCH_OBSTACK_CALLOC.
4225 (free_gdbarch_data): Delete function.
4226 (gdbarch_obstack_zalloc): New function.
4227 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4228 Assert that the architecture is not initialized.
4229 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4230 vector from the obstack.
4231 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4232 architecture obstack.
4233 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4234 (set_gdbarch_data): Assert that the data is not initialized.
4235 (struct gdbarch_data): Delete member "free".
4236 (register_gdbarch_data): Do not initialize "free".
4237 * gdbarch.h, gdbarch.c: Re-generate.
4238
4239 2003-07-22 Andrew Cagney <cagney@redhat.com>
4240
4241 * configure.in (build_warnings): Add -Wformat-nonliteral.
4242 * configure: Re-generate.
4243
4244 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4245
4246 * dwarf2loc.c (locexpr_describe_location): Fix typos.
4247
4248 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4249
4250 * findvar.c (read_var_value): Remove case for thread local storage
4251 variables. It is now entirely handled by the dwarf2 location
4252 expression code.
4253 * printcmd.c (address_info): Ditto.
4254 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4255 enumeration value.
4256 (struct symbol): Remove objfile field, which was used by
4257 LOC_THREAD_LOCAL_STATIC only.
4258 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4259 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4260 usage of objfile pointer.
4261 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4262 thread local variables.
4263 Add include of objfiles.h.
4264 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4265 storage variables.
4266 * Makefile.in (dwarf2loc.o): Update dependencies.
4267
4268 2003-07-22 Andrew Cagney <cagney@redhat.com>
4269
4270 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4271 get_frame_base.
4272 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4273 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4274 (struct value): Add opaque declaration.
4275 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4276
4277 2003-07-21 Andrew Cagney <cagney@redhat.com>
4278
4279 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4280 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4281
4282 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4283
4284 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4285 regcache_cooked_read_unsigned instead of read_register.
4286 (m68hc11_saved_pc_after_call): Likewise.
4287 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4288 instead of write_register.
4289 (m68hc11_register_type): New function.
4290 (m68hc11_register_virtual_type): Remove.
4291 (m68hc11_store_return_value): Convert to use the regcache.
4292 (m68hc11_extract_struct_value_address): Likewise.
4293 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4294 m68hc11_register_type; undeprecate store_return_value and
4295 extract_struct_value_address.
4296
4297 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4298
4299 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4300 and translate to use regcache.
4301 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4302
4303 2003-07-18 Andrew Cagney <cagney@redhat.com>
4304
4305 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4306 * gdbarch.h, gdbarch.c: Re-generate.
4307 * i386-tdep.c (i386_gdbarch_init): Do not set
4308 DWARF2_BUILD_FRAME_INFO.
4309 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4310 unconditionally.
4311 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4312 DWARF2_BUILD_FRAME_INFO.
4313
4314 2003-07-18 Andrew Cagney <cagney@redhat.com>
4315
4316 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4317 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4318
4319 2003-07-18 Andrew Cagney <cagney@redhat.com>
4320
4321 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4322 frame_unwind_address_in_block, instead of frame_pc_unwind.
4323 (dwarf2_frame_cache): Ditto.
4324
4325 2003-07-18 Andrew Cagney <cagney@redhat.com>
4326
4327 * user-regs.h (struct gdbarch): Declare opaque.
4328 * ui-out.h (struct ui_file): Declare opaque.
4329 * dwarf2-frame.h (struct frame_info): Declare opaque.
4330
4331 2003-07-18 Kris Warkentin <kewarken@qnx.com>
4332
4333 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4334 #include "...".
4335 (procfs_meminfo): Change strerror to safe_strerror.
4336 (procfs_can_run): Remove K&R badness.
4337
4338 2003-07-17 Michael Snyder <msnyder@redhat.com>
4339
4340 * remote-sim.c: Comment typo fix.
4341
4342 2003-07-17 Andrew Cagney <cagney@redhat.com>
4343
4344 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4345 configure.
4346 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4347 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4348 GDB_MULTI_ARCH_PARTIAL.
4349
4350 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
4351
4352 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4353 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4354 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4355
4356 2003-07-16 Theodore A. Roth <troth@openavr.org>
4357
4358 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4359 found.
4360 (avr_frame_unwind_cache): Don't unwind FP for main.
4361 Update a comment.
4362 Save the computed prev_sp.
4363 (avr_saved_regs_unwinder): Remove function.
4364 (avr_frame_prev_register): Use PC unwind logic from
4365 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4366
4367 2003-07-16 Andrew Cagney <cagney@redhat.com>
4368
4369 * frame-base.h (frame_base_p_ftype): Delete definition.
4370 (frame_base_append_predicate): Delete declaration.
4371 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4372 (frame_unwind_append_predicate): Delete declaration.
4373 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4374 (append_predicate): Delete parameter "p".
4375 (frame_unwind_append_predicate): Delete function.
4376 (frame_unwind_append_sniffer): Update call to append_predicate.
4377 (frame_unwind_free): Delete function.
4378 (_initialize_frame_unwind): Pass NULL as "free" to
4379 register_gdbarch_data.
4380 (frame_unwind_init): Append the dummy_frame_sniffer.
4381 (frame_unwind_find_by_frame): Simplify.
4382 * frame-base.c (struct frame_base_table): Delete field "p".
4383 (append_predicate): Delete parameter "p".
4384 (frame_base_append_predicate): Delete function.
4385 (frame_base_append_sniffer): Update call to append_predicate.
4386 (frame_base_free): Delete function.
4387 (frame_base_find_by_frame): Simplify.
4388 (_initialize_frame_base): Pass NULL as "free" to
4389 register_gdbarch_data.
4390 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4391 (x86_64_sigtramp_frame_sniffer): Replace
4392 "x86_64_sigtramp_frame_p".
4393 (x86_64_init_abi): Set the frame unwind sniffers.
4394 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4395 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4396 (m68k_gdbarch_init): Set the frame unwind sniffers.
4397 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4398 "i386_sigtramp_frame_p".
4399 (i386_frame_sniffer): Replace "i386_frame_p".
4400 (i386_gdbarch_init): Set the frame unwind sniffers.
4401 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4402 (avr_gdbarch_init): Set the frame unwind sniffers.
4403 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4404 "alpha_sigtramp_frame_p"
4405 (alpha_heuristic_frame_sniffer): Replace
4406 "alpha_heuristic_frame_p".
4407 (alpha_gdbarch_init): Set the frame unwind sniffers.
4408 (alpha_dwarf2_init_abi): Ditto.
4409 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4410 "alpha_debug_frame_p".
4411 (alpha_mdebug_frame_base_sniffer): Replace
4412 "alpha_mdebug_frame_base_p".
4413 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4414 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4415 (d10v_gdbarch_init): Set the frame unwind sniffer.
4416 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4417 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4418 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4419 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4420 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4421 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4422
4423 2003-07-16 Michael Snyder <msnyder@redhat.com>
4424
4425 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4426 should go thru sh_dsp_register_sim_regno, else the dsp regs
4427 will not get the right values.
4428
4429 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4430
4431 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4432 deprecated_store_floating by call to store_typed_floating.
4433 (sh_sh4_register_convert_to_raw): Substitute call to
4434 deprecated_extract_floating by call to extract_typed_floating.
4435
4436 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4437
4438 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4439
4440 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4441
4442 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4443 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4444 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4445 as possible.
4446 (do_pseudo_register): Remove.
4447 (sh_push_dummy_code): New function.
4448 (sh64_store_struct_return): Rename from sh_store_struct_return.
4449 Only called for sh64 now.
4450 (sh_extract_struct_value_address): Regcache'ify.
4451 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4452 and accomodate new tasks.
4453 (sh64_push_return_address): Rename from sh_push_return_address.
4454 Only called for sh64 now.
4455 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4456 Regcache'ify.
4457 (sh3e_sh4_extract_return_value): Regcache'ify.
4458 (sh_default_store_return_value): Ditto.
4459 (sh3e_sh4_store_return_value): Ditto.
4460 (sh_default_register_byte): Remove.
4461 (sh_sh4_register_byte): Remove.
4462 (sh_default_register_raw_size): Remove.
4463 (sh_sh4_register_raw_size): Remove.
4464 (sh_register_virtual_size): Remove.
4465 (sh_sh3e_register_virtual_type): Remove.
4466 (sh_sh3e_register_type): New function.
4467 (sh_sh4_register_virtual_type): Remove.
4468 (sh_sh4_register_type): New function.
4469 (sh_default_register_virtual_type): Remove.
4470 (sh_default_register_type): New function.
4471 (do_fv_register_info): Add parameters to accomodate call from
4472 sh_print_registers_info.
4473 (do_dr_register_info): Ditto.
4474 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4475 Add parameters to accomodate call from sh_print_registers_info.
4476 (sh_do_fp_register): Ditto.
4477 (sh64_do_pseudo_register): Call do_dr_register_info,
4478 do_fv_register_info and sh_do_fp_register with default parameters.
4479 (sh_do_register): Add parameters to accomodate call from
4480 sh_print_registers_info.
4481 (sh_print_register): Ditto.
4482 (sh_print_registers_info): Rename from sh_do_registers_info.
4483 Add parameters to be used as gdbarch_print_registers_info
4484 implementation. Accomodate removed do_pseudo_register function
4485 pointer.
4486 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4487 function pointer. Call sh_print_register with default parameters.
4488 (sh64_do_registers_info): Call sh_print_registers_info instead of
4489 sh_do_registers_info.
4490 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4491 detection of deprecated vs. non-deprecated functionality.
4492 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4493 function pointer assignments by direct function calls.
4494
4495 2003-07-15 Andrew Cagney <cagney@redhat.com>
4496
4497 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4498 (frame_register_unwind, create_new_frame): Ditto.
4499 (legacy_get_prev_frame, get_frame_type): Ditto.
4500 (get_frame_base_address): Use frame_base_find_by_frame.
4501 (get_frame_locals_address): Use frame_base_find_by_frame.
4502 (get_frame_args_address): Use frame_base_find_by_frame.
4503 * frame-base.h (frame_base_sniffer_ftype): Declare.
4504 (frame_base_append_sniffer): Declare.
4505 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4506 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4507 (frame_base_append_sniffer): New function.
4508 (frame_base_append_predicate): Add a NULL sniffer.
4509 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4510 (struct frame_base_table): Add "sniffer".
4511 (frame_base_free): Free the "sniffer" table.
4512 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4513 (frame_unwind_append_sniffer): Declare.
4514 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4515 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4516 (struct frame_unwind_table): Add "sniffer", delete "middle".
4517 (append_predicate): Add "sniffer" parameter, append the sniffer.
4518 (frame_unwind_init): Update append_predicate call.
4519 (frame_unwind_append_sniffer): New function.
4520 (frame_unwind_append_predicate): Update append_predicate call.
4521 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4522
4523 2003-07-15 Andrew Cagney <cagney@redhat.com>
4524
4525 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4526 before code inhibiting repeated unwind attempts. Add to
4527 commentary on that test's problems.
4528 * blockframe.c (inside_main_func): Look for "main" in the minimal
4529 symbol table.
4530 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4531 identical.
4532
4533 2003-07-15 Andrew Cagney <cagney@redhat.com>
4534
4535 * complaints.c (struct explanation): Define.
4536 (struct complaints): Change type of "explanation" to "struct
4537 explanation".
4538 (symfile_explanations): Convert to a "struct explanation" table.
4539 (vcomplaint): Update.
4540
4541 2003-07-15 Michal Ludvig <mludvig@suse.cz>
4542
4543 * x86-64-linux-nat.c (regmap): Removed.
4544 (supply_gregset, fill_gregset): Call
4545 x86_64_linux_(fill,supply)_gregset functions.
4546 * x86-64-linux-tdep.c (USER_*): New defines.
4547 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4548 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4549 New functions.
4550 (fetch_core_registers): Ditto.
4551 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4552 * x86-64-linux-tdep.h: New file.
4553 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4554 and core-regset.o.
4555 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4556
4557 2003-07-13 Mark Kettenis <kettenis@gnu.org>
4558
4559 * x86-64-tdep.c (x86_64_store_return_value): Use
4560 regcache_cooked_write_part instead of regcache_cooked_write.
4561
4562 * configure.host: Add x86_64-*-freebsd*.
4563 * configure.tgt: Add x86_64-*-freebsd*.
4564 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4565 * amd64fbsd-nat.c: New file.
4566 * amd64fbsd-tdep.c: New file.
4567 * config/i386/nm-fbsd64.h: New file.
4568 * config/i386/fbsd64.mh: New file.
4569 * config/i386/fbsd64.mt: New file.
4570
4571 2003-07-11 Mark Kettenis <kettenis@gnu.org>
4572
4573 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4574 `sc_regs_offset' and `sc_fpregs_offset'.
4575 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4576 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4577 (alpha_sigtramp_register_address): Rewrite to use new members of
4578 `struct gdbarch_tdep'.
4579 (alpha_gdbarch_init): Initialize new members of struct
4580 gdbarch_tdep'.
4581 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4582 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4583 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4584 (alphafbsd_pc_in_sigtramp): Implement.
4585 (alphafbsd_sigtramp_offset): New function.
4586 (alphafbsd_sigcontext_addr): New function.
4587 (alphafbsd_init_abi): Initialize signal trampoline related members
4588 of `struct gdbarch_tdep'.
4589 (_initialize_alphafbsd_tdep): Add prototype.
4590
4591 2003-07-11 Theodore A. Roth <troth@openavr.org>
4592
4593 * Makefile.in (install-only): Quote sed expression when generating
4594 transformed_name.
4595
4596 2003-07-11 Richard Henderson <rth@redhat.com>
4597
4598 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4599 * dwarf2-frame.c: Include complaints.h.
4600 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4601 variable initialization; return NULL on error.
4602 (decode_frame_entry): New.
4603
4604 2003-07-11 Andrew Cagney <cagney@redhat.com>
4605
4606 * frame.h (frame_address_in_block): Delete declaration.
4607 * blockframe.c (frame_address_in_block): Delete function.
4608 (get_frame_block): Use get_frame_address_in_block.
4609 (block_innermost_frame): Ditto.
4610 * stack.c (print_frame, backtrace_command_1): Ditto.
4611
4612 * frame.h (get_frame_address_in_block): Declare.
4613 (frame_unwind_address_in_block): Declare.
4614 * frame.c (frame_unwind_address_in_block): New function.
4615 (get_frame_address_in_block): New function.
4616
4617 2003-07-10 Andrew Cagney <cagney@redhat.com>
4618
4619 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4620 pre-default. Note: re-generate has no effect.
4621
4622 2003-07-10 Andrew Cagney <cagney@redhat.com>
4623
4624 * gdbarch.sh: When a variable, but not a function, compare against
4625 0. Fix problem in previous patch.
4626 * gdbarch.c: Re-generate.
4627
4628 2003-07-10 Andrew Cagney <cagney@redhat.com>
4629
4630 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4631 functions against NULL, not 0.
4632 * gdbarch.c: Re-generate.
4633
4634 2003-07-10 Fred Fish <fnf@ninemoons.com>
4635
4636 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4637 null string instead of a null pointer.
4638 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4639
4640 2003-07-09 Michael Snyder <msnyder@redhat.com>
4641
4642 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4643
4644 2003-07-09 Mark Kettenis <kettenis@gnu.org>
4645
4646 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4647 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4648 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4649 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4650 * x86-64-tdep.c: ... from here.
4651
4652 2003-07-09 Andreas Schwab <schwab@suse.de>
4653
4654 * m68k-tdep.h (enum struct_return): Define.
4655 (struct gdbarch_tdep): Add struct_return.
4656 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4657 bytes are padded to the right, not to the left. Pass struct value
4658 address in register %a1, not on stack.
4659 (m68k_use_struct_convention): New function.
4660 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4661 struct_return in tdep to pcc_struct_return.
4662 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4663 reg_struct_return.
4664
4665 2003-07-09 Joel Brobecker <brobecker@gnat.com>
4666
4667 * somread.c (som_symfile_offsets): Fix compilation error.
4668
4669 2003-07-09 Andrew Cagney <cagney@redhat.com>
4670
4671 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4672 Add comments about the checks.
4673
4674 2003-07-08 Andrew Cagney <cagney@redhat.com>
4675
4676 * Makefile.in: Make dependency section headers consistent.
4677 (config_h): Move to $BUILD headers section.
4678 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4679 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4680 (ada-exp.tab.c): Move to YACC/LEX section.
4681 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4682 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4683
4684 2003-07-08 Kris Warkentin <kewarken@qnx.com>
4685
4686 * nto-procfs.c: Cleaned up a bunch of ARI hits.
4687 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4688 of strerror with safe_strerror, use ISO C function definitions,
4689 and replace instances of sprintf with snprintf.
4690
4691 2003-07-07 Andrew Cagney <cagney@redhat.com>
4692
4693 * frame.c (get_prev_frame): Enable check for identical frames.
4694 Update comments. Update error messages.
4695
4696 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4697
4698 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4699
4700 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4701
4702 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4703 sort_symtab_syms, no longer necessary.
4704
4705 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4706
4707 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4708
4709 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4710
4711 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4712 (mips_register_byte): Likewise.
4713
4714 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4715
4716 * Makefile.in (sparc_tdep_h): New.
4717 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4718 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4719 * sparc-linux-nat.c: Include "sparc-tdep.h".
4720 * sparc-nat.c: Likewise.
4721 * sparc-tdep.c: Likewise.
4722 * sparc64nbsd-nat.c: Likewise.
4723 * sparcnbsd-nat.c: Likewise.
4724 * sparcnbsd-tdep.c: Likewise.
4725 * sparc-tdep.h: New file.
4726 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4727 and sparc_npc_regnum.
4728
4729 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4730
4731 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4732 (mips_linux_cannot_store_register): List supported instead of
4733 unsupported registers.
4734
4735 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4736
4737 * disasm.c (dump_insns): Separate instructions from addresses.
4738
4739 2003-07-07 Andreas Schwab <schwab@suse.de>
4740
4741 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4742 dependencies.
4743 * m68k-tdep.c (NUM_FREGS): Delete.
4744 (SIG_PC_FP_OFFSET): Delete.
4745 (TARGET_M68K): Delete.
4746 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4747 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4748 P_MOVEL_SP, P_MOVEML_SP): Define.
4749 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4750 P_TRAP): Delete.
4751 (m68k_register_raw_size): Delete.
4752 (m68k_register_virtual_size): Delete.
4753 (m68k_register_type): Renamed from m68k_register_virtual_type and
4754 add gdbarch argument.
4755 (m68k_store_struct_return): Delete.
4756 (m68k_deprecated_extract_return_value): Delete.
4757 (m68k_deprecated_extract_struct_value_address): Delete.
4758 (m68k_frame_chain): Delete.
4759 (m68k_frame_saved_pc): Delete.
4760 (m68k_fix_call_dummy): Delete.
4761 (m68k_push_dummy_frame): Delete.
4762 (m68k_pop_frame): Delete.
4763 (m68k_extract_return_value): New function.
4764 (m68k_store_return_value): Rewrite using regcache.
4765 (m68k_extract_struct_value_address): Rewrite using regcache.
4766 (m68k_push_dummy_call): New function.
4767 (struct m68k_frame_cache): Define.
4768 (m68k_alloc_frame_cache): New function.
4769 (m68k_analyze_frame_setup): New function.
4770 (m68k_analyze_register_saves): New function.
4771 (m68k_analyze_prologue): New function.
4772 (m68k_skip_prologue): Rewrite using above functions.
4773 (m68k_unwind_pc): New function.
4774 (m68k_frame_cache): New function.
4775 (m68k_frame_this_id): New function.
4776 (m68k_frame_prev_register): New function.
4777 (m68k_frame_unwind): New variable.
4778 (m68k_frame_p): New function.
4779 (m68k_sigtramp_frame_cache): New function.
4780 (m68k_sigtramp_frame_this_id): New function.
4781 (m68k_sigtramp_frame_prev_register): New function.
4782 (m68k_sigtramp_frame_unwind): New variable.
4783 (m68k_sigtramp_frame_p): New function.
4784 (m68k_frame_base_address): New function.
4785 (m68k_frame_base): New function.
4786 (m68k_unwind_dummy_id): New function.
4787 (fill_gregset): Use regcache_collect.
4788 (fill_fpregset): Likewise.
4789 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4790 defined.
4791 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4792 deprecated_init_frame_pc, deprecated_store_struct_return,
4793 deprecated_extract_return_value, deprecated_store_return_value,
4794 deprecated_frame_chain, deprecated_frame_saved_pc,
4795 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4796 deprecated_register_virtual_size,
4797 deprecated_max_register_raw_size,
4798 deprecated_max_register_virtual_size,
4799 deprecated_register_virtual_type, deprecated_register_size,
4800 deprecated_register_byte, deprecated_register_bytes,
4801 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4802 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4803 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4804 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4805 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4806 deprecated_push_dummy_frame, deprecated_pop_frame,
4807 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4808 only if SYSCALL_TRAP is defined. Set extract_return_value,
4809 store_return_value, extract_struct_value_address, register_type,
4810 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4811 predicates.
4812 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4813 M68K_MAX_REGISTER_SIZE): Define.
4814 (struct m68k_sigtramp_info): Define.
4815 (struct gdbarch_tdep): Add get_sigtramp_info.
4816 * m68klinux-nat.c (fetch_register): Use register_size instead of
4817 REGISTER_RAW_SIZE. Don't put assignment in if.
4818 (store_register): Likewise.
4819 (fetch_inferior_registers): Likewise.
4820 (store_inferior_registers): Likewise.
4821 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4822 (m68k_linux_frame_saved_pc): Delete.
4823 (m68k_linux_sigcontext_reg_offset,
4824 m68k_linux_ucontext_reg_offset): Define.
4825 (m68k_linux_get_sigtramp_info): New function.
4826 (m68k_linux_extract_return_value): Rewrite using regcache.
4827 (m68k_linux_store_return_value): Likewise.
4828 (m68k_linux_extract_struct_value_address): Likewise.
4829 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4830 Don't set deprecated_frame_saved_pc,
4831 deprecated_extract_return_value, deprecated_store_return_value,
4832 deprecated_extract_struct_value_address. Set
4833 extract_return_value, store_return_value,
4834 extract_struct_value_address.
4835
4836 2003-07-07 Andrew Cagney <cagney@redhat.com>
4837
4838 * expprint.c: Include "user-regs.h" instead of "frame.h".
4839 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4840 frame_map_regnum_to_name.
4841 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4842 (frame_map_name_to_regnum): Simplify, call
4843 user_reg_map_name_to_regnum.
4844 (frame_map_regnum_to_name): Simplify, call
4845 user_reg_map_regnum_to_name.
4846 (frame_register_unwind): Update.
4847 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4848 (_initialize_frame_reg): Call user_reg_add_builtin.
4849 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4850 (value_of_register): Use value_of_user_reg.
4851 * eval.c (evaluate_subexp_standard): Update.
4852 * parse.c (write_dollar_variable): Update.
4853 * d10v-tdep.c (d10v_print_registers_info): Update.
4854 * infcmd.c (registers_info): Update.
4855 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4856 (builtin_regs_h): Delete macro.
4857 (user_regs_h): Define.
4858 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4859 (builtin-regs.o): Delete target.
4860 (user-regs.o): Specify dependencies.
4861 (expprint.o): Update dependencies.
4862 (findvar.o): Update dependencies.
4863 (frame.o): Update dependencies.
4864 (std-regs.o): Update dependencies.
4865
4866 2003-07-06 Christopher Faylor <cgf@redhat.com>
4867
4868 * win32-nat.c (solib_symbols_add): Use one variable for all section
4869 address stuff. Pass variable rather than address of variable to
4870 safe_symbol_file_add.
4871
4872 2003-07-06 Andreas Schwab <schwab@suse.de>
4873
4874 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4875
4876 2003-07-04 Joel Brobecker <brobecker@gnat.com>
4877
4878 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4879
4880 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4881
4882 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4883
4884 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4885
4886 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4887 * config/i386/nto.mh: New file.
4888 * config/i386/nm-nto.h: New file.
4889 * configure.host: Add i[3456]86-*-nto*.
4890
4891 2003-07-03 Joel Brobecker <brobecker@gnat.com>
4892
4893 * remote-vx.c (vx_add_symbols): Fix compilation error.
4894
4895 2003-07-03 Andrew Cagney <cagney@redhat.com>
4896
4897 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4898 * gdbarch.h, gdbarch.c: Re-generate.
4899 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4900 (legacy_register_name): Declare.
4901 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4902 (REGISTER_NAME): Define.
4903 * sparc-tdep.c (legacy_register_name): New function.
4904 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4905 (REGISTER_NAME): Define.
4906 (hppa64_register_name): Declare.
4907 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4908 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4909 (hppa64_register_name): New function.
4910 (hppa_register_name): New function.
4911 * arch-utils.c (legacy_register_name): Delete.
4912 * arch-utils.h (legacy_register_name): Delete.
4913
4914 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
4915
4916 * cli/cli-interp.c (cli_interpreter_resume): Update the
4917 cli_uiout's stream to gdb_stdout.
4918
4919 2003-07-03 Andrew Cagney <cagney@redhat.com>
4920
4921 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4922 predicate.
4923 * gdbarch.h, gdbarch.c: Re-generate.
4924 * regcache.c (init_regcache_descr): Use legacy code when either
4925 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4926
4927 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4928
4929 * NEWS: Move "set logging" entry into GDB 6.0 section.
4930
4931 2003-07-02 Jim Blandy <jimb@redhat.com>
4932
4933 * s390-tdep.c (struct frame_extra_info): new member:
4934 'stack_bought_valid'.
4935 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4936 initialize fextra_info->stack_bought.
4937 (s390_frameless_function_invocation): Don't trust the value of
4938 fextra_info_ptr->stack_bought unless
4939 fextra_info->stack_bought_valid is set.
4940
4941 New S390 prologue analyzer.
4942 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4943 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4944 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4945 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4946 compute_x_addr, s390_on_stack, s390_store,
4947 s390_get_signal_frame_info): New functions.
4948 (S390_NUM_SPILL_SLOTS): New macro.
4949 (s390_get_frame_info): Rewritten.
4950 (is_arg_reg): Deleted.
4951
4952 Break out the decoding of S/390 instructions into separate
4953 functions, to make it more legible, and easier to check
4954 against the spec.
4955 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4956 is_rx, is_rxe): New functions.
4957 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4958 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4959 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4960 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4961 enums for opcode values. (Is this an improvement?)
4962
4963 2003-07-02 Andrew Cagney <cagney@redhat.com>
4964
4965 * i386-tdep.c: Revert change committed as part of trad-frame code
4966 below.
4967
4968 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4969
4970 * breakpoint.c (insert_catchpoint): Make static.
4971
4972 2003-07-02 Andreas Schwab <schwab@suse.de>
4973
4974 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4975 former ia64_push_arguments and ia64_push_return_address, and use
4976 regcache functions instead of read/write_register.
4977 (ia64_gdbarch_init): Set push_dummy_call instead of
4978 deprecated_push_arguments and deprecated_push_return_address.
4979
4980 2003-07-01 Andreas Jaeger <aj@suse.de>
4981
4982 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4983 before the call.
4984 Set %rax only to number of SSE registers used.
4985
4986 2003-07-01 Andrew Cagney <cagney@redhat.com>
4987
4988 * trad-frame.h: Update comments, a -1 .addr is reserved.
4989 (trad_frame_value_p, trad_frame_addr_p): Declare.
4990 (trad_frame_reg_p): Declare.
4991 (trad_frame_set_value): Rename trad_frame_register_value.
4992 (trad_frame_set_unknown): Declare.
4993 * trad-frame.c (trad_frame_realreg_p): New function.
4994 (trad_frame_addr_p, trad_frame_value_p): New function.
4995 (trad_frame_set_unknown): New function.
4996 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4997 (trad_frame_prev_register): Use trad_frame_realreg_p,
4998 trad_frame_addr_p and trad_frame_value_p.
4999 (trad_frame_set_value): Rename trad_frame_register_value.
5000 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5001 and trad_frame_set_value.
5002
5003 2003-06-30 Jim Blandy <jimb@redhat.com>
5004
5005 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5006 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5007 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5008 for 16 registers, and then 32 more bytes.
5009 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5010 New macros.
5011 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5012 Move up in the file, since it's now used by is_simple_arg.
5013 (is_simple_arg): Don't assume registers are four bytes long.
5014 Exclude all double arguments. Extended floats are not simple
5015 args.
5016 (is_power_of_two): New function.
5017 (pass_by_copy_ref): Call is_power_of_two, and check that the
5018 length fits in a register, rather than listing all the acceptable
5019 sizes. Extended floats are not passed by reference.
5020 (s390_push_arguments): Don't assume registers are four bytes long.
5021 Reserve an argument register to point to the buffer for structures
5022 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5023 S390_STACK_FRAME_OVERHEAD.
5024
5025 2003-06-30 Andreas Schwab <schwab@suse.de>
5026
5027 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5028 format error message.
5029
5030 2003-06-30 Joel Brobecker <brobecker@gnat.com>
5031
5032 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5033
5034 2003-06-30 David Carlton <carlton@kealia.com>
5035
5036 Band-aid for PR c++/1245.
5037 * Makefile.in (cp-support.o): Depend on complaints_h.
5038 * cp-support.c: Include complaints.h. Add declaration for
5039 find_last_component.
5040 (cp_find_first_component): Separate code into
5041 cp_find_first_component_aux.
5042 (cp_find_first_component_aux): Call demangled_name_complaint.
5043 (demangled_name_complaint): New.
5044
5045 2003-06-30 Andrew Cagney <cagney@redhat.com>
5046
5047 * remote.c (remote_write_bytes): Explicitly compute and then use
5048 the payload size. Update comments to reflect. Fixes problem of
5049 GDB not sending small packets as found by Fred Fish.
5050
5051 2003-06-30 Andrew Cagney <cagney@redhat.com>
5052
5053 * remote.c (remote_async_wait): Fix -Wformat problem.
5054
5055 2003-06-29 Andrew Cagney <cagney@redhat.com>
5056
5057 * remote.c (remote_wait): Call error, and not warning, when the
5058 packet is corrupt.
5059 (remote_async_wait): Ditto.
5060
5061 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5062
5063 * sparc-tdep.c (sparc_y_regnum): Make external again.
5064
5065 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5066
5067 * cli/cli-logging.c (pop_output_files): Add void to function
5068 definition.
5069
5070 2003-06-29 Andrew Cagney <cagney@redhat.com>
5071
5072 * frame.c (frame_register_unwind): Use unsigned char when dumping
5073 the buffer contents.
5074
5075 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
5076
5077 * cli/cli-logging.c: New file.
5078 * cli-out.c (struct ui_out_data): Add original_stream.
5079 (cli_redirect): New function.
5080 (cli_ui_out_impl): Add cli_redirect.
5081 (cli_out_new): Initialize original_stream.
5082 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5083 (uo_redirect, ui_out_redirect): New.
5084 * ui-out.h (struct ui_out_impl): Add redirect member.
5085 (redirect_ftype): New.
5086 (ui_out_redirect): Add prototype.
5087 * Makefile.in: Add rules for cli-logging.c.
5088 * NEWS: Mention "set logging".
5089
5090 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5091
5092 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5093
5094 2003-06-27 Andrew Cagney <cagney@redhat.com>
5095
5096 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5097 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5098 * avr-tdep.c (avr_call_dummy_address): Delete function.
5099 (avr_gdbarch_init): Do not set call_dummy_address.
5100
5101 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5102
5103 * symfile.c (syms_from_objfile): Move variables to inner block.
5104 Move the checks for the non-mainline case a bit earlier to avoid
5105 doing some useless computations.
5106
5107 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5108
5109 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5110
5111 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
5112
5113 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5114 sections.
5115
5116 2003-06-26 Michael Chastain <mec@shout.net>
5117
5118 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5119 gdb/testsuite/gdb.c++/pr-1210.exp.
5120
5121 2003-06-26 Andrew Cagney <cagney@redhat.com>
5122
5123 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5124 altivec_expression.h and altivec_registers.h.
5125
5126 2003-06-26 Andrew Cagney <cagney@redhat.com>
5127
5128 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5129 info->mach when MIPS16. Patch suggested by Fred Fish.
5130
5131 2003-06-26 Andrew Cagney <cagney@redhat.com>
5132
5133 * utils.c (internal_vproblem): Print the problem to a reason
5134 buffer and then pass to query. Make the msg variable more local.
5135
5136 2003-06-26 Andrew Cagney <cagney@redhat.com>
5137
5138 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5139 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5140 * gdbarch.h, gdbarch.c: Re-generate.
5141 * frame-base.c (default_frame_args_address): Update. Use
5142 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5143 not available.
5144 (default_frame_locals_address): Ditto for
5145 DEPRECATED_FRAME_LOCALS_ADDRESS.
5146 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5147 (vax_frame_num_args): Update.
5148 (vax_gdbarch_init): Update.
5149 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5150 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5151 * mcore-tdep.c (mcore_gdbarch_init): Update.
5152 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5153 * ia64-tdep.c (ia64_gdbarch_init): Update.
5154 * symtab.h (address_class): Update comments.
5155 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5156 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5157 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5158 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5159 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5160 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5161 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5162 * alpha-mdebug-tdep.c: Update.
5163 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5164
5165 2003-06-26 Andreas Jaeger <aj@suse.de>
5166
5167 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5168 of SSE registers so that varargs functions work. Rework handling
5169 of passing arguments on the stack.
5170 (x86_64_store_return_value): Return double and float values in SSE
5171 register.
5172
5173 2003-06-24 Michael Chastain <mec@shout.net>
5174
5175 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5176 the "constructor breakpoints ignored" bug.
5177
5178 2003-06-25 David Carlton <carlton@kealia.com>
5179
5180 * MAINTAINERS: Update e-mail address.
5181
5182 2003-06-24 Jim Blandy <jimb@redhat.com>
5183
5184 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5185
5186 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5187 function.
5188 (ppc_linux_init_abi): Register it as the
5189 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5190
5191 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5192 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5193 method.
5194
5195 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5196 (ppc64_standard_linkage_target): Use it.
5197
5198 2003-06-23 Andrew Cagney <cagney@redhat.com>
5199
5200 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5201 for 0 "int0" and 4 "int32" sized registers.
5202 * gdbtypes.c (builtin_type_int0): Define.
5203 (build_gdbtypes): Initialize builtin_type_int0.
5204 * gdbtypes.h (builtin_type_int0): Declare.
5205
5206 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5207
5208 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5209 as characters are unsigned.
5210
5211 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5212
5213 PR gdb/1179
5214 * dwarfread.c (struct_type): Skip static fields without crashing.
5215
5216 2003-06-22 Andrew Cagney <cagney@redhat.com>
5217
5218 GDB 6.0 branch created.
5219 * README: Update.
5220 * PROBLEMS: Update. Empty.
5221 * NEWS: Update.
5222
5223 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5224
5225 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5226 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5227
5228 2003-06-22 Andrew Cagney <cagney@redhat.com>
5229
5230 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5231 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5232 Velikov.
5233
5234 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5235
5236 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5237 compilers.
5238
5239 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5240
5241 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5242 argument of val_print.
5243 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5244 to the address argument of baseclass_offset or target_read_memory.
5245 Do add it to the argument of cp_print_value_fields.
5246
5247 2003-06-21 Andrew Cagney <cagney@redhat.com>
5248
5249 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5250 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5251 instead of 0..NUM_REGS.
5252 (mips_register_reggroup_p): New function.
5253 (mips_pseudo_register_write): New function.
5254 (mips_pseudo_register_read): New function.
5255 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5256 based on the register's type.
5257 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5258 cooked.
5259 (mips_get_saved_register): Simplify. Assert that REGNO is a
5260 pseudo / cooked.
5261 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5262 (mips_register_type): Replace mips_register_virtual_type. Map
5263 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5264 when available.
5265 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5266 that the register is cooked / virtual.
5267 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5268 Only get the extra info when needed.
5269 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5270 (mips32_heuristic_proc_desc): Fetch the cooked register.
5271 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5272 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5273 (mips_print_register): Use gdbarch_register_type, instead of
5274 REGISTER_VIRTUAL_TYPE.
5275 (print_gp_register_row): Use gdbarch_register_type, instead of
5276 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5277 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5278 Print the pseudo / cooked registers.
5279 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5280 Print the pseudo / cooked registers.
5281 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5282 REG_NUM is pseudo / cooked.
5283 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5284 (mips_n32n64_xfer_return_value): Ditto.
5285 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5286 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5287 (mips_register_sim_regno): New function.
5288 (mips_gdbarch_init): Set deprecated_register_byte,
5289 register_group_p, pseudo_register_write, pseudo_register_read,
5290 register_sim_regno, and num_pseudo_regs. Set register_type,
5291 instead of register_virtual_type.
5292 * Makefile.in (mips-tdep.o): Update dependencies.
5293 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5294 REGISTER_VIRTUAL_TYPE.
5295 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5296 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5297 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5298 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5299 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5300
5301 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5302
5303 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5304 * cli/cli-cmds.c: Include "gdb_vfork.h".
5305 (shell_escape): Use vfork.
5306
5307 2003-06-21 Andrew Cagney <cagney@redhat.com>
5308
5309 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5310 32 bit floating-point register saves.
5311
5312 * frame.h (deprecated_unwind_get_saved_register): Delete.
5313 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5314 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5315 and deprecated_get_next_frame_hack instead of
5316 deprecated_unwind_get_saved_register.
5317
5318 * mips-tdep.c (mips_dump_tdep): Do not print
5319 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5320
5321 * frame.c (get_frame_register): New function.
5322 (frame_unwind_register_signed): New function.
5323 (get_frame_register_signed): New function.
5324 (frame_unwind_register_unsigned): New function.
5325 (get_frame_register_unsigned): New function.
5326 * frame.h: Add comments on naming schema.
5327 (get_frame_register, frame_unwind_register_signed): Declare.
5328 (get_frame_register_signed, get_frame_register_signed): Declare.
5329 (frame_unwind_register_unsigned): Declare.
5330 (get_frame_register_unsigned): Declare.
5331
5332 2003-06-20 Theodore A. Roth <troth@openavr.org>
5333
5334 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5335
5336 2003-06-20 Theodore A. Roth <troth@openavr.org>
5337
5338 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5339 (avr_read_sp): Ditto.
5340
5341 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
5342
5343 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5344 * config/arm/nm-linux.h: Likewise.
5345 * config/arm/tm-linux.h: Likewise.
5346 * config/ia64/nm-linux.h: Likewise.
5347 * config/ia64/tm-ia64.h: Likewise.
5348 * config/s390/tm-linux.h: Likewise.
5349 * config/s390/tm-s390.h: Likewise.
5350 * s390-nat.c: Likewise.
5351 * s390-tdep.c: Likewise.
5352
5353 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5354 * config/ia64/linux.mt: Likewise.
5355 * config/m68k/linux.mh: Likewise.
5356 * config/mips/linux.mt: Likewise.
5357 * config/powerpc/linux.mh: Likewise.
5358 * config/sh/linux.mt: Likewise.
5359
5360 2003-06-19 Kris Warkentin <kewarken@qnx.com>
5361
5362 * solib.c (solib_open): Change tests for whether to search
5363 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5364 comments.
5365
5366 2003-06-19 Theodore A. Roth <troth@openavr.org>
5367
5368 * avr-tdep.c (avr_frame_address): Delete function.
5369 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5370 set_gdbarch_frame_args_address.
5371
5372 2003-06-19 Andrew Cagney <cagney@redhat.com>
5373
5374 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5375 (REGISTER_CONVERT_FROM_TYPE): Delete.
5376 (mips_register_convert_to_type): Delete declaration.
5377 (mips_register_convert_from_type): Delete declaration.
5378 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5379 kernel/.
5380
5381 2003-06-19 Michael Snyder <msnyder@redhat.com>
5382
5383 * linux-nat.h: New file.
5384 * linux-nat.c: Include linux-nat.h.
5385 * lin-lwp.c: Include linux-nat.h.
5386 Move struct lwp_info def to linux-nat.h.
5387 * linux-proc.c: Include linux-nat.h.
5388 (linux_make_note_section): Iterate over lwps instead of threads.
5389 (linux_do_thread_registers): Use lwp instead of merged pid.
5390 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
5391 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
5392 Add dependency on linux_nat_h.
5393
5394 2003-06-19 Theodore A. Roth <troth@openavr.org>
5395
5396 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5397
5398 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5399
5400 * varobj.c (get_type, get_target_type): Use check_typedef.
5401
5402 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5403
5404 * breakpoint.c (insert_catchpoint): Call internal_error.
5405
5406 2003-06-19 Theodore A. Roth <troth@openavr.org>
5407
5408 * avr-tdep.c (avr_push_dummy_code): Delete function.
5409 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5410
5411 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5412
5413 * arch-utils.c (default_prepare_to_proceed): Remove.
5414 (generic_prepare_to_proceed): Remove.
5415 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5416 (generic_prepare_to_proceed): Remove prototype.
5417 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5418 * gdbarch.c: Regenerate.
5419 * gdbarch.h: Regenerate.
5420 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5421 * hppah-nat.c (hppa_switched_threads): Remove.
5422 * infrun.c (prepare_to_proceed): New static function, copied from
5423 generic_prepare_to_proceed. Remove select_it argument.
5424 (proceed): Call prepare_to_proceed.
5425 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5426 variables.
5427 (ptrace_wait): Don't set the removed variables.
5428 (hppa_switched_threads): Remove.
5429 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5430 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5431 (lin_lwp_prepare_to_proceed): Remove prototype.
5432 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5433 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5434
5435 2003-06-18 Theodore A. Roth <troth@openavr.org>
5436
5437 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5438 trad-frame.h.
5439 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5440 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5441 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5442 (AVR_PROLOGUE_*): Enumerate prologue types.
5443 (struct frame_extra_info): Remove.
5444 (struct avr_unwind_cache): Define.
5445 (avr_write_sp): Delete function.
5446 (avr_read_fp): Ditto.
5447 (avr_init_extra_frame_info): Ditto.
5448 (avr_pop_frame): Ditto.
5449 (avr_frame_saved_pc): Ditto.
5450 (avr_saved_pc_after_call): Ditto.
5451 (avr_push_return_address): Ditto.
5452 (avr_frame_chain): Ditto.
5453 (avr_store_struct_return): Ditto.
5454 (avr_push_arguments): Ditto.
5455 (avr_scan_prologue): Update comments. Changed to set up the info for
5456 cache unwinding. Now returns end of prologue PC.
5457 (avr_skip_prologue): Better handling of functions lacking a prologue
5458 by using avr_scan_prologue.
5459 (avr_scan_arg_moves): New function.
5460 (avr_saved_regs_unwinder): Ditto.
5461 (avr_frame_unwind_cache): Ditto.
5462 (avr_unwind_pc): Ditto.
5463 (avr_frame_this_id): Ditto.
5464 (avr_frame_prev_register): Ditto.
5465 (avr_frame_p): Ditto.
5466 (avr_frame_base_address ): Ditto.
5467 (avr_unwind_dummy_id): Ditto.
5468 (avr_push_dummy_code): Ditto.
5469 (push_stack_item): Ditto.
5470 (pop_stack_item): Ditto.
5471 (avr_push_dummy_call): Ditto.
5472 (struct stack_item): Define.
5473 (avr_frame_unwind): Declare structure.
5474 (avr_frame_base): Ditto.
5475 (avr_gdbarch_init): Remove calls to
5476 set_gdbarch_deprecated_init_frame_pc,
5477 set_gdbarch_deprecated_target_read_fp,
5478 set_gdbarch_deprecated_dummy_write_sp,
5479 set_gdbarch_deprecated_fp_regnum,
5480 set_gdbarch_deprecated_push_arguments,
5481 set_gdbarch_deprecated_push_return_address,
5482 set_gdbarch_deprecated_pop_frame,
5483 set_gdbarch_deprecated_store_struct_return,
5484 set_gdbarch_deprecated_frame_init_saved_regs,
5485 set_gdbarch_deprecated_init_extra_frame_info,
5486 set_gdbarch_deprecated_frame_chain,
5487 set_gdbarch_deprecated_frame_saved_pc,
5488 set_gdbarch_deprecated_saved_pc_after_call.
5489 Add calls to set_gdbarch_push_dummy_call,
5490 set_gdbarch_push_dummy_code,
5491 frame_unwind_append_predicate,
5492 frame_base_set_default,
5493 set_gdbarch_unwind_dummy_id,
5494 set_gdbarch_unwind_pc.
5495 Wrap a long line.
5496
5497 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
5498
5499 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5500 registers for H8/300S.
5501 (h8300_print_registers_info): Ditto.
5502 (h8300_gdbarch_init): Accommodate register count for H8/300S.
5503
5504 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
5505
5506 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5507 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5508 (lin_lwp_wait): Likewise. Update comments.
5509 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5510 (pull_pid_from_list, linux_record_stopped_pid): New.
5511
5512 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5513
5514 * ada-lang.c (scan_discrim_bound): Name first argument.
5515 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5516 declared by ALL_BLOCK_SYMBOLS.
5517
5518 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5519
5520 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5521 ("regcache.h"): Include it.
5522 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5523
5524 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5525
5526 * NEWS: Mention gdbserver detach change and "disconnect" command.
5527 * infcmd.c (disconnect_command): New function.
5528 (_initialize_infcmd): Add ``disconnect'' command.
5529 * remote.c (remote_async_detach): Delete.
5530 (remote_detach): Merge remote_async_detach.
5531 (remote_disconnect): New.
5532 (init_remote_ops): Set to_disconnect.
5533 (init_remote_cisco_ops): Likewise.
5534 (init_remote_async_ops): Likewise. Use remote_detach.
5535 * target.c (cleanup_target): Default to_disconnect.
5536 (update_current_target): Inherit to_disconnect.
5537 (target_disconnect, debug_to_disconnect): New functions.
5538 (setup_target_debug): Set to_disconnect.
5539 * target.h (struct target_ops): Add to_disconnect.
5540 (target_disconnect): Add prototype.
5541
5542 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5543
5544 * breakpoint.c (insert_catchpoint): New function.
5545 (insert_breakpoints): Use catch_exceptions to call
5546 insert_catchpoint. Disable catchpoints if they fail to insert.
5547
5548 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5549
5550 * symfile.c (reread_symbols): Clear sym_private.
5551
5552 2003-06-17 Andrew Cagney <cagney@redhat.com>
5553
5554 * trad-frame.h (struct frame_info): Add opaque declaration.
5555 * remote-fileio.h (struct cmd_list_element): Add opaque
5556 declaration.
5557 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5558 comments.
5559
5560 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5561
5562 * remote.c (remote_prepare_to_store): Replace call to
5563 deprecated_read_register_bytes with multiple regcache_raw_read
5564 calls.
5565
5566 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5567
5568 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5569 (nto_find_and_open_solib): Likewise.
5570 (nto_init_solib_absolute_prefix): Likewise.
5571 (_initialize_nto_tdep): Fix indentation.
5572
5573 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5574
5575 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5576
5577 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5578
5579 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5580
5581 2003-06-17 Jim Blandy <jimb@redhat.com>
5582
5583 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5584
5585 2003-06-16 Theodore A. Roth <troth@openavr.org>
5586
5587 * avr-tdep.c (avr_extract_return_value): New function.
5588 (avr_gdbarch_init): Set extract_return_value method.
5589
5590 2003-06-16 Andrew Cagney <cagney@redhat.com>
5591
5592 * frame.h (deprecated_get_next_frame_hack): Declare.
5593 * frame.c (legacy_saved_regs_prev_register): Only require
5594 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5595 there are always saved regs.
5596 (deprecated_generic_get_saved_register): Do not require
5597 DEPRECATED_FRAME_INIT_SAVED_REGS.
5598 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5599 use frame ID unwind instead.
5600 (deprecated_get_next_frame_hack): New function.
5601
5602 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5603
5604 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5605 (h8300_push_dummy_call): ...this function. Some minor optimization.
5606 (h8300_push_return_address): Remove.
5607 (h8300_gdbarch_init): Remove calls to
5608 set_gdbarch_deprecated_dummy_write_sp,
5609 set_gdbarch_deprecated_push_arguments and
5610 set_gdbarch_deprecated_push_return_address.
5611 Add call to set_gdbarch_push_dummy_call.
5612
5613 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5614
5615 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5616 (E_PSEUDO_EXR_REGNUM): Ditto.
5617 (h8300_is_argument_spill): Check for instructions moving argument
5618 registers into safe registers.
5619 (h8300_skip_prologue): Check for stm instruction to push registers
5620 used for register variables onto stack.
5621 (gdb_print_insn_h8300): Remove.
5622 (h8300_examine_prologue): Add a comment.
5623 (h8300_register_name): Take pseudo registers into account.
5624 (h8300s_register_name): Ditto.
5625 (h8300sx_register_name): Ditto.
5626 (h8300_print_register): Ditto.
5627 (h8300_print_registers_info): Define "nice" printing order.
5628 (h8300_saved_pc_after_call): Take pseudo registers into account.
5629 (h8300_register_type): Ditto. Return type used for remote connection
5630 when requesting real CCR or EXR register, return actual type when
5631 requesting pseudo CCR or EXR.
5632 (h8300_pseudo_register_read): New function.
5633 (h8300_pseudo_register_write): Ditto.
5634 (h8300_dbg_reg_to_regnum): Ditto.
5635 (h8300s_dbg_reg_to_regnum): Ditto.
5636 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5637 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5638 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5639 set_gdbarch_print_insn architecture dependent.
5640 Call set_gdbarch_pseudo_register_read and
5641 set_gdbarch_pseudo_register_write.
5642 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5643
5644 2003-06-16 Andrew Cagney <cagney@redhat.com>
5645
5646 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5647 * gdbarch.h, gdbarch.c: Re-generate.
5648 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5649 * s390-tdep.c (s390_gdbarch_init): Update.
5650 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5651 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5652 * mips-tdep.c (mips_gdbarch_init): Update.
5653 * mcore-tdep.c (mcore_gdbarch_init): Update.
5654 * cris-tdep.c (cris_gdbarch_init): Update.
5655 * infcall.c (call_function_by_hand): Update.
5656 * ia64-tdep.c (ia64_push_arguments): Update comment.
5657 * frame.c (legacy_get_prev_frame): Do not assume
5658 SAVE_DUMMY_FRAME_TOS_P.
5659 * dummy-frame.c (find_dummy_frame): Update comment.
5660
5661 2003-06-16 Andrew Cagney <cagney@redhat.com>
5662
5663 * regcache.c (do_cooked_read): Do not use register_valid_p.
5664
5665 2003-06-15 Theodore A. Roth <troth@openavr.org>
5666
5667 * avr-tdep.c (avr_register_type): Remove a blank line.
5668 (avr_scan_prologue): Correct some comments.
5669
5670 2003-06-15 Theodore A. Roth <troth@openavr.org>
5671
5672 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5673 prologue types.
5674 Properly scan prologues generated by gcc with the -mcall-prologues
5675 option.
5676 Add code to scan -mcall-prologues for mega devices.
5677
5678 2003-06-15 Theodore A. Roth <troth@openavr.org>
5679
5680 * avr-tdep.c (avr_register_byte): Delete function.
5681 (avr_register_raw_size): Delete function.
5682 (avr_register_virtual_size): Delete function.
5683 (avr_register_virtual_type): Delete function.
5684 (avr_register_type): New function.
5685 (avr_address_to_pointer): Remove unused code.
5686 (avr_read_fp): Need to read FP as two separate bytes due to change to
5687 avr_register_type() usage.
5688 (avr_gdbarch_init): Don't set deprecated_register_size.
5689 Don't set deprecated_register_bytes.
5690 Don't set deprecated_register_byte.
5691 Don't set deprecated_register_raw_size.
5692 Don't set deprecated_max_register_raw_size.
5693 Don't set deprecated_register_virtual_size.
5694 Don't set deprecated_max_register_virtual_size.
5695 Don't set deprecated_register_virtual_type.
5696 Set register_type method.
5697
5698 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
5699
5700 * Makefile.in (linux-nat.o): Add rule.
5701 * linux-nat.c: New file.
5702 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5703 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5704 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5705 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5706 * config/arm/linux.mh (NATDEPFILES): Likewise.
5707 * config/i386/linux.mh (NATDEPFILES): Likewise.
5708 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5709 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5710 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5711 * config/mips/linux.mh (NATDEPFILES): Likewise.
5712 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5713 * config/s390/s390.mh (NATDEPFILES): Likewise.
5714 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5715
5716 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5717
5718 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5719 replace out-of-date comment.
5720
5721 2003-06-15 Andrew Cagney <cagney@redhat.com>
5722
5723 * rdi-share/host.h (Fail): Change to a varargs function.
5724 * remote-rdi.c (Fail): Update.
5725
5726 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5727
5728 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5729 (i386_convert_register_p, i386_register_to_value,
5730 i386_register_from_value): Handle types longer than 8 bytes.
5731
5732 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5733
5734 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5735 Move floating-point code to new function in i387-tdep.c.
5736 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5737 New functions containing code moved here from i386-tdep.c.
5738 * i387-tdep.h: Add opaque declaration for `struct type'.
5739 (i387_register_to_value, i387_value_to_register): New prototypes.
5740 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5741 (x86_64_init_abi): Set convert_register_p, register_to_value and
5742 value_to_register here.
5743
5744 2003-06-14 Andrew Cagney <cagney@redhat.com>
5745
5746 * mips-tdep.c (mips_register_to_value): Make static.
5747 (mips_value_to_register): Make static.
5748 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5749 * ia64-tdep.c (ia64_register_raw_size): Make static.
5750 (ia64_register_virtual_size): Make static.
5751 (ia64_register_byte): Make static.
5752 * i387-tdep.c: Include "i387-tdep.h".
5753 (print_387_control_word): Delete function.
5754 (print_387_status_word): Delete function.
5755 (print_387_status_bits): Delete function.
5756 (print_387_control_bits): Delete function.
5757 * Makefile.in (i387-tdep.o): Update dependencies.
5758 * rdi-share/host.h (Fail): Declare.
5759 * remote-rdi.c (Fail): Update to match declaration.
5760
5761 2003-06-14 Andrew Cagney <cagney@redhat.com>
5762
5763 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5764 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5765 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5766 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5767 * README: Delete reference to remote-array.
5768 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5769 (remote-array.o): Delete target.
5770 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5771 * remote-array.c: Delete file.
5772
5773 2003-06-14 Andrew Cagney <cagney@redhat.com>
5774 Mark Kettenis <kettenis@gnu.org>
5775
5776 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5777 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5778 parameter with "frame".
5779 * gdbarch.h, gdbarch.c: Re-generate.
5780 * frame.h (put_frame_register): Declare.
5781 * frame.c (put_frame_register): New function.
5782 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5783 (legacy_register_to_value): Rewrite, use "frame" to get the
5784 register value.
5785 (legacy_value_to_register): Rewrite, use "frame" to find the
5786 register's location before storing.
5787 * arch-utils.h (legacy_convert_register_p): Update.
5788 (legacy_register_to_value, legacy_value_to_register): Update.
5789 * findvar.c (value_from_register): Rewrite, eliminate use of
5790 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5791 "frame" to REGISTER_TO_VALUE.
5792 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5793 lval_reg_frame_relative + lval_register branch of the switch. Do
5794 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5795 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5796 I386_EDI_REGNUM): New defines.
5797 (i386_next_regnum, i386_convert_register_p,
5798 i386_register_to_value, i386_value_to_register): New functions.
5799 (i386_register_convertible, i386_register_convert_to_virtual,
5800 i386_convert_to_raw): Remove functions.
5801 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5802 value_to_register instead of register_convertible,
5803 register_convert_to_virtual and register_convert_to_raw.
5804 * mips-tdep.c (mips_convert_register_p): New function.
5805 (mips_value_to_register): Replace mips_register_convert_from_type.
5806 (mips_register_to_value): Replace mips_register_convert_to_type.
5807 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5808 register_to_value.
5809 * alpha-tdep.c (alpha_convert_register_p): Update.
5810 (alpha_value_to_register): Update, store the register.
5811 (alpha_register_to_value): Update, fetch the register.
5812
5813 2003-06-14 Theodore A. Roth <troth@openavr.org>
5814
5815 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5816 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5817 Don't set deprecated_call_dummy_words.
5818 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5819 Don't set remote_translate_xfer_address.
5820 (avr_io_reg_read_command): Remove commented out debug printf.
5821 Wrap a long line.
5822
5823 2003-06-14 Theodore A. Roth <troth@openavr.org>
5824
5825 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5826 causes gdb to seg fault.
5827
5828 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
5829
5830 * sparc-nat.c (fetch_inferior_registers): Correct
5831 a reference to "registers".
5832
5833 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5834
5835 * Makefile.in (exc_request_U_h): Define
5836 (exc_request_S_h): Likewise.
5837 (msg_reply_S_h): Likewise.
5838 (msg_U_h): Likewise.
5839 (notify_S_h): Likewise.
5840 (process_reply_S_h): Likewise.
5841 (gnu-nat.o): Depend on gdb_obstack_h
5842 * gnu-nat.c: Include "gdb_obstack.h".
5843
5844 2003-06-13 Andrew Cagney <cagney@redhat.com>
5845
5846 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5847 * gdbarch.h, gdbarch.c: Re-generate.
5848
5849 2003-06-13 Andrew Cagney <cagney@redhat.com>
5850
5851 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5852 when deprecated REGISTER macros can be deleted.
5853 * gdbarch.h, gdbarch.c: Re-generate.
5854
5855 2003-06-13 Jim Blandy <jimb@redhat.com>
5856
5857 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5858 Linux entry point symbols for _dl_debug_state, too.
5859
5860 2003-06-13 Andrew Cagney <cagney@redhat.com>
5861
5862 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5863 available, do not use the FP register, and always save the TOS.
5864 * dummy-frame.c (dummy_frame_this_id): Do not assert
5865 SAVE_DUMMY_FRAME_TOS.
5866 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5867 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5868 (i386_push_dummy_call): Add 8 to the returned SP.
5869 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5870 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5871 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5872 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5873 (x86_64_push_dummy_call): Return "sp + 16".
5874 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5875 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5876 save_dummy_frame_tos.
5877
5878 2003-06-13 Jim Blandy <jimb@redhat.com>
5879
5880 * frv-tdep.c (frv_use_struct_convention): Delete static
5881 declaration for function deleted in my change of 2003-06-12.
5882
5883 2003-06-13 Theodore A. Roth <troth@openavr.org>
5884
5885 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5886 (avr_pointer_to_address): Shift code addrs left 1 bit.
5887 (avr_convert_from_func_ptr_addr): Delete function since operation is
5888 better handled by avr_address_to_pointer and avr_pointer_to_address.
5889 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5890
5891 2003-06-13 Mark Kettenis <kettenis@gnu.org>
5892
5893 From Kelley Cook <kelleycook@wideopenwest.com>:
5894 * configure.host: Accept i[34567]86 variants.
5895 * configure.tgt: Likewise.
5896 * nlm/configure.in: Likewise.
5897 * nlm/configure: Regenerated.
5898
5899 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
5900
5901 * arm-tdep.c (solib-svr4.h): Dont' include it.
5902 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5903 * arm-linux-tdep.c: ... here. Make static.
5904 (arm_linux_init_abi): Register it.
5905 (solib-svr4.h): Include it.
5906 * Makefile.in: Update dependencies.
5907 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5908 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5909
5910 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5911
5912 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5913 indicate registers used for return values.
5914 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5915 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5916 members.
5917 (h8300_init_extra_frame_info): Ditto.
5918 (h8300_frame_locals_address): Removed.
5919 (h8300_frame_args_address): Removed.
5920 (h8300_extract_return_value): Use new regcache structure. Only care
5921 for 16 bit CPUs.
5922 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5923 (h8300_store_return_value): Use new regcache structure. Only care
5924 for 16 bit CPUs.
5925 (h8300h_store_return_value): Same function for 32 bit CPUs.
5926 (h8300_store_struct_return): Removed.
5927 (h8300_extract_struct_value_address): Use new regcache structure.
5928 (h8300h_extract_struct_value_address): Removed.
5929 (h8300_push_dummy_code): New function.
5930 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5931 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5932 set_gdbarch_store_return_value architecture dependent.
5933 Call set_gdbarch_push_dummy_code and
5934 set_gdbarch_extract_struct_value_address.
5935 Remove calls to set_gdbarch_frame_args_address,
5936 set_gdbarch_frame_locals_address,
5937 set_gdbarch_deprecated_store_struct_return,
5938 set_gdbarch_deprecated_extract_return_value,
5939 set_gdbarch_deprecated_extract_struct_value_address,
5940 set_gdbarch_deprecated_call_dummy_words and
5941 set_gdbarch_deprecated_sizeof_call_dummy_words.
5942
5943 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5944
5945 * h8300-tdep.c (h8300_register_byte): Remove.
5946 (h8300h_register_byte): Remove.
5947 (h8300_register_virtual_type): Remove. Substitute by...
5948 (h8300_register_type): New function.
5949 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5950 (h8300h_extract_struct_value_address): Ditto.
5951 (h8300_gdbarch_init): Drop calls to
5952 set_gdbarch_deprecated_register_byte and
5953 set_gdbarch_deprecated_register_virtual_type.
5954 Add call to set_gdbarch_register_type.
5955
5956 2003-06-13 Andrew Cagney <cagney@redhat.com>
5957
5958 * gdbarch.sh: Update comments on registers.
5959 (deprecated_register_byte): Rename register_byte.
5960 (deprecated_register_raw_size): Rename register_raw_size.
5961 (deprecated_register_virtual_size): Rename register_virtual_size.
5962 (deprecated_register_virtual_type): Rename register_virtual_type.
5963 * gdbarch.h, gdbarch.c: Re-generate.
5964 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5965 * vax-tdep.c (vax_gdbarch_init): Update.
5966 * v850-tdep.c (v850_gdbarch_init): Update.
5967 * sparc-tdep.c (sparc_gdbarch_init): Update.
5968 * sh-tdep.c (sh_gdbarch_init): Update.
5969 * s390-tdep.c (s390_gdbarch_init): Update.
5970 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5971 * ns32k-tdep.c: Update.
5972 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5973 * mips-tdep.c (mips_gdbarch_init): Update.
5974 * mcore-tdep.c (mcore_gdbarch_init): Update.
5975 * m68k-tdep.c (m68k_gdbarch_init): Update.
5976 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5977 * ia64-tdep.c (ia64_gdbarch_init): Update.
5978 * hppa-tdep.c (hppa_gdbarch_init): Update.
5979 * h8300-tdep.c (h8300_gdbarch_init): Update.
5980 * frv-tdep.c (frv_gdbarch_init): Update.
5981 * cris-tdep.c (cris_gdbarch_init): Update.
5982 * avr-tdep.c (avr_gdbarch_init): Update.
5983 * alpha-tdep.c (alpha_gdbarch_init): Update.
5984 * arm-tdep.c (arm_gdbarch_init): Update.
5985
5986 2003-06-13 Andrew Cagney <cagney@redhat.com>
5987
5988 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5989 mips_o32_use_struct_convention with always_use_struct_convention.
5990
5991 2003-06-12 David Carlton <carlton@kealia.com>
5992
5993 * cp-namespace.c (cp_set_block_scope): Comment out
5994 processing_has_namespace_info branch.
5995
5996 2003-06-12 Jim Blandy <jimb@redhat.com>
5997
5998 Recognize and skip 64-bit PowerPC Linux linkage functions.
5999 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6000 insn_pattern, insns_match_pattern, d_field, ds_field): New
6001 functions, macros, and types for working with PPC instructions.
6002 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6003 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6004 ppc64_skip_trampoline_code): New functions, variables, and macros
6005 for recognizing and skipping linkage functions.
6006 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6007 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6008
6009 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6010 register offsets for both the 32- and 64-bit interfaces.
6011
6012 Actually finish the job started by my change of 2003-05-29.
6013 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6014 other #definition of this.
6015 (ppc_linux_skip_trampoline_code): Remove declaration.
6016 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6017 static.
6018 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6019 method for GDBARCH.
6020
6021 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6022 'long' on ppc64-*-linux*.
6023
6024 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6025 isn't #defined, assume the register doesn't exist: act as if
6026 tdep->ppc_mq_regnum were -1.
6027
6028 * configure.host, configure.tgt: Add entries for
6029 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6030 powerpc/linux.mt.
6031 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6032 New files.
6033
6034 * arch-utils.c (always_use_struct_convention): New function.
6035 * arch-utils.h (always_use_struct_convention): New prototype.
6036 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6037 (alpha_gdbarch_init): Register always_use_struct_convention,
6038 instead of alpha_use_struct_convention.
6039 * cris-tdep.c (cris_use_struct_convention): Delete.
6040 (cris_gdbarch_init): Register always_use_struct_convention,
6041 instead of cris_use_struct_convention.
6042 * frv-tdep.c (frv_use_struct_convention): Delete.
6043 (frv_gdbarch_init): Register always_use_struct_convention,
6044 instead of frv_use_struct_convention.
6045 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6046 (h8300_gdbarch_init): Register always_use_struct_convention,
6047 instead of h8300_use_struct_convention.
6048 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6049 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6050 instead of mips_o32_use_struct_convention.
6051
6052 2003-06-12 Andrew Cagney <cagney@redhat.com>
6053
6054 * wince.c: Include "mips-tdep.h".
6055 * mips-tdep.h (mips_next_pc): Declare.
6056 * mcore-tdep.c: Make more local functions static.
6057 * Makefile.in (wince.o): Update dependencies.
6058
6059 2003-06-12 David Carlton <carlton@kealia.com>
6060
6061 * symtab.c (lookup_symbol_aux_minsyms): Replace
6062 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6063 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6064 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6065 SYMBOL_NATURAL_NAME.
6066
6067 2003-06-12 Andreas Schwab <schwab@suse.de>
6068
6069 * Makefile.in (tuiDisassem.o): Update dependencies.
6070
6071 2003-06-12 David Carlton <carlton@bactrian.org>
6072
6073 * symtab.h: Delete declaration of make_symbol_overload_list.
6074 Add declaration of lookup_partial_symbol.
6075 * symtab.c (remove_params): Move to cp-support.c.
6076 (overload_list_add_symbol, make_symbol_overload_list)
6077 (sym_return_val_size, sym_return_val_index): Ditto.
6078 (lookup_partial_symbol): Make extern.
6079 * cp-support.h: Add declaration of make_symbol_overload_list.
6080 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6081 symtab.h, and block.h.
6082 (remove_params): Move here from symtab.c.
6083 (overload_list_add_symbol, make_symbol_overload_list)
6084 (sym_return_val_size, sym_return_val_index): Ditto.
6085 * valops.c: Include cp-support.h.
6086 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6087 frame_h, and block_h.
6088 (valops.o): Depend on cp_support_h.
6089
6090 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
6091
6092 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6093 substitute by NUM_REGS throughout.
6094 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6095 (h8300s_register_name): New function for H8S registers.
6096 (h8300sx_register_name): Ditto for H8SX registers.
6097 (h8300_print_register): Revise register printing, avoid depending
6098 on 32 bit long.
6099 (h8300_register_byte): Only care for H8/300 registers.
6100 (h8300h_register_byte): New function for any other architecture.
6101 (h8300_register_raw_size): Remove.
6102 (h8300_register_virtual_type): Revise to return actually useful
6103 type.
6104 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6105 (h8300h_extract_struct_value_address): New function for any other
6106 architecture.
6107 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6108 set_gdbarch_register_name, set_gdbarch_register_byte,
6109 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6110 Remove calls to set_gdbarch_deprecated_register_size,
6111 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6112 set_gdbarch_deprecated_max_register_raw_size,
6113 set_gdbarch_register_virtual_size and
6114 set_gdbarch_deprecated_max_register_virtual_size entirely.
6115 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6116 set_gdbarch_long_double_bit.
6117
6118 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6119
6120 * doublest.c (convert_doublest_to_floatformat): When dealing
6121 with the implied integer bit, only alter mant_bits if we are
6122 processing a full 32 bits of mantissa.
6123
6124 2003-06-11 David Carlton <carlton@bactrian.org>
6125
6126 * dictionary.h: New.
6127 * dictionary.c: New.
6128 * block.h: Add opaque declaration for struct dictionary.
6129 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6130 'sym' members.
6131 (BLOCK_DICT): New macro.
6132 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6133 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6134 BLOCK_SHOULD_SORT.
6135 (ALL_BLOCK_SYMBOLS): Update definition.
6136 * Makefile.in (SFILES): Add dictionary.c.
6137 (dictionary_h): New.
6138 (COMMON_OBS): Add dictionary.o.
6139 (dictionary.o): New.
6140 (ada-lang.o): Depend on dictionary_h.
6141 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6142 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6143 (mi-cmd-stack.o): Ditto.
6144 (gdbtk-cmds.o): Update dependencies.
6145 (gdbtk-stack.o): Ditto.
6146 * ada-lang.c: Include dictionary.h.
6147 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6148 (fill_in_ada_prototype, debug_print_block): Ditto.
6149 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6150 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6151 'is_sorted'.
6152 * mdebugread.c: Include dictionary.h.
6153 (struct parse_stack): Delete 'maxsyms' member.
6154 (parse_symbol): Update calls to new_block. Delete calls to
6155 shrink_block. Use dictionary methods.
6156 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6157 Update calls to new_symtab. Don't maintain maxsyms data.
6158 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6159 (add_symbol): Just call dict_add_symbol.
6160 (new_symtab): Delete 'maxsyms' argument.
6161 (new_symtab): Update calls to new_block.
6162 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6163 (shrink_block): Delete function.
6164 (fixup_sigtramp): Update call to new_block. Add symbol via
6165 dict_add_symbol.
6166 * jv-lang.c: Include dictionary.h.
6167 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6168 appropriately. Set class_symtab->free_func. Make sure the
6169 blockvector is big enough to hold two blocks.
6170 (add_class_symtab_symbol): Use dictionary methods.
6171 (free_class_block): New function.
6172 (type_from_class): Replace explicit iteration by
6173 ALL_BLOCK_SYMBOLS.
6174 * symtab.h (struct symtab): Replace 'free_ptr' method by
6175 'free_func'.
6176 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6177 sort_symtab_syms.
6178 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6179 sort_symtab_syms.
6180 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6181 Include dictionary.h.
6182 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6183 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6184 sort_symtab_syms.
6185 * objfiles.c: Include dictionary.h.
6186 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6187 * buildsym.c: Include dictionary.h.
6188 (finish_block): Use dictionary methods.
6189 (end_symtab): Set free_func to NULL, not free_ptr.
6190 * tracepoint.c: Include dictionary.h.
6191 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6192 (scope_info): Ditto.
6193 * stack.c: Include dictionary.h.
6194 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6195 (print_block_frame_labels, print_frame_arg_vars)
6196 (print_frame_args): Ditto.
6197 * symmisc.c (free_symtab_block): Use dictionary methods.
6198 (dump_symtab): Ditto.
6199 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6200 Include dictionary.h.
6201 * symfile.h: Delete declarations of sort_block_syms,
6202 sort_symtab_syms.
6203 * symfile.c (sort_block_syms): Delete.
6204 (sort_symtab_syms): Delete.
6205 * symtab.c: Include dictionary.h.
6206 (lookup_block_symbol): Use dictionary iterators.
6207 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6208 (search_symbols, make_symbol_completion_list): Ditto.
6209 (make_symbol_overload_list): Ditto.
6210 * valops.c (value_of_local): Use dict_empty.
6211 Include dictionary.h.
6212
6213 2003-06-11 J. Brobecker <brobecker@gnat.com>
6214
6215 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6216
6217 2003-06-11 David Carlton <carlton@bactrian.org>
6218
6219 * block.h (BLOCK_SHOULD_SORT): Delete.
6220 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6221 blocks.
6222 * ada-lang.c (ada_add_block_symbols): Ditto.
6223 * symfile.c (sort_block_syms): Delete.
6224 (sort_symtab_syms): Ditto.
6225 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6226 declarations.
6227 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6228 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6229 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6230 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6231 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6232 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6233 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6234
6235 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6236
6237 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6238 bits to 128.
6239
6240 2003-06-11 Andrew Cagney <cagney@redhat.com>
6241
6242 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6243 REGISTER_CONVERTIBLE.
6244 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6245 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6246 * gdbarch.h, gdbarch.c: Re-generate.
6247 * arch-utils.h (deprecated_register_convertible_not): Rename
6248 generic_register_convertible_not.
6249 * arch-utils.c (deprecated_register_convertible_not): Rename
6250 generic_register_convertible.
6251 (legacy_convert_register_p, legacy_register_to_value): Update.
6252 * sh-tdep.c (sh64_push_arguments): Update.
6253 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6254 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6255 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6256 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6257 * arch-utils.c (legacy_value_to_register): Update.
6258 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6259 (rs6000_register_convert_to_raw): Make parameter "from" const.
6260 * mips-tdep.c (mips_gdbarch_init): Update.
6261 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6262 * infcmd.c (default_print_registers_info): Update.
6263 * ia64-tdep.c (ia64_gdbarch_init): Update.
6264 (ia64_register_convert_to_raw): Make parameter "from" const.
6265 * i386-tdep.c (i386_gdbarch_init): Update.
6266 (i386_register_convert_to_raw): Update.
6267
6268 2003-06-11 Andrew Cagney <cagney@redhat.com>
6269
6270 * remote-fileio.c: Include "remote-fileio.h".
6271 * Makefile.in (remote-fileio.o): Update dependencies.
6272 (remote_fileio_h): Fix typo.
6273
6274 2003-06-11 Andrew Cagney <cagney@redhat.com>
6275
6276 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6277 (xstormy16_save_dummy_frame_tos): Make static.
6278 (_initialize_xstormy16_tdep): Add declaration.
6279 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6280 * v850-tdep.c: Make local functions static.
6281 (_initialize_v850_tdep): Add declaration.
6282 * sparc-tdep.c: Make local functions static.
6283 (_initialize_sparc_tdep): Add declaration.
6284 * sh-tdep.c: Make local functions static.
6285 (_initialize_sh_tdep): Add declaration.
6286 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6287 * s390-tdep.c: Make local functions static.
6288 (_initialize_s390_tdep): Add declaration.
6289 * dbxread.c (find_stab_function_addr): Make static.
6290 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6291 * ocd.c (_initialize_remote_ocd): Add declaration.
6292 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6293 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6294 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6295 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6296 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6297 * remote-array.c (_initialize_array): Add declaration.
6298 (_initialize_remote_monitors): Add declaration.
6299 * remote-mips.c: Make local functions static.
6300 (_initialize_remote_mips): Add declaration.
6301 * mcore-tdep.c: Make all local functions static.
6302 (_initialize_mcore_tdep): Add declaration.
6303 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6304 * abug-rom.c (_initialize_abug_rom): Add declaration.
6305 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6306 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6307 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6308 * remote-est.c (_initialize_est): Add declaration.
6309 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6310 (m68hc11_call_dummy_address): Make static.
6311 * ia64-tdep.c: Make local functions static.
6312 (_initialize_ia64_tdep): Add declaration.
6313 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6314 * monitor.c (monitor_wait_filter): Make static.
6315 (_initialize_remote_monitors): Add declaration.
6316 * remote-hms.c (_initialize_remote_hms): Add declaration.
6317 * remote-e7000.c (fetch_regs_from_dump): Make static.
6318 (expect_n): Make static.
6319 (_initialize_remote_e7000): Add declaration.
6320 * ser-e7kpc.c: Always include "defs.h".
6321 (_initialize_ser_e7000pc): Add declaration.
6322 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6323 * cris-tdep.c: Make all but one function static.
6324 (_initialize_cris_tdep): Add declaration.
6325 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6326 * solib.c (update_solib_list): Make static.
6327 (_initialize_solib): Add declaration.
6328 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6329 (_initialize_avr_tdep): Add declaration.
6330 * remote-rdi.c (voiddummy): Make static.
6331 (_initialize_remote_rdi): Add declaration.
6332 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6333 * remote-rdp.c (send_rdp): Make static.
6334 (_initialize_remote_rdp): Add declaration.
6335 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6336
6337 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
6338
6339 * remote-fileio.c: Make ari happy.
6340
6341 2003-06-10 J. Brobecker <brobecker@gnat.com>
6342
6343 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6344 fetching the trailing bytes of the buffer we are about to write.
6345
6346 2003-06-10 Andrew Cagney <cagney@redhat.com>
6347
6348 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6349 * Makefile.in (remote-fileio.o): Update dependencies.
6350 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6351 include <setjmp.h>, or <sys/types.h> conditional on USG.
6352 (remote_fio_jmp_buf): Delete global variable.
6353
6354 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
6355 Martin M. Hunt <hunt@redhat.com>
6356
6357 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6358 (SFILES): Add remote-fileio.c.
6359 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6360 dependencies for building remote.o.
6361 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6362 * remote-fileio.h: New header file defining remote File-I/O interface.
6363 * remote.c (remote_write_bytes, remote_read_bytes): Remove
6364 static storage class.
6365 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6366 'F' packet.
6367 (_initialize_remote): Call initialize_remote_fileio().
6368 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
6369 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6370 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6371 (captured_main): Initialize new ui_files.
6372 * ui-file.c: Add read and fgets input functions.
6373 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6374 (null_file_read): New function.
6375 (ui_file_read): New function.
6376 (set_ui_file_read): New function.
6377 (stdio_file_read): New function.
6378 * ui-file.h: New type ui_file_read_ftype.
6379 (set_ui_file_read): Declare.
6380 (ui_file_read): Declare.
6381
6382 2003-06-09 Andrew Cagney <cagney@redhat.com>
6383
6384 * frame.h (deprecated_unwind_get_saved_register): Rename
6385 generic_unwind_get_saved_register, update comments.
6386 * mips-tdep.c (mips_get_saved_register): Update.
6387 * frame.c (deprecated_unwind_get_saved_register): Update.
6388
6389 2003-06-09 Andrew Cagney <cagney@redhat.com>
6390
6391 * vax-tdep.c (vax_frame_locals_address): Delete function.
6392 (vax_gdbarch_init): Do not set frame_locals_address.
6393 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6394 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6395 * s390-tdep.c (s390_frame_args_address): Delete function.
6396 (s390_gdbarch_init): Do not set frame_args_address or
6397 frame_locals_address.
6398 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6399 (ns32k_gdbarch_init): Do not set frame_locals_address.
6400 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6401 (hppa_frame_locals_address): Delete function.
6402 (hppa_gdbarch_init): Do not set frame_args_address, or
6403 frame_locals_address.
6404 * arm-tdep.c (arm_frame_args_address): Delete.
6405 (arm_frame_locals_address): Delete.
6406 (arm_gdbarch_init): Do not set frame_args_address, or
6407 frame_locals_address.
6408
6409 2003-06-09 Andrew Cagney <cagney@redhat.com>
6410
6411 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6412 * gdbarch.h, gdbarch.c: Re-generate.
6413 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6414 * arch-utils.c (frame_num_args_unknown): Delete function.
6415 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6416 (frame_info): Use FRAME_NUM_ARGS_P.
6417 * arm-tdep.c (arm_frame_num_args): Delete function.
6418 (arm_gdbarch_init): Do not set frame_num_args.
6419 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6420 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6421 (hppa_gdbarch_init): Do not set frame_num_args.
6422 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6423 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6424 frame_num_args to default frame_num_args_unknown.
6425 * v850-tdep.c (v850_gdbarch_init): Ditto.
6426 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6427 * sh-tdep.c (sh_gdbarch_init): Ditto.
6428 * s390-tdep.c (s390_gdbarch_init): Ditto.
6429 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6430 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6431 * mips-tdep.c (mips_gdbarch_init): Ditto.
6432 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6433 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6434 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6435 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6436 * i386-tdep.c (i386_gdbarch_init): Ditto.
6437 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6438 * frv-tdep.c (frv_gdbarch_init): Ditto.
6439 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6440 * cris-tdep.c (cris_gdbarch_init): Ditto.
6441 * avr-tdep.c (avr_gdbarch_init): Ditto.
6442 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6443
6444 2003-06-09 Andrew Cagney <cagney@redhat.com>
6445
6446 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6447 (print_frame_args): Moved to "stack.c".
6448 * stack.c: Include "gdb_assert.h".
6449 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6450 (print_frame_args): Moved from "printcmd.c".
6451 * frame.h (print_frame_args): Delete declaration.
6452 * Makefile.in (stack.o): Update dependencies.
6453
6454 2003-06-08 Andrew Cagney <cagney@redhat.com>
6455
6456 * frame.c (get_prev_frame): Remove reference to
6457 frame_args_address_correct in comments.
6458 * frame-base.c (default_frame_args_address): Delete code
6459 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6460 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6461 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6462 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6463 (vax_frame_args_address_correct): Delete declaration.
6464
6465 2003-06-08 Andrew Cagney <cagney@redhat.com>
6466
6467 * gdbarch.sh (UNWIND_SP): Add.
6468 * gdbarch.h, gdbarch.c: Re-generate.
6469 * frame.c (frame_sp_unwind): New function.
6470 (get_frame_sp): New function.
6471 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6472 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6473 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6474 value.
6475 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6476 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6477
6478 2003-06-08 Andrew Cagney <cagney@redhat.com>
6479
6480 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6481 REMOTE_BREAKPOINT.
6482 * remote.c: Update.
6483 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6484 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6485 * config/m68k/tm-sun3.h: Update.
6486 * config/m68k/tm-m68klynx.h: Update.
6487 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6488
6489 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6490 trad_frame". Update comments.
6491 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6492 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6493 (trad_frame_register_value, trad_frame_prev_register): Update.
6494
6495 2003-06-08 Andrew Cagney <cagney@redhat.com>
6496
6497 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6498 from GCC's acinclude.m4.
6499 * configure.in: Check for getopt's delcaration.
6500 * aclocal.m4, config.in, configure: Re-generate.
6501 * main.c (error_init): Delete declaration.
6502 * defs.h (error_init): Declare.
6503 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6504 (rs6000_convert_from_func_ptr_addr): Make static.
6505 (_initialize_rs6000_tdep): Add declaration.
6506 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6507 (show_commands, set_verbose, show_history): Delete declaration.
6508 * top.h (set_verbose): Add declaration.
6509 (show_history, set_history, show_commands): Add declaration.
6510 (do_restore_instream_cleanup): Add declaration.
6511 * objc-lang.c (specialcmp): Make static.
6512 (print_object_command): Make static.
6513 (find_objc_msgsend): Make static.
6514 (find_objc_msgcall_submethod_helper): Make static.
6515 (find_objc_msgcall_submethod): Make static.
6516 (_initialize_objc_language): Add declaration.
6517 (find_implementation_from_class): Make static.
6518 (find_implementation): Make static.
6519 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6520 * objc-lang.h (lookup_struct_typedef): Add declaration.
6521 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6522 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6523 (do_restore_user_call_depth): Make static.
6524 (do_restore_instream_cleanup): Delete declaration.
6525 (dont_repeat): Delete declaration.
6526 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6527 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6528 * reggroups.c (_initialize_reggroup): Add declaration.
6529 * cp-support.c (_initialize_cp_support): Add declaration.
6530 * cp-abi.c (_initialize_cp_abi): Add declaration.
6531 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6532 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6533 (_initialize_gnu_v3_abi): Add declaration.
6534 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6535 (_initialize_gnu_v2_abi): Add declaration.
6536 * frame-base.c (_initialize_frame_base): Add declaration.
6537 * doublest.c (floatformat_from_length): Make static.
6538 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6539 * frame.c (create_sentinel_frame): Make static.
6540 (_initialize_frame): Add declaration.
6541 * top.c (do_catch_errors): Make static.
6542 (gdb_rl_operate_and_get_next_completion): Make static.
6543 * typeprint.c: Include "typeprint.h".
6544 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6545 (sentinel_frame_this_id): Make static.
6546 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6547 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6548 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6549 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6550 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6551 * maint.c (maintenance_print_architecture): Make static.
6552 * signals/signals.c (_initialize_signals): Add declaration.
6553 * std-regs.c (_initialize_frame_reg): Add declaration.
6554 * jv-exp.y (push_variable): ISO C definition.
6555 (push_qualified_expression_name): Ditto.
6556 * memattr.c (_initialize_mem): Add declaration.
6557 * remote.c (remote_check_watch_resources): Make static.
6558 (remote_stopped_by_watchpoint): Make static.
6559 (remote_stopped_data_address): Make static.
6560 * d10v-tdep.c (nr_dmap_regs): Make static.
6561 (a0_regnum): Make static.
6562 (d10v_frame_unwind_cache): Make static.
6563 (d10v_frame_p): Make static.
6564 * osabi.c (show_osabi): Make static.
6565 (_initialize_gdb_osabi): Add extern declaration.
6566 * gdbtypes.c (make_qualified_type): Make static.
6567 (safe_parse_type): Make static.
6568 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6569 * macrotab.c (macro_bcache_free): Make static.
6570 * interps.c (interp_set_quiet): Make static.
6571 (interpreter_exec_cmd): Make static.
6572 * stack.h (select_frame_command): New file.
6573 * stack.c: Include "stack.h".
6574 (select_frame_command_wrapper): Delete function.
6575 (select_frame_command): Make global.
6576 * infcall.c: Include "infcall.h".
6577 * linespec.c: Include "linespec.h".
6578 * symfile.c (sections_overlap): Make static.
6579 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6580 * charset.c (_initialize_charset): Add missing prototype.
6581 * regcache.c (init_legacy_regcache_descr): Make static.
6582 (do_regcache_xfree): Make static.
6583 (regcache_xfer_part): Make static.
6584 (_initialize_regcache): Add missing prototype.
6585 * breakpoint.c (parse_breakpoint_sals): Make static.
6586 (breakpoint_sals_to_pc): Make static.
6587 * interps.h (clear_interpreter_hooks): ISO C declaration.
6588 * Makefile.in (stack_h): Define.
6589 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6590 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6591
6592 2003-06-08 Andrew Cagney <cagney@redhat.com>
6593
6594 * Makefile.in (d10v-tdep.o): Update dependencies.
6595 (SFILES): Add trad-frame.c.
6596 (trad_frame_h): Define.
6597 (COMMON_OBS): Add trad-frame.o.
6598 (trad-frame.o): Specify dependencies.
6599 * d10v-tdep.c: Include "trad-frame.h".
6600 (saved_regs_unwinder): Delete function.
6601 (d10v_frame_prev_register): Use trad_frame_prev_register.
6602 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6603 trad_frame", delete "regs" and "prev_sp".
6604 (prologue_find_regs): Use trad-frame.
6605 * trad-frame.h, trad-frame.c: New files.
6606
6607 2003-06-08 Mark Kettenis <kettenis@gnu.org>
6608
6609 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6610
6611 2003-06-07 Adam Fedor <fedor@gnu.org>
6612
6613 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6614 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6615 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6616 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
6617 resolve_msgsend_super, resolve_msgsend_super_stret):
6618 Use it.
6619
6620 2003-06-07 Andrew Cagney <cagney@redhat.com>
6621
6622 * symfile.h: Re-indent, clean up comments.
6623
6624 2003-06-07 Andrew Cagney <cagney@redhat.com>
6625
6626 * inferior.h (deprecated_write_sp): Replace
6627 generic_target_write_sp.
6628 * regcache.c (deprecated_write_sp): Replace
6629 generic_target_write_sp.
6630 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6631 * vax-tdep.c (vax_gdbarch_init): Update.
6632 * v850-tdep.c (v850_gdbarch_init): Update.
6633 * sparc-tdep.c (sparc_gdbarch_init): Update.
6634 * sh-tdep.c (sh_gdbarch_init): Update.
6635 * s390-tdep.c (s390_gdbarch_init): Update.
6636 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6637 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6638 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6639 * mcore-tdep.c (mcore_gdbarch_init): Update.
6640 * m68k-tdep.c (m68k_gdbarch_init): Update.
6641 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6642 * ia64-tdep.c (ia64_gdbarch_init): Update.
6643 * h8300-tdep.c (h8300_gdbarch_init): Update.
6644 * frv-tdep.c (frv_gdbarch_init): Update.
6645 * cris-tdep.c (cris_gdbarch_init): Update.
6646 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6647
6648 2003-06-07 Andrew Cagney <cagney@redhat.com>
6649
6650 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6651 Assert that PC_REGNUM is valid.
6652 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6653
6654 2003-06-07 Andrew Cagney <cagney@redhat.com>
6655
6656 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6657 * gdbarch.h, gdbarch.c: Regenerate.
6658 * mn10300-tdep.c: Include "gdb_assert.h".
6659 (mn10300_read_fp): New function.
6660 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6661 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6662 * ia64-tdep.c: Include "gdb_assert.h".
6663 (ia64_read_fp): New function.
6664 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6665 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6666 * regcache.c (generic_target_read_sp): Delete function.
6667 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6668 * inferior.h (generic_target_read_sp): Delete declaration.
6669 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6670 generic_target_read_sp.
6671 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6672 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6673 * sh-tdep.c (sh_gdbarch_init): Ditto.
6674 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6675 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6676
6677 2003-06-07 Andrew Cagney <cagney@redhat.com>
6678
6679 * gdbarch.sh: Comment each field of startup_gdbarch.
6680 * gdbarch.h, gdbarch.c: Re-generate.
6681
6682 2003-06-07 Andrew Cagney <cagney@redhat.com>
6683
6684 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6685 * gdbarch.h, gdbarch.c: Re-generate.
6686 * regcache.c: Update comments on read_pc et.al.
6687 (generic_target_read_pc): Delete function.
6688 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6689 * inferior.h (generic_target_read_pc): Delete declaration.
6690 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6691 generic_target_read_pc.
6692 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6693 * sh-tdep.c (sh_gdbarch_init): Ditto.
6694 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6695 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6696
6697 2003-06-07 Andrew Cagney <cagney@redhat.com>
6698
6699 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6700 "index" with "special_local_sect". Use strcmp instead of STREQ.
6701 Append period to coments.
6702
6703 2003-06-06 Mark Mitchell <mark@codesourcery.com>
6704
6705 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6706 (elfstab_offset_sections): Likewise.
6707 * gdb-stabs.h (stab_section_info): Likewise.
6708 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6709 * objfiles.c (objfile_relocate): Likewise.
6710 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6711 * remote.c (get_offsets): Likewise.
6712 (remote_cisco_objfile_relocate): Likewise.
6713 * somread.c (som_symfile_offsets): Likewise.
6714 * symfile.c (alloc_section_addr_info): New function.
6715 (build_section_addr_info_from_section_tab): Use it.
6716 (free_section_addr_info): Adjust.
6717 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6718 (syms_from_objfile): Allocate local_addr dynamically.
6719 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6720 dynamically.
6721 (add_symbol_file_command): Allocate sect_opts dynamically.
6722 (reread_symbols): Avoid use of SECT_OFF_MAX.
6723 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6724 (alloc_section_addr_info): Declare it.
6725 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6726 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6727 dynamically.
6728 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
6729
6730 2003-06-06 Andrew Cagney <cagney@redhat.com>
6731
6732 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6733 (d10v_frame_unwind_cache): Do not set "return_pc".
6734
6735 2003-06-06 Michael Snyder <msnyder@redhat.com>
6736
6737 * h8300-tdep.c: Make tidy (long lines).
6738
6739 2003-06-06 Michal Ludvig <mludvig@suse.cz>
6740
6741 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
6742 to regcache_collect().
6743
6744 2003-06-05 J. Brobecker <brobecker@gnat.com>
6745
6746 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6747 pc_in_sigtramp multiarch method.
6748 (hppa_hpux_som_init_abi): Use it.
6749 (hppa_hpux_elf_init_abi): Likewise.
6750 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6751 macro has been multiarched.
6752 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6753 macro here, as hppa64 isn't multiarched yet.
6754
6755 2003-06-05 Andrew Cagney <cagney@redhat.com>
6756
6757 * Makefile.in (value_h): Add $(frame_h).
6758 * value.h: Include "frame.h".
6759 (struct value): Replace "frame_addr" with "frame_id".
6760 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6761 * values.c (allocate_value): Use VALUE_FRAME_ID.
6762 (value_copy): Use VALUE_FRAME_ID.
6763 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6764 * valops.c (value_assign): Update. Use frame_find_by_id.
6765
6766 2003-06-05 Michal Ludvig <mludvig@suse.cz>
6767
6768 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6769 in each pass.
6770
6771 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6772
6773 * thread-db.c (check_event): For create/death event breakpoints,
6774 loop through all messages to ensure that we read the message
6775 corresponding to the breakpoint we are at.
6776
6777 2003-06-04 Michael Snyder <msnyder@redhat.com>
6778
6779 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6780
6781 2003-06-04 Mark Kettenis <kettenis@gnu.org>
6782
6783 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6784 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6785 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6786 when handling .eh_frame sections.
6787
6788 2003-06-04 J. Brobecker <brobecker@gnat.com>
6789
6790 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6791 prepare_to_proceed procedure instead of the hppa-specific one.
6792 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6793
6794 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
6795
6796 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6797 * config.in: Regenerated.
6798 * configure.in: Add test for syscall function and check for
6799 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6800 * configure: Regenerated.
6801 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6802 <sys/syscall.h>.
6803 (kill_lwp): New function that uses tkill syscall or
6804 uses kill, depending on whether threading model is nptl or not.
6805 All callers of kill() changed to use kill_lwp().
6806 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6807 see if all threads have already exited in the nptl model.
6808 (stop_and_resume_callback): New callback function used by the
6809 lin_lwp_wait thread exit handling code.
6810 (stop_wait_callback): Check for threads already having exited and
6811 delete such threads fromt the lwp list when discovered.
6812 (stop_callback): Don't assert retcode of kill call.
6813
6814 Roland McGrath <roland@redhat.com>
6815 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6816 nptl libthread_db.
6817
6818 2003-06-03 Richard Henderson <rth@redhat.com>
6819
6820 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6821 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6822 (alpha_sigtramp_frame_prev_register): Likewise.
6823 (alpha_heuristic_frame_prev_register): Likewise.
6824 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6825
6826 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
6827 alpha-specific register id names.
6828 (alpha_mdebug_frame_unwind_cache): Likewise.
6829 (alpha_mdebug_frame_prev_register): Likewise.
6830
6831 2003-06-03 Richard Henderson <rth@redhat.com>
6832
6833 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6834 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6835 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6836 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6837 unwind routines.
6838 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6839 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6840 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6841
6842 * alpha-linux-tdep.c: Remove unnecessary includes.
6843 * Makefile.in (alpha-linux-tdep.o): Update.
6844
6845 2003-06-03 Richard Henderson <rth@redhat.com>
6846
6847 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6848 (alphabsd_fill_fpreg): Likewise.
6849
6850 2003-06-03 J. Brobecker <brobecker@gnat.com>
6851
6852 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6853 references to struct frame_info fields by calls to the equivalent
6854 accessors. Necessary now that frame_info is opaque.
6855
6856 2003-06-03 J. Brobecker <brobecker@gnat.com>
6857
6858 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6859 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6860 structure, field no longer exists.
6861
6862 2003-06-03 J. Brobecker <brobecker@gnat.com>
6863
6864 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6865 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6866
6867 2003-06-03 J. Brobecker <brobecker@gnat.com>
6868
6869 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6870 references to struct frame_info fields by calls to the equivalent
6871 accessors. Necessary now that frame_info is opaque.
6872
6873 2003-06-03 J. Brobecker <brobecker@gnat.com>
6874
6875 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6876 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6877 structure, field no longer exists.
6878
6879 2003-06-03 Theodore A. Roth <troth@openavr.org>
6880
6881 * remote.c (init_remote_state): Compute sizeof_g_packet by
6882 accumulation of the size of all registers instead of blindly using
6883 DEPRECATED_REGISTER_BYTES.
6884
6885 2003-06-03 Michael Snyder <msnyder@redhat.com>
6886
6887 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6888 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6889 for h8300sx.
6890
6891 2003-06-03 J. Brobecker <brobecker@gnat.com>
6892
6893 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6894 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6895
6896 2003-06-03 Andrew Cagney <cagney@redhat.com>
6897
6898 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6899 (sparc_convert_to_raw): Delete function.
6900 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6901 register_convert_to_virtual.
6902
6903 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6904
6905 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6906 layer if not dealing with a statically-linked threaded program.
6907
6908 2003-06-03 Kris Warkentin <kewarken@qnx.com>
6909
6910 * solib.c (solib_open): Update comment to reflect actual search order.
6911
6912 2003-06-03 Andrew Cagney <cagney@redhat.com>
6913
6914 * frame.c (get_frame_memory_signed): New function.
6915 (get_frame_memory, get_frame_memory_unsigned): New function.
6916 (get_frame_arch): New function.
6917 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6918 (get_frame_memory, get_frame_unsigned_memory): Declare.
6919 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6920 get_frame_memory_unsigned and get_frame_arch.
6921 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6922
6923 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6924
6925 * MAINTAINERS (write after approval): Add myself.
6926
6927 2003-06-03 Jim Blandy <jimb@redhat.com>
6928
6929 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6930 elements of gregset_t are 64 bits each, but access registers
6931 are still 32 bits, so they're packed two per gregset_t
6932 element. Unpack/pack them properly.
6933
6934 2003-06-02 David Carlton <carlton@bactrian.org>
6935
6936 * linespec.c (find_methods): Break out code into
6937 add_matching_methods and add_constructors.
6938 (add_matching_methods): New.
6939 (add_constructors): Ditto.
6940
6941 2003-06-02 Andrew Cagney <cagney@redhat.com>
6942
6943 * sparc-tdep.c (sparc_print_registers): Delete call to
6944 REGISTER_CONVERTIBLE.
6945 (sparc_gdbarch_init): Do not set register_convertible.
6946 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6947 * frv-tdep.c (frv_gdbarch_init): Ditto.
6948 * cris-tdep.c (cris_gdbarch_init): Ditto.
6949
6950 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
6951
6952 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
6953 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6954 (syms_from_objfile): Ditto.
6955
6956 2003-06-03 Andreas Schwab <schwab@suse.de>
6957
6958 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6959 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6960
6961 2003-06-02 Richard Henderson <rth@redhat.com>
6962
6963 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6964 a member of all_reggroup.
6965
6966 2003-06-02 Richard Henderson <rth@redhat.com>
6967
6968 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6969 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6970 (alpha_lds, alpha_sts): New.
6971 (alpha_convert_register_p): Change from _register_convertible.
6972 (alpha_register_to_value): Change from _convert_to_virtual;
6973 restructure and fail for type sizes other than 4 or 8.
6974 (alpha_value_to_register): Similarly.
6975 (alpha_extract_return_value): Use alpha_sts.
6976 (alpha_store_return_value): Use alpha_lds.
6977 (alpha_gdbarch_init): Update hooks.
6978
6979 2003-06-02 Richard Henderson <rth@redhat.com>
6980
6981 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6982 regnum identifiers.
6983 (alpha_sigtramp_register_address): Likewise.
6984
6985 2003-06-02 Richard Henderson <rth@redhat.com>
6986
6987 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6988 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6989 * alpha-tdep.h: Declare them.
6990
6991 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6992 Remove zerobuf. Don't error on UNIQUE.
6993 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6994 (ALPHA_REGSET_UNIQUE): Provide default.
6995 (supply_gregset): Use alpha_supply_int_regs.
6996 (fill_gregset): Use alpha_fill_int_regs.
6997 (supply_fpregset): Use alpha_supply_fp_regs.
6998 (fill_fpregset): Use alpha_fill_fp_regs.
6999 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7000 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7001 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7002 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7003 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7004 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7005
7006 2003-06-02 Richard Henderson <rth@redhat.com>
7007
7008 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7009
7010 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7011 (alpha_store_return_value): Likewise.
7012
7013 2003-06-02 David Carlton <carlton@math.stanford.edu>
7014
7015 * block.c (contained_in): Add 'const' to arguments.
7016 (block_function): Ditto.
7017 * block.h: Update declarations for block_function and
7018 contained_in.
7019
7020 2003-06-02 David Carlton <carlton@math.stanford.edu>
7021
7022 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7023 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7024 * p-valprint.c (pascal_val_print): Ditto.
7025 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7026
7027 2003-06-02 Richard Henderson <rth@redhat.com>
7028
7029 * alpha-tdep.c (alpha_push_dummy_call): Use
7030 builtin_type_ieee_double_little instead of builtin_type_double.
7031
7032 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7033 sign-extension of 32-bit values.
7034 (alpha_store_return_value): Similarly.
7035
7036 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7037 (alpha_extract_return_value): Likewise.
7038 (alpha_store_return_value): Likewise.
7039
7040 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7041 (alpha_store_return_value): Error on IEEE Quad floats.
7042
7043 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7044 (alpha_extract_struct_value_address): Likewise.
7045 (alpha_store_return_value): Likewise.
7046 (alpha_store_struct_return): Remove.
7047 (alpha_gdbarch_init): Update hook registration to match.
7048
7049 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7050 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7051 macros where appropriate.
7052 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7053 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7054
7055 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7056 for SP, GP; void_func_ptr for PC; non-language-specific types
7057 for all others.
7058 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7059
7060 2003-06-02 Richard Henderson <rth@redhat.com>
7061
7062 * top.h (lim_at_start): Declare.
7063 * main.c (captured_main): Set it.
7064 * top.c (lim_at_start): Define.
7065 (command_loop): Use it instead of &environ.
7066 * event-top.c (command_handler): Likewise.
7067
7068 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7069
7070 * mipsnbsd-tdep.c: Update copyright years.
7071 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7072
7073 2003-06-01 Richard Henderson <rth@redhat.com>
7074
7075 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7076 (alpha-linux-tdep.o): Update dependencies.
7077 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7078 * alpha-mdebug-tdep.c: Remove unneeded includes.
7079
7080 2003-06-01 Richard Henderson <rth@redhat.com>
7081
7082 * alpha-tdep.c (alpha_register_reggroup_p): New.
7083 (alpha_gdbarch_init): Register it.
7084
7085 2003-06-02 Andrew Cagney <cagney@redhat.com>
7086
7087 * dwarfread.c: Eliminate "register"
7088 (decode_die_type): Eliminate assignment within "if".
7089 (struct_type, decode_array_element_type): Ditto.
7090 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7091 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7092 (decode_modified_type, completedieinfo): Ditto.
7093 * block.c: Eliminate "register".
7094 (blockvector_for_pc_sect): Eliminate assignment within "if".
7095 * cp-support.h (struct symbol): Opaque declaration.
7096 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7097
7098 2003-06-01 Richard Henderson <rth@redhat.com>
7099
7100 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7101 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7102
7103 2003-06-01 Adam Fedor <fedor@gnu.org>
7104
7105 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7106 * gdbarch.[ch]: Regenerate.
7107 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7108 (hppa_gdbarch_init): Set it in the gdbarch vector.
7109 * i386-tdep.c (i386_fetch_pointer_argument): New
7110 (i386_gdbarch_init): Set it into gdbarch.
7111 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7112 (rs6000_gdbarch_init): Set it in gdbarch.
7113 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7114 (sparc_gdbarch_init): Set it in gdbarch.
7115
7116 2003-06-01 Andrew Cagney <cagney@redhat.com>
7117
7118 * defs.h (extract_address): Delete declaration.
7119 * findvar.c (extract_address): Delete function.
7120 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7121 extract_address with the inline equivalent,
7122 extract_unsigned_integer.
7123 (xstormy16_extract_struct_value_address): Ditto.
7124 (xstormy16_pointer_to_address): Ditto.
7125 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7126 * v850-tdep.c (v850_push_arguments): Ditto.
7127 (v850_extract_return_value): Ditto.
7128 (v850_extract_struct_value_address): Ditto.
7129 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7130 (sparcnbsd_get_longjmp_target_64): Ditto.
7131 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7132 (get_longjmp_target): Ditto.
7133 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7134 (sh64_extract_struct_value_address): Ditto.
7135 (sh_push_arguments): Ditto.
7136 (sh64_push_arguments): Ditto.
7137 * remote-vxsparc.c (vx_read_register): Ditto.
7138 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7139 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7140 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7141 * mipsv4-nat.c (get_longjmp_target): Ditto.
7142 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7143 * mips-nat.c (get_longjmp_target): Ditto.
7144 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7145 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7146 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7147 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7148 * irix5-nat.c (get_longjmp_target): Ditto.
7149 * irix4-nat.c (get_longjmp_target): Ditto.
7150 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7151 (ia64_push_arguments): Ditto.
7152 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7153 * h8300-tdep.c (h8300_push_arguments): Ditto.
7154 (h8300_store_return_value): Ditto.
7155 (h8300_extract_struct_value_address): Ditto.
7156 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7157 (frv_push_arguments): Ditto.
7158 * avr-tdep.c (avr_pointer_to_address): Ditto.
7159 (avr_push_arguments): Ditto.
7160 * arm-tdep.c (arm_push_dummy_call): Ditto.
7161 (arm_get_longjmp_target): Ditto.
7162 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7163 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7164 (alpha_get_longjmp_target): Ditto.
7165
7166 * solib-irix.c (extract_mips_address): Inline extract_address,
7167 replacing it with extract_signed_integer.
7168 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7169 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7170 (first_link_map_member, open_symbol_file_object): Ditto.
7171 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7172 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7173 (LM_NEXT, LM_NAME): Ditto.
7174
7175 2003-06-01 Richard Henderson <rth@redhat.com>
7176
7177 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7178 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7179 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7180 (alpha_cannot_store_register): Likewise.
7181 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7182 * alpha-nat.c (supply_gregset): Likewise.
7183 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7184
7185 2003-06-01 Andrew Cagney <cagney@redhat.com>
7186
7187 * infcall.c (call_function_by_hand): Update comment on
7188 DEPRECATED_DUMMY_WRITE_SP.
7189
7190 * mips-tdep.c (mips_gdbarch_init): Do not set
7191 deprecated_dummy_write_sp.
7192 (mips_eabi_push_dummy_call): Set the SP register.
7193 (mips_o64_push_dummy_call): Set the SP register.
7194 (mips_o32_push_dummy_call): Set the SP register.
7195 (mips_n32n64_push_dummy_call): Set the SP register.
7196
7197 2003-06-01 Richard Henderson <rth@redhat.com>
7198
7199 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7200 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7201 (supply_gregset): Likewise.
7202 * alpha-tdep.c (alpha_store_return_value): Likewise.
7203 (alpha_get_longjmp_target): Likewise.
7204 (alpha_register_name): Constify array.
7205 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7206 deprecated_register_size, deprecated_register_bytes,
7207 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7208 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7209 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7210
7211 2003-06-01 Richard Henderson <rth@redhat.com>
7212
7213 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7214 from arg_reg_buffer to regcache to avoid double conversion.
7215
7216 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7217
7218 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7219 SP_REGNUM.
7220 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7221 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7222
7223 2003-06-01 Richard Henderson <rth@redhat.com>
7224
7225 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7226 (decode_frame_entry): Set it. Skip FDE augmentation.
7227
7228 2003-06-01 Richard Henderson <rth@redhat.com>
7229
7230 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7231 not overlapping PC_REGNUM.
7232
7233 2003-06-01 Richard Henderson <rth@redhat.com>
7234
7235 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7236 alpha_push_arguments. Don't dump argument register data to
7237 the target stack. Fix float and 128-bit long double semantics.
7238 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7239 (alpha_fix_call_dummy): Remove.
7240 (alpha_call_dummy_words): Remove.
7241 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7242
7243 2003-06-01 Richard Henderson <rth@redhat.com>
7244
7245 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7246
7247 2003-06-01 Andrew Cagney <cagney@redhat.com>
7248
7249 * mips-tdep.c (is_mips16_addr): New function.
7250 (make_mips16_addr, unmake_mips16_addr): New functions.
7251 (pc_is_mips16, mips_fetch_instruction): Use.
7252 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7253 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7254 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7255 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7256 TARGET_MIPS.
7257 * config/mips/tm-mips.h: Update copyright.
7258 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7259 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7260 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7261 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7262 (TM_PRINT_INSN_MACH): Delete.
7263 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7264
7265 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7266 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7267 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7268 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7269 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7270 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7271 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7272 mips*-*-riscos* and mips*-*-sysv* onto mips.
7273 * config/mips/mips64.mt: New file.
7274 * config/mips/mips.mt: New file.
7275 * config/mips/littlemips.mt: Delete file.
7276 * config/mips/decstation.mt: Delete file.
7277 * config/mips/vr4300el.mt: Delete file.
7278 * config/mips/vr5000el.mt: Delete file.
7279 * config/mips/vr5000.mt: Delete file.
7280 * config/mips/vr4100.mt: Delete file.
7281 * config/mips/vr4xxxel.mt: Delete file.
7282 * config/mips/vr4300.mt: Delete file.
7283 * config/mips/vr4xxx.mt: Delete file.
7284 * config/mips/bigmips.mt: Delete file.
7285 * config/mips/bigmips64.mt: Delete file.
7286 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7287 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7288 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7289 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7290 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7291 "tm-bigmips.h".
7292 * config/mips/tm-irix3.h: Ditto.
7293 * config/mips/tm-mipsv4.h: Ditto.
7294 * config/mips/tm-embed.h: Ditto.
7295 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7296 "tm-bigmips64.h".
7297 * config/mips/tm-vr5000el.h: Delete file.
7298 * config/mips/tm-tx39l.h: Delete file.
7299 * config/mips/tm-vr4300el.h: Delete file.
7300 * config/mips/tm-vr4xxxel.h: Delete file.
7301 * config/mips/tm-vr4300.h: Delete file.
7302 * config/mips/tm-vr4100.h: Delete file.
7303 * config/mips/tm-vr4xxx.h: Delete file.
7304 * config/mips/tm-vr5000.h: Delete file.
7305 * config/mips/tm-embedl64.h: Delete file.
7306 * config/mips/tm-embedl.h: Delete file.
7307 * config/mips/tm-embed64.h: Delete file.
7308 * config/mips/tm-bigmips64.h: Delete file.
7309 * config/mips/tm-bigmips.h: Delete file.
7310
7311 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7312
7313 Fix gdb/1216.
7314 * shnbsd-nat.c: Include "sh-tdep.h".
7315
7316 From Richard Henderson <rth@redhat.com>:
7317 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7318
7319 2003-05-31 Andrew Cagney <cagney@redhat.com>
7320
7321 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7322 forward declaration.
7323 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7324 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7325 (mips_find_saved_regs): Use set_reg_offset.
7326 (mips_frame_init_saved_regs): Delete function.
7327 (mips_pop_frame): Call mips_find_saved_regs instead of
7328 DEPRECATED_FRAME_INIT_SAVED_REGS.
7329
7330 2003-05-31 Andrew Cagney <cagney@redhat.com>
7331
7332 * mips-tdep.c (mips_gdbarch_init): Do not set
7333 deprecated_max_register_raw_size, register_virtual_size, and
7334 deprecated_max_register_virtual_size.
7335
7336 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7337
7338 * i386-tdep.c: Include "dwarf2-frame.h".
7339 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7340 * Makefile.in (i386-tdep.o): Update dependencies.
7341
7342 * dwarf2-frame.c, dwarf2-frame.h: New files.
7343 * Makefile.in (SFILES): Add dwarf2-frame.c.
7344 (dwarf2_frame_h): Define.
7345 (COMMON_OBS): Add dwarf2-frame.o.
7346 (dwarf2-frame.o): Add dependencies.
7347
7348 2003-05-31 Andreas Jaeger <aj@suse.de>
7349
7350 * x86-64-linux-nat.c: Fix comment.
7351
7352 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7353
7354 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7355 function signature.
7356
7357 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7358 have a sigcontext_addr handler.
7359 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7360 sigcontext_addr handler.
7361
7362 2003-05-31 Andrew Cagney <cagney@redhat.com>
7363
7364 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7365 (print_fp_register_row): Replace do_fp_register_row.
7366 (mips_print_fp_register): Add "file" and "frame" parameters.
7367 (mips_print_register): Add "file" and "frame" parameters.
7368 (mips_print_registers_info): Replace mips_do_registers_info.
7369 (mips_gdbarch_init): Set print_registers_info instead of
7370 deprecated_do_registers_info.
7371 (mips_read_fp_register_single): Add "frame" parameter.
7372 (mips_read_fp_register_double): Add "frame" parameter.
7373
7374 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7375
7376 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7377 Fixes a bug where GDB would print the wrong register names for
7378 targets without SSE.
7379
7380 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7381 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7382 registers.
7383
7384 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7385 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7386 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7387 TDEP->sc_sp_offset.
7388
7389 From Michal Ludvig <mludvig@suse.cz>:
7390 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7391 and `sc_num_regs'.
7392 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7393 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7394 I386_ST0_REGNUM): Move here from...
7395 * i386-tdep.c: ... here.
7396 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7397 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7398 registers if possible.
7399 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7400 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7401 Remove variables.
7402 (i386bsd_sc_reg_offset): New variable.
7403 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7404 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7405 TDEP->sc_sp_offset.
7406 (i386fbsd_sc_reg_offset): New variable.
7407 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7408 TDEP->sc_num_regs.
7409 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7410 variables.
7411 (i386fbsd4_sc_reg_offset): New variable.
7412 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7413 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7414 TDEP->sc_sp_offset.
7415 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7416 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7417 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7418 Remove variables.
7419 (i386nbsd_sc_reg_offset): New variable.
7420 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7421 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7422 TDEP->sc_sp_offset.
7423 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7424 Remove variables.
7425 (i386obsd_sc_reg_offset): New variable.
7426 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7427 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7428 TDEP->sc_sp_offset.
7429 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7430 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7431 for frame pointer offset in `struct sigcontext'.
7432
7433 2003-05-31 Andrew Cagney <cagney@redhat.com>
7434
7435 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7436 architecture methods call_dummy_words, sizeof_call_dummy_words,
7437 push_return_address, store_struct_return, and fix_call_dummy. Set
7438 push_dummy_call instead of deprecated_push_arguments.
7439 (mips_store_struct_return): Delete function.
7440 (mips_fix_call_dummy): Delete function.
7441 (mips_push_return_address): Delete function.
7442 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7443 RA_REGNUM and T9_REGNUM.
7444 (mips_n32n64_push_dummy_call): Ditto for
7445 mips_n32n64_push_arguments.
7446 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7447 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7448
7449 2003-05-31 Andrew Cagney <cagney@redhat.com>
7450
7451 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7452 "dummy_addr" to "bp_addr".
7453 * infcall.c (call_function_by_hand): Pass "funaddr" to
7454 gdbarch_push_dummy_call.
7455 * gdbarch.h, gdbarch.c: Re-generate.
7456 * i386-tdep.c (i386_push_dummy_call): Update.
7457 * arm-tdep.c (arm_push_dummy_call): Update.
7458 * d10v-tdep.c (d10v_push_dummy_call): Update.
7459
7460 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7461
7462 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7463 variable declarations.
7464 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7465 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7466 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7467 x86_64_init_frame_pc, x86_64_init_frame_pc,
7468 x86_64_function_has_prologue): Remove prototypes.
7469 (X86_64_NUM_GREGS): New define.
7470 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7471 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7472 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7473 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7474 XMM1_REGNUM): Remove defines.
7475 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7476 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7477 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7478 X86_64_XMM1_REGNUM): New defines.
7479 (struct x86_64_register_info): Renamed from `struct
7480 register_info'. Remove `size' member.
7481 (x86_64_register_info_table): Remove variable.
7482 (x86_64_register_info): New variable.
7483 (X86_64_NUM_REGS): New define.
7484 (X86_64_NUM_GREGS): Remove define.
7485 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7486 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7487 Remove variables.
7488 (x86_54_dwarf2_reg_to_regnum): Remove function.
7489 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7490 (x86_64_dwarf_reg_to_regnum): New function.
7491 (x86_64_register_name): Rewrite.
7492 (x86_64_register_raw_size): Remove function.
7493 (x86_64_register_byte_table): Remove variable.
7494 (x86_64_register_byte): Remove function.
7495 (x86_64_register_virtual_type): Remove function.
7496 (x86_64_register_type): New function.
7497 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7498 x86_64_register_convert_to_raw): Remove functions.
7499 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7500 (x86_64_use_struct_convention): Make static. Adjust for renamed
7501 defines.
7502 (x86_64_frame_init_saved_regs): Remove function.
7503 (x86_64_push_arguments): Make static. Change to accept a regcache
7504 as argument.
7505 (x86_64_store_return_value, x86_64_extract_return_value): Make
7506 static. Rewrite based on i386 counterparts.
7507 (x86_64_push_dummy_call): New function.
7508 (X86_64_NUM_SAVED_REGS): New define.
7509 (x86_64_register_number): Remove function.
7510 (x86_64_store_struct_return): Remove function.
7511 (x86_64_frameless_function_invocation,
7512 x86_64_function_has_prologue): Remove functions.
7513 (PROLOG_BUFSIZE): Remove define.
7514 (struct x86_64_frame_cache): New structure.
7515 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7516 x86_64_frame_cache, x86_64_frame_this_id,
7517 x86_64_frame_prev_register, x86_64_frame_p,
7518 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7519 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7520 functions.
7521 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7522 variables.
7523 (x86_64_skip_prologue): Rewrite in terms of
7524 x86_64_analyze_prologue.
7525 (x86_64_frame_base_address): New function.
7526 (x86_64_frame_base): New variable.
7527 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7528 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7529 set deprecated_fp_regnum, deprecated_register_size,
7530 deprecated_register_bytes, register_raw_size, register_byte,
7531 register_virtual_type, register_convertiable,
7532 register_convert_to_virtual, convert_to_raw,
7533 deprecated_get_saved_register, deprecated_target_read_fp,
7534 deprecated_push_arguments, deprecated_push_return_address,
7535 deprecated_pop_frame, deprecated_store_struct_return,
7536 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7537 frameless_function_invocation, deprecated_frame_saved_pc,
7538 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7539 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7540 deprecated_init_frame_pc and virtual_frame_pointer. Call
7541 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7542 and x86_64_frame_p. Call frame_base_set_default to register
7543 x86_64_frame_base.
7544 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7545 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7546 (_initialize_x86_64_tdep): Remove function.
7547 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7548 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7549 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7550 define.
7551 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7552 (x86_64_linux_sigcontext_addr): Rewrite.
7553 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7554 x86_64_linux_frame_saved_pc): Remove functions.
7555 (x86_64_linux_pc_in_sigtramp): Renamed from
7556 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7557 trampoline.
7558 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7559 Remove_functions.
7560 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7561 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7562 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7563 (x86_64_regmap): Rename to regmap.
7564 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7565 x86_64_num_gregs.
7566 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7567 x86_64_regmap.
7568 (x86_64_fxsave_offset): Remove function.
7569 (supply_fpregset): Simply call x86_64_supply_fxsave.
7570 (fill_fpregset): Simply call x86_64_fill_fxsave.
7571 (fetch_inferior_registers, store_inferior_registers): Avoid
7572 asignment in if-statement.
7573 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7574 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7575 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7576 (fetch_core_registers): Remove function.
7577 (linux_elf_core_fns): Remove.
7578 (offsetoff): Don't define.
7579 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7580 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7581 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7582 add core-regset.o.
7583 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7584 protection against multiple includes instead of NM_X86_64_h. Add
7585 various comments. Include "config/nm-linux.h". Don't include
7586 <signal.h>.
7587 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7588 GET_THREAD_SIGNALS): Remove defines.
7589 (x86_64_register_u_addr, kernel_u_size,
7590 lin_thread_get_thread_signals): Remove prototypes.
7591 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7592 [HAVE_LINK_H]: Don't include "solib.h".
7593 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7594 * config/i386/tm-x86-64linux.h: Fix comments.
7595 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7596 x86-64-tdep.o): Update dependencies.
7597
7598 2003-05-30 Andrew Cagney <cagney@redhat.com>
7599
7600 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7601 Change parameter type to a "struct regcache *".
7602
7603 * gdbarch.sh: Regardless of the multi-arch level, always define
7604 the macro when not already defined.
7605 * gdbarch.h, gdbarch.c: Re-generate.
7606
7607 2003-05-30 Richard Henderson <rth@redhat.com>
7608
7609 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7610 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7611 (alpha_mdebug_frame_this_id): Likewise.
7612 (alpha_mdebug_frame_prev_register): Likewise.
7613 (alpha_mdebug_frame_base_address): Likewise.
7614 (alpha_mdebug_frame_locals_address): Likewise.
7615 (alpha_mdebug_frame_args_address): Likewise.
7616 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7617 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7618 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7619 loop increment.
7620 (alpha_heuristic_frame_this_id): Make static.
7621 (alpha_heuristic_frame_prev_register): Likewise.
7622 (alpha_heuristic_frame_base_address): Likewise.
7623 * alpha-tdep.h: Update.
7624
7625 2003-05-30 Mark Kettenis <kettenis@gnu.org>
7626
7627 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7628 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7629 defenitions.
7630 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7631 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7632 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7633 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7634 I386_ST0_REGNUM): New defines.
7635 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7636 codestream_get): Remove define.
7637 (codestream_next_addr, condestream_addr, condestream_buf,
7638 codestream_off, codestream_cnt): Remove variables.
7639 (codestream_fill, codestream_seek, codestream_read): Remove
7640 functions.
7641 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7642 functionality.
7643 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7644 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7645 i386_frame_saved_pc, i386_saved_pc_after_call,
7646 i386_frame_num_args, i386_frame_init_saved_regs,
7647 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7648 i386_push_arguments): Remove functions.
7649 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7650 functionality. Use i386_analyze_prologue instead of
7651 i386_get_frame_setup.
7652 (I386_NUM_SAVED_REGS): New define.
7653 (struct i386_frame_cache): New structure.
7654 (i386_alloc_frame_cache, i386_analyze_struct_return,
7655 i386_skip_probe, i386_analyze_frame_setup,
7656 i386_analyze_register_saves, i386_analyze_prologue,
7657 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7658 i386_frame_prev_register, i386_sigtramp_frame_cache,
7659 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7660 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7661 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7662 New functions.
7663 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7664 New variables.
7665 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7666 I386_EAX_REGNUM and I386_EDX_REGNUM.
7667 (i386_extract_return_value, i386_store_return_value): Use
7668 I386_ST0_REGNUM where appropriate.
7669 (i386_extract_struct_value_address): Rewrite to use extract_address.
7670 (i386_svr4_pc_in_sigtramp): Add comment.
7671 (i386_svr4_sigcontext_addr): Rewrite.
7672 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7673 TDEP->sc_sp_offset.
7674 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7675 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7676 of new defines. Set push_dummy_call, don't set
7677 deprecated_push_arguments, deprecated_push_return_address,
7678 deprecated_pop_frame. Don't set parm_boundary. Don't set
7679 deprecated_frame_chain, deprecated_frame_saved_pc,
7680 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7681 save_dummy_frame_tos, unwind_pc. Call
7682 frame_unwind_append_predicate and frame_base_set_default. Don't
7683 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7684 Don't set frameless_function_invocation. Don't set
7685 deprecated_register_bytes, deprecated_register_size,
7686 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7687 * i386-linux-tdep.c: Fix formatting in some comments.
7688 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7689 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7690 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7691 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7692 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7693 redundant parentheses.
7694 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7695 (i386_linux_sigcontext_addr): Use it. Rewrite.
7696 (find_minsym_and_objfile): Change name of second argument.
7697 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7698 changed. Use frame_pc_unwind instead of
7699 DEPRECATED_SAVED_PC_AFTER_CALL.
7700 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7701 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7702 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7703 unwinder.
7704 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7705 "dummy-frame.h".
7706 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7707 (_initialize_i386_cygwin_tdep): New prototype.
7708 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7709 deprecated_frame_chain_valid.
7710 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7711 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7712 Rely on the SVR4 defaults.
7713 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7714 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7715
7716 2003-05-30 Andrew Cagney <cagney@redhat.com>
7717
7718 * infcall.c (call_function_by_hand): Always call
7719 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7720
7721 2003-05-30 Richard Henderson <rth@redhat.com>
7722
7723 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7724 increment.
7725
7726 2003-05-29 Jim Blandy <jimb@redhat.com>
7727
7728 Use gdbarch methods for solib stuff on PowerPC Linux.
7729 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7730 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7731 show through.
7732 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7733 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7734 giving the same effect as the #definitions above.
7735
7736 2003-05-29 Adam Fedor <fedor@gnu.org>
7737
7738 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7739 (find_implementation_from_class): Replace it with the standard
7740 case i.e. do nothing.
7741
7742 2003-05-29 Richard Henderson <rth@redhat.com>
7743
7744 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7745 (alpha_linux_sigtramp_offset): Use it. Make static.
7746 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7747 update for new frame model.
7748 * alpha-mdebug-tdep.c: New file.
7749 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7750 (alpha_osf1_init_abi): Install it.
7751 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7752 (linked_proc_desc_table): Remove.
7753 (alpha_frame_past_sigtramp_frame): Remove.
7754 (alpha_dynamic_sigtramp_offset): Remove.
7755 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7756 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7757 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7758 (push_sigtramp_desc): Remove.
7759 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7760 (alpha_cannot_store_register): Likewise.
7761 (alpha_sigcontext_addr): Remove.
7762 (alpha_find_saved_regs): Remove.
7763 (alpha_frame_init_saved_regs): Remove.
7764 (alpha_init_frame_pc_first): Remove.
7765 (read_next_frame_reg): Remove.
7766 (alpha_frame_saved_pc): Remove.
7767 (alpha_saved_pc_after_call): Remove.
7768 (temp_proc_desc, temp_saved_regs): Remove.
7769 (alpha_about_to_return): Remove.
7770 (cached_proc_desc): Remove.
7771 (alpha_frame_chain): Remove.
7772 (alpha_print_extra_frame_info): Remove.
7773 (alpha_init_extra_frame_info): Remove.
7774 (alpha_frame_locals_address): Remove.
7775 (alpha_frame_args_address): Remove.
7776 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7777 (alpha_push_dummy_frame): Remove.
7778 (alpha_pop_frame): Remove.
7779 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7780 (alpha_read_insn): New.
7781 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7782 for different insn encodings.
7783 (alpha_in_lenient_prologue): Remove.
7784 (struct alpha_sigtramp_unwind_cache): New.
7785 (alpha_sigtramp_frame_unwind_cache): New.
7786 (alpha_sigtramp_register_address): New.
7787 (alpha_sigtramp_frame_this_id): New.
7788 (alpha_sigtramp_frame_prev_register): New.
7789 (alpha_sigtramp_frame_unwind): New.
7790 (alpha_sigtramp_frame_p): New.
7791 (struct alpha_heuristic_unwind_cache): New.
7792 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7793 don't count nop insns that occur between functions.
7794 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7795 heuristic_proc_desc, but without the mdebug wrapping.
7796 (alpha_heuristic_frame_this_id): New.
7797 (alpha_heuristic_frame_prev_register): New.
7798 (alpha_heuristic_frame_unwind): New.
7799 (alpha_heuristic_frame_p): New.
7800 (alpha_heuristic_frame_base_address): New.
7801 (alpha_heuristic_frame_base): New.
7802 (alpha_unwind_dummy_id): New.
7803 (alpha_unwind_pc): New.
7804 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7805 frame related deprecated initializations; install replacements.
7806 (alpha_dump_tdep): Remove.
7807 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7808 (alpha_read_insn, alpha_after_prologue,
7809 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7810 alpha_heuristic_frame_prev_register,
7811 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7812 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7813 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7814 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7815
7816 2003-05-29 Andrew Cagney <cagney@redhat.com>
7817
7818 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7819 dependant on the availability of ASSERT_FUNCTION.
7820 (ASSERT_FUNCTION): Do not define when there is no function name.
7821
7822 2003-05-29 Kevin Buettner <kevinb@redhat.com>
7823
7824 From Jimi X <jimix@watson.ibm.com>:
7825 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7826
7827 2003-05-28 Jim Blandy <jimb@redhat.com>
7828
7829 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7830 argument to ptrace to int; the system headers should give it the
7831 right type, and pointers don't fit in ints on powerpc64-*-*.
7832
7833 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7834
7835 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7836 DW_TAG_catch_block.
7837
7838 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7839
7840 * stabsread.c (dbx_lookup_type): Make static.
7841 (read_type): Ditto.
7842 (add_undefined_type): Ditto.
7843 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7844 not export.
7845
7846 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7847
7848 * hpread.c (hpread_has_name): Make static.
7849 (hpread_psymtab_to_symtab): Ditto.
7850 (file_exists): Ditto.
7851 (hpread_call_pxdb): Ditto.
7852 (hpread_pxdb_needed): Ditto.
7853 (hpread_quick_traverse): Ditto.
7854 (hpread_get_header): Ditto.
7855 (hpread_get_lntt): Ditto.
7856 (hpread_get_slt): Ditto.
7857 (class_of): Ditto.
7858
7859 2003-05-25 Andreas Schwab <schwab@suse.de>
7860
7861 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7862 stack_align and deprecated_extra_stack_alignment_needed.
7863 (m68k_stack_align): Delete.
7864
7865 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7866 (m68k_register_virtual_size): Likewise.
7867 (altos_skip_prologue): Remove obsolete function.
7868 (isi_frame_num_args): Likewise.
7869 (news_frame_num_args): Likewise.
7870 (m68k_fix_call_dummy): Make static.
7871 (m68k_push_dummy_frame): Likewise.
7872 (m68k_pop_frame): Likewise.
7873 (m68k_skip_prologue): Likewise.
7874 (m68k_frame_init_saved_regs): Likewise.
7875 (m68k_saved_pc_after_call): Likewise.
7876 (m68k_get_longjmp_target): Make multi-arch.
7877 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7878 structure. Register m68k_get_longjmp_target if enabled.
7879 * m68k-tdep.h (struct gdbarch_tdep): Define.
7880 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7881
7882 * Makefile.in (config.status): Also depend on configure.tgt
7883 and configure.host.
7884 (m68klinux-tdep.o): Update dependencies.
7885 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7886 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7887 (M68K_LINUX_JB_PC): Define.
7888 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7889 and take additional parameter.
7890 (m68k_linux_sigtramp_saved_pc): Update.
7891 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7892 m68k_linux_pc_in_sigtramp, in_plt_section,
7893 find_solib_trampoline_target.
7894 * config/m68k/tm-linux.h: Don't include any tm headers.
7895 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7896 (JB_ELEMENT_SIZE): Likewise.
7897 (JB_PC): Likewise.
7898 (GET_LONGJMP_TARGET): Likewise.
7899 (IN_SIGTRAMP): Likewise.
7900 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7901
7902 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7903
7904 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7905 (sparc32_push_arguments): Re-implement by calling
7906 sparc32_do_push_arguments.
7907
7908 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7909
7910 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7911 SPARC_O1_REGNUM): New defines.
7912 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7913 (sparc32_store_return_value): New function.
7914 (sparc_extract_struct_value_address): Rewrite to operate on a
7915 regcache.
7916 (sparc_gdbarch_init): Don't set
7917 deprecated_extract_struct_value_address. Set
7918 extract_struct_value_address instead. Don't set
7919 deprecated_extract_return_value and deprecated_store_return_value
7920 for 32-bit targets. Set extract_return_value and
7921 store_return_value instead.
7922 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7923 DEPRECTAED_EXTRACT_RETURN_VALUE,
7924 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7925 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7926 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7927 (sparc_store_return_value): Remove prototype.
7928 (sparc32_store_return_value): New prototype.
7929 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7930 Adjust prototypes.
7931
7932 2003-05-24 Mark Kettenis <kettenis@gnu.org>
7933
7934 * sparcnbsd-tdep.c: Include "gdb_string.h".
7935
7936 2003-05-23 Andrew Cagney <cagney@redhat.com>
7937
7938 * p-valprint.c (pascal_val_print): Replace extract_address with
7939 the inline equivalent extract_unsigned_integer.
7940 * jv-valprint.c (java_value_print): Ditto.
7941 * ada-valprint.c (ada_val_print_1): Ditto.
7942 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7943
7944 2003-05-23 Theodore A. Roth <troth@openavr.org>
7945
7946 * blockframe.c (frameless_look_for_prologue): Remove unused
7947 after_prologue variable.
7948
7949 2003-05-23 Mark Kettenis <kettenis@gnu.org>
7950
7951 * blockframe.c (get_pc_function_start): Rewrite to avoid
7952 asignments in if-statements.
7953
7954 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7955
7956 Committed by Elena Zannoni <ezannoni@redhat.com>.
7957 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
7958 files, don't relocate absolute symbols (and do use mst_abs).
7959
7960 2003-05-23 Andrew Cagney <cagney@redhat.com>
7961
7962 * objc-lang.c: Include "gdb_assert.h".
7963 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7964 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7965 (gdb_check, gdb_check_fatal): Delete functions.
7966 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7967 gdb_assert.
7968 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7969 * Makefile.in (objc-lang.o): Update dependencies.
7970
7971 2003-05-22 Ian Lance Taylor <ian@airs.com>
7972
7973 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7974 with fprintf_filtered, not fprintf_unfiltered.
7975
7976 2003-05-22 Andrew Cagney <cagney@redhat.com>
7977
7978 * stack.c (frame_info): Inline extract_address, replacing it with
7979 extract_unsigned_integer.
7980 * findvar.c (unsigned_pointer_to_address): Ditto.
7981 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7982 * dwarf2expr.c (dwarf2_read_address): Ditto.
7983 * frame.c (frame_pc_unwind): Update comment.
7984 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7985
7986 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7987
7988 * infptrace.c (detach): Call print_sys_errmsg rather than
7989 perror_with_name to issue warning message when errno is non-zero
7990 after calling ptrace detach.
7991
7992 2003-05-21 J. Brobecker <brobecker@gnat.com>
7993
7994 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7995 macro definitions from here...
7996 * hppa-tdep.c: ...to there.
7997
7998 2003-05-20 Kevin Buettner <kevinb@redhat.com>
7999
8000 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8001 register_ptrace_addr(). Fix all callers.
8002
8003 2003-05-21 Andreas Schwab <schwab@suse.de>
8004
8005 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8006 dependencies.
8007 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8008 end.
8009 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8010 (_initialize_m68k_linux_tdep): New function.
8011 (m68k_linux_frame_saved_pc): Make static.
8012 (m68k_linux_extract_return_value): Likewise.
8013 (m68k_linux_store_return_value): Likewise.
8014 (m68k_linux_extract_struct_value_address): Likewise.
8015 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8016 Remove.
8017 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8018 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8019 (DEPRECATED_FRAME_SAVED_PC): Remove.
8020
8021 2003-05-20 Kris Warkentin <kewarken@qnx.com>
8022
8023 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8024 regset numbering rather than our own.
8025
8026 2003-05-19 David Carlton <carlton@bactrian.org>
8027
8028 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8029
8030 2003-05-19 David Carlton <carlton@bactrian.org>
8031
8032 Partial fix for PR c++/827.
8033 * cp-support.h: Include symtab.h.
8034 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8035 * cp-namespace.c: Update contributors.
8036 (cp_lookup_symbol_nonlocal): New.
8037 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8038 (lookup_symbol_file): Ditto.
8039 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8040 * block.h: Declare block_scope, block_using, block_global_block.
8041 * block.c (block_scope): New.
8042 (block_using, block_global_block): Ditto.
8043 * Makefile.in (cp_support_h): Depend on symtab_h.
8044 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8045
8046 2003-05-19 David Carlton <carlton@bactrian.org>
8047
8048 * language.h (struct language_defn): Add 'la_value_of_this'
8049 and 'la_lookup_symbol_nonlocal' members.
8050 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8051 lookup_symbol_static, lookup_symbol_global,
8052 lookup_symbol_aux_block.
8053 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8054 if we should search fields of this and how to do static/global
8055 lookup.
8056 (lookup_symbol_aux_block): Make extern.
8057 (basic_lookup_symbol_nonlocal): New.
8058 (lookup_symbol_static, lookup_symbol_global): Ditto.
8059 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8060 'la_lookup_symbol_nonlocal' members.
8061 * c-lang.c (c_language_defn, cplus_language_defn)
8062 (asm_language_defn, minimal_language_defn): Ditto.
8063 * jv-lang.c (java_language_defn): Ditto.
8064 * language.c (unknown_language_defn, auto_language_defn)
8065 (local_language_defn): Ditto.
8066 * m2-lang.c (m2_language_defn): Ditto.
8067 * objc-lang.c (objc_language_defn): Ditto.
8068 * scm-lang.c (scm_language_defn): Ditto.
8069 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8070 * p-lang.c (pascal_language_defn): Ditto for both.
8071 * Makefile.in (f-lang.o): Depend on value_h.
8072 (p-lang.o): Ditto.
8073
8074 2003-05-19 David Carlton <carlton@bactrian.org>
8075
8076 * block.h: Declare block_static_block.
8077 * block.c (block_static_block): New.
8078 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8079 lookup_symbol_aux_local, calling block_static_block instead.
8080 (lookup_symbol_aux_local): Delete 'static_block' argument.
8081
8082 2003-05-19 David Carlton <carlton@bactrian.org>
8083
8084 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8085
8086 2003-05-19 Michal Ludvig <mludvig@suse.cz>
8087
8088 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8089 register numbers mapping.
8090
8091 2003-05-18 Adam Fedor <fedor@gnu.org>
8092
8093 * symtab.c (completion_list_objc_symbol): New function.
8094 (make_symbol_completion_list): Use it to add ObjC symbols
8095 when looking though the list.
8096 (language_search_unquoted_string): New function.
8097 (make_file_symbol_completion_list): Use it.
8098
8099 2003-05-18 Andreas Schwab <schwab@suse.de>
8100
8101 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8102 dependencies.
8103 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8104 as m68k_linux_extract_return_value.
8105 (DEPRECATED_STORE_RETURN_VALUE): Define as
8106 m68k_linux_store_return_value.
8107 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8108 m68k_linux_extract_struct_value_address.
8109 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8110 get_next_frame, get_frame_base, get_frame_pc.
8111 (m68k_linux_frame_saved_pc): Use get_frame_base.
8112 (m68k_linux_extract_return_value): New function.
8113 (m68k_linux_store_return_value): New function.
8114 (m68k_linux_extract_struct_value_address): New function.
8115 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8116
8117 * c-exp.y (typebase): Remove duplicate occurence of
8118 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8119 of lookup_signed_typename.
8120
8121 2003-05-18 Mark Kettenis <kettenis@gnu.org>
8122
8123 * dwarf2loc.c (find_location_expression): Change type of second
8124 argument to `size_t *'.
8125 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8126 for size variable.
8127
8128 2003-05-18 David Carlton <carlton@bactrian.org>
8129
8130 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8131 'linkage_name'. Add comment.
8132 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8133 'linkage_name'.
8134 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8135 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8136 (lookup_block_symbol): Ditto.
8137
8138 2003-05-16 Andrew Cagney <cagney@redhat.com>
8139
8140 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8141 * gdbarch.h, gdbarch.c: Re-generate.
8142 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8143 * TODO (REGISTER_BYTES): Delete reference.
8144 * alpha-tdep.c (alpha_gdbarch_init): Update.
8145 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8146 * x86-64-tdep.c (x86_64_init_abi): Update.
8147 * vax-tdep.c (vax_gdbarch_init): Update.
8148 * v850-tdep.c (v850_gdbarch_init): Update.
8149 * sparc-tdep.c (sparc_gdbarch_init): Update.
8150 * sh-tdep.c (sh_gdbarch_init): Update.
8151 * s390-tdep.c (s390_gdbarch_init): Update.
8152 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8153 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8154 (ns32k_gdbarch_init_32382): Update.
8155 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8156 * mcore-tdep.c (mcore_gdbarch_init): Update.
8157 * m68k-tdep.c (m68k_gdbarch_init): Update.
8158 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8159 * ia64-tdep.c (ia64_gdbarch_init): Update.
8160 * i386-tdep.c (i386_gdbarch_init): Update.
8161 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8162 * hppa-tdep.c (hppa_gdbarch_init): Update.
8163 * h8300-tdep.c (h8300_gdbarch_init): Update.
8164 * frv-tdep.c (frv_gdbarch_init): Update.
8165 * cris-tdep.c (cris_gdbarch_init): Update.
8166 * avr-tdep.c (avr_gdbarch_init): Update.
8167 * arm-tdep.c (arm_gdbarch_init): Update.
8168 * sparc-tdep.c (sparc_pop_frame): Update.
8169 * rs6000-tdep.c (rs6000_pop_frame): Update.
8170 * remote.c (init_remote_state): Update.
8171 (remote_prepare_to_store): Update.
8172 * remote-vx.c (vx_prepare_to_store): Update.
8173 * remote-sds.c (sds_fetch_registers): Update.
8174 (sds_prepare_to_store): Update.
8175 * remote-array.c: Update.
8176 * regcache.c (init_legacy_regcache_descr): Update.
8177 (init_regcache_descr): Update.
8178 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8179 (mips_o64_extract_return_value): Update.
8180 * irix5-nat.c (fetch_core_registers): Update.
8181 * irix4-nat.c (fetch_core_registers): Update.
8182 * i386-tdep.h: Update.
8183 * hppa-tdep.c (pa_do_registers_info): Update.
8184 (pa_do_strcat_registers_info): Update.
8185 * cris-tdep.c (cris_register_bytes_ok): Update.
8186 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8187 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8188 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8189 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8190 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8191 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8192 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8193 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8194 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8195 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8196 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8197 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8198 (REGISTER_BYTES_OK): Update.
8199 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8200 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8201
8202 2003-05-16 Ian Lance Taylor <ian@airs.com>
8203
8204 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8205 (vax_print_insn, print_insn_arg): Remove static functions.
8206 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8207 print_insn_vax from opcodes library.
8208 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8209
8210 2003-05-15 Andrew Cagney <cagney@redhat.com>
8211
8212 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8213 * target.h (memory_breakpoint_from_pc): Delete declaration.
8214 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8215 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8216 * monitor.c (monitor_insert_breakpoint): Use
8217 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8218 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8219 * gdbarch.h, gdbarch.c: Re-generate.
8220 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8221 (sparc_gdbarch_init): Set breakpoint_from_pc to
8222 sparc_breakpoint_from_pc.
8223 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8224 (BREAKPOINT_FROM_PC): Define.
8225 (sparc_breakpoint_from_pc): Declare.
8226 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8227 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8228 (BREAKPOINT_FROM_PC): Define.
8229 (BREAKPOINT): Delete macro.
8230 * target.h: Update comment.
8231 * s390-tdep.c (s390_gdbarch_init): Update comments.
8232 * remote.c: Update comments.
8233 * remote-mips.c: Update comments.
8234 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8235 * mem-break.c: Update comment.
8236 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8237 (ia64_memory_insert_breakpoint): Update.
8238 * config/sparc/tm-sparc.h: Update comment.
8239 * config/pa/tm-hppa64.h: Update comment.
8240 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8241 (rs6000_breakpoint_from_pc): Update.
8242 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8243 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8244 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8245 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8246 (mips_breakpoint_from_pc): Update.
8247 (mips_dump_tdep): Update.
8248
8249 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8250 * minsyms.c (lookup_minimal_symbol): Inline
8251 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8252
8253 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8254 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8255 * p-lang.c (pascal_printstr): Ditto.
8256 * objc-lang.c (objc_printstr): Ditto.
8257 * m2-lang.c (m2_printstr): Ditto.
8258 * jv-valprint.c (java_print_value_fields): Ditto.
8259 * f-lang.c (f_printstr): Ditto.
8260 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8261 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8262 for repeat_count_threshold.
8263 * Makefile.in (cp-valprint.o): Update dependencies.
8264
8265 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8266
8267 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8268 (examine_prologue): Support looking through leaf functions, knowing
8269 they start with mov r2,r12. Support skipping over indirect stores
8270 of the input registers. Upon hitting a non-nop branch instruction
8271 or predicated instruction, bail out by setting lim_pc to the current
8272 pc value in the loop. At the end, if the lim_pc value is still
8273 beyond our calculated value and we have trust_limit set,
8274 use the lim_pc value.
8275
8276 2003-05-15 Andrew Cagney <cagney@redhat.com>
8277
8278 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8279 generic_find_dummy_frame.
8280 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8281 (deprecated_generic_find_dummy_frame): Update.
8282 (deprecated_read_register_dummy): Update.
8283 * frame.c (deprecated_generic_get_saved_register): Update.
8284
8285 2003-05-15 Theodore A. Roth <troth@openavr.org>
8286
8287 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8288 (avr_gdbarch_init): Set breakpoint_from_pc method.
8289
8290 2003-05-15 Andrew Cagney <cagney@redhat.com>
8291
8292 * regcache.c (build_regcache): Set deprecated_register_valid
8293 directly.
8294 (deprecated_grub_regcache_for_register_valid): Delete function.
8295 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8296 declaration.
8297
8298 2003-05-15 David Carlton <carlton@bactrian.org>
8299
8300 Committed by Elena Zannoni <ezannoni@redhat.com>
8301 * symtab.c (lookup_symbol_aux): Delete calls to
8302 lookup_symbol_aux_minsyms.
8303 (lookup_symbol_aux_minsyms): Comment out function and
8304 prototype. Delete lookup by mangled name.
8305
8306 2003-05-14 Kevin Buettner <kevinb@redhat.com>
8307
8308 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8309 correctly indicate an empty stack and ``stack_allocated'' to the
8310 indicate the number of elements initially allocated.
8311 (dwarf_expr_grow_stack): Simplify method for computing new
8312 stack size. Don't loop infinitely if ``stack_len'' is zero.
8313 (execute_stack_op): Move ``ctx->in_reg'' initialization
8314 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8315 be used in conjuction with DW_OP_piece. Revise error message
8316 accordingly.
8317
8318 2003-05-14 Theodore A. Roth <troth@openavr.org>
8319
8320 * MAINTAINERS: Update my email address.
8321 * avr-tdep.c: Ditto.
8322
8323 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
8324
8325 * symtab.h (enum domain_enum): Rename from namespace_enum.
8326 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8327 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8328 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8329 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8330 TYPES_NAMESPACE, METHODS_NAMESPACE.
8331 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8332 (struct symbol, struct partial_symbol): Rename field
8333 'namespace_enum namespace' to 'domain_enum domain'.
8334 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8335 Delete old define kludge for namespace.
8336
8337 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8338 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8339 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8340 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8341 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8342 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8343 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8344 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8345 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8346 occurrences of the above.
8347
8348 2003-05-14 Ian Lance Taylor <ian@airs.com>
8349
8350 * Makefile.in (install-only): Use $(SHELL) when running
8351 mkinstalldirs.
8352
8353 2003-05-13 Ian Lance Taylor <ian@airs.com>
8354
8355 * MAINTAINERS (write after approval): Add myself.
8356
8357 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8358 second and third arguments.
8359 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8360 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8361
8362 2003-05-13 Andrew Cagney <cagney@redhat.com>
8363
8364 * defs.h (store_address): Delete declaration.
8365 findvar.c (store_address): Delete function.
8366 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8367 store_unsigned_integer.
8368 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8369 * v850-tdep.c (v850_push_arguments): Ditto.
8370 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8371 * sh-tdep.c (sh64_get_saved_register): Ditto.
8372 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8373 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8374 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8375 (mips_get_saved_register): Ditto.
8376 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8377 (find_func_descr, ia64_push_arguments): Ditto.
8378 * i386-tdep.c (i386_push_arguments): Ditto.
8379 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8380 * frv-tdep.c (frv_push_arguments): Ditto.
8381 * frame.c (legacy_saved_regs_prev_register): Ditto.
8382 (deprecated_generic_get_saved_register): Ditto.
8383 * findvar.c (unsigned_address_to_pointer): Ditto.
8384 * dwarf2read.c (dwarf2_const_value): Ditto.
8385 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8386 * alpha-tdep.c (alpha_push_arguments): Ditto.
8387
8388 2003-05-12 J. Brobecker <brobecker@gnat.com>
8389
8390 * NEWS: Mention that the hppa-hpux port has been partially
8391 multiarched (32bit ABIT only, so far).
8392
8393 2003-05-11 Andrew Cagney <cagney@redhat.com>
8394
8395 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8396 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8397 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8398 sim/testsuite/sim/arm/misaligned2.ms, and
8399 sim/testsuite/sim/arm/misaligned3.ms.
8400 * disasm.h (struct ui_file): Add opaque struct declaration.
8401 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8402 * frame.h (struct ui_file): Ditto.
8403
8404 2003-05-11 Mark Kettenis <kettenis@gnu.org>
8405
8406 * value.h: Pretty print.
8407
8408 2003-05-10 Mark Kettenis <kettenis@gnu.org>
8409
8410 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8411
8412 2003-05-08 Andrew Cagney <cagney@redhat.com>
8413
8414 * regcache.h (max_register_size): Delete declaration.
8415 * regcache.c (max_register_size): Delete function.
8416 (struct regcache_descr): Delete field "max_register_size".
8417 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8418 registers fit in MAX_REGISTER_SIZE.
8419 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8420 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8421 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8422 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8423 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8424 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8425 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8426 * dve3900-rom.c, hppa-tdep.c: Ditto.
8427
8428 2003-05-08 David Carlton <carlton@math.stanford.edu>
8429
8430 * valops.c (push_word): Fix typo.
8431
8432 2003-05-08 Andrew Cagney <cagney@redhat.com>
8433
8434 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8435 * gdbarch.h: Re-generate.
8436 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8437 (legacy_max_register_raw_size): Delete declaration.
8438 * regcache.c (legacy_max_register_raw_size): Delete function.
8439 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8440 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8441 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8442 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8443 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8444 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8445 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8446 * findvar.c, dwarf2cfi.c: Ditto.
8447
8448 2003-05-08 Andrew Cagney <cagney@redhat.com>
8449
8450 * mips-tdep.c (read_signed_register): New function, moved to here
8451 from "regcache.c".
8452 (read_signed_register_pid): Ditto.
8453 * regcache.c (read_signed_register_pid): Delete function, moved to
8454 "mips-tdep.c".
8455 (read_signed_register): Ditto.
8456 * regcache.h (read_signed_register): Delete declaration.
8457 (read_signed_register_pid): Delete declaration.
8458
8459 2003-05-08 Andrew Cagney <cagney@redhat.com>
8460
8461 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8462 * gdbarch.h: Re-generate.
8463 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8464 (legacy_max_register_virtual_size): Delete declaration.
8465 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8466 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8467 * tracepoint.c (memrange_sortmerge): Ditto.
8468 * sparc-tdep.c (sparc_print_registers): Ditto.
8469 * regcache.c (legacy_max_register_virtual_size): Delete function.
8470
8471 2002-05-08 J. Brobecker <brobecker@gnat.com>
8472
8473 * fork-child.c (escape_bang_in_quoted_argument): New function.
8474 (fork_inferior): Escape '!' characters in quoted arguments
8475 only when needed.
8476
8477 2003-05-08 J. Brobecker <brobecker@gnat.com>
8478
8479 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8480 the language of the CU is not currently supported by GDB.
8481
8482 2003-05-08 J. Brobecker <brobecker@gnat.com>
8483
8484 * defs.h (language): Add language_minimal enum value.
8485 * c-lang.c (minimal_language_defn): New language definition.
8486 (_initialize_c_language): Add the new minimal language to the list
8487 of languages known to GDB.
8488
8489 2003-05-08 Kevin Buettner <kevinb@redhat.com>
8490
8491 * frame.c (get_frame_type): Don't attempt to lazily initialize
8492 frame's unwinder for legacy frames.
8493
8494 2003-05-07 Andrew Cagney <cagney@redhat.com>
8495
8496 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8497 and "regcache" parameters.
8498 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8499
8500 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8501
8502 * dwarf2read.c (dwarf_decode_lines): Only use output of
8503 check_cu_functions() when calling record_line(). Do not update
8504 the current address.
8505
8506 2003-05-07 Andrew Cagney <cagney@redhat.com>
8507
8508 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8509 code.
8510
8511 2003-05-07 Jim Blandy <jimb@redhat.com>
8512
8513 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8514 'maint info symtabs' and 'maint info psymtabs'.
8515 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8516 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8517 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8518 Declarations updated.
8519 * maint.c (maintenance_list_command): Delete.
8520 (_initialize_maint_cmds): Update calls to add_cmd.
8521 * gdbcmd.h (maintenancelistlist): Delete declaration.
8522 * cli/cli-cmds.c (maintenancelistlist): Delete.
8523 (init_cmd_lists): Don't initialize it.
8524 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8525
8526 2003-05-07 Andrew Cagney <cagney@redhat.com>
8527
8528 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8529 "regcache".
8530 (d10v_print_registers_info): Update.
8531 (d10v_dmap_register, d10v_imap_register): Delete functions.
8532 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8533 and "imap_register".
8534 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8535 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8536 * arch-utils.c (generic_remote_translate_xfer_address): Add
8537 "regcache" and "gdbarch" parameters.
8538 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8539 parameter. Change class to multi-arch.
8540 * gdbarch.h, gdbarch.c: Re-generate.
8541 * remote.c (remote_xfer_memory): Use
8542 gdbarch_remote_translate_xfer_address.
8543
8544 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8545
8546 * infrun.c (prev_pc): Move declaration ahead of proceed().
8547 (proceed): Refresh prev_pc value before resuming.
8548 (stop_stepping): Remove code to refresh prev_pc.
8549
8550 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8551
8552 * nto-tdep.c: Removed stray comment.
8553
8554 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8555
8556 * i386-nto-tdep.c: Fix old K&R function definitions.
8557 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8558 Also change add_show_from_set() call to add_setshow_cmd().
8559 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8560
8561 2003-05-05 Andrew Cagney <cagney@redhat.com>
8562
8563 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8564 (fprint_dummy_frames): New function.
8565 (maintenance_print_dummy_frames): New function.
8566 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8567 * frame.c (fprint_frame_id): Make global.
8568 * frame.h (fprint_frame_id): Declare.
8569 * Makefile.in (dummy-frame.o): Update dependencies.
8570
8571 2003-05-05 Andrew Cagney <cagney@redhat.com>
8572
8573 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8574 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8575 SIZEOF_CALL_DUMMY_WORDS.
8576 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8577 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8578 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8579 CALL_DUMMY_BREAKPOINT_OFFSET.
8580 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8581 CALL_DUMMY_START_OFFSET.
8582 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8583 * gdbarch.h, gdbarch.c: Re-generate.
8584 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8585 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8586 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8587 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8588 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8589 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8590 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8591 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8592 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8593 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8594 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8595 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8596 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8597 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8598 * config/sparc/tm-sparc.h: Update.
8599
8600 2003-05-05 Kris Warkentin <kewarken@qnx.com>
8601
8602 * configure.tgt: Add i[3456]86-*-nto*.
8603 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8604 * nto-tdep.c: New file. Neutrino target support routines.
8605 * nto-tdep.h: New file. Neutrino target header.
8606 * config/tm-qnxnto.h: New file.
8607 * config/i386/i386nto.mt: New file.
8608 * config/i386/tm-i386nto.h: New file.
8609
8610 2003-05-04 Andrew Cagney <cagney@redhat.com>
8611
8612 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8613 (load_infrun_state): Ditto.
8614 (struct thread_info): Drop "prev_func_name" field.
8615 * thread.c (load_infrun_state): Update.
8616 (save_infrun_state): Update.
8617 * infrun.c (prev_func_name): Delete variable.
8618 (init_wait_for_inferior): Do not clear prev_func_name.
8619 (stop_stepping, keep_going, context_switch): Do not swap
8620 prev_func_name.
8621 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8622 instead of PC_IN_SIGTRAMP.
8623
8624 2003-05-04 Andrew Cagney <cagney@redhat.com>
8625
8626 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8627 REGISTER_BYTE with register_offset_hack.
8628 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8629 that REGISTER_BYTE is consistent with the regcache.
8630 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8631 * gdbarch.h, gdbarch.c: Regenerate.
8632
8633 2003-05-04 Mark Kettenis <kettenis@gnu.org>
8634
8635 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8636 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8637
8638 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8639
8640 2003-05-03 J. Brobecker <brobecker@gnat.com>
8641
8642 From Thierry Schneider <tpschneider1@yahoo.com>
8643 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8644 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8645 (mi-cmd-symbol.o): Add rule.
8646
8647 2003-05-03 Andrew Cagney <cagney@redhat.com>
8648
8649 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8650 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8651 * gdbarch.h, gdbarch.c: Re-generate.
8652 * d10v-tdep.c (d10v_push_dummy_code): New function.
8653 (d10v_gdbarch_init): Set push_dummy_code.
8654 * infcall.c (legacy_push_dummy_code): New function.
8655 (generic_push_dummy_code): New function.
8656 (push_dummy_code): New function.
8657 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8658 instead of dummy_addr, to push_dummy_call. Move call to
8659 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8660 switch.
8661 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8662
8663 2003-05-03 Andrew Cagney <cagney@redhat.com>
8664
8665 * disasm.h (print_insn): Declare.
8666 * disasm.c (init_gdb_disassemble_info): New function.
8667 (gdb_disassembly): Call init_gdb_disassemble_info.
8668 (gdb_print_insn): New function.
8669 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8670 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8671 * mcore-tdep.c: Include "disasm.h"
8672 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8673 * d10v-tdep.c: Include "disasm.h".
8674 (display_trace): Call gdb_print_insn, instead of print_insn.
8675 (print_insn): Delete function.
8676 * printcmd.c: Include "disasm.h".
8677 (print_insn): Delete function.
8678 (print_formatted): Call gdb_print_insn, instead of print_insn.
8679 * Makefile.in (printcmd.o): Update dependencies.
8680 (mcore-tdep.o, d10v-tdep.o): Ditto.
8681
8682 2003-05-02 Andrew Cagney <cagney@redhat.com>
8683
8684 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8685 PC_REGNUM, re-indent.
8686 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8687 PC_REGNUM isn't set.
8688
8689 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8690 * gdbarch.h, gdbarch.c: Re-generate.
8691 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8692 register_virtual_size, pc_regnum, or register_bytes.
8693 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8694 (d10v_register_type): Use D10V_PC_REGNUM.
8695 (d10v_print_registers_info, d10v_read_pc): Ditto.
8696 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8697 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8698
8699 2003-05-02 David Carlton <carlton@bactrian.org>
8700
8701 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8702 the name with mstrsave.
8703
8704 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
8705
8706 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8707 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8708 (host_charset_name, target_charset_name): New vars for use by
8709 set/show commands.
8710 (host_charset_enum, target_charset_enum): New enums for set/show
8711 commands.
8712 (set_charset_sfunc, set_host_charset_sfunc,
8713 set_target_charset_sfunc): New functions.
8714 (set_host_charset, set_target_charset): Make static.
8715 (list_charsets, set_host_charset_command,
8716 set_target_charset_command): Delete functions.
8717 (show_charset_command): Rewrite as....
8718 (show_charset): Hook this up with the set/show command mechanism.
8719 (_initialize_charset): Change names of charsets to match the
8720 set/show enums. Use host_charset_name and target_charset_name.
8721 Use set/show mechanism for charset, host-charset, target-charset
8722 commands. Do not make 'show host-charset' and 'show
8723 target-charset' be aliases of 'show charset'.
8724
8725 * charset.h (set_host_charset, set_target_charset): Don't export,
8726 they are not used outside the file.
8727
8728 2003-05-01 Andrew Cagney <cagney@redhat.com>
8729
8730 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8731 (gdb_disassembly): Make "di" non static, always initialize and
8732 cleanup. Always use dis_asm_read_memory.
8733 (gdb_dis_asm_read_memory): Delete function.
8734
8735 2003-05-01 Andrew Cagney <cagney@redhat.com>
8736
8737 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8738 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8739
8740 2003-04-30 Andrew Cagney <cagney@redhat.com>
8741
8742 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8743 "tm_print_insn_info".
8744 (TARGET_PRINT_INSN_INFO): Delete macro.
8745 (dis_asm_read_memory): Delete function declaration.
8746 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8747 (tm_print_insn_info): Delete variable definition.
8748 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8749 * gdbarch.h, gdbarch.c: Re-generate.
8750 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8751 "deprecated_tm_print_insn_info".
8752 * mcore-tdep.c (mcore_dump_insn): Ditto.
8753 * mips-tdep.c (mips_gdbarch_init): Ditto.
8754 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8755 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8756 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8757 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8758 instead of TARGET_PRINT_INSN_INFO, add comment.
8759 * s390-tdep.c (s390_get_frame_info): Instead of
8760 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8761 (s390_check_function_end, s390_is_sigreturn): Ditto.
8762 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8763 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8764 * disasm.c: Include "gdbcore.h".
8765 (_initialize_disasm): New function, initialize
8766 "deprecated_tm_print_insn_info".
8767 (deprecated_tm_print_insn_info): New variable.
8768 (dis_asm_read_memory): Moved from "corefile.c", made static.
8769 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8770 * Makefile.in (disasm.o): Update dependencies.
8771
8772 2003-04-30 Andrew Cagney <cagney@redhat.com>
8773
8774 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8775
8776 2003-04-29 Adam Fedor <fedor@gnu.org>
8777
8778 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8779 * infcall.c (find_function_addr): Make non-static.
8780 * infcall.h (find_function_addr): Declare.
8781 * Makefile.in (eval.o): Update dependencies.
8782
8783 2003-04-28 Adam Fedor <fedor@gnu.org>
8784
8785 * symtab.c (symbol_find_demangled_name): Check for and demangle
8786 ObjC symbols.
8787 (symbol_init_demangled_name): Init for language_objc as well.
8788
8789 2003-04-28 Andrew Cagney <cagney@redhat.com>
8790
8791 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8792 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8793 * gdbarch.h, gdbarch.c: Re-generate.
8794 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8795 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8796 * inferior.h (deprecated_read_fp): Rename read_fp.
8797 (generic_target_read_fp): Delete declaration.
8798 * regcache.c (generic_target_read_fp): Delete function.
8799 (deprecated_read_fp): Replace read_fp, use
8800 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8801 * d10v-tdep.c (d10v_read_fp): Delete function.
8802 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8803
8804 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8805 deprecated_target_read_fp to generic_target_read_fp.
8806 * sh-tdep.c (sh_gdbarch_init): Ditto.
8807 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8808 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8809 * frv-tdep.c (frv_gdbarch_init): Ditto.
8810
8811 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8812 deprecated_fp_regnum.
8813 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8814 * vax-tdep.c (vax_gdbarch_init): Ditto.
8815 * v850-tdep.c (v850_gdbarch_init): Ditto.
8816 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8817 * sh-tdep.c (sh_gdbarch_init): Ditto.
8818 * s390-tdep.c (s390_gdbarch_init): Ditto.
8819 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8820 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8821 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8822 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8823 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8824 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8825 * i386-tdep.c (i386_gdbarch_init): Ditto.
8826 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8827 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8828 * frv-tdep.c (frv_gdbarch_init): Ditto.
8829 * cris-tdep.c (cris_gdbarch_init): Ditto.
8830 * avr-tdep.c (avr_gdbarch_init): Ditto.
8831 * arm-tdep.c (arm_gdbarch_init): Ditto.
8832 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8833
8834 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8835 * v850-tdep.c (v850_gdbarch_init): Ditto.
8836 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8837 * sh-tdep.c (sh_gdbarch_init): Ditto.
8838 * s390-tdep.c (s390_gdbarch_init): Ditto.
8839 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8840 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8841 * mips-tdep.c (mips_gdbarch_init): Ditto.
8842 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8843 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8844 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8845 * frv-tdep.c (frv_gdbarch_init): Ditto.
8846 * avr-tdep.c (avr_gdbarch_init): Ditto.
8847 * arm-tdep.c (arm_gdbarch_init): Ditto.
8848
8849 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8850 DEPRECATED_FP_REGNUM.
8851 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8852 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8853 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8854 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8855 (sparc32_register_virtual_type): Ditto.
8856 * sh-tdep.c (sh64_frame_chain): Ditto.
8857 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8858 (sh_nofp_frame_init_saved_regs): Ditto.
8859 (sh64_nofp_frame_init_saved_regs): Ditto.
8860 (sh_fp_frame_init_saved_regs): Ditto.
8861 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8862 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8863 * procfs.c (procfs_fetch_registers): Ditto.
8864 (procfs_store_registers): Ditto.
8865 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8866 (store_inferior_registers, fetch_core_registers): Ditto.
8867 (fetch_kcore_registers, clear_regs): Ditto.
8868 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8869 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8870 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8871 * nlm/i386.c (do_status): Ditto.
8872 * mipsv4-nat.c (supply_gregset): Ditto.
8873 * mips-tdep.c: Ditto for comments.
8874 * mips-nat.c (fetch_inferior_registers): Ditto.
8875 (store_inferior_registers, fetch_core_registers): Ditto.
8876 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8877 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8878 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8879 (i386_do_pop_frame, i386_register_type): Ditto.
8880 * hppa-tdep.c (hppa_frame_chain): Ditto.
8881 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8882 (hppa_pop_frame, hppa_read_fp): Ditto.
8883 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8884 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8885 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8886 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8887 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8888 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8889 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8890 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8891 * blockframe.c: Ditto for comments.
8892 * arch-utils.h: Ditto for comments.
8893 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8894 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8895 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8896 * alpha-tdep.h: Ditto for comments.
8897 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8898 (alpha_cannot_store_register): Ditto.
8899 (alpha_push_dummy_frame): Ditto.
8900 * alpha-nat.c (supply_gregset): Ditto.
8901
8902 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8903 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8904 * config/sparc/tm-sparc.h: Update comment.
8905
8906 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8907 deprecated_read_fp instead of TARGET_READ_FP.
8908 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8909 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8910 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8911 deprecated_read_fp instead of read_fp.
8912 * s390-tdep.c (s390_push_arguments): Ditto.
8913 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8914 * frame.h: Ditto in comments.
8915 * frame.c (legacy_get_prev_frame): Ditto.
8916 * dummy-frame.c (dummy_frame_this_id): Ditto.
8917 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8918
8919 2003-04-28 Andrew Cagney <cagney@redhat.com>
8920
8921 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8922 * gdbarch.h, gdbarch.c: Re-generate.
8923 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8924 * vax-tdep.c (_initialize_vax_tdep): Update.
8925 * v850-tdep.c (_initialize_v850_tdep): Update.
8926 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8927 * s390-tdep.c (_initialize_s390_tdep): Update.
8928 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8929 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8930 * mips-tdep.c (_initialize_mips_tdep): Update.
8931 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8932 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8933 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8934 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8935 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8936 * frv-tdep.c (_initialize_frv_tdep): Update.
8937 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8938 (_initialize_cris_tdep): Update.
8939 * arch-utils.c (legacy_print_insn): Update.
8940 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8941
8942 2003-04-26 Adam Fedor <fedor@gnu.org>
8943
8944 * linespec.c (decode_objc): New function to decode ObjC calls
8945 (decode_line_1): Check for ObjC calls (using decode_objc)
8946 * Makefile (linespec.o): Update dependencies.
8947
8948 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
8949
8950 * breakpoint.h (struct breakpoint_ops): New.
8951 (struct breakpoint): Add ops member.
8952
8953 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8954 (mention): Use new breakpoint ops member.
8955 (set_raw_breakpoint): Initialize ops field to NULL.
8956 (print_exception_catchpoint, print_one_exception_catchpoint)
8957 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8958 (gnu_v3_exception_catchpoint_ops): New.
8959 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8960
8961 2003-04-25 Adam Fedor <fedor@gnu.org>
8962
8963 * Makefile.in (COMMON_OBS): Add objc-lang.o
8964
8965 2003-04-25 Andrew Cagney <cagney@redhat.com>
8966
8967 * d10v-tdep.c (print_insn): Delete function.
8968 (display_trace): Use TARGET_PRINT_INSN.
8969 (_initialize_d10v_tdep): Do not set tm_print_insn.
8970 (d10v_gdbarch_init): Set print_insn.
8971
8972 2003-04-25 Andrew Cagney <cagney@redhat.com>
8973
8974 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8975 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8976 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8977 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8978 (nr_dmap_regs, a0_regnum): ... new functions.
8979 (d10v_print_registers_info): Use a0_regnum, use register_size.
8980 (d10v_register_byte): Delete function.
8981 (d10v_register_raw_size): Delete function.
8982 (d10v_register_type): Use a0_regnum.
8983 (d10v_print_registers_info): Use a0_regnum.
8984 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8985 (d10v_gdbarch_init): Do not set register_byte or
8986 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8987 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8988 extract_address.
8989 (trace_command): Use XCALLOC.
8990 (print_insn): Delete reference to tm_print_insn.
8991 (saved_regs_unwinder): Use store_unsigned_integer instead of
8992 store_address.
8993 * frame.h (FRAME_OBSTACK_CALLOC): Define
8994
8995 2003-04-25 David Carlton <carlton@bactrian.org>
8996
8997 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8998
8999 2003-04-24 Adam Fedor <fedor@gnu.org>
9000
9001 * objc-lang.c: Include "valprint.h"
9002 * Makefile.in (objc-lang.o): Update dependencies.
9003
9004 2003-04-24 Adam Fedor <fedor@gnu.org>
9005
9006 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9007 architecture dependant compilation and mark as unimplemented
9008 (until they get put in the gdbarch vector).
9009
9010 2003-04-23 David Carlton <carlton@bactrian.org>
9011
9012 * cp-support.c (cp_find_first_component): Accept 'operator' in
9013 more locations.
9014
9015 2003-04-23 Andrew Cagney <cagney@redhat.com>
9016
9017 * infcall.c (call_function_by_hand): Eliminate redundant
9018 indentation. Move "saved_async" and "old_cleanups" to where they
9019 are needed.
9020
9021 2003-04-23 Andrew Cagney <cagney@redhat.com>
9022
9023 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9024 and "buffer". Move the "name" code to where it is needed.
9025
9026 2003-04-23 Andrew Cagney <cagney@redhat.com>
9027
9028 * infcall.c (call_function_by_hand): Move variables "start_sp",
9029 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9030 code to ON_STACK switch branch.
9031
9032 2003-04-23 Andrew Cagney <cagney@redhat.com>
9033
9034 * infcall.c (call_function_by_hand): Make declaration of "i",
9035 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9036 lint.
9037
9038 2003-04-23 Andrew Cagney <cagney@redhat.com>
9039
9040 * infcall.c (call_function_by_hand): Delete variable
9041 "n_method_args". Localize "param_type"'s declaration to the loop
9042 that it is used. Reinstate code assigning to said variable -
9043 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9044 Rationalize code using "param_type".
9045
9046 2003-04-22 Andrew Cagney <cagney@redhat.com>
9047
9048 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9049 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9050 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9051 to DEPRECATED_PUSH_RETURN_ADDRESS.
9052
9053 2003-04-22 Kevin Buettner <kevinb@redhat.com>
9054
9055 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9056 on the DWARF2 register number prior to fetching a register.
9057
9058 2003-04-22 J. Brobecker <brobecker@gnat.com>
9059
9060 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9061 Update all the tests using SOFT_FLOAT considering the fact that
9062 this macro was always set to 0.
9063 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9064 considering the fact that this macro was always set to 0.
9065 * hppa-tdep.h (hppa_store_return_value): Likewise.
9066 (hppa_extract_return_value): Likewise.
9067
9068 2003-04-22 J. Brobecker <brobecker@gnat.com>
9069
9070 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9071 the hppa-pro target only.
9072
9073 2003-04-21 J. Brobecker <brobecker@gnat.com>
9074
9075 Ongoing multi-arch conversion effort for HP/UX:
9076 * config/pa/tm-hppa.h: Move all macro that are no longer
9077 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9078 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9079
9080 2003-04-21 J. Brobecker <brobecker@gnat.com>
9081
9082 * config/pa/tm-hppa.h: Obsolete a section that was only used
9083 for hppa-pro.
9084
9085 2003-04-21 J. Brobecker <brobecker@gnat.com>
9086
9087 Ongoing multi-arch conversion for HP/UX.
9088 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9089 if already defined (allows hppa64 to stay non-multiarched for now).
9090 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9091
9092 2003-04-21 Andrew Cagney <cagney@redhat.com>
9093
9094 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9095
9096 2003-04-21 Andrew Cagney <cagney@redhat.com>
9097
9098 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9099 "i386_num_mmx_regs".
9100
9101 2003-04-21 Andrew Cagney <cagney@redhat.com>
9102
9103 * infcall.c: New file.
9104 * infcall.h: New file.
9105 * valarith.c: Include "infcall.h".
9106 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9107 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9108 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9109 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9110 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9111 (SFILES): Add "infcall.c"
9112 (COMMON_OBS): Add "infcall.o".
9113 (infcall.o): Specify dependencies.
9114 * value.h (call_function_by_hand): Delete declaration.
9115 * inferior.h (run_stack_dummy): Delete declaration.
9116 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9117 (run_stack_dummy): Move to "infcall.c", merged into
9118 call_function_by_hand.
9119 * valops.c (call_function_by_hand): Moved to "infcall.c".
9120 (find_function_addr, value_arg_coerce): Ditto.
9121 (unwindonsignal_p, coerce_float_to_double): Ditto.
9122 (_initialize_valops): Move "set/show coerce-float-to-double", and
9123 "set/show unwindonsignal" commands to "infcall.c".
9124 * v850-tdep.c, target.h: Update comments.
9125 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9126 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9127 (sh64_init_extra_frame_info): Update comments.
9128 * mn10300-tdep.c: Update comments.
9129 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9130 * config/sparc/tm-sparc.h: Update comments.
9131 * breakpoint.h: Update comments.
9132 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9133 * arm-tdep.c: Update comment.
9134
9135 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9136
9137 * i386-tdep.c (i386_num_register_names): New variable.
9138 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9139 (MM0_REGNUM): Remove redundant parentheses in define.
9140 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9141 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9142 i386_mxcsr_regnum_p): Remove redundant parentheses.
9143 (i386_register_name): Use i386_num_register_names.
9144
9145 * i386-tdep.c (i386_extract_return_value,
9146 i386_store_return_value): Correct check for availability of
9147 floating-point registers.
9148
9149 * i386-tdep.c (i386_frame_num_args): Remove function.
9150 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9151
9152 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9153 mmx_regnum_to_fp_regnum. Adjust all callers.
9154
9155 * i386-tdep.c (i386_get_longjmp_target): Use
9156 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9157 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9158 extract_address.
9159
9160 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9161
9162 * core-regset.c: Update comments to reflect reality. Re-order
9163 includes.
9164 (fetch_core_registers): Use switch instead of if. Remove
9165 redundant prototype.
9166
9167 2003-04-18 Jim Blandy <jimb@redhat.com>
9168
9169 * s390-tdep.c (s390_frame_align): New function.
9170 (s390_gdbarch_init): Register it with the gdbarch object.
9171
9172 2003-04-17 Richard Henderson <rth@redhat.com>
9173
9174 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9175
9176 2003-04-17 Michael Snyder <msnyder@redhat.com>
9177 Karen Bennet <bennet@redhat.com>
9178
9179 Committed by Elena Zannoni <ezannoni@redhat.com>
9180 * gdb_gcore.sh: New script to create a core dump of a process.
9181
9182 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
9183
9184 * values.c (value_being_returned): Don't fetch the return
9185 value if the return type is void.
9186
9187 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9188
9189 * thread-db.c: Reindented.
9190
9191 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9192
9193 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9194 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9195 as types.
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221 2003-04-16 Kevin Buettner <kevinb@redhat.com>
9222
9223 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9224 the size of ``long double'' to 16, instead of 8.
9225
9226 2003-04-16 Mark Kettenis <kettenis@gnu.org>
9227
9228 * i386-linux-nat.c: Add some whitespace to make things more
9229 readable.
9230 (fetch_register, store_register, fetch_inferior_registers,
9231 store_inferior_registers): Get rid of assignment in if-statement.
9232 (store_register): Fix typo in error message.
9233
9234 2003-04-16 Andrew Cagney <cagney@redhat.com>
9235
9236 * utils.c (xmmalloc): Always allocate something, matches
9237 libiberty/xmalloc's semantics.
9238 (xmrealloc, xmcalloc): Ditto.
9239
9240 2003-04-16 Andrew Cagney <cagney@redhat.com>
9241
9242 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9243 update comments.
9244 (get_frame_type): Initialize unwind and type when needed.
9245 (get_frame_id, frame_register_unwind): Ditto.
9246
9247 2003-04-16 Andrew Cagney <cagney@redhat.com>
9248
9249 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9250 obsolete.
9251 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9252 * sparcl-stub.c: Obsolete file.
9253 * config/sparc/tm-sparclet.h: Obsolete file.
9254 * sparclet-stub.c: Obsolete file.
9255 * sparclet-rom.c: Obsolete file.
9256 * sparcl-tdep.c: Obsolete file.
9257 * config/sparc/tm-sparclite.h: Obsolete file.
9258 * config/sparc/sparclite.mt: Obsolete file.
9259 * config/sparc/sparclet.mt: Obsolete file.
9260 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9261 sparc86x-*-* obsolete.
9262
9263 2003-04-15 David Carlton <carlton@math.stanford.edu>
9264
9265 * Makefile.in (SFILES): Add cp-namespace.c.
9266 (COMMON_OBS): Add cp-namespace.o.
9267 (block.o): Depend on gdb_obstack_h and cp_support_h.
9268 (buildsym.o): Depend on cp_support_h.
9269 (cp-namespace.o): New.
9270 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9271 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9272 (dwarf2read.o): Depend on cp_support_h.
9273 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9274 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9275 processing_current_namespace.
9276 (read_namespace): Update processing_current_namespace; check for
9277 anonymous namespaces.
9278 (dwarf2_name): New function.
9279 (dwarf2_extension): Ditto.
9280 * cp-support.h: Update copyright, contributors.
9281 Add inclusion guards.
9282 Add opaque declaration for structs obstack, block, symbol.
9283 (struct using_direct): New struct.
9284 Add declarations for cp_find_first_component,
9285 cp_entire_prefix_len, processing_has_namespace_info,
9286 processing_current_namespace, cp_is_anonymous,
9287 cp_add_using_directive, cp_initialize_namespace,
9288 cp_finalize_namespace, cp_set_block_scope,
9289 cp_scan_for_anonymous_namespaces.
9290 * cp-namespace.c: New file.
9291 * cp-support.c: Update copyright.
9292 Include ctype.h, gdb_assert.h, gdbcmd.h.
9293 New variable maint_cplus_cmd_list.
9294 (cp_find_first_component): New function.
9295 (cp_entire_prefix_len, maint_cplus_command)
9296 (first_component_command, _initialize_cp_support): Ditto.
9297 * buildsym.c: Include cp-support.h.
9298 New variable using_list.
9299 (add_symbol_to_list): Check for anonymous namespaces.
9300 (finish_block): Set block's scope.
9301 (start_symtab): Initialize C++ namespace support.
9302 (end_symtab): Finalize C++ namespace support.
9303 * block.h: Add opaque declarations for structs
9304 block_namespace_info, using_direct, and obstack.
9305 Add declarations for block_set_scope and block_set_using.
9306 (struct block): Add 'language_specific' member.
9307 (BLOCK_NAMESPACE): New macro.
9308 * block.c: Include gdb_obstack.h and cp-support.h.
9309 (struct block_namespace_info): New struct.
9310 (block_set_scope): New function.
9311 (block_set_using, block_initialize_namespace): Ditto.
9312
9313 2003-04-14 Kevin Buettner <kevinb@redhat.com>
9314
9315 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9316 (locate_base): Return early if there aren't any link map offsets.
9317 (svr4_solib_create_inferior_hook): Warn if shared library support
9318 is unavailable.
9319
9320 2003-04-14 David Carlton <carlton@math.stanford.edu>
9321
9322 * symtab.c (symbol_set_names): Add prefix when storing Java names
9323 in hash table. Fix for PR java/1039.
9324
9325 2003-04-14 David Carlton <carlton@math.stanford.edu>
9326
9327 * symtab.c (symbol_set_names): Rename 'name' arg to
9328 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9329 * symtab.h: Change 'name' argument in declaration of
9330 symbol_set_names to 'linkage_name'.
9331 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9332
9333 2003-04-14 Andrew Cagney <cagney@redhat.com>
9334
9335 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9336 return the fully sign-extended register value.
9337 (get_frame_pointer): Ditto.
9338 (mips_pop_frame): Initialize "proc_desc" after checking for a
9339 dummy frame.
9340
9341 2003-04-14 Andrew Cagney <cagney@redhat.com>
9342
9343 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9344 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9345 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9346 (mips_push_register): Delete function.
9347 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9348 PUSH_FP_REGNUM.
9349
9350 2003-04-14 Jim Blandy <jimb@redhat.com>
9351
9352 * symmisc.c: #include "gdb_regex.h".
9353 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9354 functions.
9355 * maint.c (maintenance_list_command): New function.
9356 (_initialize_maint_cmds): Register the above as commands.
9357 * symtab.h (maintenance_list_symtabs,
9358 maintenance_list_psymtabs): New declarations.
9359 * cli/cli-cmds.c (maintenancelistlist): New variable.
9360 (init_cmd_lists): Initialize it.
9361 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9362 * gdbcmd.h (maintenancelistlist): New declaration.
9363 * Makefile.in (symmisc.o): Update dependencies.
9364
9365 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
9366
9367 * s390-nat.c: Include asm/types.h for addr_t.
9368
9369 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
9370
9371 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9372 actually incoming type.
9373
9374 2003-04-13 Andrew Cagney <cagney@redhat.com>
9375
9376 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9377 get_next_frame and get_frame_saved_regs.
9378
9379 2003-04-13 Andrew Cagney <cagney@redhat.com>
9380
9381 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9382 of gdbarch_num_regs.
9383
9384 2003-04-13 Andrew Cagney <cagney@redhat.com>
9385
9386 * frame.h: Mention what replaced what in "struct frame_info".
9387 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9388 deprecated_update_frame_base_hack and
9389 deprecated_update_frame_pc_hack.
9390 * hppa-tdep.c: Ditto.
9391
9392 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9393
9394 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9395 to read_reg and update its comment. Remove regnum member.
9396 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9397 Don't call read_reg when setting in_reg. Call read_reg to get
9398 the frame base if it's in a register. Return the register number
9399 on the stack instead of in the context. Remove extra arguments
9400 to read_reg.
9401 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9402 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9403 the register number on the expression stack.
9404 (needs_frame_read_reg): Remove extra arguments.
9405
9406 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9407
9408 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9409 made non-static.
9410 (execute_stack_op): All callers updated.
9411 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9412 * dwarf2loc.c (find_location_expression): New function.
9413 (dwarf_expr_frame_base): Call it.
9414 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9415 (dwarf2_tracepoint_var_ref): New function, broken out from
9416 locexpr_tracepoint_var_ref.
9417 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9418 Make static.
9419 (loclist_read_variable, loclist_read_needs_frame): New functions.
9420 (loclist_describe_location, loclist_tracepoint_var_ref): New
9421 functions.
9422 (dwarf2_loclist_funcs): New struct location_funcs.
9423 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9424 (struct dwarf2_locexpr_baton): Add comments.
9425 (dwarf2_loclist_funcs): New extern.
9426 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9427 base_address and base_known.
9428 (dwarf_loc_buffer): New variable.
9429 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9430 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9431 (dwarf2_has_info): Initialize dwarf_loc_offset.
9432 (dwarf2_build_psymtabs): Read in .debug_loc.
9433 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9434 DWARF_LOC_SIZE.
9435 (psymtab_to_symtab_1): Likewise. Move base address calculation
9436 here, from...
9437 (dwarf2_get_pc_bounds): ... here. Use the base address from
9438 cu_header.
9439 (dwarf2_symbol_mark_computed): Handle location lists.
9440
9441 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9442
9443 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9444 if the linkage name demangled successfully.
9445
9446 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9447
9448 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9449 disassmbly_flavour): Removed.
9450
9451 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9452
9453 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9454
9455 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9456
9457 2003-04-12 Andrew Cagney <cagney@redhat.com>
9458
9459 * frame.h (struct frame_info): Move definition from here ...
9460 * frame.c (struct frame_info): ... to here.
9461
9462 2003-04-12 Andrew Cagney <cagney@redhat.com>
9463
9464 * gdbthread.h (save_infrun_state): Delete parameter
9465 "prev_func_start".
9466 (struct thread_info): Delete field "prev_func_start".
9467 (load_infrun_state): Ditto.
9468 * thread.c (load_infrun_state, save_infrun_state): Update.
9469 * infrun.c (prev_func_start): Delete variable.
9470 (context_switch, init_wait_for_inferior): Update.
9471 (stop_stepping, keep_going): Update.
9472
9473 2003-04-12 Andrew Cagney <cagney@redhat.com>
9474
9475 * gdbarch.sh: Add missing opaque declarations.
9476 * gdbarch.h: Regnerate.
9477 * symtab.h: Add missing opaque declarations.
9478 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9479 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9480 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9481 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9482 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9483 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9484 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9485 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9486 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9487 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9488 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9489 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9490 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9491
9492 2003-04-11 Andrew Cagney <cagney@redhat.com>
9493
9494 * frame.c (get_frame_id): Return this frame's "id".
9495 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9496 function start.
9497 (legacy_saved_regs_this_id): Replace function body with
9498 internal-error.
9499 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9500 FRAME_OBSTACK_ZALLOC.
9501 (create_new_frame): Mark the frame ID as valid.
9502
9503 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
9504
9505 * Makefile.in (libbfd_h): Added missing setting.
9506 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9507 according to the selected ABI.
9508
9509 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9510
9511 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9512
9513 2003-04-11 Andrew Cagney <cagney@redhat.com>
9514
9515 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9516 SAVED_PC_AFTER_CALL.
9517 * gdbarch.h, gdbarch.c: Regenerate.
9518 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9519 * x86-64-tdep.c (x86_64_init_abi): Update.
9520 * vax-tdep.c (vax_gdbarch_init): Update.
9521 * v850-tdep.c (v850_gdbarch_init): Update.
9522 * sparc-tdep.c (sparc_gdbarch_init): Update.
9523 * sh-tdep.c (sh_gdbarch_init): Update.
9524 * s390-tdep.c (s390_gdbarch_init): Update.
9525 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9526 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9527 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9528 * mips-tdep.c (mips_gdbarch_init): Update.
9529 * mcore-tdep.c (mcore_gdbarch_init): Update.
9530 * m68k-tdep.c (m68k_gdbarch_init): Update.
9531 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9532 * ia64-tdep.c (ia64_gdbarch_init): Update.
9533 (ia64_saved_pc_after_call): Update declaration.
9534 * i386ly-tdep.c (i386lynx_init_abi): Update.
9535 * i386-tdep.c (i386_gdbarch_init): Update.
9536 * hppa-tdep.c (hppa_gdbarch_init): Update.
9537 * h8300-tdep.c (h8300_gdbarch_init): Update.
9538 * frv-tdep.c (frv_gdbarch_init): Update.
9539 * cris-tdep.c (cris_gdbarch_init): Update.
9540 * avr-tdep.c (avr_gdbarch_init): Update.
9541 * arm-tdep.c (arm_gdbarch_init): Update.
9542 * alpha-tdep.c (alpha_gdbarch_init): Update.
9543 * ns32knbsd-nat.c (frame_num_args): Update.
9544 * ns32k-tdep.c (umax_frame_num_args): Update.
9545 * mips-tdep.c (mips_init_frame_pc_first): Update.
9546 * infrun.c (step_over_function): Update.
9547 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9548 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9549 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9550 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9551 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9552 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9553 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9554 * arch-utils.c (init_frame_pc_default): Update.
9555 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9556 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9557 declaration.
9558
9559 2003-04-11 Andrew Cagney <cagney@redhat.com>
9560
9561 * i387-tdep.c: Update copyright.
9562 (i387_to_double): Delete function.
9563 (double_to_i387): Delete function.
9564
9565 2003-04-10 Andrew Cagney <cagney@redhat.com>
9566
9567 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9568 frame's function's address. Simplify.
9569 (d10v_frame_unwind_cache): Check that the frame's function is
9570 non-zero.
9571
9572 2003-04-10 Jim Blandy <jimb@redhat.com>
9573
9574 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9575 call to set_gdbarch_deprecated_push_arguments.
9576
9577 2003-04-10 Andrew Cagney <cagney@redhat.com>
9578
9579 * frame.c (fprint_frame_id): New function.
9580 (fprint_frame_type, fprint_frame): New function.
9581 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9582 (create_sentinel_frame, get_frame_id): Ditto.
9583 (frame_id_p, frame_id_eq): Ditto.
9584 (frame_id_inner, create_new_frame): Ditto.
9585 (legacy_get_prev_frame, get_prev_frame): Ditto.
9586 (deprecated_update_frame_pc_hack): Ditto.
9587 (frame_register_unwind): Ditto.
9588 (deprecated_update_frame_base_hack): Ditto.
9589
9590 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9591
9592 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9593 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9594 frame_chain function.
9595 * Makefile.in: Add dependencies due to above change.
9596
9597 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9598
9599 * blockframe.c (legacy_frame_chain_valid): Move call to
9600 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9601 inside_entry_file.
9602
9603 2003-04-09 Andrew Cagney <cagney@redhat.com>
9604
9605 * frame.h (struct frame_id): Replace "pc" and "base" with
9606 "stack_addr" and "code_addr". Update comments.
9607 (frame_id_build): Update parameter names and comment.
9608 (struct frame_info): Replace "id_p" and "id" with "this_id".
9609 * dummy-frame.c (dummy_frame_this_id): Update.
9610 * breakpoint.c (print_one_breakpoint): Update.
9611 * frame.c (get_frame_id): Update.
9612 (get_frame_base, frame_id_build): Update.
9613 (create_sentinel_frame, legacy_get_prev_frame): Update.
9614 (deprecated_update_frame_base_hack): Update.
9615 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9616 (frame_id_inner): Ditto.
9617
9618 2003-04-09 Andrew Cagney <cagney@redhat.com>
9619
9620 * defs.h (gdb_print_host_address): Make "addr" parameter a
9621 pointer constant.
9622 * utils.c (gdb_print_host_address): Update.
9623
9624 2003-04-09 Kevin Buettner <kevinb@redhat.com>
9625
9626 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9627 register number for R0 is 0.
9628
9629 2003-04-09 J. Brobecker <brobecker@gnat.com>
9630
9631 * frame.h (struct gdbarch): Add opaque structure definition
9632 to avoid a compilation warning on LynxOS 4.0.
9633
9634 2003-04-09 Andrew Cagney <cagney@redhat.com>
9635
9636 * frame.h (struct frame_info): Delete field "pc". Replace
9637 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9638 structure.
9639 * frame.c (frame_pc_unwind): Update.
9640 (create_sentinel_frame): Do not set "pc".
9641 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9642 (get_frame_pc): Call frame_pc_unwind.
9643 (deprecated_update_frame_pc_hack): Update.
9644 (create_new_frame): Use "pc" not "->pc".
9645
9646 2003-04-09 Andrew Cagney <cagney@redhat.com>
9647
9648 * frame.c (get_frame_id): Eliminate code updating "frame".
9649 (legacy_get_prev_frame): Ditto.
9650 (get_frame_base): Return id.base directly.
9651 (deprecated_update_frame_base_hack): Update "id.base".
9652 * frame.h (struct frame_info): Delete field "frame".
9653
9654 2003-04-09 Andrew Cagney <cagney@redhat.com>
9655
9656 * NEWS: Mention that the "Sequent family" is obsolete.
9657 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9658 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9659 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9660 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9661 * config/i386/tm-ptx4.h: Obsolete file.
9662 * config/i386/tm-ptx.h: Obsolete file.
9663 * symm-tdep.c: Obsolete file.
9664 * config/i386/symmetry.mt: Obsolete file.
9665 * config/i386/tm-symmetry.h: Obsolete file.
9666 * symm-nat.c: Obsolete file.
9667 * config/i386/nm-symmetry.h: Obsolete file.
9668 * config/i386/xm-symmetry.h: Obsolete file.
9669 * config/i386/symmetry.mh: Obsolete file.
9670 * config/i386/nm-ptx4.h: Obsolete file.
9671 * config/i386/ptx4.mh: Obsolete file.
9672 * config/i386/ptx.mt: Obsolete file.
9673 * config/i386/ptx.mh: Obsolete file.
9674 * config/i386/xm-ptx4.h: Obsolete file.
9675 * config/i386/xm-ptx.h: Obsolete file.
9676
9677 2003-04-09 Andrew Cagney <cagney@redhat.com>
9678
9679 Obsolete mips*-*-mach3*.
9680 * NEWS: Mention that mips*-*-mach3* is obsolete.
9681 * m3-nat.c: Obsolete file.
9682 * config/nm-m3.h: Obsolete file.
9683 * config/mips/tm-mipsm3.h: Obsolete file.
9684 * config/mips/mipsm3.mt: Obsolete file.
9685 * config/mips/mipsm3.mh: Obsolete file.
9686 * config/mips/xm-mipsm3.h: Obsolete file.
9687 * mipsm3-nat.c: Obsolete file.
9688 * configure.host: Obsolete mips-dec-mach3*.
9689 * configure.tgt: Obsolete mips*-*-mach3*.
9690
9691 2003-04-09 Andrew Cagney <cagney@redhat.com>
9692
9693 * doublest.h: Update copyright.
9694 (deprecated_store_floating, deprecated_extract_floating): Rename
9695 store_floating and extract_floating. Update comments.
9696 * doublest.c: Update copyright.
9697 (extract_floating_by_length): Replace extract_floating.
9698 (store_floating_by_length): Replace store_floating.
9699 (deprecated_extract_floating): New function.
9700 (deprecated_store_floating): New function.
9701 (extract_typed_floating): Call extract_floating_by_length.
9702 (store_typed_floating): Call store_floating_by_length.
9703 * x86-64-tdep.c (x86_64_store_return_value): Update.
9704 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9705 (sh64_extract_return_value): Update.
9706 (sh_sh4_register_convert_to_virtual): Update.
9707 (sh_sh64_register_convert_to_virtual): Update.
9708 (sh_sh4_register_convert_to_raw): Update.
9709 (sh_sh64_register_convert_to_raw): Update.
9710 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9711 (rs6000_register_convert_to_raw): Update.
9712 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9713 (ia64_register_convert_to_raw): Update.
9714 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9715 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9716 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9717 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9718 (alpha_register_convert_to_raw): Update.
9719
9720 2003-04-08 Andrew Cagney <cagney@redhat.com>
9721
9722 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9723 * gdbarch.h, gdbarch.c: Re-generate.
9724 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9725 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9726 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9727 conditionally, use frame_pc_unwind as an alternative. Add
9728 comments.
9729 * arch-utils.c (init_frame_pc_default): Only call
9730 SAVED_PC_AFTER_CALL when available.
9731
9732 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9733
9734 * infrun.c (stop_soon): Rename from stop_soon_quietly.
9735 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9736 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9737 (start_remote): Ditto.
9738 (handle_inferior_event): Ditto.
9739 (save_inferior_status): Ditto.
9740 (restore_inferior_status): Ditto.
9741 * infcmd.c (attach_command): Ditto.
9742 * fork-child.c (startup_inferior): Ditto.
9743 * inferior.h (stop_soon): Rename from stop_soon_quietly.
9744 * alpha-tdep.c (heuristic_proc_start): Ditto.
9745 * mips-tdep.c (heuristic_proc_start): Ditto.
9746 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9747 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9748 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9749 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9750 * remote-vx.c (vx_create_inferior): Ditto.
9751
9752 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9753
9754 * infrun.c (stop_soon_quietly): Make it an enum, to better
9755 override the default behavior of handle_inferior_event.
9756 (clear_proceed_status): Update uses of stop_soon_quietly to
9757 reflect that it is now an enum.
9758 (start_remote): Ditto.
9759 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9760 is set to handle the new GNU/Linux kernel behavior for
9761 attach/sigstop. Update uses of stop_soon_quietly.
9762 * inferior.h (enum stop_kind): New enum.
9763 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9764 Reset normal handle_inferior_event behavior, afterwards.
9765 * fork-child.c (startup_inferior): Update.
9766 * alpha-tdep.c (heuristic_proc_start): Update.
9767 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9768 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9769 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9770 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9771 * remote-vx.c (vx_create_inferior): Update.
9772 * mips-tdep.c (heuristic_proc_start): Update.
9773
9774 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
9775
9776 * disasm.c (dump_insns): Move variables inside loop, or they will
9777 be freed more than once, causing wild memory corruptions.
9778 (gdb_disassembly): Look for the substring "-thread",
9779 instead of "-threads" in the target name, to make sure to find
9780 the 'multi-thread' target. Also, make sure we do the right thing
9781 with the "core" target.
9782
9783 2003-04-07 Kevin Buettner <kevinb@redhat.com>
9784
9785 * mips-tdep.c (mips_print_fp_register): New function, created from
9786 do_fp_register_row(). Registers are now (also) printed as hex.
9787 Only one register is printed per row.
9788 (mips_print_register, do_fp_register_row): Print floating point
9789 registers with mips_print_fp_register().
9790
9791 2003-04-06 Andrew Cagney <cagney@redhat.com>
9792
9793 * valprint.h (inspect_it): Add extern declaration.
9794 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9795 (selectors_info, classes_info): Ditto.
9796 (find_objc_msgcall): Fix indentation.
9797 (objc_printstr): Delete extern declarations.
9798
9799 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9800
9801 2003-04-06 Andrew Cagney <cagney@redhat.com>
9802
9803 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9804 Update comment.
9805 * frame.c (legacy_saved_regs_this_id): Update.
9806 (legacy_get_prev_frame): Update.
9807 * xstormy16-tdep.c: Update comment.
9808 * sparc-tdep.c (sparc_frame_chain): Update comment.
9809 * blockframe.c (legacy_frame_chain_valid): Update.
9810
9811 2003-04-06 Andrew Cagney <cagney@redhat.com>
9812
9813 * valprint.c (val_print_type_code_int): Delete #ifdef
9814 PRINT_TYPELESS_INTEGER code.
9815
9816 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9817 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9818 multi-arch definition.
9819 * gdbarch.h: Re-generate.
9820
9821 2003-04-05 Andrew Cagney <cagney@redhat.com>
9822
9823 Eliminate FRAME_FIND_SAVED_REGS.
9824 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9825 Change FSR parameter to a pointer.
9826 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9827 Assume FSR parameter is a pointer.
9828 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9829 Make fsr a pointer.
9830 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9831 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9832 saved_regs a pointer.
9833 (hppa_frame_saved_pc): Ditto.
9834 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9835 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9836 pointer.
9837 (restore_pc_queue): Make fsr a pointer.
9838 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9839 (hppa_frame_chain): Make saved_regs a pointer, call
9840 hppa_frame_init_saved_regs.
9841 * sparc-tdep.c: Include "gdb_assert.h".
9842 (sparc_frame_find_saved_regs): Replace internal_error with
9843 gdb_assert.
9844 * remote-vxsparc.c (vx_read_register): Delete reference to
9845 FRAME_FIND_SAVED_REGS.
9846 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9847 * gdbarch.h: Regenerate.
9848 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9849 (deprecated_get_frame_saved_regs): Delete declaration.
9850 (struct frame_saved_regs): Delete definition.
9851 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9852 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9853 (hppa_frame_find_saved_regs): Delete declaration.
9854 (FRAME_FIND_SAVED_REGS): Delete macro.
9855 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9856 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9857 FRAME_FIND_SAVED_REGS in comment.
9858
9859 2003-04-05 Andrew Cagney <cagney@redhat.com>
9860
9861 * frame.c (frame_func_unwind, get_frame_func): New functions.
9862 * frame.h (get_frame_func, frame_func_unwind): Declare.
9863 (struct frame_info): Add field "prev_func" for caching the
9864 previous frame's function address.
9865 * arm-tdep.c (arm_frameless_function_invocation): Combine
9866 get_pc_function_start and get_frame_pc into get_frame_func.
9867 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9868 (sh64_nofp_frame_init_saved_regs): Ditto.
9869 * s390-tdep.c (s390_function_start): Ditto.
9870 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9871 (rs6000_frameless_function_invocation): Ditto.
9872 (rs6000_frame_saved_pc): Ditto.
9873 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9874 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9875 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9876 (i386_frame_init_saved_regs): Ditto.
9877 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9878 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9879 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9880 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9881 * blockframe.c (frameless_look_for_prologue): Ditto.
9882
9883 2003-04-05 Andrew Cagney <cagney@redhat.com>
9884
9885 * frame.c (legacy_get_prev_frame): Link prev to next at the
9886 function start. Update comments.
9887
9888 2003-04-05 Andrew Cagney <cagney@redhat.com>
9889
9890 * frame.c (get_frame_id): Update comment.
9891 (legacy_get_prev_frame): Update comment.
9892 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9893 * gdbarch.h: Regenerate.
9894 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9895 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9896
9897 2003-04-05 Andrew Cagney <cagney@redhat.com>
9898
9899 * stack.c (print_frame_info): Use get_frame_pc.
9900
9901 2003-04-04 Andrew Cagney <cagney@redhat.com>
9902
9903 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9904 the frame's type from the unwinder.
9905 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9906 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9907 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9908 (get_frame_base_address): Use get_frame_type.
9909 (get_frame_locals_address, get_frame_args_address): Ditto.
9910 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9911 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9912 (struct frame_info): Add comment explaining why the frame contains
9913 a "type" field.
9914 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9915 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9916 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9917 NORMAL_FRAME.
9918 * frame-unwind.h: Include "frame.h".
9919 (struct frame_unwind): Add "type" field.
9920 * Makefile.in (frame_unwind_h): Add $(frame_h).
9921
9922 2003-04-04 Andrew Cagney <cagney@redhat.com>
9923
9924 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9925 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9926 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9927 get_frame_base.
9928 (d10v_unwind_dummy_id): Use frame_id_build.
9929 * frame.c (find_frame_sal): Use get_frame_pc.
9930 (create_new_frame): Use deprecated_update_frame_pc_hack and
9931 deprecated_update_frame_base_hack.
9932 (create_sentinel_frame): Add comment about ->pc going away.
9933 (get_prev_frame): Add comment about ->pc going away.
9934 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9935 frame_id_build, deprecated_update_frame_pc_hack and
9936 deprecated_update_frame_base_hack.
9937 (select_frame): Use get_frame_pc.
9938 (legacy_saved_regs_this_id): Use frame_id_build.
9939
9940 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
9941
9942 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9943 signed integer case.
9944 (classify_argument): Handle enumerations and references.
9945
9946 2003-04-04 Andrew Cagney <cagney@redhat.com>
9947
9948 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9949 ID to NULL.
9950
9951 2003-04-01 Adam Fedor <fedor@gnu.org>
9952
9953 * gdb/objc-lang.c (selectors_info): Replace calls to
9954 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9955 SYMBOL_NATURAL_NAME.
9956 (classes_info, find_methods): Likewise.
9957
9958 2003-04-03 Kevin Buettner <kevinb@redhat.com>
9959
9960 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9961 ``mach'' to the value determined by bfd_default_set_arch_mach().
9962
9963 2003-04-02 Bob Rossi <bob_rossi@cox.net>
9964
9965 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9966 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9967 (mi-cmd-file.o): Update dependencies.
9968
9969 2003-04-01 Kevin Buettner <kevinb@redhat.com>
9970
9971 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9972 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9973
9974 2003-04-01 Adam Fedor <fedor@gnu.org>
9975
9976 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9977 * language.h (struct language_defn): Add la_demangle.
9978 (language_demangle): Declare.
9979 * language.c (language_demangle): New function.
9980 (unk_lang_demangle): Likewise.
9981 (unknown_language_defn, auto_language_defn, local_language_defn):
9982 Add ukn_lang_demangle.
9983 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
9984 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9985 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9986 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9987 * jv-lang.c (java_demangle): New function
9988 (java_language_defn): Use it for la_demangle element.
9989 * objc-lang.c (objc_demangle): Add options argument
9990 (objc_language_defn): Use objc_demangle for la_demangle element.
9991 * maint.c (maintenance_demangle): Replace switch with
9992 call to language_demangle.
9993 * utils.c (fprintf_symbol_filtered): Likewise.
9994
9995 2003-04-01 Andrew Cagney <cagney@redhat.com>
9996
9997 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9998 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9999 PRINT_TYPELESS_INTEGER.
10000 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10001 PUSH_RETURN_ADDRESS.
10002
10003 2003-04-01 Andrew Cagney <cagney@redhat.com>
10004
10005 * Makefile.in (d10v-tdep.o): Update dependencies.
10006 * d10v-tdep.c: Include "frame-base.h".
10007 (d10v_frame_unwind): Make constant.
10008 (d10v_frame_base_address): New function.
10009 (d10v_frame_base): New variable.
10010 (d10v_gdbarch_init): Set frame_base default.
10011 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10012 comment for base.
10013 (d10v_frame_unwind_cache): Set and use "prev_sp".
10014 (d10v_frame_this_id): Use the previous frame's inner most stack
10015 address and this frame's func address for the frame ID. Use
10016 frame_id_build. Don't analyze beyond the current instruction.
10017
10018 2003-04-01 Andrew Cagney <cagney@redhat.com>
10019
10020 * frame.h (get_frame_locals_address, get_frame_args_address):
10021 Refer to the base address, instead of the address of the first
10022 local or parameter.
10023
10024 2003-04-01 Andrew Cagney <cagney@redhat.com>
10025
10026 Add frame debug info addresses:
10027 * frame-base.c: New file.
10028 * frame-base.h: New file.
10029 * frame.h (struct frame_base): Add opaque declaration.
10030 (get_frame_base): Update comment.
10031 (get_frame_base_address): Declare.
10032 (get_frame_locals_address): Declare.
10033 (get_frame_args_address): Declare.
10034 (struct frame_info): Add "base" and "base_cache". Update
10035 comments on the unwinder.
10036 * frame.c: Include "frame-base.h".
10037 (get_frame_locals_address): New function.
10038 (get_frame_base_address): New function.
10039 (get_frame_args_address): New function.
10040 * findvar.c (read_var_value): Use get_frame_locals_address and
10041 get_frame_args_address.
10042 * stack.c (frame_info): Use get_frame_locals_address and
10043 get_frame_args_address.
10044 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10045 moved to "frame-base.c".
10046 * printcmd.c (print_frame_nameless_args): Ditto.
10047 * symtab.h (address_class): Update comments.
10048 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10049 get_frame_base_address.
10050 * dwarf2expr.c (execute_stack_op): Ditto.
10051 * Makefile.in (frame_base_h): Define.
10052 (frame.o): Update dependencies.
10053 (frame-base.o): Add dependencies.
10054 (SFILES): Add frame-base.c.
10055 (COMMON_OBS): Add frame-base.o.
10056
10057 2003-04-01 Andrew Cagney <cagney@redhat.com>
10058
10059 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10060 CALL_DUMMY_LENGTH): Ditto.
10061 * gdbarch.c: Re-generate.
10062 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10063 (CALL_DUMMY_LENGTH): Delete macro.
10064 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10065 * arm-tdep.c (arm_gdbarch_init): Ditto.
10066 * avr-tdep.c (avr_gdbarch_init): Ditto.
10067 * cris-tdep.c (cris_gdbarch_init): Ditto.
10068 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10069 * frv-tdep.c (frv_gdbarch_init): Ditto.
10070 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10071 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10072 * i386-tdep.c (i386_gdbarch_init): Ditto.
10073 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10074 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10075 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10076 * mips-tdep.c (mips_gdbarch_init): Ditto.
10077 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10078 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10079 * s390-tdep.c (s390_gdbarch_init): Ditto.
10080 * sh-tdep.c (sh_gdbarch_init): Ditto.
10081 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10082 * v850-tdep.c (v850_gdbarch_init): Ditto.
10083 * vax-tdep.c (vax_gdbarch_init): Ditto.
10084 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10085
10086 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
10087
10088 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10089
10090 2003-04-01 Andrew Cagney <cagney@redhat.com>
10091
10092 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10093 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10094 * gdbarch.h, gdbarch.c: Re-generate.
10095 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10096 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10097 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10098 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10099 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10100 * infcmd.c (run_stack_dummy): Simplify assuming
10101 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10102 * infrun.c (handle_inferior_event): Ditto.
10103 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10104 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10105 * arm-tdep.c (arm_gdbarch_init): Ditto.
10106 * avr-tdep.c (avr_gdbarch_init): Ditto.
10107 * cris-tdep.c (cris_gdbarch_init): Ditto.
10108 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10109 * frv-tdep.c (frv_gdbarch_init): Ditto.
10110 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10111 * i386-tdep.c (i386_gdbarch_init): Ditto.
10112 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10113 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10114 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10115 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10116 * mips-tdep.c (mips_gdbarch_init): Ditto.
10117 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10118 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10119 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10120 * s390-tdep.c (s390_gdbarch_init): Ditto.
10121 * sh-tdep.c (sh_gdbarch_init): Ditto.
10122 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10123 * v850-tdep.c (v850_gdbarch_init): Ditto.
10124 * vax-tdep.c (vax_gdbarch_init): Ditto.
10125 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10126
10127 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
10128
10129 * symfile.c (symfile_relocate_debug_section): Update call to
10130 bfd_simple_get_relocated_section_contents.
10131
10132 2003-03-31 Andrew Cagney <cagney@redhat.com>
10133
10134 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10135 * gdbarch.h, gdbarch.c: Regenerate.
10136 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10137 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10138 available.
10139 * frame.h (generic_fix_call_dummy): Delete declaration.
10140 * dummy-frame.h: Update comment.
10141 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10142 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10143 fix_call_dummy.
10144 * sh-tdep.c (sh_gdbarch_init): Ditto.
10145 * s390-tdep.c (s390_gdbarch_init): Ditto.
10146 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10147 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10148 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10149 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10150 * i386-tdep.c (i386_gdbarch_init): Ditto.
10151 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10152 * frv-tdep.c (frv_gdbarch_init): Ditto.
10153 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10154 * cris-tdep.c (cris_gdbarch_init): Ditto.
10155 * avr-tdep.c (avr_gdbarch_init): Ditto.
10156 * arm-tdep.c (arm_gdbarch_init): Ditto.
10157
10158 2003-03-31 J. Brobecker <brobecker@gnat.com>
10159
10160 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10161 (INIT_FRAME_AP): Likewise.
10162 (EXTRA_FRAME_INFO): Likewise.
10163
10164 2003-03-31 Andrew Cagney <cagney@redhat.com>
10165
10166 * gdbarch.sh: Include "symfile.h".
10167 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10168 * gdbarch.h, gdbarch.c: Re-generate.
10169 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10170 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10171 call_dummy_address, the default is at entry_point_address.
10172 * v850-tdep.c (v850_gdbarch_init): Ditto.
10173 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10174 * sh-tdep.c (sh_gdbarch_init): Ditto.
10175 * s390-tdep.c (s390_gdbarch_init): Ditto.
10176 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10177 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10178 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10179 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10180 * i386-tdep.c (i386_gdbarch_init): Ditto.
10181 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10182 * frv-tdep.c (frv_gdbarch_init): Ditto.
10183 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10184 * cris-tdep.c (cris_gdbarch_init): Ditto.
10185 * arm-tdep.c (arm_gdbarch_init): Ditto.
10186
10187 2003-03-31 Andrew Cagney <cagney@redhat.com>
10188
10189 * gdbarch.sh (CALL_DUMMY_P): Delete.
10190 * gdbarch.h, gdbarch.c: Re-generate.
10191 * inferior.h (CALL_DUMMY_P): Delete macro.
10192 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10193 * vax-tdep.c (vax_gdbarch_init): Update.
10194 * v850-tdep.c (v850_gdbarch_init): Update.
10195 * sparc-tdep.c (sparc_gdbarch_init): Update.
10196 * sh-tdep.c (sh_gdbarch_init): Update.
10197 * s390-tdep.c (s390_gdbarch_init): Update.
10198 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10199 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10200 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10201 * mips-tdep.c (mips_gdbarch_init): Update.
10202 * mcore-tdep.c (mcore_gdbarch_init): Update.
10203 * m68k-tdep.c (m68k_gdbarch_init): Update.
10204 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10205 * ia64-tdep.c (ia64_gdbarch_init): Update.
10206 * i386-tdep.c (i386_gdbarch_init): Update.
10207 * h8300-tdep.c (h8300_gdbarch_init): Update.
10208 * frv-tdep.c (frv_gdbarch_init): Update.
10209 * d10v-tdep.c (d10v_gdbarch_init): Update.
10210 * cris-tdep.c (cris_gdbarch_init): Update.
10211 * breakpoint.c (deprecated_frame_in_dummy): Update.
10212 * avr-tdep.c (avr_gdbarch_init): Update.
10213 * alpha-tdep.c (alpha_gdbarch_init): Update.
10214 * arm-tdep.c (arm_gdbarch_init): Update.
10215 * dummy-frame.c (dummy_frame_this_id): Update comments.
10216 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10217 * frame.c (legacy_get_prev_frame): Ditto.
10218 * valops.c (call_function_by_hand): Delete function.
10219 (hand_function_call): Rename to call_function_by_hand
10220
10221 2003-03-30 Andrew Cagney <cagney@redhat.com>
10222
10223 2002-11-10 Klee Dienes <kdienes@apple.com>
10224 * value.h (struct value): Update comment.
10225
10226 2003-03-30 Andrew Cagney <cagney@redhat.com>
10227
10228 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10229 D10V_FP_REGNUM.
10230 (d10v_gdbarch_init): Do not set fp_regnum.
10231
10232 * frame.c (get_frame_base): Force ID initialization.
10233 (get_prev_frame): Move computation of the frame ID from here ...
10234 (get_frame_id): ... to here.
10235 (legacy_get_prev_frame): Mark the frame ID as valid.
10236 * frame.h (struct frame_info): Add field "id_p".
10237
10238 2003-03-30 Mark Kettenis <kettenis@gnu.org>
10239
10240 * i386-tdep.c (i386_store_struct_return): Removed.
10241 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10242
10243 2003-03-30 Andrew Cagney <cagney@redhat.com>
10244
10245 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10246 * gdbarch.h, gdbarch.c: Regenerate.
10247 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10248 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10249 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10250 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10251 * i386-tdep.c (i386_gdbarch_init): Ditto.
10252 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10253 * cris-tdep.c (cris_gdbarch_init): Ditto.
10254 * vax-tdep.c (vax_gdbarch_init): Ditto.
10255 * s390-tdep.c (s390_gdbarch_init): Ditto.
10256 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10257 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10258 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10259 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10260 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10261 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10262 * sparc-tdep.c (sparc_gdbarch_init): Update.
10263 * sh-tdep.c (sh_gdbarch_init): Update.
10264 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10265 * mips-tdep.c (mips_gdbarch_init): Update.
10266 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10267 * ia64-tdep.c (ia64_gdbarch_init): Update.
10268 * frv-tdep.c (frv_gdbarch_init): Update.
10269 * avr-tdep.c (avr_gdbarch_init): Update.
10270 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10271 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10272 instead of when push_dummy_call is not available.
10273
10274 2003-03-30 Andrew Cagney <cagney@redhat.com>
10275
10276 * infttrace.c: Include "gdbthread.h".
10277 (parent_attach_all): Fix function signature.
10278 (call_ptrace): Update call.
10279 * Makefile.in (infttrace.o): Update dependencies.
10280
10281 2003-03-30 Andrew Cagney <cagney@redhat.com>
10282
10283 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10284 PUSH_RETURN_ADDRESS.
10285 * gdbarch.h, gdbarch.c: Regenerate.
10286 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10287 * x86-64-tdep.c (x86_64_init_abi): Update.
10288 * v850-tdep.c (v850_gdbarch_init): Update.
10289 * sparc-tdep.c (sparc_gdbarch_init): Update.
10290 * sh-tdep.c (sh_gdbarch_init): Update.
10291 * s390-tdep.c (s390_gdbarch_init): Update.
10292 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10293 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10294 * mips-tdep.c (mips_gdbarch_init): Update.
10295 * mcore-tdep.c (mcore_gdbarch_init): Update.
10296 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10297 * ia64-tdep.c (ia64_gdbarch_init): Update.
10298 * i386-tdep.c (i386_gdbarch_init): Update.
10299 * h8300-tdep.c (h8300_gdbarch_init): Update.
10300 * frv-tdep.c (frv_gdbarch_init): Update.
10301 * cris-tdep.c (cris_gdbarch_init): Update.
10302 * avr-tdep.c (avr_gdbarch_init): Update.
10303 * arm-tdep.c (arm_gdbarch_init): Update.
10304 * valops.c (hand_function_call): Update.
10305
10306 2003-03-29 Andrew Cagney <cagney@redhat.com>
10307
10308 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10309 sizeof_call_dummy_words.
10310 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10311 define.
10312 * gdbarch.h: Regenerate.
10313
10314 2003-03-29 Andrew Cagney <cagney@redhat.com>
10315
10316 * infttrace.h: New file.
10317 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10318 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10319 (hpread_read_doc_function_type): Detect an initialized type1.
10320 (hpread_quick_traverse): Initialize mod_name_string.
10321 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10322 (som_solib_get_solib_by_pc): Declare.
10323 (so_lib_thread_start_addr): Declare.
10324 (no_shared_libraries): Declare.
10325 * somread.c (init_import_symbols): Make static. Add forward
10326 declaration.
10327 * config/pa/nm-hppah.h: Include "infttrace.h" for
10328 parent_attach_all.
10329 (hppa_insert_hw_watchpoint): Declare.
10330 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10331 * hppah-nat.c: Include "gdb_string.h".
10332 (parent_attach_all): Delete extern declaration, moved to
10333 "infttrace.h".
10334 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10335 int.
10336 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10337 * Makefile.in (infttrace_h): Define.
10338 (hpread.o): Update dependencies.
10339 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10340 * hppa-hpux-tdep.c: Include "gdb_string.h".
10341 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10342 * infrun.c (handle_inferior_event): Always initialize
10343 stepped_after_stopped_by_watchpoint. Add default and remove
10344 fallthrough in switch statement.
10345 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10346 parameter to int.
10347 (hppa_remove_hw_watchpoint): Ditto.
10348
10349 2003-03-29 Andrew Cagney <cagney@redhat.com>
10350
10351 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10352 offset.
10353
10354 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
10355
10356 * arm-tdep.c (arm_push_arguments): Delete.
10357 (struct stack_item): New type.
10358 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10359 (arm_store_struct_return): Delte.
10360 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10361 arm_push_arguments or arm_store_struct_return.
10362
10363 2003-03-28 Andrew Cagney <cagney@redhat.com>
10364
10365 * Makefile.in (d10v-tdep.o): Update dependencies.
10366 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10367 * d10v-tdep.c: Include "remote.h".
10368 (target_resume_hook): Delete extern declaration.
10369 (target_wait_loop_hook): Ditto.
10370 (tdisassemble_command): Eliminate assignment in "if" conditional.
10371 (d10v_ts2_register_sim_regno): Eliminate call to
10372 legacy_register_sim_regno.
10373 (d10v_ts3_register_sim_regno): Ditto.
10374
10375 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10376
10377 * thread.c: Reindented.
10378 * lin-lwp.c: Ditto.
10379 * linux-proc.c: Ditto.
10380
10381 2003-03-28 Bob Rossi <bob_rossi@cox.net>
10382
10383 * MAINTAINERS (write after approval): Add myself.
10384
10385 2003-03-27 Theodore A. Roth <troth@openavr.org>
10386
10387 * objc-exp.y: Add missing semi-colons.
10388
10389 2003-03-27 Andrew Cagney <cagney@redhat.com>
10390
10391 * regcache.c (write_sp): Delete function and references.
10392 * inferior.h (write_sp): Delete declaration.
10393 * valops.c (hand_function_call): Replace write_sp with
10394 TARGET_WRITE_SP.
10395 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10396 (sparc_pop_frame): Ditto.
10397
10398 2003-03-27 Andrew Cagney <cagney@redhat.com>
10399
10400 * NEWS: Mention removal of support for hppa*-*-bsd* and
10401 hppa*-*-osf* natives, and hppa*-*-pro* target.
10402 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10403 * config/pa/xm-pa.h: Obsolete file.
10404 * config/pa/xm-hppab.h: Obsolete file.
10405 * config/pa/nm-hppab.h: Obsolete file.
10406 * config/pa/tm-hppab.h: Obsolete file.
10407 * config/pa/tm-hppao.h: Obsolete file.
10408 * config/pa/nm-hppao.h: Obsolete file.
10409 * config/pa/tm-pro.h: Obsolete file.
10410 * config/pa/hppaosf.mt: Obsolete file.
10411 * config/pa/hppaosf.mh: Obsolete file.
10412 * config/pa/hppapro.mt: Obsolete file.
10413 * config/pa/hppabsd.mt: Obsolete file.
10414 * config/pa/hppabsd.mh: Obsolete file.
10415 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10416 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10417 hppa*-*-osf*.
10418
10419 2003-03-27 Andrew Cagney <cagney@redhat.com>
10420
10421 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10422 push_arguments. Don't set push_return_address or write_sp.
10423 (d10v_push_dummy_call): Replace d10v_push_arguments.
10424 (d10v_push_return_address, d10v_write_sp): Delete function,
10425 handled by push_dummy_call.
10426
10427 2003-03-26 Andrew Cagney <cagney@redhat.com>
10428
10429 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10430 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10431 regcache and dummy_addr parameters.
10432 * gdbarch.h, gdbarch.c: Re-generate.
10433 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10434 available; assume it will handle stack alignment and return
10435 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10436 legacy_push_arguments.
10437 (legacy_push_arguments): Rename default_push_arguments.
10438 * value.h (legacy_push_arguments): Rename default_push_arguments.
10439 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10440 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10441 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10442 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10443 * config/i386/tm-symmetry.h: Update.
10444 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10445 * x86-64-tdep.c (x86_64_init_abi): Update.
10446 * v850-tdep.c (v850_gdbarch_init): Update.
10447 * sparc-tdep.c (sparc_gdbarch_init): Update.
10448 * sh-tdep.c (sh_gdbarch_init): Update.
10449 * s390-tdep.c (s390_gdbarch_init): Update.
10450 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10451 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10452 * mips-tdep.c (mips_gdbarch_init): Update.
10453 * mcore-tdep.c (mcore_gdbarch_init): Update.
10454 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10455 * ia64-tdep.c (ia64_gdbarch_init): Update.
10456 * i386-tdep.c (i386_gdbarch_init): Update.
10457 * hppa-tdep.c (hppa_gdbarch_init): Update.
10458 * h8300-tdep.c (h8300_gdbarch_init): Update.
10459 * frv-tdep.c (frv_gdbarch_init): Update.
10460 * d10v-tdep.c (d10v_gdbarch_init): Update.
10461 * cris-tdep.c (cris_gdbarch_init): Update.
10462 * avr-tdep.c (avr_gdbarch_init): Update.
10463 * arm-tdep.c (arm_gdbarch_init): Update.
10464 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10465 * alpha-tdep.c (alpha_gdbarch_init): Update.
10466
10467 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10468
10469 * signals/signals.c (do_target_signal_to_host): Correct realtime
10470 signal range test.
10471
10472 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10473
10474 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10475 (struct sal_chain, map_catch_names): Remove.
10476 (catch_exception_command_1): Don't call
10477 handle_gnu_4_16_catch_command.
10478
10479 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10480
10481 From Mark Dettinger <dettinge@de.ibm.com>:
10482 * dwarf2cfi.c (read_2u): Increment pointer by two.
10483
10484 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10485
10486 * signals/signals.c: Fix typos in last change.
10487
10488 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10489
10490 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10491 not already defined. Use __SIGRTMIN if available.
10492 (target_signal_from_host): Remove SIGRTMIN block.
10493 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10494 the signal is within the realtime range.
10495
10496 2003-03-25 Adam Fedor <fedor@gnu.org>
10497
10498 * Makefile.in (infrun.o): Add $(language_h)
10499 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10500 for language specific trampolines.
10501 * language.h (struct language_defn): Add skip_trampoline.
10502 (skip_language_trampoline): Declare.
10503 * language.c (unk_lang_trampoline, skip_language_trampoline):
10504 New functions.
10505 (unknown_language_defn, auto_language_defn, local_language_defn):
10506 Add ukn_lang_trampoline.
10507 * ada-lang.c (ada_language_defn): Add NULL for language
10508 specific skip_trampoline.
10509 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10510 scm-lang.c: Likewise.
10511 * objc-lang.c (objc_skip_trampoline): New function.
10512 (objc_language_defn): Add objc_skip_trampoline.
10513
10514 2003-03-25 Andrew Cagney <cagney@redhat.com>
10515
10516 * frame.c (get_prev_frame): Delay validating a frame's ID -
10517 non-NULL, didn't go backwards - until an attempt to unwind it to
10518 the previous frame.
10519
10520 2003-03-25 Andrew Cagney <cagney@redhat.com>
10521
10522 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10523 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10524 * gdbarch.h, gdbarch.c: Re-generate.
10525 * config/sparc/tm-sparc.h
10526 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10527 * sparc-tdep.c (sparc_gdbarch_init): Set
10528 deprecated_extra_stack_alignment_needed.
10529 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10530 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10531 extra_stack_alignment_needed.
10532 * v850-tdep.c (v850_gdbarch_init): Ditto.
10533 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10534 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10535 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10536 * cris-tdep.c (cris_gdbarch_init): Ditto.
10537 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10538 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10539
10540 2003-03-25 Andrew Cagney <cagney@redhat.com>
10541
10542 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10543 STORE_STRUCT_RETURN.
10544 * gdbarch.h, gdbarch.c: Regenerate.
10545 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10546 (d10v_push_arguments): Set the struct return register.
10547 (d10v_gdbarch_init): Update.
10548 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10549 * x86-64-tdep.c (x86_64_init_abi): Update.
10550 * vax-tdep.c (vax_gdbarch_init): 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 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10557 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10558 * mips-tdep.c (mips_gdbarch_init): Update.
10559 * mcore-tdep.c (mcore_gdbarch_init): Update.
10560 * m68k-tdep.c (m68k_gdbarch_init): Update.
10561 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10562 * ia64-tdep.c (ia64_gdbarch_init): Update.
10563 * i386-tdep.c (i386_gdbarch_init): Update.
10564 * hppa-tdep.c (hppa_gdbarch_init): Update.
10565 * h8300-tdep.c (h8300_gdbarch_init): Update.
10566 * frv-tdep.c (frv_gdbarch_init): Update.
10567 * cris-tdep.c (cris_gdbarch_init): Update.
10568 * avr-tdep.c (avr_gdbarch_init): Update.
10569 * arm-tdep.c (arm_gdbarch_init): Update.
10570 * alpha-tdep.c (alpha_gdbarch_init): Update.
10571
10572 2003-03-25 Andrew Cagney <cagney@redhat.com>
10573
10574 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10575 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10576 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10577 * gdbarch.h, gdbarch.c: Regenerate.
10578 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10579 call_dummy_stack_adjust_p.
10580 * vax-tdep.c (vax_gdbarch_init): Ditto.
10581 * v850-tdep.c (v850_gdbarch_init): Ditto.
10582 * sh-tdep.c (sh_gdbarch_init): Ditto.
10583 * s390-tdep.c (s390_gdbarch_init): Ditto.
10584 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10585 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10586 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10587 * mips-tdep.c (mips_gdbarch_init): Ditto.
10588 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10589 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10590 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10591 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10592 * i386-tdep.c (i386_gdbarch_init): Ditto.
10593 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10594 * frv-tdep.c (frv_gdbarch_init): Ditto.
10595 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10596 * cris-tdep.c (cris_gdbarch_init): Ditto.
10597 * avr-tdep.c (avr_gdbarch_init): Ditto.
10598 * arm-tdep.c (arm_gdbarch_init): Ditto.
10599 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10600 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10601 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10602 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10603 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10604 call_dummy_stack_adjust_p.
10605 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10606 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10607 * sparc-tdep.c (sparc32_push_arguments): Update.
10608 * valops.c (hand_function_call): Update.
10609
10610 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
10611
10612 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10613 set_gdbarch_char_signed.
10614
10615 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10616
10617 PR cli/548
10618 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10619
10620 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10621
10622 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10623 (_initialize_arm_tdep): Don't set tm_print_insn.
10624
10625 2003-03-24 Adam Fedor <fedor@gnu.org>
10626
10627 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10628 * objc-lang.h: Add multiple inclusion protection.
10629 (start_msglist, add_msglist, end_msglist): Additional declarations.
10630
10631 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
10632
10633 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10634 value was renamed to ARM_FLOAT_SOFT_FPA.
10635
10636 2003-03-23 Andrew Cagney <cagney@redhat.com>
10637
10638 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10639 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10640 * gdbarch.h, gdbarch.c: Regenerate.
10641 * valops.c (hand_function_call): Update.
10642 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10643 * frame.c (legacy_saved_regs_this_id): Update.
10644 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10645 * dummy-frame.h: Update.
10646 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10647 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10648 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10649 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10650 * config/m68k/tm-sun3.h: Update.
10651 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10652 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10653 * x86-64-tdep.c (x86_64_init_abi): Update.
10654 * vax-tdep.c (vax_gdbarch_init): Update.
10655 * v850-tdep.c (v850_gdbarch_init): Update.
10656 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10657 * sh-tdep.c (sh_gdbarch_init): Update.
10658 * s390-tdep.c (s390_gdbarch_init): Update.
10659 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10660 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10661 (frame_get_saved_regs): Update.
10662 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10663 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10664 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10665 * mips-tdep.c (mips_gdbarch_init): Update.
10666 * mcore-tdep.c (mcore_gdbarch_init): Update.
10667 * m68k-tdep.c (m68k_gdbarch_init): Update.
10668 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10669 * ia64-tdep.c (ia64_gdbarch_init): Update.
10670 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10671 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10672 (i386_interix_back_one_frame): Update.
10673 * hppa-tdep.c (hppa_gdbarch_init): Update.
10674 (hppa_init_extra_frame_info): Update.
10675 * h8300-tdep.c (h8300_gdbarch_init): Update.
10676 * frv-tdep.c (frv_gdbarch_init): Update.
10677 * cris-tdep.c (cris_gdbarch_init): Update.
10678 * avr-tdep.c (avr_gdbarch_init): Update.
10679 * arm-tdep.c (arm_gdbarch_init): Update.
10680 * alpha-tdep.c (alpha_gdbarch_init): Update.
10681
10682 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10683
10684 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10685 (arm_get_fp_model): Declare.
10686 * arm-tdep.c (fp_model_strings): New string array.
10687 (arm_fp_model, current_fp_model): New variables.
10688 (arm_get_fp_model): New function.
10689 (arm_set_fp): New function.
10690 (set_fp_model_sfunc): New function.
10691 (show_fp_model): New function.
10692 (_initialize_arm_tdep): Add new command to set/show the FPU.
10693 (arm_extract_return_value): Use arm_get_fp_model.
10694 (arm_store_return_value): Likewise.
10695 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10696 to initialize the floating-point data types.
10697 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10698 model is FPA.
10699
10700 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10701
10702 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10703 the current setting of each value.
10704 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
10705 new_set and new_show. Use add_setshow_cmd_full and
10706 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10707 commands and add new version as subcommands of "set/show arm".
10708
10709 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10710
10711 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10712 (set_arm_command, show_arm_command): New functions.
10713 (_initialize_arm_tdep): Add them.
10714 (num_disassembly_options): Renamed from num_flavor_options.
10715 (valid_disassembly_styles): Renamed from valid_flavors.
10716 (disassembly_style): Renamed from disassembly_flavor.
10717 (set_disassembly_style_sfunc): Renamed from
10718 set_disassembly_flavor_sfunc.
10719 (set_disassembly_style): Renamed from set_disassembly_flavor.
10720 (arm_othernames): Updated.
10721 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10722 command. Add "set/show arm disassembly" commands. Deprecate
10723 "othernames" command.
10724
10725 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10726
10727 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10728 (arm-tdep.o): Depend on elf_arm_h.
10729
10730 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10731
10732 * Makefile.in (coff_internal_h): Define.
10733 (arm-tdep.o): Update dependencies.
10734
10735 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10736
10737 * arm-tdep.c (prologue_cache): Delete.
10738 (check_prologue_cache, save_prologue_cache): Delete.
10739 (arm_scan_prologue): Don't check or update the prologue_cache.
10740 (arm_gdb_arch_init): Don't initialize it.
10741 (_initialize_arm_tdep): Likewise.
10742
10743 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10744
10745 * MAINTAINERS (tui): Maintainer of tui code.
10746
10747 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
10748
10749 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10750 (i386-cygwin-tdep.o): Add dependencies.
10751 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10752 * i386-cygwin-tdep.c: New file.
10753 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10754 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10755
10756 2003-03-20 Andrew Cagney <cagney@redhat.com>
10757
10758 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10759 (handle_inferior_event): Remove code calling
10760 DYNAMIC_TRAMPOLINE_NEXTPC.
10761
10762 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10763 already has a full path.
10764
10765 * main.c (gdb_main): Return 1.
10766 (captured_main): Call error to report an invalid interpreter.
10767
10768 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10769 * alpha-osf1-tdep.c: Include "gdb_string.h".
10770
10771 2003-03-19 J. Brobecker <brobecker@gnat.com>
10772
10773 Continuing work to convert the hppa targets to multiarch partial.
10774
10775 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10776 method, now that hppa_push_dummy_frame has a conformant prototype.
10777 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10778 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10779 for the switch to multiarch partial.
10780
10781 2003-03-19 Kevin Buettner <kevinb@redhat.com>
10782
10783 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10784 when iss is issNull.
10785
10786 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10787
10788 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10789 NUM_REGS bounds check.
10790
10791 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10792
10793 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10794 * mips-tdep.c (gdb_assert.h): Include.
10795 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10796 (mips_register_name): Handle integer registers explicitly. Add
10797 bounds checking.
10798 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10799 (mips_lsi33k_reg_names): Don't list integer registers; they're
10800 handled by mips_register_name() now.
10801 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10802 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10803 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10804 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10805 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10806
10807 2003-03-18 Andrew Cagney <cagney@redhat.com>
10808
10809 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10810 a void pointer.
10811 * gdbtypes.h (print_scalar_formatted): Update declaration.
10812 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10813
10814 2003-03-18 J. Brobecker <brobecker@gnat.com>
10815
10816 * infrun.c (observer.h): Add #include.
10817 (normal_stop): Add call to observer_notify_normal_stop.
10818 * Makefile.in (infrun.o): Add dependency on observer.h.
10819
10820 2003-03-18 J. Brobecker <brobecker@gnat.com>
10821
10822 Continuing work to convert the hppa targets to multiarch partial.
10823 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10824 parameter. Reformat comment.
10825 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10826 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10827 to match new profile.
10828
10829 2003-03-18 J. Brobecker <brobecker@gnat.com>
10830
10831 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10832 appear to be working in any case.
10833
10834 2003-03-18 J. Brobecker <brobecker@gnat.com>
10835
10836 * observer.c (observer_test_first_observer): New static variable.
10837 (observer_test_second_observer): Likewise.
10838 (observer_test_third_observer): Likewise.
10839 (observer_test_first_notification_function): New static function.
10840 (observer_test_second_notification_function): Likewise.
10841 (observer_test_third_notification_function): Likewise.
10842
10843 2003-03-17 J. Brobecker <brobecker@gnat.com>
10844
10845 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10846 * somsolib.c (gdb_assert.h): Likewise.
10847 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10848 (somsolib.o): Likewise.
10849
10850 2003-03-17 Andrew Cagney <cagney@redhat.com>
10851
10852 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10853 BFD. Simplify setting of di.endian.
10854
10855 2003-03-17 Andrew Cagney <cagney@redhat.com>
10856
10857 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10858 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10859
10860 From Elena Zannoni <ezannoni@redhat.com>
10861 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10862 vector and floating-point parameters.
10863 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10864 convention.
10865 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10866
10867 2003-03-17 Fernando Nasser <fnasser@redhat.com>
10868
10869 * MAINTAINERS: Remove my name from several maintainership roles.
10870
10871 2003-03-17 Andrew Cagney <cagney@redhat.com>
10872
10873 Fix frame off-by-one bug.
10874 * frame-unwind.h (frame_this_id_ftype): Replace
10875 frame_unwind_id_ftype.
10876 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10877 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10878 with "prev_register".
10879 * frame-unwind.c (frame_unwind_find_by_pc): Return
10880 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10881 comment.
10882 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10883 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10884 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10885 (dummy_frame_unwind): Update.
10886 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10887 sentinel_frame_register_unwind.
10888 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10889 (sentinel_frame_unwinder): Update.
10890 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10891 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10892 * frame.c (create_sentinel_frame): Update. Initialize
10893 "prologue_cache" instead of "unwind_cache".
10894 (frame_register_unwind): Call this frame's prev_register with the
10895 next frame and this frame's prologue cache.
10896 (get_prev_frame): Simplify. Always call prev frame's this_id with
10897 this frame and prev frame's prologue cache. Document that this
10898 call is shifted one to the left when compared to the
10899 frame_register_unwind call.
10900 (legacy_saved_regs_prev_register): Replace
10901 frame_saved_regs_register_unwind.
10902 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10903 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10904 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10905 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10906 (d10v_frame_unwind): Update.
10907 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10908 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10909 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10910 "saved_regs" with "this_saved_regs".
10911
10912 2003-03-16 Andrew Cagney <cagney@redhat.com>
10913
10914 * frame.c (frame_pop): Don't call target_store_registers. Fix
10915 problem reported by Mark Kettenis.
10916
10917 2003-03-16 Mark Kettenis <kettenis@gnu.org>
10918
10919 * i386-tdep.c (i386_register_type): Renamed from
10920 i386_register_virtual_type. Adjust function signature.
10921 (i386_gdbarch_init): Set register_type instead of
10922 deprecated_max_register_raw_size,
10923 deprecated_max_register_virtual_size and register_virtual_type.
10924
10925 2003-03-14 Andrew Cagney <cagney@redhat.com>
10926
10927 * frame.c (get_prev_frame): When a legacy frame, always call
10928 legacy_get_prev_frame. Simplify unwind code using assumption that
10929 the unwinder is new.
10930 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10931 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10932 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10933
10934 2003-03-14 Andrew Cagney <cagney@redhat.com>
10935
10936 * frame.c (get_saved_register): Delete function.
10937 * frame.h (get_saved_register): Delete declaration.
10938 * xstormy16-tdep.c: Update comment.
10939 * regcache.h: Update comments.
10940 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10941 get_saved_register and extract_address, use
10942 frame_read_unsigned_register.
10943 (sparc_frame_saved_pc): Ditto.
10944 (sparc_get_saved_register): Instead of get_saved_register, use
10945 frame_register.
10946 (sparc_pop_frame): Ditto.
10947 * findvar.c: Update comments.
10948 (value_of_register): Call frame_register instead of
10949 get_saved_register.
10950 (value_from_register): Ditto.
10951 * config/sparc/tm-sparc.h: Update comment.
10952 * breakpoint.c: Update comment.
10953
10954 2003-03-14 Andrew Cagney <cagney@redhat.com>
10955
10956 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10957 GET_SAVED_REGISTER.
10958 * gdbarch.h, gdbarch.c: Re-generate.
10959 * frame.h: Update comments.
10960 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10961 * x86-64-tdep.c (x86_64_init_abi): Update.
10962 * sparc-tdep.c (sparc_gdbarch_init): Update.
10963 * sh-tdep.c (sh_gdbarch_init): Update.
10964 * mips-tdep.c (mips_gdbarch_init): Update.
10965 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10966 * cris-tdep.c (cris_gdbarch_init): Update.
10967 * ia64-tdep.c (ia64_gdbarch_init): Update.
10968 * frame.c (frame_register): Update.
10969 (get_saved_register): Update.
10970 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
10971
10972 2003-03-13 Andrew Cagney <cagney@redhat.com>
10973
10974 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10975 * gdbarch.h, gdbarch.c: Regenerate.
10976 * valops.c (hand_function_call): Update comment.
10977 * stack.c (return_command): Update comment.
10978 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10979 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10980 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10981 * x86-64-tdep.c (x86_64_init_abi): Update.
10982 * vax-tdep.c (vax_gdbarch_init): Update.
10983 * v850-tdep.c (v850_gdbarch_init): Update.
10984 * sparc-tdep.c (sparc_gdbarch_init): Update.
10985 * sh-tdep.c (sh_gdbarch_init): Update.
10986 * s390-tdep.c (s390_gdbarch_init): Update.
10987 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10988 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10989 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10990 * mips-tdep.c (mips_gdbarch_init): Update.
10991 * mcore-tdep.c (mcore_gdbarch_init): Update.
10992 * m68k-tdep.c (m68k_gdbarch_init): Update.
10993 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10994 * ia64-tdep.c (ia64_gdbarch_init): Update.
10995 * i386-tdep.c (i386_gdbarch_init): Update.
10996 * hppa-tdep.c (hppa_gdbarch_init): Update.
10997 * h8300-tdep.c (h8300_gdbarch_init): Update.
10998 * frv-tdep.c (frv_gdbarch_init): Update.
10999 * cris-tdep.c (cris_gdbarch_init): Update.
11000 * avr-tdep.c (avr_gdbarch_init): Update.
11001 * arm-tdep.c (arm_gdbarch_init): Update.
11002 * alpha-tdep.c (alpha_gdbarch_init): Update.
11003
11004 2003-03-13 Andrew Cagney <cagney@redhat.com>
11005
11006 * frame.c (legacy_frame_p): New function.
11007 (get_prev_frame): Use legacy_frame_p.
11008 * frame.h (legacy_frame_p): Declare.
11009
11010 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11011
11012 * MAINTAINERS (write after approval): Alphabetically
11013 listing corrected.
11014
11015 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11016
11017 * MAINTAINERS (write after approval): Add myself.
11018
11019 2003-03-12 Andrew Cagney <cagney@redhat.com>
11020
11021 * frame.c (get_prev_frame): Rename the frame parameter to
11022 "this_frame".
11023 (get_next_frame, legacy_get_prev_frame): Ditto.
11024
11025 2003-03-12 Andrew Cagney <cagney@redhat.com>
11026
11027 * frame.c (get_current_frame): Check target_has_registers before
11028 checking target_has_stack.
11029 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11030 instead of deprecated_selected_frame.
11031 * findvar.c (value_of_register): Pass "frame", not
11032 deprecated_selected_frame, to value_of_builtin_reg.
11033
11034 2003-03-12 Andrew Cagney <cagney@redhat.com>
11035
11036 * regcache.c (regcache_cooked_write_signed): New function.
11037 (regcache_cooked_write_unsigned): New function.
11038 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11039 (regcache_cooked_read_signed): Fix regnum in range assertion.
11040 * regcache.h (regcache_cooked_write_signed): Declare.
11041 (regcache_cooked_write_unsigned): Declare.
11042
11043 2003-03-12 Andrew Cagney <cagney@redhat.com>
11044
11045 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11046 * gdbarch.h, gdbarch.c: Re-generate.
11047 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11048 * x86-64-tdep.h: Update.
11049 * x86-64-tdep.c (x86_64_init_abi): Update.
11050 * v850-tdep.c (v850_gdbarch_init): Update.
11051 * sparc-tdep.c (sparc_gdbarch_init): Update.
11052 * sh-tdep.c (sh_gdbarch_init): Update.
11053 * s390-tdep.c (s390_gdbarch_init): Update.
11054 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11055 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11056 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11057 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11058 * mips-tdep.c (mips_gdbarch_init): Update.
11059 * mcore-tdep.c (mcore_gdbarch_init): Update.
11060 * m68k-tdep.c (m68k_gdbarch_init): Update.
11061 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11062 * ia64-tdep.c (ia64_gdbarch_init): Update.
11063 * i386-tdep.c (i386_gdbarch_init): Update.
11064 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11065 * hppa-tdep.c (hppa_gdbarch_init): Update.
11066 * h8300-tdep.c (h8300_gdbarch_init): Update.
11067 * frv-tdep.c (frv_gdbarch_init): Update.
11068 * cris-tdep.c (cris_gdbarch_init): Update.
11069 * avr-tdep.c (avr_gdbarch_init): Update.
11070 * arm-tdep.c (arm_gdbarch_init): Update.
11071 * alpha-tdep.c (alpha_gdbarch_init): Update.
11072 * sh-tdep.c (sh_init_extra_frame_info): Update.
11073 (sh64_init_extra_frame_info): Update.
11074 * ns32knbsd-nat.c (frame_num_args): Update.
11075 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11076 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11077 (xstormy16_frame_chain_valid): Update.
11078 * vax-tdep.c (vax_saved_pc_after_call): Update.
11079 * v850-tdep.c (v850_frame_chain): Update.
11080 (v850_pop_frame): Update.
11081 (v850_init_extra_frame_info): Update.
11082 * sparc-tdep.c (setup_arbitrary_frame): Update.
11083 * ns32k-tdep.c (umax_frame_num_args): Update.
11084 * s390-tdep.c (s390_pop_frame_regular): Update.
11085 * mn10300-tdep.c (mn10300_frame_chain): Update.
11086 (mn10300_pop_frame_regular): Update.
11087 (mn10300_init_extra_frame_info): Update.
11088 * mips-tdep.c (mips_init_frame_pc_first): Update.
11089 (mips_frame_chain): Update.
11090 (mips_pop_frame): Update.
11091 * mcore-tdep.c (mcore_frame_chain): Update.
11092 (mcore_pop_frame): Update.
11093 (mcore_init_extra_frame_info): Update.
11094 * arch-utils.c (init_frame_pc_default): Update.
11095 * m68k-tdep.c (isi_frame_num_args): Update.
11096 (delta68_frame_num_args): Update.
11097 (news_frame_num_args): Update.
11098 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11099 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11100 (alpha_frame_chain): Update.
11101 (alpha_pop_frame): Update.
11102 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11103 (hppa_init_extra_frame_info): Update.
11104 (hppa_frame_chain): Update.
11105 (hppa_frame_chain_valid): Update.
11106 * cris-tdep.c (cris_init_extra_frame_info): Update.
11107 * avr-tdep.c (avr_init_extra_frame_info): Update.
11108 * arm-tdep.c (arm_frame_chain_valid): Update.
11109 (arm_init_extra_frame_info): Update.
11110 (arm_pop_frame): Update.
11111 * frame.c (frame_pc_unwind): Update.
11112 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11113 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11114 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11115 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11116 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11117 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11118
11119 2003-03-12 Andrew Cagney <cagney@redhat.com>
11120
11121 Eliminate the need for POP_FRAME.
11122 * frame.c (do_frame_unwind_register): New function.
11123 (frame_pop): When no POP_FRAME, pop the frame using register
11124 unwind and a scratch regcache.
11125 (frame_saved_regs_pop): Delete function.
11126 (trad_frame_unwinder): Update.
11127 * d10v-tdep.c (d10v_frame_pop): Delete function.
11128 (d10v_frame_unwind): Update.
11129 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11130 (sentinel_frame_unwinder): Update.
11131 * dummy-frame.c (dummy_frame_pop): Delete function.
11132 (dummy_frame_unwind): Update.
11133 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11134 (struct frame_unwind): Update.
11135
11136 2003-03-11 Kevin Buettner <kevinb@redhat.com>
11137
11138 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11139 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11140 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11141 Do range checks on register number obtained from debugging info.
11142 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11143 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11144 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11145 mapping function.
11146 (do_fp_register_row): Fix typo which caused double type to be
11147 used when attempting to unpack a float.
11148
11149 2003-03-11 J. Brobecker <brobecker@gnat.com>
11150
11151 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11152
11153 2003-03-11 Andrew Cagney <cagney@redhat.com>
11154
11155 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11156 frame. Problem found by Corinna Vinschen.
11157
11158 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11159
11160 * doublest.c (floatformat_from_length): Accept also
11161 the real size of 'long double' type.
11162
11163 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
11164
11165 From Klee Dienes <kdienes@apple.com>:
11166 * breakpoint.c (bpstat_copy): Copy the command lines as well
11167 as the old value, to match what is freed in bpstat_clear.
11168
11169 2003-03-10 David Carlton <carlton@math.stanford.edu>
11170
11171 * minsyms.c (add_minsym_to_hash_table): Replace
11172 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11173 (compare_minimal_symbols, compact_minimal_symbols)
11174 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11175 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11176 of DEPRECATED_SYMBOL_MATCHES_NAME.
11177 (lookup_minimal_symbol_solib_trampoline): Ditto.
11178
11179 2003-03-10 Andrew Cagney <cagney@redhat.com>
11180
11181 * regcache.h (regcache_cooked_read_ftype): Define.
11182 (regcache_save, regcache_restore): Add a cooked_read parameter.
11183 * regcache.c (regcache_save, regcache_restore): Update.
11184 (do_cooked_read): New function.
11185 (regcache_cpy): Pass do_cooked_read to regcache_save and
11186 regcache_restore.
11187
11188 2003-03-10 Andrew Cagney <cagney@redhat.com>
11189
11190 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11191 * gdbarch.h, gdbarch.c: Re-generate.
11192 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11193 * x86-64-tdep.h: Update.
11194 * x86-64-tdep.c (x86_64_init_abi): Update.
11195 * v850-tdep.c (v850_gdbarch_init): Update.
11196 * sparc-tdep.c (sparc_gdbarch_init): Update.
11197 * sh-tdep.c (sh_gdbarch_init): Update.
11198 * s390-tdep.c (s390_gdbarch_init): Update.
11199 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11200 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11201 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11202 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11203 * mips-tdep.c (mips_gdbarch_init): Update.
11204 * mcore-tdep.c (mcore_gdbarch_init): Update.
11205 * m68k-tdep.c (m68k_gdbarch_init): Update.
11206 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11207 * ia64-tdep.c (ia64_gdbarch_init): Update.
11208 * i386-tdep.c (i386_gdbarch_init): Update.
11209 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11210 * hppa-tdep.c (hppa_gdbarch_init): Update.
11211 * h8300-tdep.c (h8300_gdbarch_init): Update.
11212 * frv-tdep.c (frv_gdbarch_init): Update.
11213 * cris-tdep.c (cris_gdbarch_init): Update.
11214 * avr-tdep.c (avr_gdbarch_init): Update.
11215 * arm-tdep.c (arm_gdbarch_init): Update.
11216 * alpha-tdep.c (alpha_gdbarch_init): Update.
11217 * sh-tdep.c (sh_init_extra_frame_info): Update.
11218 (sh64_init_extra_frame_info): Update.
11219 * ns32knbsd-nat.c (frame_num_args): Update.
11220 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11221 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11222 (xstormy16_frame_chain_valid): Update.
11223 * vax-tdep.c (vax_saved_pc_after_call): Update.
11224 * v850-tdep.c (v850_frame_chain): Update.
11225 (v850_pop_frame): Update.
11226 (v850_init_extra_frame_info): Update.
11227 * sparc-tdep.c (setup_arbitrary_frame): Update.
11228 * ns32k-tdep.c (umax_frame_num_args): Update.
11229 * s390-tdep.c (s390_pop_frame_regular): Update.
11230 * mn10300-tdep.c (mn10300_frame_chain): Update.
11231 (mn10300_pop_frame_regular): Update.
11232 (mn10300_init_extra_frame_info): Update.
11233 * mips-tdep.c (mips_init_frame_pc_first): Update.
11234 (mips_frame_chain): Update.
11235 (mips_pop_frame): Update.
11236 * mcore-tdep.c (mcore_frame_chain): Update.
11237 (mcore_pop_frame): Update.
11238 (mcore_init_extra_frame_info): Update.
11239 * arch-utils.c (init_frame_pc_default): Update.
11240 * m68k-tdep.c (isi_frame_num_args): Update.
11241 (delta68_frame_num_args): Update.
11242 (news_frame_num_args): Update.
11243 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11244 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11245 (alpha_frame_chain): Update.
11246 (alpha_pop_frame): Update.
11247 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11248 (hppa_init_extra_frame_info): Update.
11249 (hppa_frame_chain): Update.
11250 (hppa_frame_chain_valid): Update.
11251 * cris-tdep.c (cris_init_extra_frame_info): Update.
11252 * avr-tdep.c (avr_init_extra_frame_info): Update.
11253 * arm-tdep.c (arm_frame_chain_valid): Update.
11254 (arm_init_extra_frame_info): Update.
11255 (arm_pop_frame): Update.
11256 * frame.c (frame_pc_unwind): Update.
11257 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11258 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11259 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11260 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11261 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11262 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11263
11264 2003-03-10 Andrew Cagney <cagney@redhat.com>
11265
11266 * gdbarch.sh (gdbarch_unwind_pc): New method.
11267 * gdbarch.h, gdbarch.c: Regenerate.
11268 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11269 but use read_pc and FRAME_SAVED_PC as fall backs.
11270 (frame_saved_regs_pc_unwind): Delete function.
11271 (trad_frame_unwinder): Update.
11272 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11273 (struct frame_unwind): Update.
11274 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11275 (dummy_frame_unwind): Update.
11276 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11277 (sentinel_frame_unwinder): Update.
11278 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11279 (d10v_frame_unwind): Update.
11280 (d10v_unwind_pc): New function.
11281 (d10v_gdbarch_init): Set unwind_pc.
11282
11283 2003-03-10 Andrew Cagney <cagney@redhat.com>
11284
11285 * gdbarch.h: Re-generate.
11286
11287 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11288 PC.
11289 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11290 the PC register.
11291
11292 2003-03-08 Mark Kettenis <kettenis@gnu.org>
11293
11294 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11295
11296 2003-03-08 Andrew Cagney <cagney@redhat.com>
11297
11298 * cli-out.c: Update copyright.
11299 (cli_out_data): Define typedef. Use instead of ui_out_data.
11300
11301 2003-03-08 Andrew Cagney <cagney@redhat.com>
11302
11303 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11304 the result.
11305
11306 2003-03-07 Andrew Cagney <cagney@redhat.com>
11307
11308 * gdbarch.sh: Don't generate two macro definitions when an
11309 undefined macro taking no arguments.
11310 * gdbarch.h: Regenerate.
11311
11312 2002-03-07 Michal Ludvig <mludvig@suse.cz>
11313
11314 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11315 (x86_64_unwind_dummy_id): New functions.
11316 (x86_64_init_abi): Register these two new functions.
11317
11318 2003-03-07 Michal Ludvig <mludvig@suse.cz>
11319
11320 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
11321 (x86_64_skip_prologue): Move prologue detection to
11322 separate function.
11323 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11324
11325 2003-03-05 Andrew Cagney <cagney@redhat.com>
11326
11327 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11328 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11329 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11330 to use unwind_dummy_id when a dummy frame.
11331 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11332 predicate.
11333 * gdbarch.h, gdbarch.c: Regneerate.
11334
11335 2003-03-05 Andrew Cagney <cagney@redhat.com>
11336
11337 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11338 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11339 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11340 values.
11341
11342 2003-03-05 Andrew Cagney <cagney@redhat.com>
11343
11344 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11345 (struct d10v_unwind_cache): Delete field "frameless". Replace
11346 "next_addr" with "sp_offset". Add "r11_offset".
11347 (d10v_frame_unwind_cache): Update.
11348 (prologue_find_regs): Update. When "mv r11, sp", save the
11349 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11350 RN was saved in r11_offset.
11351
11352 2003-03-05 Andrew Cagney <cagney@redhat.com>
11353
11354 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11355 cached PC value in the next frame.
11356
11357 2003-03-05 Andrew Cagney <cagney@redhat.com>
11358
11359 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11360 "id_unwind_cache" with "id".
11361 (frame_id_unwind): Delete declaration.
11362 * frame.c (frame_id_unwind): Delete function.
11363 (get_prev_frame): Call the frame id unwind method directly. Store
11364 the returned next frame's ID value in NEXT_FRAME. Note that there
11365 is a problem with the wrong unwind ID being called with the wrong
11366 unwind cache.
11367
11368 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11369
11370 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11371
11372 2003-03-05 James Ingham <jingham@apple.com>
11373 Daniel Jacobowitz <drow@mvista.com>
11374
11375 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11376 (auto_cp_abi): New variable.
11377 (current_cp_abi, num_cp_abis): Make static.
11378 (CP_ABI_MAX): Define.
11379 (cp_abis): Turn into an array.
11380 (value_virtual_fn_field): Fix formatting.
11381 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11382 takes a pointer.
11383 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11384 (list_cp_abis, _initialize_cp_abi): New functions.
11385 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11386 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11387 switch_to_cp_abi. Update prototype for register_cp_abi.
11388 * Makefile.in (cp-abi.o): Update dependencies.
11389 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11390 instead of switch_to_cp_abi.
11391 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11392 register_cp_abi.
11393 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11394 register_cp_abi.
11395 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11396
11397 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11398
11399 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11400 * dwarf2loc.c: Include "regcache.h".
11401 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11402 register_size.
11403 * Makefile.in (dwarf2loc.o): Update dependencies.
11404
11405 2003-03-04 Theodore A. Roth <troth@openavr.org>
11406
11407 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11408 number of io registers reported by remote target is not a multiple of
11409 step.
11410
11411 2003-03-04 David Carlton <carlton@math.stanford.edu>
11412
11413 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11414 (lookup_symbol_aux_psymtabs): Update call to
11415 lookup_partial_symbol.
11416 (lookup_transparent_type, find_main_psymtab)
11417 (make_symbol_overload_list): Ditto.
11418
11419 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11420
11421 * MAINTAINERS (Write after approval): Update my email address.
11422
11423 2003-03-03 Andrew Cagney <cagney@redhat.com>
11424
11425 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11426 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11427 predicate. Replace MAX_REGISTER_RAW_SIZE.
11428 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11429 MAX_REGISTER_VIRTUAL_SIZE.
11430 * regcache.c (legacy_max_register_raw_size): New function.
11431 (legacy_max_register_virtual_size): New function.
11432 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11433 (MAX_REGISTER_RAW_SIZE): Define.
11434 (legacy_max_register_raw_size): Declare.
11435 (legacy_max_register_virtual_size): Declare.
11436 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11437 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11438 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11439 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11440 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11441 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11442 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11443 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11444 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11445 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11446 * vax-tdep.c (vax_gdbarch_init): Update.
11447 * v850-tdep.c (v850_gdbarch_init): Update.
11448 * sparc-tdep.c (sparc_gdbarch_init): Update.
11449 * sh-tdep.c (sh_gdbarch_init): Update.
11450 * s390-tdep.c (s390_gdbarch_init): Update.
11451 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11452 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11453 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11454 * mips-tdep.c (mips_gdbarch_init): Update.
11455 * mcore-tdep.c (mcore_gdbarch_init): Update.
11456 * m68k-tdep.c (m68k_gdbarch_init): Update.
11457 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11458 * ia64-tdep.c (ia64_gdbarch_init): Update.
11459 * i386-tdep.c (i386_gdbarch_init): Update.
11460 * hppa-tdep.c (hppa_gdbarch_init): Update.
11461 * h8300-tdep.c (h8300_gdbarch_init): Update.
11462 * frv-tdep.c (frv_gdbarch_init): Update.
11463 * cris-tdep.c (cris_gdbarch_init): Update.
11464 * avr-tdep.c (avr_gdbarch_init): Update.
11465 * arm-tdep.c (arm_gdbarch_init): Update.
11466 * alpha-tdep.c (alpha_gdbarch_init): Update.
11467 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11468 max_register_raw_size or max_register_virtual_size.
11469
11470 2003-03-03 David Carlton <carlton@math.stanford.edu>
11471
11472 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11473 SYMBOL_MATCHES_NAME, add comment.
11474 (SYMBOL_MATCHES_NATURAL_NAME): New.
11475 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11476 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11477 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11478 * symtab.c (lookup_partial_symbol): Use
11479 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11480 unhelpful comment.
11481 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11482 SYMBOL_MATCHES_NAME.
11483 Fix for PR c++/33.
11484
11485 2003-03-03 David Carlton <carlton@math.stanford.edu>
11486
11487 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11488 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11489 by regexp matching against SYMBOL_NATURAL_NAME.
11490
11491 2003-03-03 David Carlton <carlton@math.stanford.edu>
11492
11493 * linespec.c (find_method): Extract code into collect_methods.
11494 (collect_methods): New.
11495
11496 2003-03-02 Mark Kettenis <kettenis@gnu.org>
11497
11498 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11499 get_frame_base.
11500
11501 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11502 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11503
11504 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11505
11506 * arch-utils.c (generic_register_byte): Fix to use the loop index
11507 and not regnum when summing the size of all registers up to regnum.
11508
11509 2003-03-01 Andrew Cagney <cagney@redhat.com>
11510
11511 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11512 FRAME_INIT_SAVED_REGS.
11513 * gdbarch.h, gdbarch.c: Regenerate.
11514 * stack.c (frame_info): Update.
11515 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11516 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11517 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11518 * ns32k-tdep.c (ns32k_pop_frame): Update.
11519 * mips-tdep.c (mips_pop_frame): Update.
11520 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11521 * ia64-tdep.c (ia64_frame_chain): Update.
11522 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11523 (ia64_frameless_function_invocation): Update.
11524 (ia64_init_extra_frame_info): Update.
11525 (ia64_pop_frame_regular): Update.
11526 * frame.h (struct frame_info): Update comment.
11527 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11528 * frame.c (frame_saved_regs_register_unwind): Update.
11529 (frame_saved_regs_register_unwind): Update.
11530 (deprecated_generic_get_saved_register): Update.
11531 * cris-tdep.c: Update comment.
11532 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11533 Rename macro.
11534 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11535 * x86-64-tdep.c (x86_64_init_abi): Update.
11536 * vax-tdep.c (vax_gdbarch_init): Update.
11537 * v850-tdep.c (v850_gdbarch_init): Update.
11538 * sparc-tdep.c (sparc_gdbarch_init): Update.
11539 * sh-tdep.c (sh_gdbarch_init): Update.
11540 * s390-tdep.c (s390_gdbarch_init): Update.
11541 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11542 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11543 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11544 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11545 * mips-tdep.c (mips_gdbarch_init): Update.
11546 * mcore-tdep.c (mcore_gdbarch_init): Update.
11547 * m68k-tdep.c (m68k_gdbarch_init): Update.
11548 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11549 * ia64-tdep.c (ia64_gdbarch_init): Update.
11550 * i386-tdep.c (i386_gdbarch_init): Update.
11551 * frv-tdep.c (frv_gdbarch_init): Update.
11552 * avr-tdep.c (avr_gdbarch_init): Update.
11553 * arm-tdep.c (arm_gdbarch_init): Update.
11554 * alpha-tdep.c (alpha_gdbarch_init): Update.
11555
11556 2003-03-01 Andrew Cagney <cagney@redhat.com>
11557
11558 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11559 option enum and switch. When no windows, set the interpreter to
11560 INTERP_CONSOLE.
11561
11562 2003-03-01 Andrew Cagney <cagney@redhat.com>
11563
11564 * main.c (captured_main): Replace magic option characters with an
11565 enum.
11566
11567 2003-03-01 Andrew Cagney <cagney@redhat.com>
11568
11569 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11570 INIT_EXTRA_FRAME_INFO.
11571 * gdbarch.h, gdbarch.c: Regenerate.
11572 * arm-tdep.c: Update comments.
11573 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11574 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11575 * frame.h, avr-tdep.c: Ditto.
11576 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11577 (create_new_frame, legacy_get_prev_frame): Ditto.
11578 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11579 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11580 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11581 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11582 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11583 * v850-tdep.c (v850_gdbarch_init): Ditto.
11584 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11585 * sh-tdep.c (sh_gdbarch_init): Ditto.
11586 * s390-tdep.c (s390_gdbarch_init): Ditto.
11587 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11588 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11589 * mips-tdep.c (mips_gdbarch_init): Ditto.
11590 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11591 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11592 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11593 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11594 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11595 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11596 * frv-tdep.c (frv_gdbarch_init): Ditto.
11597 * cris-tdep.c (cris_gdbarch_init): Ditto.
11598 * avr-tdep.c (avr_gdbarch_init): Ditto.
11599 * arm-tdep.c (arm_gdbarch_init): Ditto.
11600 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11601 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11602
11603 2003-03-01 Andrew Cagney <cagney@redhat.com>
11604
11605 * gdbarch.sh (register_type): New function with predicate.
11606 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11607 * gdbarch.h, gdbarch.c: Re-generate.
11608 * arch-utils.c (generic_register_byte): Use generic_register_size.
11609 (generic_register_size): When available, use
11610 gdbarch_register_type.
11611 * regcache.c (init_regcache_descr): When available, initialize the
11612 register type array using gdbarch_register_type. If the
11613 architecture supplies gdbarch_register_type, do not use the legacy
11614 regcache layout.
11615 * d10v-tdep.c (d10v_register_type): Replace
11616 d10v_register_virtual_type.
11617 (d10v_gdbarch_init): Set register_type instead of
11618 register_virtual_type.
11619
11620 2003-03-01 Andrew Cagney <cagney@redhat.com>
11621
11622 * Makefile.in (ax-gdb.o): Update dependencies.
11623 * ax-gdb.c: Include "regcache.h".
11624 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11625 * findvar.c (value_of_register): Ditto.
11626 * infcmd.c (default_print_registers_info): Ditto.
11627
11628 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11629
11630 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11631 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11632
11633 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11634
11635 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11636 of STREQ.
11637
11638 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
11639
11640 * Makefile.in (dwarf2loc.o): Update dependencies.
11641 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11642 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11643 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11644 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11645 (locexpr_tracepoint_var_ref): New function.
11646 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11647
11648 2003-02-28 Andrew Cagney <cagney@redhat.com>
11649
11650 * regcache.c (register_size): New function.
11651 * regcache.h (register_size): Declare
11652 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11653 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11654
11655 2003-02-28 David Carlton <carlton@math.stanford.edu>
11656
11657 * linespec.c (decode_compound): Extract code into find_method.
11658 (find_method): New.
11659
11660 2003-02-28 J. Brobecker <brobecker@gnat.com>
11661
11662 * Makefile.in: Add rules to build and link in observer.o.
11663
11664 2003-02-27 J. Brobecker <brobecker@gnat.com>
11665
11666 * observer.c: Minor comments edits.
11667
11668 2003-02-27 J. Brobecker <brobecker@gnat.com>
11669
11670 * observer.h, observer.c: New file.
11671
11672 2003-02-27 Andrew Cagney <cagney@redhat.com>
11673
11674 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11675
11676 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11677
11678 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11679 (M6812_OP_STS_EXT): Likewise.
11680 (m6811_prologue): Use the above to recognize prologue.
11681 (m6812_prologue): Likewise.
11682
11683 2003-02-27 David Carlton <carlton@math.stanford.edu>
11684
11685 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11686 SYMBOL_PRINT_NAME.
11687 (compare_psymbols): Ditto.
11688 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11689
11690 2003-02-27 Michael Snyder <msnyder@redhat.com>
11691
11692 * f-lang.c (build_fortran_types): New function.
11693 (_initialize_f_language): Gdbarch-register built-in fortran types.
11694 * doublest.c (extract_floating): Fix warning text.
11695
11696 2003-02-27 Andrew Cagney <cagney@redhat.com>
11697
11698 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11699 predicate. Replaces PUSH_DUMMY_FRAME.
11700 * gdbarch.h, gdbarch.c: Regnerate.
11701 * valops.c (hand_function_call): Update. Call
11702 generic_push_dummy_frame directly.
11703 * vax-tdep.c (vax_gdbarch_init): Update.
11704 * sparc-tdep.c (sparc_gdbarch_init): Update.
11705 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11706 * m68k-tdep.c (m68k_gdbarch_init): Update.
11707 * hppa-tdep.c (hppa_gdbarch_init): Update.
11708 * alpha-tdep.c (alpha_gdbarch_init): Update.
11709 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11710 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11711 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11712 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11713 push_dummy_frame to generic_push_dummy_frame.
11714 * v850-tdep.c (v850_gdbarch_init): Ditto.
11715 * sh-tdep.c (sh_gdbarch_init): Ditto.
11716 * s390-tdep.c (s390_gdbarch_init): Ditto.
11717 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11718 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11719 * mips-tdep.c (mips_gdbarch_init): Ditto.
11720 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11721 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11722 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11723 * i386-tdep.c (i386_gdbarch_init): Ditto.
11724 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11725 * frv-tdep.c (frv_gdbarch_init): Ditto.
11726 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11727 * cris-tdep.c (cris_gdbarch_init): Ditto.
11728 * avr-tdep.c (avr_gdbarch_init): Ditto.
11729 * arm-tdep.c (arm_gdbarch_init): Ditto.
11730
11731 2003-02-26 Kevin Buettner <kevinb@redhat.com>
11732
11733 * mips-tdep.c (show_mips_abi): New function.
11734 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11735 command ``show mips abi''.
11736
11737 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
11738
11739 From Elena Zannoni <ezannoni@redhat.com>
11740 * dbxread.c (process_one_symbol): Only record line 0 if one or
11741 more sline entries have been seen for the function.
11742
11743 2003-02-26 Michael Chastain <mec@shout.net>
11744
11745 * configure: Regenerate with autoconf 000227.
11746
11747 2003-02-26 Michael Chastain <mec@shout.net>
11748
11749 Close PR build/660.
11750 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11751 for old libc5/glibc.
11752 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11753
11754 2003-02-26 Kris Warkentin <kewarken@qnx.com>
11755
11756 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11757 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11758
11759 2003-02-26 Michael Chastain <mec@shout.net>
11760
11761 * configure.in: New variable HAVE_UINTPTR_T.
11762 * configure, config.in: Regenerated.
11763
11764 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
11765
11766 Fix PR build/1097.
11767 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11768
11769 2003-02-25 Andrew Cagney <cagney@redhat.com>
11770
11771 * frame.c (get_prev_frame): Add comment on check for
11772 inside_entry_func. Only check for inside_entry_file when not a
11773 dummy and not a sentinel. Check that the new frame is not inner
11774 to the old frame.
11775
11776 2003-02-25 Andrew Cagney <cagney@redhat.com>
11777
11778 * frame.c (frame_debug): New variable.
11779 (_initialize_frame): Add "set/show debug frame" command.
11780 (get_prev_frame): When frame_debug, print reason why unwind
11781 failed.
11782
11783 2003-02-25 Michael Chastain <mec@shout.net>
11784
11785 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11786 to avoid uintptr_t definition problems.
11787
11788 2003-02-25 David Carlton <carlton@math.stanford.edu>
11789
11790 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11791 (SYMBOL_LINKAGE_NAME): Ditto.
11792 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11793 SYMBOL_LINKAGE_NAME.
11794 (struct general_symbol_info): Expand comment.
11795 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11796 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11797 (SYMBOL_MATCHES_REGEXP): Ditto.
11798 * symtab.c (symbol_natural_name): New function.
11799 * objfiles.h: Replace all uses of SYMBOL_NAME by
11800 DEPRECATED_SYMBOL_NAME.
11801 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11802 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11803 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11804 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11805 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11806 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11807 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11808 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11809 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11810 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11811 * ada-exp.y: Ditto.
11812 * ada-exp.y: Update copyright.
11813 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11814 * cp-valprint.c: Ditto.
11815
11816 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11817
11818 * infptrace.c (detach): Do not flag error if ptrace detach fails
11819 and errno is set to ESRCH.
11820
11821 2003-02-24 Andrew Cagney <cagney@redhat.com>
11822
11823 * infptrace.c (udot_info): Change type of udot_off to long. Use
11824 paddr when printing udot_off's value.
11825
11826 2003-02-24 David Carlton <carlton@math.stanford.edu>
11827
11828 * symtab.c (make_symbol_overload_list): Only read in partial
11829 symtabs containing a matching partial symbol.
11830
11831 2003-02-24 David Carlton <carlton@math.stanford.edu>
11832
11833 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11834 do the comparison, not strcmp.
11835 * symfile.c (compare_psymbols): Ditto.
11836 * defs.h: Declare strcmp_iw_ordered.
11837 * utils.c (strcmp_iw_ordered): New function.
11838
11839 2003-02-24 Jim Blandy <jimb@redhat.com>
11840
11841 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11842 support, shared libs): Remove my name from here, to better reflect
11843 reality.
11844
11845 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11846
11847 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11848 (target_ops): Add to_have_continuable_watchpoint.
11849 * target.c (update_current_target): Add INHERIT line for
11850 to_have_continuable_watchpoint.
11851 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11852 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11853 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11854 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11855
11856 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
11857
11858 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11859 maintainership.
11860
11861 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11862
11863 * solib.c (solib_open): Call target defined search function after
11864 failing with solib-search-path.
11865 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11866 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
11867
11868 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11869
11870 * MAINTAINERS: Add myself to Write After section.
11871
11872 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11873
11874 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11875
11876 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11877
11878 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11879 (m68hc11_add_reggroups): New function.
11880 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11881 (m68hc11_gdbarch_init): Install the reggroups.
11882 (_initialize_m68hc11_tdep): Initialize them.
11883
11884 2003-02-21 James E Wilson <wilson@tuliptree.org>
11885
11886 * MAINTAINERS: Update my email address.
11887
11888 2003-02-21 David Carlton <carlton@math.stanford.edu>
11889
11890 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11891
11892 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
11893
11894 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11895 * symtab.h: Add opaque declarations of struct axs_value and
11896 struct agent_expr.
11897 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11898 (struct location_funcs): New type.
11899 (struct symbol): Add "loc" to aux_value.
11900 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11901 * dwarf2read.c: Include "dwarf2expr.h".
11902 (dwarf2_symbol_mark_computed): New function.
11903 (read_func_scope): Use it.
11904 (var_decode_location): New function.
11905 (new_symbol): Use it.
11906 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11907
11908 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11909 (dwarf2expr_h, dwarf2loc_h): New variables.
11910 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11911 (dwarf2expr.o, dwarf2loc.o): New rules.
11912 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11913 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11914 LOC_COMPUTED_ARG.
11915 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11916 * m2-exp.y (yylex): Likewise.
11917 * printcmd.c (address_info, print_frame_args): Likewise.
11918 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11919 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11920 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11921 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11922 * symtab.c (lookup_block_symbol): Likewise.
11923
11924 2003-02-20 Adam Fedor <fedor@gnu.org>
11925
11926 * symtab.h: Remove objc_specific struct
11927 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11928 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11929 Have language_objc use cplus_specific struct.
11930
11931 2003-02-20 Tom Tromey <tromey@redhat.com>
11932
11933 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11934 TYPE_NAME, when printing a String value. PR java/1075.
11935
11936 2003-02-20 Adam Fedor <fedor@gnu.org>
11937
11938 * objc-lang.h (find_methods): Remove declaration.
11939 * objc-lang.c (find_methods): Make static.
11940
11941 2003-02-20 Christopher Faylor <cgf@redhat.com>
11942
11943 * win32-nat.c (get_image_name): Check return value from
11944 ReadProcessMemory.
11945 (child_xfer_memory): Ditto.
11946
11947 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
11948
11949 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11950 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11951 '${exec_prefix}' (in addition to the expansion thereof) as
11952 relocatable.
11953 * configure: Rebuilt.
11954
11955 2003-02-20 David Carlton <carlton@math.stanford.edu>
11956
11957 * symtab.c (search_symbols): Revert the search_symbols part of my
11958 2002-12-23 patch. Add comment.
11959
11960 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11961
11962 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11963 * dbxread.c (elfstab_build_psymtabs): Don't call
11964 install_minimal_symbols.
11965 (stabsect_build_psymtabs): Likewise.
11966 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11967 earlier.
11968 * somread.c (som_symfile_read): Call install_minimal_symbols
11969 and do_cleanups earlier.
11970 * nlmread.c (nlm_symfile_read): Likewise.
11971 * mdebugread.c (elfmdebug_build_psymtabs): Call
11972 install_minimal_symbols and make appropriate cleanups.
11973
11974 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11975
11976 * solib.c (reload_shared_libraries): New function.
11977 (_initialize_solib): Add callbacks for ``set solib-search-path''
11978 and ``set solib-absolute-prefix''.
11979
11980 2003-02-20 David Carlton <carlton@math.stanford.edu>
11981
11982 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11983 expand comment.
11984 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11985 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11986 * ada-typeprint.c (ada_typedef_print): Ditto.
11987 * ax-gdb.c (gen_var_ref): Ditto.
11988 * breakpoint.c (print_one_breakpoint): Ditto.
11989 * buildsym.c (finish_block): Ditto.
11990 * c-valprint.c (c_val_print): Ditto.
11991 * expprint.c (print_subexp): Ditto.
11992 * findvar.c (locate_var_value): Ditto.
11993 * infcmd.c (jump_command): Ditto.
11994 * linespec.c (decode_line_2, decode_compound): Ditto.
11995 * maint.c (maintenance_translate_address): Ditto.
11996 * objc-lang.c (compare_selectors, compare_classes): Ditto.
11997 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11998 Ditto.
11999 * p-valprint.c (pascal_val_print): Ditto.
12000 * stabsread.c (define_symbol): Ditto.
12001 * stack.c (print_frame, frame_info, print_block_frame_locals)
12002 (print_frame_arg_vars, return_command): Ditto.
12003 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12004 * symmisc.c (print_symbol): Ditto.
12005 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12006 (compare_search_syms, print_symbol_info, print_msymbol_info)
12007 (rbreak_command): Ditto.
12008 * tracepoint.c (tracepoints_info): Ditto.
12009 * typeprint.c (typedef_print): Ditto.
12010 * valops.c (value_of_variable, hand_function_call): Ditto.
12011 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12012 * ada-typeprint.c: Update Copyright.
12013 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12014 * tracepoint.c, cli/cli-cmds.c: Ditto.
12015
12016 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12017
12018 * frame.c (generic_unwind_get_saved_register): Make non-static.
12019 * frame.h (generic_unwind_get_saved_register): Declare.
12020 * mips-tdep.c (read_next_frame_reg): Fetch register from
12021 current regcache when frame is NULL.
12022 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12023 that must be NULL.
12024 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12025 instead of frame_register_unwind().
12026
12027 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12028
12029 * remote-sim.c (gdbsim_insert_breakpoint)
12030 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12031 code.
12032
12033 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12034
12035 * remote.c (_initialize_remote): Add commands "set/show remote
12036 hardware-watchpoint-limit" and "set/show remote
12037 hardware-breakpoint-limit".
12038 (remote_hw_watchpoint_limit): Initialize to -1.
12039 (remote_hw_breakpoint_limit): Ditto.
12040 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12041
12042 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12043
12044 * coff-pe-read.c: New file - support reading of minimal symbols from a
12045 portable executable using the export table.
12046 * coff-pe-read.h: New file.
12047 * coffread.c: Include coff-pe-read.h.
12048 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12049 debugging symbols found.
12050 * Makefile.in (SFILES): Add coff-pe-read.o.
12051 (coff_pe_read_h): Define.
12052 (COMMON_OBS): Add coff-pe-read.o.
12053 (coffread.o): Add coff_pe_read_h dependency.
12054 (coff-pe-read.o): New target.
12055
12056 2003-02-19 David Carlton <carlton@math.stanford.edu>
12057
12058 * Makefile.in (SFILES): Add block.c.
12059 (block_h): New.
12060 (COMMON_OBS): Add block.o.
12061 (block.o): New.
12062 (x86-64-tdep.o): Add $(block_h).
12063 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12064 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12065 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12066 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12067 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12068 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12069 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12070 * value.h: Add opaque declaration for struct block.
12071 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12072 * ada-lang.h: Ditto.
12073 * x86-64-tdep.c: #include "block.h"
12074 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12075 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12076 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12077 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12078 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12079 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12080 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12081 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12082 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12083 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12084 * symtab.c (block_function): Ditto.
12085 (contained_in): Ditto.
12086 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12087 block.h. Add opaque declaration for struct block.
12088 * symtab.h: Move block_function and contained_in declarations to
12089 block.h. Add opaque declarations for struct block, struct
12090 blockvector.
12091 (struct block): Move to block.h.
12092 (struct blockvector): Ditto.
12093 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12094 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12095 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12096 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12097 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12098 Ditto.
12099 * block.c: New file.
12100 * block.h: New file.
12101
12102 2003-02-19 Theodore A. Roth <troth@openavr.org>
12103
12104 * avr-tdep.c (avr_extract_return_value): Remove function.
12105 (avr_store_return_value): Remove function.
12106 (avr_extract_struct_value_address): Remove function.
12107 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12108
12109 2003-02-19 Andrew Cagney <ac131313@redhat.com>
12110
12111 * rs6000-tdep.c: Include "gdb_assert.h".
12112 (registers_e500): Add "acc" and "spefscr".
12113 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12114 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12115 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12116 really is "r0".
12117 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12118
12119 2003-02-18 Keith Seitz <keiths@redhat.com>
12120
12121 * Makefile.in: Add gdbtk-interps.c.
12122
12123 2003-02-18 Kevin Buettner <kevinb@redhat.com>
12124
12125 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12126 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12127
12128 2003-02-18 Andrew Cagney <cagney@redhat.com>
12129
12130 * symtab.h (struct objfile): Add opaque declaration.
12131
12132 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
12133
12134 From Jim Ingham <jingham@apple.com>:
12135 * dbxread.c (process_one_symbol): Use last_function_start rather
12136 than function_start_offset to find the real beginning of the
12137 current function. The latter is just the text section offset on
12138 some systems, the former is always the real function start.
12139
12140 2003-02-17 Andrew Cagney <cagney@redhat.com>
12141
12142 * configure.in: Revert ${target} != ${host}.
12143
12144 2003-02-17 Andrew Cagney <ac131313@redhat.com>
12145
12146 * configure.in (Makefile): Use the test ${target} != ${host},
12147 instead of the absence of the "nm.h" file, to determine of the
12148 configuration non-native.
12149 * configure: Regenerate.
12150
12151 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
12152
12153 From Brian Ford <ford@vss.fsi.com>
12154
12155 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12156 conditionalize tui_active test.
12157 (lookup_cmd_1): Ditto.
12158
12159 2003-02-14 Mark Kettenis <kettenis@gnu.org>
12160
12161 * configure.in: Add check for _etext.
12162 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12163 available.
12164 * config.in, configure: regenerated.
12165
12166 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
12167
12168 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12169
12170 2003-02-14 Andrew Cagney <ac131313@redhat.com>
12171
12172 * main.c (tui_version): Delete variable.
12173 (captured_main): When --tui, set interpreter_p to "tui" instead of
12174 enabling tui_version.
12175 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12176 tui_version.
12177 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12178 * cli/cli-cmds.c (disassemble_command): Ditto.
12179 * defs.h (tui_version): Delete declaration.
12180 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12181 (tui-interp.o): Add rules.
12182 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12183
12184 2003-02-14 Christopher Faylor <cgf@redhat.com>
12185
12186 * win32-nat.c (register_loaded_dll): Correctly set address range for
12187 just-loaded dll.
12188
12189 2003-02-12 Jason Molenda (jmolenda@apple.com)
12190
12191 * symmisc.c (print_objfile_statistics): Include information about
12192 the number of psymtabs and symtabs in each object file.
12193
12194 2003-02-13 Keith R Seitz <keiths@redhat.com>
12195
12196 * main.h (struct captured_main_args): Add interpreter_p.
12197 * main.c (captured_main): Initialize interpreter_p from context.
12198 * gdb.c (main): Set interpreter_p argument.
12199 * Makefile.in (gdb.o): Add dependency for interps.h.
12200
12201 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12202
12203 * event-top.c (cli_command_loop): Delete declaration.
12204 (_initialize_event_loop): Delete function setting event_loop_hook.
12205 * event-top.h (cli_command_loop): Declare. Update copyright.
12206 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12207 * interps.c (current_interp_command_loop): When event_loop_p, call
12208 cli_command_loop.
12209
12210 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12211
12212 * interps.h (interp_command_loop_ftype): Change return type to
12213 void.
12214
12215 2003-02-12 Michal Ludvig <mludvig@suse.cz>
12216
12217 * x86-64-tdep.c (x86_64_extract_return_value)
12218 (x86_64_store_return_value): Use regcache instead of regbuf.
12219 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12220 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12221
12222 2003-02-11 Andrew Cagney <ac131313@redhat.com>
12223
12224 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12225 * aclocal.m4: Regenerate.
12226 * configure: Regenerate.
12227
12228 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12229 TCL_LD_SEARCH_FLAGS.
12230
12231 2003-02-10 Michal Ludvig <mludvig@suse.cz>
12232
12233 * dwarf2cfi.c: Reindented.
12234
12235 2003-02-09 Andrew Cagney <ac131313@redhat.com>
12236
12237 * interps.c (clear_interpreter_hooks): Convert function definition
12238 to ISO C.
12239
12240 2003-02-07 David Carlton <carlton@math.stanford.edu>
12241
12242 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12243
12244 2003-02-07 Kevin Buettner <kevinb@redhat.com>
12245
12246 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12247 (struct type): ...to here.
12248 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12249 field.
12250 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12251 (replace_type): Set length on all type variants for a given type.
12252
12253 2003-02-07 Andrew Cagney <ac131313@redhat.com>
12254
12255 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12256 <sys/stat.h>.
12257 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12258
12259 2003-02-06 Andrew Cagney <ac131313@redhat.com>
12260
12261 * Makefile.in (symm-nat.o): Update dependencies.
12262 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12263 (lynx-nat.o, ia64-linux-nat.): Ditto.
12264 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12265 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12266 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12267
12268 * Makefile.in (inflow_h): Define.
12269 (procfs.o, inflow.o, procfs.o): Update dependencies.
12270 * inftarg.c (child_stop): Delete extern declaration of
12271 inferior_process_group. Include "inflow.h".
12272 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12273 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12274 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12275 (our_process_group, inferior_process_group): Extern declarations.
12276
12277 * procfs.c: Include "gdb_assert.h".
12278
12279 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12280 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12281 * jv-typeprint.c (java_type_print_base): Ditto.
12282 * typeprint.c (typedef_print): Eliminate STREQ.
12283 * cli/cli-script.c (define_command, define_command): Ditto.
12284 * main.c (captured_main): Ditto.
12285 * values.c (lookup_internalvar): Ditto.
12286 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12287 within `if' conditional.
12288 * linespec.c (decode_line_2): Ditto.
12289 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12290 (bfd_openw_with_cleanup): Ditto.
12291
12292 2003-02-07 Mark Kettenis <kettenis@gnu.org>
12293
12294 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12295 legacy_extract_return_value and store_return_value to
12296 legacy_return_value.
12297
12298 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12299
12300 * win32-nat.c (get_relocated_section_addrs): New function. Find
12301 section load addresses for symbol handling in relocated DLLs.
12302 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12303
12304 2003-02-05 Fred Fish <fnf@intrinsity.com>
12305
12306 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12307 '=' and '!='.
12308 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12309 with '&' and '=='.
12310 (angel_RDI_info): Ditto.
12311 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12312 with '&' and '!='.
12313 (threads_continue_all_with_signals): Ditto.
12314
12315 2003-02-05 Jim Ingham <jingham@apple.com>
12316 Keith Seitz <keiths@redhat.com>
12317 Elena Zannoni <ezannoni@redhat.com>
12318 Andrew Cagney <ac131313@redhat.com>
12319
12320 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12321 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12322 (SUBDIR_MI_OBS): Add "mi-interp.o".
12323 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12324 (SFILES): Add "interps.c".
12325 (COMMON_OBS): Add "interps.o".
12326 (interps_h, mi_main_h): Define.
12327 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12328 (mi-main.o, main.o, event-top.o): Update dependencies.
12329 * cli/cli-interp.c: New file.
12330 * interps.h, interps.c: New files.
12331 * top.c: (gdb_init): Don't install the default interpreter, handed
12332 by captured_main.
12333 * main.c: Include "interps.h".
12334 (interpreter_p): Note that it should malloc'ed.
12335 (captured_command_loop): Call current_interp_command_loop.
12336 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12337 xfree and xstrdup when updating interpreter_p. Install the
12338 default interpreter. Add hack to stop mi1's copyright notice
12339 being encoded.
12340 * event-top.h (gdb_setup_readline): Declare.
12341 (gdb_disable_readline): Declare.
12342 * event-top.c: Include "interps.h".
12343 (display_gdb_prompt): Call current_interp_display_prompt_p.
12344 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12345 gdb_stdlog, and gdb_stdtarg.
12346 (_initialize_event_loop): Don't call gdb_setup_readline.
12347 * cli-out.c (cli_out_set_stream): New function.
12348 * cli-out.h (cli_out_set_stream): Declare.
12349
12350 2003-02-06 Mark Kettenis <kettenis@gnu.org>
12351
12352 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12353 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12354 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12355 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12356 config/i386/i386v42mp.mt: Removed.
12357
12358 2003-02-05 Mark Kettenis <kettenis@gnu.org>
12359
12360 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12361 GDB_OSABI_SOLARIS.
12362
12363 2003-02-05 Michael Chastain <mec@shout.net>
12364
12365 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12366 2.12.1 and earlier versions.
12367
12368 2003-02-05 Andrew Cagney <ac131313@redhat.com>
12369
12370 Remove orphaned hosts, targets and files.
12371 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12372 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12373 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12374 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12375 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12376 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12377 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12378 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12379 * config/sparc/tm-sp64sim.h: Delete.
12380 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12381 hosts.
12382 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12383 mips*-dec-mach3* targets.
12384
12385 2003-02-04 Michael Chastain <mec@shout.net>
12386
12387 * NEWS: Fix typo: sepcifying -> specifying.
12388
12389 2003-02-04 Michael Chastain <mec@shout.net>
12390
12391 * dwarfread.c: Add documentation on the state of dwarf-1,
12392 looking towards obsoletion.
12393
12394 2003-02-03 Michael Chastain <mec@shout.net>
12395
12396 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12397 gdb/testsuite/gdb.c++/pr-1023.exp.
12398
12399 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12400
12401 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12402 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12403
12404 * utils.c (init_page_info): Delete reference to MPW in comments.
12405 * main.c (captured_main): Delete #ifdef MPW.
12406
12407 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12408
12409 * NEWS: Note that the m32r-*-elf* is obsolete.
12410 * monitor.c (monitor_expect): Obsolete reference to m32r.
12411 * configure.tgt: Mark m32r-*-elf* as obsolete.
12412 * MAINTAINERS: Mark m32k as obsolete.
12413 * m32r-rom.c: Obsolete file.
12414 * config/m32r/m32r.mt: Obsolete file.
12415 * config/m32r/tm-m32r.h: Obsolete file.
12416 * m32r-stub.c: Obsolete file.
12417 * m32r-tdep.c: Obsolete file.
12418
12419 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12420
12421 * NEWS: Mention that the z8k-zilog-none is obsolete.
12422 * MAINTAINERS: Mark z8k as obsolete.
12423 * configure.tgt: Obsolete the z8k-*-coff* target.
12424 * config/z8k/z8k.mt: Obsolete file.
12425 * config/z8k/tm-z8k.h: Obsolete file.
12426 * z8k-tdep.c: Obsolete file.
12427
12428 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12429
12430 * NEWS: Mention that the mn10200-elf is obsolete.
12431 * configure.tgt: Obsolete mn10200-*-* target.
12432 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12433 mention that the mn10200 is obsolete.
12434 * breakpoint.h: Ditto.
12435 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12436 * config/mn10200/mn10200.mt: Obsolete file.
12437 * config/mn10200/tm-mn10200.h: Obsolete file.
12438 * mn10200-tdep.c: Obsolete file.
12439
12440 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12441
12442 * MAINTAINERS: Mark h8500 as obsolete.
12443 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12444 * findvar.c (value_from_register): Ditto.
12445 * h8500-tdep.c: Mark file as obsolete.
12446 * config/h8500/h8500.mt: Ditto.
12447 * config/h8500/tm-h8500.h: Ditto.
12448 * NEWS: Mention that h8500 is obsolete.
12449
12450 2003-02-04 David Carlton <carlton@math.stanford.edu>
12451
12452 * objfiles.c (allocate_objfile): Always set name. Add comment at
12453 start of function.
12454 * jv-lang.c (get_dynamics_objfile): Add comment.
12455
12456 2003-02-04 David Carlton <carlton@math.stanford.edu>
12457
12458 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12459 * printcmd.c (build_address_symbolic): Replace uses of
12460 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12461 SYMBOL_NAME, and asm_demangle.
12462 Update copyright.
12463
12464 2003-02-04 David Carlton <carlton@math.stanford.edu>
12465
12466 * linespec.c (decode_compound): Extract code into
12467 lookup_prefix_sym.
12468 (lookup_prefix_sym): New function.
12469
12470 2003-02-04 David Carlton <carlton@math.stanford.edu>
12471
12472 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12473 FLOAT_COERCION_BADNESS.
12474 * gdbtypes.c (rank_one_type): Replace all uses of
12475 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12476
12477 2003-02-04 Jim Blandy <jimb@redhat.com>
12478
12479 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12480 section, let dwarf_macinfo_section point to it, not
12481 dwarf_loc_section.
12482
12483 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12484
12485 Pointed out by Anton Blanchard <anton@samba.org>.
12486 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12487 (ppc_linux_at_sigtramp_return_path): Use it.
12488
12489 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12490
12491 * defs.h (streq): Add prototype.
12492 * utils.c (streq): New function.
12493
12494 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12495 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12496 * mdebugread.c (new_symbol): Likewise.
12497 * stabsread.c (define_symbol): Likewise.
12498 * coffread.c (process_coff_symbol): Likewise.
12499 * dwarfread.c (new_symbol): Likewise.
12500
12501 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12502 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12503 here.
12504 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12505 SYMBOL_INIT_DEMANGLED_NAME.
12506 * objfiles.c: Include "hashtab.h".
12507 (allocate_objfile): Call htab_set_functions_ex for the
12508 demangled_names_hash.
12509 (free_objfile): Call htab_delete for the demangled_names_hash.
12510 * objfiles.h (struct htab): Add declaration.
12511 (struct objfile): Add demangled_names_hash.
12512 * symfile.c: Include "hashtab.h".
12513 (reread_symbols): Call htab_delete for the demangled_names_hash.
12514 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12515 SYMBOL_NAME in the bcache.
12516 * symtab.c: Include "hashtab.h". Update comments.
12517 (create_demangled_names_hash, symbol_set_names): New functions.
12518 (symbol_find_demangled_name): New function, broken out from
12519 symbol_init_demangled_names.
12520 (symbol_init_demangled_names): Use it.
12521 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12522 (SYMBOL_SET_NAMES): New macro.
12523 (symbol_set_names): Add prototype.
12524
12525 2003-02-03 Jim Blandy <jimb@redhat.com>
12526
12527 Use a single, consistent representation for an empty minimal
12528 symbol table in an objfile.
12529 * objfiles.c (terminate_minimal_symbol_table): New function.
12530 (allocate_objfile): Call it.
12531 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12532 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
12533 non-NULL.
12534 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12535 objfile has minimal symbols, compare minimal_symbol_count to zero,
12536 instead of comparing msymbols with NULL.
12537 * objfiles.c (have_minimal_symbols): Same.
12538 * solib-sunos.c (solib_add_common_symbols): Call
12539 terminate_minimal_symbol_table.
12540 * symfile.c (reread_symbols): Same.
12541
12542 2003-02-03 Kevin Buettner <kevinb@redhat.com>
12543
12544 * s390-tdep.c (s390_address_class_type_flags)
12545 (s390_address_class_type_flags_to_name)
12546 (s390_address_class_name_to_type_flags): New functions.
12547 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12548 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12549
12550 2003-02-03 Michael Snyder <msnyder@redhat.com>
12551
12552 * arm-tdep.c: Fix spell-o in comment.
12553
12554 2003-02-03 Michal Ludvig <mludvig@suse.cz>
12555
12556 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12557 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
12558 error messages to contain BFD filename.
12559
12560 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
12561
12562 Fix PR gdb/742 gdb/743 gdb/877
12563 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12564 (do_mixed_source_and_assembly): Use
12565 make_cleanup_ui_out_tuple_begin_end and
12566 make_cleanup_ui_out_tuple_begin_end.
12567 (do_mixed_source_and_assembly): Ditto.
12568 * thread.c (do_captured_list_thread_ids): Ditto.
12569 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12570 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12571 ui_out_tuple_end): Delete prototypes.
12572 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12573 ui_out_list_end, ui_out_tuple_end): Delete.
12574
12575 From Kevin Buettner <kevinb@redhat.com>:
12576 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
12577 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12578 (do_cleanup_table_end): New functions.
12579 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12580 Use cleanups to invoke_ui_out_tuple_end().
12581 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
12582 * cli/cli-setshow.c (cmd_show_list): Use
12583 make_cleanup_ui_out_tuple_begin_end.
12584
12585 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12586
12587 * frame.c (frame_unwind_register): New function.
12588 (frame_unwind_unsigned_register): Use.
12589 (frame_unwind_signed_register): Use.
12590 (frame_read_register): New function.
12591 * frame.h (frame_unwind_register): Declare.
12592 (frame_read_register): Declare.
12593
12594 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12595 and frame_unwind_register instead of read_memory, write_register
12596 and deprecated_write_register_bytes.
12597
12598 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12599
12600 * frame.h: Note that namelen can be negative.
12601 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12602 NAME's length.
12603
12604 * NEWS: Mention that the d10v's `regs' command is deprecated.
12605 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12606 (d10v_print_registers_info): New function.
12607 (show_regs): Call d10v_print_registers_info.
12608 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12609
12610 2003-02-02 Mark Kettenis <kettenis@gnu.org>
12611
12612 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12613 lost in the previous patch.
12614
12615 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12616
12617 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
12618 * stack.c (print_frame_info_base): Output complete FRAME tuple
12619 for synthesized frames.
12620
12621 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12622
12623 * mips-nat.c (zerobuf): Delete.
12624 (fetch_inferior_registers): Alloc local zerobuf.
12625 (fetch_core_registers): Alloc local zerobuf.
12626 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12627 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12628 * thread-db.c (thread_db_store_registers): Ditto.
12629 * sh-tdep.c (sh_do_register): Ditto.
12630 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12631 * remote-sim.c (gdbsim_store_register): Ditto.
12632 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12633 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12634 * monitor.c (monitor_supply_register): Ditto.
12635 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12636 * mips-nat.c (fetch_inferior_registers): Ditto.
12637 * m68klinux-nat.c (fetch_register): Ditto.
12638 * lynx-nat.c (fetch_inferior_registers): Ditto.
12639 (fetch_inferior_registers): Ditto.
12640 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12641 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12642 (hpux_thread_store_registers): Ditto.
12643 * hppah-nat.c (fetch_register): Ditto.
12644 * hppab-nat.c (fetch_register): Ditto.
12645 * hppa-tdep.c (pa_register_look_aside): Ditto.
12646 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12647 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12648
12649 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12650
12651 * gdbarch.sh: Explictly specify all method levels. When a
12652 variable with an empty level, provide a non-multi-arch default.
12653 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12654 * gdbarch.h: Re-generate.
12655 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12656 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12657
12658 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12659
12660 * defs.h (host_pointer_to_address): Delete declaration.
12661 (address_to_host_pointer): Delete declaration.
12662 * utils.c (host_pointer_to_address): Delete function.
12663 (address_to_host_pointer): Delete function.
12664 * procfs.c (procfs_address_to_host_pointer): New function.
12665 * procfs.c (proc_set_watchpoint): Use.
12666 (procfs_can_use_hw_breakpoint): Update comments.
12667 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12668 (som_solib_add): Use.
12669 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12670 * hppa-tdep.c (unwind_command): Use.
12671
12672 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12673
12674 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12675 strlen d_name.
12676
12677 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12678 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12679 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12680 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12681 (define_symbol): Update.
12682 * symfile.c (generic_load): Remove references to nindy.
12683 * symtab.c: Remove references to nindy.
12684
12685 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12686
12687 * infcmd.c (print_float_info): Delete code conditional on
12688 FLOAT_INFO.
12689 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12690 * config/m68k/nm-apollo68b.h: Ditto.
12691 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12692 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12693 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12694
12695 2003-02-01 Mark Kettenis <kettenis@gnu.org>
12696
12697 * config/i386/tm-i386os9k.h: Removed.
12698
12699 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12700 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12701 they're identical to i[3456]86-*-sysv* now.
12702 * config/i386/i386v32.mh: Removed.
12703 * config/i386/xm-i386v32.h: Removed.
12704 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12705
12706 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12707
12708 * config/i386/i386dgux.mh: Removed.
12709 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12710
12711 * configure.in: Fix typo.
12712 * configure: Regenerated.
12713
12714 2003-01-31 David Carlton <carlton@math.stanford.edu>
12715
12716 * dwarf2read.c (dwarf2_locate_sections): Set
12717 dwarf_ranges_section.
12718
12719 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12720
12721 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12722 * utils.c: Update comments documenting legitimate uses of PTR.
12723
12724 * utils.c: Re-indent.
12725
12726 * config/djgpp/fnchange.lst: Delete nindy files.
12727 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12728 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12729 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12730 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12731 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12732 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12733 * Makefile.in (init.c): Remove nindy references.
12734 (saber_gdb): Delete rule.
12735 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12736 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12737 and a68v-nat.c.
12738 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12739 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12740 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12741 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12742 nindy-share/stop.h.
12743 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12744 * saber.suppress: Delete file.
12745
12746 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
12747
12748 * dbxread.c (stabs_data): New static variable.
12749 (fill_symbuf): Support an in-memory buffer for stabs data.
12750 (stabs_seek): New function.
12751 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12752 (read_ofile_symtab): Use stabs_seek.
12753 (elfstab_build_psymtabs): Take an asection* instead of
12754 an offset and size. Relocate the stabs data if necessary.
12755 Save the section* for dbx_psymtab_to_symtab.
12756 * dwarf2read.c: Add section variables for each debug section.
12757 (dwarf2_locate_sections): Fill them in.
12758 (dwarf2_read_section): Take an asection* argument.
12759 Relocate the section contents if necessary.
12760 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12761 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12762 it to dwarf2_read_section.
12763 (dwarf2_build_frame_info): Update callers.
12764 * elfread.c (elf_symfile_read): Update call to
12765 elfstab_build_psymtabs.
12766 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12767 (DBX_STAB_SECTION): New macro.
12768 * stabsread.h (elfstab_build_psymtabs): Update prototype.
12769 * symfile.c (symfile_dummy_outputs): New function.
12770 (symfile_relocate_debug_section): New function.
12771 * symfile.h (symfile_relocate_debug_section): Add prototype.
12772
12773 2003-01-31 Richard Henderson <rth@redhat.com>
12774
12775 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12776 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12777 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12778 * alpha-tdep.c (alpha_register_name): Add "unique".
12779 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12780 (ALPHA_UNIQUE_REGNUM): New.
12781 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12782
12783 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12784
12785 * README: Remove reference to Ericsson 1800 monitor.
12786 * Makefile.in (remote-es.o): Delete rule.
12787 (ALLDEPFILES): Delete remote-es.c.
12788 * remote-es.c: Delete file.
12789 * config/m68k/es1800.mt: Delete file.
12790 * config/djgpp/fnchange.lst: Update.
12791 * configure.tgt: Delete m68*-ericsson-* target.
12792
12793 2003-01-31 Adam Fedor <fedor@gnu.org>
12794
12795 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12796 Remove duplicate/shadowing variable of same name.
12797
12798 2003-01-30 Jim Blandy <jimb@redhat.com>
12799
12800 * symfile.c (find_separate_debug_file): Assert that the objfile's
12801 directory name we compute ends with a slash, and then assume that
12802 that's so everywhere we use it.
12803
12804 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
12805
12806 * valops.c (value_assign): Flush frame cache after stores to memory
12807 also.
12808
12809 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12810
12811 * Makefile.in (mon960-rom.o): Delete rule.
12812 * mon960-rom.c: Delete file.
12813
12814 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12815
12816 * d10v-tdep.c: Include "frame-unwind.h".
12817 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12818 list.
12819 (next_addr, uses_frame): Delete.
12820 (struct d10v_unwind_cache): Define.
12821 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12822 Use info instead of next_addr and uses_frame globals.
12823 (d10v_frame_init_saved_regs): Delete function.
12824 (d10v_init_extra_frame_info): Delete function.
12825 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12826 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12827 init_frame_pc or frame_saved_pc.
12828 (d10v_pop_frame): Delete function.
12829 (do_d10v_pop_frame): Delete function.
12830 (d10v_frame_chain): Delete function.
12831 (d10v_frame_chain_valid): Delete function.
12832 (d10v_frame_pc_unwind): New function.
12833 (d10v_frame_id_unwind): New function.
12834 (saved_regs_unwinder): New function.
12835 (d10v_frame_register_unwind): New function.
12836 (d10v_frame_pop): New function.
12837 (d10v_frame_unwind): New variable.
12838 (d10v_frame_p): New function.
12839 (d10v_frame_saved_pc): Delete function.
12840 * Makefile.in (d10v-tdep.o): Update dependencies.
12841
12842 2003-01-30 J. Brobecker <brobecker@gnat.com>
12843
12844 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12845 causing some regressions due to a change in the default value
12846 for this macro.
12847
12848 2003-01-29 Richard Henderson <rth@redhat.com>
12849 Elena Zannoni <ezannoni@redhat.com>
12850 Daniel Jacobowitz <drow@mvista.com>
12851
12852 Fix PR gdb/961.
12853 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
12854 variables.
12855 (RANGES_SECTION): New.
12856 (dwarf_ranges_buffer): New variable.
12857 (struct comp_unit_head): Add member "die".
12858 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12859 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12860 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12861 (dwarf2_locate_sections): Likewise.
12862 (dwarf2_build_psymtabs): Read .debug_ranges.
12863 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12864 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12865 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12866 Look for DW_AT_ranges and return the bounding box.
12867
12868 2003-01-29 Brian Ford <ford@vss.fsi.com>
12869
12870 * win32-nat.c (cygwin_pid): Removed as unused.
12871 (child_attach): Try fall back to Cygwin pid.
12872
12873 2003-01-29 Jim Blandy <jimb@redhat.com>
12874
12875 * objfiles.h (struct objfile): Doc fix.
12876
12877 2003-01-29 Andrew Cagney <ac131313@redhat.com>
12878
12879 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12880 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12881 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12882 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12883 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12884 (FRAME_SAVED_PC): Change to a function with predicate.
12885 * gdbarch.h, gdbarch.c: Re-generate.
12886
12887 2003-01-28 Andrew Cagney <ac131313@redhat.com>
12888
12889 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12890
12891 * complaints.c (complain): Delete function.
12892 * complaints.h (struct deprecated_complaint): Delete definition.
12893 (complain): Delete declaration.
12894
12895 2003-01-28 Kevin Buettner <kevinb@redhat.com>
12896
12897 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12898 dummy frames.
12899
12900 2003-01-27 Andrew Cagney <ac131313@redhat.com>
12901
12902 * sentinel-frame.h, sentinel-frame.c: New files.
12903 * Makefile.in (frame.o): Update dependencies.
12904 (SFILES): Add sentinel-frame.c.
12905 (sentinel_frame_h): Define.
12906 (COMMON_OBS): Add sentinel-frame.o.
12907 (sentinel-frame.o): Specify dependencies.
12908 * frame.c: Include "sentinel-frame.h".
12909 (frame_register_unwind): Rewrite assuming that there is always a a
12910 ->next frame.
12911 (frame_register, generic_unwind_get_saved_register): Ditto.
12912 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12913 (create_sentinel_frame, unwind_to_current_frame): New functions.
12914 (get_current_frame): Rewrite using create_sentinel_frame and
12915 unwind_to_current_frame. When possible, always create a frame.
12916 (create_new_frame): Set next to the sentinel frame.
12917 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12918 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12919 ID cache when necessary.
12920 (frame_saved_regs_id_unwind): Use frame_relative_level.
12921 (deprecated_generic_get_saved_register): Use frame_relative_level,
12922 get_frame_saved_regs, get_frame_pc, get_frame_base and
12923 get_next_frame.
12924 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12925 frame_register.
12926
12927 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12928
12929 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12930
12931 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12932
12933 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12934 (maintenance_set_profile_cmd): Use error () instead of warning ().
12935
12936 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12937
12938 * configure.in: Check that -pg works if using --enable-profiling.
12939 Check for monstartup and _mcleanup regardless of --enable-profiling.
12940 * maint.c: Check for monstartup and _mcleanup before using them.
12941 * config.in: Regenerated.
12942 * configure: Regenerated.
12943
12944 2003-01-24 Nick Clifton <nickc@redhat.com>
12945
12946 * Add sh2e support:
12947
12948 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12949
12950 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12951 (sh2e_show_regs): New.
12952 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12953 * config/sh/tm-sh.h: Added sh2e to comments.
12954
12955 2003-01-23 Jim Blandy <jimb@redhat.com>
12956
12957 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12958 symbols found)" message here; we haven't checked for a separate
12959 debug info file yet, so we don't know yet.
12960 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12961 we've looked everywhere. Also, there's no need to print a special
12962 message when we're loading the separate debug info file: the one
12963 symbol_file_add prints is fine.
12964
12965 2003-01-23 Alexander Larsson <alexl@redhat.com>
12966 Jim Blandy <jimb@redhat.com>
12967
12968 Add support for executables whose debug info has been separated
12969 out into a separate file, leaving only a link behind.
12970 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12971 and separate_debug_objfile_backlink.
12972 (put_objfile_before): New declaration.
12973 * symfile.c: #include "filenames.h".
12974 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12975 debug info in a separate file, read that, too. Save the addrs
12976 argument, so we can use it again to read the separated debug info;
12977 syms_from_objfile modifies the table we pass it.
12978 (reread_symbols): After re-reading an objfile, call
12979 reread_separate_symbols to refresh its separate debug info
12980 objfile, if it has one.
12981 (reread_separate_symbols, find_separate_debug_file,
12982 get_debug_link_info, separate_debug_file_exists): New functions.
12983 (debug_file_directory): New global var.
12984 (_initialize_symfile): Initialize debug_file_directory, and
12985 provide the new `set debug-file-directory' command to let the user
12986 change it.
12987 * objfiles.c (free_objfile): If this objfile has its debug info in
12988 a separate objfile, free that one too. If this is itself a
12989 separate debug info objfile, clear our parent's backlink.
12990 (put_objfile_before): New function.
12991 * utils.c (gnu_debuglink_crc32): New function.
12992 * defs.h (gnu_debuglink_crc32): New declaration.
12993 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12994 * configure.in: Handle --with-separate-debug-dir config option.
12995 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12996 * acconfig.h (DEBUGDIR): New macro.
12997 * configure, aclocal.m4, config.in: Regenerated.
12998
12999 2003-01-22 Jim Blandy <jimb@redhat.com>
13000
13001 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13002 like the old symbol_file_add, but taking new arguments: you can
13003 now pass in either a `struct section_addr_info' list to say where
13004 each section is loaded, or a `struct section_offsets' table. Pass
13005 these new arguments through to syms_from_objfile as appropriate.
13006 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13007 with the appropriate quiescent values for the new arguments.
13008
13009 * symfile.c: #include "gdb_assert.h".
13010 (syms_from_objfile): Add the ability to pass in a section offset
13011 table directly, as an alternative to the section_addr_info table.
13012 Document arguments better.
13013 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13014 * symfile.h (syms_from_objfile): Update declaration.
13015 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13016 syms_from_objfile.
13017 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13018
13019 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
13020
13021 Original patch by Tom Tromey <tromey@cygnus.com> and
13022 Jason Molenda <jmolenda@apple.com>.
13023 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13024 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13025 * NEWS: Mention profiling.
13026 * configure.in (--enable-gdbtk): Fix typo.
13027 (--enable-profiling): New. Set PROFILE_CFLAGS.
13028 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13029 Fill in function.
13030 (profiling_state): New variable.
13031 (mcleanup_wrapper): New function.
13032 (_initialize_maint): Remove NOTYET, fix call to
13033 add_setshow_boolean_cmd for "maint set profile".
13034 * configure: Regenerated.
13035
13036 2003-01-21 Martin M. Hunt <hunt@redhat.com>
13037
13038 * Makefile.in (install-gdbtk): Install PNG images too.
13039
13040 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13041
13042 * exec.c (text_start): Delete global variable.
13043 (exec_file_attach): Make text_start local to the function.
13044 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13045 * valops.c (hand_function_call): Delete code that handles
13046 BEFORE_TEXT_END and AFTER_TEXT_END.
13047 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13048 of CALL_DUMMY_LOCATION.
13049 * gdbarch.c: Regenerate.
13050 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13051 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13052 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13053 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13054 (text_end): Delete extern declaration.
13055
13056 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13057
13058 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13059 * blockframe.c (backtrace_below_main): Move to "frame.c".
13060 (frame_chain_valid): Delete check for backtrace_below_main.
13061 (_initialize_blockframe): Delete initialization, move ``set
13062 backtrace-below-main'' command to "frame.c".
13063 (do_flush_frames_sfunc): Delete function.
13064 * frame.c: Include "command.h" and "gdbcmd.h".
13065 (frame_type_from_pc): New function.
13066 (create_new_frame): Use frame_type_from_pc.
13067 (legacy_get_prev_frame): New function.
13068 (get_prev_frame): Rewrite. When an old style frame, call
13069 legacy_get_prev_frame. Otherwize, unwind the PC first.
13070 (_initialize_frame): Add ``set backtrace-below-main'' command.
13071 * Makefile.in (frame.o): Update dependencies.
13072
13073 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13074
13075 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13076 DEPRECATED_REGISTERS_INFO.
13077
13078 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13079
13080 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13081 Maintainers'. Update `Various Maintainers'.
13082
13083 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13084
13085 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13086 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13087 Suppress actual parameters when `-'.
13088 * gdbarch.h, gdbarch.c: Regenerate.
13089
13090 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13091
13092 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13093 code handling dummy frames.
13094
13095 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13096
13097 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13098 (struct frame_unwind): Add field pop.
13099 * frame.h (frame_pop): Declare.
13100 * frame.c (frame_saved_regs_pop): New function.
13101 (trad_frame_unwinder): Add frame_saved_regs_pop.
13102 (frame_pop): New function.
13103 * dummy-frame.c (dummy_frame_pop): New function.
13104 (discard_innermost_dummy): New function.
13105 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13106 (dummy_frame_unwind): Add dummy_frame_pop.
13107 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13108 * valops.c (hand_function_call): Ditto.
13109 * stack.c (return_command): Ditto.
13110
13111 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13112
13113 * cris-tdep.c: Fix function declaration indentation.
13114 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13115 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13116 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13117 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13118 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13119 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13120
13121 2003-01-18 Michael Chastain <mec@shout.net>
13122
13123 * README (Unpacking and Installation -- quick overview):
13124 Warn against ".../gdb-5.3/gdb/configure".
13125
13126 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13127
13128 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13129 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13130 (struct frame_unwind): Declare opaque.
13131 (dummy_frame_p): Declare function.
13132 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13133 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13134 * dummy-frame.c: Include "frame-unwind.h".
13135 (dummy_frame_p): New function.
13136 (dummy_frame_unwind): New variable.
13137 * frame.c: Include "frame-unwind.h".
13138 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13139 to use the new unwind field.
13140 (set_unwind_by_pc): Delete function.
13141 (create_new_frame, get_prev_frame): Set unwind field using
13142 frame_unwind_find_by_pc.
13143 (trad_frame_unwind, trad_frame_unwinder): New variables.
13144 * frame.h (trad_frame_unwind): Declare variable.
13145 (frame_id_unwind_ftype): Delete declaration.
13146 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13147 (struct frame_unwind): Declare opaque.
13148 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13149 register_unwind with a single unwind pointer.
13150 * frame-unwind.h, frame-unwind.c: New files.
13151 * Makefile.in (SFILES): Add frame-unwind.c.
13152 (frame_unwind_h): Define.
13153 (COMMON_OBS): Add frame-unwind.o.
13154 (frame-unwind.o): Specify dependencies.
13155 (frame.o, dummy-frame.o): Update dependencies.
13156
13157 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13158
13159 * ada-valprint.c: Eliminate PTR.
13160 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13161 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13162 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13163 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13164 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13165 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13166 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13167
13168 2003-01-17 Andrew Cagney <ac131313@redhat.com>
13169
13170 * main.c (captured_main): Don't use PTR.
13171 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13172 * gdbtypes.c (lookup_primitive_typename): Ditto.
13173 (lookup_struct_elt_type): Ditto.
13174 * f-valprint.c (info_common_command): Ditto.
13175 (list_all_visible_commons): Ditto.
13176 * jv-typeprint.c (java_type_print_base): Ditto.
13177
13178 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13179 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13180 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13181 i386-interix-nat.c and i386-interix-tdep.c. Rename
13182 m68klinux-nat.c and m68klinux-tdep.c. Rename
13183 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13184 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13185 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13186 * main.c (captured_main): Use xfree, not free.
13187
13188 2003-01-16 Andrew Cagney <ac131313@redhat.com>
13189
13190 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13191 ID back using a parameter.
13192 * frame.c (frame_id_unwind): Update call.
13193 (frame_saved_regs_id_unwind): Update.
13194 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13195 * dummy-frame.h (struct frame_id): Add opaque declaration.
13196 (dummy_frame_id_unwind): Update declaration.
13197
13198 2003-01-15 Andrew Cagney <ac131313@redhat.com>
13199
13200 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13201
13202 2003-01-15 Stephen P. Smith <ischis2@cox.net>
13203
13204 * MAINTAINERS (Stephen P. Smith): Updated email address.
13205
13206 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
13207
13208 Fix PR gdb/898
13209 * breakpoint.c (until_break_command): Add new argument. Use it to
13210 decide whether to stop only at the current frame or not.
13211 * breakpoint.h (until_break_command): Update prototype.
13212 * infcmd.c (until_command): Add new argument to until_break_command
13213 call.
13214 (advance_command): New function.
13215 (_initialize_infcmd): Update help string for 'until' command.
13216 Add new 'advance' command.
13217
13218 2003-01-14 David Carlton <carlton@math.stanford.edu>
13219
13220 * linespec.c (decode_line_1): Normalize comments.
13221 (set_flags): Ditto.
13222 (locate_first_half): Ditto.
13223 (decode_compound): Ditto.
13224 (symtab_from_filename): Ditto.
13225 (decode_all_digits): Ditto.
13226 (decode_dollar): Ditto.
13227 (find_methods): Ditto.
13228 (find_toplevel_char): Ditto.
13229
13230 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13231
13232 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13233 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13234 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13235 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13236 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13237 * language.c, language.h, m32r-tdep.c: Update copyright.
13238 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13239 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13240 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13241 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13242 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13243 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13244
13245 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13246
13247 * stabsread.h (process_later, resolve_cfront_continuation):
13248 Obsolete.
13249 Update copyright years.
13250 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13251 Update copyright year.
13252 * dbxread.c(struct cont_elem): Obsolete.
13253 (process_later, process_now): Obsolete functions.
13254 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13255 Update copyright year.
13256 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13257 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13258 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13259 (parse_partial_symbols): Obsolete cfront support.
13260 * stabsread.c
13261 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13262 macros.
13263 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13264 read_cfront_baseclasses, read_cfront_member_functions,
13265 resolve_cfront_continuation,read_cfront_static_fields,
13266 copy_cfront_struct_fields): Obsolete functions.
13267 (define_symbol, read_one_struct_field): Obsolete cfront support.
13268 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13269 Update Copyright year.
13270
13271 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13272
13273 * stack.c (print_frame_info, print_stack_frame_base_stub,
13274 print_stack_frame_base, show_and_print_stack_frame_stub,
13275 show_and_print_stack_frame, print_only_stack_frame_stub,
13276 print_only_stack_frame): Delete functions.
13277 (print_stack_frame_stub): Call print_frame_info instead of
13278 print_frame_info_base.
13279 (print_frame_info_base): Rename to print_frame_info.
13280 (backtrace_command_1): Call print_frame_info, instead of
13281 print_frame_info_base.
13282 (current_frame_command): Call print_stack_frame, instead of
13283 print_only_stack_frame.
13284 (frame_command): Call print_stack_frame, instead of
13285 show_and_print_stack_frame.
13286 (up_command): Ditto.
13287 (down_command): Ditto.
13288 * frame.h (print_only_stack_frame): Delete prototype.
13289 * infrun.c (normal_stop): Call print_stack_frame, instead of
13290 show_and_print_stack_frame.
13291 * thread.c (info_threads_command): Call print_stack_frame, instead
13292 of print_only_stack_frame.
13293
13294 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13295
13296 * README (Graphical interface to GDB): Update URL. Point at
13297 gdb/links/.
13298
13299 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13300 version match.
13301
13302 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13303
13304 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13305 lines.
13306
13307 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13308
13309 * thread-db.c (attach_thread): Prototype.
13310 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13311 thread information (ti), and valid flags (th_valid, ti_valid).
13312 (attach_thread): Move target_pid_to_str call to after the thread
13313 is added to GDB's list. Initialize the cache.
13314 (thread_get_info_callback, thread_db_map_id2thr)
13315 (thread_db_get_info): New functions.
13316 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13317 (thread_db_store_registers, thread_db_thread_alive)
13318 (thread_db_get_thread_local_address): Use them.
13319 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13320 of calling error() for threads in unknown state.
13321
13322 (clear_lwpid_callback): New function.
13323 (thread_db_resume): Use it to clear the cache.
13324
13325 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13326
13327 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13328 (resume_callback): Remove dead code.
13329
13330 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13331
13332 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13333 predicate.
13334 * gdbarch.h, gdbarch.c: Regenerate.
13335 * stack.c (frame_info): Only initialize the saved registers when
13336 FRAME_INIT_SAVED_REGS_P.
13337 * frame.c (frame_saved_regs_register_unwind): Assert
13338 FRAME_INIT_SAVED_REGS_P.
13339 (deprecated_generic_get_saved_register): Ditto.
13340
13341 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13342
13343 * source.c (openp): Squelch warning about "filename".
13344
13345 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13346
13347 * source.c (openp): If the file does not exist don't necessarily
13348 search the path.
13349
13350 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13351
13352 Fix PR gdb/872.
13353 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13354 (integer_types_same_name_p): New function.
13355 (rank_one_type): Use it.
13356 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13357
13358 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13359
13360 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13361 variables.
13362 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13363 * configure.in: Add --with-sysroot.
13364 * configure: Regenerated.
13365 * main.c (gdb_sysroot): New variable.
13366 (captured_main): Initialize gdb_sysroot.
13367 * defs.h (gdb_sysroot): New extern declaration.
13368 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13369
13370 2003-01-12 Michael Chastain <mec@shout.net>
13371
13372 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13373
13374 2003-01-12 Michael Chastain <mec@shout.net>
13375
13376 * top.c (print_gdb_version): Bump copyright year to 2003.
13377
13378 2003-01-12 David Carlton <carlton@bactrian.org>
13379
13380 * linespec.c (symtab_from_filename): Rename variable 's' to
13381 'file_symtab'.
13382
13383 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13384
13385 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13386 dummy frame.
13387 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13388
13389 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13390
13391 * d10v-tdep.c: Include "gdb_assert.h".
13392 (d10v_store_return_value): Rewrite to match current interface.
13393 (d10v_extract_struct_value_address): Ditto.
13394 (d10v_extract_return_value): Ditto.
13395 (d10v_gdbarch_init): Set store_restore_value,
13396 extract_struct_value_address and extract_return_value.
13397
13398 2003-01-12 J. Brobecker <brobecker@gnat.com>
13399
13400 * hpread.c (set_namestring): New procedure replacing the
13401 SET_NAMESTRING macro.
13402 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13403 by calls to set_namestring.
13404
13405 2003-01-11 J. Brobecker <brobecker@gnat.com>
13406
13407 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13408 a compilation warning.
13409 (hpread_process_one_debug_symbol): Likewise.
13410
13411 2003-01-10 David Carlton <carlton@math.stanford.edu>
13412
13413 * linespec.c (decode_line_1): Rename variable 's' to
13414 'file_symtab'.
13415 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13416 (decode_dollar): Ditto.
13417 (decode_variable): Ditto.
13418 (symbol_found): Ditto.
13419
13420 2003-01-09 Michael Chastain <mec@shout.net>
13421
13422 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13423
13424 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
13425
13426 * win32-nat.c (set_process_privilege): New function.
13427 (child_attach): Call set_process_privilege() to enable the
13428 SE_DEBUG_NAME user privilege if available in process token.
13429
13430 2003-01-10 J. Brobecker <brobecker@gnat.com>
13431
13432 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13433 compilation error in the previous revision.
13434
13435 2003-01-09 David Carlton <carlton@math.stanford.edu>
13436
13437 * linespec.c: Update copyright.
13438
13439 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
13440
13441 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13442 than inferior_ptid.
13443 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13444
13445 2003-01-09 Andrew Cagney <ac131313@redhat.com>
13446
13447 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13448 Update comments.
13449 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13450 (frame_saved_regs_zalloc): Update.
13451 (frame_saved_regs_register_unwind): Update.
13452 (create_new_frame): Update.
13453 (get_prev_frame): Update.
13454 (frame_extra_info_zalloc): Update.
13455 (deprecated_get_frame_saved_regs): Update.
13456 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13457 * cris-tdep.c: Update comment.
13458
13459 * somsolib.h: Fix function indentation.
13460 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13461 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13462 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13463 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13464 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13465
13466 * infrun.c (follow_fork): Use ISO C definition.
13467 * expprint.c (print_subexp): Use xfree instead of free.
13468 * charset.c: Include "gdb_string.h" instead of <string.h>.
13469 (register_iconv_charsets): Use ISO C definition.
13470 (host_charset, target_charset): Ditto.
13471 * Makefile.in (charset.o): Update dependencies.
13472 (mi-cmd-env.o): Update dependencies.
13473
13474 2003-01-08 Andrew Cagney <cagney@redhat.com>
13475
13476 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13477 get_frame_base.
13478
13479 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13480
13481 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13482 build directories. Save edited gdb output in Mbuild.log. If a
13483 build fails, remove any final GDB executable.
13484
13485 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13486
13487 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13488 replacing hex constants with function names and stripping leading
13489 file name directory prefixes.
13490
13491 2003-01-08 Andrew Cagney <cagney@redhat.com>
13492
13493 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13494 get_frame_base.
13495
13496 2003-01-08 David Carlton <carlton@math.stanford.edu>
13497
13498 * linespec.c (decode_line_1): Move code into decode_variable.
13499 (decode_variable): New function.
13500
13501 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13502
13503 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13504
13505 2003-01-08 Andrew Cagney <cagney@redhat.com>
13506
13507 * cris-tdep.c (cris_frame_init_saved_regs): Use
13508 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13509 saved_regs buffer.
13510 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13511 (sh64_nofp_frame_init_saved_regs): Ditto.
13512 (sh_fp_frame_init_saved_regs): Ditto.
13513 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13514 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13515 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13516 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13517
13518 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
13519
13520 * minsyms.c (lookup_minimal_symbol): Update comment.
13521 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13522 (lookup_minimal_symbol_solib_trampoline): Likewise.
13523
13524 2003-01-08 Andrew Cagney <cagney@redhat.com>
13525
13526 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13527 frame_relative_level.
13528
13529 * alpha-tdep.c: Use get_frame_extra_info.
13530 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13531 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13532 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13533 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13534
13535 * alpha-tdep.c: Use get_next_frame.
13536 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13537 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13538 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13539 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13540 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13541 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13542 * xstormy16-tdep.c: Ditto.
13543
13544 2003-01-07 Andrew Cagney <cagney@redhat.com>
13545
13546 * alpha-tdep.c: Use get_frame_base.
13547 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13548 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13549 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13550 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13551 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13552 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13553 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13554 * config/sparc/tm-sparc.h: Ditto.
13555
13556 2003-01-07 Andrew Cagney <cagney@redhat.com>
13557
13558 * frame.c (deprecated_get_frame_context): New function.
13559 (deprecated_set_frame_context): New function.
13560 * frame.h (deprecated_get_frame_context): Declare.
13561 (deprecated_set_frame_context): Declare.
13562 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13563 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
13564
13565 2003-01-07 Andrew Cagney <cagney@redhat.com>
13566
13567 * frame.c (deprecated_set_frame_next_hack): New function.
13568 (deprecated_set_frame_prev_hack): New function.
13569 * frame.h (deprecated_set_frame_next_hack): Declare.
13570 (deprecated_set_frame_prev_hack): Declare.
13571 * mcore-tdep.c (analyze_dummy_frame): Use
13572 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13573 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13574
13575 2003-01-07 David Carlton <carlton@math.stanford.edu>
13576
13577 * linespec.c (decode_line_1): Move code into decode_dollar.
13578 (decode_dollar): New function.
13579
13580 2003-01-07 Andrew Cagney <cagney@redhat.com>
13581
13582 * arm-tdep.c (arm_init_extra_frame_info): Use
13583 deprecated_update_frame_base_hack.
13584 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13585 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13586 (fix_frame_pointer): Ditto.
13587 (mn10300_analyze_prologue): Ditto.
13588
13589 2003-01-07 Andrew Cagney <cagney@redhat.com>
13590
13591 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13592 extra_info using frame_extra_info_zalloc.
13593 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13594 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13595 (sh64_init_extra_frame_info): Ditto.
13596 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13597 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13598 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13599 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13600 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13601 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13602 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13603 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13604 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13605 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13606 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13607 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13608
13609 * mn10300-tdep.c (analyze_dummy_frame): Use
13610 deprecated_set_frame_extra_info_hack.
13611 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13612
13613 2003-01-07 J. Brobecker <brobecker@gnat.com>
13614
13615 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13616 class is not scText. These do not define "real" procedures.
13617 (parse_partial_symbols): Likewise.
13618
13619 2003-01-06 Michael Snyder <msnyder@redhat.com>
13620
13621 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13622
13623 2003-01-06 Andrew Cagney <ac131313@redhat.com>
13624
13625 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13626 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13627 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13628 deprecated_frame_xmalloc_with_cleanup.
13629 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13630 deprecated_frame_xmalloc.
13631 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13632 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13633
13634 2003-01-06 Andrew Cagney <cagney@redhat.com>
13635
13636 * x86-64-linux-tdep.c: Include "osabi.h".
13637 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13638
13639 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13640
13641 2003-01-06 Andrew Cagney <cagney@redhat.com>
13642
13643 * MAINTAINERS (Target Instruction Set Architectures): Update
13644 arm-elf. Can be built with -Werror, has been multiarched.
13645
13646 * value.h (unpack_long): Make buffer parameter constant.
13647 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13648 * scm-lang.h (scm_parse): Ditto.
13649 * defs.h (extract_typed_address, extract_address): Ditto.
13650 (extract_long_unsigned_integer): Ditto.
13651 * inferior.h (unsigned_pointer_to_address): Ditto.
13652 (signed_pointer_to_address): Ditto.
13653 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13654 * gdbarch.h, gdbarch.c: Regenerate.
13655 * findvar.c (extract_long_unsigned_integer): Update.
13656 (extract_address): Update.
13657 (extract_typed_address): Update.
13658 (unsigned_pointer_to_address): Update.
13659 * values.c (unpack_long): Update.
13660 (unpack_double): Update.
13661 (unpack_pointer): Update.
13662 (unpack_field_as_long): Update.
13663 * d10v-tdep.c (d10v_pointer_to_address): Update.
13664 * avr-tdep.c (avr_pointer_to_address): Update.
13665 * scm-lang.c (scm_unpack): Update.
13666 * findvar.c (signed_pointer_to_address): Update.
13667
13668 2003-01-06 Michal Ludvig <mludvig@suse.cz>
13669
13670 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
13671 since it is in i386-tdep.c.
13672
13673 2003-01-06 J. Brobecker <brobecker@gnat.com>
13674
13675 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13676 failure introduced in the previous change.
13677
13678 2003-01-05 Michael Chastain <mec@shout.net>
13679
13680 * README: Remove references to deleted remote-*.c files:
13681 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13682 remote-nrom.c, remote-os9k.c, remote-udi.c.
13683
13684 2003-01-05 Mark Kettenis <kettenis@gnu.org>
13685
13686 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13687 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13688 i386_get_longjmp_target.
13689
13690 2003-01-05 Andrew Cagney <ac131313@redhat.com>
13691
13692 * arm-tdep.c (prologue_cache): Change to a pointer.
13693 (_initialize_arm_tdep): Allocate prologue_cache.
13694 (check_prologue_cache): Update.
13695 (save_prologue_cache): Update.
13696 (arm_gdbarch_init): Update.
13697
13698 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13699
13700 * stabsread.c (update_method_name_from_physname): Call complaint()
13701 instead of error.
13702
13703 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13704
13705 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13706 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13707 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13708
13709 * blockframe.c: Include "gdbcmd.h" and "command.h".
13710 (backtrace_below_main): New variable.
13711 (file_frame_chain_valid, func_frame_chain_valid)
13712 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13713 (generic_func_frame_chain_valid): Remove functions.
13714 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13715 (_initialize_blockframe): New function.
13716 * Makefile.in (blockframe.o): Update dependencies.
13717 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13718 comment. Call frame_chain_valid ().
13719 * frame.h: Remove old prototypes. Add prototype for
13720 frame_chain_valid and update comments to match.
13721 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13722 Remove old comment.
13723 * gdbarch.h: Regenerated.
13724 * gdbarch.c: Regenerated.
13725
13726 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13727 set_gdbarch_frame_chain_valid.
13728 * avr-tdep.c (avr_gdbarch_init): Likewise.
13729 * cris-tdep.c (cris_gdbarch_init): Likewise.
13730 * frv-tdep.c (frv_gdbarch_init): Likewise.
13731 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13732 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13733 (i386_nw_init_abi): Likewise.
13734 (i386_gdbarch_init): Likewise.
13735 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13736 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13737 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13738 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13739 * mips-tdep.c (mips_gdbarch_init): Likewise.
13740 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13741 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13742 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13743 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13744 * s390-tdep.c (s390_gdbarch_init): Likewise.
13745 * sh-tdep.c (sh_gdbarch_init): Likewise.
13746 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13747 * v850-tdep.c (v850_gdbarch_init): Likewise.
13748 * vax-tdep.c (vax_gdbarch_init): Likewise.
13749 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13750
13751 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13752 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13753 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13754 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13755 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13756 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13757 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13758 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13759
13760 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13761
13762 * Makefile.in (acconfig_h): Remove incorrect macro.
13763 (config_h): Define.
13764 (osabi.o): Update dependencies.
13765 * configure.tgt: Set gdb_osabi based on target triplet.
13766 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13767 * configure: Regenerated.
13768 * config.in: Regenerated.
13769 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13770 (GDB_OSABI_DEFAULT): Define if not already defined.
13771 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13772 (set_osabi_string): New variables.
13773 (gdbarch_register_osabi): Add new OS ABI to
13774 gdb_osabi_available_names.
13775 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13776 (set_osabi, show_osabi): New functions.
13777 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13778
13779 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13780
13781 * arch-utils.c (gdbarch_info_init): Set osabi to
13782 GDB_OSABI_UNINITIALIZED.
13783 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13784 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13785 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13786 * gdbarch.c: Regenerated.
13787 * gdbarch.h: Regenerated.
13788 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13789 there's no BFD.
13790 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13791 * osabi.h (enum gdb_osabi): Move to defs.h.
13792 (gdbarch_init_osabi): Update prototype.
13793 * defs.h (enum gdb_osabi): Moved here.
13794 * Makefile.in: Update dependencies.
13795
13796 * alpha-tdep.h: Don't include "osabi.h".
13797 (struct gdbarch_tdep): Remove osabi member.
13798 * alpha-tdep.c: Include "osabi.h".
13799 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13800 iterate over arches. Update call to gdbarch_init_osabi.
13801 (alpha_dump_tdep): Don't dump osabi.
13802 * alpha-linux-tdep.c: Include "osabi.h".
13803 * alpha-osf1-tdep.c: Include "osabi.h".
13804 * alphafbsd-tdep.c: Include "osabi.h".
13805 * alphanbsd-tdep.c: Include "osabi.h".
13806
13807 * arm-tdep.h: Don't include "osabi.h".
13808 (struct gdbarch_tdep): Remove osabi member.
13809 * arm-tdep.c: Include "osabi.h".
13810 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13811 iterate over arches. Update call to gdbarch_init_osabi.
13812 (arm_dump_tdep): Don't dump osabi.
13813 * arm-linux-tdep.c: Include "osabi.h".
13814 * armnbsd-tdep.c: Include "osabi.h".
13815
13816 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13817 Update call to gdbarch_init_osabi.
13818
13819 * i386-tdep.h: Don't include "osabi.h".
13820 (struct gdbarch_tdep): Remove osabi member.
13821 * i386-tdep.c: Include "osabi.h".
13822 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13823 iterate over arches. Update call to gdbarch_init_osabi.
13824 (i386_dump_tdep): Don't dump osabi.
13825 * i386-linux-tdep.c: Include "osabi.h".
13826 * i386-sol2-tdep.c: Include "osabi.h".
13827 * i386bsd-tdep.c: Include "osabi.h".
13828 * i386gnu-tdep.c: Include "osabi.h".
13829 * i386ly-tdep.c: Include "osabi.h".
13830 * i386nbsd-tdep.c: Include "osabi.h".
13831 * i386obsd-tdep.c: Include "osabi.h".
13832
13833 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13834 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13835 check osabi when iterating over arches. Update call to
13836 gdbarch_init_osabi.
13837 (mips_dump_tdep): Don't dump osabi.
13838
13839 * ns32k-tdep.h: Don't include "osabi.h".
13840 (struct gdbarch_tdep): Remove.
13841 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13842 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13843 allocate tdep. Update call to gdbarch_init_osabi.
13844 (ns32k_dump_tdep): Remove.
13845 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13846 * ns32knbsd-tdep.c: Include "osabi.h".
13847
13848 * ppc-tdep.h: Don't include "osabi.h".
13849 (struct gdbarch_tdep): Remove osabi member.
13850 * rs6000-tdep.c: Include "osabi.h".
13851 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13852 osabi when iterating over arches. Update call to
13853 gdbarch_init_osabi.
13854 (rs6000_dump_tdep): Don't dump osabi.
13855 * ppc-linux-tdep.c: Include "osabi.h".
13856 * ppcnbsd-tdep.c: Include "osabi.h".
13857
13858 * sh-tdep.h: Don't include "osabi.h".
13859 (struct gdbarch_tdep): Remove osabi member.
13860 * sh-tdep.c: Include "osabi.h".
13861 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13862 iterate over arches. Update call to gdbarch_init_osabi.
13863 (sh_dump_tdep): Don't dump osabi.
13864 * shnbsd-tdep.c: Include "osabi.h".
13865
13866 * sparc-tdep.c: Include "osabi.h".
13867 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13868 iterate over arches. Update call to gdbarch_init_osabi.
13869 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13870 tdep structure.
13871
13872 * vax-tdep.h: Don't include "osabi.h".
13873 (struct gdbarch_tdep): Remove.
13874 * vax-tdep.c: Include "osabi.h".
13875 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13876 iterate over arches. Don't allocate tdep. Update call
13877 to gdbarch_init_osabi.
13878 (vax_dump_tdep): Remove.
13879 (_initialize_vax_tdep): Update call to gdbarch_register.
13880
13881 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13882
13883 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13884 entirely.
13885 (breakpoint_re_set_one): Don't fetch the value for a disabled
13886 watchpoint.
13887
13888 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13889
13890 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13891 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13892 (COERCE_FLOAT_TO_DOUBLE): Remove.
13893 * gdbarch.c: Regenerate.
13894 * gdbarch.h: Regenerate.
13895 * Makefile.in: Remove value_h from gdbarch_h.
13896 * valops.c (coerce_float_to_double): New variable.
13897 (default_coerce_float_to_double): Remove.
13898 (standard_coerce_float_to_double): Remove.
13899 (value_arg_coerce): Use coerce_float_to_double.
13900 (_initialize_valops): Add "set coerce-float-to-double".
13901 * value.h (default_coerce_float_to_double): Remove prototype.
13902 (standard_coerce_float_to_double): Remove prototype.
13903
13904 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13905 prototyped.
13906 * mdebugread.c (parse_symbol): Likewise.
13907 * stabsread.c (define_symbol): Mark all functions as prototyped.
13908
13909 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13910 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13911 set_gdbarch_coerce_float_to_double.
13912 * arm-tdep.c (arm_gdbarch_init): Likewise.
13913 * frv-tdep.c (frv_gdbarch_init): Likewise.
13914 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13915 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13916 * mips-tdep.c (mips_gdbarch_init): Likewise.
13917 (mips_coerce_float_to_double): Remove.
13918 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13919 (rs6000_coerce_float_to_double): Remove.
13920 * s390-tdep.c (s390_gdbarch_init): Likewise.
13921 * sh-tdep.c (sh_gdbarch_init): Likewise.
13922 (sh_coerce_float_to_double): Remove.
13923 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13924 (sparc_coerce_float_to_double): Remove.
13925 * v850-tdep.c (v850_gdbarch_init): Likewise.
13926 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13927 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13928 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13929 (hppa_coerce_float_to_double): Remove prototype.
13930 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13931
13932 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13933
13934 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13935
13936 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13937
13938 Suggested by Stewart Brown <sb24@avaya.com>:
13939 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13940 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13941 (c_type_print_varspec_suffix): Likewise.
13942
13943 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13944
13945 * configure.in: Don't set and AC_SUBST SUBDIRS.
13946 * configure: Regenerated.
13947
13948 * configure.in: Remove code dealing with shared libraries.
13949 * Makefile.in: Remove HLDFLAGS and HLDENV.
13950 * configure: Regenerated.
13951
13952 2003-01-04 Andrew Cagney <ac131313@redhat.com>
13953
13954 * frame.c (deprecated_frame_xmalloc): New function.
13955 (deprecated_set_frame_saved_regs_hack): New function.
13956 (deprecated_set_frame_extra_info_hack): New function.
13957 * frame.h (deprecated_frame_xmalloc): Declare.
13958 (deprecated_set_frame_saved_regs_hack): Declare.
13959 (deprecated_set_frame_extra_info_hack): Declare.
13960
13961 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13962
13963 * configure.in: Move code that provides the --enable-gdbtk option
13964 right after the code that handles the --enable-tui option, and
13965 polish it somewhat.
13966 * configure: Regenerated.
13967
13968 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13969 AC_CHECK_FUNCS and remove the old check for pread64.
13970 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13971 * acconfig.h (_GNU_SOURCE): Add.
13972 (HAVE_PREAD64): Remove.
13973 * configure, aclocal.m4, config.in: Regenerated.
13974
13975 2003-01-03 Andrew Cagney <ac131313@redhat.com>
13976
13977 * alpha-tdep.c: Use get_frame_saved_regs.
13978 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13979 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13980 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13981 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13982 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13983
13984 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13985
13986 * configure.in: Remove all use of the SUBDIRS variable; add
13987 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13988 code providing the --enable-multi-ice option, and move it right in
13989 front of the code that checks whether gdbserver is supported.
13990 Polish that too.
13991 * configure: Regenerated.
13992 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13993 @SUBDIRS@.
13994
13995 2003-01-03 Andrew Cagney <cagney@redhat.com>
13996
13997 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13998 * avr-tdep.c, cris-tdep.c: Ditto.
13999 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14000 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14001
14002 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14003
14004 * configure.in: Remove --enable-netrom option.
14005 * configure: Regenerated.
14006
14007 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14008
14009 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14010 declaration for `struct re_pattern_buffer' instead.
14011 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14012
14013 2003-01-03 J. Brobecker <brobecker@gnat.com>
14014
14015 * mdebugread.c (parse_symbol): Count until the stEnd matching
14016 the structure name.
14017
14018 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14019
14020 * configure.in: Remove --with-cpu option.
14021 subscripts. Remove evil changequotes here.
14022 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14023 * config.in, configure: Regenerated.
14024
14025 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14026 * configure.in: Cleanup section that sources GDB and BFD configure
14027 subscripts. Remove evil changequotes here.
14028 * config.in, configure: Regenerated.
14029
14030 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14031
14032 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14033 frame accessor methods.
14034 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14035 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14036 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14037 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14038 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14039 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14040 * z8k-tdep.c: Ditto.
14041
14042 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14043
14044 * configure.in: Remove UI_OUT configuration code.
14045 * ada-lang.c: Update assuming UI_OUT is always true.
14046 * Makefile.in (UIOUT_CFLAGS): Remove.
14047 * configure: Regenerated.
14048 * TODO: Remove blurb about elimination of -DUI_OUT.
14049
14050 * configure.in: Move code that provides the --enable-gdbcli,
14051 --enable-gdbmi options right before the code that handles the
14052 --enable-tui option. Polish a bit.
14053 * configure: Regenerated.
14054
14055 * configure.in: Rewrite check for GNU regex and the
14056 --without-included regex option, and move it into the "Checks for
14057 library functions" section. This makes us use the system regex
14058 again by default on systems with version 2 of the GNU C library.
14059 This was apparently broken.
14060 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14061 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14062 * config.in, configure: Regenerated.
14063
14064 * configure.in: Move code that provides the --enable-tui option
14065 before the "Checks for libraries" section. Polish the code
14066 somewhat and set need_curses to yes if we build the TUI. Rewrite
14067 code that looks for a library providing termcap functionality to
14068 match more closely what's done in the Readline library, and move
14069 it into to the "Checks for libraries" section.
14070 * configure: Regenerated.
14071 * Makefile.in (TERMCAP): Remove variable.
14072 * config/i386/go32.mh (TERMCAP): Remove variable.
14073
14074 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14075
14076 * MAINTAINERS: Mention gdb_mbuild.sh.
14077 * gdb_mbuild.sh: Rewrite.
14078
14079 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14080
14081 * configure.in: Fix typo in last change.
14082 * config.in, configure: Regenerated.
14083
14084 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14085
14086 * valarith.c (value_binop): Delete obsolete code and comments.
14087 * configure.host: Ditto.
14088 * buildsym.h (make_blockvector): Ditto.
14089 * buildsym.c (make_blockvector): Ditto.
14090 * defs.h (enum language): Ditto.
14091 (chill_demangle): Ditto.
14092 * elfread.c (elf_symtab_read): Ditto.
14093 * dwarfread.c (CHILL_PRODUCER): Ditto.
14094 (set_cu_language): Ditto.
14095 (handle_producer): Ditto.
14096 * expprint.c (print_subexp): Ditto.
14097 * gdbtypes.c (chill_varying_type): Ditto.
14098 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14099 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14100 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14101 (chill_varying_type): Ditto.
14102 * language.h (_LANG_chill): Ditto.
14103 * language.c (binop_result_type, integral_type): Ditto.
14104 (character_type, string_type, structured_type): Ditto.
14105 (lang_bool_type, binop_type_check): Ditto.
14106 * stabsread.h (os9k_stabs): Ditto.
14107 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14108 (define_symbol, read_type, read_struct_fields): Ditto.
14109 (read_array_type, read_enum_type, read_huge_number): Ditto.
14110 (read_range_type, start_stabs): Ditto.
14111 * symfile.c (init_filename_language_table): Ditto.
14112 (add_psymbol_with_dem_name_to_list): Ditto.
14113 * symtab.c (symbol_init_language_specific): Ditto.
14114 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14115 * symtab.h (struct general_symbol_info): Ditto.
14116 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14117 * typeprint.c (typedef_print): Ditto.
14118 * utils.c (fprintf_symbol_filtered): Ditto.
14119 * valops.c (value_cast, search_struct_field, value_slice): Delete
14120 obsolete code.
14121 (varying_to_slice): Delete function.
14122 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14123 (varying_to_slice): Delete declaration.
14124 * MAINTAINERS: Update.
14125
14126 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14127
14128 * configure.in: Reorganize "Checks for library functions section"
14129 a bit. Remove check for `btowc' and `isascii' functions.
14130 * configure: Regenerated.
14131
14132 * acconfig.h (_MSE_INT_H): Remove.
14133 * configure.in: Create "Checks for header files" section, and move
14134 appropriate tests there. Don't check for objlist.h, wchar.h,
14135 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14136 misdetection fix. Also add "Checks for types", "Checks for
14137 compiler characteristics" and "Checks for library functions"
14138 sections.
14139 * config.in, configure: Regenerated.
14140
14141 * configure.in: Create "Checks for programs" section, and move
14142 appropriate tests there.
14143
14144 2003-01-01 Mark Kettenis <kettenis@gnu.org>
14145
14146 * configure.in: Create "Checks for libraries" section, and move
14147 appropriate tests there. Cleanup check for wctype in libw. Use
14148 AC_SEARCH_LIBS to see whether we need libsocket.
14149 * configure: Regenerated.
14150
14151 For older changes see ChangeLog-2002
14152 \f
14153 Local Variables:
14154 mode: change-log
14155 left-margin: 8
14156 fill-column: 74
14157 version-control: never
14158 End:
This page took 0.416945 seconds and 4 git commands to generate.