* breakpoint.c (remove_breakpoint): Take an bp_location
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0bde7532
DJ
12003-11-06 Daniel Jacobowitz <drow@mvista.com>
2
3 * breakpoint.c (remove_breakpoint): Take an bp_location
4 instead of a breakpoint argument. Check the bp_location's type.
5 Fix a reversed condition for hardware breakpoints.
6
7 (insert_bp_location): Update call to remove_breakpoint.
8 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
9 (remove_hw_watchpoints): Likewise.
10 (reattach_breakpoints): Likewise.
11 (detach_breakpoints): Likewise.
12 (delete_breakpoint): Likewise.
13
075f6582
DJ
142003-11-06 Daniel Jacobowitz <drow@mvista.com>
15
16 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
17 (beakpoint_init_inferior): Likewise.
18 (breakpoint_here_p): Likewise. Only check addresses for software
19 or hardware breakpoints.
20 (breakpoint_inserted_here_p): Likewise.
21 (breakpoint_thread_match): Likewise. Correct comment.
22 (bpstat_have_active_hw_watchpoints): Likewise.
23 (check_duplicates): Likewise.
24
879bfdc2
DJ
252003-11-06 Daniel Jacobowitz <drow@mvista.com>
26
27 * breakpoints.c (insert_bp_location): New function, broken out
28 from insert_breakpoints. Work on an bp_location instead of a
29 breakpoint.
30 (insert_breakpoints): Use it.
31
cf3a9e5b
DJ
322003-11-06 Daniel Jacobowitz <drow@mvista.com>
33
34 * breakpoint.h (struct bp_location): Add section.
35 (struct breakpoint): Remove section.
36 * breakpoint.c (insert_breakpoints, remove_breakpoint)
37 (breakpoint_here_p, breakpoint_inserted_here_p)
38 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
39 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
40 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
41 section through loc.
42
ffce0d52
DJ
432003-11-06 Daniel Jacobowitz <drow@mvista.com>
44
45 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
46 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
47
e049a4b5
DJ
482003-11-06 Daniel Jacobowitz <drow@mvista.com>
49
50 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
51 arguments. Initialize owner and type for the new breakpoint
52 location item.
53 (set_raw_breakpoint): Update call to allocate_bp_location.
54
7cc221ef
DJ
552003-11-06 Daniel Jacobowitz <drow@mvista.com>
56
57 * breakpoint.h (struct bp_location): Add a chain pointer.
58 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
59 macros.
60 (bp_location_chain): New variable.
61 (allocate_bp_location): New function.
62 (set_raw_breakpoint): Use it.
63 (delete_breakpoint): Remove ->loc from the bp_location_chain.
64
5cab636d
DJ
652003-11-06 Daniel Jacobowitz <drow@mvista.com>
66
67 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
68 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 69 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
70 * breakpoint.c (condition_command, read_memory_nobpt)
71 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
72 (reattach_breakpoints, update_breakpoints_after_exec)
73 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
74 (breakpoint_init_inferior, breakpoint_here_p)
75 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
76 (breakpoint_thread_match, bpstat_stop_status)
77 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
78 (describe_other_breakpoints, check_duplicates)
79 (make_breakpoint_permanent, create_thread_event_breakpoint)
80 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
81 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
82 (watch_command_1, print_one_exception_catchpoint)
83 (clear_command, breakpoint_re_set_one): Adjust member accesses to
84 use the breakpoint's ->loc.
85 (set_raw_breakpoint): Likewise. Initialize ->loc.
86 (delete_breakpoint): Likewise. Free ->loc.
87
7be0c536
AC
882003-11-05 Andrew Cagney <cagney@redhat.com>
89
4c7d882e
AC
90 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
91 macro.
92 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
93 * config/i386/tm-cygwin.h
94 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
95 * config/powerpc/tm-linux.h
96 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
97 (at_subroutine_call_instruction_target): Delete declaration.
98 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
99 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
100 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
101
7be0c536
AC
102 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
103 "struct bfd_section" and "struct bfd".
104 * target.h (struct section_table): Ditto.
105 * rs6000-nat.c (xcoff_relocate_core): Ditto.
106 * solib-svr4.c (elf_locate_base): Ditto.
107 * pa64solib.c (dld_cache_t): Ditto.
108 * objfiles.h (struct obj_section): Ditto.
109 * objfiles.c (add_to_objfile_sections): Ditto.
110 * exec.c (bfdsec_to_vmap): Ditto.
111 (add_to_section_table): Ditto.
112 (build_section_table): Ditto.
113 * corelow.c (get_core_register_section): Ditto.
114 * coffread.c (find_linenos): Ditto.
115 * elfread.c (elf_interpreter): Delete #if0'd function.
116
117 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
118 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
119 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
120 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
121
122 * arch-utils.h (generic_cannot_extract_struct_value_address):
123 Delete declaration.
124 * wince.c (_initialize_wince): Fix multi-line string.
125 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
126
d8fe84e3
EZ
1272003-11-05 Elena Zannoni <ezannoni@redhat.com>
128
129 * top.c (execute_command): Fix broken logic for command execution
130 while inferior is running in async mode.
131
cbdfc7c0
MK
1322003-11-06 Mark Kettenis <kettenis@gnu.org>
133
134 * dwarf2-frame.c (execute_cfa_program): Mark register as
135 REG_SAVED_REG for DW_CFA_register opcode.
136
dac94105
MK
1372003-11-05 Mark Kettenis <kettenis@gnu.org>
138
139 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
140 %rsp, %rip and %eflags to match ABI-change.
141
85bf2b91
JJ
1422003-11-05 Jeff Johnston <jjohnstn@redhat.com>
143
144 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
145 (ia64_gdbarch_init): Don't bother calculating the os.
146 Instead use the gdbarch_info struct and look at the osabi field.
147 Also use gdbarch_list_lookup_by_info() to look for a
148 candidate gdbarch.
149
cd31fb03
KB
1502003-11-05 Kevin Buettner <kevinb@redhat.com>
151
152 * frv-tdep.c (frv_register_byte): Delete.
153 (frv_extract_return_value, frv_store_return_value)
154 (frv_extract_struct_value_address): Don't call frv_register_byte().
155 Convert to non-deprecated form.
156 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
157 Convert calls to set_gdbarch_deprecated_extract_return_value(),
158 set_gdbarch_deprecated_store_return_value(), and
159 set_gdbarch_deprecated_extract_struct_value_address() into
160 non-deprecated forms.
161
0a056982
AC
1622003-11-05 Andrew Cagney <cagney@redhat.com>
163
164 * mips-tdep.c (mips_dump_tdep): Do not print
165 PRINT_EXTRA_FRAME_INFO.
166 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
167 Rename PRINT_EXTRA_FRAME_INFO.
168 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
169 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
170 (mips_print_extra_frame_info): Delete declaration.
171 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
172
29e0a062
EZ
1732003-11-05 Elena Zannoni <ezannoni@redhat.com>
174
175 * coffread.c (coff_symtab_read): Remove passing of info parameter
176 to prim_record_minimal_symbol_and_info.
177
8af580fc
EZ
1782003-11-05 Elena Zannoni <ezannoni@redhat.com>
179
180 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
181 (decode_base_type): Delete ifdeffed out code.
182
507836c0
AC
1832003-11-04 Andrew Cagney <cagney@redhat.com>
184
185 * symtab.c (find_active_alias): Delete function.
186 (lookup_block_symbol): Delete alias code.
187 * stabsread.c (resolve_live_range): Delete function.
188 (add_live_range): Delete function.
189 (resolve_symbol_reference): Delete function.
190 (define_symbol): Delete live range and alias code.
191 (scan_file_globals): Delete alias code.
192 * symtab.h (SYMBOL_RANGES): Delete macro.
193 (struct range_list): Delete structure.
194 (struct symbol): Delete field "ranges".
195 (SYMBOL_ALIASES): Delete macro.
196 (struct alias_list): Delete structure.
197 (struct symbol): Delete field "aliases".
198
1083b3bc
MS
1992003-11-04 Michael Snyder <msnyder@redhat.com>
200
201 * MAINTAINERS: Remove myself as owner of breakpoints and
202 of sparc/solaris.
203
474e5826
CV
2042003-11-03 Corinna Vinschen <vinschen@redhat.com>
205
206 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
207 (sh_sh4al_dsp_register_name): Ditto.
208 (sh4_nofpu_show_regs): Ditto.
209 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
210 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
211
2160782c
AC
2122003-11-03 Andrew Cagney <cagney@redhat.com>
213
214 * bcache.c: Include "gdb_assert.h".
215 (struct bcache): Add fields "expand_count" and
216 "expand_hash_count".
217 (expand_hash_table): Update the expand counts.
218 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
219 on object sizes and hashes.
220 * Makefile.in (bcache.o): Update dependencies.
221
85302095
AC
2222003-11-03 Andrew Cagney <cagney@redhat.com>
223
224 * exec.c (xfer_memory): Eliminate xfer_fn.
225
526eef89
KB
2262003-10-31 Kevin Buettner <kevinb@redhat.com>
227
228 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
229 (opcodes/frv-desc.h): Include.
230 (iacc0h_regnum, iacc0l_regnum): Define.
231 (last_spr_regnum, frv_num_regs): Update.
232 (new_variant): Don't supply default names for holes in the SPRs.
233 Supply names for iacc0h_regnum and iacc0l_regnum.
234 (frv_register_type): Use symbolic constants first_fpr_regnum and
235 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
236 builtin_type_int instead of builtin_type_int32.
237 (frv_register_sim_regno): New function.
238 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
239 * Makefile.in (gdb_sim_frv_h): Define.
240 (frv-tdep.o): Update dependencies.
241
9e815ec2
AC
2422003-10-31 Andrew Cagney <cagney@redhat.com>
243
244 * avr-tdep.c (avr_frame_this_id): Do not call
245 deprecated_inside_entry_file.
246 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
247 * m32r-tdep.c (m32r_frame_this_id): Ditto.
248 * d10v-tdep.c (d10v_frame_this_id): Ditto.
249 * arm-tdep.c (arm_prologue_this_id): Ditto.
250 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
251
e372db49
JB
2522003-10-31 Jim Blandy <jimb@redhat.com>
253
254 * elfread.c (elf_symtab_read): Allocate correct number of tail
255 elements to sectinfo structure. (Fix from Woody LaRue.)
256
e8bcf01f
AC
2572003-10-31 Andrew Cagney <cagney@redhat.com>
258
259 * stack.c (return_command): Use get_frame_type, instead of
260 CALL_DUMMY_HAS_COMPLETED.
261 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
262 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
263
4c05fe53
MK
2642003-10-31 Mark Kettenis <kettenis@gnu.org>
265
266 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
267 explicitly specify size of array.
268 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
269 TDEP->sc_num_regs.
270
c8b91b89
AC
2712003-10-31 Andrew Cagney <cagney@redhat.com>
272
273 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
274 function.
275 (s390_gdbarch_init): Set extract_struct_value_address.
276 * arch-utils.c (generic_cannot_extract_struct_value_address):
277 Delete function.
278 * arch-utils.h (generic_cannot_extract_struct_value_address):
279 Delete definition.
280
fdfb6fc8
MK
2812003-10-31 Mark Kettenis <kettenis@gnu.org>
282
283 * i386-linux-nat.c (fetch_core_registers): Remove.
284 (linux_elf_core_fns): Remove.
285 (_initialize_i386_linux_nat): Remove.
286
2f4950cd
AC
2872003-10-31 Andrew Cagney <cagney@redhat.com>
288
289 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
290 "exec.h".
291 (exec_entry_point): New function.
292 (enable_break): Create a "tmp_bfd_target", use that and
293 entry_point_address when computing the relocation offset.
294 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
295 * Makefile.in (solib-svr4.o): Update dependencies.
296
bba2d28d
AC
2972003-10-31 Andrew Cagney <cagney@redhat.com>
298
299 * defs.h (XZALLOC): Define.
300 * target.h (struct target_ops): Add "to_data";
301 * bfd-target.h, bfd-target.c: New files.
302 * Makefile.in (SFILES): Add "bfd-target.c".
303 (COMMON_OBS): Add "bfd-target.o".
304 (bfd-target.o): Specify dependencies.
305 (bfd_target_h): Define.
306 * defs.h (XZALLOC): Define.
307
6066c3de
AC
3082003-10-31 Andrew Cagney <cagney@redhat.com>
309
310 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
311 adjust_breakpoint_address.
312 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
313 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
314 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
315 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
316
4b8a223f
AC
3172003-10-31 Andrew Cagney <cagney@redhat.com>
318
319 * target.h (struct target_ops): Replace "to_read_partial" and
320 "to_write_partial" with "to_xfer_partial". Update comments.
321 * target.c (debug_to_write_partial): Delete function.
322 (debug_to_xfer_partial): Replace debug_to_read_partial.
323 (add_target, update_current_target, setup_target_debug): Set
324 "to_xfer_partial" instead of "to_read_partial" and
325 "to_write_partial".
326 (default_xfer_partial): Replace "default_write_partial".
327 (default_read_partial): Delete.
328 (target_read_partial, target_write_partial): Call
329 "to_xfer_partial".
330 * remote.c (init_remote_ops): Set "to_xfer_partial".
331 (init_remote_async_ops): Ditto.
332 (remote_xfer_partial): Replace "remote_read_partial".
333
66a72d25
MK
3342003-10-31 Mark Kettenis <kettenis@gnu.org>
335
336 * i386-tdep.c (i386_supply_fpregset): Support floating-point
337 registers in `fxsave' format.
338 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
339
9a12a2a0
MK
3402003-10-30 Mark Kettenis <kettenis@gnu.org>
341
e9f1aad5
MK
342 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
343 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
344 TDEP->gregset_num_regs and tdep->sizeof_gregset.
345
bb489b3c
MK
346 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
347 specify size of array.
348 (i386_linux_init_abi): Remove initialization of
349 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
350 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
351
da285bc4
MK
352 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
353 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
354 core-regset.o.
355
9a12a2a0
MK
356 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
357 the ELF header.
358
0e24ac5d
MK
3592003-10-29 Mark Kettenis <kettenis@gnu.org>
360
6d6d8e9c
MK
361 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
362 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
363 core-regset.o.
364
25e60c9b
MK
365 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
366
0e24ac5d
MK
367 * corelow.c: Include "arch-utils.h", "regset.h" and
368 "gdb_assert.h".
369 (core_gdbarch): New variable.
370 (sniff_core_bfd): Don't sniff if we have support for register sets
371 in CORE_GDBARCH.
372 (core_close): Reset CORE_GDBARCH.
373 (core_open): Initialize CORE_GDBARCH.
374 (get_core_register_section): Use register sets if they are
375 supported by CORE_GDBARCH.
376 (get_core_registers): Don't print error message if we have support
377 for register sets in CORE_GDBARCH.
378
0a0a4ac3
AC
3792003-10-29 Andrew Cagney <cagney@redhat.com>
380
381 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
382 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
383
7b097ae3
MK
3842003-10-29 Mark Kettenis <kettenis@gnu.org>
385
386 * objfiles.h (clear_objfile_data): New prototype.
387 * objfiles.c (clear_objfile_data): New function.
388 * symfile.c (reread_symbols): Clear per-objfile data.
389
46f45a4a
JJ
3902003-10-28 Jeff Johnston <jjohnstn@redhat.com>
391
392 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
393 printf_unfiltered instead of printf_filtered for output messages.
394 (add_symbol_file_command): Ditto.
395 (reread_symbols): Ditto.
396 (overlay_auto_command): Ditto.
397 (overlay_manual_command): Ditto.
398 (overlay_off_command): Ditto.
399
2b026650
MK
4002003-10-27 Mark Kettenis <kettenis@gnu.org>
401
402 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
403 (gdbarch_from_bfd): New function.
404 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
405 deprecated_select_gdbarch_hack.
406 * arch-utils.h (gdbarch_from_bfd): New prototype.
407
0bcad584 4082003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
409
410 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
411 arch_info. Use warning instead of fprintf_filtered. Do not use
412 deprecated bfd_printable_arch_mach.
413
7f398216
KB
4142003-10-26 Kevin Buettner <kevinb@redhat.com>
415
416 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
417 Delete.
418 (frv_register_type): Rename from frv_register_virtual_type. Add
419 ``struct gdbarch *'' parameter.
420 (frv_gdbarch_init): Delete calls to the following functions:
421 set_gdbarch_deprecated_size(),
422 set_gdbarch_deprecated_register_bytes(),
423 set_gdbarch_deprecated_register_raw_size(),
424 set_gdbarch_deprecated_max_register_raw_size(),
425 set_gdbarch_deprecated_register_virtual_size(),
426 set_gdbarch_deprecated_max_register_virtual_size(),
427 set_gdbarch_deprecated_register_virtual_size(),
428 set_gdbarch_deprecated_register_virtual_type().
429 Add call to function set_gdbarch_register_type().
430
bcf48cc7
MK
4312003-10-26 Mark Kettenis <kettenis@gnu.org>
432
6c7de422
MK
433 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
434 FDOFF_REGNUM): Remove defines.
435 * win32-nat.c (do_child_fetch_inferior_registers): Include
436 "i387-tdep.h".
3e685d41 437 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
438 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
439 undefine I387_ST0_REGNUM.
440
f783586b
MK
441 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
442 * x86-64-tdep.c (x86_64_store_return_value): Use
443 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
444
bcf48cc7
MK
445 Change register numbers to enumartion values.
446 * i386-tdep.h (enum i386_regnum): New.
447 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
448 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
449 I386_ST0_REGNUM): Remove defines.
450 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
451 I386_EDI_REGNUM): Remove defines.
452
b6591e8b
AC
4532003-10-24 Andrew Cagney <cagney@redhat.com>
454
455 * target.c: Include "gdbcore.h".
456 (get_target_memory, get_target_memory_unsigned): New functions.
457 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
458 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
459 Use get_target_memory_unsigned.
460 * Makefile.in (target.o): Update dependencies.
461
5f724446
AC
4622003-10-24 Andrew Cagney <cagney@redhat.com>
463
ce2826aa
AC
464 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
465 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
466 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
467 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
468 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
469
5f724446
AC
470 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
471 (can_run_code_for): Use the OO term "singleton".
472
fc70c2a0
AC
4732003-10-23 Andrew Cagney <cagney@redhat.com>
474
475 * Makefile.in (stack.o): Add $(regcache_h).
476 * stack.c: Include "regcache.h"
477 (return_command): Rewrite. Use get_frame_id and
478 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
479 about unhandled return-values.
480 * value.h (set_return_value): Delete declaration.
481 * values.c (set_return_value): Delete function.
482
4afcc598
JJ
4832003-10-23 Jeff Johnston <jjohnstn@redhat.com>
484
485 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
486 (pseudo_regs): Add comment regarding register stack registers.
487 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
488 (floatformat_valid): New static routine.
489 (floatformat_ia64_ext): Add name field and set up is_valid routine
490 to floatformat_valid().
491 (examine_prologue): For the previous cfm, use
492 frame_unwind_register()
493 if the cfm is not stored in a register-stack register. Save the
494 previous cfm value in the prev_cfm field. Add debug output.
495 (ia64_frame_this_id): Use frame_id_build_special() to also register
496 the bsp. Add debug output.
497 (ia64_sigtramp_frame_this_id): Ditto.
498 (ia64_frame_prev_register): Look at cache saved_regs for a few more
499 registers and also add some checks for framelessness before accepting
500 current register values for fields such as return address. For cfm,
501 use the cached prev_cfm field if available. Add comment to explain
502 PSR logic. Add debug output.
503 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
504 as part of initialization.
505 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
506 calculated. Cache the bsp and cfm values.
507 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
508 instead of using ia64_frame_prev_register() which doesn't expect most
509 registers to be saved. The saved values for bsp and sp
510 can be taken from the cache. Add debug output.
511 (ia64_push_dummy_call): Use frame_id_build_special() to also register
512 the bsp.
513
6cfae0bc
JB
5142003-10-23 Jim Blandy <jimb@redhat.com>
515
516 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
517 architecture the current arch can run code for --- but not if it's
518 a superset.
519 (can_run_code_for): New function.
520
fcd182f9
JW
5212003-10-22 James E Wilson <wilson@specifixinc.com>
522
523 * MAINTAINERS: Move myself from paper trail section back to write
524 after approval section.
525
4646aa9d
AC
5262003-10-22 Andrew Cagney <cagney@redhat.com>
527
528 * exec.h: New file.
529 * win32-nat.c: Include "exec.h".
530 * solib.c: Include "exec.h".
531 * target.h (build_section_table): Delete declaration.
532 * somsolib.c: Include "exec.h".
533 (exec_ops): Delete extern declaration.
534 * rs6000-nat.c: Update copyright. Include "exec.h".
535 (exec_ops): Delete extern declaration.
536 * pa64solib.c: Update copyright. Include "exec.h".
537 (exec_ops): Delete extern declaration.
538 * exec.c: Update copyright. Include "exec.h".
539 * corelow.c: Update dependencies. Include "exec.h".
540 * Makefile.in (exec_h): Define.
541 (exec.o, somsolib.o): Update dependencies.
542 (pa64solib.o, corelow.o): Update dependencies.
543
0088c768
AC
5442003-10-22 Andrew Cagney <cagney@redhat.com>
545
546 * target.c: Include "gdb_assert.h" (target_read): Call
547 "target_read_partial", not "target_write_partial".
548 (default_read_partial, default_write_partial): New function.
549 (target_read_partial, target_write_partial): Simplify, assume that
550 there is always a read/write method.
551 (update_current_target, add_target): Always set "to_read_partial"
552 and "to_write_partial".
553 (target_write, target_read): Fail on a zero byte transfer.
554 * Makefile.in (target.o): Update dependencies.
555 * target.h: Update copyright date.
556 (target_object): Fix typo.
557
e2d0e7eb
AC
5582003-10-22 Andrew Cagney <cagney@redhat.com>
559
560 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
561 multi-arch method, add "targ" parameter.
562 (struct target_ops): Declare.
563 * gdbarch.h, gdbarch.c: Re-generate.
564 * Makefile.in (c-valprint.o): Update dependencies.
565 * arch-utils.h: Update copyright.
566 (convert_from_func_ptr_addr_identity): Declare.
567 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
568 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
569 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
570 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
571 * infcall.c (find_function_addr, call_function_by_hand): Update.
572 * c-valprint.c: Include "target.h".
573 (print_function_pointer_address): Update.
574
f1c07ab0
AC
5752003-10-22 Andrew Cagney <cagney@redhat.com>
576
577 * target.c (target_close): New function.
578 (debug_to_close): Use "target_close".
579 (push_target): Use "target_close".
580 (unpush_target): Use "target_close".
581 (pop_target): Use "target_close".
582 * target.h (struct target_ops): Add "to_xclose".
583 (target_open): Delete macro. Move comment to "to_open".
584 (target_close): Replace macro with function that takes a target.
585 * top.c (quit_target): Pass "current_target" to "target_close".
586
5520a790
EZ
5872003-10-21 Elena Zannoni <ezannoni@redhat.com>
588
589 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
590 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
591 * symtab.h (lookup_minimal_symbol_text): Update.
592 * breakpoint.c (create_overlay_event_breakpoint,
593 create_longjmp_breakpoint): Update callers.
594 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
595 * symtab.c (find_pc_sect_line): Ditto.
596
caa92b73
AC
5972003-10-21 Andrew Cagney <cagney@redhat.com>
598
599 * target.c (errno): Delete extern declaration.
600
aa2a9a3c
JJ
6012003-10-20 Jeff Johnston <jjohnstn@redhat.com>
602
603 * ia64-tdep.c: Change all occurrences of
604 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
605 (ia64_frame_prev_register): Minor whitespace change.
606
4beec2b7
MC
6072003-10-20 Michael Chastain <mec@shout.net>
608
609 * config/djgpp/fnchange.lst: Add lines for:
610 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
611 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
612 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
613 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
614 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
615 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
616 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
617
92ad9cd9
AC
6182003-10-20 Andrew Cagney <cagney@redhat.com>
619
620 * values.c (register_value_being_returned): Update comments. Use
621 "gdbarch_return_value" when available.
622 (using_struct_return): Ditto.
623 (set_return_value): Ditto. Use "gdbarch_return_value" when
624 available.. Print a warning, and not an error, when an unhandled
625 return type is encountered.
626 * infcmd.c: Include "gdb_assert.h".
627 (print_return_value): When gdbarch_return_value_p, and using
628 struct return, assume that the value is not available.
629 * defs.h (return_value_convention): Define.
630 * gdbarch.sh (gdbarch_return_value): New predicate method.
631 * gdbarch.h, gdbarch.c: Re-generate
632 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
633
198beae2
AC
6342003-10-20 Andrew Cagney <cagney@redhat.com>
635
636 * symtab.c: Replace "struct sec" with "struct bfd_section".
637 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
638
24d693a6 6392003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
640
641 * config/djgpp/fnchange.lst: Add lines for:
642 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
643 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
644 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
645
21ad8dc3
MK
6462003-10-19 Mark Kettenis <kettenis@gnu.org>
647
648 * amd64fbsd-nat.c (fetch_inferior_registers,
649 store_inferior_registers): Remove functions.
650 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
651
cced5e27
MK
6522003-10-18 Mark Kettenis <kettenis@gnu.org>
653
654 Add NetBSD/amd64 native configuration:
655 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
656 * amd64nbsd-tdep.c: New file.
657 * amd64nbsd-nat.c: New file.
658 * amd64bsd-nat.c: New file.
659 * config/i386/nbsd64.mh: New file.
660 * config/i386/nbsd64.mt: New file.
661 * configure.host: Add x86_64-*-netbsd*.
662 * configure.tgt: Add x86_64-*-netbsd*.
663 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
664 New targets.
665 * NEWS (New native configurations): Mention NetBSD/amd64.
666
666de3fd
MC
6672003-10-17 Michael Chastain <mec@shout.net>
668
669 * config/djgpp/fnchange.lst: Remove dead lines for:
670 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
671 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
672 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
673 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
674 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
675 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
676 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
677 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
678 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
679 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
680 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
681 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
682 gdb/config/sparc/tm-sparclite.h,
683 gdb/gdbtk/generic/ChangeLog-2001,
684 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
685 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
686 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
687 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
688 gdb/testsuite/gdb.mi/mi0-var-block.exp,
689 gdb/testsuite/gdb.mi/mi0-var-child.exp,
690 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
691 gdb/testsuite/gdb.mi/mi0-var-display.exp,
692 itcl/iwidgets3.0.0/demos/extfileselectionbox,
693 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
694 itcl/iwidgets3.0.0/demos/fileselectionbox,
695 itcl/iwidgets3.0.0/demos/fileselectiondialog,
696 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
697 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
698 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
699 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
700 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
701 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
702 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
703 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
704 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
705 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
706 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
707 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
708 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
709 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
710 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
711 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
712 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
713 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
714 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
715 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
716 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
717 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
718 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
719 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
720 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
721 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
722 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
723 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
724 itcl/iwidgets3.0.0/demos/html/shell.n.html,
725 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
726 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
727 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
728 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
729 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
730 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
731 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
732 itcl/iwidgets3.0.0/demos/scrolledcanvas,
733 itcl/iwidgets3.0.0/demos/scrolledframe,
734 itcl/iwidgets3.0.0/demos/scrolledhtml,
735 itcl/iwidgets3.0.0/demos/scrolledlistbox,
736 itcl/iwidgets3.0.0/demos/scrolledtext,
737 itcl/iwidgets3.0.0/demos/selectionbox,
738 itcl/iwidgets3.0.0/demos/selectiondialog,
739 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
740 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
741 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
742 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
743 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
744 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
745 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
746 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
747 itcl/iwidgets3.0.0/doc/scrolledframe.n,
748 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
749 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
750 itcl/iwidgets3.0.0/doc/scrolledtext.n,
751 itcl/iwidgets3.0.0/doc/selectionbox.n,
752 itcl/iwidgets3.0.0/doc/selectiondialog.n,
753 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
754 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
755 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
756 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
757 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
758 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
759 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
760 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
761 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
762 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
763 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
764 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
765 itcl/iwidgets3.0.0/generic/selectionbox.itk,
766 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
767 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
768 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
769 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
770 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
771 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
772 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
773 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
774 itcl/iwidgets3.0.0/tests/scrolledframe.test,
775 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
776 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
777 itcl/iwidgets3.0.0/tests/scrolledtext.test,
778 itcl/iwidgets3.0.0/tests/selectionbox.test,
779 itcl/iwidgets3.0.0/tests/selectiondialog.test,
780 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
781 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
782 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
783 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
784 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
785 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
786 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
787 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
788 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
789 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
790 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
791 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
792 tk/mac/tkMacProjects.sit.hqx.
793
1e3ff5ad
AC
7942003-10-17 Andrew Cagney <cagney@redhat.com>
795
8db32d44
AC
796 * target.c (target_section_by_addr): New function.
797 (do_xfer_memory): Use "target_section_by_addr".
798 * target.h (target_section_by_addr): Declare.
799
1e3ff5ad
AC
800 * target.h (struct target_ops): Add "to_read_partial" and
801 "to_write_partial", delete "to_query".
802 (target_read_partial, target_write_partial): Declare.
803 (target_read, target_write): Declare.
804 (target_query): Delete macro.
805 * target.c (target_read_partial): New function.
806 (target_write_partial, target_read, target_write): New function.
807 (update_current_target): Delete inheritance of "to_query". Add
808 comments about "to_read_partial" and "to_write_partial".
809 (debug_to_partial_read, debug_to_partial_write): New functions.
810 (debug_to_query): Delete function.
811 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
812 instead of "to_query".
813 * remote.c (remote_read_partial): Replace "remote_query".
814 (init_remote_ops): Set "to_read_partial" instead of "to_query".
815 (init_remote_async_ops): Ditto.
816 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
817 "target_read_partial" instead of "target_query".
818 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
819 Use "target_read_partial" instead of "target_query".
820
48c66725
JJ
8212003-10-17 Jeff Johnston <jjohnstn@redhat.com>
822
823 * frame.h (struct frame_id): Add new field: special_addr.
824 (frame_id_build_special): New prototype.
825 * frame.c (frame_id_build_special): New function.
826 (frame_id_build): Change to call frame_id_build_special().
827 (frame_id_eq): Change to also test special_addr field.
828 (frame_id_inner): Update comment.
829
7998dfc3
AC
8302003-10-17 Andrew Cagney <cagney@redhat.com>
831
832 * target.c (update_current_target): Perform the target cleanup.
833 Put the target stack beneath the squashed "current_target".
834 (add_target): Delete disabled call to "cleanup_target".
835 (cleanup_target): Delete function.
836 (push_target, unpush_target): Do not call "cleanup_target".
837
9c04404e 8382003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
839
840 * target.c (target_stack): Change to a static target_ops.
841 (update_current_target): Walk the "struct target_ops" stack.
842 (pop_target, do_xfer_memory, target_info): Ditto.
843 (find_target_beneath): Ditto.
844 (push_target): Rewrite to use the "struct target_ops" stack.
845 (unpush_target): Ditto.
846 * target.h (struct target_stack_item): Delete definition.
847 (target_stack): Delete declaration.
848 (struct target_ops): Add field "beneath".
849
c98a2b49 8502003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
851
852 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
853 declaration.
854 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
855 (h8300_examine_prologue): Use h8300_normal_mode flag
856 (h8300_gdbarch_init): Set architecture info for normal mode
857
506fb367
DJ
8582003-10-16 Daniel Jacobowitz <drow@mvista.com>
859
860 * remote.c (remote_protocol_vcont): New variable.
861 (set_remote_protocol_vcont_packet_cmd): New function.
862 (show_remote_protocol_vcont_packet_cmd): New function.
863 (init_all_packet_configs): Handle remote_protocol_vcont.
864 (remote_vcont_probe): New function.
865 (remote_vcont_resume): New function.
866 (remote_resume): Use it.
867 (remote_async_resume): Call remote_resume.
868 (_initialize_remote): Add verbose-resume packet commands.
869
65815ea1
AC
8702003-10-16 Andrew Cagney <cagney@redhat.com>
871
872 * infrun.c (handle_inferior_event): Add comment about
873 "frame_id_inner" being too weak.
874
40324f1b
EZ
8752003-10-16 Elena Zannoni <ezannoni@redhat.com>
876
877 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
878 second parameter, which is always null. Remove
879 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
880 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
881 accordingly.
882 * somsolib.c (som_solib_create_inferior_hook,
883 som_solib_desire_dynamic_linker_symbols): Update callers.
884 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
885
8862003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
887
888 * remote-m32r-sdi.c : New file, interface to m32r on-chip
889 debug interface, SDI (Scalable Debug Interface).
890 * NEWS: Mention m32r SDI protocol was supported.
891 * Makefile.in (remote-m32r-sdi.o): Add build rule.
892 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
893
51931cbb
JJ
8942003-10-15 Jeff Johnston <jjohnstn@redhat.com>
895
896 * ia64-linux-tdep.c: Include gdbcore.h.
897 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
898 (ia64_linux_sigcontext_register_addr): Find the address of the
899 sigcontext area stored in the sigframe instead of using
900 a magic offset constant.
901
84e7fd53
AC
9022003-10-15 Andrew Cagney <cagney@redhat.com>
903
904 * remote.c (remote_search): Delete function.
905 * target.h (target_search): Delete disabled macro.
906 (struct target_ops): Delete disabled field "to_search".
907
0f4d7c52
KB
9082003-10-14 Kevin Buettner <kevinb@redhat.com>
909
910 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
911 instead of deprecated_inside_entry_file().
912
2e952408
CV
9132003-10-14 Corinna Vinschen <vinschen@redhat.com>
914
915 * sh-tdep.c: Fix copy/paste hangover in comment.
916 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
917 mode.
918 (sh3e_sh4_extract_return_value): Ditto.
919
7e86466e
RH
9202003-10-13 Richard Henderson <rth@redhat.com>
921
922 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
923 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
924 match c_val_print a bit closer.
925
46a16dba
KB
9262003-10-13 Kevin Buettner <kevinb@redhat.com>
927
928 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
929 (frv_gdbarch_adjust_breakpoint_address): New function.
930 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
931 method.
932
76897487
KB
9332003-10-13 Kevin Buettner <kevinb@redhat.com>
934
935 * breakpoint.h (struct breakpoint): Add new member
936 ``requested_address''.
937 * breakpoint.c (breakpoint_adjustment_warning)
938 (adjust_breakpoint_address): New static functions.
939 (print_it_typical): Issue warning if breakpoint's address is different
940 from its requested address.
941 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
942 (breakpoint_re_set_one): Set breakpoint's
943 ``requested_address'' field. Set ``address'' field to the
944 result of calling adjust_breakpoint_address() on the requested
945 address.
946
a1131521
KB
9472003-10-13 Kevin Buettner <kevinb@redhat.com>
948
949 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
950 * gdbarch.h, gdbarch.c: Regenerate.
951
6ce6d90f
MK
9522003-10-11 Mark Kettenis <kettenis@gnu.org>
953
155c1d33
MK
954 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
955 TDEP->sc_num_regs.
956
8a96bc77
MK
957 * i386fbsd-tdep.c: New file.
958 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
959 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
960 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
961 i386bsd-tdep.c.
962 (_initialize_i386fbsd_tdep): New function.
963 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
964 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
965 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
966 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
967 TDEP->sc_num_regs.
968 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
969 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
970 to initialize TDEP->sc_num_regs.
971 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
972 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
973 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
974 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
975 FreeBSD ELF OS/ABI's here.
976 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
977 (i386fbsd-tdep.o): New target.
978 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
979 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
980
477f40d1
MK
981 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
982 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
983 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
984 in initialization of TDEP->sc_num_regs.
985
c6b33596
MK
986 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
987 (x86_64_init_abi): Initialize regset_from_core_section if
988 appropriate.
989
8446b36a
MK
990 * i386-tdep.c (i386_regset_from_core_section): New function.
991 (i386_gdbarch_init): Initialize regset_from_core_section if
992 appropriate.
993 * i386-tdep.h (i386_regset_from_core_section): New declaration.
994
c783cbd6
MK
995 * i386-tdep.h (struct regset): Declare opaque.
996
6ce6d90f
MK
997 * gdbarch.sh (regset_from_core_section): New method.
998 (struct regset): Declare opaque.
999 * gdbarch.c, gdbarch.h: Regenerated.
1000
b98ed7be
AM
10012003-10-11 Alan Modra <amodra@bigpond.net.au>
1002
1003 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1004 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1005 Correct test for pc within section.
1006
f6214256
MK
10072003-10-11 Mark Kettenis <kettenis@gnu.org>
1008
1009 * gdbarch.sh: Remove trailing whitepsace from comments.
1010
a8f4cde1
RM
10112003-10-08 Roland McGrath <roland@redhat.com>
1012
1013 * gcore.c (make_mem_sec): Function removed, folded into ...
1014 (gcore_create_callback): ... here. To omit a section, clear its
1015 SEC_LOAD bit rather than zeroing its size.
1016 Omit read-only sections only if they correspond to a known disk file.
1017 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1018
74276724
MS
10192003-10-10 Michael Snyder <msnyder@redhat.com>
1020
1021 * d10v-tdep.c: Fix typo in comment.
1022
e754ae69
AC
10232003-10-10 Andrew Cagney <cagney@redhat.com>
1024
1025 * rs6000-tdep.c (e500_store_return_value): Delete function.
1026 (e500_extract_return_value): Delete function.
1027 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1028 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1029 "ppc_sysv_abi_restore_return_value" where applicable.
1030 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1031 (ppc_sysv_abi_extract_return_value): Declare.
1032 (ppc_sysv_abi_broken_store_return_value): Declare.
1033 (ppc_sysv_abi_broken_extract_return_value): Declare.
1034 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1035 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1036 start of file.
1037 (do_ppc_sysv_return_value): New function.
1038 (ppc_sysv_abi_extract_return_value): New function.
1039 (ppc_sysv_abi_store_return_value): New function.
1040 (ppc_sysv_abi_broken_extract_return_value): New function.
1041 (ppc_sysv_abi_broken_store_return_value): New function.
1042 (ppc_sysv_abi_use_struct_convention): Call
1043 do_ppc_sysv_return_value.
1044
8d4ce20a
JB
10452003-10-10 J. Brobecker <brobecker@gnat.com>
1046
1047 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1048 to lookup the main function symbol.
1049
afce3d2a
CV
10502003-10-10 Corinna Vinschen <vinschen@redhat.com>
1051
1052 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1053 types correctly.
1054 (sh_push_dummy_call_fpu): Fix argument passing rules.
1055 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1056 float types.
1057 (sh3e_sh4_store_return_value): Ditto.
1058
7fe958be
EZ
10592003-10-10 Elena Zannoni <ezannoni@redhat.com>
1060
1061 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1062 comment.
1063
3f997a97
CV
10642003-10-10 Corinna Vinschen <vinschen@redhat.com>
1065
1066 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1067 more readable code. Accomodate passing of bitfields.
1068
8be9034a
AC
10692003-10-10 Andrew Cagney <cagney@redhat.com>
1070
1071 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1072 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1073 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1074 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1075 (ppc64_sysv_abi_push_dummy_call): New function.
1076 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1077 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1078 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1079
85a453d5
KI
10802003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1081
1082 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1083 * README: Ditto.
1084 * d10v-tdep.c: Ditto.
1085 * h8300-tdep.c: Ditto.
1086 * remote-e7000.c: Ditto.
1087 * remote-hms.c: Ditto.
1088 * ser-e7kpc.c: Ditto.
1089 * sh-stub.c: Ditto.
1090 * sh-tdep.c: Ditto.
1091 * sh-tdep.h: Ditto.
1092 * sh3-rom.c: Ditto.
1093 * sh64-tdep.c: Ditto.
1094 * top.c: Ditto.
1095 * wince.c: Ditto.
1096 * config/d10v/d10v.mt: Ditto.
1097 * config/sh/embed.mt: Ditto.
1098 * config/sh/linux.mt: Ditto.
1099 * config/sh/tm-linux.h: Ditto.
1100 * config/sh/tm-sh.h: Ditto.
1101 * config/sh/wince.mt: Ditto.
1102
221c12ff
AC
11032003-10-09 Andrew Cagney <cagney@redhat.com>
1104
1105 * ppc-tdep.h (struct type): Declare opaque.
1106 * x86-64-tdep.h (struct regcache): Declare opaque.
1107 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1108 coding style.
1109
ef5200c1
AC
11102003-10-09 Andrew Cagney <cagney@redhat.com>
1111
1112 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1113 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1114 (SOFTWARE_SINGLE_STEP_P): Ditto.
1115 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1116 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1117 (SOFTWARE_SINGLE_STEP_P): Ditto.
1118 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1119 software_single_step to rs6000_software_single_step.
a8f4cde1 1120
9644bbdd
AC
11212003-10-09 Andrew Cagney <cagney@redhat.com>
1122
1123 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1124
db72fa6b
MS
11252003-10-09 Michael Snyder <msnyder@redhat.com>
1126
f3efb16c
MS
1127 * frame.h: Fix typo in comment.
1128 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
1129 * d10v-tdep.c: Random whitespace/comment tweaks.
1130
9a5cef92
EZ
11312003-10-09 Elena Zannoni <ezannoni@redhat.com>
1132
1133 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 1134 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 1135 on stack.
a8f4cde1 1136
9a5cef92
EZ
1137 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1138 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1139 in detail.
a8f4cde1 1140
0f317a0c
DJ
11412003-10-09 Daniel Jacobowitz <drow@mvista.com>
1142
1143 * remote-mips.c (mips_initialize): Remove unneeded call to
1144 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1145
bbab2f46
DJ
11462003-10-09 Daniel Jacobowitz <drow@mvista.com>
1147
1148 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1149 a memory pointer.
1150
550950b8
JJ
11512003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1152
1153 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1154 for any lwp we resume.
1155 (running_callback): Add lwps that have pending status events
1156 against them to be considered running.
1157
15c69bc7
KI
11582003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1159
1160 * m32r-tdep.c : Include "dis-asm.h".
1161 * Makefile.in (m32r-tdep.o): Update dependencies.
1162
51065942
JB
11632003-10-06 J. Brobecker <brobecker@gnat.com>
1164
1165 * completer.h (get_gdb_completer_word_break_characters): Delete.
1166 * completer.c: include language.h.
1167 (gdb_completer_word_break_characters): Delete.
1168 (get_gdb_completer_word_break_characters): Delete.
1169 (location_completer): Use the word break characters of the current
1170 language.
1171 (complete_line): Likewise.
1172 (line_completion_function): Likewise.
1173 (skip_quoted_chars): Likewise.
1174 * Makefile.in (completer.o): Add dependency on language.h.
1175 * top.c (init_main): Set the readline word break characters
1176 to GDB's default word break characters.
1177
6084f43a
JB
11782003-10-06 J. Brobecker <brobecker@gnat.com>
1179
1180 * language.h (language_defn): new field, la_word_break_characters.
1181 * language.c (unknown_language_defn): Set new field to
1182 default_word_break_characters.
1183 (auto_language_defn): Likewise.
1184 (local_language_defn): Likewise.
1185 * ada-lang.c (ada_language_defn): Likewise.
1186 * c-lang.c (c_language_defn): Likewise.
1187 (cplus_language_defn): Likewise.
1188 (asm_language_defn): Likewise.
1189 (minimal_language_defn): Likewise.
1190 * f-lang.c (f_language_defn): Likewise.
1191 * jv-lang.c (java_language_defn): Likewise.
1192 * m2-lang.c (m2_language_defn): Likewise.
1193 * objc-lang.c (objc_language_defn): Likewise.
1194 * p-lang.c (pascal_language_defn): Likewise.
1195 * scm-lang.c (scm_language_defn): Likewise.
1196
944fcfab
AC
11972003-10-06 Andrew Cagney <cagney@redhat.com>
1198
1199 * ppc-sysv-tdep.c: Re-indent.
1200
9f0a5303
JB
12012003-10-06 J. Brobecker <brobecker@gnat.com>
1202
1203 * language.h (default_word_break_characters): Add prototype.
1204 * language.c (default_word_break_characters): New function.
1205
7270b6ed
AS
12062003-10-06 Andreas Schwab <schwab@suse.de>
1207
1208 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1209 with %eax.
1210
a5d61f66
AC
12112003-10-06 Andrew Cagney <cagney@redhat.com>
1212
1213 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1214 "h8500-tdep.c".
1215 (z8k-tdep.o): Delete custom build rule.
1216
28a86f5c
AC
12172003-10-06 Andrew Cagney <cagney@redhat.com>
1218
1bfd8a83
AC
1219 * Makefile.in: Update all dependencies.
1220
17144ef8
AC
1221 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1222 No longer list PA as as obsolete candidate. List m32r as
1223 broken instead of obsolete.
a8f4cde1 1224
a5679ae5
AC
1225 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1226 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1227 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1228 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1229 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1230 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1231 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1232 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1233 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1234 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1235 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1236 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1237 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1238 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1239 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1240 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1241 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1242 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1243 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1244 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1245 * config/z8k/z8k.mt: Ditto.
1246
4a8269c0
AC
1247 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1248 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1249 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1250 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1251 sparclite were removed.
1252 * configure.host, configure.tgt: Remove corresponding tuples.
1253
41989fcd
AC
1254 * breakpoint.c, breakpoint.h: Remove obsolete code.
1255 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1256 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1257 * stabsread.h, xcoffread.c: Ditto.
1258
28a86f5c
AC
1259 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1260 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1261 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1262 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1263
4efdaa0d
DL
12642003-10-06 David Lecomber <dsl@sources.redhat.com>
1265
1266 * f-valprint.c: Reformatting
1267
ae53de43
MK
12682003-10-06 Mark Kettenis <kettenis@gnu.org>
1269
a8bb57e7
MK
1270 * x86-64-tdep.c: Remove duplicate comment.
1271
ae53de43
MK
1272 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1273 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1274 names for return values. This fixes a bug since we looked at %rbx
1275 instead of %rdx.
1276
473f17b0
MK
12772003-10-05 Mark Kettenis <kettenis@gnu.org>
1278
2c261fae
MK
1279 * x86-64-tdep.c: Include "regset.h".
1280
473f17b0
MK
1281 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1282 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1283 sizeof_fpregset.
1284 * i386-tdep.c: Include "regset.h".
1285 (i386_supply_gregset): New function.
1286 (i386_supply_fpregset): New function.
1287 (i386_gdbarch_init): Initialze register set-related members of
1288 TDEP.
1289 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1290 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1291
afd48b75
AC
12922003-10-03 Andrew Cagney <cagney@redhat.com>
1293
1294 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1295 set extract_return_value, store_return_value and
1296 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1297 ppc64_sysv_abi_store_return_value and
1298 ppc64_sysv_abi_use_struct_convention.
1299 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1300 (ppc64_sysv_abi_store_return_value): Declare.
1301 (ppc64_sysv_abi_use_struct_convention): Declare.
1302 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1303 (ppc64_sysv_abi_extract_return_value): New function.
1304 (ppc64_sysv_abi_store_return_value): New function.
1305 (ppc64_sysv_abi_use_struct_convention): New function.
1306 (ppc64_sysv_abi_return_value): New function.
1307
9b540880
AC
13082003-10-03 Andrew Cagney <cagney@redhat.com>
1309
1310 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1311 convert a descriptor to a function when it's in the ".opd"
1312 section.
1313
8748518b
CV
13142003-10-03 Corinna Vinschen <vinschen@redhat.com>
1315
1316 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1317 reg_size to keep GCC silent.
1318
0fd85043
CV
13192003-10-03 Corinna Vinschen <vinschen@redhat.com>
1320
1321 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1322 base for DW_EH_PE_textrel encodings.
1323 (read_encoded_value): Add a DW_EH_PE_textrel case.
1324 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1325 section.
1326
37b517aa
MK
13272003-10-03 Mark Kettenis <kettenis@gnu.org>
1328
1329 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1330
12c266ea
AC
13312003-10-02 Andrew Cagney <cagney@redhat.com>
1332
1333 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1334 REGISTER_RAW_SIZE.
1335 * gdbarch.h, gdbarch.c: Re-generate.
1336 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1337 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1338 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1339 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1340 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1341 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1342 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1343 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1344 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1345 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1346 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1347 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1348 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1349 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1350 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1351 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 1352
78ba4af6
JB
13532003-10-02 Jim Blandy <jimb@redhat.com>
1354
1355 * dwarf2read.c (struct die_info): Doc fix.
1356
617daa0e
CV
13572003-10-02 Corinna Vinschen <vinschen@redhat.com>
1358
1359 * sh-tdep.c: Running thru gdb_indent.sh.
1360
e5e33cd9
CV
13612003-10-02 Corinna Vinschen <vinschen@redhat.com>
1362
1363 * sh-tdep.c (sh_justify_value_in_reg): New function.
1364 (sh_stack_allocsize): Ditto.
1365 (flt_argreg_array): New array used for floating point argument
1366 passing.
1367 (sh_init_flt_argreg): New function.
a8f4cde1 1368 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
1369 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1370 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1371 Fix argument passing strategy.
1372 (sh_push_dummy_call_nofpu): Ditto.
1373
5fe830e4
AC
13742003-10-01 Andrew Cagney <cagney@redhat.com>
1375
1376 * value.h (register_value_being_returned): Declare. Replace
1377 "value_being_returned".
1378 * infcall.c (call_function_by_hand): Use
1379 register_value_being_returned.
1380 * infcmd.c (print_return_value): Call
1381 "register_value_being_returned", handle struct return locally.
1382 * values.c (register_value_being_returned): New function. Replace
1383 "value_being_returned".
a8f4cde1 1384
5fe830e4 13852003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
1386
1387 * linux-proc.c (linux_do_registers): New function.
1388 (linux_make_note_section): Use linux_do_registers in case of
1389 single threaded inferior programs.
1390
64f395bf
AC
13912003-10-01 Andrew Cagney <cagney@redhat.com>
1392
1393 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1394 use STRUCT_ADDR. When not using "struct return convention", pass
1395 "0" to "value_being_returned". Add FIXMEs.
1396 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1397 value_being_returned. Add comments.
1398 * values.c (value_being_returned): Add fixme.
1399 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1400 (hppa_value_returned_from_stack): Add FIXME.
1401
639d11d3
DC
14022003-09-30 David Carlton <carlton@kealia.com>
1403
1404 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1405 'has_children' and 'next' by 'child' and 'sibling'.
1406 (read_comp_unit): Rework algorithm, breaking body into
1407 read_die_and_children and read_die_and_siblings.
1408 (read_die_and_children, read_die_and_siblings): New.
1409 (read_full_die): Add 'has_children' argument; set it instead of
1410 the die's 'has_children' field. Minor formatting cleanup.
1411 (free_die_list): Use die->child and die->sibling instead of
1412 die->next.
1413 (dump_die_list): Ditto.
1414 (sibling_die): Use die->sibling.
1415 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1416 'has_children' and 'next' fields.
a8f4cde1
RM
1417 (process_die, read_file_scope, read_func_scope)
1418 (read_lexical_block_scope, read_structure_scope)
1419 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
1420 (read_namespace, read_subroutine_type, dump_die): Ditto.
1421
5bffac25
AC
14222003-09-30 Andrew Cagney <cagney@redhat.com>
1423
1424 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1425 to 224, not 220.
1426
f30992d4
AC
14272003-09-30 Andrew Cagney <cagney@redhat.com>
1428
1429 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1430 REGISTER_VIRTUAL_SIZE.
1431 * gdbarch.h, gdbarch.c: Regenerate.
1432 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1433 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1434 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1435
2e092625
AC
14362003-09-29 Andrew Cagney <cagney@redhat.com>
1437
1438 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1439 DEPRECATED_REGISTER_VIRTUAL_TYPE.
1440 * gdbarch.h, gdbarch.c: Regenerate.
1441 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1442 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
1443
1444 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1445 * remote-vxmips.c (vx_read_register): Ditto.
1446 * remote-vx68.c (vx_read_register): Ditto.
1447 * gnu-nat.c (inf_validate_procs): Ditto.
1448
7a5dd6ee
JB
14492003-09-29 J. Brobecker <brobecker@gnat.com>
1450
1451 * infcall.c (call_function_by_hand): Fix build failure
1452 introduced in the previous change to this file.
1453
1fe43d45
AC
14542003-09-29 Andrew Cagney <cagney@redhat.com>
1455
1456 * NEWS: Mention Objective-C.
1457
e28a332c
JG
14582003-09-29 Jerome Guitton <guitton@act-europe.fr>
1459
1460 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1461 test if the register has been saved on the stack.
1462 (arm_scan_prologue_cache): When analysing the instruction
1463 "str lr, [sp, #-4]", save the address where lr has been stored.
1464
9ff63c35
AC
14652003-09-28 Andrew Cagney <cagney@redhat.com>
1466
7f5f525d
AC
1467 * frame.c (frame_read_unsigned_register): Delete function.
1468 * frame.h (frame_read_unsigned_register): Delete declaration.
1469 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1470 get_frame_register_unsigned.
1471 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1472 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1473 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 1474
7f5f525d
AC
1475 * frame.h (frame_read_register): Delete declaration.
1476 * frame.c (frame_read_register): Delete function.
1477 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1478 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1479 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1480 * mips-tdep.c (mips_register_to_value): Ditto.
1481 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1482 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1483
1484 * frame.c (frame_read_signed_register): Delete function.
1485 (frame_read_unsigned_register): Update comments.
1486 * frame.h (frame_read_signed_register): Delete declaration.
1487 * h8300-tdep.c (h8300_print_register): Use
1488 get_frame_register_signed.
1489 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1490
9ff63c35
AC
1491 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1492 Rename VALUE_RETURNED_FROM_STACK.
1493 * infcmd.c (print_return_value): Update.
1494 * infcall.c (call_function_by_hand): Update.
1495
41d041d6
MK
14962003-09-28 Mark Kettenis <kettenis@gnu.org>
1497
1498 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1499 regcache argument and reverse the order of the other two
1500 arguments. Remove local regcache variable. Determine
1501 architecture from REGCACHE. Update comments.
1502 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1503 reverse the order of the other two arguments. Remove local
1504 regcache variable. Determine architecture from REGCACHE. Update
1505 comments.
1506 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1507 prototypes. Update comments.
1508 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1509 comment.
1510 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1511 Update.
1512 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1513 * i386-interix-nat.c (supply_fpregset): Update.
1514 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1515 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1516 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1517 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1518 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1519 Update.
1520 * i386obsd-tdep.c (fetch_core_registers): Update.
1521 * i386v4-nat.c (supply_fpregset): Update.
1522 * x86-64-linux-nat.c (supply_fpregset): Update.
1523 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 1524
1cb97e17
MK
15252003-09-27 Mark Kettenis <kettenis@gnu.org>
1526
5716833c
MK
1527 * i386-tdep.h: Put opaque declarations in alphabetical
1528 order. Remove spurious whitespace.
1529 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1530 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1531 * i386-tdep.c (MM0_REGNUM): Remove define.
1532 (i386_mmx_regnum_p): Add gdbarch argument.
1533 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1534 Rewrite using new macro definitions for FPU/SSE registers.
1535 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1536 definitions from i387-tdep.h.
1537 (i386_register_name): Update.
1538 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1539 new macro definitions for FPU/SSE registers.
1540 (i386_extract_return_value): Determine whether floating-point
1541 registers are present by examining REGCACHE's architecture.
1542 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1543 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1544 FPU/SSE registers.
1545 (i386_register_type): Update.
1546 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1547 definitions for FPU registers. Use REGCACHE's architecture to
1548 determine the appropriate register numbers.
1549 (i386_pseudo_register_read, i386_pseudo_register_write,
1550 i386_register_reggroup_p): Update.
1551 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1552 TDEP->mm0_regnum.
1553 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1554 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1555 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1556 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1557 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1558 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1559 *' to `void *'.
1560 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1561 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1562 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1563 definitions for FPU/SSE registers.
1564 (FXSAVE_MXCSR_ADDR): New define.
1565 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1566 TDEP->mm0_regnum.
1567 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1568 (I387_ST0_REGNUM): Define.
1569
41d35cb0
MK
1570 * regcache.h (get_regcache_arch): New prototype.
1571 * regcache.c (get_regcache_arch): New function.
1572
54e74f72
MK
1573 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1574 whitespace.
1575
1cb97e17
MK
1576 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1577 Initialize using ARRAY_SIZE.
1578
0968aa8c
AC
15792003-09-27 Andrew Cagney <cagney@redhat.com>
1580
1581 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1582 "init_frame_pc_default".
1583 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1584 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1585 * vax-tdep.c (vax_gdbarch_init): Update.
1586 * v850-tdep.c (v850_gdbarch_init): Update.
1587 * sh64-tdep.c (sh64_gdbarch_init): Update.
1588 * s390-tdep.c (s390_gdbarch_init): Update.
1589 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1590 * mcore-tdep.c (mcore_gdbarch_init): Update.
1591 * h8300-tdep.c (h8300_gdbarch_init): Update.
1592 * cris-tdep.c (cris_gdbarch_init): Update.
1593 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1594
54c84734
MK
15952003-09-26 Mark Kettenis <kettenis@gnu.org>
1596
1597 * regset.h: New file.
1598 * Makefile.in (regset_h): Add.
1599
1b1d3794
AC
16002003-09-25 Andrew Cagney <cagney@redhat.com>
1601
1602 * frame.h (deprecated_frame_saved_regs): Rename
1603 get_frame_saved_regs.
1604 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1605 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1606 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1607 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1608 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1609
e6beb428
AC
16102003-09-25 Andrew Cagney <cagney@redhat.com>
1611
1612 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1613 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1614 and Java.
1615 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1616 arm*-*-* do not use the new frame code.
1617
710122da
DC
16182003-09-25 David Carlton <carlton@kealia.com>
1619
1620 * c-exp.y: Remove 'register' declarations.
1621 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1622
79c2c32d
DC
16232003-09-25 David Carlton <carlton@kealia.com>
1624
1625 * c-exp.y: Include cp-support.h. Add qualified_type.
1626 (yylex): Delete nested type hack; add comments.
1627 * cp-namespace.c (cp_lookup_nested_type): New function.
1628 * cp-support.h: Declare cp_lookup_nested_type.
1629 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1630 instead of value_struct_elt_for_reference.
1631 * valops.c: Include cp-support.h.
1632 (value_aggregate_elt): New function.
1633 (value_namespace_elt): Ditto.
1634 (value_struct_elt_for_reference): Make static.
1635 * value.h: Delete declaration of value_struct_elt_for_reference;
1636 add declaration for value_aggregate_elt.
1637 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1638 (valops.o): Ditto.
1639
898c62f5
DJ
16402003-09-25 Daniel Jacobowitz <drow@mvista.com>
1641
1642 * stack.c: Include "reggroups.h".
1643 (frame_info): Only display registers in all_reggroup.
1644 * Makefile.in (stack.o): Update dependencies.
1645
28cd8767
JG
16462003-09-25 Jerome Guitton <guitton@act-europe.fr>
1647
1648 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1649 "add ip, sp #n" in the prologue.
1650 (arm_scan_prologue): Ditto.
1651
a4ab2b5d
JG
16522003-09-25 Jerome Guitton <guitton@act-europe.fr>
1653
1654 * MAINTAINERS (write after approval): Add myself.
1655
3f244638
AS
16562003-09-25 Andreas Schwab <schwab@suse.de>
1657
1658 * m68k-tdep.c: Include "dwarf2-frame.h".
1659 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1660 * Makefile.in (m68k-tdep.o): Update dependencies.
1661
1c0159e0
CV
16622003-09-25 Corinna Vinschen <vinschen@redhat.com>
1663
1664 * sh-tdep.c (struct frame_extra_info): Remove.
1665 (struct sh_frame_cache): New structure.
1666 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1667 (GET_TARGET_REG): Ditto but target register.
1668 (GET_PUSHED_REG): Remove.
1669 (IS_MOV_ARG_TO_REG): New macro.
1670 (IS_MOV_ARG_TO_IND_R14): New macro.
1671 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1672 (IS_MOVW_PCREL_TO_REG): New macro.
1673 (IS_MOVL_PCREL_TO_REG): New macro.
1674 (IS_SUB_REG_FROM_SP): New macro.
1675 (IS_ARG_MOV): Remove.
1676 (IS_MOV_TO_R14): Remove.
1677 (IS_RESTORE_FP): New macro.
1678 (IS_RTS): New macro.
1679 (IS_LDS): New macro.
1680 (IS_MOV_FP_SP): New macro.
1681 (IS_ADD_REG_TO_FP): New macro.
1682 (IS_ADD_IMM_FP): New macro.
1683 (sh_skip_prologue_hard_way): Remove.
1684 (sh_saved_pc_after_call): Remove.
1685 (sh_frame_chain): Remove.
1686 (sh_find_callers_reg): Remove.
a8f4cde1 1687 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
1688 (sh_fp_frame_init_saved_regs): Remove.
1689 (sh_init_extra_frame_info): Remove.
1690 (sh_analyze_prologue): New function.
1691 (sh_skip_prologue): Remove deprecated code. Rely on new function
1692 sh_analyze_prologue when after_prologue fails.
1693 (sh_frame_saved_pc): Remove.
1694 (sh_alloc_frame_cache): New function.
1695 (sh_frame_cache): Ditto.
1696 (sh_frame_prev_register): Ditto.
1697 (sh_frame_this_id): Ditto.
1698 (sh_frame_unwind): New structure defining the heuristic frame
1699 sniffer interface.
1700 (sh_frame_sniffer): New function.
1701 (sh_unwind_sp): Ditto.
1702 (sh_unwind_pc): Ditto.
1703 (sh_unwind_dummy_id): Ditto.
1704 (sh_frame_base_address): Ditto.
1705 (sh_frame_base): New structure defining new frame base code.
1706 (sh_in_function_epilogue_p): New function.
1707 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1708 code and to call all new code instead. Initialize dwarf2 and
1709 heuristic frame sniffer.
1710
5f9769d1
PH
17112003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1712
a8f4cde1
RM
1713 * parser-defs.h (struct exp_descriptor): New definition, containing
1714 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
1715 evaluating expressions.
1716 (exp_descriptor_standard): Declare new variable.
1717 (print_subexp): Make global and declare here (from expprint.c).
1718 (dump_subexp): Ditto.
1719 (dump_subexp_body_standard): Declare.
1720 (operator_length_standard): Declare.
1721 (op_name_standard): Declare.
1722 (print_subexp): Declare.
1723 (print_subexp_standard): Declare.
1724
1725 * language.h (struct language_defn): Add la_exp_desc field to hold
1726 pointer to table for language-specific operators.
1727 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
1728
1729 * parse.c (operator_length): Move most code to new
5f9769d1 1730 operator_length_standard function. Use language-specific information.
a8f4cde1 1731 (operator_length_standard): New function taking most code from
5f9769d1
PH
1732 operator_length.
1733 (exp_descriptor_standard): New constant.
a8f4cde1
RM
1734
1735 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 1736 and OP_EXTENDED_LAST.
a8f4cde1
RM
1737
1738 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
1739 Make global; remove static declaration.
1740 Move most code to print_subexp_standard.
a8f4cde1 1741 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
1742 print_subexp.
1743 (op_name): Add expression to argument signature.
a8f4cde1 1744 Use langauge-specific op_name.
5f9769d1
PH
1745 Move most code to op_name_standard.
1746 (op_name_standard): New function, containing code formerly in op_name.
1747 (dump_subexp): Use new version of op_name function.
1748 Use language-specific dump_subexp_body, and move most existing code to
1749 dump_subexp_body_standard.
1750 (dump_raw_expression): Use new op_name interface.
1751 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1752 (dump_subexp_body_standard): New function, containing code formerly
1753 in dump_subexp_body.
a8f4cde1 1754
5f9769d1
PH
1755 * language.c (unknown_language): Add default la_exp_desc field and
1756 remove evaluate_exp field.
1757 (auto_language): Ditto.
1758 (local_language): Ditto.
1759 * f-lang.c (f_language_defn): Ditto.
1760 * c-lang.c (c_language_defn): Ditto.
1761 (cplus_language_defn): Ditto.
1762 (asm_language_defn): Ditto.
1763 (minimal_language_defn): Ditto.
1764 * p-lang.c (pascal_language_defn): Ditto.
1765 * m2-lang.c (m2_language_defn): Ditto.
1766 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
1767
1768 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
1769 Java-specific expression evaluator.
1770 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1771 field.
a8f4cde1 1772 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
1773 Scheme-specific expression evaluator.
1774 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1775 field.
1776 * objc-lang.c (print_object_command): Take evaluate_exp from the
1777 la_exp_desc field.
a8f4cde1 1778
5f9769d1 1779 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
1780
1781 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
1782 la_exp_desc's type.
1783 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 1784
24daaebc
PH
17852003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1786
1787 * parser-defs.h (operator_length): Declare.
a8f4cde1 1788
24daaebc
PH
1789 * parse.c (length_of_subexp): Use operator_length to get operator
1790 lengths and arities for operators.
1791 Move most code to new operator_length function.
a8f4cde1 1792 (operator_length): New function absorbing most code from
24daaebc
PH
1793 length_of_subexp.
1794 (prefixify_subexp): Remove large case and use operator_length instead.
1795 (parse_exp_1): Use renamings:
a8f4cde1 1796 dump_prefix_expression => dump_raw_expression and
24daaebc 1797 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 1798
24daaebc
PH
1799 * expression.h (dump_prefix_expression): Rename to ...
1800 (dump_raw_expression): New name.
1801 (dump_postfix_expression): Rename to ...
1802 (dump_prefix_expression): New name.
a8f4cde1 1803
24daaebc
PH
1804 * expprint.c (dump_subexp): Make global. Add comment.
1805 Move most existing code to dump_subexp_body.
1806 (dump_subexp_body): New function.
1807 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 1808 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
1809 work before the expression is prefixified.
1810 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 1811 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 1812 that's what it does.
a8f4cde1 1813 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
1814 prefixified expression.
1815 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 1816
8c2957c4
JB
18172003-09-22 Jim Blandy <jimb@redhat.com>
1818
1819 * dwarf2read.c (read_array_type): When building the type for an
1820 array of unspecified length, make sure to choose the upper bound
1821 so that the array's total length comes out to be zero --- that's
1822 how we represent such arrays.
1823
592e3010
MC
18242003-09-22 Michael Chastain <mec@shout.net>
1825
1826 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1827
365c70b1
JJ
18282003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1829
1830 * top.c (quit_force): Fix indirect call to quit_target so
1831 a struct qt_args pointer is passed.
1832
5d6eb653
AC
18332003-09-22 Andrew Cagney <cagney@redhat.com>
1834
1835 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1836 * arch-utils.c (init_frame_pc_noop): Delete function.
1837 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1838 "init_frame_pc".
1839 * mips-tdep.c (mips_gdbarch_init): Ditto.
1840 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1841 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1842 declaration.
1843 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1844 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1845 declaration.
1846 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1847
b222a67f
AG
18482003-09-22 Anthony Green <green@redhat.com>
1849
1850 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1851 declaration.
1852
d5b5ac79
AC
18532003-09-20 Andrew Cagney <cagney@redhat.com>
1854
deafb061
AC
1855 * breakpoint.c: Eliminate ARGSUSED.
1856 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1857 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1858 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1859 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1860 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1861 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1862 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1863 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1864 * wince.c, remote-vx.c: Ditto.
1865
d5b5ac79
AC
1866 * cli/cli-script.c: Remove "register" attributes.
1867 * config/pa/tm-hppa.h: Ditto.
1868 * cli/cli-decode.c: Ditto.
1869 * cli/cli-cmds.c: Ditto.
1870
c6316faa
AC
18712003-09-19 Andrew Cagney <cagney@redhat.com>
1872
1873 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1874 DEPRECATED_NPC_REGNUM.
1875 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1876
f4f99b11
CF
18772003-09-19 Christopher Faylor <cgf@redhat.com>
1878
1879 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1880
1708f284
JB
18812003-09-19 Jim Blandy <jimb@redhat.com>
1882
1883 * macrotab.c (macro_include): Use the correct comparison to find
1884 the appropriate place for this inclusion in the list.
1885
b9fbf434
AC
18862003-09-19 Andrew Cagney <cagney@redhat.com>
1887
1888 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1889 (DEPRECATED_HPUX_TEXT_END): Define.
1890 (deprecated_hpux_text_end): Declare.
1891 (struct target_ops): Declare opaque.
1892 * hppah-nat.c (text_end): Make static.
1893 (deprecated_hpux_text_end): New function.
1894 * exec.c (text_end): Delete global variable.
1895 (NEED_TEXT_START_END): Do not define.
1896 (exec_file_attach): Replace code computing "text_end" code with
1897 call to DEPRECATED_HPUX_TEXT_END.
1898
5b03f266
AC
18992003-09-19 Andrew Cagney <cagney@redhat.com>
1900
1901 * utils.c (align_up, align_down): New functions.
1902 * defs.h (align_up, align_down): Declare.
1903 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1904 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1905 and "align_down".
1906 (round_up, round_down): Delete functions.
1907 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1908 "align_down".
1909 (ROUND_DOWN, ROUND_UP): Delete macros.
1910 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1911 * h8300-tdep.c: Replace "round_up" and "round_down" with
1912 "align_up" and "align_down".
1913 (round_up, round_down): Delete macros.
1914 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1915 "align_down".
1916 (ROUND_UP, ROUND_DOWN): Delete macros.
1917
51db5742
JB
19182003-09-18 J. Brobecker <brobecker@gnat.com>
1919
1920 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1921 hard-coded constant. Use the proper machine name instead.
1922
77949794
AC
19232003-09-17 Andrew Cagney <cagney@redhat.com>
1924
1925 * sparc-tdep.c (legacy_register_name): Delete function.
1926 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1927 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1928 * infcmd.c (gdb_register_name): Delete variable.
1929 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1930 REGISTER_NAME and "tm.h".
1931 * gdbarch.h, gdbarch.c: Regenerate.
1932 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1933 REGISTER_NAMES in comments.
1934 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1935 * m68klinux-nat.c (regmap): Ditto.
1936
b55c33cc
JB
19372003-09-17 Jim Blandy <jimb@redhat.com>
1938
1939 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1940
957e27ac
AC
19412003-09-17 Andrew Cagney <cagney@redhat.com>
1942
1943 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1944 (ppcnbsd_init_abi): Set "use_struct_convention" to
1945 "ppcnbsd_use_struct_convention".
1946
192cb3d4
MK
19472003-09-17 Mark Kettenis <kettenis@gnu.org>
1948
1949 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1950 * gdbarch.h, gdbarch.c: Regenerate.
1951 (stabs_argument_has_addr): New architecture method.
1952 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1953 * arch-utils.c: Include "buildsym.h".
1954 (default_stabs_argument_has_addr): New function.
1955 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1956 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1957
efe59759
AC
19582003-09-17 Andrew Cagney <cagney@redhat.com>
1959
1960 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1961 * gdbarch.h, gdbarch.c: Regenerate.
1962 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1963 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1964 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1965 * sparcnbsd-tdep.c: Update.
a8f4cde1 1966
62700349
AC
19672003-09-17 Andrew Cagney <cagney@redhat.com>
1968
1969 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1970 * gdbarch.h, gdbarch.c: Regenerate.
1971 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1972 * d10v-tdep.c, frame.c: Update.
1973 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1974 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1975 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1976 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1977 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1978 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1979 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1980 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1981 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1982 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1983 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1984 * config/pa/nm-hppah.h: Update.
1985
b9ff3018
AC
19862003-09-16 Andrew Cagney <cagney@redhat.com>
1987
1988 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1989 "use_struct_convention" to "ppc_linux_use_struct_convention".
1990 (ppc_linux_use_struct_convention): New function.
1991 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1992 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1993 "rs6000_use_struct_convention".
1994 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1995 declaration.
1996 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1997 Delete function.
1998
aa1ee363
AC
19992003-09-16 Andrew Cagney <cagney@redhat.com>
2000
2001 * buildsym.c: Remove more occurances of "register".
2002 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2003 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2004 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2005 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2006 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2007 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2008 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2009 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2010
f2ea0907
CV
20112003-09-16 Corinna Vinschen <vinschen@redhat.com>
2012
2013 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2014 numbers to enumeration values.
2015 * sh-tdep.c: Accomodate above change.
2016 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2017 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2018 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2019 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2020 (IS_FPUSH): Rename from IS_FMOV.
2021 (sh_extract_struct_value_address): Remove useless comment.
2022 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2023 instead of own local values.
2024 (sh_dump_tdep): Remove.
2025 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2026 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2027
1c704f11
AC
20282003-09-15 Andrew Cagney <cagney@redhat.com>
2029
2030 * doublest.c (convert_floatformat_to_doublest): No longer need to
2031 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2032
ac79b88b
DJ
20332003-09-15 Daniel Jacobowitz <drow@mvista.com>
2034
2035 * values.c (unpack_double): Call floatformat_is_valid.
2036
1c671366
MK
20372003-09-15 Mark Kettenis <kettenis@gnu.org>
2038
de5227fb
MK
2039 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2040 ps_strings into a long.
2041
1c671366
MK
2042 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2043 _initialize_am64fbsd_nat.
2044
a604369a
KB
20452003-09-15 Kevin Buettner <kevinb@redhat.com>
2046
2047 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2048 associated with DW_AT_ranges attribute is out of bounds.
2049
b3cacbee
DL
20502003-09-15 David Lecomber <dsl@sources.redhat.com>
2051
2052 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2053
d0f37bb2
MC
20542003-09-14 Michael Chastain <mec@shout.net>
2055
2056 * config/m68k/nm-apollo68v.h: Delete.
2057 * config/m68k/xm-apollo68v.h: Delete.
2058
69517000
AC
20592003-09-14 Andrew Cagney <cagney@redhat.com>
2060
2061 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2062 * dcache.c: Update copyrights and descriptions.
2063 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2064
ef8b349d
AC
20652003-09-14 Andrew Cagney <cagney@redhat.com>
2066
2067 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2068 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2069
52f0bd74
AC
20702003-09-14 Andrew Cagney <cagney@redhat.com>
2071
2072 * alpha-nat.c: Remove some occurances of "register".
2073 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2074 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2075 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2076 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2077 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2078 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2079 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2080 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2081 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2082 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2083 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2084 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2085 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2086 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2087 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2088 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2089 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2090 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2091 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2092 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2093 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2094 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 2095
4a4b3fed
AC
20962003-09-13 Andrew Cagney <cagney@redhat.com>
2097
2098 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2099 * ppc-tdep.h (struct regcache): Declare opaque.
2100 * objfiles.h (struct objfile_data): Declare opaque.
2101 * cp-support.h (struct objfile): Declare opaque.
2102 * linux-nat.h (target_waitstatus): Declare opaque.
2103
2110b94f
MK
21042003-09-14 Mark Kettenis <kettenis@gnu.org>
2105
1c671366
MK
2106 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2107 (stabs_argument_has_addr): New architecture method.
2108 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2109 * arch-utils.c: Include "buildsym.h".
2110 (default_stabs_argument_has_addr): New function.
2111 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2112 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2113
2110b94f
MK
2114 * cris-tdep.c (cris_gdbarch_init): Set
2115 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2116 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2117 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2118 * mips-tdep.c (mips_gdbarch_init): Likewise.
2119 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2120 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2121
48436ce6
AC
21222003-09-13 Andrew Cagney <cagney@redhat.com>
2123
2124 * values.c (using_struct_return): Delete "function" and "funcaddr"
2125 parameters.
2126 * value.h (using_struct_return): Update declaration.
2127 * infcmd.c (finish_command_continuation): Update.
2128 (finish_command): Update.
2129 * infcall.c (call_function_by_hand): Update.
2130 * eval.c (evaluate_subexp_standard): Update.
2131
403d9909
CF
21322003-09-13 Christopher Faylor <cgf@redhat.com>
2133
2134 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2135 SSE registers since gdb will not operate correctly without this.
2136 Restore include file ordering munged in previous change.
2137 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2138
ebf7d56b
MK
21392003-09-13 Mark Kettenis <kettenis@gnu.org>
2140
8e823e25
MK
2141 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2142 REG_STRUCT_HAS_ADDR.
2143 * gdbarch.c, gdbarch.h: Updated.
2144 * infcall.c (call_function_by_hand): Update.
2145 * stabsread.c (define_symbol): Updated.
a8f4cde1 2146
ebf7d56b
MK
2147 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2148
d3f13f72
CF
21492003-09-12 Christopher Faylor <cgf@redhat.com>
2150
2151 * win32-nat.c: Reorganize so that defines used by target headers are
2152 actually defined by the system headers.
2153 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2154 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2155
14f75137
JB
21562003-09-12 Jim Blandy <jimb@redhat.com>
2157
d646061f
JB
2158 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2159 the file has no .data, .bss, or .rodata sections. Instead wait
2160 until we see a variable alleged to live in one of those sections.
2161
2a13f9bc
JB
2162 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2163 .bss section, presume that any variables we find live in the
2164 .rodata section.
2165
4f49b26b
JB
2166 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2167 offsets for global and static variables.
2168
14f75137
JB
2169 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2170 symbol types are, by definition, in the .data section, so it is
2171 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2172 If there is no .data section, there should be no N_DATA or N_DATA
2173 | N_EXT symbols.
2174
212c460c
MK
21752003-09-12 Mark Kettenis <kettenis@gnu.org>
2176
2177 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2178 (amd64fbsd_sigcontext_addr): Rewrite.
2179 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2180 with correct values.
2181 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2182 (amd64fbsd_init_abi): Fix typo.
2183
68856ea3
AC
21842003-09-12 Andrew Cagney <cagney@redhat.com>
2185
2186 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2187 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2188
627b3ba2
AC
21892003-09-12 Andrew Cagney <cagney@redhat.com>
2190
2191 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2192 "entry_file_highpc". Update comments.
2193 * defs.h (deprecated_inside_entry_file): Rename
2194 "inside_entry_file".
2195 * blockframe.c (deprecated_inside_entry_file): Rename
2196 "inside_entry_file".
2197 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2198 * vax-tdep.c (vax_frame_chain): Update.
2199 * sh64-tdep.c (sh64_frame_chain): Update.
2200 * sh-tdep.c (sh_frame_chain): Update.
2201 * rs6000-tdep.c (rs6000_frame_chain): Update.
2202 * ns32k-tdep.c (ns32k_frame_chain): Update.
2203 * mips-tdep.c (mips_frame_chain): Update.
2204 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2205 * m32r-tdep.c (m32r_frame_this_id): Update.
2206 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2207 * frv-tdep.c (frv_frame_this_id): Update.
2208 * d10v-tdep.c (d10v_frame_this_id): Update.
2209 * cris-tdep.c (cris_frame_chain): Update.
2210 * blockframe.c (legacy_frame_chain_valid): Update.
2211 * avr-tdep.c (avr_frame_this_id): Update.
2212 * arm-tdep.c (arm_prologue_this_id): Update.
2213 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2214 * objfiles.c (objfile_relocate): Update.
2215 * mipsread.c (mipscoff_symfile_read): Update.
2216 (mipscoff_symfile_read): Update.
2217 * mdebugread.c (parse_partial_symbols): Update.
2218 * dwarfread.c (read_file_scope): Update.
2219 * dwarf2read.c (read_file_scope): Update.
2220 * dbxread.c (read_dbx_symtab): Update.
2221 (read_dbx_symtab): Update.
2222 * coffread.c (complete_symtab): Update.
2223
b0abbc58
JJ
22242003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2225
2226 * top.c (quit_target): New static helper function.
2227 (quit_force): Moved code to quit_target(). Call quit_target()
2228 via catch_errors() to catch errors during quit.
2229
a1632d59
DC
22302003-09-11 David Carlton <carlton@kealia.com>
2231
2232 * buildsym.c (finish_block): Use allocate_block to allocate the
2233 block.
2234 * mdebugread.c (new_block): Add FIXME.
2235
5c4e30ca
DC
22362003-09-11 David Carlton <carlton@kealia.com>
2237
2238 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2239 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2240 (recursive_dump_type): Ditto.
2241 * printcmd.c (print_formatted): Ditto.
2242 * typeprint.c (print_type_scalar): Ditto.
2243 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2244 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2245 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2246 maint_cplus_cmd_list.
2247 * cp-support.c: Make maint_cplus_cmd_list extern.
2248 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2249 command.h.
2250 (lookup_symbol_file): Look in possible namespace blocks when
2251 appropriate.
2252 (initialize_namespace_symtab): New.
2253 (get_possible_namespace_block, free_namespace_block)
2254 (check_possible_namespace_symbols)
2255 (check_possible_namespace_symbols_loop)
2256 (check_one_possible_namespace_symbol)
2257 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2258 (_initialize_cp_namespace): Ditto.
2259 * block.h: Declare allocate_block.
2260 * block.c (allocate_block): New.
2261 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2262 allocate_block.
2263 * symfile.h: Update declaration of add_psymbol_to_list.
2264 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2265 question.
2266 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2267 scan_partial_symbols_call.
2268 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2269 helper functions.
2270 (add_partial_symbol): If necessary, scan mangled names for names
2271 of namespaces.
2272 (add_partial_namespace): Add NAMESPACE argument; generate partial
2273 symbols associated to namespaces.
2274 (add_partial_enumeration): Add NAMESPACE argument.
2275 (new_symbol): Allow namespace syms.
2276 (read_namespace): Generate namespace syms.
2277 * objfiles.h: Add opaque declaration of struct symtab.
2278 (struct objfile): Add cp_namespace_symtab member.
2279 * objfiles.c (allocate_objfile): Set
2280 objfile->cp_namespace_symtab.
2281 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2282 dictionary_h, command_h.
2283
33a7c2fc
AC
22842003-09-11 Andrew Cagney <cagney@redhat.com>
2285
2286 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2287 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2288 near the function's end.
2289 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2290 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2291 regcache_raw_write_signed to set SP_REGNUM.
2292
63cd24fe
EZ
22932003-09-11 Elena Zannoni <ezannoni@redhat.com>
2294
2295 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2296 orig_addrs is set up properly.
2297
f27dd7fd
AC
22982003-09-11 Andrew Cagney <cagney@redhat.com>
2299
2300 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2301 * gdbarch.h, gdbarch.c: Re-generate.
2302 * infcall.c (call_function_by_hand): Update.
2303 * hppa-tdep.c (hppa_push_arguments): Update.
2304 * ada-lang.c (place_on_stack): Update.
2305 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2306 * sparc-tdep.c (sparc_gdbarch_init): Update.
2307 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2308 * hppa-tdep.c (hppa_gdbarch_init): Update.
2309 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2310 stack_align.
2311
f630a401
DJ
23122003-09-11 Daniel Jacobowitz <drow@mvista.com>
2313
2314 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2315 register do need a frame.
2316
0ddabb4c
AC
23172003-09-11 Andrew Cagney <cagney@redhat.com>
2318
2319 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2320 buildable since GDB 5.0.
2321 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2322 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2323 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2324 * irix4-nat.c: Delete file.
2325 * config/mips/irix4.mh: Delete file.
2326 * config/mips/irix3.mh: Delete file.
2327 * config/mips/irix3.mt: Delete file.
2328 * config/mips/tm-irix3.h: Delete file.
2329 * config/mips/nm-irix3.h: Delete file.
2330 * config/mips/xm-irix3.h: Delete file.
2331 * config/mips/nm-irix4.h: Delete file.
2332 * config/mips/xm-irix4.h: Delete file.
2333 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2334
fde2cceb
JB
23352003-09-10 J. Brobecker <brobecker@gnat.com>
2336
2337 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2338 * Makefile.in (hppa-tdep.o): Update dependencies.
2339
66f667f5
JW
23402003-09-10 James E Wilson <wilson@specifixinc.com>
2341
ef5fd69f
JW
2342 * MAINTAINERS: Change my e-mail address. Move to paper trail
2343 section.
66f667f5 2344
53e8aaea
KB
23452003-09-10 Kevin Buettner <kevinb@redhat.com>
2346
2347 * MAINTAINERS (frv): New ISA entry.
2348
dcc6aaff
KB
23492003-09-10 Kevin Buettner <kevinb@redhat.com>
2350
2351 * frv-tdep.c (dis-asm.h): Include.
2352 * Makefile.in (frv-tdep.o): Update dependencies.
2353
932644f0
JJ
23542003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2355
2356 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2357 Fix typo for high range of floating registers.
2358
91c24f0a
DC
23592003-09-09 David Carlton <carlton@kealia.com>
2360
2361 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2362 highpc initialization here out of scan_partial_symbols.
2363 (scan_partial_symbols): Restructure into a recursive version,
2364 calling add_partial_namespace and add_partial_enumeration when
2365 appropriate.
2366 (add_partial_namespace): New.
2367 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2368
c9263853
AC
23692003-09-09 Andrew Cagney <cagney@redhat.com>
2370
e56a0ecc
AC
2371 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2372 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2373 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2374 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2375
794a477a
AC
2376 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2377 (rs6000_push_dummy_call): Set the "TOC" register.
2378
c9263853
AC
2379 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2380 methods "max_register_raw_size", "max_register_virtual_size" or
2381 "register_virtual_size".
2382
afa7d0b2
ILT
23832003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2384
2385 * MAINTAINERS: Update my e-mail address.
2386
7a41266b
AC
23872003-09-09 Andrew Cagney <cagney@redhat.com>
2388
2389 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2390 (rs6000_push_dummy_call): Store the struct return address.
2391 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2392
77b2b6d4
AC
23932003-09-09 Andrew Cagney <cagney@redhat.com>
2394
2395 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2396 "ppc_sysv_abi_push_arguments".
2397 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2398 "ppc_sysv_abi_push_arguments".
2399 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2400 instead of "push_arguments".
2401 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2402
e8a7b686
AC
24032003-09-09 Andrew Cagney <cagney@redhat.com>
2404
2405 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2406 instead of CALL_DUMMY_ADDRESS.
2407
f86f5ca3
PH
24082003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2409
2410 * p-lang.c: Eliminate "register".
2411 * c-lang.c: Ditto.
2412 * expprint.c: Ditto.
2413 * f-lang.c: Ditto.
2414 * jv-lang.c: Ditto.
2415 * language.c: Ditto.
2416 * m2-lang.c: Ditto.
2417 * parse.c: Ditto.
2418 * scm-lang.c: Ditto.
2419 * objc-lang.c: Ditto.
2420
83ee270e
NC
24212003-09-09 Nick Clifton <nickc@redhat.com>
2422
2423 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2424
a89aa300
AC
24252003-09-04 Andrew Cagney <cagney@redhat.com>
2426
2427 * avr-tdep.c: Include "dis-asm.h".
2428 * cris-tdep.c: Include "dis-asm.h".
2429 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2430 instead of corresponding typedef.
2431 * h8300-tdep.c: Include "dis-asm.h".
2432 * ia64-tdep.c: Include "dis-asm.h".
2433 * i386-tdep.c: Include "dis-asm.h".
2434 (i386_print_insn): Use "struct disassemble_info" instead of
2435 corresponding typedef.
2436 * m68k-tdep.c: Include "dis-asm.h".
2437 * mcore-tdep.c: Include "dis-asm.h".
2438 * mips-tdep.c: Include "dis-asm.h".
2439 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2440 instead of corresponding typedef.
2441 * ns32k-tdep.c: Include "dis-asm.h".
2442 * s390-tdep.c: Include "dis-asm.h".
2443 * sparc-tdep.c: Include "dis-asm.h".
2444 * vax-tdep.c: Include "dis-asm.h".
2445 * v850-tdep.c: Include "dis-asm.h".
2446 * mn10300-tdep.c: Include "dis-asm.h".
2447 * rs6000-tdep.c: Include "dis-asm.h".
2448 * xstormy16-tdep.c: Include "dis-asm.h".
2449 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2450 print_insn_xstormy16.
2451 * Makefile.in (v850-tdep.o): Update dependencies.
2452 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2453 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2454 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2455 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2456 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2457 (gdbarch_h): Remove $(dis_asm_h).
2458 * disasm.c: Include "dis-asm.h".
2459 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2460 corresponding typedef.
2461 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2462 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2463 * gdbarch.sh: Do not include "dis-asm.h".
2464 (struct disassemble_info): Declare opaque.
2465 (TARGET_PRINT_INSN): Update declaration.
2466 * gdbarch.h, gdbarch.c: Re-generate.
2467
88a82a65
AC
24682003-09-08 Andrew Cagney <cagney@redhat.com>
2469
2470 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2471 CALL_DUMMY_ADDRESS, change to a predicate.
2472 * gdbarch.h, gdbarch.c: Re-generate.
2473 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2474 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2475 * infcall.c (call_function_by_hand): Ditto.
2476 * sparc-tdep.c (sparc_push_return_address): Ditto.
2477 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2478 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2479 CALL_DUMMY_ADDRESS with entry_point_address.
2480 * v850-tdep.c (v850_push_return_address): Ditto.
2481 * s390-tdep.c (s390_push_return_address): Ditto.
2482 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2483 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2484 * mcore-tdep.c (mcore_push_return_address): Ditto.
2485 * cris-tdep.c (cris_push_return_address): Ditto.
2486 * arm-tdep.c (arm_push_return_address): Ditto.
2487
3e2c4033
AC
24882003-09-08 Andrew Cagney <cagney@redhat.com>
2489
2490 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2491 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2492 and REG_UNMODIFIED to REG_SAME_VALUE.
2493 (execute_cfa_program): Update.
2494 (dwarf2_frame_cache): Update. Initialize table to
2495 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2496 location.
2497 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2498
39efb398
AC
24992003-09-08 Andrew Cagney <cagney@redhat.com>
2500
2501 * gnu-nat.c: Remove "inline" function attribute.
2502 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2503
f5cb5aca
KB
25042003-09-08 Kevin Buettner <kevinb@redhat.com>
2505
2506 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2507 target.
2508
1cb761c7
KB
25092003-09-08 Kevin Buettner <kevinb@redhat.com>
2510
2511 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2512 (frame_extra_info): Rename this struct to frv_unwind_cache.
2513 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2514 Add fields ``prev_sp'' and ``base''.
2515 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2516 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2517 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2518 Delete.
2519 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2520 Revise all callers. Fill in the unwind cache argument and make
2521 other adjustments to account for new frame mechanisms.
2522 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2523 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2524 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2525 (frv_frame_unwind, frv_frame_base): New structs.
2526 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2527 additional arguments expected by this method and adjust function
2528 body accordingly.
2529 (frv_gdbarch_init): Remove calls to the following functions:
2530 set_gdbarch_deprecated_init_frame_pc(),
2531 set_gdbarch_deprecated_saved_pc_after_call(),
2532 set_gdbarch_deprecated_frame_chain(),
2533 set_gdbarch_deprecated_frame_saved_pc(),
2534 set_gdbarch_deprecated_frame_init_saved_regs(),
2535 set_gdbarch_deprecated_push_arguments(),
2536 set_gdbarch_deprecated_push_return_address(),
2537 set_gdbarch_deprecated_pop_frame(),
2538 set_gdbarch_deprecated_call_dummy_words(),
2539 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2540 set_gdbarch_deprecated_init_extra_frame_info(),
2541 set_gdbarch_deprecated_dummy_write_sp(), and
2542 set_gdbarch_deprecated_pc_in_call_dummy().
2543 Add calls to the following functions:
2544 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2545 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2546 frame_base_set_default().
2547 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 2548
68f6cf99
MK
25492003-09-09 Mark Kettenis <kettenis@gnu.org>
2550
2551 * dwarf2-frame.c (read_encoded_value): Add support for
2552 DW_EH_PE_aligned encoding.
2553
73b65bb0
DJ
25542003-09-08 Daniel Jacobowitz <drow@mvista.com>
2555
2556 * infrun.c (normal_stop): Don't print a message if the inferior
2557 has exited.
2558
7c8a5605
JB
25592003-09-08 Jim Blandy <jimb@redhat.com>
2560
2561 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2562 * dbxread.c: #include "gdb_assert.h".
2563 (read_dbx_symtab): If the objfile has no .data section, use the
2564 section index for the .bss section instead.
2565
7dd88986
DJ
25662003-09-08 Daniel Jacobowitz <drow@mvista.com>
2567
2568 * frame.c (deprecated_safe_get_selected_frame): New function.
2569 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2570 * findvar.c (read_var_value): Call it.
2571
55ff77ac
CV
25722003-09-08 Corinna Vinschen <vinschen@redhat.com>
2573
2574 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2575 (sh64-tdep.o): Add dependencies.
2576 * configure.tgt: Add FIXME to sh-*-linux*.
2577 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2578 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 2579 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
2580 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2581 * sh64-tdep.c: New file, containing all sh64 related code from
2582 sh-tdep.c.
2583 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2584 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 2585 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
2586 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2587 * config/sh/wince.mt (TDEPFILES): Ditto.
2588
bfb39158
DJ
25892003-09-07 Daniel Jacobowitz <drow@mvista.com>
2590
2591 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2592 (stop_wait_callback): Handle !lp->signalled also.
2593 (lin_lwp_has_pending, flush_callback): New functions.
2594 (lin_lwp_wait): Call flush_callback.
2595 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2596 (linux_proc_pending_signals): New function.
2597 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2598
9407de8e
DJ
25992003-09-07 Daniel Jacobowitz <drow@mvista.com>
2600
2601 From Nick Kelsey <nickk@ubicom.com>:
2602 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2603 when the stop PC is at the beginning of a function also.
2604
2ef47cd0
DJ
26052003-09-06 Daniel Jacobowitz <drow@mvista.com>
2606
2607 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2608 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2609
6f4492c8
MK
26102003-09-06 Mark Kettenis <kettenis@gnu.org>
2611
2612 * sol-thread.c: Include "gdb_string.h".
2613
d3420b2f
MK
26142003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2615
2616 * gcore.c: Reorder include files in alphabetical order. Include
2617 "gdb_assert.h". Various coding style fixes.
2618 (derive_stack_segment, derive_heap_segment): Replace check for
2619 non-null BOTTOM and TOP with gdb_assert.
2620 (derive_heap_segment): Replace check for successful creation of
2621 ZERO with gdb_assert.
2622 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2623
5220ea4c
AC
26242003-09-04 Andrew Cagney <cagney@redhat.com>
2625
2626 * thread-db.c (verbose_dlsym): New function.
2627 (thread_db_load): Use verbose_dlsym
2628 (thread_db_new_objfile): Print that libthread_db was loaded, and
2629 that thread debugging was enabled.
2630
6e8c2c06
AC
26312003-09-04 Andrew Cagney <cagney@redhat.com>
2632
2633 * configure.tgt: Add "mips64*-*-*" target. Delete
2634 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2635 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2636 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2637 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2638 mips*-sony-*, and mips64*-*-elf* targets.
2639 * config/mips/embedl.mt: Delete file.
2640 * config/mips/embedl64.mt: Delete file.
2641 * config/mips/mips.mt: Delete file.
2642 * config/mips/mips64.mt: Delete file.
2643 * config/mips/tm-embed.h: Delete file.
2644 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2645 * config/mips/embed64.mt: Delete out-of-date comment.
2646
3a3bc038
AC
26472003-09-04 Andrew Cagney <cagney@redhat.com>
2648
2649 * hppa-tdep.c (hppa_gdbarch_init): Set
2650 "have_nonsteppable_watchpoint".
2651 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2652 * mips-tdep.c (mips_dump_tdep): Do not print
2653 HAVE_NONSTEPPABLE_WATCHPOINT.
2654 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2655 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2656 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2657 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2658
a957e642
CV
26592003-09-04 Corinna Vinschen <vinschen@redhat.com>
2660
2661 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2662 unused code. Add comment.
2663
a6fbcf2f
CV
26642003-09-04 Corinna Vinschen <vinschen@redhat.com>
2665
2666 * breakpoint.c (watchpoint_check): Check for pc being in an
2667 epilogue if watchpoint frame couldn't be found.
2668
c14a44d5
AC
26692003-09-04 Andrew Cagney <cagney@redhat.com>
2670
2671 * Makefile.in: Re-generate all dependencies.
2672
f6c40618
AC
26732003-09-03 Andrew Cagney <cagney@redhat.com>
2674
2675 * arch-utils.h (legacy_print_insn): Delete declaration.
2676 * arch-utils.c (legacy_print_insn): Delete function.
2677 * disasm.c (deprecated_tm_print_insn_info): Delete.
2678 (_initialize_disasm): Delete function, contained code initializing
2679 deprecated_tm_print_insn_info.
2680 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2681 (deprecated_tm_print_insn_info): Delete.
2682 (TARGET_PRINT_INSN): Do not provide a default.
2683 * gdbarch.h, gdbarch.c: Re-generate.
2684
242e8be5
AC
26852003-09-03 Andrew Cagney <cagney@redhat.com>
2686
2687 * disasm.c (fprintf_disasm): New function.
2688 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2689 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2690 reverts 2003-08-14 change.
2691 (_initialize_disasm): Call "init_disassemble_info", instead of
2692 INIT_DISASSEMBLE_INFO_NO_ARCH.
2693
3ffc3dda
MS
26942003-09-03 Michael Snyder <msnyder@redhat.com>
2695
2696 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2697
52d16ba8
AC
26982003-09-03 Andrew Cagney <cagney@redhat.com>
2699
2700 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2701 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2702 * symfile.c (syms_from_objfile): Update.
2703 (reread_symbols): `Update
2704 * exec.c (exec_file_attach): Update.
2705 (exec_file_attach): Update.
2706 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2707 2003-08-29 change.
2708 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2709
eb5492fa
DJ
27102003-09-03 Daniel Jacobowitz <drow@mvista.com>
2711
2712 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2713 trad-frame.h.
2714 (arm_get_cache): Delete macro.
2715 (struct arm_prologue_cache): Update comments. Make saved_regs into
2716 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2717 to prev_sp.
2718 (thumb_scan_prologue): Update for cache changes. Don't call
2719 DEPRECATED_PC_IN_CALL_DUMMY.
2720 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2721 argument and use it in desperation search for our prologue. Do not
2722 search past the specified PC.
2723 (arm_make_prologue_cache): Simplify.
2724
2725 (arm_prologue_this_id, arm_prologue_prev_register)
2726 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2727 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2728 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2729 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2730 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2731
2732 (arm_frame_chain_valid, arm_find_callers_reg)
2733 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2734 (arm_pop_frame): Delete obsolete methods.
2735 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2736
2737 (arm_gdbarch_init): Update for new frame methods. Register prologue
2738 and sigtramp unwinders. Set the default frame base method.
2739
2740 * Makefile.in (arm-tdep.o): Update dependencies.
2741 * varobj.c (find_frame_addr_in_frame_chain): Call
2742 get_frame_base_address.
2743 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2744
24de872b
DJ
27452003-09-03 Daniel Jacobowitz <drow@mvista.com>
2746
2747 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2748 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2749 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2750 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2751 Take NEXT_FRAME and CACHE arguments. Call
2752 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2753 Set unwound_pc in CACHE instead of modifying the frame argument.
2754 Don't bother checking the frame type when looking for sigtramp
2755 frames.
2756 (arm_make_prologue_cache, arm_frame_chain)
2757 (arm_init_extra_frame_info): New functions.
2758
9b8d791a
DJ
27592003-09-03 Daniel Jacobowitz <drow@mvista.com>
2760
2761 * arm-tdep.c (arm_get_cache): Define.
2762 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2763 unwound_sp, unwound_pc, and saved_regs.
2764 (thumb_scan_prologue): Take a cache instead of the frame.
2765 (arm_scan_prologue): Likewise.
2766 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2767 instead of a temporary frame.
2768 (arm_init_extra_frame_info): Allocate and use a cache.
2769 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2770
7ee3275f
AC
27712003-09-03 Andrew Cagney <cagney@redhat.com>
2772
2773 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2774 * config/mips/wince.mt (TM_CLIBS): Ditto.
2775 * config/sh/wince.mt (TM_CLIBS): Ditto.
2776 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2777 * config/sparc/sp64.mt (CC): Delete.
2778
57b29be7
AC
27792003-09-03 Andrew Cagney <cagney@redhat.com>
2780
2781 * defs.h: Do not include "arch-utils.h".
2782 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2783 GDB_MULTI_ARCH_PURE.
2784 * configure.in (GDB_MULTI_ARCH): Do not define.
2785 * configure, config.in: Regenerate.
2786 * configure.tgt: Do not set variable "gdb_multi_arch".
2787 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2788 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2789 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2790 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2791 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2792 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2793 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2794 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2795 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2796 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2797 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2798 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2799 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2800 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2801 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2802 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2803 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2804 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 2805
12e035e2
MC
28062003-08-30 Michael Chastain <mec@shout.net>
2807
2808 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2809 * config/m68k/nm-hp300hpux.h: Delete.
2810 * config/m68k/tm-hp300hpux.h: Delete.
2811 * config/m68k/xm-hp300hpux.h: Delete.
2812 * config/m68k/xm-hp300bsd.h: Delete.
2813 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2814 tm-hp300hpux.h, xm-hp300hpux.h.
2815 * somsolib.c: Remove comment about hp300 shared libraries.
2816
bda34dc2
MK
28172003-08-31 Mark Kettenis <kettenis@gnu.org>
2818
5bca7895
MK
2819 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2820 Only define PTRACE_GET_THREAD_AREA is not already defined.
2821 Various style fixes in code and comments and some additional
2822 spelling fixes in comments. Move after functions dealing with
2823 debug registers.
2824 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2825 Fix coding-style.
2826
bda34dc2
MK
2827 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2828 frame_unwind_register_unsigned instead of
2829 frame_unwind_unsigned_register.
2830
c890192f
MK
28312003-08-30 Mark Kettenis <kettenis@gnu.org>
2832
2833 * configure.in: Search for gethostbyname in libnsl.
2834 * configure: Regenerated.
2835
60fac5b8
MK
28362003-08-29 Mark Kettenis <kettenis@gnu.org>
2837
e294916c
MK
2838 * configure.in: Remove redundant AC_MSG_RESULT in check for
2839 uintptr_t in stdint.h.
2840 * configure: Regenerated.
2841
c40d267a
MK
2842 * amd64-nat.h (struct regcache): Add opaque declaration.
2843
60fac5b8
MK
2844 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2845 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2846 Change "register array" to "register cache" in comments.
2847 (x86_64_linux_gregset64_reg_offset): New variable.
2848 (GETREGS_SUPPLIES): Remove macro.
2849 (supply_gregset): Call amd64_supply_native_gregset instead of
2850 x86_64_linux_supply_gregset.
2851 (fill_gregset): Rename `regno' to `regnum'. Call
2852 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2853 (store_regs): Rename `regno' to `regnum'.
2854 (store_fpregs): Rename `regno' to `regnum'.
2855 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2856 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2857 Reorganize function a bit.
2858 (store_inferior_registers): Rename `regno' to `regnum'. Use
2859 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2860 Reorganize function a bit.
2861 (_initialize_x86_64_linux_nat): New function.
2862 * config/i386/x86-64linux.mh.
2863
546143b6
AC
28642003-08-29 Andrew Cagney <cagney@redhat.com>
2865
2866 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2867 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2868 (target_remove_watchpoint): Delete macro.
2869 (target_insert_watchpoint): Delete macro.
2870 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2871 (remote_mips_stopped_by_watchpoint): Delete declaration.
2872 (remote_mips_remove_watchpoint): Delete declaration.
2873 (remote_mips_set_watchpoint): Delete declaration.
2874 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2875 * remote-mips.c (_initialize_remote_mips): Set
2876 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2877 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2878 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2879 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2880 (mips_stopped_by_watchpoint): Rename
2881 remote_mips_stopped_by_watchpoint.
2882 (mips_can_hardware_watchpoint): Rename
2883 remote_mips_can_use_hardware_watchpoint, update function
2884 signature.
2885
7bace51b
MK
28862003-08-29 Mark Kettenis <kettenis@gnu.org>
2887
b0f5c6f2
MK
2888 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2889 USER_DS. We haven't given them a register number yet.
2890
2a6d284d
MK
2891 * amd64-nat.h: New file.
2892 * amd64-nat.c: New file.
2893 * amd64fbsd-nat.c: Include "amd64-nat.h".
2894 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2895 (amd64fbsd32_r_reg_offset): New variable.
2896 (supply_gregset): Simply call amd64_supply_native_gregset.
2897 (fill_gregset): Rename `regno' to `regnum'. Simply call
2898 amd64_collect_native_gregset.
2899 (fill_fpregset): Rename `regno' to `regnum'.
2900 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2901 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2902 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2903 `fpregset_t'. Call amd64_supply_native_gregset instead of
2904 supply_gregset. Call x86_64_supply_fxsave instead of
2905 supply_fpregset.
2906 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2907 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2908 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2909 `fpregset_t'. Call amd64_collect_native_gregset instead of
2910 fill_gregset. Call x86_64_collect_fxsave instead of
2911 fill_fpregset.
2912 (_initialize_am64fbsd_nat): Initialize
2913 amd64_native_gregset32_reg_offset and
2914 amd64_native_gregset64_reg_offset.
2915 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2916
a16d75cc
MK
2917 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2918 null pointer. Fix typo in comment.
2919
7bace51b
MK
2920 * regcache.c (supply_register): Reimplement to call
2921 regcache_raw_supply.
2922 (regcache_collect): Reimplement by calling regcache_raw_collect.
2923
9a661b68
MK
29242003-08-28 Mark Kettenis <kettenis@gnu.org>
2925
2926 * regcache.c (register_buffer): Consitify first argument.
2927 (regcache_raw_supply, regcache_raw_collect): New
2928 functions.
2929
e94cc8fa
DJ
29302003-08-28 Daniel Jacobowitz <drow@mvista.com>
2931
2932 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2933 by Nathan J. Williams.
2934
c64bd0ce
DJ
29352003-08-28 Daniel Jacobowitz <drow@mvista.com>
2936
2937 * lin-lwp.c (wait_lwp): New function, copied from
2938 stop_wait_callback. Clean up.
2939 (stop_wait_callback): Use wait_lwp.
2940
e5ab0dce
AC
29412003-08-28 Andrew Cagney <cagney@redhat.com>
2942
2943 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2944 flavour and disassembler options.
2945 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2946 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2947 deprecated_tm_print_insn_info.
a8f4cde1 2948
a788de9b
AC
29492003-08-27 Andrew Cagney <cagney@redhat.com>
2950
2951 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2952 Use target_read_memory.
2953 (s390_get_frame_info): Update. Do not reference
2954 deprecated_tm_print_insn_info.
2955 (s390_check_function_end, s390_is_sigreturn): Ditto.
2956
36482093
AC
29572003-08-27 Andrew Cagney <cagney@redhat.com>
2958
2959 * Makefile.in (cris-tdep.o): Update dependencies.
2960 * cris-tdep.c: Include "gdb_assert.h".
2961 (cris_gdbarch_init): Set print_insn.
2962 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2963 (cris_delayed_get_disassembler): Simplify, directly call the
2964 disassembler returned by cris_get_disassembler.
2965 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2966 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2967 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2968 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2969 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2970 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2971 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2972 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2973 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2974 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2975 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2976 (gdb_print_insn_sparc): Delete function.
2977 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2978 deprecated_tm_print_insn_info.
2979 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2980 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2981 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2982 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2983 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2984 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2985 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2986 (s390_gdbarch_init): Set print_insn.
2987
0285512f
AC
29882003-08-27 Andrew Cagney <cagney@redhat.com>
2989
2990 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2991 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2992 * infcall.c (call_function_by_hand): Convert the entry point
2993 address into a code address.
2994
cdcd5552
AC
29952003-08-27 Andrew Cagney <cagney@redhat.com>
2996
2997 * dsrec.c: Include "gdb_string.h".
2998 * Makefile.in (dsrec.o): Update dependencies.
2999
e85cddad
MC
30002003-08-27 Michael Chastain <mec@shout.net>
3001
3002 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3003
8bbfbb23
AC
30042003-08-27 Andrew Cagney <cagney@redhat.com>
3005
3006 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3007 (alpha_osf1_init_abi): Do not set call_dummy_address.
3008
ba058b66
DC
30092003-08-27 David Carlton <carlton@kealia.com>
3010
3011 From Randolph Chung <tausq@debian.org>:
3012 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3013 compiles with -Wformat-nonliteral -Werror.
3014
87f84c9d
JB
30152003-08-26 Jim Blandy <jimb@redhat.com>
3016
3017 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3018 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3019 bfd_lookup_symbol, since we only want symbols in code sections.
3020 (look_for_base): Pass zero as the SECT_FLAGS argument to
3021 bfd_lookup_symbol, since we're not concerned about which section
3022 the symbol is in.
3023
102d615a
JJ
30242003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3025
3026 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 3027 we are frameless or the return address register is already known.
102d615a 3028
cc7ad3ea
AC
30292003-08-26 Andrew Cagney <cagney@redhat.com>
3030
3031 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3032 in size. Add comments.
3033
af8b88dd
JJ
30342003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3035
3036 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 3037 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 3038
e0a4f5a1
JM
30392003-08-26 Jason Merrill <jason@redhat.com>
3040
3041 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3042 case out of #ifdef MIPS block.
3043
4ae9ee8e
DJ
30442003-08-25 Daniel Jacobowitz <drow@mvista.com>
3045
3046 PR java/1322
3047 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3048 available before calling SECT_OFF_TEXT.
3c164570 3049 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 3050
004d836a
JJ
30512003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3052
a8f4cde1 3053 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
3054 bof, and nat0-nat127 as pseudo-registers.
3055 (ia64_frame_cache): New struct used to cache frame info.
3056 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 3057 register grouping so registers without names are still saved and
004d836a 3058 restored.
a8f4cde1 3059 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
3060 pseudo values.
3061 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3062 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 3063 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
3064 ia64_frame_cache.
3065 (examine_prologue): Change prototype to add next_frame pointer.
3066 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 3067 current frame matches the cfm that should occur for the prologues
004d836a
JJ
3068 alloc insn and if equal, mark as not frameless. At end of routine,
3069 if not frameless, calculate registers for the previous frame and store
3070 in the cache, if a cache is provided.
3071 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3072 and pass 0 for next_frame.
3073 (ia64_store_return_value): Change to use convert_typed_floating()
3074 instead of calling ia64_convert_to_raw().
3075 (ia64_extract_return_value): Change to use convert_typed_floating()
3076 instead of calling ia64_convert_to_virtual().
3077 (ia64_frame_cache): New routine to support new frame model.
3078 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3079 (ia64_frame_sniffer): Ditto.
3080 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3081 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3082 (ia64_sigtramp_frame_prev_register): Ditto.
3083 (ia64_sigtramp_frame_sniffer): Ditto.
3084 (ia64_frame_base_address): Ditto.
3085 (ia64_extract_struct_value_address): Change to issue error message.
3086 (ia64_frame_align): New routine to align sp.
3087 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 3088 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
3089 ia64_push_dummy_call().
3090 (ia64_push_return_address): Ditto.
3091 (ia64_unwind_dummy_id): New function.
3092 (ia64_unwind_pc): Ditto.
3093 (ia64_convert_register_p): Ditto.
3094 (ia64_register_to_value): Ditto.
3095 (ia64_value_to_register): Ditto.
3096 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3097 (ia64_register_byte, ia64_register_raw_size): Ditto.
3098 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3099 (ia64_saved_pc_after_call): Ditto.
3100 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3101 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3102 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3103 (ia64_register_convert_to_raw): Ditto.
3104 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3105 (ia64_init_extra_frame_info): Ditto.
3106 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3107 (ia64_gdbarch_init): Remove registering of deprecated functions that
3108 are no longer used. Add registration of new gdbarch functions.
3109 Remove registering deprecated_write_sp. Replace
3110 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3111 Delete set_gdbarch_deprecated_register_convertible(),
3112 set_gdbarch_deprecated_register_convert_to_virtual(), and
3113 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3114 set_gdbarch_deprecated_register_size(),
3115 set_gdbarch_deprecated_register_bytes(),
3116 set_gdbarch_pcregnum(),
3117 set_gdbarch_deprecated_register_byte(),
3118 set_gdbarch_deprecated_register_raw_size(),
3119 set_gdbarch_deprecated_max_register_raw_size(),
3120 set_gdbarch_deprecated_register_virtual_size(),
3121 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3122 Replace set_gdbarch_deprecated_extract_return_value() with
3123 set_gdbarch_extract_return_value(). Remove calls to:
3124 set_gdbarch_deprecated_saved_pc_after_call();
3125 set_gdbarch_deprecated_frame_chain(),
3126 set_gdbarch_deprecated_frame_saved_pc(),
3127 set_gdbarch_deprecated_frame_init_saved_regs(),
3128 set_gdbarch_deprecated_get_saved_register(),
3129 set_gdbarch_deprecated_call_dummy_words(),
3130 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3131 set_gdbarch_deprecated_init_extra_frame_info(),
3132 set_gdbarch_deprecated_frame_args_address(),
3133 set_gdbarch_deprecated_frame_locals_address(),
3134 and set_gdbarch_deprecated_dummy_write_sp().
3135 Add set_gdbarch_convert_register_p(),
3136 set_gdbarch_register_to_value(),
3137 set_gdbarch_value_to_register(),
3138 set_gdbarch_push_dummy_call(),
3139 set_gdbarch_frame_align(),
3140 set_gdbarch_unwind_dummy_id(),
3141 set_gdbarch_unwind_pc(),
3142 frame_unwind_append_sniffer(),
3143 frame_unwind_append_sniffer(),
3144 and frame_base_set_default().
3145
aede7613
CD
31462003-08-25 Chris Demetriou <cgd@broadcom.com>
3147
3148 * configure.tgt: Document need for special "mipsisa64" handling.
3149 (mipsisa64*-*-linux64): Handle as target linux64.
3150 (mipsisa64*-*-*): Handle as target embed64.
3151
43c3a82e
MC
31522003-08-18 Michael Chastain <mec@shout.net>
3153
3154 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3155 objfile bug.
3156
6564f77d
MK
31572003-08-24 Mark Kettenis <kettenis@gnu.org>
3158
2de139ba
MK
3159 * i387-tdep.h: Update copyright date.
3160 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3161
6564f77d
MK
3162 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3163 CFLAGS games to reflect reality.
3164
42cf1509
AC
31652003-08-24 Andrew Cagney <cagney@redhat.com>
3166
3167 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3168 GDB_MULTI_ARCH is always non-zero.
3169 * osabi.c (_initialize_gdb_osabi): Ditto.
3170 (gdbarch_init_osabi): Ditto.
3171 * sparc-tdep.c: Ditto for #if code.
3172
0485f6ad
MK
31732003-08-23 Mark Kettenis <kettenis@gnu.org>
3174
3175 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3176 Update comments.
3177 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3178 comments.
3179 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3180 x86_64_supply_fxsave.
3181 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3182 x86_64_supply_fxsave.
3183 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3184 x86_64_supply_fxsave.
3185
c7716133
AJ
31862003-08-23 Andreas Jaeger <aj@suse.de>
3187
3188 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3189 i387_supply_fxsave.
3190
ed504bdf
MK
31912003-08-23 Mark Kettenis <kettenis@gnu.org>
3192
3193 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3194 i387_supply_register.
3195 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3196 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3197 i387_supply_fsave.
3198 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3199 i387_supply_fxsave.
3200 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3201 i387_supply_fsave.
3202 * i386bsd-nat.c (supply_fpregset): Adjust call to
3203 i387_supply_fsave.
3204 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3205 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3206 supply_fpregset.
3207 (store_inferior_registers): Remove extraneous whitespace. Call
3208 i387_fill_fsave instead of fill_fpregset.
3209 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3210 (supply_fpregset): Likewise.
3211 * i386v4-nat.c (supply_fpregset): Adjust call to
3212 i387_supply_fsave.
3213 * i386-interix-nat.c (supply_fpregset): Adjust call to
3214 i387_supply_fsave.
3215 * i386-linux-nat.c (supply_fpregset): Adjust call to
3216 i387_supply_fsave.
3217 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3218 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3219 i387supply_fsave and i387_supply_fxsave.
3220 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3221 Incorporate code from `i387_supply_register.
3222 (i387_supply_register): Remove.
3223 (i387_supply_fxsave): Add `regnum' argument.
3224 Update comments.
3225 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3226 prototype.
3227 (i387_supply_register): remove prototype.
3228 Update comments.
a8f4cde1 3229
4be5d520
MC
32302003-08-22 Michael Chastain <mec@shout.net>
3231
3232 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3233 Add lines for files in gdb/testsuite/gdb.cp/* that are
3234 still not 8.3 unique.
3235
7ed85d26
DJ
32362003-08-22 Daniel Jacobowitz <drow@mvista.com>
3237
3238 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3239 TYPE_VPTR_FIELDNO is valid.
3240
eb0d3137
MK
32412003-08-19 Mark Kettenis <kettenis@gnu.org>
3242
3243 * utils.c (set_width_command): Remove prototypes.
3244 (set_screen_size): New prototype.
3245 (init_page_info): Simplify by fetching the screen size from
3246 Readline. Call set_screen_size.
3247 (set_screen_size): New function.
3248 (set_width): Add missing whitespace in comment.
3249 (set_width_command): Call set_screen_size.
3250 (set_height_command): New function.
3251 (initialize_utils): Fix formatting. Make "set height" command
3252 call set_height_command. Remove redundant code that turns off
3253 pagination if output isn't a terminal. Remove redundant call to
3254 set_width_command.
a8f4cde1 3255
7e6d0ac8
MK
32562003-08-22 Mark Kettenis <kettenis@gnu.org>
3257
3567a8ea
MK
3258 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3259 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3260 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3261 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3262 `case' keyword.
3263 (sparc64_register_info): Give the reister with number
3264 SPARC64_STATE_REGNUM a name.
3265 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3266 %asi and %ccr.
3267 (sparc64_push_dummy_call): Take BIAS into account when checking
3268 stcak alignment.
3269 (sparc_software_single_step): Remove assertions that check whether
3270 NPC and NNPC were zero.
3271 (sparc_supply_rwindow): Make public. Merge functionality with
3272 sparc64_supply_rwindow.
3273 (sparc_fill_rwindow): Make public. Merge functionality with
3274 sparc64_fill_rwindow.
3275 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3276 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3277 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3278 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3279 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3280
7e6d0ac8
MK
3281 * reggroups.c: Add whitespace after declarations of local
3282 variables in functions.
3283
72e5f484
MC
32842003-08-21 Michael Chastain <mec@shout.net>
3285
3286 * gdbtypes.h: Change array bound type from an int to enum.
3287
435ac228
AC
32882003-08-21 Andrew Cagney <cagney@redhat.com>
3289
3290 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3291 * config/sparc/tm-sparc.h: Ditto.
3292 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3293 unconditionally.
3294 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3295
0d0e1a63
MK
32962003-07-13 Mark Kettenis <kettenis@gnu.org>
3297
3298 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3299 (register_objfile_data, set_objfile_data, objfile_data): New
3300 prototypes.
3301 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3302 prototypes.
3303 (allocate_objfile): Call objfile_alloc_data.
3304 (free_objfile): Call objfile_free_data.
3305 (struct objfile_data): New.
3306 (struct objfile_data_registration): New.
3307 (struct objfile_data_registry): New.
3308 (objfile_data_registry): New variable.
3309 (register_objfile_data): New function.
3310 (objfile_alloc_data, objfile_free_data): New functions.
3311 (set_objfile_data, objfile_data): New functions.
3312 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3313 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3314 (_initialize_dwarf2_frame): New function and prototype.
3315
d90cf509
AC
33162003-08-21 Andrew Cagney <cagney@redhat.com>
3317
3318 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3319 a specific architecture.
3320 * arch-utils.h (set_architecture_from_arch_mach): Delete
3321 declaration.
3322 (target_architecture_hook): Delete declaration.
3323 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3324 (default_float_format): Assume GDB_MULTI_ARCH.
3325 (default_double_format): Assume GDB_MULTI_ARCH.
3326 (set_endian_from_file): Delete function.
3327 (arch_ok): Delete function.
3328 (set_arch): Delete function.
3329 (set_architecture_from_arch_mach): Delete function.
3330 (set_architecture_from_file): Delete function.
3331 (set_architecture): Assume GDB_MULTI_ARCH.
3332 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3333
8b39fe56
MK
33342003-08-21 Mark Kettenis <kettenis@gnu.org>
3335
3336 Rewrite FreeBSD/sparc64 native configuration.
3337 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3338 * sparc64fbsd-nat.c: New file.
3339 * sparc64fbsd-tdep.c: New file.
3340 * sparc64-tdep.c sparc64-tdep.h: New files.
3341 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3342 sparc64fbsd-tdep.o): New dependencies.
3343 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3344 and sparc64fbsd-tdep.c.
3345 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3346 * config/sparc/fbsd.mh: Remove copyright notice.
3347 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3348 sparcbsd-nat.o.
3349 * config/sparc/fbsd.mt: Remove copyright notice.
3350 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3351 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3352 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3353 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3354 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3355 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3356 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3357 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3358 "sparc/tm-sp64.h".
3359 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3360 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3361
a7f19c79
MC
33622003-08-21 Michael Chastain <mec@shout.net>
3363
3364 * symtab.h: Add doco on the space critical structures and
3365 some measurements of space usage.
3366
da08ea5b
MS
33672003-08-21 Michael Snyder <msnyder@redhat.com>
3368
3369 * tracepoint.c (trace_dump_command): Trace break address
3370 is subject to DECR_PC_AFTER_BREAK.
3371 (set_traceframe_context): Make "trace_line" an int.
3372 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 3373
6df2bf50
MS
33742003-08-20 Michael Snyder <msnyder@redhat.com>
3375
3376 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
3377 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3378 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 3379 argument passing.
a8f4cde1 3380 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
3381 functions, replace sh_push_dummy_call.
3382 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3383
0955bbf0
MC
33842003-08-20 Michael Chastain <mec@shout.net>
3385
3386 * gdbtypes.h (struct main_type): Rearrange to save space.
3387
260a4188
MS
33882003-08-20 Michael Snyder <msnyder@redhat.com>
3389
3390 * trad-frame.c: Comment typo fix.
3391
8baa6f92
KB
33922003-08-20 Michael Snyder <msnyder@redhat.com>
3393 Kevin Buettner <kevinb@redhat.com>
3394
3395 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3396 (frv_frame_init_saved_regs): Add declaration.
3397 (frame_extra_info): Add new field ``saved_regs''.
3398 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3399 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3400 Update frame related code.
3401 (frv_extract_struct_value_address): Adjust formatting.
3402 * Makefile.in (frv-tdep.o): Update dependencies.
3403 * config/frv/tm-frv.h (target_insert_watchpoint)
3404 (target_remove_watchpoint, target_insert_hw_breakpoint)
3405 (target_remove_hw_breakpoint): Delete these macros.
3406 (remote_insert_watchpoint, remote_remove_watchpoint)
3407 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3408 these declarations.
3409
87193939
MC
34102003-08-20 Michael Chastain <mec@shout.net>
3411
3412 * defs.h (ENUM_BITFIELD): New macro.
3413 * symtab.h (ENUM_BITFIELD): Use it.
3414 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3415
062103ba
SA
34162003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3417
3418 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 3419
8b148df9
AC
34202003-08-18 Andrew Cagney <cagney@redhat.com>
3421
3422 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3423 * gdbarch.h, gdbarch.c: Re-generate.
3424 * infcall.c (call_function_by_hand): Adjust the SP by
3425 frame_red_zone_size before allocating any stack space.
3426 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3427 * x86-64-tdep.c (x86_64_frame_align): New function.
3428 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3429
3430 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3431 Remove code adjusting SP so that it skips over the Red Zone.
3432
954a4db8
MK
34332003-08-18 Mark Kettenis <kettenis@gnu.org>
3434
3435 * NEWS (New native configurations): Mention FreeBSD/amd64.
3436
1a241548
AC
34372003-08-18 Andrew Cagney <cagney@redhat.com>
3438
3439 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3440 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3441 "m68k_frame_p".
3442 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3443
f82b2acd
MK
34442003-08-18 Mark Kettenis <kettenis@gnu.org>
3445
3446 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3447
4056d258
ML
34482003-08-18 Michal Ludvig <mludvig@suse.cz>
3449
3450 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3451 Define.
3452 * i386-linux-nat.c: Include "linux-nat.h".
3453 (child_post_startup_inferior): New function.
a8f4cde1 3454
99ab4326
MK
34552003-08-18 Mark Kettenis <kettenis@gnu.org>
3456
3457 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3458 at the start of a frameless function. This probably fixes PR
3459 backtrace/1338.
3460
c8d5f0d6
MC
34612003-08-17 Michael Chastain <mec@shout.net>
3462
3463 * symfile.c (find_sym_fns): Remove special case for apollo target.
3464
9016a515
DJ
34652003-08-17 Daniel Jacobowitz <drow@mvista.com>
3466
3467 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3468 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3469 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3470 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3471 (linux_supports_tracevforkdone): New function.
3472 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3473 TRACEVFORKDONE.
3474 (child_follow_fork): Handle vfork.
3475 (linux_handle_extended_wait): Likewise. Also handle exec.
3476 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3477 * NEWS: Mention fork tracing.
3478
c538c11c
DJ
34792003-08-17 Daniel Jacobowitz <drow@mvista.com>
3480
3481 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3482
4de4c07c
DJ
34832003-08-17 Daniel Jacobowitz <drow@mvista.com>
3484
3485 * Makefile.in (i386-linux-nat.o): Update dependencies.
3486 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3487 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3488 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3489 * i386-linux-nat.c: Include "linux-nat.h".
3490 (child_post_startup_inferior): New function.
3491 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3492 * infptrace.c (kill_inferior): Wrap in #ifdef.
3493 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3494 attaching to each LWP.
3495 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3496 (init_lin_lwp_ops): Fill in some more operations.
3497 * linux-nat.h (linux_enable_event_reporting)
3498 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3499 prototypes.
3500 * linux-nat.c (linux_enable_event_reporting): New function.
3501 (child_post_attach, linux_child_post_startup_inferior)
3502 (child_post_startup_inferior, child_follow_fork)
3503 (linux_handle_extended_wait, kill_inferior): New functions.
3504
7996bcec
AC
35052003-08-16 Andrew Cagney <cagney@redhat.com>
3506
3507 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3508 * gdbarch.h, gdbarch.c: Re-generate.
3509
3d48a7a0
MK
35102003-08-16 Mark Kettenis <kettenis@gnu.org>
3511
3512 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3513
7989c619
AC
35142003-08-16 Andrew Cagney <cagney@redhat.com>
3515
3516 * NEWS: Mention that "set prompt-escape-char" was deleted.
3517 * top.c (get_prompt_1): Delete function.
3518 (gdb_prompt_escape):
3519 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3520 prompt-escape-char" command.
3521 (MAX_PROMPT_SIZE): Delete macro.
3522 (get_prompt): Simplify, do not call get_prompt_1.
3523
07978cd8
AC
35242003-08-16 Andrew Cagney <cagney@redhat.com>
3525
3526 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3527 -Werror. -Wformat-nonliteral problems.
3528
3ff7cf9e
JB
35292003-08-15 J. Brobecker <brobecker@gnat.com>
3530
3531 Further multiarching work mostly for hppa64-*-hpux11:
3532 * hppa-tdep.h: New file.
3533 * hppa-tdep.c: #include hppa-tdep.c.
3534 (hppa32_num_regs): Renamed from hppa_num_regs.
3535 (hppa64_num_regs): New constant.
3536 (hppa64_call_dummy_breakpoint_offset): New constant.
3537 (hppa32_call_dummy_length): New constant.
3538 (hppa64_call_dummy_length): New constant.
3539 (hppa32_stack_align): Make name 32bit explicit.
3540 (hppa32_register_virtual_type): Likewise.
3541 (hppa32_extract_return_value): Likewise.
3542 (hppa32_use_struct_convention): Likewise.
3543 (hppa32_store_return_value): Likewise.
3544 (hppa64_register_virtual_type): New function.
3545 (hppa64_extract_return_value): New function.
3546 (hppa64_use_struct_convention): New function.
3547 (hppa64_store_return_value): New function.
3548 (hppa_frame_locals_address): Remove declaration, function does
3549 not exist anymore.
3550 (hppa_register_byte): Add support for PA64 ABI.
3551 (hppa_gdbarch_init): Add support for PA64 ABI.
3552 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3553 Make name 32bit explicit.
3554 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3555 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3556 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3557 (hppa64_hpux_frame_base_before_sigtramp): New function.
3558 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3559 * config/pa/tm-hppa64.h: Remove macros that are no longer
3560 necessary now that the gdbarch vector is properly setup.
a8f4cde1 3561 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
3562 * config/pa/tm-hppah.h: Update function calls in macros
3563 following the function renaming in hppa-hpux-tdep.c.
3564 * Makefile.in (hppa_tdep_h): New variable.
3565 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3566
5d05ca6d
MS
35672003-08-14 Michael Snyder <msnyder@redhat.com>
3568
3569 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3570
37ba2569
JB
35712003-08-13 J. Brobecker <brobecker@gnat.com>
3572
3573 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3574 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3575 routine.
3576
aed7f26a
MS
35772003-08-13 Michael Snyder <msnyder@redhat.com>
3578
3579 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3580 (frv_saved_pc_after_call): Use deprecated ftype.
3581 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3582 (frv_remote_translate_xfer_address): Remove.
3583 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3584
752d4ac1
JB
35852003-08-13 J. Brobecker <brobecker@gnat.com>
3586
3587 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3588 initialization after the common gdbarch initialization, not before.
3589
1426ac1d
JB
35902003-08-13 J. Brobecker <brobecker@gnat.com>
3591
3592 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3593 (ADDR_BITS_REMOVE): Remove, redundant.
3594
b6fbdd1d
JB
35952003-08-13 J. Brobecker <brobecker@gnat.com>
3596
3597 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3598 gdbarch method to clear the 2 low bits of text addresses.
3599
44160db3
AC
36002003-08-12 Andrew Cagney <cagney@redhat.com>
3601
3602 * Makefile.in (dsrec.o): Update dependencies.
3603 * dsrec.c: Include "gdb_assert.h".
3604 (make_srec): Use snprintf instead of sprintf, use a literal format
3605 string.
3606
bcf7d3ca
AC
36072003-08-12 Andrew Cagney <cagney@redhat.com>
3608
3609 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3610 FRAME_OBSTACK_ZALLOC.
3611
49ed40de
KB
36122003-08-12 Kevin Buettner <kevinb@redhat.com>
3613
3614 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3615 SSE registers.
3616
b246147c
MK
36172003-08-10 Mark Kettenis <kettenis@gnu.org>
3618
3619 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3620 amd64fbsd_sc_reg_offset): Add extern declarations.
3621 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3622 declarations.
3623
d95fdc0d
BE
36242003-08-11 Ben Elliston <bje@wasabisystems.com>
3625
3626 * MAINTAINERS (write after approval): Update my mail address.
3627
cf6a0e73
AC
36282003-08-10 Andrew Cagney <cagney@redhat.com>
3629
3630 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3631
f837910f
MK
36322003-08-10 Mark Kettenis <kettenis@gnu.org>
3633
e2dbbd2d
MK
3634 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3635 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3636 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3637 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3638 i386bsd_sc_reg_offset): Add extern declarations.
3639 * i386obsd-nat.c: Include "i386-tdep.h"
3640 (_initialize_i386obsd_nat): Remove extern declarations.
3641 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3642 declarations.
3643 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3644 declarations.
3645
f837910f
MK
3646 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3647 instead of frame_read_register.
3648 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3649 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3650 SP_REGNUM.
3651 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3652 instead of frame_unwind_unsigned_register. Use
3653 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3654 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3655 instead of read_register. Use builtin_type_void_data_ptr instead
3656 of builtin_type_void_func_ptr when extracting the address of the
3657 jmp_buf.
3658 (i386_extract_return_value, i386_store_return_value,
3659 i386_pseudo_register_read, i386_pseudo_register_write): Use
3660 register_size instead REGISTER_RAW_SIZE.
3661
edcf254d
AC
36622003-08-10 Andrew Cagney <cagney@redhat.com>
3663
3664 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3665 sprintf. Make "name" constant.
3666
26604a34
MK
36672003-08-10 Mark Kettenis <kettenis@gnu.org>
3668
192285c6
MK
3669 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3670 instead of frame_read_register.
f837910f
MK
3671 (i387_print_float_info): Use get_frame_register and
3672 get_frame_register_unsigned instead of frame_register_read.
192285c6 3673
f0925262
MK
3674 * i386fbsd-nat.c: Include "i386-tdep.h".
3675 (child_resume): Make `eflags' an ULONGEST. Use
3676 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3677 instead of register_read and register_write.
3678
a144416f
MK
3679 * i386bsd-nat.c (fetch_inferior_registers,
3680 store_inferior_registers): Don't use && at the end of a line.
3681 (_initialize_i386bsd_nat): Fix typo.
3682
fec74868
MK
3683 * frame.c (_initialize_frame): Add missing backslash.
3684
87232496
MK
3685 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3686 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3687 and supply_register instead of manipulating the register buffer
3688 directly.
3689
c9b9de0b
MK
3690 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3691 * config/i386/nm-i386sol2.h
3692 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3693
26604a34
MK
3694 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3695 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3696 instructions that GCC likes to mingle into the prologue. Fixes
3697 gdb/1253 and gdb/1255.
3698
25d29d70
AC
36992003-08-09 Andrew Cagney <cagney@redhat.com>
3700
3701 Fix GDB PR cli/926.
3702 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3703 * command.h (add_setshow_uinteger_cmd): Declare.
3704 * frame.c (set_backtrace_cmd): New function.
3705 (show_backtrace_cmd): New function.
3706 * frame.c (_initialize_frame): Replace "set/show
3707 backtrace-below-main" with "set/show backtrace past-main". Add
3708 command "set/show backtrace limit".
3709 (backtrace_past_main): Rename "backtrace_below_main".
3710 (backtrace_limit): New variable.
3711 (get_prev_frame): Update. Check the backtrace_limit.
3712
9ebf4acf
AC
37132003-08-09 Andrew Cagney <cagney@redhat.com>
3714
3715 * defs.h (xstrprintf): Declare.
3716 * utils.c (xstrprintf): New function.
3717 * breakpoint.c (insert_breakpoints): Replace sprintf and
3718 non-literal format strings, with xstrprintf and cleanups.
3719 (delete_breakpoint,breakpoint_re_set): Ditto.
3720 (commands_command, insert_breakpoints): Ditto.
3721 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3722 (break_at_finish_command_1): Ditto.
3723
3771659b
AC
37242003-08-09 Andrew Cagney <cagney@redhat.com>
3725
3726 * MAINTAINERS (language support): List Adam Fedor as Objective C
3727 maintainer.
3728
b4263afa
JB
37292003-08-08 J. Brobecker <brobecker@gnat.com>
3730
3731 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3732 are now multiarched.
3733
d84defb1
JB
37342003-08-08 J. Brobecker <brobecker@gnat.com>
3735
3736 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3737 longer necessary now that hppa64 is partially multiarch'ed.
3738
f786f615
AC
37392003-08-08 Andrew Cagney <cagney@redhat.com>
3740
3741 * interps.c (interp_set): Check for a NULL "old_interp".
3742
c938e9b0
L
37432003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3744
3745 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3746 (install-only): Support DESTDIR.
3747 (uninstall): Likewise.
3748 (install-gdbtk): Likewise.
3749
9a146a11
EZ
37502003-08-08 Elena Zannoni <ezannoni@redhat.com>
3751
3752 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3753 contains something meaningful at all times.
3754
3755Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 3756
62599e99 3757 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 3758
56296155
BC
3759Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3760
62599e99 3761 * MAINTAINERS (write after approval): Added self.
56296155 3762
9710e734
AC
37632003-08-07 Andrew Cagney <cagney@redhat.com>
3764
3765 * inferior.h (AT_SYMBOL): Define.
3766 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3767 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3768 * mips-tdep.c (mips_call_dummy_address): Delete function.
3769 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3770 set call_dummy_address.
3771
98b3ab73
AC
37722003-08-07 Andrew Cagney <cagney@redhat.com>
3773
3774 * language.c (op_error): Delete function.
3775 (binop_type_check): Delete function.
3776 * language.h (type_op_error, range_op_error): Delete macros.
3777 (op_error): Delete declaration.
3778
2fcf52f0
AC
37792003-08-07 Andrew Cagney <cagney@redhat.com>
3780
3781 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3782
abd4220e 37832003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 3784
abd4220e 3785 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 3786 (x86_64_push_arguments): Skip the red zone.
abd4220e 3787
9dd5f34f
AC
37882003-08-05 Andrew Cagney <cagney@redhat.com>
3789
3790 * reggroups.c (reggroup_next): Check for the final entry.
3791
e5e78edc
AC
37922003-08-04 Andrew Cagney <cagney@redhat.com>
3793
ab4e3d93
AC
3794 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3795 * cli/cli-script.c (define_command): Call query directly, instead
3796 of passing it a buffer.
3797 * ocd.c (ocd_error): Pass error a constant format string.
3798 * remote-mips.c (mips_error): Use fputs_filtered.
3799
1062ca82
AC
3800 * solib-svr4.c (_initialize_svr4_solib): Update
3801 register_gdbarch_data call.
3802 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3803
fcc1c85c
AC
3804 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3805 (register_gdbarch_data): Delete "free" parameter. Update
3806 comments.
3807 * gdbarch.h, gdbarch.c: Re-generate.
3808 * reggroups.c (_initialize_reggroup): Update.
3809 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3810 * frame-base.c (_initialize_frame_base): Update.
3811 * frame-unwind.c (_initialize_frame_unwind): Update.
3812 * user-regs.c (_initialize_user_regs): Update.
3813 * remote.c (_initialize_remote): Update.
3814 * regcache.c (_initialize_regcache): Update.
3815
116f06ea
AC
3816 * regcache.c (xfree_regcache_descr): Delete function.
3817 (_initialize_regcache): Update call to register_gdbarch_data.
3818 (init_regcache_descr, init_legacy_regcache_descr): Use
3819 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3820
e5e78edc
AC
3821 * remote.c (free_remote_state): Delete function.
3822 (_initialize_remote): Update register_gdbarch_data.
3823 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3824 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3825
6c7d17ba
AC
38262003-08-04 Andrew Cagney <cagney@redhat.com>
3827
3828 * reggroups.c (struct reggroup_el): Define.
3829 (struct reggroups): Delete field "nr_group". Replace array
3830 "group" with a "first" to "last" linked list.
3831 (reggroups_init): Update. Allocate using gdbarch's obstack.
3832 (reggroups_free): Delete function.
3833 (add_group): Update. Add "el" parameter.
3834 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3835 (default_groups): Update.
3836 (reggroup_next): Replace reggroups.
3837 (reggroups_dump): Update.
3838 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3839 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3840 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3841
89b7795b
DJ
38422003-08-04 Daniel Jacobowitz <drow@mvista.com>
3843
3844 * Makefile.in (tui-interp.o): Update dependencies.
3845
306d9ac5
DC
38462003-08-04 David Carlton <carlton@kealia.com>
3847
3848 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3849 to internal_error call.
3850 * source.c (forward_search_command): Add "%s" format argument.
3851 (reverse_search_command): Ditto.
3852 * top.c (quit_confirm): Ditto.
3853 * cli/cli-setshow.c (do_setshow_command): Ditto.
3854 * cp-valprint.c (cp_print_class_method): Replace
3855 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3856 (cp_print_class_member): Ditto.
3857 * event-top.c (command_line_handler): Ditto.
3858 * linux-proc.c (linux_info_proc_cmd): Ditto.
3859 * p-typeprint.c (pascal_type_print_base): Ditto.
3860 * p-valprint.c (pascal_object_print_class_method): Ditto.
3861 (pascal_object_print_class_member): Ditto.
3862 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3863 * remote.c (remote_cisco_section_offsets): Ditto.
3864 * top.c (command_line_input): Ditto.
3865 * utils.c (vwarning,error_stream,quit): Ditto.
3866 * valprint.c (print_floating,print_binary_chars)
3867 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3868
57bfe177
AC
38692003-08-04 Andrew Cagney <cagney@redhat.com>
3870
3871 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3872
e546b999
AC
38732003-08-02 Andrew Cagney <cagney@redhat.com>
3874
3875 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3876 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3877 amd64fbsd-nat.c.
3878
91092ee5
AC
38792003-08-02 Andrew Cagney <cagney@redhat.com>
3880
3881 * Makefile.in: Update all dependencies and definitions.
3882
889f28e2
AF
38832003-08-02 Adam Fedor <fedor@gnu.org>
3884
3885 * linespec.c (is_objc_method_format): New function
3886 (decode_line_1, locate_first_half): Use it.
3887 Fixes PR objc/1298
3888
880bc914
AC
38892003-08-01 Andrew Cagney <cagney@redhat.com>
3890
3891 * NEWS: Mention that m32r is multi-arch.
3892 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3893 * configure.tgt: Recognize m32r-*-*.
3894 * config/m32r/tm-m32r.h: Delete file.
3895 * config/m32r/m32r.mt: New file.
a8f4cde1 3896 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
3897 gethostname succeeds, in order to avoid a compilation
3898 warning.
3899 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3900 compiler warning.
3901
19f59343
MS
39022003-08-01 Michael Snyder <msnyder@redhat.com>
3903
3904 * sh-tdep.c (sh_frame_align): New gdbarch method.
3905 (sh_gdbarch_init): Set up frame_align method.
3906
4e7d7511
MS
39072003-07-31 Michael Snyder <msnyder@redhat.com>
3908
3909 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3910 which is already covered by the new frames infrastructure.
3911
63022984
AC
39122003-07-31 Andrew Cagney <cagney@redhat.com>
3913
3914 * user-regs.c (struct user_reg): Add "next" link.
3915 (struct user_regs): Replace "user" with "first" and "last" links.
3916 (append_user_reg): Add pre-allocated "reg" parameter.
3917 (builtin_user_regs): Provide initial value for "last".
3918 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3919 (user_regs_init): Allocate memory from the gdbarch obstack.
3920 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3921 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3922 linked list.
3923 (usernum_to_user_reg): New function.
3924 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3925 (value_of_user_reg): Use usernum_to_user_reg.
3926 (user_regs_free): Delete function.
3927 (_initialize_user_regs): Update register_gdbarch_data call.
3928
7cf6e574
DJ
39292003-07-31 Daniel Jacobowitz <drow@mvista.com>
3930
3931 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3932
c48a845b
MS
39332003-07-30 Michael Snyder <msnyder@redhat.com>
3934
4e7d7511 3935 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 3936 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
3937 value_being_returned.
3938 * infcmd.c (print_return_value): Pass zero as struct_addr.
3939 * values.c (value_being_returned): If struct_addr is passed,
3940 use it instead of trying to recover it from the inferior.
3941
f0d8db19
KB
39422003-07-30 Kevin Buettner <kevinb@redhat.com>
3943
3944 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3945 the prologue analyzer won't need to attempt to extract the pc
3946 value from the woefully incomplete dummy frame.
3947 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3948 possible. Disable code which modifies the frame.
3949
e5c113a1
AC
39502003-07-28 Andrew Cagney <cagney@redhat.com>
3951
3952 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3953 to level 2.
3954 (annotate_breakpoints_table, annotate_record): Ditto.
3955 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3956 (annotate_field_name_end, annotate_field_value): Ditto.
3957 (annotate_field_end, annotate_frame_source_begin): Ditto.
3958 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3959 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3960 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3961 (annotate_frame_address_end, annotate_frame_address): Ditto.
3962 (annotate_frame_args, annotate_frame_end): Ditto.
3963 (annotate_frame_where, annotate_arg_begin): Ditto.
3964 (annotate_arg_name_end, annotate_arg_value): Ditto.
3965 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3966 (annotate_function_call, annotate_signal_name): Ditto.
3967 (annotate_signal_string, annotate_signal_name_end): Ditto.
3968 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3969 (annotate_value_begin, annotate_value_history_value): Ditto.
3970 (annotate_value_history_end, annotate_value_end): Ditto.
3971 (annotate_display_begin, annotate_display_number_end): Ditto.
3972 (annotate_display_format, annotate_display_expression): Ditto.
3973 (annotate_display_expression_end, annotate_display_value): Ditto.
3974 (annotate_display_end, annotate_array_section_begin): Ditto.
3975 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3976 (annotate_elt, annotate_array_section_end): Ditto.
3977
bb1db049
AC
39782003-07-28 Andrew Cagney <cagney@redhat.com>
3979
3980 * regcache.c (struct regcache_descr): Update comments on
3981 nr_raw_registers.
3982 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3983 sizeof_raw_register_valid_p.
3984 (init_regcache_descr): Set nr_raw_registers and
3985 sizeof_raw_register_valid_p before calling
3986 init_legacy_regcache_descr.
3987
20e6603c
AC
39882003-07-28 Andrew Cagney <cagney@redhat.com>
3989
3990 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3991 MOD NUM_REGS.
3992
db742940
DJ
39932003-07-28 Daniel Jacobowitz <drow@mvista.com>
3994
3995 * thread.c (info_threads_command): Use get_selected_frame ().
3996 Check that there is at least one non-sentinel frame.
3997
ce7f4371
SC
39982003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3999
4000 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4001 (m68hc11_pop_frame): Remove.
4002 (m68hc11_frame_saved_pc): Remove.
4003 (m68hc11_frame_chain): Remove.
4004 (m68hc11_frame_init_saved_regs): Remove.
4005 (m68hc11_init_extra_frame_info): Remove.
4006 (m68hc11_store_struct_return): Remove.
4007 (m68hc11_saved_pc_after_call): Remove.
4008
1ea653ae
SC
40092003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4010
4011 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4012 frame unwind information.
4013 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4014 and adapted for frame unwinding.
4015 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4016 (m68hc11_unwind_pc): New function.
4017 (m68hc11_frame_unwind_cache): New function to analyze frames.
4018 (m68hc11_frame_this_id): New function to create new frame struct.
4019 (m68hc11_frame_prev_register): New function to unwind a register from
4020 the frame.
4021 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4022 (m68hc11_frame_p): New function for the above.
4023 (m68hc11_frame_base_address): New function to return fp of frame.
4024 (m68hc11_frame_args_address): Update for frame.
4025 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4026 (m68hc11_unwind_sp): New function.
4027 (m68hc11_unwind_dummy_id): New function.
4028 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4029 calls.
4030
c8a7f6ac
SC
40312003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4032
4033 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4034 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4035 when we are beyond the current pc.
4036
3dc990bf
SC
40372003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4038
4039 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4040 from m68hc11_push_arguments.
4041 (m68hc11_push_arguments): Remove.
4042 (m68hc11_push_return_address): Remove.
4043 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4044 handlers; remove deprecated_extra_stack_alignment_needed.
4045
222e5d1d
AC
40462003-07-27 Andrew Cagney <cagney@redhat.com>
4047
4048 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4049 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4050 REAL_PC and not the pointer.
4051 * hppa-hpux-tdep.c: Include frame.h
4052
a7e9a47e
AC
40532003-07-27 Andrew Cagney <cagney@redhat.com>
4054
4055 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4056 GDB_MULTI_ACH_PARTIAL.
4057
7e3dd49e
AC
40582003-07-27 Andrew Cagney <cagney@redhat.com>
4059
4060 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4061 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4062 operator at start and not end of line.
4063 (decode_prologue): Ditto.
4064 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4065 frame_unwind_register_unsigned instead of
4066 frame_unwind_unsigned_register.
4067 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4068 read_register.
4069 (m32r_push_dummy_call): Use register_size instead of
4070 REGISTER_RAW_SIZE.
4071 (m32r_frame_sniffer): Replace m32r_frame_p.
4072 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4073 * m32r-rom.c (report_transfer_performance): Delete extern
4074 declaration.
4075 (m32r_load, m32r_upload_command): Use print_transfer_performance
4076 instead of report_transfer_performance.
4077 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4078 / add_show_from_set.
4079
0880807f
AC
40802003-07-26 Andrew Cagney <cagney@redhat.com>
4081
4082 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4083 store_return_value and extract_struct_value_address.
4084
64ae9269
DJ
40852003-07-26 Daniel Jacobowitz <drow@mvista.com>
4086
4087 PR c++/1267
4088 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4089 NULL, default to the section containing PC.
4090
e286caf2
SC
40912003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4092
4093 * NEWS: Mention "regs" deprecated for m68hc11 too.
4094
4095 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4096 (m68hc11_print_register): New function to print out one register.
4097 (m68hc11_print_registers_info): New function to print registers.
4098 (show_regs): Deprecate and use the above.
4099 (m68hc11_gdbarch_init): Install the print_registers_info.
4100
705b278b
JJ
41012003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4102
4103 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4104 that we have a SIGTRAP before returning non-zero.
4105
63cd4198
EZ
41062003-07-23 Michal Ludvig <mludvig@suse.cz>
4107 Elena Zannoni <ezannoni@redhat.com>
4108
a8f4cde1 4109 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
4110 find_function_start_sal() returns empty record.
4111
6926787d
AS
41122003-07-23 Andreas Schwab <schwab@suse.de>
4113
4114 * ia64-tdep.c (ia64_print_insn): New function.
4115 (ia64_gdbarch_init): Set print_insn to it.
4116 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4117 deprecated_tm_print_insn_info.
4118
708cc1b6
MS
41192003-07-22 Michael Snyder <msnyder@redhat.com>
4120
4121 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4122 handle 8-bit returns (long long).
4123 (h8300h_extract_return_value): Ditto.
4124 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4125
aebd7893
AC
41262003-07-22 Andrew Cagney <cagney@redhat.com>
4127
4128 * gdbarch.c Include "gdb_obstack.h".
4129 (struct gdbarch): Add an "obstack".
4130 (alloc_gdbarch_data): Allocate the gdbarch data using
4131 GDBARCH_OBSTACK_CALLOC.
4132 (free_gdbarch_data): Delete function.
4133 (gdbarch_obstack_zalloc): New function.
4134 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4135 Assert that the architecture is not initialized.
4136 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4137 vector from the obstack.
4138 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4139 architecture obstack.
4140 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4141 (set_gdbarch_data): Assert that the data is not initialized.
4142 (struct gdbarch_data): Delete member "free".
4143 (register_gdbarch_data): Do not initialize "free".
4144 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 4145
153721e6
AC
41462003-07-22 Andrew Cagney <cagney@redhat.com>
4147
4148 * configure.in (build_warnings): Add -Wformat-nonliteral.
4149 * configure: Re-generate.
4150
c193f044 41512003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
4152
4153 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 4154
c3228f12
EZ
41552003-07-22 Elena Zannoni <ezannoni@redhat.com>
4156
4157 * findvar.c (read_var_value): Remove case for thread local storage
4158 variables. It is now entirely handled by the dwarf2 location
4159 expression code.
4160 * printcmd.c (address_info): Ditto.
4161 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4162 enumeration value.
4163 (struct symbol): Remove objfile field, which was used by
4164 LOC_THREAD_LOCAL_STATIC only.
4165 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4166 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4167 usage of objfile pointer.
4168 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4169 thread local variables.
4170 Add include of objfiles.h.
4171 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4172 storage variables.
4173 * Makefile.in (dwarf2loc.o): Update dependencies.
4174
aef9bcd2
AC
41752003-07-22 Andrew Cagney <cagney@redhat.com>
4176
4177 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4178 get_frame_base.
4179 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4180 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4181 (struct value): Add opaque declaration.
4182 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4183
d95a8903
AC
41842003-07-21 Andrew Cagney <cagney@redhat.com>
4185
4186 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4187 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4188
4db73d49
SC
41892003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4190
a8f4cde1 4191 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
4192 regcache_cooked_read_unsigned instead of read_register.
4193 (m68hc11_saved_pc_after_call): Likewise.
4194 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4195 instead of write_register.
4196 (m68hc11_register_type): New function.
4197 (m68hc11_register_virtual_type): Remove.
4198 (m68hc11_store_return_value): Convert to use the regcache.
4199 (m68hc11_extract_struct_value_address): Likewise.
4200 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4201 m68hc11_register_type; undeprecate store_return_value and
4202 extract_struct_value_address.
4203
ef2b8fcd
SC
42042003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4205
4206 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4207 and translate to use regcache.
4208 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4209
625b0b97
AC
42102003-07-18 Andrew Cagney <cagney@redhat.com>
4211
4212 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4213 * gdbarch.h, gdbarch.c: Re-generate.
4214 * i386-tdep.c (i386_gdbarch_init): Do not set
4215 DWARF2_BUILD_FRAME_INFO.
4216 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4217 unconditionally.
4218 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4219 DWARF2_BUILD_FRAME_INFO.
4220
22b0d388
AC
42212003-07-18 Andrew Cagney <cagney@redhat.com>
4222
4223 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4224 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4225
1ce5d6dd
AC
42262003-07-18 Andrew Cagney <cagney@redhat.com>
4227
4228 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4229 frame_unwind_address_in_block, instead of frame_pc_unwind.
4230 (dwarf2_frame_cache): Ditto.
4231
e6e5e94c
AC
42322003-07-18 Andrew Cagney <cagney@redhat.com>
4233
4234 * user-regs.h (struct gdbarch): Declare opaque.
4235 * ui-out.h (struct ui_file): Declare opaque.
4236 * dwarf2-frame.h (struct frame_info): Declare opaque.
4237
5483d879
KW
42382003-07-18 Kris Warkentin <kewarken@qnx.com>
4239
4240 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4241 #include "...".
4242 (procfs_meminfo): Change strerror to safe_strerror.
4243 (procfs_can_run): Remove K&R badness.
4244
278a7cf7
MS
42452003-07-17 Michael Snyder <msnyder@redhat.com>
4246
4247 * remote-sim.c: Comment typo fix.
4248
606e3b82
AC
42492003-07-17 Andrew Cagney <cagney@redhat.com>
4250
4251 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4252 configure.
4253 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4254 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4255 GDB_MULTI_ARCH_PARTIAL.
4256
c43af07c
EZ
42572003-07-17 Elena Zannoni <ezannoni@redhat.com>
4258
4259 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4260 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4261 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4262
3b85b0f1
TR
42632003-07-16 Theodore A. Roth <troth@openavr.org>
4264
4265 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4266 found.
4267 (avr_frame_unwind_cache): Don't unwind FP for main.
4268 Update a comment.
4269 Save the computed prev_sp.
4270 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 4271 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
4272 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4273
336d1bba
AC
42742003-07-16 Andrew Cagney <cagney@redhat.com>
4275
4276 * frame-base.h (frame_base_p_ftype): Delete definition.
4277 (frame_base_append_predicate): Delete declaration.
4278 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4279 (frame_unwind_append_predicate): Delete declaration.
4280 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4281 (append_predicate): Delete parameter "p".
4282 (frame_unwind_append_predicate): Delete function.
4283 (frame_unwind_append_sniffer): Update call to append_predicate.
4284 (frame_unwind_free): Delete function.
4285 (_initialize_frame_unwind): Pass NULL as "free" to
4286 register_gdbarch_data.
4287 (frame_unwind_init): Append the dummy_frame_sniffer.
4288 (frame_unwind_find_by_frame): Simplify.
4289 * frame-base.c (struct frame_base_table): Delete field "p".
4290 (append_predicate): Delete parameter "p".
4291 (frame_base_append_predicate): Delete function.
4292 (frame_base_append_sniffer): Update call to append_predicate.
4293 (frame_base_free): Delete function.
4294 (frame_base_find_by_frame): Simplify.
4295 (_initialize_frame_base): Pass NULL as "free" to
4296 register_gdbarch_data.
4297 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4298 (x86_64_sigtramp_frame_sniffer): Replace
4299 "x86_64_sigtramp_frame_p".
4300 (x86_64_init_abi): Set the frame unwind sniffers.
4301 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4302 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4303 (m68k_gdbarch_init): Set the frame unwind sniffers.
4304 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4305 "i386_sigtramp_frame_p".
4306 (i386_frame_sniffer): Replace "i386_frame_p".
4307 (i386_gdbarch_init): Set the frame unwind sniffers.
4308 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4309 (avr_gdbarch_init): Set the frame unwind sniffers.
4310 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4311 "alpha_sigtramp_frame_p"
4312 (alpha_heuristic_frame_sniffer): Replace
4313 "alpha_heuristic_frame_p".
4314 (alpha_gdbarch_init): Set the frame unwind sniffers.
4315 (alpha_dwarf2_init_abi): Ditto.
4316 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4317 "alpha_debug_frame_p".
4318 (alpha_mdebug_frame_base_sniffer): Replace
4319 "alpha_mdebug_frame_base_p".
4320 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4321 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4322 (d10v_gdbarch_init): Set the frame unwind sniffer.
4323 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4324 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4325 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4326 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4327 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4328 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4329
48db5a3c
CV
43302003-07-16 Michael Snyder <msnyder@redhat.com>
4331
4332 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4333 should go thru sh_dsp_register_sim_regno, else the dsp regs
4334 will not get the right values.
4335
43362003-07-16 Corinna Vinschen <vinschen@redhat.com>
4337
4338 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4339 deprecated_store_floating by call to store_typed_floating.
4340 (sh_sh4_register_convert_to_raw): Substitute call to
4341 deprecated_extract_floating by call to extract_typed_floating.
4342
43432003-07-16 Corinna Vinschen <vinschen@redhat.com>
4344
4345 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4346
43472003-07-16 Corinna Vinschen <vinschen@redhat.com>
4348
4349 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4350 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4351 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4352 as possible.
4353 (do_pseudo_register): Remove.
4354 (sh_push_dummy_code): New function.
4355 (sh64_store_struct_return): Rename from sh_store_struct_return.
4356 Only called for sh64 now.
4357 (sh_extract_struct_value_address): Regcache'ify.
4358 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4359 and accomodate new tasks.
4360 (sh64_push_return_address): Rename from sh_push_return_address.
4361 Only called for sh64 now.
4362 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4363 Regcache'ify.
4364 (sh3e_sh4_extract_return_value): Regcache'ify.
4365 (sh_default_store_return_value): Ditto.
4366 (sh3e_sh4_store_return_value): Ditto.
4367 (sh_default_register_byte): Remove.
4368 (sh_sh4_register_byte): Remove.
4369 (sh_default_register_raw_size): Remove.
4370 (sh_sh4_register_raw_size): Remove.
4371 (sh_register_virtual_size): Remove.
4372 (sh_sh3e_register_virtual_type): Remove.
4373 (sh_sh3e_register_type): New function.
4374 (sh_sh4_register_virtual_type): Remove.
4375 (sh_sh4_register_type): New function.
4376 (sh_default_register_virtual_type): Remove.
4377 (sh_default_register_type): New function.
4378 (do_fv_register_info): Add parameters to accomodate call from
4379 sh_print_registers_info.
4380 (do_dr_register_info): Ditto.
4381 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4382 Add parameters to accomodate call from sh_print_registers_info.
4383 (sh_do_fp_register): Ditto.
4384 (sh64_do_pseudo_register): Call do_dr_register_info,
4385 do_fv_register_info and sh_do_fp_register with default parameters.
4386 (sh_do_register): Add parameters to accomodate call from
4387 sh_print_registers_info.
4388 (sh_print_register): Ditto.
4389 (sh_print_registers_info): Rename from sh_do_registers_info.
4390 Add parameters to be used as gdbarch_print_registers_info
4391 implementation. Accomodate removed do_pseudo_register function
4392 pointer.
4393 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4394 function pointer. Call sh_print_register with default parameters.
4395 (sh64_do_registers_info): Call sh_print_registers_info instead of
4396 sh_do_registers_info.
4397 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4398 detection of deprecated vs. non-deprecated functionality.
4399 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4400 function pointer assignments by direct function calls.
4401
e8a89fe2
AC
44022003-07-15 Andrew Cagney <cagney@redhat.com>
4403
4404 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4405 (frame_register_unwind, create_new_frame): Ditto.
4406 (legacy_get_prev_frame, get_frame_type): Ditto.
4407 (get_frame_base_address): Use frame_base_find_by_frame.
4408 (get_frame_locals_address): Use frame_base_find_by_frame.
4409 (get_frame_args_address): Use frame_base_find_by_frame.
4410 * frame-base.h (frame_base_sniffer_ftype): Declare.
4411 (frame_base_append_sniffer): Declare.
4412 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4413 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4414 (frame_base_append_sniffer): New function.
4415 (frame_base_append_predicate): Add a NULL sniffer.
4416 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4417 (struct frame_base_table): Add "sniffer".
4418 (frame_base_free): Free the "sniffer" table.
4419 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4420 (frame_unwind_append_sniffer): Declare.
4421 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4422 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4423 (struct frame_unwind_table): Add "sniffer", delete "middle".
4424 (append_predicate): Add "sniffer" parameter, append the sniffer.
4425 (frame_unwind_init): Update append_predicate call.
4426 (frame_unwind_append_sniffer): New function.
4427 (frame_unwind_append_predicate): Update append_predicate call.
4428 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4429
0714963c
AC
44302003-07-15 Andrew Cagney <cagney@redhat.com>
4431
4432 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4433 before code inhibiting repeated unwind attempts. Add to
4434 commentary on that test's problems.
4435 * blockframe.c (inside_main_func): Look for "main" in the minimal
4436 symbol table.
4437 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4438 identical.
4439
d9170e22
AC
44402003-07-15 Andrew Cagney <cagney@redhat.com>
4441
4442 * complaints.c (struct explanation): Define.
4443 (struct complaints): Change type of "explanation" to "struct
4444 explanation".
4445 (symfile_explanations): Convert to a "struct explanation" table.
4446 (vcomplaint): Update.
4447
eba29c8c
ML
44482003-07-15 Michal Ludvig <mludvig@suse.cz>
4449
4450 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 4451 (supply_gregset, fill_gregset): Call
eba29c8c
ML
4452 x86_64_linux_(fill,supply)_gregset functions.
4453 * x86-64-linux-tdep.c (USER_*): New defines.
4454 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4455 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4456 New functions.
4457 (fetch_core_registers): Ditto.
4458 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4459 * x86-64-linux-tdep.h: New file.
4460 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4461 and core-regset.o.
4462 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4463
68cc0bfb
MK
44642003-07-13 Mark Kettenis <kettenis@gnu.org>
4465
88a115f7
MK
4466 * x86-64-tdep.c (x86_64_store_return_value): Use
4467 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 4468
68cc0bfb
MK
4469 * configure.host: Add x86_64-*-freebsd*.
4470 * configure.tgt: Add x86_64-*-freebsd*.
4471 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4472 * amd64fbsd-nat.c: New file.
4473 * amd64fbsd-tdep.c: New file.
4474 * config/i386/nm-fbsd64.h: New file.
4475 * config/i386/fbsd64.mh: New file.
4476 * config/i386/fbsd64.mt: New file.
4477
138e7be5
MK
44782003-07-11 Mark Kettenis <kettenis@gnu.org>
4479
4480 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4481 `sc_regs_offset' and `sc_fpregs_offset'.
4482 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4483 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4484 (alpha_sigtramp_register_address): Rewrite to use new members of
4485 `struct gdbarch_tdep'.
4486 (alpha_gdbarch_init): Initialize new members of struct
4487 gdbarch_tdep'.
4488 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4489 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4490 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4491 (alphafbsd_pc_in_sigtramp): Implement.
4492 (alphafbsd_sigtramp_offset): New function.
4493 (alphafbsd_sigcontext_addr): New function.
4494 (alphafbsd_init_abi): Initialize signal trampoline related members
4495 of `struct gdbarch_tdep'.
4496 (_initialize_alphafbsd_tdep): Add prototype.
4497
95303a68
TR
44982003-07-11 Theodore A. Roth <troth@openavr.org>
4499
ba292e4c
TR
4500 * Makefile.in (install-only): Quote sed expression when generating
4501 transformed_name.
95303a68 4502
6896c0c7
RH
45032003-07-11 Richard Henderson <rth@redhat.com>
4504
4505 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4506 * dwarf2-frame.c: Include complaints.h.
4507 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4508 variable initialization; return NULL on error.
4509 (decode_frame_entry): New.
4510
8edd5d01
AC
45112003-07-11 Andrew Cagney <cagney@redhat.com>
4512
c4a09524
AC
4513 * frame.h (frame_address_in_block): Delete declaration.
4514 * blockframe.c (frame_address_in_block): Delete function.
4515 (get_frame_block): Use get_frame_address_in_block.
4516 (block_innermost_frame): Ditto.
4517 * stack.c (print_frame, backtrace_command_1): Ditto.
4518
8edd5d01
AC
4519 * frame.h (get_frame_address_in_block): Declare.
4520 (frame_unwind_address_in_block): Declare.
4521 * frame.c (frame_unwind_address_in_block): New function.
4522 (get_frame_address_in_block): New function.
4523
f7968451
AC
45242003-07-10 Andrew Cagney <cagney@redhat.com>
4525
4526 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4527 pre-default. Note: re-generate has no effect.
a8f4cde1 4528
ae99b398
AC
45292003-07-10 Andrew Cagney <cagney@redhat.com>
4530
4531 * gdbarch.sh: When a variable, but not a function, compare against
4532 0. Fix problem in previous patch.
4533 * gdbarch.c: Re-generate.
a8f4cde1 4534
956ac328
AC
45352003-07-10 Andrew Cagney <cagney@redhat.com>
4536
4537 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4538 functions against NULL, not 0.
4539 * gdbarch.c: Re-generate.
a8f4cde1 4540
287c3240
FF
45412003-07-10 Fred Fish <fnf@ninemoons.com>
4542
4543 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4544 null string instead of a null pointer.
4545 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4546
32f63c4b
MS
45472003-07-09 Michael Snyder <msnyder@redhat.com>
4548
4549 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4550
402ecd56
MK
45512003-07-09 Mark Kettenis <kettenis@gnu.org>
4552
4553 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4554 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4555 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4556 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4557 * x86-64-tdep.c: ... from here.
4558
c481dac7
AS
45592003-07-09 Andreas Schwab <schwab@suse.de>
4560
4561 * m68k-tdep.h (enum struct_return): Define.
4562 (struct gdbarch_tdep): Add struct_return.
4563 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4564 bytes are padded to the right, not to the left. Pass struct value
4565 address in register %a1, not on stack.
4566 (m68k_use_struct_convention): New function.
4567 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4568 struct_return in tdep to pcc_struct_return.
4569 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4570 reg_struct_return.
4571
a8f4cde1 45722003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 4573
a8f4cde1 4574 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 4575
96a4ee76
AC
45762003-07-09 Andrew Cagney <cagney@redhat.com>
4577
4578 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4579 Add comments about the checks.
4580
1517c6d1
AC
45812003-07-08 Andrew Cagney <cagney@redhat.com>
4582
4583 * Makefile.in: Make dependency section headers consistent.
4584 (config_h): Move to $BUILD headers section.
4585 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4586 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4587 (ada-exp.tab.c): Move to YACC/LEX section.
4588 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4589 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4590
dc5dd1eb
KW
45912003-07-08 Kris Warkentin <kewarken@qnx.com>
4592
4593 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
4594 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4595 of strerror with safe_strerror, use ISO C function definitions,
4596 and replace instances of sprintf with snprintf.
dc5dd1eb 4597
612dde91
AC
45982003-07-07 Andrew Cagney <cagney@redhat.com>
4599
4600 * frame.c (get_prev_frame): Enable check for identical frames.
4601 Update comments. Update error messages.
4602
492c11d3
JB
46032003-07-07 Joel Brobecker <brobecker@gnat.com>
4604
4605 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4606
376a5a49
JB
46072003-07-07 Joel Brobecker <brobecker@gnat.com>
4608
4609 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4610 sort_symtab_syms, no longer necessary.
4611
22b4a9ad
JB
46122003-07-07 Joel Brobecker <brobecker@gnat.com>
4613
4614 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4615
5bbcb741
JB
46162003-07-07 Joel Brobecker <brobecker@gnat.com>
4617
4618 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4619 (mips_register_byte): Likewise.
4620
c139e7d9
DJ
46212003-07-07 Daniel Jacobowitz <drow@mvista.com>
4622
4623 * Makefile.in (sparc_tdep_h): New.
4624 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4625 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4626 * sparc-linux-nat.c: Include "sparc-tdep.h".
4627 * sparc-nat.c: Likewise.
4628 * sparc-tdep.c: Likewise.
4629 * sparc64nbsd-nat.c: Likewise.
4630 * sparcnbsd-nat.c: Likewise.
4631 * sparcnbsd-tdep.c: Likewise.
4632 * sparc-tdep.h: New file.
4633 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4634 and sparc_npc_regnum.
4635
fd8f87c5
DJ
46362003-07-07 Daniel Jacobowitz <drow@mvista.com>
4637
4638 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4639 (mips_linux_cannot_store_register): List supported instead of
4640 unsupported registers.
4641
13adf674
DJ
46422003-07-07 Daniel Jacobowitz <drow@mvista.com>
4643
4644 * disasm.c (dump_insns): Separate instructions from addresses.
4645
8de307e0
AS
46462003-07-07 Andreas Schwab <schwab@suse.de>
4647
4648 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4649 dependencies.
4650 * m68k-tdep.c (NUM_FREGS): Delete.
4651 (SIG_PC_FP_OFFSET): Delete.
4652 (TARGET_M68K): Delete.
4653 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4654 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4655 P_MOVEL_SP, P_MOVEML_SP): Define.
4656 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4657 P_TRAP): Delete.
4658 (m68k_register_raw_size): Delete.
4659 (m68k_register_virtual_size): Delete.
4660 (m68k_register_type): Renamed from m68k_register_virtual_type and
4661 add gdbarch argument.
4662 (m68k_store_struct_return): Delete.
4663 (m68k_deprecated_extract_return_value): Delete.
4664 (m68k_deprecated_extract_struct_value_address): Delete.
4665 (m68k_frame_chain): Delete.
4666 (m68k_frame_saved_pc): Delete.
4667 (m68k_fix_call_dummy): Delete.
4668 (m68k_push_dummy_frame): Delete.
4669 (m68k_pop_frame): Delete.
4670 (m68k_extract_return_value): New function.
4671 (m68k_store_return_value): Rewrite using regcache.
4672 (m68k_extract_struct_value_address): Rewrite using regcache.
4673 (m68k_push_dummy_call): New function.
4674 (struct m68k_frame_cache): Define.
4675 (m68k_alloc_frame_cache): New function.
4676 (m68k_analyze_frame_setup): New function.
4677 (m68k_analyze_register_saves): New function.
4678 (m68k_analyze_prologue): New function.
4679 (m68k_skip_prologue): Rewrite using above functions.
4680 (m68k_unwind_pc): New function.
4681 (m68k_frame_cache): New function.
4682 (m68k_frame_this_id): New function.
4683 (m68k_frame_prev_register): New function.
4684 (m68k_frame_unwind): New variable.
4685 (m68k_frame_p): New function.
4686 (m68k_sigtramp_frame_cache): New function.
4687 (m68k_sigtramp_frame_this_id): New function.
4688 (m68k_sigtramp_frame_prev_register): New function.
4689 (m68k_sigtramp_frame_unwind): New variable.
4690 (m68k_sigtramp_frame_p): New function.
4691 (m68k_frame_base_address): New function.
4692 (m68k_frame_base): New function.
4693 (m68k_unwind_dummy_id): New function.
4694 (fill_gregset): Use regcache_collect.
4695 (fill_fpregset): Likewise.
4696 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4697 defined.
4698 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4699 deprecated_init_frame_pc, deprecated_store_struct_return,
4700 deprecated_extract_return_value, deprecated_store_return_value,
4701 deprecated_frame_chain, deprecated_frame_saved_pc,
4702 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4703 deprecated_register_virtual_size,
4704 deprecated_max_register_raw_size,
4705 deprecated_max_register_virtual_size,
4706 deprecated_register_virtual_type, deprecated_register_size,
4707 deprecated_register_byte, deprecated_register_bytes,
4708 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4709 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4710 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4711 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4712 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4713 deprecated_push_dummy_frame, deprecated_pop_frame,
4714 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4715 only if SYSCALL_TRAP is defined. Set extract_return_value,
4716 store_return_value, extract_struct_value_address, register_type,
4717 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4718 predicates.
4719 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4720 M68K_MAX_REGISTER_SIZE): Define.
4721 (struct m68k_sigtramp_info): Define.
4722 (struct gdbarch_tdep): Add get_sigtramp_info.
4723 * m68klinux-nat.c (fetch_register): Use register_size instead of
4724 REGISTER_RAW_SIZE. Don't put assignment in if.
4725 (store_register): Likewise.
4726 (fetch_inferior_registers): Likewise.
4727 (store_inferior_registers): Likewise.
4728 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4729 (m68k_linux_frame_saved_pc): Delete.
4730 (m68k_linux_sigcontext_reg_offset,
4731 m68k_linux_ucontext_reg_offset): Define.
4732 (m68k_linux_get_sigtramp_info): New function.
4733 (m68k_linux_extract_return_value): Rewrite using regcache.
4734 (m68k_linux_store_return_value): Likewise.
4735 (m68k_linux_extract_struct_value_address): Likewise.
4736 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4737 Don't set deprecated_frame_saved_pc,
4738 deprecated_extract_return_value, deprecated_store_return_value,
4739 deprecated_extract_struct_value_address. Set
4740 extract_return_value, store_return_value,
4741 extract_struct_value_address.
4742
eb8bc282
AC
47432003-07-07 Andrew Cagney <cagney@redhat.com>
4744
4745 * expprint.c: Include "user-regs.h" instead of "frame.h".
4746 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4747 frame_map_regnum_to_name.
4748 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4749 (frame_map_name_to_regnum): Simplify, call
4750 user_reg_map_name_to_regnum.
4751 (frame_map_regnum_to_name): Simplify, call
4752 user_reg_map_regnum_to_name.
4753 (frame_register_unwind): Update.
4754 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4755 (_initialize_frame_reg): Call user_reg_add_builtin.
4756 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4757 (value_of_register): Use value_of_user_reg.
4758 * eval.c (evaluate_subexp_standard): Update.
4759 * parse.c (write_dollar_variable): Update.
4760 * d10v-tdep.c (d10v_print_registers_info): Update.
4761 * infcmd.c (registers_info): Update.
4762 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4763 (builtin_regs_h): Delete macro.
4764 (user_regs_h): Define.
4765 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4766 (builtin-regs.o): Delete target.
4767 (user-regs.o): Specify dependencies.
4768 (expprint.o): Update dependencies.
4769 (findvar.o): Update dependencies.
4770 (frame.o): Update dependencies.
4771 (std-regs.o): Update dependencies.
4772
9f476a01
CF
47732003-07-06 Christopher Faylor <cgf@redhat.com>
4774
4775 * win32-nat.c (solib_symbols_add): Use one variable for all section
4776 address stuff. Pass variable rather than address of variable to
4777 safe_symbol_file_add.
4778
a731b831
AS
47792003-07-06 Andreas Schwab <schwab@suse.de>
4780
4781 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4782
9f83329d
JB
47832003-07-04 Joel Brobecker <brobecker@gnat.com>
4784
4785 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4786
27e28cc5
KW
47872003-07-04 Kris Warkentin <kewarken@qnx.com>
4788
4789 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4790
47912003-07-04 Kris Warkentin <kewarken@qnx.com>
4792
4793 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4794 * config/i386/nto.mh: New file.
4795 * config/i386/nm-nto.h: New file.
4796 * configure.host: Add i[3456]86-*-nto*.
4797
100f2e98
JB
47982003-07-03 Joel Brobecker <brobecker@gnat.com>
4799
4800 * remote-vx.c (vx_add_symbols): Fix compilation error.
4801
e23457df
AC
48022003-07-03 Andrew Cagney <cagney@redhat.com>
4803
4804 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4805 * gdbarch.h, gdbarch.c: Re-generate.
4806 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4807 (legacy_register_name): Declare.
4808 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4809 (REGISTER_NAME): Define.
4810 * sparc-tdep.c (legacy_register_name): New function.
4811 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4812 (REGISTER_NAME): Define.
4813 (hppa64_register_name): Declare.
4814 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4815 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4816 (hppa64_register_name): New function.
4817 (hppa_register_name): New function.
4818 * arch-utils.c (legacy_register_name): Delete.
4819 * arch-utils.h (legacy_register_name): Delete.
4820
38caaeec
DJ
48212003-07-03 Daniel Jacobowitz <drow@mvista.com>
4822
4823 * cli/cli-interp.c (cli_interpreter_resume): Update the
4824 cli_uiout's stream to gdb_stdout.
4825
dadd712e
AC
48262003-07-03 Andrew Cagney <cagney@redhat.com>
4827
4828 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4829 predicate.
4830 * gdbarch.h, gdbarch.c: Re-generate.
4831 * regcache.c (init_regcache_descr): Use legacy code when either
4832 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4833
c7f1390e
DJ
48342003-07-02 Daniel Jacobowitz <drow@mvista.com>
4835
4836 * NEWS: Move "set logging" entry into GDB 6.0 section.
4837
4bc8c588
JB
48382003-07-02 Jim Blandy <jimb@redhat.com>
4839
a9dd42f1
JB
4840 * s390-tdep.c (struct frame_extra_info): new member:
4841 'stack_bought_valid'.
4842 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4843 initialize fextra_info->stack_bought.
4844 (s390_frameless_function_invocation): Don't trust the value of
4845 fextra_info_ptr->stack_bought unless
4846 fextra_info->stack_bought_valid is set.
4847
4bc8c588
JB
4848 New S390 prologue analyzer.
4849 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4850 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4851 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4852 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4853 compute_x_addr, s390_on_stack, s390_store,
4854 s390_get_signal_frame_info): New functions.
4855 (S390_NUM_SPILL_SLOTS): New macro.
4856 (s390_get_frame_info): Rewritten.
4857 (is_arg_reg): Deleted.
4858
4859 Break out the decoding of S/390 instructions into separate
4860 functions, to make it more legible, and easier to check
4861 against the spec.
4862 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4863 is_rx, is_rxe): New functions.
4864 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4865 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4866 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4867 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4868 enums for opcode values. (Is this an improvement?)
4869
fd13a04a
AC
48702003-07-02 Andrew Cagney <cagney@redhat.com>
4871
4872 * i386-tdep.c: Revert change committed as part of trad-frame code
4873 below.
4874
3f8091c1
DJ
48752003-07-02 Daniel Jacobowitz <drow@mvista.com>
4876
4877 * breakpoint.c (insert_catchpoint): Make static.
4878
8dd5115e
AS
48792003-07-02 Andreas Schwab <schwab@suse.de>
4880
4881 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4882 former ia64_push_arguments and ia64_push_return_address, and use
4883 regcache functions instead of read/write_register.
4884 (ia64_gdbarch_init): Set push_dummy_call instead of
4885 deprecated_push_arguments and deprecated_push_return_address.
4886
a2229c23
AJ
48872003-07-01 Andreas Jaeger <aj@suse.de>
4888
4889 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4890 before the call.
4891 Set %rax only to number of SSE registers used.
4892
3b3850e8
AC
48932003-07-01 Andrew Cagney <cagney@redhat.com>
4894
4895 * trad-frame.h: Update comments, a -1 .addr is reserved.
4896 (trad_frame_value_p, trad_frame_addr_p): Declare.
4897 (trad_frame_reg_p): Declare.
4898 (trad_frame_set_value): Rename trad_frame_register_value.
4899 (trad_frame_set_unknown): Declare.
4900 * trad-frame.c (trad_frame_realreg_p): New function.
4901 (trad_frame_addr_p, trad_frame_value_p): New function.
4902 (trad_frame_set_unknown): New function.
4903 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4904 (trad_frame_prev_register): Use trad_frame_realreg_p,
4905 trad_frame_addr_p and trad_frame_value_p.
4906 (trad_frame_set_value): Rename trad_frame_register_value.
4907 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4908 and trad_frame_set_value.
a2229c23 4909
4d819d0e
JB
49102003-06-30 Jim Blandy <jimb@redhat.com>
4911
4912 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4913 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4914 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4915 for 16 registers, and then 32 more bytes.
4916 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4917 New macros.
4918 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4919 Move up in the file, since it's now used by is_simple_arg.
4920 (is_simple_arg): Don't assume registers are four bytes long.
4921 Exclude all double arguments. Extended floats are not simple
4922 args.
4923 (is_power_of_two): New function.
4924 (pass_by_copy_ref): Call is_power_of_two, and check that the
4925 length fits in a register, rather than listing all the acceptable
4926 sizes. Extended floats are not passed by reference.
4927 (s390_push_arguments): Don't assume registers are four bytes long.
4928 Reserve an argument register to point to the buffer for structures
4929 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4930 S390_STACK_FRAME_OVERHEAD.
4931
1ad828f1
AS
49322003-06-30 Andreas Schwab <schwab@suse.de>
4933
4934 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4935 format error message.
4936
39b00981
JB
49372003-06-30 Joel Brobecker <brobecker@gnat.com>
4938
4939 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4940
b2a7f303
DC
49412003-06-30 David Carlton <carlton@kealia.com>
4942
4943 Band-aid for PR c++/1245.
4944 * Makefile.in (cp-support.o): Depend on complaints_h.
4945 * cp-support.c: Include complaints.h. Add declaration for
4946 find_last_component.
4947 (cp_find_first_component): Separate code into
4948 cp_find_first_component_aux.
4949 (cp_find_first_component_aux): Call demangled_name_complaint.
4950 (demangled_name_complaint): New.
4951
a257b5bb
AC
49522003-06-30 Andrew Cagney <cagney@redhat.com>
4953
4954 * remote.c (remote_write_bytes): Explicitly compute and then use
4955 the payload size. Update comments to reflect. Fixes problem of
4956 GDB not sending small packets as found by Fred Fish.
4957
0a2cfde4
AC
49582003-06-30 Andrew Cagney <cagney@redhat.com>
4959
4960 * remote.c (remote_async_wait): Fix -Wformat problem.
4961
3fcb8548
AC
49622003-06-29 Andrew Cagney <cagney@redhat.com>
4963
4964 * remote.c (remote_wait): Call error, and not warning, when the
4965 packet is corrupt.
4966 (remote_async_wait): Ditto.
4967
9f9970a3
DJ
49682003-06-29 Daniel Jacobowitz <drow@mvista.com>
4969
4970 * sparc-tdep.c (sparc_y_regnum): Make external again.
4971
83a8ccca
DJ
49722003-06-29 Daniel Jacobowitz <drow@mvista.com>
4973
4974 * cli/cli-logging.c (pop_output_files): Add void to function
4975 definition.
4976
d2cf594a
AC
49772003-06-29 Andrew Cagney <cagney@redhat.com>
4978
4979 * frame.c (frame_register_unwind): Use unsigned char when dumping
4980 the buffer contents.
4981
0fac0b41
DJ
49822003-06-28 Daniel Jacobowitz <drow@mvista.com>
4983
4984 * cli/cli-logging.c: New file.
4985 * cli-out.c (struct ui_out_data): Add original_stream.
4986 (cli_redirect): New function.
4987 (cli_ui_out_impl): Add cli_redirect.
4988 (cli_out_new): Initialize original_stream.
4989 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4990 (uo_redirect, ui_out_redirect): New.
4991 * ui-out.h (struct ui_out_impl): Add redirect member.
4992 (redirect_ftype): New.
4993 (ui_out_redirect): Add prototype.
4994 * Makefile.in: Add rules for cli-logging.c.
4995 * NEWS: Mention "set logging".
4996
88a07d7c
EZ
49972003-06-27 Elena Zannoni <ezannoni@redhat.com>
4998
4999 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5000
4eb58876
AC
50012003-06-27 Andrew Cagney <cagney@redhat.com>
5002
5003 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5004 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5005 * avr-tdep.c (avr_call_dummy_address): Delete function.
5006 (avr_gdbarch_init): Do not set call_dummy_address.
5007
1549f619
EZ
50082003-06-27 Elena Zannoni <ezannoni@redhat.com>
5009
5010 * symfile.c (syms_from_objfile): Move variables to inner block.
5011 Move the checks for the non-mainline case a bit earlier to avoid
5012 doing some useless computations.
5013
3cb3398d
EZ
50142003-06-27 Elena Zannoni <ezannoni@redhat.com>
5015
5016 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5017
3799ccc6
EZ
50182003-06-26 Elena Zannoni <ezannoni@redhat.com>
5019
5020 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5021 sections.
5022
ce1f6491
MC
50232003-06-26 Michael Chastain <mec@shout.net>
5024
5025 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5026 gdb/testsuite/gdb.c++/pr-1210.exp.
5027
d958dfd0
AC
50282003-06-26 Andrew Cagney <cagney@redhat.com>
5029
5030 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5031 altivec_expression.h and altivec_registers.h.
5032
d31431ed
AC
50332003-06-26 Andrew Cagney <cagney@redhat.com>
5034
5035 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5036 info->mach when MIPS16. Patch suggested by Fred Fish.
5037
714b1282
AC
50382003-06-26 Andrew Cagney <cagney@redhat.com>
5039
5040 * utils.c (internal_vproblem): Print the problem to a reason
5041 buffer and then pass to query. Make the msg variable more local.
5042
42efa47a
AC
50432003-06-26 Andrew Cagney <cagney@redhat.com>
5044
5045 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5046 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5047 * gdbarch.h, gdbarch.c: Re-generate.
5048 * frame-base.c (default_frame_args_address): Update. Use
5049 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5050 not available.
5051 (default_frame_locals_address): Ditto for
5052 DEPRECATED_FRAME_LOCALS_ADDRESS.
5053 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5054 (vax_frame_num_args): Update.
5055 (vax_gdbarch_init): Update.
5056 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5057 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5058 * mcore-tdep.c (mcore_gdbarch_init): Update.
5059 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5060 * ia64-tdep.c (ia64_gdbarch_init): Update.
5061 * symtab.h (address_class): Update comments.
5062 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5063 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5064 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5065 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5066 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5067 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5068 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5069 * alpha-mdebug-tdep.c: Update.
5070 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5071
8ffd9b1b
AJ
50722003-06-26 Andreas Jaeger <aj@suse.de>
5073
5074 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5075 of SSE registers so that varargs functions work. Rework handling
5076 of passing arguments on the stack.
5077 (x86_64_store_return_value): Return double and float values in SSE
5078 register.
5079
e8ac10a6
MC
50802003-06-24 Michael Chastain <mec@shout.net>
5081
5082 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5083 the "constructor breakpoints ignored" bug.
5084
986af8e6
DC
50852003-06-25 David Carlton <carlton@kealia.com>
5086
5087 * MAINTAINERS: Update e-mail address.
5088
d64558a5
JB
50892003-06-24 Jim Blandy <jimb@redhat.com>
5090
e538d2d7
JB
5091 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5092
02631ec0
JB
5093 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5094 function.
5095 (ppc_linux_init_abi): Register it as the
5096 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5097
e716d87a
JB
5098 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5099 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5100 method.
5101
d64558a5
JB
5102 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5103 (ppc64_standard_linkage_target): Use it.
5104
449a5da4
AC
51052003-06-23 Andrew Cagney <cagney@redhat.com>
5106
5107 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5108 for 0 "int0" and 4 "int32" sized registers.
5109 * gdbtypes.c (builtin_type_int0): Define.
5110 (build_gdbtypes): Initialize builtin_type_int0.
5111 * gdbtypes.h (builtin_type_int0): Declare.
5112
b2a02dda
SC
51132003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5114
5115 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5116 as characters are unsigned.
5117
fba3138e
DJ
51182003-06-22 Daniel Jacobowitz <drow@mvista.com>
5119
5120 PR gdb/1179
5121 * dwarfread.c (struct_type): Skip static fields without crashing.
5122
f6c8180b
AC
51232003-06-22 Andrew Cagney <cagney@redhat.com>
5124
5125 GDB 6.0 branch created.
f2c06f52
AC
5126 * README: Update.
5127 * PROBLEMS: Update. Empty.
5128 * NEWS: Update.
f6c8180b 5129
ae822768
DJ
51302003-06-22 Daniel Jacobowitz <drow@mvista.com>
5131
5132 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5133 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5134
261de166
AC
51352003-06-22 Andrew Cagney <cagney@redhat.com>
5136
5137 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5138 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5139 Velikov.
5140
30e94205
DJ
51412003-06-22 Daniel Jacobowitz <drow@mvista.com>
5142
5143 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5144 compilers.
5145
9e14d721
DJ
51462003-06-21 Daniel Jacobowitz <drow@mvista.com>
5147
5148 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5149 argument of val_print.
5150 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5151 to the address argument of baseclass_offset or target_read_memory.
5152 Do add it to the argument of cp_print_value_fields.
5153
a4b8ebc8
AC
51542003-06-21 Andrew Cagney <cagney@redhat.com>
5155
5156 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5157 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5158 instead of 0..NUM_REGS.
5159 (mips_register_reggroup_p): New function.
5160 (mips_pseudo_register_write): New function.
5161 (mips_pseudo_register_read): New function.
5162 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5163 based on the register's type.
5164 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5165 cooked.
5166 (mips_get_saved_register): Simplify. Assert that REGNO is a
5167 pseudo / cooked.
5168 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5169 (mips_register_type): Replace mips_register_virtual_type. Map
5170 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5171 when available.
5172 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5173 that the register is cooked / virtual.
5174 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5175 Only get the extra info when needed.
5176 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5177 (mips32_heuristic_proc_desc): Fetch the cooked register.
5178 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5179 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5180 (mips_print_register): Use gdbarch_register_type, instead of
5181 REGISTER_VIRTUAL_TYPE.
5182 (print_gp_register_row): Use gdbarch_register_type, instead of
5183 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5184 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5185 Print the pseudo / cooked registers.
5186 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5187 Print the pseudo / cooked registers.
5188 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5189 REG_NUM is pseudo / cooked.
5190 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5191 (mips_n32n64_xfer_return_value): Ditto.
5192 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5193 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5194 (mips_register_sim_regno): New function.
5195 (mips_gdbarch_init): Set deprecated_register_byte,
5196 register_group_p, pseudo_register_write, pseudo_register_read,
5197 register_sim_regno, and num_pseudo_regs. Set register_type,
5198 instead of register_virtual_type.
5199 * Makefile.in (mips-tdep.o): Update dependencies.
5200 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5201 REGISTER_VIRTUAL_TYPE.
5202 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5203 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5204 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5205 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5206 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5207
325ed089
DJ
52082003-06-21 Daniel Jacobowitz <drow@mvista.com>
5209
5210 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5211 * cli/cli-cmds.c: Include "gdb_vfork.h".
5212 (shell_escape): Use vfork.
5213
f0e7d0e8
AC
52142003-06-21 Andrew Cagney <cagney@redhat.com>
5215
c57bb9fa
AC
5216 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5217 32 bit floating-point register saves.
5218
6e51443a
AC
5219 * frame.h (deprecated_unwind_get_saved_register): Delete.
5220 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5221 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5222 and deprecated_get_next_frame_hack instead of
5223 deprecated_unwind_get_saved_register.
5224
ed183c7c
AC
5225 * mips-tdep.c (mips_dump_tdep): Do not print
5226 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5227
f0e7d0e8
AC
5228 * frame.c (get_frame_register): New function.
5229 (frame_unwind_register_signed): New function.
5230 (get_frame_register_signed): New function.
5231 (frame_unwind_register_unsigned): New function.
5232 (get_frame_register_unsigned): New function.
5233 * frame.h: Add comments on naming schema.
5234 (get_frame_register, frame_unwind_register_signed): Declare.
5235 (get_frame_register_signed, get_frame_register_signed): Declare.
5236 (frame_unwind_register_unsigned): Declare.
5237 (get_frame_register_unsigned): Declare.
5238
2224d941
TR
52392003-06-20 Theodore A. Roth <troth@openavr.org>
5240
5241 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5242
8619218d
TR
52432003-06-20 Theodore A. Roth <troth@openavr.org>
5244
5245 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5246 (avr_read_sp): Ditto.
5247
0b1b50c0
DJ
52482003-06-20 Daniel Jacobowitz <drow@mvista.com>
5249
5250 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5251 * config/arm/nm-linux.h: Likewise.
5252 * config/arm/tm-linux.h: Likewise.
5253 * config/ia64/nm-linux.h: Likewise.
5254 * config/ia64/tm-ia64.h: Likewise.
5255 * config/s390/tm-linux.h: Likewise.
5256 * config/s390/tm-s390.h: Likewise.
5257 * s390-nat.c: Likewise.
5258 * s390-tdep.c: Likewise.
5259
5260 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5261 * config/ia64/linux.mt: Likewise.
5262 * config/m68k/linux.mh: Likewise.
5263 * config/mips/linux.mt: Likewise.
5264 * config/powerpc/linux.mh: Likewise.
5265 * config/sh/linux.mt: Likewise.
5266
c8c18e65
KW
52672003-06-19 Kris Warkentin <kewarken@qnx.com>
5268
5269 * solib.c (solib_open): Change tests for whether to search
5270 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5271 comments.
5272
dcccef2e
TR
52732003-06-19 Theodore A. Roth <troth@openavr.org>
5274
5275 * avr-tdep.c (avr_frame_address): Delete function.
5276 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5277 set_gdbarch_frame_args_address.
5278
5861a190
AC
52792003-06-19 Andrew Cagney <cagney@redhat.com>
5280
5281 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5282 (REGISTER_CONVERT_FROM_TYPE): Delete.
5283 (mips_register_convert_to_type): Delete declaration.
5284 (mips_register_convert_from_type): Delete declaration.
5285 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5286 kernel/.
5287
0274a8ce
MS
52882003-06-19 Michael Snyder <msnyder@redhat.com>
5289
5290 * linux-nat.h: New file.
5291 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 5292 * lin-lwp.c: Include linux-nat.h.
0274a8ce 5293 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 5294 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
5295 (linux_make_note_section): Iterate over lwps instead of threads.
5296 (linux_do_thread_registers): Use lwp instead of merged pid.
5297 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 5298 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
5299 Add dependency on linux_nat_h.
5300
adf5f719
TR
53012003-06-19 Theodore A. Roth <troth@openavr.org>
5302
5303 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5304
6766a268
DJ
53052003-06-19 Daniel Jacobowitz <drow@mvista.com>
5306
5307 * varobj.c (get_type, get_target_type): Use check_typedef.
5308
1171114a
DJ
53092003-06-19 Daniel Jacobowitz <drow@mvista.com>
5310
5311 * breakpoint.c (insert_catchpoint): Call internal_error.
5312
adcf68a2
TR
53132003-06-19 Theodore A. Roth <troth@openavr.org>
5314
5315 * avr-tdep.c (avr_push_dummy_code): Delete function.
5316 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5317
ea67f13b
DJ
53182003-06-19 Daniel Jacobowitz <drow@mvista.com>
5319
5320 * arch-utils.c (default_prepare_to_proceed): Remove.
5321 (generic_prepare_to_proceed): Remove.
5322 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5323 (generic_prepare_to_proceed): Remove prototype.
5324 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5325 * gdbarch.c: Regenerate.
5326 * gdbarch.h: Regenerate.
5327 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5328 * hppah-nat.c (hppa_switched_threads): Remove.
5329 * infrun.c (prepare_to_proceed): New static function, copied from
5330 generic_prepare_to_proceed. Remove select_it argument.
5331 (proceed): Call prepare_to_proceed.
5332 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5333 variables.
5334 (ptrace_wait): Don't set the removed variables.
5335 (hppa_switched_threads): Remove.
5336 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5337 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5338 (lin_lwp_prepare_to_proceed): Remove prototype.
5339 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5340 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5341
4add8633
TR
53422003-06-18 Theodore A. Roth <troth@openavr.org>
5343
5344 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5345 trad-frame.h.
5346 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5347 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5348 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5349 (AVR_PROLOGUE_*): Enumerate prologue types.
5350 (struct frame_extra_info): Remove.
5351 (struct avr_unwind_cache): Define.
5352 (avr_write_sp): Delete function.
5353 (avr_read_fp): Ditto.
5354 (avr_init_extra_frame_info): Ditto.
5355 (avr_pop_frame): Ditto.
5356 (avr_frame_saved_pc): Ditto.
5357 (avr_saved_pc_after_call): Ditto.
5358 (avr_push_return_address): Ditto.
5359 (avr_frame_chain): Ditto.
5360 (avr_store_struct_return): Ditto.
5361 (avr_push_arguments): Ditto.
5362 (avr_scan_prologue): Update comments. Changed to set up the info for
5363 cache unwinding. Now returns end of prologue PC.
5364 (avr_skip_prologue): Better handling of functions lacking a prologue
5365 by using avr_scan_prologue.
5366 (avr_scan_arg_moves): New function.
5367 (avr_saved_regs_unwinder): Ditto.
5368 (avr_frame_unwind_cache): Ditto.
5369 (avr_unwind_pc): Ditto.
5370 (avr_frame_this_id): Ditto.
5371 (avr_frame_prev_register): Ditto.
5372 (avr_frame_p): Ditto.
5373 (avr_frame_base_address ): Ditto.
5374 (avr_unwind_dummy_id): Ditto.
5375 (avr_push_dummy_code): Ditto.
5376 (push_stack_item): Ditto.
5377 (pop_stack_item): Ditto.
5378 (avr_push_dummy_call): Ditto.
5379 (struct stack_item): Define.
5380 (avr_frame_unwind): Declare structure.
5381 (avr_frame_base): Ditto.
5382 (avr_gdbarch_init): Remove calls to
5383 set_gdbarch_deprecated_init_frame_pc,
5384 set_gdbarch_deprecated_target_read_fp,
5385 set_gdbarch_deprecated_dummy_write_sp,
5386 set_gdbarch_deprecated_fp_regnum,
5387 set_gdbarch_deprecated_push_arguments,
5388 set_gdbarch_deprecated_push_return_address,
5389 set_gdbarch_deprecated_pop_frame,
5390 set_gdbarch_deprecated_store_struct_return,
5391 set_gdbarch_deprecated_frame_init_saved_regs,
5392 set_gdbarch_deprecated_init_extra_frame_info,
5393 set_gdbarch_deprecated_frame_chain,
5394 set_gdbarch_deprecated_frame_saved_pc,
5395 set_gdbarch_deprecated_saved_pc_after_call.
5396 Add calls to set_gdbarch_push_dummy_call,
5397 set_gdbarch_push_dummy_code,
5398 frame_unwind_append_predicate,
5399 frame_base_set_default,
5400 set_gdbarch_unwind_dummy_id,
5401 set_gdbarch_unwind_pc.
5402 Wrap a long line.
5403
7be04a68
MS
54042003-06-18 Corinna Vinschen <vinschen@redhat.com>
5405
5406 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5407 registers for H8/300S.
5408 (h8300_print_registers_info): Ditto.
8ffd9b1b 5409 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 5410
ae087d01
DJ
54112003-06-18 Daniel Jacobowitz <drow@mvista.com>
5412
5413 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5414 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5415 (lin_lwp_wait): Likewise. Update comments.
5416 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5417 (pull_pid_from_list, linux_record_stopped_pid): New.
5418
07d8f827
SC
54192003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5420
5421 * ada-lang.c (scan_discrim_bound): Name first argument.
5422 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5423 declared by ALL_BLOCK_SYMBOLS.
5424
7cb47b14
SC
54252003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5426
5427 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5428 ("regcache.h"): Include it.
5429 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5430
6ad8ae5c
DJ
54312003-06-17 Daniel Jacobowitz <drow@mvista.com>
5432
5433 * NEWS: Mention gdbserver detach change and "disconnect" command.
5434 * infcmd.c (disconnect_command): New function.
5435 (_initialize_infcmd): Add ``disconnect'' command.
5436 * remote.c (remote_async_detach): Delete.
5437 (remote_detach): Merge remote_async_detach.
5438 (remote_disconnect): New.
5439 (init_remote_ops): Set to_disconnect.
5440 (init_remote_cisco_ops): Likewise.
5441 (init_remote_async_ops): Likewise. Use remote_detach.
5442 * target.c (cleanup_target): Default to_disconnect.
5443 (update_current_target): Inherit to_disconnect.
5444 (target_disconnect, debug_to_disconnect): New functions.
5445 (setup_target_debug): Set to_disconnect.
5446 * target.h (struct target_ops): Add to_disconnect.
5447 (target_disconnect): Add prototype.
5448
687595f9
DJ
54492003-06-17 Daniel Jacobowitz <drow@mvista.com>
5450
5451 * breakpoint.c (insert_catchpoint): New function.
5452 (insert_breakpoints): Use catch_exceptions to call
5453 insert_catchpoint. Disable catchpoints if they fail to insert.
5454
29239a8f
DJ
54552003-06-17 Daniel Jacobowitz <drow@mvista.com>
5456
5457 * symfile.c (reread_symbols): Clear sym_private.
5458
2cdf3c63
AC
54592003-06-17 Andrew Cagney <cagney@redhat.com>
5460
5461 * trad-frame.h (struct frame_info): Add opaque declaration.
5462 * remote-fileio.h (struct cmd_list_element): Add opaque
5463 declaration.
5464 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5465 comments.
5466
cf0e1e0d
DJ
54672003-06-17 Daniel Jacobowitz <drow@mvista.com>
5468
5469 * remote.c (remote_prepare_to_store): Replace call to
5470 deprecated_read_register_bytes with multiple regcache_raw_read
5471 calls.
5472
192cdb19
KW
54732003-06-17 Kris Warkentin <kewarken@qnx.com>
5474
5475 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5476 (nto_find_and_open_solib): Likewise.
5477 (nto_init_solib_absolute_prefix): Likewise.
5478 (_initialize_nto_tdep): Fix indentation.
5479
89929b45
KW
54802003-06-17 Kris Warkentin <kewarken@qnx.com>
5481
5482 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5483
46019f27
KW
54842003-06-17 Kris Warkentin <kewarken@qnx.com>
5485
5486 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5487
1a38736e
JB
54882003-06-17 Jim Blandy <jimb@redhat.com>
5489
5490 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5491
3605c34a
TR
54922003-06-16 Theodore A. Roth <troth@openavr.org>
5493
5494 * avr-tdep.c (avr_extract_return_value): New function.
5495 (avr_gdbarch_init): Set extract_return_value method.
5496
870b3035
AC
54972003-06-16 Andrew Cagney <cagney@redhat.com>
5498
5499 * frame.h (deprecated_get_next_frame_hack): Declare.
5500 * frame.c (legacy_saved_regs_prev_register): Only require
5501 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5502 there are always saved regs.
5503 (deprecated_generic_get_saved_register): Do not require
5504 DEPRECATED_FRAME_INIT_SAVED_REGS.
5505 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5506 use frame ID unwind instead.
5507 (deprecated_get_next_frame_hack): New function.
5508
63d47a7d
CV
55092003-06-16 Corinna Vinschen <vinschen@redhat.com>
5510
5511 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5512 (h8300_push_dummy_call): ...this function. Some minor optimization.
5513 (h8300_push_return_address): Remove.
5514 (h8300_gdbarch_init): Remove calls to
5515 set_gdbarch_deprecated_dummy_write_sp,
5516 set_gdbarch_deprecated_push_arguments and
5517 set_gdbarch_deprecated_push_return_address.
5518 Add call to set_gdbarch_push_dummy_call.
5519
4bb1dc5e
CV
55202003-06-16 Corinna Vinschen <vinschen@redhat.com>
5521
5522 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5523 (E_PSEUDO_EXR_REGNUM): Ditto.
5524 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 5525 registers into safe registers.
4bb1dc5e
CV
5526 (h8300_skip_prologue): Check for stm instruction to push registers
5527 used for register variables onto stack.
5528 (gdb_print_insn_h8300): Remove.
5529 (h8300_examine_prologue): Add a comment.
5530 (h8300_register_name): Take pseudo registers into account.
5531 (h8300s_register_name): Ditto.
5532 (h8300sx_register_name): Ditto.
5533 (h8300_print_register): Ditto.
5534 (h8300_print_registers_info): Define "nice" printing order.
5535 (h8300_saved_pc_after_call): Take pseudo registers into account.
5536 (h8300_register_type): Ditto. Return type used for remote connection
5537 when requesting real CCR or EXR register, return actual type when
5538 requesting pseudo CCR or EXR.
5539 (h8300_pseudo_register_read): New function.
5540 (h8300_pseudo_register_write): Ditto.
5541 (h8300_dbg_reg_to_regnum): Ditto.
5542 (h8300s_dbg_reg_to_regnum): Ditto.
5543 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5544 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5545 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5546 set_gdbarch_print_insn architecture dependent.
5547 Call set_gdbarch_pseudo_register_read and
5548 set_gdbarch_pseudo_register_write.
5549 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5550
a59fe496
AC
55512003-06-16 Andrew Cagney <cagney@redhat.com>
5552
5553 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5554 * gdbarch.h, gdbarch.c: Re-generate.
5555 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5556 * s390-tdep.c (s390_gdbarch_init): Update.
5557 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5558 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5559 * mips-tdep.c (mips_gdbarch_init): Update.
5560 * mcore-tdep.c (mcore_gdbarch_init): Update.
5561 * cris-tdep.c (cris_gdbarch_init): Update.
5562 * infcall.c (call_function_by_hand): Update.
5563 * ia64-tdep.c (ia64_push_arguments): Update comment.
5564 * frame.c (legacy_get_prev_frame): Do not assume
5565 SAVE_DUMMY_FRAME_TOS_P.
5566 * dummy-frame.c (find_dummy_frame): Update comment.
5567
6f4e5a41
AC
55682003-06-16 Andrew Cagney <cagney@redhat.com>
5569
5570 * regcache.c (do_cooked_read): Do not use register_valid_p.
5571
72fab697
TR
55722003-06-15 Theodore A. Roth <troth@openavr.org>
5573
5574 * avr-tdep.c (avr_register_type): Remove a blank line.
5575 (avr_scan_prologue): Correct some comments.
5576
e3d8b004
TR
55772003-06-15 Theodore A. Roth <troth@openavr.org>
5578
5579 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5580 prologue types.
8ffd9b1b 5581 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
5582 option.
5583 Add code to scan -mcall-prologues for mega devices.
5584
866b76ea
TR
55852003-06-15 Theodore A. Roth <troth@openavr.org>
5586
5587 * avr-tdep.c (avr_register_byte): Delete function.
5588 (avr_register_raw_size): Delete function.
5589 (avr_register_virtual_size): Delete function.
5590 (avr_register_virtual_type): Delete function.
5591 (avr_register_type): New function.
5592 (avr_address_to_pointer): Remove unused code.
5593 (avr_read_fp): Need to read FP as two separate bytes due to change to
5594 avr_register_type() usage.
5595 (avr_gdbarch_init): Don't set deprecated_register_size.
5596 Don't set deprecated_register_bytes.
5597 Don't set deprecated_register_byte.
5598 Don't set deprecated_register_raw_size.
5599 Don't set deprecated_max_register_raw_size.
5600 Don't set deprecated_register_virtual_size.
5601 Don't set deprecated_max_register_virtual_size.
5602 Don't set deprecated_register_virtual_type.
5603 Set register_type method.
5604
3993f6b1
DJ
56052003-06-15 Daniel Jacobowitz <drow@mvista.com>
5606
5607 * Makefile.in (linux-nat.o): Add rule.
5608 * linux-nat.c: New file.
5609 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5610 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5611 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5612 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5613 * config/arm/linux.mh (NATDEPFILES): Likewise.
5614 * config/i386/linux.mh (NATDEPFILES): Likewise.
5615 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5616 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5617 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5618 * config/mips/linux.mh (NATDEPFILES): Likewise.
5619 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5620 * config/s390/s390.mh (NATDEPFILES): Likewise.
5621 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5622
786a90bb
MK
56232003-06-15 Mark Kettenis <kettenis@gnu.org>
5624
5625 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5626 replace out-of-date comment.
5627
3bd3f01e
AC
56282003-06-15 Andrew Cagney <cagney@redhat.com>
5629
5630 * rdi-share/host.h (Fail): Change to a varargs function.
5631 * remote-rdi.c (Fail): Update.
8ffd9b1b 5632
de5b9bb9
MK
56332003-06-15 Mark Kettenis <kettenis@gnu.org>
5634
5635 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5636 (i386_convert_register_p, i386_register_to_value,
5637 i386_register_from_value): Handle types longer than 8 bytes.
5638
d532c08f
MK
56392003-06-15 Mark Kettenis <kettenis@gnu.org>
5640
5641 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5642 Move floating-point code to new function in i387-tdep.c.
5643 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5644 New functions containing code moved here from i386-tdep.c.
5645 * i387-tdep.h: Add opaque declaration for `struct type'.
5646 (i387_register_to_value, i387_value_to_register): New prototypes.
5647 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5648 (x86_64_init_abi): Set convert_register_p, register_to_value and
5649 value_to_register here.
8ffd9b1b 5650
42c466d7
AC
56512003-06-14 Andrew Cagney <cagney@redhat.com>
5652
5653 * mips-tdep.c (mips_register_to_value): Make static.
5654 (mips_value_to_register): Make static.
5655 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5656 * ia64-tdep.c (ia64_register_raw_size): Make static.
5657 (ia64_register_virtual_size): Make static.
5658 (ia64_register_byte): Make static.
5659 * i387-tdep.c: Include "i387-tdep.h".
5660 (print_387_control_word): Delete function.
5661 (print_387_status_word): Delete function.
5662 (print_387_status_bits): Delete function.
5663 (print_387_control_bits): Delete function.
5664 * Makefile.in (i387-tdep.o): Update dependencies.
5665 * rdi-share/host.h (Fail): Declare.
5666 * remote-rdi.c (Fail): Update to match declaration.
5667
2a9cda49
AC
56682003-06-14 Andrew Cagney <cagney@redhat.com>
5669
5670 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5671 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5672 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5673 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5674 * README: Delete reference to remote-array.
5675 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5676 (remote-array.o): Delete target.
5677 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5678 * remote-array.c: Delete file.
5679
ff2e87ac
AC
56802003-06-14 Andrew Cagney <cagney@redhat.com>
5681 Mark Kettenis <kettenis@gnu.org>
5682
5683 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5684 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5685 parameter with "frame".
5686 * gdbarch.h, gdbarch.c: Re-generate.
5687 * frame.h (put_frame_register): Declare.
5688 * frame.c (put_frame_register): New function.
5689 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5690 (legacy_register_to_value): Rewrite, use "frame" to get the
5691 register value.
5692 (legacy_value_to_register): Rewrite, use "frame" to find the
5693 register's location before storing.
5694 * arch-utils.h (legacy_convert_register_p): Update.
5695 (legacy_register_to_value, legacy_value_to_register): Update.
5696 * findvar.c (value_from_register): Rewrite, eliminate use of
5697 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5698 "frame" to REGISTER_TO_VALUE.
5699 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5700 lval_reg_frame_relative + lval_register branch of the switch. Do
5701 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5702 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5703 I386_EDI_REGNUM): New defines.
5704 (i386_next_regnum, i386_convert_register_p,
5705 i386_register_to_value, i386_value_to_register): New functions.
5706 (i386_register_convertible, i386_register_convert_to_virtual,
5707 i386_convert_to_raw): Remove functions.
5708 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5709 value_to_register instead of register_convertible,
5710 register_convert_to_virtual and register_convert_to_raw.
5711 * mips-tdep.c (mips_convert_register_p): New function.
5712 (mips_value_to_register): Replace mips_register_convert_from_type.
5713 (mips_register_to_value): Replace mips_register_convert_to_type.
5714 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5715 register_to_value.
5716 * alpha-tdep.c (alpha_convert_register_p): Update.
5717 (alpha_value_to_register): Update, store the register.
5718 (alpha_register_to_value): Update, fetch the register.
5719
98be1e77
TR
57202003-06-14 Theodore A. Roth <troth@openavr.org>
5721
5722 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5723 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5724 Don't set deprecated_call_dummy_words.
5725 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5726 Don't set remote_translate_xfer_address.
5727 (avr_io_reg_read_command): Remove commented out debug printf.
5728 Wrap a long line.
5729
57bc6122
TR
57302003-06-14 Theodore A. Roth <troth@openavr.org>
5731
5732 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5733 causes gdb to seg fault.
5734
eb01fc62
DJ
57352003-06-14 Daniel Jacobowitz <drow@mvista.com>
5736
5737 * sparc-nat.c (fetch_inferior_registers): Correct
5738 a reference to "registers".
5739
3b3e6bee
DJ
57402003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5741
5742 * Makefile.in (exc_request_U_h): Define
5743 (exc_request_S_h): Likewise.
5744 (msg_reply_S_h): Likewise.
5745 (msg_U_h): Likewise.
5746 (notify_S_h): Likewise.
5747 (process_reply_S_h): Likewise.
5748 (gnu-nat.o): Depend on gdb_obstack_h
5749 * gnu-nat.c: Include "gdb_obstack.h".
5750
b8de8283
AC
57512003-06-13 Andrew Cagney <cagney@redhat.com>
5752
5753 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5754 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 5755
f3be58bc
AC
57562003-06-13 Andrew Cagney <cagney@redhat.com>
5757
5758 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5759 when deprecated REGISTER macros can be deleted.
5760 * gdbarch.h, gdbarch.c: Re-generate.
5761
4c0122c8
JB
57622003-06-13 Jim Blandy <jimb@redhat.com>
5763
5764 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5765 Linux entry point symbols for _dl_debug_state, too.
5766
3e210248
AC
57672003-06-13 Andrew Cagney <cagney@redhat.com>
5768
5769 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5770 available, do not use the FP register, and always save the TOS.
5771 * dummy-frame.c (dummy_frame_this_id): Do not assert
5772 SAVE_DUMMY_FRAME_TOS.
5773 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5774 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5775 (i386_push_dummy_call): Add 8 to the returned SP.
5776 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5777 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5778 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5779 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5780 (x86_64_push_dummy_call): Return "sp + 16".
5781 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5782 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5783 save_dummy_frame_tos.
5784
0b65af49
JB
57852003-06-13 Jim Blandy <jimb@redhat.com>
5786
5787 * frv-tdep.c (frv_use_struct_convention): Delete static
5788 declaration for function deleted in my change of 2003-06-12.
5789
4ea2465e
TR
57902003-06-13 Theodore A. Roth <troth@openavr.org>
5791
5792 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5793 (avr_pointer_to_address): Shift code addrs left 1 bit.
5794 (avr_convert_from_func_ptr_addr): Delete function since operation is
5795 better handled by avr_address_to_pointer and avr_pointer_to_address.
5796 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5797
1581182a
MK
57982003-06-13 Mark Kettenis <kettenis@gnu.org>
5799
5800 From Kelley Cook <kelleycook@wideopenwest.com>:
5801 * configure.host: Accept i[34567]86 variants.
5802 * configure.tgt: Likewise.
5803 * nlm/configure.in: Likewise.
5804 * nlm/configure: Regenerated.
5805
7aa1783e
RE
58062003-06-13 Richard Earnshaw <rearnsha@arm.com>
5807
5808 * arm-tdep.c (solib-svr4.h): Dont' include it.
5809 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5810 * arm-linux-tdep.c: ... here. Make static.
5811 (arm_linux_init_abi): Register it.
5812 (solib-svr4.h): Include it.
5813 * Makefile.in: Update dependencies.
5814 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5815 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5816
0261a0d0
CV
58172003-06-13 Corinna Vinschen <vinschen@redhat.com>
5818
5819 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5820 indicate registers used for return values.
5821 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5822 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5823 members.
5824 (h8300_init_extra_frame_info): Ditto.
5825 (h8300_frame_locals_address): Removed.
5826 (h8300_frame_args_address): Removed.
5827 (h8300_extract_return_value): Use new regcache structure. Only care
5828 for 16 bit CPUs.
5829 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5830 (h8300_store_return_value): Use new regcache structure. Only care
5831 for 16 bit CPUs.
5832 (h8300h_store_return_value): Same function for 32 bit CPUs.
5833 (h8300_store_struct_return): Removed.
5834 (h8300_extract_struct_value_address): Use new regcache structure.
5835 (h8300h_extract_struct_value_address): Removed.
5836 (h8300_push_dummy_code): New function.
5837 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5838 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5839 set_gdbarch_store_return_value architecture dependent.
5840 Call set_gdbarch_push_dummy_code and
5841 set_gdbarch_extract_struct_value_address.
5842 Remove calls to set_gdbarch_frame_args_address,
5843 set_gdbarch_frame_locals_address,
5844 set_gdbarch_deprecated_store_struct_return,
5845 set_gdbarch_deprecated_extract_return_value,
5846 set_gdbarch_deprecated_extract_struct_value_address,
5847 set_gdbarch_deprecated_call_dummy_words and
5848 set_gdbarch_deprecated_sizeof_call_dummy_words.
5849
055c394a
CV
58502003-06-13 Corinna Vinschen <vinschen@redhat.com>
5851
5852 * h8300-tdep.c (h8300_register_byte): Remove.
5853 (h8300h_register_byte): Remove.
5854 (h8300_register_virtual_type): Remove. Substitute by...
5855 (h8300_register_type): New function.
5856 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5857 (h8300h_extract_struct_value_address): Ditto.
5858 (h8300_gdbarch_init): Drop calls to
5859 set_gdbarch_deprecated_register_byte and
5860 set_gdbarch_deprecated_register_virtual_type.
5861 Add call to set_gdbarch_register_type.
5862
9c04cab7
AC
58632003-06-13 Andrew Cagney <cagney@redhat.com>
5864
5865 * gdbarch.sh: Update comments on registers.
5866 (deprecated_register_byte): Rename register_byte.
5867 (deprecated_register_raw_size): Rename register_raw_size.
5868 (deprecated_register_virtual_size): Rename register_virtual_size.
5869 (deprecated_register_virtual_type): Rename register_virtual_type.
5870 * gdbarch.h, gdbarch.c: Re-generate.
5871 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5872 * vax-tdep.c (vax_gdbarch_init): Update.
5873 * v850-tdep.c (v850_gdbarch_init): Update.
5874 * sparc-tdep.c (sparc_gdbarch_init): Update.
5875 * sh-tdep.c (sh_gdbarch_init): Update.
5876 * s390-tdep.c (s390_gdbarch_init): Update.
5877 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5878 * ns32k-tdep.c: Update.
5879 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5880 * mips-tdep.c (mips_gdbarch_init): Update.
5881 * mcore-tdep.c (mcore_gdbarch_init): Update.
5882 * m68k-tdep.c (m68k_gdbarch_init): Update.
5883 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5884 * ia64-tdep.c (ia64_gdbarch_init): Update.
5885 * hppa-tdep.c (hppa_gdbarch_init): Update.
5886 * h8300-tdep.c (h8300_gdbarch_init): Update.
5887 * frv-tdep.c (frv_gdbarch_init): Update.
5888 * cris-tdep.c (cris_gdbarch_init): Update.
5889 * avr-tdep.c (avr_gdbarch_init): Update.
5890 * alpha-tdep.c (alpha_gdbarch_init): Update.
5891 * arm-tdep.c (arm_gdbarch_init): Update.
5892
b060cbea
AC
58932003-06-13 Andrew Cagney <cagney@redhat.com>
5894
5895 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5896 mips_o32_use_struct_convention with always_use_struct_convention.
5897
0fc9922a
DC
58982003-06-12 David Carlton <carlton@kealia.com>
5899
5900 * cp-namespace.c (cp_set_block_scope): Comment out
5901 processing_has_namespace_info branch.
5902
1fd35568
JB
59032003-06-12 Jim Blandy <jimb@redhat.com>
5904
f470a70a
JB
5905 Recognize and skip 64-bit PowerPC Linux linkage functions.
5906 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5907 insn_pattern, insns_match_pattern, d_field, ds_field): New
5908 functions, macros, and types for working with PPC instructions.
5909 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5910 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5911 ppc64_skip_trampoline_code): New functions, variables, and macros
5912 for recognizing and skipping linkage functions.
5913 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5914 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5915
49ff75ad
JB
5916 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5917 register offsets for both the 32- and 64-bit interfaces.
5918
bd918c83
JB
5919 Actually finish the job started by my change of 2003-05-29.
5920 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5921 other #definition of this.
5922 (ppc_linux_skip_trampoline_code): Remove declaration.
5923 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5924 static.
5925 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5926 method for GDBARCH.
5927
5928 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5929 'long' on ppc64-*-linux*.
5930
f8c59253
JB
5931 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5932 isn't #defined, assume the register doesn't exist: act as if
5933 tdep->ppc_mq_regnum were -1.
5934
8fbb30b1
JB
5935 * configure.host, configure.tgt: Add entries for
5936 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5937 powerpc/linux.mt.
5938 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5939 New files.
5940
1fd35568
JB
5941 * arch-utils.c (always_use_struct_convention): New function.
5942 * arch-utils.h (always_use_struct_convention): New prototype.
5943 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5944 (alpha_gdbarch_init): Register always_use_struct_convention,
5945 instead of alpha_use_struct_convention.
5946 * cris-tdep.c (cris_use_struct_convention): Delete.
5947 (cris_gdbarch_init): Register always_use_struct_convention,
5948 instead of cris_use_struct_convention.
5949 * frv-tdep.c (frv_use_struct_convention): Delete.
5950 (frv_gdbarch_init): Register always_use_struct_convention,
5951 instead of frv_use_struct_convention.
5952 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5953 (h8300_gdbarch_init): Register always_use_struct_convention,
5954 instead of h8300_use_struct_convention.
e3305dd9 5955 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
5956 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5957 instead of mips_o32_use_struct_convention.
5958
e14e6e9c
AC
59592003-06-12 Andrew Cagney <cagney@redhat.com>
5960
5961 * wince.c: Include "mips-tdep.h".
5962 * mips-tdep.h (mips_next_pc): Declare.
5963 * mcore-tdep.c: Make more local functions static.
5964 * Makefile.in (wince.o): Update dependencies.
5965
2335f48e
DC
59662003-06-12 David Carlton <carlton@kealia.com>
5967
5968 * symtab.c (lookup_symbol_aux_minsyms): Replace
5969 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5970 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5971 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5972 SYMBOL_NATURAL_NAME.
5973
f70a7d61
AS
59742003-06-12 Andreas Schwab <schwab@suse.de>
5975
5976 * Makefile.in (tuiDisassem.o): Update dependencies.
5977
b6429628
DC
59782003-06-12 David Carlton <carlton@bactrian.org>
5979
5980 * symtab.h: Delete declaration of make_symbol_overload_list.
5981 Add declaration of lookup_partial_symbol.
5982 * symtab.c (remove_params): Move to cp-support.c.
5983 (overload_list_add_symbol, make_symbol_overload_list)
5984 (sym_return_val_size, sym_return_val_index): Ditto.
5985 (lookup_partial_symbol): Make extern.
5986 * cp-support.h: Add declaration of make_symbol_overload_list.
5987 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5988 symtab.h, and block.h.
5989 (remove_params): Move here from symtab.c.
5990 (overload_list_add_symbol, make_symbol_overload_list)
5991 (sym_return_val_size, sym_return_val_index): Ditto.
5992 * valops.c: Include cp-support.h.
5993 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5994 frame_h, and block_h.
5995 (valops.o): Depend on cp_support_h.
5996
084edea5
CV
59972003-06-12 Corinna Vinschen <vinschen@redhat.com>
5998
5999 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6000 substitute by NUM_REGS throughout.
6001 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6002 (h8300s_register_name): New function for H8S registers.
6003 (h8300sx_register_name): Ditto for H8SX registers.
6004 (h8300_print_register): Revise register printing, avoid depending
6005 on 32 bit long.
0261a0d0 6006 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
6007 (h8300h_register_byte): New function for any other architecture.
6008 (h8300_register_raw_size): Remove.
6009 (h8300_register_virtual_type): Revise to return actually useful
6010 type.
6011 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6012 (h8300h_extract_struct_value_address): New function for any other
6013 architecture.
6014 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6015 set_gdbarch_register_name, set_gdbarch_register_byte,
6016 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6017 Remove calls to set_gdbarch_deprecated_register_size,
6018 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6019 set_gdbarch_deprecated_max_register_raw_size,
6020 set_gdbarch_register_virtual_size and
6021 set_gdbarch_deprecated_max_register_virtual_size entirely.
6022 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6023 set_gdbarch_long_double_bit.
6024
06194148
JJ
60252003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6026
8ffd9b1b
AJ
6027 * doublest.c (convert_doublest_to_floatformat): When dealing
6028 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
6029 processing a full 32 bits of mantissa.
6030
de4f826b
DC
60312003-06-11 David Carlton <carlton@bactrian.org>
6032
6033 * dictionary.h: New.
6034 * dictionary.c: New.
6035 * block.h: Add opaque declaration for struct dictionary.
6036 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6037 'sym' members.
6038 (BLOCK_DICT): New macro.
6039 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6040 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6041 BLOCK_SHOULD_SORT.
6042 (ALL_BLOCK_SYMBOLS): Update definition.
6043 * Makefile.in (SFILES): Add dictionary.c.
6044 (dictionary_h): New.
6045 (COMMON_OBS): Add dictionary.o.
6046 (dictionary.o): New.
6047 (ada-lang.o): Depend on dictionary_h.
6048 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6049 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6050 (mi-cmd-stack.o): Ditto.
6051 (gdbtk-cmds.o): Update dependencies.
6052 (gdbtk-stack.o): Ditto.
6053 * ada-lang.c: Include dictionary.h.
6054 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6055 (fill_in_ada_prototype, debug_print_block): Ditto.
6056 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6057 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6058 'is_sorted'.
6059 * mdebugread.c: Include dictionary.h.
6060 (struct parse_stack): Delete 'maxsyms' member.
6061 (parse_symbol): Update calls to new_block. Delete calls to
6062 shrink_block. Use dictionary methods.
6063 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6064 Update calls to new_symtab. Don't maintain maxsyms data.
6065 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6066 (add_symbol): Just call dict_add_symbol.
6067 (new_symtab): Delete 'maxsyms' argument.
6068 (new_symtab): Update calls to new_block.
6069 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6070 (shrink_block): Delete function.
6071 (fixup_sigtramp): Update call to new_block. Add symbol via
6072 dict_add_symbol.
6073 * jv-lang.c: Include dictionary.h.
6074 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6075 appropriately. Set class_symtab->free_func. Make sure the
6076 blockvector is big enough to hold two blocks.
6077 (add_class_symtab_symbol): Use dictionary methods.
6078 (free_class_block): New function.
6079 (type_from_class): Replace explicit iteration by
6080 ALL_BLOCK_SYMBOLS.
6081 * symtab.h (struct symtab): Replace 'free_ptr' method by
6082 'free_func'.
6083 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6084 sort_symtab_syms.
6085 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6086 sort_symtab_syms.
6087 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6088 Include dictionary.h.
6089 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6090 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6091 sort_symtab_syms.
6092 * objfiles.c: Include dictionary.h.
6093 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6094 * buildsym.c: Include dictionary.h.
6095 (finish_block): Use dictionary methods.
6096 (end_symtab): Set free_func to NULL, not free_ptr.
6097 * tracepoint.c: Include dictionary.h.
6098 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6099 (scope_info): Ditto.
6100 * stack.c: Include dictionary.h.
6101 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6102 (print_block_frame_labels, print_frame_arg_vars)
6103 (print_frame_args): Ditto.
6104 * symmisc.c (free_symtab_block): Use dictionary methods.
6105 (dump_symtab): Ditto.
6106 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6107 Include dictionary.h.
6108 * symfile.h: Delete declarations of sort_block_syms,
6109 sort_symtab_syms.
6110 * symfile.c (sort_block_syms): Delete.
6111 (sort_symtab_syms): Delete.
6112 * symtab.c: Include dictionary.h.
6113 (lookup_block_symbol): Use dictionary iterators.
6114 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6115 (search_symbols, make_symbol_completion_list): Ditto.
6116 (make_symbol_overload_list): Ditto.
6117 * valops.c (value_of_local): Use dict_empty.
6118 Include dictionary.h.
6119
a31f978c
JB
61202003-06-11 J. Brobecker <brobecker@gnat.com>
6121
6122 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6123
526e70c0
DC
61242003-06-11 David Carlton <carlton@bactrian.org>
6125
6126 * block.h (BLOCK_SHOULD_SORT): Delete.
6127 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6128 blocks.
6129 * ada-lang.c (ada_add_block_symbols): Ditto.
6130 * symfile.c (sort_block_syms): Delete.
6131 (sort_symtab_syms): Ditto.
6132 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6133 declarations.
6134 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6135 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6136 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6137 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6138 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6139 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6140 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6141
33c08150
JJ
61422003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6143
8ffd9b1b 6144 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
6145 bits to 128.
6146
781a750d
AC
61472003-06-11 Andrew Cagney <cagney@redhat.com>
6148
6149 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6150 REGISTER_CONVERTIBLE.
6151 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6152 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6153 * gdbarch.h, gdbarch.c: Re-generate.
6154 * arch-utils.h (deprecated_register_convertible_not): Rename
6155 generic_register_convertible_not.
6156 * arch-utils.c (deprecated_register_convertible_not): Rename
6157 generic_register_convertible.
6158 (legacy_convert_register_p, legacy_register_to_value): Update.
6159 * sh-tdep.c (sh64_push_arguments): Update.
6160 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6161 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6162 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6163 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6164 * arch-utils.c (legacy_value_to_register): Update.
6165 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6166 (rs6000_register_convert_to_raw): Make parameter "from" const.
6167 * mips-tdep.c (mips_gdbarch_init): Update.
6168 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6169 * infcmd.c (default_print_registers_info): Update.
6170 * ia64-tdep.c (ia64_gdbarch_init): Update.
6171 (ia64_register_convert_to_raw): Make parameter "from" const.
6172 * i386-tdep.c (i386_gdbarch_init): Update.
6173 (i386_register_convert_to_raw): Update.
6174
cd90e54f
AC
61752003-06-11 Andrew Cagney <cagney@redhat.com>
6176
6177 * remote-fileio.c: Include "remote-fileio.h".
6178 * Makefile.in (remote-fileio.o): Update dependencies.
6179 (remote_fileio_h): Fix typo.
6180
a78f21af
AC
61812003-06-11 Andrew Cagney <cagney@redhat.com>
6182
6183 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6184 (xstormy16_save_dummy_frame_tos): Make static.
6185 (_initialize_xstormy16_tdep): Add declaration.
6186 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6187 * v850-tdep.c: Make local functions static.
6188 (_initialize_v850_tdep): Add declaration.
6189 * sparc-tdep.c: Make local functions static.
6190 (_initialize_sparc_tdep): Add declaration.
6191 * sh-tdep.c: Make local functions static.
6192 (_initialize_sh_tdep): Add declaration.
6193 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6194 * s390-tdep.c: Make local functions static.
6195 (_initialize_s390_tdep): Add declaration.
6196 * dbxread.c (find_stab_function_addr): Make static.
6197 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6198 * ocd.c (_initialize_remote_ocd): Add declaration.
6199 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6200 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6201 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6202 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6203 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6204 * remote-array.c (_initialize_array): Add declaration.
6205 (_initialize_remote_monitors): Add declaration.
6206 * remote-mips.c: Make local functions static.
6207 (_initialize_remote_mips): Add declaration.
6208 * mcore-tdep.c: Make all local functions static.
6209 (_initialize_mcore_tdep): Add declaration.
6210 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6211 * abug-rom.c (_initialize_abug_rom): Add declaration.
6212 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6213 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6214 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6215 * remote-est.c (_initialize_est): Add declaration.
6216 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6217 (m68hc11_call_dummy_address): Make static.
6218 * ia64-tdep.c: Make local functions static.
6219 (_initialize_ia64_tdep): Add declaration.
6220 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6221 * monitor.c (monitor_wait_filter): Make static.
6222 (_initialize_remote_monitors): Add declaration.
6223 * remote-hms.c (_initialize_remote_hms): Add declaration.
6224 * remote-e7000.c (fetch_regs_from_dump): Make static.
6225 (expect_n): Make static.
6226 (_initialize_remote_e7000): Add declaration.
6227 * ser-e7kpc.c: Always include "defs.h".
6228 (_initialize_ser_e7000pc): Add declaration.
6229 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6230 * cris-tdep.c: Make all but one function static.
6231 (_initialize_cris_tdep): Add declaration.
6232 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6233 * solib.c (update_solib_list): Make static.
6234 (_initialize_solib): Add declaration.
6235 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6236 (_initialize_avr_tdep): Add declaration.
6237 * remote-rdi.c (voiddummy): Make static.
6238 (_initialize_remote_rdi): Add declaration.
6239 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6240 * remote-rdp.c (send_rdp): Make static.
6241 (_initialize_remote_rdp): Add declaration.
6242 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6243
cbcdb1f5
CV
62442003-06-11 Corinna Vinschen <vinschen@redhat.com>
6245
6246 * remote-fileio.c: Make ari happy.
6247
a191ea8d
JB
62482003-06-10 J. Brobecker <brobecker@gnat.com>
6249
6250 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6251 fetching the trailing bytes of the buffer we are about to write.
6252
0ef75e11
AC
62532003-06-10 Andrew Cagney <cagney@redhat.com>
6254
6255 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6256 * Makefile.in (remote-fileio.o): Update dependencies.
6257 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6258 include <setjmp.h>, or <sys/types.h> conditional on USG.
6259 (remote_fio_jmp_buf): Delete global variable.
6260
449092f6 62612003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 6262 Martin M. Hunt <hunt@redhat.com>
449092f6 6263
559fa028
AC
6264 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6265 (SFILES): Add remote-fileio.c.
6266 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6267 dependencies for building remote.o.
449092f6
CV
6268 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6269 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 6270 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
6271 static storage class.
6272 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6273 'F' packet.
6274 (_initialize_remote): Call initialize_remote_fileio().
6275 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
6276 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6277 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6278 (captured_main): Initialize new ui_files.
6279 * ui-file.c: Add read and fgets input functions.
6280 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6281 (null_file_read): New function.
6282 (ui_file_read): New function.
6283 (set_ui_file_read): New function.
6284 (stdio_file_read): New function.
6285 * ui-file.h: New type ui_file_read_ftype.
6286 (set_ui_file_read): Declare.
6287 (ui_file_read): Declare.
6288
248de703
AC
62892003-06-09 Andrew Cagney <cagney@redhat.com>
6290
6291 * frame.h (deprecated_unwind_get_saved_register): Rename
6292 generic_unwind_get_saved_register, update comments.
6293 * mips-tdep.c (mips_get_saved_register): Update.
6294 * frame.c (deprecated_unwind_get_saved_register): Update.
6295
0ed8aa57
AC
62962003-06-09 Andrew Cagney <cagney@redhat.com>
6297
6298 * vax-tdep.c (vax_frame_locals_address): Delete function.
6299 (vax_gdbarch_init): Do not set frame_locals_address.
6300 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6301 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6302 * s390-tdep.c (s390_frame_args_address): Delete function.
6303 (s390_gdbarch_init): Do not set frame_args_address or
6304 frame_locals_address.
6305 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6306 (ns32k_gdbarch_init): Do not set frame_locals_address.
6307 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6308 (hppa_frame_locals_address): Delete function.
6309 (hppa_gdbarch_init): Do not set frame_args_address, or
6310 frame_locals_address.
6311 * arm-tdep.c (arm_frame_args_address): Delete.
6312 (arm_frame_locals_address): Delete.
6313 (arm_gdbarch_init): Do not set frame_args_address, or
6314 frame_locals_address.
6315
983a287a
AC
63162003-06-09 Andrew Cagney <cagney@redhat.com>
6317
6318 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6319 * gdbarch.h, gdbarch.c: Re-generate.
6320 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6321 * arch-utils.c (frame_num_args_unknown): Delete function.
6322 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6323 (frame_info): Use FRAME_NUM_ARGS_P.
6324 * arm-tdep.c (arm_frame_num_args): Delete function.
6325 (arm_gdbarch_init): Do not set frame_num_args.
6326 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6327 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6328 (hppa_gdbarch_init): Do not set frame_num_args.
6329 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6330 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6331 frame_num_args to default frame_num_args_unknown.
6332 * v850-tdep.c (v850_gdbarch_init): Ditto.
6333 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6334 * sh-tdep.c (sh_gdbarch_init): Ditto.
6335 * s390-tdep.c (s390_gdbarch_init): Ditto.
6336 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6337 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6338 * mips-tdep.c (mips_gdbarch_init): Ditto.
6339 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6340 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6341 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6342 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6343 * i386-tdep.c (i386_gdbarch_init): Ditto.
6344 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6345 * frv-tdep.c (frv_gdbarch_init): Ditto.
6346 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6347 * cris-tdep.c (cris_gdbarch_init): Ditto.
6348 * avr-tdep.c (avr_gdbarch_init): Ditto.
6349 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6350
8d3b0994
AC
63512003-06-09 Andrew Cagney <cagney@redhat.com>
6352
6353 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6354 (print_frame_args): Moved to "stack.c".
6355 * stack.c: Include "gdb_assert.h".
6356 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6357 (print_frame_args): Moved from "printcmd.c".
6358 * frame.h (print_frame_args): Delete declaration.
6359 * Makefile.in (stack.o): Update dependencies.
6360
25e3a86b
AC
63612003-06-08 Andrew Cagney <cagney@redhat.com>
6362
6363 * frame.c (get_prev_frame): Remove reference to
6364 frame_args_address_correct in comments.
6365 * frame-base.c (default_frame_args_address): Delete code
6366 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6367 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6368 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6369 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6370 (vax_frame_args_address_correct): Delete declaration.
6371
a9e5fdc2
AC
63722003-06-08 Andrew Cagney <cagney@redhat.com>
6373
6374 * gdbarch.sh (UNWIND_SP): Add.
6375 * gdbarch.h, gdbarch.c: Re-generate.
6376 * frame.c (frame_sp_unwind): New function.
6377 (get_frame_sp): New function.
6378 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6379 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6380 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6381 value.
6382 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6383 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6384
8983bd83
AC
63852003-06-08 Andrew Cagney <cagney@redhat.com>
6386
7fec2c59
AC
6387 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6388 REMOTE_BREAKPOINT.
6389 * remote.c: Update.
6390 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6391 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6392 * config/m68k/tm-sun3.h: Update.
6393 * config/m68k/tm-m68klynx.h: Update.
6394 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6395
8983bd83
AC
6396 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6397 trad_frame". Update comments.
6398 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6399 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6400 (trad_frame_register_value, trad_frame_prev_register): Update.
6401
b9362cc7
AC
64022003-06-08 Andrew Cagney <cagney@redhat.com>
6403
6404 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6405 from GCC's acinclude.m4.
6406 * configure.in: Check for getopt's delcaration.
8ffd9b1b 6407 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
6408 * main.c (error_init): Delete declaration.
6409 * defs.h (error_init): Declare.
6410 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6411 (rs6000_convert_from_func_ptr_addr): Make static.
6412 (_initialize_rs6000_tdep): Add declaration.
6413 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6414 (show_commands, set_verbose, show_history): Delete declaration.
6415 * top.h (set_verbose): Add declaration.
6416 (show_history, set_history, show_commands): Add declaration.
6417 (do_restore_instream_cleanup): Add declaration.
6418 * objc-lang.c (specialcmp): Make static.
6419 (print_object_command): Make static.
6420 (find_objc_msgsend): Make static.
6421 (find_objc_msgcall_submethod_helper): Make static.
6422 (find_objc_msgcall_submethod): Make static.
6423 (_initialize_objc_language): Add declaration.
6424 (find_implementation_from_class): Make static.
6425 (find_implementation): Make static.
6426 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6427 * objc-lang.h (lookup_struct_typedef): Add declaration.
6428 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6429 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6430 (do_restore_user_call_depth): Make static.
6431 (do_restore_instream_cleanup): Delete declaration.
6432 (dont_repeat): Delete declaration.
6433 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6434 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6435 * reggroups.c (_initialize_reggroup): Add declaration.
6436 * cp-support.c (_initialize_cp_support): Add declaration.
6437 * cp-abi.c (_initialize_cp_abi): Add declaration.
6438 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6439 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6440 (_initialize_gnu_v3_abi): Add declaration.
6441 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6442 (_initialize_gnu_v2_abi): Add declaration.
6443 * frame-base.c (_initialize_frame_base): Add declaration.
6444 * doublest.c (floatformat_from_length): Make static.
6445 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6446 * frame.c (create_sentinel_frame): Make static.
6447 (_initialize_frame): Add declaration.
6448 * top.c (do_catch_errors): Make static.
6449 (gdb_rl_operate_and_get_next_completion): Make static.
6450 * typeprint.c: Include "typeprint.h".
6451 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6452 (sentinel_frame_this_id): Make static.
6453 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6454 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6455 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6456 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6457 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6458 * maint.c (maintenance_print_architecture): Make static.
6459 * signals/signals.c (_initialize_signals): Add declaration.
6460 * std-regs.c (_initialize_frame_reg): Add declaration.
6461 * jv-exp.y (push_variable): ISO C definition.
6462 (push_qualified_expression_name): Ditto.
6463 * memattr.c (_initialize_mem): Add declaration.
6464 * remote.c (remote_check_watch_resources): Make static.
6465 (remote_stopped_by_watchpoint): Make static.
6466 (remote_stopped_data_address): Make static.
6467 * d10v-tdep.c (nr_dmap_regs): Make static.
6468 (a0_regnum): Make static.
6469 (d10v_frame_unwind_cache): Make static.
6470 (d10v_frame_p): Make static.
6471 * osabi.c (show_osabi): Make static.
6472 (_initialize_gdb_osabi): Add extern declaration.
6473 * gdbtypes.c (make_qualified_type): Make static.
6474 (safe_parse_type): Make static.
6475 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6476 * macrotab.c (macro_bcache_free): Make static.
6477 * interps.c (interp_set_quiet): Make static.
6478 (interpreter_exec_cmd): Make static.
6479 * stack.h (select_frame_command): New file.
6480 * stack.c: Include "stack.h".
6481 (select_frame_command_wrapper): Delete function.
6482 (select_frame_command): Make global.
6483 * infcall.c: Include "infcall.h".
6484 * linespec.c: Include "linespec.h".
6485 * symfile.c (sections_overlap): Make static.
6486 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6487 * charset.c (_initialize_charset): Add missing prototype.
6488 * regcache.c (init_legacy_regcache_descr): Make static.
6489 (do_regcache_xfree): Make static.
6490 (regcache_xfer_part): Make static.
6491 (_initialize_regcache): Add missing prototype.
6492 * breakpoint.c (parse_breakpoint_sals): Make static.
6493 (breakpoint_sals_to_pc): Make static.
6494 * interps.h (clear_interpreter_hooks): ISO C declaration.
6495 * Makefile.in (stack_h): Define.
6496 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6497 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6498
a0f267c7
AC
64992003-06-08 Andrew Cagney <cagney@redhat.com>
6500
6501 * Makefile.in (d10v-tdep.o): Update dependencies.
6502 (SFILES): Add trad-frame.c.
6503 (trad_frame_h): Define.
6504 (COMMON_OBS): Add trad-frame.o.
6505 (trad-frame.o): Specify dependencies.
6506 * d10v-tdep.c: Include "trad-frame.h".
6507 (saved_regs_unwinder): Delete function.
6508 (d10v_frame_prev_register): Use trad_frame_prev_register.
6509 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6510 trad_frame", delete "regs" and "prev_sp".
6511 (prologue_find_regs): Use trad-frame.
6512 * trad-frame.h, trad-frame.c: New files.
6513
4538b4f4
MK
65142003-06-08 Mark Kettenis <kettenis@gnu.org>
6515
6516 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6517
a0273b2f
AF
65182003-06-07 Adam Fedor <fedor@gnu.org>
6519
6520 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6521 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6522 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6523 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 6524 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
6525 Use it.
6526
3a6c3343
AC
65272003-06-07 Andrew Cagney <cagney@redhat.com>
6528
6529 * symfile.h: Re-indent, clean up comments.
6530
b46e02f6
AC
65312003-06-07 Andrew Cagney <cagney@redhat.com>
6532
6533 * inferior.h (deprecated_write_sp): Replace
6534 generic_target_write_sp.
6535 * regcache.c (deprecated_write_sp): Replace
6536 generic_target_write_sp.
6537 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6538 * vax-tdep.c (vax_gdbarch_init): Update.
6539 * v850-tdep.c (v850_gdbarch_init): Update.
6540 * sparc-tdep.c (sparc_gdbarch_init): Update.
6541 * sh-tdep.c (sh_gdbarch_init): Update.
6542 * s390-tdep.c (s390_gdbarch_init): Update.
6543 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6544 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6545 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6546 * mcore-tdep.c (mcore_gdbarch_init): Update.
6547 * m68k-tdep.c (m68k_gdbarch_init): Update.
6548 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6549 * ia64-tdep.c (ia64_gdbarch_init): Update.
6550 * h8300-tdep.c (h8300_gdbarch_init): Update.
6551 * frv-tdep.c (frv_gdbarch_init): Update.
6552 * cris-tdep.c (cris_gdbarch_init): Update.
6553 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6554
a42e117c
AC
65552003-06-07 Andrew Cagney <cagney@redhat.com>
6556
6557 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6558 Assert that PC_REGNUM is valid.
6559 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6560
bd1ce8ba
AC
65612003-06-07 Andrew Cagney <cagney@redhat.com>
6562
6563 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6564 * gdbarch.h, gdbarch.c: Regenerate.
6565 * mn10300-tdep.c: Include "gdb_assert.h".
6566 (mn10300_read_fp): New function.
6567 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6568 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6569 * ia64-tdep.c: Include "gdb_assert.h".
6570 (ia64_read_fp): New function.
6571 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6572 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6573 * regcache.c (generic_target_read_sp): Delete function.
6574 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6575 * inferior.h (generic_target_read_sp): Delete declaration.
6576 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6577 generic_target_read_sp.
6578 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6579 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6580 * sh-tdep.c (sh_gdbarch_init): Ditto.
6581 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6582 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6583
ec5cbaec
AC
65842003-06-07 Andrew Cagney <cagney@redhat.com>
6585
6586 * gdbarch.sh: Comment each field of startup_gdbarch.
6587 * gdbarch.h, gdbarch.c: Re-generate.
6588
cde9ea48
AC
65892003-06-07 Andrew Cagney <cagney@redhat.com>
6590
6591 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6592 * gdbarch.h, gdbarch.c: Re-generate.
6593 * regcache.c: Update comments on read_pc et.al.
6594 (generic_target_read_pc): Delete function.
6595 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6596 * inferior.h (generic_target_read_pc): Delete declaration.
6597 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6598 generic_target_read_pc.
6599 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6600 * sh-tdep.c (sh_gdbarch_init): Ditto.
6601 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6602 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 6603
9a90a780
AC
66042003-06-07 Andrew Cagney <cagney@redhat.com>
6605
6606 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6607 "index" with "special_local_sect". Use strcmp instead of STREQ.
6608 Append period to coments.
6609
a39a16c4
MM
66102003-06-06 Mark Mitchell <mark@codesourcery.com>
6611
6612 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6613 (elfstab_offset_sections): Likewise.
6614 * gdb-stabs.h (stab_section_info): Likewise.
6615 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6616 * objfiles.c (objfile_relocate): Likewise.
6617 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6618 * remote.c (get_offsets): Likewise.
6619 (remote_cisco_objfile_relocate): Likewise.
6620 * somread.c (som_symfile_offsets): Likewise.
6621 * symfile.c (alloc_section_addr_info): New function.
6622 (build_section_addr_info_from_section_tab): Use it.
6623 (free_section_addr_info): Adjust.
6624 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6625 (syms_from_objfile): Allocate local_addr dynamically.
6626 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6627 dynamically.
6628 (add_symbol_file_command): Allocate sect_opts dynamically.
6629 (reread_symbols): Avoid use of SECT_OFF_MAX.
6630 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6631 (alloc_section_addr_info): Declare it.
6632 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6633 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6634 dynamically.
6635 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 6636
20c6c2f8
AC
66372003-06-06 Andrew Cagney <cagney@redhat.com>
6638
6639 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6640 (d10v_frame_unwind_cache): Do not set "return_pc".
6641
884a26c8
MS
66422003-06-06 Michael Snyder <msnyder@redhat.com>
6643
6644 * h8300-tdep.c: Make tidy (long lines).
6645
088ce440
ML
66462003-06-06 Michal Ludvig <mludvig@suse.cz>
6647
8ffd9b1b 6648 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
6649 to regcache_collect().
6650
7d773d96
JB
66512003-06-05 J. Brobecker <brobecker@gnat.com>
6652
6653 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6654 pc_in_sigtramp multiarch method.
6655 (hppa_hpux_som_init_abi): Use it.
6656 (hppa_hpux_elf_init_abi): Likewise.
6657 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6658 macro has been multiarched.
6659 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6660 macro here, as hppa64 isn't multiarched yet.
6661
1df6926e
AC
66622003-06-05 Andrew Cagney <cagney@redhat.com>
6663
6664 * Makefile.in (value_h): Add $(frame_h).
6665 * value.h: Include "frame.h".
6666 (struct value): Replace "frame_addr" with "frame_id".
6667 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6668 * values.c (allocate_value): Use VALUE_FRAME_ID.
6669 (value_copy): Use VALUE_FRAME_ID.
6670 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6671 * valops.c (value_assign): Update. Use frame_find_by_id.
6672
6b53acc6
ML
66732003-06-05 Michal Ludvig <mludvig@suse.cz>
6674
6675 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6676 in each pass.
6677
4d9850d3
JJ
66782003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6679
6680 * thread-db.c (check_event): For create/death event breakpoints,
6681 loop through all messages to ensure that we read the message
6682 corresponding to the breakpoint we are at.
6683
8efca6ba
MS
66842003-06-04 Michael Snyder <msnyder@redhat.com>
6685
6686 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6687
0912c7f2
MK
66882003-06-04 Mark Kettenis <kettenis@gnu.org>
6689
6690 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6691 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6692 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6693 when handling .eh_frame sections.
6694
4e370325
JB
66952003-06-04 J. Brobecker <brobecker@gnat.com>
6696
6697 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6698 prepare_to_proceed procedure instead of the hppa-specific one.
6699 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6700
b757528f 67012003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6702
b757528f
JJ
6703 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6704 * config.in: Regenerated.
6705 * configure.in: Add test for syscall function and check for
6706 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6707 * configure: Regenerated.
6708 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6709 <sys/syscall.h>.
6710 (kill_lwp): New function that uses tkill syscall or
6711 uses kill, depending on whether threading model is nptl or not.
6712 All callers of kill() changed to use kill_lwp().
6713 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6714 see if all threads have already exited in the nptl model.
6715 (stop_and_resume_callback): New callback function used by the
6716 lin_lwp_wait thread exit handling code.
6717 (stop_wait_callback): Check for threads already having exited and
6718 delete such threads fromt the lwp list when discovered.
6719 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 6720
b757528f
JJ
6721 Roland McGrath <roland@redhat.com>
6722 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6723 nptl libthread_db.
6724
087779b1
RH
67252003-06-03 Richard Henderson <rth@redhat.com>
6726
b21fd293
RH
6727 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6728 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6729 (alpha_sigtramp_frame_prev_register): Likewise.
6730 (alpha_heuristic_frame_prev_register): Likewise.
6731 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6732
8ffd9b1b 6733 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
6734 alpha-specific register id names.
6735 (alpha_mdebug_frame_unwind_cache): Likewise.
6736 (alpha_mdebug_frame_prev_register): Likewise.
6737
baa490c4
RH
67382003-06-03 Richard Henderson <rth@redhat.com>
6739
6740 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6741 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6742 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6743 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6744 unwind routines.
6745 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6746 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6747 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6748
6749 * alpha-linux-tdep.c: Remove unnecessary includes.
6750 * Makefile.in (alpha-linux-tdep.o): Update.
6751
67522003-06-03 Richard Henderson <rth@redhat.com>
6753
6754 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6755 (alphabsd_fill_fpreg): Likewise.
6756
f534e522
JB
67572003-06-03 J. Brobecker <brobecker@gnat.com>
6758
6759 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6760 references to struct frame_info fields by calls to the equivalent
6761 accessors. Necessary now that frame_info is opaque.
6762
4035536b
JB
67632003-06-03 J. Brobecker <brobecker@gnat.com>
6764
6765 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6766 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6767 structure, field no longer exists.
6768
0bd79c5c
JB
67692003-06-03 J. Brobecker <brobecker@gnat.com>
6770
6771 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6772 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6773
37bb6d9f
JB
67742003-06-03 J. Brobecker <brobecker@gnat.com>
6775
6776 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6777 references to struct frame_info fields by calls to the equivalent
6778 accessors. Necessary now that frame_info is opaque.
6779
852ee05c
JB
67802003-06-03 J. Brobecker <brobecker@gnat.com>
6781
6782 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6783 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6784 structure, field no longer exists.
6785
7d58c67d
TR
67862003-06-03 Theodore A. Roth <troth@openavr.org>
6787
8ffd9b1b 6788 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
6789 accumulation of the size of all registers instead of blindly using
6790 DEPRECATED_REGISTER_BYTES.
6791
0a48e7e8
MS
67922003-06-03 Michael Snyder <msnyder@redhat.com>
6793
6794 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6795 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6796 for h8300sx.
6797
9798ab0d
JB
67982003-06-03 J. Brobecker <brobecker@gnat.com>
6799
6800 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6801 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6802
00b037e2
AC
68032003-06-03 Andrew Cagney <cagney@redhat.com>
6804
6805 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6806 (sparc_convert_to_raw): Delete function.
6807 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6808 register_convert_to_virtual.
6809
043b2f77
JJ
68102003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6811
6812 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6813 layer if not dealing with a statically-linked threaded program.
6814
f43caff8
KW
68152003-06-03 Kris Warkentin <kewarken@qnx.com>
6816
6817 * solib.c (solib_open): Update comment to reflect actual search order.
6818
ae1e7417
AC
68192003-06-03 Andrew Cagney <cagney@redhat.com>
6820
6821 * frame.c (get_frame_memory_signed): New function.
6822 (get_frame_memory, get_frame_memory_unsigned): New function.
6823 (get_frame_arch): New function.
6824 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6825 (get_frame_memory, get_frame_unsigned_memory): Declare.
6826 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6827 get_frame_memory_unsigned and get_frame_arch.
6828 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6829
cb123844
RG
68302003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6831
6832 * MAINTAINERS (write after approval): Add myself.
6833
1bb792e9
JB
68342003-06-03 Jim Blandy <jimb@redhat.com>
6835
6836 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6837 elements of gregset_t are 64 bits each, but access registers
6838 are still 32 bits, so they're packed two per gregset_t
6839 element. Unpack/pack them properly.
6840
aee8d8ba
DC
68412003-06-02 David Carlton <carlton@bactrian.org>
6842
6843 * linespec.c (find_methods): Break out code into
6844 add_matching_methods and add_constructors.
6845 (add_matching_methods): New.
6846 (add_constructors): Ditto.
6847
bf7488d2
AC
68482003-06-02 Andrew Cagney <cagney@redhat.com>
6849
bf7488d2
AC
6850 * sparc-tdep.c (sparc_print_registers): Delete call to
6851 REGISTER_CONVERTIBLE.
6852 (sparc_gdbarch_init): Do not set register_convertible.
6853 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6854 * frv-tdep.c (frv_gdbarch_init): Ditto.
6855 * cris-tdep.c (cris_gdbarch_init): Ditto.
6856
adedef68
EZ
68572003-06-02 Elena Zannoni <ezannoni@redhat.com>
6858
8ffd9b1b 6859 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
6860 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6861 (syms_from_objfile): Ditto.
6862
650fcc91
AS
68632003-06-03 Andreas Schwab <schwab@suse.de>
6864
6865 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6866 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6867
df4a182b
RH
68682003-06-02 Richard Henderson <rth@redhat.com>
6869
6870 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6871 a member of all_reggroup.
6872
c483c494
RH
68732003-06-02 Richard Henderson <rth@redhat.com>
6874
6875 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6876 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6877 (alpha_lds, alpha_sts): New.
6878 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 6879 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
6880 restructure and fail for type sizes other than 4 or 8.
6881 (alpha_value_to_register): Similarly.
6882 (alpha_extract_return_value): Use alpha_sts.
6883 (alpha_store_return_value): Use alpha_lds.
6884 (alpha_gdbarch_init): Update hooks.
6885
b38b6be2
RH
68862003-06-02 Richard Henderson <rth@redhat.com>
6887
6888 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6889 regnum identifiers.
6890 (alpha_sigtramp_register_address): Likewise.
6891
98a8e1e5
RH
68922003-06-02 Richard Henderson <rth@redhat.com>
6893
6894 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6895 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6896 * alpha-tdep.h: Declare them.
6897
6898 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6899 Remove zerobuf. Don't error on UNIQUE.
6900 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6901 (ALPHA_REGSET_UNIQUE): Provide default.
6902 (supply_gregset): Use alpha_supply_int_regs.
6903 (fill_gregset): Use alpha_fill_int_regs.
6904 (supply_fpregset): Use alpha_supply_fp_regs.
6905 (fill_fpregset): Use alpha_fill_fp_regs.
6906 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6907 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6908 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6909 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6910 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6911 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6912
67dfac52
RH
69132003-06-02 Richard Henderson <rth@redhat.com>
6914
f75d70cc
RH
6915 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6916
67dfac52
RH
6917 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6918 (alpha_store_return_value): Likewise.
6919
0cf566ec
DC
69202003-06-02 David Carlton <carlton@math.stanford.edu>
6921
6922 * block.c (contained_in): Add 'const' to arguments.
6923 (block_function): Ditto.
6924 * block.h: Update declarations for block_function and
6925 contained_in.
6926
cdef89d0
DC
69272003-06-02 David Carlton <carlton@math.stanford.edu>
6928
6929 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6930 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6931 * p-valprint.c (pascal_val_print): Ditto.
6932 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6933
72667056
RH
69342003-06-02 Richard Henderson <rth@redhat.com>
6935
98a8e1e5
RH
6936 * alpha-tdep.c (alpha_push_dummy_call): Use
6937 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 6938
8ffd9b1b 6939 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
6940 sign-extension of 32-bit values.
6941 (alpha_store_return_value): Similarly.
0ede8eca 6942
98a8e1e5
RH
6943 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6944 (alpha_extract_return_value): Likewise.
6945 (alpha_store_return_value): Likewise.
7b5e1cb3 6946
98a8e1e5
RH
6947 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6948 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 6949
98a8e1e5
RH
6950 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6951 (alpha_extract_struct_value_address): Likewise.
6952 (alpha_store_return_value): Likewise.
6953 (alpha_store_struct_return): Remove.
6954 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 6955
98a8e1e5
RH
6956 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6957 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6958 macros where appropriate.
6959 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6960 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 6961
98a8e1e5
RH
6962 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6963 for SP, GP; void_func_ptr for PC; non-language-specific types
6964 for all others.
6965 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 6966
6dd77b81
RH
69672003-06-02 Richard Henderson <rth@redhat.com>
6968
6969 * top.h (lim_at_start): Declare.
6970 * main.c (captured_main): Set it.
6971 * top.c (lim_at_start): Define.
6972 (command_loop): Use it instead of &environ.
6973 * event-top.c (command_handler): Likewise.
6974
f4dbdb54
JT
69752003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6976
6977 * mipsnbsd-tdep.c: Update copyright years.
6978 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6979
8f285956
RH
69802003-06-01 Richard Henderson <rth@redhat.com>
6981
98a8e1e5
RH
6982 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6983 (alpha-linux-tdep.o): Update dependencies.
6984 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6985 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 6986
615967cb
RH
69872003-06-01 Richard Henderson <rth@redhat.com>
6988
98a8e1e5
RH
6989 * alpha-tdep.c (alpha_register_reggroup_p): New.
6990 (alpha_gdbarch_init): Register it.
615967cb 6991
b59661bd
AC
69922003-06-02 Andrew Cagney <cagney@redhat.com>
6993
6994 * dwarfread.c: Eliminate "register"
6995 (decode_die_type): Eliminate assignment within "if".
6996 (struct_type, decode_array_element_type): Ditto.
6997 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6998 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6999 (decode_modified_type, completedieinfo): Ditto.
7000 * block.c: Eliminate "register".
7001 (blockvector_for_pc_sect): Eliminate assignment within "if".
7002 * cp-support.h (struct symbol): Opaque declaration.
7003 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7004
5ef165c2
RH
70052003-06-01 Richard Henderson <rth@redhat.com>
7006
98a8e1e5
RH
7007 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7008 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 7009
143985b7
AF
70102003-06-01 Adam Fedor <fedor@gnu.org>
7011
7012 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7013 * gdbarch.[ch]: Regenerate.
7014 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7015 (hppa_gdbarch_init): Set it in the gdbarch vector.
7016 * i386-tdep.c (i386_fetch_pointer_argument): New
7017 (i386_gdbarch_init): Set it into gdbarch.
7018 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7019 (rs6000_gdbarch_init): Set it in gdbarch.
7020 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7021 (sparc_gdbarch_init): Set it in gdbarch.
7022
ae0167b9
AC
70232003-06-01 Andrew Cagney <cagney@redhat.com>
7024
7c0b4a20
AC
7025 * defs.h (extract_address): Delete declaration.
7026 * findvar.c (extract_address): Delete function.
7027 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7028 extract_address with the inline equivalent,
7029 extract_unsigned_integer.
7030 (xstormy16_extract_struct_value_address): Ditto.
7031 (xstormy16_pointer_to_address): Ditto.
7032 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7033 * v850-tdep.c (v850_push_arguments): Ditto.
7034 (v850_extract_return_value): Ditto.
7035 (v850_extract_struct_value_address): Ditto.
7036 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7037 (sparcnbsd_get_longjmp_target_64): Ditto.
7038 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7039 (get_longjmp_target): Ditto.
7040 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7041 (sh64_extract_struct_value_address): Ditto.
7042 (sh_push_arguments): Ditto.
7043 (sh64_push_arguments): Ditto.
7044 * remote-vxsparc.c (vx_read_register): Ditto.
7045 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7046 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7047 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7048 * mipsv4-nat.c (get_longjmp_target): Ditto.
7049 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7050 * mips-nat.c (get_longjmp_target): Ditto.
7051 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7052 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7053 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7054 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7055 * irix5-nat.c (get_longjmp_target): Ditto.
7056 * irix4-nat.c (get_longjmp_target): Ditto.
7057 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7058 (ia64_push_arguments): Ditto.
7059 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7060 * h8300-tdep.c (h8300_push_arguments): Ditto.
7061 (h8300_store_return_value): Ditto.
7062 (h8300_extract_struct_value_address): Ditto.
7063 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7064 (frv_push_arguments): Ditto.
7065 * avr-tdep.c (avr_pointer_to_address): Ditto.
7066 (avr_push_arguments): Ditto.
7067 * arm-tdep.c (arm_push_dummy_call): Ditto.
7068 (arm_get_longjmp_target): Ditto.
7069 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7070 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7071 (alpha_get_longjmp_target): Ditto.
7072
ae0167b9
AC
7073 * solib-irix.c (extract_mips_address): Inline extract_address,
7074 replacing it with extract_signed_integer.
7075 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7076 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7077 (first_link_map_member, open_symbol_file_object): Ditto.
7078 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7079 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7080 (LM_NEXT, LM_NAME): Ditto.
7081
44d88583
RH
70822003-06-01 Richard Henderson <rth@redhat.com>
7083
98a8e1e5
RH
7084 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7085 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7086 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7087 (alpha_cannot_store_register): Likewise.
7088 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7089 * alpha-nat.c (supply_gregset): Likewise.
7090 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 7091
310e9b6a
AC
70922003-06-01 Andrew Cagney <cagney@redhat.com>
7093
7094 * infcall.c (call_function_by_hand): Update comment on
7095 DEPRECATED_DUMMY_WRITE_SP.
7096
7097 * mips-tdep.c (mips_gdbarch_init): Do not set
7098 deprecated_dummy_write_sp.
7099 (mips_eabi_push_dummy_call): Set the SP register.
7100 (mips_o64_push_dummy_call): Set the SP register.
7101 (mips_o32_push_dummy_call): Set the SP register.
7102 (mips_n32n64_push_dummy_call): Set the SP register.
7103
5ab84872
RH
71042003-06-01 Richard Henderson <rth@redhat.com>
7105
98a8e1e5
RH
7106 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7107 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7108 (supply_gregset): Likewise.
7109 * alpha-tdep.c (alpha_store_return_value): Likewise.
7110 (alpha_get_longjmp_target): Likewise.
7111 (alpha_register_name): Constify array.
7112 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7113 deprecated_register_size, deprecated_register_bytes,
7114 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7115 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7116 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 7117
09cc52fd
RH
71182003-06-01 Richard Henderson <rth@redhat.com>
7119
7120 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7121 from arg_reg_buffer to regcache to avoid double conversion.
7122
c7f16359
MK
71232003-06-01 Mark Kettenis <kettenis@gnu.org>
7124
7125 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7126 SP_REGNUM.
7127 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7128 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7129
7131cb6e
RH
71302003-06-01 Richard Henderson <rth@redhat.com>
7131
98a8e1e5
RH
7132 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7133 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 7134
f3e0f90b
RH
71352003-06-01 Richard Henderson <rth@redhat.com>
7136
98a8e1e5
RH
7137 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7138 not overlapping PC_REGNUM.
f3e0f90b 7139
c88e30c0
RH
71402003-06-01 Richard Henderson <rth@redhat.com>
7141
98a8e1e5
RH
7142 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7143 alpha_push_arguments. Don't dump argument register data to
7144 the target stack. Fix float and 128-bit long double semantics.
7145 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7146 (alpha_fix_call_dummy): Remove.
7147 (alpha_call_dummy_words): Remove.
7148 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 7149
f1a559ae
RH
71502003-06-01 Richard Henderson <rth@redhat.com>
7151
7152 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7153
5e045346
AC
71542003-06-01 Andrew Cagney <cagney@redhat.com>
7155
95404a3e
AC
7156 * mips-tdep.c (is_mips16_addr): New function.
7157 (make_mips16_addr, unmake_mips16_addr): New functions.
7158 (pc_is_mips16, mips_fetch_instruction): Use.
7159 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7160 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7161 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7162 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7163 TARGET_MIPS.
7164 * config/mips/tm-mips.h: Update copyright.
7165 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7166 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7167 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7168 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7169 (TM_PRINT_INSN_MACH): Delete.
7170 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7171
5e045346
AC
7172 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7173 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7174 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7175 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7176 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7177 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7178 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7179 mips*-*-riscos* and mips*-*-sysv* onto mips.
7180 * config/mips/mips64.mt: New file.
7181 * config/mips/mips.mt: New file.
7182 * config/mips/littlemips.mt: Delete file.
7183 * config/mips/decstation.mt: Delete file.
7184 * config/mips/vr4300el.mt: Delete file.
7185 * config/mips/vr5000el.mt: Delete file.
7186 * config/mips/vr5000.mt: Delete file.
7187 * config/mips/vr4100.mt: Delete file.
7188 * config/mips/vr4xxxel.mt: Delete file.
7189 * config/mips/vr4300.mt: Delete file.
7190 * config/mips/vr4xxx.mt: Delete file.
7191 * config/mips/bigmips.mt: Delete file.
7192 * config/mips/bigmips64.mt: Delete file.
7193 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7194 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7195 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7196 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7197 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7198 "tm-bigmips.h".
7199 * config/mips/tm-irix3.h: Ditto.
7200 * config/mips/tm-mipsv4.h: Ditto.
7201 * config/mips/tm-embed.h: Ditto.
7202 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7203 "tm-bigmips64.h".
7204 * config/mips/tm-vr5000el.h: Delete file.
7205 * config/mips/tm-tx39l.h: Delete file.
7206 * config/mips/tm-vr4300el.h: Delete file.
7207 * config/mips/tm-vr4xxxel.h: Delete file.
7208 * config/mips/tm-vr4300.h: Delete file.
7209 * config/mips/tm-vr4100.h: Delete file.
7210 * config/mips/tm-vr4xxx.h: Delete file.
7211 * config/mips/tm-vr5000.h: Delete file.
7212 * config/mips/tm-embedl64.h: Delete file.
7213 * config/mips/tm-embedl.h: Delete file.
7214 * config/mips/tm-embed64.h: Delete file.
7215 * config/mips/tm-bigmips64.h: Delete file.
7216 * config/mips/tm-bigmips.h: Delete file.
7217
2473a4a9
MK
72182003-06-01 Mark Kettenis <kettenis@gnu.org>
7219
97a5b208
MK
7220 Fix gdb/1216.
7221 * shnbsd-nat.c: Include "sh-tdep.h".
7222
2473a4a9
MK
7223 From Richard Henderson <rth@redhat.com>:
7224 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7225
e0f7ec59
AC
72262003-05-31 Andrew Cagney <cagney@redhat.com>
7227
7228 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7229 forward declaration.
7230 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7231 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7232 (mips_find_saved_regs): Use set_reg_offset.
7233 (mips_frame_init_saved_regs): Delete function.
7234 (mips_pop_frame): Call mips_find_saved_regs instead of
7235 DEPRECATED_FRAME_INIT_SAVED_REGS.
7236
68dcc709
AC
72372003-05-31 Andrew Cagney <cagney@redhat.com>
7238
7239 * mips-tdep.c (mips_gdbarch_init): Do not set
7240 deprecated_max_register_raw_size, register_virtual_size, and
7241 deprecated_max_register_virtual_size.
7242
cfc14b3a
MK
72432003-05-31 Mark Kettenis <kettenis@gnu.org>
7244
6405b0a6
MK
7245 * i386-tdep.c: Include "dwarf2-frame.h".
7246 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7247 * Makefile.in (i386-tdep.o): Update dependencies.
7248
cfc14b3a
MK
7249 * dwarf2-frame.c, dwarf2-frame.h: New files.
7250 * Makefile.in (SFILES): Add dwarf2-frame.c.
7251 (dwarf2_frame_h): Define.
7252 (COMMON_OBS): Add dwarf2-frame.o.
7253 (dwarf2-frame.o): Add dependencies.
7254
6a2751d2
AJ
72552003-05-31 Andreas Jaeger <aj@suse.de>
7256
7257 * x86-64-linux-nat.c: Fix comment.
7258
1c3545ae
MK
72592003-05-31 Mark Kettenis <kettenis@gnu.org>
7260
10f93086
MK
7261 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7262 function signature.
7263
1c3545ae
MK
7264 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7265 have a sigcontext_addr handler.
7266 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7267 sigcontext_addr handler.
7268
e11c53d2
AC
72692003-05-31 Andrew Cagney <cagney@redhat.com>
7270
7271 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7272 (print_fp_register_row): Replace do_fp_register_row.
7273 (mips_print_fp_register): Add "file" and "frame" parameters.
7274 (mips_print_register): Add "file" and "frame" parameters.
7275 (mips_print_registers_info): Replace mips_do_registers_info.
7276 (mips_gdbarch_init): Set print_registers_info instead of
7277 deprecated_do_registers_info.
7278 (mips_read_fp_register_single): Add "frame" parameter.
7279 (mips_read_fp_register_double): Add "frame" parameter.
7280
a3386186
MK
72812003-05-31 Mark Kettenis <kettenis@gnu.org>
7282
70913449
MK
7283 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7284 Fixes a bug where GDB would print the wrong register names for
7285 targets without SSE.
7286
2b5e0749
MK
7287 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7288 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7289 registers.
7290
7291 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7292 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7293 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7294 TDEP->sc_sp_offset.
7295
a3386186
MK
7296 From Michal Ludvig <mludvig@suse.cz>:
7297 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7298 and `sc_num_regs'.
7299 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7300 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7301 I386_ST0_REGNUM): Move here from...
7302 * i386-tdep.c: ... here.
7303 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7304 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7305 registers if possible.
7306 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7307 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7308 Remove variables.
7309 (i386bsd_sc_reg_offset): New variable.
7310 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7311 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7312 TDEP->sc_sp_offset.
7313 (i386fbsd_sc_reg_offset): New variable.
7314 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7315 TDEP->sc_num_regs.
7316 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7317 variables.
7318 (i386fbsd4_sc_reg_offset): New variable.
7319 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7320 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7321 TDEP->sc_sp_offset.
7322 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7323 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7324 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7325 Remove variables.
7326 (i386nbsd_sc_reg_offset): New variable.
7327 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7328 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7329 TDEP->sc_sp_offset.
7330 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7331 Remove variables.
7332 (i386obsd_sc_reg_offset): New variable.
7333 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7334 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7335 TDEP->sc_sp_offset.
7336 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7337 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7338 for frame pointer offset in `struct sigcontext'.
7339
25ab4790
AC
73402003-05-31 Andrew Cagney <cagney@redhat.com>
7341
7342 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7343 architecture methods call_dummy_words, sizeof_call_dummy_words,
7344 push_return_address, store_struct_return, and fix_call_dummy. Set
7345 push_dummy_call instead of deprecated_push_arguments.
7346 (mips_store_struct_return): Delete function.
7347 (mips_fix_call_dummy): Delete function.
7348 (mips_push_return_address): Delete function.
7349 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7350 RA_REGNUM and T9_REGNUM.
7351 (mips_n32n64_push_dummy_call): Ditto for
7352 mips_n32n64_push_arguments.
7353 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7354 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7355
6a65450a
AC
73562003-05-31 Andrew Cagney <cagney@redhat.com>
7357
7358 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7359 "dummy_addr" to "bp_addr".
7360 * infcall.c (call_function_by_hand): Pass "funaddr" to
7361 gdbarch_push_dummy_call.
7362 * gdbarch.h, gdbarch.c: Re-generate.
7363 * i386-tdep.c (i386_push_dummy_call): Update.
7364 * arm-tdep.c (arm_push_dummy_call): Update.
7365 * d10v-tdep.c (d10v_push_dummy_call): Update.
7366
c4f35dd8
MK
73672003-05-31 Mark Kettenis <kettenis@gnu.org>
7368
7369 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7370 variable declarations.
7371 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7372 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7373 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7374 x86_64_init_frame_pc, x86_64_init_frame_pc,
7375 x86_64_function_has_prologue): Remove prototypes.
7376 (X86_64_NUM_GREGS): New define.
7377 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7378 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7379 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7380 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7381 XMM1_REGNUM): Remove defines.
7382 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7383 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7384 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7385 X86_64_XMM1_REGNUM): New defines.
7386 (struct x86_64_register_info): Renamed from `struct
7387 register_info'. Remove `size' member.
7388 (x86_64_register_info_table): Remove variable.
7389 (x86_64_register_info): New variable.
7390 (X86_64_NUM_REGS): New define.
7391 (X86_64_NUM_GREGS): Remove define.
7392 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7393 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7394 Remove variables.
7395 (x86_54_dwarf2_reg_to_regnum): Remove function.
7396 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7397 (x86_64_dwarf_reg_to_regnum): New function.
7398 (x86_64_register_name): Rewrite.
7399 (x86_64_register_raw_size): Remove function.
7400 (x86_64_register_byte_table): Remove variable.
7401 (x86_64_register_byte): Remove function.
7402 (x86_64_register_virtual_type): Remove function.
7403 (x86_64_register_type): New function.
7404 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7405 x86_64_register_convert_to_raw): Remove functions.
7406 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7407 (x86_64_use_struct_convention): Make static. Adjust for renamed
7408 defines.
7409 (x86_64_frame_init_saved_regs): Remove function.
7410 (x86_64_push_arguments): Make static. Change to accept a regcache
7411 as argument.
7412 (x86_64_store_return_value, x86_64_extract_return_value): Make
7413 static. Rewrite based on i386 counterparts.
7414 (x86_64_push_dummy_call): New function.
7415 (X86_64_NUM_SAVED_REGS): New define.
7416 (x86_64_register_number): Remove function.
7417 (x86_64_store_struct_return): Remove function.
7418 (x86_64_frameless_function_invocation,
7419 x86_64_function_has_prologue): Remove functions.
7420 (PROLOG_BUFSIZE): Remove define.
7421 (struct x86_64_frame_cache): New structure.
7422 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7423 x86_64_frame_cache, x86_64_frame_this_id,
7424 x86_64_frame_prev_register, x86_64_frame_p,
7425 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7426 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7427 functions.
7428 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7429 variables.
7430 (x86_64_skip_prologue): Rewrite in terms of
7431 x86_64_analyze_prologue.
7432 (x86_64_frame_base_address): New function.
7433 (x86_64_frame_base): New variable.
7434 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7435 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7436 set deprecated_fp_regnum, deprecated_register_size,
7437 deprecated_register_bytes, register_raw_size, register_byte,
7438 register_virtual_type, register_convertiable,
7439 register_convert_to_virtual, convert_to_raw,
7440 deprecated_get_saved_register, deprecated_target_read_fp,
7441 deprecated_push_arguments, deprecated_push_return_address,
7442 deprecated_pop_frame, deprecated_store_struct_return,
7443 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7444 frameless_function_invocation, deprecated_frame_saved_pc,
7445 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7446 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7447 deprecated_init_frame_pc and virtual_frame_pointer. Call
7448 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7449 and x86_64_frame_p. Call frame_base_set_default to register
7450 x86_64_frame_base.
7451 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7452 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7453 (_initialize_x86_64_tdep): Remove function.
7454 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7455 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7456 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7457 define.
7458 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7459 (x86_64_linux_sigcontext_addr): Rewrite.
7460 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7461 x86_64_linux_frame_saved_pc): Remove functions.
7462 (x86_64_linux_pc_in_sigtramp): Renamed from
7463 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7464 trampoline.
7465 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7466 Remove_functions.
7467 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7468 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7469 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7470 (x86_64_regmap): Rename to regmap.
7471 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7472 x86_64_num_gregs.
7473 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7474 x86_64_regmap.
7475 (x86_64_fxsave_offset): Remove function.
7476 (supply_fpregset): Simply call x86_64_supply_fxsave.
7477 (fill_fpregset): Simply call x86_64_fill_fxsave.
7478 (fetch_inferior_registers, store_inferior_registers): Avoid
7479 asignment in if-statement.
7480 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7481 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7482 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7483 (fetch_core_registers): Remove function.
7484 (linux_elf_core_fns): Remove.
7485 (offsetoff): Don't define.
7486 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7487 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7488 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7489 add core-regset.o.
7490 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7491 protection against multiple includes instead of NM_X86_64_h. Add
7492 various comments. Include "config/nm-linux.h". Don't include
7493 <signal.h>.
7494 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7495 GET_THREAD_SIGNALS): Remove defines.
7496 (x86_64_register_u_addr, kernel_u_size,
7497 lin_thread_get_thread_signals): Remove prototypes.
7498 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7499 [HAVE_LINK_H]: Don't include "solib.h".
7500 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7501 * config/i386/tm-x86-64linux.h: Fix comments.
7502 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7503 x86-64-tdep.o): Update dependencies.
7504
c25083af
AC
75052003-05-30 Andrew Cagney <cagney@redhat.com>
7506
c8f55a7b
AC
7507 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7508 Change parameter type to a "struct regcache *".
7509
c25083af
AC
7510 * gdbarch.sh: Regardless of the multi-arch level, always define
7511 the macro when not already defined.
7512 * gdbarch.h, gdbarch.c: Re-generate.
7513
fbe586ae
RH
75142003-05-30 Richard Henderson <rth@redhat.com>
7515
7516 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7517 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7518 (alpha_mdebug_frame_this_id): Likewise.
7519 (alpha_mdebug_frame_prev_register): Likewise.
7520 (alpha_mdebug_frame_base_address): Likewise.
7521 (alpha_mdebug_frame_locals_address): Likewise.
7522 (alpha_mdebug_frame_args_address): Likewise.
7523 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7524 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7525 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7526 loop increment.
7527 (alpha_heuristic_frame_this_id): Make static.
7528 (alpha_heuristic_frame_prev_register): Likewise.
7529 (alpha_heuristic_frame_base_address): Likewise.
7530 * alpha-tdep.h: Update.
7531
acd5c798
MK
75322003-05-30 Mark Kettenis <kettenis@gnu.org>
7533
7534 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7535 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7536 defenitions.
7537 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7538 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7539 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7540 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7541 I386_ST0_REGNUM): New defines.
7542 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7543 codestream_get): Remove define.
7544 (codestream_next_addr, condestream_addr, condestream_buf,
7545 codestream_off, codestream_cnt): Remove variables.
7546 (codestream_fill, codestream_seek, codestream_read): Remove
7547 functions.
7548 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7549 functionality.
7550 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7551 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7552 i386_frame_saved_pc, i386_saved_pc_after_call,
7553 i386_frame_num_args, i386_frame_init_saved_regs,
7554 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7555 i386_push_arguments): Remove functions.
7556 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7557 functionality. Use i386_analyze_prologue instead of
7558 i386_get_frame_setup.
7559 (I386_NUM_SAVED_REGS): New define.
7560 (struct i386_frame_cache): New structure.
7561 (i386_alloc_frame_cache, i386_analyze_struct_return,
7562 i386_skip_probe, i386_analyze_frame_setup,
7563 i386_analyze_register_saves, i386_analyze_prologue,
7564 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7565 i386_frame_prev_register, i386_sigtramp_frame_cache,
7566 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7567 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7568 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7569 New functions.
7570 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7571 New variables.
7572 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7573 I386_EAX_REGNUM and I386_EDX_REGNUM.
7574 (i386_extract_return_value, i386_store_return_value): Use
7575 I386_ST0_REGNUM where appropriate.
7576 (i386_extract_struct_value_address): Rewrite to use extract_address.
7577 (i386_svr4_pc_in_sigtramp): Add comment.
7578 (i386_svr4_sigcontext_addr): Rewrite.
7579 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7580 TDEP->sc_sp_offset.
7581 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7582 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7583 of new defines. Set push_dummy_call, don't set
7584 deprecated_push_arguments, deprecated_push_return_address,
7585 deprecated_pop_frame. Don't set parm_boundary. Don't set
7586 deprecated_frame_chain, deprecated_frame_saved_pc,
7587 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7588 save_dummy_frame_tos, unwind_pc. Call
7589 frame_unwind_append_predicate and frame_base_set_default. Don't
7590 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7591 Don't set frameless_function_invocation. Don't set
7592 deprecated_register_bytes, deprecated_register_size,
7593 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7594 * i386-linux-tdep.c: Fix formatting in some comments.
7595 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7596 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7597 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7598 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7599 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7600 redundant parentheses.
7601 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7602 (i386_linux_sigcontext_addr): Use it. Rewrite.
7603 (find_minsym_and_objfile): Change name of second argument.
7604 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7605 changed. Use frame_pc_unwind instead of
7606 DEPRECATED_SAVED_PC_AFTER_CALL.
7607 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7608 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7609 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7610 unwinder.
7611 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7612 "dummy-frame.h".
7613 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7614 (_initialize_i386_cygwin_tdep): New prototype.
7615 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7616 deprecated_frame_chain_valid.
7617 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7618 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7619 Rely on the SVR4 defaults.
7620 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7621 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7622
c89b70f1
AC
76232003-05-30 Andrew Cagney <cagney@redhat.com>
7624
7625 * infcall.c (call_function_by_hand): Always call
7626 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7627
85b32d22
RH
76282003-05-30 Richard Henderson <rth@redhat.com>
7629
c89b70f1
AC
7630 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7631 increment.
85b32d22 7632
bfe51b1e
JB
76332003-05-29 Jim Blandy <jimb@redhat.com>
7634
7635 Use gdbarch methods for solib stuff on PowerPC Linux.
7636 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7637 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7638 show through.
7639 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7640 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7641 giving the same effect as the #definitions above.
7642
1abf022c
AF
76432003-05-29 Adam Fedor <fedor@gnu.org>
7644
7645 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7646 (find_implementation_from_class): Replace it with the standard
7647 case i.e. do nothing.
7648
d2427a71
RH
76492003-05-29 Richard Henderson <rth@redhat.com>
7650
7651 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7652 (alpha_linux_sigtramp_offset): Use it. Make static.
7653 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7654 update for new frame model.
7655 * alpha-mdebug-tdep.c: New file.
7656 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7657 (alpha_osf1_init_abi): Install it.
7658 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7659 (linked_proc_desc_table): Remove.
7660 (alpha_frame_past_sigtramp_frame): Remove.
7661 (alpha_dynamic_sigtramp_offset): Remove.
7662 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7663 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7664 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7665 (push_sigtramp_desc): Remove.
7666 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7667 (alpha_cannot_store_register): Likewise.
7668 (alpha_sigcontext_addr): Remove.
7669 (alpha_find_saved_regs): Remove.
7670 (alpha_frame_init_saved_regs): Remove.
7671 (alpha_init_frame_pc_first): Remove.
7672 (read_next_frame_reg): Remove.
7673 (alpha_frame_saved_pc): Remove.
7674 (alpha_saved_pc_after_call): Remove.
7675 (temp_proc_desc, temp_saved_regs): Remove.
7676 (alpha_about_to_return): Remove.
7677 (cached_proc_desc): Remove.
7678 (alpha_frame_chain): Remove.
7679 (alpha_print_extra_frame_info): Remove.
7680 (alpha_init_extra_frame_info): Remove.
7681 (alpha_frame_locals_address): Remove.
7682 (alpha_frame_args_address): Remove.
7683 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7684 (alpha_push_dummy_frame): Remove.
7685 (alpha_pop_frame): Remove.
7686 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7687 (alpha_read_insn): New.
7688 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7689 for different insn encodings.
7690 (alpha_in_lenient_prologue): Remove.
7691 (struct alpha_sigtramp_unwind_cache): New.
7692 (alpha_sigtramp_frame_unwind_cache): New.
7693 (alpha_sigtramp_register_address): New.
7694 (alpha_sigtramp_frame_this_id): New.
7695 (alpha_sigtramp_frame_prev_register): New.
7696 (alpha_sigtramp_frame_unwind): New.
7697 (alpha_sigtramp_frame_p): New.
7698 (struct alpha_heuristic_unwind_cache): New.
7699 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7700 don't count nop insns that occur between functions.
7701 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7702 heuristic_proc_desc, but without the mdebug wrapping.
7703 (alpha_heuristic_frame_this_id): New.
7704 (alpha_heuristic_frame_prev_register): New.
7705 (alpha_heuristic_frame_unwind): New.
7706 (alpha_heuristic_frame_p): New.
7707 (alpha_heuristic_frame_base_address): New.
7708 (alpha_heuristic_frame_base): New.
7709 (alpha_unwind_dummy_id): New.
7710 (alpha_unwind_pc): New.
7711 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7712 frame related deprecated initializations; install replacements.
7713 (alpha_dump_tdep): Remove.
7714 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7715 (alpha_read_insn, alpha_after_prologue,
7716 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7717 alpha_heuristic_frame_prev_register,
7718 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7719 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7720 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7721 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7722
93ec1121
AC
77232003-05-29 Andrew Cagney <cagney@redhat.com>
7724
7725 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7726 dependant on the availability of ASSERT_FUNCTION.
7727 (ASSERT_FUNCTION): Do not define when there is no function name.
7728
98f08d3d
KB
77292003-05-29 Kevin Buettner <kevinb@redhat.com>
7730
7731 From Jimi X <jimix@watson.ibm.com>:
7732 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7733
0897f59b
JB
77342003-05-28 Jim Blandy <jimb@redhat.com>
7735
7736 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7737 argument to ptrace to int; the system headers should give it the
7738 right type, and pointers don't fit in ints on powerpc64-*-*.
7739
14898363
L
77402003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7741
7742 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7743 DW_TAG_catch_block.
7744
a7a48797
EZ
77452003-05-26 Elena Zannoni <ezannoni@redhat.com>
7746
7747 * stabsread.c (dbx_lookup_type): Make static.
7748 (read_type): Ditto.
7749 (add_undefined_type): Ditto.
7750 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7751 not export.
7752
f5479e9c
EZ
77532003-05-26 Elena Zannoni <ezannoni@redhat.com>
7754
7755 * hpread.c (hpread_has_name): Make static.
7756 (hpread_psymtab_to_symtab): Ditto.
7757 (file_exists): Ditto.
7758 (hpread_call_pxdb): Ditto.
7759 (hpread_pxdb_needed): Ditto.
7760 (hpread_quick_traverse): Ditto.
7761 (hpread_get_header): Ditto.
7762 (hpread_get_lntt): Ditto.
7763 (hpread_get_slt): Ditto.
7764 (class_of): Ditto.
7765
eb2e12d7
AS
77662003-05-25 Andreas Schwab <schwab@suse.de>
7767
78bf922a
AS
7768 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7769 stack_align and deprecated_extra_stack_alignment_needed.
7770 (m68k_stack_align): Delete.
7771
eb2e12d7
AS
7772 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7773 (m68k_register_virtual_size): Likewise.
7774 (altos_skip_prologue): Remove obsolete function.
7775 (isi_frame_num_args): Likewise.
7776 (news_frame_num_args): Likewise.
7777 (m68k_fix_call_dummy): Make static.
7778 (m68k_push_dummy_frame): Likewise.
7779 (m68k_pop_frame): Likewise.
7780 (m68k_skip_prologue): Likewise.
7781 (m68k_frame_init_saved_regs): Likewise.
7782 (m68k_saved_pc_after_call): Likewise.
7783 (m68k_get_longjmp_target): Make multi-arch.
7784 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7785 structure. Register m68k_get_longjmp_target if enabled.
7786 * m68k-tdep.h (struct gdbarch_tdep): Define.
7787 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7788
7789 * Makefile.in (config.status): Also depend on configure.tgt
7790 and configure.host.
7791 (m68klinux-tdep.o): Update dependencies.
7792 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7793 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7794 (M68K_LINUX_JB_PC): Define.
7795 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7796 and take additional parameter.
7797 (m68k_linux_sigtramp_saved_pc): Update.
7798 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7799 m68k_linux_pc_in_sigtramp, in_plt_section,
7800 find_solib_trampoline_target.
7801 * config/m68k/tm-linux.h: Don't include any tm headers.
7802 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7803 (JB_ELEMENT_SIZE): Likewise.
7804 (JB_PC): Likewise.
7805 (GET_LONGJMP_TARGET): Likewise.
7806 (IN_SIGTRAMP): Likewise.
7807 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7808
eb2c22dc
MK
78092003-05-25 Mark Kettenis <kettenis@gnu.org>
7810
7811 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7812 (sparc32_push_arguments): Re-implement by calling
7813 sparc32_do_push_arguments.
7814
44b7b84e
MK
78152003-05-25 Mark Kettenis <kettenis@gnu.org>
7816
7817 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7818 SPARC_O1_REGNUM): New defines.
7819 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7820 (sparc32_store_return_value): New function.
7821 (sparc_extract_struct_value_address): Rewrite to operate on a
7822 regcache.
7823 (sparc_gdbarch_init): Don't set
7824 deprecated_extract_struct_value_address. Set
7825 extract_struct_value_address instead. Don't set
7826 deprecated_extract_return_value and deprecated_store_return_value
7827 for 32-bit targets. Set extract_return_value and
7828 store_return_value instead.
7829 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7830 DEPRECTAED_EXTRACT_RETURN_VALUE,
7831 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7832 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7833 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7834 (sparc_store_return_value): Remove prototype.
7835 (sparc32_store_return_value): New prototype.
7836 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7837 Adjust prototypes.
7838
f6ad61e3
MK
78392003-05-24 Mark Kettenis <kettenis@gnu.org>
7840
7841 * sparcnbsd-tdep.c: Include "gdb_string.h".
7842
b276f1bb
AC
78432003-05-23 Andrew Cagney <cagney@redhat.com>
7844
7845 * p-valprint.c (pascal_val_print): Replace extract_address with
7846 the inline equivalent extract_unsigned_integer.
7847 * jv-valprint.c (java_value_print): Ditto.
7848 * ada-valprint.c (ada_val_print_1): Ditto.
7849 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7850
e76c5fcc
TR
78512003-05-23 Theodore A. Roth <troth@openavr.org>
7852
7853 * blockframe.c (frameless_look_for_prologue): Remove unused
7854 after_prologue variable.
7855
2cdd89cb
MK
78562003-05-23 Mark Kettenis <kettenis@gnu.org>
7857
7858 * blockframe.c (get_pc_function_start): Rewrite to avoid
7859 asignments in if-statements.
7860
182d43bc
EZ
78612003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7862
7863 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 7864 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
7865 files, don't relocate absolute symbols (and do use mst_abs).
7866
e8f3fcdd
AC
78672003-05-23 Andrew Cagney <cagney@redhat.com>
7868
7869 * objc-lang.c: Include "gdb_assert.h".
7870 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7871 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7872 (gdb_check, gdb_check_fatal): Delete functions.
7873 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7874 gdb_assert.
7875 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7876 * Makefile.in (objc-lang.o): Update dependencies.
7877
3c23e6fb
ILT
78782003-05-22 Ian Lance Taylor <ian@airs.com>
7879
7880 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7881 with fprintf_filtered, not fprintf_unfiltered.
7882
af1342ab
AC
78832003-05-22 Andrew Cagney <cagney@redhat.com>
7884
7885 * stack.c (frame_info): Inline extract_address, replacing it with
7886 extract_unsigned_integer.
7887 * findvar.c (unsigned_pointer_to_address): Ditto.
7888 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7889 * dwarf2expr.c (dwarf2_read_address): Ditto.
7890 * frame.c (frame_pc_unwind): Update comment.
7891 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7892
47e242ec
JJ
78932003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7894
7895 * infptrace.c (detach): Call print_sys_errmsg rather than
7896 perror_with_name to issue warning message when errno is non-zero
7897 after calling ptrace detach.
7898
e2ac8128
JB
78992003-05-21 J. Brobecker <brobecker@gnat.com>
7900
7901 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7902 macro definitions from here...
7903 * hppa-tdep.c: ...to there.
7904
92b3541e
KB
79052003-05-20 Kevin Buettner <kevinb@redhat.com>
7906
7907 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7908 register_ptrace_addr(). Fix all callers.
7909
55809acb
AS
79102003-05-21 Andreas Schwab <schwab@suse.de>
7911
7912 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7913 dependencies.
7914 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7915 end.
7916 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7917 (_initialize_m68k_linux_tdep): New function.
7918 (m68k_linux_frame_saved_pc): Make static.
7919 (m68k_linux_extract_return_value): Likewise.
7920 (m68k_linux_store_return_value): Likewise.
7921 (m68k_linux_extract_struct_value_address): Likewise.
7922 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7923 Remove.
7924 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7925 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7926 (DEPRECATED_FRAME_SAVED_PC): Remove.
7927
0fbc10f7
KW
79282003-05-20 Kris Warkentin <kewarken@qnx.com>
7929
7930 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7931 regset numbering rather than our own.
7932
58da2eb2
DC
79332003-05-19 David Carlton <carlton@bactrian.org>
7934
7935 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7936
1fcb5155
DC
79372003-05-19 David Carlton <carlton@bactrian.org>
7938
7939 Partial fix for PR c++/827.
7940 * cp-support.h: Include symtab.h.
7941 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7942 * cp-namespace.c: Update contributors.
7943 (cp_lookup_symbol_nonlocal): New.
7944 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7945 (lookup_symbol_file): Ditto.
7946 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7947 * block.h: Declare block_scope, block_using, block_global_block.
7948 * block.c (block_scope): New.
7949 (block_using, block_global_block): Ditto.
7950 * Makefile.in (cp_support_h): Depend on symtab_h.
7951 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7952
5f9a71c3
DC
79532003-05-19 David Carlton <carlton@bactrian.org>
7954
7955 * language.h (struct language_defn): Add 'la_value_of_this'
7956 and 'la_lookup_symbol_nonlocal' members.
7957 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7958 lookup_symbol_static, lookup_symbol_global,
7959 lookup_symbol_aux_block.
7960 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7961 if we should search fields of this and how to do static/global
7962 lookup.
7963 (lookup_symbol_aux_block): Make extern.
7964 (basic_lookup_symbol_nonlocal): New.
7965 (lookup_symbol_static, lookup_symbol_global): Ditto.
7966 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7967 'la_lookup_symbol_nonlocal' members.
7968 * c-lang.c (c_language_defn, cplus_language_defn)
7969 (asm_language_defn, minimal_language_defn): Ditto.
7970 * jv-lang.c (java_language_defn): Ditto.
7971 * language.c (unknown_language_defn, auto_language_defn)
7972 (local_language_defn): Ditto.
7973 * m2-lang.c (m2_language_defn): Ditto.
7974 * objc-lang.c (objc_language_defn): Ditto.
7975 * scm-lang.c (scm_language_defn): Ditto.
7976 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7977 * p-lang.c (pascal_language_defn): Ditto for both.
7978 * Makefile.in (f-lang.o): Depend on value_h.
7979 (p-lang.o): Ditto.
7980
89a9d1b1
DC
79812003-05-19 David Carlton <carlton@bactrian.org>
7982
7983 * block.h: Declare block_static_block.
7984 * block.c (block_static_block): New.
7985 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7986 lookup_symbol_aux_local, calling block_static_block instead.
7987 (lookup_symbol_aux_local): Delete 'static_block' argument.
7988
eed3f8ab
DC
79892003-05-19 David Carlton <carlton@bactrian.org>
7990
7991 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7992
a09d8bda
ML
79932003-05-19 Michal Ludvig <mludvig@suse.cz>
7994
7995 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7996 register numbers mapping.
7997
69636828
AF
79982003-05-18 Adam Fedor <fedor@gnu.org>
7999
8000 * symtab.c (completion_list_objc_symbol): New function.
8001 (make_symbol_completion_list): Use it to add ObjC symbols
8002 when looking though the list.
8003 (language_search_unquoted_string): New function.
8004 (make_file_symbol_completion_list): Use it.
8005
55baeb84
AS
80062003-05-18 Andreas Schwab <schwab@suse.de>
8007
d0b45d99
AS
8008 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8009 dependencies.
8010 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8011 as m68k_linux_extract_return_value.
8012 (DEPRECATED_STORE_RETURN_VALUE): Define as
8013 m68k_linux_store_return_value.
8014 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8015 m68k_linux_extract_struct_value_address.
8016 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8017 get_next_frame, get_frame_base, get_frame_pc.
8018 (m68k_linux_frame_saved_pc): Use get_frame_base.
8019 (m68k_linux_extract_return_value): New function.
8020 (m68k_linux_store_return_value): New function.
8021 (m68k_linux_extract_struct_value_address): New function.
8022 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8023
55baeb84
AS
8024 * c-exp.y (typebase): Remove duplicate occurence of
8025 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 8026 of lookup_signed_typename.
55baeb84 8027
b6b08ebf
MK
80282003-05-18 Mark Kettenis <kettenis@gnu.org>
8029
8030 * dwarf2loc.c (find_location_expression): Change type of second
8031 argument to `size_t *'.
8032 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8033 for size variable.
8034
5ad1c190
DC
80352003-05-18 David Carlton <carlton@bactrian.org>
8036
8037 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8038 'linkage_name'. Add comment.
8039 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8040 'linkage_name'.
8041 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8042 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8043 (lookup_block_symbol): Ditto.
8044
b8b527c5
AC
80452003-05-16 Andrew Cagney <cagney@redhat.com>
8046
8047 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8048 * gdbarch.h, gdbarch.c: Re-generate.
8049 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8050 * TODO (REGISTER_BYTES): Delete reference.
8051 * alpha-tdep.c (alpha_gdbarch_init): Update.
8052 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8053 * x86-64-tdep.c (x86_64_init_abi): Update.
8054 * vax-tdep.c (vax_gdbarch_init): Update.
8055 * v850-tdep.c (v850_gdbarch_init): Update.
8056 * sparc-tdep.c (sparc_gdbarch_init): Update.
8057 * sh-tdep.c (sh_gdbarch_init): Update.
8058 * s390-tdep.c (s390_gdbarch_init): Update.
8059 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8060 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8061 (ns32k_gdbarch_init_32382): Update.
8062 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8063 * mcore-tdep.c (mcore_gdbarch_init): Update.
8064 * m68k-tdep.c (m68k_gdbarch_init): Update.
8065 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8066 * ia64-tdep.c (ia64_gdbarch_init): Update.
8067 * i386-tdep.c (i386_gdbarch_init): Update.
8068 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8069 * hppa-tdep.c (hppa_gdbarch_init): Update.
8070 * h8300-tdep.c (h8300_gdbarch_init): Update.
8071 * frv-tdep.c (frv_gdbarch_init): Update.
8072 * cris-tdep.c (cris_gdbarch_init): Update.
8073 * avr-tdep.c (avr_gdbarch_init): Update.
8074 * arm-tdep.c (arm_gdbarch_init): Update.
8075 * sparc-tdep.c (sparc_pop_frame): Update.
8076 * rs6000-tdep.c (rs6000_pop_frame): Update.
8077 * remote.c (init_remote_state): Update.
8078 (remote_prepare_to_store): Update.
8079 * remote-vx.c (vx_prepare_to_store): Update.
8080 * remote-sds.c (sds_fetch_registers): Update.
8081 (sds_prepare_to_store): Update.
8082 * remote-array.c: Update.
8083 * regcache.c (init_legacy_regcache_descr): Update.
8084 (init_regcache_descr): Update.
8085 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8086 (mips_o64_extract_return_value): Update.
8087 * irix5-nat.c (fetch_core_registers): Update.
8088 * irix4-nat.c (fetch_core_registers): Update.
8089 * i386-tdep.h: Update.
8090 * hppa-tdep.c (pa_do_registers_info): Update.
8091 (pa_do_strcat_registers_info): Update.
8092 * cris-tdep.c (cris_register_bytes_ok): Update.
8093 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8094 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8095 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8096 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8097 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8098 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8099 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8100 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8101 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8102 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8103 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8104 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8105 (REGISTER_BYTES_OK): Update.
8106 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8107 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8108
ee2842e2
ILT
81092003-05-16 Ian Lance Taylor <ian@airs.com>
8110
8111 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8112 (vax_print_insn, print_insn_arg): Remove static functions.
8113 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8114 print_insn_vax from opcodes library.
8115 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8116
973177d3
AC
81172003-05-15 Andrew Cagney <cagney@redhat.com>
8118
aaab4dba
AC
8119 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8120 * target.h (memory_breakpoint_from_pc): Delete declaration.
8121 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8122 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8123 * monitor.c (monitor_insert_breakpoint): Use
8124 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8125 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8126 * gdbarch.h, gdbarch.c: Re-generate.
8127 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8128 (sparc_gdbarch_init): Set breakpoint_from_pc to
8129 sparc_breakpoint_from_pc.
8130 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8131 (BREAKPOINT_FROM_PC): Define.
8132 (sparc_breakpoint_from_pc): Declare.
8133 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8134 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8135 (BREAKPOINT_FROM_PC): Define.
8136 (BREAKPOINT): Delete macro.
8137 * target.h: Update comment.
8138 * s390-tdep.c (s390_gdbarch_init): Update comments.
8139 * remote.c: Update comments.
8140 * remote-mips.c: Update comments.
8141 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8142 * mem-break.c: Update comment.
8143 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8144 (ia64_memory_insert_breakpoint): Update.
8145 * config/sparc/tm-sparc.h: Update comment.
8146 * config/pa/tm-hppa64.h: Update comment.
8147 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8148 (rs6000_breakpoint_from_pc): Update.
8149 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8150 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8151 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8152 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8153 (mips_breakpoint_from_pc): Update.
8154 (mips_dump_tdep): Update.
8155
e06963ff
AC
8156 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8157 * minsyms.c (lookup_minimal_symbol): Inline
8158 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8159
973177d3
AC
8160 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8161 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8162 * p-lang.c (pascal_printstr): Ditto.
8163 * objc-lang.c (objc_printstr): Ditto.
8164 * m2-lang.c (m2_printstr): Ditto.
8165 * jv-valprint.c (java_print_value_fields): Ditto.
8166 * f-lang.c (f_printstr): Ditto.
8167 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8168 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8169 for repeat_count_threshold.
8170 * Makefile.in (cp-valprint.o): Update dependencies.
8171
5ea2bd7f 81722003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8173
5ea2bd7f
JJ
8174 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8175 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
8176 they start with mov r2,r12. Support skipping over indirect stores
8177 of the input registers. Upon hitting a non-nop branch instruction
8178 or predicated instruction, bail out by setting lim_pc to the current
8179 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
8180 beyond our calculated value and we have trust_limit set,
8181 use the lim_pc value.
8182
cc8c88f3
AC
81832003-05-15 Andrew Cagney <cagney@redhat.com>
8184
8185 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8186 generic_find_dummy_frame.
8187 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8188 (deprecated_generic_find_dummy_frame): Update.
8189 (deprecated_read_register_dummy): Update.
8190 * frame.c (deprecated_generic_get_saved_register): Update.
8191
909cd28e
TR
81922003-05-15 Theodore A. Roth <troth@openavr.org>
8193
8194 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8195 (avr_gdbarch_init): Set breakpoint_from_pc method.
8196
b923b08d
AC
81972003-05-15 Andrew Cagney <cagney@redhat.com>
8198
8199 * regcache.c (build_regcache): Set deprecated_register_valid
8200 directly.
8201 (deprecated_grub_regcache_for_register_valid): Delete function.
8202 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8203 declaration.
8204
ae2f03ac 82052003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
8206
8207 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
8208 * symtab.c (lookup_symbol_aux): Delete calls to
8209 lookup_symbol_aux_minsyms.
8210 (lookup_symbol_aux_minsyms): Comment out function and
8211 prototype. Delete lookup by mangled name.
ae2f03ac 8212
18ec9831
KB
82132003-05-14 Kevin Buettner <kevinb@redhat.com>
8214
8215 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8216 correctly indicate an empty stack and ``stack_allocated'' to the
8217 indicate the number of elements initially allocated.
8218 (dwarf_expr_grow_stack): Simplify method for computing new
8219 stack size. Don't loop infinitely if ``stack_len'' is zero.
8220 (execute_stack_op): Move ``ctx->in_reg'' initialization
8221 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8222 be used in conjuction with DW_OP_piece. Revise error message
8223 accordingly.
8224
de18ac1f
TR
82252003-05-14 Theodore A. Roth <troth@openavr.org>
8226
8227 * MAINTAINERS: Update my email address.
8228 * avr-tdep.c: Ditto.
8229
176620f1
EZ
82302003-05-14 Elena Zannoni <ezannoni@redhat.com>
8231
8232 * symtab.h (enum domain_enum): Rename from namespace_enum.
8233 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8234 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8235 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8236 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8237 TYPES_NAMESPACE, METHODS_NAMESPACE.
8238 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8239 (struct symbol, struct partial_symbol): Rename field
8240 'namespace_enum namespace' to 'domain_enum domain'.
8241 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8242 Delete old define kludge for namespace.
8243
8244 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8245 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8246 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8247 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8248 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8249 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8250 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8251 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8252 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8253 occurrences of the above.
8254
b7f31508
ILT
82552003-05-14 Ian Lance Taylor <ian@airs.com>
8256
8257 * Makefile.in (install-only): Use $(SHELL) when running
8258 mkinstalldirs.
8259
2fdbdd39
ILT
82602003-05-13 Ian Lance Taylor <ian@airs.com>
8261
a208d82c
ILT
8262 * MAINTAINERS (write after approval): Add myself.
8263
2fdbdd39
ILT
8264 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8265 second and third arguments.
8266 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8267 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8268
fbd9dcd3
AC
82692003-05-13 Andrew Cagney <cagney@redhat.com>
8270
8271 * defs.h (store_address): Delete declaration.
8272 findvar.c (store_address): Delete function.
8273 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8274 store_unsigned_integer.
8275 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8276 * v850-tdep.c (v850_push_arguments): Ditto.
8277 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8278 * sh-tdep.c (sh64_get_saved_register): Ditto.
8279 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8280 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8281 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8282 (mips_get_saved_register): Ditto.
8283 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8284 (find_func_descr, ia64_push_arguments): Ditto.
8285 * i386-tdep.c (i386_push_arguments): Ditto.
8286 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8287 * frv-tdep.c (frv_push_arguments): Ditto.
8288 * frame.c (legacy_saved_regs_prev_register): Ditto.
8289 (deprecated_generic_get_saved_register): Ditto.
8290 * findvar.c (unsigned_address_to_pointer): Ditto.
8291 * dwarf2read.c (dwarf2_const_value): Ditto.
8292 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8293 * alpha-tdep.c (alpha_push_arguments): Ditto.
8294
6760f9e6
JB
82952003-05-12 J. Brobecker <brobecker@gnat.com>
8296
8297 * NEWS: Mention that the hppa-hpux port has been partially
8298 multiarched (32bit ABIT only, so far).
8299
30e221b4
AC
83002003-05-11 Andrew Cagney <cagney@redhat.com>
8301
8302 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8303 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8304 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8305 sim/testsuite/sim/arm/misaligned2.ms, and
8306 sim/testsuite/sim/arm/misaligned3.ms.
8307 * disasm.h (struct ui_file): Add opaque struct declaration.
8308 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8309 * frame.h (struct ui_file): Ditto.
8310
dea7f9ba
MK
83112003-05-11 Mark Kettenis <kettenis@gnu.org>
8312
8313 * value.h: Pretty print.
8314
01986c48
MK
83152003-05-10 Mark Kettenis <kettenis@gnu.org>
8316
8317 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8318
123a958e
AC
83192003-05-08 Andrew Cagney <cagney@redhat.com>
8320
8321 * regcache.h (max_register_size): Delete declaration.
8322 * regcache.c (max_register_size): Delete function.
8323 (struct regcache_descr): Delete field "max_register_size".
8324 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8325 registers fit in MAX_REGISTER_SIZE.
8326 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8327 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8328 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8329 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8330 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8331 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8332 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8333 * dve3900-rom.c, hppa-tdep.c: Ditto.
8334
eb294659
DC
83352003-05-08 David Carlton <carlton@math.stanford.edu>
8336
8337 * valops.c (push_word): Fix typo.
8338
d9d9c31f
AC
83392003-05-08 Andrew Cagney <cagney@redhat.com>
8340
8341 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8342 * gdbarch.h: Re-generate.
8343 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8344 (legacy_max_register_raw_size): Delete declaration.
8345 * regcache.c (legacy_max_register_raw_size): Delete function.
8346 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8347 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8348 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8349 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8350 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8351 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8352 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8353 * findvar.c, dwarf2cfi.c: Ditto.
8354
22540ece
AC
83552003-05-08 Andrew Cagney <cagney@redhat.com>
8356
8357 * mips-tdep.c (read_signed_register): New function, moved to here
8358 from "regcache.c".
8359 (read_signed_register_pid): Ditto.
8360 * regcache.c (read_signed_register_pid): Delete function, moved to
8361 "mips-tdep.c".
8362 (read_signed_register): Ditto.
8363 * regcache.h (read_signed_register): Delete declaration.
8364 (read_signed_register_pid): Delete declaration.
8365
0c92afe8
AC
83662003-05-08 Andrew Cagney <cagney@redhat.com>
8367
8368 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8369 * gdbarch.h: Re-generate.
8370 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8371 (legacy_max_register_virtual_size): Delete declaration.
8372 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8373 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8374 * tracepoint.c (memrange_sortmerge): Ditto.
8375 * sparc-tdep.c (sparc_print_registers): Ditto.
8376 * regcache.c (legacy_max_register_virtual_size): Delete function.
8377
6037b830
JB
83782002-05-08 J. Brobecker <brobecker@gnat.com>
8379
8380 * fork-child.c (escape_bang_in_quoted_argument): New function.
8381 (fork_inferior): Escape '!' characters in quoted arguments
8382 only when needed.
8383
5d62c8b1
JB
83842003-05-08 J. Brobecker <brobecker@gnat.com>
8385
8386 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8387 the language of the CU is not currently supported by GDB.
8388
20a0e81d
JB
83892003-05-08 J. Brobecker <brobecker@gnat.com>
8390
8391 * defs.h (language): Add language_minimal enum value.
8392 * c-lang.c (minimal_language_defn): New language definition.
8393 (_initialize_c_language): Add the new minimal language to the list
8394 of languages known to GDB.
8395
710ee10a
KB
83962003-05-08 Kevin Buettner <kevinb@redhat.com>
8397
8398 * frame.c (get_frame_type): Don't attempt to lazily initialize
8399 frame's unwinder for legacy frames.
8400
1750fa04
AC
84012003-05-07 Andrew Cagney <cagney@redhat.com>
8402
8403 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8404 and "regcache" parameters.
8405 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8406
ddf9f258 84072003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8408
8409 * dwarf2read.c (dwarf_decode_lines): Only use output of
8410 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
8411 the current address.
8412
87767c29
AC
84132003-05-07 Andrew Cagney <cagney@redhat.com>
8414
8415 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8416 code.
8417
5e7b2f39
JB
84182003-05-07 Jim Blandy <jimb@redhat.com>
8419
8420 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8421 'maint info symtabs' and 'maint info psymtabs'.
8422 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8423 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8424 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8425 Declarations updated.
8426 * maint.c (maintenance_list_command): Delete.
8427 (_initialize_maint_cmds): Update calls to add_cmd.
8428 * gdbcmd.h (maintenancelistlist): Delete declaration.
8429 * cli/cli-cmds.c (maintenancelistlist): Delete.
8430 (init_cmd_lists): Don't initialize it.
8431 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8432
f6684c31
AC
84332003-05-07 Andrew Cagney <cagney@redhat.com>
8434
8435 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8436 "regcache".
8437 (d10v_print_registers_info): Update.
8438 (d10v_dmap_register, d10v_imap_register): Delete functions.
8439 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8440 and "imap_register".
8441 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8442 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8443 * arch-utils.c (generic_remote_translate_xfer_address): Add
8444 "regcache" and "gdbarch" parameters.
8445 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8446 parameter. Change class to multi-arch.
8447 * gdbarch.h, gdbarch.c: Re-generate.
8448 * remote.c (remote_xfer_memory): Use
8449 gdbarch_remote_translate_xfer_address.
8ffd9b1b 8450
e4846b08
JJ
84512003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8452
8453 * infrun.c (prev_pc): Move declaration ahead of proceed().
8454 (proceed): Refresh prev_pc value before resuming.
8455 (stop_stepping): Remove code to refresh prev_pc.
8456
6b71b8ac
KW
84572003-05-06 Kris Warkentin <kewarken@qnx.com>
8458
8459 * nto-tdep.c: Removed stray comment.
8460
47979a4b
KW
84612003-05-06 Kris Warkentin <kewarken@qnx.com>
8462
8463 * i386-nto-tdep.c: Fix old K&R function definitions.
8464 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8465 Also change add_show_from_set() call to add_setshow_cmd().
8466 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8467
00905d52
AC
84682003-05-05 Andrew Cagney <cagney@redhat.com>
8469
8470 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8471 (fprint_dummy_frames): New function.
8472 (maintenance_print_dummy_frames): New function.
8473 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8474 * frame.c (fprint_frame_id): Make global.
8475 * frame.h (fprint_frame_id): Declare.
8476 * Makefile.in (dummy-frame.o): Update dependencies.
8477
b1e29e33
AC
84782003-05-05 Andrew Cagney <cagney@redhat.com>
8479
8480 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8481 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8482 SIZEOF_CALL_DUMMY_WORDS.
8483 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8484 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8485 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8486 CALL_DUMMY_BREAKPOINT_OFFSET.
8487 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8488 CALL_DUMMY_START_OFFSET.
8489 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8490 * gdbarch.h, gdbarch.c: Re-generate.
8491 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8492 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8493 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8494 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8495 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8496 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8497 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8498 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8499 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8500 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8501 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8502 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8503 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8504 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8505 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
8506
85072003-05-05 Kris Warkentin <kewarken@qnx.com>
8508
8509 * configure.tgt: Add i[3456]86-*-nto*.
8510 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8511 * nto-tdep.c: New file. Neutrino target support routines.
8512 * nto-tdep.h: New file. Neutrino target header.
8513 * config/tm-qnxnto.h: New file.
8514 * config/i386/i386nto.mt: New file.
8515 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 8516
0ce3d317
AC
85172003-05-04 Andrew Cagney <cagney@redhat.com>
8518
8519 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8520 (load_infrun_state): Ditto.
8521 (struct thread_info): Drop "prev_func_name" field.
8522 * thread.c (load_infrun_state): Update.
8523 (save_infrun_state): Update.
8524 * infrun.c (prev_func_name): Delete variable.
8525 (init_wait_for_inferior): Do not clear prev_func_name.
8526 (stop_stepping, keep_going, context_switch): Do not swap
8527 prev_func_name.
8528 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8529 instead of PC_IN_SIGTRAMP.
8530
46654a5b
AC
85312003-05-04 Andrew Cagney <cagney@redhat.com>
8532
8533 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8534 REGISTER_BYTE with register_offset_hack.
8535 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8536 that REGISTER_BYTE is consistent with the regcache.
8537 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8538 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 8539
14b08c1b
MK
85402003-05-04 Mark Kettenis <kettenis@gnu.org>
8541
04c8243f
MK
8542 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8543 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8544
14b08c1b
MK
8545 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8546
c7a11e01
JB
85472003-05-03 J. Brobecker <brobecker@gnat.com>
8548
8549 From Thierry Schneider <tpschneider1@yahoo.com>
8550 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8551 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8552 (mi-cmd-symbol.o): Add rule.
8553
7043d8dc
AC
85542003-05-03 Andrew Cagney <cagney@redhat.com>
8555
8556 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8557 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8558 * gdbarch.h, gdbarch.c: Re-generate.
8559 * d10v-tdep.c (d10v_push_dummy_code): New function.
8560 (d10v_gdbarch_init): Set push_dummy_code.
8561 * infcall.c (legacy_push_dummy_code): New function.
8562 (generic_push_dummy_code): New function.
8563 (push_dummy_code): New function.
8564 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8565 instead of dummy_addr, to push_dummy_call. Move call to
8566 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8567 switch.
8568 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8569
92bf2b80
AC
85702003-05-03 Andrew Cagney <cagney@redhat.com>
8571
8572 * disasm.h (print_insn): Declare.
8573 * disasm.c (init_gdb_disassemble_info): New function.
8574 (gdb_disassembly): Call init_gdb_disassemble_info.
8575 (gdb_print_insn): New function.
8576 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8577 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8578 * mcore-tdep.c: Include "disasm.h"
8579 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8580 * d10v-tdep.c: Include "disasm.h".
8581 (display_trace): Call gdb_print_insn, instead of print_insn.
8582 (print_insn): Delete function.
8583 * printcmd.c: Include "disasm.h".
8584 (print_insn): Delete function.
8585 (print_formatted): Call gdb_print_insn, instead of print_insn.
8586 * Makefile.in (printcmd.o): Update dependencies.
8587 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 8588
27d94c49
AC
85892003-05-02 Andrew Cagney <cagney@redhat.com>
8590
82de1e5b
AC
8591 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8592 PC_REGNUM, re-indent.
8593 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8594 PC_REGNUM isn't set.
8595
27d94c49
AC
8596 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8597 * gdbarch.h, gdbarch.c: Re-generate.
8598 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8599 register_virtual_size, pc_regnum, or register_bytes.
8600 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8601 (d10v_register_type): Use D10V_PC_REGNUM.
8602 (d10v_print_registers_info, d10v_read_pc): Ditto.
8603 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8604 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8605
a9c0dc7f
DC
86062003-05-02 David Carlton <carlton@bactrian.org>
8607
8608 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8609 the name with mstrsave.
8610
e33d66ec
EZ
86112003-05-02 Elena Zannoni <ezannoni@redhat.com>
8612
8613 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8614 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8615 (host_charset_name, target_charset_name): New vars for use by
8616 set/show commands.
8617 (host_charset_enum, target_charset_enum): New enums for set/show
8618 commands.
8619 (set_charset_sfunc, set_host_charset_sfunc,
8620 set_target_charset_sfunc): New functions.
8621 (set_host_charset, set_target_charset): Make static.
8622 (list_charsets, set_host_charset_command,
8623 set_target_charset_command): Delete functions.
8624 (show_charset_command): Rewrite as....
8625 (show_charset): Hook this up with the set/show command mechanism.
8626 (_initialize_charset): Change names of charsets to match the
8627 set/show enums. Use host_charset_name and target_charset_name.
8628 Use set/show mechanism for charset, host-charset, target-charset
8629 commands. Do not make 'show host-charset' and 'show
8630 target-charset' be aliases of 'show charset'.
8631
8632 * charset.h (set_host_charset, set_target_charset): Don't export,
8633 they are not used outside the file.
8634
2b6fd0d8
AC
86352003-05-01 Andrew Cagney <cagney@redhat.com>
8636
8637 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8638 (gdb_disassembly): Make "di" non static, always initialize and
8639 cleanup. Always use dis_asm_read_memory.
8640 (gdb_dis_asm_read_memory): Delete function.
8641
6ae2f580
AC
86422003-05-01 Andrew Cagney <cagney@redhat.com>
8643
8644 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8645 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8646
810ecf9f
AC
86472003-04-30 Andrew Cagney <cagney@redhat.com>
8648
8649 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8650 "tm_print_insn_info".
8651 (TARGET_PRINT_INSN_INFO): Delete macro.
8652 (dis_asm_read_memory): Delete function declaration.
8653 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8654 (tm_print_insn_info): Delete variable definition.
8655 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8656 * gdbarch.h, gdbarch.c: Re-generate.
8657 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8658 "deprecated_tm_print_insn_info".
8659 * mcore-tdep.c (mcore_dump_insn): Ditto.
8660 * mips-tdep.c (mips_gdbarch_init): Ditto.
8661 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8662 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8663 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8664 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8665 instead of TARGET_PRINT_INSN_INFO, add comment.
8666 * s390-tdep.c (s390_get_frame_info): Instead of
8667 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8668 (s390_check_function_end, s390_is_sigreturn): Ditto.
8669 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8670 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8671 * disasm.c: Include "gdbcore.h".
8672 (_initialize_disasm): New function, initialize
8673 "deprecated_tm_print_insn_info".
8674 (deprecated_tm_print_insn_info): New variable.
8675 (dis_asm_read_memory): Moved from "corefile.c", made static.
8676 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8677 * Makefile.in (disasm.o): Update dependencies.
8678
07020390
AC
86792003-04-30 Andrew Cagney <cagney@redhat.com>
8680
8681 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8682
a9fa03de
AF
86832003-04-29 Adam Fedor <fedor@gnu.org>
8684
8685 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8686 * infcall.c (find_function_addr): Make non-static.
8687 * infcall.h (find_function_addr): Declare.
8688 * Makefile.in (eval.o): Update dependencies.
8689
1bae87b9
AF
86902003-04-28 Adam Fedor <fedor@gnu.org>
8691
8692 * symtab.c (symbol_find_demangled_name): Check for and demangle
8693 ObjC symbols.
8694 (symbol_init_demangled_name): Init for language_objc as well.
8695
0ba6dca9
AC
86962003-04-28 Andrew Cagney <cagney@redhat.com>
8697
8698 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8699 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8700 * gdbarch.h, gdbarch.c: Re-generate.
8701 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8702 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8703 * inferior.h (deprecated_read_fp): Rename read_fp.
8704 (generic_target_read_fp): Delete declaration.
8705 * regcache.c (generic_target_read_fp): Delete function.
8706 (deprecated_read_fp): Replace read_fp, use
8707 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8708 * d10v-tdep.c (d10v_read_fp): Delete function.
8709 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8710
8711 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8712 deprecated_target_read_fp to generic_target_read_fp.
8713 * sh-tdep.c (sh_gdbarch_init): Ditto.
8714 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8715 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8716 * frv-tdep.c (frv_gdbarch_init): Ditto.
8717
8718 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8719 deprecated_fp_regnum.
8720 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8721 * vax-tdep.c (vax_gdbarch_init): Ditto.
8722 * v850-tdep.c (v850_gdbarch_init): Ditto.
8723 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8724 * sh-tdep.c (sh_gdbarch_init): Ditto.
8725 * s390-tdep.c (s390_gdbarch_init): Ditto.
8726 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8727 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8728 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8729 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8730 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8731 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8732 * i386-tdep.c (i386_gdbarch_init): Ditto.
8733 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8734 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8735 * frv-tdep.c (frv_gdbarch_init): Ditto.
8736 * cris-tdep.c (cris_gdbarch_init): Ditto.
8737 * avr-tdep.c (avr_gdbarch_init): Ditto.
8738 * arm-tdep.c (arm_gdbarch_init): Ditto.
8739 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8740
8741 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8742 * v850-tdep.c (v850_gdbarch_init): Ditto.
8743 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8744 * sh-tdep.c (sh_gdbarch_init): Ditto.
8745 * s390-tdep.c (s390_gdbarch_init): Ditto.
8746 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8747 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8748 * mips-tdep.c (mips_gdbarch_init): Ditto.
8749 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8750 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8751 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8752 * frv-tdep.c (frv_gdbarch_init): Ditto.
8753 * avr-tdep.c (avr_gdbarch_init): Ditto.
8754 * arm-tdep.c (arm_gdbarch_init): Ditto.
8755
8756 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8757 DEPRECATED_FP_REGNUM.
8758 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8759 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8760 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8761 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8762 (sparc32_register_virtual_type): Ditto.
8763 * sh-tdep.c (sh64_frame_chain): Ditto.
8764 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8765 (sh_nofp_frame_init_saved_regs): Ditto.
8766 (sh64_nofp_frame_init_saved_regs): Ditto.
8767 (sh_fp_frame_init_saved_regs): Ditto.
8768 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8769 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8770 * procfs.c (procfs_fetch_registers): Ditto.
8771 (procfs_store_registers): Ditto.
8772 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8773 (store_inferior_registers, fetch_core_registers): Ditto.
8774 (fetch_kcore_registers, clear_regs): Ditto.
8775 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8776 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8777 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8778 * nlm/i386.c (do_status): Ditto.
8779 * mipsv4-nat.c (supply_gregset): Ditto.
8780 * mips-tdep.c: Ditto for comments.
8781 * mips-nat.c (fetch_inferior_registers): Ditto.
8782 (store_inferior_registers, fetch_core_registers): Ditto.
8783 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8784 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8785 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8786 (i386_do_pop_frame, i386_register_type): Ditto.
8787 * hppa-tdep.c (hppa_frame_chain): Ditto.
8788 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8789 (hppa_pop_frame, hppa_read_fp): Ditto.
8790 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8791 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8792 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8793 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8794 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8795 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8796 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8797 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8798 * blockframe.c: Ditto for comments.
8799 * arch-utils.h: Ditto for comments.
8800 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8801 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8802 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8803 * alpha-tdep.h: Ditto for comments.
8804 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8805 (alpha_cannot_store_register): Ditto.
8806 (alpha_push_dummy_frame): Ditto.
8807 * alpha-nat.c (supply_gregset): Ditto.
8808
8809 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8810 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8811 * config/sparc/tm-sparc.h: Update comment.
8812
8813 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8814 deprecated_read_fp instead of TARGET_READ_FP.
8815 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8816 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8817 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8818 deprecated_read_fp instead of read_fp.
8819 * s390-tdep.c (s390_push_arguments): Ditto.
8820 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8821 * frame.h: Ditto in comments.
8822 * frame.c (legacy_get_prev_frame): Ditto.
8823 * dummy-frame.c (dummy_frame_this_id): Ditto.
8824 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8825
d7a27068
AC
88262003-04-28 Andrew Cagney <cagney@redhat.com>
8827
8828 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8829 * gdbarch.h, gdbarch.c: Re-generate.
8830 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8831 * vax-tdep.c (_initialize_vax_tdep): Update.
8832 * v850-tdep.c (_initialize_v850_tdep): Update.
8833 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8834 * s390-tdep.c (_initialize_s390_tdep): Update.
8835 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8836 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8837 * mips-tdep.c (_initialize_mips_tdep): Update.
8838 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8839 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8840 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8841 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8842 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8843 * frv-tdep.c (_initialize_frv_tdep): Update.
8844 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8845 (_initialize_cris_tdep): Update.
8846 * arch-utils.c (legacy_print_insn): Update.
8847 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8848
d2630e69
AF
88492003-04-26 Adam Fedor <fedor@gnu.org>
8850
8851 * linespec.c (decode_objc): New function to decode ObjC calls
8852 (decode_line_1): Check for ObjC calls (using decode_objc)
8853 * Makefile (linespec.o): Update dependencies.
8854
3086aeae
DJ
88552003-04-26 Daniel Jacobowitz <drow@mvista.com>
8856
8857 * breakpoint.h (struct breakpoint_ops): New.
8858 (struct breakpoint): Add ops member.
8859
8860 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8861 (mention): Use new breakpoint ops member.
8862 (set_raw_breakpoint): Initialize ops field to NULL.
8863 (print_exception_catchpoint, print_one_exception_catchpoint)
8864 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8865 (gnu_v3_exception_catchpoint_ops): New.
8866 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8867
1fbec6c3
AF
88682003-04-25 Adam Fedor <fedor@gnu.org>
8869
8870 * Makefile.in (COMMON_OBS): Add objc-lang.o
8871
0ef21242
AC
88722003-04-25 Andrew Cagney <cagney@redhat.com>
8873
8874 * d10v-tdep.c (print_insn): Delete function.
8875 (display_trace): Use TARGET_PRINT_INSN.
8876 (_initialize_d10v_tdep): Do not set tm_print_insn.
8877 (d10v_gdbarch_init): Set print_insn.
8878
f75493ed
AC
88792003-04-25 Andrew Cagney <cagney@redhat.com>
8880
8881 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8882 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8883 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8884 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8885 (nr_dmap_regs, a0_regnum): ... new functions.
8886 (d10v_print_registers_info): Use a0_regnum, use register_size.
8887 (d10v_register_byte): Delete function.
8888 (d10v_register_raw_size): Delete function.
8889 (d10v_register_type): Use a0_regnum.
8890 (d10v_print_registers_info): Use a0_regnum.
8891 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8892 (d10v_gdbarch_init): Do not set register_byte or
8893 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8894 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8895 extract_address.
8896 (trace_command): Use XCALLOC.
8897 (print_insn): Delete reference to tm_print_insn.
8898 (saved_regs_unwinder): Use store_unsigned_integer instead of
8899 store_address.
8900 * frame.h (FRAME_OBSTACK_CALLOC): Define
8901
2202b100
DC
89022003-04-25 David Carlton <carlton@bactrian.org>
8903
8904 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8905
4e45ca2e
AF
89062003-04-24 Adam Fedor <fedor@gnu.org>
8907
8908 * objc-lang.c: Include "valprint.h"
8909 * Makefile.in (objc-lang.o): Update dependencies.
8910
93de3e7f
AF
89112003-04-24 Adam Fedor <fedor@gnu.org>
8912
8ffd9b1b 8913 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
8914 architecture dependant compilation and mark as unimplemented
8915 (until they get put in the gdbarch vector).
8916
0f20eeea
DC
89172003-04-23 David Carlton <carlton@bactrian.org>
8918
8919 * cp-support.c (cp_find_first_component): Accept 'operator' in
8920 more locations.
8921
74cfe982
AC
89222003-04-23 Andrew Cagney <cagney@redhat.com>
8923
8924 * infcall.c (call_function_by_hand): Eliminate redundant
8925 indentation. Move "saved_async" and "old_cleanups" to where they
8926 are needed.
8ffd9b1b 8927
52557533
AC
89282003-04-23 Andrew Cagney <cagney@redhat.com>
8929
8930 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8931 and "buffer". Move the "name" code to where it is needed.
8932
158775de
AC
89332003-04-23 Andrew Cagney <cagney@redhat.com>
8934
8935 * infcall.c (call_function_by_hand): Move variables "start_sp",
8936 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8937 code to ON_STACK switch branch.
8ffd9b1b 8938
ebc7896c
AC
89392003-04-23 Andrew Cagney <cagney@redhat.com>
8940
8941 * infcall.c (call_function_by_hand): Make declaration of "i",
8942 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8943 lint.
8944
d727590f
AC
89452003-04-23 Andrew Cagney <cagney@redhat.com>
8946
8947 * infcall.c (call_function_by_hand): Delete variable
8948 "n_method_args". Localize "param_type"'s declaration to the loop
8949 that it is used. Reinstate code assigning to said variable -
8950 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8951 Rationalize code using "param_type".
8952
d585e13a
AC
89532003-04-22 Andrew Cagney <cagney@redhat.com>
8954
8955 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8956 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8957 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8958 to DEPRECATED_PUSH_RETURN_ADDRESS.
8959
051caad9
KB
89602003-04-22 Kevin Buettner <kevinb@redhat.com>
8961
8962 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8963 on the DWARF2 register number prior to fetching a register.
8964
77296879
JB
89652003-04-22 J. Brobecker <brobecker@gnat.com>
8966
8967 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8968 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 8969 this macro was always set to 0.
77296879
JB
8970 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8971 considering the fact that this macro was always set to 0.
8972 * hppa-tdep.h (hppa_store_return_value): Likewise.
8973 (hppa_extract_return_value): Likewise.
8974
4252f1df
JB
89752003-04-22 J. Brobecker <brobecker@gnat.com>
8976
8977 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8978 the hppa-pro target only.
8979
14604c6b
JB
89802003-04-21 J. Brobecker <brobecker@gnat.com>
8981
8982 Ongoing multi-arch conversion effort for HP/UX:
8983 * config/pa/tm-hppa.h: Move all macro that are no longer
8984 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8985 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8986
77eb01d1
JB
89872003-04-21 J. Brobecker <brobecker@gnat.com>
8988
8989 * config/pa/tm-hppa.h: Obsolete a section that was only used
8990 for hppa-pro.
8991
61995b3b
JB
89922003-04-21 J. Brobecker <brobecker@gnat.com>
8993
8994 Ongoing multi-arch conversion for HP/UX.
8995 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8996 if already defined (allows hppa64 to stay non-multiarched for now).
8997 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8998
4aa79dcc
AC
89992003-04-21 Andrew Cagney <cagney@redhat.com>
9000
9001 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9002
0f751ff2
AC
90032003-04-21 Andrew Cagney <cagney@redhat.com>
9004
9005 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9006 "i386_num_mmx_regs".
9007
04714b91
AC
90082003-04-21 Andrew Cagney <cagney@redhat.com>
9009
9010 * infcall.c: New file.
9011 * infcall.h: New file.
9012 * valarith.c: Include "infcall.h".
9013 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9014 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9015 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9016 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9017 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9018 (SFILES): Add "infcall.c"
9019 (COMMON_OBS): Add "infcall.o".
9020 (infcall.o): Specify dependencies.
9021 * value.h (call_function_by_hand): Delete declaration.
9022 * inferior.h (run_stack_dummy): Delete declaration.
9023 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9024 (run_stack_dummy): Move to "infcall.c", merged into
9025 call_function_by_hand.
9026 * valops.c (call_function_by_hand): Moved to "infcall.c".
9027 (find_function_addr, value_arg_coerce): Ditto.
9028 (unwindonsignal_p, coerce_float_to_double): Ditto.
9029 (_initialize_valops): Move "set/show coerce-float-to-double", and
9030 "set/show unwindonsignal" commands to "infcall.c".
9031 * v850-tdep.c, target.h: Update comments.
9032 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9033 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9034 (sh64_init_extra_frame_info): Update comments.
9035 * mn10300-tdep.c: Update comments.
9036 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9037 * config/sparc/tm-sparc.h: Update comments.
9038 * breakpoint.h: Update comments.
9039 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9040 * arm-tdep.c: Update comment.
9041
f9d3c2a8
MK
90422003-04-19 Mark Kettenis <kettenis@gnu.org>
9043
c40e1eab
MK
9044 * i386-tdep.c (i386_num_register_names): New variable.
9045 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9046 (MM0_REGNUM): Remove redundant parentheses in define.
9047 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9048 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9049 i386_mxcsr_regnum_p): Remove redundant parentheses.
9050 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 9051
94ea66b3
MK
9052 * i386-tdep.c (i386_extract_return_value,
9053 i386_store_return_value): Correct check for availability of
9054 floating-point registers.
9055
54299a1d
MK
9056 * i386-tdep.c (i386_frame_num_args): Remove function.
9057 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9058
c86c27af
MK
9059 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9060 mmx_regnum_to_fp_regnum. Adjust all callers.
9061
f9d3c2a8
MK
9062 * i386-tdep.c (i386_get_longjmp_target): Use
9063 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9064 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9065 extract_address.
9066
94ba74a9
MK
90672003-04-19 Mark Kettenis <kettenis@gnu.org>
9068
9069 * core-regset.c: Update comments to reflect reality. Re-order
9070 includes.
9071 (fetch_core_registers): Use switch instead of if. Remove
9072 redundant prototype.
9073
4074e13c
JB
90742003-04-18 Jim Blandy <jimb@redhat.com>
9075
9076 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 9077 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 9078
e3ab4aba
RH
90792003-04-17 Richard Henderson <rth@redhat.com>
9080
9081 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9082
627bf7c1
EZ
90832003-04-17 Michael Snyder <msnyder@redhat.com>
9084 Karen Bennet <bennet@redhat.com>
9085
9086 Committed by Elena Zannoni <ezannoni@redhat.com>
9087 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 9088
514621a9
EZ
90892003-04-17 Elena Zannoni <ezannoni@redhat.com>
9090
9091 * values.c (value_being_returned): Don't fetch the return
fbe586ae 9092 value if the return type is void.
514621a9 9093
b4acd559
JJ
90942003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9095
9096 * thread-db.c: Reindented.
8ffd9b1b 9097
530b167e 90982003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9099
9100 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9101 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
9102 as types.
9103
0a48e7e8
MS
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
8ffd9b1b 9127
ab9fe00e
KB
91282003-04-16 Kevin Buettner <kevinb@redhat.com>
9129
610a3745 9130 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
9131 the size of ``long double'' to 16, instead of 8.
9132
e64a344c
MK
91332003-04-16 Mark Kettenis <kettenis@gnu.org>
9134
9135 * i386-linux-nat.c: Add some whitespace to make things more
9136 readable.
9137 (fetch_register, store_register, fetch_inferior_registers,
9138 store_inferior_registers): Get rid of assignment in if-statement.
9139 (store_register): Fix typo in error message.
9140
25d41031
AC
91412003-04-16 Andrew Cagney <cagney@redhat.com>
9142
9143 * utils.c (xmmalloc): Always allocate something, matches
9144 libiberty/xmalloc's semantics.
9145 (xmrealloc, xmcalloc): Ditto.
9146
c50901fd
AC
91472003-04-16 Andrew Cagney <cagney@redhat.com>
9148
9149 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9150 update comments.
9151 (get_frame_type): Initialize unwind and type when needed.
9152 (get_frame_id, frame_register_unwind): Ditto.
9153
f81824a9
AC
91542003-04-16 Andrew Cagney <cagney@redhat.com>
9155
9156 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9157 obsolete.
9158 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9159 * sparcl-stub.c: Obsolete file.
9160 * config/sparc/tm-sparclet.h: Obsolete file.
9161 * sparclet-stub.c: Obsolete file.
9162 * sparclet-rom.c: Obsolete file.
9163 * sparcl-tdep.c: Obsolete file.
9164 * config/sparc/tm-sparclite.h: Obsolete file.
9165 * config/sparc/sparclite.mt: Obsolete file.
9166 * config/sparc/sparclet.mt: Obsolete file.
9167 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9168 sparc86x-*-* obsolete.
9169
9219021c
DC
91702003-04-15 David Carlton <carlton@math.stanford.edu>
9171
9172 * Makefile.in (SFILES): Add cp-namespace.c.
9173 (COMMON_OBS): Add cp-namespace.o.
9174 (block.o): Depend on gdb_obstack_h and cp_support_h.
9175 (buildsym.o): Depend on cp_support_h.
9176 (cp-namespace.o): New.
9177 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9178 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9179 (dwarf2read.o): Depend on cp_support_h.
9180 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9181 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9182 processing_current_namespace.
9183 (read_namespace): Update processing_current_namespace; check for
9184 anonymous namespaces.
9185 (dwarf2_name): New function.
9186 (dwarf2_extension): Ditto.
9187 * cp-support.h: Update copyright, contributors.
9188 Add inclusion guards.
9189 Add opaque declaration for structs obstack, block, symbol.
9190 (struct using_direct): New struct.
9191 Add declarations for cp_find_first_component,
9192 cp_entire_prefix_len, processing_has_namespace_info,
9193 processing_current_namespace, cp_is_anonymous,
9194 cp_add_using_directive, cp_initialize_namespace,
9195 cp_finalize_namespace, cp_set_block_scope,
9196 cp_scan_for_anonymous_namespaces.
9197 * cp-namespace.c: New file.
9198 * cp-support.c: Update copyright.
9199 Include ctype.h, gdb_assert.h, gdbcmd.h.
9200 New variable maint_cplus_cmd_list.
9201 (cp_find_first_component): New function.
9202 (cp_entire_prefix_len, maint_cplus_command)
9203 (first_component_command, _initialize_cp_support): Ditto.
9204 * buildsym.c: Include cp-support.h.
9205 New variable using_list.
9206 (add_symbol_to_list): Check for anonymous namespaces.
9207 (finish_block): Set block's scope.
9208 (start_symtab): Initialize C++ namespace support.
9209 (end_symtab): Finalize C++ namespace support.
9210 * block.h: Add opaque declarations for structs
9211 block_namespace_info, using_direct, and obstack.
9212 Add declarations for block_set_scope and block_set_using.
9213 (struct block): Add 'language_specific' member.
9214 (BLOCK_NAMESPACE): New macro.
9215 * block.c: Include gdb_obstack.h and cp-support.h.
9216 (struct block_namespace_info): New struct.
9217 (block_set_scope): New function.
9218 (block_set_using, block_initialize_namespace): Ditto.
9219
d5a921c9
KB
92202003-04-14 Kevin Buettner <kevinb@redhat.com>
9221
9222 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9223 (locate_base): Return early if there aren't any link map offsets.
9224 (svr4_solib_create_inferior_hook): Warn if shared library support
9225 is unavailable.
9226
d2a52b27
DC
92272003-04-14 David Carlton <carlton@math.stanford.edu>
9228
9229 * symtab.c (symbol_set_names): Add prefix when storing Java names
9230 in hash table. Fix for PR java/1039.
9231
980cae7a
DC
92322003-04-14 David Carlton <carlton@math.stanford.edu>
9233
9234 * symtab.c (symbol_set_names): Rename 'name' arg to
9235 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9236 * symtab.h: Change 'name' argument in declaration of
9237 symbol_set_names to 'linkage_name'.
9238 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9239
e227b13c
AC
92402003-04-14 Andrew Cagney <cagney@redhat.com>
9241
9242 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9243 return the fully sign-extended register value.
9244 (get_frame_pointer): Ditto.
9245 (mips_pop_frame): Initialize "proc_desc" after checking for a
9246 dummy frame.
9247
36712a20
AC
92482003-04-14 Andrew Cagney <cagney@redhat.com>
9249
9250 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9251 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9252 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9253 (mips_push_register): Delete function.
9254 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9255 PUSH_FP_REGNUM.
9256
44ea7b70
JB
92572003-04-14 Jim Blandy <jimb@redhat.com>
9258
9259 * symmisc.c: #include "gdb_regex.h".
9260 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9261 functions.
9262 * maint.c (maintenance_list_command): New function.
9263 (_initialize_maint_cmds): Register the above as commands.
9264 * symtab.h (maintenance_list_symtabs,
9265 maintenance_list_psymtabs): New declarations.
9266 * cli/cli-cmds.c (maintenancelistlist): New variable.
9267 (init_cmd_lists): Initialize it.
9268 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9269 * gdbcmd.h (maintenancelistlist): New declaration.
9270 * Makefile.in (symmisc.o): Update dependencies.
9271
2d0c7962
EZ
92722003-04-14 Elena Zannoni <ezannoni@redhat.com>
9273
9274 * s390-nat.c: Include asm/types.h for addr_t.
9275
1947a811
CV
92762003-04-14 Corinna Vinschen <vinschen@redhat.com>
9277
9278 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9279 actually incoming type.
9280
adb616d7
AC
92812003-04-13 Andrew Cagney <cagney@redhat.com>
9282
9283 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9284 get_next_frame and get_frame_saved_regs.
9285
9b5e151c
AC
92862003-04-13 Andrew Cagney <cagney@redhat.com>
9287
9288 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9289 of gdbarch_num_regs.
9290
ef6e7e13
AC
92912003-04-13 Andrew Cagney <cagney@redhat.com>
9292
9293 * frame.h: Mention what replaced what in "struct frame_info".
9294 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9295 deprecated_update_frame_base_hack and
9296 deprecated_update_frame_pc_hack.
9297 * hppa-tdep.c: Ditto.
9298
61fbb938
DJ
92992003-04-13 Daniel Jacobowitz <drow@mvista.com>
9300
9301 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9302 to read_reg and update its comment. Remove regnum member.
9303 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9304 Don't call read_reg when setting in_reg. Call read_reg to get
9305 the frame base if it's in a register. Return the register number
9306 on the stack instead of in the context. Remove extra arguments
9307 to read_reg.
9308 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9309 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9310 the register number on the expression stack.
9311 (needs_frame_read_reg): Remove extra arguments.
9312
0d53c4c4
DJ
93132003-04-13 Daniel Jacobowitz <drow@mvista.com>
9314
9315 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9316 made non-static.
9317 (execute_stack_op): All callers updated.
9318 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9319 * dwarf2loc.c (find_location_expression): New function.
9320 (dwarf_expr_frame_base): Call it.
9321 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9322 (dwarf2_tracepoint_var_ref): New function, broken out from
9323 locexpr_tracepoint_var_ref.
9324 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9325 Make static.
9326 (loclist_read_variable, loclist_read_needs_frame): New functions.
9327 (loclist_describe_location, loclist_tracepoint_var_ref): New
9328 functions.
9329 (dwarf2_loclist_funcs): New struct location_funcs.
9330 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9331 (struct dwarf2_locexpr_baton): Add comments.
9332 (dwarf2_loclist_funcs): New extern.
9333 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9334 base_address and base_known.
9335 (dwarf_loc_buffer): New variable.
9336 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9337 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9338 (dwarf2_has_info): Initialize dwarf_loc_offset.
9339 (dwarf2_build_psymtabs): Read in .debug_loc.
9340 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9341 DWARF_LOC_SIZE.
9342 (psymtab_to_symtab_1): Likewise. Move base address calculation
9343 here, from...
9344 (dwarf2_get_pc_bounds): ... here. Use the base address from
9345 cu_header.
9346 (dwarf2_symbol_mark_computed): Handle location lists.
9347
6aca59a3
DJ
93482003-04-13 Daniel Jacobowitz <drow@mvista.com>
9349
9350 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9351 if the linkage name demangled successfully.
9352
aca1fcd0
MK
93532003-04-13 Mark Kettenis <kettenis@gnu.org>
9354
97095916
MK
9355 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9356 disassmbly_flavour): Removed.
9357
aca1fcd0
MK
9358 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9359
562a961f
MK
93602003-04-13 Mark Kettenis <kettenis@gnu.org>
9361
9362 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9363
bd013d54
AC
93642003-04-12 Andrew Cagney <cagney@redhat.com>
9365
9366 * frame.h (struct frame_info): Move definition from here ...
9367 * frame.c (struct frame_info): ... to here.
9368
167ef8b1
AC
93692003-04-12 Andrew Cagney <cagney@redhat.com>
9370
9371 * gdbthread.h (save_infrun_state): Delete parameter
9372 "prev_func_start".
9373 (struct thread_info): Delete field "prev_func_start".
9374 (load_infrun_state): Ditto.
9375 * thread.c (load_infrun_state, save_infrun_state): Update.
9376 * infrun.c (prev_func_start): Delete variable.
9377 (context_switch, init_wait_for_inferior): Update.
9378 (stop_stepping, keep_going): Update.
9379
da3331ec
AC
93802003-04-12 Andrew Cagney <cagney@redhat.com>
9381
9382 * gdbarch.sh: Add missing opaque declarations.
9383 * gdbarch.h: Regnerate.
9384 * symtab.h: Add missing opaque declarations.
9385 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9386 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9387 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9388 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9389 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9390 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9391 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9392 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9393 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9394 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9395 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9396 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9397 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9398
18adea3f
AC
93992003-04-11 Andrew Cagney <cagney@redhat.com>
9400
9401 * frame.c (get_frame_id): Return this frame's "id".
9402 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9403 function start.
9404 (legacy_saved_regs_this_id): Replace function body with
9405 internal-error.
9406 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9407 FRAME_OBSTACK_ZALLOC.
9408 (create_new_frame): Mark the frame ID as valid.
9409
2252e863
AO
94102003-04-11 Alexandre Oliva <aoliva@redhat.com>
9411
9412 * Makefile.in (libbfd_h): Added missing setting.
9413 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9414 according to the selected ABI.
9415
a8245ab8
JJ
94162003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9417
9418 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9419
6913c89a
AC
94202003-04-11 Andrew Cagney <cagney@redhat.com>
9421
9422 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9423 SAVED_PC_AFTER_CALL.
9424 * gdbarch.h, gdbarch.c: Regenerate.
9425 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9426 * x86-64-tdep.c (x86_64_init_abi): Update.
9427 * vax-tdep.c (vax_gdbarch_init): Update.
9428 * v850-tdep.c (v850_gdbarch_init): Update.
9429 * sparc-tdep.c (sparc_gdbarch_init): Update.
9430 * sh-tdep.c (sh_gdbarch_init): Update.
9431 * s390-tdep.c (s390_gdbarch_init): Update.
9432 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9433 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9434 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9435 * mips-tdep.c (mips_gdbarch_init): Update.
9436 * mcore-tdep.c (mcore_gdbarch_init): Update.
9437 * m68k-tdep.c (m68k_gdbarch_init): Update.
9438 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9439 * ia64-tdep.c (ia64_gdbarch_init): Update.
9440 (ia64_saved_pc_after_call): Update declaration.
9441 * i386ly-tdep.c (i386lynx_init_abi): Update.
9442 * i386-tdep.c (i386_gdbarch_init): Update.
9443 * hppa-tdep.c (hppa_gdbarch_init): Update.
9444 * h8300-tdep.c (h8300_gdbarch_init): Update.
9445 * frv-tdep.c (frv_gdbarch_init): Update.
9446 * cris-tdep.c (cris_gdbarch_init): Update.
9447 * avr-tdep.c (avr_gdbarch_init): Update.
9448 * arm-tdep.c (arm_gdbarch_init): Update.
9449 * alpha-tdep.c (alpha_gdbarch_init): Update.
9450 * ns32knbsd-nat.c (frame_num_args): Update.
9451 * ns32k-tdep.c (umax_frame_num_args): Update.
9452 * mips-tdep.c (mips_init_frame_pc_first): Update.
9453 * infrun.c (step_over_function): Update.
9454 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9455 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9456 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9457 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9458 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9459 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9460 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9461 * arch-utils.c (init_frame_pc_default): Update.
9462 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9463 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9464 declaration.
8ffd9b1b 9465
38edeab8
AC
94662003-04-11 Andrew Cagney <cagney@redhat.com>
9467
9468 * i387-tdep.c: Update copyright.
9469 (i387_to_double): Delete function.
9470 (double_to_i387): Delete function.
9471
81f8a206
AC
94722003-04-10 Andrew Cagney <cagney@redhat.com>
9473
9474 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9475 frame's function's address. Simplify.
9476 (d10v_frame_unwind_cache): Check that the frame's function is
9477 non-zero.
9478
6e691f7a
JB
94792003-04-10 Jim Blandy <jimb@redhat.com>
9480
9481 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9482 call to set_gdbarch_deprecated_push_arguments.
9483
7f78e237
AC
94842003-04-10 Andrew Cagney <cagney@redhat.com>
9485
9486 * frame.c (fprint_frame_id): New function.
9487 (fprint_frame_type, fprint_frame): New function.
9488 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9489 (create_sentinel_frame, get_frame_id): Ditto.
9490 (frame_id_p, frame_id_eq): Ditto.
9491 (frame_id_inner, create_new_frame): Ditto.
9492 (legacy_get_prev_frame, get_prev_frame): Ditto.
9493 (deprecated_update_frame_pc_hack): Ditto.
9494 (frame_register_unwind): Ditto.
9495 (deprecated_update_frame_base_hack): Ditto.
9496
f870b49b
CV
94972003-04-10 Corinna Vinschen <vinschen@redhat.com>
9498
9499 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9500 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9501 frame_chain function.
9502 * Makefile.in: Add dependencies due to above change.
9503
7c86889b
CV
95042003-04-10 Corinna Vinschen <vinschen@redhat.com>
9505
9506 * blockframe.c (legacy_frame_chain_valid): Move call to
9507 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9508 inside_entry_file.
9509
d0a55772
AC
95102003-04-09 Andrew Cagney <cagney@redhat.com>
9511
9512 * frame.h (struct frame_id): Replace "pc" and "base" with
9513 "stack_addr" and "code_addr". Update comments.
9514 (frame_id_build): Update parameter names and comment.
9515 (struct frame_info): Replace "id_p" and "id" with "this_id".
9516 * dummy-frame.c (dummy_frame_this_id): Update.
9517 * breakpoint.c (print_one_breakpoint): Update.
9518 * frame.c (get_frame_id): Update.
9519 (get_frame_base, frame_id_build): Update.
9520 (create_sentinel_frame, legacy_get_prev_frame): Update.
9521 (deprecated_update_frame_base_hack): Update.
9522 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9523 (frame_id_inner): Ditto.
9524
ac16bf07
AC
95252003-04-09 Andrew Cagney <cagney@redhat.com>
9526
9527 * defs.h (gdb_print_host_address): Make "addr" parameter a
9528 pointer constant.
9529 * utils.c (gdb_print_host_address): Update.
9530
366cfc9e
KB
95312003-04-09 Kevin Buettner <kevinb@redhat.com>
9532
9533 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9534 register number for R0 is 0.
9535
cd983b5c
JB
95362003-04-09 J. Brobecker <brobecker@gnat.com>
9537
9538 * frame.h (struct gdbarch): Add opaque structure definition
9539 to avoid a compilation warning on LynxOS 4.0.
9540
d1340264
AC
95412003-04-09 Andrew Cagney <cagney@redhat.com>
9542
9543 * frame.h (struct frame_info): Delete field "pc". Replace
9544 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9545 structure.
9546 * frame.c (frame_pc_unwind): Update.
9547 (create_sentinel_frame): Do not set "pc".
9548 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9549 (get_frame_pc): Call frame_pc_unwind.
9550 (deprecated_update_frame_pc_hack): Update.
9551 (create_new_frame): Use "pc" not "->pc".
9552
90a6fffb
AC
95532003-04-09 Andrew Cagney <cagney@redhat.com>
9554
9555 * frame.c (get_frame_id): Eliminate code updating "frame".
9556 (legacy_get_prev_frame): Ditto.
9557 (get_frame_base): Return id.base directly.
9558 (deprecated_update_frame_base_hack): Update "id.base".
9559 * frame.h (struct frame_info): Delete field "frame".
9560
2fbce691
AC
95612003-04-09 Andrew Cagney <cagney@redhat.com>
9562
9563 * NEWS: Mention that the "Sequent family" is obsolete.
9564 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9565 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9566 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9567 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9568 * config/i386/tm-ptx4.h: Obsolete file.
9569 * config/i386/tm-ptx.h: Obsolete file.
9570 * symm-tdep.c: Obsolete file.
9571 * config/i386/symmetry.mt: Obsolete file.
9572 * config/i386/tm-symmetry.h: Obsolete file.
9573 * symm-nat.c: Obsolete file.
9574 * config/i386/nm-symmetry.h: Obsolete file.
9575 * config/i386/xm-symmetry.h: Obsolete file.
9576 * config/i386/symmetry.mh: Obsolete file.
9577 * config/i386/nm-ptx4.h: Obsolete file.
9578 * config/i386/ptx4.mh: Obsolete file.
9579 * config/i386/ptx.mt: Obsolete file.
9580 * config/i386/ptx.mh: Obsolete file.
9581 * config/i386/xm-ptx4.h: Obsolete file.
9582 * config/i386/xm-ptx.h: Obsolete file.
9583
78c43945
AC
95842003-04-09 Andrew Cagney <cagney@redhat.com>
9585
9586 Obsolete mips*-*-mach3*.
9587 * NEWS: Mention that mips*-*-mach3* is obsolete.
9588 * m3-nat.c: Obsolete file.
9589 * config/nm-m3.h: Obsolete file.
9590 * config/mips/tm-mipsm3.h: Obsolete file.
9591 * config/mips/mipsm3.mt: Obsolete file.
9592 * config/mips/mipsm3.mh: Obsolete file.
9593 * config/mips/xm-mipsm3.h: Obsolete file.
9594 * mipsm3-nat.c: Obsolete file.
9595 * configure.host: Obsolete mips-dec-mach3*.
9596 * configure.tgt: Obsolete mips*-*-mach3*.
9597
f1908289
AC
95982003-04-09 Andrew Cagney <cagney@redhat.com>
9599
9600 * doublest.h: Update copyright.
9601 (deprecated_store_floating, deprecated_extract_floating): Rename
9602 store_floating and extract_floating. Update comments.
9603 * doublest.c: Update copyright.
9604 (extract_floating_by_length): Replace extract_floating.
9605 (store_floating_by_length): Replace store_floating.
9606 (deprecated_extract_floating): New function.
9607 (deprecated_store_floating): New function.
9608 (extract_typed_floating): Call extract_floating_by_length.
9609 (store_typed_floating): Call store_floating_by_length.
9610 * x86-64-tdep.c (x86_64_store_return_value): Update.
9611 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9612 (sh64_extract_return_value): Update.
9613 (sh_sh4_register_convert_to_virtual): Update.
9614 (sh_sh64_register_convert_to_virtual): Update.
9615 (sh_sh4_register_convert_to_raw): Update.
9616 (sh_sh64_register_convert_to_raw): Update.
9617 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9618 (rs6000_register_convert_to_raw): Update.
9619 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9620 (ia64_register_convert_to_raw): Update.
9621 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9622 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9623 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9624 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9625 (alpha_register_convert_to_raw): Update.
9626
4443bd83
AC
96272003-04-08 Andrew Cagney <cagney@redhat.com>
9628
9629 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9630 * gdbarch.h, gdbarch.c: Re-generate.
9631 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9632 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9633 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9634 conditionally, use frame_pc_unwind as an alternative. Add
9635 comments.
9636 * arch-utils.c (init_frame_pc_default): Only call
9637 SAVED_PC_AFTER_CALL when available.
9638
c0236d92
EZ
96392003-04-08 Elena Zannoni <ezannoni@redhat.com>
9640
fbe586ae 9641 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9642 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9643 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9644 (start_remote): Ditto.
9645 (handle_inferior_event): Ditto.
9646 (save_inferior_status): Ditto.
9647 (restore_inferior_status): Ditto.
9648 * infcmd.c (attach_command): Ditto.
9649 * fork-child.c (startup_inferior): Ditto.
fbe586ae 9650 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9651 * alpha-tdep.c (heuristic_proc_start): Ditto.
9652 * mips-tdep.c (heuristic_proc_start): Ditto.
9653 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9654 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9655 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9656 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9657 * remote-vx.c (vx_create_inferior): Ditto.
9658
96592003-04-08 Elena Zannoni <ezannoni@redhat.com>
9660
9661 * infrun.c (stop_soon_quietly): Make it an enum, to better
9662 override the default behavior of handle_inferior_event.
9663 (clear_proceed_status): Update uses of stop_soon_quietly to
9664 reflect that it is now an enum.
9665 (start_remote): Ditto.
9666 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9667 is set to handle the new GNU/Linux kernel behavior for
9668 attach/sigstop. Update uses of stop_soon_quietly.
9669 * inferior.h (enum stop_kind): New enum.
9670 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9671 Reset normal handle_inferior_event behavior, afterwards.
9672 * fork-child.c (startup_inferior): Update.
9673 * alpha-tdep.c (heuristic_proc_start): Update.
9674 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9675 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9676 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9677 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9678 * remote-vx.c (vx_create_inferior): Update.
9679 * mips-tdep.c (heuristic_proc_start): Update.
9680
1211bce3
EZ
96812003-04-07 Elena Zannoni <ezannoni@redhat.com>
9682
9683 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 9684 be freed more than once, causing wild memory corruptions.
1211bce3 9685 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 9686 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 9687 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 9688 with the "core" target.
1211bce3 9689
f0ef6b29
KB
96902003-04-07 Kevin Buettner <kevinb@redhat.com>
9691
9692 * mips-tdep.c (mips_print_fp_register): New function, created from
9693 do_fp_register_row(). Registers are now (also) printed as hex.
9694 Only one register is printed per row.
9695 (mips_print_register, do_fp_register_row): Print floating point
9696 registers with mips_print_fp_register().
9697
8cf71652
AC
96982003-04-06 Andrew Cagney <cagney@redhat.com>
9699
5e488a7b
AC
9700 * valprint.h (inspect_it): Add extern declaration.
9701 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9702 (selectors_info, classes_info): Ditto.
9703 (find_objc_msgcall): Fix indentation.
9704 (objc_printstr): Delete extern declarations.
9705
8cf71652
AC
9706 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9707
e6ba3bc9
AC
97082003-04-06 Andrew Cagney <cagney@redhat.com>
9709
9710 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9711 Update comment.
9712 * frame.c (legacy_saved_regs_this_id): Update.
9713 (legacy_get_prev_frame): Update.
9714 * xstormy16-tdep.c: Update comment.
9715 * sparc-tdep.c (sparc_frame_chain): Update comment.
9716 * blockframe.c (legacy_frame_chain_valid): Update.
9717
55e1d7e7
AC
97182003-04-06 Andrew Cagney <cagney@redhat.com>
9719
996179ee
AC
9720 * valprint.c (val_print_type_code_int): Delete #ifdef
9721 PRINT_TYPELESS_INTEGER code.
9722
55e1d7e7
AC
9723 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9724 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9725 multi-arch definition.
9726 * gdbarch.h: Re-generate.
9727
43bd9a9e
AC
97282003-04-05 Andrew Cagney <cagney@redhat.com>
9729
9730 Eliminate FRAME_FIND_SAVED_REGS.
9731 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9732 Change FSR parameter to a pointer.
9733 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9734 Assume FSR parameter is a pointer.
9735 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9736 Make fsr a pointer.
9737 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9738 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9739 saved_regs a pointer.
9740 (hppa_frame_saved_pc): Ditto.
9741 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9742 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9743 pointer.
9744 (restore_pc_queue): Make fsr a pointer.
9745 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9746 (hppa_frame_chain): Make saved_regs a pointer, call
9747 hppa_frame_init_saved_regs.
9748 * sparc-tdep.c: Include "gdb_assert.h".
9749 (sparc_frame_find_saved_regs): Replace internal_error with
9750 gdb_assert.
9751 * remote-vxsparc.c (vx_read_register): Delete reference to
9752 FRAME_FIND_SAVED_REGS.
9753 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9754 * gdbarch.h: Regenerate.
9755 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9756 (deprecated_get_frame_saved_regs): Delete declaration.
9757 (struct frame_saved_regs): Delete definition.
9758 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9759 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9760 (hppa_frame_find_saved_regs): Delete declaration.
9761 (FRAME_FIND_SAVED_REGS): Delete macro.
9762 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9763 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9764 FRAME_FIND_SAVED_REGS in comment.
9765
be41e9f4
AC
97662003-04-05 Andrew Cagney <cagney@redhat.com>
9767
9768 * frame.c (frame_func_unwind, get_frame_func): New functions.
9769 * frame.h (get_frame_func, frame_func_unwind): Declare.
9770 (struct frame_info): Add field "prev_func" for caching the
9771 previous frame's function address.
9772 * arm-tdep.c (arm_frameless_function_invocation): Combine
9773 get_pc_function_start and get_frame_pc into get_frame_func.
9774 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9775 (sh64_nofp_frame_init_saved_regs): Ditto.
9776 * s390-tdep.c (s390_function_start): Ditto.
9777 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9778 (rs6000_frameless_function_invocation): Ditto.
9779 (rs6000_frame_saved_pc): Ditto.
9780 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9781 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9782 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9783 (i386_frame_init_saved_regs): Ditto.
9784 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9785 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9786 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9787 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9788 * blockframe.c (frameless_look_for_prologue): Ditto.
9789
a01dd7cc
AC
97902003-04-05 Andrew Cagney <cagney@redhat.com>
9791
9792 * frame.c (legacy_get_prev_frame): Link prev to next at the
9793 function start. Update comments.
9794
5e5592e6
AC
97952003-04-05 Andrew Cagney <cagney@redhat.com>
9796
9797 * frame.c (get_frame_id): Update comment.
9798 (legacy_get_prev_frame): Update comment.
9799 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9800 * gdbarch.h: Regenerate.
9801 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9802 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9803
6fba5002
AC
98042003-04-05 Andrew Cagney <cagney@redhat.com>
9805
9806 * stack.c (print_frame_info): Use get_frame_pc.
9807
7df05f2b
AC
98082003-04-04 Andrew Cagney <cagney@redhat.com>
9809
9810 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9811 the frame's type from the unwinder.
9812 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9813 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9814 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9815 (get_frame_base_address): Use get_frame_type.
9816 (get_frame_locals_address, get_frame_args_address): Ditto.
9817 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9818 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9819 (struct frame_info): Add comment explaining why the frame contains
9820 a "type" field.
9821 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9822 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9823 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9824 NORMAL_FRAME.
9825 * frame-unwind.h: Include "frame.h".
9826 (struct frame_unwind): Add "type" field.
9827 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 9828
11889732
AC
98292003-04-04 Andrew Cagney <cagney@redhat.com>
9830
9831 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9832 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9833 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9834 get_frame_base.
9835 (d10v_unwind_dummy_id): Use frame_id_build.
9836 * frame.c (find_frame_sal): Use get_frame_pc.
9837 (create_new_frame): Use deprecated_update_frame_pc_hack and
9838 deprecated_update_frame_base_hack.
9839 (create_sentinel_frame): Add comment about ->pc going away.
9840 (get_prev_frame): Add comment about ->pc going away.
9841 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9842 frame_id_build, deprecated_update_frame_pc_hack and
9843 deprecated_update_frame_base_hack.
9844 (select_frame): Use get_frame_pc.
9845 (legacy_saved_regs_this_id): Use frame_id_build.
9846
50c46a0d
EZ
98472003-04-04 Elena Zannoni <ezannoni@redhat.com>
9848
fbe586ae
RH
9849 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9850 signed integer case.
9851 (classify_argument): Handle enumerations and references.
50c46a0d 9852
50bbdbd9
AC
98532003-04-04 Andrew Cagney <cagney@redhat.com>
9854
9855 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9856 ID to NULL.
9857
36018d2e
AF
98582003-04-01 Adam Fedor <fedor@gnu.org>
9859
9860 * gdb/objc-lang.c (selectors_info): Replace calls to
9861 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9862 SYMBOL_NATURAL_NAME.
9863 (classes_info, find_methods): Likewise.
9864
35cec841
KB
98652003-04-03 Kevin Buettner <kevinb@redhat.com>
9866
9867 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9868 ``mach'' to the value determined by bfd_default_set_arch_mach().
9869
43136899
BR
98702003-04-02 Bob Rossi <bob_rossi@cox.net>
9871
9872 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9873 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9874 (mi-cmd-file.o): Update dependencies.
9875
040b99fd
KB
98762003-04-01 Kevin Buettner <kevinb@redhat.com>
9877
9878 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9879 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9880
9a3d7dfd
AF
98812003-04-01 Adam Fedor <fedor@gnu.org>
9882
9883 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9884 * language.h (struct language_defn): Add la_demangle.
9885 (language_demangle): Declare.
9886 * language.c (language_demangle): New function.
9887 (unk_lang_demangle): Likewise.
9888 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 9889 Add ukn_lang_demangle.
9a3d7dfd 9890 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 9891 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
9892 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9893 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9894 * jv-lang.c (java_demangle): New function
9895 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
9896 * objc-lang.c (objc_demangle): Add options argument
9897 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
9898 * maint.c (maintenance_demangle): Replace switch with
9899 call to language_demangle.
9900 * utils.c (fprintf_symbol_filtered): Likewise.
9901
5e074003
AC
99022003-04-01 Andrew Cagney <cagney@redhat.com>
9903
9904 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9905 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9906 PRINT_TYPELESS_INTEGER.
9907 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9908 PUSH_RETURN_ADDRESS.
9909
270cb5d6
AC
99102003-04-01 Andrew Cagney <cagney@redhat.com>
9911
9912 * Makefile.in (d10v-tdep.o): Update dependencies.
9913 * d10v-tdep.c: Include "frame-base.h".
9914 (d10v_frame_unwind): Make constant.
9915 (d10v_frame_base_address): New function.
9916 (d10v_frame_base): New variable.
9917 (d10v_gdbarch_init): Set frame_base default.
9918 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9919 comment for base.
9920 (d10v_frame_unwind_cache): Set and use "prev_sp".
9921 (d10v_frame_this_id): Use the previous frame's inner most stack
9922 address and this frame's func address for the frame ID. Use
9923 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 9924
6bfb3e36
AC
99252003-04-01 Andrew Cagney <cagney@redhat.com>
9926
9927 * frame.h (get_frame_locals_address, get_frame_args_address):
9928 Refer to the base address, instead of the address of the first
9929 local or parameter.
8ffd9b1b 9930
da62e633
AC
99312003-04-01 Andrew Cagney <cagney@redhat.com>
9932
9933 Add frame debug info addresses:
9934 * frame-base.c: New file.
9935 * frame-base.h: New file.
9936 * frame.h (struct frame_base): Add opaque declaration.
9937 (get_frame_base): Update comment.
9938 (get_frame_base_address): Declare.
9939 (get_frame_locals_address): Declare.
9940 (get_frame_args_address): Declare.
9941 (struct frame_info): Add "base" and "base_cache". Update
9942 comments on the unwinder.
9943 * frame.c: Include "frame-base.h".
9944 (get_frame_locals_address): New function.
9945 (get_frame_base_address): New function.
9946 (get_frame_args_address): New function.
9947 * findvar.c (read_var_value): Use get_frame_locals_address and
9948 get_frame_args_address.
9949 * stack.c (frame_info): Use get_frame_locals_address and
9950 get_frame_args_address.
9951 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9952 moved to "frame-base.c".
9953 * printcmd.c (print_frame_nameless_args): Ditto.
9954 * symtab.h (address_class): Update comments.
9955 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9956 get_frame_base_address.
9957 * dwarf2expr.c (execute_stack_op): Ditto.
9958 * Makefile.in (frame_base_h): Define.
9959 (frame.o): Update dependencies.
9960 (frame-base.o): Add dependencies.
9961 (SFILES): Add frame-base.c.
9962 (COMMON_OBS): Add frame-base.o.
9963
3d30e9c2
AC
99642003-04-01 Andrew Cagney <cagney@redhat.com>
9965
9966 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9967 CALL_DUMMY_LENGTH): Ditto.
9968 * gdbarch.c: Re-generate.
9969 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9970 (CALL_DUMMY_LENGTH): Delete macro.
9971 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9972 * arm-tdep.c (arm_gdbarch_init): Ditto.
9973 * avr-tdep.c (avr_gdbarch_init): Ditto.
9974 * cris-tdep.c (cris_gdbarch_init): Ditto.
9975 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9976 * frv-tdep.c (frv_gdbarch_init): Ditto.
9977 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9978 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9979 * i386-tdep.c (i386_gdbarch_init): Ditto.
9980 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9981 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9982 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9983 * mips-tdep.c (mips_gdbarch_init): Ditto.
9984 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9985 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9986 * s390-tdep.c (s390_gdbarch_init): Ditto.
9987 * sh-tdep.c (sh_gdbarch_init): Ditto.
9988 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9989 * v850-tdep.c (v850_gdbarch_init): Ditto.
9990 * vax-tdep.c (vax_gdbarch_init): Ditto.
9991 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9992
ce0c7262
CV
99932003-04-01 Corinna Vinschen <vinschen@redhat.com>
9994
9995 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9996
73dd234f
AC
99972003-04-01 Andrew Cagney <cagney@redhat.com>
9998
9999 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10000 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10001 * gdbarch.h, gdbarch.c: Re-generate.
10002 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10003 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10004 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10005 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10006 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10007 * infcmd.c (run_stack_dummy): Simplify assuming
10008 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10009 * infrun.c (handle_inferior_event): Ditto.
10010 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10011 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10012 * arm-tdep.c (arm_gdbarch_init): Ditto.
10013 * avr-tdep.c (avr_gdbarch_init): Ditto.
10014 * cris-tdep.c (cris_gdbarch_init): Ditto.
10015 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10016 * frv-tdep.c (frv_gdbarch_init): Ditto.
10017 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10018 * i386-tdep.c (i386_gdbarch_init): Ditto.
10019 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10020 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10021 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10022 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10023 * mips-tdep.c (mips_gdbarch_init): Ditto.
10024 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10025 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10026 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10027 * s390-tdep.c (s390_gdbarch_init): Ditto.
10028 * sh-tdep.c (sh_gdbarch_init): Ditto.
10029 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10030 * v850-tdep.c (v850_gdbarch_init): Ditto.
10031 * vax-tdep.c (vax_gdbarch_init): Ditto.
10032 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10033
97606a13
DJ
100342003-04-01 Daniel Jacobowitz <drow@mvista.com>
10035
10036 * symfile.c (symfile_relocate_debug_section): Update call to
10037 bfd_simple_get_relocated_section_contents.
10038
e8ab51f7
AC
100392003-03-31 Andrew Cagney <cagney@redhat.com>
10040
10041 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10042 * gdbarch.h, gdbarch.c: Regenerate.
10043 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10044 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10045 available.
10046 * frame.h (generic_fix_call_dummy): Delete declaration.
10047 * dummy-frame.h: Update comment.
10048 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10049 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10050 fix_call_dummy.
10051 * sh-tdep.c (sh_gdbarch_init): Ditto.
10052 * s390-tdep.c (s390_gdbarch_init): Ditto.
10053 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10054 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10055 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10056 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10057 * i386-tdep.c (i386_gdbarch_init): Ditto.
10058 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10059 * frv-tdep.c (frv_gdbarch_init): Ditto.
10060 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10061 * cris-tdep.c (cris_gdbarch_init): Ditto.
10062 * avr-tdep.c (avr_gdbarch_init): Ditto.
10063 * arm-tdep.c (arm_gdbarch_init): Ditto.
10064
018d1b48
JB
100652003-03-31 J. Brobecker <brobecker@gnat.com>
10066
10067 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10068 (INIT_FRAME_AP): Likewise.
10069 (EXTRA_FRAME_INFO): Likewise.
10070
e9a2674e
AC
100712003-03-31 Andrew Cagney <cagney@redhat.com>
10072
10073 * gdbarch.sh: Include "symfile.h".
10074 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10075 * gdbarch.h, gdbarch.c: Re-generate.
10076 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10077 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10078 call_dummy_address, the default is at entry_point_address.
10079 * v850-tdep.c (v850_gdbarch_init): Ditto.
10080 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10081 * sh-tdep.c (sh_gdbarch_init): Ditto.
10082 * s390-tdep.c (s390_gdbarch_init): Ditto.
10083 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10084 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10085 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10086 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10087 * i386-tdep.c (i386_gdbarch_init): Ditto.
10088 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10089 * frv-tdep.c (frv_gdbarch_init): Ditto.
10090 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10091 * cris-tdep.c (cris_gdbarch_init): Ditto.
10092 * arm-tdep.c (arm_gdbarch_init): Ditto.
10093
e8a8712a
AC
100942003-03-31 Andrew Cagney <cagney@redhat.com>
10095
10096 * gdbarch.sh (CALL_DUMMY_P): Delete.
10097 * gdbarch.h, gdbarch.c: Re-generate.
10098 * inferior.h (CALL_DUMMY_P): Delete macro.
10099 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10100 * vax-tdep.c (vax_gdbarch_init): Update.
10101 * v850-tdep.c (v850_gdbarch_init): Update.
10102 * sparc-tdep.c (sparc_gdbarch_init): Update.
10103 * sh-tdep.c (sh_gdbarch_init): Update.
10104 * s390-tdep.c (s390_gdbarch_init): Update.
10105 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10106 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10107 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10108 * mips-tdep.c (mips_gdbarch_init): Update.
10109 * mcore-tdep.c (mcore_gdbarch_init): Update.
10110 * m68k-tdep.c (m68k_gdbarch_init): Update.
10111 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10112 * ia64-tdep.c (ia64_gdbarch_init): Update.
10113 * i386-tdep.c (i386_gdbarch_init): Update.
10114 * h8300-tdep.c (h8300_gdbarch_init): Update.
10115 * frv-tdep.c (frv_gdbarch_init): Update.
10116 * d10v-tdep.c (d10v_gdbarch_init): Update.
10117 * cris-tdep.c (cris_gdbarch_init): Update.
10118 * breakpoint.c (deprecated_frame_in_dummy): Update.
10119 * avr-tdep.c (avr_gdbarch_init): Update.
10120 * alpha-tdep.c (alpha_gdbarch_init): Update.
10121 * arm-tdep.c (arm_gdbarch_init): Update.
10122 * dummy-frame.c (dummy_frame_this_id): Update comments.
10123 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10124 * frame.c (legacy_get_prev_frame): Ditto.
10125 * valops.c (call_function_by_hand): Delete function.
10126 (hand_function_call): Rename to call_function_by_hand
10127
ed234cf8
AC
101282003-03-30 Andrew Cagney <cagney@redhat.com>
10129
10130 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 10131 * value.h (struct value): Update comment.
ed234cf8 10132
06c77151
AC
101332003-03-30 Andrew Cagney <cagney@redhat.com>
10134
6c2b5168
AC
10135 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10136 D10V_FP_REGNUM.
10137 (d10v_gdbarch_init): Do not set fp_regnum.
10138
06c77151
AC
10139 * frame.c (get_frame_base): Force ID initialization.
10140 (get_prev_frame): Move computation of the frame ID from here ...
10141 (get_frame_id): ... to here.
10142 (legacy_get_prev_frame): Mark the frame ID as valid.
10143 * frame.h (struct frame_info): Add field "id_p".
10144
97a1a11c
MK
101452003-03-30 Mark Kettenis <kettenis@gnu.org>
10146
10147 * i386-tdep.c (i386_store_struct_return): Removed.
10148 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10149
6c0e89ed
AC
101502003-03-30 Andrew Cagney <cagney@redhat.com>
10151
10152 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10153 * gdbarch.h, gdbarch.c: Regenerate.
10154 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10155 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10156 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10157 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10158 * i386-tdep.c (i386_gdbarch_init): Ditto.
10159 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10160 * cris-tdep.c (cris_gdbarch_init): Ditto.
10161 * vax-tdep.c (vax_gdbarch_init): Ditto.
10162 * s390-tdep.c (s390_gdbarch_init): Ditto.
10163 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10164 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10165 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10166 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10167 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10168 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10169 * sparc-tdep.c (sparc_gdbarch_init): Update.
10170 * sh-tdep.c (sh_gdbarch_init): Update.
10171 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10172 * mips-tdep.c (mips_gdbarch_init): Update.
10173 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10174 * ia64-tdep.c (ia64_gdbarch_init): Update.
10175 * frv-tdep.c (frv_gdbarch_init): Update.
10176 * avr-tdep.c (avr_gdbarch_init): Update.
10177 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10178 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10179 instead of when push_dummy_call is not available.
8ffd9b1b 10180
f7dd6af2
AC
101812003-03-30 Andrew Cagney <cagney@redhat.com>
10182
10183 * infttrace.c: Include "gdbthread.h".
10184 (parent_attach_all): Fix function signature.
10185 (call_ptrace): Update call.
10186 * Makefile.in (infttrace.o): Update dependencies.
10187
28f617b3
AC
101882003-03-30 Andrew Cagney <cagney@redhat.com>
10189
10190 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10191 PUSH_RETURN_ADDRESS.
10192 * gdbarch.h, gdbarch.c: Regenerate.
10193 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10194 * x86-64-tdep.c (x86_64_init_abi): Update.
10195 * v850-tdep.c (v850_gdbarch_init): Update.
10196 * sparc-tdep.c (sparc_gdbarch_init): Update.
10197 * sh-tdep.c (sh_gdbarch_init): Update.
10198 * s390-tdep.c (s390_gdbarch_init): Update.
10199 * rs6000-tdep.c (rs6000_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 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10204 * ia64-tdep.c (ia64_gdbarch_init): Update.
10205 * i386-tdep.c (i386_gdbarch_init): Update.
10206 * h8300-tdep.c (h8300_gdbarch_init): Update.
10207 * frv-tdep.c (frv_gdbarch_init): Update.
10208 * cris-tdep.c (cris_gdbarch_init): Update.
10209 * avr-tdep.c (avr_gdbarch_init): Update.
10210 * arm-tdep.c (arm_gdbarch_init): Update.
10211 * valops.c (hand_function_call): Update.
10212
4d628cd7
AC
102132003-03-29 Andrew Cagney <cagney@redhat.com>
10214
10215 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10216 sizeof_call_dummy_words.
10217 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10218 define.
10219 * gdbarch.h: Regenerate.
8ffd9b1b 10220
65e82032
AC
102212003-03-29 Andrew Cagney <cagney@redhat.com>
10222
10223 * infttrace.h: New file.
10224 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10225 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10226 (hpread_read_doc_function_type): Detect an initialized type1.
10227 (hpread_quick_traverse): Initialize mod_name_string.
10228 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10229 (som_solib_get_solib_by_pc): Declare.
10230 (so_lib_thread_start_addr): Declare.
10231 (no_shared_libraries): Declare.
10232 * somread.c (init_import_symbols): Make static. Add forward
10233 declaration.
10234 * config/pa/nm-hppah.h: Include "infttrace.h" for
10235 parent_attach_all.
10236 (hppa_insert_hw_watchpoint): Declare.
10237 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10238 * hppah-nat.c: Include "gdb_string.h".
10239 (parent_attach_all): Delete extern declaration, moved to
10240 "infttrace.h".
10241 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10242 int.
10243 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10244 * Makefile.in (infttrace_h): Define.
10245 (hpread.o): Update dependencies.
10246 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10247 * hppa-hpux-tdep.c: Include "gdb_string.h".
10248 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10249 * infrun.c (handle_inferior_event): Always initialize
10250 stepped_after_stopped_by_watchpoint. Add default and remove
10251 fallthrough in switch statement.
10252 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10253 parameter to int.
10254 (hppa_remove_hw_watchpoint): Ditto.
10255
2c3bbe77
AC
102562003-03-29 Andrew Cagney <cagney@redhat.com>
10257
10258 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10259 offset.
10260
2dd604e7
RE
102612003-03-29 Richard Earnshaw <rearnsha@arm.com>
10262
10263 * arm-tdep.c (arm_push_arguments): Delete.
10264 (struct stack_item): New type.
10265 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10266 (arm_store_struct_return): Delte.
10267 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10268 arm_push_arguments or arm_store_struct_return.
10269
e8933a55
AC
102702003-03-28 Andrew Cagney <cagney@redhat.com>
10271
10272 * Makefile.in (d10v-tdep.o): Update dependencies.
10273 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10274 * d10v-tdep.c: Include "remote.h".
10275 (target_resume_hook): Delete extern declaration.
10276 (target_wait_loop_hook): Ditto.
10277 (tdisassemble_command): Eliminate assignment in "if" conditional.
10278 (d10v_ts2_register_sim_regno): Eliminate call to
10279 legacy_register_sim_regno.
10280 (d10v_ts3_register_sim_regno): Ditto.
10281
6949171e
JJ
102822003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10283
10284 * thread.c: Reindented.
10285 * lin-lwp.c: Ditto.
10286 * linux-proc.c: Ditto.
10287
98c7071f
BR
102882003-03-28 Bob Rossi <bob_rossi@cox.net>
10289
fbe586ae 10290 * MAINTAINERS (write after approval): Add myself.
98c7071f 10291
5edc9ca6
TR
102922003-03-27 Theodore A. Roth <troth@openavr.org>
10293
10294 * objc-exp.y: Add missing semi-colons.
10295
378bfd1b
AC
102962003-03-27 Andrew Cagney <cagney@redhat.com>
10297
10298 * regcache.c (write_sp): Delete function and references.
10299 * inferior.h (write_sp): Delete declaration.
10300 * valops.c (hand_function_call): Replace write_sp with
10301 TARGET_WRITE_SP.
10302 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10303 (sparc_pop_frame): Ditto.
8ffd9b1b 10304
56056df7
AC
103052003-03-27 Andrew Cagney <cagney@redhat.com>
10306
10307 * NEWS: Mention removal of support for hppa*-*-bsd* and
10308 hppa*-*-osf* natives, and hppa*-*-pro* target.
10309 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10310 * config/pa/xm-pa.h: Obsolete file.
10311 * config/pa/xm-hppab.h: Obsolete file.
10312 * config/pa/nm-hppab.h: Obsolete file.
10313 * config/pa/tm-hppab.h: Obsolete file.
10314 * config/pa/tm-hppao.h: Obsolete file.
10315 * config/pa/nm-hppao.h: Obsolete file.
10316 * config/pa/tm-pro.h: Obsolete file.
10317 * config/pa/hppaosf.mt: Obsolete file.
10318 * config/pa/hppaosf.mh: Obsolete file.
10319 * config/pa/hppapro.mt: Obsolete file.
10320 * config/pa/hppabsd.mt: Obsolete file.
10321 * config/pa/hppabsd.mh: Obsolete file.
10322 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10323 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10324 hppa*-*-osf*.
10325
5873a88d
AC
103262003-03-27 Andrew Cagney <cagney@redhat.com>
10327
10328 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10329 push_arguments. Don't set push_return_address or write_sp.
10330 (d10v_push_dummy_call): Replace d10v_push_arguments.
10331 (d10v_push_return_address, d10v_write_sp): Delete function,
10332 handled by push_dummy_call.
10333
b81774d8
AC
103342003-03-26 Andrew Cagney <cagney@redhat.com>
10335
10336 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10337 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10338 regcache and dummy_addr parameters.
10339 * gdbarch.h, gdbarch.c: Re-generate.
10340 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10341 available; assume it will handle stack alignment and return
10342 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10343 legacy_push_arguments.
10344 (legacy_push_arguments): Rename default_push_arguments.
10345 * value.h (legacy_push_arguments): Rename default_push_arguments.
10346 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10347 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10348 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10349 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10350 * config/i386/tm-symmetry.h: Update.
10351 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10352 * x86-64-tdep.c (x86_64_init_abi): Update.
10353 * v850-tdep.c (v850_gdbarch_init): Update.
10354 * sparc-tdep.c (sparc_gdbarch_init): Update.
10355 * sh-tdep.c (sh_gdbarch_init): Update.
10356 * s390-tdep.c (s390_gdbarch_init): Update.
10357 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10358 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10359 * mips-tdep.c (mips_gdbarch_init): Update.
10360 * mcore-tdep.c (mcore_gdbarch_init): Update.
10361 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10362 * ia64-tdep.c (ia64_gdbarch_init): Update.
10363 * i386-tdep.c (i386_gdbarch_init): Update.
10364 * hppa-tdep.c (hppa_gdbarch_init): Update.
10365 * h8300-tdep.c (h8300_gdbarch_init): Update.
10366 * frv-tdep.c (frv_gdbarch_init): Update.
10367 * d10v-tdep.c (d10v_gdbarch_init): Update.
10368 * cris-tdep.c (cris_gdbarch_init): Update.
10369 * avr-tdep.c (avr_gdbarch_init): Update.
10370 * arm-tdep.c (arm_gdbarch_init): Update.
10371 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10372 * alpha-tdep.c (alpha_gdbarch_init): Update.
10373
f541410f
DJ
103742003-03-26 Daniel Jacobowitz <drow@mvista.com>
10375
10376 * signals/signals.c (do_target_signal_to_host): Correct realtime
10377 signal range test.
10378
69f567ae
DJ
103792003-03-26 Daniel Jacobowitz <drow@mvista.com>
10380
10381 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10382 (struct sal_chain, map_catch_names): Remove.
10383 (catch_exception_command_1): Don't call
10384 handle_gnu_4_16_catch_command.
10385
d5d14a5a
DJ
103862003-03-26 Daniel Jacobowitz <drow@mvista.com>
10387
10388 From Mark Dettinger <dettinge@de.ibm.com>:
10389 * dwarf2cfi.c (read_2u): Increment pointer by two.
10390
bdd73e22
DJ
103912003-03-26 Daniel Jacobowitz <drow@mvista.com>
10392
10393 * signals/signals.c: Fix typos in last change.
10394
960cb555
DJ
103952003-03-26 Daniel Jacobowitz <drow@mvista.com>
10396
10397 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10398 not already defined. Use __SIGRTMIN if available.
10399 (target_signal_from_host): Remove SIGRTMIN block.
10400 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10401 the signal is within the realtime range.
10402
f636b87d
AF
104032003-03-25 Adam Fedor <fedor@gnu.org>
10404
10405 * Makefile.in (infrun.o): Add $(language_h)
10406 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10407 for language specific trampolines.
10408 * language.h (struct language_defn): Add skip_trampoline.
10409 (skip_language_trampoline): Declare.
10410 * language.c (unk_lang_trampoline, skip_language_trampoline):
10411 New functions.
10412 (unknown_language_defn, auto_language_defn, local_language_defn):
10413 Add ukn_lang_trampoline.
10414 * ada-lang.c (ada_language_defn): Add NULL for language
10415 specific skip_trampoline.
10416 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10417 scm-lang.c: Likewise.
10418 * objc-lang.c (objc_skip_trampoline): New function.
10419 (objc_language_defn): Add objc_skip_trampoline.
10420
28f617b3 104212003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
10422
10423 * frame.c (get_prev_frame): Delay validating a frame's ID -
10424 non-NULL, didn't go backwards - until an attempt to unwind it to
10425 the previous frame.
10426
f933a9c5
AC
104272003-03-25 Andrew Cagney <cagney@redhat.com>
10428
10429 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10430 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10431 * gdbarch.h, gdbarch.c: Re-generate.
10432 * config/sparc/tm-sparc.h
10433 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10434 * sparc-tdep.c (sparc_gdbarch_init): Set
10435 deprecated_extra_stack_alignment_needed.
10436 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10437 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10438 extra_stack_alignment_needed.
10439 * v850-tdep.c (v850_gdbarch_init): Ditto.
10440 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10441 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10442 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10443 * cris-tdep.c (cris_gdbarch_init): Ditto.
10444 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10445 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 10446
4183d812
AC
104472003-03-25 Andrew Cagney <cagney@redhat.com>
10448
10449 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10450 STORE_STRUCT_RETURN.
10451 * gdbarch.h, gdbarch.c: Regenerate.
10452 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10453 (d10v_push_arguments): Set the struct return register.
10454 (d10v_gdbarch_init): Update.
10455 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10456 * x86-64-tdep.c (x86_64_init_abi): Update.
10457 * vax-tdep.c (vax_gdbarch_init): Update.
10458 * v850-tdep.c (v850_gdbarch_init): Update.
10459 * sparc-tdep.c (sparc_gdbarch_init): Update.
10460 * sh-tdep.c (sh_gdbarch_init): Update.
10461 * s390-tdep.c (s390_gdbarch_init): Update.
10462 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10463 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10464 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10465 * mips-tdep.c (mips_gdbarch_init): Update.
10466 * mcore-tdep.c (mcore_gdbarch_init): Update.
10467 * m68k-tdep.c (m68k_gdbarch_init): Update.
10468 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10469 * ia64-tdep.c (ia64_gdbarch_init): Update.
10470 * i386-tdep.c (i386_gdbarch_init): Update.
10471 * hppa-tdep.c (hppa_gdbarch_init): Update.
10472 * h8300-tdep.c (h8300_gdbarch_init): Update.
10473 * frv-tdep.c (frv_gdbarch_init): Update.
10474 * cris-tdep.c (cris_gdbarch_init): Update.
10475 * avr-tdep.c (avr_gdbarch_init): Update.
10476 * arm-tdep.c (arm_gdbarch_init): Update.
10477 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10478
1bf6d5cc
AC
104792003-03-25 Andrew Cagney <cagney@redhat.com>
10480
10481 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10482 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10483 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10484 * gdbarch.h, gdbarch.c: Regenerate.
10485 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10486 call_dummy_stack_adjust_p.
10487 * vax-tdep.c (vax_gdbarch_init): Ditto.
10488 * v850-tdep.c (v850_gdbarch_init): Ditto.
10489 * sh-tdep.c (sh_gdbarch_init): Ditto.
10490 * s390-tdep.c (s390_gdbarch_init): Ditto.
10491 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10492 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10493 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10494 * mips-tdep.c (mips_gdbarch_init): Ditto.
10495 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10496 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10497 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10498 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10499 * i386-tdep.c (i386_gdbarch_init): Ditto.
10500 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10501 * frv-tdep.c (frv_gdbarch_init): Ditto.
10502 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10503 * cris-tdep.c (cris_gdbarch_init): Ditto.
10504 * avr-tdep.c (avr_gdbarch_init): Ditto.
10505 * arm-tdep.c (arm_gdbarch_init): Ditto.
10506 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10507 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10508 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10509 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10510 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10511 call_dummy_stack_adjust_p.
10512 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10513 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10514 * sparc-tdep.c (sparc32_push_arguments): Update.
10515 * valops.c (hand_function_call): Update.
10516
71c08af0
CV
105172003-03-25 Corinna Vinschen <vinschen@redhat.com>
10518
10519 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10520 set_gdbarch_char_signed.
10521
30757f90
RE
105222003-03-25 Richard Earnshaw <rearnsha@arm.com>
10523
10524 PR cli/548
10525 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10526
03d48a7d
RE
105272003-03-25 Richard Earnshaw <rearnsha@arm.com>
10528
10529 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10530 (_initialize_arm_tdep): Don't set tm_print_insn.
10531
2cf6873c
AF
105322003-03-24 Adam Fedor <fedor@gnu.org>
10533
10534 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10535 * objc-lang.h: Add multiple inclusion protection.
10536 (start_msglist, add_msglist, end_msglist): Additional declarations.
10537
17c0759e
RE
105382003-03-24 Richard Earnshaw <rearnsha@arm.com>
10539
10540 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10541 value was renamed to ARM_FLOAT_SOFT_FPA.
10542
618ce49f
AC
105432003-03-23 Andrew Cagney <cagney@redhat.com>
10544
10545 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10546 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10547 * gdbarch.h, gdbarch.c: Regenerate.
10548 * valops.c (hand_function_call): Update.
10549 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10550 * frame.c (legacy_saved_regs_this_id): Update.
10551 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10552 * dummy-frame.h: Update.
10553 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10554 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10555 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10556 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10557 * config/m68k/tm-sun3.h: Update.
10558 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10559 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10560 * x86-64-tdep.c (x86_64_init_abi): Update.
10561 * vax-tdep.c (vax_gdbarch_init): Update.
10562 * v850-tdep.c (v850_gdbarch_init): Update.
10563 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10564 * sh-tdep.c (sh_gdbarch_init): Update.
10565 * s390-tdep.c (s390_gdbarch_init): Update.
10566 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10567 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10568 (frame_get_saved_regs): Update.
10569 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10570 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10571 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10572 * mips-tdep.c (mips_gdbarch_init): Update.
10573 * mcore-tdep.c (mcore_gdbarch_init): Update.
10574 * m68k-tdep.c (m68k_gdbarch_init): Update.
10575 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10576 * ia64-tdep.c (ia64_gdbarch_init): Update.
10577 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10578 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10579 (i386_interix_back_one_frame): Update.
10580 * hppa-tdep.c (hppa_gdbarch_init): Update.
10581 (hppa_init_extra_frame_info): Update.
10582 * h8300-tdep.c (h8300_gdbarch_init): Update.
10583 * frv-tdep.c (frv_gdbarch_init): Update.
10584 * cris-tdep.c (cris_gdbarch_init): Update.
10585 * avr-tdep.c (avr_gdbarch_init): Update.
10586 * arm-tdep.c (arm_gdbarch_init): Update.
10587 * alpha-tdep.c (alpha_gdbarch_init): Update.
10588
fd50bc42
RE
105892003-03-22 Richard Earnshaw <rearnsha@arm.com>
10590
10591 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10592 (arm_get_fp_model): Declare.
10593 * arm-tdep.c (fp_model_strings): New string array.
10594 (arm_fp_model, current_fp_model): New variables.
10595 (arm_get_fp_model): New function.
10596 (arm_set_fp): New function.
10597 (set_fp_model_sfunc): New function.
10598 (show_fp_model): New function.
10599 (_initialize_arm_tdep): Add new command to set/show the FPU.
10600 (arm_extract_return_value): Use arm_get_fp_model.
10601 (arm_store_return_value): Likewise.
10602 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10603 to initialize the floating-point data types.
10604 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10605 model is FPA.
10606
26304000
RE
106072003-03-22 Richard Earnshaw <rearnsha@arm.com>
10608
10609 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10610 the current setting of each value.
10611 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 10612 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
10613 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10614 commands and add new version as subcommands of "set/show arm".
10615
afd7eef0
RE
106162003-03-22 Richard Earnshaw <rearnsha@arm.com>
10617
10618 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10619 (set_arm_command, show_arm_command): New functions.
10620 (_initialize_arm_tdep): Add them.
10621 (num_disassembly_options): Renamed from num_flavor_options.
10622 (valid_disassembly_styles): Renamed from valid_flavors.
10623 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 10624 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
10625 set_disassembly_flavor_sfunc.
10626 (set_disassembly_style): Renamed from set_disassembly_flavor.
10627 (arm_othernames): Updated.
10628 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10629 command. Add "set/show arm disassembly" commands. Deprecate
10630 "othernames" command.
10631
299a7944
RE
106322003-03-22 Richard Earnshaw <rearnsha@arm.com>
10633
10634 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10635 (arm-tdep.o): Depend on elf_arm_h.
10636
c1dac9e6
RE
106372003-03-22 Richard Earnshaw <rearnsha@arm.com>
10638
10639 * Makefile.in (coff_internal_h): Define.
10640 (arm-tdep.o): Update dependencies.
10641
2702d96c
RE
106422003-03-22 Richard Earnshaw <rearnsha@arm.com>
10643
10644 * arm-tdep.c (prologue_cache): Delete.
10645 (check_prologue_cache, save_prologue_cache): Delete.
10646 (arm_scan_prologue): Don't check or update the prologue_cache.
10647 (arm_gdb_arch_init): Don't initialize it.
10648 (_initialize_arm_tdep): Likewise.
10649
27d5d74b
SC
106502003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10651
10652 * MAINTAINERS (tui): Maintainer of tui code.
10653
1762d96d
CV
106542003-03-21 Corinna Vinschen <vinschen@redhat.com>
10655
10656 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10657 (i386-cygwin-tdep.o): Add dependencies.
10658 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10659 * i386-cygwin-tdep.c: New file.
10660 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10661 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10662
4c2e2391
AC
106632003-03-20 Andrew Cagney <cagney@redhat.com>
10664
f20d38b7
AC
10665 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10666 (handle_inferior_event): Remove code calling
10667 DYNAMIC_TRAMPOLINE_NEXTPC.
10668
0022b738
AC
10669 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10670 already has a full path.
10671
864dbc90
AC
10672 * main.c (gdb_main): Return 1.
10673 (captured_main): Call error to report an invalid interpreter.
10674
4c2e2391
AC
10675 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10676 * alpha-osf1-tdep.c: Include "gdb_string.h".
10677
5ef7553b
JB
106782003-03-19 J. Brobecker <brobecker@gnat.com>
10679
10680 Continuing work to convert the hppa targets to multiarch partial.
10681
10682 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10683 method, now that hppa_push_dummy_frame has a conformant prototype.
10684 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10685 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10686 for the switch to multiarch partial.
10687
7bde8967
KB
106882003-03-19 Kevin Buettner <kevinb@redhat.com>
10689
10690 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10691 when iss is issNull.
10692
b006a9e9
KB
106932003-03-18 Kevin Buettner <kevinb@redhat.com>
10694
10695 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10696 NUM_REGS bounds check.
10697
5e2e9765
KB
106982003-03-18 Kevin Buettner <kevinb@redhat.com>
10699
10700 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10701 * mips-tdep.c (gdb_assert.h): Include.
10702 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10703 (mips_register_name): Handle integer registers explicitly. Add
10704 bounds checking.
10705 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10706 (mips_lsi33k_reg_names): Don't list integer registers; they're
10707 handled by mips_register_name() now.
10708 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10709 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10710 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10711 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10712 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10713
a2867626
AC
107142003-03-18 Andrew Cagney <cagney@redhat.com>
10715
10716 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10717 a void pointer.
10718 * gdbtypes.h (print_scalar_formatted): Update declaration.
10719 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10720
06600e06
JB
107212003-03-18 J. Brobecker <brobecker@gnat.com>
10722
10723 * infrun.c (observer.h): Add #include.
10724 (normal_stop): Add call to observer_notify_normal_stop.
10725 * Makefile.in (infrun.o): Add dependency on observer.h.
10726
7daf4f5b
JB
107272003-03-18 J. Brobecker <brobecker@gnat.com>
10728
10729 Continuing work to convert the hppa targets to multiarch partial.
10730 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10731 parameter. Reformat comment.
10732 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10733 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10734 to match new profile.
10735
3371ccc0
JB
107362003-03-18 J. Brobecker <brobecker@gnat.com>
10737
10738 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10739 appear to be working in any case.
10740
4fbe891e
JB
107412003-03-18 J. Brobecker <brobecker@gnat.com>
10742
10743 * observer.c (observer_test_first_observer): New static variable.
10744 (observer_test_second_observer): Likewise.
10745 (observer_test_third_observer): Likewise.
10746 (observer_test_first_notification_function): New static function.
10747 (observer_test_second_notification_function): Likewise.
10748 (observer_test_third_notification_function): Likewise.
10749
a7ff40e7
JB
107502003-03-17 J. Brobecker <brobecker@gnat.com>
10751
10752 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10753 * somsolib.c (gdb_assert.h): Likewise.
10754 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10755 (somsolib.o): Likewise.
10756
26ca4152
AC
107572003-03-17 Andrew Cagney <cagney@redhat.com>
10758
10759 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10760 BFD. Simplify setting of di.endian.
10761
0a613259
AC
107622003-03-17 Andrew Cagney <cagney@redhat.com>
10763
10764 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10765 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10766
10767 From Elena Zannoni <ezannoni@redhat.com>
10768 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10769 vector and floating-point parameters.
10770 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10771 convention.
10772 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10773
1132738f
FN
107742003-03-17 Fernando Nasser <fnasser@redhat.com>
10775
10776 * MAINTAINERS: Remove my name from several maintainership roles.
10777
6dc42492
AC
107782003-03-17 Andrew Cagney <cagney@redhat.com>
10779
10780 Fix frame off-by-one bug.
10781 * frame-unwind.h (frame_this_id_ftype): Replace
10782 frame_unwind_id_ftype.
10783 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10784 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10785 with "prev_register".
10786 * frame-unwind.c (frame_unwind_find_by_pc): Return
10787 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10788 comment.
10789 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10790 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10791 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10792 (dummy_frame_unwind): Update.
10793 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10794 sentinel_frame_register_unwind.
10795 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10796 (sentinel_frame_unwinder): Update.
10797 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10798 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10799 * frame.c (create_sentinel_frame): Update. Initialize
10800 "prologue_cache" instead of "unwind_cache".
10801 (frame_register_unwind): Call this frame's prev_register with the
10802 next frame and this frame's prologue cache.
10803 (get_prev_frame): Simplify. Always call prev frame's this_id with
10804 this frame and prev frame's prologue cache. Document that this
10805 call is shifted one to the left when compared to the
10806 frame_register_unwind call.
10807 (legacy_saved_regs_prev_register): Replace
10808 frame_saved_regs_register_unwind.
10809 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10810 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10811 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10812 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10813 (d10v_frame_unwind): Update.
10814 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10815 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10816 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10817 "saved_regs" with "this_saved_regs".
10818
efd710d6
AC
108192003-03-16 Andrew Cagney <cagney@redhat.com>
10820
10821 * frame.c (frame_pop): Don't call target_store_registers. Fix
10822 problem reported by Mark Kettenis.
10823
4e259f09
MK
108242003-03-16 Mark Kettenis <kettenis@gnu.org>
10825
10826 * i386-tdep.c (i386_register_type): Renamed from
10827 i386_register_virtual_type. Adjust function signature.
10828 (i386_gdbarch_init): Set register_type instead of
10829 deprecated_max_register_raw_size,
10830 deprecated_max_register_virtual_size and register_virtual_type.
10831
055bb976
AC
108322003-03-14 Andrew Cagney <cagney@redhat.com>
10833
10834 * frame.c (get_prev_frame): When a legacy frame, always call
10835 legacy_get_prev_frame. Simplify unwind code using assumption that
10836 the unwinder is new.
10837 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10838 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10839 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10840
ac2adee5
AC
108412003-03-14 Andrew Cagney <cagney@redhat.com>
10842
10843 * frame.c (get_saved_register): Delete function.
10844 * frame.h (get_saved_register): Delete declaration.
10845 * xstormy16-tdep.c: Update comment.
10846 * regcache.h: Update comments.
10847 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10848 get_saved_register and extract_address, use
10849 frame_read_unsigned_register.
10850 (sparc_frame_saved_pc): Ditto.
10851 (sparc_get_saved_register): Instead of get_saved_register, use
10852 frame_register.
10853 (sparc_pop_frame): Ditto.
10854 * findvar.c: Update comments.
10855 (value_of_register): Call frame_register instead of
10856 get_saved_register.
10857 (value_from_register): Ditto.
10858 * config/sparc/tm-sparc.h: Update comment.
10859 * breakpoint.c: Update comment.
10860
129c1cd6
AC
108612003-03-14 Andrew Cagney <cagney@redhat.com>
10862
10863 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10864 GET_SAVED_REGISTER.
10865 * gdbarch.h, gdbarch.c: Re-generate.
10866 * frame.h: Update comments.
10867 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10868 * x86-64-tdep.c (x86_64_init_abi): Update.
10869 * sparc-tdep.c (sparc_gdbarch_init): Update.
10870 * sh-tdep.c (sh_gdbarch_init): Update.
10871 * mips-tdep.c (mips_gdbarch_init): Update.
10872 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10873 * cris-tdep.c (cris_gdbarch_init): Update.
10874 * ia64-tdep.c (ia64_gdbarch_init): Update.
10875 * frame.c (frame_register): Update.
10876 (get_saved_register): Update.
10877 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 10878
749b82f6
AC
108792003-03-13 Andrew Cagney <cagney@redhat.com>
10880
10881 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10882 * gdbarch.h, gdbarch.c: Regenerate.
10883 * valops.c (hand_function_call): Update comment.
10884 * stack.c (return_command): Update comment.
10885 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10886 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10887 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10888 * x86-64-tdep.c (x86_64_init_abi): Update.
10889 * vax-tdep.c (vax_gdbarch_init): Update.
10890 * v850-tdep.c (v850_gdbarch_init): Update.
10891 * sparc-tdep.c (sparc_gdbarch_init): Update.
10892 * sh-tdep.c (sh_gdbarch_init): Update.
10893 * s390-tdep.c (s390_gdbarch_init): Update.
10894 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10895 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10896 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10897 * mips-tdep.c (mips_gdbarch_init): Update.
10898 * mcore-tdep.c (mcore_gdbarch_init): Update.
10899 * m68k-tdep.c (m68k_gdbarch_init): Update.
10900 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10901 * ia64-tdep.c (ia64_gdbarch_init): Update.
10902 * i386-tdep.c (i386_gdbarch_init): Update.
10903 * hppa-tdep.c (hppa_gdbarch_init): Update.
10904 * h8300-tdep.c (h8300_gdbarch_init): Update.
10905 * frv-tdep.c (frv_gdbarch_init): Update.
10906 * cris-tdep.c (cris_gdbarch_init): Update.
10907 * avr-tdep.c (avr_gdbarch_init): Update.
10908 * arm-tdep.c (arm_gdbarch_init): Update.
10909 * alpha-tdep.c (alpha_gdbarch_init): Update.
10910
1594fa56
AC
109112003-03-13 Andrew Cagney <cagney@redhat.com>
10912
10913 * frame.c (legacy_frame_p): New function.
10914 (get_prev_frame): Use legacy_frame_p.
10915 * frame.h (legacy_frame_p): Declare.
10916
7717fda3
V
109172003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10918
fbe586ae 10919 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
10920 listing corrected.
10921
0c67cbe9
V
109222003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10923
fbe586ae 10924 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 10925
03febf99
AC
109262003-03-12 Andrew Cagney <cagney@redhat.com>
10927
10928 * frame.c (get_prev_frame): Rename the frame parameter to
10929 "this_frame".
10930 (get_next_frame, legacy_get_prev_frame): Ditto.
10931
0a1e1ca1
AC
109322003-03-12 Andrew Cagney <cagney@redhat.com>
10933
10934 * frame.c (get_current_frame): Check target_has_registers before
10935 checking target_has_stack.
10936 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10937 instead of deprecated_selected_frame.
10938 * findvar.c (value_of_register): Pass "frame", not
10939 deprecated_selected_frame, to value_of_builtin_reg.
10940
a66a9c23
AC
109412003-03-12 Andrew Cagney <cagney@redhat.com>
10942
10943 * regcache.c (regcache_cooked_write_signed): New function.
10944 (regcache_cooked_write_unsigned): New function.
10945 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10946 (regcache_cooked_read_signed): Fix regnum in range assertion.
10947 * regcache.h (regcache_cooked_write_signed): Declare.
10948 (regcache_cooked_write_unsigned): Declare.
10949
8bedc050
AC
109502003-03-12 Andrew Cagney <cagney@redhat.com>
10951
10952 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10953 * gdbarch.h, gdbarch.c: Re-generate.
10954 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10955 * x86-64-tdep.h: Update.
10956 * x86-64-tdep.c (x86_64_init_abi): Update.
10957 * v850-tdep.c (v850_gdbarch_init): Update.
10958 * sparc-tdep.c (sparc_gdbarch_init): Update.
10959 * sh-tdep.c (sh_gdbarch_init): Update.
10960 * s390-tdep.c (s390_gdbarch_init): Update.
10961 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10962 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10963 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10964 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10965 * mips-tdep.c (mips_gdbarch_init): Update.
10966 * mcore-tdep.c (mcore_gdbarch_init): Update.
10967 * m68k-tdep.c (m68k_gdbarch_init): Update.
10968 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10969 * ia64-tdep.c (ia64_gdbarch_init): Update.
10970 * i386-tdep.c (i386_gdbarch_init): Update.
10971 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10972 * hppa-tdep.c (hppa_gdbarch_init): Update.
10973 * h8300-tdep.c (h8300_gdbarch_init): Update.
10974 * frv-tdep.c (frv_gdbarch_init): Update.
10975 * cris-tdep.c (cris_gdbarch_init): Update.
10976 * avr-tdep.c (avr_gdbarch_init): Update.
10977 * arm-tdep.c (arm_gdbarch_init): Update.
10978 * alpha-tdep.c (alpha_gdbarch_init): Update.
10979 * sh-tdep.c (sh_init_extra_frame_info): Update.
10980 (sh64_init_extra_frame_info): Update.
10981 * ns32knbsd-nat.c (frame_num_args): Update.
10982 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10983 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10984 (xstormy16_frame_chain_valid): Update.
10985 * vax-tdep.c (vax_saved_pc_after_call): Update.
10986 * v850-tdep.c (v850_frame_chain): Update.
10987 (v850_pop_frame): Update.
10988 (v850_init_extra_frame_info): Update.
10989 * sparc-tdep.c (setup_arbitrary_frame): Update.
10990 * ns32k-tdep.c (umax_frame_num_args): Update.
10991 * s390-tdep.c (s390_pop_frame_regular): Update.
10992 * mn10300-tdep.c (mn10300_frame_chain): Update.
10993 (mn10300_pop_frame_regular): Update.
10994 (mn10300_init_extra_frame_info): Update.
10995 * mips-tdep.c (mips_init_frame_pc_first): Update.
10996 (mips_frame_chain): Update.
10997 (mips_pop_frame): Update.
10998 * mcore-tdep.c (mcore_frame_chain): Update.
10999 (mcore_pop_frame): Update.
11000 (mcore_init_extra_frame_info): Update.
11001 * arch-utils.c (init_frame_pc_default): Update.
11002 * m68k-tdep.c (isi_frame_num_args): Update.
11003 (delta68_frame_num_args): Update.
11004 (news_frame_num_args): Update.
11005 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11006 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11007 (alpha_frame_chain): Update.
11008 (alpha_pop_frame): Update.
11009 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11010 (hppa_init_extra_frame_info): Update.
11011 (hppa_frame_chain): Update.
11012 (hppa_frame_chain_valid): Update.
11013 * cris-tdep.c (cris_init_extra_frame_info): Update.
11014 * avr-tdep.c (avr_init_extra_frame_info): Update.
11015 * arm-tdep.c (arm_frame_chain_valid): Update.
11016 (arm_init_extra_frame_info): Update.
11017 (arm_pop_frame): Update.
11018 * frame.c (frame_pc_unwind): Update.
11019 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11020 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11021 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11022 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11023 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11024 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11025
7a25a7c1
AC
110262003-03-12 Andrew Cagney <cagney@redhat.com>
11027
11028 Eliminate the need for POP_FRAME.
11029 * frame.c (do_frame_unwind_register): New function.
11030 (frame_pop): When no POP_FRAME, pop the frame using register
11031 unwind and a scratch regcache.
11032 (frame_saved_regs_pop): Delete function.
11033 (trad_frame_unwinder): Update.
11034 * d10v-tdep.c (d10v_frame_pop): Delete function.
11035 (d10v_frame_unwind): Update.
11036 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11037 (sentinel_frame_unwinder): Update.
11038 * dummy-frame.c (dummy_frame_pop): Delete function.
11039 (dummy_frame_unwind): Update.
11040 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11041 (struct frame_unwind): Update.
11042
2f38ef89
KB
110432003-03-11 Kevin Buettner <kevinb@redhat.com>
11044
11045 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11046 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11047 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11048 Do range checks on register number obtained from debugging info.
11049 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11050 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11051 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11052 mapping function.
11053 (do_fp_register_row): Fix typo which caused double type to be
11054 used when attempting to unpack a float.
11055
552f4abf
JB
110562003-03-11 J. Brobecker <brobecker@gnat.com>
11057
11058 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11059
e0d2ae16
AC
110602003-03-11 Andrew Cagney <cagney@redhat.com>
11061
11062 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11063 frame. Problem found by Corinna Vinschen.
11064
ddbfdd06
PM
110652003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11066
11067 * doublest.c (floatformat_from_length): Accept also
11068 the real size of 'long double' type.
11069
088b2ddc 110702003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 11071
088b2ddc 11072 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
11073 * breakpoint.c (bpstat_copy): Copy the command lines as well
11074 as the old value, to match what is freed in bpstat_clear.
11075
f56f77c1
DC
110762003-03-10 David Carlton <carlton@math.stanford.edu>
11077
11078 * minsyms.c (add_minsym_to_hash_table): Replace
11079 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11080 (compare_minimal_symbols, compact_minimal_symbols)
11081 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11082 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11083 of DEPRECATED_SYMBOL_MATCHES_NAME.
11084 (lookup_minimal_symbol_solib_trampoline): Ditto.
11085
5602984a
AC
110862003-03-10 Andrew Cagney <cagney@redhat.com>
11087
11088 * regcache.h (regcache_cooked_read_ftype): Define.
11089 (regcache_save, regcache_restore): Add a cooked_read parameter.
11090 * regcache.c (regcache_save, regcache_restore): Update.
11091 (do_cooked_read): New function.
11092 (regcache_cpy): Pass do_cooked_read to regcache_save and
11093 regcache_restore.
11094
8bedc050
AC
110952003-03-10 Andrew Cagney <cagney@redhat.com>
11096
11097 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11098 * gdbarch.h, gdbarch.c: Re-generate.
11099 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11100 * x86-64-tdep.h: Update.
11101 * x86-64-tdep.c (x86_64_init_abi): Update.
11102 * v850-tdep.c (v850_gdbarch_init): Update.
11103 * sparc-tdep.c (sparc_gdbarch_init): Update.
11104 * sh-tdep.c (sh_gdbarch_init): Update.
11105 * s390-tdep.c (s390_gdbarch_init): Update.
11106 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11107 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11108 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11109 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11110 * mips-tdep.c (mips_gdbarch_init): Update.
11111 * mcore-tdep.c (mcore_gdbarch_init): Update.
11112 * m68k-tdep.c (m68k_gdbarch_init): Update.
11113 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11114 * ia64-tdep.c (ia64_gdbarch_init): Update.
11115 * i386-tdep.c (i386_gdbarch_init): Update.
11116 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11117 * hppa-tdep.c (hppa_gdbarch_init): Update.
11118 * h8300-tdep.c (h8300_gdbarch_init): Update.
11119 * frv-tdep.c (frv_gdbarch_init): Update.
11120 * cris-tdep.c (cris_gdbarch_init): Update.
11121 * avr-tdep.c (avr_gdbarch_init): Update.
11122 * arm-tdep.c (arm_gdbarch_init): Update.
11123 * alpha-tdep.c (alpha_gdbarch_init): Update.
11124 * sh-tdep.c (sh_init_extra_frame_info): Update.
11125 (sh64_init_extra_frame_info): Update.
11126 * ns32knbsd-nat.c (frame_num_args): Update.
11127 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11128 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11129 (xstormy16_frame_chain_valid): Update.
11130 * vax-tdep.c (vax_saved_pc_after_call): Update.
11131 * v850-tdep.c (v850_frame_chain): Update.
11132 (v850_pop_frame): Update.
11133 (v850_init_extra_frame_info): Update.
11134 * sparc-tdep.c (setup_arbitrary_frame): Update.
11135 * ns32k-tdep.c (umax_frame_num_args): Update.
11136 * s390-tdep.c (s390_pop_frame_regular): Update.
11137 * mn10300-tdep.c (mn10300_frame_chain): Update.
11138 (mn10300_pop_frame_regular): Update.
11139 (mn10300_init_extra_frame_info): Update.
11140 * mips-tdep.c (mips_init_frame_pc_first): Update.
11141 (mips_frame_chain): Update.
11142 (mips_pop_frame): Update.
11143 * mcore-tdep.c (mcore_frame_chain): Update.
11144 (mcore_pop_frame): Update.
11145 (mcore_init_extra_frame_info): Update.
11146 * arch-utils.c (init_frame_pc_default): Update.
11147 * m68k-tdep.c (isi_frame_num_args): Update.
11148 (delta68_frame_num_args): Update.
11149 (news_frame_num_args): Update.
11150 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11151 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11152 (alpha_frame_chain): Update.
11153 (alpha_pop_frame): Update.
11154 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11155 (hppa_init_extra_frame_info): Update.
11156 (hppa_frame_chain): Update.
11157 (hppa_frame_chain_valid): Update.
11158 * cris-tdep.c (cris_init_extra_frame_info): Update.
11159 * avr-tdep.c (avr_init_extra_frame_info): Update.
11160 * arm-tdep.c (arm_frame_chain_valid): Update.
11161 (arm_init_extra_frame_info): Update.
11162 (arm_pop_frame): Update.
11163 * frame.c (frame_pc_unwind): Update.
11164 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11165 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11166 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11167 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11168 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11169 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11170
12cc2063
AC
111712003-03-10 Andrew Cagney <cagney@redhat.com>
11172
11173 * gdbarch.sh (gdbarch_unwind_pc): New method.
11174 * gdbarch.h, gdbarch.c: Regenerate.
11175 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11176 but use read_pc and FRAME_SAVED_PC as fall backs.
11177 (frame_saved_regs_pc_unwind): Delete function.
11178 (trad_frame_unwinder): Update.
11179 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11180 (struct frame_unwind): Update.
11181 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11182 (dummy_frame_unwind): Update.
11183 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11184 (sentinel_frame_unwinder): Update.
11185 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11186 (d10v_frame_unwind): Update.
11187 (d10v_unwind_pc): New function.
11188 (d10v_gdbarch_init): Set unwind_pc.
11189
ef840a37
AC
111902003-03-10 Andrew Cagney <cagney@redhat.com>
11191
a2ce2e56
AC
11192 * gdbarch.h: Re-generate.
11193
ef840a37
AC
11194 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11195 PC.
11196 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11197 the PC register.
11198
08f3424b
MK
111992003-03-08 Mark Kettenis <kettenis@gnu.org>
11200
11201 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11202
1248ede2
AC
112032003-03-08 Andrew Cagney <cagney@redhat.com>
11204
11205 * cli-out.c: Update copyright.
11206 (cli_out_data): Define typedef. Use instead of ui_out_data.
11207
f49bacc8
AC
112082003-03-08 Andrew Cagney <cagney@redhat.com>
11209
11210 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11211 the result.
11212
9b05f993
AC
112132003-03-07 Andrew Cagney <cagney@redhat.com>
11214
11215 * gdbarch.sh: Don't generate two macro definitions when an
11216 undefined macro taking no arguments.
11217 * gdbarch.h: Regenerate.
8ffd9b1b 11218
166f4c7b
ML
112192002-03-07 Michal Ludvig <mludvig@suse.cz>
11220
11221 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11222 (x86_64_unwind_dummy_id): New functions.
11223 (x86_64_init_abi): Register these two new functions.
11224
6d686a84
ML
112252003-03-07 Michal Ludvig <mludvig@suse.cz>
11226
11227 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 11228 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
11229 separate function.
11230 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11231
6314f104
AC
112322003-03-05 Andrew Cagney <cagney@redhat.com>
11233
11234 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11235 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11236 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11237 to use unwind_dummy_id when a dummy frame.
11238 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11239 predicate.
11240 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 11241
ceea5145
AC
112422003-03-05 Andrew Cagney <cagney@redhat.com>
11243
11244 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11245 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11246 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11247 values.
11248
0d843116
AC
112492003-03-05 Andrew Cagney <cagney@redhat.com>
11250
11251 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11252 (struct d10v_unwind_cache): Delete field "frameless". Replace
11253 "next_addr" with "sp_offset". Add "r11_offset".
11254 (d10v_frame_unwind_cache): Update.
11255 (prologue_find_regs): Update. When "mv r11, sp", save the
11256 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11257 RN was saved in r11_offset.
11258
b2579786
AC
112592003-03-05 Andrew Cagney <cagney@redhat.com>
11260
11261 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11262 cached PC value in the next frame.
11263
218e5956
AC
112642003-03-05 Andrew Cagney <cagney@redhat.com>
11265
11266 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11267 "id_unwind_cache" with "id".
11268 (frame_id_unwind): Delete declaration.
11269 * frame.c (frame_id_unwind): Delete function.
11270 (get_prev_frame): Call the frame id unwind method directly. Store
11271 the returned next frame's ID value in NEXT_FRAME. Note that there
11272 is a problem with the wrong unwind ID being called with the wrong
11273 unwind cache.
11274
ed363b1b
DJ
112752003-03-05 Daniel Jacobowitz <drow@mvista.com>
11276
11277 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11278
fe1f4a5e
DJ
112792003-03-05 James Ingham <jingham@apple.com>
11280 Daniel Jacobowitz <drow@mvista.com>
11281
11282 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11283 (auto_cp_abi): New variable.
11284 (current_cp_abi, num_cp_abis): Make static.
11285 (CP_ABI_MAX): Define.
11286 (cp_abis): Turn into an array.
11287 (value_virtual_fn_field): Fix formatting.
11288 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11289 takes a pointer.
11290 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11291 (list_cp_abis, _initialize_cp_abi): New functions.
11292 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11293 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11294 switch_to_cp_abi. Update prototype for register_cp_abi.
11295 * Makefile.in (cp-abi.o): Update dependencies.
11296 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11297 instead of switch_to_cp_abi.
11298 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11299 register_cp_abi.
11300 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11301 register_cp_abi.
11302 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11303
e4adbba9
DJ
113042003-03-05 Daniel Jacobowitz <drow@mvista.com>
11305
11306 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11307 * dwarf2loc.c: Include "regcache.h".
11308 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11309 register_size.
11310 * Makefile.in (dwarf2loc.o): Update dependencies.
11311
91ccbfc1
TR
113122003-03-04 Theodore A. Roth <troth@openavr.org>
11313
11314 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11315 number of io registers reported by remote target is not a multiple of
11316 step.
11317
3d4e8fd2
DC
113182003-03-04 David Carlton <carlton@math.stanford.edu>
11319
11320 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11321 (lookup_symbol_aux_psymtabs): Update call to
11322 lookup_partial_symbol.
11323 (lookup_transparent_type, find_main_psymtab)
11324 (make_symbol_overload_list): Ditto.
11325
ed42d87b
KH
113262003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11327
11328 * MAINTAINERS (Write after approval): Update my email address.
11329
a0ed5532
AC
113302003-03-03 Andrew Cagney <cagney@redhat.com>
11331
11332 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11333 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11334 predicate. Replace MAX_REGISTER_RAW_SIZE.
11335 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11336 MAX_REGISTER_VIRTUAL_SIZE.
11337 * regcache.c (legacy_max_register_raw_size): New function.
11338 (legacy_max_register_virtual_size): New function.
11339 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11340 (MAX_REGISTER_RAW_SIZE): Define.
11341 (legacy_max_register_raw_size): Declare.
11342 (legacy_max_register_virtual_size): Declare.
11343 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11344 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11345 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11346 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11347 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11348 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11349 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11350 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11351 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11352 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11353 * vax-tdep.c (vax_gdbarch_init): Update.
11354 * v850-tdep.c (v850_gdbarch_init): Update.
11355 * sparc-tdep.c (sparc_gdbarch_init): Update.
11356 * sh-tdep.c (sh_gdbarch_init): Update.
11357 * s390-tdep.c (s390_gdbarch_init): Update.
11358 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11359 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11360 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11361 * mips-tdep.c (mips_gdbarch_init): Update.
11362 * mcore-tdep.c (mcore_gdbarch_init): Update.
11363 * m68k-tdep.c (m68k_gdbarch_init): Update.
11364 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11365 * ia64-tdep.c (ia64_gdbarch_init): Update.
11366 * i386-tdep.c (i386_gdbarch_init): Update.
11367 * hppa-tdep.c (hppa_gdbarch_init): Update.
11368 * h8300-tdep.c (h8300_gdbarch_init): Update.
11369 * frv-tdep.c (frv_gdbarch_init): Update.
11370 * cris-tdep.c (cris_gdbarch_init): Update.
11371 * avr-tdep.c (avr_gdbarch_init): Update.
11372 * arm-tdep.c (arm_gdbarch_init): Update.
11373 * alpha-tdep.c (alpha_gdbarch_init): Update.
11374 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11375 max_register_raw_size or max_register_virtual_size.
11376
8e437497
DC
113772003-03-03 David Carlton <carlton@math.stanford.edu>
11378
11379 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11380 SYMBOL_MATCHES_NAME, add comment.
11381 (SYMBOL_MATCHES_NATURAL_NAME): New.
11382 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11383 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11384 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11385 * symtab.c (lookup_partial_symbol): Use
11386 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11387 unhelpful comment.
11388 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11389 SYMBOL_MATCHES_NAME.
11390 Fix for PR c++/33.
11391
25120b0d
DC
113922003-03-03 David Carlton <carlton@math.stanford.edu>
11393
11394 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11395 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11396 by regexp matching against SYMBOL_NATURAL_NAME.
11397
78a11fb4
DC
113982003-03-03 David Carlton <carlton@math.stanford.edu>
11399
11400 * linespec.c (find_method): Extract code into collect_methods.
11401 (collect_methods): New.
11402
645dd519
MK
114032003-03-02 Mark Kettenis <kettenis@gnu.org>
11404
b4700d91
MK
11405 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11406 get_frame_base.
11407
645dd519
MK
11408 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11409 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11410
0aa7e1aa
SC
114112003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11412
8ffd9b1b 11413 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
11414 and not regnum when summing the size of all registers up to regnum.
11415
f30ee0bc
AC
114162003-03-01 Andrew Cagney <cagney@redhat.com>
11417
11418 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11419 FRAME_INIT_SAVED_REGS.
11420 * gdbarch.h, gdbarch.c: Regenerate.
11421 * stack.c (frame_info): Update.
11422 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11423 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11424 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11425 * ns32k-tdep.c (ns32k_pop_frame): Update.
11426 * mips-tdep.c (mips_pop_frame): Update.
11427 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11428 * ia64-tdep.c (ia64_frame_chain): Update.
11429 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11430 (ia64_frameless_function_invocation): Update.
11431 (ia64_init_extra_frame_info): Update.
11432 (ia64_pop_frame_regular): Update.
11433 * frame.h (struct frame_info): Update comment.
11434 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11435 * frame.c (frame_saved_regs_register_unwind): Update.
11436 (frame_saved_regs_register_unwind): Update.
11437 (deprecated_generic_get_saved_register): Update.
11438 * cris-tdep.c: Update comment.
11439 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11440 Rename macro.
11441 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11442 * x86-64-tdep.c (x86_64_init_abi): Update.
11443 * vax-tdep.c (vax_gdbarch_init): Update.
11444 * v850-tdep.c (v850_gdbarch_init): Update.
11445 * sparc-tdep.c (sparc_gdbarch_init): Update.
11446 * sh-tdep.c (sh_gdbarch_init): Update.
11447 * s390-tdep.c (s390_gdbarch_init): Update.
11448 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11449 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11450 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11451 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11452 * mips-tdep.c (mips_gdbarch_init): Update.
11453 * mcore-tdep.c (mcore_gdbarch_init): Update.
11454 * m68k-tdep.c (m68k_gdbarch_init): Update.
11455 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11456 * ia64-tdep.c (ia64_gdbarch_init): Update.
11457 * i386-tdep.c (i386_gdbarch_init): Update.
11458 * frv-tdep.c (frv_gdbarch_init): Update.
11459 * avr-tdep.c (avr_gdbarch_init): Update.
11460 * arm-tdep.c (arm_gdbarch_init): Update.
11461 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11462
42fa7c0f
AC
114632003-03-01 Andrew Cagney <cagney@redhat.com>
11464
11465 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11466 option enum and switch. When no windows, set the interpreter to
11467 INTERP_CONSOLE.
8ffd9b1b 11468
49c7e338
AC
114692003-03-01 Andrew Cagney <cagney@redhat.com>
11470
11471 * main.c (captured_main): Replace magic option characters with an
11472 enum.
11473
e9582e71
AC
114742003-03-01 Andrew Cagney <cagney@redhat.com>
11475
11476 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11477 INIT_EXTRA_FRAME_INFO.
11478 * gdbarch.h, gdbarch.c: Regenerate.
11479 * arm-tdep.c: Update comments.
11480 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11481 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11482 * frame.h, avr-tdep.c: Ditto.
11483 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11484 (create_new_frame, legacy_get_prev_frame): Ditto.
11485 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11486 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11487 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11488 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11489 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11490 * v850-tdep.c (v850_gdbarch_init): Ditto.
11491 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11492 * sh-tdep.c (sh_gdbarch_init): Ditto.
11493 * s390-tdep.c (s390_gdbarch_init): Ditto.
11494 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11495 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11496 * mips-tdep.c (mips_gdbarch_init): Ditto.
11497 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11498 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11499 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11500 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11501 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11502 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11503 * frv-tdep.c (frv_gdbarch_init): Ditto.
11504 * cris-tdep.c (cris_gdbarch_init): Ditto.
11505 * avr-tdep.c (avr_gdbarch_init): Ditto.
11506 * arm-tdep.c (arm_gdbarch_init): Ditto.
11507 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11508 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11509
35cac7cf
AC
115102003-03-01 Andrew Cagney <cagney@redhat.com>
11511
11512 * gdbarch.sh (register_type): New function with predicate.
11513 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11514 * gdbarch.h, gdbarch.c: Re-generate.
11515 * arch-utils.c (generic_register_byte): Use generic_register_size.
11516 (generic_register_size): When available, use
11517 gdbarch_register_type.
11518 * regcache.c (init_regcache_descr): When available, initialize the
11519 register type array using gdbarch_register_type. If the
11520 architecture supplies gdbarch_register_type, do not use the legacy
11521 regcache layout.
11522 * d10v-tdep.c (d10v_register_type): Replace
11523 d10v_register_virtual_type.
11524 (d10v_gdbarch_init): Set register_type instead of
11525 register_virtual_type.
11526
7b83296f
AC
115272003-03-01 Andrew Cagney <cagney@redhat.com>
11528
11529 * Makefile.in (ax-gdb.o): Update dependencies.
11530 * ax-gdb.c: Include "regcache.h".
11531 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11532 * findvar.c (value_of_register): Ditto.
11533 * infcmd.c (default_print_registers_info): Ditto.
11534
eadc1c87
MK
115352003-03-01 Mark Kettenis <kettenis@gnu.org>
11536
11537 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11538 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11539
14143612
MK
115402003-03-01 Mark Kettenis <kettenis@gnu.org>
11541
11542 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11543 of STREQ.
11544
a55cc764
DJ
115452003-02-28 Daniel Jacobowitz <drow@mvista.com>
11546
11547 * Makefile.in (dwarf2loc.o): Update dependencies.
11548 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11549 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11550 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11551 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11552 (locexpr_tracepoint_var_ref): New function.
11553 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11554
08a617da
AC
115552003-02-28 Andrew Cagney <cagney@redhat.com>
11556
11557 * regcache.c (register_size): New function.
11558 * regcache.h (register_size): Declare
11559 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11560 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11561
4224873a
DC
115622003-02-28 David Carlton <carlton@math.stanford.edu>
11563
11564 * linespec.c (decode_compound): Extract code into find_method.
11565 (find_method): New.
11566
ccdc5d7f
JB
115672003-02-28 J. Brobecker <brobecker@gnat.com>
11568
11569 * Makefile.in: Add rules to build and link in observer.o.
11570
974e8ced
JB
115712003-02-27 J. Brobecker <brobecker@gnat.com>
11572
11573 * observer.c: Minor comments edits.
11574
7a28f973
JB
115752003-02-27 J. Brobecker <brobecker@gnat.com>
11576
11577 * observer.h, observer.c: New file.
11578
27cddce2
AC
115792003-02-27 Andrew Cagney <cagney@redhat.com>
11580
11581 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11582
b94a41a1
SC
115832003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11584
11585 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11586 (M6812_OP_STS_EXT): Likewise.
11587 (m6811_prologue): Use the above to recognize prologue.
11588 (m6812_prologue): Likewise.
11589
c8be8951
DC
115902003-02-27 David Carlton <carlton@math.stanford.edu>
11591
11592 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11593 SYMBOL_PRINT_NAME.
11594 (compare_psymbols): Ditto.
11595 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11596
d05bb1fc
MS
115972003-02-27 Michael Snyder <msnyder@redhat.com>
11598
4e845cd3
MS
11599 * f-lang.c (build_fortran_types): New function.
11600 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
11601 * doublest.c (extract_floating): Fix warning text.
11602
f3824013
AC
116032003-02-27 Andrew Cagney <cagney@redhat.com>
11604
11605 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11606 predicate. Replaces PUSH_DUMMY_FRAME.
11607 * gdbarch.h, gdbarch.c: Regnerate.
11608 * valops.c (hand_function_call): Update. Call
11609 generic_push_dummy_frame directly.
11610 * vax-tdep.c (vax_gdbarch_init): Update.
11611 * sparc-tdep.c (sparc_gdbarch_init): Update.
11612 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11613 * m68k-tdep.c (m68k_gdbarch_init): Update.
11614 * hppa-tdep.c (hppa_gdbarch_init): Update.
11615 * alpha-tdep.c (alpha_gdbarch_init): Update.
11616 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11617 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11618 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11619 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11620 push_dummy_frame to generic_push_dummy_frame.
11621 * v850-tdep.c (v850_gdbarch_init): Ditto.
11622 * sh-tdep.c (sh_gdbarch_init): Ditto.
11623 * s390-tdep.c (s390_gdbarch_init): Ditto.
11624 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11625 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11626 * mips-tdep.c (mips_gdbarch_init): Ditto.
11627 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11628 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11629 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11630 * i386-tdep.c (i386_gdbarch_init): Ditto.
11631 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11632 * frv-tdep.c (frv_gdbarch_init): Ditto.
11633 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11634 * cris-tdep.c (cris_gdbarch_init): Ditto.
11635 * avr-tdep.c (avr_gdbarch_init): Ditto.
11636 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 11637
ad188201
KB
116382003-02-26 Kevin Buettner <kevinb@redhat.com>
11639
11640 * mips-tdep.c (show_mips_abi): New function.
11641 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11642 command ``show mips abi''.
11643
6b37567a 116442003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 11645
6b37567a 11646 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 11647 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
11648 more sline entries have been seen for the function.
11649
d3e0a5bf
MC
116502003-02-26 Michael Chastain <mec@shout.net>
11651
11652 * configure: Regenerate with autoconf 000227.
11653
18972eea
MC
116542003-02-26 Michael Chastain <mec@shout.net>
11655
11656 Close PR build/660.
11657 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11658 for old libc5/glibc.
11659 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11660
0bbde931
KW
116612003-02-26 Kris Warkentin <kewarken@qnx.com>
11662
11663 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11664 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11665
27ca5dad
MC
116662003-02-26 Michael Chastain <mec@shout.net>
11667
11668 * configure.in: New variable HAVE_UINTPTR_T.
11669 * configure, config.in: Regenerated.
11670
6f88d630
DJ
116712003-02-26 Daniel Jacobowitz <drow@mvista.com>
11672
11673 Fix PR build/1097.
11674 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11675
b14185ce
AC
116762003-02-25 Andrew Cagney <cagney@redhat.com>
11677
11678 * frame.c (get_prev_frame): Add comment on check for
11679 inside_entry_func. Only check for inside_entry_file when not a
11680 dummy and not a sentinel. Check that the new frame is not inner
11681 to the old frame.
11682
ac2bd0a9
AC
116832003-02-25 Andrew Cagney <cagney@redhat.com>
11684
11685 * frame.c (frame_debug): New variable.
11686 (_initialize_frame): Add "set/show debug frame" command.
11687 (get_prev_frame): When frame_debug, print reason why unwind
11688 failed.
11689
b18a0fd2
MC
116902003-02-25 Michael Chastain <mec@shout.net>
11691
11692 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11693 to avoid uintptr_t definition problems.
11694
22abf04a
DC
116952003-02-25 David Carlton <carlton@math.stanford.edu>
11696
11697 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11698 (SYMBOL_LINKAGE_NAME): Ditto.
11699 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11700 SYMBOL_LINKAGE_NAME.
11701 (struct general_symbol_info): Expand comment.
11702 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11703 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11704 (SYMBOL_MATCHES_REGEXP): Ditto.
11705 * symtab.c (symbol_natural_name): New function.
11706 * objfiles.h: Replace all uses of SYMBOL_NAME by
11707 DEPRECATED_SYMBOL_NAME.
11708 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11709 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11710 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11711 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11712 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11713 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11714 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11715 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11716 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11717 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11718 * ada-exp.y: Ditto.
11719 * ada-exp.y: Update copyright.
11720 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11721 * cp-valprint.c: Ditto.
11722
1a5848f6
JJ
117232003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11724
11725 * infptrace.c (detach): Do not flag error if ptrace detach fails
11726 and errno is set to ESRCH.
11727
7343d46a
AC
117282003-02-24 Andrew Cagney <cagney@redhat.com>
11729
11730 * infptrace.c (udot_info): Change type of udot_off to long. Use
11731 paddr when printing udot_off's value.
11732
49fa1dc2
DC
117332003-02-24 David Carlton <carlton@math.stanford.edu>
11734
11735 * symtab.c (make_symbol_overload_list): Only read in partial
11736 symtabs containing a matching partial symbol.
11737
0fe19209
DC
117382003-02-24 David Carlton <carlton@math.stanford.edu>
11739
11740 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11741 do the comparison, not strcmp.
11742 * symfile.c (compare_psymbols): Ditto.
11743 * defs.h: Declare strcmp_iw_ordered.
11744 * utils.c (strcmp_iw_ordered): New function.
11745
8e3ee7b5
JB
117462003-02-24 Jim Blandy <jimb@redhat.com>
11747
11748 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11749 support, shared libs): Remove my name from here, to better reflect
11750 reality.
11751
7df1a324
KW
117522003-02-24 Kris Warkentin <kewarken@qnx.com>
11753
11754 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11755 (target_ops): Add to_have_continuable_watchpoint.
11756 * target.c (update_current_target): Add INHERIT line for
11757 to_have_continuable_watchpoint.
11758 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11759 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11760 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11761 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11762
d1c76907
EZ
117632003-02-24 Elena Zannoni <ezannoni@redhat.com>
11764
11765 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11766 maintainership.
11767
2610b0bf
KW
117682003-02-24 Kris Warkentin <kewarken@qnx.com>
11769
f46169db
KW
11770 * solib.c (solib_open): Call target defined search function after
11771 failing with solib-search-path.
11772 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11773 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 11774
9a3c34fe
KW
117752003-02-24 Kris Warkentin <kewarken@qnx.com>
11776
f46169db 11777 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 11778
2417dd25
SC
117792003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11780
11781 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11782
b631436b
SC
117832003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11784
11785 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11786 (m68hc11_add_reggroups): New function.
11787 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11788 (m68hc11_gdbarch_init): Install the reggroups.
11789 (_initialize_m68hc11_tdep): Initialize them.
11790
0aa8c1e4
JW
117912003-02-21 James E Wilson <wilson@tuliptree.org>
11792
11793 * MAINTAINERS: Update my email address.
11794
50ceaba5
DC
117952003-02-21 David Carlton <carlton@math.stanford.edu>
11796
11797 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11798
4c2df51b
DJ
117992003-02-21 Daniel Jacobowitz <drow@mvista.com>
11800
11801 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11802 * symtab.h: Add opaque declarations of struct axs_value and
11803 struct agent_expr.
11804 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11805 (struct location_funcs): New type.
11806 (struct symbol): Add "loc" to aux_value.
11807 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11808 * dwarf2read.c: Include "dwarf2expr.h".
11809 (dwarf2_symbol_mark_computed): New function.
11810 (read_func_scope): Use it.
11811 (var_decode_location): New function.
11812 (new_symbol): Use it.
11813 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11814
11815 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11816 (dwarf2expr_h, dwarf2loc_h): New variables.
11817 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11818 (dwarf2expr.o, dwarf2loc.o): New rules.
11819 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11820 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11821 LOC_COMPUTED_ARG.
11822 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11823 * m2-exp.y (yylex): Likewise.
11824 * printcmd.c (address_info, print_frame_args): Likewise.
11825 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11826 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11827 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11828 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11829 * symtab.c (lookup_block_symbol): Likewise.
11830
5784d15e
AF
118312003-02-20 Adam Fedor <fedor@gnu.org>
11832
11833 * symtab.h: Remove objc_specific struct
11834 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11835 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11836 Have language_objc use cplus_specific struct.
11837
d4cad8db
TT
118382003-02-20 Tom Tromey <tromey@redhat.com>
11839
11840 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11841 TYPE_NAME, when printing a String value. PR java/1075.
11842
2f9a90b4
AF
118432003-02-20 Adam Fedor <fedor@gnu.org>
11844
d38074a8 11845 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 11846 * objc-lang.c (find_methods): Make static.
2f9a90b4 11847
6f17862b
CF
118482003-02-20 Christopher Faylor <cgf@redhat.com>
11849
11850 * win32-nat.c (get_image_name): Check return value from
11851 ReadProcessMemory.
11852 (child_xfer_memory): Ditto.
11853
715d1656
AO
118542003-02-20 Alexandre Oliva <aoliva@redhat.com>
11855
11856 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11857 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11858 '${exec_prefix}' (in addition to the expansion thereof) as
11859 relocatable.
11860 * configure: Rebuilt.
11861
b1262a02
DC
118622003-02-20 David Carlton <carlton@math.stanford.edu>
11863
11864 * symtab.c (search_symbols): Revert the search_symbols part of my
11865 2002-12-23 patch. Add comment.
11866
7134143f
DJ
118672002-02-20 Daniel Jacobowitz <drow@mvista.com>
11868
11869 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11870 * dbxread.c (elfstab_build_psymtabs): Don't call
11871 install_minimal_symbols.
11872 (stabsect_build_psymtabs): Likewise.
11873 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11874 earlier.
11875 * somread.c (som_symfile_read): Call install_minimal_symbols
11876 and do_cleanups earlier.
11877 * nlmread.c (nlm_symfile_read): Likewise.
11878 * mdebugread.c (elfmdebug_build_psymtabs): Call
11879 install_minimal_symbols and make appropriate cleanups.
11880
cf466558
KB
118812003-02-20 Kevin Buettner <kevinb@redhat.com>
11882
11883 * solib.c (reload_shared_libraries): New function.
11884 (_initialize_solib): Add callbacks for ``set solib-search-path''
11885 and ``set solib-absolute-prefix''.
11886
de5ad195
DC
118872003-02-20 David Carlton <carlton@math.stanford.edu>
11888
11889 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11890 expand comment.
11891 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11892 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11893 * ada-typeprint.c (ada_typedef_print): Ditto.
11894 * ax-gdb.c (gen_var_ref): Ditto.
11895 * breakpoint.c (print_one_breakpoint): Ditto.
11896 * buildsym.c (finish_block): Ditto.
11897 * c-valprint.c (c_val_print): Ditto.
11898 * expprint.c (print_subexp): Ditto.
11899 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
11900 * infcmd.c (jump_command): Ditto.
11901 * linespec.c (decode_line_2, decode_compound): Ditto.
11902 * maint.c (maintenance_translate_address): Ditto.
11903 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
11904 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11905 Ditto.
8ffd9b1b
AJ
11906 * p-valprint.c (pascal_val_print): Ditto.
11907 * stabsread.c (define_symbol): Ditto.
de5ad195 11908 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
11909 (print_frame_arg_vars, return_command): Ditto.
11910 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11911 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
11912 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11913 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
11914 (rbreak_command): Ditto.
11915 * tracepoint.c (tracepoints_info): Ditto.
11916 * typeprint.c (typedef_print): Ditto.
11917 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
11918 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11919 * ada-typeprint.c: Update Copyright.
11920 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11921 * tracepoint.c, cli/cli-cmds.c: Ditto.
11922
f796e4be
KB
119232003-02-20 Kevin Buettner <kevinb@redhat.com>
11924
11925 * frame.c (generic_unwind_get_saved_register): Make non-static.
11926 * frame.h (generic_unwind_get_saved_register): Declare.
11927 * mips-tdep.c (read_next_frame_reg): Fetch register from
11928 current regcache when frame is NULL.
11929 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11930 that must be NULL.
11931 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11932 instead of frame_register_unwind().
11933
836cc9f4
AC
119342003-02-20 Andrew Cagney <ac131313@redhat.com>
11935
11936 * remote-sim.c (gdbsim_insert_breakpoint)
11937 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11938 code.
11939
501eef12
AC
119402003-02-20 Andrew Cagney <ac131313@redhat.com>
11941
11942 * remote.c (_initialize_remote): Add commands "set/show remote
11943 hardware-watchpoint-limit" and "set/show remote
11944 hardware-breakpoint-limit".
11945 (remote_hw_watchpoint_limit): Initialize to -1.
11946 (remote_hw_breakpoint_limit): Ditto.
11947 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11948
1b6bc7e0
CF
119492003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11950
11951 * coff-pe-read.c: New file - support reading of minimal symbols from a
11952 portable executable using the export table.
11953 * coff-pe-read.h: New file.
11954 * coffread.c: Include coff-pe-read.h.
11955 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11956 debugging symbols found.
11957 * Makefile.in (SFILES): Add coff-pe-read.o.
11958 (coff_pe_read_h): Define.
11959 (COMMON_OBS): Add coff-pe-read.o.
11960 (coffread.o): Add coff_pe_read_h dependency.
11961 (coff-pe-read.o): New target.
11962
fe898f56
DC
119632003-02-19 David Carlton <carlton@math.stanford.edu>
11964
11965 * Makefile.in (SFILES): Add block.c.
11966 (block_h): New.
11967 (COMMON_OBS): Add block.o.
11968 (block.o): New.
11969 (x86-64-tdep.o): Add $(block_h).
11970 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11971 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11972 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11973 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11974 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11975 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11976 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11977 * value.h: Add opaque declaration for struct block.
11978 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11979 * ada-lang.h: Ditto.
11980 * x86-64-tdep.c: #include "block.h"
11981 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11982 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11983 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11984 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11985 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11986 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11987 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11988 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11989 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11990 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11991 * symtab.c (block_function): Ditto.
11992 (contained_in): Ditto.
11993 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11994 block.h. Add opaque declaration for struct block.
11995 * symtab.h: Move block_function and contained_in declarations to
11996 block.h. Add opaque declarations for struct block, struct
11997 blockvector.
11998 (struct block): Move to block.h.
11999 (struct blockvector): Ditto.
12000 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12001 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12002 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12003 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12004 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12005 Ditto.
12006 * block.c: New file.
12007 * block.h: New file.
12008
173345b5
TR
120092003-02-19 Theodore A. Roth <troth@openavr.org>
12010
12011 * avr-tdep.c (avr_extract_return_value): Remove function.
12012 (avr_store_return_value): Remove function.
12013 (avr_extract_struct_value_address): Remove function.
12014 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12015
338ef23d
AC
120162003-02-19 Andrew Cagney <ac131313@redhat.com>
12017
12018 * rs6000-tdep.c: Include "gdb_assert.h".
12019 (registers_e500): Add "acc" and "spefscr".
12020 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12021 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12022 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12023 really is "r0".
12024 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12025
5412f5f3
KS
120262003-02-18 Keith Seitz <keiths@redhat.com>
12027
12028 * Makefile.in: Add gdbtk-interps.c.
12029
881324eb
KB
120302003-02-18 Kevin Buettner <kevinb@redhat.com>
12031
12032 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12033 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12034
6a2f5abf
AC
120352003-02-18 Andrew Cagney <cagney@redhat.com>
12036
12037 * symtab.h (struct objfile): Add opaque declaration.
12038
54c7009d
EZ
120392003-02-18 Elena Zannoni <ezannoni@redhat.com>
12040
12041 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
12042 * dbxread.c (process_one_symbol): Use last_function_start rather
12043 than function_start_offset to find the real beginning of the
12044 current function. The latter is just the text section offset on
12045 some systems, the former is always the real function start.
54c7009d 12046
7ee6d7eb
AC
120472003-02-17 Andrew Cagney <cagney@redhat.com>
12048
12049 * configure.in: Revert ${target} != ${host}.
12050
2846da9b
AC
120512003-02-17 Andrew Cagney <ac131313@redhat.com>
12052
12053 * configure.in (Makefile): Use the test ${target} != ${host},
12054 instead of the absence of the "nm.h" file, to determine of the
12055 configuration non-native.
12056 * configure: Regenerate.
8ffd9b1b 12057
3b27aeea
EZ
120582003-02-14 Elena Zannoni <ezannoni@redhat.com>
12059
fbe586ae 12060 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
12061
12062 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12063 conditionalize tui_active test.
12064 (lookup_cmd_1): Ditto.
12065
b0b1c2c0
MK
120662003-02-14 Mark Kettenis <kettenis@gnu.org>
12067
12068 * configure.in: Add check for _etext.
12069 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12070 available.
12071 * config.in, configure: regenerated.
12072
8f05cde5
DJ
120732003-02-14 Daniel Jacobowitz <drow@mvista.com>
12074
12075 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12076
021e7609
AC
120772003-02-14 Andrew Cagney <ac131313@redhat.com>
12078
12079 * main.c (tui_version): Delete variable.
12080 (captured_main): When --tui, set interpreter_p to "tui" instead of
12081 enabling tui_version.
12082 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12083 tui_version.
12084 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12085 * cli/cli-cmds.c (disassemble_command): Ditto.
12086 * defs.h (tui_version): Delete declaration.
12087 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12088 (tui-interp.o): Add rules.
12089 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12090
e325dcec
CF
120912003-02-14 Christopher Faylor <cgf@redhat.com>
12092
36ffb041 12093 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
12094 just-loaded dll.
12095
c4f90d87
JM
120962003-02-12 Jason Molenda (jmolenda@apple.com)
12097
fbe586ae
RH
12098 * symmisc.c (print_objfile_statistics): Include information about
12099 the number of psymtabs and symtabs in each object file.
c4f90d87 12100
e46e5ccd
KS
121012003-02-13 Keith R Seitz <keiths@redhat.com>
12102
12103 * main.h (struct captured_main_args): Add interpreter_p.
12104 * main.c (captured_main): Initialize interpreter_p from context.
12105 * gdb.c (main): Set interpreter_p argument.
12106 * Makefile.in (gdb.o): Add dependency for interps.h.
12107
fe97fe9c
AC
121082003-02-12 Andrew Cagney <ac131313@redhat.com>
12109
12110 * event-top.c (cli_command_loop): Delete declaration.
12111 (_initialize_event_loop): Delete function setting event_loop_hook.
12112 * event-top.h (cli_command_loop): Declare. Update copyright.
12113 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12114 * interps.c (current_interp_command_loop): When event_loop_p, call
12115 cli_command_loop.
12116
1cdac4ef
AC
121172003-02-12 Andrew Cagney <ac131313@redhat.com>
12118
12119 * interps.h (interp_command_loop_ftype): Change return type to
12120 void.
12121
48037ead
ML
121222003-02-12 Michal Ludvig <mludvig@suse.cz>
12123
12124 * x86-64-tdep.c (x86_64_extract_return_value)
12125 (x86_64_store_return_value): Use regcache instead of regbuf.
12126 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12127 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12128
033afc63
AC
121292003-02-11 Andrew Cagney <ac131313@redhat.com>
12130
12131 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12132 * aclocal.m4: Regenerate.
12133 * configure: Regenerate.
12134
12135 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12136 TCL_LD_SEARCH_FLAGS.
12137
40d02bca
ML
121382003-02-10 Michal Ludvig <mludvig@suse.cz>
12139
12140 * dwarf2cfi.c: Reindented.
12141
11308a41
AC
121422003-02-09 Andrew Cagney <ac131313@redhat.com>
12143
12144 * interps.c (clear_interpreter_hooks): Convert function definition
12145 to ISO C.
12146
e1c1c0f6
DC
121472003-02-07 David Carlton <carlton@math.stanford.edu>
12148
12149 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12150
ab5d3da6
KB
121512003-02-07 Kevin Buettner <kevinb@redhat.com>
12152
12153 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12154 (struct type): ...to here.
12155 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12156 field.
12157 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12158 (replace_type): Set length on all type variants for a given type.
12159
b8a92b82
AC
121602003-02-07 Andrew Cagney <ac131313@redhat.com>
12161
12162 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12163 <sys/stat.h>.
12164 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 12165
5cb316ef
AC
121662003-02-06 Andrew Cagney <ac131313@redhat.com>
12167
2555fe1a
AC
12168 * Makefile.in (symm-nat.o): Update dependencies.
12169 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12170 (lynx-nat.o, ia64-linux-nat.): Ditto.
12171 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12172 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12173 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12174
44270758
AC
12175 * Makefile.in (inflow_h): Define.
12176 (procfs.o, inflow.o, procfs.o): Update dependencies.
12177 * inftarg.c (child_stop): Delete extern declaration of
12178 inferior_process_group. Include "inflow.h".
12179 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12180 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12181 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12182 (our_process_group, inferior_process_group): Extern declarations.
12183
df8f7274
AC
12184 * procfs.c: Include "gdb_assert.h".
12185
5cb316ef
AC
12186 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12187 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12188 * jv-typeprint.c (java_type_print_base): Ditto.
12189 * typeprint.c (typedef_print): Eliminate STREQ.
12190 * cli/cli-script.c (define_command, define_command): Ditto.
12191 * main.c (captured_main): Ditto.
12192 * values.c (lookup_internalvar): Ditto.
12193 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12194 within `if' conditional.
12195 * linespec.c (decode_line_2): Ditto.
12196 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12197 (bfd_openw_with_cleanup): Ditto.
12198
2a28ccea
MK
121992003-02-07 Mark Kettenis <kettenis@gnu.org>
12200
12201 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12202 legacy_extract_return_value and store_return_value to
12203 legacy_return_value.
12204
786b8124
CF
122052003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12206
12207 * win32-nat.c (get_relocated_section_addrs): New function. Find
12208 section load addresses for symbol handling in relocated DLLs.
12209 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12210
b871e4ec
FF
122112003-02-05 Fred Fish <fnf@intrinsity.com>
12212
12213 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12214 '=' and '!='.
12215 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12216 with '&' and '=='.
12217 (angel_RDI_info): Ditto.
12218 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12219 with '&' and '!='.
12220 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 12221
4389a95a 122222003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
12223 Keith Seitz <keiths@redhat.com>
12224 Elena Zannoni <ezannoni@redhat.com>
12225 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
12226
12227 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12228 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12229 (SUBDIR_MI_OBS): Add "mi-interp.o".
12230 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12231 (SFILES): Add "interps.c".
12232 (COMMON_OBS): Add "interps.o".
12233 (interps_h, mi_main_h): Define.
12234 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12235 (mi-main.o, main.o, event-top.o): Update dependencies.
12236 * cli/cli-interp.c: New file.
12237 * interps.h, interps.c: New files.
12238 * top.c: (gdb_init): Don't install the default interpreter, handed
12239 by captured_main.
12240 * main.c: Include "interps.h".
12241 (interpreter_p): Note that it should malloc'ed.
12242 (captured_command_loop): Call current_interp_command_loop.
12243 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12244 xfree and xstrdup when updating interpreter_p. Install the
12245 default interpreter. Add hack to stop mi1's copyright notice
12246 being encoded.
12247 * event-top.h (gdb_setup_readline): Declare.
12248 (gdb_disable_readline): Declare.
12249 * event-top.c: Include "interps.h".
12250 (display_gdb_prompt): Call current_interp_display_prompt_p.
12251 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12252 gdb_stdlog, and gdb_stdtarg.
12253 (_initialize_event_loop): Don't call gdb_setup_readline.
12254 * cli-out.c (cli_out_set_stream): New function.
12255 * cli-out.h (cli_out_set_stream): Declare.
12256
ff3b5810
MK
122572003-02-06 Mark Kettenis <kettenis@gnu.org>
12258
12259 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12260 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12261 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12262 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12263 config/i386/i386v42mp.mt: Removed.
12264
5b729aa5
MK
122652003-02-05 Mark Kettenis <kettenis@gnu.org>
12266
12267 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12268 GDB_OSABI_SOLARIS.
12269
8cc15142
MC
122702003-02-05 Michael Chastain <mec@shout.net>
12271
12272 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12273 2.12.1 and earlier versions.
12274
5aa5d4b9
AC
122752003-02-05 Andrew Cagney <ac131313@redhat.com>
12276
12277 Remove orphaned hosts, targets and files.
12278 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12279 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12280 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12281 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12282 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12283 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12284 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12285 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12286 * config/sparc/tm-sp64sim.h: Delete.
12287 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12288 hosts.
12289 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12290 mips*-dec-mach3* targets.
12291
b68767c1
MC
122922003-02-04 Michael Chastain <mec@shout.net>
12293
12294 * NEWS: Fix typo: sepcifying -> specifying.
12295
5ae7ca1d
MC
122962003-02-04 Michael Chastain <mec@shout.net>
12297
12298 * dwarfread.c: Add documentation on the state of dwarf-1,
12299 looking towards obsoletion.
12300
d08a4280
MC
123012003-02-03 Michael Chastain <mec@shout.net>
12302
12303 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12304 gdb/testsuite/gdb.c++/pr-1023.exp.
12305
e9be73e4
AC
123062003-02-04 Andrew Cagney <ac131313@redhat.com>
12307
12308 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12309 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12310
12311 * utils.c (init_page_info): Delete reference to MPW in comments.
12312 * main.c (captured_main): Delete #ifdef MPW.
12313
05d57f6f
AC
123142003-02-04 Andrew Cagney <ac131313@redhat.com>
12315
8ffd9b1b 12316 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
12317 * monitor.c (monitor_expect): Obsolete reference to m32r.
12318 * configure.tgt: Mark m32r-*-elf* as obsolete.
12319 * MAINTAINERS: Mark m32k as obsolete.
12320 * m32r-rom.c: Obsolete file.
12321 * config/m32r/m32r.mt: Obsolete file.
12322 * config/m32r/tm-m32r.h: Obsolete file.
12323 * m32r-stub.c: Obsolete file.
12324 * m32r-tdep.c: Obsolete file.
12325
8b0e5691
AC
123262003-02-04 Andrew Cagney <ac131313@redhat.com>
12327
12328 * NEWS: Mention that the z8k-zilog-none is obsolete.
12329 * MAINTAINERS: Mark z8k as obsolete.
12330 * configure.tgt: Obsolete the z8k-*-coff* target.
12331 * config/z8k/z8k.mt: Obsolete file.
12332 * config/z8k/tm-z8k.h: Obsolete file.
12333 * z8k-tdep.c: Obsolete file.
12334
67f16606
AC
123352003-02-04 Andrew Cagney <ac131313@redhat.com>
12336
12337 * NEWS: Mention that the mn10200-elf is obsolete.
12338 * configure.tgt: Obsolete mn10200-*-* target.
12339 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12340 mention that the mn10200 is obsolete.
12341 * breakpoint.h: Ditto.
12342 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12343 * config/mn10200/mn10200.mt: Obsolete file.
12344 * config/mn10200/tm-mn10200.h: Obsolete file.
12345 * mn10200-tdep.c: Obsolete file.
12346
fd2299bd
AC
123472003-02-04 Andrew Cagney <ac131313@redhat.com>
12348
12349 * MAINTAINERS: Mark h8500 as obsolete.
12350 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12351 * findvar.c (value_from_register): Ditto.
12352 * h8500-tdep.c: Mark file as obsolete.
12353 * config/h8500/h8500.mt: Ditto.
12354 * config/h8500/tm-h8500.h: Ditto.
12355 * NEWS: Mention that h8500 is obsolete.
12356
eb9a305d
DC
123572003-02-04 David Carlton <carlton@math.stanford.edu>
12358
12359 * objfiles.c (allocate_objfile): Always set name. Add comment at
12360 start of function.
12361 * jv-lang.c (get_dynamics_objfile): Add comment.
12362
406fc7fb
DC
123632003-02-04 David Carlton <carlton@math.stanford.edu>
12364
12365 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12366 * printcmd.c (build_address_symbolic): Replace uses of
12367 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12368 SYMBOL_NAME, and asm_demangle.
12369 Update copyright.
12370
93d91629
DC
123712003-02-04 David Carlton <carlton@math.stanford.edu>
12372
12373 * linespec.c (decode_compound): Extract code into
12374 lookup_prefix_sym.
12375 (lookup_prefix_sym): New function.
12376
1c5cb38e
DC
123772003-02-04 David Carlton <carlton@math.stanford.edu>
12378
12379 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12380 FLOAT_COERCION_BADNESS.
12381 * gdbtypes.c (rank_one_type): Replace all uses of
12382 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12383
0cf824c9
JB
123842003-02-04 Jim Blandy <jimb@redhat.com>
12385
12386 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12387 section, let dwarf_macinfo_section point to it, not
12388 dwarf_loc_section.
12389
a2d356b0
DJ
123902003-02-04 Daniel Jacobowitz <drow@mvista.com>
12391
12392 Pointed out by Anton Blanchard <anton@samba.org>.
12393 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12394 (ppc_linux_at_sigtramp_return_path): Use it.
12395
2de7ced7
DJ
123962003-02-04 Daniel Jacobowitz <drow@mvista.com>
12397
12398 * defs.h (streq): Add prototype.
12399 * utils.c (streq): New function.
12400
12401 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12402 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12403 * mdebugread.c (new_symbol): Likewise.
12404 * stabsread.c (define_symbol): Likewise.
12405 * coffread.c (process_coff_symbol): Likewise.
12406 * dwarfread.c (new_symbol): Likewise.
12407
12408 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12409 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12410 here.
12411 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12412 SYMBOL_INIT_DEMANGLED_NAME.
12413 * objfiles.c: Include "hashtab.h".
12414 (allocate_objfile): Call htab_set_functions_ex for the
12415 demangled_names_hash.
12416 (free_objfile): Call htab_delete for the demangled_names_hash.
12417 * objfiles.h (struct htab): Add declaration.
12418 (struct objfile): Add demangled_names_hash.
12419 * symfile.c: Include "hashtab.h".
12420 (reread_symbols): Call htab_delete for the demangled_names_hash.
12421 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12422 SYMBOL_NAME in the bcache.
12423 * symtab.c: Include "hashtab.h". Update comments.
12424 (create_demangled_names_hash, symbol_set_names): New functions.
12425 (symbol_find_demangled_name): New function, broken out from
12426 symbol_init_demangled_names.
12427 (symbol_init_demangled_names): Use it.
12428 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12429 (SYMBOL_SET_NAMES): New macro.
12430 (symbol_set_names): Add prototype.
12431
15831452
JB
124322003-02-03 Jim Blandy <jimb@redhat.com>
12433
12434 Use a single, consistent representation for an empty minimal
12435 symbol table in an objfile.
12436 * objfiles.c (terminate_minimal_symbol_table): New function.
12437 (allocate_objfile): Call it.
12438 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12439 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 12440 non-NULL.
15831452
JB
12441 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12442 objfile has minimal symbols, compare minimal_symbol_count to zero,
12443 instead of comparing msymbols with NULL.
12444 * objfiles.c (have_minimal_symbols): Same.
12445 * solib-sunos.c (solib_add_common_symbols): Call
12446 terminate_minimal_symbol_table.
12447 * symfile.c (reread_symbols): Same.
8ffd9b1b 12448
ffc65945
KB
124492003-02-03 Kevin Buettner <kevinb@redhat.com>
12450
12451 * s390-tdep.c (s390_address_class_type_flags)
12452 (s390_address_class_type_flags_to_name)
12453 (s390_address_class_name_to_type_flags): New functions.
12454 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12455 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12456
f211c6d4
MS
124572003-02-03 Michael Snyder <msnyder@redhat.com>
12458
12459 * arm-tdep.c: Fix spell-o in comment.
12460
659b0389
ML
124612003-02-03 Michal Ludvig <mludvig@suse.cz>
12462
12463 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12464 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 12465 error messages to contain BFD filename.
659b0389 12466
3b31d625
EZ
124672003-02-02 Elena Zannoni <ezannoni@redhat.com>
12468
997b089a 12469 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
12470 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12471 (do_mixed_source_and_assembly): Use
12472 make_cleanup_ui_out_tuple_begin_end and
12473 make_cleanup_ui_out_tuple_begin_end.
12474 (do_mixed_source_and_assembly): Ditto.
12475 * thread.c (do_captured_list_thread_ids): Ditto.
12476 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12477 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12478 ui_out_tuple_end): Delete prototypes.
12479 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12480 ui_out_list_end, ui_out_tuple_end): Delete.
12481
12482 From Kevin Buettner <kevinb@redhat.com>:
12483 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
12484 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12485 (do_cleanup_table_end): New functions.
12486 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12487 Use cleanups to invoke_ui_out_tuple_end().
12488 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
12489 * cli/cli-setshow.c (cmd_show_list): Use
12490 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 12491
5b181d62
AC
124922003-02-02 Andrew Cagney <ac131313@redhat.com>
12493
12494 * frame.c (frame_unwind_register): New function.
12495 (frame_unwind_unsigned_register): Use.
12496 (frame_unwind_signed_register): Use.
12497 (frame_read_register): New function.
12498 * frame.h (frame_unwind_register): Declare.
12499 (frame_read_register): Declare.
12500
12501 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12502 and frame_unwind_register instead of read_memory, write_register
12503 and deprecated_write_register_bytes.
12504
5f601589
AC
125052003-02-02 Andrew Cagney <ac131313@redhat.com>
12506
12507 * frame.h: Note that namelen can be negative.
12508 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12509 NAME's length.
12510
12511 * NEWS: Mention that the d10v's `regs' command is deprecated.
12512 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12513 (d10v_print_registers_info): New function.
12514 (show_regs): Call d10v_print_registers_info.
12515 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12516
6a3fe0a4
MK
125172003-02-02 Mark Kettenis <kettenis@gnu.org>
12518
12519 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12520 lost in the previous patch.
12521
075559bc
AC
125222003-02-01 Andrew Cagney <ac131313@redhat.com>
12523
12524 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
12525 * stack.c (print_frame_info_base): Output complete FRAME tuple
12526 for synthesized frames.
075559bc 12527
6789195b
AC
125282003-02-02 Andrew Cagney <ac131313@redhat.com>
12529
12530 * mips-nat.c (zerobuf): Delete.
12531 (fetch_inferior_registers): Alloc local zerobuf.
12532 (fetch_core_registers): Alloc local zerobuf.
12533 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12534 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12535 * thread-db.c (thread_db_store_registers): Ditto.
12536 * sh-tdep.c (sh_do_register): Ditto.
12537 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12538 * remote-sim.c (gdbsim_store_register): Ditto.
12539 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12540 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12541 * monitor.c (monitor_supply_register): Ditto.
12542 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12543 * mips-nat.c (fetch_inferior_registers): Ditto.
12544 * m68klinux-nat.c (fetch_register): Ditto.
12545 * lynx-nat.c (fetch_inferior_registers): Ditto.
12546 (fetch_inferior_registers): Ditto.
12547 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12548 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12549 (hpux_thread_store_registers): Ditto.
12550 * hppah-nat.c (fetch_register): Ditto.
12551 * hppab-nat.c (fetch_register): Ditto.
12552 * hppa-tdep.c (pa_register_look_aside): Ditto.
12553 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12554 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12555
e669114a
AC
125562003-02-01 Andrew Cagney <ac131313@redhat.com>
12557
12558 * gdbarch.sh: Explictly specify all method levels. When a
12559 variable with an empty level, provide a non-multi-arch default.
12560 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12561 * gdbarch.h: Re-generate.
12562 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12563 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12564
9a043c1d
AC
125652003-02-01 Andrew Cagney <ac131313@redhat.com>
12566
12567 * defs.h (host_pointer_to_address): Delete declaration.
12568 (address_to_host_pointer): Delete declaration.
12569 * utils.c (host_pointer_to_address): Delete function.
12570 (address_to_host_pointer): Delete function.
12571 * procfs.c (procfs_address_to_host_pointer): New function.
12572 * procfs.c (proc_set_watchpoint): Use.
12573 (procfs_can_use_hw_breakpoint): Update comments.
12574 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12575 (som_solib_add): Use.
12576 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12577 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 12578
7ca9f392
AC
125792003-02-01 Andrew Cagney <ac131313@redhat.com>
12580
94bbfd30
AC
12581 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12582 strlen d_name.
12583
7ca9f392
AC
12584 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12585 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12586 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12587 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12588 (define_symbol): Update.
12589 * symfile.c (generic_load): Remove references to nindy.
12590 * symtab.c: Remove references to nindy.
12591
31a85ea2
AC
125922003-02-01 Andrew Cagney <ac131313@redhat.com>
12593
12594 * infcmd.c (print_float_info): Delete code conditional on
12595 FLOAT_INFO.
12596 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12597 * config/m68k/nm-apollo68b.h: Ditto.
12598 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12599 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12600 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12601
f6e85fc8
MK
126022003-02-01 Mark Kettenis <kettenis@gnu.org>
12603
6015b6a0
MK
12604 * config/i386/tm-i386os9k.h: Removed.
12605
f7a30bdf
MK
12606 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12607 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12608 they're identical to i[3456]86-*-sysv* now.
12609 * config/i386/i386v32.mh: Removed.
12610 * config/i386/xm-i386v32.h: Removed.
12611 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12612
28d52111
MK
12613 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12614
4d3f6bce
MK
12615 * config/i386/i386dgux.mh: Removed.
12616 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12617
f6e85fc8
MK
12618 * configure.in: Fix typo.
12619 * configure: Regenerated.
12620
53955967
DC
126212003-01-31 David Carlton <carlton@math.stanford.edu>
12622
12623 * dwarf2read.c (dwarf2_locate_sections): Set
12624 dwarf_ranges_section.
12625
b1364885
AC
126262003-01-31 Andrew Cagney <ac131313@redhat.com>
12627
8dbb1c65
AC
12628 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12629 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 12630
8731e58e
AC
12631 * utils.c: Re-indent.
12632
b1364885
AC
12633 * config/djgpp/fnchange.lst: Delete nindy files.
12634 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12635 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12636 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12637 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12638 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12639 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12640 * Makefile.in (init.c): Remove nindy references.
12641 (saber_gdb): Delete rule.
12642 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12643 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12644 and a68v-nat.c.
12645 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12646 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12647 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12648 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12649 nindy-share/stop.h.
12650 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12651 * saber.suppress: Delete file.
12652
086df311
DJ
126532003-01-31 Daniel Jacobowitz <drow@mvista.com>
12654
12655 * dbxread.c (stabs_data): New static variable.
12656 (fill_symbuf): Support an in-memory buffer for stabs data.
12657 (stabs_seek): New function.
12658 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12659 (read_ofile_symtab): Use stabs_seek.
12660 (elfstab_build_psymtabs): Take an asection* instead of
12661 an offset and size. Relocate the stabs data if necessary.
12662 Save the section* for dbx_psymtab_to_symtab.
12663 * dwarf2read.c: Add section variables for each debug section.
12664 (dwarf2_locate_sections): Fill them in.
12665 (dwarf2_read_section): Take an asection* argument.
12666 Relocate the section contents if necessary.
12667 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12668 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12669 it to dwarf2_read_section.
12670 (dwarf2_build_frame_info): Update callers.
12671 * elfread.c (elf_symfile_read): Update call to
12672 elfstab_build_psymtabs.
12673 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12674 (DBX_STAB_SECTION): New macro.
8ffd9b1b 12675 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
12676 * symfile.c (symfile_dummy_outputs): New function.
12677 (symfile_relocate_debug_section): New function.
12678 * symfile.h (symfile_relocate_debug_section): Add prototype.
12679
87d1b352
RH
126802003-01-31 Richard Henderson <rth@redhat.com>
12681
12682 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12683 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12684 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12685 * alpha-tdep.c (alpha_register_name): Add "unique".
12686 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12687 (ALPHA_UNIQUE_REGNUM): New.
12688 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12689
c48861fb
AC
126902003-01-31 Andrew Cagney <ac131313@redhat.com>
12691
12692 * README: Remove reference to Ericsson 1800 monitor.
12693 * Makefile.in (remote-es.o): Delete rule.
12694 (ALLDEPFILES): Delete remote-es.c.
12695 * remote-es.c: Delete file.
12696 * config/m68k/es1800.mt: Delete file.
12697 * config/djgpp/fnchange.lst: Update.
12698 * configure.tgt: Delete m68*-ericsson-* target.
12699
d764a824
AF
127002003-01-31 Adam Fedor <fedor@gnu.org>
12701
12702 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12703 Remove duplicate/shadowing variable of same name.
12704
fe36c4f4
JB
127052003-01-30 Jim Blandy <jimb@redhat.com>
12706
12707 * symfile.c (find_separate_debug_file): Assert that the objfile's
12708 directory name we compute ends with a slash, and then assume that
12709 that's so everywhere we use it.
12710
cb741690
DJ
127112003-01-30 Daniel Jacobowitz <drow@mvista.com>
12712
12713 * valops.c (value_assign): Flush frame cache after stores to memory
12714 also.
12715
96ee5227
AC
127162003-01-30 Andrew Cagney <ac131313@redhat.com>
12717
12718 * Makefile.in (mon960-rom.o): Delete rule.
12719 * mon960-rom.c: Delete file.
12720
7f6104a9
AC
127212003-01-30 Andrew Cagney <ac131313@redhat.com>
12722
12723 * d10v-tdep.c: Include "frame-unwind.h".
12724 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12725 list.
12726 (next_addr, uses_frame): Delete.
12727 (struct d10v_unwind_cache): Define.
12728 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12729 Use info instead of next_addr and uses_frame globals.
12730 (d10v_frame_init_saved_regs): Delete function.
12731 (d10v_init_extra_frame_info): Delete function.
12732 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12733 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12734 init_frame_pc or frame_saved_pc.
12735 (d10v_pop_frame): Delete function.
12736 (do_d10v_pop_frame): Delete function.
12737 (d10v_frame_chain): Delete function.
12738 (d10v_frame_chain_valid): Delete function.
12739 (d10v_frame_pc_unwind): New function.
12740 (d10v_frame_id_unwind): New function.
12741 (saved_regs_unwinder): New function.
12742 (d10v_frame_register_unwind): New function.
12743 (d10v_frame_pop): New function.
12744 (d10v_frame_unwind): New variable.
12745 (d10v_frame_p): New function.
12746 (d10v_frame_saved_pc): Delete function.
12747 * Makefile.in (d10v-tdep.o): Update dependencies.
12748
cad2e848
JB
127492003-01-30 J. Brobecker <brobecker@gnat.com>
12750
12751 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12752 causing some regressions due to a change in the default value
12753 for this macro.
12754
af34e669
DJ
127552003-01-29 Richard Henderson <rth@redhat.com>
12756 Elena Zannoni <ezannoni@redhat.com>
12757 Daniel Jacobowitz <drow@mvista.com>
12758
12759 Fix PR gdb/961.
8ffd9b1b 12760 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
12761 variables.
12762 (RANGES_SECTION): New.
12763 (dwarf_ranges_buffer): New variable.
12764 (struct comp_unit_head): Add member "die".
12765 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12766 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12767 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12768 (dwarf2_locate_sections): Likewise.
12769 (dwarf2_build_psymtabs): Read .debug_ranges.
12770 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12771 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12772 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12773 Look for DW_AT_ranges and return the bounding box.
12774
baa93fa6
CF
127752003-01-29 Brian Ford <ford@vss.fsi.com>
12776
12777 * win32-nat.c (cygwin_pid): Removed as unused.
12778 (child_attach): Try fall back to Cygwin pid.
12779
c63f977f
JB
127802003-01-29 Jim Blandy <jimb@redhat.com>
12781
12782 * objfiles.h (struct objfile): Doc fix.
12783
d62d1979
AC
127842003-01-29 Andrew Cagney <ac131313@redhat.com>
12785
12786 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12787 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12788 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12789 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12790 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12791 (FRAME_SAVED_PC): Change to a function with predicate.
12792 * gdbarch.h, gdbarch.c: Re-generate.
12793
1ae18a04
AC
127942003-01-28 Andrew Cagney <ac131313@redhat.com>
12795
52287340
AC
12796 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12797
1ae18a04
AC
12798 * complaints.c (complain): Delete function.
12799 * complaints.h (struct deprecated_complaint): Delete definition.
12800 (complain): Delete declaration.
12801
f2c16bd6
KB
128022003-01-28 Kevin Buettner <kevinb@redhat.com>
12803
12804 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12805 dummy frames.
12806
a94dd1fd
AC
128072003-01-27 Andrew Cagney <ac131313@redhat.com>
12808
12809 * sentinel-frame.h, sentinel-frame.c: New files.
12810 * Makefile.in (frame.o): Update dependencies.
12811 (SFILES): Add sentinel-frame.c.
12812 (sentinel_frame_h): Define.
12813 (COMMON_OBS): Add sentinel-frame.o.
12814 (sentinel-frame.o): Specify dependencies.
12815 * frame.c: Include "sentinel-frame.h".
12816 (frame_register_unwind): Rewrite assuming that there is always a a
12817 ->next frame.
12818 (frame_register, generic_unwind_get_saved_register): Ditto.
12819 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12820 (create_sentinel_frame, unwind_to_current_frame): New functions.
12821 (get_current_frame): Rewrite using create_sentinel_frame and
12822 unwind_to_current_frame. When possible, always create a frame.
12823 (create_new_frame): Set next to the sentinel frame.
12824 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12825 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12826 ID cache when necessary.
12827 (frame_saved_regs_id_unwind): Use frame_relative_level.
12828 (deprecated_generic_get_saved_register): Use frame_relative_level,
12829 get_frame_saved_regs, get_frame_pc, get_frame_base and
12830 get_next_frame.
12831 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12832 frame_register.
12833
5378adc4
DJ
128342003-01-27 Daniel Jacobowitz <drow@mvista.com>
12835
12836 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12837
51ee2ddc
DJ
128382003-01-27 Daniel Jacobowitz <drow@mvista.com>
12839
12840 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12841 (maintenance_set_profile_cmd): Use error () instead of warning ().
12842
d9feb4e7
DJ
128432003-01-27 Daniel Jacobowitz <drow@mvista.com>
12844
12845 * configure.in: Check that -pg works if using --enable-profiling.
12846 Check for monstartup and _mcleanup regardless of --enable-profiling.
12847 * maint.c: Check for monstartup and _mcleanup before using them.
12848 * config.in: Regenerated.
12849 * configure: Regenerated.
12850
2d188dd3
NC
128512003-01-24 Nick Clifton <nickc@redhat.com>
12852
12853 * Add sh2e support:
12854
12855 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12856
12857 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12858 (sh2e_show_regs): New.
12859 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12860 * config/sh/tm-sh.h: Added sh2e to comments.
12861
cb3c37b2
JB
128622003-01-23 Jim Blandy <jimb@redhat.com>
12863
12864 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12865 symbols found)" message here; we haven't checked for a separate
12866 debug info file yet, so we don't know yet.
12867 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12868 we've looked everywhere. Also, there's no need to print a special
12869 message when we're loading the separate debug info file: the one
12870 symbol_file_add prints is fine.
12871
5b5d99cf
JB
128722003-01-23 Alexander Larsson <alexl@redhat.com>
12873 Jim Blandy <jimb@redhat.com>
12874
12875 Add support for executables whose debug info has been separated
12876 out into a separate file, leaving only a link behind.
12877 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12878 and separate_debug_objfile_backlink.
12879 (put_objfile_before): New declaration.
12880 * symfile.c: #include "filenames.h".
12881 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12882 debug info in a separate file, read that, too. Save the addrs
12883 argument, so we can use it again to read the separated debug info;
12884 syms_from_objfile modifies the table we pass it.
12885 (reread_symbols): After re-reading an objfile, call
12886 reread_separate_symbols to refresh its separate debug info
12887 objfile, if it has one.
12888 (reread_separate_symbols, find_separate_debug_file,
12889 get_debug_link_info, separate_debug_file_exists): New functions.
12890 (debug_file_directory): New global var.
12891 (_initialize_symfile): Initialize debug_file_directory, and
12892 provide the new `set debug-file-directory' command to let the user
12893 change it.
12894 * objfiles.c (free_objfile): If this objfile has its debug info in
12895 a separate objfile, free that one too. If this is itself a
12896 separate debug info objfile, clear our parent's backlink.
12897 (put_objfile_before): New function.
12898 * utils.c (gnu_debuglink_crc32): New function.
12899 * defs.h (gnu_debuglink_crc32): New declaration.
12900 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12901 * configure.in: Handle --with-separate-debug-dir config option.
12902 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12903 * acconfig.h (DEBUGDIR): New macro.
12904 * configure, aclocal.m4, config.in: Regenerated.
12905
7e8580c1
JB
129062003-01-22 Jim Blandy <jimb@redhat.com>
12907
7904e09f
JB
12908 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12909 like the old symbol_file_add, but taking new arguments: you can
12910 now pass in either a `struct section_addr_info' list to say where
12911 each section is loaded, or a `struct section_offsets' table. Pass
12912 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 12913 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
12914 with the appropriate quiescent values for the new arguments.
12915
7e8580c1
JB
12916 * symfile.c: #include "gdb_assert.h".
12917 (syms_from_objfile): Add the ability to pass in a section offset
12918 table directly, as an alternative to the section_addr_info table.
12919 Document arguments better.
12920 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12921 * symfile.h (syms_from_objfile): Update declaration.
12922 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12923 syms_from_objfile.
12924 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12925
d28f9cdf
DJ
129262003-01-22 Daniel Jacobowitz <drow@mvista.com>
12927
12928 Original patch by Tom Tromey <tromey@cygnus.com> and
12929 Jason Molenda <jmolenda@apple.com>.
12930 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12931 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12932 * NEWS: Mention profiling.
12933 * configure.in (--enable-gdbtk): Fix typo.
12934 (--enable-profiling): New. Set PROFILE_CFLAGS.
12935 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12936 Fill in function.
12937 (profiling_state): New variable.
12938 (mcleanup_wrapper): New function.
12939 (_initialize_maint): Remove NOTYET, fix call to
12940 add_setshow_boolean_cmd for "maint set profile".
12941 * configure: Regenerated.
12942
df21e465
MH
129432003-01-21 Martin M. Hunt <hunt@redhat.com>
12944
12945 * Makefile.in (install-gdbtk): Install PNG images too.
12946
73c1f219
AC
129472003-01-21 Andrew Cagney <ac131313@redhat.com>
12948
12949 * exec.c (text_start): Delete global variable.
12950 (exec_file_attach): Make text_start local to the function.
12951 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12952 * valops.c (hand_function_call): Delete code that handles
12953 BEFORE_TEXT_END and AFTER_TEXT_END.
12954 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12955 of CALL_DUMMY_LOCATION.
12956 * gdbarch.c: Regenerate.
12957 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12958 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12959 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12960 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12961 (text_end): Delete extern declaration.
12962
eb4f72c5
AC
129632003-01-21 Andrew Cagney <ac131313@redhat.com>
12964
12965 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12966 * blockframe.c (backtrace_below_main): Move to "frame.c".
12967 (frame_chain_valid): Delete check for backtrace_below_main.
12968 (_initialize_blockframe): Delete initialization, move ``set
12969 backtrace-below-main'' command to "frame.c".
12970 (do_flush_frames_sfunc): Delete function.
12971 * frame.c: Include "command.h" and "gdbcmd.h".
12972 (frame_type_from_pc): New function.
12973 (create_new_frame): Use frame_type_from_pc.
12974 (legacy_get_prev_frame): New function.
12975 (get_prev_frame): Rewrite. When an old style frame, call
12976 legacy_get_prev_frame. Otherwize, unwind the PC first.
12977 (_initialize_frame): Add ``set backtrace-below-main'' command.
12978 * Makefile.in (frame.o): Update dependencies.
12979
778ce8cc
AC
129802003-01-19 Andrew Cagney <ac131313@redhat.com>
12981
12982 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12983 DEPRECATED_REGISTERS_INFO.
12984
01c193c8
AC
129852003-01-19 Andrew Cagney <ac131313@redhat.com>
12986
12987 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12988 Maintainers'. Update `Various Maintainers'.
12989
dedc2a2b
AC
129902003-01-19 Andrew Cagney <ac131313@redhat.com>
12991
12992 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12993 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12994 Suppress actual parameters when `-'.
12995 * gdbarch.h, gdbarch.c: Regenerate.
12996
b7261c70
AC
129972003-01-19 Andrew Cagney <ac131313@redhat.com>
12998
12999 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13000 code handling dummy frames.
13001
dbe9fe58
AC
130022003-01-19 Andrew Cagney <ac131313@redhat.com>
13003
13004 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13005 (struct frame_unwind): Add field pop.
13006 * frame.h (frame_pop): Declare.
13007 * frame.c (frame_saved_regs_pop): New function.
13008 (trad_frame_unwinder): Add frame_saved_regs_pop.
13009 (frame_pop): New function.
13010 * dummy-frame.c (dummy_frame_pop): New function.
13011 (discard_innermost_dummy): New function.
13012 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13013 (dummy_frame_unwind): Add dummy_frame_pop.
13014 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13015 * valops.c (hand_function_call): Ditto.
13016 * stack.c (return_command): Ditto.
13017
570b8f7c
AC
130182003-01-18 Andrew Cagney <ac131313@redhat.com>
13019
13020 * cris-tdep.c: Fix function declaration indentation.
13021 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13022 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13023 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13024 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13025 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13026 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13027
130282003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
13029
13030 * README (Unpacking and Installation -- quick overview):
13031 Warn against ".../gdb-5.3/gdb/configure".
13032
494cca16
AC
130332003-01-18 Andrew Cagney <ac131313@redhat.com>
13034
13035 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13036 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13037 (struct frame_unwind): Declare opaque.
13038 (dummy_frame_p): Declare function.
13039 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13040 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13041 * dummy-frame.c: Include "frame-unwind.h".
13042 (dummy_frame_p): New function.
13043 (dummy_frame_unwind): New variable.
13044 * frame.c: Include "frame-unwind.h".
13045 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13046 to use the new unwind field.
13047 (set_unwind_by_pc): Delete function.
13048 (create_new_frame, get_prev_frame): Set unwind field using
13049 frame_unwind_find_by_pc.
13050 (trad_frame_unwind, trad_frame_unwinder): New variables.
13051 * frame.h (trad_frame_unwind): Declare variable.
13052 (frame_id_unwind_ftype): Delete declaration.
13053 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13054 (struct frame_unwind): Declare opaque.
13055 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13056 register_unwind with a single unwind pointer.
13057 * frame-unwind.h, frame-unwind.c: New files.
13058 * Makefile.in (SFILES): Add frame-unwind.c.
13059 (frame_unwind_h): Define.
13060 (COMMON_OBS): Add frame-unwind.o.
13061 (frame-unwind.o): Specify dependencies.
13062 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 13063
4efb68b1
AC
130642003-01-18 Andrew Cagney <ac131313@redhat.com>
13065
13066 * ada-valprint.c: Eliminate PTR.
13067 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13068 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13069 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13070 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13071 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13072 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13073 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 13074
a84d24ee
AC
130752003-01-17 Andrew Cagney <ac131313@redhat.com>
13076
762f08a3
AC
13077 * main.c (captured_main): Don't use PTR.
13078 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13079 * gdbtypes.c (lookup_primitive_typename): Ditto.
13080 (lookup_struct_elt_type): Ditto.
13081 * f-valprint.c (info_common_command): Ditto.
13082 (list_all_visible_commons): Ditto.
13083 * jv-typeprint.c (java_type_print_base): Ditto.
13084
a84d24ee
AC
13085 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13086 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13087 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13088 i386-interix-nat.c and i386-interix-tdep.c. Rename
13089 m68klinux-nat.c and m68klinux-tdep.c. Rename
13090 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13091 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13092 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13093 * main.c (captured_main): Use xfree, not free.
13094
c170fb60
AC
130952003-01-16 Andrew Cagney <ac131313@redhat.com>
13096
13097 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13098 ID back using a parameter.
13099 * frame.c (frame_id_unwind): Update call.
13100 (frame_saved_regs_id_unwind): Update.
13101 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13102 * dummy-frame.h (struct frame_id): Add opaque declaration.
13103 (dummy_frame_id_unwind): Update declaration.
13104
867f3898
AC
131052003-01-15 Andrew Cagney <ac131313@redhat.com>
13106
13107 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13108
40622be8 131092003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 13110
40622be8 13111 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 13112
ae66c1fc
EZ
131132003-01-14 Elena Zannoni <ezannoni@redhat.com>
13114
997b089a 13115 Fix PR gdb/898
ae66c1fc
EZ
13116 * breakpoint.c (until_break_command): Add new argument. Use it to
13117 decide whether to stop only at the current frame or not.
13118 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 13119 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
13120 call.
13121 (advance_command): New function.
13122 (_initialize_infcmd): Update help string for 'until' command.
13123 Add new 'advance' command.
13124
a04257e6
DC
131252003-01-14 David Carlton <carlton@math.stanford.edu>
13126
13127 * linespec.c (decode_line_1): Normalize comments.
13128 (set_flags): Ditto.
13129 (locate_first_half): Ditto.
13130 (decode_compound): Ditto.
13131 (symtab_from_filename): Ditto.
13132 (decode_all_digits): Ditto.
13133 (decode_dollar): Ditto.
13134 (find_methods): Ditto.
13135 (find_toplevel_char): Ditto.
13136
1bac305b
AC
131372003-01-13 Andrew Cagney <ac131313@redhat.com>
13138
13139 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13140 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13141 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13142 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13143 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13144 * language.c, language.h, m32r-tdep.c: Update copyright.
13145 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13146 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13147 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13148 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13149 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13150 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13151
25caa7a8
EZ
131522003-01-13 Elena Zannoni <ezannoni@redhat.com>
13153
13154 * stabsread.h (process_later, resolve_cfront_continuation):
13155 Obsolete.
13156 Update copyright years.
13157 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13158 Update copyright year.
13159 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 13160 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
13161 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13162 Update copyright year.
13163 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13164 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13165 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13166 (parse_partial_symbols): Obsolete cfront support.
13167 * stabsread.c
13168 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13169 macros.
13170 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13171 read_cfront_baseclasses, read_cfront_member_functions,
13172 resolve_cfront_continuation,read_cfront_static_fields,
13173 copy_cfront_struct_fields): Obsolete functions.
13174 (define_symbol, read_one_struct_field): Obsolete cfront support.
13175 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13176 Update Copyright year.
13177
7789c6f5
EZ
131782003-01-13 Elena Zannoni <ezannoni@redhat.com>
13179
13180 * stack.c (print_frame_info, print_stack_frame_base_stub,
13181 print_stack_frame_base, show_and_print_stack_frame_stub,
13182 show_and_print_stack_frame, print_only_stack_frame_stub,
13183 print_only_stack_frame): Delete functions.
13184 (print_stack_frame_stub): Call print_frame_info instead of
13185 print_frame_info_base.
13186 (print_frame_info_base): Rename to print_frame_info.
13187 (backtrace_command_1): Call print_frame_info, instead of
13188 print_frame_info_base.
13189 (current_frame_command): Call print_stack_frame, instead of
13190 print_only_stack_frame.
13191 (frame_command): Call print_stack_frame, instead of
13192 show_and_print_stack_frame.
13193 (up_command): Ditto.
13194 (down_command): Ditto.
13195 * frame.h (print_only_stack_frame): Delete prototype.
13196 * infrun.c (normal_stop): Call print_stack_frame, instead of
13197 show_and_print_stack_frame.
13198 * thread.c (info_threads_command): Call print_stack_frame, instead
13199 of print_only_stack_frame.
13200
3f5a3016
AC
132012003-01-13 Andrew Cagney <ac131313@redhat.com>
13202
d99ba314
AC
13203 * README (Graphical interface to GDB): Update URL. Point at
13204 gdb/links/.
13205
3f5a3016
AC
13206 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13207 version match.
13208
083ae935
DJ
132092003-01-13 Daniel Jacobowitz <drow@mvista.com>
13210
13211 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13212 lines.
13213
5365276c
DJ
132142003-01-13 Daniel Jacobowitz <drow@mvista.com>
13215
13216 * thread-db.c (attach_thread): Prototype.
13217 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13218 thread information (ti), and valid flags (th_valid, ti_valid).
13219 (attach_thread): Move target_pid_to_str call to after the thread
13220 is added to GDB's list. Initialize the cache.
13221 (thread_get_info_callback, thread_db_map_id2thr)
13222 (thread_db_get_info): New functions.
13223 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13224 (thread_db_store_registers, thread_db_thread_alive)
13225 (thread_db_get_thread_local_address): Use them.
13226 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13227 of calling error() for threads in unknown state.
13228
13229 (clear_lwpid_callback): New function.
13230 (thread_db_resume): Use it to clear the cache.
13231
9fc30b6b
DJ
132322003-01-13 Daniel Jacobowitz <drow@mvista.com>
13233
13234 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13235 (resume_callback): Remove dead code.
13236
8f871025
AC
132372003-01-13 Andrew Cagney <ac131313@redhat.com>
13238
13239 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13240 predicate.
13241 * gdbarch.h, gdbarch.c: Regenerate.
13242 * stack.c (frame_info): Only initialize the saved registers when
13243 FRAME_INIT_SAVED_REGS_P.
13244 * frame.c (frame_saved_regs_register_unwind): Assert
13245 FRAME_INIT_SAVED_REGS_P.
13246 (deprecated_generic_get_saved_register): Ditto.
13247
3f565f1e
DJ
132482003-01-13 Daniel Jacobowitz <drow@mvista.com>
13249
13250 * source.c (openp): Squelch warning about "filename".
13251
072b1022
DJ
132522003-01-13 Daniel Jacobowitz <drow@mvista.com>
13253
13254 * source.c (openp): If the file does not exist don't necessarily
13255 search the path.
13256
973ccf8b
DJ
132572003-01-13 Daniel Jacobowitz <drow@mvista.com>
13258
13259 Fix PR gdb/872.
13260 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13261 (integer_types_same_name_p): New function.
13262 (rank_one_type): Use it.
13263 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13264
030292b7
DJ
132652003-01-13 Daniel Jacobowitz <drow@mvista.com>
13266
13267 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13268 variables.
13269 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13270 * configure.in: Add --with-sysroot.
13271 * configure: Regenerated.
13272 * main.c (gdb_sysroot): New variable.
13273 (captured_main): Initialize gdb_sysroot.
13274 * defs.h (gdb_sysroot): New extern declaration.
13275 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13276
afb5d334
MC
132772003-01-12 Michael Chastain <mec@shout.net>
13278
13279 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13280
751ceeb4
MC
132812003-01-12 Michael Chastain <mec@shout.net>
13282
13283 * top.c (print_gdb_version): Bump copyright year to 2003.
13284
94cd26f8
DC
132852003-01-12 David Carlton <carlton@bactrian.org>
13286
13287 * linespec.c (symtab_from_filename): Rename variable 's' to
13288 'file_symtab'.
13289
1ce79225
AC
132902003-01-12 Andrew Cagney <ac131313@redhat.com>
13291
13292 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13293 dummy frame.
13294 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13295
fa1fd571
AC
132962003-01-12 Andrew Cagney <ac131313@redhat.com>
13297
13298 * d10v-tdep.c: Include "gdb_assert.h".
13299 (d10v_store_return_value): Rewrite to match current interface.
13300 (d10v_extract_struct_value_address): Ditto.
13301 (d10v_extract_return_value): Ditto.
13302 (d10v_gdbarch_init): Set store_restore_value,
13303 extract_struct_value_address and extract_return_value.
13304
68b8d23e
JB
133052003-01-12 J. Brobecker <brobecker@gnat.com>
13306
13307 * hpread.c (set_namestring): New procedure replacing the
13308 SET_NAMESTRING macro.
13309 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13310 by calls to set_namestring.
13311
133122003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
13313
13314 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13315 a compilation warning.
13316 (hpread_process_one_debug_symbol): Likewise.
13317
88d262ca
DC
133182003-01-10 David Carlton <carlton@math.stanford.edu>
13319
13320 * linespec.c (decode_line_1): Rename variable 's' to
13321 'file_symtab'.
13322 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13323 (decode_dollar): Ditto.
13324 (decode_variable): Ditto.
13325 (symbol_found): Ditto.
13326
86669319
MC
133272003-01-09 Michael Chastain <mec@shout.net>
13328
13329 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13330
616a9dc4
CV
133312003-01-07 Corinna Vinschen <vinschen@redhat.com>
13332
13333 * win32-nat.c (set_process_privilege): New function.
13334 (child_attach): Call set_process_privilege() to enable the
13335 SE_DEBUG_NAME user privilege if available in process token.
13336
3269bcfa
JB
133372003-01-10 J. Brobecker <brobecker@gnat.com>
13338
13339 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13340 compilation error in the previous revision.
13341
2b0ee454
DC
133422003-01-09 David Carlton <carlton@math.stanford.edu>
13343
13344 * linespec.c: Update copyright.
13345
b3ba1b44
DJ
133462003-01-09 Daniel Jacobowitz <drow@mvista.com>
13347
13348 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13349 than inferior_ptid.
13350 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13351
4ef3f3be
AC
133522003-01-09 Andrew Cagney <ac131313@redhat.com>
13353
479ab5a0
AC
13354 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13355 Update comments.
13356 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13357 (frame_saved_regs_zalloc): Update.
13358 (frame_saved_regs_register_unwind): Update.
13359 (create_new_frame): Update.
13360 (get_prev_frame): Update.
13361 (frame_extra_info_zalloc): Update.
13362 (deprecated_get_frame_saved_regs): Update.
13363 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13364 * cris-tdep.c: Update comment.
13365
bde58177
AC
13366 * somsolib.h: Fix function indentation.
13367 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13368 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13369 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13370 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13371 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13372
4ef3f3be
AC
13373 * infrun.c (follow_fork): Use ISO C definition.
13374 * expprint.c (print_subexp): Use xfree instead of free.
13375 * charset.c: Include "gdb_string.h" instead of <string.h>.
13376 (register_iconv_charsets): Use ISO C definition.
13377 (host_charset, target_charset): Ditto.
13378 * Makefile.in (charset.o): Update dependencies.
13379 (mi-cmd-env.o): Update dependencies.
13380
1c615f7a
AC
133812003-01-08 Andrew Cagney <cagney@redhat.com>
13382
13383 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13384 get_frame_base.
13385
c9a1dc08
AC
133862003-01-08 Andrew Cagney <ac131313@redhat.com>
13387
13388 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13389 build directories. Save edited gdb output in Mbuild.log. If a
13390 build fails, remove any final GDB executable.
13391
dbad9d94
AC
133922003-01-08 Andrew Cagney <ac131313@redhat.com>
13393
13394 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13395 replacing hex constants with function names and stripping leading
13396 file name directory prefixes.
13397
8d357cca
AC
133982003-01-08 Andrew Cagney <cagney@redhat.com>
13399
13400 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13401 get_frame_base.
13402
bca02a8a
DC
134032003-01-08 David Carlton <carlton@math.stanford.edu>
13404
13405 * linespec.c (decode_line_1): Move code into decode_variable.
13406 (decode_variable): New function.
13407
7f8ab3a0
AC
134082003-01-08 Andrew Cagney <ac131313@redhat.com>
13409
13410 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13411
7b5849cc
AC
134122003-01-08 Andrew Cagney <cagney@redhat.com>
13413
13414 * cris-tdep.c (cris_frame_init_saved_regs): Use
13415 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13416 saved_regs buffer.
13417 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13418 (sh64_nofp_frame_init_saved_regs): Ditto.
13419 (sh_fp_frame_init_saved_regs): Ditto.
13420 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13421 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13422 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13423 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13424
72a5efb3
DJ
134252003-01-08 Daniel Jacobowitz <drow@mvista.com>
13426
13427 * minsyms.c (lookup_minimal_symbol): Update comment.
13428 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13429 (lookup_minimal_symbol_solib_trampoline): Likewise.
13430
11c02a10
AC
134312003-01-08 Andrew Cagney <cagney@redhat.com>
13432
aab3ea25
AC
13433 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13434 frame_relative_level.
13435
da50a4b7
AC
13436 * alpha-tdep.c: Use get_frame_extra_info.
13437 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13438 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13439 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13440 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13441
11c02a10
AC
13442 * alpha-tdep.c: Use get_next_frame.
13443 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13444 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13445 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13446 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13447 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13448 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13449 * xstormy16-tdep.c: Ditto.
8ffd9b1b 13450
1e2330ba
AC
134512003-01-07 Andrew Cagney <cagney@redhat.com>
13452
13453 * alpha-tdep.c: Use get_frame_base.
13454 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13455 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13456 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13457 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13458 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13459 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13460 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13461 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 13462
2d75187b
AC
134632003-01-07 Andrew Cagney <cagney@redhat.com>
13464
13465 * frame.c (deprecated_get_frame_context): New function.
13466 (deprecated_set_frame_context): New function.
13467 * frame.h (deprecated_get_frame_context): Declare.
13468 (deprecated_set_frame_context): Declare.
13469 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13470 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 13471
483d36b2
AC
134722003-01-07 Andrew Cagney <cagney@redhat.com>
13473
13474 * frame.c (deprecated_set_frame_next_hack): New function.
13475 (deprecated_set_frame_prev_hack): New function.
13476 * frame.h (deprecated_set_frame_next_hack): Declare.
13477 (deprecated_set_frame_prev_hack): Declare.
13478 * mcore-tdep.c (analyze_dummy_frame): Use
13479 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13480 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13481
14e91ac5
DC
134822003-01-07 David Carlton <carlton@math.stanford.edu>
13483
13484 * linespec.c (decode_line_1): Move code into decode_dollar.
13485 (decode_dollar): New function.
13486
b0c6b05c
AC
134872003-01-07 Andrew Cagney <cagney@redhat.com>
13488
13489 * arm-tdep.c (arm_init_extra_frame_info): Use
13490 deprecated_update_frame_base_hack.
13491 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13492 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13493 (fix_frame_pointer): Ditto.
13494 (mn10300_analyze_prologue): Ditto.
13495
a00a19e9
AC
134962003-01-07 Andrew Cagney <cagney@redhat.com>
13497
13498 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13499 extra_info using frame_extra_info_zalloc.
13500 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13501 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13502 (sh64_init_extra_frame_info): Ditto.
13503 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13504 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13505 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13506 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13507 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13508 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13509 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13510 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13511 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13512 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13513 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13514 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13515
13516 * mn10300-tdep.c (analyze_dummy_frame): Use
13517 deprecated_set_frame_extra_info_hack.
13518 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13519
1fb4c65b
JB
135202003-01-07 J. Brobecker <brobecker@gnat.com>
13521
13522 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13523 class is not scText. These do not define "real" procedures.
13524 (parse_partial_symbols): Likewise.
13525
9fe7d6bf
MS
135262003-01-06 Michael Snyder <msnyder@redhat.com>
13527
13528 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13529
f6c609c4
AC
135302003-01-06 Andrew Cagney <ac131313@redhat.com>
13531
13532 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13533 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13534 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13535 deprecated_frame_xmalloc_with_cleanup.
13536 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13537 deprecated_frame_xmalloc.
13538 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13539 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13540
d995ff4b
AC
135412003-01-06 Andrew Cagney <cagney@redhat.com>
13542
84dc46cb
AC
13543 * x86-64-linux-tdep.c: Include "osabi.h".
13544 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13545
d995ff4b
AC
13546 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13547
66140c26
AC
135482003-01-06 Andrew Cagney <cagney@redhat.com>
13549
13550 * MAINTAINERS (Target Instruction Set Architectures): Update
13551 arm-elf. Can be built with -Werror, has been multiarched.
13552
13553 * value.h (unpack_long): Make buffer parameter constant.
13554 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13555 * scm-lang.h (scm_parse): Ditto.
13556 * defs.h (extract_typed_address, extract_address): Ditto.
13557 (extract_long_unsigned_integer): Ditto.
13558 * inferior.h (unsigned_pointer_to_address): Ditto.
13559 (signed_pointer_to_address): Ditto.
13560 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13561 * gdbarch.h, gdbarch.c: Regenerate.
13562 * findvar.c (extract_long_unsigned_integer): Update.
13563 (extract_address): Update.
13564 (extract_typed_address): Update.
13565 (unsigned_pointer_to_address): Update.
13566 * values.c (unpack_long): Update.
13567 (unpack_double): Update.
13568 (unpack_pointer): Update.
13569 (unpack_field_as_long): Update.
13570 * d10v-tdep.c (d10v_pointer_to_address): Update.
13571 * avr-tdep.c (avr_pointer_to_address): Update.
13572 * scm-lang.c (scm_unpack): Update.
13573 * findvar.c (signed_pointer_to_address): Update.
13574
b089b3da
ML
135752003-01-06 Michal Ludvig <mludvig@suse.cz>
13576
8ffd9b1b 13577 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
13578 since it is in i386-tdep.c.
13579
aff87235
JB
135802003-01-06 J. Brobecker <brobecker@gnat.com>
13581
13582 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13583 failure introduced in the previous change.
13584
34f5e845
MC
135852003-01-05 Michael Chastain <mec@shout.net>
13586
13587 * README: Remove references to deleted remote-*.c files:
13588 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13589 remote-nrom.c, remote-os9k.c, remote-udi.c.
13590
28bcfd30
MK
135912003-01-05 Mark Kettenis <kettenis@gnu.org>
13592
13593 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13594 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13595 i386_get_longjmp_target.
13596
15a5b3ee
AC
135972003-01-05 Andrew Cagney <ac131313@redhat.com>
13598
13599 * arm-tdep.c (prologue_cache): Change to a pointer.
13600 (_initialize_arm_tdep): Allocate prologue_cache.
13601 (check_prologue_cache): Update.
13602 (save_prologue_cache): Update.
13603 (arm_gdbarch_init): Update.
13604
c263362b
DJ
136052003-01-04 Daniel Jacobowitz <drow@mvista.com>
13606
13607 * stabsread.c (update_method_name_from_physname): Call complaint()
13608 instead of error.
13609
51603483
DJ
136102003-01-04 Daniel Jacobowitz <drow@mvista.com>
13611
13612 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13613 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13614 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13615
13616 * blockframe.c: Include "gdbcmd.h" and "command.h".
13617 (backtrace_below_main): New variable.
13618 (file_frame_chain_valid, func_frame_chain_valid)
13619 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13620 (generic_func_frame_chain_valid): Remove functions.
13621 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13622 (_initialize_blockframe): New function.
13623 * Makefile.in (blockframe.o): Update dependencies.
13624 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13625 comment. Call frame_chain_valid ().
13626 * frame.h: Remove old prototypes. Add prototype for
13627 frame_chain_valid and update comments to match.
13628 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13629 Remove old comment.
13630 * gdbarch.h: Regenerated.
13631 * gdbarch.c: Regenerated.
13632
13633 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13634 set_gdbarch_frame_chain_valid.
13635 * avr-tdep.c (avr_gdbarch_init): Likewise.
13636 * cris-tdep.c (cris_gdbarch_init): Likewise.
13637 * frv-tdep.c (frv_gdbarch_init): Likewise.
13638 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13639 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13640 (i386_nw_init_abi): Likewise.
13641 (i386_gdbarch_init): Likewise.
13642 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13643 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13644 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13645 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13646 * mips-tdep.c (mips_gdbarch_init): Likewise.
13647 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13648 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13649 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13650 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13651 * s390-tdep.c (s390_gdbarch_init): Likewise.
13652 * sh-tdep.c (sh_gdbarch_init): Likewise.
13653 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13654 * v850-tdep.c (v850_gdbarch_init): Likewise.
13655 * vax-tdep.c (vax_gdbarch_init): Likewise.
13656 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13657
13658 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13659 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13660 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13661 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13662 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13663 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13664 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13665 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13666
b00a8037
DJ
136672002-01-04 Daniel Jacobowitz <drow@mvista.com>
13668
13669 * Makefile.in (acconfig_h): Remove incorrect macro.
13670 (config_h): Define.
13671 (osabi.o): Update dependencies.
13672 * configure.tgt: Set gdb_osabi based on target triplet.
13673 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13674 * configure: Regenerated.
13675 * config.in: Regenerated.
13676 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13677 (GDB_OSABI_DEFAULT): Define if not already defined.
13678 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13679 (set_osabi_string): New variables.
13680 (gdbarch_register_osabi): Add new OS ABI to
13681 gdb_osabi_available_names.
13682 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13683 (set_osabi, show_osabi): New functions.
13684 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13685
4be87837
DJ
136862003-01-04 Daniel Jacobowitz <drow@mvista.com>
13687
13688 * arch-utils.c (gdbarch_info_init): Set osabi to
13689 GDB_OSABI_UNINITIALIZED.
13690 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13691 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13692 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13693 * gdbarch.c: Regenerated.
13694 * gdbarch.h: Regenerated.
13695 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13696 there's no BFD.
13697 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13698 * osabi.h (enum gdb_osabi): Move to defs.h.
13699 (gdbarch_init_osabi): Update prototype.
13700 * defs.h (enum gdb_osabi): Moved here.
13701 * Makefile.in: Update dependencies.
13702
13703 * alpha-tdep.h: Don't include "osabi.h".
13704 (struct gdbarch_tdep): Remove osabi member.
13705 * alpha-tdep.c: Include "osabi.h".
13706 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13707 iterate over arches. Update call to gdbarch_init_osabi.
13708 (alpha_dump_tdep): Don't dump osabi.
13709 * alpha-linux-tdep.c: Include "osabi.h".
13710 * alpha-osf1-tdep.c: Include "osabi.h".
13711 * alphafbsd-tdep.c: Include "osabi.h".
13712 * alphanbsd-tdep.c: Include "osabi.h".
13713
13714 * arm-tdep.h: Don't include "osabi.h".
13715 (struct gdbarch_tdep): Remove osabi member.
13716 * arm-tdep.c: Include "osabi.h".
13717 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13718 iterate over arches. Update call to gdbarch_init_osabi.
13719 (arm_dump_tdep): Don't dump osabi.
13720 * arm-linux-tdep.c: Include "osabi.h".
13721 * armnbsd-tdep.c: Include "osabi.h".
13722
13723 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13724 Update call to gdbarch_init_osabi.
13725
13726 * i386-tdep.h: Don't include "osabi.h".
13727 (struct gdbarch_tdep): Remove osabi member.
13728 * i386-tdep.c: Include "osabi.h".
13729 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13730 iterate over arches. Update call to gdbarch_init_osabi.
13731 (i386_dump_tdep): Don't dump osabi.
13732 * i386-linux-tdep.c: Include "osabi.h".
13733 * i386-sol2-tdep.c: Include "osabi.h".
13734 * i386bsd-tdep.c: Include "osabi.h".
13735 * i386gnu-tdep.c: Include "osabi.h".
13736 * i386ly-tdep.c: Include "osabi.h".
13737 * i386nbsd-tdep.c: Include "osabi.h".
13738 * i386obsd-tdep.c: Include "osabi.h".
13739
13740 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13741 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13742 check osabi when iterating over arches. Update call to
13743 gdbarch_init_osabi.
13744 (mips_dump_tdep): Don't dump osabi.
13745
13746 * ns32k-tdep.h: Don't include "osabi.h".
13747 (struct gdbarch_tdep): Remove.
13748 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13749 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13750 allocate tdep. Update call to gdbarch_init_osabi.
13751 (ns32k_dump_tdep): Remove.
13752 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13753 * ns32knbsd-tdep.c: Include "osabi.h".
13754
13755 * ppc-tdep.h: Don't include "osabi.h".
13756 (struct gdbarch_tdep): Remove osabi member.
13757 * rs6000-tdep.c: Include "osabi.h".
13758 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13759 osabi when iterating over arches. Update call to
13760 gdbarch_init_osabi.
13761 (rs6000_dump_tdep): Don't dump osabi.
13762 * ppc-linux-tdep.c: Include "osabi.h".
13763 * ppcnbsd-tdep.c: Include "osabi.h".
13764
13765 * sh-tdep.h: Don't include "osabi.h".
13766 (struct gdbarch_tdep): Remove osabi member.
13767 * sh-tdep.c: Include "osabi.h".
13768 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13769 iterate over arches. Update call to gdbarch_init_osabi.
13770 (sh_dump_tdep): Don't dump osabi.
13771 * shnbsd-tdep.c: Include "osabi.h".
13772
13773 * sparc-tdep.c: Include "osabi.h".
13774 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13775 iterate over arches. Update call to gdbarch_init_osabi.
13776 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13777 tdep structure.
13778
13779 * vax-tdep.h: Don't include "osabi.h".
13780 (struct gdbarch_tdep): Remove.
13781 * vax-tdep.c: Include "osabi.h".
13782 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13783 iterate over arches. Don't allocate tdep. Update call
13784 to gdbarch_init_osabi.
13785 (vax_dump_tdep): Remove.
13786 (_initialize_vax_tdep): Update call to gdbarch_register.
13787
a881cf8e
DJ
137882003-01-04 Daniel Jacobowitz <drow@mvista.com>
13789
13790 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13791 entirely.
13792 (breakpoint_re_set_one): Don't fetch the value for a disabled
13793 watchpoint.
13794
1e698235
DJ
137952003-01-04 Daniel Jacobowitz <drow@mvista.com>
13796
13797 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13798 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13799 (COERCE_FLOAT_TO_DOUBLE): Remove.
13800 * gdbarch.c: Regenerate.
13801 * gdbarch.h: Regenerate.
13802 * Makefile.in: Remove value_h from gdbarch_h.
13803 * valops.c (coerce_float_to_double): New variable.
13804 (default_coerce_float_to_double): Remove.
13805 (standard_coerce_float_to_double): Remove.
13806 (value_arg_coerce): Use coerce_float_to_double.
13807 (_initialize_valops): Add "set coerce-float-to-double".
13808 * value.h (default_coerce_float_to_double): Remove prototype.
13809 (standard_coerce_float_to_double): Remove prototype.
13810
13811 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13812 prototyped.
13813 * mdebugread.c (parse_symbol): Likewise.
13814 * stabsread.c (define_symbol): Mark all functions as prototyped.
13815
13816 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13817 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13818 set_gdbarch_coerce_float_to_double.
13819 * arm-tdep.c (arm_gdbarch_init): Likewise.
13820 * frv-tdep.c (frv_gdbarch_init): Likewise.
13821 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13822 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13823 * mips-tdep.c (mips_gdbarch_init): Likewise.
13824 (mips_coerce_float_to_double): Remove.
13825 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13826 (rs6000_coerce_float_to_double): Remove.
13827 * s390-tdep.c (s390_gdbarch_init): Likewise.
13828 * sh-tdep.c (sh_gdbarch_init): Likewise.
13829 (sh_coerce_float_to_double): Remove.
13830 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13831 (sparc_coerce_float_to_double): Remove.
13832 * v850-tdep.c (v850_gdbarch_init): Likewise.
13833 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13834 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13835 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13836 (hppa_coerce_float_to_double): Remove prototype.
13837 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13838
f436a26a
DJ
138392003-01-04 Daniel Jacobowitz <drow@mvista.com>
13840
13841 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13842
248f8055
DJ
138432003-01-04 Daniel Jacobowitz <drow@mvista.com>
13844
13845 Suggested by Stewart Brown <sb24@avaya.com>:
13846 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13847 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13848 (c_type_print_varspec_suffix): Likewise.
13849
72cfdc76
MK
138502003-01-04 Mark Kettenis <kettenis@gnu.org>
13851
bfd260bb
MK
13852 * configure.in: Don't set and AC_SUBST SUBDIRS.
13853 * configure: Regenerated.
13854
72cfdc76
MK
13855 * configure.in: Remove code dealing with shared libraries.
13856 * Makefile.in: Remove HLDFLAGS and HLDENV.
13857 * configure: Regenerated.
13858
c8b8a898
AC
138592003-01-04 Andrew Cagney <ac131313@redhat.com>
13860
13861 * frame.c (deprecated_frame_xmalloc): New function.
13862 (deprecated_set_frame_saved_regs_hack): New function.
13863 (deprecated_set_frame_extra_info_hack): New function.
13864 * frame.h (deprecated_frame_xmalloc): Declare.
13865 (deprecated_set_frame_saved_regs_hack): Declare.
13866 (deprecated_set_frame_extra_info_hack): Declare.
13867
14abd0fb
MK
138682003-01-04 Mark Kettenis <kettenis@gnu.org>
13869
8ee53726
MK
13870 * configure.in: Move code that provides the --enable-gdbtk option
13871 right after the code that handles the --enable-tui option, and
13872 polish it somewhat.
13873 * configure: Regenerated.
13874
14abd0fb
MK
13875 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13876 AC_CHECK_FUNCS and remove the old check for pread64.
13877 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13878 * acconfig.h (_GNU_SOURCE): Add.
13879 (HAVE_PREAD64): Remove.
13880 * configure, aclocal.m4, config.in: Regenerated.
13881
b2fb4676
AC
138822003-01-03 Andrew Cagney <ac131313@redhat.com>
13883
13884 * alpha-tdep.c: Use get_frame_saved_regs.
13885 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13886 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13887 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13888 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13889 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13890
8dcde887
MK
138912003-01-03 Mark Kettenis <kettenis@gnu.org>
13892
13893 * configure.in: Remove all use of the SUBDIRS variable; add
13894 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13895 code providing the --enable-multi-ice option, and move it right in
13896 front of the code that checks whether gdbserver is supported.
13897 Polish that too.
13898 * configure: Regenerated.
13899 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13900 @SUBDIRS@.
13901
8ccd593b
AC
139022003-01-03 Andrew Cagney <cagney@redhat.com>
13903
13904 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13905 * avr-tdep.c, cris-tdep.c: Ditto.
13906 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13907 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 13908
91151a06
MK
139092003-01-03 Mark Kettenis <kettenis@gnu.org>
13910
13911 * configure.in: Remove --enable-netrom option.
13912 * configure: Regenerated.
13913
8fe84d01
MK
139142003-01-03 Mark Kettenis <kettenis@gnu.org>
13915
13916 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13917 declaration for `struct re_pattern_buffer' instead.
13918 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13919
f0394be6
JB
139202003-01-03 J. Brobecker <brobecker@gnat.com>
13921
13922 * mdebugread.c (parse_symbol): Count until the stEnd matching
13923 the structure name.
13924
27e9bf90
MK
139252003-01-02 Mark Kettenis <kettenis@gnu.org>
13926
93d331ba
MK
13927 * configure.in: Remove --with-cpu option.
13928 subscripts. Remove evil changequotes here.
13929 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13930 * config.in, configure: Regenerated.
8ffd9b1b 13931
27e9bf90
MK
13932 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13933 * configure.in: Cleanup section that sources GDB and BFD configure
13934 subscripts. Remove evil changequotes here.
13935 * config.in, configure: Regenerated.
13936
50abf9e5
AC
139372003-01-02 Andrew Cagney <ac131313@redhat.com>
13938
13939 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13940 frame accessor methods.
13941 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13942 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13943 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13944 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13945 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13946 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13947 * z8k-tdep.c: Ditto.
8ffd9b1b 13948
287c1a40
MK
139492003-01-02 Mark Kettenis <kettenis@gnu.org>
13950
f5dbc56d
MK
13951 * configure.in: Remove UI_OUT configuration code.
13952 * ada-lang.c: Update assuming UI_OUT is always true.
13953 * Makefile.in (UIOUT_CFLAGS): Remove.
13954 * configure: Regenerated.
13955 * TODO: Remove blurb about elimination of -DUI_OUT.
13956
627af7ea
MK
13957 * configure.in: Move code that provides the --enable-gdbcli,
13958 --enable-gdbmi options right before the code that handles the
13959 --enable-tui option. Polish a bit.
13960 * configure: Regenerated.
13961
06825bd1
MK
13962 * configure.in: Rewrite check for GNU regex and the
13963 --without-included regex option, and move it into the "Checks for
13964 library functions" section. This makes us use the system regex
13965 again by default on systems with version 2 of the GNU C library.
13966 This was apparently broken.
13967 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13968 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13969 * config.in, configure: Regenerated.
13970
287c1a40
MK
13971 * configure.in: Move code that provides the --enable-tui option
13972 before the "Checks for libraries" section. Polish the code
13973 somewhat and set need_curses to yes if we build the TUI. Rewrite
13974 code that looks for a library providing termcap functionality to
13975 match more closely what's done in the Readline library, and move
13976 it into to the "Checks for libraries" section.
13977 * configure: Regenerated.
13978 * Makefile.in (TERMCAP): Remove variable.
13979 * config/i386/go32.mh (TERMCAP): Remove variable.
13980
684e56bf
AC
139812003-01-02 Andrew Cagney <ac131313@redhat.com>
13982
13983 * MAINTAINERS: Mention gdb_mbuild.sh.
13984 * gdb_mbuild.sh: Rewrite.
13985
e1ea1d75
MK
139862003-01-02 Mark Kettenis <kettenis@gnu.org>
13987
13988 * configure.in: Fix typo in last change.
13989 * config.in, configure: Regenerated.
13990
1b831c93
AC
139912003-01-02 Andrew Cagney <ac131313@redhat.com>
13992
13993 * valarith.c (value_binop): Delete obsolete code and comments.
13994 * configure.host: Ditto.
13995 * buildsym.h (make_blockvector): Ditto.
13996 * buildsym.c (make_blockvector): Ditto.
13997 * defs.h (enum language): Ditto.
13998 (chill_demangle): Ditto.
13999 * elfread.c (elf_symtab_read): Ditto.
14000 * dwarfread.c (CHILL_PRODUCER): Ditto.
14001 (set_cu_language): Ditto.
14002 (handle_producer): Ditto.
14003 * expprint.c (print_subexp): Ditto.
14004 * gdbtypes.c (chill_varying_type): Ditto.
14005 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14006 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14007 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14008 (chill_varying_type): Ditto.
14009 * language.h (_LANG_chill): Ditto.
14010 * language.c (binop_result_type, integral_type): Ditto.
14011 (character_type, string_type, structured_type): Ditto.
14012 (lang_bool_type, binop_type_check): Ditto.
14013 * stabsread.h (os9k_stabs): Ditto.
14014 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14015 (define_symbol, read_type, read_struct_fields): Ditto.
14016 (read_array_type, read_enum_type, read_huge_number): Ditto.
14017 (read_range_type, start_stabs): Ditto.
14018 * symfile.c (init_filename_language_table): Ditto.
14019 (add_psymbol_with_dem_name_to_list): Ditto.
14020 * symtab.c (symbol_init_language_specific): Ditto.
14021 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14022 * symtab.h (struct general_symbol_info): Ditto.
14023 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14024 * typeprint.c (typedef_print): Ditto.
14025 * utils.c (fprintf_symbol_filtered): Ditto.
14026 * valops.c (value_cast, search_struct_field, value_slice): Delete
14027 obsolete code.
14028 (varying_to_slice): Delete function.
14029 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14030 (varying_to_slice): Delete declaration.
14031 * MAINTAINERS: Update.
14032
8bb2c122
MK
140332003-01-02 Mark Kettenis <kettenis@gnu.org>
14034
97bf5e38
MK
14035 * configure.in: Reorganize "Checks for library functions section"
14036 a bit. Remove check for `btowc' and `isascii' functions.
14037 * configure: Regenerated.
14038
5ee754fc
MK
14039 * acconfig.h (_MSE_INT_H): Remove.
14040 * configure.in: Create "Checks for header files" section, and move
14041 appropriate tests there. Don't check for objlist.h, wchar.h,
14042 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14043 misdetection fix. Also add "Checks for types", "Checks for
14044 compiler characteristics" and "Checks for library functions"
14045 sections.
14046 * config.in, configure: Regenerated.
14047
8bb2c122
MK
14048 * configure.in: Create "Checks for programs" section, and move
14049 appropriate tests there.
14050
9a156167
MK
140512003-01-01 Mark Kettenis <kettenis@gnu.org>
14052
14053 * configure.in: Create "Checks for libraries" section, and move
14054 appropriate tests there. Cleanup check for wctype in libw. Use
14055 AC_SEARCH_LIBS to see whether we need libsocket.
14056 * configure: Regenerated.
14057
a80e2bcb 14058For older changes see ChangeLog-2002
c906108c
SS
14059\f
14060Local Variables:
14061mode: change-log
14062left-margin: 8
14063fill-column: 74
14064version-control: never
14065End:
This page took 1.115075 seconds and 4 git commands to generate.