*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
49df298f
AC
12003-11-07 Andrew Cagney <cagney@redhat.com>
2
3 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
4 * bcache.c (struct bstring): Make "length" an unsigned short, add
5 "half_hash".
6 (struct bcache): Add "half_hash_error_count".
7 (bcache): Compute and save the "half_hash". Compare the
8 "half_hash" before comparing the length. Update
9 half_hash_error_count.
10
f168dd80
AC
112003-11-07 Andrew Cagney <cagney@redhat.com>
12
13 * inftarg.c (child_xfer_partial): New function
14 (init_child_ops): Set "to_xfer_partial".
15
05580c65
AC
162003-11-07 Andrew Cagney <cagney@redhat.com>
17
18 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
19 set "return_value" instead of "use_struct_convention".
20 (ppc_linux_use_struct_convention): Delete function.
21 (ppc_linux_return_value): New function.
22 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
23 (ppc_sysv_abi_broken_return_value): New function.
24 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
25 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
26 static.
27 (ppc_sysv_abi_extract_return_value): Delete function.
28 (ppc_sysv_abi_broken_extract_return_value): Delete function.
29 (ppc_sysv_abi_store_return_value): Delete function.
30 (ppc_sysv_abi_broken_store_return_value): Delete function.
31 (ppc_sysv_abi_use_struct_convention): Delete function.
32 (ppc64_sysv_abi_use_struct_convention): Delete function.
33 (ppc64_sysv_abi_extract_return_value): Delete function.
34 (ppc64_sysv_abi_store_return_value): Delete function.
35 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
36 (ppcnbsd_init_abi): Set "return_value", instead of
37 "use_struct_convention", "extract_return_value", and
38 "store_return_value".
39 (ppcnbsd_use_struct_convention): Delete function.
40 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
41 (ppc_sysv_abi_return_value): Declare.
42 (ppc_sysv_abi_broken_return_value): Declare.
43 (ppc_sysv_abi_use_struct_convention): Delete.
44 (ppc_sysv_abi_store_return_value): Delete.
45 (ppc_sysv_abi_extract_return_value): Delete.
46 (ppc_sysv_abi_broken_store_return_value): Delete.
47 (ppc_sysv_abi_broken_extract_return_value): Delete.
48 (ppc64_sysv_abi_use_struct_convention): Delete.
49 (ppc64_sysv_abi_extract_return_value): Delete.
50 (ppc64_sysv_abi_store_return_value): Delete.
51 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
52 set "return_value" instead of "extract_return_value",
53 "store_return_value", and "use_struct_convention".
54
1763fba4
MK
552003-11-07 Mark Kettenis <kettenis@gnu.org>
56
22c7ba1a
MK
57 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
58
1763fba4
MK
59 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
60 fscanf.
61
fc07cc2d
MK
622003-11-07 Mark Kettenis <kettenis@gnu.org>
63
64 * fbsd-proc.c: Fix formatting.
65
6a748db6
KB
662003-11-06 Kevin Buettner <kevinb@redhat.com>
67
68 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
69 Define.
70 (new_variant): Set name for iacc0_regnum.
71 (frv_register_name): Accommodate pseudo-registers.
72 (frv_register_type): Add case for iacc0_regnum.
73 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
74 (frv_gdbarch_init): Set number of pseudo registers. Establish
75 pseudo-register read/write methods.
76
bf896cb0
AC
772003-11-06 Andrew Cagney <cagney@redhat.com>
78
79 * valops.c (destructor_name_p): Replace STREQN with strncmp.
80 * top.c (command_line_input): Ditto.
81 * objc-exp.y (yylex): Ditto.
82 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
83 * jv-exp.y (yylex): Ditto.
84 * f-exp.y (yylex): Ditto.
85 * event-top.c (command_line_handler): Ditto.
86 * environ.c (get_in_environ): Ditto.
87 (set_in_environ): Ditto.
88 * dwarfread.c (handle_producer): Ditto.
89 * dbxread.c (process_one_symbol): Ditto.
90 * c-typeprint.c (c_type_print_base): Ditto.
91 * c-exp.y (yylex): Ditto.
92
0b603eba
AC
932003-11-06 Andrew Cagney <cagney@redhat.com>
94 Jeff Johnston <jjohnstn@redhat.com>
95
96 * target.c (add_target): Only set "to_xfer_partial" when NULL.
97 (init_dummy_target): Set "to_xfer_partial".
98
9cedbfec
AC
992003-11-06 Andrew Cagney <cagney@redhat.com>
100
101 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
102 REGISTER_CONVENTION.
103
26bb91f3
DJ
1042003-11-06 Daniel Jacobowitz <drow@mvista.com>
105
106 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
107 static.
108
0bde7532
DJ
1092003-11-06 Daniel Jacobowitz <drow@mvista.com>
110
111 * breakpoint.c (remove_breakpoint): Take an bp_location
112 instead of a breakpoint argument. Check the bp_location's type.
113 Fix a reversed condition for hardware breakpoints.
114
115 (insert_bp_location): Update call to remove_breakpoint.
116 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
117 (remove_hw_watchpoints): Likewise.
118 (reattach_breakpoints): Likewise.
119 (detach_breakpoints): Likewise.
120 (delete_breakpoint): Likewise.
121
075f6582
DJ
1222003-11-06 Daniel Jacobowitz <drow@mvista.com>
123
124 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
125 (beakpoint_init_inferior): Likewise.
126 (breakpoint_here_p): Likewise. Only check addresses for software
127 or hardware breakpoints.
128 (breakpoint_inserted_here_p): Likewise.
129 (breakpoint_thread_match): Likewise. Correct comment.
130 (bpstat_have_active_hw_watchpoints): Likewise.
131 (check_duplicates): Likewise.
132
879bfdc2
DJ
1332003-11-06 Daniel Jacobowitz <drow@mvista.com>
134
135 * breakpoints.c (insert_bp_location): New function, broken out
136 from insert_breakpoints. Work on an bp_location instead of a
137 breakpoint.
138 (insert_breakpoints): Use it.
139
cf3a9e5b
DJ
1402003-11-06 Daniel Jacobowitz <drow@mvista.com>
141
142 * breakpoint.h (struct bp_location): Add section.
143 (struct breakpoint): Remove section.
144 * breakpoint.c (insert_breakpoints, remove_breakpoint)
145 (breakpoint_here_p, breakpoint_inserted_here_p)
146 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
147 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
148 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
149 section through loc.
150
ffce0d52
DJ
1512003-11-06 Daniel Jacobowitz <drow@mvista.com>
152
153 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
154 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
155
e049a4b5
DJ
1562003-11-06 Daniel Jacobowitz <drow@mvista.com>
157
158 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
159 arguments. Initialize owner and type for the new breakpoint
160 location item.
161 (set_raw_breakpoint): Update call to allocate_bp_location.
162
7cc221ef
DJ
1632003-11-06 Daniel Jacobowitz <drow@mvista.com>
164
165 * breakpoint.h (struct bp_location): Add a chain pointer.
166 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
167 macros.
168 (bp_location_chain): New variable.
169 (allocate_bp_location): New function.
170 (set_raw_breakpoint): Use it.
171 (delete_breakpoint): Remove ->loc from the bp_location_chain.
172
5cab636d
DJ
1732003-11-06 Daniel Jacobowitz <drow@mvista.com>
174
175 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
176 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 177 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
178 * breakpoint.c (condition_command, read_memory_nobpt)
179 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
180 (reattach_breakpoints, update_breakpoints_after_exec)
181 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
182 (breakpoint_init_inferior, breakpoint_here_p)
183 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
184 (breakpoint_thread_match, bpstat_stop_status)
185 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
186 (describe_other_breakpoints, check_duplicates)
187 (make_breakpoint_permanent, create_thread_event_breakpoint)
188 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
189 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
190 (watch_command_1, print_one_exception_catchpoint)
191 (clear_command, breakpoint_re_set_one): Adjust member accesses to
192 use the breakpoint's ->loc.
193 (set_raw_breakpoint): Likewise. Initialize ->loc.
194 (delete_breakpoint): Likewise. Free ->loc.
195
7be0c536
AC
1962003-11-05 Andrew Cagney <cagney@redhat.com>
197
4c7d882e
AC
198 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
199 macro.
200 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
201 * config/i386/tm-cygwin.h
202 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
203 * config/powerpc/tm-linux.h
204 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
205 (at_subroutine_call_instruction_target): Delete declaration.
206 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
207 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
208 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
209
7be0c536
AC
210 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
211 "struct bfd_section" and "struct bfd".
212 * target.h (struct section_table): Ditto.
213 * rs6000-nat.c (xcoff_relocate_core): Ditto.
214 * solib-svr4.c (elf_locate_base): Ditto.
215 * pa64solib.c (dld_cache_t): Ditto.
216 * objfiles.h (struct obj_section): Ditto.
217 * objfiles.c (add_to_objfile_sections): Ditto.
218 * exec.c (bfdsec_to_vmap): Ditto.
219 (add_to_section_table): Ditto.
220 (build_section_table): Ditto.
221 * corelow.c (get_core_register_section): Ditto.
222 * coffread.c (find_linenos): Ditto.
223 * elfread.c (elf_interpreter): Delete #if0'd function.
224
225 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
226 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
227 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
228 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
229
230 * arch-utils.h (generic_cannot_extract_struct_value_address):
231 Delete declaration.
232 * wince.c (_initialize_wince): Fix multi-line string.
233 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
234
d8fe84e3
EZ
2352003-11-05 Elena Zannoni <ezannoni@redhat.com>
236
237 * top.c (execute_command): Fix broken logic for command execution
238 while inferior is running in async mode.
239
cbdfc7c0
MK
2402003-11-06 Mark Kettenis <kettenis@gnu.org>
241
242 * dwarf2-frame.c (execute_cfa_program): Mark register as
243 REG_SAVED_REG for DW_CFA_register opcode.
244
dac94105
MK
2452003-11-05 Mark Kettenis <kettenis@gnu.org>
246
247 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
248 %rsp, %rip and %eflags to match ABI-change.
249
85bf2b91
JJ
2502003-11-05 Jeff Johnston <jjohnstn@redhat.com>
251
252 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
253 (ia64_gdbarch_init): Don't bother calculating the os.
254 Instead use the gdbarch_info struct and look at the osabi field.
255 Also use gdbarch_list_lookup_by_info() to look for a
256 candidate gdbarch.
257
cd31fb03
KB
2582003-11-05 Kevin Buettner <kevinb@redhat.com>
259
260 * frv-tdep.c (frv_register_byte): Delete.
261 (frv_extract_return_value, frv_store_return_value)
262 (frv_extract_struct_value_address): Don't call frv_register_byte().
263 Convert to non-deprecated form.
264 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
265 Convert calls to set_gdbarch_deprecated_extract_return_value(),
266 set_gdbarch_deprecated_store_return_value(), and
267 set_gdbarch_deprecated_extract_struct_value_address() into
268 non-deprecated forms.
269
0a056982
AC
2702003-11-05 Andrew Cagney <cagney@redhat.com>
271
272 * mips-tdep.c (mips_dump_tdep): Do not print
273 PRINT_EXTRA_FRAME_INFO.
274 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
275 Rename PRINT_EXTRA_FRAME_INFO.
276 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
277 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
278 (mips_print_extra_frame_info): Delete declaration.
279 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
280
29e0a062
EZ
2812003-11-05 Elena Zannoni <ezannoni@redhat.com>
282
283 * coffread.c (coff_symtab_read): Remove passing of info parameter
284 to prim_record_minimal_symbol_and_info.
285
8af580fc
EZ
2862003-11-05 Elena Zannoni <ezannoni@redhat.com>
287
288 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
289 (decode_base_type): Delete ifdeffed out code.
290
507836c0
AC
2912003-11-04 Andrew Cagney <cagney@redhat.com>
292
293 * symtab.c (find_active_alias): Delete function.
294 (lookup_block_symbol): Delete alias code.
295 * stabsread.c (resolve_live_range): Delete function.
296 (add_live_range): Delete function.
297 (resolve_symbol_reference): Delete function.
298 (define_symbol): Delete live range and alias code.
299 (scan_file_globals): Delete alias code.
300 * symtab.h (SYMBOL_RANGES): Delete macro.
301 (struct range_list): Delete structure.
302 (struct symbol): Delete field "ranges".
303 (SYMBOL_ALIASES): Delete macro.
304 (struct alias_list): Delete structure.
305 (struct symbol): Delete field "aliases".
306
1083b3bc
MS
3072003-11-04 Michael Snyder <msnyder@redhat.com>
308
309 * MAINTAINERS: Remove myself as owner of breakpoints and
310 of sparc/solaris.
311
474e5826
CV
3122003-11-03 Corinna Vinschen <vinschen@redhat.com>
313
314 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
315 (sh_sh4al_dsp_register_name): Ditto.
316 (sh4_nofpu_show_regs): Ditto.
317 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
318 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
319
2160782c
AC
3202003-11-03 Andrew Cagney <cagney@redhat.com>
321
322 * bcache.c: Include "gdb_assert.h".
323 (struct bcache): Add fields "expand_count" and
324 "expand_hash_count".
325 (expand_hash_table): Update the expand counts.
326 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
327 on object sizes and hashes.
328 * Makefile.in (bcache.o): Update dependencies.
329
85302095
AC
3302003-11-03 Andrew Cagney <cagney@redhat.com>
331
332 * exec.c (xfer_memory): Eliminate xfer_fn.
333
526eef89
KB
3342003-10-31 Kevin Buettner <kevinb@redhat.com>
335
336 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
337 (opcodes/frv-desc.h): Include.
338 (iacc0h_regnum, iacc0l_regnum): Define.
339 (last_spr_regnum, frv_num_regs): Update.
340 (new_variant): Don't supply default names for holes in the SPRs.
341 Supply names for iacc0h_regnum and iacc0l_regnum.
342 (frv_register_type): Use symbolic constants first_fpr_regnum and
343 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
344 builtin_type_int instead of builtin_type_int32.
345 (frv_register_sim_regno): New function.
346 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
347 * Makefile.in (gdb_sim_frv_h): Define.
348 (frv-tdep.o): Update dependencies.
349
9e815ec2
AC
3502003-10-31 Andrew Cagney <cagney@redhat.com>
351
352 * avr-tdep.c (avr_frame_this_id): Do not call
353 deprecated_inside_entry_file.
354 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
355 * m32r-tdep.c (m32r_frame_this_id): Ditto.
356 * d10v-tdep.c (d10v_frame_this_id): Ditto.
357 * arm-tdep.c (arm_prologue_this_id): Ditto.
358 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
359
e372db49
JB
3602003-10-31 Jim Blandy <jimb@redhat.com>
361
362 * elfread.c (elf_symtab_read): Allocate correct number of tail
363 elements to sectinfo structure. (Fix from Woody LaRue.)
364
e8bcf01f
AC
3652003-10-31 Andrew Cagney <cagney@redhat.com>
366
367 * stack.c (return_command): Use get_frame_type, instead of
368 CALL_DUMMY_HAS_COMPLETED.
369 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
370 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
371
4c05fe53
MK
3722003-10-31 Mark Kettenis <kettenis@gnu.org>
373
374 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
375 explicitly specify size of array.
376 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
377 TDEP->sc_num_regs.
378
c8b91b89
AC
3792003-10-31 Andrew Cagney <cagney@redhat.com>
380
381 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
382 function.
383 (s390_gdbarch_init): Set extract_struct_value_address.
384 * arch-utils.c (generic_cannot_extract_struct_value_address):
385 Delete function.
386 * arch-utils.h (generic_cannot_extract_struct_value_address):
387 Delete definition.
388
fdfb6fc8
MK
3892003-10-31 Mark Kettenis <kettenis@gnu.org>
390
391 * i386-linux-nat.c (fetch_core_registers): Remove.
392 (linux_elf_core_fns): Remove.
393 (_initialize_i386_linux_nat): Remove.
394
2f4950cd
AC
3952003-10-31 Andrew Cagney <cagney@redhat.com>
396
397 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
398 "exec.h".
399 (exec_entry_point): New function.
400 (enable_break): Create a "tmp_bfd_target", use that and
401 entry_point_address when computing the relocation offset.
402 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
403 * Makefile.in (solib-svr4.o): Update dependencies.
404
bba2d28d
AC
4052003-10-31 Andrew Cagney <cagney@redhat.com>
406
407 * defs.h (XZALLOC): Define.
408 * target.h (struct target_ops): Add "to_data";
409 * bfd-target.h, bfd-target.c: New files.
410 * Makefile.in (SFILES): Add "bfd-target.c".
411 (COMMON_OBS): Add "bfd-target.o".
412 (bfd-target.o): Specify dependencies.
413 (bfd_target_h): Define.
414 * defs.h (XZALLOC): Define.
415
6066c3de
AC
4162003-10-31 Andrew Cagney <cagney@redhat.com>
417
418 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
419 adjust_breakpoint_address.
420 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
421 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
422 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
423 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
424
4b8a223f
AC
4252003-10-31 Andrew Cagney <cagney@redhat.com>
426
427 * target.h (struct target_ops): Replace "to_read_partial" and
428 "to_write_partial" with "to_xfer_partial". Update comments.
429 * target.c (debug_to_write_partial): Delete function.
430 (debug_to_xfer_partial): Replace debug_to_read_partial.
431 (add_target, update_current_target, setup_target_debug): Set
432 "to_xfer_partial" instead of "to_read_partial" and
433 "to_write_partial".
434 (default_xfer_partial): Replace "default_write_partial".
435 (default_read_partial): Delete.
436 (target_read_partial, target_write_partial): Call
437 "to_xfer_partial".
438 * remote.c (init_remote_ops): Set "to_xfer_partial".
439 (init_remote_async_ops): Ditto.
440 (remote_xfer_partial): Replace "remote_read_partial".
441
66a72d25
MK
4422003-10-31 Mark Kettenis <kettenis@gnu.org>
443
444 * i386-tdep.c (i386_supply_fpregset): Support floating-point
445 registers in `fxsave' format.
446 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
447
9a12a2a0
MK
4482003-10-30 Mark Kettenis <kettenis@gnu.org>
449
e9f1aad5
MK
450 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
451 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
452 TDEP->gregset_num_regs and tdep->sizeof_gregset.
453
bb489b3c
MK
454 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
455 specify size of array.
456 (i386_linux_init_abi): Remove initialization of
457 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
458 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
459
da285bc4
MK
460 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
461 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
462 core-regset.o.
463
9a12a2a0
MK
464 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
465 the ELF header.
466
0e24ac5d
MK
4672003-10-29 Mark Kettenis <kettenis@gnu.org>
468
6d6d8e9c
MK
469 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
470 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
471 core-regset.o.
472
25e60c9b
MK
473 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
474
0e24ac5d
MK
475 * corelow.c: Include "arch-utils.h", "regset.h" and
476 "gdb_assert.h".
477 (core_gdbarch): New variable.
478 (sniff_core_bfd): Don't sniff if we have support for register sets
479 in CORE_GDBARCH.
480 (core_close): Reset CORE_GDBARCH.
481 (core_open): Initialize CORE_GDBARCH.
482 (get_core_register_section): Use register sets if they are
483 supported by CORE_GDBARCH.
484 (get_core_registers): Don't print error message if we have support
485 for register sets in CORE_GDBARCH.
486
0a0a4ac3
AC
4872003-10-29 Andrew Cagney <cagney@redhat.com>
488
489 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
490 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
491
7b097ae3
MK
4922003-10-29 Mark Kettenis <kettenis@gnu.org>
493
494 * objfiles.h (clear_objfile_data): New prototype.
495 * objfiles.c (clear_objfile_data): New function.
496 * symfile.c (reread_symbols): Clear per-objfile data.
497
46f45a4a
JJ
4982003-10-28 Jeff Johnston <jjohnstn@redhat.com>
499
500 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
501 printf_unfiltered instead of printf_filtered for output messages.
502 (add_symbol_file_command): Ditto.
503 (reread_symbols): Ditto.
504 (overlay_auto_command): Ditto.
505 (overlay_manual_command): Ditto.
506 (overlay_off_command): Ditto.
507
2b026650
MK
5082003-10-27 Mark Kettenis <kettenis@gnu.org>
509
510 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
511 (gdbarch_from_bfd): New function.
512 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
513 deprecated_select_gdbarch_hack.
514 * arch-utils.h (gdbarch_from_bfd): New prototype.
515
0bcad584 5162003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
517
518 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
519 arch_info. Use warning instead of fprintf_filtered. Do not use
520 deprecated bfd_printable_arch_mach.
521
7f398216
KB
5222003-10-26 Kevin Buettner <kevinb@redhat.com>
523
524 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
525 Delete.
526 (frv_register_type): Rename from frv_register_virtual_type. Add
527 ``struct gdbarch *'' parameter.
528 (frv_gdbarch_init): Delete calls to the following functions:
529 set_gdbarch_deprecated_size(),
530 set_gdbarch_deprecated_register_bytes(),
531 set_gdbarch_deprecated_register_raw_size(),
532 set_gdbarch_deprecated_max_register_raw_size(),
533 set_gdbarch_deprecated_register_virtual_size(),
534 set_gdbarch_deprecated_max_register_virtual_size(),
535 set_gdbarch_deprecated_register_virtual_size(),
536 set_gdbarch_deprecated_register_virtual_type().
537 Add call to function set_gdbarch_register_type().
538
bcf48cc7
MK
5392003-10-26 Mark Kettenis <kettenis@gnu.org>
540
6c7de422
MK
541 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
542 FDOFF_REGNUM): Remove defines.
543 * win32-nat.c (do_child_fetch_inferior_registers): Include
544 "i387-tdep.h".
3e685d41 545 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
546 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
547 undefine I387_ST0_REGNUM.
548
f783586b
MK
549 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
550 * x86-64-tdep.c (x86_64_store_return_value): Use
551 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
552
bcf48cc7
MK
553 Change register numbers to enumartion values.
554 * i386-tdep.h (enum i386_regnum): New.
555 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
556 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
557 I386_ST0_REGNUM): Remove defines.
558 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
559 I386_EDI_REGNUM): Remove defines.
560
b6591e8b
AC
5612003-10-24 Andrew Cagney <cagney@redhat.com>
562
563 * target.c: Include "gdbcore.h".
564 (get_target_memory, get_target_memory_unsigned): New functions.
565 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
566 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
567 Use get_target_memory_unsigned.
568 * Makefile.in (target.o): Update dependencies.
569
5f724446
AC
5702003-10-24 Andrew Cagney <cagney@redhat.com>
571
ce2826aa
AC
572 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
573 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
574 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
575 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
576 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
577
5f724446
AC
578 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
579 (can_run_code_for): Use the OO term "singleton".
580
fc70c2a0
AC
5812003-10-23 Andrew Cagney <cagney@redhat.com>
582
583 * Makefile.in (stack.o): Add $(regcache_h).
584 * stack.c: Include "regcache.h"
585 (return_command): Rewrite. Use get_frame_id and
586 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
587 about unhandled return-values.
588 * value.h (set_return_value): Delete declaration.
589 * values.c (set_return_value): Delete function.
590
4afcc598
JJ
5912003-10-23 Jeff Johnston <jjohnstn@redhat.com>
592
593 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
594 (pseudo_regs): Add comment regarding register stack registers.
595 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
596 (floatformat_valid): New static routine.
597 (floatformat_ia64_ext): Add name field and set up is_valid routine
598 to floatformat_valid().
599 (examine_prologue): For the previous cfm, use
600 frame_unwind_register()
601 if the cfm is not stored in a register-stack register. Save the
602 previous cfm value in the prev_cfm field. Add debug output.
603 (ia64_frame_this_id): Use frame_id_build_special() to also register
604 the bsp. Add debug output.
605 (ia64_sigtramp_frame_this_id): Ditto.
606 (ia64_frame_prev_register): Look at cache saved_regs for a few more
607 registers and also add some checks for framelessness before accepting
608 current register values for fields such as return address. For cfm,
609 use the cached prev_cfm field if available. Add comment to explain
610 PSR logic. Add debug output.
611 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
612 as part of initialization.
613 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
614 calculated. Cache the bsp and cfm values.
615 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
616 instead of using ia64_frame_prev_register() which doesn't expect most
617 registers to be saved. The saved values for bsp and sp
618 can be taken from the cache. Add debug output.
619 (ia64_push_dummy_call): Use frame_id_build_special() to also register
620 the bsp.
621
6cfae0bc
JB
6222003-10-23 Jim Blandy <jimb@redhat.com>
623
624 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
625 architecture the current arch can run code for --- but not if it's
626 a superset.
627 (can_run_code_for): New function.
628
fcd182f9
JW
6292003-10-22 James E Wilson <wilson@specifixinc.com>
630
631 * MAINTAINERS: Move myself from paper trail section back to write
632 after approval section.
633
4646aa9d
AC
6342003-10-22 Andrew Cagney <cagney@redhat.com>
635
636 * exec.h: New file.
637 * win32-nat.c: Include "exec.h".
638 * solib.c: Include "exec.h".
639 * target.h (build_section_table): Delete declaration.
640 * somsolib.c: Include "exec.h".
641 (exec_ops): Delete extern declaration.
642 * rs6000-nat.c: Update copyright. Include "exec.h".
643 (exec_ops): Delete extern declaration.
644 * pa64solib.c: Update copyright. Include "exec.h".
645 (exec_ops): Delete extern declaration.
646 * exec.c: Update copyright. Include "exec.h".
647 * corelow.c: Update dependencies. Include "exec.h".
648 * Makefile.in (exec_h): Define.
649 (exec.o, somsolib.o): Update dependencies.
650 (pa64solib.o, corelow.o): Update dependencies.
651
0088c768
AC
6522003-10-22 Andrew Cagney <cagney@redhat.com>
653
654 * target.c: Include "gdb_assert.h" (target_read): Call
655 "target_read_partial", not "target_write_partial".
656 (default_read_partial, default_write_partial): New function.
657 (target_read_partial, target_write_partial): Simplify, assume that
658 there is always a read/write method.
659 (update_current_target, add_target): Always set "to_read_partial"
660 and "to_write_partial".
661 (target_write, target_read): Fail on a zero byte transfer.
662 * Makefile.in (target.o): Update dependencies.
663 * target.h: Update copyright date.
664 (target_object): Fix typo.
665
e2d0e7eb
AC
6662003-10-22 Andrew Cagney <cagney@redhat.com>
667
668 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
669 multi-arch method, add "targ" parameter.
670 (struct target_ops): Declare.
671 * gdbarch.h, gdbarch.c: Re-generate.
672 * Makefile.in (c-valprint.o): Update dependencies.
673 * arch-utils.h: Update copyright.
674 (convert_from_func_ptr_addr_identity): Declare.
675 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
676 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
677 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
678 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
679 * infcall.c (find_function_addr, call_function_by_hand): Update.
680 * c-valprint.c: Include "target.h".
681 (print_function_pointer_address): Update.
682
f1c07ab0
AC
6832003-10-22 Andrew Cagney <cagney@redhat.com>
684
685 * target.c (target_close): New function.
686 (debug_to_close): Use "target_close".
687 (push_target): Use "target_close".
688 (unpush_target): Use "target_close".
689 (pop_target): Use "target_close".
690 * target.h (struct target_ops): Add "to_xclose".
691 (target_open): Delete macro. Move comment to "to_open".
692 (target_close): Replace macro with function that takes a target.
693 * top.c (quit_target): Pass "current_target" to "target_close".
694
5520a790
EZ
6952003-10-21 Elena Zannoni <ezannoni@redhat.com>
696
697 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
698 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
699 * symtab.h (lookup_minimal_symbol_text): Update.
700 * breakpoint.c (create_overlay_event_breakpoint,
701 create_longjmp_breakpoint): Update callers.
702 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
703 * symtab.c (find_pc_sect_line): Ditto.
704
caa92b73
AC
7052003-10-21 Andrew Cagney <cagney@redhat.com>
706
707 * target.c (errno): Delete extern declaration.
708
aa2a9a3c
JJ
7092003-10-20 Jeff Johnston <jjohnstn@redhat.com>
710
711 * ia64-tdep.c: Change all occurrences of
712 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
713 (ia64_frame_prev_register): Minor whitespace change.
714
4beec2b7
MC
7152003-10-20 Michael Chastain <mec@shout.net>
716
717 * config/djgpp/fnchange.lst: Add lines for:
718 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
719 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
720 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
721 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
722 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
723 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
724 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
725
92ad9cd9
AC
7262003-10-20 Andrew Cagney <cagney@redhat.com>
727
728 * values.c (register_value_being_returned): Update comments. Use
729 "gdbarch_return_value" when available.
730 (using_struct_return): Ditto.
731 (set_return_value): Ditto. Use "gdbarch_return_value" when
732 available.. Print a warning, and not an error, when an unhandled
733 return type is encountered.
734 * infcmd.c: Include "gdb_assert.h".
735 (print_return_value): When gdbarch_return_value_p, and using
736 struct return, assume that the value is not available.
737 * defs.h (return_value_convention): Define.
738 * gdbarch.sh (gdbarch_return_value): New predicate method.
739 * gdbarch.h, gdbarch.c: Re-generate
740 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
741
198beae2
AC
7422003-10-20 Andrew Cagney <cagney@redhat.com>
743
744 * symtab.c: Replace "struct sec" with "struct bfd_section".
745 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
746
24d693a6 7472003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
748
749 * config/djgpp/fnchange.lst: Add lines for:
750 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
751 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
752 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
753
21ad8dc3
MK
7542003-10-19 Mark Kettenis <kettenis@gnu.org>
755
756 * amd64fbsd-nat.c (fetch_inferior_registers,
757 store_inferior_registers): Remove functions.
758 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
759
cced5e27
MK
7602003-10-18 Mark Kettenis <kettenis@gnu.org>
761
762 Add NetBSD/amd64 native configuration:
763 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
764 * amd64nbsd-tdep.c: New file.
765 * amd64nbsd-nat.c: New file.
766 * amd64bsd-nat.c: New file.
767 * config/i386/nbsd64.mh: New file.
768 * config/i386/nbsd64.mt: New file.
769 * configure.host: Add x86_64-*-netbsd*.
770 * configure.tgt: Add x86_64-*-netbsd*.
771 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
772 New targets.
773 * NEWS (New native configurations): Mention NetBSD/amd64.
774
666de3fd
MC
7752003-10-17 Michael Chastain <mec@shout.net>
776
777 * config/djgpp/fnchange.lst: Remove dead lines for:
778 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
779 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
780 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
781 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
782 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
783 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
784 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
785 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
786 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
787 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
788 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
789 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
790 gdb/config/sparc/tm-sparclite.h,
791 gdb/gdbtk/generic/ChangeLog-2001,
792 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
793 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
794 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
795 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
796 gdb/testsuite/gdb.mi/mi0-var-block.exp,
797 gdb/testsuite/gdb.mi/mi0-var-child.exp,
798 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
799 gdb/testsuite/gdb.mi/mi0-var-display.exp,
800 itcl/iwidgets3.0.0/demos/extfileselectionbox,
801 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
802 itcl/iwidgets3.0.0/demos/fileselectionbox,
803 itcl/iwidgets3.0.0/demos/fileselectiondialog,
804 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
805 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
806 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
807 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
808 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
809 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
810 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
811 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
812 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
813 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
814 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
815 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
816 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
817 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
818 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
819 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
820 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
821 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
822 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
823 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
824 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
825 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
826 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
827 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
828 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
829 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
830 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
831 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
832 itcl/iwidgets3.0.0/demos/html/shell.n.html,
833 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
834 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
835 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
836 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
837 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
838 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
839 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
840 itcl/iwidgets3.0.0/demos/scrolledcanvas,
841 itcl/iwidgets3.0.0/demos/scrolledframe,
842 itcl/iwidgets3.0.0/demos/scrolledhtml,
843 itcl/iwidgets3.0.0/demos/scrolledlistbox,
844 itcl/iwidgets3.0.0/demos/scrolledtext,
845 itcl/iwidgets3.0.0/demos/selectionbox,
846 itcl/iwidgets3.0.0/demos/selectiondialog,
847 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
848 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
849 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
850 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
851 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
852 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
853 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
854 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
855 itcl/iwidgets3.0.0/doc/scrolledframe.n,
856 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
857 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
858 itcl/iwidgets3.0.0/doc/scrolledtext.n,
859 itcl/iwidgets3.0.0/doc/selectionbox.n,
860 itcl/iwidgets3.0.0/doc/selectiondialog.n,
861 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
862 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
863 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
864 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
865 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
866 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
867 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
868 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
869 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
870 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
871 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
872 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
873 itcl/iwidgets3.0.0/generic/selectionbox.itk,
874 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
875 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
876 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
877 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
878 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
879 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
880 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
881 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
882 itcl/iwidgets3.0.0/tests/scrolledframe.test,
883 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
884 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
885 itcl/iwidgets3.0.0/tests/scrolledtext.test,
886 itcl/iwidgets3.0.0/tests/selectionbox.test,
887 itcl/iwidgets3.0.0/tests/selectiondialog.test,
888 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
889 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
890 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
891 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
892 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
893 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
894 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
895 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
896 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
897 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
898 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
899 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
900 tk/mac/tkMacProjects.sit.hqx.
901
1e3ff5ad
AC
9022003-10-17 Andrew Cagney <cagney@redhat.com>
903
8db32d44
AC
904 * target.c (target_section_by_addr): New function.
905 (do_xfer_memory): Use "target_section_by_addr".
906 * target.h (target_section_by_addr): Declare.
907
1e3ff5ad
AC
908 * target.h (struct target_ops): Add "to_read_partial" and
909 "to_write_partial", delete "to_query".
910 (target_read_partial, target_write_partial): Declare.
911 (target_read, target_write): Declare.
912 (target_query): Delete macro.
913 * target.c (target_read_partial): New function.
914 (target_write_partial, target_read, target_write): New function.
915 (update_current_target): Delete inheritance of "to_query". Add
916 comments about "to_read_partial" and "to_write_partial".
917 (debug_to_partial_read, debug_to_partial_write): New functions.
918 (debug_to_query): Delete function.
919 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
920 instead of "to_query".
921 * remote.c (remote_read_partial): Replace "remote_query".
922 (init_remote_ops): Set "to_read_partial" instead of "to_query".
923 (init_remote_async_ops): Ditto.
924 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
925 "target_read_partial" instead of "target_query".
926 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
927 Use "target_read_partial" instead of "target_query".
928
48c66725
JJ
9292003-10-17 Jeff Johnston <jjohnstn@redhat.com>
930
931 * frame.h (struct frame_id): Add new field: special_addr.
932 (frame_id_build_special): New prototype.
933 * frame.c (frame_id_build_special): New function.
934 (frame_id_build): Change to call frame_id_build_special().
935 (frame_id_eq): Change to also test special_addr field.
936 (frame_id_inner): Update comment.
937
7998dfc3
AC
9382003-10-17 Andrew Cagney <cagney@redhat.com>
939
940 * target.c (update_current_target): Perform the target cleanup.
941 Put the target stack beneath the squashed "current_target".
942 (add_target): Delete disabled call to "cleanup_target".
943 (cleanup_target): Delete function.
944 (push_target, unpush_target): Do not call "cleanup_target".
945
9c04404e 9462003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
947
948 * target.c (target_stack): Change to a static target_ops.
949 (update_current_target): Walk the "struct target_ops" stack.
950 (pop_target, do_xfer_memory, target_info): Ditto.
951 (find_target_beneath): Ditto.
952 (push_target): Rewrite to use the "struct target_ops" stack.
953 (unpush_target): Ditto.
954 * target.h (struct target_stack_item): Delete definition.
955 (target_stack): Delete declaration.
956 (struct target_ops): Add field "beneath".
957
c98a2b49 9582003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
959
960 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
961 declaration.
962 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
963 (h8300_examine_prologue): Use h8300_normal_mode flag
964 (h8300_gdbarch_init): Set architecture info for normal mode
965
506fb367
DJ
9662003-10-16 Daniel Jacobowitz <drow@mvista.com>
967
968 * remote.c (remote_protocol_vcont): New variable.
969 (set_remote_protocol_vcont_packet_cmd): New function.
970 (show_remote_protocol_vcont_packet_cmd): New function.
971 (init_all_packet_configs): Handle remote_protocol_vcont.
972 (remote_vcont_probe): New function.
973 (remote_vcont_resume): New function.
974 (remote_resume): Use it.
975 (remote_async_resume): Call remote_resume.
976 (_initialize_remote): Add verbose-resume packet commands.
977
65815ea1
AC
9782003-10-16 Andrew Cagney <cagney@redhat.com>
979
980 * infrun.c (handle_inferior_event): Add comment about
981 "frame_id_inner" being too weak.
982
40324f1b
EZ
9832003-10-16 Elena Zannoni <ezannoni@redhat.com>
984
985 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
986 second parameter, which is always null. Remove
987 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
988 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
989 accordingly.
990 * somsolib.c (som_solib_create_inferior_hook,
991 som_solib_desire_dynamic_linker_symbols): Update callers.
992 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
993
9942003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
995
996 * remote-m32r-sdi.c : New file, interface to m32r on-chip
997 debug interface, SDI (Scalable Debug Interface).
998 * NEWS: Mention m32r SDI protocol was supported.
999 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1000 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1001
51931cbb
JJ
10022003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1003
1004 * ia64-linux-tdep.c: Include gdbcore.h.
1005 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1006 (ia64_linux_sigcontext_register_addr): Find the address of the
1007 sigcontext area stored in the sigframe instead of using
1008 a magic offset constant.
1009
84e7fd53
AC
10102003-10-15 Andrew Cagney <cagney@redhat.com>
1011
1012 * remote.c (remote_search): Delete function.
1013 * target.h (target_search): Delete disabled macro.
1014 (struct target_ops): Delete disabled field "to_search".
1015
0f4d7c52
KB
10162003-10-14 Kevin Buettner <kevinb@redhat.com>
1017
1018 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1019 instead of deprecated_inside_entry_file().
1020
2e952408
CV
10212003-10-14 Corinna Vinschen <vinschen@redhat.com>
1022
1023 * sh-tdep.c: Fix copy/paste hangover in comment.
1024 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1025 mode.
1026 (sh3e_sh4_extract_return_value): Ditto.
1027
7e86466e
RH
10282003-10-13 Richard Henderson <rth@redhat.com>
1029
1030 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1031 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1032 match c_val_print a bit closer.
1033
46a16dba
KB
10342003-10-13 Kevin Buettner <kevinb@redhat.com>
1035
1036 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1037 (frv_gdbarch_adjust_breakpoint_address): New function.
1038 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1039 method.
1040
76897487
KB
10412003-10-13 Kevin Buettner <kevinb@redhat.com>
1042
1043 * breakpoint.h (struct breakpoint): Add new member
1044 ``requested_address''.
1045 * breakpoint.c (breakpoint_adjustment_warning)
1046 (adjust_breakpoint_address): New static functions.
1047 (print_it_typical): Issue warning if breakpoint's address is different
1048 from its requested address.
1049 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1050 (breakpoint_re_set_one): Set breakpoint's
1051 ``requested_address'' field. Set ``address'' field to the
1052 result of calling adjust_breakpoint_address() on the requested
1053 address.
1054
a1131521
KB
10552003-10-13 Kevin Buettner <kevinb@redhat.com>
1056
1057 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1058 * gdbarch.h, gdbarch.c: Regenerate.
1059
6ce6d90f
MK
10602003-10-11 Mark Kettenis <kettenis@gnu.org>
1061
155c1d33
MK
1062 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1063 TDEP->sc_num_regs.
1064
8a96bc77
MK
1065 * i386fbsd-tdep.c: New file.
1066 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1067 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1068 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1069 i386bsd-tdep.c.
1070 (_initialize_i386fbsd_tdep): New function.
1071 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1072 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1073 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1074 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1075 TDEP->sc_num_regs.
1076 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1077 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1078 to initialize TDEP->sc_num_regs.
1079 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1080 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1081 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1082 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1083 FreeBSD ELF OS/ABI's here.
1084 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1085 (i386fbsd-tdep.o): New target.
1086 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1087 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1088
477f40d1
MK
1089 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1090 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1091 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1092 in initialization of TDEP->sc_num_regs.
1093
c6b33596
MK
1094 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1095 (x86_64_init_abi): Initialize regset_from_core_section if
1096 appropriate.
1097
8446b36a
MK
1098 * i386-tdep.c (i386_regset_from_core_section): New function.
1099 (i386_gdbarch_init): Initialize regset_from_core_section if
1100 appropriate.
1101 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1102
c783cbd6
MK
1103 * i386-tdep.h (struct regset): Declare opaque.
1104
6ce6d90f
MK
1105 * gdbarch.sh (regset_from_core_section): New method.
1106 (struct regset): Declare opaque.
1107 * gdbarch.c, gdbarch.h: Regenerated.
1108
b98ed7be
AM
11092003-10-11 Alan Modra <amodra@bigpond.net.au>
1110
1111 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1112 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1113 Correct test for pc within section.
1114
f6214256
MK
11152003-10-11 Mark Kettenis <kettenis@gnu.org>
1116
1117 * gdbarch.sh: Remove trailing whitepsace from comments.
1118
a8f4cde1
RM
11192003-10-08 Roland McGrath <roland@redhat.com>
1120
1121 * gcore.c (make_mem_sec): Function removed, folded into ...
1122 (gcore_create_callback): ... here. To omit a section, clear its
1123 SEC_LOAD bit rather than zeroing its size.
1124 Omit read-only sections only if they correspond to a known disk file.
1125 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1126
74276724
MS
11272003-10-10 Michael Snyder <msnyder@redhat.com>
1128
1129 * d10v-tdep.c: Fix typo in comment.
1130
e754ae69
AC
11312003-10-10 Andrew Cagney <cagney@redhat.com>
1132
1133 * rs6000-tdep.c (e500_store_return_value): Delete function.
1134 (e500_extract_return_value): Delete function.
1135 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1136 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1137 "ppc_sysv_abi_restore_return_value" where applicable.
1138 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1139 (ppc_sysv_abi_extract_return_value): Declare.
1140 (ppc_sysv_abi_broken_store_return_value): Declare.
1141 (ppc_sysv_abi_broken_extract_return_value): Declare.
1142 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1143 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1144 start of file.
1145 (do_ppc_sysv_return_value): New function.
1146 (ppc_sysv_abi_extract_return_value): New function.
1147 (ppc_sysv_abi_store_return_value): New function.
1148 (ppc_sysv_abi_broken_extract_return_value): New function.
1149 (ppc_sysv_abi_broken_store_return_value): New function.
1150 (ppc_sysv_abi_use_struct_convention): Call
1151 do_ppc_sysv_return_value.
1152
8d4ce20a
JB
11532003-10-10 J. Brobecker <brobecker@gnat.com>
1154
1155 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1156 to lookup the main function symbol.
1157
afce3d2a
CV
11582003-10-10 Corinna Vinschen <vinschen@redhat.com>
1159
1160 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1161 types correctly.
1162 (sh_push_dummy_call_fpu): Fix argument passing rules.
1163 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1164 float types.
1165 (sh3e_sh4_store_return_value): Ditto.
1166
7fe958be
EZ
11672003-10-10 Elena Zannoni <ezannoni@redhat.com>
1168
1169 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1170 comment.
1171
3f997a97
CV
11722003-10-10 Corinna Vinschen <vinschen@redhat.com>
1173
1174 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1175 more readable code. Accomodate passing of bitfields.
1176
8be9034a
AC
11772003-10-10 Andrew Cagney <cagney@redhat.com>
1178
1179 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1180 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1181 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1182 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1183 (ppc64_sysv_abi_push_dummy_call): New function.
1184 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1185 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1186 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1187
85a453d5
KI
11882003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1189
1190 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1191 * README: Ditto.
1192 * d10v-tdep.c: Ditto.
1193 * h8300-tdep.c: Ditto.
1194 * remote-e7000.c: Ditto.
1195 * remote-hms.c: Ditto.
1196 * ser-e7kpc.c: Ditto.
1197 * sh-stub.c: Ditto.
1198 * sh-tdep.c: Ditto.
1199 * sh-tdep.h: Ditto.
1200 * sh3-rom.c: Ditto.
1201 * sh64-tdep.c: Ditto.
1202 * top.c: Ditto.
1203 * wince.c: Ditto.
1204 * config/d10v/d10v.mt: Ditto.
1205 * config/sh/embed.mt: Ditto.
1206 * config/sh/linux.mt: Ditto.
1207 * config/sh/tm-linux.h: Ditto.
1208 * config/sh/tm-sh.h: Ditto.
1209 * config/sh/wince.mt: Ditto.
1210
221c12ff
AC
12112003-10-09 Andrew Cagney <cagney@redhat.com>
1212
1213 * ppc-tdep.h (struct type): Declare opaque.
1214 * x86-64-tdep.h (struct regcache): Declare opaque.
1215 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1216 coding style.
1217
ef5200c1
AC
12182003-10-09 Andrew Cagney <cagney@redhat.com>
1219
1220 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1221 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1222 (SOFTWARE_SINGLE_STEP_P): Ditto.
1223 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1224 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1225 (SOFTWARE_SINGLE_STEP_P): Ditto.
1226 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1227 software_single_step to rs6000_software_single_step.
a8f4cde1 1228
9644bbdd
AC
12292003-10-09 Andrew Cagney <cagney@redhat.com>
1230
1231 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1232
db72fa6b
MS
12332003-10-09 Michael Snyder <msnyder@redhat.com>
1234
f3efb16c
MS
1235 * frame.h: Fix typo in comment.
1236 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
1237 * d10v-tdep.c: Random whitespace/comment tweaks.
1238
9a5cef92
EZ
12392003-10-09 Elena Zannoni <ezannoni@redhat.com>
1240
1241 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 1242 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 1243 on stack.
a8f4cde1 1244
9a5cef92
EZ
1245 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1246 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1247 in detail.
a8f4cde1 1248
0f317a0c
DJ
12492003-10-09 Daniel Jacobowitz <drow@mvista.com>
1250
1251 * remote-mips.c (mips_initialize): Remove unneeded call to
1252 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1253
bbab2f46
DJ
12542003-10-09 Daniel Jacobowitz <drow@mvista.com>
1255
1256 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1257 a memory pointer.
1258
550950b8
JJ
12592003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1260
1261 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1262 for any lwp we resume.
1263 (running_callback): Add lwps that have pending status events
1264 against them to be considered running.
1265
15c69bc7
KI
12662003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1267
1268 * m32r-tdep.c : Include "dis-asm.h".
1269 * Makefile.in (m32r-tdep.o): Update dependencies.
1270
51065942
JB
12712003-10-06 J. Brobecker <brobecker@gnat.com>
1272
1273 * completer.h (get_gdb_completer_word_break_characters): Delete.
1274 * completer.c: include language.h.
1275 (gdb_completer_word_break_characters): Delete.
1276 (get_gdb_completer_word_break_characters): Delete.
1277 (location_completer): Use the word break characters of the current
1278 language.
1279 (complete_line): Likewise.
1280 (line_completion_function): Likewise.
1281 (skip_quoted_chars): Likewise.
1282 * Makefile.in (completer.o): Add dependency on language.h.
1283 * top.c (init_main): Set the readline word break characters
1284 to GDB's default word break characters.
1285
6084f43a
JB
12862003-10-06 J. Brobecker <brobecker@gnat.com>
1287
1288 * language.h (language_defn): new field, la_word_break_characters.
1289 * language.c (unknown_language_defn): Set new field to
1290 default_word_break_characters.
1291 (auto_language_defn): Likewise.
1292 (local_language_defn): Likewise.
1293 * ada-lang.c (ada_language_defn): Likewise.
1294 * c-lang.c (c_language_defn): Likewise.
1295 (cplus_language_defn): Likewise.
1296 (asm_language_defn): Likewise.
1297 (minimal_language_defn): Likewise.
1298 * f-lang.c (f_language_defn): Likewise.
1299 * jv-lang.c (java_language_defn): Likewise.
1300 * m2-lang.c (m2_language_defn): Likewise.
1301 * objc-lang.c (objc_language_defn): Likewise.
1302 * p-lang.c (pascal_language_defn): Likewise.
1303 * scm-lang.c (scm_language_defn): Likewise.
1304
944fcfab
AC
13052003-10-06 Andrew Cagney <cagney@redhat.com>
1306
1307 * ppc-sysv-tdep.c: Re-indent.
1308
9f0a5303
JB
13092003-10-06 J. Brobecker <brobecker@gnat.com>
1310
1311 * language.h (default_word_break_characters): Add prototype.
1312 * language.c (default_word_break_characters): New function.
1313
7270b6ed
AS
13142003-10-06 Andreas Schwab <schwab@suse.de>
1315
1316 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1317 with %eax.
1318
a5d61f66
AC
13192003-10-06 Andrew Cagney <cagney@redhat.com>
1320
1321 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1322 "h8500-tdep.c".
1323 (z8k-tdep.o): Delete custom build rule.
1324
28a86f5c
AC
13252003-10-06 Andrew Cagney <cagney@redhat.com>
1326
1bfd8a83
AC
1327 * Makefile.in: Update all dependencies.
1328
17144ef8
AC
1329 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1330 No longer list PA as as obsolete candidate. List m32r as
1331 broken instead of obsolete.
a8f4cde1 1332
a5679ae5
AC
1333 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1334 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1335 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1336 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1337 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1338 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1339 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1340 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1341 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1342 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1343 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1344 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1345 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1346 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1347 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1348 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1349 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1350 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1351 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1352 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1353 * config/z8k/z8k.mt: Ditto.
1354
4a8269c0
AC
1355 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1356 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1357 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1358 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1359 sparclite were removed.
1360 * configure.host, configure.tgt: Remove corresponding tuples.
1361
41989fcd
AC
1362 * breakpoint.c, breakpoint.h: Remove obsolete code.
1363 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1364 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1365 * stabsread.h, xcoffread.c: Ditto.
1366
28a86f5c
AC
1367 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1368 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1369 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1370 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1371
4efdaa0d
DL
13722003-10-06 David Lecomber <dsl@sources.redhat.com>
1373
1374 * f-valprint.c: Reformatting
1375
ae53de43
MK
13762003-10-06 Mark Kettenis <kettenis@gnu.org>
1377
a8bb57e7
MK
1378 * x86-64-tdep.c: Remove duplicate comment.
1379
ae53de43
MK
1380 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1381 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1382 names for return values. This fixes a bug since we looked at %rbx
1383 instead of %rdx.
1384
473f17b0
MK
13852003-10-05 Mark Kettenis <kettenis@gnu.org>
1386
2c261fae
MK
1387 * x86-64-tdep.c: Include "regset.h".
1388
473f17b0
MK
1389 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1390 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1391 sizeof_fpregset.
1392 * i386-tdep.c: Include "regset.h".
1393 (i386_supply_gregset): New function.
1394 (i386_supply_fpregset): New function.
1395 (i386_gdbarch_init): Initialze register set-related members of
1396 TDEP.
1397 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1398 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1399
afd48b75
AC
14002003-10-03 Andrew Cagney <cagney@redhat.com>
1401
1402 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1403 set extract_return_value, store_return_value and
1404 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1405 ppc64_sysv_abi_store_return_value and
1406 ppc64_sysv_abi_use_struct_convention.
1407 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1408 (ppc64_sysv_abi_store_return_value): Declare.
1409 (ppc64_sysv_abi_use_struct_convention): Declare.
1410 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1411 (ppc64_sysv_abi_extract_return_value): New function.
1412 (ppc64_sysv_abi_store_return_value): New function.
1413 (ppc64_sysv_abi_use_struct_convention): New function.
1414 (ppc64_sysv_abi_return_value): New function.
1415
9b540880
AC
14162003-10-03 Andrew Cagney <cagney@redhat.com>
1417
1418 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1419 convert a descriptor to a function when it's in the ".opd"
1420 section.
1421
8748518b
CV
14222003-10-03 Corinna Vinschen <vinschen@redhat.com>
1423
1424 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1425 reg_size to keep GCC silent.
1426
0fd85043
CV
14272003-10-03 Corinna Vinschen <vinschen@redhat.com>
1428
1429 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1430 base for DW_EH_PE_textrel encodings.
1431 (read_encoded_value): Add a DW_EH_PE_textrel case.
1432 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1433 section.
1434
37b517aa
MK
14352003-10-03 Mark Kettenis <kettenis@gnu.org>
1436
1437 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1438
12c266ea
AC
14392003-10-02 Andrew Cagney <cagney@redhat.com>
1440
1441 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1442 REGISTER_RAW_SIZE.
1443 * gdbarch.h, gdbarch.c: Re-generate.
1444 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1445 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1446 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1447 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1448 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1449 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1450 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1451 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1452 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1453 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1454 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1455 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1456 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1457 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1458 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1459 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 1460
78ba4af6
JB
14612003-10-02 Jim Blandy <jimb@redhat.com>
1462
1463 * dwarf2read.c (struct die_info): Doc fix.
1464
617daa0e
CV
14652003-10-02 Corinna Vinschen <vinschen@redhat.com>
1466
1467 * sh-tdep.c: Running thru gdb_indent.sh.
1468
e5e33cd9
CV
14692003-10-02 Corinna Vinschen <vinschen@redhat.com>
1470
1471 * sh-tdep.c (sh_justify_value_in_reg): New function.
1472 (sh_stack_allocsize): Ditto.
1473 (flt_argreg_array): New array used for floating point argument
1474 passing.
1475 (sh_init_flt_argreg): New function.
a8f4cde1 1476 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
1477 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1478 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1479 Fix argument passing strategy.
1480 (sh_push_dummy_call_nofpu): Ditto.
1481
5fe830e4
AC
14822003-10-01 Andrew Cagney <cagney@redhat.com>
1483
1484 * value.h (register_value_being_returned): Declare. Replace
1485 "value_being_returned".
1486 * infcall.c (call_function_by_hand): Use
1487 register_value_being_returned.
1488 * infcmd.c (print_return_value): Call
1489 "register_value_being_returned", handle struct return locally.
1490 * values.c (register_value_being_returned): New function. Replace
1491 "value_being_returned".
a8f4cde1 1492
5fe830e4 14932003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
1494
1495 * linux-proc.c (linux_do_registers): New function.
1496 (linux_make_note_section): Use linux_do_registers in case of
1497 single threaded inferior programs.
1498
64f395bf
AC
14992003-10-01 Andrew Cagney <cagney@redhat.com>
1500
1501 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1502 use STRUCT_ADDR. When not using "struct return convention", pass
1503 "0" to "value_being_returned". Add FIXMEs.
1504 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1505 value_being_returned. Add comments.
1506 * values.c (value_being_returned): Add fixme.
1507 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1508 (hppa_value_returned_from_stack): Add FIXME.
1509
639d11d3
DC
15102003-09-30 David Carlton <carlton@kealia.com>
1511
1512 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1513 'has_children' and 'next' by 'child' and 'sibling'.
1514 (read_comp_unit): Rework algorithm, breaking body into
1515 read_die_and_children and read_die_and_siblings.
1516 (read_die_and_children, read_die_and_siblings): New.
1517 (read_full_die): Add 'has_children' argument; set it instead of
1518 the die's 'has_children' field. Minor formatting cleanup.
1519 (free_die_list): Use die->child and die->sibling instead of
1520 die->next.
1521 (dump_die_list): Ditto.
1522 (sibling_die): Use die->sibling.
1523 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1524 'has_children' and 'next' fields.
a8f4cde1
RM
1525 (process_die, read_file_scope, read_func_scope)
1526 (read_lexical_block_scope, read_structure_scope)
1527 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
1528 (read_namespace, read_subroutine_type, dump_die): Ditto.
1529
5bffac25
AC
15302003-09-30 Andrew Cagney <cagney@redhat.com>
1531
1532 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1533 to 224, not 220.
1534
f30992d4
AC
15352003-09-30 Andrew Cagney <cagney@redhat.com>
1536
1537 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1538 REGISTER_VIRTUAL_SIZE.
1539 * gdbarch.h, gdbarch.c: Regenerate.
1540 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1541 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1542 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1543
2e092625
AC
15442003-09-29 Andrew Cagney <cagney@redhat.com>
1545
1546 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1547 DEPRECATED_REGISTER_VIRTUAL_TYPE.
1548 * gdbarch.h, gdbarch.c: Regenerate.
1549 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1550 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
1551
1552 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1553 * remote-vxmips.c (vx_read_register): Ditto.
1554 * remote-vx68.c (vx_read_register): Ditto.
1555 * gnu-nat.c (inf_validate_procs): Ditto.
1556
7a5dd6ee
JB
15572003-09-29 J. Brobecker <brobecker@gnat.com>
1558
1559 * infcall.c (call_function_by_hand): Fix build failure
1560 introduced in the previous change to this file.
1561
1fe43d45
AC
15622003-09-29 Andrew Cagney <cagney@redhat.com>
1563
1564 * NEWS: Mention Objective-C.
1565
e28a332c
JG
15662003-09-29 Jerome Guitton <guitton@act-europe.fr>
1567
1568 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1569 test if the register has been saved on the stack.
1570 (arm_scan_prologue_cache): When analysing the instruction
1571 "str lr, [sp, #-4]", save the address where lr has been stored.
1572
9ff63c35
AC
15732003-09-28 Andrew Cagney <cagney@redhat.com>
1574
7f5f525d
AC
1575 * frame.c (frame_read_unsigned_register): Delete function.
1576 * frame.h (frame_read_unsigned_register): Delete declaration.
1577 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1578 get_frame_register_unsigned.
1579 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1580 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1581 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 1582
7f5f525d
AC
1583 * frame.h (frame_read_register): Delete declaration.
1584 * frame.c (frame_read_register): Delete function.
1585 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1586 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1587 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1588 * mips-tdep.c (mips_register_to_value): Ditto.
1589 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1590 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1591
1592 * frame.c (frame_read_signed_register): Delete function.
1593 (frame_read_unsigned_register): Update comments.
1594 * frame.h (frame_read_signed_register): Delete declaration.
1595 * h8300-tdep.c (h8300_print_register): Use
1596 get_frame_register_signed.
1597 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1598
9ff63c35
AC
1599 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1600 Rename VALUE_RETURNED_FROM_STACK.
1601 * infcmd.c (print_return_value): Update.
1602 * infcall.c (call_function_by_hand): Update.
1603
41d041d6
MK
16042003-09-28 Mark Kettenis <kettenis@gnu.org>
1605
1606 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1607 regcache argument and reverse the order of the other two
1608 arguments. Remove local regcache variable. Determine
1609 architecture from REGCACHE. Update comments.
1610 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1611 reverse the order of the other two arguments. Remove local
1612 regcache variable. Determine architecture from REGCACHE. Update
1613 comments.
1614 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1615 prototypes. Update comments.
1616 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1617 comment.
1618 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1619 Update.
1620 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1621 * i386-interix-nat.c (supply_fpregset): Update.
1622 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1623 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1624 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1625 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1626 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1627 Update.
1628 * i386obsd-tdep.c (fetch_core_registers): Update.
1629 * i386v4-nat.c (supply_fpregset): Update.
1630 * x86-64-linux-nat.c (supply_fpregset): Update.
1631 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 1632
1cb97e17
MK
16332003-09-27 Mark Kettenis <kettenis@gnu.org>
1634
5716833c
MK
1635 * i386-tdep.h: Put opaque declarations in alphabetical
1636 order. Remove spurious whitespace.
1637 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1638 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1639 * i386-tdep.c (MM0_REGNUM): Remove define.
1640 (i386_mmx_regnum_p): Add gdbarch argument.
1641 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1642 Rewrite using new macro definitions for FPU/SSE registers.
1643 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1644 definitions from i387-tdep.h.
1645 (i386_register_name): Update.
1646 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1647 new macro definitions for FPU/SSE registers.
1648 (i386_extract_return_value): Determine whether floating-point
1649 registers are present by examining REGCACHE's architecture.
1650 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1651 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1652 FPU/SSE registers.
1653 (i386_register_type): Update.
1654 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1655 definitions for FPU registers. Use REGCACHE's architecture to
1656 determine the appropriate register numbers.
1657 (i386_pseudo_register_read, i386_pseudo_register_write,
1658 i386_register_reggroup_p): Update.
1659 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1660 TDEP->mm0_regnum.
1661 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1662 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1663 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1664 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1665 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1666 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1667 *' to `void *'.
1668 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1669 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1670 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1671 definitions for FPU/SSE registers.
1672 (FXSAVE_MXCSR_ADDR): New define.
1673 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1674 TDEP->mm0_regnum.
1675 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1676 (I387_ST0_REGNUM): Define.
1677
41d35cb0
MK
1678 * regcache.h (get_regcache_arch): New prototype.
1679 * regcache.c (get_regcache_arch): New function.
1680
54e74f72
MK
1681 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1682 whitespace.
1683
1cb97e17
MK
1684 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1685 Initialize using ARRAY_SIZE.
1686
0968aa8c
AC
16872003-09-27 Andrew Cagney <cagney@redhat.com>
1688
1689 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1690 "init_frame_pc_default".
1691 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1692 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1693 * vax-tdep.c (vax_gdbarch_init): Update.
1694 * v850-tdep.c (v850_gdbarch_init): Update.
1695 * sh64-tdep.c (sh64_gdbarch_init): Update.
1696 * s390-tdep.c (s390_gdbarch_init): Update.
1697 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1698 * mcore-tdep.c (mcore_gdbarch_init): Update.
1699 * h8300-tdep.c (h8300_gdbarch_init): Update.
1700 * cris-tdep.c (cris_gdbarch_init): Update.
1701 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1702
54c84734
MK
17032003-09-26 Mark Kettenis <kettenis@gnu.org>
1704
1705 * regset.h: New file.
1706 * Makefile.in (regset_h): Add.
1707
1b1d3794
AC
17082003-09-25 Andrew Cagney <cagney@redhat.com>
1709
1710 * frame.h (deprecated_frame_saved_regs): Rename
1711 get_frame_saved_regs.
1712 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1713 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1714 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1715 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1716 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1717
e6beb428
AC
17182003-09-25 Andrew Cagney <cagney@redhat.com>
1719
1720 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1721 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1722 and Java.
1723 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1724 arm*-*-* do not use the new frame code.
1725
710122da
DC
17262003-09-25 David Carlton <carlton@kealia.com>
1727
1728 * c-exp.y: Remove 'register' declarations.
1729 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1730
79c2c32d
DC
17312003-09-25 David Carlton <carlton@kealia.com>
1732
1733 * c-exp.y: Include cp-support.h. Add qualified_type.
1734 (yylex): Delete nested type hack; add comments.
1735 * cp-namespace.c (cp_lookup_nested_type): New function.
1736 * cp-support.h: Declare cp_lookup_nested_type.
1737 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1738 instead of value_struct_elt_for_reference.
1739 * valops.c: Include cp-support.h.
1740 (value_aggregate_elt): New function.
1741 (value_namespace_elt): Ditto.
1742 (value_struct_elt_for_reference): Make static.
1743 * value.h: Delete declaration of value_struct_elt_for_reference;
1744 add declaration for value_aggregate_elt.
1745 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1746 (valops.o): Ditto.
1747
898c62f5
DJ
17482003-09-25 Daniel Jacobowitz <drow@mvista.com>
1749
1750 * stack.c: Include "reggroups.h".
1751 (frame_info): Only display registers in all_reggroup.
1752 * Makefile.in (stack.o): Update dependencies.
1753
28cd8767
JG
17542003-09-25 Jerome Guitton <guitton@act-europe.fr>
1755
1756 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1757 "add ip, sp #n" in the prologue.
1758 (arm_scan_prologue): Ditto.
1759
a4ab2b5d
JG
17602003-09-25 Jerome Guitton <guitton@act-europe.fr>
1761
1762 * MAINTAINERS (write after approval): Add myself.
1763
3f244638
AS
17642003-09-25 Andreas Schwab <schwab@suse.de>
1765
1766 * m68k-tdep.c: Include "dwarf2-frame.h".
1767 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1768 * Makefile.in (m68k-tdep.o): Update dependencies.
1769
1c0159e0
CV
17702003-09-25 Corinna Vinschen <vinschen@redhat.com>
1771
1772 * sh-tdep.c (struct frame_extra_info): Remove.
1773 (struct sh_frame_cache): New structure.
1774 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1775 (GET_TARGET_REG): Ditto but target register.
1776 (GET_PUSHED_REG): Remove.
1777 (IS_MOV_ARG_TO_REG): New macro.
1778 (IS_MOV_ARG_TO_IND_R14): New macro.
1779 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1780 (IS_MOVW_PCREL_TO_REG): New macro.
1781 (IS_MOVL_PCREL_TO_REG): New macro.
1782 (IS_SUB_REG_FROM_SP): New macro.
1783 (IS_ARG_MOV): Remove.
1784 (IS_MOV_TO_R14): Remove.
1785 (IS_RESTORE_FP): New macro.
1786 (IS_RTS): New macro.
1787 (IS_LDS): New macro.
1788 (IS_MOV_FP_SP): New macro.
1789 (IS_ADD_REG_TO_FP): New macro.
1790 (IS_ADD_IMM_FP): New macro.
1791 (sh_skip_prologue_hard_way): Remove.
1792 (sh_saved_pc_after_call): Remove.
1793 (sh_frame_chain): Remove.
1794 (sh_find_callers_reg): Remove.
a8f4cde1 1795 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
1796 (sh_fp_frame_init_saved_regs): Remove.
1797 (sh_init_extra_frame_info): Remove.
1798 (sh_analyze_prologue): New function.
1799 (sh_skip_prologue): Remove deprecated code. Rely on new function
1800 sh_analyze_prologue when after_prologue fails.
1801 (sh_frame_saved_pc): Remove.
1802 (sh_alloc_frame_cache): New function.
1803 (sh_frame_cache): Ditto.
1804 (sh_frame_prev_register): Ditto.
1805 (sh_frame_this_id): Ditto.
1806 (sh_frame_unwind): New structure defining the heuristic frame
1807 sniffer interface.
1808 (sh_frame_sniffer): New function.
1809 (sh_unwind_sp): Ditto.
1810 (sh_unwind_pc): Ditto.
1811 (sh_unwind_dummy_id): Ditto.
1812 (sh_frame_base_address): Ditto.
1813 (sh_frame_base): New structure defining new frame base code.
1814 (sh_in_function_epilogue_p): New function.
1815 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1816 code and to call all new code instead. Initialize dwarf2 and
1817 heuristic frame sniffer.
1818
5f9769d1
PH
18192003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1820
a8f4cde1
RM
1821 * parser-defs.h (struct exp_descriptor): New definition, containing
1822 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
1823 evaluating expressions.
1824 (exp_descriptor_standard): Declare new variable.
1825 (print_subexp): Make global and declare here (from expprint.c).
1826 (dump_subexp): Ditto.
1827 (dump_subexp_body_standard): Declare.
1828 (operator_length_standard): Declare.
1829 (op_name_standard): Declare.
1830 (print_subexp): Declare.
1831 (print_subexp_standard): Declare.
1832
1833 * language.h (struct language_defn): Add la_exp_desc field to hold
1834 pointer to table for language-specific operators.
1835 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
1836
1837 * parse.c (operator_length): Move most code to new
5f9769d1 1838 operator_length_standard function. Use language-specific information.
a8f4cde1 1839 (operator_length_standard): New function taking most code from
5f9769d1
PH
1840 operator_length.
1841 (exp_descriptor_standard): New constant.
a8f4cde1
RM
1842
1843 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 1844 and OP_EXTENDED_LAST.
a8f4cde1
RM
1845
1846 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
1847 Make global; remove static declaration.
1848 Move most code to print_subexp_standard.
a8f4cde1 1849 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
1850 print_subexp.
1851 (op_name): Add expression to argument signature.
a8f4cde1 1852 Use langauge-specific op_name.
5f9769d1
PH
1853 Move most code to op_name_standard.
1854 (op_name_standard): New function, containing code formerly in op_name.
1855 (dump_subexp): Use new version of op_name function.
1856 Use language-specific dump_subexp_body, and move most existing code to
1857 dump_subexp_body_standard.
1858 (dump_raw_expression): Use new op_name interface.
1859 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1860 (dump_subexp_body_standard): New function, containing code formerly
1861 in dump_subexp_body.
a8f4cde1 1862
5f9769d1
PH
1863 * language.c (unknown_language): Add default la_exp_desc field and
1864 remove evaluate_exp field.
1865 (auto_language): Ditto.
1866 (local_language): Ditto.
1867 * f-lang.c (f_language_defn): Ditto.
1868 * c-lang.c (c_language_defn): Ditto.
1869 (cplus_language_defn): Ditto.
1870 (asm_language_defn): Ditto.
1871 (minimal_language_defn): Ditto.
1872 * p-lang.c (pascal_language_defn): Ditto.
1873 * m2-lang.c (m2_language_defn): Ditto.
1874 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
1875
1876 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
1877 Java-specific expression evaluator.
1878 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1879 field.
a8f4cde1 1880 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
1881 Scheme-specific expression evaluator.
1882 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1883 field.
1884 * objc-lang.c (print_object_command): Take evaluate_exp from the
1885 la_exp_desc field.
a8f4cde1 1886
5f9769d1 1887 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
1888
1889 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
1890 la_exp_desc's type.
1891 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 1892
24daaebc
PH
18932003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1894
1895 * parser-defs.h (operator_length): Declare.
a8f4cde1 1896
24daaebc
PH
1897 * parse.c (length_of_subexp): Use operator_length to get operator
1898 lengths and arities for operators.
1899 Move most code to new operator_length function.
a8f4cde1 1900 (operator_length): New function absorbing most code from
24daaebc
PH
1901 length_of_subexp.
1902 (prefixify_subexp): Remove large case and use operator_length instead.
1903 (parse_exp_1): Use renamings:
a8f4cde1 1904 dump_prefix_expression => dump_raw_expression and
24daaebc 1905 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 1906
24daaebc
PH
1907 * expression.h (dump_prefix_expression): Rename to ...
1908 (dump_raw_expression): New name.
1909 (dump_postfix_expression): Rename to ...
1910 (dump_prefix_expression): New name.
a8f4cde1 1911
24daaebc
PH
1912 * expprint.c (dump_subexp): Make global. Add comment.
1913 Move most existing code to dump_subexp_body.
1914 (dump_subexp_body): New function.
1915 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 1916 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
1917 work before the expression is prefixified.
1918 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 1919 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 1920 that's what it does.
a8f4cde1 1921 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
1922 prefixified expression.
1923 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 1924
8c2957c4
JB
19252003-09-22 Jim Blandy <jimb@redhat.com>
1926
1927 * dwarf2read.c (read_array_type): When building the type for an
1928 array of unspecified length, make sure to choose the upper bound
1929 so that the array's total length comes out to be zero --- that's
1930 how we represent such arrays.
1931
592e3010
MC
19322003-09-22 Michael Chastain <mec@shout.net>
1933
1934 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1935
365c70b1
JJ
19362003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1937
1938 * top.c (quit_force): Fix indirect call to quit_target so
1939 a struct qt_args pointer is passed.
1940
5d6eb653
AC
19412003-09-22 Andrew Cagney <cagney@redhat.com>
1942
1943 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1944 * arch-utils.c (init_frame_pc_noop): Delete function.
1945 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1946 "init_frame_pc".
1947 * mips-tdep.c (mips_gdbarch_init): Ditto.
1948 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1949 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1950 declaration.
1951 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1952 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1953 declaration.
1954 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1955
b222a67f
AG
19562003-09-22 Anthony Green <green@redhat.com>
1957
1958 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1959 declaration.
1960
d5b5ac79
AC
19612003-09-20 Andrew Cagney <cagney@redhat.com>
1962
deafb061
AC
1963 * breakpoint.c: Eliminate ARGSUSED.
1964 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1965 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1966 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1967 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1968 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1969 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1970 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1971 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1972 * wince.c, remote-vx.c: Ditto.
1973
d5b5ac79
AC
1974 * cli/cli-script.c: Remove "register" attributes.
1975 * config/pa/tm-hppa.h: Ditto.
1976 * cli/cli-decode.c: Ditto.
1977 * cli/cli-cmds.c: Ditto.
1978
c6316faa
AC
19792003-09-19 Andrew Cagney <cagney@redhat.com>
1980
1981 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1982 DEPRECATED_NPC_REGNUM.
1983 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1984
f4f99b11
CF
19852003-09-19 Christopher Faylor <cgf@redhat.com>
1986
1987 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1988
1708f284
JB
19892003-09-19 Jim Blandy <jimb@redhat.com>
1990
1991 * macrotab.c (macro_include): Use the correct comparison to find
1992 the appropriate place for this inclusion in the list.
1993
b9fbf434
AC
19942003-09-19 Andrew Cagney <cagney@redhat.com>
1995
1996 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1997 (DEPRECATED_HPUX_TEXT_END): Define.
1998 (deprecated_hpux_text_end): Declare.
1999 (struct target_ops): Declare opaque.
2000 * hppah-nat.c (text_end): Make static.
2001 (deprecated_hpux_text_end): New function.
2002 * exec.c (text_end): Delete global variable.
2003 (NEED_TEXT_START_END): Do not define.
2004 (exec_file_attach): Replace code computing "text_end" code with
2005 call to DEPRECATED_HPUX_TEXT_END.
2006
5b03f266
AC
20072003-09-19 Andrew Cagney <cagney@redhat.com>
2008
2009 * utils.c (align_up, align_down): New functions.
2010 * defs.h (align_up, align_down): Declare.
2011 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2012 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2013 and "align_down".
2014 (round_up, round_down): Delete functions.
2015 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2016 "align_down".
2017 (ROUND_DOWN, ROUND_UP): Delete macros.
2018 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2019 * h8300-tdep.c: Replace "round_up" and "round_down" with
2020 "align_up" and "align_down".
2021 (round_up, round_down): Delete macros.
2022 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2023 "align_down".
2024 (ROUND_UP, ROUND_DOWN): Delete macros.
2025
51db5742
JB
20262003-09-18 J. Brobecker <brobecker@gnat.com>
2027
2028 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2029 hard-coded constant. Use the proper machine name instead.
2030
77949794
AC
20312003-09-17 Andrew Cagney <cagney@redhat.com>
2032
2033 * sparc-tdep.c (legacy_register_name): Delete function.
2034 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2035 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2036 * infcmd.c (gdb_register_name): Delete variable.
2037 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2038 REGISTER_NAME and "tm.h".
2039 * gdbarch.h, gdbarch.c: Regenerate.
2040 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2041 REGISTER_NAMES in comments.
2042 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2043 * m68klinux-nat.c (regmap): Ditto.
2044
b55c33cc
JB
20452003-09-17 Jim Blandy <jimb@redhat.com>
2046
2047 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2048
957e27ac
AC
20492003-09-17 Andrew Cagney <cagney@redhat.com>
2050
2051 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2052 (ppcnbsd_init_abi): Set "use_struct_convention" to
2053 "ppcnbsd_use_struct_convention".
2054
192cb3d4
MK
20552003-09-17 Mark Kettenis <kettenis@gnu.org>
2056
2057 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2058 * gdbarch.h, gdbarch.c: Regenerate.
2059 (stabs_argument_has_addr): New architecture method.
2060 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2061 * arch-utils.c: Include "buildsym.h".
2062 (default_stabs_argument_has_addr): New function.
2063 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2064 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2065
efe59759
AC
20662003-09-17 Andrew Cagney <cagney@redhat.com>
2067
2068 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2069 * gdbarch.h, gdbarch.c: Regenerate.
2070 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2071 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2072 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2073 * sparcnbsd-tdep.c: Update.
a8f4cde1 2074
62700349
AC
20752003-09-17 Andrew Cagney <cagney@redhat.com>
2076
2077 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2078 * gdbarch.h, gdbarch.c: Regenerate.
2079 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2080 * d10v-tdep.c, frame.c: Update.
2081 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2082 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2083 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2084 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2085 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2086 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2087 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2088 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2089 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2090 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2091 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2092 * config/pa/nm-hppah.h: Update.
2093
b9ff3018
AC
20942003-09-16 Andrew Cagney <cagney@redhat.com>
2095
2096 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2097 "use_struct_convention" to "ppc_linux_use_struct_convention".
2098 (ppc_linux_use_struct_convention): New function.
2099 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2100 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2101 "rs6000_use_struct_convention".
2102 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2103 declaration.
2104 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2105 Delete function.
2106
aa1ee363
AC
21072003-09-16 Andrew Cagney <cagney@redhat.com>
2108
2109 * buildsym.c: Remove more occurances of "register".
2110 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2111 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2112 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2113 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2114 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2115 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2116 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2117 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2118
f2ea0907
CV
21192003-09-16 Corinna Vinschen <vinschen@redhat.com>
2120
2121 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2122 numbers to enumeration values.
2123 * sh-tdep.c: Accomodate above change.
2124 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2125 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2126 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2127 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2128 (IS_FPUSH): Rename from IS_FMOV.
2129 (sh_extract_struct_value_address): Remove useless comment.
2130 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2131 instead of own local values.
2132 (sh_dump_tdep): Remove.
2133 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2134 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2135
1c704f11
AC
21362003-09-15 Andrew Cagney <cagney@redhat.com>
2137
2138 * doublest.c (convert_floatformat_to_doublest): No longer need to
2139 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2140
ac79b88b
DJ
21412003-09-15 Daniel Jacobowitz <drow@mvista.com>
2142
2143 * values.c (unpack_double): Call floatformat_is_valid.
2144
1c671366
MK
21452003-09-15 Mark Kettenis <kettenis@gnu.org>
2146
de5227fb
MK
2147 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2148 ps_strings into a long.
2149
1c671366
MK
2150 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2151 _initialize_am64fbsd_nat.
2152
a604369a
KB
21532003-09-15 Kevin Buettner <kevinb@redhat.com>
2154
2155 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2156 associated with DW_AT_ranges attribute is out of bounds.
2157
b3cacbee
DL
21582003-09-15 David Lecomber <dsl@sources.redhat.com>
2159
2160 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2161
d0f37bb2
MC
21622003-09-14 Michael Chastain <mec@shout.net>
2163
2164 * config/m68k/nm-apollo68v.h: Delete.
2165 * config/m68k/xm-apollo68v.h: Delete.
2166
69517000
AC
21672003-09-14 Andrew Cagney <cagney@redhat.com>
2168
2169 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2170 * dcache.c: Update copyrights and descriptions.
2171 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2172
ef8b349d
AC
21732003-09-14 Andrew Cagney <cagney@redhat.com>
2174
2175 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2176 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2177
52f0bd74
AC
21782003-09-14 Andrew Cagney <cagney@redhat.com>
2179
2180 * alpha-nat.c: Remove some occurances of "register".
2181 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2182 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2183 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2184 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2185 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2186 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2187 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2188 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2189 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2190 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2191 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2192 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2193 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2194 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2195 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2196 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2197 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2198 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2199 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2200 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2201 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2202 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 2203
4a4b3fed
AC
22042003-09-13 Andrew Cagney <cagney@redhat.com>
2205
2206 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2207 * ppc-tdep.h (struct regcache): Declare opaque.
2208 * objfiles.h (struct objfile_data): Declare opaque.
2209 * cp-support.h (struct objfile): Declare opaque.
2210 * linux-nat.h (target_waitstatus): Declare opaque.
2211
2110b94f
MK
22122003-09-14 Mark Kettenis <kettenis@gnu.org>
2213
1c671366
MK
2214 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2215 (stabs_argument_has_addr): New architecture method.
2216 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2217 * arch-utils.c: Include "buildsym.h".
2218 (default_stabs_argument_has_addr): New function.
2219 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2220 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2221
2110b94f
MK
2222 * cris-tdep.c (cris_gdbarch_init): Set
2223 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2224 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2225 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2226 * mips-tdep.c (mips_gdbarch_init): Likewise.
2227 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2228 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2229
48436ce6
AC
22302003-09-13 Andrew Cagney <cagney@redhat.com>
2231
2232 * values.c (using_struct_return): Delete "function" and "funcaddr"
2233 parameters.
2234 * value.h (using_struct_return): Update declaration.
2235 * infcmd.c (finish_command_continuation): Update.
2236 (finish_command): Update.
2237 * infcall.c (call_function_by_hand): Update.
2238 * eval.c (evaluate_subexp_standard): Update.
2239
403d9909
CF
22402003-09-13 Christopher Faylor <cgf@redhat.com>
2241
2242 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2243 SSE registers since gdb will not operate correctly without this.
2244 Restore include file ordering munged in previous change.
2245 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2246
ebf7d56b
MK
22472003-09-13 Mark Kettenis <kettenis@gnu.org>
2248
8e823e25
MK
2249 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2250 REG_STRUCT_HAS_ADDR.
2251 * gdbarch.c, gdbarch.h: Updated.
2252 * infcall.c (call_function_by_hand): Update.
2253 * stabsread.c (define_symbol): Updated.
a8f4cde1 2254
ebf7d56b
MK
2255 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2256
d3f13f72
CF
22572003-09-12 Christopher Faylor <cgf@redhat.com>
2258
2259 * win32-nat.c: Reorganize so that defines used by target headers are
2260 actually defined by the system headers.
2261 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2262 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2263
14f75137
JB
22642003-09-12 Jim Blandy <jimb@redhat.com>
2265
d646061f
JB
2266 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2267 the file has no .data, .bss, or .rodata sections. Instead wait
2268 until we see a variable alleged to live in one of those sections.
2269
2a13f9bc
JB
2270 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2271 .bss section, presume that any variables we find live in the
2272 .rodata section.
2273
4f49b26b
JB
2274 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2275 offsets for global and static variables.
2276
14f75137
JB
2277 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2278 symbol types are, by definition, in the .data section, so it is
2279 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2280 If there is no .data section, there should be no N_DATA or N_DATA
2281 | N_EXT symbols.
2282
212c460c
MK
22832003-09-12 Mark Kettenis <kettenis@gnu.org>
2284
2285 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2286 (amd64fbsd_sigcontext_addr): Rewrite.
2287 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2288 with correct values.
2289 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2290 (amd64fbsd_init_abi): Fix typo.
2291
68856ea3
AC
22922003-09-12 Andrew Cagney <cagney@redhat.com>
2293
2294 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2295 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2296
627b3ba2
AC
22972003-09-12 Andrew Cagney <cagney@redhat.com>
2298
2299 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2300 "entry_file_highpc". Update comments.
2301 * defs.h (deprecated_inside_entry_file): Rename
2302 "inside_entry_file".
2303 * blockframe.c (deprecated_inside_entry_file): Rename
2304 "inside_entry_file".
2305 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2306 * vax-tdep.c (vax_frame_chain): Update.
2307 * sh64-tdep.c (sh64_frame_chain): Update.
2308 * sh-tdep.c (sh_frame_chain): Update.
2309 * rs6000-tdep.c (rs6000_frame_chain): Update.
2310 * ns32k-tdep.c (ns32k_frame_chain): Update.
2311 * mips-tdep.c (mips_frame_chain): Update.
2312 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2313 * m32r-tdep.c (m32r_frame_this_id): Update.
2314 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2315 * frv-tdep.c (frv_frame_this_id): Update.
2316 * d10v-tdep.c (d10v_frame_this_id): Update.
2317 * cris-tdep.c (cris_frame_chain): Update.
2318 * blockframe.c (legacy_frame_chain_valid): Update.
2319 * avr-tdep.c (avr_frame_this_id): Update.
2320 * arm-tdep.c (arm_prologue_this_id): Update.
2321 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2322 * objfiles.c (objfile_relocate): Update.
2323 * mipsread.c (mipscoff_symfile_read): Update.
2324 (mipscoff_symfile_read): Update.
2325 * mdebugread.c (parse_partial_symbols): Update.
2326 * dwarfread.c (read_file_scope): Update.
2327 * dwarf2read.c (read_file_scope): Update.
2328 * dbxread.c (read_dbx_symtab): Update.
2329 (read_dbx_symtab): Update.
2330 * coffread.c (complete_symtab): Update.
2331
b0abbc58
JJ
23322003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2333
2334 * top.c (quit_target): New static helper function.
2335 (quit_force): Moved code to quit_target(). Call quit_target()
2336 via catch_errors() to catch errors during quit.
2337
a1632d59
DC
23382003-09-11 David Carlton <carlton@kealia.com>
2339
2340 * buildsym.c (finish_block): Use allocate_block to allocate the
2341 block.
2342 * mdebugread.c (new_block): Add FIXME.
2343
5c4e30ca
DC
23442003-09-11 David Carlton <carlton@kealia.com>
2345
2346 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2347 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2348 (recursive_dump_type): Ditto.
2349 * printcmd.c (print_formatted): Ditto.
2350 * typeprint.c (print_type_scalar): Ditto.
2351 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2352 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2353 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2354 maint_cplus_cmd_list.
2355 * cp-support.c: Make maint_cplus_cmd_list extern.
2356 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2357 command.h.
2358 (lookup_symbol_file): Look in possible namespace blocks when
2359 appropriate.
2360 (initialize_namespace_symtab): New.
2361 (get_possible_namespace_block, free_namespace_block)
2362 (check_possible_namespace_symbols)
2363 (check_possible_namespace_symbols_loop)
2364 (check_one_possible_namespace_symbol)
2365 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2366 (_initialize_cp_namespace): Ditto.
2367 * block.h: Declare allocate_block.
2368 * block.c (allocate_block): New.
2369 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2370 allocate_block.
2371 * symfile.h: Update declaration of add_psymbol_to_list.
2372 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2373 question.
2374 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2375 scan_partial_symbols_call.
2376 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2377 helper functions.
2378 (add_partial_symbol): If necessary, scan mangled names for names
2379 of namespaces.
2380 (add_partial_namespace): Add NAMESPACE argument; generate partial
2381 symbols associated to namespaces.
2382 (add_partial_enumeration): Add NAMESPACE argument.
2383 (new_symbol): Allow namespace syms.
2384 (read_namespace): Generate namespace syms.
2385 * objfiles.h: Add opaque declaration of struct symtab.
2386 (struct objfile): Add cp_namespace_symtab member.
2387 * objfiles.c (allocate_objfile): Set
2388 objfile->cp_namespace_symtab.
2389 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2390 dictionary_h, command_h.
2391
33a7c2fc
AC
23922003-09-11 Andrew Cagney <cagney@redhat.com>
2393
2394 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2395 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2396 near the function's end.
2397 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2398 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2399 regcache_raw_write_signed to set SP_REGNUM.
2400
63cd24fe
EZ
24012003-09-11 Elena Zannoni <ezannoni@redhat.com>
2402
2403 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2404 orig_addrs is set up properly.
2405
f27dd7fd
AC
24062003-09-11 Andrew Cagney <cagney@redhat.com>
2407
2408 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2409 * gdbarch.h, gdbarch.c: Re-generate.
2410 * infcall.c (call_function_by_hand): Update.
2411 * hppa-tdep.c (hppa_push_arguments): Update.
2412 * ada-lang.c (place_on_stack): Update.
2413 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2414 * sparc-tdep.c (sparc_gdbarch_init): Update.
2415 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2416 * hppa-tdep.c (hppa_gdbarch_init): Update.
2417 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2418 stack_align.
2419
f630a401
DJ
24202003-09-11 Daniel Jacobowitz <drow@mvista.com>
2421
2422 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2423 register do need a frame.
2424
0ddabb4c
AC
24252003-09-11 Andrew Cagney <cagney@redhat.com>
2426
2427 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2428 buildable since GDB 5.0.
2429 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2430 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2431 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2432 * irix4-nat.c: Delete file.
2433 * config/mips/irix4.mh: Delete file.
2434 * config/mips/irix3.mh: Delete file.
2435 * config/mips/irix3.mt: Delete file.
2436 * config/mips/tm-irix3.h: Delete file.
2437 * config/mips/nm-irix3.h: Delete file.
2438 * config/mips/xm-irix3.h: Delete file.
2439 * config/mips/nm-irix4.h: Delete file.
2440 * config/mips/xm-irix4.h: Delete file.
2441 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2442
fde2cceb
JB
24432003-09-10 J. Brobecker <brobecker@gnat.com>
2444
2445 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2446 * Makefile.in (hppa-tdep.o): Update dependencies.
2447
66f667f5
JW
24482003-09-10 James E Wilson <wilson@specifixinc.com>
2449
ef5fd69f
JW
2450 * MAINTAINERS: Change my e-mail address. Move to paper trail
2451 section.
66f667f5 2452
53e8aaea
KB
24532003-09-10 Kevin Buettner <kevinb@redhat.com>
2454
2455 * MAINTAINERS (frv): New ISA entry.
2456
dcc6aaff
KB
24572003-09-10 Kevin Buettner <kevinb@redhat.com>
2458
2459 * frv-tdep.c (dis-asm.h): Include.
2460 * Makefile.in (frv-tdep.o): Update dependencies.
2461
932644f0
JJ
24622003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2463
2464 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2465 Fix typo for high range of floating registers.
2466
91c24f0a
DC
24672003-09-09 David Carlton <carlton@kealia.com>
2468
2469 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2470 highpc initialization here out of scan_partial_symbols.
2471 (scan_partial_symbols): Restructure into a recursive version,
2472 calling add_partial_namespace and add_partial_enumeration when
2473 appropriate.
2474 (add_partial_namespace): New.
2475 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2476
c9263853
AC
24772003-09-09 Andrew Cagney <cagney@redhat.com>
2478
e56a0ecc
AC
2479 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2480 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2481 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2482 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2483
794a477a
AC
2484 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2485 (rs6000_push_dummy_call): Set the "TOC" register.
2486
c9263853
AC
2487 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2488 methods "max_register_raw_size", "max_register_virtual_size" or
2489 "register_virtual_size".
2490
afa7d0b2
ILT
24912003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2492
2493 * MAINTAINERS: Update my e-mail address.
2494
7a41266b
AC
24952003-09-09 Andrew Cagney <cagney@redhat.com>
2496
2497 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2498 (rs6000_push_dummy_call): Store the struct return address.
2499 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2500
77b2b6d4
AC
25012003-09-09 Andrew Cagney <cagney@redhat.com>
2502
2503 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2504 "ppc_sysv_abi_push_arguments".
2505 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2506 "ppc_sysv_abi_push_arguments".
2507 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2508 instead of "push_arguments".
2509 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2510
e8a7b686
AC
25112003-09-09 Andrew Cagney <cagney@redhat.com>
2512
2513 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2514 instead of CALL_DUMMY_ADDRESS.
2515
f86f5ca3
PH
25162003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2517
2518 * p-lang.c: Eliminate "register".
2519 * c-lang.c: Ditto.
2520 * expprint.c: Ditto.
2521 * f-lang.c: Ditto.
2522 * jv-lang.c: Ditto.
2523 * language.c: Ditto.
2524 * m2-lang.c: Ditto.
2525 * parse.c: Ditto.
2526 * scm-lang.c: Ditto.
2527 * objc-lang.c: Ditto.
2528
83ee270e
NC
25292003-09-09 Nick Clifton <nickc@redhat.com>
2530
2531 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2532
a89aa300
AC
25332003-09-04 Andrew Cagney <cagney@redhat.com>
2534
2535 * avr-tdep.c: Include "dis-asm.h".
2536 * cris-tdep.c: Include "dis-asm.h".
2537 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2538 instead of corresponding typedef.
2539 * h8300-tdep.c: Include "dis-asm.h".
2540 * ia64-tdep.c: Include "dis-asm.h".
2541 * i386-tdep.c: Include "dis-asm.h".
2542 (i386_print_insn): Use "struct disassemble_info" instead of
2543 corresponding typedef.
2544 * m68k-tdep.c: Include "dis-asm.h".
2545 * mcore-tdep.c: Include "dis-asm.h".
2546 * mips-tdep.c: Include "dis-asm.h".
2547 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2548 instead of corresponding typedef.
2549 * ns32k-tdep.c: Include "dis-asm.h".
2550 * s390-tdep.c: Include "dis-asm.h".
2551 * sparc-tdep.c: Include "dis-asm.h".
2552 * vax-tdep.c: Include "dis-asm.h".
2553 * v850-tdep.c: Include "dis-asm.h".
2554 * mn10300-tdep.c: Include "dis-asm.h".
2555 * rs6000-tdep.c: Include "dis-asm.h".
2556 * xstormy16-tdep.c: Include "dis-asm.h".
2557 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2558 print_insn_xstormy16.
2559 * Makefile.in (v850-tdep.o): Update dependencies.
2560 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2561 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2562 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2563 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2564 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2565 (gdbarch_h): Remove $(dis_asm_h).
2566 * disasm.c: Include "dis-asm.h".
2567 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2568 corresponding typedef.
2569 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2570 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2571 * gdbarch.sh: Do not include "dis-asm.h".
2572 (struct disassemble_info): Declare opaque.
2573 (TARGET_PRINT_INSN): Update declaration.
2574 * gdbarch.h, gdbarch.c: Re-generate.
2575
88a82a65
AC
25762003-09-08 Andrew Cagney <cagney@redhat.com>
2577
2578 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2579 CALL_DUMMY_ADDRESS, change to a predicate.
2580 * gdbarch.h, gdbarch.c: Re-generate.
2581 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2582 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2583 * infcall.c (call_function_by_hand): Ditto.
2584 * sparc-tdep.c (sparc_push_return_address): Ditto.
2585 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2586 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2587 CALL_DUMMY_ADDRESS with entry_point_address.
2588 * v850-tdep.c (v850_push_return_address): Ditto.
2589 * s390-tdep.c (s390_push_return_address): Ditto.
2590 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2591 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2592 * mcore-tdep.c (mcore_push_return_address): Ditto.
2593 * cris-tdep.c (cris_push_return_address): Ditto.
2594 * arm-tdep.c (arm_push_return_address): Ditto.
2595
3e2c4033
AC
25962003-09-08 Andrew Cagney <cagney@redhat.com>
2597
2598 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2599 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2600 and REG_UNMODIFIED to REG_SAME_VALUE.
2601 (execute_cfa_program): Update.
2602 (dwarf2_frame_cache): Update. Initialize table to
2603 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2604 location.
2605 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2606
39efb398
AC
26072003-09-08 Andrew Cagney <cagney@redhat.com>
2608
2609 * gnu-nat.c: Remove "inline" function attribute.
2610 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2611
f5cb5aca
KB
26122003-09-08 Kevin Buettner <kevinb@redhat.com>
2613
2614 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2615 target.
2616
1cb761c7
KB
26172003-09-08 Kevin Buettner <kevinb@redhat.com>
2618
2619 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2620 (frame_extra_info): Rename this struct to frv_unwind_cache.
2621 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2622 Add fields ``prev_sp'' and ``base''.
2623 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2624 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2625 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2626 Delete.
2627 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2628 Revise all callers. Fill in the unwind cache argument and make
2629 other adjustments to account for new frame mechanisms.
2630 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2631 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2632 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2633 (frv_frame_unwind, frv_frame_base): New structs.
2634 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2635 additional arguments expected by this method and adjust function
2636 body accordingly.
2637 (frv_gdbarch_init): Remove calls to the following functions:
2638 set_gdbarch_deprecated_init_frame_pc(),
2639 set_gdbarch_deprecated_saved_pc_after_call(),
2640 set_gdbarch_deprecated_frame_chain(),
2641 set_gdbarch_deprecated_frame_saved_pc(),
2642 set_gdbarch_deprecated_frame_init_saved_regs(),
2643 set_gdbarch_deprecated_push_arguments(),
2644 set_gdbarch_deprecated_push_return_address(),
2645 set_gdbarch_deprecated_pop_frame(),
2646 set_gdbarch_deprecated_call_dummy_words(),
2647 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2648 set_gdbarch_deprecated_init_extra_frame_info(),
2649 set_gdbarch_deprecated_dummy_write_sp(), and
2650 set_gdbarch_deprecated_pc_in_call_dummy().
2651 Add calls to the following functions:
2652 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2653 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2654 frame_base_set_default().
2655 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 2656
68f6cf99
MK
26572003-09-09 Mark Kettenis <kettenis@gnu.org>
2658
2659 * dwarf2-frame.c (read_encoded_value): Add support for
2660 DW_EH_PE_aligned encoding.
2661
73b65bb0
DJ
26622003-09-08 Daniel Jacobowitz <drow@mvista.com>
2663
2664 * infrun.c (normal_stop): Don't print a message if the inferior
2665 has exited.
2666
7c8a5605
JB
26672003-09-08 Jim Blandy <jimb@redhat.com>
2668
2669 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2670 * dbxread.c: #include "gdb_assert.h".
2671 (read_dbx_symtab): If the objfile has no .data section, use the
2672 section index for the .bss section instead.
2673
7dd88986
DJ
26742003-09-08 Daniel Jacobowitz <drow@mvista.com>
2675
2676 * frame.c (deprecated_safe_get_selected_frame): New function.
2677 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2678 * findvar.c (read_var_value): Call it.
2679
55ff77ac
CV
26802003-09-08 Corinna Vinschen <vinschen@redhat.com>
2681
2682 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2683 (sh64-tdep.o): Add dependencies.
2684 * configure.tgt: Add FIXME to sh-*-linux*.
2685 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2686 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 2687 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
2688 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2689 * sh64-tdep.c: New file, containing all sh64 related code from
2690 sh-tdep.c.
2691 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2692 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 2693 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
2694 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2695 * config/sh/wince.mt (TDEPFILES): Ditto.
2696
bfb39158
DJ
26972003-09-07 Daniel Jacobowitz <drow@mvista.com>
2698
2699 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2700 (stop_wait_callback): Handle !lp->signalled also.
2701 (lin_lwp_has_pending, flush_callback): New functions.
2702 (lin_lwp_wait): Call flush_callback.
2703 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2704 (linux_proc_pending_signals): New function.
2705 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2706
9407de8e
DJ
27072003-09-07 Daniel Jacobowitz <drow@mvista.com>
2708
2709 From Nick Kelsey <nickk@ubicom.com>:
2710 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2711 when the stop PC is at the beginning of a function also.
2712
2ef47cd0
DJ
27132003-09-06 Daniel Jacobowitz <drow@mvista.com>
2714
2715 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2716 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2717
6f4492c8
MK
27182003-09-06 Mark Kettenis <kettenis@gnu.org>
2719
2720 * sol-thread.c: Include "gdb_string.h".
2721
d3420b2f
MK
27222003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2723
2724 * gcore.c: Reorder include files in alphabetical order. Include
2725 "gdb_assert.h". Various coding style fixes.
2726 (derive_stack_segment, derive_heap_segment): Replace check for
2727 non-null BOTTOM and TOP with gdb_assert.
2728 (derive_heap_segment): Replace check for successful creation of
2729 ZERO with gdb_assert.
2730 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2731
5220ea4c
AC
27322003-09-04 Andrew Cagney <cagney@redhat.com>
2733
2734 * thread-db.c (verbose_dlsym): New function.
2735 (thread_db_load): Use verbose_dlsym
2736 (thread_db_new_objfile): Print that libthread_db was loaded, and
2737 that thread debugging was enabled.
2738
6e8c2c06
AC
27392003-09-04 Andrew Cagney <cagney@redhat.com>
2740
2741 * configure.tgt: Add "mips64*-*-*" target. Delete
2742 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2743 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2744 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2745 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2746 mips*-sony-*, and mips64*-*-elf* targets.
2747 * config/mips/embedl.mt: Delete file.
2748 * config/mips/embedl64.mt: Delete file.
2749 * config/mips/mips.mt: Delete file.
2750 * config/mips/mips64.mt: Delete file.
2751 * config/mips/tm-embed.h: Delete file.
2752 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2753 * config/mips/embed64.mt: Delete out-of-date comment.
2754
3a3bc038
AC
27552003-09-04 Andrew Cagney <cagney@redhat.com>
2756
2757 * hppa-tdep.c (hppa_gdbarch_init): Set
2758 "have_nonsteppable_watchpoint".
2759 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2760 * mips-tdep.c (mips_dump_tdep): Do not print
2761 HAVE_NONSTEPPABLE_WATCHPOINT.
2762 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2763 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2764 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2765 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2766
a957e642
CV
27672003-09-04 Corinna Vinschen <vinschen@redhat.com>
2768
2769 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2770 unused code. Add comment.
2771
a6fbcf2f
CV
27722003-09-04 Corinna Vinschen <vinschen@redhat.com>
2773
2774 * breakpoint.c (watchpoint_check): Check for pc being in an
2775 epilogue if watchpoint frame couldn't be found.
2776
c14a44d5
AC
27772003-09-04 Andrew Cagney <cagney@redhat.com>
2778
2779 * Makefile.in: Re-generate all dependencies.
2780
f6c40618
AC
27812003-09-03 Andrew Cagney <cagney@redhat.com>
2782
2783 * arch-utils.h (legacy_print_insn): Delete declaration.
2784 * arch-utils.c (legacy_print_insn): Delete function.
2785 * disasm.c (deprecated_tm_print_insn_info): Delete.
2786 (_initialize_disasm): Delete function, contained code initializing
2787 deprecated_tm_print_insn_info.
2788 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2789 (deprecated_tm_print_insn_info): Delete.
2790 (TARGET_PRINT_INSN): Do not provide a default.
2791 * gdbarch.h, gdbarch.c: Re-generate.
2792
242e8be5
AC
27932003-09-03 Andrew Cagney <cagney@redhat.com>
2794
2795 * disasm.c (fprintf_disasm): New function.
2796 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2797 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2798 reverts 2003-08-14 change.
2799 (_initialize_disasm): Call "init_disassemble_info", instead of
2800 INIT_DISASSEMBLE_INFO_NO_ARCH.
2801
3ffc3dda
MS
28022003-09-03 Michael Snyder <msnyder@redhat.com>
2803
2804 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2805
52d16ba8
AC
28062003-09-03 Andrew Cagney <cagney@redhat.com>
2807
2808 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2809 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2810 * symfile.c (syms_from_objfile): Update.
2811 (reread_symbols): `Update
2812 * exec.c (exec_file_attach): Update.
2813 (exec_file_attach): Update.
2814 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2815 2003-08-29 change.
2816 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2817
eb5492fa
DJ
28182003-09-03 Daniel Jacobowitz <drow@mvista.com>
2819
2820 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2821 trad-frame.h.
2822 (arm_get_cache): Delete macro.
2823 (struct arm_prologue_cache): Update comments. Make saved_regs into
2824 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2825 to prev_sp.
2826 (thumb_scan_prologue): Update for cache changes. Don't call
2827 DEPRECATED_PC_IN_CALL_DUMMY.
2828 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2829 argument and use it in desperation search for our prologue. Do not
2830 search past the specified PC.
2831 (arm_make_prologue_cache): Simplify.
2832
2833 (arm_prologue_this_id, arm_prologue_prev_register)
2834 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2835 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2836 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2837 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2838 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2839
2840 (arm_frame_chain_valid, arm_find_callers_reg)
2841 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2842 (arm_pop_frame): Delete obsolete methods.
2843 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2844
2845 (arm_gdbarch_init): Update for new frame methods. Register prologue
2846 and sigtramp unwinders. Set the default frame base method.
2847
2848 * Makefile.in (arm-tdep.o): Update dependencies.
2849 * varobj.c (find_frame_addr_in_frame_chain): Call
2850 get_frame_base_address.
2851 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2852
24de872b
DJ
28532003-09-03 Daniel Jacobowitz <drow@mvista.com>
2854
2855 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2856 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2857 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2858 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2859 Take NEXT_FRAME and CACHE arguments. Call
2860 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2861 Set unwound_pc in CACHE instead of modifying the frame argument.
2862 Don't bother checking the frame type when looking for sigtramp
2863 frames.
2864 (arm_make_prologue_cache, arm_frame_chain)
2865 (arm_init_extra_frame_info): New functions.
2866
9b8d791a
DJ
28672003-09-03 Daniel Jacobowitz <drow@mvista.com>
2868
2869 * arm-tdep.c (arm_get_cache): Define.
2870 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2871 unwound_sp, unwound_pc, and saved_regs.
2872 (thumb_scan_prologue): Take a cache instead of the frame.
2873 (arm_scan_prologue): Likewise.
2874 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2875 instead of a temporary frame.
2876 (arm_init_extra_frame_info): Allocate and use a cache.
2877 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2878
7ee3275f
AC
28792003-09-03 Andrew Cagney <cagney@redhat.com>
2880
2881 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2882 * config/mips/wince.mt (TM_CLIBS): Ditto.
2883 * config/sh/wince.mt (TM_CLIBS): Ditto.
2884 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2885 * config/sparc/sp64.mt (CC): Delete.
2886
57b29be7
AC
28872003-09-03 Andrew Cagney <cagney@redhat.com>
2888
2889 * defs.h: Do not include "arch-utils.h".
2890 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2891 GDB_MULTI_ARCH_PURE.
2892 * configure.in (GDB_MULTI_ARCH): Do not define.
2893 * configure, config.in: Regenerate.
2894 * configure.tgt: Do not set variable "gdb_multi_arch".
2895 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2896 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2897 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2898 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2899 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2900 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2901 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2902 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2903 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2904 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2905 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2906 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2907 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2908 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2909 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2910 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2911 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2912 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 2913
12e035e2
MC
29142003-08-30 Michael Chastain <mec@shout.net>
2915
2916 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2917 * config/m68k/nm-hp300hpux.h: Delete.
2918 * config/m68k/tm-hp300hpux.h: Delete.
2919 * config/m68k/xm-hp300hpux.h: Delete.
2920 * config/m68k/xm-hp300bsd.h: Delete.
2921 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2922 tm-hp300hpux.h, xm-hp300hpux.h.
2923 * somsolib.c: Remove comment about hp300 shared libraries.
2924
bda34dc2
MK
29252003-08-31 Mark Kettenis <kettenis@gnu.org>
2926
5bca7895
MK
2927 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2928 Only define PTRACE_GET_THREAD_AREA is not already defined.
2929 Various style fixes in code and comments and some additional
2930 spelling fixes in comments. Move after functions dealing with
2931 debug registers.
2932 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2933 Fix coding-style.
2934
bda34dc2
MK
2935 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2936 frame_unwind_register_unsigned instead of
2937 frame_unwind_unsigned_register.
2938
c890192f
MK
29392003-08-30 Mark Kettenis <kettenis@gnu.org>
2940
2941 * configure.in: Search for gethostbyname in libnsl.
2942 * configure: Regenerated.
2943
60fac5b8
MK
29442003-08-29 Mark Kettenis <kettenis@gnu.org>
2945
e294916c
MK
2946 * configure.in: Remove redundant AC_MSG_RESULT in check for
2947 uintptr_t in stdint.h.
2948 * configure: Regenerated.
2949
c40d267a
MK
2950 * amd64-nat.h (struct regcache): Add opaque declaration.
2951
60fac5b8
MK
2952 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2953 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2954 Change "register array" to "register cache" in comments.
2955 (x86_64_linux_gregset64_reg_offset): New variable.
2956 (GETREGS_SUPPLIES): Remove macro.
2957 (supply_gregset): Call amd64_supply_native_gregset instead of
2958 x86_64_linux_supply_gregset.
2959 (fill_gregset): Rename `regno' to `regnum'. Call
2960 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2961 (store_regs): Rename `regno' to `regnum'.
2962 (store_fpregs): Rename `regno' to `regnum'.
2963 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2964 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2965 Reorganize function a bit.
2966 (store_inferior_registers): Rename `regno' to `regnum'. Use
2967 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2968 Reorganize function a bit.
2969 (_initialize_x86_64_linux_nat): New function.
2970 * config/i386/x86-64linux.mh.
2971
546143b6
AC
29722003-08-29 Andrew Cagney <cagney@redhat.com>
2973
2974 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2975 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2976 (target_remove_watchpoint): Delete macro.
2977 (target_insert_watchpoint): Delete macro.
2978 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2979 (remote_mips_stopped_by_watchpoint): Delete declaration.
2980 (remote_mips_remove_watchpoint): Delete declaration.
2981 (remote_mips_set_watchpoint): Delete declaration.
2982 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2983 * remote-mips.c (_initialize_remote_mips): Set
2984 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2985 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2986 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2987 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2988 (mips_stopped_by_watchpoint): Rename
2989 remote_mips_stopped_by_watchpoint.
2990 (mips_can_hardware_watchpoint): Rename
2991 remote_mips_can_use_hardware_watchpoint, update function
2992 signature.
2993
7bace51b
MK
29942003-08-29 Mark Kettenis <kettenis@gnu.org>
2995
b0f5c6f2
MK
2996 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2997 USER_DS. We haven't given them a register number yet.
2998
2a6d284d
MK
2999 * amd64-nat.h: New file.
3000 * amd64-nat.c: New file.
3001 * amd64fbsd-nat.c: Include "amd64-nat.h".
3002 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3003 (amd64fbsd32_r_reg_offset): New variable.
3004 (supply_gregset): Simply call amd64_supply_native_gregset.
3005 (fill_gregset): Rename `regno' to `regnum'. Simply call
3006 amd64_collect_native_gregset.
3007 (fill_fpregset): Rename `regno' to `regnum'.
3008 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3009 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3010 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3011 `fpregset_t'. Call amd64_supply_native_gregset instead of
3012 supply_gregset. Call x86_64_supply_fxsave instead of
3013 supply_fpregset.
3014 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3015 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3016 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3017 `fpregset_t'. Call amd64_collect_native_gregset instead of
3018 fill_gregset. Call x86_64_collect_fxsave instead of
3019 fill_fpregset.
3020 (_initialize_am64fbsd_nat): Initialize
3021 amd64_native_gregset32_reg_offset and
3022 amd64_native_gregset64_reg_offset.
3023 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3024
a16d75cc
MK
3025 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3026 null pointer. Fix typo in comment.
3027
7bace51b
MK
3028 * regcache.c (supply_register): Reimplement to call
3029 regcache_raw_supply.
3030 (regcache_collect): Reimplement by calling regcache_raw_collect.
3031
9a661b68
MK
30322003-08-28 Mark Kettenis <kettenis@gnu.org>
3033
3034 * regcache.c (register_buffer): Consitify first argument.
3035 (regcache_raw_supply, regcache_raw_collect): New
3036 functions.
3037
e94cc8fa
DJ
30382003-08-28 Daniel Jacobowitz <drow@mvista.com>
3039
3040 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3041 by Nathan J. Williams.
3042
c64bd0ce
DJ
30432003-08-28 Daniel Jacobowitz <drow@mvista.com>
3044
3045 * lin-lwp.c (wait_lwp): New function, copied from
3046 stop_wait_callback. Clean up.
3047 (stop_wait_callback): Use wait_lwp.
3048
e5ab0dce
AC
30492003-08-28 Andrew Cagney <cagney@redhat.com>
3050
3051 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3052 flavour and disassembler options.
3053 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3054 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3055 deprecated_tm_print_insn_info.
a8f4cde1 3056
a788de9b
AC
30572003-08-27 Andrew Cagney <cagney@redhat.com>
3058
3059 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3060 Use target_read_memory.
3061 (s390_get_frame_info): Update. Do not reference
3062 deprecated_tm_print_insn_info.
3063 (s390_check_function_end, s390_is_sigreturn): Ditto.
3064
36482093
AC
30652003-08-27 Andrew Cagney <cagney@redhat.com>
3066
3067 * Makefile.in (cris-tdep.o): Update dependencies.
3068 * cris-tdep.c: Include "gdb_assert.h".
3069 (cris_gdbarch_init): Set print_insn.
3070 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3071 (cris_delayed_get_disassembler): Simplify, directly call the
3072 disassembler returned by cris_get_disassembler.
3073 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3074 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3075 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3076 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3077 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3078 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3079 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3080 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3081 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3082 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3083 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3084 (gdb_print_insn_sparc): Delete function.
3085 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3086 deprecated_tm_print_insn_info.
3087 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3088 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3089 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3090 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3091 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3092 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3093 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3094 (s390_gdbarch_init): Set print_insn.
3095
0285512f
AC
30962003-08-27 Andrew Cagney <cagney@redhat.com>
3097
3098 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3099 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3100 * infcall.c (call_function_by_hand): Convert the entry point
3101 address into a code address.
3102
cdcd5552
AC
31032003-08-27 Andrew Cagney <cagney@redhat.com>
3104
3105 * dsrec.c: Include "gdb_string.h".
3106 * Makefile.in (dsrec.o): Update dependencies.
3107
e85cddad
MC
31082003-08-27 Michael Chastain <mec@shout.net>
3109
3110 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3111
8bbfbb23
AC
31122003-08-27 Andrew Cagney <cagney@redhat.com>
3113
3114 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3115 (alpha_osf1_init_abi): Do not set call_dummy_address.
3116
ba058b66
DC
31172003-08-27 David Carlton <carlton@kealia.com>
3118
3119 From Randolph Chung <tausq@debian.org>:
3120 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3121 compiles with -Wformat-nonliteral -Werror.
3122
87f84c9d
JB
31232003-08-26 Jim Blandy <jimb@redhat.com>
3124
3125 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3126 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3127 bfd_lookup_symbol, since we only want symbols in code sections.
3128 (look_for_base): Pass zero as the SECT_FLAGS argument to
3129 bfd_lookup_symbol, since we're not concerned about which section
3130 the symbol is in.
3131
102d615a
JJ
31322003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3133
3134 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 3135 we are frameless or the return address register is already known.
102d615a 3136
cc7ad3ea
AC
31372003-08-26 Andrew Cagney <cagney@redhat.com>
3138
3139 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3140 in size. Add comments.
3141
af8b88dd
JJ
31422003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3143
3144 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 3145 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 3146
e0a4f5a1
JM
31472003-08-26 Jason Merrill <jason@redhat.com>
3148
3149 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3150 case out of #ifdef MIPS block.
3151
4ae9ee8e
DJ
31522003-08-25 Daniel Jacobowitz <drow@mvista.com>
3153
3154 PR java/1322
3155 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3156 available before calling SECT_OFF_TEXT.
3c164570 3157 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 3158
004d836a
JJ
31592003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3160
a8f4cde1 3161 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
3162 bof, and nat0-nat127 as pseudo-registers.
3163 (ia64_frame_cache): New struct used to cache frame info.
3164 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 3165 register grouping so registers without names are still saved and
004d836a 3166 restored.
a8f4cde1 3167 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
3168 pseudo values.
3169 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3170 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 3171 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
3172 ia64_frame_cache.
3173 (examine_prologue): Change prototype to add next_frame pointer.
3174 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 3175 current frame matches the cfm that should occur for the prologues
004d836a
JJ
3176 alloc insn and if equal, mark as not frameless. At end of routine,
3177 if not frameless, calculate registers for the previous frame and store
3178 in the cache, if a cache is provided.
3179 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3180 and pass 0 for next_frame.
3181 (ia64_store_return_value): Change to use convert_typed_floating()
3182 instead of calling ia64_convert_to_raw().
3183 (ia64_extract_return_value): Change to use convert_typed_floating()
3184 instead of calling ia64_convert_to_virtual().
3185 (ia64_frame_cache): New routine to support new frame model.
3186 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3187 (ia64_frame_sniffer): Ditto.
3188 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3189 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3190 (ia64_sigtramp_frame_prev_register): Ditto.
3191 (ia64_sigtramp_frame_sniffer): Ditto.
3192 (ia64_frame_base_address): Ditto.
3193 (ia64_extract_struct_value_address): Change to issue error message.
3194 (ia64_frame_align): New routine to align sp.
3195 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 3196 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
3197 ia64_push_dummy_call().
3198 (ia64_push_return_address): Ditto.
3199 (ia64_unwind_dummy_id): New function.
3200 (ia64_unwind_pc): Ditto.
3201 (ia64_convert_register_p): Ditto.
3202 (ia64_register_to_value): Ditto.
3203 (ia64_value_to_register): Ditto.
3204 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3205 (ia64_register_byte, ia64_register_raw_size): Ditto.
3206 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3207 (ia64_saved_pc_after_call): Ditto.
3208 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3209 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3210 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3211 (ia64_register_convert_to_raw): Ditto.
3212 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3213 (ia64_init_extra_frame_info): Ditto.
3214 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3215 (ia64_gdbarch_init): Remove registering of deprecated functions that
3216 are no longer used. Add registration of new gdbarch functions.
3217 Remove registering deprecated_write_sp. Replace
3218 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3219 Delete set_gdbarch_deprecated_register_convertible(),
3220 set_gdbarch_deprecated_register_convert_to_virtual(), and
3221 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3222 set_gdbarch_deprecated_register_size(),
3223 set_gdbarch_deprecated_register_bytes(),
3224 set_gdbarch_pcregnum(),
3225 set_gdbarch_deprecated_register_byte(),
3226 set_gdbarch_deprecated_register_raw_size(),
3227 set_gdbarch_deprecated_max_register_raw_size(),
3228 set_gdbarch_deprecated_register_virtual_size(),
3229 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3230 Replace set_gdbarch_deprecated_extract_return_value() with
3231 set_gdbarch_extract_return_value(). Remove calls to:
3232 set_gdbarch_deprecated_saved_pc_after_call();
3233 set_gdbarch_deprecated_frame_chain(),
3234 set_gdbarch_deprecated_frame_saved_pc(),
3235 set_gdbarch_deprecated_frame_init_saved_regs(),
3236 set_gdbarch_deprecated_get_saved_register(),
3237 set_gdbarch_deprecated_call_dummy_words(),
3238 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3239 set_gdbarch_deprecated_init_extra_frame_info(),
3240 set_gdbarch_deprecated_frame_args_address(),
3241 set_gdbarch_deprecated_frame_locals_address(),
3242 and set_gdbarch_deprecated_dummy_write_sp().
3243 Add set_gdbarch_convert_register_p(),
3244 set_gdbarch_register_to_value(),
3245 set_gdbarch_value_to_register(),
3246 set_gdbarch_push_dummy_call(),
3247 set_gdbarch_frame_align(),
3248 set_gdbarch_unwind_dummy_id(),
3249 set_gdbarch_unwind_pc(),
3250 frame_unwind_append_sniffer(),
3251 frame_unwind_append_sniffer(),
3252 and frame_base_set_default().
3253
aede7613
CD
32542003-08-25 Chris Demetriou <cgd@broadcom.com>
3255
3256 * configure.tgt: Document need for special "mipsisa64" handling.
3257 (mipsisa64*-*-linux64): Handle as target linux64.
3258 (mipsisa64*-*-*): Handle as target embed64.
3259
43c3a82e
MC
32602003-08-18 Michael Chastain <mec@shout.net>
3261
3262 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3263 objfile bug.
3264
6564f77d
MK
32652003-08-24 Mark Kettenis <kettenis@gnu.org>
3266
2de139ba
MK
3267 * i387-tdep.h: Update copyright date.
3268 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3269
6564f77d
MK
3270 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3271 CFLAGS games to reflect reality.
3272
42cf1509
AC
32732003-08-24 Andrew Cagney <cagney@redhat.com>
3274
3275 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3276 GDB_MULTI_ARCH is always non-zero.
3277 * osabi.c (_initialize_gdb_osabi): Ditto.
3278 (gdbarch_init_osabi): Ditto.
3279 * sparc-tdep.c: Ditto for #if code.
3280
0485f6ad
MK
32812003-08-23 Mark Kettenis <kettenis@gnu.org>
3282
3283 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3284 Update comments.
3285 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3286 comments.
3287 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3288 x86_64_supply_fxsave.
3289 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3290 x86_64_supply_fxsave.
3291 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3292 x86_64_supply_fxsave.
3293
c7716133
AJ
32942003-08-23 Andreas Jaeger <aj@suse.de>
3295
3296 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3297 i387_supply_fxsave.
3298
ed504bdf
MK
32992003-08-23 Mark Kettenis <kettenis@gnu.org>
3300
3301 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3302 i387_supply_register.
3303 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3304 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3305 i387_supply_fsave.
3306 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3307 i387_supply_fxsave.
3308 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3309 i387_supply_fsave.
3310 * i386bsd-nat.c (supply_fpregset): Adjust call to
3311 i387_supply_fsave.
3312 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3313 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3314 supply_fpregset.
3315 (store_inferior_registers): Remove extraneous whitespace. Call
3316 i387_fill_fsave instead of fill_fpregset.
3317 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3318 (supply_fpregset): Likewise.
3319 * i386v4-nat.c (supply_fpregset): Adjust call to
3320 i387_supply_fsave.
3321 * i386-interix-nat.c (supply_fpregset): Adjust call to
3322 i387_supply_fsave.
3323 * i386-linux-nat.c (supply_fpregset): Adjust call to
3324 i387_supply_fsave.
3325 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3326 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3327 i387supply_fsave and i387_supply_fxsave.
3328 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3329 Incorporate code from `i387_supply_register.
3330 (i387_supply_register): Remove.
3331 (i387_supply_fxsave): Add `regnum' argument.
3332 Update comments.
3333 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3334 prototype.
3335 (i387_supply_register): remove prototype.
3336 Update comments.
a8f4cde1 3337
4be5d520
MC
33382003-08-22 Michael Chastain <mec@shout.net>
3339
3340 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3341 Add lines for files in gdb/testsuite/gdb.cp/* that are
3342 still not 8.3 unique.
3343
7ed85d26
DJ
33442003-08-22 Daniel Jacobowitz <drow@mvista.com>
3345
3346 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3347 TYPE_VPTR_FIELDNO is valid.
3348
eb0d3137
MK
33492003-08-19 Mark Kettenis <kettenis@gnu.org>
3350
3351 * utils.c (set_width_command): Remove prototypes.
3352 (set_screen_size): New prototype.
3353 (init_page_info): Simplify by fetching the screen size from
3354 Readline. Call set_screen_size.
3355 (set_screen_size): New function.
3356 (set_width): Add missing whitespace in comment.
3357 (set_width_command): Call set_screen_size.
3358 (set_height_command): New function.
3359 (initialize_utils): Fix formatting. Make "set height" command
3360 call set_height_command. Remove redundant code that turns off
3361 pagination if output isn't a terminal. Remove redundant call to
3362 set_width_command.
a8f4cde1 3363
7e6d0ac8
MK
33642003-08-22 Mark Kettenis <kettenis@gnu.org>
3365
3567a8ea
MK
3366 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3367 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3368 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3369 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3370 `case' keyword.
3371 (sparc64_register_info): Give the reister with number
3372 SPARC64_STATE_REGNUM a name.
3373 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3374 %asi and %ccr.
3375 (sparc64_push_dummy_call): Take BIAS into account when checking
3376 stcak alignment.
3377 (sparc_software_single_step): Remove assertions that check whether
3378 NPC and NNPC were zero.
3379 (sparc_supply_rwindow): Make public. Merge functionality with
3380 sparc64_supply_rwindow.
3381 (sparc_fill_rwindow): Make public. Merge functionality with
3382 sparc64_fill_rwindow.
3383 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3384 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3385 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3386 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3387 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3388
7e6d0ac8
MK
3389 * reggroups.c: Add whitespace after declarations of local
3390 variables in functions.
3391
72e5f484
MC
33922003-08-21 Michael Chastain <mec@shout.net>
3393
3394 * gdbtypes.h: Change array bound type from an int to enum.
3395
435ac228
AC
33962003-08-21 Andrew Cagney <cagney@redhat.com>
3397
3398 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3399 * config/sparc/tm-sparc.h: Ditto.
3400 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3401 unconditionally.
3402 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3403
0d0e1a63
MK
34042003-07-13 Mark Kettenis <kettenis@gnu.org>
3405
3406 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3407 (register_objfile_data, set_objfile_data, objfile_data): New
3408 prototypes.
3409 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3410 prototypes.
3411 (allocate_objfile): Call objfile_alloc_data.
3412 (free_objfile): Call objfile_free_data.
3413 (struct objfile_data): New.
3414 (struct objfile_data_registration): New.
3415 (struct objfile_data_registry): New.
3416 (objfile_data_registry): New variable.
3417 (register_objfile_data): New function.
3418 (objfile_alloc_data, objfile_free_data): New functions.
3419 (set_objfile_data, objfile_data): New functions.
3420 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3421 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3422 (_initialize_dwarf2_frame): New function and prototype.
3423
d90cf509
AC
34242003-08-21 Andrew Cagney <cagney@redhat.com>
3425
3426 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3427 a specific architecture.
3428 * arch-utils.h (set_architecture_from_arch_mach): Delete
3429 declaration.
3430 (target_architecture_hook): Delete declaration.
3431 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3432 (default_float_format): Assume GDB_MULTI_ARCH.
3433 (default_double_format): Assume GDB_MULTI_ARCH.
3434 (set_endian_from_file): Delete function.
3435 (arch_ok): Delete function.
3436 (set_arch): Delete function.
3437 (set_architecture_from_arch_mach): Delete function.
3438 (set_architecture_from_file): Delete function.
3439 (set_architecture): Assume GDB_MULTI_ARCH.
3440 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3441
8b39fe56
MK
34422003-08-21 Mark Kettenis <kettenis@gnu.org>
3443
3444 Rewrite FreeBSD/sparc64 native configuration.
3445 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3446 * sparc64fbsd-nat.c: New file.
3447 * sparc64fbsd-tdep.c: New file.
3448 * sparc64-tdep.c sparc64-tdep.h: New files.
3449 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3450 sparc64fbsd-tdep.o): New dependencies.
3451 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3452 and sparc64fbsd-tdep.c.
3453 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3454 * config/sparc/fbsd.mh: Remove copyright notice.
3455 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3456 sparcbsd-nat.o.
3457 * config/sparc/fbsd.mt: Remove copyright notice.
3458 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3459 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3460 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3461 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3462 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3463 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3464 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3465 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3466 "sparc/tm-sp64.h".
3467 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3468 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3469
a7f19c79
MC
34702003-08-21 Michael Chastain <mec@shout.net>
3471
3472 * symtab.h: Add doco on the space critical structures and
3473 some measurements of space usage.
3474
da08ea5b
MS
34752003-08-21 Michael Snyder <msnyder@redhat.com>
3476
3477 * tracepoint.c (trace_dump_command): Trace break address
3478 is subject to DECR_PC_AFTER_BREAK.
3479 (set_traceframe_context): Make "trace_line" an int.
3480 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 3481
6df2bf50
MS
34822003-08-20 Michael Snyder <msnyder@redhat.com>
3483
3484 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
3485 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3486 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 3487 argument passing.
a8f4cde1 3488 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
3489 functions, replace sh_push_dummy_call.
3490 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3491
0955bbf0
MC
34922003-08-20 Michael Chastain <mec@shout.net>
3493
3494 * gdbtypes.h (struct main_type): Rearrange to save space.
3495
260a4188
MS
34962003-08-20 Michael Snyder <msnyder@redhat.com>
3497
3498 * trad-frame.c: Comment typo fix.
3499
8baa6f92
KB
35002003-08-20 Michael Snyder <msnyder@redhat.com>
3501 Kevin Buettner <kevinb@redhat.com>
3502
3503 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3504 (frv_frame_init_saved_regs): Add declaration.
3505 (frame_extra_info): Add new field ``saved_regs''.
3506 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3507 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3508 Update frame related code.
3509 (frv_extract_struct_value_address): Adjust formatting.
3510 * Makefile.in (frv-tdep.o): Update dependencies.
3511 * config/frv/tm-frv.h (target_insert_watchpoint)
3512 (target_remove_watchpoint, target_insert_hw_breakpoint)
3513 (target_remove_hw_breakpoint): Delete these macros.
3514 (remote_insert_watchpoint, remote_remove_watchpoint)
3515 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3516 these declarations.
3517
87193939
MC
35182003-08-20 Michael Chastain <mec@shout.net>
3519
3520 * defs.h (ENUM_BITFIELD): New macro.
3521 * symtab.h (ENUM_BITFIELD): Use it.
3522 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3523
062103ba
SA
35242003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3525
3526 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 3527
8b148df9
AC
35282003-08-18 Andrew Cagney <cagney@redhat.com>
3529
3530 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3531 * gdbarch.h, gdbarch.c: Re-generate.
3532 * infcall.c (call_function_by_hand): Adjust the SP by
3533 frame_red_zone_size before allocating any stack space.
3534 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3535 * x86-64-tdep.c (x86_64_frame_align): New function.
3536 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3537
3538 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3539 Remove code adjusting SP so that it skips over the Red Zone.
3540
954a4db8
MK
35412003-08-18 Mark Kettenis <kettenis@gnu.org>
3542
3543 * NEWS (New native configurations): Mention FreeBSD/amd64.
3544
1a241548
AC
35452003-08-18 Andrew Cagney <cagney@redhat.com>
3546
3547 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3548 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3549 "m68k_frame_p".
3550 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3551
f82b2acd
MK
35522003-08-18 Mark Kettenis <kettenis@gnu.org>
3553
3554 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3555
4056d258
ML
35562003-08-18 Michal Ludvig <mludvig@suse.cz>
3557
3558 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3559 Define.
3560 * i386-linux-nat.c: Include "linux-nat.h".
3561 (child_post_startup_inferior): New function.
a8f4cde1 3562
99ab4326
MK
35632003-08-18 Mark Kettenis <kettenis@gnu.org>
3564
3565 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3566 at the start of a frameless function. This probably fixes PR
3567 backtrace/1338.
3568
c8d5f0d6
MC
35692003-08-17 Michael Chastain <mec@shout.net>
3570
3571 * symfile.c (find_sym_fns): Remove special case for apollo target.
3572
9016a515
DJ
35732003-08-17 Daniel Jacobowitz <drow@mvista.com>
3574
3575 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3576 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3577 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3578 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3579 (linux_supports_tracevforkdone): New function.
3580 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3581 TRACEVFORKDONE.
3582 (child_follow_fork): Handle vfork.
3583 (linux_handle_extended_wait): Likewise. Also handle exec.
3584 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3585 * NEWS: Mention fork tracing.
3586
c538c11c
DJ
35872003-08-17 Daniel Jacobowitz <drow@mvista.com>
3588
3589 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3590
4de4c07c
DJ
35912003-08-17 Daniel Jacobowitz <drow@mvista.com>
3592
3593 * Makefile.in (i386-linux-nat.o): Update dependencies.
3594 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3595 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3596 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3597 * i386-linux-nat.c: Include "linux-nat.h".
3598 (child_post_startup_inferior): New function.
3599 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3600 * infptrace.c (kill_inferior): Wrap in #ifdef.
3601 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3602 attaching to each LWP.
3603 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3604 (init_lin_lwp_ops): Fill in some more operations.
3605 * linux-nat.h (linux_enable_event_reporting)
3606 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3607 prototypes.
3608 * linux-nat.c (linux_enable_event_reporting): New function.
3609 (child_post_attach, linux_child_post_startup_inferior)
3610 (child_post_startup_inferior, child_follow_fork)
3611 (linux_handle_extended_wait, kill_inferior): New functions.
3612
7996bcec
AC
36132003-08-16 Andrew Cagney <cagney@redhat.com>
3614
3615 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3616 * gdbarch.h, gdbarch.c: Re-generate.
3617
3d48a7a0
MK
36182003-08-16 Mark Kettenis <kettenis@gnu.org>
3619
3620 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3621
7989c619
AC
36222003-08-16 Andrew Cagney <cagney@redhat.com>
3623
3624 * NEWS: Mention that "set prompt-escape-char" was deleted.
3625 * top.c (get_prompt_1): Delete function.
3626 (gdb_prompt_escape):
3627 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3628 prompt-escape-char" command.
3629 (MAX_PROMPT_SIZE): Delete macro.
3630 (get_prompt): Simplify, do not call get_prompt_1.
3631
07978cd8
AC
36322003-08-16 Andrew Cagney <cagney@redhat.com>
3633
3634 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3635 -Werror. -Wformat-nonliteral problems.
3636
3ff7cf9e
JB
36372003-08-15 J. Brobecker <brobecker@gnat.com>
3638
3639 Further multiarching work mostly for hppa64-*-hpux11:
3640 * hppa-tdep.h: New file.
3641 * hppa-tdep.c: #include hppa-tdep.c.
3642 (hppa32_num_regs): Renamed from hppa_num_regs.
3643 (hppa64_num_regs): New constant.
3644 (hppa64_call_dummy_breakpoint_offset): New constant.
3645 (hppa32_call_dummy_length): New constant.
3646 (hppa64_call_dummy_length): New constant.
3647 (hppa32_stack_align): Make name 32bit explicit.
3648 (hppa32_register_virtual_type): Likewise.
3649 (hppa32_extract_return_value): Likewise.
3650 (hppa32_use_struct_convention): Likewise.
3651 (hppa32_store_return_value): Likewise.
3652 (hppa64_register_virtual_type): New function.
3653 (hppa64_extract_return_value): New function.
3654 (hppa64_use_struct_convention): New function.
3655 (hppa64_store_return_value): New function.
3656 (hppa_frame_locals_address): Remove declaration, function does
3657 not exist anymore.
3658 (hppa_register_byte): Add support for PA64 ABI.
3659 (hppa_gdbarch_init): Add support for PA64 ABI.
3660 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3661 Make name 32bit explicit.
3662 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3663 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3664 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3665 (hppa64_hpux_frame_base_before_sigtramp): New function.
3666 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3667 * config/pa/tm-hppa64.h: Remove macros that are no longer
3668 necessary now that the gdbarch vector is properly setup.
a8f4cde1 3669 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
3670 * config/pa/tm-hppah.h: Update function calls in macros
3671 following the function renaming in hppa-hpux-tdep.c.
3672 * Makefile.in (hppa_tdep_h): New variable.
3673 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3674
5d05ca6d
MS
36752003-08-14 Michael Snyder <msnyder@redhat.com>
3676
3677 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3678
37ba2569
JB
36792003-08-13 J. Brobecker <brobecker@gnat.com>
3680
3681 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3682 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3683 routine.
3684
aed7f26a
MS
36852003-08-13 Michael Snyder <msnyder@redhat.com>
3686
3687 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3688 (frv_saved_pc_after_call): Use deprecated ftype.
3689 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3690 (frv_remote_translate_xfer_address): Remove.
3691 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3692
752d4ac1
JB
36932003-08-13 J. Brobecker <brobecker@gnat.com>
3694
3695 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3696 initialization after the common gdbarch initialization, not before.
3697
1426ac1d
JB
36982003-08-13 J. Brobecker <brobecker@gnat.com>
3699
3700 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3701 (ADDR_BITS_REMOVE): Remove, redundant.
3702
b6fbdd1d
JB
37032003-08-13 J. Brobecker <brobecker@gnat.com>
3704
3705 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3706 gdbarch method to clear the 2 low bits of text addresses.
3707
44160db3
AC
37082003-08-12 Andrew Cagney <cagney@redhat.com>
3709
3710 * Makefile.in (dsrec.o): Update dependencies.
3711 * dsrec.c: Include "gdb_assert.h".
3712 (make_srec): Use snprintf instead of sprintf, use a literal format
3713 string.
3714
bcf7d3ca
AC
37152003-08-12 Andrew Cagney <cagney@redhat.com>
3716
3717 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3718 FRAME_OBSTACK_ZALLOC.
3719
49ed40de
KB
37202003-08-12 Kevin Buettner <kevinb@redhat.com>
3721
3722 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3723 SSE registers.
3724
b246147c
MK
37252003-08-10 Mark Kettenis <kettenis@gnu.org>
3726
3727 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3728 amd64fbsd_sc_reg_offset): Add extern declarations.
3729 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3730 declarations.
3731
d95fdc0d
BE
37322003-08-11 Ben Elliston <bje@wasabisystems.com>
3733
3734 * MAINTAINERS (write after approval): Update my mail address.
3735
cf6a0e73
AC
37362003-08-10 Andrew Cagney <cagney@redhat.com>
3737
3738 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3739
f837910f
MK
37402003-08-10 Mark Kettenis <kettenis@gnu.org>
3741
e2dbbd2d
MK
3742 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3743 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3744 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3745 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3746 i386bsd_sc_reg_offset): Add extern declarations.
3747 * i386obsd-nat.c: Include "i386-tdep.h"
3748 (_initialize_i386obsd_nat): Remove extern declarations.
3749 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3750 declarations.
3751 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3752 declarations.
3753
f837910f
MK
3754 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3755 instead of frame_read_register.
3756 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3757 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3758 SP_REGNUM.
3759 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3760 instead of frame_unwind_unsigned_register. Use
3761 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3762 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3763 instead of read_register. Use builtin_type_void_data_ptr instead
3764 of builtin_type_void_func_ptr when extracting the address of the
3765 jmp_buf.
3766 (i386_extract_return_value, i386_store_return_value,
3767 i386_pseudo_register_read, i386_pseudo_register_write): Use
3768 register_size instead REGISTER_RAW_SIZE.
3769
edcf254d
AC
37702003-08-10 Andrew Cagney <cagney@redhat.com>
3771
3772 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3773 sprintf. Make "name" constant.
3774
26604a34
MK
37752003-08-10 Mark Kettenis <kettenis@gnu.org>
3776
192285c6
MK
3777 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3778 instead of frame_read_register.
f837910f
MK
3779 (i387_print_float_info): Use get_frame_register and
3780 get_frame_register_unsigned instead of frame_register_read.
192285c6 3781
f0925262
MK
3782 * i386fbsd-nat.c: Include "i386-tdep.h".
3783 (child_resume): Make `eflags' an ULONGEST. Use
3784 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3785 instead of register_read and register_write.
3786
a144416f
MK
3787 * i386bsd-nat.c (fetch_inferior_registers,
3788 store_inferior_registers): Don't use && at the end of a line.
3789 (_initialize_i386bsd_nat): Fix typo.
3790
fec74868
MK
3791 * frame.c (_initialize_frame): Add missing backslash.
3792
87232496
MK
3793 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3794 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3795 and supply_register instead of manipulating the register buffer
3796 directly.
3797
c9b9de0b
MK
3798 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3799 * config/i386/nm-i386sol2.h
3800 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3801
26604a34
MK
3802 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3803 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3804 instructions that GCC likes to mingle into the prologue. Fixes
3805 gdb/1253 and gdb/1255.
3806
25d29d70
AC
38072003-08-09 Andrew Cagney <cagney@redhat.com>
3808
3809 Fix GDB PR cli/926.
3810 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3811 * command.h (add_setshow_uinteger_cmd): Declare.
3812 * frame.c (set_backtrace_cmd): New function.
3813 (show_backtrace_cmd): New function.
3814 * frame.c (_initialize_frame): Replace "set/show
3815 backtrace-below-main" with "set/show backtrace past-main". Add
3816 command "set/show backtrace limit".
3817 (backtrace_past_main): Rename "backtrace_below_main".
3818 (backtrace_limit): New variable.
3819 (get_prev_frame): Update. Check the backtrace_limit.
3820
9ebf4acf
AC
38212003-08-09 Andrew Cagney <cagney@redhat.com>
3822
3823 * defs.h (xstrprintf): Declare.
3824 * utils.c (xstrprintf): New function.
3825 * breakpoint.c (insert_breakpoints): Replace sprintf and
3826 non-literal format strings, with xstrprintf and cleanups.
3827 (delete_breakpoint,breakpoint_re_set): Ditto.
3828 (commands_command, insert_breakpoints): Ditto.
3829 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3830 (break_at_finish_command_1): Ditto.
3831
3771659b
AC
38322003-08-09 Andrew Cagney <cagney@redhat.com>
3833
3834 * MAINTAINERS (language support): List Adam Fedor as Objective C
3835 maintainer.
3836
b4263afa
JB
38372003-08-08 J. Brobecker <brobecker@gnat.com>
3838
3839 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3840 are now multiarched.
3841
d84defb1
JB
38422003-08-08 J. Brobecker <brobecker@gnat.com>
3843
3844 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3845 longer necessary now that hppa64 is partially multiarch'ed.
3846
f786f615
AC
38472003-08-08 Andrew Cagney <cagney@redhat.com>
3848
3849 * interps.c (interp_set): Check for a NULL "old_interp".
3850
c938e9b0
L
38512003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3852
3853 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3854 (install-only): Support DESTDIR.
3855 (uninstall): Likewise.
3856 (install-gdbtk): Likewise.
3857
9a146a11
EZ
38582003-08-08 Elena Zannoni <ezannoni@redhat.com>
3859
3860 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3861 contains something meaningful at all times.
3862
3863Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 3864
62599e99 3865 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 3866
56296155
BC
3867Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3868
62599e99 3869 * MAINTAINERS (write after approval): Added self.
56296155 3870
9710e734
AC
38712003-08-07 Andrew Cagney <cagney@redhat.com>
3872
3873 * inferior.h (AT_SYMBOL): Define.
3874 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3875 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3876 * mips-tdep.c (mips_call_dummy_address): Delete function.
3877 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3878 set call_dummy_address.
3879
98b3ab73
AC
38802003-08-07 Andrew Cagney <cagney@redhat.com>
3881
3882 * language.c (op_error): Delete function.
3883 (binop_type_check): Delete function.
3884 * language.h (type_op_error, range_op_error): Delete macros.
3885 (op_error): Delete declaration.
3886
2fcf52f0
AC
38872003-08-07 Andrew Cagney <cagney@redhat.com>
3888
3889 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3890
abd4220e 38912003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 3892
abd4220e 3893 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 3894 (x86_64_push_arguments): Skip the red zone.
abd4220e 3895
9dd5f34f
AC
38962003-08-05 Andrew Cagney <cagney@redhat.com>
3897
3898 * reggroups.c (reggroup_next): Check for the final entry.
3899
e5e78edc
AC
39002003-08-04 Andrew Cagney <cagney@redhat.com>
3901
ab4e3d93
AC
3902 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3903 * cli/cli-script.c (define_command): Call query directly, instead
3904 of passing it a buffer.
3905 * ocd.c (ocd_error): Pass error a constant format string.
3906 * remote-mips.c (mips_error): Use fputs_filtered.
3907
1062ca82
AC
3908 * solib-svr4.c (_initialize_svr4_solib): Update
3909 register_gdbarch_data call.
3910 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3911
fcc1c85c
AC
3912 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3913 (register_gdbarch_data): Delete "free" parameter. Update
3914 comments.
3915 * gdbarch.h, gdbarch.c: Re-generate.
3916 * reggroups.c (_initialize_reggroup): Update.
3917 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3918 * frame-base.c (_initialize_frame_base): Update.
3919 * frame-unwind.c (_initialize_frame_unwind): Update.
3920 * user-regs.c (_initialize_user_regs): Update.
3921 * remote.c (_initialize_remote): Update.
3922 * regcache.c (_initialize_regcache): Update.
3923
116f06ea
AC
3924 * regcache.c (xfree_regcache_descr): Delete function.
3925 (_initialize_regcache): Update call to register_gdbarch_data.
3926 (init_regcache_descr, init_legacy_regcache_descr): Use
3927 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3928
e5e78edc
AC
3929 * remote.c (free_remote_state): Delete function.
3930 (_initialize_remote): Update register_gdbarch_data.
3931 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3932 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3933
6c7d17ba
AC
39342003-08-04 Andrew Cagney <cagney@redhat.com>
3935
3936 * reggroups.c (struct reggroup_el): Define.
3937 (struct reggroups): Delete field "nr_group". Replace array
3938 "group" with a "first" to "last" linked list.
3939 (reggroups_init): Update. Allocate using gdbarch's obstack.
3940 (reggroups_free): Delete function.
3941 (add_group): Update. Add "el" parameter.
3942 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3943 (default_groups): Update.
3944 (reggroup_next): Replace reggroups.
3945 (reggroups_dump): Update.
3946 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3947 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3948 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3949
89b7795b
DJ
39502003-08-04 Daniel Jacobowitz <drow@mvista.com>
3951
3952 * Makefile.in (tui-interp.o): Update dependencies.
3953
306d9ac5
DC
39542003-08-04 David Carlton <carlton@kealia.com>
3955
3956 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3957 to internal_error call.
3958 * source.c (forward_search_command): Add "%s" format argument.
3959 (reverse_search_command): Ditto.
3960 * top.c (quit_confirm): Ditto.
3961 * cli/cli-setshow.c (do_setshow_command): Ditto.
3962 * cp-valprint.c (cp_print_class_method): Replace
3963 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3964 (cp_print_class_member): Ditto.
3965 * event-top.c (command_line_handler): Ditto.
3966 * linux-proc.c (linux_info_proc_cmd): Ditto.
3967 * p-typeprint.c (pascal_type_print_base): Ditto.
3968 * p-valprint.c (pascal_object_print_class_method): Ditto.
3969 (pascal_object_print_class_member): Ditto.
3970 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3971 * remote.c (remote_cisco_section_offsets): Ditto.
3972 * top.c (command_line_input): Ditto.
3973 * utils.c (vwarning,error_stream,quit): Ditto.
3974 * valprint.c (print_floating,print_binary_chars)
3975 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3976
57bfe177
AC
39772003-08-04 Andrew Cagney <cagney@redhat.com>
3978
3979 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3980
e546b999
AC
39812003-08-02 Andrew Cagney <cagney@redhat.com>
3982
3983 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3984 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3985 amd64fbsd-nat.c.
3986
91092ee5
AC
39872003-08-02 Andrew Cagney <cagney@redhat.com>
3988
3989 * Makefile.in: Update all dependencies and definitions.
3990
889f28e2
AF
39912003-08-02 Adam Fedor <fedor@gnu.org>
3992
3993 * linespec.c (is_objc_method_format): New function
3994 (decode_line_1, locate_first_half): Use it.
3995 Fixes PR objc/1298
3996
880bc914
AC
39972003-08-01 Andrew Cagney <cagney@redhat.com>
3998
3999 * NEWS: Mention that m32r is multi-arch.
4000 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4001 * configure.tgt: Recognize m32r-*-*.
4002 * config/m32r/tm-m32r.h: Delete file.
4003 * config/m32r/m32r.mt: New file.
a8f4cde1 4004 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
4005 gethostname succeeds, in order to avoid a compilation
4006 warning.
4007 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4008 compiler warning.
4009
19f59343
MS
40102003-08-01 Michael Snyder <msnyder@redhat.com>
4011
4012 * sh-tdep.c (sh_frame_align): New gdbarch method.
4013 (sh_gdbarch_init): Set up frame_align method.
4014
4e7d7511
MS
40152003-07-31 Michael Snyder <msnyder@redhat.com>
4016
4017 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4018 which is already covered by the new frames infrastructure.
4019
63022984
AC
40202003-07-31 Andrew Cagney <cagney@redhat.com>
4021
4022 * user-regs.c (struct user_reg): Add "next" link.
4023 (struct user_regs): Replace "user" with "first" and "last" links.
4024 (append_user_reg): Add pre-allocated "reg" parameter.
4025 (builtin_user_regs): Provide initial value for "last".
4026 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4027 (user_regs_init): Allocate memory from the gdbarch obstack.
4028 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4029 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4030 linked list.
4031 (usernum_to_user_reg): New function.
4032 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4033 (value_of_user_reg): Use usernum_to_user_reg.
4034 (user_regs_free): Delete function.
4035 (_initialize_user_regs): Update register_gdbarch_data call.
4036
7cf6e574
DJ
40372003-07-31 Daniel Jacobowitz <drow@mvista.com>
4038
4039 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4040
c48a845b
MS
40412003-07-30 Michael Snyder <msnyder@redhat.com>
4042
4e7d7511 4043 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 4044 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
4045 value_being_returned.
4046 * infcmd.c (print_return_value): Pass zero as struct_addr.
4047 * values.c (value_being_returned): If struct_addr is passed,
4048 use it instead of trying to recover it from the inferior.
4049
f0d8db19
KB
40502003-07-30 Kevin Buettner <kevinb@redhat.com>
4051
4052 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4053 the prologue analyzer won't need to attempt to extract the pc
4054 value from the woefully incomplete dummy frame.
4055 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4056 possible. Disable code which modifies the frame.
4057
e5c113a1
AC
40582003-07-28 Andrew Cagney <cagney@redhat.com>
4059
4060 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4061 to level 2.
4062 (annotate_breakpoints_table, annotate_record): Ditto.
4063 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4064 (annotate_field_name_end, annotate_field_value): Ditto.
4065 (annotate_field_end, annotate_frame_source_begin): Ditto.
4066 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4067 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4068 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4069 (annotate_frame_address_end, annotate_frame_address): Ditto.
4070 (annotate_frame_args, annotate_frame_end): Ditto.
4071 (annotate_frame_where, annotate_arg_begin): Ditto.
4072 (annotate_arg_name_end, annotate_arg_value): Ditto.
4073 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4074 (annotate_function_call, annotate_signal_name): Ditto.
4075 (annotate_signal_string, annotate_signal_name_end): Ditto.
4076 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4077 (annotate_value_begin, annotate_value_history_value): Ditto.
4078 (annotate_value_history_end, annotate_value_end): Ditto.
4079 (annotate_display_begin, annotate_display_number_end): Ditto.
4080 (annotate_display_format, annotate_display_expression): Ditto.
4081 (annotate_display_expression_end, annotate_display_value): Ditto.
4082 (annotate_display_end, annotate_array_section_begin): Ditto.
4083 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4084 (annotate_elt, annotate_array_section_end): Ditto.
4085
bb1db049
AC
40862003-07-28 Andrew Cagney <cagney@redhat.com>
4087
4088 * regcache.c (struct regcache_descr): Update comments on
4089 nr_raw_registers.
4090 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4091 sizeof_raw_register_valid_p.
4092 (init_regcache_descr): Set nr_raw_registers and
4093 sizeof_raw_register_valid_p before calling
4094 init_legacy_regcache_descr.
4095
20e6603c
AC
40962003-07-28 Andrew Cagney <cagney@redhat.com>
4097
4098 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4099 MOD NUM_REGS.
4100
db742940
DJ
41012003-07-28 Daniel Jacobowitz <drow@mvista.com>
4102
4103 * thread.c (info_threads_command): Use get_selected_frame ().
4104 Check that there is at least one non-sentinel frame.
4105
ce7f4371
SC
41062003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4107
4108 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4109 (m68hc11_pop_frame): Remove.
4110 (m68hc11_frame_saved_pc): Remove.
4111 (m68hc11_frame_chain): Remove.
4112 (m68hc11_frame_init_saved_regs): Remove.
4113 (m68hc11_init_extra_frame_info): Remove.
4114 (m68hc11_store_struct_return): Remove.
4115 (m68hc11_saved_pc_after_call): Remove.
4116
1ea653ae
SC
41172003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4118
4119 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4120 frame unwind information.
4121 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4122 and adapted for frame unwinding.
4123 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4124 (m68hc11_unwind_pc): New function.
4125 (m68hc11_frame_unwind_cache): New function to analyze frames.
4126 (m68hc11_frame_this_id): New function to create new frame struct.
4127 (m68hc11_frame_prev_register): New function to unwind a register from
4128 the frame.
4129 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4130 (m68hc11_frame_p): New function for the above.
4131 (m68hc11_frame_base_address): New function to return fp of frame.
4132 (m68hc11_frame_args_address): Update for frame.
4133 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4134 (m68hc11_unwind_sp): New function.
4135 (m68hc11_unwind_dummy_id): New function.
4136 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4137 calls.
4138
c8a7f6ac
SC
41392003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4140
4141 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4142 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4143 when we are beyond the current pc.
4144
3dc990bf
SC
41452003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4146
4147 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4148 from m68hc11_push_arguments.
4149 (m68hc11_push_arguments): Remove.
4150 (m68hc11_push_return_address): Remove.
4151 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4152 handlers; remove deprecated_extra_stack_alignment_needed.
4153
222e5d1d
AC
41542003-07-27 Andrew Cagney <cagney@redhat.com>
4155
4156 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4157 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4158 REAL_PC and not the pointer.
4159 * hppa-hpux-tdep.c: Include frame.h
4160
a7e9a47e
AC
41612003-07-27 Andrew Cagney <cagney@redhat.com>
4162
4163 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4164 GDB_MULTI_ACH_PARTIAL.
4165
7e3dd49e
AC
41662003-07-27 Andrew Cagney <cagney@redhat.com>
4167
4168 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4169 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4170 operator at start and not end of line.
4171 (decode_prologue): Ditto.
4172 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4173 frame_unwind_register_unsigned instead of
4174 frame_unwind_unsigned_register.
4175 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4176 read_register.
4177 (m32r_push_dummy_call): Use register_size instead of
4178 REGISTER_RAW_SIZE.
4179 (m32r_frame_sniffer): Replace m32r_frame_p.
4180 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4181 * m32r-rom.c (report_transfer_performance): Delete extern
4182 declaration.
4183 (m32r_load, m32r_upload_command): Use print_transfer_performance
4184 instead of report_transfer_performance.
4185 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4186 / add_show_from_set.
4187
0880807f
AC
41882003-07-26 Andrew Cagney <cagney@redhat.com>
4189
4190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4191 store_return_value and extract_struct_value_address.
4192
64ae9269
DJ
41932003-07-26 Daniel Jacobowitz <drow@mvista.com>
4194
4195 PR c++/1267
4196 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4197 NULL, default to the section containing PC.
4198
e286caf2
SC
41992003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4200
4201 * NEWS: Mention "regs" deprecated for m68hc11 too.
4202
4203 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4204 (m68hc11_print_register): New function to print out one register.
4205 (m68hc11_print_registers_info): New function to print registers.
4206 (show_regs): Deprecate and use the above.
4207 (m68hc11_gdbarch_init): Install the print_registers_info.
4208
705b278b
JJ
42092003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4210
4211 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4212 that we have a SIGTRAP before returning non-zero.
4213
63cd4198
EZ
42142003-07-23 Michal Ludvig <mludvig@suse.cz>
4215 Elena Zannoni <ezannoni@redhat.com>
4216
a8f4cde1 4217 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
4218 find_function_start_sal() returns empty record.
4219
6926787d
AS
42202003-07-23 Andreas Schwab <schwab@suse.de>
4221
4222 * ia64-tdep.c (ia64_print_insn): New function.
4223 (ia64_gdbarch_init): Set print_insn to it.
4224 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4225 deprecated_tm_print_insn_info.
4226
708cc1b6
MS
42272003-07-22 Michael Snyder <msnyder@redhat.com>
4228
4229 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4230 handle 8-bit returns (long long).
4231 (h8300h_extract_return_value): Ditto.
4232 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4233
aebd7893
AC
42342003-07-22 Andrew Cagney <cagney@redhat.com>
4235
4236 * gdbarch.c Include "gdb_obstack.h".
4237 (struct gdbarch): Add an "obstack".
4238 (alloc_gdbarch_data): Allocate the gdbarch data using
4239 GDBARCH_OBSTACK_CALLOC.
4240 (free_gdbarch_data): Delete function.
4241 (gdbarch_obstack_zalloc): New function.
4242 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4243 Assert that the architecture is not initialized.
4244 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4245 vector from the obstack.
4246 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4247 architecture obstack.
4248 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4249 (set_gdbarch_data): Assert that the data is not initialized.
4250 (struct gdbarch_data): Delete member "free".
4251 (register_gdbarch_data): Do not initialize "free".
4252 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 4253
153721e6
AC
42542003-07-22 Andrew Cagney <cagney@redhat.com>
4255
4256 * configure.in (build_warnings): Add -Wformat-nonliteral.
4257 * configure: Re-generate.
4258
c193f044 42592003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
4260
4261 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 4262
c3228f12
EZ
42632003-07-22 Elena Zannoni <ezannoni@redhat.com>
4264
4265 * findvar.c (read_var_value): Remove case for thread local storage
4266 variables. It is now entirely handled by the dwarf2 location
4267 expression code.
4268 * printcmd.c (address_info): Ditto.
4269 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4270 enumeration value.
4271 (struct symbol): Remove objfile field, which was used by
4272 LOC_THREAD_LOCAL_STATIC only.
4273 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4274 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4275 usage of objfile pointer.
4276 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4277 thread local variables.
4278 Add include of objfiles.h.
4279 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4280 storage variables.
4281 * Makefile.in (dwarf2loc.o): Update dependencies.
4282
aef9bcd2
AC
42832003-07-22 Andrew Cagney <cagney@redhat.com>
4284
4285 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4286 get_frame_base.
4287 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4288 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4289 (struct value): Add opaque declaration.
4290 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4291
d95a8903
AC
42922003-07-21 Andrew Cagney <cagney@redhat.com>
4293
4294 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4295 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4296
4db73d49
SC
42972003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4298
a8f4cde1 4299 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
4300 regcache_cooked_read_unsigned instead of read_register.
4301 (m68hc11_saved_pc_after_call): Likewise.
4302 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4303 instead of write_register.
4304 (m68hc11_register_type): New function.
4305 (m68hc11_register_virtual_type): Remove.
4306 (m68hc11_store_return_value): Convert to use the regcache.
4307 (m68hc11_extract_struct_value_address): Likewise.
4308 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4309 m68hc11_register_type; undeprecate store_return_value and
4310 extract_struct_value_address.
4311
ef2b8fcd
SC
43122003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4313
4314 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4315 and translate to use regcache.
4316 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4317
625b0b97
AC
43182003-07-18 Andrew Cagney <cagney@redhat.com>
4319
4320 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4321 * gdbarch.h, gdbarch.c: Re-generate.
4322 * i386-tdep.c (i386_gdbarch_init): Do not set
4323 DWARF2_BUILD_FRAME_INFO.
4324 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4325 unconditionally.
4326 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4327 DWARF2_BUILD_FRAME_INFO.
4328
22b0d388
AC
43292003-07-18 Andrew Cagney <cagney@redhat.com>
4330
4331 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4332 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4333
1ce5d6dd
AC
43342003-07-18 Andrew Cagney <cagney@redhat.com>
4335
4336 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4337 frame_unwind_address_in_block, instead of frame_pc_unwind.
4338 (dwarf2_frame_cache): Ditto.
4339
e6e5e94c
AC
43402003-07-18 Andrew Cagney <cagney@redhat.com>
4341
4342 * user-regs.h (struct gdbarch): Declare opaque.
4343 * ui-out.h (struct ui_file): Declare opaque.
4344 * dwarf2-frame.h (struct frame_info): Declare opaque.
4345
5483d879
KW
43462003-07-18 Kris Warkentin <kewarken@qnx.com>
4347
4348 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4349 #include "...".
4350 (procfs_meminfo): Change strerror to safe_strerror.
4351 (procfs_can_run): Remove K&R badness.
4352
278a7cf7
MS
43532003-07-17 Michael Snyder <msnyder@redhat.com>
4354
4355 * remote-sim.c: Comment typo fix.
4356
606e3b82
AC
43572003-07-17 Andrew Cagney <cagney@redhat.com>
4358
4359 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4360 configure.
4361 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4362 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4363 GDB_MULTI_ARCH_PARTIAL.
4364
c43af07c
EZ
43652003-07-17 Elena Zannoni <ezannoni@redhat.com>
4366
4367 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4368 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4369 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4370
3b85b0f1
TR
43712003-07-16 Theodore A. Roth <troth@openavr.org>
4372
4373 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4374 found.
4375 (avr_frame_unwind_cache): Don't unwind FP for main.
4376 Update a comment.
4377 Save the computed prev_sp.
4378 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 4379 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
4380 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4381
336d1bba
AC
43822003-07-16 Andrew Cagney <cagney@redhat.com>
4383
4384 * frame-base.h (frame_base_p_ftype): Delete definition.
4385 (frame_base_append_predicate): Delete declaration.
4386 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4387 (frame_unwind_append_predicate): Delete declaration.
4388 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4389 (append_predicate): Delete parameter "p".
4390 (frame_unwind_append_predicate): Delete function.
4391 (frame_unwind_append_sniffer): Update call to append_predicate.
4392 (frame_unwind_free): Delete function.
4393 (_initialize_frame_unwind): Pass NULL as "free" to
4394 register_gdbarch_data.
4395 (frame_unwind_init): Append the dummy_frame_sniffer.
4396 (frame_unwind_find_by_frame): Simplify.
4397 * frame-base.c (struct frame_base_table): Delete field "p".
4398 (append_predicate): Delete parameter "p".
4399 (frame_base_append_predicate): Delete function.
4400 (frame_base_append_sniffer): Update call to append_predicate.
4401 (frame_base_free): Delete function.
4402 (frame_base_find_by_frame): Simplify.
4403 (_initialize_frame_base): Pass NULL as "free" to
4404 register_gdbarch_data.
4405 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4406 (x86_64_sigtramp_frame_sniffer): Replace
4407 "x86_64_sigtramp_frame_p".
4408 (x86_64_init_abi): Set the frame unwind sniffers.
4409 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4410 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4411 (m68k_gdbarch_init): Set the frame unwind sniffers.
4412 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4413 "i386_sigtramp_frame_p".
4414 (i386_frame_sniffer): Replace "i386_frame_p".
4415 (i386_gdbarch_init): Set the frame unwind sniffers.
4416 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4417 (avr_gdbarch_init): Set the frame unwind sniffers.
4418 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4419 "alpha_sigtramp_frame_p"
4420 (alpha_heuristic_frame_sniffer): Replace
4421 "alpha_heuristic_frame_p".
4422 (alpha_gdbarch_init): Set the frame unwind sniffers.
4423 (alpha_dwarf2_init_abi): Ditto.
4424 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4425 "alpha_debug_frame_p".
4426 (alpha_mdebug_frame_base_sniffer): Replace
4427 "alpha_mdebug_frame_base_p".
4428 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4429 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4430 (d10v_gdbarch_init): Set the frame unwind sniffer.
4431 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4432 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4433 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4434 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4435 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4436 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4437
48db5a3c
CV
44382003-07-16 Michael Snyder <msnyder@redhat.com>
4439
4440 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4441 should go thru sh_dsp_register_sim_regno, else the dsp regs
4442 will not get the right values.
4443
44442003-07-16 Corinna Vinschen <vinschen@redhat.com>
4445
4446 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4447 deprecated_store_floating by call to store_typed_floating.
4448 (sh_sh4_register_convert_to_raw): Substitute call to
4449 deprecated_extract_floating by call to extract_typed_floating.
4450
44512003-07-16 Corinna Vinschen <vinschen@redhat.com>
4452
4453 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4454
44552003-07-16 Corinna Vinschen <vinschen@redhat.com>
4456
4457 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4458 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4459 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4460 as possible.
4461 (do_pseudo_register): Remove.
4462 (sh_push_dummy_code): New function.
4463 (sh64_store_struct_return): Rename from sh_store_struct_return.
4464 Only called for sh64 now.
4465 (sh_extract_struct_value_address): Regcache'ify.
4466 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4467 and accomodate new tasks.
4468 (sh64_push_return_address): Rename from sh_push_return_address.
4469 Only called for sh64 now.
4470 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4471 Regcache'ify.
4472 (sh3e_sh4_extract_return_value): Regcache'ify.
4473 (sh_default_store_return_value): Ditto.
4474 (sh3e_sh4_store_return_value): Ditto.
4475 (sh_default_register_byte): Remove.
4476 (sh_sh4_register_byte): Remove.
4477 (sh_default_register_raw_size): Remove.
4478 (sh_sh4_register_raw_size): Remove.
4479 (sh_register_virtual_size): Remove.
4480 (sh_sh3e_register_virtual_type): Remove.
4481 (sh_sh3e_register_type): New function.
4482 (sh_sh4_register_virtual_type): Remove.
4483 (sh_sh4_register_type): New function.
4484 (sh_default_register_virtual_type): Remove.
4485 (sh_default_register_type): New function.
4486 (do_fv_register_info): Add parameters to accomodate call from
4487 sh_print_registers_info.
4488 (do_dr_register_info): Ditto.
4489 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4490 Add parameters to accomodate call from sh_print_registers_info.
4491 (sh_do_fp_register): Ditto.
4492 (sh64_do_pseudo_register): Call do_dr_register_info,
4493 do_fv_register_info and sh_do_fp_register with default parameters.
4494 (sh_do_register): Add parameters to accomodate call from
4495 sh_print_registers_info.
4496 (sh_print_register): Ditto.
4497 (sh_print_registers_info): Rename from sh_do_registers_info.
4498 Add parameters to be used as gdbarch_print_registers_info
4499 implementation. Accomodate removed do_pseudo_register function
4500 pointer.
4501 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4502 function pointer. Call sh_print_register with default parameters.
4503 (sh64_do_registers_info): Call sh_print_registers_info instead of
4504 sh_do_registers_info.
4505 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4506 detection of deprecated vs. non-deprecated functionality.
4507 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4508 function pointer assignments by direct function calls.
4509
e8a89fe2
AC
45102003-07-15 Andrew Cagney <cagney@redhat.com>
4511
4512 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4513 (frame_register_unwind, create_new_frame): Ditto.
4514 (legacy_get_prev_frame, get_frame_type): Ditto.
4515 (get_frame_base_address): Use frame_base_find_by_frame.
4516 (get_frame_locals_address): Use frame_base_find_by_frame.
4517 (get_frame_args_address): Use frame_base_find_by_frame.
4518 * frame-base.h (frame_base_sniffer_ftype): Declare.
4519 (frame_base_append_sniffer): Declare.
4520 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4521 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4522 (frame_base_append_sniffer): New function.
4523 (frame_base_append_predicate): Add a NULL sniffer.
4524 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4525 (struct frame_base_table): Add "sniffer".
4526 (frame_base_free): Free the "sniffer" table.
4527 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4528 (frame_unwind_append_sniffer): Declare.
4529 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4530 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4531 (struct frame_unwind_table): Add "sniffer", delete "middle".
4532 (append_predicate): Add "sniffer" parameter, append the sniffer.
4533 (frame_unwind_init): Update append_predicate call.
4534 (frame_unwind_append_sniffer): New function.
4535 (frame_unwind_append_predicate): Update append_predicate call.
4536 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4537
0714963c
AC
45382003-07-15 Andrew Cagney <cagney@redhat.com>
4539
4540 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4541 before code inhibiting repeated unwind attempts. Add to
4542 commentary on that test's problems.
4543 * blockframe.c (inside_main_func): Look for "main" in the minimal
4544 symbol table.
4545 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4546 identical.
4547
d9170e22
AC
45482003-07-15 Andrew Cagney <cagney@redhat.com>
4549
4550 * complaints.c (struct explanation): Define.
4551 (struct complaints): Change type of "explanation" to "struct
4552 explanation".
4553 (symfile_explanations): Convert to a "struct explanation" table.
4554 (vcomplaint): Update.
4555
eba29c8c
ML
45562003-07-15 Michal Ludvig <mludvig@suse.cz>
4557
4558 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 4559 (supply_gregset, fill_gregset): Call
eba29c8c
ML
4560 x86_64_linux_(fill,supply)_gregset functions.
4561 * x86-64-linux-tdep.c (USER_*): New defines.
4562 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4563 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4564 New functions.
4565 (fetch_core_registers): Ditto.
4566 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4567 * x86-64-linux-tdep.h: New file.
4568 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4569 and core-regset.o.
4570 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4571
68cc0bfb
MK
45722003-07-13 Mark Kettenis <kettenis@gnu.org>
4573
88a115f7
MK
4574 * x86-64-tdep.c (x86_64_store_return_value): Use
4575 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 4576
68cc0bfb
MK
4577 * configure.host: Add x86_64-*-freebsd*.
4578 * configure.tgt: Add x86_64-*-freebsd*.
4579 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4580 * amd64fbsd-nat.c: New file.
4581 * amd64fbsd-tdep.c: New file.
4582 * config/i386/nm-fbsd64.h: New file.
4583 * config/i386/fbsd64.mh: New file.
4584 * config/i386/fbsd64.mt: New file.
4585
138e7be5
MK
45862003-07-11 Mark Kettenis <kettenis@gnu.org>
4587
4588 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4589 `sc_regs_offset' and `sc_fpregs_offset'.
4590 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4591 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4592 (alpha_sigtramp_register_address): Rewrite to use new members of
4593 `struct gdbarch_tdep'.
4594 (alpha_gdbarch_init): Initialize new members of struct
4595 gdbarch_tdep'.
4596 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4597 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4598 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4599 (alphafbsd_pc_in_sigtramp): Implement.
4600 (alphafbsd_sigtramp_offset): New function.
4601 (alphafbsd_sigcontext_addr): New function.
4602 (alphafbsd_init_abi): Initialize signal trampoline related members
4603 of `struct gdbarch_tdep'.
4604 (_initialize_alphafbsd_tdep): Add prototype.
4605
95303a68
TR
46062003-07-11 Theodore A. Roth <troth@openavr.org>
4607
ba292e4c
TR
4608 * Makefile.in (install-only): Quote sed expression when generating
4609 transformed_name.
95303a68 4610
6896c0c7
RH
46112003-07-11 Richard Henderson <rth@redhat.com>
4612
4613 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4614 * dwarf2-frame.c: Include complaints.h.
4615 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4616 variable initialization; return NULL on error.
4617 (decode_frame_entry): New.
4618
8edd5d01
AC
46192003-07-11 Andrew Cagney <cagney@redhat.com>
4620
c4a09524
AC
4621 * frame.h (frame_address_in_block): Delete declaration.
4622 * blockframe.c (frame_address_in_block): Delete function.
4623 (get_frame_block): Use get_frame_address_in_block.
4624 (block_innermost_frame): Ditto.
4625 * stack.c (print_frame, backtrace_command_1): Ditto.
4626
8edd5d01
AC
4627 * frame.h (get_frame_address_in_block): Declare.
4628 (frame_unwind_address_in_block): Declare.
4629 * frame.c (frame_unwind_address_in_block): New function.
4630 (get_frame_address_in_block): New function.
4631
f7968451
AC
46322003-07-10 Andrew Cagney <cagney@redhat.com>
4633
4634 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4635 pre-default. Note: re-generate has no effect.
a8f4cde1 4636
ae99b398
AC
46372003-07-10 Andrew Cagney <cagney@redhat.com>
4638
4639 * gdbarch.sh: When a variable, but not a function, compare against
4640 0. Fix problem in previous patch.
4641 * gdbarch.c: Re-generate.
a8f4cde1 4642
956ac328
AC
46432003-07-10 Andrew Cagney <cagney@redhat.com>
4644
4645 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4646 functions against NULL, not 0.
4647 * gdbarch.c: Re-generate.
a8f4cde1 4648
287c3240
FF
46492003-07-10 Fred Fish <fnf@ninemoons.com>
4650
4651 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4652 null string instead of a null pointer.
4653 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4654
32f63c4b
MS
46552003-07-09 Michael Snyder <msnyder@redhat.com>
4656
4657 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4658
402ecd56
MK
46592003-07-09 Mark Kettenis <kettenis@gnu.org>
4660
4661 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4662 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4663 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4664 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4665 * x86-64-tdep.c: ... from here.
4666
c481dac7
AS
46672003-07-09 Andreas Schwab <schwab@suse.de>
4668
4669 * m68k-tdep.h (enum struct_return): Define.
4670 (struct gdbarch_tdep): Add struct_return.
4671 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4672 bytes are padded to the right, not to the left. Pass struct value
4673 address in register %a1, not on stack.
4674 (m68k_use_struct_convention): New function.
4675 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4676 struct_return in tdep to pcc_struct_return.
4677 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4678 reg_struct_return.
4679
a8f4cde1 46802003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 4681
a8f4cde1 4682 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 4683
96a4ee76
AC
46842003-07-09 Andrew Cagney <cagney@redhat.com>
4685
4686 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4687 Add comments about the checks.
4688
1517c6d1
AC
46892003-07-08 Andrew Cagney <cagney@redhat.com>
4690
4691 * Makefile.in: Make dependency section headers consistent.
4692 (config_h): Move to $BUILD headers section.
4693 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4694 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4695 (ada-exp.tab.c): Move to YACC/LEX section.
4696 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4697 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4698
dc5dd1eb
KW
46992003-07-08 Kris Warkentin <kewarken@qnx.com>
4700
4701 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
4702 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4703 of strerror with safe_strerror, use ISO C function definitions,
4704 and replace instances of sprintf with snprintf.
dc5dd1eb 4705
612dde91
AC
47062003-07-07 Andrew Cagney <cagney@redhat.com>
4707
4708 * frame.c (get_prev_frame): Enable check for identical frames.
4709 Update comments. Update error messages.
4710
492c11d3
JB
47112003-07-07 Joel Brobecker <brobecker@gnat.com>
4712
4713 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4714
376a5a49
JB
47152003-07-07 Joel Brobecker <brobecker@gnat.com>
4716
4717 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4718 sort_symtab_syms, no longer necessary.
4719
22b4a9ad
JB
47202003-07-07 Joel Brobecker <brobecker@gnat.com>
4721
4722 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4723
5bbcb741
JB
47242003-07-07 Joel Brobecker <brobecker@gnat.com>
4725
4726 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4727 (mips_register_byte): Likewise.
4728
c139e7d9
DJ
47292003-07-07 Daniel Jacobowitz <drow@mvista.com>
4730
4731 * Makefile.in (sparc_tdep_h): New.
4732 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4733 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4734 * sparc-linux-nat.c: Include "sparc-tdep.h".
4735 * sparc-nat.c: Likewise.
4736 * sparc-tdep.c: Likewise.
4737 * sparc64nbsd-nat.c: Likewise.
4738 * sparcnbsd-nat.c: Likewise.
4739 * sparcnbsd-tdep.c: Likewise.
4740 * sparc-tdep.h: New file.
4741 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4742 and sparc_npc_regnum.
4743
fd8f87c5
DJ
47442003-07-07 Daniel Jacobowitz <drow@mvista.com>
4745
4746 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4747 (mips_linux_cannot_store_register): List supported instead of
4748 unsupported registers.
4749
13adf674
DJ
47502003-07-07 Daniel Jacobowitz <drow@mvista.com>
4751
4752 * disasm.c (dump_insns): Separate instructions from addresses.
4753
8de307e0
AS
47542003-07-07 Andreas Schwab <schwab@suse.de>
4755
4756 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4757 dependencies.
4758 * m68k-tdep.c (NUM_FREGS): Delete.
4759 (SIG_PC_FP_OFFSET): Delete.
4760 (TARGET_M68K): Delete.
4761 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4762 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4763 P_MOVEL_SP, P_MOVEML_SP): Define.
4764 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4765 P_TRAP): Delete.
4766 (m68k_register_raw_size): Delete.
4767 (m68k_register_virtual_size): Delete.
4768 (m68k_register_type): Renamed from m68k_register_virtual_type and
4769 add gdbarch argument.
4770 (m68k_store_struct_return): Delete.
4771 (m68k_deprecated_extract_return_value): Delete.
4772 (m68k_deprecated_extract_struct_value_address): Delete.
4773 (m68k_frame_chain): Delete.
4774 (m68k_frame_saved_pc): Delete.
4775 (m68k_fix_call_dummy): Delete.
4776 (m68k_push_dummy_frame): Delete.
4777 (m68k_pop_frame): Delete.
4778 (m68k_extract_return_value): New function.
4779 (m68k_store_return_value): Rewrite using regcache.
4780 (m68k_extract_struct_value_address): Rewrite using regcache.
4781 (m68k_push_dummy_call): New function.
4782 (struct m68k_frame_cache): Define.
4783 (m68k_alloc_frame_cache): New function.
4784 (m68k_analyze_frame_setup): New function.
4785 (m68k_analyze_register_saves): New function.
4786 (m68k_analyze_prologue): New function.
4787 (m68k_skip_prologue): Rewrite using above functions.
4788 (m68k_unwind_pc): New function.
4789 (m68k_frame_cache): New function.
4790 (m68k_frame_this_id): New function.
4791 (m68k_frame_prev_register): New function.
4792 (m68k_frame_unwind): New variable.
4793 (m68k_frame_p): New function.
4794 (m68k_sigtramp_frame_cache): New function.
4795 (m68k_sigtramp_frame_this_id): New function.
4796 (m68k_sigtramp_frame_prev_register): New function.
4797 (m68k_sigtramp_frame_unwind): New variable.
4798 (m68k_sigtramp_frame_p): New function.
4799 (m68k_frame_base_address): New function.
4800 (m68k_frame_base): New function.
4801 (m68k_unwind_dummy_id): New function.
4802 (fill_gregset): Use regcache_collect.
4803 (fill_fpregset): Likewise.
4804 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4805 defined.
4806 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4807 deprecated_init_frame_pc, deprecated_store_struct_return,
4808 deprecated_extract_return_value, deprecated_store_return_value,
4809 deprecated_frame_chain, deprecated_frame_saved_pc,
4810 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4811 deprecated_register_virtual_size,
4812 deprecated_max_register_raw_size,
4813 deprecated_max_register_virtual_size,
4814 deprecated_register_virtual_type, deprecated_register_size,
4815 deprecated_register_byte, deprecated_register_bytes,
4816 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4817 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4818 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4819 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4820 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4821 deprecated_push_dummy_frame, deprecated_pop_frame,
4822 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4823 only if SYSCALL_TRAP is defined. Set extract_return_value,
4824 store_return_value, extract_struct_value_address, register_type,
4825 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4826 predicates.
4827 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4828 M68K_MAX_REGISTER_SIZE): Define.
4829 (struct m68k_sigtramp_info): Define.
4830 (struct gdbarch_tdep): Add get_sigtramp_info.
4831 * m68klinux-nat.c (fetch_register): Use register_size instead of
4832 REGISTER_RAW_SIZE. Don't put assignment in if.
4833 (store_register): Likewise.
4834 (fetch_inferior_registers): Likewise.
4835 (store_inferior_registers): Likewise.
4836 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4837 (m68k_linux_frame_saved_pc): Delete.
4838 (m68k_linux_sigcontext_reg_offset,
4839 m68k_linux_ucontext_reg_offset): Define.
4840 (m68k_linux_get_sigtramp_info): New function.
4841 (m68k_linux_extract_return_value): Rewrite using regcache.
4842 (m68k_linux_store_return_value): Likewise.
4843 (m68k_linux_extract_struct_value_address): Likewise.
4844 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4845 Don't set deprecated_frame_saved_pc,
4846 deprecated_extract_return_value, deprecated_store_return_value,
4847 deprecated_extract_struct_value_address. Set
4848 extract_return_value, store_return_value,
4849 extract_struct_value_address.
4850
eb8bc282
AC
48512003-07-07 Andrew Cagney <cagney@redhat.com>
4852
4853 * expprint.c: Include "user-regs.h" instead of "frame.h".
4854 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4855 frame_map_regnum_to_name.
4856 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4857 (frame_map_name_to_regnum): Simplify, call
4858 user_reg_map_name_to_regnum.
4859 (frame_map_regnum_to_name): Simplify, call
4860 user_reg_map_regnum_to_name.
4861 (frame_register_unwind): Update.
4862 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4863 (_initialize_frame_reg): Call user_reg_add_builtin.
4864 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4865 (value_of_register): Use value_of_user_reg.
4866 * eval.c (evaluate_subexp_standard): Update.
4867 * parse.c (write_dollar_variable): Update.
4868 * d10v-tdep.c (d10v_print_registers_info): Update.
4869 * infcmd.c (registers_info): Update.
4870 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4871 (builtin_regs_h): Delete macro.
4872 (user_regs_h): Define.
4873 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4874 (builtin-regs.o): Delete target.
4875 (user-regs.o): Specify dependencies.
4876 (expprint.o): Update dependencies.
4877 (findvar.o): Update dependencies.
4878 (frame.o): Update dependencies.
4879 (std-regs.o): Update dependencies.
4880
9f476a01
CF
48812003-07-06 Christopher Faylor <cgf@redhat.com>
4882
4883 * win32-nat.c (solib_symbols_add): Use one variable for all section
4884 address stuff. Pass variable rather than address of variable to
4885 safe_symbol_file_add.
4886
a731b831
AS
48872003-07-06 Andreas Schwab <schwab@suse.de>
4888
4889 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4890
9f83329d
JB
48912003-07-04 Joel Brobecker <brobecker@gnat.com>
4892
4893 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4894
27e28cc5
KW
48952003-07-04 Kris Warkentin <kewarken@qnx.com>
4896
4897 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4898
48992003-07-04 Kris Warkentin <kewarken@qnx.com>
4900
4901 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4902 * config/i386/nto.mh: New file.
4903 * config/i386/nm-nto.h: New file.
4904 * configure.host: Add i[3456]86-*-nto*.
4905
100f2e98
JB
49062003-07-03 Joel Brobecker <brobecker@gnat.com>
4907
4908 * remote-vx.c (vx_add_symbols): Fix compilation error.
4909
e23457df
AC
49102003-07-03 Andrew Cagney <cagney@redhat.com>
4911
4912 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4913 * gdbarch.h, gdbarch.c: Re-generate.
4914 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4915 (legacy_register_name): Declare.
4916 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4917 (REGISTER_NAME): Define.
4918 * sparc-tdep.c (legacy_register_name): New function.
4919 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4920 (REGISTER_NAME): Define.
4921 (hppa64_register_name): Declare.
4922 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4923 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4924 (hppa64_register_name): New function.
4925 (hppa_register_name): New function.
4926 * arch-utils.c (legacy_register_name): Delete.
4927 * arch-utils.h (legacy_register_name): Delete.
4928
38caaeec
DJ
49292003-07-03 Daniel Jacobowitz <drow@mvista.com>
4930
4931 * cli/cli-interp.c (cli_interpreter_resume): Update the
4932 cli_uiout's stream to gdb_stdout.
4933
dadd712e
AC
49342003-07-03 Andrew Cagney <cagney@redhat.com>
4935
4936 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4937 predicate.
4938 * gdbarch.h, gdbarch.c: Re-generate.
4939 * regcache.c (init_regcache_descr): Use legacy code when either
4940 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4941
c7f1390e
DJ
49422003-07-02 Daniel Jacobowitz <drow@mvista.com>
4943
4944 * NEWS: Move "set logging" entry into GDB 6.0 section.
4945
4bc8c588
JB
49462003-07-02 Jim Blandy <jimb@redhat.com>
4947
a9dd42f1
JB
4948 * s390-tdep.c (struct frame_extra_info): new member:
4949 'stack_bought_valid'.
4950 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4951 initialize fextra_info->stack_bought.
4952 (s390_frameless_function_invocation): Don't trust the value of
4953 fextra_info_ptr->stack_bought unless
4954 fextra_info->stack_bought_valid is set.
4955
4bc8c588
JB
4956 New S390 prologue analyzer.
4957 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4958 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4959 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4960 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4961 compute_x_addr, s390_on_stack, s390_store,
4962 s390_get_signal_frame_info): New functions.
4963 (S390_NUM_SPILL_SLOTS): New macro.
4964 (s390_get_frame_info): Rewritten.
4965 (is_arg_reg): Deleted.
4966
4967 Break out the decoding of S/390 instructions into separate
4968 functions, to make it more legible, and easier to check
4969 against the spec.
4970 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4971 is_rx, is_rxe): New functions.
4972 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4973 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4974 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4975 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4976 enums for opcode values. (Is this an improvement?)
4977
fd13a04a
AC
49782003-07-02 Andrew Cagney <cagney@redhat.com>
4979
4980 * i386-tdep.c: Revert change committed as part of trad-frame code
4981 below.
4982
3f8091c1
DJ
49832003-07-02 Daniel Jacobowitz <drow@mvista.com>
4984
4985 * breakpoint.c (insert_catchpoint): Make static.
4986
8dd5115e
AS
49872003-07-02 Andreas Schwab <schwab@suse.de>
4988
4989 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4990 former ia64_push_arguments and ia64_push_return_address, and use
4991 regcache functions instead of read/write_register.
4992 (ia64_gdbarch_init): Set push_dummy_call instead of
4993 deprecated_push_arguments and deprecated_push_return_address.
4994
a2229c23
AJ
49952003-07-01 Andreas Jaeger <aj@suse.de>
4996
4997 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4998 before the call.
4999 Set %rax only to number of SSE registers used.
5000
3b3850e8
AC
50012003-07-01 Andrew Cagney <cagney@redhat.com>
5002
5003 * trad-frame.h: Update comments, a -1 .addr is reserved.
5004 (trad_frame_value_p, trad_frame_addr_p): Declare.
5005 (trad_frame_reg_p): Declare.
5006 (trad_frame_set_value): Rename trad_frame_register_value.
5007 (trad_frame_set_unknown): Declare.
5008 * trad-frame.c (trad_frame_realreg_p): New function.
5009 (trad_frame_addr_p, trad_frame_value_p): New function.
5010 (trad_frame_set_unknown): New function.
5011 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5012 (trad_frame_prev_register): Use trad_frame_realreg_p,
5013 trad_frame_addr_p and trad_frame_value_p.
5014 (trad_frame_set_value): Rename trad_frame_register_value.
5015 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5016 and trad_frame_set_value.
a2229c23 5017
4d819d0e
JB
50182003-06-30 Jim Blandy <jimb@redhat.com>
5019
5020 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5021 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5022 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5023 for 16 registers, and then 32 more bytes.
5024 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5025 New macros.
5026 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5027 Move up in the file, since it's now used by is_simple_arg.
5028 (is_simple_arg): Don't assume registers are four bytes long.
5029 Exclude all double arguments. Extended floats are not simple
5030 args.
5031 (is_power_of_two): New function.
5032 (pass_by_copy_ref): Call is_power_of_two, and check that the
5033 length fits in a register, rather than listing all the acceptable
5034 sizes. Extended floats are not passed by reference.
5035 (s390_push_arguments): Don't assume registers are four bytes long.
5036 Reserve an argument register to point to the buffer for structures
5037 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5038 S390_STACK_FRAME_OVERHEAD.
5039
1ad828f1
AS
50402003-06-30 Andreas Schwab <schwab@suse.de>
5041
5042 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5043 format error message.
5044
39b00981
JB
50452003-06-30 Joel Brobecker <brobecker@gnat.com>
5046
5047 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5048
b2a7f303
DC
50492003-06-30 David Carlton <carlton@kealia.com>
5050
5051 Band-aid for PR c++/1245.
5052 * Makefile.in (cp-support.o): Depend on complaints_h.
5053 * cp-support.c: Include complaints.h. Add declaration for
5054 find_last_component.
5055 (cp_find_first_component): Separate code into
5056 cp_find_first_component_aux.
5057 (cp_find_first_component_aux): Call demangled_name_complaint.
5058 (demangled_name_complaint): New.
5059
a257b5bb
AC
50602003-06-30 Andrew Cagney <cagney@redhat.com>
5061
5062 * remote.c (remote_write_bytes): Explicitly compute and then use
5063 the payload size. Update comments to reflect. Fixes problem of
5064 GDB not sending small packets as found by Fred Fish.
5065
0a2cfde4
AC
50662003-06-30 Andrew Cagney <cagney@redhat.com>
5067
5068 * remote.c (remote_async_wait): Fix -Wformat problem.
5069
3fcb8548
AC
50702003-06-29 Andrew Cagney <cagney@redhat.com>
5071
5072 * remote.c (remote_wait): Call error, and not warning, when the
5073 packet is corrupt.
5074 (remote_async_wait): Ditto.
5075
9f9970a3
DJ
50762003-06-29 Daniel Jacobowitz <drow@mvista.com>
5077
5078 * sparc-tdep.c (sparc_y_regnum): Make external again.
5079
83a8ccca
DJ
50802003-06-29 Daniel Jacobowitz <drow@mvista.com>
5081
5082 * cli/cli-logging.c (pop_output_files): Add void to function
5083 definition.
5084
d2cf594a
AC
50852003-06-29 Andrew Cagney <cagney@redhat.com>
5086
5087 * frame.c (frame_register_unwind): Use unsigned char when dumping
5088 the buffer contents.
5089
0fac0b41
DJ
50902003-06-28 Daniel Jacobowitz <drow@mvista.com>
5091
5092 * cli/cli-logging.c: New file.
5093 * cli-out.c (struct ui_out_data): Add original_stream.
5094 (cli_redirect): New function.
5095 (cli_ui_out_impl): Add cli_redirect.
5096 (cli_out_new): Initialize original_stream.
5097 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5098 (uo_redirect, ui_out_redirect): New.
5099 * ui-out.h (struct ui_out_impl): Add redirect member.
5100 (redirect_ftype): New.
5101 (ui_out_redirect): Add prototype.
5102 * Makefile.in: Add rules for cli-logging.c.
5103 * NEWS: Mention "set logging".
5104
88a07d7c
EZ
51052003-06-27 Elena Zannoni <ezannoni@redhat.com>
5106
5107 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5108
4eb58876
AC
51092003-06-27 Andrew Cagney <cagney@redhat.com>
5110
5111 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5112 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5113 * avr-tdep.c (avr_call_dummy_address): Delete function.
5114 (avr_gdbarch_init): Do not set call_dummy_address.
5115
1549f619
EZ
51162003-06-27 Elena Zannoni <ezannoni@redhat.com>
5117
5118 * symfile.c (syms_from_objfile): Move variables to inner block.
5119 Move the checks for the non-mainline case a bit earlier to avoid
5120 doing some useless computations.
5121
3cb3398d
EZ
51222003-06-27 Elena Zannoni <ezannoni@redhat.com>
5123
5124 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5125
3799ccc6
EZ
51262003-06-26 Elena Zannoni <ezannoni@redhat.com>
5127
5128 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5129 sections.
5130
ce1f6491
MC
51312003-06-26 Michael Chastain <mec@shout.net>
5132
5133 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5134 gdb/testsuite/gdb.c++/pr-1210.exp.
5135
d958dfd0
AC
51362003-06-26 Andrew Cagney <cagney@redhat.com>
5137
5138 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5139 altivec_expression.h and altivec_registers.h.
5140
d31431ed
AC
51412003-06-26 Andrew Cagney <cagney@redhat.com>
5142
5143 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5144 info->mach when MIPS16. Patch suggested by Fred Fish.
5145
714b1282
AC
51462003-06-26 Andrew Cagney <cagney@redhat.com>
5147
5148 * utils.c (internal_vproblem): Print the problem to a reason
5149 buffer and then pass to query. Make the msg variable more local.
5150
42efa47a
AC
51512003-06-26 Andrew Cagney <cagney@redhat.com>
5152
5153 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5154 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5155 * gdbarch.h, gdbarch.c: Re-generate.
5156 * frame-base.c (default_frame_args_address): Update. Use
5157 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5158 not available.
5159 (default_frame_locals_address): Ditto for
5160 DEPRECATED_FRAME_LOCALS_ADDRESS.
5161 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5162 (vax_frame_num_args): Update.
5163 (vax_gdbarch_init): Update.
5164 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5165 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5166 * mcore-tdep.c (mcore_gdbarch_init): Update.
5167 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5168 * ia64-tdep.c (ia64_gdbarch_init): Update.
5169 * symtab.h (address_class): Update comments.
5170 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5171 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5172 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5173 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5174 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5175 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5176 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5177 * alpha-mdebug-tdep.c: Update.
5178 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5179
8ffd9b1b
AJ
51802003-06-26 Andreas Jaeger <aj@suse.de>
5181
5182 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5183 of SSE registers so that varargs functions work. Rework handling
5184 of passing arguments on the stack.
5185 (x86_64_store_return_value): Return double and float values in SSE
5186 register.
5187
e8ac10a6
MC
51882003-06-24 Michael Chastain <mec@shout.net>
5189
5190 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5191 the "constructor breakpoints ignored" bug.
5192
986af8e6
DC
51932003-06-25 David Carlton <carlton@kealia.com>
5194
5195 * MAINTAINERS: Update e-mail address.
5196
d64558a5
JB
51972003-06-24 Jim Blandy <jimb@redhat.com>
5198
e538d2d7
JB
5199 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5200
02631ec0
JB
5201 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5202 function.
5203 (ppc_linux_init_abi): Register it as the
5204 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5205
e716d87a
JB
5206 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5207 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5208 method.
5209
d64558a5
JB
5210 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5211 (ppc64_standard_linkage_target): Use it.
5212
449a5da4
AC
52132003-06-23 Andrew Cagney <cagney@redhat.com>
5214
5215 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5216 for 0 "int0" and 4 "int32" sized registers.
5217 * gdbtypes.c (builtin_type_int0): Define.
5218 (build_gdbtypes): Initialize builtin_type_int0.
5219 * gdbtypes.h (builtin_type_int0): Declare.
5220
b2a02dda
SC
52212003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5222
5223 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5224 as characters are unsigned.
5225
fba3138e
DJ
52262003-06-22 Daniel Jacobowitz <drow@mvista.com>
5227
5228 PR gdb/1179
5229 * dwarfread.c (struct_type): Skip static fields without crashing.
5230
f6c8180b
AC
52312003-06-22 Andrew Cagney <cagney@redhat.com>
5232
5233 GDB 6.0 branch created.
f2c06f52
AC
5234 * README: Update.
5235 * PROBLEMS: Update. Empty.
5236 * NEWS: Update.
f6c8180b 5237
ae822768
DJ
52382003-06-22 Daniel Jacobowitz <drow@mvista.com>
5239
5240 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5241 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5242
261de166
AC
52432003-06-22 Andrew Cagney <cagney@redhat.com>
5244
5245 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5246 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5247 Velikov.
5248
30e94205
DJ
52492003-06-22 Daniel Jacobowitz <drow@mvista.com>
5250
5251 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5252 compilers.
5253
9e14d721
DJ
52542003-06-21 Daniel Jacobowitz <drow@mvista.com>
5255
5256 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5257 argument of val_print.
5258 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5259 to the address argument of baseclass_offset or target_read_memory.
5260 Do add it to the argument of cp_print_value_fields.
5261
a4b8ebc8
AC
52622003-06-21 Andrew Cagney <cagney@redhat.com>
5263
5264 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5265 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5266 instead of 0..NUM_REGS.
5267 (mips_register_reggroup_p): New function.
5268 (mips_pseudo_register_write): New function.
5269 (mips_pseudo_register_read): New function.
5270 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5271 based on the register's type.
5272 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5273 cooked.
5274 (mips_get_saved_register): Simplify. Assert that REGNO is a
5275 pseudo / cooked.
5276 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5277 (mips_register_type): Replace mips_register_virtual_type. Map
5278 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5279 when available.
5280 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5281 that the register is cooked / virtual.
5282 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5283 Only get the extra info when needed.
5284 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5285 (mips32_heuristic_proc_desc): Fetch the cooked register.
5286 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5287 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5288 (mips_print_register): Use gdbarch_register_type, instead of
5289 REGISTER_VIRTUAL_TYPE.
5290 (print_gp_register_row): Use gdbarch_register_type, instead of
5291 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5292 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5293 Print the pseudo / cooked registers.
5294 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5295 Print the pseudo / cooked registers.
5296 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5297 REG_NUM is pseudo / cooked.
5298 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5299 (mips_n32n64_xfer_return_value): Ditto.
5300 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5301 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5302 (mips_register_sim_regno): New function.
5303 (mips_gdbarch_init): Set deprecated_register_byte,
5304 register_group_p, pseudo_register_write, pseudo_register_read,
5305 register_sim_regno, and num_pseudo_regs. Set register_type,
5306 instead of register_virtual_type.
5307 * Makefile.in (mips-tdep.o): Update dependencies.
5308 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5309 REGISTER_VIRTUAL_TYPE.
5310 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5311 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5312 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5313 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5314 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5315
325ed089
DJ
53162003-06-21 Daniel Jacobowitz <drow@mvista.com>
5317
5318 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5319 * cli/cli-cmds.c: Include "gdb_vfork.h".
5320 (shell_escape): Use vfork.
5321
f0e7d0e8
AC
53222003-06-21 Andrew Cagney <cagney@redhat.com>
5323
c57bb9fa
AC
5324 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5325 32 bit floating-point register saves.
5326
6e51443a
AC
5327 * frame.h (deprecated_unwind_get_saved_register): Delete.
5328 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5329 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5330 and deprecated_get_next_frame_hack instead of
5331 deprecated_unwind_get_saved_register.
5332
ed183c7c
AC
5333 * mips-tdep.c (mips_dump_tdep): Do not print
5334 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5335
f0e7d0e8
AC
5336 * frame.c (get_frame_register): New function.
5337 (frame_unwind_register_signed): New function.
5338 (get_frame_register_signed): New function.
5339 (frame_unwind_register_unsigned): New function.
5340 (get_frame_register_unsigned): New function.
5341 * frame.h: Add comments on naming schema.
5342 (get_frame_register, frame_unwind_register_signed): Declare.
5343 (get_frame_register_signed, get_frame_register_signed): Declare.
5344 (frame_unwind_register_unsigned): Declare.
5345 (get_frame_register_unsigned): Declare.
5346
2224d941
TR
53472003-06-20 Theodore A. Roth <troth@openavr.org>
5348
5349 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5350
8619218d
TR
53512003-06-20 Theodore A. Roth <troth@openavr.org>
5352
5353 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5354 (avr_read_sp): Ditto.
5355
0b1b50c0
DJ
53562003-06-20 Daniel Jacobowitz <drow@mvista.com>
5357
5358 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5359 * config/arm/nm-linux.h: Likewise.
5360 * config/arm/tm-linux.h: Likewise.
5361 * config/ia64/nm-linux.h: Likewise.
5362 * config/ia64/tm-ia64.h: Likewise.
5363 * config/s390/tm-linux.h: Likewise.
5364 * config/s390/tm-s390.h: Likewise.
5365 * s390-nat.c: Likewise.
5366 * s390-tdep.c: Likewise.
5367
5368 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5369 * config/ia64/linux.mt: Likewise.
5370 * config/m68k/linux.mh: Likewise.
5371 * config/mips/linux.mt: Likewise.
5372 * config/powerpc/linux.mh: Likewise.
5373 * config/sh/linux.mt: Likewise.
5374
c8c18e65
KW
53752003-06-19 Kris Warkentin <kewarken@qnx.com>
5376
5377 * solib.c (solib_open): Change tests for whether to search
5378 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5379 comments.
5380
dcccef2e
TR
53812003-06-19 Theodore A. Roth <troth@openavr.org>
5382
5383 * avr-tdep.c (avr_frame_address): Delete function.
5384 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5385 set_gdbarch_frame_args_address.
5386
5861a190
AC
53872003-06-19 Andrew Cagney <cagney@redhat.com>
5388
5389 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5390 (REGISTER_CONVERT_FROM_TYPE): Delete.
5391 (mips_register_convert_to_type): Delete declaration.
5392 (mips_register_convert_from_type): Delete declaration.
5393 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5394 kernel/.
5395
0274a8ce
MS
53962003-06-19 Michael Snyder <msnyder@redhat.com>
5397
5398 * linux-nat.h: New file.
5399 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 5400 * lin-lwp.c: Include linux-nat.h.
0274a8ce 5401 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 5402 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
5403 (linux_make_note_section): Iterate over lwps instead of threads.
5404 (linux_do_thread_registers): Use lwp instead of merged pid.
5405 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 5406 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
5407 Add dependency on linux_nat_h.
5408
adf5f719
TR
54092003-06-19 Theodore A. Roth <troth@openavr.org>
5410
5411 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5412
6766a268
DJ
54132003-06-19 Daniel Jacobowitz <drow@mvista.com>
5414
5415 * varobj.c (get_type, get_target_type): Use check_typedef.
5416
1171114a
DJ
54172003-06-19 Daniel Jacobowitz <drow@mvista.com>
5418
5419 * breakpoint.c (insert_catchpoint): Call internal_error.
5420
adcf68a2
TR
54212003-06-19 Theodore A. Roth <troth@openavr.org>
5422
5423 * avr-tdep.c (avr_push_dummy_code): Delete function.
5424 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5425
ea67f13b
DJ
54262003-06-19 Daniel Jacobowitz <drow@mvista.com>
5427
5428 * arch-utils.c (default_prepare_to_proceed): Remove.
5429 (generic_prepare_to_proceed): Remove.
5430 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5431 (generic_prepare_to_proceed): Remove prototype.
5432 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5433 * gdbarch.c: Regenerate.
5434 * gdbarch.h: Regenerate.
5435 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5436 * hppah-nat.c (hppa_switched_threads): Remove.
5437 * infrun.c (prepare_to_proceed): New static function, copied from
5438 generic_prepare_to_proceed. Remove select_it argument.
5439 (proceed): Call prepare_to_proceed.
5440 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5441 variables.
5442 (ptrace_wait): Don't set the removed variables.
5443 (hppa_switched_threads): Remove.
5444 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5445 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5446 (lin_lwp_prepare_to_proceed): Remove prototype.
5447 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5448 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5449
4add8633
TR
54502003-06-18 Theodore A. Roth <troth@openavr.org>
5451
5452 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5453 trad-frame.h.
5454 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5455 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5456 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5457 (AVR_PROLOGUE_*): Enumerate prologue types.
5458 (struct frame_extra_info): Remove.
5459 (struct avr_unwind_cache): Define.
5460 (avr_write_sp): Delete function.
5461 (avr_read_fp): Ditto.
5462 (avr_init_extra_frame_info): Ditto.
5463 (avr_pop_frame): Ditto.
5464 (avr_frame_saved_pc): Ditto.
5465 (avr_saved_pc_after_call): Ditto.
5466 (avr_push_return_address): Ditto.
5467 (avr_frame_chain): Ditto.
5468 (avr_store_struct_return): Ditto.
5469 (avr_push_arguments): Ditto.
5470 (avr_scan_prologue): Update comments. Changed to set up the info for
5471 cache unwinding. Now returns end of prologue PC.
5472 (avr_skip_prologue): Better handling of functions lacking a prologue
5473 by using avr_scan_prologue.
5474 (avr_scan_arg_moves): New function.
5475 (avr_saved_regs_unwinder): Ditto.
5476 (avr_frame_unwind_cache): Ditto.
5477 (avr_unwind_pc): Ditto.
5478 (avr_frame_this_id): Ditto.
5479 (avr_frame_prev_register): Ditto.
5480 (avr_frame_p): Ditto.
5481 (avr_frame_base_address ): Ditto.
5482 (avr_unwind_dummy_id): Ditto.
5483 (avr_push_dummy_code): Ditto.
5484 (push_stack_item): Ditto.
5485 (pop_stack_item): Ditto.
5486 (avr_push_dummy_call): Ditto.
5487 (struct stack_item): Define.
5488 (avr_frame_unwind): Declare structure.
5489 (avr_frame_base): Ditto.
5490 (avr_gdbarch_init): Remove calls to
5491 set_gdbarch_deprecated_init_frame_pc,
5492 set_gdbarch_deprecated_target_read_fp,
5493 set_gdbarch_deprecated_dummy_write_sp,
5494 set_gdbarch_deprecated_fp_regnum,
5495 set_gdbarch_deprecated_push_arguments,
5496 set_gdbarch_deprecated_push_return_address,
5497 set_gdbarch_deprecated_pop_frame,
5498 set_gdbarch_deprecated_store_struct_return,
5499 set_gdbarch_deprecated_frame_init_saved_regs,
5500 set_gdbarch_deprecated_init_extra_frame_info,
5501 set_gdbarch_deprecated_frame_chain,
5502 set_gdbarch_deprecated_frame_saved_pc,
5503 set_gdbarch_deprecated_saved_pc_after_call.
5504 Add calls to set_gdbarch_push_dummy_call,
5505 set_gdbarch_push_dummy_code,
5506 frame_unwind_append_predicate,
5507 frame_base_set_default,
5508 set_gdbarch_unwind_dummy_id,
5509 set_gdbarch_unwind_pc.
5510 Wrap a long line.
5511
7be04a68
MS
55122003-06-18 Corinna Vinschen <vinschen@redhat.com>
5513
5514 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5515 registers for H8/300S.
5516 (h8300_print_registers_info): Ditto.
8ffd9b1b 5517 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 5518
ae087d01
DJ
55192003-06-18 Daniel Jacobowitz <drow@mvista.com>
5520
5521 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5522 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5523 (lin_lwp_wait): Likewise. Update comments.
5524 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5525 (pull_pid_from_list, linux_record_stopped_pid): New.
5526
07d8f827
SC
55272003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5528
5529 * ada-lang.c (scan_discrim_bound): Name first argument.
5530 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5531 declared by ALL_BLOCK_SYMBOLS.
5532
7cb47b14
SC
55332003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5534
5535 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5536 ("regcache.h"): Include it.
5537 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5538
6ad8ae5c
DJ
55392003-06-17 Daniel Jacobowitz <drow@mvista.com>
5540
5541 * NEWS: Mention gdbserver detach change and "disconnect" command.
5542 * infcmd.c (disconnect_command): New function.
5543 (_initialize_infcmd): Add ``disconnect'' command.
5544 * remote.c (remote_async_detach): Delete.
5545 (remote_detach): Merge remote_async_detach.
5546 (remote_disconnect): New.
5547 (init_remote_ops): Set to_disconnect.
5548 (init_remote_cisco_ops): Likewise.
5549 (init_remote_async_ops): Likewise. Use remote_detach.
5550 * target.c (cleanup_target): Default to_disconnect.
5551 (update_current_target): Inherit to_disconnect.
5552 (target_disconnect, debug_to_disconnect): New functions.
5553 (setup_target_debug): Set to_disconnect.
5554 * target.h (struct target_ops): Add to_disconnect.
5555 (target_disconnect): Add prototype.
5556
687595f9
DJ
55572003-06-17 Daniel Jacobowitz <drow@mvista.com>
5558
5559 * breakpoint.c (insert_catchpoint): New function.
5560 (insert_breakpoints): Use catch_exceptions to call
5561 insert_catchpoint. Disable catchpoints if they fail to insert.
5562
29239a8f
DJ
55632003-06-17 Daniel Jacobowitz <drow@mvista.com>
5564
5565 * symfile.c (reread_symbols): Clear sym_private.
5566
2cdf3c63
AC
55672003-06-17 Andrew Cagney <cagney@redhat.com>
5568
5569 * trad-frame.h (struct frame_info): Add opaque declaration.
5570 * remote-fileio.h (struct cmd_list_element): Add opaque
5571 declaration.
5572 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5573 comments.
5574
cf0e1e0d
DJ
55752003-06-17 Daniel Jacobowitz <drow@mvista.com>
5576
5577 * remote.c (remote_prepare_to_store): Replace call to
5578 deprecated_read_register_bytes with multiple regcache_raw_read
5579 calls.
5580
192cdb19
KW
55812003-06-17 Kris Warkentin <kewarken@qnx.com>
5582
5583 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5584 (nto_find_and_open_solib): Likewise.
5585 (nto_init_solib_absolute_prefix): Likewise.
5586 (_initialize_nto_tdep): Fix indentation.
5587
89929b45
KW
55882003-06-17 Kris Warkentin <kewarken@qnx.com>
5589
5590 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5591
46019f27
KW
55922003-06-17 Kris Warkentin <kewarken@qnx.com>
5593
5594 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5595
1a38736e
JB
55962003-06-17 Jim Blandy <jimb@redhat.com>
5597
5598 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5599
3605c34a
TR
56002003-06-16 Theodore A. Roth <troth@openavr.org>
5601
5602 * avr-tdep.c (avr_extract_return_value): New function.
5603 (avr_gdbarch_init): Set extract_return_value method.
5604
870b3035
AC
56052003-06-16 Andrew Cagney <cagney@redhat.com>
5606
5607 * frame.h (deprecated_get_next_frame_hack): Declare.
5608 * frame.c (legacy_saved_regs_prev_register): Only require
5609 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5610 there are always saved regs.
5611 (deprecated_generic_get_saved_register): Do not require
5612 DEPRECATED_FRAME_INIT_SAVED_REGS.
5613 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5614 use frame ID unwind instead.
5615 (deprecated_get_next_frame_hack): New function.
5616
63d47a7d
CV
56172003-06-16 Corinna Vinschen <vinschen@redhat.com>
5618
5619 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5620 (h8300_push_dummy_call): ...this function. Some minor optimization.
5621 (h8300_push_return_address): Remove.
5622 (h8300_gdbarch_init): Remove calls to
5623 set_gdbarch_deprecated_dummy_write_sp,
5624 set_gdbarch_deprecated_push_arguments and
5625 set_gdbarch_deprecated_push_return_address.
5626 Add call to set_gdbarch_push_dummy_call.
5627
4bb1dc5e
CV
56282003-06-16 Corinna Vinschen <vinschen@redhat.com>
5629
5630 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5631 (E_PSEUDO_EXR_REGNUM): Ditto.
5632 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 5633 registers into safe registers.
4bb1dc5e
CV
5634 (h8300_skip_prologue): Check for stm instruction to push registers
5635 used for register variables onto stack.
5636 (gdb_print_insn_h8300): Remove.
5637 (h8300_examine_prologue): Add a comment.
5638 (h8300_register_name): Take pseudo registers into account.
5639 (h8300s_register_name): Ditto.
5640 (h8300sx_register_name): Ditto.
5641 (h8300_print_register): Ditto.
5642 (h8300_print_registers_info): Define "nice" printing order.
5643 (h8300_saved_pc_after_call): Take pseudo registers into account.
5644 (h8300_register_type): Ditto. Return type used for remote connection
5645 when requesting real CCR or EXR register, return actual type when
5646 requesting pseudo CCR or EXR.
5647 (h8300_pseudo_register_read): New function.
5648 (h8300_pseudo_register_write): Ditto.
5649 (h8300_dbg_reg_to_regnum): Ditto.
5650 (h8300s_dbg_reg_to_regnum): Ditto.
5651 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5652 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5653 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5654 set_gdbarch_print_insn architecture dependent.
5655 Call set_gdbarch_pseudo_register_read and
5656 set_gdbarch_pseudo_register_write.
5657 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5658
a59fe496
AC
56592003-06-16 Andrew Cagney <cagney@redhat.com>
5660
5661 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5662 * gdbarch.h, gdbarch.c: Re-generate.
5663 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5664 * s390-tdep.c (s390_gdbarch_init): Update.
5665 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5666 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5667 * mips-tdep.c (mips_gdbarch_init): Update.
5668 * mcore-tdep.c (mcore_gdbarch_init): Update.
5669 * cris-tdep.c (cris_gdbarch_init): Update.
5670 * infcall.c (call_function_by_hand): Update.
5671 * ia64-tdep.c (ia64_push_arguments): Update comment.
5672 * frame.c (legacy_get_prev_frame): Do not assume
5673 SAVE_DUMMY_FRAME_TOS_P.
5674 * dummy-frame.c (find_dummy_frame): Update comment.
5675
6f4e5a41
AC
56762003-06-16 Andrew Cagney <cagney@redhat.com>
5677
5678 * regcache.c (do_cooked_read): Do not use register_valid_p.
5679
72fab697
TR
56802003-06-15 Theodore A. Roth <troth@openavr.org>
5681
5682 * avr-tdep.c (avr_register_type): Remove a blank line.
5683 (avr_scan_prologue): Correct some comments.
5684
e3d8b004
TR
56852003-06-15 Theodore A. Roth <troth@openavr.org>
5686
5687 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5688 prologue types.
8ffd9b1b 5689 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
5690 option.
5691 Add code to scan -mcall-prologues for mega devices.
5692
866b76ea
TR
56932003-06-15 Theodore A. Roth <troth@openavr.org>
5694
5695 * avr-tdep.c (avr_register_byte): Delete function.
5696 (avr_register_raw_size): Delete function.
5697 (avr_register_virtual_size): Delete function.
5698 (avr_register_virtual_type): Delete function.
5699 (avr_register_type): New function.
5700 (avr_address_to_pointer): Remove unused code.
5701 (avr_read_fp): Need to read FP as two separate bytes due to change to
5702 avr_register_type() usage.
5703 (avr_gdbarch_init): Don't set deprecated_register_size.
5704 Don't set deprecated_register_bytes.
5705 Don't set deprecated_register_byte.
5706 Don't set deprecated_register_raw_size.
5707 Don't set deprecated_max_register_raw_size.
5708 Don't set deprecated_register_virtual_size.
5709 Don't set deprecated_max_register_virtual_size.
5710 Don't set deprecated_register_virtual_type.
5711 Set register_type method.
5712
3993f6b1
DJ
57132003-06-15 Daniel Jacobowitz <drow@mvista.com>
5714
5715 * Makefile.in (linux-nat.o): Add rule.
5716 * linux-nat.c: New file.
5717 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5718 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5719 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5720 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5721 * config/arm/linux.mh (NATDEPFILES): Likewise.
5722 * config/i386/linux.mh (NATDEPFILES): Likewise.
5723 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5724 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5725 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5726 * config/mips/linux.mh (NATDEPFILES): Likewise.
5727 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5728 * config/s390/s390.mh (NATDEPFILES): Likewise.
5729 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5730
786a90bb
MK
57312003-06-15 Mark Kettenis <kettenis@gnu.org>
5732
5733 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5734 replace out-of-date comment.
5735
3bd3f01e
AC
57362003-06-15 Andrew Cagney <cagney@redhat.com>
5737
5738 * rdi-share/host.h (Fail): Change to a varargs function.
5739 * remote-rdi.c (Fail): Update.
8ffd9b1b 5740
de5b9bb9
MK
57412003-06-15 Mark Kettenis <kettenis@gnu.org>
5742
5743 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5744 (i386_convert_register_p, i386_register_to_value,
5745 i386_register_from_value): Handle types longer than 8 bytes.
5746
d532c08f
MK
57472003-06-15 Mark Kettenis <kettenis@gnu.org>
5748
5749 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5750 Move floating-point code to new function in i387-tdep.c.
5751 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5752 New functions containing code moved here from i386-tdep.c.
5753 * i387-tdep.h: Add opaque declaration for `struct type'.
5754 (i387_register_to_value, i387_value_to_register): New prototypes.
5755 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5756 (x86_64_init_abi): Set convert_register_p, register_to_value and
5757 value_to_register here.
8ffd9b1b 5758
42c466d7
AC
57592003-06-14 Andrew Cagney <cagney@redhat.com>
5760
5761 * mips-tdep.c (mips_register_to_value): Make static.
5762 (mips_value_to_register): Make static.
5763 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5764 * ia64-tdep.c (ia64_register_raw_size): Make static.
5765 (ia64_register_virtual_size): Make static.
5766 (ia64_register_byte): Make static.
5767 * i387-tdep.c: Include "i387-tdep.h".
5768 (print_387_control_word): Delete function.
5769 (print_387_status_word): Delete function.
5770 (print_387_status_bits): Delete function.
5771 (print_387_control_bits): Delete function.
5772 * Makefile.in (i387-tdep.o): Update dependencies.
5773 * rdi-share/host.h (Fail): Declare.
5774 * remote-rdi.c (Fail): Update to match declaration.
5775
2a9cda49
AC
57762003-06-14 Andrew Cagney <cagney@redhat.com>
5777
5778 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5779 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5780 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5781 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5782 * README: Delete reference to remote-array.
5783 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5784 (remote-array.o): Delete target.
5785 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5786 * remote-array.c: Delete file.
5787
ff2e87ac
AC
57882003-06-14 Andrew Cagney <cagney@redhat.com>
5789 Mark Kettenis <kettenis@gnu.org>
5790
5791 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5792 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5793 parameter with "frame".
5794 * gdbarch.h, gdbarch.c: Re-generate.
5795 * frame.h (put_frame_register): Declare.
5796 * frame.c (put_frame_register): New function.
5797 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5798 (legacy_register_to_value): Rewrite, use "frame" to get the
5799 register value.
5800 (legacy_value_to_register): Rewrite, use "frame" to find the
5801 register's location before storing.
5802 * arch-utils.h (legacy_convert_register_p): Update.
5803 (legacy_register_to_value, legacy_value_to_register): Update.
5804 * findvar.c (value_from_register): Rewrite, eliminate use of
5805 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5806 "frame" to REGISTER_TO_VALUE.
5807 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5808 lval_reg_frame_relative + lval_register branch of the switch. Do
5809 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5810 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5811 I386_EDI_REGNUM): New defines.
5812 (i386_next_regnum, i386_convert_register_p,
5813 i386_register_to_value, i386_value_to_register): New functions.
5814 (i386_register_convertible, i386_register_convert_to_virtual,
5815 i386_convert_to_raw): Remove functions.
5816 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5817 value_to_register instead of register_convertible,
5818 register_convert_to_virtual and register_convert_to_raw.
5819 * mips-tdep.c (mips_convert_register_p): New function.
5820 (mips_value_to_register): Replace mips_register_convert_from_type.
5821 (mips_register_to_value): Replace mips_register_convert_to_type.
5822 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5823 register_to_value.
5824 * alpha-tdep.c (alpha_convert_register_p): Update.
5825 (alpha_value_to_register): Update, store the register.
5826 (alpha_register_to_value): Update, fetch the register.
5827
98be1e77
TR
58282003-06-14 Theodore A. Roth <troth@openavr.org>
5829
5830 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5831 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5832 Don't set deprecated_call_dummy_words.
5833 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5834 Don't set remote_translate_xfer_address.
5835 (avr_io_reg_read_command): Remove commented out debug printf.
5836 Wrap a long line.
5837
57bc6122
TR
58382003-06-14 Theodore A. Roth <troth@openavr.org>
5839
5840 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5841 causes gdb to seg fault.
5842
eb01fc62
DJ
58432003-06-14 Daniel Jacobowitz <drow@mvista.com>
5844
5845 * sparc-nat.c (fetch_inferior_registers): Correct
5846 a reference to "registers".
5847
3b3e6bee
DJ
58482003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5849
5850 * Makefile.in (exc_request_U_h): Define
5851 (exc_request_S_h): Likewise.
5852 (msg_reply_S_h): Likewise.
5853 (msg_U_h): Likewise.
5854 (notify_S_h): Likewise.
5855 (process_reply_S_h): Likewise.
5856 (gnu-nat.o): Depend on gdb_obstack_h
5857 * gnu-nat.c: Include "gdb_obstack.h".
5858
b8de8283
AC
58592003-06-13 Andrew Cagney <cagney@redhat.com>
5860
5861 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5862 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 5863
f3be58bc
AC
58642003-06-13 Andrew Cagney <cagney@redhat.com>
5865
5866 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5867 when deprecated REGISTER macros can be deleted.
5868 * gdbarch.h, gdbarch.c: Re-generate.
5869
4c0122c8
JB
58702003-06-13 Jim Blandy <jimb@redhat.com>
5871
5872 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5873 Linux entry point symbols for _dl_debug_state, too.
5874
3e210248
AC
58752003-06-13 Andrew Cagney <cagney@redhat.com>
5876
5877 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5878 available, do not use the FP register, and always save the TOS.
5879 * dummy-frame.c (dummy_frame_this_id): Do not assert
5880 SAVE_DUMMY_FRAME_TOS.
5881 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5882 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5883 (i386_push_dummy_call): Add 8 to the returned SP.
5884 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5885 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5886 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5887 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5888 (x86_64_push_dummy_call): Return "sp + 16".
5889 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5890 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5891 save_dummy_frame_tos.
5892
0b65af49
JB
58932003-06-13 Jim Blandy <jimb@redhat.com>
5894
5895 * frv-tdep.c (frv_use_struct_convention): Delete static
5896 declaration for function deleted in my change of 2003-06-12.
5897
4ea2465e
TR
58982003-06-13 Theodore A. Roth <troth@openavr.org>
5899
5900 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5901 (avr_pointer_to_address): Shift code addrs left 1 bit.
5902 (avr_convert_from_func_ptr_addr): Delete function since operation is
5903 better handled by avr_address_to_pointer and avr_pointer_to_address.
5904 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5905
1581182a
MK
59062003-06-13 Mark Kettenis <kettenis@gnu.org>
5907
5908 From Kelley Cook <kelleycook@wideopenwest.com>:
5909 * configure.host: Accept i[34567]86 variants.
5910 * configure.tgt: Likewise.
5911 * nlm/configure.in: Likewise.
5912 * nlm/configure: Regenerated.
5913
7aa1783e
RE
59142003-06-13 Richard Earnshaw <rearnsha@arm.com>
5915
5916 * arm-tdep.c (solib-svr4.h): Dont' include it.
5917 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5918 * arm-linux-tdep.c: ... here. Make static.
5919 (arm_linux_init_abi): Register it.
5920 (solib-svr4.h): Include it.
5921 * Makefile.in: Update dependencies.
5922 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5923 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5924
0261a0d0
CV
59252003-06-13 Corinna Vinschen <vinschen@redhat.com>
5926
5927 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5928 indicate registers used for return values.
5929 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5930 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5931 members.
5932 (h8300_init_extra_frame_info): Ditto.
5933 (h8300_frame_locals_address): Removed.
5934 (h8300_frame_args_address): Removed.
5935 (h8300_extract_return_value): Use new regcache structure. Only care
5936 for 16 bit CPUs.
5937 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5938 (h8300_store_return_value): Use new regcache structure. Only care
5939 for 16 bit CPUs.
5940 (h8300h_store_return_value): Same function for 32 bit CPUs.
5941 (h8300_store_struct_return): Removed.
5942 (h8300_extract_struct_value_address): Use new regcache structure.
5943 (h8300h_extract_struct_value_address): Removed.
5944 (h8300_push_dummy_code): New function.
5945 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5946 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5947 set_gdbarch_store_return_value architecture dependent.
5948 Call set_gdbarch_push_dummy_code and
5949 set_gdbarch_extract_struct_value_address.
5950 Remove calls to set_gdbarch_frame_args_address,
5951 set_gdbarch_frame_locals_address,
5952 set_gdbarch_deprecated_store_struct_return,
5953 set_gdbarch_deprecated_extract_return_value,
5954 set_gdbarch_deprecated_extract_struct_value_address,
5955 set_gdbarch_deprecated_call_dummy_words and
5956 set_gdbarch_deprecated_sizeof_call_dummy_words.
5957
055c394a
CV
59582003-06-13 Corinna Vinschen <vinschen@redhat.com>
5959
5960 * h8300-tdep.c (h8300_register_byte): Remove.
5961 (h8300h_register_byte): Remove.
5962 (h8300_register_virtual_type): Remove. Substitute by...
5963 (h8300_register_type): New function.
5964 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5965 (h8300h_extract_struct_value_address): Ditto.
5966 (h8300_gdbarch_init): Drop calls to
5967 set_gdbarch_deprecated_register_byte and
5968 set_gdbarch_deprecated_register_virtual_type.
5969 Add call to set_gdbarch_register_type.
5970
9c04cab7
AC
59712003-06-13 Andrew Cagney <cagney@redhat.com>
5972
5973 * gdbarch.sh: Update comments on registers.
5974 (deprecated_register_byte): Rename register_byte.
5975 (deprecated_register_raw_size): Rename register_raw_size.
5976 (deprecated_register_virtual_size): Rename register_virtual_size.
5977 (deprecated_register_virtual_type): Rename register_virtual_type.
5978 * gdbarch.h, gdbarch.c: Re-generate.
5979 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5980 * vax-tdep.c (vax_gdbarch_init): Update.
5981 * v850-tdep.c (v850_gdbarch_init): Update.
5982 * sparc-tdep.c (sparc_gdbarch_init): Update.
5983 * sh-tdep.c (sh_gdbarch_init): Update.
5984 * s390-tdep.c (s390_gdbarch_init): Update.
5985 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5986 * ns32k-tdep.c: Update.
5987 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5988 * mips-tdep.c (mips_gdbarch_init): Update.
5989 * mcore-tdep.c (mcore_gdbarch_init): Update.
5990 * m68k-tdep.c (m68k_gdbarch_init): Update.
5991 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5992 * ia64-tdep.c (ia64_gdbarch_init): Update.
5993 * hppa-tdep.c (hppa_gdbarch_init): Update.
5994 * h8300-tdep.c (h8300_gdbarch_init): Update.
5995 * frv-tdep.c (frv_gdbarch_init): Update.
5996 * cris-tdep.c (cris_gdbarch_init): Update.
5997 * avr-tdep.c (avr_gdbarch_init): Update.
5998 * alpha-tdep.c (alpha_gdbarch_init): Update.
5999 * arm-tdep.c (arm_gdbarch_init): Update.
6000
b060cbea
AC
60012003-06-13 Andrew Cagney <cagney@redhat.com>
6002
6003 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6004 mips_o32_use_struct_convention with always_use_struct_convention.
6005
0fc9922a
DC
60062003-06-12 David Carlton <carlton@kealia.com>
6007
6008 * cp-namespace.c (cp_set_block_scope): Comment out
6009 processing_has_namespace_info branch.
6010
1fd35568
JB
60112003-06-12 Jim Blandy <jimb@redhat.com>
6012
f470a70a
JB
6013 Recognize and skip 64-bit PowerPC Linux linkage functions.
6014 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6015 insn_pattern, insns_match_pattern, d_field, ds_field): New
6016 functions, macros, and types for working with PPC instructions.
6017 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6018 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6019 ppc64_skip_trampoline_code): New functions, variables, and macros
6020 for recognizing and skipping linkage functions.
6021 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6022 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6023
49ff75ad
JB
6024 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6025 register offsets for both the 32- and 64-bit interfaces.
6026
bd918c83
JB
6027 Actually finish the job started by my change of 2003-05-29.
6028 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6029 other #definition of this.
6030 (ppc_linux_skip_trampoline_code): Remove declaration.
6031 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6032 static.
6033 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6034 method for GDBARCH.
6035
6036 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6037 'long' on ppc64-*-linux*.
6038
f8c59253
JB
6039 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6040 isn't #defined, assume the register doesn't exist: act as if
6041 tdep->ppc_mq_regnum were -1.
6042
8fbb30b1
JB
6043 * configure.host, configure.tgt: Add entries for
6044 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6045 powerpc/linux.mt.
6046 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6047 New files.
6048
1fd35568
JB
6049 * arch-utils.c (always_use_struct_convention): New function.
6050 * arch-utils.h (always_use_struct_convention): New prototype.
6051 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6052 (alpha_gdbarch_init): Register always_use_struct_convention,
6053 instead of alpha_use_struct_convention.
6054 * cris-tdep.c (cris_use_struct_convention): Delete.
6055 (cris_gdbarch_init): Register always_use_struct_convention,
6056 instead of cris_use_struct_convention.
6057 * frv-tdep.c (frv_use_struct_convention): Delete.
6058 (frv_gdbarch_init): Register always_use_struct_convention,
6059 instead of frv_use_struct_convention.
6060 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6061 (h8300_gdbarch_init): Register always_use_struct_convention,
6062 instead of h8300_use_struct_convention.
e3305dd9 6063 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
6064 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6065 instead of mips_o32_use_struct_convention.
6066
e14e6e9c
AC
60672003-06-12 Andrew Cagney <cagney@redhat.com>
6068
6069 * wince.c: Include "mips-tdep.h".
6070 * mips-tdep.h (mips_next_pc): Declare.
6071 * mcore-tdep.c: Make more local functions static.
6072 * Makefile.in (wince.o): Update dependencies.
6073
2335f48e
DC
60742003-06-12 David Carlton <carlton@kealia.com>
6075
6076 * symtab.c (lookup_symbol_aux_minsyms): Replace
6077 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6078 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6079 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6080 SYMBOL_NATURAL_NAME.
6081
f70a7d61
AS
60822003-06-12 Andreas Schwab <schwab@suse.de>
6083
6084 * Makefile.in (tuiDisassem.o): Update dependencies.
6085
b6429628
DC
60862003-06-12 David Carlton <carlton@bactrian.org>
6087
6088 * symtab.h: Delete declaration of make_symbol_overload_list.
6089 Add declaration of lookup_partial_symbol.
6090 * symtab.c (remove_params): Move to cp-support.c.
6091 (overload_list_add_symbol, make_symbol_overload_list)
6092 (sym_return_val_size, sym_return_val_index): Ditto.
6093 (lookup_partial_symbol): Make extern.
6094 * cp-support.h: Add declaration of make_symbol_overload_list.
6095 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6096 symtab.h, and block.h.
6097 (remove_params): Move here from symtab.c.
6098 (overload_list_add_symbol, make_symbol_overload_list)
6099 (sym_return_val_size, sym_return_val_index): Ditto.
6100 * valops.c: Include cp-support.h.
6101 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6102 frame_h, and block_h.
6103 (valops.o): Depend on cp_support_h.
6104
084edea5
CV
61052003-06-12 Corinna Vinschen <vinschen@redhat.com>
6106
6107 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6108 substitute by NUM_REGS throughout.
6109 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6110 (h8300s_register_name): New function for H8S registers.
6111 (h8300sx_register_name): Ditto for H8SX registers.
6112 (h8300_print_register): Revise register printing, avoid depending
6113 on 32 bit long.
0261a0d0 6114 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
6115 (h8300h_register_byte): New function for any other architecture.
6116 (h8300_register_raw_size): Remove.
6117 (h8300_register_virtual_type): Revise to return actually useful
6118 type.
6119 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6120 (h8300h_extract_struct_value_address): New function for any other
6121 architecture.
6122 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6123 set_gdbarch_register_name, set_gdbarch_register_byte,
6124 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6125 Remove calls to set_gdbarch_deprecated_register_size,
6126 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6127 set_gdbarch_deprecated_max_register_raw_size,
6128 set_gdbarch_register_virtual_size and
6129 set_gdbarch_deprecated_max_register_virtual_size entirely.
6130 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6131 set_gdbarch_long_double_bit.
6132
06194148
JJ
61332003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6134
8ffd9b1b
AJ
6135 * doublest.c (convert_doublest_to_floatformat): When dealing
6136 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
6137 processing a full 32 bits of mantissa.
6138
de4f826b
DC
61392003-06-11 David Carlton <carlton@bactrian.org>
6140
6141 * dictionary.h: New.
6142 * dictionary.c: New.
6143 * block.h: Add opaque declaration for struct dictionary.
6144 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6145 'sym' members.
6146 (BLOCK_DICT): New macro.
6147 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6148 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6149 BLOCK_SHOULD_SORT.
6150 (ALL_BLOCK_SYMBOLS): Update definition.
6151 * Makefile.in (SFILES): Add dictionary.c.
6152 (dictionary_h): New.
6153 (COMMON_OBS): Add dictionary.o.
6154 (dictionary.o): New.
6155 (ada-lang.o): Depend on dictionary_h.
6156 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6157 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6158 (mi-cmd-stack.o): Ditto.
6159 (gdbtk-cmds.o): Update dependencies.
6160 (gdbtk-stack.o): Ditto.
6161 * ada-lang.c: Include dictionary.h.
6162 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6163 (fill_in_ada_prototype, debug_print_block): Ditto.
6164 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6165 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6166 'is_sorted'.
6167 * mdebugread.c: Include dictionary.h.
6168 (struct parse_stack): Delete 'maxsyms' member.
6169 (parse_symbol): Update calls to new_block. Delete calls to
6170 shrink_block. Use dictionary methods.
6171 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6172 Update calls to new_symtab. Don't maintain maxsyms data.
6173 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6174 (add_symbol): Just call dict_add_symbol.
6175 (new_symtab): Delete 'maxsyms' argument.
6176 (new_symtab): Update calls to new_block.
6177 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6178 (shrink_block): Delete function.
6179 (fixup_sigtramp): Update call to new_block. Add symbol via
6180 dict_add_symbol.
6181 * jv-lang.c: Include dictionary.h.
6182 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6183 appropriately. Set class_symtab->free_func. Make sure the
6184 blockvector is big enough to hold two blocks.
6185 (add_class_symtab_symbol): Use dictionary methods.
6186 (free_class_block): New function.
6187 (type_from_class): Replace explicit iteration by
6188 ALL_BLOCK_SYMBOLS.
6189 * symtab.h (struct symtab): Replace 'free_ptr' method by
6190 'free_func'.
6191 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6192 sort_symtab_syms.
6193 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6194 sort_symtab_syms.
6195 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6196 Include dictionary.h.
6197 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6198 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6199 sort_symtab_syms.
6200 * objfiles.c: Include dictionary.h.
6201 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6202 * buildsym.c: Include dictionary.h.
6203 (finish_block): Use dictionary methods.
6204 (end_symtab): Set free_func to NULL, not free_ptr.
6205 * tracepoint.c: Include dictionary.h.
6206 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6207 (scope_info): Ditto.
6208 * stack.c: Include dictionary.h.
6209 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6210 (print_block_frame_labels, print_frame_arg_vars)
6211 (print_frame_args): Ditto.
6212 * symmisc.c (free_symtab_block): Use dictionary methods.
6213 (dump_symtab): Ditto.
6214 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6215 Include dictionary.h.
6216 * symfile.h: Delete declarations of sort_block_syms,
6217 sort_symtab_syms.
6218 * symfile.c (sort_block_syms): Delete.
6219 (sort_symtab_syms): Delete.
6220 * symtab.c: Include dictionary.h.
6221 (lookup_block_symbol): Use dictionary iterators.
6222 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6223 (search_symbols, make_symbol_completion_list): Ditto.
6224 (make_symbol_overload_list): Ditto.
6225 * valops.c (value_of_local): Use dict_empty.
6226 Include dictionary.h.
6227
a31f978c
JB
62282003-06-11 J. Brobecker <brobecker@gnat.com>
6229
6230 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6231
526e70c0
DC
62322003-06-11 David Carlton <carlton@bactrian.org>
6233
6234 * block.h (BLOCK_SHOULD_SORT): Delete.
6235 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6236 blocks.
6237 * ada-lang.c (ada_add_block_symbols): Ditto.
6238 * symfile.c (sort_block_syms): Delete.
6239 (sort_symtab_syms): Ditto.
6240 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6241 declarations.
6242 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6243 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6244 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6245 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6246 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6247 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6248 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6249
33c08150
JJ
62502003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6251
8ffd9b1b 6252 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
6253 bits to 128.
6254
781a750d
AC
62552003-06-11 Andrew Cagney <cagney@redhat.com>
6256
6257 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6258 REGISTER_CONVERTIBLE.
6259 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6260 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6261 * gdbarch.h, gdbarch.c: Re-generate.
6262 * arch-utils.h (deprecated_register_convertible_not): Rename
6263 generic_register_convertible_not.
6264 * arch-utils.c (deprecated_register_convertible_not): Rename
6265 generic_register_convertible.
6266 (legacy_convert_register_p, legacy_register_to_value): Update.
6267 * sh-tdep.c (sh64_push_arguments): Update.
6268 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6269 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6270 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6271 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6272 * arch-utils.c (legacy_value_to_register): Update.
6273 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6274 (rs6000_register_convert_to_raw): Make parameter "from" const.
6275 * mips-tdep.c (mips_gdbarch_init): Update.
6276 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6277 * infcmd.c (default_print_registers_info): Update.
6278 * ia64-tdep.c (ia64_gdbarch_init): Update.
6279 (ia64_register_convert_to_raw): Make parameter "from" const.
6280 * i386-tdep.c (i386_gdbarch_init): Update.
6281 (i386_register_convert_to_raw): Update.
6282
cd90e54f
AC
62832003-06-11 Andrew Cagney <cagney@redhat.com>
6284
6285 * remote-fileio.c: Include "remote-fileio.h".
6286 * Makefile.in (remote-fileio.o): Update dependencies.
6287 (remote_fileio_h): Fix typo.
6288
a78f21af
AC
62892003-06-11 Andrew Cagney <cagney@redhat.com>
6290
6291 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6292 (xstormy16_save_dummy_frame_tos): Make static.
6293 (_initialize_xstormy16_tdep): Add declaration.
6294 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6295 * v850-tdep.c: Make local functions static.
6296 (_initialize_v850_tdep): Add declaration.
6297 * sparc-tdep.c: Make local functions static.
6298 (_initialize_sparc_tdep): Add declaration.
6299 * sh-tdep.c: Make local functions static.
6300 (_initialize_sh_tdep): Add declaration.
6301 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6302 * s390-tdep.c: Make local functions static.
6303 (_initialize_s390_tdep): Add declaration.
6304 * dbxread.c (find_stab_function_addr): Make static.
6305 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6306 * ocd.c (_initialize_remote_ocd): Add declaration.
6307 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6308 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6309 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6310 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6311 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6312 * remote-array.c (_initialize_array): Add declaration.
6313 (_initialize_remote_monitors): Add declaration.
6314 * remote-mips.c: Make local functions static.
6315 (_initialize_remote_mips): Add declaration.
6316 * mcore-tdep.c: Make all local functions static.
6317 (_initialize_mcore_tdep): Add declaration.
6318 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6319 * abug-rom.c (_initialize_abug_rom): Add declaration.
6320 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6321 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6322 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6323 * remote-est.c (_initialize_est): Add declaration.
6324 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6325 (m68hc11_call_dummy_address): Make static.
6326 * ia64-tdep.c: Make local functions static.
6327 (_initialize_ia64_tdep): Add declaration.
6328 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6329 * monitor.c (monitor_wait_filter): Make static.
6330 (_initialize_remote_monitors): Add declaration.
6331 * remote-hms.c (_initialize_remote_hms): Add declaration.
6332 * remote-e7000.c (fetch_regs_from_dump): Make static.
6333 (expect_n): Make static.
6334 (_initialize_remote_e7000): Add declaration.
6335 * ser-e7kpc.c: Always include "defs.h".
6336 (_initialize_ser_e7000pc): Add declaration.
6337 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6338 * cris-tdep.c: Make all but one function static.
6339 (_initialize_cris_tdep): Add declaration.
6340 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6341 * solib.c (update_solib_list): Make static.
6342 (_initialize_solib): Add declaration.
6343 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6344 (_initialize_avr_tdep): Add declaration.
6345 * remote-rdi.c (voiddummy): Make static.
6346 (_initialize_remote_rdi): Add declaration.
6347 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6348 * remote-rdp.c (send_rdp): Make static.
6349 (_initialize_remote_rdp): Add declaration.
6350 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6351
cbcdb1f5
CV
63522003-06-11 Corinna Vinschen <vinschen@redhat.com>
6353
6354 * remote-fileio.c: Make ari happy.
6355
a191ea8d
JB
63562003-06-10 J. Brobecker <brobecker@gnat.com>
6357
6358 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6359 fetching the trailing bytes of the buffer we are about to write.
6360
0ef75e11
AC
63612003-06-10 Andrew Cagney <cagney@redhat.com>
6362
6363 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6364 * Makefile.in (remote-fileio.o): Update dependencies.
6365 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6366 include <setjmp.h>, or <sys/types.h> conditional on USG.
6367 (remote_fio_jmp_buf): Delete global variable.
6368
449092f6 63692003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 6370 Martin M. Hunt <hunt@redhat.com>
449092f6 6371
559fa028
AC
6372 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6373 (SFILES): Add remote-fileio.c.
6374 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6375 dependencies for building remote.o.
449092f6
CV
6376 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6377 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 6378 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
6379 static storage class.
6380 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6381 'F' packet.
6382 (_initialize_remote): Call initialize_remote_fileio().
6383 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
6384 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6385 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6386 (captured_main): Initialize new ui_files.
6387 * ui-file.c: Add read and fgets input functions.
6388 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6389 (null_file_read): New function.
6390 (ui_file_read): New function.
6391 (set_ui_file_read): New function.
6392 (stdio_file_read): New function.
6393 * ui-file.h: New type ui_file_read_ftype.
6394 (set_ui_file_read): Declare.
6395 (ui_file_read): Declare.
6396
248de703
AC
63972003-06-09 Andrew Cagney <cagney@redhat.com>
6398
6399 * frame.h (deprecated_unwind_get_saved_register): Rename
6400 generic_unwind_get_saved_register, update comments.
6401 * mips-tdep.c (mips_get_saved_register): Update.
6402 * frame.c (deprecated_unwind_get_saved_register): Update.
6403
0ed8aa57
AC
64042003-06-09 Andrew Cagney <cagney@redhat.com>
6405
6406 * vax-tdep.c (vax_frame_locals_address): Delete function.
6407 (vax_gdbarch_init): Do not set frame_locals_address.
6408 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6409 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6410 * s390-tdep.c (s390_frame_args_address): Delete function.
6411 (s390_gdbarch_init): Do not set frame_args_address or
6412 frame_locals_address.
6413 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6414 (ns32k_gdbarch_init): Do not set frame_locals_address.
6415 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6416 (hppa_frame_locals_address): Delete function.
6417 (hppa_gdbarch_init): Do not set frame_args_address, or
6418 frame_locals_address.
6419 * arm-tdep.c (arm_frame_args_address): Delete.
6420 (arm_frame_locals_address): Delete.
6421 (arm_gdbarch_init): Do not set frame_args_address, or
6422 frame_locals_address.
6423
983a287a
AC
64242003-06-09 Andrew Cagney <cagney@redhat.com>
6425
6426 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6427 * gdbarch.h, gdbarch.c: Re-generate.
6428 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6429 * arch-utils.c (frame_num_args_unknown): Delete function.
6430 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6431 (frame_info): Use FRAME_NUM_ARGS_P.
6432 * arm-tdep.c (arm_frame_num_args): Delete function.
6433 (arm_gdbarch_init): Do not set frame_num_args.
6434 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6435 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6436 (hppa_gdbarch_init): Do not set frame_num_args.
6437 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6438 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6439 frame_num_args to default frame_num_args_unknown.
6440 * v850-tdep.c (v850_gdbarch_init): Ditto.
6441 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6442 * sh-tdep.c (sh_gdbarch_init): Ditto.
6443 * s390-tdep.c (s390_gdbarch_init): Ditto.
6444 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6445 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6446 * mips-tdep.c (mips_gdbarch_init): Ditto.
6447 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6448 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6449 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6450 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6451 * i386-tdep.c (i386_gdbarch_init): Ditto.
6452 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6453 * frv-tdep.c (frv_gdbarch_init): Ditto.
6454 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6455 * cris-tdep.c (cris_gdbarch_init): Ditto.
6456 * avr-tdep.c (avr_gdbarch_init): Ditto.
6457 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6458
8d3b0994
AC
64592003-06-09 Andrew Cagney <cagney@redhat.com>
6460
6461 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6462 (print_frame_args): Moved to "stack.c".
6463 * stack.c: Include "gdb_assert.h".
6464 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6465 (print_frame_args): Moved from "printcmd.c".
6466 * frame.h (print_frame_args): Delete declaration.
6467 * Makefile.in (stack.o): Update dependencies.
6468
25e3a86b
AC
64692003-06-08 Andrew Cagney <cagney@redhat.com>
6470
6471 * frame.c (get_prev_frame): Remove reference to
6472 frame_args_address_correct in comments.
6473 * frame-base.c (default_frame_args_address): Delete code
6474 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6475 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6476 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6477 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6478 (vax_frame_args_address_correct): Delete declaration.
6479
a9e5fdc2
AC
64802003-06-08 Andrew Cagney <cagney@redhat.com>
6481
6482 * gdbarch.sh (UNWIND_SP): Add.
6483 * gdbarch.h, gdbarch.c: Re-generate.
6484 * frame.c (frame_sp_unwind): New function.
6485 (get_frame_sp): New function.
6486 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6487 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6488 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6489 value.
6490 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6491 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6492
8983bd83
AC
64932003-06-08 Andrew Cagney <cagney@redhat.com>
6494
7fec2c59
AC
6495 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6496 REMOTE_BREAKPOINT.
6497 * remote.c: Update.
6498 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6499 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6500 * config/m68k/tm-sun3.h: Update.
6501 * config/m68k/tm-m68klynx.h: Update.
6502 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6503
8983bd83
AC
6504 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6505 trad_frame". Update comments.
6506 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6507 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6508 (trad_frame_register_value, trad_frame_prev_register): Update.
6509
b9362cc7
AC
65102003-06-08 Andrew Cagney <cagney@redhat.com>
6511
6512 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6513 from GCC's acinclude.m4.
6514 * configure.in: Check for getopt's delcaration.
8ffd9b1b 6515 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
6516 * main.c (error_init): Delete declaration.
6517 * defs.h (error_init): Declare.
6518 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6519 (rs6000_convert_from_func_ptr_addr): Make static.
6520 (_initialize_rs6000_tdep): Add declaration.
6521 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6522 (show_commands, set_verbose, show_history): Delete declaration.
6523 * top.h (set_verbose): Add declaration.
6524 (show_history, set_history, show_commands): Add declaration.
6525 (do_restore_instream_cleanup): Add declaration.
6526 * objc-lang.c (specialcmp): Make static.
6527 (print_object_command): Make static.
6528 (find_objc_msgsend): Make static.
6529 (find_objc_msgcall_submethod_helper): Make static.
6530 (find_objc_msgcall_submethod): Make static.
6531 (_initialize_objc_language): Add declaration.
6532 (find_implementation_from_class): Make static.
6533 (find_implementation): Make static.
6534 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6535 * objc-lang.h (lookup_struct_typedef): Add declaration.
6536 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6537 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6538 (do_restore_user_call_depth): Make static.
6539 (do_restore_instream_cleanup): Delete declaration.
6540 (dont_repeat): Delete declaration.
6541 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6542 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6543 * reggroups.c (_initialize_reggroup): Add declaration.
6544 * cp-support.c (_initialize_cp_support): Add declaration.
6545 * cp-abi.c (_initialize_cp_abi): Add declaration.
6546 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6547 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6548 (_initialize_gnu_v3_abi): Add declaration.
6549 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6550 (_initialize_gnu_v2_abi): Add declaration.
6551 * frame-base.c (_initialize_frame_base): Add declaration.
6552 * doublest.c (floatformat_from_length): Make static.
6553 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6554 * frame.c (create_sentinel_frame): Make static.
6555 (_initialize_frame): Add declaration.
6556 * top.c (do_catch_errors): Make static.
6557 (gdb_rl_operate_and_get_next_completion): Make static.
6558 * typeprint.c: Include "typeprint.h".
6559 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6560 (sentinel_frame_this_id): Make static.
6561 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6562 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6563 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6564 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6565 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6566 * maint.c (maintenance_print_architecture): Make static.
6567 * signals/signals.c (_initialize_signals): Add declaration.
6568 * std-regs.c (_initialize_frame_reg): Add declaration.
6569 * jv-exp.y (push_variable): ISO C definition.
6570 (push_qualified_expression_name): Ditto.
6571 * memattr.c (_initialize_mem): Add declaration.
6572 * remote.c (remote_check_watch_resources): Make static.
6573 (remote_stopped_by_watchpoint): Make static.
6574 (remote_stopped_data_address): Make static.
6575 * d10v-tdep.c (nr_dmap_regs): Make static.
6576 (a0_regnum): Make static.
6577 (d10v_frame_unwind_cache): Make static.
6578 (d10v_frame_p): Make static.
6579 * osabi.c (show_osabi): Make static.
6580 (_initialize_gdb_osabi): Add extern declaration.
6581 * gdbtypes.c (make_qualified_type): Make static.
6582 (safe_parse_type): Make static.
6583 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6584 * macrotab.c (macro_bcache_free): Make static.
6585 * interps.c (interp_set_quiet): Make static.
6586 (interpreter_exec_cmd): Make static.
6587 * stack.h (select_frame_command): New file.
6588 * stack.c: Include "stack.h".
6589 (select_frame_command_wrapper): Delete function.
6590 (select_frame_command): Make global.
6591 * infcall.c: Include "infcall.h".
6592 * linespec.c: Include "linespec.h".
6593 * symfile.c (sections_overlap): Make static.
6594 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6595 * charset.c (_initialize_charset): Add missing prototype.
6596 * regcache.c (init_legacy_regcache_descr): Make static.
6597 (do_regcache_xfree): Make static.
6598 (regcache_xfer_part): Make static.
6599 (_initialize_regcache): Add missing prototype.
6600 * breakpoint.c (parse_breakpoint_sals): Make static.
6601 (breakpoint_sals_to_pc): Make static.
6602 * interps.h (clear_interpreter_hooks): ISO C declaration.
6603 * Makefile.in (stack_h): Define.
6604 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6605 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6606
a0f267c7
AC
66072003-06-08 Andrew Cagney <cagney@redhat.com>
6608
6609 * Makefile.in (d10v-tdep.o): Update dependencies.
6610 (SFILES): Add trad-frame.c.
6611 (trad_frame_h): Define.
6612 (COMMON_OBS): Add trad-frame.o.
6613 (trad-frame.o): Specify dependencies.
6614 * d10v-tdep.c: Include "trad-frame.h".
6615 (saved_regs_unwinder): Delete function.
6616 (d10v_frame_prev_register): Use trad_frame_prev_register.
6617 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6618 trad_frame", delete "regs" and "prev_sp".
6619 (prologue_find_regs): Use trad-frame.
6620 * trad-frame.h, trad-frame.c: New files.
6621
4538b4f4
MK
66222003-06-08 Mark Kettenis <kettenis@gnu.org>
6623
6624 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6625
a0273b2f
AF
66262003-06-07 Adam Fedor <fedor@gnu.org>
6627
6628 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6629 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6630 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6631 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 6632 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
6633 Use it.
6634
3a6c3343
AC
66352003-06-07 Andrew Cagney <cagney@redhat.com>
6636
6637 * symfile.h: Re-indent, clean up comments.
6638
b46e02f6
AC
66392003-06-07 Andrew Cagney <cagney@redhat.com>
6640
6641 * inferior.h (deprecated_write_sp): Replace
6642 generic_target_write_sp.
6643 * regcache.c (deprecated_write_sp): Replace
6644 generic_target_write_sp.
6645 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6646 * vax-tdep.c (vax_gdbarch_init): Update.
6647 * v850-tdep.c (v850_gdbarch_init): Update.
6648 * sparc-tdep.c (sparc_gdbarch_init): Update.
6649 * sh-tdep.c (sh_gdbarch_init): Update.
6650 * s390-tdep.c (s390_gdbarch_init): Update.
6651 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6652 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6653 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6654 * mcore-tdep.c (mcore_gdbarch_init): Update.
6655 * m68k-tdep.c (m68k_gdbarch_init): Update.
6656 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6657 * ia64-tdep.c (ia64_gdbarch_init): Update.
6658 * h8300-tdep.c (h8300_gdbarch_init): Update.
6659 * frv-tdep.c (frv_gdbarch_init): Update.
6660 * cris-tdep.c (cris_gdbarch_init): Update.
6661 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6662
a42e117c
AC
66632003-06-07 Andrew Cagney <cagney@redhat.com>
6664
6665 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6666 Assert that PC_REGNUM is valid.
6667 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6668
bd1ce8ba
AC
66692003-06-07 Andrew Cagney <cagney@redhat.com>
6670
6671 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6672 * gdbarch.h, gdbarch.c: Regenerate.
6673 * mn10300-tdep.c: Include "gdb_assert.h".
6674 (mn10300_read_fp): New function.
6675 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6676 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6677 * ia64-tdep.c: Include "gdb_assert.h".
6678 (ia64_read_fp): New function.
6679 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6680 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6681 * regcache.c (generic_target_read_sp): Delete function.
6682 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6683 * inferior.h (generic_target_read_sp): Delete declaration.
6684 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6685 generic_target_read_sp.
6686 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6687 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6688 * sh-tdep.c (sh_gdbarch_init): Ditto.
6689 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6690 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6691
ec5cbaec
AC
66922003-06-07 Andrew Cagney <cagney@redhat.com>
6693
6694 * gdbarch.sh: Comment each field of startup_gdbarch.
6695 * gdbarch.h, gdbarch.c: Re-generate.
6696
cde9ea48
AC
66972003-06-07 Andrew Cagney <cagney@redhat.com>
6698
6699 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6700 * gdbarch.h, gdbarch.c: Re-generate.
6701 * regcache.c: Update comments on read_pc et.al.
6702 (generic_target_read_pc): Delete function.
6703 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6704 * inferior.h (generic_target_read_pc): Delete declaration.
6705 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6706 generic_target_read_pc.
6707 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6708 * sh-tdep.c (sh_gdbarch_init): Ditto.
6709 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6710 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 6711
9a90a780
AC
67122003-06-07 Andrew Cagney <cagney@redhat.com>
6713
6714 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6715 "index" with "special_local_sect". Use strcmp instead of STREQ.
6716 Append period to coments.
6717
a39a16c4
MM
67182003-06-06 Mark Mitchell <mark@codesourcery.com>
6719
6720 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6721 (elfstab_offset_sections): Likewise.
6722 * gdb-stabs.h (stab_section_info): Likewise.
6723 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6724 * objfiles.c (objfile_relocate): Likewise.
6725 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6726 * remote.c (get_offsets): Likewise.
6727 (remote_cisco_objfile_relocate): Likewise.
6728 * somread.c (som_symfile_offsets): Likewise.
6729 * symfile.c (alloc_section_addr_info): New function.
6730 (build_section_addr_info_from_section_tab): Use it.
6731 (free_section_addr_info): Adjust.
6732 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6733 (syms_from_objfile): Allocate local_addr dynamically.
6734 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6735 dynamically.
6736 (add_symbol_file_command): Allocate sect_opts dynamically.
6737 (reread_symbols): Avoid use of SECT_OFF_MAX.
6738 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6739 (alloc_section_addr_info): Declare it.
6740 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6741 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6742 dynamically.
6743 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 6744
20c6c2f8
AC
67452003-06-06 Andrew Cagney <cagney@redhat.com>
6746
6747 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6748 (d10v_frame_unwind_cache): Do not set "return_pc".
6749
884a26c8
MS
67502003-06-06 Michael Snyder <msnyder@redhat.com>
6751
6752 * h8300-tdep.c: Make tidy (long lines).
6753
088ce440
ML
67542003-06-06 Michal Ludvig <mludvig@suse.cz>
6755
8ffd9b1b 6756 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
6757 to regcache_collect().
6758
7d773d96
JB
67592003-06-05 J. Brobecker <brobecker@gnat.com>
6760
6761 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6762 pc_in_sigtramp multiarch method.
6763 (hppa_hpux_som_init_abi): Use it.
6764 (hppa_hpux_elf_init_abi): Likewise.
6765 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6766 macro has been multiarched.
6767 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6768 macro here, as hppa64 isn't multiarched yet.
6769
1df6926e
AC
67702003-06-05 Andrew Cagney <cagney@redhat.com>
6771
6772 * Makefile.in (value_h): Add $(frame_h).
6773 * value.h: Include "frame.h".
6774 (struct value): Replace "frame_addr" with "frame_id".
6775 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6776 * values.c (allocate_value): Use VALUE_FRAME_ID.
6777 (value_copy): Use VALUE_FRAME_ID.
6778 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6779 * valops.c (value_assign): Update. Use frame_find_by_id.
6780
6b53acc6
ML
67812003-06-05 Michal Ludvig <mludvig@suse.cz>
6782
6783 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6784 in each pass.
6785
4d9850d3
JJ
67862003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6787
6788 * thread-db.c (check_event): For create/death event breakpoints,
6789 loop through all messages to ensure that we read the message
6790 corresponding to the breakpoint we are at.
6791
8efca6ba
MS
67922003-06-04 Michael Snyder <msnyder@redhat.com>
6793
6794 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6795
0912c7f2
MK
67962003-06-04 Mark Kettenis <kettenis@gnu.org>
6797
6798 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6799 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6800 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6801 when handling .eh_frame sections.
6802
4e370325
JB
68032003-06-04 J. Brobecker <brobecker@gnat.com>
6804
6805 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6806 prepare_to_proceed procedure instead of the hppa-specific one.
6807 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6808
b757528f 68092003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6810
b757528f
JJ
6811 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6812 * config.in: Regenerated.
6813 * configure.in: Add test for syscall function and check for
6814 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6815 * configure: Regenerated.
6816 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6817 <sys/syscall.h>.
6818 (kill_lwp): New function that uses tkill syscall or
6819 uses kill, depending on whether threading model is nptl or not.
6820 All callers of kill() changed to use kill_lwp().
6821 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6822 see if all threads have already exited in the nptl model.
6823 (stop_and_resume_callback): New callback function used by the
6824 lin_lwp_wait thread exit handling code.
6825 (stop_wait_callback): Check for threads already having exited and
6826 delete such threads fromt the lwp list when discovered.
6827 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 6828
b757528f
JJ
6829 Roland McGrath <roland@redhat.com>
6830 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6831 nptl libthread_db.
6832
087779b1
RH
68332003-06-03 Richard Henderson <rth@redhat.com>
6834
b21fd293
RH
6835 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6836 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6837 (alpha_sigtramp_frame_prev_register): Likewise.
6838 (alpha_heuristic_frame_prev_register): Likewise.
6839 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6840
8ffd9b1b 6841 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
6842 alpha-specific register id names.
6843 (alpha_mdebug_frame_unwind_cache): Likewise.
6844 (alpha_mdebug_frame_prev_register): Likewise.
6845
baa490c4
RH
68462003-06-03 Richard Henderson <rth@redhat.com>
6847
6848 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6849 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6850 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6851 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6852 unwind routines.
6853 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6854 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6855 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6856
6857 * alpha-linux-tdep.c: Remove unnecessary includes.
6858 * Makefile.in (alpha-linux-tdep.o): Update.
6859
68602003-06-03 Richard Henderson <rth@redhat.com>
6861
6862 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6863 (alphabsd_fill_fpreg): Likewise.
6864
f534e522
JB
68652003-06-03 J. Brobecker <brobecker@gnat.com>
6866
6867 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6868 references to struct frame_info fields by calls to the equivalent
6869 accessors. Necessary now that frame_info is opaque.
6870
4035536b
JB
68712003-06-03 J. Brobecker <brobecker@gnat.com>
6872
6873 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6874 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6875 structure, field no longer exists.
6876
0bd79c5c
JB
68772003-06-03 J. Brobecker <brobecker@gnat.com>
6878
6879 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6880 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6881
37bb6d9f
JB
68822003-06-03 J. Brobecker <brobecker@gnat.com>
6883
6884 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6885 references to struct frame_info fields by calls to the equivalent
6886 accessors. Necessary now that frame_info is opaque.
6887
852ee05c
JB
68882003-06-03 J. Brobecker <brobecker@gnat.com>
6889
6890 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6891 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6892 structure, field no longer exists.
6893
7d58c67d
TR
68942003-06-03 Theodore A. Roth <troth@openavr.org>
6895
8ffd9b1b 6896 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
6897 accumulation of the size of all registers instead of blindly using
6898 DEPRECATED_REGISTER_BYTES.
6899
0a48e7e8
MS
69002003-06-03 Michael Snyder <msnyder@redhat.com>
6901
6902 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6903 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6904 for h8300sx.
6905
9798ab0d
JB
69062003-06-03 J. Brobecker <brobecker@gnat.com>
6907
6908 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6909 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6910
00b037e2
AC
69112003-06-03 Andrew Cagney <cagney@redhat.com>
6912
6913 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6914 (sparc_convert_to_raw): Delete function.
6915 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6916 register_convert_to_virtual.
6917
043b2f77
JJ
69182003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6919
6920 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6921 layer if not dealing with a statically-linked threaded program.
6922
f43caff8
KW
69232003-06-03 Kris Warkentin <kewarken@qnx.com>
6924
6925 * solib.c (solib_open): Update comment to reflect actual search order.
6926
ae1e7417
AC
69272003-06-03 Andrew Cagney <cagney@redhat.com>
6928
6929 * frame.c (get_frame_memory_signed): New function.
6930 (get_frame_memory, get_frame_memory_unsigned): New function.
6931 (get_frame_arch): New function.
6932 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6933 (get_frame_memory, get_frame_unsigned_memory): Declare.
6934 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6935 get_frame_memory_unsigned and get_frame_arch.
6936 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6937
cb123844
RG
69382003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6939
6940 * MAINTAINERS (write after approval): Add myself.
6941
1bb792e9
JB
69422003-06-03 Jim Blandy <jimb@redhat.com>
6943
6944 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6945 elements of gregset_t are 64 bits each, but access registers
6946 are still 32 bits, so they're packed two per gregset_t
6947 element. Unpack/pack them properly.
6948
aee8d8ba
DC
69492003-06-02 David Carlton <carlton@bactrian.org>
6950
6951 * linespec.c (find_methods): Break out code into
6952 add_matching_methods and add_constructors.
6953 (add_matching_methods): New.
6954 (add_constructors): Ditto.
6955
bf7488d2
AC
69562003-06-02 Andrew Cagney <cagney@redhat.com>
6957
bf7488d2
AC
6958 * sparc-tdep.c (sparc_print_registers): Delete call to
6959 REGISTER_CONVERTIBLE.
6960 (sparc_gdbarch_init): Do not set register_convertible.
6961 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6962 * frv-tdep.c (frv_gdbarch_init): Ditto.
6963 * cris-tdep.c (cris_gdbarch_init): Ditto.
6964
adedef68
EZ
69652003-06-02 Elena Zannoni <ezannoni@redhat.com>
6966
8ffd9b1b 6967 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
6968 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6969 (syms_from_objfile): Ditto.
6970
650fcc91
AS
69712003-06-03 Andreas Schwab <schwab@suse.de>
6972
6973 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6974 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6975
df4a182b
RH
69762003-06-02 Richard Henderson <rth@redhat.com>
6977
6978 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6979 a member of all_reggroup.
6980
c483c494
RH
69812003-06-02 Richard Henderson <rth@redhat.com>
6982
6983 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6984 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6985 (alpha_lds, alpha_sts): New.
6986 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 6987 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
6988 restructure and fail for type sizes other than 4 or 8.
6989 (alpha_value_to_register): Similarly.
6990 (alpha_extract_return_value): Use alpha_sts.
6991 (alpha_store_return_value): Use alpha_lds.
6992 (alpha_gdbarch_init): Update hooks.
6993
b38b6be2
RH
69942003-06-02 Richard Henderson <rth@redhat.com>
6995
6996 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6997 regnum identifiers.
6998 (alpha_sigtramp_register_address): Likewise.
6999
98a8e1e5
RH
70002003-06-02 Richard Henderson <rth@redhat.com>
7001
7002 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7003 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7004 * alpha-tdep.h: Declare them.
7005
7006 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7007 Remove zerobuf. Don't error on UNIQUE.
7008 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7009 (ALPHA_REGSET_UNIQUE): Provide default.
7010 (supply_gregset): Use alpha_supply_int_regs.
7011 (fill_gregset): Use alpha_fill_int_regs.
7012 (supply_fpregset): Use alpha_supply_fp_regs.
7013 (fill_fpregset): Use alpha_fill_fp_regs.
7014 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7015 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7016 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7017 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7018 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7019 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7020
67dfac52
RH
70212003-06-02 Richard Henderson <rth@redhat.com>
7022
f75d70cc
RH
7023 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7024
67dfac52
RH
7025 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7026 (alpha_store_return_value): Likewise.
7027
0cf566ec
DC
70282003-06-02 David Carlton <carlton@math.stanford.edu>
7029
7030 * block.c (contained_in): Add 'const' to arguments.
7031 (block_function): Ditto.
7032 * block.h: Update declarations for block_function and
7033 contained_in.
7034
cdef89d0
DC
70352003-06-02 David Carlton <carlton@math.stanford.edu>
7036
7037 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7038 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7039 * p-valprint.c (pascal_val_print): Ditto.
7040 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7041
72667056
RH
70422003-06-02 Richard Henderson <rth@redhat.com>
7043
98a8e1e5
RH
7044 * alpha-tdep.c (alpha_push_dummy_call): Use
7045 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 7046
8ffd9b1b 7047 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
7048 sign-extension of 32-bit values.
7049 (alpha_store_return_value): Similarly.
0ede8eca 7050
98a8e1e5
RH
7051 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7052 (alpha_extract_return_value): Likewise.
7053 (alpha_store_return_value): Likewise.
7b5e1cb3 7054
98a8e1e5
RH
7055 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7056 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 7057
98a8e1e5
RH
7058 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7059 (alpha_extract_struct_value_address): Likewise.
7060 (alpha_store_return_value): Likewise.
7061 (alpha_store_struct_return): Remove.
7062 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 7063
98a8e1e5
RH
7064 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7065 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7066 macros where appropriate.
7067 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7068 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 7069
98a8e1e5
RH
7070 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7071 for SP, GP; void_func_ptr for PC; non-language-specific types
7072 for all others.
7073 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 7074
6dd77b81
RH
70752003-06-02 Richard Henderson <rth@redhat.com>
7076
7077 * top.h (lim_at_start): Declare.
7078 * main.c (captured_main): Set it.
7079 * top.c (lim_at_start): Define.
7080 (command_loop): Use it instead of &environ.
7081 * event-top.c (command_handler): Likewise.
7082
f4dbdb54
JT
70832003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7084
7085 * mipsnbsd-tdep.c: Update copyright years.
7086 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7087
8f285956
RH
70882003-06-01 Richard Henderson <rth@redhat.com>
7089
98a8e1e5
RH
7090 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7091 (alpha-linux-tdep.o): Update dependencies.
7092 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7093 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 7094
615967cb
RH
70952003-06-01 Richard Henderson <rth@redhat.com>
7096
98a8e1e5
RH
7097 * alpha-tdep.c (alpha_register_reggroup_p): New.
7098 (alpha_gdbarch_init): Register it.
615967cb 7099
b59661bd
AC
71002003-06-02 Andrew Cagney <cagney@redhat.com>
7101
7102 * dwarfread.c: Eliminate "register"
7103 (decode_die_type): Eliminate assignment within "if".
7104 (struct_type, decode_array_element_type): Ditto.
7105 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7106 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7107 (decode_modified_type, completedieinfo): Ditto.
7108 * block.c: Eliminate "register".
7109 (blockvector_for_pc_sect): Eliminate assignment within "if".
7110 * cp-support.h (struct symbol): Opaque declaration.
7111 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7112
5ef165c2
RH
71132003-06-01 Richard Henderson <rth@redhat.com>
7114
98a8e1e5
RH
7115 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7116 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 7117
143985b7
AF
71182003-06-01 Adam Fedor <fedor@gnu.org>
7119
7120 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7121 * gdbarch.[ch]: Regenerate.
7122 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7123 (hppa_gdbarch_init): Set it in the gdbarch vector.
7124 * i386-tdep.c (i386_fetch_pointer_argument): New
7125 (i386_gdbarch_init): Set it into gdbarch.
7126 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7127 (rs6000_gdbarch_init): Set it in gdbarch.
7128 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7129 (sparc_gdbarch_init): Set it in gdbarch.
7130
ae0167b9
AC
71312003-06-01 Andrew Cagney <cagney@redhat.com>
7132
7c0b4a20
AC
7133 * defs.h (extract_address): Delete declaration.
7134 * findvar.c (extract_address): Delete function.
7135 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7136 extract_address with the inline equivalent,
7137 extract_unsigned_integer.
7138 (xstormy16_extract_struct_value_address): Ditto.
7139 (xstormy16_pointer_to_address): Ditto.
7140 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7141 * v850-tdep.c (v850_push_arguments): Ditto.
7142 (v850_extract_return_value): Ditto.
7143 (v850_extract_struct_value_address): Ditto.
7144 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7145 (sparcnbsd_get_longjmp_target_64): Ditto.
7146 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7147 (get_longjmp_target): Ditto.
7148 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7149 (sh64_extract_struct_value_address): Ditto.
7150 (sh_push_arguments): Ditto.
7151 (sh64_push_arguments): Ditto.
7152 * remote-vxsparc.c (vx_read_register): Ditto.
7153 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7154 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7155 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7156 * mipsv4-nat.c (get_longjmp_target): Ditto.
7157 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7158 * mips-nat.c (get_longjmp_target): Ditto.
7159 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7160 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7161 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7162 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7163 * irix5-nat.c (get_longjmp_target): Ditto.
7164 * irix4-nat.c (get_longjmp_target): Ditto.
7165 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7166 (ia64_push_arguments): Ditto.
7167 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7168 * h8300-tdep.c (h8300_push_arguments): Ditto.
7169 (h8300_store_return_value): Ditto.
7170 (h8300_extract_struct_value_address): Ditto.
7171 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7172 (frv_push_arguments): Ditto.
7173 * avr-tdep.c (avr_pointer_to_address): Ditto.
7174 (avr_push_arguments): Ditto.
7175 * arm-tdep.c (arm_push_dummy_call): Ditto.
7176 (arm_get_longjmp_target): Ditto.
7177 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7178 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7179 (alpha_get_longjmp_target): Ditto.
7180
ae0167b9
AC
7181 * solib-irix.c (extract_mips_address): Inline extract_address,
7182 replacing it with extract_signed_integer.
7183 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7184 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7185 (first_link_map_member, open_symbol_file_object): Ditto.
7186 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7187 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7188 (LM_NEXT, LM_NAME): Ditto.
7189
44d88583
RH
71902003-06-01 Richard Henderson <rth@redhat.com>
7191
98a8e1e5
RH
7192 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7193 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7194 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7195 (alpha_cannot_store_register): Likewise.
7196 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7197 * alpha-nat.c (supply_gregset): Likewise.
7198 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 7199
310e9b6a
AC
72002003-06-01 Andrew Cagney <cagney@redhat.com>
7201
7202 * infcall.c (call_function_by_hand): Update comment on
7203 DEPRECATED_DUMMY_WRITE_SP.
7204
7205 * mips-tdep.c (mips_gdbarch_init): Do not set
7206 deprecated_dummy_write_sp.
7207 (mips_eabi_push_dummy_call): Set the SP register.
7208 (mips_o64_push_dummy_call): Set the SP register.
7209 (mips_o32_push_dummy_call): Set the SP register.
7210 (mips_n32n64_push_dummy_call): Set the SP register.
7211
5ab84872
RH
72122003-06-01 Richard Henderson <rth@redhat.com>
7213
98a8e1e5
RH
7214 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7215 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7216 (supply_gregset): Likewise.
7217 * alpha-tdep.c (alpha_store_return_value): Likewise.
7218 (alpha_get_longjmp_target): Likewise.
7219 (alpha_register_name): Constify array.
7220 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7221 deprecated_register_size, deprecated_register_bytes,
7222 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7223 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7224 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 7225
09cc52fd
RH
72262003-06-01 Richard Henderson <rth@redhat.com>
7227
7228 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7229 from arg_reg_buffer to regcache to avoid double conversion.
7230
c7f16359
MK
72312003-06-01 Mark Kettenis <kettenis@gnu.org>
7232
7233 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7234 SP_REGNUM.
7235 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7236 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7237
7131cb6e
RH
72382003-06-01 Richard Henderson <rth@redhat.com>
7239
98a8e1e5
RH
7240 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7241 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 7242
f3e0f90b
RH
72432003-06-01 Richard Henderson <rth@redhat.com>
7244
98a8e1e5
RH
7245 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7246 not overlapping PC_REGNUM.
f3e0f90b 7247
c88e30c0
RH
72482003-06-01 Richard Henderson <rth@redhat.com>
7249
98a8e1e5
RH
7250 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7251 alpha_push_arguments. Don't dump argument register data to
7252 the target stack. Fix float and 128-bit long double semantics.
7253 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7254 (alpha_fix_call_dummy): Remove.
7255 (alpha_call_dummy_words): Remove.
7256 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 7257
f1a559ae
RH
72582003-06-01 Richard Henderson <rth@redhat.com>
7259
7260 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7261
5e045346
AC
72622003-06-01 Andrew Cagney <cagney@redhat.com>
7263
95404a3e
AC
7264 * mips-tdep.c (is_mips16_addr): New function.
7265 (make_mips16_addr, unmake_mips16_addr): New functions.
7266 (pc_is_mips16, mips_fetch_instruction): Use.
7267 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7268 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7269 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7270 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7271 TARGET_MIPS.
7272 * config/mips/tm-mips.h: Update copyright.
7273 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7274 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7275 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7276 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7277 (TM_PRINT_INSN_MACH): Delete.
7278 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7279
5e045346
AC
7280 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7281 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7282 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7283 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7284 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7285 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7286 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7287 mips*-*-riscos* and mips*-*-sysv* onto mips.
7288 * config/mips/mips64.mt: New file.
7289 * config/mips/mips.mt: New file.
7290 * config/mips/littlemips.mt: Delete file.
7291 * config/mips/decstation.mt: Delete file.
7292 * config/mips/vr4300el.mt: Delete file.
7293 * config/mips/vr5000el.mt: Delete file.
7294 * config/mips/vr5000.mt: Delete file.
7295 * config/mips/vr4100.mt: Delete file.
7296 * config/mips/vr4xxxel.mt: Delete file.
7297 * config/mips/vr4300.mt: Delete file.
7298 * config/mips/vr4xxx.mt: Delete file.
7299 * config/mips/bigmips.mt: Delete file.
7300 * config/mips/bigmips64.mt: Delete file.
7301 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7302 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7303 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7304 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7305 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7306 "tm-bigmips.h".
7307 * config/mips/tm-irix3.h: Ditto.
7308 * config/mips/tm-mipsv4.h: Ditto.
7309 * config/mips/tm-embed.h: Ditto.
7310 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7311 "tm-bigmips64.h".
7312 * config/mips/tm-vr5000el.h: Delete file.
7313 * config/mips/tm-tx39l.h: Delete file.
7314 * config/mips/tm-vr4300el.h: Delete file.
7315 * config/mips/tm-vr4xxxel.h: Delete file.
7316 * config/mips/tm-vr4300.h: Delete file.
7317 * config/mips/tm-vr4100.h: Delete file.
7318 * config/mips/tm-vr4xxx.h: Delete file.
7319 * config/mips/tm-vr5000.h: Delete file.
7320 * config/mips/tm-embedl64.h: Delete file.
7321 * config/mips/tm-embedl.h: Delete file.
7322 * config/mips/tm-embed64.h: Delete file.
7323 * config/mips/tm-bigmips64.h: Delete file.
7324 * config/mips/tm-bigmips.h: Delete file.
7325
2473a4a9
MK
73262003-06-01 Mark Kettenis <kettenis@gnu.org>
7327
97a5b208
MK
7328 Fix gdb/1216.
7329 * shnbsd-nat.c: Include "sh-tdep.h".
7330
2473a4a9
MK
7331 From Richard Henderson <rth@redhat.com>:
7332 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7333
e0f7ec59
AC
73342003-05-31 Andrew Cagney <cagney@redhat.com>
7335
7336 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7337 forward declaration.
7338 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7339 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7340 (mips_find_saved_regs): Use set_reg_offset.
7341 (mips_frame_init_saved_regs): Delete function.
7342 (mips_pop_frame): Call mips_find_saved_regs instead of
7343 DEPRECATED_FRAME_INIT_SAVED_REGS.
7344
68dcc709
AC
73452003-05-31 Andrew Cagney <cagney@redhat.com>
7346
7347 * mips-tdep.c (mips_gdbarch_init): Do not set
7348 deprecated_max_register_raw_size, register_virtual_size, and
7349 deprecated_max_register_virtual_size.
7350
cfc14b3a
MK
73512003-05-31 Mark Kettenis <kettenis@gnu.org>
7352
6405b0a6
MK
7353 * i386-tdep.c: Include "dwarf2-frame.h".
7354 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7355 * Makefile.in (i386-tdep.o): Update dependencies.
7356
cfc14b3a
MK
7357 * dwarf2-frame.c, dwarf2-frame.h: New files.
7358 * Makefile.in (SFILES): Add dwarf2-frame.c.
7359 (dwarf2_frame_h): Define.
7360 (COMMON_OBS): Add dwarf2-frame.o.
7361 (dwarf2-frame.o): Add dependencies.
7362
6a2751d2
AJ
73632003-05-31 Andreas Jaeger <aj@suse.de>
7364
7365 * x86-64-linux-nat.c: Fix comment.
7366
1c3545ae
MK
73672003-05-31 Mark Kettenis <kettenis@gnu.org>
7368
10f93086
MK
7369 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7370 function signature.
7371
1c3545ae
MK
7372 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7373 have a sigcontext_addr handler.
7374 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7375 sigcontext_addr handler.
7376
e11c53d2
AC
73772003-05-31 Andrew Cagney <cagney@redhat.com>
7378
7379 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7380 (print_fp_register_row): Replace do_fp_register_row.
7381 (mips_print_fp_register): Add "file" and "frame" parameters.
7382 (mips_print_register): Add "file" and "frame" parameters.
7383 (mips_print_registers_info): Replace mips_do_registers_info.
7384 (mips_gdbarch_init): Set print_registers_info instead of
7385 deprecated_do_registers_info.
7386 (mips_read_fp_register_single): Add "frame" parameter.
7387 (mips_read_fp_register_double): Add "frame" parameter.
7388
a3386186
MK
73892003-05-31 Mark Kettenis <kettenis@gnu.org>
7390
70913449
MK
7391 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7392 Fixes a bug where GDB would print the wrong register names for
7393 targets without SSE.
7394
2b5e0749
MK
7395 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7396 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7397 registers.
7398
7399 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7400 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7401 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7402 TDEP->sc_sp_offset.
7403
a3386186
MK
7404 From Michal Ludvig <mludvig@suse.cz>:
7405 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7406 and `sc_num_regs'.
7407 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7408 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7409 I386_ST0_REGNUM): Move here from...
7410 * i386-tdep.c: ... here.
7411 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7412 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7413 registers if possible.
7414 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7415 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7416 Remove variables.
7417 (i386bsd_sc_reg_offset): New variable.
7418 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7419 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7420 TDEP->sc_sp_offset.
7421 (i386fbsd_sc_reg_offset): New variable.
7422 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7423 TDEP->sc_num_regs.
7424 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7425 variables.
7426 (i386fbsd4_sc_reg_offset): New variable.
7427 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7428 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7429 TDEP->sc_sp_offset.
7430 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7431 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7432 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7433 Remove variables.
7434 (i386nbsd_sc_reg_offset): New variable.
7435 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7436 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7437 TDEP->sc_sp_offset.
7438 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7439 Remove variables.
7440 (i386obsd_sc_reg_offset): New variable.
7441 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7442 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7443 TDEP->sc_sp_offset.
7444 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7445 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7446 for frame pointer offset in `struct sigcontext'.
7447
25ab4790
AC
74482003-05-31 Andrew Cagney <cagney@redhat.com>
7449
7450 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7451 architecture methods call_dummy_words, sizeof_call_dummy_words,
7452 push_return_address, store_struct_return, and fix_call_dummy. Set
7453 push_dummy_call instead of deprecated_push_arguments.
7454 (mips_store_struct_return): Delete function.
7455 (mips_fix_call_dummy): Delete function.
7456 (mips_push_return_address): Delete function.
7457 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7458 RA_REGNUM and T9_REGNUM.
7459 (mips_n32n64_push_dummy_call): Ditto for
7460 mips_n32n64_push_arguments.
7461 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7462 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7463
6a65450a
AC
74642003-05-31 Andrew Cagney <cagney@redhat.com>
7465
7466 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7467 "dummy_addr" to "bp_addr".
7468 * infcall.c (call_function_by_hand): Pass "funaddr" to
7469 gdbarch_push_dummy_call.
7470 * gdbarch.h, gdbarch.c: Re-generate.
7471 * i386-tdep.c (i386_push_dummy_call): Update.
7472 * arm-tdep.c (arm_push_dummy_call): Update.
7473 * d10v-tdep.c (d10v_push_dummy_call): Update.
7474
c4f35dd8
MK
74752003-05-31 Mark Kettenis <kettenis@gnu.org>
7476
7477 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7478 variable declarations.
7479 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7480 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7481 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7482 x86_64_init_frame_pc, x86_64_init_frame_pc,
7483 x86_64_function_has_prologue): Remove prototypes.
7484 (X86_64_NUM_GREGS): New define.
7485 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7486 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7487 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7488 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7489 XMM1_REGNUM): Remove defines.
7490 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7491 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7492 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7493 X86_64_XMM1_REGNUM): New defines.
7494 (struct x86_64_register_info): Renamed from `struct
7495 register_info'. Remove `size' member.
7496 (x86_64_register_info_table): Remove variable.
7497 (x86_64_register_info): New variable.
7498 (X86_64_NUM_REGS): New define.
7499 (X86_64_NUM_GREGS): Remove define.
7500 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7501 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7502 Remove variables.
7503 (x86_54_dwarf2_reg_to_regnum): Remove function.
7504 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7505 (x86_64_dwarf_reg_to_regnum): New function.
7506 (x86_64_register_name): Rewrite.
7507 (x86_64_register_raw_size): Remove function.
7508 (x86_64_register_byte_table): Remove variable.
7509 (x86_64_register_byte): Remove function.
7510 (x86_64_register_virtual_type): Remove function.
7511 (x86_64_register_type): New function.
7512 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7513 x86_64_register_convert_to_raw): Remove functions.
7514 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7515 (x86_64_use_struct_convention): Make static. Adjust for renamed
7516 defines.
7517 (x86_64_frame_init_saved_regs): Remove function.
7518 (x86_64_push_arguments): Make static. Change to accept a regcache
7519 as argument.
7520 (x86_64_store_return_value, x86_64_extract_return_value): Make
7521 static. Rewrite based on i386 counterparts.
7522 (x86_64_push_dummy_call): New function.
7523 (X86_64_NUM_SAVED_REGS): New define.
7524 (x86_64_register_number): Remove function.
7525 (x86_64_store_struct_return): Remove function.
7526 (x86_64_frameless_function_invocation,
7527 x86_64_function_has_prologue): Remove functions.
7528 (PROLOG_BUFSIZE): Remove define.
7529 (struct x86_64_frame_cache): New structure.
7530 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7531 x86_64_frame_cache, x86_64_frame_this_id,
7532 x86_64_frame_prev_register, x86_64_frame_p,
7533 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7534 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7535 functions.
7536 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7537 variables.
7538 (x86_64_skip_prologue): Rewrite in terms of
7539 x86_64_analyze_prologue.
7540 (x86_64_frame_base_address): New function.
7541 (x86_64_frame_base): New variable.
7542 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7543 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7544 set deprecated_fp_regnum, deprecated_register_size,
7545 deprecated_register_bytes, register_raw_size, register_byte,
7546 register_virtual_type, register_convertiable,
7547 register_convert_to_virtual, convert_to_raw,
7548 deprecated_get_saved_register, deprecated_target_read_fp,
7549 deprecated_push_arguments, deprecated_push_return_address,
7550 deprecated_pop_frame, deprecated_store_struct_return,
7551 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7552 frameless_function_invocation, deprecated_frame_saved_pc,
7553 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7554 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7555 deprecated_init_frame_pc and virtual_frame_pointer. Call
7556 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7557 and x86_64_frame_p. Call frame_base_set_default to register
7558 x86_64_frame_base.
7559 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7560 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7561 (_initialize_x86_64_tdep): Remove function.
7562 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7563 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7564 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7565 define.
7566 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7567 (x86_64_linux_sigcontext_addr): Rewrite.
7568 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7569 x86_64_linux_frame_saved_pc): Remove functions.
7570 (x86_64_linux_pc_in_sigtramp): Renamed from
7571 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7572 trampoline.
7573 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7574 Remove_functions.
7575 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7576 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7577 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7578 (x86_64_regmap): Rename to regmap.
7579 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7580 x86_64_num_gregs.
7581 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7582 x86_64_regmap.
7583 (x86_64_fxsave_offset): Remove function.
7584 (supply_fpregset): Simply call x86_64_supply_fxsave.
7585 (fill_fpregset): Simply call x86_64_fill_fxsave.
7586 (fetch_inferior_registers, store_inferior_registers): Avoid
7587 asignment in if-statement.
7588 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7589 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7590 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7591 (fetch_core_registers): Remove function.
7592 (linux_elf_core_fns): Remove.
7593 (offsetoff): Don't define.
7594 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7595 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7596 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7597 add core-regset.o.
7598 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7599 protection against multiple includes instead of NM_X86_64_h. Add
7600 various comments. Include "config/nm-linux.h". Don't include
7601 <signal.h>.
7602 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7603 GET_THREAD_SIGNALS): Remove defines.
7604 (x86_64_register_u_addr, kernel_u_size,
7605 lin_thread_get_thread_signals): Remove prototypes.
7606 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7607 [HAVE_LINK_H]: Don't include "solib.h".
7608 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7609 * config/i386/tm-x86-64linux.h: Fix comments.
7610 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7611 x86-64-tdep.o): Update dependencies.
7612
c25083af
AC
76132003-05-30 Andrew Cagney <cagney@redhat.com>
7614
c8f55a7b
AC
7615 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7616 Change parameter type to a "struct regcache *".
7617
c25083af
AC
7618 * gdbarch.sh: Regardless of the multi-arch level, always define
7619 the macro when not already defined.
7620 * gdbarch.h, gdbarch.c: Re-generate.
7621
fbe586ae
RH
76222003-05-30 Richard Henderson <rth@redhat.com>
7623
7624 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7625 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7626 (alpha_mdebug_frame_this_id): Likewise.
7627 (alpha_mdebug_frame_prev_register): Likewise.
7628 (alpha_mdebug_frame_base_address): Likewise.
7629 (alpha_mdebug_frame_locals_address): Likewise.
7630 (alpha_mdebug_frame_args_address): Likewise.
7631 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7632 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7633 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7634 loop increment.
7635 (alpha_heuristic_frame_this_id): Make static.
7636 (alpha_heuristic_frame_prev_register): Likewise.
7637 (alpha_heuristic_frame_base_address): Likewise.
7638 * alpha-tdep.h: Update.
7639
acd5c798
MK
76402003-05-30 Mark Kettenis <kettenis@gnu.org>
7641
7642 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7643 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7644 defenitions.
7645 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7646 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7647 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7648 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7649 I386_ST0_REGNUM): New defines.
7650 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7651 codestream_get): Remove define.
7652 (codestream_next_addr, condestream_addr, condestream_buf,
7653 codestream_off, codestream_cnt): Remove variables.
7654 (codestream_fill, codestream_seek, codestream_read): Remove
7655 functions.
7656 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7657 functionality.
7658 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7659 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7660 i386_frame_saved_pc, i386_saved_pc_after_call,
7661 i386_frame_num_args, i386_frame_init_saved_regs,
7662 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7663 i386_push_arguments): Remove functions.
7664 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7665 functionality. Use i386_analyze_prologue instead of
7666 i386_get_frame_setup.
7667 (I386_NUM_SAVED_REGS): New define.
7668 (struct i386_frame_cache): New structure.
7669 (i386_alloc_frame_cache, i386_analyze_struct_return,
7670 i386_skip_probe, i386_analyze_frame_setup,
7671 i386_analyze_register_saves, i386_analyze_prologue,
7672 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7673 i386_frame_prev_register, i386_sigtramp_frame_cache,
7674 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7675 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7676 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7677 New functions.
7678 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7679 New variables.
7680 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7681 I386_EAX_REGNUM and I386_EDX_REGNUM.
7682 (i386_extract_return_value, i386_store_return_value): Use
7683 I386_ST0_REGNUM where appropriate.
7684 (i386_extract_struct_value_address): Rewrite to use extract_address.
7685 (i386_svr4_pc_in_sigtramp): Add comment.
7686 (i386_svr4_sigcontext_addr): Rewrite.
7687 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7688 TDEP->sc_sp_offset.
7689 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7690 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7691 of new defines. Set push_dummy_call, don't set
7692 deprecated_push_arguments, deprecated_push_return_address,
7693 deprecated_pop_frame. Don't set parm_boundary. Don't set
7694 deprecated_frame_chain, deprecated_frame_saved_pc,
7695 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7696 save_dummy_frame_tos, unwind_pc. Call
7697 frame_unwind_append_predicate and frame_base_set_default. Don't
7698 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7699 Don't set frameless_function_invocation. Don't set
7700 deprecated_register_bytes, deprecated_register_size,
7701 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7702 * i386-linux-tdep.c: Fix formatting in some comments.
7703 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7704 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7705 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7706 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7707 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7708 redundant parentheses.
7709 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7710 (i386_linux_sigcontext_addr): Use it. Rewrite.
7711 (find_minsym_and_objfile): Change name of second argument.
7712 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7713 changed. Use frame_pc_unwind instead of
7714 DEPRECATED_SAVED_PC_AFTER_CALL.
7715 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7716 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7717 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7718 unwinder.
7719 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7720 "dummy-frame.h".
7721 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7722 (_initialize_i386_cygwin_tdep): New prototype.
7723 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7724 deprecated_frame_chain_valid.
7725 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7726 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7727 Rely on the SVR4 defaults.
7728 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7729 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7730
c89b70f1
AC
77312003-05-30 Andrew Cagney <cagney@redhat.com>
7732
7733 * infcall.c (call_function_by_hand): Always call
7734 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7735
85b32d22
RH
77362003-05-30 Richard Henderson <rth@redhat.com>
7737
c89b70f1
AC
7738 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7739 increment.
85b32d22 7740
bfe51b1e
JB
77412003-05-29 Jim Blandy <jimb@redhat.com>
7742
7743 Use gdbarch methods for solib stuff on PowerPC Linux.
7744 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7745 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7746 show through.
7747 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7748 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7749 giving the same effect as the #definitions above.
7750
1abf022c
AF
77512003-05-29 Adam Fedor <fedor@gnu.org>
7752
7753 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7754 (find_implementation_from_class): Replace it with the standard
7755 case i.e. do nothing.
7756
d2427a71
RH
77572003-05-29 Richard Henderson <rth@redhat.com>
7758
7759 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7760 (alpha_linux_sigtramp_offset): Use it. Make static.
7761 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7762 update for new frame model.
7763 * alpha-mdebug-tdep.c: New file.
7764 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7765 (alpha_osf1_init_abi): Install it.
7766 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7767 (linked_proc_desc_table): Remove.
7768 (alpha_frame_past_sigtramp_frame): Remove.
7769 (alpha_dynamic_sigtramp_offset): Remove.
7770 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7771 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7772 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7773 (push_sigtramp_desc): Remove.
7774 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7775 (alpha_cannot_store_register): Likewise.
7776 (alpha_sigcontext_addr): Remove.
7777 (alpha_find_saved_regs): Remove.
7778 (alpha_frame_init_saved_regs): Remove.
7779 (alpha_init_frame_pc_first): Remove.
7780 (read_next_frame_reg): Remove.
7781 (alpha_frame_saved_pc): Remove.
7782 (alpha_saved_pc_after_call): Remove.
7783 (temp_proc_desc, temp_saved_regs): Remove.
7784 (alpha_about_to_return): Remove.
7785 (cached_proc_desc): Remove.
7786 (alpha_frame_chain): Remove.
7787 (alpha_print_extra_frame_info): Remove.
7788 (alpha_init_extra_frame_info): Remove.
7789 (alpha_frame_locals_address): Remove.
7790 (alpha_frame_args_address): Remove.
7791 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7792 (alpha_push_dummy_frame): Remove.
7793 (alpha_pop_frame): Remove.
7794 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7795 (alpha_read_insn): New.
7796 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7797 for different insn encodings.
7798 (alpha_in_lenient_prologue): Remove.
7799 (struct alpha_sigtramp_unwind_cache): New.
7800 (alpha_sigtramp_frame_unwind_cache): New.
7801 (alpha_sigtramp_register_address): New.
7802 (alpha_sigtramp_frame_this_id): New.
7803 (alpha_sigtramp_frame_prev_register): New.
7804 (alpha_sigtramp_frame_unwind): New.
7805 (alpha_sigtramp_frame_p): New.
7806 (struct alpha_heuristic_unwind_cache): New.
7807 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7808 don't count nop insns that occur between functions.
7809 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7810 heuristic_proc_desc, but without the mdebug wrapping.
7811 (alpha_heuristic_frame_this_id): New.
7812 (alpha_heuristic_frame_prev_register): New.
7813 (alpha_heuristic_frame_unwind): New.
7814 (alpha_heuristic_frame_p): New.
7815 (alpha_heuristic_frame_base_address): New.
7816 (alpha_heuristic_frame_base): New.
7817 (alpha_unwind_dummy_id): New.
7818 (alpha_unwind_pc): New.
7819 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7820 frame related deprecated initializations; install replacements.
7821 (alpha_dump_tdep): Remove.
7822 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7823 (alpha_read_insn, alpha_after_prologue,
7824 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7825 alpha_heuristic_frame_prev_register,
7826 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7827 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7828 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7829 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7830
93ec1121
AC
78312003-05-29 Andrew Cagney <cagney@redhat.com>
7832
7833 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7834 dependant on the availability of ASSERT_FUNCTION.
7835 (ASSERT_FUNCTION): Do not define when there is no function name.
7836
98f08d3d
KB
78372003-05-29 Kevin Buettner <kevinb@redhat.com>
7838
7839 From Jimi X <jimix@watson.ibm.com>:
7840 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7841
0897f59b
JB
78422003-05-28 Jim Blandy <jimb@redhat.com>
7843
7844 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7845 argument to ptrace to int; the system headers should give it the
7846 right type, and pointers don't fit in ints on powerpc64-*-*.
7847
14898363
L
78482003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7849
7850 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7851 DW_TAG_catch_block.
7852
a7a48797
EZ
78532003-05-26 Elena Zannoni <ezannoni@redhat.com>
7854
7855 * stabsread.c (dbx_lookup_type): Make static.
7856 (read_type): Ditto.
7857 (add_undefined_type): Ditto.
7858 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7859 not export.
7860
f5479e9c
EZ
78612003-05-26 Elena Zannoni <ezannoni@redhat.com>
7862
7863 * hpread.c (hpread_has_name): Make static.
7864 (hpread_psymtab_to_symtab): Ditto.
7865 (file_exists): Ditto.
7866 (hpread_call_pxdb): Ditto.
7867 (hpread_pxdb_needed): Ditto.
7868 (hpread_quick_traverse): Ditto.
7869 (hpread_get_header): Ditto.
7870 (hpread_get_lntt): Ditto.
7871 (hpread_get_slt): Ditto.
7872 (class_of): Ditto.
7873
eb2e12d7
AS
78742003-05-25 Andreas Schwab <schwab@suse.de>
7875
78bf922a
AS
7876 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7877 stack_align and deprecated_extra_stack_alignment_needed.
7878 (m68k_stack_align): Delete.
7879
eb2e12d7
AS
7880 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7881 (m68k_register_virtual_size): Likewise.
7882 (altos_skip_prologue): Remove obsolete function.
7883 (isi_frame_num_args): Likewise.
7884 (news_frame_num_args): Likewise.
7885 (m68k_fix_call_dummy): Make static.
7886 (m68k_push_dummy_frame): Likewise.
7887 (m68k_pop_frame): Likewise.
7888 (m68k_skip_prologue): Likewise.
7889 (m68k_frame_init_saved_regs): Likewise.
7890 (m68k_saved_pc_after_call): Likewise.
7891 (m68k_get_longjmp_target): Make multi-arch.
7892 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7893 structure. Register m68k_get_longjmp_target if enabled.
7894 * m68k-tdep.h (struct gdbarch_tdep): Define.
7895 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7896
7897 * Makefile.in (config.status): Also depend on configure.tgt
7898 and configure.host.
7899 (m68klinux-tdep.o): Update dependencies.
7900 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7901 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7902 (M68K_LINUX_JB_PC): Define.
7903 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7904 and take additional parameter.
7905 (m68k_linux_sigtramp_saved_pc): Update.
7906 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7907 m68k_linux_pc_in_sigtramp, in_plt_section,
7908 find_solib_trampoline_target.
7909 * config/m68k/tm-linux.h: Don't include any tm headers.
7910 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7911 (JB_ELEMENT_SIZE): Likewise.
7912 (JB_PC): Likewise.
7913 (GET_LONGJMP_TARGET): Likewise.
7914 (IN_SIGTRAMP): Likewise.
7915 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7916
eb2c22dc
MK
79172003-05-25 Mark Kettenis <kettenis@gnu.org>
7918
7919 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7920 (sparc32_push_arguments): Re-implement by calling
7921 sparc32_do_push_arguments.
7922
44b7b84e
MK
79232003-05-25 Mark Kettenis <kettenis@gnu.org>
7924
7925 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7926 SPARC_O1_REGNUM): New defines.
7927 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7928 (sparc32_store_return_value): New function.
7929 (sparc_extract_struct_value_address): Rewrite to operate on a
7930 regcache.
7931 (sparc_gdbarch_init): Don't set
7932 deprecated_extract_struct_value_address. Set
7933 extract_struct_value_address instead. Don't set
7934 deprecated_extract_return_value and deprecated_store_return_value
7935 for 32-bit targets. Set extract_return_value and
7936 store_return_value instead.
7937 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7938 DEPRECTAED_EXTRACT_RETURN_VALUE,
7939 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7940 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7941 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7942 (sparc_store_return_value): Remove prototype.
7943 (sparc32_store_return_value): New prototype.
7944 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7945 Adjust prototypes.
7946
f6ad61e3
MK
79472003-05-24 Mark Kettenis <kettenis@gnu.org>
7948
7949 * sparcnbsd-tdep.c: Include "gdb_string.h".
7950
b276f1bb
AC
79512003-05-23 Andrew Cagney <cagney@redhat.com>
7952
7953 * p-valprint.c (pascal_val_print): Replace extract_address with
7954 the inline equivalent extract_unsigned_integer.
7955 * jv-valprint.c (java_value_print): Ditto.
7956 * ada-valprint.c (ada_val_print_1): Ditto.
7957 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7958
e76c5fcc
TR
79592003-05-23 Theodore A. Roth <troth@openavr.org>
7960
7961 * blockframe.c (frameless_look_for_prologue): Remove unused
7962 after_prologue variable.
7963
2cdd89cb
MK
79642003-05-23 Mark Kettenis <kettenis@gnu.org>
7965
7966 * blockframe.c (get_pc_function_start): Rewrite to avoid
7967 asignments in if-statements.
7968
182d43bc
EZ
79692003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7970
7971 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 7972 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
7973 files, don't relocate absolute symbols (and do use mst_abs).
7974
e8f3fcdd
AC
79752003-05-23 Andrew Cagney <cagney@redhat.com>
7976
7977 * objc-lang.c: Include "gdb_assert.h".
7978 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7979 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7980 (gdb_check, gdb_check_fatal): Delete functions.
7981 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7982 gdb_assert.
7983 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7984 * Makefile.in (objc-lang.o): Update dependencies.
7985
3c23e6fb
ILT
79862003-05-22 Ian Lance Taylor <ian@airs.com>
7987
7988 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7989 with fprintf_filtered, not fprintf_unfiltered.
7990
af1342ab
AC
79912003-05-22 Andrew Cagney <cagney@redhat.com>
7992
7993 * stack.c (frame_info): Inline extract_address, replacing it with
7994 extract_unsigned_integer.
7995 * findvar.c (unsigned_pointer_to_address): Ditto.
7996 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7997 * dwarf2expr.c (dwarf2_read_address): Ditto.
7998 * frame.c (frame_pc_unwind): Update comment.
7999 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8000
47e242ec
JJ
80012003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8002
8003 * infptrace.c (detach): Call print_sys_errmsg rather than
8004 perror_with_name to issue warning message when errno is non-zero
8005 after calling ptrace detach.
8006
e2ac8128
JB
80072003-05-21 J. Brobecker <brobecker@gnat.com>
8008
8009 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8010 macro definitions from here...
8011 * hppa-tdep.c: ...to there.
8012
92b3541e
KB
80132003-05-20 Kevin Buettner <kevinb@redhat.com>
8014
8015 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8016 register_ptrace_addr(). Fix all callers.
8017
55809acb
AS
80182003-05-21 Andreas Schwab <schwab@suse.de>
8019
8020 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8021 dependencies.
8022 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8023 end.
8024 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8025 (_initialize_m68k_linux_tdep): New function.
8026 (m68k_linux_frame_saved_pc): Make static.
8027 (m68k_linux_extract_return_value): Likewise.
8028 (m68k_linux_store_return_value): Likewise.
8029 (m68k_linux_extract_struct_value_address): Likewise.
8030 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8031 Remove.
8032 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8033 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8034 (DEPRECATED_FRAME_SAVED_PC): Remove.
8035
0fbc10f7
KW
80362003-05-20 Kris Warkentin <kewarken@qnx.com>
8037
8038 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8039 regset numbering rather than our own.
8040
58da2eb2
DC
80412003-05-19 David Carlton <carlton@bactrian.org>
8042
8043 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8044
1fcb5155
DC
80452003-05-19 David Carlton <carlton@bactrian.org>
8046
8047 Partial fix for PR c++/827.
8048 * cp-support.h: Include symtab.h.
8049 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8050 * cp-namespace.c: Update contributors.
8051 (cp_lookup_symbol_nonlocal): New.
8052 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8053 (lookup_symbol_file): Ditto.
8054 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8055 * block.h: Declare block_scope, block_using, block_global_block.
8056 * block.c (block_scope): New.
8057 (block_using, block_global_block): Ditto.
8058 * Makefile.in (cp_support_h): Depend on symtab_h.
8059 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8060
5f9a71c3
DC
80612003-05-19 David Carlton <carlton@bactrian.org>
8062
8063 * language.h (struct language_defn): Add 'la_value_of_this'
8064 and 'la_lookup_symbol_nonlocal' members.
8065 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8066 lookup_symbol_static, lookup_symbol_global,
8067 lookup_symbol_aux_block.
8068 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8069 if we should search fields of this and how to do static/global
8070 lookup.
8071 (lookup_symbol_aux_block): Make extern.
8072 (basic_lookup_symbol_nonlocal): New.
8073 (lookup_symbol_static, lookup_symbol_global): Ditto.
8074 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8075 'la_lookup_symbol_nonlocal' members.
8076 * c-lang.c (c_language_defn, cplus_language_defn)
8077 (asm_language_defn, minimal_language_defn): Ditto.
8078 * jv-lang.c (java_language_defn): Ditto.
8079 * language.c (unknown_language_defn, auto_language_defn)
8080 (local_language_defn): Ditto.
8081 * m2-lang.c (m2_language_defn): Ditto.
8082 * objc-lang.c (objc_language_defn): Ditto.
8083 * scm-lang.c (scm_language_defn): Ditto.
8084 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8085 * p-lang.c (pascal_language_defn): Ditto for both.
8086 * Makefile.in (f-lang.o): Depend on value_h.
8087 (p-lang.o): Ditto.
8088
89a9d1b1
DC
80892003-05-19 David Carlton <carlton@bactrian.org>
8090
8091 * block.h: Declare block_static_block.
8092 * block.c (block_static_block): New.
8093 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8094 lookup_symbol_aux_local, calling block_static_block instead.
8095 (lookup_symbol_aux_local): Delete 'static_block' argument.
8096
eed3f8ab
DC
80972003-05-19 David Carlton <carlton@bactrian.org>
8098
8099 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8100
a09d8bda
ML
81012003-05-19 Michal Ludvig <mludvig@suse.cz>
8102
8103 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8104 register numbers mapping.
8105
69636828
AF
81062003-05-18 Adam Fedor <fedor@gnu.org>
8107
8108 * symtab.c (completion_list_objc_symbol): New function.
8109 (make_symbol_completion_list): Use it to add ObjC symbols
8110 when looking though the list.
8111 (language_search_unquoted_string): New function.
8112 (make_file_symbol_completion_list): Use it.
8113
55baeb84
AS
81142003-05-18 Andreas Schwab <schwab@suse.de>
8115
d0b45d99
AS
8116 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8117 dependencies.
8118 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8119 as m68k_linux_extract_return_value.
8120 (DEPRECATED_STORE_RETURN_VALUE): Define as
8121 m68k_linux_store_return_value.
8122 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8123 m68k_linux_extract_struct_value_address.
8124 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8125 get_next_frame, get_frame_base, get_frame_pc.
8126 (m68k_linux_frame_saved_pc): Use get_frame_base.
8127 (m68k_linux_extract_return_value): New function.
8128 (m68k_linux_store_return_value): New function.
8129 (m68k_linux_extract_struct_value_address): New function.
8130 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8131
55baeb84
AS
8132 * c-exp.y (typebase): Remove duplicate occurence of
8133 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 8134 of lookup_signed_typename.
55baeb84 8135
b6b08ebf
MK
81362003-05-18 Mark Kettenis <kettenis@gnu.org>
8137
8138 * dwarf2loc.c (find_location_expression): Change type of second
8139 argument to `size_t *'.
8140 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8141 for size variable.
8142
5ad1c190
DC
81432003-05-18 David Carlton <carlton@bactrian.org>
8144
8145 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8146 'linkage_name'. Add comment.
8147 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8148 'linkage_name'.
8149 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8150 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8151 (lookup_block_symbol): Ditto.
8152
b8b527c5
AC
81532003-05-16 Andrew Cagney <cagney@redhat.com>
8154
8155 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8156 * gdbarch.h, gdbarch.c: Re-generate.
8157 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8158 * TODO (REGISTER_BYTES): Delete reference.
8159 * alpha-tdep.c (alpha_gdbarch_init): Update.
8160 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8161 * x86-64-tdep.c (x86_64_init_abi): Update.
8162 * vax-tdep.c (vax_gdbarch_init): Update.
8163 * v850-tdep.c (v850_gdbarch_init): Update.
8164 * sparc-tdep.c (sparc_gdbarch_init): Update.
8165 * sh-tdep.c (sh_gdbarch_init): Update.
8166 * s390-tdep.c (s390_gdbarch_init): Update.
8167 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8168 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8169 (ns32k_gdbarch_init_32382): Update.
8170 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8171 * mcore-tdep.c (mcore_gdbarch_init): Update.
8172 * m68k-tdep.c (m68k_gdbarch_init): Update.
8173 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8174 * ia64-tdep.c (ia64_gdbarch_init): Update.
8175 * i386-tdep.c (i386_gdbarch_init): Update.
8176 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8177 * hppa-tdep.c (hppa_gdbarch_init): Update.
8178 * h8300-tdep.c (h8300_gdbarch_init): Update.
8179 * frv-tdep.c (frv_gdbarch_init): Update.
8180 * cris-tdep.c (cris_gdbarch_init): Update.
8181 * avr-tdep.c (avr_gdbarch_init): Update.
8182 * arm-tdep.c (arm_gdbarch_init): Update.
8183 * sparc-tdep.c (sparc_pop_frame): Update.
8184 * rs6000-tdep.c (rs6000_pop_frame): Update.
8185 * remote.c (init_remote_state): Update.
8186 (remote_prepare_to_store): Update.
8187 * remote-vx.c (vx_prepare_to_store): Update.
8188 * remote-sds.c (sds_fetch_registers): Update.
8189 (sds_prepare_to_store): Update.
8190 * remote-array.c: Update.
8191 * regcache.c (init_legacy_regcache_descr): Update.
8192 (init_regcache_descr): Update.
8193 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8194 (mips_o64_extract_return_value): Update.
8195 * irix5-nat.c (fetch_core_registers): Update.
8196 * irix4-nat.c (fetch_core_registers): Update.
8197 * i386-tdep.h: Update.
8198 * hppa-tdep.c (pa_do_registers_info): Update.
8199 (pa_do_strcat_registers_info): Update.
8200 * cris-tdep.c (cris_register_bytes_ok): Update.
8201 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8202 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8203 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8204 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8205 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8206 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8207 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8208 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8209 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8210 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8211 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8212 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8213 (REGISTER_BYTES_OK): Update.
8214 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8215 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8216
ee2842e2
ILT
82172003-05-16 Ian Lance Taylor <ian@airs.com>
8218
8219 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8220 (vax_print_insn, print_insn_arg): Remove static functions.
8221 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8222 print_insn_vax from opcodes library.
8223 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8224
973177d3
AC
82252003-05-15 Andrew Cagney <cagney@redhat.com>
8226
aaab4dba
AC
8227 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8228 * target.h (memory_breakpoint_from_pc): Delete declaration.
8229 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8230 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8231 * monitor.c (monitor_insert_breakpoint): Use
8232 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8233 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8234 * gdbarch.h, gdbarch.c: Re-generate.
8235 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8236 (sparc_gdbarch_init): Set breakpoint_from_pc to
8237 sparc_breakpoint_from_pc.
8238 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8239 (BREAKPOINT_FROM_PC): Define.
8240 (sparc_breakpoint_from_pc): Declare.
8241 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8242 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8243 (BREAKPOINT_FROM_PC): Define.
8244 (BREAKPOINT): Delete macro.
8245 * target.h: Update comment.
8246 * s390-tdep.c (s390_gdbarch_init): Update comments.
8247 * remote.c: Update comments.
8248 * remote-mips.c: Update comments.
8249 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8250 * mem-break.c: Update comment.
8251 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8252 (ia64_memory_insert_breakpoint): Update.
8253 * config/sparc/tm-sparc.h: Update comment.
8254 * config/pa/tm-hppa64.h: Update comment.
8255 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8256 (rs6000_breakpoint_from_pc): Update.
8257 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8258 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8259 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8260 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8261 (mips_breakpoint_from_pc): Update.
8262 (mips_dump_tdep): Update.
8263
e06963ff
AC
8264 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8265 * minsyms.c (lookup_minimal_symbol): Inline
8266 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8267
973177d3
AC
8268 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8269 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8270 * p-lang.c (pascal_printstr): Ditto.
8271 * objc-lang.c (objc_printstr): Ditto.
8272 * m2-lang.c (m2_printstr): Ditto.
8273 * jv-valprint.c (java_print_value_fields): Ditto.
8274 * f-lang.c (f_printstr): Ditto.
8275 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8276 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8277 for repeat_count_threshold.
8278 * Makefile.in (cp-valprint.o): Update dependencies.
8279
5ea2bd7f 82802003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8281
5ea2bd7f
JJ
8282 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8283 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
8284 they start with mov r2,r12. Support skipping over indirect stores
8285 of the input registers. Upon hitting a non-nop branch instruction
8286 or predicated instruction, bail out by setting lim_pc to the current
8287 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
8288 beyond our calculated value and we have trust_limit set,
8289 use the lim_pc value.
8290
cc8c88f3
AC
82912003-05-15 Andrew Cagney <cagney@redhat.com>
8292
8293 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8294 generic_find_dummy_frame.
8295 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8296 (deprecated_generic_find_dummy_frame): Update.
8297 (deprecated_read_register_dummy): Update.
8298 * frame.c (deprecated_generic_get_saved_register): Update.
8299
909cd28e
TR
83002003-05-15 Theodore A. Roth <troth@openavr.org>
8301
8302 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8303 (avr_gdbarch_init): Set breakpoint_from_pc method.
8304
b923b08d
AC
83052003-05-15 Andrew Cagney <cagney@redhat.com>
8306
8307 * regcache.c (build_regcache): Set deprecated_register_valid
8308 directly.
8309 (deprecated_grub_regcache_for_register_valid): Delete function.
8310 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8311 declaration.
8312
ae2f03ac 83132003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
8314
8315 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
8316 * symtab.c (lookup_symbol_aux): Delete calls to
8317 lookup_symbol_aux_minsyms.
8318 (lookup_symbol_aux_minsyms): Comment out function and
8319 prototype. Delete lookup by mangled name.
ae2f03ac 8320
18ec9831
KB
83212003-05-14 Kevin Buettner <kevinb@redhat.com>
8322
8323 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8324 correctly indicate an empty stack and ``stack_allocated'' to the
8325 indicate the number of elements initially allocated.
8326 (dwarf_expr_grow_stack): Simplify method for computing new
8327 stack size. Don't loop infinitely if ``stack_len'' is zero.
8328 (execute_stack_op): Move ``ctx->in_reg'' initialization
8329 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8330 be used in conjuction with DW_OP_piece. Revise error message
8331 accordingly.
8332
de18ac1f
TR
83332003-05-14 Theodore A. Roth <troth@openavr.org>
8334
8335 * MAINTAINERS: Update my email address.
8336 * avr-tdep.c: Ditto.
8337
176620f1
EZ
83382003-05-14 Elena Zannoni <ezannoni@redhat.com>
8339
8340 * symtab.h (enum domain_enum): Rename from namespace_enum.
8341 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8342 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8343 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8344 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8345 TYPES_NAMESPACE, METHODS_NAMESPACE.
8346 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8347 (struct symbol, struct partial_symbol): Rename field
8348 'namespace_enum namespace' to 'domain_enum domain'.
8349 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8350 Delete old define kludge for namespace.
8351
8352 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8353 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8354 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8355 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8356 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8357 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8358 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8359 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8360 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8361 occurrences of the above.
8362
b7f31508
ILT
83632003-05-14 Ian Lance Taylor <ian@airs.com>
8364
8365 * Makefile.in (install-only): Use $(SHELL) when running
8366 mkinstalldirs.
8367
2fdbdd39
ILT
83682003-05-13 Ian Lance Taylor <ian@airs.com>
8369
a208d82c
ILT
8370 * MAINTAINERS (write after approval): Add myself.
8371
2fdbdd39
ILT
8372 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8373 second and third arguments.
8374 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8375 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8376
fbd9dcd3
AC
83772003-05-13 Andrew Cagney <cagney@redhat.com>
8378
8379 * defs.h (store_address): Delete declaration.
8380 findvar.c (store_address): Delete function.
8381 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8382 store_unsigned_integer.
8383 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8384 * v850-tdep.c (v850_push_arguments): Ditto.
8385 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8386 * sh-tdep.c (sh64_get_saved_register): Ditto.
8387 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8388 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8389 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8390 (mips_get_saved_register): Ditto.
8391 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8392 (find_func_descr, ia64_push_arguments): Ditto.
8393 * i386-tdep.c (i386_push_arguments): Ditto.
8394 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8395 * frv-tdep.c (frv_push_arguments): Ditto.
8396 * frame.c (legacy_saved_regs_prev_register): Ditto.
8397 (deprecated_generic_get_saved_register): Ditto.
8398 * findvar.c (unsigned_address_to_pointer): Ditto.
8399 * dwarf2read.c (dwarf2_const_value): Ditto.
8400 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8401 * alpha-tdep.c (alpha_push_arguments): Ditto.
8402
6760f9e6
JB
84032003-05-12 J. Brobecker <brobecker@gnat.com>
8404
8405 * NEWS: Mention that the hppa-hpux port has been partially
8406 multiarched (32bit ABIT only, so far).
8407
30e221b4
AC
84082003-05-11 Andrew Cagney <cagney@redhat.com>
8409
8410 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8411 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8412 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8413 sim/testsuite/sim/arm/misaligned2.ms, and
8414 sim/testsuite/sim/arm/misaligned3.ms.
8415 * disasm.h (struct ui_file): Add opaque struct declaration.
8416 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8417 * frame.h (struct ui_file): Ditto.
8418
dea7f9ba
MK
84192003-05-11 Mark Kettenis <kettenis@gnu.org>
8420
8421 * value.h: Pretty print.
8422
01986c48
MK
84232003-05-10 Mark Kettenis <kettenis@gnu.org>
8424
8425 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8426
123a958e
AC
84272003-05-08 Andrew Cagney <cagney@redhat.com>
8428
8429 * regcache.h (max_register_size): Delete declaration.
8430 * regcache.c (max_register_size): Delete function.
8431 (struct regcache_descr): Delete field "max_register_size".
8432 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8433 registers fit in MAX_REGISTER_SIZE.
8434 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8435 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8436 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8437 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8438 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8439 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8440 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8441 * dve3900-rom.c, hppa-tdep.c: Ditto.
8442
eb294659
DC
84432003-05-08 David Carlton <carlton@math.stanford.edu>
8444
8445 * valops.c (push_word): Fix typo.
8446
d9d9c31f
AC
84472003-05-08 Andrew Cagney <cagney@redhat.com>
8448
8449 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8450 * gdbarch.h: Re-generate.
8451 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8452 (legacy_max_register_raw_size): Delete declaration.
8453 * regcache.c (legacy_max_register_raw_size): Delete function.
8454 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8455 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8456 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8457 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8458 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8459 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8460 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8461 * findvar.c, dwarf2cfi.c: Ditto.
8462
22540ece
AC
84632003-05-08 Andrew Cagney <cagney@redhat.com>
8464
8465 * mips-tdep.c (read_signed_register): New function, moved to here
8466 from "regcache.c".
8467 (read_signed_register_pid): Ditto.
8468 * regcache.c (read_signed_register_pid): Delete function, moved to
8469 "mips-tdep.c".
8470 (read_signed_register): Ditto.
8471 * regcache.h (read_signed_register): Delete declaration.
8472 (read_signed_register_pid): Delete declaration.
8473
0c92afe8
AC
84742003-05-08 Andrew Cagney <cagney@redhat.com>
8475
8476 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8477 * gdbarch.h: Re-generate.
8478 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8479 (legacy_max_register_virtual_size): Delete declaration.
8480 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8481 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8482 * tracepoint.c (memrange_sortmerge): Ditto.
8483 * sparc-tdep.c (sparc_print_registers): Ditto.
8484 * regcache.c (legacy_max_register_virtual_size): Delete function.
8485
6037b830
JB
84862002-05-08 J. Brobecker <brobecker@gnat.com>
8487
8488 * fork-child.c (escape_bang_in_quoted_argument): New function.
8489 (fork_inferior): Escape '!' characters in quoted arguments
8490 only when needed.
8491
5d62c8b1
JB
84922003-05-08 J. Brobecker <brobecker@gnat.com>
8493
8494 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8495 the language of the CU is not currently supported by GDB.
8496
20a0e81d
JB
84972003-05-08 J. Brobecker <brobecker@gnat.com>
8498
8499 * defs.h (language): Add language_minimal enum value.
8500 * c-lang.c (minimal_language_defn): New language definition.
8501 (_initialize_c_language): Add the new minimal language to the list
8502 of languages known to GDB.
8503
710ee10a
KB
85042003-05-08 Kevin Buettner <kevinb@redhat.com>
8505
8506 * frame.c (get_frame_type): Don't attempt to lazily initialize
8507 frame's unwinder for legacy frames.
8508
1750fa04
AC
85092003-05-07 Andrew Cagney <cagney@redhat.com>
8510
8511 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8512 and "regcache" parameters.
8513 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8514
ddf9f258 85152003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8516
8517 * dwarf2read.c (dwarf_decode_lines): Only use output of
8518 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
8519 the current address.
8520
87767c29
AC
85212003-05-07 Andrew Cagney <cagney@redhat.com>
8522
8523 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8524 code.
8525
5e7b2f39
JB
85262003-05-07 Jim Blandy <jimb@redhat.com>
8527
8528 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8529 'maint info symtabs' and 'maint info psymtabs'.
8530 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8531 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8532 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8533 Declarations updated.
8534 * maint.c (maintenance_list_command): Delete.
8535 (_initialize_maint_cmds): Update calls to add_cmd.
8536 * gdbcmd.h (maintenancelistlist): Delete declaration.
8537 * cli/cli-cmds.c (maintenancelistlist): Delete.
8538 (init_cmd_lists): Don't initialize it.
8539 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8540
f6684c31
AC
85412003-05-07 Andrew Cagney <cagney@redhat.com>
8542
8543 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8544 "regcache".
8545 (d10v_print_registers_info): Update.
8546 (d10v_dmap_register, d10v_imap_register): Delete functions.
8547 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8548 and "imap_register".
8549 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8550 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8551 * arch-utils.c (generic_remote_translate_xfer_address): Add
8552 "regcache" and "gdbarch" parameters.
8553 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8554 parameter. Change class to multi-arch.
8555 * gdbarch.h, gdbarch.c: Re-generate.
8556 * remote.c (remote_xfer_memory): Use
8557 gdbarch_remote_translate_xfer_address.
8ffd9b1b 8558
e4846b08
JJ
85592003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8560
8561 * infrun.c (prev_pc): Move declaration ahead of proceed().
8562 (proceed): Refresh prev_pc value before resuming.
8563 (stop_stepping): Remove code to refresh prev_pc.
8564
6b71b8ac
KW
85652003-05-06 Kris Warkentin <kewarken@qnx.com>
8566
8567 * nto-tdep.c: Removed stray comment.
8568
47979a4b
KW
85692003-05-06 Kris Warkentin <kewarken@qnx.com>
8570
8571 * i386-nto-tdep.c: Fix old K&R function definitions.
8572 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8573 Also change add_show_from_set() call to add_setshow_cmd().
8574 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8575
00905d52
AC
85762003-05-05 Andrew Cagney <cagney@redhat.com>
8577
8578 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8579 (fprint_dummy_frames): New function.
8580 (maintenance_print_dummy_frames): New function.
8581 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8582 * frame.c (fprint_frame_id): Make global.
8583 * frame.h (fprint_frame_id): Declare.
8584 * Makefile.in (dummy-frame.o): Update dependencies.
8585
b1e29e33
AC
85862003-05-05 Andrew Cagney <cagney@redhat.com>
8587
8588 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8589 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8590 SIZEOF_CALL_DUMMY_WORDS.
8591 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8592 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8593 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8594 CALL_DUMMY_BREAKPOINT_OFFSET.
8595 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8596 CALL_DUMMY_START_OFFSET.
8597 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8598 * gdbarch.h, gdbarch.c: Re-generate.
8599 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8600 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8601 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8602 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8603 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8604 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8605 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8606 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8607 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8608 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8609 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8610 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8611 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8612 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8613 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
8614
86152003-05-05 Kris Warkentin <kewarken@qnx.com>
8616
8617 * configure.tgt: Add i[3456]86-*-nto*.
8618 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8619 * nto-tdep.c: New file. Neutrino target support routines.
8620 * nto-tdep.h: New file. Neutrino target header.
8621 * config/tm-qnxnto.h: New file.
8622 * config/i386/i386nto.mt: New file.
8623 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 8624
0ce3d317
AC
86252003-05-04 Andrew Cagney <cagney@redhat.com>
8626
8627 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8628 (load_infrun_state): Ditto.
8629 (struct thread_info): Drop "prev_func_name" field.
8630 * thread.c (load_infrun_state): Update.
8631 (save_infrun_state): Update.
8632 * infrun.c (prev_func_name): Delete variable.
8633 (init_wait_for_inferior): Do not clear prev_func_name.
8634 (stop_stepping, keep_going, context_switch): Do not swap
8635 prev_func_name.
8636 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8637 instead of PC_IN_SIGTRAMP.
8638
46654a5b
AC
86392003-05-04 Andrew Cagney <cagney@redhat.com>
8640
8641 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8642 REGISTER_BYTE with register_offset_hack.
8643 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8644 that REGISTER_BYTE is consistent with the regcache.
8645 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8646 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 8647
14b08c1b
MK
86482003-05-04 Mark Kettenis <kettenis@gnu.org>
8649
04c8243f
MK
8650 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8651 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8652
14b08c1b
MK
8653 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8654
c7a11e01
JB
86552003-05-03 J. Brobecker <brobecker@gnat.com>
8656
8657 From Thierry Schneider <tpschneider1@yahoo.com>
8658 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8659 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8660 (mi-cmd-symbol.o): Add rule.
8661
7043d8dc
AC
86622003-05-03 Andrew Cagney <cagney@redhat.com>
8663
8664 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8665 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8666 * gdbarch.h, gdbarch.c: Re-generate.
8667 * d10v-tdep.c (d10v_push_dummy_code): New function.
8668 (d10v_gdbarch_init): Set push_dummy_code.
8669 * infcall.c (legacy_push_dummy_code): New function.
8670 (generic_push_dummy_code): New function.
8671 (push_dummy_code): New function.
8672 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8673 instead of dummy_addr, to push_dummy_call. Move call to
8674 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8675 switch.
8676 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8677
92bf2b80
AC
86782003-05-03 Andrew Cagney <cagney@redhat.com>
8679
8680 * disasm.h (print_insn): Declare.
8681 * disasm.c (init_gdb_disassemble_info): New function.
8682 (gdb_disassembly): Call init_gdb_disassemble_info.
8683 (gdb_print_insn): New function.
8684 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8685 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8686 * mcore-tdep.c: Include "disasm.h"
8687 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8688 * d10v-tdep.c: Include "disasm.h".
8689 (display_trace): Call gdb_print_insn, instead of print_insn.
8690 (print_insn): Delete function.
8691 * printcmd.c: Include "disasm.h".
8692 (print_insn): Delete function.
8693 (print_formatted): Call gdb_print_insn, instead of print_insn.
8694 * Makefile.in (printcmd.o): Update dependencies.
8695 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 8696
27d94c49
AC
86972003-05-02 Andrew Cagney <cagney@redhat.com>
8698
82de1e5b
AC
8699 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8700 PC_REGNUM, re-indent.
8701 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8702 PC_REGNUM isn't set.
8703
27d94c49
AC
8704 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8705 * gdbarch.h, gdbarch.c: Re-generate.
8706 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8707 register_virtual_size, pc_regnum, or register_bytes.
8708 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8709 (d10v_register_type): Use D10V_PC_REGNUM.
8710 (d10v_print_registers_info, d10v_read_pc): Ditto.
8711 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8712 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8713
a9c0dc7f
DC
87142003-05-02 David Carlton <carlton@bactrian.org>
8715
8716 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8717 the name with mstrsave.
8718
e33d66ec
EZ
87192003-05-02 Elena Zannoni <ezannoni@redhat.com>
8720
8721 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8722 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8723 (host_charset_name, target_charset_name): New vars for use by
8724 set/show commands.
8725 (host_charset_enum, target_charset_enum): New enums for set/show
8726 commands.
8727 (set_charset_sfunc, set_host_charset_sfunc,
8728 set_target_charset_sfunc): New functions.
8729 (set_host_charset, set_target_charset): Make static.
8730 (list_charsets, set_host_charset_command,
8731 set_target_charset_command): Delete functions.
8732 (show_charset_command): Rewrite as....
8733 (show_charset): Hook this up with the set/show command mechanism.
8734 (_initialize_charset): Change names of charsets to match the
8735 set/show enums. Use host_charset_name and target_charset_name.
8736 Use set/show mechanism for charset, host-charset, target-charset
8737 commands. Do not make 'show host-charset' and 'show
8738 target-charset' be aliases of 'show charset'.
8739
8740 * charset.h (set_host_charset, set_target_charset): Don't export,
8741 they are not used outside the file.
8742
2b6fd0d8
AC
87432003-05-01 Andrew Cagney <cagney@redhat.com>
8744
8745 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8746 (gdb_disassembly): Make "di" non static, always initialize and
8747 cleanup. Always use dis_asm_read_memory.
8748 (gdb_dis_asm_read_memory): Delete function.
8749
6ae2f580
AC
87502003-05-01 Andrew Cagney <cagney@redhat.com>
8751
8752 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8753 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8754
810ecf9f
AC
87552003-04-30 Andrew Cagney <cagney@redhat.com>
8756
8757 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8758 "tm_print_insn_info".
8759 (TARGET_PRINT_INSN_INFO): Delete macro.
8760 (dis_asm_read_memory): Delete function declaration.
8761 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8762 (tm_print_insn_info): Delete variable definition.
8763 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8764 * gdbarch.h, gdbarch.c: Re-generate.
8765 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8766 "deprecated_tm_print_insn_info".
8767 * mcore-tdep.c (mcore_dump_insn): Ditto.
8768 * mips-tdep.c (mips_gdbarch_init): Ditto.
8769 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8770 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8771 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8772 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8773 instead of TARGET_PRINT_INSN_INFO, add comment.
8774 * s390-tdep.c (s390_get_frame_info): Instead of
8775 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8776 (s390_check_function_end, s390_is_sigreturn): Ditto.
8777 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8778 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8779 * disasm.c: Include "gdbcore.h".
8780 (_initialize_disasm): New function, initialize
8781 "deprecated_tm_print_insn_info".
8782 (deprecated_tm_print_insn_info): New variable.
8783 (dis_asm_read_memory): Moved from "corefile.c", made static.
8784 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8785 * Makefile.in (disasm.o): Update dependencies.
8786
07020390
AC
87872003-04-30 Andrew Cagney <cagney@redhat.com>
8788
8789 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8790
a9fa03de
AF
87912003-04-29 Adam Fedor <fedor@gnu.org>
8792
8793 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8794 * infcall.c (find_function_addr): Make non-static.
8795 * infcall.h (find_function_addr): Declare.
8796 * Makefile.in (eval.o): Update dependencies.
8797
1bae87b9
AF
87982003-04-28 Adam Fedor <fedor@gnu.org>
8799
8800 * symtab.c (symbol_find_demangled_name): Check for and demangle
8801 ObjC symbols.
8802 (symbol_init_demangled_name): Init for language_objc as well.
8803
0ba6dca9
AC
88042003-04-28 Andrew Cagney <cagney@redhat.com>
8805
8806 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8807 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8808 * gdbarch.h, gdbarch.c: Re-generate.
8809 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8810 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8811 * inferior.h (deprecated_read_fp): Rename read_fp.
8812 (generic_target_read_fp): Delete declaration.
8813 * regcache.c (generic_target_read_fp): Delete function.
8814 (deprecated_read_fp): Replace read_fp, use
8815 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8816 * d10v-tdep.c (d10v_read_fp): Delete function.
8817 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8818
8819 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8820 deprecated_target_read_fp to generic_target_read_fp.
8821 * sh-tdep.c (sh_gdbarch_init): Ditto.
8822 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8823 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8824 * frv-tdep.c (frv_gdbarch_init): Ditto.
8825
8826 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8827 deprecated_fp_regnum.
8828 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8829 * vax-tdep.c (vax_gdbarch_init): Ditto.
8830 * v850-tdep.c (v850_gdbarch_init): Ditto.
8831 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8832 * sh-tdep.c (sh_gdbarch_init): Ditto.
8833 * s390-tdep.c (s390_gdbarch_init): Ditto.
8834 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8835 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8836 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8837 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8838 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8839 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8840 * i386-tdep.c (i386_gdbarch_init): Ditto.
8841 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8842 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8843 * frv-tdep.c (frv_gdbarch_init): Ditto.
8844 * cris-tdep.c (cris_gdbarch_init): Ditto.
8845 * avr-tdep.c (avr_gdbarch_init): Ditto.
8846 * arm-tdep.c (arm_gdbarch_init): Ditto.
8847 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8848
8849 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8850 * v850-tdep.c (v850_gdbarch_init): Ditto.
8851 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8852 * sh-tdep.c (sh_gdbarch_init): Ditto.
8853 * s390-tdep.c (s390_gdbarch_init): Ditto.
8854 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8855 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8856 * mips-tdep.c (mips_gdbarch_init): Ditto.
8857 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8858 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8859 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8860 * frv-tdep.c (frv_gdbarch_init): Ditto.
8861 * avr-tdep.c (avr_gdbarch_init): Ditto.
8862 * arm-tdep.c (arm_gdbarch_init): Ditto.
8863
8864 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8865 DEPRECATED_FP_REGNUM.
8866 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8867 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8868 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8869 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8870 (sparc32_register_virtual_type): Ditto.
8871 * sh-tdep.c (sh64_frame_chain): Ditto.
8872 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8873 (sh_nofp_frame_init_saved_regs): Ditto.
8874 (sh64_nofp_frame_init_saved_regs): Ditto.
8875 (sh_fp_frame_init_saved_regs): Ditto.
8876 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8877 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8878 * procfs.c (procfs_fetch_registers): Ditto.
8879 (procfs_store_registers): Ditto.
8880 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8881 (store_inferior_registers, fetch_core_registers): Ditto.
8882 (fetch_kcore_registers, clear_regs): Ditto.
8883 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8884 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8885 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8886 * nlm/i386.c (do_status): Ditto.
8887 * mipsv4-nat.c (supply_gregset): Ditto.
8888 * mips-tdep.c: Ditto for comments.
8889 * mips-nat.c (fetch_inferior_registers): Ditto.
8890 (store_inferior_registers, fetch_core_registers): Ditto.
8891 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8892 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8893 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8894 (i386_do_pop_frame, i386_register_type): Ditto.
8895 * hppa-tdep.c (hppa_frame_chain): Ditto.
8896 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8897 (hppa_pop_frame, hppa_read_fp): Ditto.
8898 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8899 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8900 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8901 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8902 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8903 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8904 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8905 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8906 * blockframe.c: Ditto for comments.
8907 * arch-utils.h: Ditto for comments.
8908 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8909 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8910 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8911 * alpha-tdep.h: Ditto for comments.
8912 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8913 (alpha_cannot_store_register): Ditto.
8914 (alpha_push_dummy_frame): Ditto.
8915 * alpha-nat.c (supply_gregset): Ditto.
8916
8917 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8918 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8919 * config/sparc/tm-sparc.h: Update comment.
8920
8921 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8922 deprecated_read_fp instead of TARGET_READ_FP.
8923 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8924 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8925 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8926 deprecated_read_fp instead of read_fp.
8927 * s390-tdep.c (s390_push_arguments): Ditto.
8928 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8929 * frame.h: Ditto in comments.
8930 * frame.c (legacy_get_prev_frame): Ditto.
8931 * dummy-frame.c (dummy_frame_this_id): Ditto.
8932 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8933
d7a27068
AC
89342003-04-28 Andrew Cagney <cagney@redhat.com>
8935
8936 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8937 * gdbarch.h, gdbarch.c: Re-generate.
8938 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8939 * vax-tdep.c (_initialize_vax_tdep): Update.
8940 * v850-tdep.c (_initialize_v850_tdep): Update.
8941 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8942 * s390-tdep.c (_initialize_s390_tdep): Update.
8943 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8944 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8945 * mips-tdep.c (_initialize_mips_tdep): Update.
8946 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8947 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8948 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8949 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8950 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8951 * frv-tdep.c (_initialize_frv_tdep): Update.
8952 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8953 (_initialize_cris_tdep): Update.
8954 * arch-utils.c (legacy_print_insn): Update.
8955 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8956
d2630e69
AF
89572003-04-26 Adam Fedor <fedor@gnu.org>
8958
8959 * linespec.c (decode_objc): New function to decode ObjC calls
8960 (decode_line_1): Check for ObjC calls (using decode_objc)
8961 * Makefile (linespec.o): Update dependencies.
8962
3086aeae
DJ
89632003-04-26 Daniel Jacobowitz <drow@mvista.com>
8964
8965 * breakpoint.h (struct breakpoint_ops): New.
8966 (struct breakpoint): Add ops member.
8967
8968 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8969 (mention): Use new breakpoint ops member.
8970 (set_raw_breakpoint): Initialize ops field to NULL.
8971 (print_exception_catchpoint, print_one_exception_catchpoint)
8972 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8973 (gnu_v3_exception_catchpoint_ops): New.
8974 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8975
1fbec6c3
AF
89762003-04-25 Adam Fedor <fedor@gnu.org>
8977
8978 * Makefile.in (COMMON_OBS): Add objc-lang.o
8979
0ef21242
AC
89802003-04-25 Andrew Cagney <cagney@redhat.com>
8981
8982 * d10v-tdep.c (print_insn): Delete function.
8983 (display_trace): Use TARGET_PRINT_INSN.
8984 (_initialize_d10v_tdep): Do not set tm_print_insn.
8985 (d10v_gdbarch_init): Set print_insn.
8986
f75493ed
AC
89872003-04-25 Andrew Cagney <cagney@redhat.com>
8988
8989 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8990 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8991 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8992 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8993 (nr_dmap_regs, a0_regnum): ... new functions.
8994 (d10v_print_registers_info): Use a0_regnum, use register_size.
8995 (d10v_register_byte): Delete function.
8996 (d10v_register_raw_size): Delete function.
8997 (d10v_register_type): Use a0_regnum.
8998 (d10v_print_registers_info): Use a0_regnum.
8999 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9000 (d10v_gdbarch_init): Do not set register_byte or
9001 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9002 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9003 extract_address.
9004 (trace_command): Use XCALLOC.
9005 (print_insn): Delete reference to tm_print_insn.
9006 (saved_regs_unwinder): Use store_unsigned_integer instead of
9007 store_address.
9008 * frame.h (FRAME_OBSTACK_CALLOC): Define
9009
2202b100
DC
90102003-04-25 David Carlton <carlton@bactrian.org>
9011
9012 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9013
4e45ca2e
AF
90142003-04-24 Adam Fedor <fedor@gnu.org>
9015
9016 * objc-lang.c: Include "valprint.h"
9017 * Makefile.in (objc-lang.o): Update dependencies.
9018
93de3e7f
AF
90192003-04-24 Adam Fedor <fedor@gnu.org>
9020
8ffd9b1b 9021 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
9022 architecture dependant compilation and mark as unimplemented
9023 (until they get put in the gdbarch vector).
9024
0f20eeea
DC
90252003-04-23 David Carlton <carlton@bactrian.org>
9026
9027 * cp-support.c (cp_find_first_component): Accept 'operator' in
9028 more locations.
9029
74cfe982
AC
90302003-04-23 Andrew Cagney <cagney@redhat.com>
9031
9032 * infcall.c (call_function_by_hand): Eliminate redundant
9033 indentation. Move "saved_async" and "old_cleanups" to where they
9034 are needed.
8ffd9b1b 9035
52557533
AC
90362003-04-23 Andrew Cagney <cagney@redhat.com>
9037
9038 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9039 and "buffer". Move the "name" code to where it is needed.
9040
158775de
AC
90412003-04-23 Andrew Cagney <cagney@redhat.com>
9042
9043 * infcall.c (call_function_by_hand): Move variables "start_sp",
9044 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9045 code to ON_STACK switch branch.
8ffd9b1b 9046
ebc7896c
AC
90472003-04-23 Andrew Cagney <cagney@redhat.com>
9048
9049 * infcall.c (call_function_by_hand): Make declaration of "i",
9050 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9051 lint.
9052
d727590f
AC
90532003-04-23 Andrew Cagney <cagney@redhat.com>
9054
9055 * infcall.c (call_function_by_hand): Delete variable
9056 "n_method_args". Localize "param_type"'s declaration to the loop
9057 that it is used. Reinstate code assigning to said variable -
9058 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9059 Rationalize code using "param_type".
9060
d585e13a
AC
90612003-04-22 Andrew Cagney <cagney@redhat.com>
9062
9063 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9064 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9065 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9066 to DEPRECATED_PUSH_RETURN_ADDRESS.
9067
051caad9
KB
90682003-04-22 Kevin Buettner <kevinb@redhat.com>
9069
9070 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9071 on the DWARF2 register number prior to fetching a register.
9072
77296879
JB
90732003-04-22 J. Brobecker <brobecker@gnat.com>
9074
9075 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9076 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 9077 this macro was always set to 0.
77296879
JB
9078 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9079 considering the fact that this macro was always set to 0.
9080 * hppa-tdep.h (hppa_store_return_value): Likewise.
9081 (hppa_extract_return_value): Likewise.
9082
4252f1df
JB
90832003-04-22 J. Brobecker <brobecker@gnat.com>
9084
9085 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9086 the hppa-pro target only.
9087
14604c6b
JB
90882003-04-21 J. Brobecker <brobecker@gnat.com>
9089
9090 Ongoing multi-arch conversion effort for HP/UX:
9091 * config/pa/tm-hppa.h: Move all macro that are no longer
9092 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9093 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9094
77eb01d1
JB
90952003-04-21 J. Brobecker <brobecker@gnat.com>
9096
9097 * config/pa/tm-hppa.h: Obsolete a section that was only used
9098 for hppa-pro.
9099
61995b3b
JB
91002003-04-21 J. Brobecker <brobecker@gnat.com>
9101
9102 Ongoing multi-arch conversion for HP/UX.
9103 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9104 if already defined (allows hppa64 to stay non-multiarched for now).
9105 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9106
4aa79dcc
AC
91072003-04-21 Andrew Cagney <cagney@redhat.com>
9108
9109 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9110
0f751ff2
AC
91112003-04-21 Andrew Cagney <cagney@redhat.com>
9112
9113 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9114 "i386_num_mmx_regs".
9115
04714b91
AC
91162003-04-21 Andrew Cagney <cagney@redhat.com>
9117
9118 * infcall.c: New file.
9119 * infcall.h: New file.
9120 * valarith.c: Include "infcall.h".
9121 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9122 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9123 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9124 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9125 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9126 (SFILES): Add "infcall.c"
9127 (COMMON_OBS): Add "infcall.o".
9128 (infcall.o): Specify dependencies.
9129 * value.h (call_function_by_hand): Delete declaration.
9130 * inferior.h (run_stack_dummy): Delete declaration.
9131 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9132 (run_stack_dummy): Move to "infcall.c", merged into
9133 call_function_by_hand.
9134 * valops.c (call_function_by_hand): Moved to "infcall.c".
9135 (find_function_addr, value_arg_coerce): Ditto.
9136 (unwindonsignal_p, coerce_float_to_double): Ditto.
9137 (_initialize_valops): Move "set/show coerce-float-to-double", and
9138 "set/show unwindonsignal" commands to "infcall.c".
9139 * v850-tdep.c, target.h: Update comments.
9140 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9141 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9142 (sh64_init_extra_frame_info): Update comments.
9143 * mn10300-tdep.c: Update comments.
9144 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9145 * config/sparc/tm-sparc.h: Update comments.
9146 * breakpoint.h: Update comments.
9147 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9148 * arm-tdep.c: Update comment.
9149
f9d3c2a8
MK
91502003-04-19 Mark Kettenis <kettenis@gnu.org>
9151
c40e1eab
MK
9152 * i386-tdep.c (i386_num_register_names): New variable.
9153 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9154 (MM0_REGNUM): Remove redundant parentheses in define.
9155 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9156 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9157 i386_mxcsr_regnum_p): Remove redundant parentheses.
9158 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 9159
94ea66b3
MK
9160 * i386-tdep.c (i386_extract_return_value,
9161 i386_store_return_value): Correct check for availability of
9162 floating-point registers.
9163
54299a1d
MK
9164 * i386-tdep.c (i386_frame_num_args): Remove function.
9165 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9166
c86c27af
MK
9167 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9168 mmx_regnum_to_fp_regnum. Adjust all callers.
9169
f9d3c2a8
MK
9170 * i386-tdep.c (i386_get_longjmp_target): Use
9171 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9172 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9173 extract_address.
9174
94ba74a9
MK
91752003-04-19 Mark Kettenis <kettenis@gnu.org>
9176
9177 * core-regset.c: Update comments to reflect reality. Re-order
9178 includes.
9179 (fetch_core_registers): Use switch instead of if. Remove
9180 redundant prototype.
9181
4074e13c
JB
91822003-04-18 Jim Blandy <jimb@redhat.com>
9183
9184 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 9185 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 9186
e3ab4aba
RH
91872003-04-17 Richard Henderson <rth@redhat.com>
9188
9189 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9190
627bf7c1
EZ
91912003-04-17 Michael Snyder <msnyder@redhat.com>
9192 Karen Bennet <bennet@redhat.com>
9193
9194 Committed by Elena Zannoni <ezannoni@redhat.com>
9195 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 9196
514621a9
EZ
91972003-04-17 Elena Zannoni <ezannoni@redhat.com>
9198
9199 * values.c (value_being_returned): Don't fetch the return
fbe586ae 9200 value if the return type is void.
514621a9 9201
b4acd559
JJ
92022003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9203
9204 * thread-db.c: Reindented.
8ffd9b1b 9205
530b167e 92062003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9207
9208 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9209 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
9210 as types.
9211
0a48e7e8
MS
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
8ffd9b1b 9235
ab9fe00e
KB
92362003-04-16 Kevin Buettner <kevinb@redhat.com>
9237
610a3745 9238 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
9239 the size of ``long double'' to 16, instead of 8.
9240
e64a344c
MK
92412003-04-16 Mark Kettenis <kettenis@gnu.org>
9242
9243 * i386-linux-nat.c: Add some whitespace to make things more
9244 readable.
9245 (fetch_register, store_register, fetch_inferior_registers,
9246 store_inferior_registers): Get rid of assignment in if-statement.
9247 (store_register): Fix typo in error message.
9248
25d41031
AC
92492003-04-16 Andrew Cagney <cagney@redhat.com>
9250
9251 * utils.c (xmmalloc): Always allocate something, matches
9252 libiberty/xmalloc's semantics.
9253 (xmrealloc, xmcalloc): Ditto.
9254
c50901fd
AC
92552003-04-16 Andrew Cagney <cagney@redhat.com>
9256
9257 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9258 update comments.
9259 (get_frame_type): Initialize unwind and type when needed.
9260 (get_frame_id, frame_register_unwind): Ditto.
9261
f81824a9
AC
92622003-04-16 Andrew Cagney <cagney@redhat.com>
9263
9264 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9265 obsolete.
9266 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9267 * sparcl-stub.c: Obsolete file.
9268 * config/sparc/tm-sparclet.h: Obsolete file.
9269 * sparclet-stub.c: Obsolete file.
9270 * sparclet-rom.c: Obsolete file.
9271 * sparcl-tdep.c: Obsolete file.
9272 * config/sparc/tm-sparclite.h: Obsolete file.
9273 * config/sparc/sparclite.mt: Obsolete file.
9274 * config/sparc/sparclet.mt: Obsolete file.
9275 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9276 sparc86x-*-* obsolete.
9277
9219021c
DC
92782003-04-15 David Carlton <carlton@math.stanford.edu>
9279
9280 * Makefile.in (SFILES): Add cp-namespace.c.
9281 (COMMON_OBS): Add cp-namespace.o.
9282 (block.o): Depend on gdb_obstack_h and cp_support_h.
9283 (buildsym.o): Depend on cp_support_h.
9284 (cp-namespace.o): New.
9285 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9286 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9287 (dwarf2read.o): Depend on cp_support_h.
9288 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9289 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9290 processing_current_namespace.
9291 (read_namespace): Update processing_current_namespace; check for
9292 anonymous namespaces.
9293 (dwarf2_name): New function.
9294 (dwarf2_extension): Ditto.
9295 * cp-support.h: Update copyright, contributors.
9296 Add inclusion guards.
9297 Add opaque declaration for structs obstack, block, symbol.
9298 (struct using_direct): New struct.
9299 Add declarations for cp_find_first_component,
9300 cp_entire_prefix_len, processing_has_namespace_info,
9301 processing_current_namespace, cp_is_anonymous,
9302 cp_add_using_directive, cp_initialize_namespace,
9303 cp_finalize_namespace, cp_set_block_scope,
9304 cp_scan_for_anonymous_namespaces.
9305 * cp-namespace.c: New file.
9306 * cp-support.c: Update copyright.
9307 Include ctype.h, gdb_assert.h, gdbcmd.h.
9308 New variable maint_cplus_cmd_list.
9309 (cp_find_first_component): New function.
9310 (cp_entire_prefix_len, maint_cplus_command)
9311 (first_component_command, _initialize_cp_support): Ditto.
9312 * buildsym.c: Include cp-support.h.
9313 New variable using_list.
9314 (add_symbol_to_list): Check for anonymous namespaces.
9315 (finish_block): Set block's scope.
9316 (start_symtab): Initialize C++ namespace support.
9317 (end_symtab): Finalize C++ namespace support.
9318 * block.h: Add opaque declarations for structs
9319 block_namespace_info, using_direct, and obstack.
9320 Add declarations for block_set_scope and block_set_using.
9321 (struct block): Add 'language_specific' member.
9322 (BLOCK_NAMESPACE): New macro.
9323 * block.c: Include gdb_obstack.h and cp-support.h.
9324 (struct block_namespace_info): New struct.
9325 (block_set_scope): New function.
9326 (block_set_using, block_initialize_namespace): Ditto.
9327
d5a921c9
KB
93282003-04-14 Kevin Buettner <kevinb@redhat.com>
9329
9330 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9331 (locate_base): Return early if there aren't any link map offsets.
9332 (svr4_solib_create_inferior_hook): Warn if shared library support
9333 is unavailable.
9334
d2a52b27
DC
93352003-04-14 David Carlton <carlton@math.stanford.edu>
9336
9337 * symtab.c (symbol_set_names): Add prefix when storing Java names
9338 in hash table. Fix for PR java/1039.
9339
980cae7a
DC
93402003-04-14 David Carlton <carlton@math.stanford.edu>
9341
9342 * symtab.c (symbol_set_names): Rename 'name' arg to
9343 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9344 * symtab.h: Change 'name' argument in declaration of
9345 symbol_set_names to 'linkage_name'.
9346 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9347
e227b13c
AC
93482003-04-14 Andrew Cagney <cagney@redhat.com>
9349
9350 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9351 return the fully sign-extended register value.
9352 (get_frame_pointer): Ditto.
9353 (mips_pop_frame): Initialize "proc_desc" after checking for a
9354 dummy frame.
9355
36712a20
AC
93562003-04-14 Andrew Cagney <cagney@redhat.com>
9357
9358 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9359 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9360 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9361 (mips_push_register): Delete function.
9362 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9363 PUSH_FP_REGNUM.
9364
44ea7b70
JB
93652003-04-14 Jim Blandy <jimb@redhat.com>
9366
9367 * symmisc.c: #include "gdb_regex.h".
9368 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9369 functions.
9370 * maint.c (maintenance_list_command): New function.
9371 (_initialize_maint_cmds): Register the above as commands.
9372 * symtab.h (maintenance_list_symtabs,
9373 maintenance_list_psymtabs): New declarations.
9374 * cli/cli-cmds.c (maintenancelistlist): New variable.
9375 (init_cmd_lists): Initialize it.
9376 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9377 * gdbcmd.h (maintenancelistlist): New declaration.
9378 * Makefile.in (symmisc.o): Update dependencies.
9379
2d0c7962
EZ
93802003-04-14 Elena Zannoni <ezannoni@redhat.com>
9381
9382 * s390-nat.c: Include asm/types.h for addr_t.
9383
1947a811
CV
93842003-04-14 Corinna Vinschen <vinschen@redhat.com>
9385
9386 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9387 actually incoming type.
9388
adb616d7
AC
93892003-04-13 Andrew Cagney <cagney@redhat.com>
9390
9391 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9392 get_next_frame and get_frame_saved_regs.
9393
9b5e151c
AC
93942003-04-13 Andrew Cagney <cagney@redhat.com>
9395
9396 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9397 of gdbarch_num_regs.
9398
ef6e7e13
AC
93992003-04-13 Andrew Cagney <cagney@redhat.com>
9400
9401 * frame.h: Mention what replaced what in "struct frame_info".
9402 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9403 deprecated_update_frame_base_hack and
9404 deprecated_update_frame_pc_hack.
9405 * hppa-tdep.c: Ditto.
9406
61fbb938
DJ
94072003-04-13 Daniel Jacobowitz <drow@mvista.com>
9408
9409 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9410 to read_reg and update its comment. Remove regnum member.
9411 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9412 Don't call read_reg when setting in_reg. Call read_reg to get
9413 the frame base if it's in a register. Return the register number
9414 on the stack instead of in the context. Remove extra arguments
9415 to read_reg.
9416 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9417 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9418 the register number on the expression stack.
9419 (needs_frame_read_reg): Remove extra arguments.
9420
0d53c4c4
DJ
94212003-04-13 Daniel Jacobowitz <drow@mvista.com>
9422
9423 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9424 made non-static.
9425 (execute_stack_op): All callers updated.
9426 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9427 * dwarf2loc.c (find_location_expression): New function.
9428 (dwarf_expr_frame_base): Call it.
9429 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9430 (dwarf2_tracepoint_var_ref): New function, broken out from
9431 locexpr_tracepoint_var_ref.
9432 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9433 Make static.
9434 (loclist_read_variable, loclist_read_needs_frame): New functions.
9435 (loclist_describe_location, loclist_tracepoint_var_ref): New
9436 functions.
9437 (dwarf2_loclist_funcs): New struct location_funcs.
9438 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9439 (struct dwarf2_locexpr_baton): Add comments.
9440 (dwarf2_loclist_funcs): New extern.
9441 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9442 base_address and base_known.
9443 (dwarf_loc_buffer): New variable.
9444 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9445 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9446 (dwarf2_has_info): Initialize dwarf_loc_offset.
9447 (dwarf2_build_psymtabs): Read in .debug_loc.
9448 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9449 DWARF_LOC_SIZE.
9450 (psymtab_to_symtab_1): Likewise. Move base address calculation
9451 here, from...
9452 (dwarf2_get_pc_bounds): ... here. Use the base address from
9453 cu_header.
9454 (dwarf2_symbol_mark_computed): Handle location lists.
9455
6aca59a3
DJ
94562003-04-13 Daniel Jacobowitz <drow@mvista.com>
9457
9458 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9459 if the linkage name demangled successfully.
9460
aca1fcd0
MK
94612003-04-13 Mark Kettenis <kettenis@gnu.org>
9462
97095916
MK
9463 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9464 disassmbly_flavour): Removed.
9465
aca1fcd0
MK
9466 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9467
562a961f
MK
94682003-04-13 Mark Kettenis <kettenis@gnu.org>
9469
9470 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9471
bd013d54
AC
94722003-04-12 Andrew Cagney <cagney@redhat.com>
9473
9474 * frame.h (struct frame_info): Move definition from here ...
9475 * frame.c (struct frame_info): ... to here.
9476
167ef8b1
AC
94772003-04-12 Andrew Cagney <cagney@redhat.com>
9478
9479 * gdbthread.h (save_infrun_state): Delete parameter
9480 "prev_func_start".
9481 (struct thread_info): Delete field "prev_func_start".
9482 (load_infrun_state): Ditto.
9483 * thread.c (load_infrun_state, save_infrun_state): Update.
9484 * infrun.c (prev_func_start): Delete variable.
9485 (context_switch, init_wait_for_inferior): Update.
9486 (stop_stepping, keep_going): Update.
9487
da3331ec
AC
94882003-04-12 Andrew Cagney <cagney@redhat.com>
9489
9490 * gdbarch.sh: Add missing opaque declarations.
9491 * gdbarch.h: Regnerate.
9492 * symtab.h: Add missing opaque declarations.
9493 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9494 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9495 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9496 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9497 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9498 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9499 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9500 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9501 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9502 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9503 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9504 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9505 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9506
18adea3f
AC
95072003-04-11 Andrew Cagney <cagney@redhat.com>
9508
9509 * frame.c (get_frame_id): Return this frame's "id".
9510 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9511 function start.
9512 (legacy_saved_regs_this_id): Replace function body with
9513 internal-error.
9514 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9515 FRAME_OBSTACK_ZALLOC.
9516 (create_new_frame): Mark the frame ID as valid.
9517
2252e863
AO
95182003-04-11 Alexandre Oliva <aoliva@redhat.com>
9519
9520 * Makefile.in (libbfd_h): Added missing setting.
9521 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9522 according to the selected ABI.
9523
a8245ab8
JJ
95242003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9525
9526 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9527
6913c89a
AC
95282003-04-11 Andrew Cagney <cagney@redhat.com>
9529
9530 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9531 SAVED_PC_AFTER_CALL.
9532 * gdbarch.h, gdbarch.c: Regenerate.
9533 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9534 * x86-64-tdep.c (x86_64_init_abi): Update.
9535 * vax-tdep.c (vax_gdbarch_init): Update.
9536 * v850-tdep.c (v850_gdbarch_init): Update.
9537 * sparc-tdep.c (sparc_gdbarch_init): Update.
9538 * sh-tdep.c (sh_gdbarch_init): Update.
9539 * s390-tdep.c (s390_gdbarch_init): Update.
9540 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9541 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9542 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9543 * mips-tdep.c (mips_gdbarch_init): Update.
9544 * mcore-tdep.c (mcore_gdbarch_init): Update.
9545 * m68k-tdep.c (m68k_gdbarch_init): Update.
9546 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9547 * ia64-tdep.c (ia64_gdbarch_init): Update.
9548 (ia64_saved_pc_after_call): Update declaration.
9549 * i386ly-tdep.c (i386lynx_init_abi): Update.
9550 * i386-tdep.c (i386_gdbarch_init): Update.
9551 * hppa-tdep.c (hppa_gdbarch_init): Update.
9552 * h8300-tdep.c (h8300_gdbarch_init): Update.
9553 * frv-tdep.c (frv_gdbarch_init): Update.
9554 * cris-tdep.c (cris_gdbarch_init): Update.
9555 * avr-tdep.c (avr_gdbarch_init): Update.
9556 * arm-tdep.c (arm_gdbarch_init): Update.
9557 * alpha-tdep.c (alpha_gdbarch_init): Update.
9558 * ns32knbsd-nat.c (frame_num_args): Update.
9559 * ns32k-tdep.c (umax_frame_num_args): Update.
9560 * mips-tdep.c (mips_init_frame_pc_first): Update.
9561 * infrun.c (step_over_function): Update.
9562 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9563 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9564 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9565 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9566 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9567 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9568 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9569 * arch-utils.c (init_frame_pc_default): Update.
9570 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9571 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9572 declaration.
8ffd9b1b 9573
38edeab8
AC
95742003-04-11 Andrew Cagney <cagney@redhat.com>
9575
9576 * i387-tdep.c: Update copyright.
9577 (i387_to_double): Delete function.
9578 (double_to_i387): Delete function.
9579
81f8a206
AC
95802003-04-10 Andrew Cagney <cagney@redhat.com>
9581
9582 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9583 frame's function's address. Simplify.
9584 (d10v_frame_unwind_cache): Check that the frame's function is
9585 non-zero.
9586
6e691f7a
JB
95872003-04-10 Jim Blandy <jimb@redhat.com>
9588
9589 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9590 call to set_gdbarch_deprecated_push_arguments.
9591
7f78e237
AC
95922003-04-10 Andrew Cagney <cagney@redhat.com>
9593
9594 * frame.c (fprint_frame_id): New function.
9595 (fprint_frame_type, fprint_frame): New function.
9596 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9597 (create_sentinel_frame, get_frame_id): Ditto.
9598 (frame_id_p, frame_id_eq): Ditto.
9599 (frame_id_inner, create_new_frame): Ditto.
9600 (legacy_get_prev_frame, get_prev_frame): Ditto.
9601 (deprecated_update_frame_pc_hack): Ditto.
9602 (frame_register_unwind): Ditto.
9603 (deprecated_update_frame_base_hack): Ditto.
9604
f870b49b
CV
96052003-04-10 Corinna Vinschen <vinschen@redhat.com>
9606
9607 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9608 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9609 frame_chain function.
9610 * Makefile.in: Add dependencies due to above change.
9611
7c86889b
CV
96122003-04-10 Corinna Vinschen <vinschen@redhat.com>
9613
9614 * blockframe.c (legacy_frame_chain_valid): Move call to
9615 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9616 inside_entry_file.
9617
d0a55772
AC
96182003-04-09 Andrew Cagney <cagney@redhat.com>
9619
9620 * frame.h (struct frame_id): Replace "pc" and "base" with
9621 "stack_addr" and "code_addr". Update comments.
9622 (frame_id_build): Update parameter names and comment.
9623 (struct frame_info): Replace "id_p" and "id" with "this_id".
9624 * dummy-frame.c (dummy_frame_this_id): Update.
9625 * breakpoint.c (print_one_breakpoint): Update.
9626 * frame.c (get_frame_id): Update.
9627 (get_frame_base, frame_id_build): Update.
9628 (create_sentinel_frame, legacy_get_prev_frame): Update.
9629 (deprecated_update_frame_base_hack): Update.
9630 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9631 (frame_id_inner): Ditto.
9632
ac16bf07
AC
96332003-04-09 Andrew Cagney <cagney@redhat.com>
9634
9635 * defs.h (gdb_print_host_address): Make "addr" parameter a
9636 pointer constant.
9637 * utils.c (gdb_print_host_address): Update.
9638
366cfc9e
KB
96392003-04-09 Kevin Buettner <kevinb@redhat.com>
9640
9641 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9642 register number for R0 is 0.
9643
cd983b5c
JB
96442003-04-09 J. Brobecker <brobecker@gnat.com>
9645
9646 * frame.h (struct gdbarch): Add opaque structure definition
9647 to avoid a compilation warning on LynxOS 4.0.
9648
d1340264
AC
96492003-04-09 Andrew Cagney <cagney@redhat.com>
9650
9651 * frame.h (struct frame_info): Delete field "pc". Replace
9652 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9653 structure.
9654 * frame.c (frame_pc_unwind): Update.
9655 (create_sentinel_frame): Do not set "pc".
9656 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9657 (get_frame_pc): Call frame_pc_unwind.
9658 (deprecated_update_frame_pc_hack): Update.
9659 (create_new_frame): Use "pc" not "->pc".
9660
90a6fffb
AC
96612003-04-09 Andrew Cagney <cagney@redhat.com>
9662
9663 * frame.c (get_frame_id): Eliminate code updating "frame".
9664 (legacy_get_prev_frame): Ditto.
9665 (get_frame_base): Return id.base directly.
9666 (deprecated_update_frame_base_hack): Update "id.base".
9667 * frame.h (struct frame_info): Delete field "frame".
9668
2fbce691
AC
96692003-04-09 Andrew Cagney <cagney@redhat.com>
9670
9671 * NEWS: Mention that the "Sequent family" is obsolete.
9672 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9673 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9674 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9675 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9676 * config/i386/tm-ptx4.h: Obsolete file.
9677 * config/i386/tm-ptx.h: Obsolete file.
9678 * symm-tdep.c: Obsolete file.
9679 * config/i386/symmetry.mt: Obsolete file.
9680 * config/i386/tm-symmetry.h: Obsolete file.
9681 * symm-nat.c: Obsolete file.
9682 * config/i386/nm-symmetry.h: Obsolete file.
9683 * config/i386/xm-symmetry.h: Obsolete file.
9684 * config/i386/symmetry.mh: Obsolete file.
9685 * config/i386/nm-ptx4.h: Obsolete file.
9686 * config/i386/ptx4.mh: Obsolete file.
9687 * config/i386/ptx.mt: Obsolete file.
9688 * config/i386/ptx.mh: Obsolete file.
9689 * config/i386/xm-ptx4.h: Obsolete file.
9690 * config/i386/xm-ptx.h: Obsolete file.
9691
78c43945
AC
96922003-04-09 Andrew Cagney <cagney@redhat.com>
9693
9694 Obsolete mips*-*-mach3*.
9695 * NEWS: Mention that mips*-*-mach3* is obsolete.
9696 * m3-nat.c: Obsolete file.
9697 * config/nm-m3.h: Obsolete file.
9698 * config/mips/tm-mipsm3.h: Obsolete file.
9699 * config/mips/mipsm3.mt: Obsolete file.
9700 * config/mips/mipsm3.mh: Obsolete file.
9701 * config/mips/xm-mipsm3.h: Obsolete file.
9702 * mipsm3-nat.c: Obsolete file.
9703 * configure.host: Obsolete mips-dec-mach3*.
9704 * configure.tgt: Obsolete mips*-*-mach3*.
9705
f1908289
AC
97062003-04-09 Andrew Cagney <cagney@redhat.com>
9707
9708 * doublest.h: Update copyright.
9709 (deprecated_store_floating, deprecated_extract_floating): Rename
9710 store_floating and extract_floating. Update comments.
9711 * doublest.c: Update copyright.
9712 (extract_floating_by_length): Replace extract_floating.
9713 (store_floating_by_length): Replace store_floating.
9714 (deprecated_extract_floating): New function.
9715 (deprecated_store_floating): New function.
9716 (extract_typed_floating): Call extract_floating_by_length.
9717 (store_typed_floating): Call store_floating_by_length.
9718 * x86-64-tdep.c (x86_64_store_return_value): Update.
9719 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9720 (sh64_extract_return_value): Update.
9721 (sh_sh4_register_convert_to_virtual): Update.
9722 (sh_sh64_register_convert_to_virtual): Update.
9723 (sh_sh4_register_convert_to_raw): Update.
9724 (sh_sh64_register_convert_to_raw): Update.
9725 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9726 (rs6000_register_convert_to_raw): Update.
9727 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9728 (ia64_register_convert_to_raw): Update.
9729 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9730 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9731 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9732 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9733 (alpha_register_convert_to_raw): Update.
9734
4443bd83
AC
97352003-04-08 Andrew Cagney <cagney@redhat.com>
9736
9737 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9738 * gdbarch.h, gdbarch.c: Re-generate.
9739 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9740 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9741 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9742 conditionally, use frame_pc_unwind as an alternative. Add
9743 comments.
9744 * arch-utils.c (init_frame_pc_default): Only call
9745 SAVED_PC_AFTER_CALL when available.
9746
c0236d92
EZ
97472003-04-08 Elena Zannoni <ezannoni@redhat.com>
9748
fbe586ae 9749 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9750 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9751 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9752 (start_remote): Ditto.
9753 (handle_inferior_event): Ditto.
9754 (save_inferior_status): Ditto.
9755 (restore_inferior_status): Ditto.
9756 * infcmd.c (attach_command): Ditto.
9757 * fork-child.c (startup_inferior): Ditto.
fbe586ae 9758 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9759 * alpha-tdep.c (heuristic_proc_start): Ditto.
9760 * mips-tdep.c (heuristic_proc_start): Ditto.
9761 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9762 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9763 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9764 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9765 * remote-vx.c (vx_create_inferior): Ditto.
9766
97672003-04-08 Elena Zannoni <ezannoni@redhat.com>
9768
9769 * infrun.c (stop_soon_quietly): Make it an enum, to better
9770 override the default behavior of handle_inferior_event.
9771 (clear_proceed_status): Update uses of stop_soon_quietly to
9772 reflect that it is now an enum.
9773 (start_remote): Ditto.
9774 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9775 is set to handle the new GNU/Linux kernel behavior for
9776 attach/sigstop. Update uses of stop_soon_quietly.
9777 * inferior.h (enum stop_kind): New enum.
9778 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9779 Reset normal handle_inferior_event behavior, afterwards.
9780 * fork-child.c (startup_inferior): Update.
9781 * alpha-tdep.c (heuristic_proc_start): Update.
9782 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9783 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9784 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9785 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9786 * remote-vx.c (vx_create_inferior): Update.
9787 * mips-tdep.c (heuristic_proc_start): Update.
9788
1211bce3
EZ
97892003-04-07 Elena Zannoni <ezannoni@redhat.com>
9790
9791 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 9792 be freed more than once, causing wild memory corruptions.
1211bce3 9793 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 9794 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 9795 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 9796 with the "core" target.
1211bce3 9797
f0ef6b29
KB
97982003-04-07 Kevin Buettner <kevinb@redhat.com>
9799
9800 * mips-tdep.c (mips_print_fp_register): New function, created from
9801 do_fp_register_row(). Registers are now (also) printed as hex.
9802 Only one register is printed per row.
9803 (mips_print_register, do_fp_register_row): Print floating point
9804 registers with mips_print_fp_register().
9805
8cf71652
AC
98062003-04-06 Andrew Cagney <cagney@redhat.com>
9807
5e488a7b
AC
9808 * valprint.h (inspect_it): Add extern declaration.
9809 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9810 (selectors_info, classes_info): Ditto.
9811 (find_objc_msgcall): Fix indentation.
9812 (objc_printstr): Delete extern declarations.
9813
8cf71652
AC
9814 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9815
e6ba3bc9
AC
98162003-04-06 Andrew Cagney <cagney@redhat.com>
9817
9818 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9819 Update comment.
9820 * frame.c (legacy_saved_regs_this_id): Update.
9821 (legacy_get_prev_frame): Update.
9822 * xstormy16-tdep.c: Update comment.
9823 * sparc-tdep.c (sparc_frame_chain): Update comment.
9824 * blockframe.c (legacy_frame_chain_valid): Update.
9825
55e1d7e7
AC
98262003-04-06 Andrew Cagney <cagney@redhat.com>
9827
996179ee
AC
9828 * valprint.c (val_print_type_code_int): Delete #ifdef
9829 PRINT_TYPELESS_INTEGER code.
9830
55e1d7e7
AC
9831 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9832 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9833 multi-arch definition.
9834 * gdbarch.h: Re-generate.
9835
43bd9a9e
AC
98362003-04-05 Andrew Cagney <cagney@redhat.com>
9837
9838 Eliminate FRAME_FIND_SAVED_REGS.
9839 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9840 Change FSR parameter to a pointer.
9841 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9842 Assume FSR parameter is a pointer.
9843 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9844 Make fsr a pointer.
9845 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9846 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9847 saved_regs a pointer.
9848 (hppa_frame_saved_pc): Ditto.
9849 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9850 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9851 pointer.
9852 (restore_pc_queue): Make fsr a pointer.
9853 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9854 (hppa_frame_chain): Make saved_regs a pointer, call
9855 hppa_frame_init_saved_regs.
9856 * sparc-tdep.c: Include "gdb_assert.h".
9857 (sparc_frame_find_saved_regs): Replace internal_error with
9858 gdb_assert.
9859 * remote-vxsparc.c (vx_read_register): Delete reference to
9860 FRAME_FIND_SAVED_REGS.
9861 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9862 * gdbarch.h: Regenerate.
9863 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9864 (deprecated_get_frame_saved_regs): Delete declaration.
9865 (struct frame_saved_regs): Delete definition.
9866 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9867 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9868 (hppa_frame_find_saved_regs): Delete declaration.
9869 (FRAME_FIND_SAVED_REGS): Delete macro.
9870 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9871 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9872 FRAME_FIND_SAVED_REGS in comment.
9873
be41e9f4
AC
98742003-04-05 Andrew Cagney <cagney@redhat.com>
9875
9876 * frame.c (frame_func_unwind, get_frame_func): New functions.
9877 * frame.h (get_frame_func, frame_func_unwind): Declare.
9878 (struct frame_info): Add field "prev_func" for caching the
9879 previous frame's function address.
9880 * arm-tdep.c (arm_frameless_function_invocation): Combine
9881 get_pc_function_start and get_frame_pc into get_frame_func.
9882 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9883 (sh64_nofp_frame_init_saved_regs): Ditto.
9884 * s390-tdep.c (s390_function_start): Ditto.
9885 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9886 (rs6000_frameless_function_invocation): Ditto.
9887 (rs6000_frame_saved_pc): Ditto.
9888 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9889 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9890 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9891 (i386_frame_init_saved_regs): Ditto.
9892 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9893 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9894 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9895 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9896 * blockframe.c (frameless_look_for_prologue): Ditto.
9897
a01dd7cc
AC
98982003-04-05 Andrew Cagney <cagney@redhat.com>
9899
9900 * frame.c (legacy_get_prev_frame): Link prev to next at the
9901 function start. Update comments.
9902
5e5592e6
AC
99032003-04-05 Andrew Cagney <cagney@redhat.com>
9904
9905 * frame.c (get_frame_id): Update comment.
9906 (legacy_get_prev_frame): Update comment.
9907 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9908 * gdbarch.h: Regenerate.
9909 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9910 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9911
6fba5002
AC
99122003-04-05 Andrew Cagney <cagney@redhat.com>
9913
9914 * stack.c (print_frame_info): Use get_frame_pc.
9915
7df05f2b
AC
99162003-04-04 Andrew Cagney <cagney@redhat.com>
9917
9918 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9919 the frame's type from the unwinder.
9920 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9921 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9922 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9923 (get_frame_base_address): Use get_frame_type.
9924 (get_frame_locals_address, get_frame_args_address): Ditto.
9925 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9926 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9927 (struct frame_info): Add comment explaining why the frame contains
9928 a "type" field.
9929 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9930 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9931 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9932 NORMAL_FRAME.
9933 * frame-unwind.h: Include "frame.h".
9934 (struct frame_unwind): Add "type" field.
9935 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 9936
11889732
AC
99372003-04-04 Andrew Cagney <cagney@redhat.com>
9938
9939 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9940 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9941 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9942 get_frame_base.
9943 (d10v_unwind_dummy_id): Use frame_id_build.
9944 * frame.c (find_frame_sal): Use get_frame_pc.
9945 (create_new_frame): Use deprecated_update_frame_pc_hack and
9946 deprecated_update_frame_base_hack.
9947 (create_sentinel_frame): Add comment about ->pc going away.
9948 (get_prev_frame): Add comment about ->pc going away.
9949 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9950 frame_id_build, deprecated_update_frame_pc_hack and
9951 deprecated_update_frame_base_hack.
9952 (select_frame): Use get_frame_pc.
9953 (legacy_saved_regs_this_id): Use frame_id_build.
9954
50c46a0d
EZ
99552003-04-04 Elena Zannoni <ezannoni@redhat.com>
9956
fbe586ae
RH
9957 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9958 signed integer case.
9959 (classify_argument): Handle enumerations and references.
50c46a0d 9960
50bbdbd9
AC
99612003-04-04 Andrew Cagney <cagney@redhat.com>
9962
9963 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9964 ID to NULL.
9965
36018d2e
AF
99662003-04-01 Adam Fedor <fedor@gnu.org>
9967
9968 * gdb/objc-lang.c (selectors_info): Replace calls to
9969 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9970 SYMBOL_NATURAL_NAME.
9971 (classes_info, find_methods): Likewise.
9972
35cec841
KB
99732003-04-03 Kevin Buettner <kevinb@redhat.com>
9974
9975 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9976 ``mach'' to the value determined by bfd_default_set_arch_mach().
9977
43136899
BR
99782003-04-02 Bob Rossi <bob_rossi@cox.net>
9979
9980 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9981 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9982 (mi-cmd-file.o): Update dependencies.
9983
040b99fd
KB
99842003-04-01 Kevin Buettner <kevinb@redhat.com>
9985
9986 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9987 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9988
9a3d7dfd
AF
99892003-04-01 Adam Fedor <fedor@gnu.org>
9990
9991 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9992 * language.h (struct language_defn): Add la_demangle.
9993 (language_demangle): Declare.
9994 * language.c (language_demangle): New function.
9995 (unk_lang_demangle): Likewise.
9996 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 9997 Add ukn_lang_demangle.
9a3d7dfd 9998 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 9999 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
10000 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10001 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10002 * jv-lang.c (java_demangle): New function
10003 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
10004 * objc-lang.c (objc_demangle): Add options argument
10005 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
10006 * maint.c (maintenance_demangle): Replace switch with
10007 call to language_demangle.
10008 * utils.c (fprintf_symbol_filtered): Likewise.
10009
5e074003
AC
100102003-04-01 Andrew Cagney <cagney@redhat.com>
10011
10012 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10013 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10014 PRINT_TYPELESS_INTEGER.
10015 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10016 PUSH_RETURN_ADDRESS.
10017
270cb5d6
AC
100182003-04-01 Andrew Cagney <cagney@redhat.com>
10019
10020 * Makefile.in (d10v-tdep.o): Update dependencies.
10021 * d10v-tdep.c: Include "frame-base.h".
10022 (d10v_frame_unwind): Make constant.
10023 (d10v_frame_base_address): New function.
10024 (d10v_frame_base): New variable.
10025 (d10v_gdbarch_init): Set frame_base default.
10026 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10027 comment for base.
10028 (d10v_frame_unwind_cache): Set and use "prev_sp".
10029 (d10v_frame_this_id): Use the previous frame's inner most stack
10030 address and this frame's func address for the frame ID. Use
10031 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 10032
6bfb3e36
AC
100332003-04-01 Andrew Cagney <cagney@redhat.com>
10034
10035 * frame.h (get_frame_locals_address, get_frame_args_address):
10036 Refer to the base address, instead of the address of the first
10037 local or parameter.
8ffd9b1b 10038
da62e633
AC
100392003-04-01 Andrew Cagney <cagney@redhat.com>
10040
10041 Add frame debug info addresses:
10042 * frame-base.c: New file.
10043 * frame-base.h: New file.
10044 * frame.h (struct frame_base): Add opaque declaration.
10045 (get_frame_base): Update comment.
10046 (get_frame_base_address): Declare.
10047 (get_frame_locals_address): Declare.
10048 (get_frame_args_address): Declare.
10049 (struct frame_info): Add "base" and "base_cache". Update
10050 comments on the unwinder.
10051 * frame.c: Include "frame-base.h".
10052 (get_frame_locals_address): New function.
10053 (get_frame_base_address): New function.
10054 (get_frame_args_address): New function.
10055 * findvar.c (read_var_value): Use get_frame_locals_address and
10056 get_frame_args_address.
10057 * stack.c (frame_info): Use get_frame_locals_address and
10058 get_frame_args_address.
10059 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10060 moved to "frame-base.c".
10061 * printcmd.c (print_frame_nameless_args): Ditto.
10062 * symtab.h (address_class): Update comments.
10063 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10064 get_frame_base_address.
10065 * dwarf2expr.c (execute_stack_op): Ditto.
10066 * Makefile.in (frame_base_h): Define.
10067 (frame.o): Update dependencies.
10068 (frame-base.o): Add dependencies.
10069 (SFILES): Add frame-base.c.
10070 (COMMON_OBS): Add frame-base.o.
10071
3d30e9c2
AC
100722003-04-01 Andrew Cagney <cagney@redhat.com>
10073
10074 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10075 CALL_DUMMY_LENGTH): Ditto.
10076 * gdbarch.c: Re-generate.
10077 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10078 (CALL_DUMMY_LENGTH): Delete macro.
10079 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10080 * arm-tdep.c (arm_gdbarch_init): Ditto.
10081 * avr-tdep.c (avr_gdbarch_init): Ditto.
10082 * cris-tdep.c (cris_gdbarch_init): Ditto.
10083 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10084 * frv-tdep.c (frv_gdbarch_init): Ditto.
10085 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10086 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10087 * i386-tdep.c (i386_gdbarch_init): Ditto.
10088 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10089 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10090 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10091 * mips-tdep.c (mips_gdbarch_init): Ditto.
10092 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10093 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10094 * s390-tdep.c (s390_gdbarch_init): Ditto.
10095 * sh-tdep.c (sh_gdbarch_init): Ditto.
10096 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10097 * v850-tdep.c (v850_gdbarch_init): Ditto.
10098 * vax-tdep.c (vax_gdbarch_init): Ditto.
10099 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10100
ce0c7262
CV
101012003-04-01 Corinna Vinschen <vinschen@redhat.com>
10102
10103 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10104
73dd234f
AC
101052003-04-01 Andrew Cagney <cagney@redhat.com>
10106
10107 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10108 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10109 * gdbarch.h, gdbarch.c: Re-generate.
10110 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10111 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10112 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10113 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10114 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10115 * infcmd.c (run_stack_dummy): Simplify assuming
10116 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10117 * infrun.c (handle_inferior_event): Ditto.
10118 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10119 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10120 * arm-tdep.c (arm_gdbarch_init): Ditto.
10121 * avr-tdep.c (avr_gdbarch_init): Ditto.
10122 * cris-tdep.c (cris_gdbarch_init): Ditto.
10123 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10124 * frv-tdep.c (frv_gdbarch_init): Ditto.
10125 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10126 * i386-tdep.c (i386_gdbarch_init): Ditto.
10127 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10128 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10129 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10130 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10131 * mips-tdep.c (mips_gdbarch_init): Ditto.
10132 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10133 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10134 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10135 * s390-tdep.c (s390_gdbarch_init): Ditto.
10136 * sh-tdep.c (sh_gdbarch_init): Ditto.
10137 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10138 * v850-tdep.c (v850_gdbarch_init): Ditto.
10139 * vax-tdep.c (vax_gdbarch_init): Ditto.
10140 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10141
97606a13
DJ
101422003-04-01 Daniel Jacobowitz <drow@mvista.com>
10143
10144 * symfile.c (symfile_relocate_debug_section): Update call to
10145 bfd_simple_get_relocated_section_contents.
10146
e8ab51f7
AC
101472003-03-31 Andrew Cagney <cagney@redhat.com>
10148
10149 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10150 * gdbarch.h, gdbarch.c: Regenerate.
10151 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10152 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10153 available.
10154 * frame.h (generic_fix_call_dummy): Delete declaration.
10155 * dummy-frame.h: Update comment.
10156 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10157 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10158 fix_call_dummy.
10159 * sh-tdep.c (sh_gdbarch_init): Ditto.
10160 * s390-tdep.c (s390_gdbarch_init): Ditto.
10161 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10162 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10163 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10164 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10165 * i386-tdep.c (i386_gdbarch_init): Ditto.
10166 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10167 * frv-tdep.c (frv_gdbarch_init): Ditto.
10168 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10169 * cris-tdep.c (cris_gdbarch_init): Ditto.
10170 * avr-tdep.c (avr_gdbarch_init): Ditto.
10171 * arm-tdep.c (arm_gdbarch_init): Ditto.
10172
018d1b48
JB
101732003-03-31 J. Brobecker <brobecker@gnat.com>
10174
10175 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10176 (INIT_FRAME_AP): Likewise.
10177 (EXTRA_FRAME_INFO): Likewise.
10178
e9a2674e
AC
101792003-03-31 Andrew Cagney <cagney@redhat.com>
10180
10181 * gdbarch.sh: Include "symfile.h".
10182 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10183 * gdbarch.h, gdbarch.c: Re-generate.
10184 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10185 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10186 call_dummy_address, the default is at entry_point_address.
10187 * v850-tdep.c (v850_gdbarch_init): Ditto.
10188 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10189 * sh-tdep.c (sh_gdbarch_init): Ditto.
10190 * s390-tdep.c (s390_gdbarch_init): Ditto.
10191 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10192 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10193 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10194 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10195 * i386-tdep.c (i386_gdbarch_init): Ditto.
10196 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10197 * frv-tdep.c (frv_gdbarch_init): Ditto.
10198 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10199 * cris-tdep.c (cris_gdbarch_init): Ditto.
10200 * arm-tdep.c (arm_gdbarch_init): Ditto.
10201
e8a8712a
AC
102022003-03-31 Andrew Cagney <cagney@redhat.com>
10203
10204 * gdbarch.sh (CALL_DUMMY_P): Delete.
10205 * gdbarch.h, gdbarch.c: Re-generate.
10206 * inferior.h (CALL_DUMMY_P): Delete macro.
10207 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10208 * vax-tdep.c (vax_gdbarch_init): Update.
10209 * v850-tdep.c (v850_gdbarch_init): Update.
10210 * sparc-tdep.c (sparc_gdbarch_init): Update.
10211 * sh-tdep.c (sh_gdbarch_init): Update.
10212 * s390-tdep.c (s390_gdbarch_init): Update.
10213 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10214 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10215 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10216 * mips-tdep.c (mips_gdbarch_init): Update.
10217 * mcore-tdep.c (mcore_gdbarch_init): Update.
10218 * m68k-tdep.c (m68k_gdbarch_init): Update.
10219 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10220 * ia64-tdep.c (ia64_gdbarch_init): Update.
10221 * i386-tdep.c (i386_gdbarch_init): Update.
10222 * h8300-tdep.c (h8300_gdbarch_init): Update.
10223 * frv-tdep.c (frv_gdbarch_init): Update.
10224 * d10v-tdep.c (d10v_gdbarch_init): Update.
10225 * cris-tdep.c (cris_gdbarch_init): Update.
10226 * breakpoint.c (deprecated_frame_in_dummy): Update.
10227 * avr-tdep.c (avr_gdbarch_init): Update.
10228 * alpha-tdep.c (alpha_gdbarch_init): Update.
10229 * arm-tdep.c (arm_gdbarch_init): Update.
10230 * dummy-frame.c (dummy_frame_this_id): Update comments.
10231 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10232 * frame.c (legacy_get_prev_frame): Ditto.
10233 * valops.c (call_function_by_hand): Delete function.
10234 (hand_function_call): Rename to call_function_by_hand
10235
ed234cf8
AC
102362003-03-30 Andrew Cagney <cagney@redhat.com>
10237
10238 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 10239 * value.h (struct value): Update comment.
ed234cf8 10240
06c77151
AC
102412003-03-30 Andrew Cagney <cagney@redhat.com>
10242
6c2b5168
AC
10243 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10244 D10V_FP_REGNUM.
10245 (d10v_gdbarch_init): Do not set fp_regnum.
10246
06c77151
AC
10247 * frame.c (get_frame_base): Force ID initialization.
10248 (get_prev_frame): Move computation of the frame ID from here ...
10249 (get_frame_id): ... to here.
10250 (legacy_get_prev_frame): Mark the frame ID as valid.
10251 * frame.h (struct frame_info): Add field "id_p".
10252
97a1a11c
MK
102532003-03-30 Mark Kettenis <kettenis@gnu.org>
10254
10255 * i386-tdep.c (i386_store_struct_return): Removed.
10256 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10257
6c0e89ed
AC
102582003-03-30 Andrew Cagney <cagney@redhat.com>
10259
10260 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10261 * gdbarch.h, gdbarch.c: Regenerate.
10262 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10263 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10264 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10265 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10266 * i386-tdep.c (i386_gdbarch_init): Ditto.
10267 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10268 * cris-tdep.c (cris_gdbarch_init): Ditto.
10269 * vax-tdep.c (vax_gdbarch_init): Ditto.
10270 * s390-tdep.c (s390_gdbarch_init): Ditto.
10271 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10272 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10273 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10274 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10275 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10276 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10277 * sparc-tdep.c (sparc_gdbarch_init): Update.
10278 * sh-tdep.c (sh_gdbarch_init): Update.
10279 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10280 * mips-tdep.c (mips_gdbarch_init): Update.
10281 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10282 * ia64-tdep.c (ia64_gdbarch_init): Update.
10283 * frv-tdep.c (frv_gdbarch_init): Update.
10284 * avr-tdep.c (avr_gdbarch_init): Update.
10285 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10286 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10287 instead of when push_dummy_call is not available.
8ffd9b1b 10288
f7dd6af2
AC
102892003-03-30 Andrew Cagney <cagney@redhat.com>
10290
10291 * infttrace.c: Include "gdbthread.h".
10292 (parent_attach_all): Fix function signature.
10293 (call_ptrace): Update call.
10294 * Makefile.in (infttrace.o): Update dependencies.
10295
28f617b3
AC
102962003-03-30 Andrew Cagney <cagney@redhat.com>
10297
10298 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10299 PUSH_RETURN_ADDRESS.
10300 * gdbarch.h, gdbarch.c: Regenerate.
10301 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10302 * x86-64-tdep.c (x86_64_init_abi): Update.
10303 * v850-tdep.c (v850_gdbarch_init): Update.
10304 * sparc-tdep.c (sparc_gdbarch_init): Update.
10305 * sh-tdep.c (sh_gdbarch_init): Update.
10306 * s390-tdep.c (s390_gdbarch_init): Update.
10307 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10308 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10309 * mips-tdep.c (mips_gdbarch_init): Update.
10310 * mcore-tdep.c (mcore_gdbarch_init): Update.
10311 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10312 * ia64-tdep.c (ia64_gdbarch_init): Update.
10313 * i386-tdep.c (i386_gdbarch_init): Update.
10314 * h8300-tdep.c (h8300_gdbarch_init): Update.
10315 * frv-tdep.c (frv_gdbarch_init): Update.
10316 * cris-tdep.c (cris_gdbarch_init): Update.
10317 * avr-tdep.c (avr_gdbarch_init): Update.
10318 * arm-tdep.c (arm_gdbarch_init): Update.
10319 * valops.c (hand_function_call): Update.
10320
4d628cd7
AC
103212003-03-29 Andrew Cagney <cagney@redhat.com>
10322
10323 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10324 sizeof_call_dummy_words.
10325 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10326 define.
10327 * gdbarch.h: Regenerate.
8ffd9b1b 10328
65e82032
AC
103292003-03-29 Andrew Cagney <cagney@redhat.com>
10330
10331 * infttrace.h: New file.
10332 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10333 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10334 (hpread_read_doc_function_type): Detect an initialized type1.
10335 (hpread_quick_traverse): Initialize mod_name_string.
10336 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10337 (som_solib_get_solib_by_pc): Declare.
10338 (so_lib_thread_start_addr): Declare.
10339 (no_shared_libraries): Declare.
10340 * somread.c (init_import_symbols): Make static. Add forward
10341 declaration.
10342 * config/pa/nm-hppah.h: Include "infttrace.h" for
10343 parent_attach_all.
10344 (hppa_insert_hw_watchpoint): Declare.
10345 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10346 * hppah-nat.c: Include "gdb_string.h".
10347 (parent_attach_all): Delete extern declaration, moved to
10348 "infttrace.h".
10349 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10350 int.
10351 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10352 * Makefile.in (infttrace_h): Define.
10353 (hpread.o): Update dependencies.
10354 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10355 * hppa-hpux-tdep.c: Include "gdb_string.h".
10356 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10357 * infrun.c (handle_inferior_event): Always initialize
10358 stepped_after_stopped_by_watchpoint. Add default and remove
10359 fallthrough in switch statement.
10360 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10361 parameter to int.
10362 (hppa_remove_hw_watchpoint): Ditto.
10363
2c3bbe77
AC
103642003-03-29 Andrew Cagney <cagney@redhat.com>
10365
10366 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10367 offset.
10368
2dd604e7
RE
103692003-03-29 Richard Earnshaw <rearnsha@arm.com>
10370
10371 * arm-tdep.c (arm_push_arguments): Delete.
10372 (struct stack_item): New type.
10373 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10374 (arm_store_struct_return): Delte.
10375 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10376 arm_push_arguments or arm_store_struct_return.
10377
e8933a55
AC
103782003-03-28 Andrew Cagney <cagney@redhat.com>
10379
10380 * Makefile.in (d10v-tdep.o): Update dependencies.
10381 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10382 * d10v-tdep.c: Include "remote.h".
10383 (target_resume_hook): Delete extern declaration.
10384 (target_wait_loop_hook): Ditto.
10385 (tdisassemble_command): Eliminate assignment in "if" conditional.
10386 (d10v_ts2_register_sim_regno): Eliminate call to
10387 legacy_register_sim_regno.
10388 (d10v_ts3_register_sim_regno): Ditto.
10389
6949171e
JJ
103902003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10391
10392 * thread.c: Reindented.
10393 * lin-lwp.c: Ditto.
10394 * linux-proc.c: Ditto.
10395
98c7071f
BR
103962003-03-28 Bob Rossi <bob_rossi@cox.net>
10397
fbe586ae 10398 * MAINTAINERS (write after approval): Add myself.
98c7071f 10399
5edc9ca6
TR
104002003-03-27 Theodore A. Roth <troth@openavr.org>
10401
10402 * objc-exp.y: Add missing semi-colons.
10403
378bfd1b
AC
104042003-03-27 Andrew Cagney <cagney@redhat.com>
10405
10406 * regcache.c (write_sp): Delete function and references.
10407 * inferior.h (write_sp): Delete declaration.
10408 * valops.c (hand_function_call): Replace write_sp with
10409 TARGET_WRITE_SP.
10410 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10411 (sparc_pop_frame): Ditto.
8ffd9b1b 10412
56056df7
AC
104132003-03-27 Andrew Cagney <cagney@redhat.com>
10414
10415 * NEWS: Mention removal of support for hppa*-*-bsd* and
10416 hppa*-*-osf* natives, and hppa*-*-pro* target.
10417 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10418 * config/pa/xm-pa.h: Obsolete file.
10419 * config/pa/xm-hppab.h: Obsolete file.
10420 * config/pa/nm-hppab.h: Obsolete file.
10421 * config/pa/tm-hppab.h: Obsolete file.
10422 * config/pa/tm-hppao.h: Obsolete file.
10423 * config/pa/nm-hppao.h: Obsolete file.
10424 * config/pa/tm-pro.h: Obsolete file.
10425 * config/pa/hppaosf.mt: Obsolete file.
10426 * config/pa/hppaosf.mh: Obsolete file.
10427 * config/pa/hppapro.mt: Obsolete file.
10428 * config/pa/hppabsd.mt: Obsolete file.
10429 * config/pa/hppabsd.mh: Obsolete file.
10430 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10431 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10432 hppa*-*-osf*.
10433
5873a88d
AC
104342003-03-27 Andrew Cagney <cagney@redhat.com>
10435
10436 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10437 push_arguments. Don't set push_return_address or write_sp.
10438 (d10v_push_dummy_call): Replace d10v_push_arguments.
10439 (d10v_push_return_address, d10v_write_sp): Delete function,
10440 handled by push_dummy_call.
10441
b81774d8
AC
104422003-03-26 Andrew Cagney <cagney@redhat.com>
10443
10444 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10445 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10446 regcache and dummy_addr parameters.
10447 * gdbarch.h, gdbarch.c: Re-generate.
10448 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10449 available; assume it will handle stack alignment and return
10450 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10451 legacy_push_arguments.
10452 (legacy_push_arguments): Rename default_push_arguments.
10453 * value.h (legacy_push_arguments): Rename default_push_arguments.
10454 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10455 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10456 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10457 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10458 * config/i386/tm-symmetry.h: Update.
10459 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10460 * x86-64-tdep.c (x86_64_init_abi): Update.
10461 * v850-tdep.c (v850_gdbarch_init): Update.
10462 * sparc-tdep.c (sparc_gdbarch_init): Update.
10463 * sh-tdep.c (sh_gdbarch_init): Update.
10464 * s390-tdep.c (s390_gdbarch_init): Update.
10465 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10466 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10467 * mips-tdep.c (mips_gdbarch_init): Update.
10468 * mcore-tdep.c (mcore_gdbarch_init): Update.
10469 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10470 * ia64-tdep.c (ia64_gdbarch_init): Update.
10471 * i386-tdep.c (i386_gdbarch_init): Update.
10472 * hppa-tdep.c (hppa_gdbarch_init): Update.
10473 * h8300-tdep.c (h8300_gdbarch_init): Update.
10474 * frv-tdep.c (frv_gdbarch_init): Update.
10475 * d10v-tdep.c (d10v_gdbarch_init): Update.
10476 * cris-tdep.c (cris_gdbarch_init): Update.
10477 * avr-tdep.c (avr_gdbarch_init): Update.
10478 * arm-tdep.c (arm_gdbarch_init): Update.
10479 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10480 * alpha-tdep.c (alpha_gdbarch_init): Update.
10481
f541410f
DJ
104822003-03-26 Daniel Jacobowitz <drow@mvista.com>
10483
10484 * signals/signals.c (do_target_signal_to_host): Correct realtime
10485 signal range test.
10486
69f567ae
DJ
104872003-03-26 Daniel Jacobowitz <drow@mvista.com>
10488
10489 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10490 (struct sal_chain, map_catch_names): Remove.
10491 (catch_exception_command_1): Don't call
10492 handle_gnu_4_16_catch_command.
10493
d5d14a5a
DJ
104942003-03-26 Daniel Jacobowitz <drow@mvista.com>
10495
10496 From Mark Dettinger <dettinge@de.ibm.com>:
10497 * dwarf2cfi.c (read_2u): Increment pointer by two.
10498
bdd73e22
DJ
104992003-03-26 Daniel Jacobowitz <drow@mvista.com>
10500
10501 * signals/signals.c: Fix typos in last change.
10502
960cb555
DJ
105032003-03-26 Daniel Jacobowitz <drow@mvista.com>
10504
10505 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10506 not already defined. Use __SIGRTMIN if available.
10507 (target_signal_from_host): Remove SIGRTMIN block.
10508 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10509 the signal is within the realtime range.
10510
f636b87d
AF
105112003-03-25 Adam Fedor <fedor@gnu.org>
10512
10513 * Makefile.in (infrun.o): Add $(language_h)
10514 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10515 for language specific trampolines.
10516 * language.h (struct language_defn): Add skip_trampoline.
10517 (skip_language_trampoline): Declare.
10518 * language.c (unk_lang_trampoline, skip_language_trampoline):
10519 New functions.
10520 (unknown_language_defn, auto_language_defn, local_language_defn):
10521 Add ukn_lang_trampoline.
10522 * ada-lang.c (ada_language_defn): Add NULL for language
10523 specific skip_trampoline.
10524 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10525 scm-lang.c: Likewise.
10526 * objc-lang.c (objc_skip_trampoline): New function.
10527 (objc_language_defn): Add objc_skip_trampoline.
10528
28f617b3 105292003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
10530
10531 * frame.c (get_prev_frame): Delay validating a frame's ID -
10532 non-NULL, didn't go backwards - until an attempt to unwind it to
10533 the previous frame.
10534
f933a9c5
AC
105352003-03-25 Andrew Cagney <cagney@redhat.com>
10536
10537 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10538 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10539 * gdbarch.h, gdbarch.c: Re-generate.
10540 * config/sparc/tm-sparc.h
10541 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10542 * sparc-tdep.c (sparc_gdbarch_init): Set
10543 deprecated_extra_stack_alignment_needed.
10544 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10545 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10546 extra_stack_alignment_needed.
10547 * v850-tdep.c (v850_gdbarch_init): Ditto.
10548 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10549 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10550 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10551 * cris-tdep.c (cris_gdbarch_init): Ditto.
10552 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10553 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 10554
4183d812
AC
105552003-03-25 Andrew Cagney <cagney@redhat.com>
10556
10557 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10558 STORE_STRUCT_RETURN.
10559 * gdbarch.h, gdbarch.c: Regenerate.
10560 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10561 (d10v_push_arguments): Set the struct return register.
10562 (d10v_gdbarch_init): Update.
10563 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10564 * x86-64-tdep.c (x86_64_init_abi): Update.
10565 * vax-tdep.c (vax_gdbarch_init): Update.
10566 * v850-tdep.c (v850_gdbarch_init): Update.
10567 * sparc-tdep.c (sparc_gdbarch_init): Update.
10568 * sh-tdep.c (sh_gdbarch_init): Update.
10569 * s390-tdep.c (s390_gdbarch_init): Update.
10570 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10571 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10572 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10573 * mips-tdep.c (mips_gdbarch_init): Update.
10574 * mcore-tdep.c (mcore_gdbarch_init): Update.
10575 * m68k-tdep.c (m68k_gdbarch_init): Update.
10576 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10577 * ia64-tdep.c (ia64_gdbarch_init): Update.
10578 * i386-tdep.c (i386_gdbarch_init): Update.
10579 * hppa-tdep.c (hppa_gdbarch_init): Update.
10580 * h8300-tdep.c (h8300_gdbarch_init): Update.
10581 * frv-tdep.c (frv_gdbarch_init): Update.
10582 * cris-tdep.c (cris_gdbarch_init): Update.
10583 * avr-tdep.c (avr_gdbarch_init): Update.
10584 * arm-tdep.c (arm_gdbarch_init): Update.
10585 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10586
1bf6d5cc
AC
105872003-03-25 Andrew Cagney <cagney@redhat.com>
10588
10589 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10590 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10591 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10592 * gdbarch.h, gdbarch.c: Regenerate.
10593 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10594 call_dummy_stack_adjust_p.
10595 * vax-tdep.c (vax_gdbarch_init): Ditto.
10596 * v850-tdep.c (v850_gdbarch_init): Ditto.
10597 * sh-tdep.c (sh_gdbarch_init): Ditto.
10598 * s390-tdep.c (s390_gdbarch_init): Ditto.
10599 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10600 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10601 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10602 * mips-tdep.c (mips_gdbarch_init): Ditto.
10603 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10604 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10605 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10606 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10607 * i386-tdep.c (i386_gdbarch_init): Ditto.
10608 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10609 * frv-tdep.c (frv_gdbarch_init): Ditto.
10610 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10611 * cris-tdep.c (cris_gdbarch_init): Ditto.
10612 * avr-tdep.c (avr_gdbarch_init): Ditto.
10613 * arm-tdep.c (arm_gdbarch_init): Ditto.
10614 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10615 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10616 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10617 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10618 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10619 call_dummy_stack_adjust_p.
10620 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10621 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10622 * sparc-tdep.c (sparc32_push_arguments): Update.
10623 * valops.c (hand_function_call): Update.
10624
71c08af0
CV
106252003-03-25 Corinna Vinschen <vinschen@redhat.com>
10626
10627 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10628 set_gdbarch_char_signed.
10629
30757f90
RE
106302003-03-25 Richard Earnshaw <rearnsha@arm.com>
10631
10632 PR cli/548
10633 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10634
03d48a7d
RE
106352003-03-25 Richard Earnshaw <rearnsha@arm.com>
10636
10637 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10638 (_initialize_arm_tdep): Don't set tm_print_insn.
10639
2cf6873c
AF
106402003-03-24 Adam Fedor <fedor@gnu.org>
10641
10642 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10643 * objc-lang.h: Add multiple inclusion protection.
10644 (start_msglist, add_msglist, end_msglist): Additional declarations.
10645
17c0759e
RE
106462003-03-24 Richard Earnshaw <rearnsha@arm.com>
10647
10648 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10649 value was renamed to ARM_FLOAT_SOFT_FPA.
10650
618ce49f
AC
106512003-03-23 Andrew Cagney <cagney@redhat.com>
10652
10653 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10654 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10655 * gdbarch.h, gdbarch.c: Regenerate.
10656 * valops.c (hand_function_call): Update.
10657 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10658 * frame.c (legacy_saved_regs_this_id): Update.
10659 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10660 * dummy-frame.h: Update.
10661 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10662 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10663 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10664 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10665 * config/m68k/tm-sun3.h: Update.
10666 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10667 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10668 * x86-64-tdep.c (x86_64_init_abi): Update.
10669 * vax-tdep.c (vax_gdbarch_init): Update.
10670 * v850-tdep.c (v850_gdbarch_init): Update.
10671 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10672 * sh-tdep.c (sh_gdbarch_init): Update.
10673 * s390-tdep.c (s390_gdbarch_init): Update.
10674 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10675 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10676 (frame_get_saved_regs): Update.
10677 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10678 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10679 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10680 * mips-tdep.c (mips_gdbarch_init): Update.
10681 * mcore-tdep.c (mcore_gdbarch_init): Update.
10682 * m68k-tdep.c (m68k_gdbarch_init): Update.
10683 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10684 * ia64-tdep.c (ia64_gdbarch_init): Update.
10685 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10686 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10687 (i386_interix_back_one_frame): Update.
10688 * hppa-tdep.c (hppa_gdbarch_init): Update.
10689 (hppa_init_extra_frame_info): Update.
10690 * h8300-tdep.c (h8300_gdbarch_init): Update.
10691 * frv-tdep.c (frv_gdbarch_init): Update.
10692 * cris-tdep.c (cris_gdbarch_init): Update.
10693 * avr-tdep.c (avr_gdbarch_init): Update.
10694 * arm-tdep.c (arm_gdbarch_init): Update.
10695 * alpha-tdep.c (alpha_gdbarch_init): Update.
10696
fd50bc42
RE
106972003-03-22 Richard Earnshaw <rearnsha@arm.com>
10698
10699 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10700 (arm_get_fp_model): Declare.
10701 * arm-tdep.c (fp_model_strings): New string array.
10702 (arm_fp_model, current_fp_model): New variables.
10703 (arm_get_fp_model): New function.
10704 (arm_set_fp): New function.
10705 (set_fp_model_sfunc): New function.
10706 (show_fp_model): New function.
10707 (_initialize_arm_tdep): Add new command to set/show the FPU.
10708 (arm_extract_return_value): Use arm_get_fp_model.
10709 (arm_store_return_value): Likewise.
10710 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10711 to initialize the floating-point data types.
10712 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10713 model is FPA.
10714
26304000
RE
107152003-03-22 Richard Earnshaw <rearnsha@arm.com>
10716
10717 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10718 the current setting of each value.
10719 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 10720 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
10721 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10722 commands and add new version as subcommands of "set/show arm".
10723
afd7eef0
RE
107242003-03-22 Richard Earnshaw <rearnsha@arm.com>
10725
10726 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10727 (set_arm_command, show_arm_command): New functions.
10728 (_initialize_arm_tdep): Add them.
10729 (num_disassembly_options): Renamed from num_flavor_options.
10730 (valid_disassembly_styles): Renamed from valid_flavors.
10731 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 10732 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
10733 set_disassembly_flavor_sfunc.
10734 (set_disassembly_style): Renamed from set_disassembly_flavor.
10735 (arm_othernames): Updated.
10736 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10737 command. Add "set/show arm disassembly" commands. Deprecate
10738 "othernames" command.
10739
299a7944
RE
107402003-03-22 Richard Earnshaw <rearnsha@arm.com>
10741
10742 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10743 (arm-tdep.o): Depend on elf_arm_h.
10744
c1dac9e6
RE
107452003-03-22 Richard Earnshaw <rearnsha@arm.com>
10746
10747 * Makefile.in (coff_internal_h): Define.
10748 (arm-tdep.o): Update dependencies.
10749
2702d96c
RE
107502003-03-22 Richard Earnshaw <rearnsha@arm.com>
10751
10752 * arm-tdep.c (prologue_cache): Delete.
10753 (check_prologue_cache, save_prologue_cache): Delete.
10754 (arm_scan_prologue): Don't check or update the prologue_cache.
10755 (arm_gdb_arch_init): Don't initialize it.
10756 (_initialize_arm_tdep): Likewise.
10757
27d5d74b
SC
107582003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10759
10760 * MAINTAINERS (tui): Maintainer of tui code.
10761
1762d96d
CV
107622003-03-21 Corinna Vinschen <vinschen@redhat.com>
10763
10764 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10765 (i386-cygwin-tdep.o): Add dependencies.
10766 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10767 * i386-cygwin-tdep.c: New file.
10768 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10769 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10770
4c2e2391
AC
107712003-03-20 Andrew Cagney <cagney@redhat.com>
10772
f20d38b7
AC
10773 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10774 (handle_inferior_event): Remove code calling
10775 DYNAMIC_TRAMPOLINE_NEXTPC.
10776
0022b738
AC
10777 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10778 already has a full path.
10779
864dbc90
AC
10780 * main.c (gdb_main): Return 1.
10781 (captured_main): Call error to report an invalid interpreter.
10782
4c2e2391
AC
10783 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10784 * alpha-osf1-tdep.c: Include "gdb_string.h".
10785
5ef7553b
JB
107862003-03-19 J. Brobecker <brobecker@gnat.com>
10787
10788 Continuing work to convert the hppa targets to multiarch partial.
10789
10790 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10791 method, now that hppa_push_dummy_frame has a conformant prototype.
10792 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10793 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10794 for the switch to multiarch partial.
10795
7bde8967
KB
107962003-03-19 Kevin Buettner <kevinb@redhat.com>
10797
10798 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10799 when iss is issNull.
10800
b006a9e9
KB
108012003-03-18 Kevin Buettner <kevinb@redhat.com>
10802
10803 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10804 NUM_REGS bounds check.
10805
5e2e9765
KB
108062003-03-18 Kevin Buettner <kevinb@redhat.com>
10807
10808 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10809 * mips-tdep.c (gdb_assert.h): Include.
10810 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10811 (mips_register_name): Handle integer registers explicitly. Add
10812 bounds checking.
10813 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10814 (mips_lsi33k_reg_names): Don't list integer registers; they're
10815 handled by mips_register_name() now.
10816 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10817 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10818 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10819 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10820 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10821
a2867626
AC
108222003-03-18 Andrew Cagney <cagney@redhat.com>
10823
10824 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10825 a void pointer.
10826 * gdbtypes.h (print_scalar_formatted): Update declaration.
10827 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10828
06600e06
JB
108292003-03-18 J. Brobecker <brobecker@gnat.com>
10830
10831 * infrun.c (observer.h): Add #include.
10832 (normal_stop): Add call to observer_notify_normal_stop.
10833 * Makefile.in (infrun.o): Add dependency on observer.h.
10834
7daf4f5b
JB
108352003-03-18 J. Brobecker <brobecker@gnat.com>
10836
10837 Continuing work to convert the hppa targets to multiarch partial.
10838 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10839 parameter. Reformat comment.
10840 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10841 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10842 to match new profile.
10843
3371ccc0
JB
108442003-03-18 J. Brobecker <brobecker@gnat.com>
10845
10846 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10847 appear to be working in any case.
10848
4fbe891e
JB
108492003-03-18 J. Brobecker <brobecker@gnat.com>
10850
10851 * observer.c (observer_test_first_observer): New static variable.
10852 (observer_test_second_observer): Likewise.
10853 (observer_test_third_observer): Likewise.
10854 (observer_test_first_notification_function): New static function.
10855 (observer_test_second_notification_function): Likewise.
10856 (observer_test_third_notification_function): Likewise.
10857
a7ff40e7
JB
108582003-03-17 J. Brobecker <brobecker@gnat.com>
10859
10860 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10861 * somsolib.c (gdb_assert.h): Likewise.
10862 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10863 (somsolib.o): Likewise.
10864
26ca4152
AC
108652003-03-17 Andrew Cagney <cagney@redhat.com>
10866
10867 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10868 BFD. Simplify setting of di.endian.
10869
0a613259
AC
108702003-03-17 Andrew Cagney <cagney@redhat.com>
10871
10872 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10873 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10874
10875 From Elena Zannoni <ezannoni@redhat.com>
10876 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10877 vector and floating-point parameters.
10878 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10879 convention.
10880 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10881
1132738f
FN
108822003-03-17 Fernando Nasser <fnasser@redhat.com>
10883
10884 * MAINTAINERS: Remove my name from several maintainership roles.
10885
6dc42492
AC
108862003-03-17 Andrew Cagney <cagney@redhat.com>
10887
10888 Fix frame off-by-one bug.
10889 * frame-unwind.h (frame_this_id_ftype): Replace
10890 frame_unwind_id_ftype.
10891 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10892 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10893 with "prev_register".
10894 * frame-unwind.c (frame_unwind_find_by_pc): Return
10895 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10896 comment.
10897 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10898 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10899 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10900 (dummy_frame_unwind): Update.
10901 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10902 sentinel_frame_register_unwind.
10903 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10904 (sentinel_frame_unwinder): Update.
10905 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10906 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10907 * frame.c (create_sentinel_frame): Update. Initialize
10908 "prologue_cache" instead of "unwind_cache".
10909 (frame_register_unwind): Call this frame's prev_register with the
10910 next frame and this frame's prologue cache.
10911 (get_prev_frame): Simplify. Always call prev frame's this_id with
10912 this frame and prev frame's prologue cache. Document that this
10913 call is shifted one to the left when compared to the
10914 frame_register_unwind call.
10915 (legacy_saved_regs_prev_register): Replace
10916 frame_saved_regs_register_unwind.
10917 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10918 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10919 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10920 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10921 (d10v_frame_unwind): Update.
10922 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10923 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10924 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10925 "saved_regs" with "this_saved_regs".
10926
efd710d6
AC
109272003-03-16 Andrew Cagney <cagney@redhat.com>
10928
10929 * frame.c (frame_pop): Don't call target_store_registers. Fix
10930 problem reported by Mark Kettenis.
10931
4e259f09
MK
109322003-03-16 Mark Kettenis <kettenis@gnu.org>
10933
10934 * i386-tdep.c (i386_register_type): Renamed from
10935 i386_register_virtual_type. Adjust function signature.
10936 (i386_gdbarch_init): Set register_type instead of
10937 deprecated_max_register_raw_size,
10938 deprecated_max_register_virtual_size and register_virtual_type.
10939
055bb976
AC
109402003-03-14 Andrew Cagney <cagney@redhat.com>
10941
10942 * frame.c (get_prev_frame): When a legacy frame, always call
10943 legacy_get_prev_frame. Simplify unwind code using assumption that
10944 the unwinder is new.
10945 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10946 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10947 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10948
ac2adee5
AC
109492003-03-14 Andrew Cagney <cagney@redhat.com>
10950
10951 * frame.c (get_saved_register): Delete function.
10952 * frame.h (get_saved_register): Delete declaration.
10953 * xstormy16-tdep.c: Update comment.
10954 * regcache.h: Update comments.
10955 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10956 get_saved_register and extract_address, use
10957 frame_read_unsigned_register.
10958 (sparc_frame_saved_pc): Ditto.
10959 (sparc_get_saved_register): Instead of get_saved_register, use
10960 frame_register.
10961 (sparc_pop_frame): Ditto.
10962 * findvar.c: Update comments.
10963 (value_of_register): Call frame_register instead of
10964 get_saved_register.
10965 (value_from_register): Ditto.
10966 * config/sparc/tm-sparc.h: Update comment.
10967 * breakpoint.c: Update comment.
10968
129c1cd6
AC
109692003-03-14 Andrew Cagney <cagney@redhat.com>
10970
10971 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10972 GET_SAVED_REGISTER.
10973 * gdbarch.h, gdbarch.c: Re-generate.
10974 * frame.h: Update comments.
10975 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10976 * x86-64-tdep.c (x86_64_init_abi): Update.
10977 * sparc-tdep.c (sparc_gdbarch_init): Update.
10978 * sh-tdep.c (sh_gdbarch_init): Update.
10979 * mips-tdep.c (mips_gdbarch_init): Update.
10980 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10981 * cris-tdep.c (cris_gdbarch_init): Update.
10982 * ia64-tdep.c (ia64_gdbarch_init): Update.
10983 * frame.c (frame_register): Update.
10984 (get_saved_register): Update.
10985 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 10986
749b82f6
AC
109872003-03-13 Andrew Cagney <cagney@redhat.com>
10988
10989 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10990 * gdbarch.h, gdbarch.c: Regenerate.
10991 * valops.c (hand_function_call): Update comment.
10992 * stack.c (return_command): Update comment.
10993 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10994 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10995 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10996 * x86-64-tdep.c (x86_64_init_abi): Update.
10997 * vax-tdep.c (vax_gdbarch_init): Update.
10998 * v850-tdep.c (v850_gdbarch_init): Update.
10999 * sparc-tdep.c (sparc_gdbarch_init): Update.
11000 * sh-tdep.c (sh_gdbarch_init): Update.
11001 * s390-tdep.c (s390_gdbarch_init): Update.
11002 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11003 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11004 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11005 * mips-tdep.c (mips_gdbarch_init): Update.
11006 * mcore-tdep.c (mcore_gdbarch_init): Update.
11007 * m68k-tdep.c (m68k_gdbarch_init): Update.
11008 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11009 * ia64-tdep.c (ia64_gdbarch_init): Update.
11010 * i386-tdep.c (i386_gdbarch_init): Update.
11011 * hppa-tdep.c (hppa_gdbarch_init): Update.
11012 * h8300-tdep.c (h8300_gdbarch_init): Update.
11013 * frv-tdep.c (frv_gdbarch_init): Update.
11014 * cris-tdep.c (cris_gdbarch_init): Update.
11015 * avr-tdep.c (avr_gdbarch_init): Update.
11016 * arm-tdep.c (arm_gdbarch_init): Update.
11017 * alpha-tdep.c (alpha_gdbarch_init): Update.
11018
1594fa56
AC
110192003-03-13 Andrew Cagney <cagney@redhat.com>
11020
11021 * frame.c (legacy_frame_p): New function.
11022 (get_prev_frame): Use legacy_frame_p.
11023 * frame.h (legacy_frame_p): Declare.
11024
7717fda3
V
110252003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11026
fbe586ae 11027 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
11028 listing corrected.
11029
0c67cbe9
V
110302003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11031
fbe586ae 11032 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 11033
03febf99
AC
110342003-03-12 Andrew Cagney <cagney@redhat.com>
11035
11036 * frame.c (get_prev_frame): Rename the frame parameter to
11037 "this_frame".
11038 (get_next_frame, legacy_get_prev_frame): Ditto.
11039
0a1e1ca1
AC
110402003-03-12 Andrew Cagney <cagney@redhat.com>
11041
11042 * frame.c (get_current_frame): Check target_has_registers before
11043 checking target_has_stack.
11044 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11045 instead of deprecated_selected_frame.
11046 * findvar.c (value_of_register): Pass "frame", not
11047 deprecated_selected_frame, to value_of_builtin_reg.
11048
a66a9c23
AC
110492003-03-12 Andrew Cagney <cagney@redhat.com>
11050
11051 * regcache.c (regcache_cooked_write_signed): New function.
11052 (regcache_cooked_write_unsigned): New function.
11053 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11054 (regcache_cooked_read_signed): Fix regnum in range assertion.
11055 * regcache.h (regcache_cooked_write_signed): Declare.
11056 (regcache_cooked_write_unsigned): Declare.
11057
8bedc050
AC
110582003-03-12 Andrew Cagney <cagney@redhat.com>
11059
11060 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11061 * gdbarch.h, gdbarch.c: Re-generate.
11062 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11063 * x86-64-tdep.h: Update.
11064 * x86-64-tdep.c (x86_64_init_abi): Update.
11065 * v850-tdep.c (v850_gdbarch_init): Update.
11066 * sparc-tdep.c (sparc_gdbarch_init): Update.
11067 * sh-tdep.c (sh_gdbarch_init): Update.
11068 * s390-tdep.c (s390_gdbarch_init): Update.
11069 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11070 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11071 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11072 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11073 * mips-tdep.c (mips_gdbarch_init): Update.
11074 * mcore-tdep.c (mcore_gdbarch_init): Update.
11075 * m68k-tdep.c (m68k_gdbarch_init): Update.
11076 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11077 * ia64-tdep.c (ia64_gdbarch_init): Update.
11078 * i386-tdep.c (i386_gdbarch_init): Update.
11079 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11080 * hppa-tdep.c (hppa_gdbarch_init): Update.
11081 * h8300-tdep.c (h8300_gdbarch_init): Update.
11082 * frv-tdep.c (frv_gdbarch_init): Update.
11083 * cris-tdep.c (cris_gdbarch_init): Update.
11084 * avr-tdep.c (avr_gdbarch_init): Update.
11085 * arm-tdep.c (arm_gdbarch_init): Update.
11086 * alpha-tdep.c (alpha_gdbarch_init): Update.
11087 * sh-tdep.c (sh_init_extra_frame_info): Update.
11088 (sh64_init_extra_frame_info): Update.
11089 * ns32knbsd-nat.c (frame_num_args): Update.
11090 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11091 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11092 (xstormy16_frame_chain_valid): Update.
11093 * vax-tdep.c (vax_saved_pc_after_call): Update.
11094 * v850-tdep.c (v850_frame_chain): Update.
11095 (v850_pop_frame): Update.
11096 (v850_init_extra_frame_info): Update.
11097 * sparc-tdep.c (setup_arbitrary_frame): Update.
11098 * ns32k-tdep.c (umax_frame_num_args): Update.
11099 * s390-tdep.c (s390_pop_frame_regular): Update.
11100 * mn10300-tdep.c (mn10300_frame_chain): Update.
11101 (mn10300_pop_frame_regular): Update.
11102 (mn10300_init_extra_frame_info): Update.
11103 * mips-tdep.c (mips_init_frame_pc_first): Update.
11104 (mips_frame_chain): Update.
11105 (mips_pop_frame): Update.
11106 * mcore-tdep.c (mcore_frame_chain): Update.
11107 (mcore_pop_frame): Update.
11108 (mcore_init_extra_frame_info): Update.
11109 * arch-utils.c (init_frame_pc_default): Update.
11110 * m68k-tdep.c (isi_frame_num_args): Update.
11111 (delta68_frame_num_args): Update.
11112 (news_frame_num_args): Update.
11113 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11114 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11115 (alpha_frame_chain): Update.
11116 (alpha_pop_frame): Update.
11117 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11118 (hppa_init_extra_frame_info): Update.
11119 (hppa_frame_chain): Update.
11120 (hppa_frame_chain_valid): Update.
11121 * cris-tdep.c (cris_init_extra_frame_info): Update.
11122 * avr-tdep.c (avr_init_extra_frame_info): Update.
11123 * arm-tdep.c (arm_frame_chain_valid): Update.
11124 (arm_init_extra_frame_info): Update.
11125 (arm_pop_frame): Update.
11126 * frame.c (frame_pc_unwind): Update.
11127 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11128 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11129 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11130 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11131 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11132 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11133
7a25a7c1
AC
111342003-03-12 Andrew Cagney <cagney@redhat.com>
11135
11136 Eliminate the need for POP_FRAME.
11137 * frame.c (do_frame_unwind_register): New function.
11138 (frame_pop): When no POP_FRAME, pop the frame using register
11139 unwind and a scratch regcache.
11140 (frame_saved_regs_pop): Delete function.
11141 (trad_frame_unwinder): Update.
11142 * d10v-tdep.c (d10v_frame_pop): Delete function.
11143 (d10v_frame_unwind): Update.
11144 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11145 (sentinel_frame_unwinder): Update.
11146 * dummy-frame.c (dummy_frame_pop): Delete function.
11147 (dummy_frame_unwind): Update.
11148 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11149 (struct frame_unwind): Update.
11150
2f38ef89
KB
111512003-03-11 Kevin Buettner <kevinb@redhat.com>
11152
11153 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11154 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11155 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11156 Do range checks on register number obtained from debugging info.
11157 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11158 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11159 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11160 mapping function.
11161 (do_fp_register_row): Fix typo which caused double type to be
11162 used when attempting to unpack a float.
11163
552f4abf
JB
111642003-03-11 J. Brobecker <brobecker@gnat.com>
11165
11166 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11167
e0d2ae16
AC
111682003-03-11 Andrew Cagney <cagney@redhat.com>
11169
11170 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11171 frame. Problem found by Corinna Vinschen.
11172
ddbfdd06
PM
111732003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11174
11175 * doublest.c (floatformat_from_length): Accept also
11176 the real size of 'long double' type.
11177
088b2ddc 111782003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 11179
088b2ddc 11180 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
11181 * breakpoint.c (bpstat_copy): Copy the command lines as well
11182 as the old value, to match what is freed in bpstat_clear.
11183
f56f77c1
DC
111842003-03-10 David Carlton <carlton@math.stanford.edu>
11185
11186 * minsyms.c (add_minsym_to_hash_table): Replace
11187 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11188 (compare_minimal_symbols, compact_minimal_symbols)
11189 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11190 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11191 of DEPRECATED_SYMBOL_MATCHES_NAME.
11192 (lookup_minimal_symbol_solib_trampoline): Ditto.
11193
5602984a
AC
111942003-03-10 Andrew Cagney <cagney@redhat.com>
11195
11196 * regcache.h (regcache_cooked_read_ftype): Define.
11197 (regcache_save, regcache_restore): Add a cooked_read parameter.
11198 * regcache.c (regcache_save, regcache_restore): Update.
11199 (do_cooked_read): New function.
11200 (regcache_cpy): Pass do_cooked_read to regcache_save and
11201 regcache_restore.
11202
8bedc050
AC
112032003-03-10 Andrew Cagney <cagney@redhat.com>
11204
11205 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11206 * gdbarch.h, gdbarch.c: Re-generate.
11207 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11208 * x86-64-tdep.h: Update.
11209 * x86-64-tdep.c (x86_64_init_abi): Update.
11210 * v850-tdep.c (v850_gdbarch_init): Update.
11211 * sparc-tdep.c (sparc_gdbarch_init): Update.
11212 * sh-tdep.c (sh_gdbarch_init): Update.
11213 * s390-tdep.c (s390_gdbarch_init): Update.
11214 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11215 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11216 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11217 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11218 * mips-tdep.c (mips_gdbarch_init): Update.
11219 * mcore-tdep.c (mcore_gdbarch_init): Update.
11220 * m68k-tdep.c (m68k_gdbarch_init): Update.
11221 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11222 * ia64-tdep.c (ia64_gdbarch_init): Update.
11223 * i386-tdep.c (i386_gdbarch_init): Update.
11224 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11225 * hppa-tdep.c (hppa_gdbarch_init): Update.
11226 * h8300-tdep.c (h8300_gdbarch_init): Update.
11227 * frv-tdep.c (frv_gdbarch_init): Update.
11228 * cris-tdep.c (cris_gdbarch_init): Update.
11229 * avr-tdep.c (avr_gdbarch_init): Update.
11230 * arm-tdep.c (arm_gdbarch_init): Update.
11231 * alpha-tdep.c (alpha_gdbarch_init): Update.
11232 * sh-tdep.c (sh_init_extra_frame_info): Update.
11233 (sh64_init_extra_frame_info): Update.
11234 * ns32knbsd-nat.c (frame_num_args): Update.
11235 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11236 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11237 (xstormy16_frame_chain_valid): Update.
11238 * vax-tdep.c (vax_saved_pc_after_call): Update.
11239 * v850-tdep.c (v850_frame_chain): Update.
11240 (v850_pop_frame): Update.
11241 (v850_init_extra_frame_info): Update.
11242 * sparc-tdep.c (setup_arbitrary_frame): Update.
11243 * ns32k-tdep.c (umax_frame_num_args): Update.
11244 * s390-tdep.c (s390_pop_frame_regular): Update.
11245 * mn10300-tdep.c (mn10300_frame_chain): Update.
11246 (mn10300_pop_frame_regular): Update.
11247 (mn10300_init_extra_frame_info): Update.
11248 * mips-tdep.c (mips_init_frame_pc_first): Update.
11249 (mips_frame_chain): Update.
11250 (mips_pop_frame): Update.
11251 * mcore-tdep.c (mcore_frame_chain): Update.
11252 (mcore_pop_frame): Update.
11253 (mcore_init_extra_frame_info): Update.
11254 * arch-utils.c (init_frame_pc_default): Update.
11255 * m68k-tdep.c (isi_frame_num_args): Update.
11256 (delta68_frame_num_args): Update.
11257 (news_frame_num_args): Update.
11258 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11259 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11260 (alpha_frame_chain): Update.
11261 (alpha_pop_frame): Update.
11262 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11263 (hppa_init_extra_frame_info): Update.
11264 (hppa_frame_chain): Update.
11265 (hppa_frame_chain_valid): Update.
11266 * cris-tdep.c (cris_init_extra_frame_info): Update.
11267 * avr-tdep.c (avr_init_extra_frame_info): Update.
11268 * arm-tdep.c (arm_frame_chain_valid): Update.
11269 (arm_init_extra_frame_info): Update.
11270 (arm_pop_frame): Update.
11271 * frame.c (frame_pc_unwind): Update.
11272 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11273 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11274 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11275 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11276 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11277 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11278
12cc2063
AC
112792003-03-10 Andrew Cagney <cagney@redhat.com>
11280
11281 * gdbarch.sh (gdbarch_unwind_pc): New method.
11282 * gdbarch.h, gdbarch.c: Regenerate.
11283 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11284 but use read_pc and FRAME_SAVED_PC as fall backs.
11285 (frame_saved_regs_pc_unwind): Delete function.
11286 (trad_frame_unwinder): Update.
11287 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11288 (struct frame_unwind): Update.
11289 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11290 (dummy_frame_unwind): Update.
11291 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11292 (sentinel_frame_unwinder): Update.
11293 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11294 (d10v_frame_unwind): Update.
11295 (d10v_unwind_pc): New function.
11296 (d10v_gdbarch_init): Set unwind_pc.
11297
ef840a37
AC
112982003-03-10 Andrew Cagney <cagney@redhat.com>
11299
a2ce2e56
AC
11300 * gdbarch.h: Re-generate.
11301
ef840a37
AC
11302 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11303 PC.
11304 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11305 the PC register.
11306
08f3424b
MK
113072003-03-08 Mark Kettenis <kettenis@gnu.org>
11308
11309 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11310
1248ede2
AC
113112003-03-08 Andrew Cagney <cagney@redhat.com>
11312
11313 * cli-out.c: Update copyright.
11314 (cli_out_data): Define typedef. Use instead of ui_out_data.
11315
f49bacc8
AC
113162003-03-08 Andrew Cagney <cagney@redhat.com>
11317
11318 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11319 the result.
11320
9b05f993
AC
113212003-03-07 Andrew Cagney <cagney@redhat.com>
11322
11323 * gdbarch.sh: Don't generate two macro definitions when an
11324 undefined macro taking no arguments.
11325 * gdbarch.h: Regenerate.
8ffd9b1b 11326
166f4c7b
ML
113272002-03-07 Michal Ludvig <mludvig@suse.cz>
11328
11329 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11330 (x86_64_unwind_dummy_id): New functions.
11331 (x86_64_init_abi): Register these two new functions.
11332
6d686a84
ML
113332003-03-07 Michal Ludvig <mludvig@suse.cz>
11334
11335 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 11336 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
11337 separate function.
11338 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11339
6314f104
AC
113402003-03-05 Andrew Cagney <cagney@redhat.com>
11341
11342 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11343 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11344 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11345 to use unwind_dummy_id when a dummy frame.
11346 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11347 predicate.
11348 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 11349
ceea5145
AC
113502003-03-05 Andrew Cagney <cagney@redhat.com>
11351
11352 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11353 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11354 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11355 values.
11356
0d843116
AC
113572003-03-05 Andrew Cagney <cagney@redhat.com>
11358
11359 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11360 (struct d10v_unwind_cache): Delete field "frameless". Replace
11361 "next_addr" with "sp_offset". Add "r11_offset".
11362 (d10v_frame_unwind_cache): Update.
11363 (prologue_find_regs): Update. When "mv r11, sp", save the
11364 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11365 RN was saved in r11_offset.
11366
b2579786
AC
113672003-03-05 Andrew Cagney <cagney@redhat.com>
11368
11369 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11370 cached PC value in the next frame.
11371
218e5956
AC
113722003-03-05 Andrew Cagney <cagney@redhat.com>
11373
11374 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11375 "id_unwind_cache" with "id".
11376 (frame_id_unwind): Delete declaration.
11377 * frame.c (frame_id_unwind): Delete function.
11378 (get_prev_frame): Call the frame id unwind method directly. Store
11379 the returned next frame's ID value in NEXT_FRAME. Note that there
11380 is a problem with the wrong unwind ID being called with the wrong
11381 unwind cache.
11382
ed363b1b
DJ
113832003-03-05 Daniel Jacobowitz <drow@mvista.com>
11384
11385 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11386
fe1f4a5e
DJ
113872003-03-05 James Ingham <jingham@apple.com>
11388 Daniel Jacobowitz <drow@mvista.com>
11389
11390 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11391 (auto_cp_abi): New variable.
11392 (current_cp_abi, num_cp_abis): Make static.
11393 (CP_ABI_MAX): Define.
11394 (cp_abis): Turn into an array.
11395 (value_virtual_fn_field): Fix formatting.
11396 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11397 takes a pointer.
11398 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11399 (list_cp_abis, _initialize_cp_abi): New functions.
11400 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11401 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11402 switch_to_cp_abi. Update prototype for register_cp_abi.
11403 * Makefile.in (cp-abi.o): Update dependencies.
11404 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11405 instead of switch_to_cp_abi.
11406 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11407 register_cp_abi.
11408 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11409 register_cp_abi.
11410 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11411
e4adbba9
DJ
114122003-03-05 Daniel Jacobowitz <drow@mvista.com>
11413
11414 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11415 * dwarf2loc.c: Include "regcache.h".
11416 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11417 register_size.
11418 * Makefile.in (dwarf2loc.o): Update dependencies.
11419
91ccbfc1
TR
114202003-03-04 Theodore A. Roth <troth@openavr.org>
11421
11422 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11423 number of io registers reported by remote target is not a multiple of
11424 step.
11425
3d4e8fd2
DC
114262003-03-04 David Carlton <carlton@math.stanford.edu>
11427
11428 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11429 (lookup_symbol_aux_psymtabs): Update call to
11430 lookup_partial_symbol.
11431 (lookup_transparent_type, find_main_psymtab)
11432 (make_symbol_overload_list): Ditto.
11433
ed42d87b
KH
114342003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11435
11436 * MAINTAINERS (Write after approval): Update my email address.
11437
a0ed5532
AC
114382003-03-03 Andrew Cagney <cagney@redhat.com>
11439
11440 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11441 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11442 predicate. Replace MAX_REGISTER_RAW_SIZE.
11443 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11444 MAX_REGISTER_VIRTUAL_SIZE.
11445 * regcache.c (legacy_max_register_raw_size): New function.
11446 (legacy_max_register_virtual_size): New function.
11447 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11448 (MAX_REGISTER_RAW_SIZE): Define.
11449 (legacy_max_register_raw_size): Declare.
11450 (legacy_max_register_virtual_size): Declare.
11451 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11452 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11453 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11454 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11455 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11456 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11457 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11458 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11459 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11460 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11461 * vax-tdep.c (vax_gdbarch_init): Update.
11462 * v850-tdep.c (v850_gdbarch_init): Update.
11463 * sparc-tdep.c (sparc_gdbarch_init): Update.
11464 * sh-tdep.c (sh_gdbarch_init): Update.
11465 * s390-tdep.c (s390_gdbarch_init): Update.
11466 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11467 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11468 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11469 * mips-tdep.c (mips_gdbarch_init): Update.
11470 * mcore-tdep.c (mcore_gdbarch_init): Update.
11471 * m68k-tdep.c (m68k_gdbarch_init): Update.
11472 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11473 * ia64-tdep.c (ia64_gdbarch_init): Update.
11474 * i386-tdep.c (i386_gdbarch_init): Update.
11475 * hppa-tdep.c (hppa_gdbarch_init): Update.
11476 * h8300-tdep.c (h8300_gdbarch_init): Update.
11477 * frv-tdep.c (frv_gdbarch_init): Update.
11478 * cris-tdep.c (cris_gdbarch_init): Update.
11479 * avr-tdep.c (avr_gdbarch_init): Update.
11480 * arm-tdep.c (arm_gdbarch_init): Update.
11481 * alpha-tdep.c (alpha_gdbarch_init): Update.
11482 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11483 max_register_raw_size or max_register_virtual_size.
11484
8e437497
DC
114852003-03-03 David Carlton <carlton@math.stanford.edu>
11486
11487 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11488 SYMBOL_MATCHES_NAME, add comment.
11489 (SYMBOL_MATCHES_NATURAL_NAME): New.
11490 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11491 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11492 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11493 * symtab.c (lookup_partial_symbol): Use
11494 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11495 unhelpful comment.
11496 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11497 SYMBOL_MATCHES_NAME.
11498 Fix for PR c++/33.
11499
25120b0d
DC
115002003-03-03 David Carlton <carlton@math.stanford.edu>
11501
11502 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11503 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11504 by regexp matching against SYMBOL_NATURAL_NAME.
11505
78a11fb4
DC
115062003-03-03 David Carlton <carlton@math.stanford.edu>
11507
11508 * linespec.c (find_method): Extract code into collect_methods.
11509 (collect_methods): New.
11510
645dd519
MK
115112003-03-02 Mark Kettenis <kettenis@gnu.org>
11512
b4700d91
MK
11513 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11514 get_frame_base.
11515
645dd519
MK
11516 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11517 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11518
0aa7e1aa
SC
115192003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11520
8ffd9b1b 11521 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
11522 and not regnum when summing the size of all registers up to regnum.
11523
f30ee0bc
AC
115242003-03-01 Andrew Cagney <cagney@redhat.com>
11525
11526 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11527 FRAME_INIT_SAVED_REGS.
11528 * gdbarch.h, gdbarch.c: Regenerate.
11529 * stack.c (frame_info): Update.
11530 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11531 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11532 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11533 * ns32k-tdep.c (ns32k_pop_frame): Update.
11534 * mips-tdep.c (mips_pop_frame): Update.
11535 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11536 * ia64-tdep.c (ia64_frame_chain): Update.
11537 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11538 (ia64_frameless_function_invocation): Update.
11539 (ia64_init_extra_frame_info): Update.
11540 (ia64_pop_frame_regular): Update.
11541 * frame.h (struct frame_info): Update comment.
11542 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11543 * frame.c (frame_saved_regs_register_unwind): Update.
11544 (frame_saved_regs_register_unwind): Update.
11545 (deprecated_generic_get_saved_register): Update.
11546 * cris-tdep.c: Update comment.
11547 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11548 Rename macro.
11549 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11550 * x86-64-tdep.c (x86_64_init_abi): Update.
11551 * vax-tdep.c (vax_gdbarch_init): Update.
11552 * v850-tdep.c (v850_gdbarch_init): Update.
11553 * sparc-tdep.c (sparc_gdbarch_init): Update.
11554 * sh-tdep.c (sh_gdbarch_init): Update.
11555 * s390-tdep.c (s390_gdbarch_init): Update.
11556 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11557 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11558 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11559 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11560 * mips-tdep.c (mips_gdbarch_init): Update.
11561 * mcore-tdep.c (mcore_gdbarch_init): Update.
11562 * m68k-tdep.c (m68k_gdbarch_init): Update.
11563 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11564 * ia64-tdep.c (ia64_gdbarch_init): Update.
11565 * i386-tdep.c (i386_gdbarch_init): Update.
11566 * frv-tdep.c (frv_gdbarch_init): Update.
11567 * avr-tdep.c (avr_gdbarch_init): Update.
11568 * arm-tdep.c (arm_gdbarch_init): Update.
11569 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11570
42fa7c0f
AC
115712003-03-01 Andrew Cagney <cagney@redhat.com>
11572
11573 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11574 option enum and switch. When no windows, set the interpreter to
11575 INTERP_CONSOLE.
8ffd9b1b 11576
49c7e338
AC
115772003-03-01 Andrew Cagney <cagney@redhat.com>
11578
11579 * main.c (captured_main): Replace magic option characters with an
11580 enum.
11581
e9582e71
AC
115822003-03-01 Andrew Cagney <cagney@redhat.com>
11583
11584 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11585 INIT_EXTRA_FRAME_INFO.
11586 * gdbarch.h, gdbarch.c: Regenerate.
11587 * arm-tdep.c: Update comments.
11588 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11589 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11590 * frame.h, avr-tdep.c: Ditto.
11591 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11592 (create_new_frame, legacy_get_prev_frame): Ditto.
11593 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11594 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11595 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11596 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11597 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11598 * v850-tdep.c (v850_gdbarch_init): Ditto.
11599 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11600 * sh-tdep.c (sh_gdbarch_init): Ditto.
11601 * s390-tdep.c (s390_gdbarch_init): Ditto.
11602 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11603 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11604 * mips-tdep.c (mips_gdbarch_init): Ditto.
11605 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11606 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11607 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11608 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11609 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11610 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11611 * frv-tdep.c (frv_gdbarch_init): Ditto.
11612 * cris-tdep.c (cris_gdbarch_init): Ditto.
11613 * avr-tdep.c (avr_gdbarch_init): Ditto.
11614 * arm-tdep.c (arm_gdbarch_init): Ditto.
11615 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11616 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11617
35cac7cf
AC
116182003-03-01 Andrew Cagney <cagney@redhat.com>
11619
11620 * gdbarch.sh (register_type): New function with predicate.
11621 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11622 * gdbarch.h, gdbarch.c: Re-generate.
11623 * arch-utils.c (generic_register_byte): Use generic_register_size.
11624 (generic_register_size): When available, use
11625 gdbarch_register_type.
11626 * regcache.c (init_regcache_descr): When available, initialize the
11627 register type array using gdbarch_register_type. If the
11628 architecture supplies gdbarch_register_type, do not use the legacy
11629 regcache layout.
11630 * d10v-tdep.c (d10v_register_type): Replace
11631 d10v_register_virtual_type.
11632 (d10v_gdbarch_init): Set register_type instead of
11633 register_virtual_type.
11634
7b83296f
AC
116352003-03-01 Andrew Cagney <cagney@redhat.com>
11636
11637 * Makefile.in (ax-gdb.o): Update dependencies.
11638 * ax-gdb.c: Include "regcache.h".
11639 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11640 * findvar.c (value_of_register): Ditto.
11641 * infcmd.c (default_print_registers_info): Ditto.
11642
eadc1c87
MK
116432003-03-01 Mark Kettenis <kettenis@gnu.org>
11644
11645 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11646 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11647
14143612
MK
116482003-03-01 Mark Kettenis <kettenis@gnu.org>
11649
11650 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11651 of STREQ.
11652
a55cc764
DJ
116532003-02-28 Daniel Jacobowitz <drow@mvista.com>
11654
11655 * Makefile.in (dwarf2loc.o): Update dependencies.
11656 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11657 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11658 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11659 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11660 (locexpr_tracepoint_var_ref): New function.
11661 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11662
08a617da
AC
116632003-02-28 Andrew Cagney <cagney@redhat.com>
11664
11665 * regcache.c (register_size): New function.
11666 * regcache.h (register_size): Declare
11667 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11668 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11669
4224873a
DC
116702003-02-28 David Carlton <carlton@math.stanford.edu>
11671
11672 * linespec.c (decode_compound): Extract code into find_method.
11673 (find_method): New.
11674
ccdc5d7f
JB
116752003-02-28 J. Brobecker <brobecker@gnat.com>
11676
11677 * Makefile.in: Add rules to build and link in observer.o.
11678
974e8ced
JB
116792003-02-27 J. Brobecker <brobecker@gnat.com>
11680
11681 * observer.c: Minor comments edits.
11682
7a28f973
JB
116832003-02-27 J. Brobecker <brobecker@gnat.com>
11684
11685 * observer.h, observer.c: New file.
11686
27cddce2
AC
116872003-02-27 Andrew Cagney <cagney@redhat.com>
11688
11689 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11690
b94a41a1
SC
116912003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11692
11693 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11694 (M6812_OP_STS_EXT): Likewise.
11695 (m6811_prologue): Use the above to recognize prologue.
11696 (m6812_prologue): Likewise.
11697
c8be8951
DC
116982003-02-27 David Carlton <carlton@math.stanford.edu>
11699
11700 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11701 SYMBOL_PRINT_NAME.
11702 (compare_psymbols): Ditto.
11703 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11704
d05bb1fc
MS
117052003-02-27 Michael Snyder <msnyder@redhat.com>
11706
4e845cd3
MS
11707 * f-lang.c (build_fortran_types): New function.
11708 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
11709 * doublest.c (extract_floating): Fix warning text.
11710
f3824013
AC
117112003-02-27 Andrew Cagney <cagney@redhat.com>
11712
11713 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11714 predicate. Replaces PUSH_DUMMY_FRAME.
11715 * gdbarch.h, gdbarch.c: Regnerate.
11716 * valops.c (hand_function_call): Update. Call
11717 generic_push_dummy_frame directly.
11718 * vax-tdep.c (vax_gdbarch_init): Update.
11719 * sparc-tdep.c (sparc_gdbarch_init): Update.
11720 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11721 * m68k-tdep.c (m68k_gdbarch_init): Update.
11722 * hppa-tdep.c (hppa_gdbarch_init): Update.
11723 * alpha-tdep.c (alpha_gdbarch_init): Update.
11724 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11725 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11726 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11727 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11728 push_dummy_frame to generic_push_dummy_frame.
11729 * v850-tdep.c (v850_gdbarch_init): Ditto.
11730 * sh-tdep.c (sh_gdbarch_init): Ditto.
11731 * s390-tdep.c (s390_gdbarch_init): Ditto.
11732 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11733 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11734 * mips-tdep.c (mips_gdbarch_init): Ditto.
11735 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11736 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11737 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11738 * i386-tdep.c (i386_gdbarch_init): Ditto.
11739 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11740 * frv-tdep.c (frv_gdbarch_init): Ditto.
11741 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11742 * cris-tdep.c (cris_gdbarch_init): Ditto.
11743 * avr-tdep.c (avr_gdbarch_init): Ditto.
11744 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 11745
ad188201
KB
117462003-02-26 Kevin Buettner <kevinb@redhat.com>
11747
11748 * mips-tdep.c (show_mips_abi): New function.
11749 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11750 command ``show mips abi''.
11751
6b37567a 117522003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 11753
6b37567a 11754 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 11755 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
11756 more sline entries have been seen for the function.
11757
d3e0a5bf
MC
117582003-02-26 Michael Chastain <mec@shout.net>
11759
11760 * configure: Regenerate with autoconf 000227.
11761
18972eea
MC
117622003-02-26 Michael Chastain <mec@shout.net>
11763
11764 Close PR build/660.
11765 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11766 for old libc5/glibc.
11767 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11768
0bbde931
KW
117692003-02-26 Kris Warkentin <kewarken@qnx.com>
11770
11771 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11772 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11773
27ca5dad
MC
117742003-02-26 Michael Chastain <mec@shout.net>
11775
11776 * configure.in: New variable HAVE_UINTPTR_T.
11777 * configure, config.in: Regenerated.
11778
6f88d630
DJ
117792003-02-26 Daniel Jacobowitz <drow@mvista.com>
11780
11781 Fix PR build/1097.
11782 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11783
b14185ce
AC
117842003-02-25 Andrew Cagney <cagney@redhat.com>
11785
11786 * frame.c (get_prev_frame): Add comment on check for
11787 inside_entry_func. Only check for inside_entry_file when not a
11788 dummy and not a sentinel. Check that the new frame is not inner
11789 to the old frame.
11790
ac2bd0a9
AC
117912003-02-25 Andrew Cagney <cagney@redhat.com>
11792
11793 * frame.c (frame_debug): New variable.
11794 (_initialize_frame): Add "set/show debug frame" command.
11795 (get_prev_frame): When frame_debug, print reason why unwind
11796 failed.
11797
b18a0fd2
MC
117982003-02-25 Michael Chastain <mec@shout.net>
11799
11800 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11801 to avoid uintptr_t definition problems.
11802
22abf04a
DC
118032003-02-25 David Carlton <carlton@math.stanford.edu>
11804
11805 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11806 (SYMBOL_LINKAGE_NAME): Ditto.
11807 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11808 SYMBOL_LINKAGE_NAME.
11809 (struct general_symbol_info): Expand comment.
11810 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11811 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11812 (SYMBOL_MATCHES_REGEXP): Ditto.
11813 * symtab.c (symbol_natural_name): New function.
11814 * objfiles.h: Replace all uses of SYMBOL_NAME by
11815 DEPRECATED_SYMBOL_NAME.
11816 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11817 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11818 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11819 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11820 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11821 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11822 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11823 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11824 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11825 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11826 * ada-exp.y: Ditto.
11827 * ada-exp.y: Update copyright.
11828 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11829 * cp-valprint.c: Ditto.
11830
1a5848f6
JJ
118312003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11832
11833 * infptrace.c (detach): Do not flag error if ptrace detach fails
11834 and errno is set to ESRCH.
11835
7343d46a
AC
118362003-02-24 Andrew Cagney <cagney@redhat.com>
11837
11838 * infptrace.c (udot_info): Change type of udot_off to long. Use
11839 paddr when printing udot_off's value.
11840
49fa1dc2
DC
118412003-02-24 David Carlton <carlton@math.stanford.edu>
11842
11843 * symtab.c (make_symbol_overload_list): Only read in partial
11844 symtabs containing a matching partial symbol.
11845
0fe19209
DC
118462003-02-24 David Carlton <carlton@math.stanford.edu>
11847
11848 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11849 do the comparison, not strcmp.
11850 * symfile.c (compare_psymbols): Ditto.
11851 * defs.h: Declare strcmp_iw_ordered.
11852 * utils.c (strcmp_iw_ordered): New function.
11853
8e3ee7b5
JB
118542003-02-24 Jim Blandy <jimb@redhat.com>
11855
11856 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11857 support, shared libs): Remove my name from here, to better reflect
11858 reality.
11859
7df1a324
KW
118602003-02-24 Kris Warkentin <kewarken@qnx.com>
11861
11862 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11863 (target_ops): Add to_have_continuable_watchpoint.
11864 * target.c (update_current_target): Add INHERIT line for
11865 to_have_continuable_watchpoint.
11866 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11867 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11868 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11869 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11870
d1c76907
EZ
118712003-02-24 Elena Zannoni <ezannoni@redhat.com>
11872
11873 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11874 maintainership.
11875
2610b0bf
KW
118762003-02-24 Kris Warkentin <kewarken@qnx.com>
11877
f46169db
KW
11878 * solib.c (solib_open): Call target defined search function after
11879 failing with solib-search-path.
11880 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11881 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 11882
9a3c34fe
KW
118832003-02-24 Kris Warkentin <kewarken@qnx.com>
11884
f46169db 11885 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 11886
2417dd25
SC
118872003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11888
11889 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11890
b631436b
SC
118912003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11892
11893 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11894 (m68hc11_add_reggroups): New function.
11895 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11896 (m68hc11_gdbarch_init): Install the reggroups.
11897 (_initialize_m68hc11_tdep): Initialize them.
11898
0aa8c1e4
JW
118992003-02-21 James E Wilson <wilson@tuliptree.org>
11900
11901 * MAINTAINERS: Update my email address.
11902
50ceaba5
DC
119032003-02-21 David Carlton <carlton@math.stanford.edu>
11904
11905 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11906
4c2df51b
DJ
119072003-02-21 Daniel Jacobowitz <drow@mvista.com>
11908
11909 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11910 * symtab.h: Add opaque declarations of struct axs_value and
11911 struct agent_expr.
11912 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11913 (struct location_funcs): New type.
11914 (struct symbol): Add "loc" to aux_value.
11915 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11916 * dwarf2read.c: Include "dwarf2expr.h".
11917 (dwarf2_symbol_mark_computed): New function.
11918 (read_func_scope): Use it.
11919 (var_decode_location): New function.
11920 (new_symbol): Use it.
11921 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11922
11923 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11924 (dwarf2expr_h, dwarf2loc_h): New variables.
11925 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11926 (dwarf2expr.o, dwarf2loc.o): New rules.
11927 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11928 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11929 LOC_COMPUTED_ARG.
11930 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11931 * m2-exp.y (yylex): Likewise.
11932 * printcmd.c (address_info, print_frame_args): Likewise.
11933 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11934 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11935 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11936 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11937 * symtab.c (lookup_block_symbol): Likewise.
11938
5784d15e
AF
119392003-02-20 Adam Fedor <fedor@gnu.org>
11940
11941 * symtab.h: Remove objc_specific struct
11942 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11943 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11944 Have language_objc use cplus_specific struct.
11945
d4cad8db
TT
119462003-02-20 Tom Tromey <tromey@redhat.com>
11947
11948 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11949 TYPE_NAME, when printing a String value. PR java/1075.
11950
2f9a90b4
AF
119512003-02-20 Adam Fedor <fedor@gnu.org>
11952
d38074a8 11953 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 11954 * objc-lang.c (find_methods): Make static.
2f9a90b4 11955
6f17862b
CF
119562003-02-20 Christopher Faylor <cgf@redhat.com>
11957
11958 * win32-nat.c (get_image_name): Check return value from
11959 ReadProcessMemory.
11960 (child_xfer_memory): Ditto.
11961
715d1656
AO
119622003-02-20 Alexandre Oliva <aoliva@redhat.com>
11963
11964 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11965 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11966 '${exec_prefix}' (in addition to the expansion thereof) as
11967 relocatable.
11968 * configure: Rebuilt.
11969
b1262a02
DC
119702003-02-20 David Carlton <carlton@math.stanford.edu>
11971
11972 * symtab.c (search_symbols): Revert the search_symbols part of my
11973 2002-12-23 patch. Add comment.
11974
7134143f
DJ
119752002-02-20 Daniel Jacobowitz <drow@mvista.com>
11976
11977 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11978 * dbxread.c (elfstab_build_psymtabs): Don't call
11979 install_minimal_symbols.
11980 (stabsect_build_psymtabs): Likewise.
11981 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11982 earlier.
11983 * somread.c (som_symfile_read): Call install_minimal_symbols
11984 and do_cleanups earlier.
11985 * nlmread.c (nlm_symfile_read): Likewise.
11986 * mdebugread.c (elfmdebug_build_psymtabs): Call
11987 install_minimal_symbols and make appropriate cleanups.
11988
cf466558
KB
119892003-02-20 Kevin Buettner <kevinb@redhat.com>
11990
11991 * solib.c (reload_shared_libraries): New function.
11992 (_initialize_solib): Add callbacks for ``set solib-search-path''
11993 and ``set solib-absolute-prefix''.
11994
de5ad195
DC
119952003-02-20 David Carlton <carlton@math.stanford.edu>
11996
11997 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11998 expand comment.
11999 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12000 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12001 * ada-typeprint.c (ada_typedef_print): Ditto.
12002 * ax-gdb.c (gen_var_ref): Ditto.
12003 * breakpoint.c (print_one_breakpoint): Ditto.
12004 * buildsym.c (finish_block): Ditto.
12005 * c-valprint.c (c_val_print): Ditto.
12006 * expprint.c (print_subexp): Ditto.
12007 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
12008 * infcmd.c (jump_command): Ditto.
12009 * linespec.c (decode_line_2, decode_compound): Ditto.
12010 * maint.c (maintenance_translate_address): Ditto.
12011 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
12012 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12013 Ditto.
8ffd9b1b
AJ
12014 * p-valprint.c (pascal_val_print): Ditto.
12015 * stabsread.c (define_symbol): Ditto.
de5ad195 12016 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
12017 (print_frame_arg_vars, return_command): Ditto.
12018 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12019 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
12020 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12021 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
12022 (rbreak_command): Ditto.
12023 * tracepoint.c (tracepoints_info): Ditto.
12024 * typeprint.c (typedef_print): Ditto.
12025 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
12026 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12027 * ada-typeprint.c: Update Copyright.
12028 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12029 * tracepoint.c, cli/cli-cmds.c: Ditto.
12030
f796e4be
KB
120312003-02-20 Kevin Buettner <kevinb@redhat.com>
12032
12033 * frame.c (generic_unwind_get_saved_register): Make non-static.
12034 * frame.h (generic_unwind_get_saved_register): Declare.
12035 * mips-tdep.c (read_next_frame_reg): Fetch register from
12036 current regcache when frame is NULL.
12037 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12038 that must be NULL.
12039 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12040 instead of frame_register_unwind().
12041
836cc9f4
AC
120422003-02-20 Andrew Cagney <ac131313@redhat.com>
12043
12044 * remote-sim.c (gdbsim_insert_breakpoint)
12045 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12046 code.
12047
501eef12
AC
120482003-02-20 Andrew Cagney <ac131313@redhat.com>
12049
12050 * remote.c (_initialize_remote): Add commands "set/show remote
12051 hardware-watchpoint-limit" and "set/show remote
12052 hardware-breakpoint-limit".
12053 (remote_hw_watchpoint_limit): Initialize to -1.
12054 (remote_hw_breakpoint_limit): Ditto.
12055 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12056
1b6bc7e0
CF
120572003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12058
12059 * coff-pe-read.c: New file - support reading of minimal symbols from a
12060 portable executable using the export table.
12061 * coff-pe-read.h: New file.
12062 * coffread.c: Include coff-pe-read.h.
12063 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12064 debugging symbols found.
12065 * Makefile.in (SFILES): Add coff-pe-read.o.
12066 (coff_pe_read_h): Define.
12067 (COMMON_OBS): Add coff-pe-read.o.
12068 (coffread.o): Add coff_pe_read_h dependency.
12069 (coff-pe-read.o): New target.
12070
fe898f56
DC
120712003-02-19 David Carlton <carlton@math.stanford.edu>
12072
12073 * Makefile.in (SFILES): Add block.c.
12074 (block_h): New.
12075 (COMMON_OBS): Add block.o.
12076 (block.o): New.
12077 (x86-64-tdep.o): Add $(block_h).
12078 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12079 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12080 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12081 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12082 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12083 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12084 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12085 * value.h: Add opaque declaration for struct block.
12086 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12087 * ada-lang.h: Ditto.
12088 * x86-64-tdep.c: #include "block.h"
12089 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12090 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12091 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12092 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12093 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12094 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12095 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12096 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12097 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12098 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12099 * symtab.c (block_function): Ditto.
12100 (contained_in): Ditto.
12101 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12102 block.h. Add opaque declaration for struct block.
12103 * symtab.h: Move block_function and contained_in declarations to
12104 block.h. Add opaque declarations for struct block, struct
12105 blockvector.
12106 (struct block): Move to block.h.
12107 (struct blockvector): Ditto.
12108 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12109 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12110 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12111 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12112 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12113 Ditto.
12114 * block.c: New file.
12115 * block.h: New file.
12116
173345b5
TR
121172003-02-19 Theodore A. Roth <troth@openavr.org>
12118
12119 * avr-tdep.c (avr_extract_return_value): Remove function.
12120 (avr_store_return_value): Remove function.
12121 (avr_extract_struct_value_address): Remove function.
12122 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12123
338ef23d
AC
121242003-02-19 Andrew Cagney <ac131313@redhat.com>
12125
12126 * rs6000-tdep.c: Include "gdb_assert.h".
12127 (registers_e500): Add "acc" and "spefscr".
12128 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12129 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12130 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12131 really is "r0".
12132 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12133
5412f5f3
KS
121342003-02-18 Keith Seitz <keiths@redhat.com>
12135
12136 * Makefile.in: Add gdbtk-interps.c.
12137
881324eb
KB
121382003-02-18 Kevin Buettner <kevinb@redhat.com>
12139
12140 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12141 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12142
6a2f5abf
AC
121432003-02-18 Andrew Cagney <cagney@redhat.com>
12144
12145 * symtab.h (struct objfile): Add opaque declaration.
12146
54c7009d
EZ
121472003-02-18 Elena Zannoni <ezannoni@redhat.com>
12148
12149 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
12150 * dbxread.c (process_one_symbol): Use last_function_start rather
12151 than function_start_offset to find the real beginning of the
12152 current function. The latter is just the text section offset on
12153 some systems, the former is always the real function start.
54c7009d 12154
7ee6d7eb
AC
121552003-02-17 Andrew Cagney <cagney@redhat.com>
12156
12157 * configure.in: Revert ${target} != ${host}.
12158
2846da9b
AC
121592003-02-17 Andrew Cagney <ac131313@redhat.com>
12160
12161 * configure.in (Makefile): Use the test ${target} != ${host},
12162 instead of the absence of the "nm.h" file, to determine of the
12163 configuration non-native.
12164 * configure: Regenerate.
8ffd9b1b 12165
3b27aeea
EZ
121662003-02-14 Elena Zannoni <ezannoni@redhat.com>
12167
fbe586ae 12168 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
12169
12170 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12171 conditionalize tui_active test.
12172 (lookup_cmd_1): Ditto.
12173
b0b1c2c0
MK
121742003-02-14 Mark Kettenis <kettenis@gnu.org>
12175
12176 * configure.in: Add check for _etext.
12177 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12178 available.
12179 * config.in, configure: regenerated.
12180
8f05cde5
DJ
121812003-02-14 Daniel Jacobowitz <drow@mvista.com>
12182
12183 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12184
021e7609
AC
121852003-02-14 Andrew Cagney <ac131313@redhat.com>
12186
12187 * main.c (tui_version): Delete variable.
12188 (captured_main): When --tui, set interpreter_p to "tui" instead of
12189 enabling tui_version.
12190 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12191 tui_version.
12192 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12193 * cli/cli-cmds.c (disassemble_command): Ditto.
12194 * defs.h (tui_version): Delete declaration.
12195 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12196 (tui-interp.o): Add rules.
12197 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12198
e325dcec
CF
121992003-02-14 Christopher Faylor <cgf@redhat.com>
12200
36ffb041 12201 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
12202 just-loaded dll.
12203
c4f90d87
JM
122042003-02-12 Jason Molenda (jmolenda@apple.com)
12205
fbe586ae
RH
12206 * symmisc.c (print_objfile_statistics): Include information about
12207 the number of psymtabs and symtabs in each object file.
c4f90d87 12208
e46e5ccd
KS
122092003-02-13 Keith R Seitz <keiths@redhat.com>
12210
12211 * main.h (struct captured_main_args): Add interpreter_p.
12212 * main.c (captured_main): Initialize interpreter_p from context.
12213 * gdb.c (main): Set interpreter_p argument.
12214 * Makefile.in (gdb.o): Add dependency for interps.h.
12215
fe97fe9c
AC
122162003-02-12 Andrew Cagney <ac131313@redhat.com>
12217
12218 * event-top.c (cli_command_loop): Delete declaration.
12219 (_initialize_event_loop): Delete function setting event_loop_hook.
12220 * event-top.h (cli_command_loop): Declare. Update copyright.
12221 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12222 * interps.c (current_interp_command_loop): When event_loop_p, call
12223 cli_command_loop.
12224
1cdac4ef
AC
122252003-02-12 Andrew Cagney <ac131313@redhat.com>
12226
12227 * interps.h (interp_command_loop_ftype): Change return type to
12228 void.
12229
48037ead
ML
122302003-02-12 Michal Ludvig <mludvig@suse.cz>
12231
12232 * x86-64-tdep.c (x86_64_extract_return_value)
12233 (x86_64_store_return_value): Use regcache instead of regbuf.
12234 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12235 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12236
033afc63
AC
122372003-02-11 Andrew Cagney <ac131313@redhat.com>
12238
12239 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12240 * aclocal.m4: Regenerate.
12241 * configure: Regenerate.
12242
12243 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12244 TCL_LD_SEARCH_FLAGS.
12245
40d02bca
ML
122462003-02-10 Michal Ludvig <mludvig@suse.cz>
12247
12248 * dwarf2cfi.c: Reindented.
12249
11308a41
AC
122502003-02-09 Andrew Cagney <ac131313@redhat.com>
12251
12252 * interps.c (clear_interpreter_hooks): Convert function definition
12253 to ISO C.
12254
e1c1c0f6
DC
122552003-02-07 David Carlton <carlton@math.stanford.edu>
12256
12257 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12258
ab5d3da6
KB
122592003-02-07 Kevin Buettner <kevinb@redhat.com>
12260
12261 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12262 (struct type): ...to here.
12263 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12264 field.
12265 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12266 (replace_type): Set length on all type variants for a given type.
12267
b8a92b82
AC
122682003-02-07 Andrew Cagney <ac131313@redhat.com>
12269
12270 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12271 <sys/stat.h>.
12272 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 12273
5cb316ef
AC
122742003-02-06 Andrew Cagney <ac131313@redhat.com>
12275
2555fe1a
AC
12276 * Makefile.in (symm-nat.o): Update dependencies.
12277 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12278 (lynx-nat.o, ia64-linux-nat.): Ditto.
12279 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12280 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12281 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12282
44270758
AC
12283 * Makefile.in (inflow_h): Define.
12284 (procfs.o, inflow.o, procfs.o): Update dependencies.
12285 * inftarg.c (child_stop): Delete extern declaration of
12286 inferior_process_group. Include "inflow.h".
12287 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12288 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12289 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12290 (our_process_group, inferior_process_group): Extern declarations.
12291
df8f7274
AC
12292 * procfs.c: Include "gdb_assert.h".
12293
5cb316ef
AC
12294 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12295 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12296 * jv-typeprint.c (java_type_print_base): Ditto.
12297 * typeprint.c (typedef_print): Eliminate STREQ.
12298 * cli/cli-script.c (define_command, define_command): Ditto.
12299 * main.c (captured_main): Ditto.
12300 * values.c (lookup_internalvar): Ditto.
12301 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12302 within `if' conditional.
12303 * linespec.c (decode_line_2): Ditto.
12304 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12305 (bfd_openw_with_cleanup): Ditto.
12306
2a28ccea
MK
123072003-02-07 Mark Kettenis <kettenis@gnu.org>
12308
12309 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12310 legacy_extract_return_value and store_return_value to
12311 legacy_return_value.
12312
786b8124
CF
123132003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12314
12315 * win32-nat.c (get_relocated_section_addrs): New function. Find
12316 section load addresses for symbol handling in relocated DLLs.
12317 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12318
b871e4ec
FF
123192003-02-05 Fred Fish <fnf@intrinsity.com>
12320
12321 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12322 '=' and '!='.
12323 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12324 with '&' and '=='.
12325 (angel_RDI_info): Ditto.
12326 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12327 with '&' and '!='.
12328 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 12329
4389a95a 123302003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
12331 Keith Seitz <keiths@redhat.com>
12332 Elena Zannoni <ezannoni@redhat.com>
12333 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
12334
12335 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12336 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12337 (SUBDIR_MI_OBS): Add "mi-interp.o".
12338 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12339 (SFILES): Add "interps.c".
12340 (COMMON_OBS): Add "interps.o".
12341 (interps_h, mi_main_h): Define.
12342 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12343 (mi-main.o, main.o, event-top.o): Update dependencies.
12344 * cli/cli-interp.c: New file.
12345 * interps.h, interps.c: New files.
12346 * top.c: (gdb_init): Don't install the default interpreter, handed
12347 by captured_main.
12348 * main.c: Include "interps.h".
12349 (interpreter_p): Note that it should malloc'ed.
12350 (captured_command_loop): Call current_interp_command_loop.
12351 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12352 xfree and xstrdup when updating interpreter_p. Install the
12353 default interpreter. Add hack to stop mi1's copyright notice
12354 being encoded.
12355 * event-top.h (gdb_setup_readline): Declare.
12356 (gdb_disable_readline): Declare.
12357 * event-top.c: Include "interps.h".
12358 (display_gdb_prompt): Call current_interp_display_prompt_p.
12359 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12360 gdb_stdlog, and gdb_stdtarg.
12361 (_initialize_event_loop): Don't call gdb_setup_readline.
12362 * cli-out.c (cli_out_set_stream): New function.
12363 * cli-out.h (cli_out_set_stream): Declare.
12364
ff3b5810
MK
123652003-02-06 Mark Kettenis <kettenis@gnu.org>
12366
12367 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12368 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12369 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12370 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12371 config/i386/i386v42mp.mt: Removed.
12372
5b729aa5
MK
123732003-02-05 Mark Kettenis <kettenis@gnu.org>
12374
12375 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12376 GDB_OSABI_SOLARIS.
12377
8cc15142
MC
123782003-02-05 Michael Chastain <mec@shout.net>
12379
12380 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12381 2.12.1 and earlier versions.
12382
5aa5d4b9
AC
123832003-02-05 Andrew Cagney <ac131313@redhat.com>
12384
12385 Remove orphaned hosts, targets and files.
12386 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12387 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12388 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12389 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12390 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12391 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12392 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12393 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12394 * config/sparc/tm-sp64sim.h: Delete.
12395 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12396 hosts.
12397 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12398 mips*-dec-mach3* targets.
12399
b68767c1
MC
124002003-02-04 Michael Chastain <mec@shout.net>
12401
12402 * NEWS: Fix typo: sepcifying -> specifying.
12403
5ae7ca1d
MC
124042003-02-04 Michael Chastain <mec@shout.net>
12405
12406 * dwarfread.c: Add documentation on the state of dwarf-1,
12407 looking towards obsoletion.
12408
d08a4280
MC
124092003-02-03 Michael Chastain <mec@shout.net>
12410
12411 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12412 gdb/testsuite/gdb.c++/pr-1023.exp.
12413
e9be73e4
AC
124142003-02-04 Andrew Cagney <ac131313@redhat.com>
12415
12416 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12417 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12418
12419 * utils.c (init_page_info): Delete reference to MPW in comments.
12420 * main.c (captured_main): Delete #ifdef MPW.
12421
05d57f6f
AC
124222003-02-04 Andrew Cagney <ac131313@redhat.com>
12423
8ffd9b1b 12424 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
12425 * monitor.c (monitor_expect): Obsolete reference to m32r.
12426 * configure.tgt: Mark m32r-*-elf* as obsolete.
12427 * MAINTAINERS: Mark m32k as obsolete.
12428 * m32r-rom.c: Obsolete file.
12429 * config/m32r/m32r.mt: Obsolete file.
12430 * config/m32r/tm-m32r.h: Obsolete file.
12431 * m32r-stub.c: Obsolete file.
12432 * m32r-tdep.c: Obsolete file.
12433
8b0e5691
AC
124342003-02-04 Andrew Cagney <ac131313@redhat.com>
12435
12436 * NEWS: Mention that the z8k-zilog-none is obsolete.
12437 * MAINTAINERS: Mark z8k as obsolete.
12438 * configure.tgt: Obsolete the z8k-*-coff* target.
12439 * config/z8k/z8k.mt: Obsolete file.
12440 * config/z8k/tm-z8k.h: Obsolete file.
12441 * z8k-tdep.c: Obsolete file.
12442
67f16606
AC
124432003-02-04 Andrew Cagney <ac131313@redhat.com>
12444
12445 * NEWS: Mention that the mn10200-elf is obsolete.
12446 * configure.tgt: Obsolete mn10200-*-* target.
12447 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12448 mention that the mn10200 is obsolete.
12449 * breakpoint.h: Ditto.
12450 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12451 * config/mn10200/mn10200.mt: Obsolete file.
12452 * config/mn10200/tm-mn10200.h: Obsolete file.
12453 * mn10200-tdep.c: Obsolete file.
12454
fd2299bd
AC
124552003-02-04 Andrew Cagney <ac131313@redhat.com>
12456
12457 * MAINTAINERS: Mark h8500 as obsolete.
12458 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12459 * findvar.c (value_from_register): Ditto.
12460 * h8500-tdep.c: Mark file as obsolete.
12461 * config/h8500/h8500.mt: Ditto.
12462 * config/h8500/tm-h8500.h: Ditto.
12463 * NEWS: Mention that h8500 is obsolete.
12464
eb9a305d
DC
124652003-02-04 David Carlton <carlton@math.stanford.edu>
12466
12467 * objfiles.c (allocate_objfile): Always set name. Add comment at
12468 start of function.
12469 * jv-lang.c (get_dynamics_objfile): Add comment.
12470
406fc7fb
DC
124712003-02-04 David Carlton <carlton@math.stanford.edu>
12472
12473 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12474 * printcmd.c (build_address_symbolic): Replace uses of
12475 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12476 SYMBOL_NAME, and asm_demangle.
12477 Update copyright.
12478
93d91629
DC
124792003-02-04 David Carlton <carlton@math.stanford.edu>
12480
12481 * linespec.c (decode_compound): Extract code into
12482 lookup_prefix_sym.
12483 (lookup_prefix_sym): New function.
12484
1c5cb38e
DC
124852003-02-04 David Carlton <carlton@math.stanford.edu>
12486
12487 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12488 FLOAT_COERCION_BADNESS.
12489 * gdbtypes.c (rank_one_type): Replace all uses of
12490 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12491
0cf824c9
JB
124922003-02-04 Jim Blandy <jimb@redhat.com>
12493
12494 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12495 section, let dwarf_macinfo_section point to it, not
12496 dwarf_loc_section.
12497
a2d356b0
DJ
124982003-02-04 Daniel Jacobowitz <drow@mvista.com>
12499
12500 Pointed out by Anton Blanchard <anton@samba.org>.
12501 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12502 (ppc_linux_at_sigtramp_return_path): Use it.
12503
2de7ced7
DJ
125042003-02-04 Daniel Jacobowitz <drow@mvista.com>
12505
12506 * defs.h (streq): Add prototype.
12507 * utils.c (streq): New function.
12508
12509 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12510 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12511 * mdebugread.c (new_symbol): Likewise.
12512 * stabsread.c (define_symbol): Likewise.
12513 * coffread.c (process_coff_symbol): Likewise.
12514 * dwarfread.c (new_symbol): Likewise.
12515
12516 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12517 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12518 here.
12519 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12520 SYMBOL_INIT_DEMANGLED_NAME.
12521 * objfiles.c: Include "hashtab.h".
12522 (allocate_objfile): Call htab_set_functions_ex for the
12523 demangled_names_hash.
12524 (free_objfile): Call htab_delete for the demangled_names_hash.
12525 * objfiles.h (struct htab): Add declaration.
12526 (struct objfile): Add demangled_names_hash.
12527 * symfile.c: Include "hashtab.h".
12528 (reread_symbols): Call htab_delete for the demangled_names_hash.
12529 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12530 SYMBOL_NAME in the bcache.
12531 * symtab.c: Include "hashtab.h". Update comments.
12532 (create_demangled_names_hash, symbol_set_names): New functions.
12533 (symbol_find_demangled_name): New function, broken out from
12534 symbol_init_demangled_names.
12535 (symbol_init_demangled_names): Use it.
12536 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12537 (SYMBOL_SET_NAMES): New macro.
12538 (symbol_set_names): Add prototype.
12539
15831452
JB
125402003-02-03 Jim Blandy <jimb@redhat.com>
12541
12542 Use a single, consistent representation for an empty minimal
12543 symbol table in an objfile.
12544 * objfiles.c (terminate_minimal_symbol_table): New function.
12545 (allocate_objfile): Call it.
12546 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12547 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 12548 non-NULL.
15831452
JB
12549 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12550 objfile has minimal symbols, compare minimal_symbol_count to zero,
12551 instead of comparing msymbols with NULL.
12552 * objfiles.c (have_minimal_symbols): Same.
12553 * solib-sunos.c (solib_add_common_symbols): Call
12554 terminate_minimal_symbol_table.
12555 * symfile.c (reread_symbols): Same.
8ffd9b1b 12556
ffc65945
KB
125572003-02-03 Kevin Buettner <kevinb@redhat.com>
12558
12559 * s390-tdep.c (s390_address_class_type_flags)
12560 (s390_address_class_type_flags_to_name)
12561 (s390_address_class_name_to_type_flags): New functions.
12562 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12563 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12564
f211c6d4
MS
125652003-02-03 Michael Snyder <msnyder@redhat.com>
12566
12567 * arm-tdep.c: Fix spell-o in comment.
12568
659b0389
ML
125692003-02-03 Michal Ludvig <mludvig@suse.cz>
12570
12571 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12572 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 12573 error messages to contain BFD filename.
659b0389 12574
3b31d625
EZ
125752003-02-02 Elena Zannoni <ezannoni@redhat.com>
12576
997b089a 12577 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
12578 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12579 (do_mixed_source_and_assembly): Use
12580 make_cleanup_ui_out_tuple_begin_end and
12581 make_cleanup_ui_out_tuple_begin_end.
12582 (do_mixed_source_and_assembly): Ditto.
12583 * thread.c (do_captured_list_thread_ids): Ditto.
12584 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12585 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12586 ui_out_tuple_end): Delete prototypes.
12587 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12588 ui_out_list_end, ui_out_tuple_end): Delete.
12589
12590 From Kevin Buettner <kevinb@redhat.com>:
12591 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
12592 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12593 (do_cleanup_table_end): New functions.
12594 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12595 Use cleanups to invoke_ui_out_tuple_end().
12596 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
12597 * cli/cli-setshow.c (cmd_show_list): Use
12598 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 12599
5b181d62
AC
126002003-02-02 Andrew Cagney <ac131313@redhat.com>
12601
12602 * frame.c (frame_unwind_register): New function.
12603 (frame_unwind_unsigned_register): Use.
12604 (frame_unwind_signed_register): Use.
12605 (frame_read_register): New function.
12606 * frame.h (frame_unwind_register): Declare.
12607 (frame_read_register): Declare.
12608
12609 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12610 and frame_unwind_register instead of read_memory, write_register
12611 and deprecated_write_register_bytes.
12612
5f601589
AC
126132003-02-02 Andrew Cagney <ac131313@redhat.com>
12614
12615 * frame.h: Note that namelen can be negative.
12616 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12617 NAME's length.
12618
12619 * NEWS: Mention that the d10v's `regs' command is deprecated.
12620 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12621 (d10v_print_registers_info): New function.
12622 (show_regs): Call d10v_print_registers_info.
12623 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12624
6a3fe0a4
MK
126252003-02-02 Mark Kettenis <kettenis@gnu.org>
12626
12627 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12628 lost in the previous patch.
12629
075559bc
AC
126302003-02-01 Andrew Cagney <ac131313@redhat.com>
12631
12632 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
12633 * stack.c (print_frame_info_base): Output complete FRAME tuple
12634 for synthesized frames.
075559bc 12635
6789195b
AC
126362003-02-02 Andrew Cagney <ac131313@redhat.com>
12637
12638 * mips-nat.c (zerobuf): Delete.
12639 (fetch_inferior_registers): Alloc local zerobuf.
12640 (fetch_core_registers): Alloc local zerobuf.
12641 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12642 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12643 * thread-db.c (thread_db_store_registers): Ditto.
12644 * sh-tdep.c (sh_do_register): Ditto.
12645 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12646 * remote-sim.c (gdbsim_store_register): Ditto.
12647 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12648 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12649 * monitor.c (monitor_supply_register): Ditto.
12650 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12651 * mips-nat.c (fetch_inferior_registers): Ditto.
12652 * m68klinux-nat.c (fetch_register): Ditto.
12653 * lynx-nat.c (fetch_inferior_registers): Ditto.
12654 (fetch_inferior_registers): Ditto.
12655 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12656 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12657 (hpux_thread_store_registers): Ditto.
12658 * hppah-nat.c (fetch_register): Ditto.
12659 * hppab-nat.c (fetch_register): Ditto.
12660 * hppa-tdep.c (pa_register_look_aside): Ditto.
12661 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12662 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12663
e669114a
AC
126642003-02-01 Andrew Cagney <ac131313@redhat.com>
12665
12666 * gdbarch.sh: Explictly specify all method levels. When a
12667 variable with an empty level, provide a non-multi-arch default.
12668 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12669 * gdbarch.h: Re-generate.
12670 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12671 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12672
9a043c1d
AC
126732003-02-01 Andrew Cagney <ac131313@redhat.com>
12674
12675 * defs.h (host_pointer_to_address): Delete declaration.
12676 (address_to_host_pointer): Delete declaration.
12677 * utils.c (host_pointer_to_address): Delete function.
12678 (address_to_host_pointer): Delete function.
12679 * procfs.c (procfs_address_to_host_pointer): New function.
12680 * procfs.c (proc_set_watchpoint): Use.
12681 (procfs_can_use_hw_breakpoint): Update comments.
12682 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12683 (som_solib_add): Use.
12684 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12685 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 12686
7ca9f392
AC
126872003-02-01 Andrew Cagney <ac131313@redhat.com>
12688
94bbfd30
AC
12689 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12690 strlen d_name.
12691
7ca9f392
AC
12692 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12693 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12694 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12695 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12696 (define_symbol): Update.
12697 * symfile.c (generic_load): Remove references to nindy.
12698 * symtab.c: Remove references to nindy.
12699
31a85ea2
AC
127002003-02-01 Andrew Cagney <ac131313@redhat.com>
12701
12702 * infcmd.c (print_float_info): Delete code conditional on
12703 FLOAT_INFO.
12704 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12705 * config/m68k/nm-apollo68b.h: Ditto.
12706 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12707 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12708 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12709
f6e85fc8
MK
127102003-02-01 Mark Kettenis <kettenis@gnu.org>
12711
6015b6a0
MK
12712 * config/i386/tm-i386os9k.h: Removed.
12713
f7a30bdf
MK
12714 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12715 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12716 they're identical to i[3456]86-*-sysv* now.
12717 * config/i386/i386v32.mh: Removed.
12718 * config/i386/xm-i386v32.h: Removed.
12719 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12720
28d52111
MK
12721 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12722
4d3f6bce
MK
12723 * config/i386/i386dgux.mh: Removed.
12724 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12725
f6e85fc8
MK
12726 * configure.in: Fix typo.
12727 * configure: Regenerated.
12728
53955967
DC
127292003-01-31 David Carlton <carlton@math.stanford.edu>
12730
12731 * dwarf2read.c (dwarf2_locate_sections): Set
12732 dwarf_ranges_section.
12733
b1364885
AC
127342003-01-31 Andrew Cagney <ac131313@redhat.com>
12735
8dbb1c65
AC
12736 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12737 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 12738
8731e58e
AC
12739 * utils.c: Re-indent.
12740
b1364885
AC
12741 * config/djgpp/fnchange.lst: Delete nindy files.
12742 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12743 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12744 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12745 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12746 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12747 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12748 * Makefile.in (init.c): Remove nindy references.
12749 (saber_gdb): Delete rule.
12750 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12751 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12752 and a68v-nat.c.
12753 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12754 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12755 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12756 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12757 nindy-share/stop.h.
12758 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12759 * saber.suppress: Delete file.
12760
086df311
DJ
127612003-01-31 Daniel Jacobowitz <drow@mvista.com>
12762
12763 * dbxread.c (stabs_data): New static variable.
12764 (fill_symbuf): Support an in-memory buffer for stabs data.
12765 (stabs_seek): New function.
12766 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12767 (read_ofile_symtab): Use stabs_seek.
12768 (elfstab_build_psymtabs): Take an asection* instead of
12769 an offset and size. Relocate the stabs data if necessary.
12770 Save the section* for dbx_psymtab_to_symtab.
12771 * dwarf2read.c: Add section variables for each debug section.
12772 (dwarf2_locate_sections): Fill them in.
12773 (dwarf2_read_section): Take an asection* argument.
12774 Relocate the section contents if necessary.
12775 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12776 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12777 it to dwarf2_read_section.
12778 (dwarf2_build_frame_info): Update callers.
12779 * elfread.c (elf_symfile_read): Update call to
12780 elfstab_build_psymtabs.
12781 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12782 (DBX_STAB_SECTION): New macro.
8ffd9b1b 12783 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
12784 * symfile.c (symfile_dummy_outputs): New function.
12785 (symfile_relocate_debug_section): New function.
12786 * symfile.h (symfile_relocate_debug_section): Add prototype.
12787
87d1b352
RH
127882003-01-31 Richard Henderson <rth@redhat.com>
12789
12790 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12791 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12792 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12793 * alpha-tdep.c (alpha_register_name): Add "unique".
12794 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12795 (ALPHA_UNIQUE_REGNUM): New.
12796 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12797
c48861fb
AC
127982003-01-31 Andrew Cagney <ac131313@redhat.com>
12799
12800 * README: Remove reference to Ericsson 1800 monitor.
12801 * Makefile.in (remote-es.o): Delete rule.
12802 (ALLDEPFILES): Delete remote-es.c.
12803 * remote-es.c: Delete file.
12804 * config/m68k/es1800.mt: Delete file.
12805 * config/djgpp/fnchange.lst: Update.
12806 * configure.tgt: Delete m68*-ericsson-* target.
12807
d764a824
AF
128082003-01-31 Adam Fedor <fedor@gnu.org>
12809
12810 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12811 Remove duplicate/shadowing variable of same name.
12812
fe36c4f4
JB
128132003-01-30 Jim Blandy <jimb@redhat.com>
12814
12815 * symfile.c (find_separate_debug_file): Assert that the objfile's
12816 directory name we compute ends with a slash, and then assume that
12817 that's so everywhere we use it.
12818
cb741690
DJ
128192003-01-30 Daniel Jacobowitz <drow@mvista.com>
12820
12821 * valops.c (value_assign): Flush frame cache after stores to memory
12822 also.
12823
96ee5227
AC
128242003-01-30 Andrew Cagney <ac131313@redhat.com>
12825
12826 * Makefile.in (mon960-rom.o): Delete rule.
12827 * mon960-rom.c: Delete file.
12828
7f6104a9
AC
128292003-01-30 Andrew Cagney <ac131313@redhat.com>
12830
12831 * d10v-tdep.c: Include "frame-unwind.h".
12832 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12833 list.
12834 (next_addr, uses_frame): Delete.
12835 (struct d10v_unwind_cache): Define.
12836 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12837 Use info instead of next_addr and uses_frame globals.
12838 (d10v_frame_init_saved_regs): Delete function.
12839 (d10v_init_extra_frame_info): Delete function.
12840 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12841 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12842 init_frame_pc or frame_saved_pc.
12843 (d10v_pop_frame): Delete function.
12844 (do_d10v_pop_frame): Delete function.
12845 (d10v_frame_chain): Delete function.
12846 (d10v_frame_chain_valid): Delete function.
12847 (d10v_frame_pc_unwind): New function.
12848 (d10v_frame_id_unwind): New function.
12849 (saved_regs_unwinder): New function.
12850 (d10v_frame_register_unwind): New function.
12851 (d10v_frame_pop): New function.
12852 (d10v_frame_unwind): New variable.
12853 (d10v_frame_p): New function.
12854 (d10v_frame_saved_pc): Delete function.
12855 * Makefile.in (d10v-tdep.o): Update dependencies.
12856
cad2e848
JB
128572003-01-30 J. Brobecker <brobecker@gnat.com>
12858
12859 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12860 causing some regressions due to a change in the default value
12861 for this macro.
12862
af34e669
DJ
128632003-01-29 Richard Henderson <rth@redhat.com>
12864 Elena Zannoni <ezannoni@redhat.com>
12865 Daniel Jacobowitz <drow@mvista.com>
12866
12867 Fix PR gdb/961.
8ffd9b1b 12868 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
12869 variables.
12870 (RANGES_SECTION): New.
12871 (dwarf_ranges_buffer): New variable.
12872 (struct comp_unit_head): Add member "die".
12873 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12874 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12875 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12876 (dwarf2_locate_sections): Likewise.
12877 (dwarf2_build_psymtabs): Read .debug_ranges.
12878 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12879 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12880 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12881 Look for DW_AT_ranges and return the bounding box.
12882
baa93fa6
CF
128832003-01-29 Brian Ford <ford@vss.fsi.com>
12884
12885 * win32-nat.c (cygwin_pid): Removed as unused.
12886 (child_attach): Try fall back to Cygwin pid.
12887
c63f977f
JB
128882003-01-29 Jim Blandy <jimb@redhat.com>
12889
12890 * objfiles.h (struct objfile): Doc fix.
12891
d62d1979
AC
128922003-01-29 Andrew Cagney <ac131313@redhat.com>
12893
12894 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12895 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12896 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12897 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12898 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12899 (FRAME_SAVED_PC): Change to a function with predicate.
12900 * gdbarch.h, gdbarch.c: Re-generate.
12901
1ae18a04
AC
129022003-01-28 Andrew Cagney <ac131313@redhat.com>
12903
52287340
AC
12904 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12905
1ae18a04
AC
12906 * complaints.c (complain): Delete function.
12907 * complaints.h (struct deprecated_complaint): Delete definition.
12908 (complain): Delete declaration.
12909
f2c16bd6
KB
129102003-01-28 Kevin Buettner <kevinb@redhat.com>
12911
12912 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12913 dummy frames.
12914
a94dd1fd
AC
129152003-01-27 Andrew Cagney <ac131313@redhat.com>
12916
12917 * sentinel-frame.h, sentinel-frame.c: New files.
12918 * Makefile.in (frame.o): Update dependencies.
12919 (SFILES): Add sentinel-frame.c.
12920 (sentinel_frame_h): Define.
12921 (COMMON_OBS): Add sentinel-frame.o.
12922 (sentinel-frame.o): Specify dependencies.
12923 * frame.c: Include "sentinel-frame.h".
12924 (frame_register_unwind): Rewrite assuming that there is always a a
12925 ->next frame.
12926 (frame_register, generic_unwind_get_saved_register): Ditto.
12927 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12928 (create_sentinel_frame, unwind_to_current_frame): New functions.
12929 (get_current_frame): Rewrite using create_sentinel_frame and
12930 unwind_to_current_frame. When possible, always create a frame.
12931 (create_new_frame): Set next to the sentinel frame.
12932 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12933 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12934 ID cache when necessary.
12935 (frame_saved_regs_id_unwind): Use frame_relative_level.
12936 (deprecated_generic_get_saved_register): Use frame_relative_level,
12937 get_frame_saved_regs, get_frame_pc, get_frame_base and
12938 get_next_frame.
12939 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12940 frame_register.
12941
5378adc4
DJ
129422003-01-27 Daniel Jacobowitz <drow@mvista.com>
12943
12944 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12945
51ee2ddc
DJ
129462003-01-27 Daniel Jacobowitz <drow@mvista.com>
12947
12948 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12949 (maintenance_set_profile_cmd): Use error () instead of warning ().
12950
d9feb4e7
DJ
129512003-01-27 Daniel Jacobowitz <drow@mvista.com>
12952
12953 * configure.in: Check that -pg works if using --enable-profiling.
12954 Check for monstartup and _mcleanup regardless of --enable-profiling.
12955 * maint.c: Check for monstartup and _mcleanup before using them.
12956 * config.in: Regenerated.
12957 * configure: Regenerated.
12958
2d188dd3
NC
129592003-01-24 Nick Clifton <nickc@redhat.com>
12960
12961 * Add sh2e support:
12962
12963 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12964
12965 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12966 (sh2e_show_regs): New.
12967 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12968 * config/sh/tm-sh.h: Added sh2e to comments.
12969
cb3c37b2
JB
129702003-01-23 Jim Blandy <jimb@redhat.com>
12971
12972 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12973 symbols found)" message here; we haven't checked for a separate
12974 debug info file yet, so we don't know yet.
12975 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12976 we've looked everywhere. Also, there's no need to print a special
12977 message when we're loading the separate debug info file: the one
12978 symbol_file_add prints is fine.
12979
5b5d99cf
JB
129802003-01-23 Alexander Larsson <alexl@redhat.com>
12981 Jim Blandy <jimb@redhat.com>
12982
12983 Add support for executables whose debug info has been separated
12984 out into a separate file, leaving only a link behind.
12985 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12986 and separate_debug_objfile_backlink.
12987 (put_objfile_before): New declaration.
12988 * symfile.c: #include "filenames.h".
12989 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12990 debug info in a separate file, read that, too. Save the addrs
12991 argument, so we can use it again to read the separated debug info;
12992 syms_from_objfile modifies the table we pass it.
12993 (reread_symbols): After re-reading an objfile, call
12994 reread_separate_symbols to refresh its separate debug info
12995 objfile, if it has one.
12996 (reread_separate_symbols, find_separate_debug_file,
12997 get_debug_link_info, separate_debug_file_exists): New functions.
12998 (debug_file_directory): New global var.
12999 (_initialize_symfile): Initialize debug_file_directory, and
13000 provide the new `set debug-file-directory' command to let the user
13001 change it.
13002 * objfiles.c (free_objfile): If this objfile has its debug info in
13003 a separate objfile, free that one too. If this is itself a
13004 separate debug info objfile, clear our parent's backlink.
13005 (put_objfile_before): New function.
13006 * utils.c (gnu_debuglink_crc32): New function.
13007 * defs.h (gnu_debuglink_crc32): New declaration.
13008 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13009 * configure.in: Handle --with-separate-debug-dir config option.
13010 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13011 * acconfig.h (DEBUGDIR): New macro.
13012 * configure, aclocal.m4, config.in: Regenerated.
13013
7e8580c1
JB
130142003-01-22 Jim Blandy <jimb@redhat.com>
13015
7904e09f
JB
13016 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13017 like the old symbol_file_add, but taking new arguments: you can
13018 now pass in either a `struct section_addr_info' list to say where
13019 each section is loaded, or a `struct section_offsets' table. Pass
13020 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 13021 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
13022 with the appropriate quiescent values for the new arguments.
13023
7e8580c1
JB
13024 * symfile.c: #include "gdb_assert.h".
13025 (syms_from_objfile): Add the ability to pass in a section offset
13026 table directly, as an alternative to the section_addr_info table.
13027 Document arguments better.
13028 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13029 * symfile.h (syms_from_objfile): Update declaration.
13030 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13031 syms_from_objfile.
13032 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13033
d28f9cdf
DJ
130342003-01-22 Daniel Jacobowitz <drow@mvista.com>
13035
13036 Original patch by Tom Tromey <tromey@cygnus.com> and
13037 Jason Molenda <jmolenda@apple.com>.
13038 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13039 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13040 * NEWS: Mention profiling.
13041 * configure.in (--enable-gdbtk): Fix typo.
13042 (--enable-profiling): New. Set PROFILE_CFLAGS.
13043 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13044 Fill in function.
13045 (profiling_state): New variable.
13046 (mcleanup_wrapper): New function.
13047 (_initialize_maint): Remove NOTYET, fix call to
13048 add_setshow_boolean_cmd for "maint set profile".
13049 * configure: Regenerated.
13050
df21e465
MH
130512003-01-21 Martin M. Hunt <hunt@redhat.com>
13052
13053 * Makefile.in (install-gdbtk): Install PNG images too.
13054
73c1f219
AC
130552003-01-21 Andrew Cagney <ac131313@redhat.com>
13056
13057 * exec.c (text_start): Delete global variable.
13058 (exec_file_attach): Make text_start local to the function.
13059 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13060 * valops.c (hand_function_call): Delete code that handles
13061 BEFORE_TEXT_END and AFTER_TEXT_END.
13062 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13063 of CALL_DUMMY_LOCATION.
13064 * gdbarch.c: Regenerate.
13065 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13066 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13067 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13068 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13069 (text_end): Delete extern declaration.
13070
eb4f72c5
AC
130712003-01-21 Andrew Cagney <ac131313@redhat.com>
13072
13073 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13074 * blockframe.c (backtrace_below_main): Move to "frame.c".
13075 (frame_chain_valid): Delete check for backtrace_below_main.
13076 (_initialize_blockframe): Delete initialization, move ``set
13077 backtrace-below-main'' command to "frame.c".
13078 (do_flush_frames_sfunc): Delete function.
13079 * frame.c: Include "command.h" and "gdbcmd.h".
13080 (frame_type_from_pc): New function.
13081 (create_new_frame): Use frame_type_from_pc.
13082 (legacy_get_prev_frame): New function.
13083 (get_prev_frame): Rewrite. When an old style frame, call
13084 legacy_get_prev_frame. Otherwize, unwind the PC first.
13085 (_initialize_frame): Add ``set backtrace-below-main'' command.
13086 * Makefile.in (frame.o): Update dependencies.
13087
778ce8cc
AC
130882003-01-19 Andrew Cagney <ac131313@redhat.com>
13089
13090 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13091 DEPRECATED_REGISTERS_INFO.
13092
01c193c8
AC
130932003-01-19 Andrew Cagney <ac131313@redhat.com>
13094
13095 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13096 Maintainers'. Update `Various Maintainers'.
13097
dedc2a2b
AC
130982003-01-19 Andrew Cagney <ac131313@redhat.com>
13099
13100 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13101 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13102 Suppress actual parameters when `-'.
13103 * gdbarch.h, gdbarch.c: Regenerate.
13104
b7261c70
AC
131052003-01-19 Andrew Cagney <ac131313@redhat.com>
13106
13107 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13108 code handling dummy frames.
13109
dbe9fe58
AC
131102003-01-19 Andrew Cagney <ac131313@redhat.com>
13111
13112 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13113 (struct frame_unwind): Add field pop.
13114 * frame.h (frame_pop): Declare.
13115 * frame.c (frame_saved_regs_pop): New function.
13116 (trad_frame_unwinder): Add frame_saved_regs_pop.
13117 (frame_pop): New function.
13118 * dummy-frame.c (dummy_frame_pop): New function.
13119 (discard_innermost_dummy): New function.
13120 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13121 (dummy_frame_unwind): Add dummy_frame_pop.
13122 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13123 * valops.c (hand_function_call): Ditto.
13124 * stack.c (return_command): Ditto.
13125
570b8f7c
AC
131262003-01-18 Andrew Cagney <ac131313@redhat.com>
13127
13128 * cris-tdep.c: Fix function declaration indentation.
13129 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13130 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13131 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13132 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13133 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13134 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13135
131362003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
13137
13138 * README (Unpacking and Installation -- quick overview):
13139 Warn against ".../gdb-5.3/gdb/configure".
13140
494cca16
AC
131412003-01-18 Andrew Cagney <ac131313@redhat.com>
13142
13143 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13144 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13145 (struct frame_unwind): Declare opaque.
13146 (dummy_frame_p): Declare function.
13147 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13148 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13149 * dummy-frame.c: Include "frame-unwind.h".
13150 (dummy_frame_p): New function.
13151 (dummy_frame_unwind): New variable.
13152 * frame.c: Include "frame-unwind.h".
13153 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13154 to use the new unwind field.
13155 (set_unwind_by_pc): Delete function.
13156 (create_new_frame, get_prev_frame): Set unwind field using
13157 frame_unwind_find_by_pc.
13158 (trad_frame_unwind, trad_frame_unwinder): New variables.
13159 * frame.h (trad_frame_unwind): Declare variable.
13160 (frame_id_unwind_ftype): Delete declaration.
13161 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13162 (struct frame_unwind): Declare opaque.
13163 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13164 register_unwind with a single unwind pointer.
13165 * frame-unwind.h, frame-unwind.c: New files.
13166 * Makefile.in (SFILES): Add frame-unwind.c.
13167 (frame_unwind_h): Define.
13168 (COMMON_OBS): Add frame-unwind.o.
13169 (frame-unwind.o): Specify dependencies.
13170 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 13171
4efb68b1
AC
131722003-01-18 Andrew Cagney <ac131313@redhat.com>
13173
13174 * ada-valprint.c: Eliminate PTR.
13175 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13176 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13177 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13178 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13179 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13180 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13181 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 13182
a84d24ee
AC
131832003-01-17 Andrew Cagney <ac131313@redhat.com>
13184
762f08a3
AC
13185 * main.c (captured_main): Don't use PTR.
13186 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13187 * gdbtypes.c (lookup_primitive_typename): Ditto.
13188 (lookup_struct_elt_type): Ditto.
13189 * f-valprint.c (info_common_command): Ditto.
13190 (list_all_visible_commons): Ditto.
13191 * jv-typeprint.c (java_type_print_base): Ditto.
13192
a84d24ee
AC
13193 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13194 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13195 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13196 i386-interix-nat.c and i386-interix-tdep.c. Rename
13197 m68klinux-nat.c and m68klinux-tdep.c. Rename
13198 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13199 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13200 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13201 * main.c (captured_main): Use xfree, not free.
13202
c170fb60
AC
132032003-01-16 Andrew Cagney <ac131313@redhat.com>
13204
13205 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13206 ID back using a parameter.
13207 * frame.c (frame_id_unwind): Update call.
13208 (frame_saved_regs_id_unwind): Update.
13209 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13210 * dummy-frame.h (struct frame_id): Add opaque declaration.
13211 (dummy_frame_id_unwind): Update declaration.
13212
867f3898
AC
132132003-01-15 Andrew Cagney <ac131313@redhat.com>
13214
13215 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13216
40622be8 132172003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 13218
40622be8 13219 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 13220
ae66c1fc
EZ
132212003-01-14 Elena Zannoni <ezannoni@redhat.com>
13222
997b089a 13223 Fix PR gdb/898
ae66c1fc
EZ
13224 * breakpoint.c (until_break_command): Add new argument. Use it to
13225 decide whether to stop only at the current frame or not.
13226 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 13227 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
13228 call.
13229 (advance_command): New function.
13230 (_initialize_infcmd): Update help string for 'until' command.
13231 Add new 'advance' command.
13232
a04257e6
DC
132332003-01-14 David Carlton <carlton@math.stanford.edu>
13234
13235 * linespec.c (decode_line_1): Normalize comments.
13236 (set_flags): Ditto.
13237 (locate_first_half): Ditto.
13238 (decode_compound): Ditto.
13239 (symtab_from_filename): Ditto.
13240 (decode_all_digits): Ditto.
13241 (decode_dollar): Ditto.
13242 (find_methods): Ditto.
13243 (find_toplevel_char): Ditto.
13244
1bac305b
AC
132452003-01-13 Andrew Cagney <ac131313@redhat.com>
13246
13247 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13248 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13249 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13250 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13251 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13252 * language.c, language.h, m32r-tdep.c: Update copyright.
13253 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13254 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13255 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13256 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13257 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13258 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13259
25caa7a8
EZ
132602003-01-13 Elena Zannoni <ezannoni@redhat.com>
13261
13262 * stabsread.h (process_later, resolve_cfront_continuation):
13263 Obsolete.
13264 Update copyright years.
13265 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13266 Update copyright year.
13267 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 13268 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
13269 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13270 Update copyright year.
13271 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13272 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13273 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13274 (parse_partial_symbols): Obsolete cfront support.
13275 * stabsread.c
13276 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13277 macros.
13278 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13279 read_cfront_baseclasses, read_cfront_member_functions,
13280 resolve_cfront_continuation,read_cfront_static_fields,
13281 copy_cfront_struct_fields): Obsolete functions.
13282 (define_symbol, read_one_struct_field): Obsolete cfront support.
13283 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13284 Update Copyright year.
13285
7789c6f5
EZ
132862003-01-13 Elena Zannoni <ezannoni@redhat.com>
13287
13288 * stack.c (print_frame_info, print_stack_frame_base_stub,
13289 print_stack_frame_base, show_and_print_stack_frame_stub,
13290 show_and_print_stack_frame, print_only_stack_frame_stub,
13291 print_only_stack_frame): Delete functions.
13292 (print_stack_frame_stub): Call print_frame_info instead of
13293 print_frame_info_base.
13294 (print_frame_info_base): Rename to print_frame_info.
13295 (backtrace_command_1): Call print_frame_info, instead of
13296 print_frame_info_base.
13297 (current_frame_command): Call print_stack_frame, instead of
13298 print_only_stack_frame.
13299 (frame_command): Call print_stack_frame, instead of
13300 show_and_print_stack_frame.
13301 (up_command): Ditto.
13302 (down_command): Ditto.
13303 * frame.h (print_only_stack_frame): Delete prototype.
13304 * infrun.c (normal_stop): Call print_stack_frame, instead of
13305 show_and_print_stack_frame.
13306 * thread.c (info_threads_command): Call print_stack_frame, instead
13307 of print_only_stack_frame.
13308
3f5a3016
AC
133092003-01-13 Andrew Cagney <ac131313@redhat.com>
13310
d99ba314
AC
13311 * README (Graphical interface to GDB): Update URL. Point at
13312 gdb/links/.
13313
3f5a3016
AC
13314 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13315 version match.
13316
083ae935
DJ
133172003-01-13 Daniel Jacobowitz <drow@mvista.com>
13318
13319 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13320 lines.
13321
5365276c
DJ
133222003-01-13 Daniel Jacobowitz <drow@mvista.com>
13323
13324 * thread-db.c (attach_thread): Prototype.
13325 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13326 thread information (ti), and valid flags (th_valid, ti_valid).
13327 (attach_thread): Move target_pid_to_str call to after the thread
13328 is added to GDB's list. Initialize the cache.
13329 (thread_get_info_callback, thread_db_map_id2thr)
13330 (thread_db_get_info): New functions.
13331 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13332 (thread_db_store_registers, thread_db_thread_alive)
13333 (thread_db_get_thread_local_address): Use them.
13334 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13335 of calling error() for threads in unknown state.
13336
13337 (clear_lwpid_callback): New function.
13338 (thread_db_resume): Use it to clear the cache.
13339
9fc30b6b
DJ
133402003-01-13 Daniel Jacobowitz <drow@mvista.com>
13341
13342 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13343 (resume_callback): Remove dead code.
13344
8f871025
AC
133452003-01-13 Andrew Cagney <ac131313@redhat.com>
13346
13347 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13348 predicate.
13349 * gdbarch.h, gdbarch.c: Regenerate.
13350 * stack.c (frame_info): Only initialize the saved registers when
13351 FRAME_INIT_SAVED_REGS_P.
13352 * frame.c (frame_saved_regs_register_unwind): Assert
13353 FRAME_INIT_SAVED_REGS_P.
13354 (deprecated_generic_get_saved_register): Ditto.
13355
3f565f1e
DJ
133562003-01-13 Daniel Jacobowitz <drow@mvista.com>
13357
13358 * source.c (openp): Squelch warning about "filename".
13359
072b1022
DJ
133602003-01-13 Daniel Jacobowitz <drow@mvista.com>
13361
13362 * source.c (openp): If the file does not exist don't necessarily
13363 search the path.
13364
973ccf8b
DJ
133652003-01-13 Daniel Jacobowitz <drow@mvista.com>
13366
13367 Fix PR gdb/872.
13368 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13369 (integer_types_same_name_p): New function.
13370 (rank_one_type): Use it.
13371 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13372
030292b7
DJ
133732003-01-13 Daniel Jacobowitz <drow@mvista.com>
13374
13375 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13376 variables.
13377 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13378 * configure.in: Add --with-sysroot.
13379 * configure: Regenerated.
13380 * main.c (gdb_sysroot): New variable.
13381 (captured_main): Initialize gdb_sysroot.
13382 * defs.h (gdb_sysroot): New extern declaration.
13383 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13384
afb5d334
MC
133852003-01-12 Michael Chastain <mec@shout.net>
13386
13387 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13388
751ceeb4
MC
133892003-01-12 Michael Chastain <mec@shout.net>
13390
13391 * top.c (print_gdb_version): Bump copyright year to 2003.
13392
94cd26f8
DC
133932003-01-12 David Carlton <carlton@bactrian.org>
13394
13395 * linespec.c (symtab_from_filename): Rename variable 's' to
13396 'file_symtab'.
13397
1ce79225
AC
133982003-01-12 Andrew Cagney <ac131313@redhat.com>
13399
13400 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13401 dummy frame.
13402 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13403
fa1fd571
AC
134042003-01-12 Andrew Cagney <ac131313@redhat.com>
13405
13406 * d10v-tdep.c: Include "gdb_assert.h".
13407 (d10v_store_return_value): Rewrite to match current interface.
13408 (d10v_extract_struct_value_address): Ditto.
13409 (d10v_extract_return_value): Ditto.
13410 (d10v_gdbarch_init): Set store_restore_value,
13411 extract_struct_value_address and extract_return_value.
13412
68b8d23e
JB
134132003-01-12 J. Brobecker <brobecker@gnat.com>
13414
13415 * hpread.c (set_namestring): New procedure replacing the
13416 SET_NAMESTRING macro.
13417 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13418 by calls to set_namestring.
13419
134202003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
13421
13422 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13423 a compilation warning.
13424 (hpread_process_one_debug_symbol): Likewise.
13425
88d262ca
DC
134262003-01-10 David Carlton <carlton@math.stanford.edu>
13427
13428 * linespec.c (decode_line_1): Rename variable 's' to
13429 'file_symtab'.
13430 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13431 (decode_dollar): Ditto.
13432 (decode_variable): Ditto.
13433 (symbol_found): Ditto.
13434
86669319
MC
134352003-01-09 Michael Chastain <mec@shout.net>
13436
13437 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13438
616a9dc4
CV
134392003-01-07 Corinna Vinschen <vinschen@redhat.com>
13440
13441 * win32-nat.c (set_process_privilege): New function.
13442 (child_attach): Call set_process_privilege() to enable the
13443 SE_DEBUG_NAME user privilege if available in process token.
13444
3269bcfa
JB
134452003-01-10 J. Brobecker <brobecker@gnat.com>
13446
13447 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13448 compilation error in the previous revision.
13449
2b0ee454
DC
134502003-01-09 David Carlton <carlton@math.stanford.edu>
13451
13452 * linespec.c: Update copyright.
13453
b3ba1b44
DJ
134542003-01-09 Daniel Jacobowitz <drow@mvista.com>
13455
13456 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13457 than inferior_ptid.
13458 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13459
4ef3f3be
AC
134602003-01-09 Andrew Cagney <ac131313@redhat.com>
13461
479ab5a0
AC
13462 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13463 Update comments.
13464 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13465 (frame_saved_regs_zalloc): Update.
13466 (frame_saved_regs_register_unwind): Update.
13467 (create_new_frame): Update.
13468 (get_prev_frame): Update.
13469 (frame_extra_info_zalloc): Update.
13470 (deprecated_get_frame_saved_regs): Update.
13471 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13472 * cris-tdep.c: Update comment.
13473
bde58177
AC
13474 * somsolib.h: Fix function indentation.
13475 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13476 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13477 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13478 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13479 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13480
4ef3f3be
AC
13481 * infrun.c (follow_fork): Use ISO C definition.
13482 * expprint.c (print_subexp): Use xfree instead of free.
13483 * charset.c: Include "gdb_string.h" instead of <string.h>.
13484 (register_iconv_charsets): Use ISO C definition.
13485 (host_charset, target_charset): Ditto.
13486 * Makefile.in (charset.o): Update dependencies.
13487 (mi-cmd-env.o): Update dependencies.
13488
1c615f7a
AC
134892003-01-08 Andrew Cagney <cagney@redhat.com>
13490
13491 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13492 get_frame_base.
13493
c9a1dc08
AC
134942003-01-08 Andrew Cagney <ac131313@redhat.com>
13495
13496 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13497 build directories. Save edited gdb output in Mbuild.log. If a
13498 build fails, remove any final GDB executable.
13499
dbad9d94
AC
135002003-01-08 Andrew Cagney <ac131313@redhat.com>
13501
13502 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13503 replacing hex constants with function names and stripping leading
13504 file name directory prefixes.
13505
8d357cca
AC
135062003-01-08 Andrew Cagney <cagney@redhat.com>
13507
13508 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13509 get_frame_base.
13510
bca02a8a
DC
135112003-01-08 David Carlton <carlton@math.stanford.edu>
13512
13513 * linespec.c (decode_line_1): Move code into decode_variable.
13514 (decode_variable): New function.
13515
7f8ab3a0
AC
135162003-01-08 Andrew Cagney <ac131313@redhat.com>
13517
13518 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13519
7b5849cc
AC
135202003-01-08 Andrew Cagney <cagney@redhat.com>
13521
13522 * cris-tdep.c (cris_frame_init_saved_regs): Use
13523 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13524 saved_regs buffer.
13525 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13526 (sh64_nofp_frame_init_saved_regs): Ditto.
13527 (sh_fp_frame_init_saved_regs): Ditto.
13528 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13529 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13530 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13531 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13532
72a5efb3
DJ
135332003-01-08 Daniel Jacobowitz <drow@mvista.com>
13534
13535 * minsyms.c (lookup_minimal_symbol): Update comment.
13536 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13537 (lookup_minimal_symbol_solib_trampoline): Likewise.
13538
11c02a10
AC
135392003-01-08 Andrew Cagney <cagney@redhat.com>
13540
aab3ea25
AC
13541 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13542 frame_relative_level.
13543
da50a4b7
AC
13544 * alpha-tdep.c: Use get_frame_extra_info.
13545 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13546 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13547 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13548 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13549
11c02a10
AC
13550 * alpha-tdep.c: Use get_next_frame.
13551 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13552 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13553 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13554 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13555 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13556 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13557 * xstormy16-tdep.c: Ditto.
8ffd9b1b 13558
1e2330ba
AC
135592003-01-07 Andrew Cagney <cagney@redhat.com>
13560
13561 * alpha-tdep.c: Use get_frame_base.
13562 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13563 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13564 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13565 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13566 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13567 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13568 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13569 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 13570
2d75187b
AC
135712003-01-07 Andrew Cagney <cagney@redhat.com>
13572
13573 * frame.c (deprecated_get_frame_context): New function.
13574 (deprecated_set_frame_context): New function.
13575 * frame.h (deprecated_get_frame_context): Declare.
13576 (deprecated_set_frame_context): Declare.
13577 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13578 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 13579
483d36b2
AC
135802003-01-07 Andrew Cagney <cagney@redhat.com>
13581
13582 * frame.c (deprecated_set_frame_next_hack): New function.
13583 (deprecated_set_frame_prev_hack): New function.
13584 * frame.h (deprecated_set_frame_next_hack): Declare.
13585 (deprecated_set_frame_prev_hack): Declare.
13586 * mcore-tdep.c (analyze_dummy_frame): Use
13587 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13588 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13589
14e91ac5
DC
135902003-01-07 David Carlton <carlton@math.stanford.edu>
13591
13592 * linespec.c (decode_line_1): Move code into decode_dollar.
13593 (decode_dollar): New function.
13594
b0c6b05c
AC
135952003-01-07 Andrew Cagney <cagney@redhat.com>
13596
13597 * arm-tdep.c (arm_init_extra_frame_info): Use
13598 deprecated_update_frame_base_hack.
13599 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13600 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13601 (fix_frame_pointer): Ditto.
13602 (mn10300_analyze_prologue): Ditto.
13603
a00a19e9
AC
136042003-01-07 Andrew Cagney <cagney@redhat.com>
13605
13606 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13607 extra_info using frame_extra_info_zalloc.
13608 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13609 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13610 (sh64_init_extra_frame_info): Ditto.
13611 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13612 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13613 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13614 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13615 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13616 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13617 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13618 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13619 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13620 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13621 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13622 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13623
13624 * mn10300-tdep.c (analyze_dummy_frame): Use
13625 deprecated_set_frame_extra_info_hack.
13626 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13627
1fb4c65b
JB
136282003-01-07 J. Brobecker <brobecker@gnat.com>
13629
13630 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13631 class is not scText. These do not define "real" procedures.
13632 (parse_partial_symbols): Likewise.
13633
9fe7d6bf
MS
136342003-01-06 Michael Snyder <msnyder@redhat.com>
13635
13636 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13637
f6c609c4
AC
136382003-01-06 Andrew Cagney <ac131313@redhat.com>
13639
13640 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13641 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13642 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13643 deprecated_frame_xmalloc_with_cleanup.
13644 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13645 deprecated_frame_xmalloc.
13646 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13647 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13648
d995ff4b
AC
136492003-01-06 Andrew Cagney <cagney@redhat.com>
13650
84dc46cb
AC
13651 * x86-64-linux-tdep.c: Include "osabi.h".
13652 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13653
d995ff4b
AC
13654 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13655
66140c26
AC
136562003-01-06 Andrew Cagney <cagney@redhat.com>
13657
13658 * MAINTAINERS (Target Instruction Set Architectures): Update
13659 arm-elf. Can be built with -Werror, has been multiarched.
13660
13661 * value.h (unpack_long): Make buffer parameter constant.
13662 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13663 * scm-lang.h (scm_parse): Ditto.
13664 * defs.h (extract_typed_address, extract_address): Ditto.
13665 (extract_long_unsigned_integer): Ditto.
13666 * inferior.h (unsigned_pointer_to_address): Ditto.
13667 (signed_pointer_to_address): Ditto.
13668 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13669 * gdbarch.h, gdbarch.c: Regenerate.
13670 * findvar.c (extract_long_unsigned_integer): Update.
13671 (extract_address): Update.
13672 (extract_typed_address): Update.
13673 (unsigned_pointer_to_address): Update.
13674 * values.c (unpack_long): Update.
13675 (unpack_double): Update.
13676 (unpack_pointer): Update.
13677 (unpack_field_as_long): Update.
13678 * d10v-tdep.c (d10v_pointer_to_address): Update.
13679 * avr-tdep.c (avr_pointer_to_address): Update.
13680 * scm-lang.c (scm_unpack): Update.
13681 * findvar.c (signed_pointer_to_address): Update.
13682
b089b3da
ML
136832003-01-06 Michal Ludvig <mludvig@suse.cz>
13684
8ffd9b1b 13685 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
13686 since it is in i386-tdep.c.
13687
aff87235
JB
136882003-01-06 J. Brobecker <brobecker@gnat.com>
13689
13690 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13691 failure introduced in the previous change.
13692
34f5e845
MC
136932003-01-05 Michael Chastain <mec@shout.net>
13694
13695 * README: Remove references to deleted remote-*.c files:
13696 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13697 remote-nrom.c, remote-os9k.c, remote-udi.c.
13698
28bcfd30
MK
136992003-01-05 Mark Kettenis <kettenis@gnu.org>
13700
13701 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13702 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13703 i386_get_longjmp_target.
13704
15a5b3ee
AC
137052003-01-05 Andrew Cagney <ac131313@redhat.com>
13706
13707 * arm-tdep.c (prologue_cache): Change to a pointer.
13708 (_initialize_arm_tdep): Allocate prologue_cache.
13709 (check_prologue_cache): Update.
13710 (save_prologue_cache): Update.
13711 (arm_gdbarch_init): Update.
13712
c263362b
DJ
137132003-01-04 Daniel Jacobowitz <drow@mvista.com>
13714
13715 * stabsread.c (update_method_name_from_physname): Call complaint()
13716 instead of error.
13717
51603483
DJ
137182003-01-04 Daniel Jacobowitz <drow@mvista.com>
13719
13720 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13721 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13722 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13723
13724 * blockframe.c: Include "gdbcmd.h" and "command.h".
13725 (backtrace_below_main): New variable.
13726 (file_frame_chain_valid, func_frame_chain_valid)
13727 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13728 (generic_func_frame_chain_valid): Remove functions.
13729 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13730 (_initialize_blockframe): New function.
13731 * Makefile.in (blockframe.o): Update dependencies.
13732 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13733 comment. Call frame_chain_valid ().
13734 * frame.h: Remove old prototypes. Add prototype for
13735 frame_chain_valid and update comments to match.
13736 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13737 Remove old comment.
13738 * gdbarch.h: Regenerated.
13739 * gdbarch.c: Regenerated.
13740
13741 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13742 set_gdbarch_frame_chain_valid.
13743 * avr-tdep.c (avr_gdbarch_init): Likewise.
13744 * cris-tdep.c (cris_gdbarch_init): Likewise.
13745 * frv-tdep.c (frv_gdbarch_init): Likewise.
13746 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13747 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13748 (i386_nw_init_abi): Likewise.
13749 (i386_gdbarch_init): Likewise.
13750 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13751 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13752 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13753 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13754 * mips-tdep.c (mips_gdbarch_init): Likewise.
13755 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13756 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13757 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13758 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13759 * s390-tdep.c (s390_gdbarch_init): Likewise.
13760 * sh-tdep.c (sh_gdbarch_init): Likewise.
13761 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13762 * v850-tdep.c (v850_gdbarch_init): Likewise.
13763 * vax-tdep.c (vax_gdbarch_init): Likewise.
13764 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13765
13766 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13767 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13768 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13769 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13770 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13771 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13772 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13773 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13774
b00a8037
DJ
137752002-01-04 Daniel Jacobowitz <drow@mvista.com>
13776
13777 * Makefile.in (acconfig_h): Remove incorrect macro.
13778 (config_h): Define.
13779 (osabi.o): Update dependencies.
13780 * configure.tgt: Set gdb_osabi based on target triplet.
13781 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13782 * configure: Regenerated.
13783 * config.in: Regenerated.
13784 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13785 (GDB_OSABI_DEFAULT): Define if not already defined.
13786 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13787 (set_osabi_string): New variables.
13788 (gdbarch_register_osabi): Add new OS ABI to
13789 gdb_osabi_available_names.
13790 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13791 (set_osabi, show_osabi): New functions.
13792 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13793
4be87837
DJ
137942003-01-04 Daniel Jacobowitz <drow@mvista.com>
13795
13796 * arch-utils.c (gdbarch_info_init): Set osabi to
13797 GDB_OSABI_UNINITIALIZED.
13798 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13799 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13800 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13801 * gdbarch.c: Regenerated.
13802 * gdbarch.h: Regenerated.
13803 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13804 there's no BFD.
13805 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13806 * osabi.h (enum gdb_osabi): Move to defs.h.
13807 (gdbarch_init_osabi): Update prototype.
13808 * defs.h (enum gdb_osabi): Moved here.
13809 * Makefile.in: Update dependencies.
13810
13811 * alpha-tdep.h: Don't include "osabi.h".
13812 (struct gdbarch_tdep): Remove osabi member.
13813 * alpha-tdep.c: Include "osabi.h".
13814 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13815 iterate over arches. Update call to gdbarch_init_osabi.
13816 (alpha_dump_tdep): Don't dump osabi.
13817 * alpha-linux-tdep.c: Include "osabi.h".
13818 * alpha-osf1-tdep.c: Include "osabi.h".
13819 * alphafbsd-tdep.c: Include "osabi.h".
13820 * alphanbsd-tdep.c: Include "osabi.h".
13821
13822 * arm-tdep.h: Don't include "osabi.h".
13823 (struct gdbarch_tdep): Remove osabi member.
13824 * arm-tdep.c: Include "osabi.h".
13825 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13826 iterate over arches. Update call to gdbarch_init_osabi.
13827 (arm_dump_tdep): Don't dump osabi.
13828 * arm-linux-tdep.c: Include "osabi.h".
13829 * armnbsd-tdep.c: Include "osabi.h".
13830
13831 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13832 Update call to gdbarch_init_osabi.
13833
13834 * i386-tdep.h: Don't include "osabi.h".
13835 (struct gdbarch_tdep): Remove osabi member.
13836 * i386-tdep.c: Include "osabi.h".
13837 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13838 iterate over arches. Update call to gdbarch_init_osabi.
13839 (i386_dump_tdep): Don't dump osabi.
13840 * i386-linux-tdep.c: Include "osabi.h".
13841 * i386-sol2-tdep.c: Include "osabi.h".
13842 * i386bsd-tdep.c: Include "osabi.h".
13843 * i386gnu-tdep.c: Include "osabi.h".
13844 * i386ly-tdep.c: Include "osabi.h".
13845 * i386nbsd-tdep.c: Include "osabi.h".
13846 * i386obsd-tdep.c: Include "osabi.h".
13847
13848 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13849 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13850 check osabi when iterating over arches. Update call to
13851 gdbarch_init_osabi.
13852 (mips_dump_tdep): Don't dump osabi.
13853
13854 * ns32k-tdep.h: Don't include "osabi.h".
13855 (struct gdbarch_tdep): Remove.
13856 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13857 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13858 allocate tdep. Update call to gdbarch_init_osabi.
13859 (ns32k_dump_tdep): Remove.
13860 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13861 * ns32knbsd-tdep.c: Include "osabi.h".
13862
13863 * ppc-tdep.h: Don't include "osabi.h".
13864 (struct gdbarch_tdep): Remove osabi member.
13865 * rs6000-tdep.c: Include "osabi.h".
13866 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13867 osabi when iterating over arches. Update call to
13868 gdbarch_init_osabi.
13869 (rs6000_dump_tdep): Don't dump osabi.
13870 * ppc-linux-tdep.c: Include "osabi.h".
13871 * ppcnbsd-tdep.c: Include "osabi.h".
13872
13873 * sh-tdep.h: Don't include "osabi.h".
13874 (struct gdbarch_tdep): Remove osabi member.
13875 * sh-tdep.c: Include "osabi.h".
13876 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13877 iterate over arches. Update call to gdbarch_init_osabi.
13878 (sh_dump_tdep): Don't dump osabi.
13879 * shnbsd-tdep.c: Include "osabi.h".
13880
13881 * sparc-tdep.c: Include "osabi.h".
13882 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13883 iterate over arches. Update call to gdbarch_init_osabi.
13884 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13885 tdep structure.
13886
13887 * vax-tdep.h: Don't include "osabi.h".
13888 (struct gdbarch_tdep): Remove.
13889 * vax-tdep.c: Include "osabi.h".
13890 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13891 iterate over arches. Don't allocate tdep. Update call
13892 to gdbarch_init_osabi.
13893 (vax_dump_tdep): Remove.
13894 (_initialize_vax_tdep): Update call to gdbarch_register.
13895
a881cf8e
DJ
138962003-01-04 Daniel Jacobowitz <drow@mvista.com>
13897
13898 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13899 entirely.
13900 (breakpoint_re_set_one): Don't fetch the value for a disabled
13901 watchpoint.
13902
1e698235
DJ
139032003-01-04 Daniel Jacobowitz <drow@mvista.com>
13904
13905 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13906 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13907 (COERCE_FLOAT_TO_DOUBLE): Remove.
13908 * gdbarch.c: Regenerate.
13909 * gdbarch.h: Regenerate.
13910 * Makefile.in: Remove value_h from gdbarch_h.
13911 * valops.c (coerce_float_to_double): New variable.
13912 (default_coerce_float_to_double): Remove.
13913 (standard_coerce_float_to_double): Remove.
13914 (value_arg_coerce): Use coerce_float_to_double.
13915 (_initialize_valops): Add "set coerce-float-to-double".
13916 * value.h (default_coerce_float_to_double): Remove prototype.
13917 (standard_coerce_float_to_double): Remove prototype.
13918
13919 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13920 prototyped.
13921 * mdebugread.c (parse_symbol): Likewise.
13922 * stabsread.c (define_symbol): Mark all functions as prototyped.
13923
13924 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13925 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13926 set_gdbarch_coerce_float_to_double.
13927 * arm-tdep.c (arm_gdbarch_init): Likewise.
13928 * frv-tdep.c (frv_gdbarch_init): Likewise.
13929 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13930 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13931 * mips-tdep.c (mips_gdbarch_init): Likewise.
13932 (mips_coerce_float_to_double): Remove.
13933 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13934 (rs6000_coerce_float_to_double): Remove.
13935 * s390-tdep.c (s390_gdbarch_init): Likewise.
13936 * sh-tdep.c (sh_gdbarch_init): Likewise.
13937 (sh_coerce_float_to_double): Remove.
13938 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13939 (sparc_coerce_float_to_double): Remove.
13940 * v850-tdep.c (v850_gdbarch_init): Likewise.
13941 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13942 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13943 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13944 (hppa_coerce_float_to_double): Remove prototype.
13945 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13946
f436a26a
DJ
139472003-01-04 Daniel Jacobowitz <drow@mvista.com>
13948
13949 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13950
248f8055
DJ
139512003-01-04 Daniel Jacobowitz <drow@mvista.com>
13952
13953 Suggested by Stewart Brown <sb24@avaya.com>:
13954 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13955 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13956 (c_type_print_varspec_suffix): Likewise.
13957
72cfdc76
MK
139582003-01-04 Mark Kettenis <kettenis@gnu.org>
13959
bfd260bb
MK
13960 * configure.in: Don't set and AC_SUBST SUBDIRS.
13961 * configure: Regenerated.
13962
72cfdc76
MK
13963 * configure.in: Remove code dealing with shared libraries.
13964 * Makefile.in: Remove HLDFLAGS and HLDENV.
13965 * configure: Regenerated.
13966
c8b8a898
AC
139672003-01-04 Andrew Cagney <ac131313@redhat.com>
13968
13969 * frame.c (deprecated_frame_xmalloc): New function.
13970 (deprecated_set_frame_saved_regs_hack): New function.
13971 (deprecated_set_frame_extra_info_hack): New function.
13972 * frame.h (deprecated_frame_xmalloc): Declare.
13973 (deprecated_set_frame_saved_regs_hack): Declare.
13974 (deprecated_set_frame_extra_info_hack): Declare.
13975
14abd0fb
MK
139762003-01-04 Mark Kettenis <kettenis@gnu.org>
13977
8ee53726
MK
13978 * configure.in: Move code that provides the --enable-gdbtk option
13979 right after the code that handles the --enable-tui option, and
13980 polish it somewhat.
13981 * configure: Regenerated.
13982
14abd0fb
MK
13983 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13984 AC_CHECK_FUNCS and remove the old check for pread64.
13985 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13986 * acconfig.h (_GNU_SOURCE): Add.
13987 (HAVE_PREAD64): Remove.
13988 * configure, aclocal.m4, config.in: Regenerated.
13989
b2fb4676
AC
139902003-01-03 Andrew Cagney <ac131313@redhat.com>
13991
13992 * alpha-tdep.c: Use get_frame_saved_regs.
13993 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13994 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13995 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13996 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13997 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13998
8dcde887
MK
139992003-01-03 Mark Kettenis <kettenis@gnu.org>
14000
14001 * configure.in: Remove all use of the SUBDIRS variable; add
14002 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14003 code providing the --enable-multi-ice option, and move it right in
14004 front of the code that checks whether gdbserver is supported.
14005 Polish that too.
14006 * configure: Regenerated.
14007 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14008 @SUBDIRS@.
14009
8ccd593b
AC
140102003-01-03 Andrew Cagney <cagney@redhat.com>
14011
14012 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14013 * avr-tdep.c, cris-tdep.c: Ditto.
14014 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14015 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 14016
91151a06
MK
140172003-01-03 Mark Kettenis <kettenis@gnu.org>
14018
14019 * configure.in: Remove --enable-netrom option.
14020 * configure: Regenerated.
14021
8fe84d01
MK
140222003-01-03 Mark Kettenis <kettenis@gnu.org>
14023
14024 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14025 declaration for `struct re_pattern_buffer' instead.
14026 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14027
f0394be6
JB
140282003-01-03 J. Brobecker <brobecker@gnat.com>
14029
14030 * mdebugread.c (parse_symbol): Count until the stEnd matching
14031 the structure name.
14032
27e9bf90
MK
140332003-01-02 Mark Kettenis <kettenis@gnu.org>
14034
93d331ba
MK
14035 * configure.in: Remove --with-cpu option.
14036 subscripts. Remove evil changequotes here.
14037 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14038 * config.in, configure: Regenerated.
8ffd9b1b 14039
27e9bf90
MK
14040 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14041 * configure.in: Cleanup section that sources GDB and BFD configure
14042 subscripts. Remove evil changequotes here.
14043 * config.in, configure: Regenerated.
14044
50abf9e5
AC
140452003-01-02 Andrew Cagney <ac131313@redhat.com>
14046
14047 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14048 frame accessor methods.
14049 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14050 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14051 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14052 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14053 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14054 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14055 * z8k-tdep.c: Ditto.
8ffd9b1b 14056
287c1a40
MK
140572003-01-02 Mark Kettenis <kettenis@gnu.org>
14058
f5dbc56d
MK
14059 * configure.in: Remove UI_OUT configuration code.
14060 * ada-lang.c: Update assuming UI_OUT is always true.
14061 * Makefile.in (UIOUT_CFLAGS): Remove.
14062 * configure: Regenerated.
14063 * TODO: Remove blurb about elimination of -DUI_OUT.
14064
627af7ea
MK
14065 * configure.in: Move code that provides the --enable-gdbcli,
14066 --enable-gdbmi options right before the code that handles the
14067 --enable-tui option. Polish a bit.
14068 * configure: Regenerated.
14069
06825bd1
MK
14070 * configure.in: Rewrite check for GNU regex and the
14071 --without-included regex option, and move it into the "Checks for
14072 library functions" section. This makes us use the system regex
14073 again by default on systems with version 2 of the GNU C library.
14074 This was apparently broken.
14075 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14076 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14077 * config.in, configure: Regenerated.
14078
287c1a40
MK
14079 * configure.in: Move code that provides the --enable-tui option
14080 before the "Checks for libraries" section. Polish the code
14081 somewhat and set need_curses to yes if we build the TUI. Rewrite
14082 code that looks for a library providing termcap functionality to
14083 match more closely what's done in the Readline library, and move
14084 it into to the "Checks for libraries" section.
14085 * configure: Regenerated.
14086 * Makefile.in (TERMCAP): Remove variable.
14087 * config/i386/go32.mh (TERMCAP): Remove variable.
14088
684e56bf
AC
140892003-01-02 Andrew Cagney <ac131313@redhat.com>
14090
14091 * MAINTAINERS: Mention gdb_mbuild.sh.
14092 * gdb_mbuild.sh: Rewrite.
14093
e1ea1d75
MK
140942003-01-02 Mark Kettenis <kettenis@gnu.org>
14095
14096 * configure.in: Fix typo in last change.
14097 * config.in, configure: Regenerated.
14098
1b831c93
AC
140992003-01-02 Andrew Cagney <ac131313@redhat.com>
14100
14101 * valarith.c (value_binop): Delete obsolete code and comments.
14102 * configure.host: Ditto.
14103 * buildsym.h (make_blockvector): Ditto.
14104 * buildsym.c (make_blockvector): Ditto.
14105 * defs.h (enum language): Ditto.
14106 (chill_demangle): Ditto.
14107 * elfread.c (elf_symtab_read): Ditto.
14108 * dwarfread.c (CHILL_PRODUCER): Ditto.
14109 (set_cu_language): Ditto.
14110 (handle_producer): Ditto.
14111 * expprint.c (print_subexp): Ditto.
14112 * gdbtypes.c (chill_varying_type): Ditto.
14113 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14114 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14115 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14116 (chill_varying_type): Ditto.
14117 * language.h (_LANG_chill): Ditto.
14118 * language.c (binop_result_type, integral_type): Ditto.
14119 (character_type, string_type, structured_type): Ditto.
14120 (lang_bool_type, binop_type_check): Ditto.
14121 * stabsread.h (os9k_stabs): Ditto.
14122 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14123 (define_symbol, read_type, read_struct_fields): Ditto.
14124 (read_array_type, read_enum_type, read_huge_number): Ditto.
14125 (read_range_type, start_stabs): Ditto.
14126 * symfile.c (init_filename_language_table): Ditto.
14127 (add_psymbol_with_dem_name_to_list): Ditto.
14128 * symtab.c (symbol_init_language_specific): Ditto.
14129 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14130 * symtab.h (struct general_symbol_info): Ditto.
14131 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14132 * typeprint.c (typedef_print): Ditto.
14133 * utils.c (fprintf_symbol_filtered): Ditto.
14134 * valops.c (value_cast, search_struct_field, value_slice): Delete
14135 obsolete code.
14136 (varying_to_slice): Delete function.
14137 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14138 (varying_to_slice): Delete declaration.
14139 * MAINTAINERS: Update.
14140
8bb2c122
MK
141412003-01-02 Mark Kettenis <kettenis@gnu.org>
14142
97bf5e38
MK
14143 * configure.in: Reorganize "Checks for library functions section"
14144 a bit. Remove check for `btowc' and `isascii' functions.
14145 * configure: Regenerated.
14146
5ee754fc
MK
14147 * acconfig.h (_MSE_INT_H): Remove.
14148 * configure.in: Create "Checks for header files" section, and move
14149 appropriate tests there. Don't check for objlist.h, wchar.h,
14150 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14151 misdetection fix. Also add "Checks for types", "Checks for
14152 compiler characteristics" and "Checks for library functions"
14153 sections.
14154 * config.in, configure: Regenerated.
14155
8bb2c122
MK
14156 * configure.in: Create "Checks for programs" section, and move
14157 appropriate tests there.
14158
9a156167
MK
141592003-01-01 Mark Kettenis <kettenis@gnu.org>
14160
14161 * configure.in: Create "Checks for libraries" section, and move
14162 appropriate tests there. Cleanup check for wctype in libw. Use
14163 AC_SEARCH_LIBS to see whether we need libsocket.
14164 * configure: Regenerated.
14165
a80e2bcb 14166For older changes see ChangeLog-2002
c906108c
SS
14167\f
14168Local Variables:
14169mode: change-log
14170left-margin: 8
14171fill-column: 74
14172version-control: never
14173End:
This page took 1.174955 seconds and 4 git commands to generate.